This program is designed to enhance security and monitoring systems by detecting faces in real-time. When a face is detected, it plays an alarm sound and returns an alert in the command prompt. The program utilizes computer vision and machine learning techniques to accurately identify faces.
Features Real-time Face Detection: Utilizes a webcam or an external camera to monitor and detect faces in real-time. Alarm System: Plays an alarm sound when a face is detected to alert the user. Command Prompt Alerts: Displays an alert message in the command prompt upon detecting a face. Customizable Settings: Allows users to customize the sensitivity and parameters of the face detection algorithm. Logging: Logs the date and time of each face detection event for record-keeping and analysis. Platform Compatibility: Compatible with various operating systems including Windows, macOS, and Linux. Prerequisites Python 3.x OpenCV library numpy library pyaudio library (for playing alarm sound) Installation
Clone the repository
git clone https://github.com/annuaicoder/Face-Detection-Program.git cd Face-Detection-Program
python -m venv env cd env source bin/activate
Executing the program
Move out of the virtual env
cd ..
chmod +x setup.sh
./setup.sh
I posted a youtube video for this face detection script