Problem of ESP32CAM

can anyone help me my esp32cam has no face recognition and face detection display botton I cannot enroll the face how to fix this
Please help me.

What code are you using, they removed that feature a while ago as it takes too much power.

1 Like

here try this code!

#include "esp_camera.h"
#include <WiFi.h>
#include <WebServer.h>
#include <esp_timer.h>
#include "img_converters.h"
#include "camera_index.h" // contains camera pinout

// Replace with your network credentials
const char* ssid = "YOUR_WIFI_SSID";
const char* password = "YOUR_WIFI_PASSWORD";

WebServer server(80);

// Camera configuration
#define CAMERA_MODEL_AI_THINKER // For AI Thinker ESP32-CAM (or other models, see camera_index.h)

#include "camera_pins.h" // Include the correct pins for your camera model

static esp_err_t camera_init() {
  camera_config_t config;
  config.ledc_channel = LEDC_CHANNEL_0;
  config.ledc_timer = LEDC_TIMER_0;
  config.pin_d0 = Y2_GPIO_NUM;
  config.pin_d1 = Y3_GPIO_NUM;
  config.pin_d2 = Y4_GPIO_NUM;
  config.pin_d3 = Y5_GPIO_NUM;
  config.pin_d4 = Y6_GPIO_NUM;
  config.pin_d5 = Y7_GPIO_NUM;
  config.pin_d6 = Y8_GPIO_NUM;
  config.pin_d7 = Y9_GPIO_NUM;
  config.pin_xclk = XCLK_GPIO_NUM;
  config.pin_pclk = PCLK_GPIO_NUM;
  config.pin_vsync = VSYNC_GPIO_NUM;
  config.pin_href = HREF_GPIO_NUM;
  config.pin_sscb_sda = SIOD_GPIO_NUM;
  config.

1 Like

Thank you! I will try this code

Can you give me the new code please that have face recognition and face detection display

Please, i need it now because this is for my project please help me

Support for facial recognition on ESP32CAM has been an on again, off again thing. It's highly dependent on both the specific board and version of ESP32 Arduino Core you're using. But, even when it "worked", it barely worked. The processing and resource load is very high.

1 Like

Can you please help me, what kind of board and what version of esp32cam because I bought 2cameras

I updated my ESP32CAM but still there’s no face recognition and face detection display botton

There isn't any; it takes too much resources, the ESP32 can't handle it.

2 Likes

Project, your project is you copying other peoples code? What career does that prepare you for?

2 Likes

Im just asking for help

But there is an esp32cam can face recognition and detection I see it in video’s

¿And why don't you consult the authors of the videos?

1 Like

He/sher didn’t reply to my chat

Please help me sir

Just teach me a tutorial sir

Tutorial for what?
They're telling you it doesn't work, and you insist it can because you've seen videos.
Well, ask the video authors how they did it.

Regards.

2 Likes

Thank you, and im sorry

I am sure there is, just use your search tools and look at the video links, I am sure they have a link to the code.
If this is too difficult, I think you need to re-think your career path. This kind of research is MUCH easier than trying to translate user requirements into code.