Skip to content

Face Detection in CameraWebServer Example Not Working in 2.0.3 #6508

Closed
@HaydenHu

Description

@HaydenHu

Board

ESP32-CAM

Device Description

CAMERA_MODEL_AI_THINKER ESP32-CAM

Hardware Configuration

#define SIOD_GPIO_NUM 26
#define SIOC_GPIO_NUM 27

Version

latest master

IDE Name

arduino IDE

Operating System

win10

Flash frequency

40MHZ

PSRAM enabled

yes

Upload speed

115200

Description

image

Sketch

#define CAMERA_MODEL_AI_THINKER // Has PSRAM

Debug Message

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:1
load:0x3fff0030,len:1344
load:0x40078000,len:13516
load:0x40080400,len:3604

entry 0x400805f0
[m�um2-hal-cpu.c:214] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[   842][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled



[  1122][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 0 - WIFI_READY
[  1223][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 2 - STA_START
...

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Activity

added this to the 2.0.3 milestone on Mar 31, 2022
added
Priority: High 🗻Issues with high priority which needs to be solved first.
and removed
Priority: High 🗻Issues with high priority which needs to be solved first.
on Mar 31, 2022
me-no-dev

me-no-dev commented on Mar 31, 2022

@me-no-dev
Member

yes, the API for image recognition changed and we need to update the examples. It will be done.

Lupo-Grigio

Lupo-Grigio commented on Apr 5, 2022

@Lupo-Grigio

@me-no-dev Thank you. I can add a little bit of info to this issue. Under Arduino IDE 2.0.0.rc5 and Arduino IDE 1.8.19
If you enable face detection or recognition by either one or both of the following #define

#define CONFIG_ESP_FACE_DETECT_ENABLED 1
#define CONFIG_ESP_FACE_RECOGNITION_ENABLED 1

causes 2 files to be included that do not exist
In the file app_httpd.cpp starting at 34

#if CONFIG_ESP_FACE_DETECT_ENABLED

#include "fd_forward.h"

#if CONFIG_ESP_FACE_RECOGNITION_ENABLED
#include "fr_forward.h"

#define ENROLL_CONFIRM_TIMES 5
#define FACE_ID_SAVE_NUMBER 7
#endif

Those files where #included in earlier versions of the sample, but it appears that the files where never placed in the sample directory. Looks like they existed somewhere in the face detection library. I've briefly looked for they the espressif github repo but came up empty. I will continue searching as my active project uses face detection and when I moved to 2.0.2 to get working I2C functionality, face detection broke.

Am happy to help any way I can. I've got 4 or 5 of the cam modules various types.

moved this from Todo to Under investigation in Arduino ESP32 Core Project Roadmapon Apr 11, 2022
moved this from Under investigation to In Review in Arduino ESP32 Core Project Roadmapon Apr 21, 2022

8 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Face Detection in CameraWebServer Example Not Working in 2.0.3 · Issue #6508 · espressif/arduino-esp32