How prabin0karki/facedetection works
This small OpenCV face-recognition application captures labeled face samples, trains an LBPH recognizer, then uses the saved model to identify faces from a camera feed. It also includes a separate live face-detection preview. The dataset and recognizer files are shown as shared state; source excerpts establish their paths, though they do not show direct calls between the scripts.
Main entry points: facetrain.py Model training · facedata.py Sample capture · facedect.py Face recognition
Components 6
Other components
- Sample capture
facedata.py - Face dataset
- Model training
facetrain.py - Trained recognizer
- Face recognition
facedect.py - Live detection
fa.py
Connections 4
- Sample capture → Face dataset: writes samples
facedata.py - Model training → Face dataset: reads samples
facetrain.py - Model training → Trained recognizer: saves model
facetrain.py - Face recognition → Trained recognizer: loads model
facedect.py