Real-Time Face Detection and Sketch Generation
Introduction
This is a simple Flask application that streams video from a webcam while performing facial recognition using OpenCV’s Haar Cascade Classifier. The application captures video frames, detects faces, and displays them on a web page in real-time.
Table of Contents
Getting Started
To get started with this facial recognition video streaming app, follow the instructions below.
Prerequisites
Make sure you have the following installed:
- Python 3.x
- Flask
- OpenCV
Installation
Clone the repository:
1
git clone https://github.com/your-username/FaceDetectionApp.git
Navigate to the project directory:
1
cd FaceDetectionApp
Install the required dependencies:
1
pip install -r requirements.txt
Usage
Run the Flask application:
1
python app.py
Open your web browser and go to http://localhost:5000/ to access the facial recognition video streaming page.
Navigate to the
/video_feed
route to view the live video stream with facial recognition.
Customization
If you want to customize the application or integrate it with a different camera source, you can modify the following files:
app.py
: Main application file containing the Flask routes.camera.py
: Module defining theVideoCamera
class responsible for capturing video frames and performing facial recognition.
Feel free to explore and adapt the code to meet your specific facial recognition requirements. Feel free to reach out if you have any questions or need further assistance with this facial recognition video streaming app!