Closed Wolfleader101 closed 2 years ago
this code takes the first image out of the camera. When the camera starts, it needs a few seconds to get the white balance, etc. auto-adjusted. Delay 5 seconds before takeNewPhoto(path);
Hi, I get the same issue waiting 20 seconds with same settings and last driver, do you have any idea where the issue could come from? Thank you
I have the same issue as well using the same code. I'm uploading the image to GCP and they look dark and green. It's not a sensor problem because the images look ok on the camerawebserver.
Hi, i have this same problem, any solution jet???
Hi, my solution was to take the second picture taken by the camera. To do so, I increased the .fb_count = 3, and important I changed .grab_mode = CAMERA_GRAB_LATEST so it take the last picture
Hi, i have this same problem , I think that this problem is caused by the use of EEPROM. If the file naming is done in another way, the problem will be solved.
With a warm-up loop it fixes the green tint for me.
// Warm-up loop to discard first few frames for (int i = 0; i < 100; i++) { camera_fb_t * fb = esp_camera_fb_get(); if (!fb) { Serial.println("Failed to capture frame"); continue; } esp_camera_fb_return(fb); }
// Here I take the picture I will use: camera_fb_t *fb = esp_camera_fb_get();
With a warm-up loop it fixes the green tint for me.
// Warm-up loop to discard first few frames for (int i = 0; i < 100; i++) { camera_fb_t * fb = esp_camera_fb_get(); if (!fb) { Serial.println("Failed to capture frame"); continue; } esp_camera_fb_return(fb); }
// Here I take the picture I will use: camera_fb_t *fb = esp_camera_fb_get();
throwing out the first 100 frames also worked well for me. I assume this is due to the many 'auto' things like white balance, exposure control, etc., that likely require at least a handful or more of images to do the filtering/calibration from. In dark conditions (or variable light), I was still getting weird photos after the first 30 frames sometimes. Things seem to be fairly stable and repeatable after the first 100 :)
Hello,
For some reason, any pictures I take with the esp32 cam have a green tint to them when saving to an SD card. I do not have this issue with the web server example and have even copied code snippets from the web server.
Example from Web Server:
Example when saving to SD Card:
Here is the code I am using: