donny681 / ESP32_CAMERA_QR

Apache License 2.0
628 stars 226 forks source link

Camera Size err #45

Open danielc007 opened 3 years ago

danielc007 commented 3 years ago

I got the lastest code today, used the CMakeLists.txt from jungu009 mentioned in https://github.com/donny681/ESP32_CAMERA_QR/issues/42 I've done this in app_main.c as mentioned in Readme under the QR Recognition section:

define CAMERA_PIXEL_FORMAT CAMERA_PF_GRAYSCALE

define CAMERA_FRAME_SIZE CAMERA_FS_QVGA

and I changed static ip4_addr_t s_ip_addr; to static esp_ip4_addr_t s_ip_addr; in app_main.c to make it compile

"Enable test pattern on camera output" is enabled.

When I run and capture a QR code by hitting http://xxx.xxx..xxx.xxx/pgm, I get camera size err as below. The captured photo size is not beyond VGA size limit.

I (5841) camera_demo: Free heap: 134560 I (5841) camera_demo: Camera demo ready I (20571) camera: Frame 0 done in 88 ms I (20781) camera_demo: Free heap: 128940 I (20781) QR: Camera Size err

Anyone know how to solve this? I am using OV2640 on AI thinker board. Thank you in advance.

danielc007 commented 3 years ago

Attached is a capture done at QVGA. I know the board and camera work normally if it's not on QVGA setting.

capture (17)