This project demonstrates real-time face detection using OpenCV and Flask. It captures live video from the user's camera, processes it to detect faces using OpenCV's Haar Cascade Classifier, and streams the video with annotated face detections back to the client using Flask and Socket.IO.
Before running this project, ensure you have the following installed:
pip install flask)pip install opencv-python)pip install flask-socketio)Clone the repository:
git clone https://github.com/Tinny-Robot/Real-Time-Face-Detection-with-Opencv-and-Flask.git
cd Real-Time-Face-Detection-with-Opencv-and-FlaskInstall dependencies:
pip install -r requirements.txtRun the application:
python app.pyOpen your browser:
Open your web browser and go to http://localhost:5000 to see real-time face detection in action.
Contributions are welcome! If you'd like to improve this project or add new features, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.