Page 1 of 1

issues with examples/human_face_recognition on esp-eye

Posted: Thu Nov 25, 2021 10:26 am
by jacob96
Hey,
I'm trying to do face recognition on an esp-eye and set it up with home-assistant for presence detection.
So far I'm having trouble running the example code examples/human_face_recognition getting this error:

Code: Select all

I (27) boot: ESP-IDF v4.3.1-dirty 2nd stage bootloader
I (27) boot: compile time 10:58:06
I (27) boot: chip revision: 1
I (30) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (37) qio_mode: Enabling default flash chip QIO
I (43) boot.esp32: SPI Speed      : 80MHz
I (47) boot.esp32: SPI Mode       : QIO
I (52) boot.esp32: SPI Flash Size : 4MB
I (56) boot: Enabling RNG early entropy source...
I (62) boot: Partition Table:
I (65) boot: ## Label            Usage          Type ST Offset   Length
I (73) boot:  0 factory          factory app      00 00 00010000 003c0000
I (80) boot:  1 nvs              WiFi data        01 02 003d0000 00004000
I (88) boot:  2 fr               unknown          20 20 003e0000 00020000
I (95) boot: End of partition table
I (99) boot_comm: chip revision: 1, min. application chip revision: 0
I (106) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=2abb04h (2800388) map
I (945) esp_image: segment 1: paddr=002bbb2c vaddr=3ffbdb60 size=04210h ( 16912) load
I (950) esp_image: segment 2: paddr=002bfd44 vaddr=40080000 size=002d4h (   724) load
I (951) esp_image: segment 3: paddr=002c0020 vaddr=400d0020 size=79dech (499180) map
I (1107) esp_image: segment 4: paddr=00339e14 vaddr=400802d4 size=14e10h ( 85520) load
I (1136) esp_image: segment 5: paddr=0034ec2c vaddr=50000000 size=00010h (    16) load
I (1147) boot: Loaded app from partition at offset 0x10000
I (1148) boot: Disabling RNG early entropy source...
I (1159) psram: This chip is ESP32-D0WD
I (1160) spiram: Found 64MBit SPI RAM device
I (1160) spiram: SPI RAM mode: flash 80m sram 80m
I (1165) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (1172) cpu_start: Pro cpu up.
I (1176) cpu_start: Starting app cpu, entry point is 0x400816fc
0x400816fc: call_start_cpu1 at C:/repo/esp/esp-idf/components/esp_system/port/cpu_start.c:141

I (0) cpu_start: App cpu up.
I (1673) spiram: SPI SRAM memory test OK
I (1681) cpu_start: Pro cpu start user code
I (1681) cpu_start: cpu freq: 240000000
I (1681) cpu_start: Application information:
I (1684) cpu_start: Project name:     human_face_recognition_terminal
I (1691) cpu_start: App version:      v0.9.3-125-g0135616-dirty
I (1698) cpu_start: Compile time:     Nov 25 2021 10:57:47
I (1704) cpu_start: ELF file SHA256:  8ec99ddccb1f76bd...
I (1710) cpu_start: ESP-IDF:          v4.3.1-dirty
I (1716) heap_init: Initializing. RAM available for dynamic allocation:
I (1723) heap_init: At 3FFAE6E0 len 0000F480 (61 KiB): DRAM
I (1729) heap_init: At 3FFC6FD0 len 00019030 (100 KiB): DRAM
I (1736) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1742) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1749) heap_init: At 400950E4 len 0000AF1C (43 KiB): IRAM
I (1755) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1763) spi_flash: detected chip: generic
I (1768) spi_flash: flash io: qio
I (1782) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1783) who_camera: Camera module is Wrover Kit
I (1783) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2
I (1793) cam_hal: cam init ok
I (1793) sccb: pin_sda 26 pin_scl 27
E (1883) camera: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND)
E (1883) who_camera: Camera init failed with error 0x105
I (1883) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
E (1893) gpio: gpio_install_isr_service(460): GPIO isr service already installed
I can't figure out why this is since I have not made any modifications to the code.
In the menuconfig I tried to select both WROVER-kit, ESP-EYE, ESP-S3-EYE all failing on "GPIO isr service already installed".
Anyone who can help with this? :-)

Re: issues with examples/human_face_recognition on esp-eye

Posted: Fri Nov 26, 2021 3:08 am
by Momandai
Hi
1. This error does not affect the operation of the program,If you are using the ESP32 development board, you can delete this code “gpio_install_isr_service(0);” (in “esp-who/components/modules/button/who_button.c, line 91”) to fix this error.

2. The human face recognition example does not print the result of face detection,You can use the boot key to realize face recognition.

3. If your program crashes after pressing the Boot button, this is caused by the camera data acquisition timeout. You can fix this problem temporarily by defining “FB_GET_TIMEOUT”(in esp-who/components/esp32-camera/driver/esp_camera.c, line 297) to "portMAX_DELAY".