🚀 Production-grade facial recognition system for real-time identity verification using computer vision and machine learning
- 🎯 High-Accuracy Face Recognition using HOG + SVM pipeline
- ⚡ Real-Time Inference optimized for low-latency video streams
- 🐳 Dockerized Deployment for reproducible environments
- 🧱 Modular Architecture (Detection → Feature Extraction → Classification → Serving)
- 🎨 Interactive Dashboard with modern UI
- 📈 Designed for scalability and extensibility
Video Stream (Webcam)
↓
Face Detection (Haar Cascade / DNN)
↓
Preprocessing (Grayscale + Resize 64x64)
↓
Feature Extraction (HOG)
↓
Classification (SVM - RBF Kernel)
↓
Identity + Confidence Score
| Layer | Technology |
|---|---|
| Backend | Flask (Python 3.9+) |
| Computer Vision | OpenCV, Scikit-Image |
| ML Model | Scikit-Learn (SVM, HOG) |
| Model Persistence | Joblib |
| Deployment | Docker, Docker Compose |
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activatepip install -r requirements.txtpython -m app.main👉 Open: http://localhost:5000
docker-compose up --build- Linux → supported via
--device - Windows/Mac → recommended to run locally
dataset/
├── Alice/
├── Bob/
- Add 10–20 images per person
- Use varied angles and lighting
python model/train_model.py➡️ Outputs: model/svm_model.pkl
python scripts/enroll_user.pySteps:
- Enter user name
- Capture 10–20 images
- Auto-trains model
- Restart app
| Metric | Value |
|---|---|
| Latency | Real-time (~30 FPS depending on hardware) |
| Accuracy | High (depends on dataset quality) |
| Model Type | HOG + SVM (RBF Kernel) |
| Scalability | Medium (can upgrade to deep learning) |
-
HOG + SVM chosen for:
- Fast inference
- Low compute requirement
- Works well on small datasets
-
Flask Backend:
- Lightweight API serving
- Easy integration with UI
-
Docker:
- Consistent deployment
- Environment isolation
- Replace SVM with FaceNet / DeepFace embeddings
- Add FAISS / Vector DB for scalable identity matching
- Implement liveness detection
- Add JWT-based auth system
- GPU acceleration for inference
biometric-auth-system/
├── app/
├── model/
├── scripts/
├── dataset/
├── requirements.txt
└── docker-compose.yml
Raj Kalash Tiwari GitHub: https://github.com/rjkalash
✅ Functional real-time biometric authentication system ⚡ Ready for extension into production-grade identity systems
⭐ Star this repo if you found it useful!