esp32 cam corrupt i...
 
Notifications
Clear all

[Solved] esp32 cam corrupt image

2 Posts
1 Users
0 Likes
882 Views
(@davidl)
Member
Joined: 2 years ago
Posts: 39
Topic starter  

Hi,

I seem to be getting corrupt images from the ESP32 cam and I'm hoping somebody here can point me in the right direction.

I'm going through the "Getting started with the ESP32-CAM" tutorial and everything works great until I try to view an image, either through streaming or getting a "still".  In both streaming mode and still mode, the web page shows a red circle with an X and an icon that represents an image. 

Initially I tried getting images while connected to the FTDI (FTDI in 5 volt mode and connected to the esp32 5 volt pin).  The Serial monitor shows that I'm downloading MPEGs (typically about 25 frames per second) when the application is in streaming mode. I saved a couple of the still images and tried opening with Irfanview, but Irfanview says that the images are corrupt.   The image sizes are either 26,400 bytes or 12,000 bytes.  I've opened the images in a text editor and see the JPG header, so it seems to be returning some kind of image.

I've tried getting images while connected to the FTDI, and getting images with the esp32 cam connected to a breadboard with 5 volts power.

I've also tried removing and re-inserting the camera, but that didn't do anything.

I'm getting sporadic "SCCB_Write Failed" errors, but they will usually go away after a few reboots.  I get the same results whether or not the application is reporting any errors.

Any help is appreciated.

Thanks!

David

 

I should have added that I'm using the Aideepen ESP32 Cam.  I have not attached the external antenna, but since it's getting to the web page, I'm assuming the internal antenna is sufficient.

 

 


   
Quote
Topic Tags
(@davidl)
Member
Joined: 2 years ago
Posts: 39
Topic starter  

I think I just had a bad camera.  I had ordered two units, so I replaced the camera with the camera from the second esp32 and it worked fine.  


   
ReplyQuote