Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Face Detection in CameraWebServer Example Not Working in 2.0.3 #6508

Closed
1 task done
HaydenHu opened this issue Mar 31, 2022 · 5 comments · Fixed by #6603
Closed
1 task done

Face Detection in CameraWebServer Example Not Working in 2.0.3 #6508

HaydenHu opened this issue Mar 31, 2022 · 5 comments · Fixed by #6603
Assignees
Milestone

Comments

@HaydenHu
Copy link

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.
@HaydenHu HaydenHu added the Status: Awaiting triage Issue is waiting for triage label Mar 31, 2022
@VojtechBartoska VojtechBartoska added this to the 2.0.3 milestone Mar 31, 2022
@VojtechBartoska VojtechBartoska 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. labels Mar 31, 2022
@me-no-dev
Copy link
Member

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

@VojtechBartoska VojtechBartoska added Status: Opened and removed Status: Awaiting triage Issue is waiting for triage labels Apr 1, 2022
@Lupo-Grigio
Copy link

@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.

Jason2866 added a commit to tasmota/arduino-esp32 that referenced this issue Apr 21, 2022
* Delete stale.yml

* IDF release/v4.4 b8050b365e (espressif#6594)

* Update camera example to support face detection and recognition (espressif#6603)

Fixes: espressif#6508

* Change pinMode OUTPUT to INPUT_OUTPUT (espressif#6602)

* Change OUTPUT to INPUT_OUTPUT

To match the official Arduino API.

* Changed type of LEDC frequency from double to uint32_t (espressif#6570)

* BUGFIX: FS read + speed improvements for SD (espressif#6569)

* Revert "Edited VFSFileImpl::read to use both read/fread (espressif#6456)"

This reverts commit 7b89b39.

* Added default file buffer size + function to change it by user

* workflows/publish.yml: Run the workflow on success and failure only. (espressif#6531)

* workflows/publish.yml: Run the workflow on success and failure only.
This prevents trying to run when the trigger was cancelled or skipped.
In these cases there will be no event file to upload.

Signed-off-by: Abdelatif Guettouche <[email protected]>

* scripts/sketch_utils.sh: Move the logic that gets the build dir after
the part that retrieves the arguments.

Signed-off-by: Abdelatif Guettouche <[email protected]>

* workflows/hil.yml: Update the HIL runners tags.

Signed-off-by: Abdelatif Guettouche <[email protected]>

* workflows/hil.yml: Remove the Check Artifacts step.  That was only
useful for debugging.

Signed-off-by: Abdelatif Guettouche <[email protected]>

* Pull request/Issue Templates and Readme update (espressif#6577)

* Templates and readme

* Templates_and_readme

* Delete libraries/RainMaker directory

* Delete tools/sdk/esp32/include/esp_rainmaker directory

* Delete tools/sdk/esp32s2/include/esp_rainmaker directory

* Delete tools/sdk/esp32s3/include/esp_rainmaker directory

* Delete tools/sdk/esp32c3/include/esp_rainmaker directory

Co-authored-by: Me No Dev <[email protected]>
Co-authored-by: Jan Procházka <[email protected]>
Co-authored-by: Abdelatif Guettouche <[email protected]>
Co-authored-by: Vojtěch Bartoška <[email protected]>
Jason2866 added a commit to tasmota/arduino-esp32 that referenced this issue Apr 24, 2022
* Delete stale.yml

* IDF release/v4.4 b8050b365e (espressif#6594)

* Update camera example to support face detection and recognition (espressif#6603)

Fixes: espressif#6508

* Change pinMode OUTPUT to INPUT_OUTPUT (espressif#6602)

* Change OUTPUT to INPUT_OUTPUT

To match the official Arduino API.

* Changed type of LEDC frequency from double to uint32_t (espressif#6570)

* BUGFIX: FS read + speed improvements for SD (espressif#6569)

* Revert "Edited VFSFileImpl::read to use both read/fread (espressif#6456)"

This reverts commit 7b89b39.

* Added default file buffer size + function to change it by user

* workflows/publish.yml: Run the workflow on success and failure only. (espressif#6531)

* workflows/publish.yml: Run the workflow on success and failure only.
This prevents trying to run when the trigger was cancelled or skipped.
In these cases there will be no event file to upload.

Signed-off-by: Abdelatif Guettouche <[email protected]>

* scripts/sketch_utils.sh: Move the logic that gets the build dir after
the part that retrieves the arguments.

Signed-off-by: Abdelatif Guettouche <[email protected]>

* workflows/hil.yml: Update the HIL runners tags.

Signed-off-by: Abdelatif Guettouche <[email protected]>

* workflows/hil.yml: Remove the Check Artifacts step.  That was only
useful for debugging.

Signed-off-by: Abdelatif Guettouche <[email protected]>

* Pull request/Issue Templates and Readme update (espressif#6577)

Co-authored-by: Me No Dev <[email protected]>
Co-authored-by: Jan Procházka <[email protected]>
Co-authored-by: Abdelatif Guettouche <[email protected]>
Co-authored-by: Vojtěch Bartoška <[email protected]>
@qq547176052
Copy link

我也碰到这个问题,应该怎么解决呢

@HaydenHu
Copy link
Author

我也碰到这个问题,应该怎么解决呢

升级最新版本就可以了,不过只支持S3的人脸识别,如果你是S2或者ESP32就退回1.06版本才行,新版本不支持

@VojtechBartoska
Copy link
Collaborator

Hello, please keep in mind main and only language of this repository is English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

5 participants