A complete face recognition system with enrollment, detection, and real-time recognition capabilities.
pip install opencv-python opencv-contrib-python numpy pillow
📸 Face enrollment with metadata
🎥 Real-time webcam recognition
📁 Automatic data storage (images + pickle)
👤 User management interface
Run main.py to launch the application
Choose between:
Enroll New User: Capture face samples
Start Recognition: Real-time detection
View Users: Browse enrolled persons
🏗️ System Architecture
Key ----> Action SPACE ----> Capture face sample ESC ----> Cancel enrollment Q ----> Exit recognition
Face Detection: Haar Cascades
Recognition: LBPH (Local Binary Patterns Histograms)
Resolution: 640x480 (default)
FPS: ~30 (depending on hardware)
Ensure good lighting conditions
Face the camera directly during enrollment
Capture multiple angles (5 samples recommended)
Keep background uncluttered
Camera not working?
Try different camera indexes (0, 1, 2)
Check webcam permissions
Poor recognition?
Re-enroll with better samples
Adjust recognition threshold
MIT License - Free for personal and commercial use