• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP Corrupted pics

Q&A Forum › ESP Corrupted pics
0 Vote Up Vote Down
Thomas Dimm asked 2 years ago

Hi!  Latest issue with esp 32 cam motion sensor and sending e-mail.  How do I fix attached email pics coming thru as partial pics or corrupted only when unit is placed in brite ( daylite) lite??

Question Tags: esp32 cam motion
11 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Partial picture might be caused by a weak wi-fi signal or insufficient power supply.
Can you send me an example of those pictures?
To share a picture, upload it to google drive, imgur or dropbox, and then share a link.
Can you tell me which project exactly are you following?
Regards,
Sara
 

0 Vote Up Vote Down
Thomas Dimm answered 2 years ago

https://mail.google.com/mail/u/0?ui=2&ik=2796ed14fd&attid=0.1&permmsgid=msg-f:1758722750207649300&th=18683d05f0866614&view=att&disp=safe

0 Vote Up Vote Down
Thomas Dimm answered 2 years ago

did you get the link
 

0 Vote Up Vote Down
Thomas Dimm answered 2 years ago

Its the app with motion detector and email. Sometimes the cam is in a fixed location and sends pics that are either partial like the link, crazy color mostly green, or sometimes split with the pieces reversed.  Also sends good pictures intermittantly. WIFI signal is strong and the unit works when i put it in lower lite.
 

0 Vote Up Vote Down
William Lucid answered 2 years ago

Hi Thomas,

Today’s camera, image sensors are very sensitive to low light levels and can easily be over exposed to use a film term.; where detail is washed out/distorted. I have a Wyse Cam v3 that gets Afternoon Sun; I have experienced the image sensor being overloaded; too much light.

Regards,
William

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi Thomas.
I couldn’t open the link. I think you didn’t share the right link.
Can you try again?
Regards,
Sara
 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
I’ve received your email with the picture.
What does your project do?
Does it go into deep sleep before taking a picture? Or is the camera always on?
Regards,
Sara

0 Vote Up Vote Down
Thomas Dimm answered 2 years ago

Hi Sara.  This is your program (Unit 2: Motion Detector with Photo
Capture and Email Notifications) which has the sleep function enabled.  Sometimes the picture is cut off, somethimes it is dscolored and sometimes it is jumbled with piecesscrambled and or upside down, Very weird!

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi again.
 
Some people complained about the quality of the first pictures taken by the camera when it wakes up from deep sleep.
 
So, we recently updated the code, so that it discards the first three pictures in the buffer. That should solve the issue. I’m not sure if you’re running the most recent version of the code…
 
The most recent version of the eBook is version 1.3.
Do you have something as below in your code?
do {
  // Take a photo with the camera
  Serial.println(“Taking a photo…”);
  //The first three pictures after restart have a green tint, discard
  those images
  for (int i = 0; i <=3; i++){
    camera_fb_t * fb = NULL;
    fb = esp_camera_fb_get();
    esp_camera_fb_return(fb); // dispose the buffered image
   }
  fb = NULL; // reset to capture errors
  // Get fresh image
  fb = esp_camera_fb_get();
  if(!fb) {
    Serial.println(“Camera capture failed”);
    delay(1000);
    ESP.restart();
}
 
Regards,
Sara
 

0 Vote Up Vote Down
Thomas Dimm answered 2 years ago

Sarsh I am looking at v 1.3 now and those code lines are not there?

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Are you sure???
This is the code with the changes: https://github.com/RuiSantosdotme/ESP32-CAM-eBook/blob/master/Code/Module_3/Motion_Detector_Photo_Email_NEW/Motion_Detector_Photo_Email_NEW.ino
Let me know if it solves the issue.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.