This project streams video from an ESP32-CAM and performs face detection using OpenCV in Python.
The ESP32-CAM is a cost-effective board with a built-in camera capable of streaming video over Wi-Fi. This project demonstrates how to use OpenCV to detect faces in real-time from the video stream provided by the ESP32-CAM.
- ESP32-CAM (AI Thinker model)
- USB-to-Serial adapter (for flashing the ESP32-CAM)
- Arduino IDE or PlatformIO for uploading the ESP32-CAM code
- Python 3.x with OpenCV library
This setup can be used for simple home security systems, smart doorbells, or any application requiring face detection on a live video stream.
-
Set up the ESP32-CAM:
- Upload the provided ESP32-CAM code using Arduino IDE or PlatformIO.
- Connect the ESP32-CAM to your Wi-Fi network.
-
Run the Python script:
- Use the provided Python script to connect to the ESP32-CAM's video stream.
- OpenCV will detect and highlight faces in the video feed.