eloquentarduino / EloquentSurveillance

GNU General Public License v3.0
40 stars 10 forks source link

Truncated image #4

Open Alisofin opened 1 year ago

Alisofin commented 1 year ago

Hello, I use your library with an ESP32-CAM/OV2640 in SXGA format to detect a motion and send the image (I do not use the SD card at all) using camera.getBuffer() to get the buffer address and camera.getFileSize() to get the buffer length. Sometimes, the image gets truncated. What am I doing wrong ? Many thanks for your support.

mercuryeater commented 8 months ago

Hey @Alisofin hpe you are ok I'm having the same issue here, did you manage to solve it? I thought the issue was related to the image size, so I reduced it to XGA, but the problem still occurs sometimes, any ideas?

Alisofin commented 8 months ago

Hi @mercuryeater , everything works fine now, I even use camera.uxga (1600 x 1200) and camera.bestQuality. To be honest, I can't remember how I fixed it. What I know for sure is the following:

  1. Some ESP32-CAM have hardware issues. I suspect they are linked to the antenna. In this case, since I use the wifi for uploading the photos to a server, photos get truncated. So may be, you should try another store.
  2. Make sure the ESP32-CAM is properly powered. Use USB extension for this, with a power adaptor or a power bank. Cheers.