A real-time face recognition system built using Python and OpenCV.
It captures faces through a webcam, trains a model using the LBPH (Local Binary Patterns Histograms) algorithm, and recognizes faces in live video streams. The system is designed to be easy to set up and extend for multiple users.
✅ Face dataset creation
✅ Haar Cascade face detection
✅ LBPH face recognition
✅ Real-time identification
✅ Confidence score display
✅ Model persistence (trainer.yml)
- Capture images using webcam
- Detect faces
- Save cropped grayscale images
- Store in
dataset/
- Load images from dataset
- Extract labels from filenames
- Train using LBPH algorithm
- Save trained model in
trainer/
- Detect faces in real time
- Predict ID using trained model
- Display name and confidence percentage
- Python
- OpenCV
- NumPy
- PIL
- Haar Cascade
- LBPH Algorithm
Face_Recognition_System/ │ ├── dataset/ ├── trainer/ │ └── trainer.yml ├── capture_faces.py ├── train_model.py └── recognize_faces.py
- Attendance system using MySQL
- Timestamp logging
- Deep learning-based recognition (CNN)
- Web deployment