I installed subj with ov2640 for watching but sometimes I obtain corrupted in such way picture (loss horiz sync?)
XCLK 20Mhz. no divided on PLL resl 640x480
What is the cause of this? What is the reason? Does it bug of camera?ESP32-CAM sends corrupted picture
-
- Posts: 6
- Joined: Mon May 20, 2019 1:12 am
Re: ESP32-CAM sends corrupted picture
I'm having the same issue. I think it is because the SPI RAM speed is not fast enough?
My setting:
resolution is 1600x1200.
When I use a lower resolution with low quality without allocating frame buffer from SPI RAM, the image seems fine. Or at least the chances of getting corrupted images are much less.(Haven't tested it for long time yet.)
I took over 60,000 photos with ESP32-CAM (not Ai-thinker version, but a copy), around 1% of them are corrupted.
My setting:
Code: Select all
.frame_size = FRAMESIZE_UXGA, //QQVGA-UXGA Do not use sizes above QVGA when not JPEG
.jpeg_quality = 3,
When I use a lower resolution with low quality without allocating frame buffer from SPI RAM, the image seems fine. Or at least the chances of getting corrupted images are much less.(Haven't tested it for long time yet.)
I took over 60,000 photos with ESP32-CAM (not Ai-thinker version, but a copy), around 1% of them are corrupted.
Re: ESP32-CAM sends corrupted picture
I suspect that LEDC which feeds XCLK and I2C use the various timers and it can cause synchronization issues. I've been playing with the ov2640 registers and noticed that as less errors as higher PCLK. Now I check structure of obtained JPEG and skip corrupted. It allows avoiding 80% spoiled pictures.
Re: ESP32-CAM sends corrupted picture
It was solved by a very strange way. I just added the call of ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE)); after ESP_ERROR_CHECK( esp_wifi_start() );
No one corrupted picture hasn't appeared since while.
No one corrupted picture hasn't appeared since while.
Re: ESP32-CAM sends corrupted picture
I am completelly new on ESP32. I used the example of the esp32-cam, and i have all the images corrupted when using the higher resolution. In the better case, the upper half of the image is correct, but the lower if black or other color.
I readed your solution what, may be could help me as well, but o do not know where you added the call "ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE));"
I do not found the "ESP_ERROR_CHECK( esp_wifi_start() );" in the sketch. Is it in a library? Where should i apply your solution?
Thanks in advance.
I readed your solution what, may be could help me as well, but o do not know where you added the call "ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE));"
I do not found the "ESP_ERROR_CHECK( esp_wifi_start() );" in the sketch. Is it in a library? Where should i apply your solution?
Thanks in advance.
Re: ESP32-CAM sends corrupted picture
I have also got corrupted jpeg for ov2640 camera. Can anyone help in this issue? Attached is the corrupted jpeg
- Attachments
-
- corruptedPhoto.jpg (525.17 KiB) Viewed 8109 times
Who is online
Users browsing this forum: No registered users and 30 guests