A network camera project using ESP32-CAM and RTSP protocol with Python-based video processing capabilities.
- Real-time video streaming using RTSP protocol
- Video reception and processing with Python
- Face detection using OpenCV
- ESP32-CAM
- USB-TTL Serial converter
- Arduino IDE 2.0 or later
- Python 3.8 or later
- OpenCV 4.0 or later
-
ESP32-CAM Configuration
// Configure WiFi settings in wifi_config.h const char* ssid = "Your_SSID"; const char* password = "Your_Password";
-
Programming ESP32-CAM
- Open esp32_rtsp.ino in Arduino IDE
- Set board to "AI Thinker ESP32-CAM"
- Connect ESP32-CAM in programming mode
- Upload the sketch
-
Python Environment Setup
pip install opencv-python
- Power up ESP32-CAM
- Check IP address in Serial Monitor
- Configure RTSP URL in Python script
RTSP_URL = f"rtsp://{ESP_IP}:8554/mjpeg/1"
- Run Python script
python view.py
- Camera initialization error
- Press reset button on ESP32-CAM
- Connection error
- Verify WiFi settings and IP address
MIT License
Issues and Pull Requests are welcome.