There are some cases in which it is necessary to load the camera outside of the lib. We will explain here the main steps that you need to follow to achieve it.
Initializes the library and add images into it. Also initializes the own camera (myCameraCapture).
When an image is taken, the library processes the image and there is a function that checks the value that returns the library.
Initializes AVCaptureSession, adds video input and depend of the type of camara selected (captures CsampleBufferRef or takes a photo), adds video output or adds still image output.