Open capeie-dev opened 2 years ago
The sensor produces frames in one of a number of modes, and each mode can achieve a different maximum frame rate. See https://picamera.readthedocs.io/en/latest/fov.html#sensor-modes
When you request a high res frame, the sensor will stop, switch to the higher resolution/lower frame rate mode, capture the high res frame, stop the sensor again, switch to the lower resolution/higher frame rate mode, and then resume preview/low res capture.
You could use sensor_mode
to force the sensor to stay in one mode all the time, but that will limit you on max frame rate (or max resolution).
With reference to - https://picamera.readthedocs.io/en/release-1.13/api_array.html#picamera.array.PiArrayOutput.truncate
Here we are trying to save one high-resolution image from the capture() function (every 15 frames) while running the low-resolution stream on the capture_continuous (), we find that the program freezes when trying to switch to the high-resolution image. How does one fix this?
Our readings show that we can change the resolution directly however it freezes in the same manner, refer to the above link (15.1): From the image we see that one image is saved for the low resolution after which the resolution is changed to save another image.
context - we are trying to run a low-resolution preview in real-time and when the user presses a button a high-resolution image is saved. We need fast fps for the preview hence the low res during the preview and then save a high res image. We need the low resolution capture_continuous function in order for the preview to work.