A real-time Face Recognition System built using Python and OpenCV.
The project detects faces from a webcam feed, collects training data, trains a recognizer model, and performs real-time identification.
- Real-time face detection using Haar Cascade
- Face dataset collection from webcam
- Image preprocessing (resize, grayscale, normalization)
- Face recognition using LBPH algorithm
- Confidence score-based prediction
- Support for unknown face detection
- Simple and modular pipeline
-
Data Collection
- Capture face images using webcam
- Store dataset per person in labeled folders
-
Preprocessing
- Convert to grayscale
- Resize images to fixed dimensions
- Apply histogram equalization / filtering
-
Feature Extraction
- LBPH (Local Binary Pattern Histogram)
-
Model Training
- Train LBPH recognizer on collected dataset
-
Real-Time Recognition
- Detect face from webcam stream
- Predict identity and display confidence score
- Python
- OpenCV
- NumPy
- LBPH Face Recognizer
git clone https://github.com/your-username/face-recognition-system.git
cd face-recognition-system
pip install opencv-python numpy opencv-contrib-python