-
Running an AI-Thinker ESP32-CAM/OV2640 module using the micropython-camera-API by cnadler86. JPEG image capturing at full resolution works fine, so far so good. As a newcomer I don't understand how to use multiple framebuffers and how they interact with the grab mode. "GrabMode controls when a new frame is grabbed". Grabbed by whom? To where? The doco seems to mention a queue of framebuffers but I don't see any functions explicitly related to a queue. Does the MicroPython v1.25.0 on 2025-04-16; Generic ESP32 module with SPIRAM with ESP32 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I would like to answer this myself, but the AI did a great job on that. There is also an async version of the capture method in the acamera module, which should work in a non blocking way with a fb_count=2. Some of the sensors (e.g. ov2640) encode the image itself, so this happens at the sensor and not in your board. If you would like to decode, use mp_jpeg for that. I will upload a stub file for typing in the next days. |
Beta Was this translation helpful? Give feedback.
I would like to answer this myself, but the AI did a great job on that.
Here the link on the explanation. Note that the information from chatgpt might be wrong in some details, but the explanation on those parameters is very accurate.
There is also an async version of the capture method in the acamera module, which should work in a non blocking way with a fb_count=2.
Some of the sensors (e.g. ov2640) encode the image itself, so this happens at the sensor and not in your board. If you would like to decode, use mp_jpeg for that.
I will upload a stub file for typing in the next days.