donny681/ESP32_CAMERA_QR

Camera Size err

danielc007 opened this issue · 1 comments

I got the lastest code today, used the CMakeLists.txt from jungu009 mentioned in #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.

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

capture (17)