ESP32-CAM Face detection|Face Recognition - Black keyhole

welcome to our keyhole, we provide you various knowledge from various sources such as Electric&Electronic, Health, Arduino, IOT, Diy projects, A/l past paper and model paper, Even though you can keep in touch with current technology

ESP32-CAM Face detection|Face Recognition

Share This

 






This tutorial is a quick getting started guide for the ESP32-CAM board. I have used ESP32-CAM board for face detection and video recognization using simple example code is given in arduino esp32 library.

Componenets

      ESP32-CAM board: it also features a microSD card slot that can be useful to store images taken with the camera or to store files to serve to clients.

      FTDI programmer: The ESP32-CAM doesn’t come with a USB connector, so you need an FTDI programmer to upload code.

      jumper wires


ESP32-CAM web server for video recognization

   Next You need to add on ESP32 in your Arduino IDE.

  •              In your Arduino IDE, go to FilePreferences
  •              Enter https://dl.espressif.com/dl/package_esp32_index.json into the “Additional Board Manager URLs” field as shown in the figure below. Then, click the “OK” button. if you already have esp8266 board separate the links using a comma.

  •               Open the Boards Manager. Go to Tools > Board > Boards Manager
  •               Search for ESP32 and press install button for the “ESP32 by Espressif Systems


 In your Arduino IDE, go to File Examples ESP32 Camera and open the CameraWebServer example.

Before uploading the code You need to insert your Netework credentials as SSID and password. then make sure to select the correct camera module. In this case I have used AI-THINKER Model. so uncomment the other modules.

ESP32-CAM Upload Code

    
connection
SP32-CAM         
FTDI Programmer
GNDGND
5VVCC (5V)
U0RTX
U0TRX
GPIO 0GND
 

     GPIO 0 needs to be connected to GND then you can able to upload the code to the ESP32-CAM board.


To upload the code, follow the next steps:

1) Go to Tools Board and select AI-Thinker ESP32-CAM.

2) Go to Tools Port and select the COM port the ESP32 is connected to.

3) Then, click the upload button to upload the code.

4) When you start to see these dots on the debugging window, press the ESP32-CAM on-board RST button.

After uploading the code disconnect GPIO 0 from GND. Open the Serial Monitor at a baud rate of 115200. Press the ESP32-CAM on-board Reset button.

The ESP32 IP address should be printed in the Serial Monitor.

You can make Bussiness queries by using the business queries section. You can find that at the bottom of this page

  • You can make queries related to place ads, product placement, and advertising
  • make project queries related to DIY project section (college and school students for their projects) 

  Check here my previous post

Error fixing

   When I was uploading code, I faced some errors with the wifi connection and USB cable. so to solve this issue I used Arduino to give 5v power supply to my ESP-32 CAM module because the USB cable didn't provide enough voltage to my ESP32-CAM module.

Accessing the Video Streaming Server

       Open your browser then past your ESP32-CAM Ip address in your search bar. Press the Start Streaming button to start video streaming.

You also have the option to take photos by clicking the Get Still button. Unfortunately, this example doesn’t save the photos, but you can modify it to use the on board microSD Card to store the captured photos.

face recognition and detection

  First, you need to enroll a new face. It will make several attempts to save the face. After enrolling a new user, it should detect the face later on. After saving the face, when you show a new face it will show an intruder alert message on the video stream

Hope you have liked this post and don't forget to share between who aspires to make these kinds of project







No comments:

Post a Comment

business queries

Pages