espressif / esp-who

Face detection and recognition framework
Other
1.64k stars 458 forks source link

Problem using EP32CAM AI THINKER with OV2640 (AIV-698) #293

Open ParasyteGS opened 4 weeks ago

ParasyteGS commented 4 weeks ago

Hello, I have a problem with the code recognition example, everything is going well but it does not scan the barcode or QR code that I put in front of it.

(280) quad_psram: This chip is ESP32-D0WD
I (281) esp_psram: Found 8MB PSRAM device
I (282) esp_psram: Speed: 80MHz
I (286) esp_psram: PSRAM initialized, cache is in low/high (2-core) mode.
W (293) esp_psram: Virtual address not enough for PSRAM, map as much as we can. 4MB is mapped
I (816) esp_psram: SPI SRAM memory test OK
I (824) cpu_start: Pro cpu start user code
I (824) cpu_start: cpu freq: 240000000 Hz
I (824) cpu_start: Application information:
I (827) cpu_start: Project name:     esp-code-recognition
I (833) cpu_start: App version:      v0.9.4-191-ge356eee-dirty
I (840) cpu_start: Compile time:     Jun  3 2024 21:09:52
I (846) cpu_start: ELF file SHA256:  e244b70d9...
I (851) cpu_start: ESP-IDF:          v5.2.1-dirty
I (857) cpu_start: Min chip rev:     v0.0
I (861) cpu_start: Max chip rev:     v3.99 
I (866) cpu_start: Chip rev:         v3.1
I (871) heap_init: Initializing. RAM available for dynamic allocation:
I (878) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (884) heap_init: At 3FFB3110 len 0002CEF0 (179 KiB): DRAM
I (891) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (897) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (903) heap_init: At 40092D1C len 0000D2E4 (52 KiB): IRAM
I (910) esp_psram: Adding pool of 4096K of PSRAM memory to heap allocator
I (918) spi_flash: detected chip: generic
I (922) spi_flash: flash io: qio
W (926) i2c: This driver is an old driver, please migrate your application code to adapt `driver/i2c_master.h`
I (937) main_task: Started on CPU0
I (947) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (947) main_task: Calling app_main()
I (947) app_peripherals: Camera module is AI-THINKER
I (957) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2 
I (967) cam_hal: cam init ok
I (967) sccb: pin_sda 26 pin_scl 27
I (967) sccb: sccb_i2c_port=0
I (977) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (987) main_task: Returned from app_main()
I (1017) camera: Detected camera at address=0x30
I (1017) camera: Detected OV2640 camera
I (1017) camera: Camera PID=0x26 VER=0x42 MIDL=0x7f MIDH=0xa2
I (1097) esp32 ll_cam: node_size: 3840, nodes_per_line: 1, lines_per_node: 2, dma_half_buffer_min:  3840, dma_half_buffer: 15360,lines_per_half_buffer:  8, dma_buffer_size: 30720, image_size: 115200
I (1097) cam_hal: buffer_size: 30720, half_buffer_size: 15360, node_buffer_size: 3840, node_cnt: 8, total_cnt: 7
I (1107) cam_hal: Allocating 115200 Byte frame buffer in PSRAM
I (1117) cam_hal: Allocating 115200 Byte frame buffer in PSRAM
I (1127) cam_hal: cam config ok
I (1127) ov2640: Set PLL: clk_2x: 0, clk_div: 3, pclk_auto: 1, pclk_div: 8