I am facing some issues with the initialization of the camera through the use of arducam_mipicamera library. (I am coding with
My application requires me to switch between capturing low resolution (640 x 480) images which is not supported by the current mipicamera library hence i have to make use of raspistill / raspicam to capture the low resolution images and using the mipicamera library to capture high resolution images (8112 x 3040).
The reason for requiring both resolution is because i need a high frame rate to detect a moving object at low resolution. And after the object is detected, capture a high resolution image to find certain features on the object.
My flow is as follows
- Initialize rapspicam camera
- Capture image
- Detect an object
- If object detected → release rapiscam camera
- Initalize arducam
- Capture image
- Perform further processing
- Release arducam
- Return to 1.
After running the cycle about 120 times, the arducam camera will fail to initialize : (arducam_init_camera(&camera instance) will return an error).
May i know if i am doing something wrong here? or why would the camera fail to initialize only after 100+ cycles?