donny681 / ESP32_CAMERA_QR

Apache License 2.0
628 stars 226 forks source link

QR code Not scanning #46

Open jalakamkiran opened 3 years ago

jalakamkiran commented 3 years ago

Hey. I am trying to scan the qr code but somehow its not recognizing the qr code. I have followed the steps as in the read me doc.

image The above image is the change as suggested in read me doc for the definitions.

image Here is image downloaded from the pgm url of single image.

The logs: ` --- idf_monitor on COM4 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:4 load:0x3fff0034,len:7012 load:0x40078000,len:13072 load:0x40080400,len:3896 0x40080400: _init at ??:?

entry 0x40080688 I (28) boot: ESP-IDF v4.1-dirty 2nd stage bootloader I (28) boot: compile time 22:22:34 I (29) boot: chip revision: 1 I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (39) boot.esp32: SPI Speed : 40MHz I (43) boot.esp32: SPI Mode : DIO I (48) boot.esp32: SPI Flash Size : 4MB I (52) boot: Enabling RNG early entropy source... I (58) boot: Partition Table: I (61) boot: ## Label Usage Type ST Offset Length I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (76) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (84) boot: 2 factory factory app 00 00 00010000 00100000 I (91) boot: End of partition table I (95) boot_comm: chip revision: 1, min. application chip revision: 0 I (102) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1c9bc (117180) map I (156) esp_image: segment 1: paddr=0x0002c9e4 vaddr=0x3ffb0000 size=0x03634 ( 13876) load I (162) esp_image: segment 2: paddr=0x00030020 vaddr=0x400d0020 size=0x7e3a8 (517032) map 0x400d0020: _stext at ??:?

I (360) esp_image: segment 3: paddr=0x000ae3d0 vaddr=0x3ffb3634 size=0x002dc ( 732) load I (360) esp_image: segment 4: paddr=0x000ae6b4 vaddr=0x40080000 size=0x00404 ( 1028) load 0x40080000: _WindowOverflow4 at C:/Users/JalakamKiran/Desktop/esp-idf/components/freertos/xtensa_vectors.S:1778

I (367) esp_image: segment 5: paddr=0x000aeac0 vaddr=0x40080404 size=0x15838 ( 88120) load I (425) boot: Loaded app from partition at offset 0x10000 I (425) boot: Disabling RNG early entropy source... I (426) cpu_start: Pro cpu up. I (429) cpu_start: Application information: I (434) cpu_start: Project name: ESP32_CAMERA_QR I (440) cpu_start: App version: v4.1-dirty I (445) cpu_start: Compile time: Oct 21 2020 22:26:51 I (451) cpu_start: ELF file SHA256: ce53ae8fe3d22bd2... I (457) cpu_start: ESP-IDF: v4.1-dirty I (462) cpu_start: Starting app cpu, entry point is 0x40081324 0x40081324: call_start_cpu1 at C:/Users/JalakamKiran/Desktop/esp-idf/components/esp32/cpu_start.c:271

I (0) cpu_start: App cpu up. I (473) heap_init: Initializing. RAM available for dynamic allocation: I (479) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (486) heap_init: At 3FFB9260 len 00026DA0 (155 KiB): DRAM I (492) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (498) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (505) heap_init: At 40095C3C len 0000A3C4 (40 KiB): IRAM I (511) cpu_start: Pro cpu start user code I (529) spi_flash: detected chip: generic I (529) spi_flash: flash io: dio I (530) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (581) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=8 I (581) I2S: PLL_D2: Req RATE: 78125, real rate: 78125.000, BITS: 16, CLKM: 8, BCK: 8, MCLK: 20000000.000, SCLK: 2500000.000000, diva: 64, divb: 0 I (591) camera_xclk: PIN_CTRL before:3ff,78125 I (601) camera_xclk: PIN_CTRL after:7fff I (4661) camera_demo: Detected OV2640 camera, using JPEG format I (4821) wifi:wifi driver task: 3ffd7fb8, prio:23, stack:6656, core=0 I (4821) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (4821) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (4841) wifi:wifi firmware version: 3ea4c76 I (4841) wifi:config NVS flash: enabled I (4841) wifi:config nano formating: disabled I (4851) wifi:Init dynamic tx buffer num: 32 I (4851) wifi:Init data frame dynamic rx buffer num: 32 I (4851) wifi:Init management frame dynamic rx buffer num: 32 I (4861) wifi:Init management short buffer num: 32 I (4861) wifi:Init static tx buffer num: 16 I (4871) wifi:Init static rx buffer size: 1600 I (4871) wifi:Init static rx buffer num: 10 I (4881) wifi:Init dynamic rx buffer num: 32 I (4971) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0 I (4971) wifi:mode : sta (fc:f5:c4:2f:f7:bc) I (4971) wifi:Set ps type: 0

I (4971) camera_demo: Let Connecting to "KFC" I (5101) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1 I (5101) wifi:state: init -> auth (b0) I (5101) wifi:state: auth -> assoc (0) I (5111) wifi:state: assoc -> run (10) I (5121) wifi:state: run -> init (3c0) I (5121) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1 I (5121) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1 I (7301) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1 I (7301) wifi:state: init -> auth (b0) I (7301) wifi:state: auth -> assoc (0) I (7311) wifi:state: assoc -> run (10) I (7331) wifi:connected with KFC, aid = 2, channel 6, BW20, bssid = 7a:34:1a:48:0f:ed I (7331) wifi:security: WPA2-PSK, phy: bgn, rssi: -41 I (7331) wifi:pm start, type: 0

I (7411) wifi:AP's beacon interval = 102400 us, DTIM period = 2 I (8301) esp_netif_handlers: sta ip: 192.168.43.97, mask: 255.255.255.0, gw: 192.168.43.1 I (8301) camera_demo: Connected I (8301) camera_demo: Open http://192.168.43.97/pgm for a single image/x-portable-graymap image I (8311) camera_demo: Free heap: 106924 I (8311) camera_demo: Camera demo ready`

Even after showing the image for more than a minute the module is not able to recognize it. Please help. Thanks in advance,

argo9 commented 2 years ago

exactly the same problem here, also with a better pgm image. capture (5)

Seems that the piece of code running the qr recognition doesn't start. Compiled with ESP IDF 4.3.1 With the old IDF 4.0 doesn't compile.

Thanks!

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6816
load:0x40078000,len:14260
ho 0 tail 12 room 4
load:0x40080400,len:3684
entry 0x40080674
I (29) boot: ESP-IDF v4.3 2nd stage bootloader
I (29) boot: compile time 15:55:38
I (29) boot: chip revision: 1
I (31) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed      : 40MHz
I (43) boot.esp32: SPI Mode       : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (52) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (61) boot: ## Label            Usage          Type ST Offset   Length
I (69) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (76) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (83) boot:  2 factory          factory app      00 00 00010000 00100000
I (91) boot: End of partition table
I (95) boot_comm: chip revision: 1, min. application chip revision: 0
I (102) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1b0f8h (110840) map
I (153) esp_image: segment 1: paddr=0002b120 vaddr=3ffb0000 size=04314h ( 17172) load
I (160) esp_image: segment 2: paddr=0002f43c vaddr=40080000 size=00bdch (  3036) load
I (161) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=8221ch (533020) map
I (368) esp_image: segment 4: paddr=000b2244 vaddr=40080bdc size=152fch ( 86780) load
I (405) esp_image: segment 5: paddr=000c7548 vaddr=50000000 size=00010h (    16) load
I (417) boot: Loaded app from partition at offset 0x10000
I (418) boot: Disabling RNG early entropy source...
I (429) cpu_start: Pro cpu up.
I (429) cpu_start: Starting app cpu, entry point is 0x40081280
I (415) cpu_start: App cpu up.
I (444) cpu_start: Pro cpu start user code
I (444) cpu_start: cpu freq: 240000000
I (444) cpu_start: Application information:
I (448) cpu_start: Project name:     esp32-cam-demo
I (454) cpu_start: App version:      0d87564-dirty
I (459) cpu_start: Compile time:     Sep 15 2021 15:55:47
I (465) cpu_start: ELF file SHA256:  1cbce2291583ed62...
I (471) cpu_start: ESP-IDF:          v4.3
I (476) heap_init: Initializing. RAM available for dynamic allocation:
I (483) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (489) heap_init: At 3FFB8010 len 00027FF0 (159 KiB): DRAM
I (495) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (502) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (508) heap_init: At 40095ED8 len 0000A128 (40 KiB): IRAM
I (515) spi_flash: detected chip: generic
I (519) spi_flash: flash io: dio
I (524) sleep: Configure to isolate all GPIO pins in sleep state
I (530) sleep: Enable automatic switching of GPIO sleep configuration
I (537) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (605) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=8
I (605) I2S: PLL_D2: Req RATE: 39062, real rate: 39062.000, BITS: 16, CLKM: 16, BCK: 8, MCLK: 10000000.000, SCLK: 1249984.000000, diva: 64, divb: 0
I (615) camera_xclk: PIN_CTRL before:7fff,39062
I (615) camera_xclk: PIN_CTRL after:7fff
I (4685) camera_demo: Detected OV2640 camera, using JPEG format
I (5035) system_api: Base MAC address is not set
I (5035) system_api: read default base MAC address from EFUSE
I (5045) wifi_init: rx ba win: 6
I (5045) wifi_init: tcpip mbox: 32
I (5045) wifi_init: udp mbox: 6
I (5045) wifi_init: tcp mbox: 6
I (5055) wifi_init: tcp tx win: 5744
I (5055) wifi_init: tcp rx win: 5744
I (5065) wifi_init: tcp mss: 1436
I (5065) wifi_init: WiFi IRAM OP enabled
I (5075) wifi_init: WiFi RX IRAM OP enabled
I (5075) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (5165) camera_demo: Connecting to "test"
W (5215) wifi:<ba-add>idx:0 (ifx:0, 08:55:31:cd:d0:60), tid:0, ssn:3, winSize:64
I (6025) esp_netif_handlers: sta ip: 192.168.0.187, mask: 255.255.255.0, gw: 192.168.0.1
I (6025) camera_demo: Connected
I (6025) camera_demo: Open http://192.168.0.187/pgm for a single image/x-portable-graymap image
I (6035) camera_demo: Free heap: 110712
I (6035) camera_demo: Camera demo ready

`