I try to capture two images with different light scenarios by using the ESP32 camera driver. My code looks like the following example:
Code: Select all
camera_config_t CameraConfig;
...
CameraConfig.fb_count = 2;
esp_camera_init(&CameraConfig);
Image1 = esp_camera_fb_get();
...
Image2 = esp_camera_fb_get();
...
<Transmit image 2>
...
esp_camera_fb_return(Image1);
esp_camera_fb_return(Image2);
Does anybody know this issue? I have implemented a workaround with a single frame buffer for the driver and a copy process of each image, but I don´t really like this solution.