Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Truncated image #4

Open
Alisofin opened this issue Nov 11, 2022 · 2 comments
Open

Truncated image #4

Alisofin opened this issue Nov 11, 2022 · 2 comments

Comments

@Alisofin
Copy link

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
Copy link

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants