espressif / esp32-camera

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setting frame size to 96*96 failed

Farzinkh opened this issue · comments

I am using ESP32_CAM and ESP_IDF v4.4.1, there is no problem,except when I set frame size to 96*96 error below shows up and other frame sizes are just fine.

`W (28923) cam_hal: NO-EOI

W (28955) cam_hal: FB-OVF

W (28955) cam_hal: NO-EOI

W (28995) cam_hal: FB-OVF

W (28995) cam_hal: NO-EOI

W (29035) cam_hal: FB-OVF

W (29035) cam_hal: NO-EOI

...

W (32923) cam_hal: Failed to get the frame on time!

E (44423) camera: Camera capture failed

`
how can i fix this?
regards,

Maybe the current camera driver does not allow this size to be configured.
Could you tell me what model sensor you are using?

Maybe the current camera driver does not allow this size to be configured. Could you tell me what model sensor you are using?

I am using default camera sensor which is OV2640.
I have to say this problem only exist if pixformat is set to PIXFORMAT_JPEG , I have tried PIXFORMAT_GRAYSCALE without any problem.

I ran into similar. I think the root of the problem is that the PIXFORMAT_JPEG doesn't allocate enough space in some circumstances.

Changing this line from / 5 to / 4 worked for me.
https://github.com/espressif/esp32-camera/blob/master/driver/cam_hal.c#L376

Another option is possibly to increase your quality value into the 14+ range.

I'm haven't played with JPEGs enough to know a better estimate of space right off, but it might be something to look into.

This issue appears to be stale. Please close it if its no longer valid.