EloquentSurveillance icon indicating copy to clipboard operation
EloquentSurveillance copied to clipboard

Truncated image

Open Alisofin opened this issue 3 years ago • 2 comments

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.

Alisofin avatar Nov 11 '22 13:11 Alisofin

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?

mercuryeater avatar Dec 23 '23 02:12 mercuryeater

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.

Alisofin avatar Dec 29 '23 13:12 Alisofin