Esp32-cam heavily overexposes pictures
Posted: Sat Feb 05, 2022 9:23 am
Hi all,
I'm pointing my esp32-cam towards my garden and taking pictures every X minutes. Maybe half of the frame is sky, and the images come out soo overexposed that they are basically just white.
I'm using a simple piece of code like this:
https://pastebin.com/ihDePDSn
I've read to try to put a delay() before shooting (as in the code), to allow the camera to adjust the autoexposure.. but it doesn't work.
I tried to alternate delay() and esp_camera_fb_get() , e.g: for (1..N){delay;shoot},
with the idea to allow the ESP to adjust the exposure after few shots, but the ESP seem to crash if I use more than 2 shoots one after the other.
I also tried to manually unset the gain (set_gain_ctrl()) but nope..
I am a little bit at loss here.. can anyone suggest a good strategy?
Thanks!
FP
I'm pointing my esp32-cam towards my garden and taking pictures every X minutes. Maybe half of the frame is sky, and the images come out soo overexposed that they are basically just white.
I'm using a simple piece of code like this:
https://pastebin.com/ihDePDSn
I've read to try to put a delay() before shooting (as in the code), to allow the camera to adjust the autoexposure.. but it doesn't work.
I tried to alternate delay() and esp_camera_fb_get() , e.g: for (1..N){delay;shoot},
with the idea to allow the ESP to adjust the exposure after few shots, but the ESP seem to crash if I use more than 2 shoots one after the other.
I also tried to manually unset the gain (set_gain_ctrl()) but nope..
I am a little bit at loss here.. can anyone suggest a good strategy?
Thanks!
FP