How rs9313399-dot/my-face-recognizer works
This is a small webcam-based personal face recognizer. The user collects face samples, then runs a live workflow that loads or trains an LBPH model, detects and classifies faces, displays results, and saves captures. The source is two scripts rather than separate layers, so nodes represent their actual runtime responsibilities. Relationships are based on the shown code and README; no separate dataset or model implementation is present.
Main entry points: train_and_detect.py Recognition workflow · collect_faces.py Face sample capture
Components 10
Sample collection
- Face sample capture
collect_faces.py
Live recognition
- Recognition workflow
train_and_detect.py - LBPH training
train_and_detect.py - Face detection and matching
train_and_detect.py - Live display and controls
train_and_detect.py - Audio alert
train_and_detect.py
Local artifacts
- Face image dataset
- LBPH model
- Saved captures
Other components
- User
Connections 13
- User → Face sample capture: starts collection
README.md - Face sample capture → Face image dataset: writes samples
collect_faces.py - User → Recognition workflow: starts recognition
README.md - Recognition workflow → LBPH training: trains if needed
train_and_detect.py - LBPH training → Face image dataset: reads samples
train_and_detect.py - LBPH training → LBPH model: saves model
train_and_detect.py - Recognition workflow → LBPH model: loads existing model
train_and_detect.py - Recognition workflow → Face detection and matching: runs webcam recognition
train_and_detect.py - Face detection and matching → Live display and controls: draws results
train_and_detect.py - Face detection and matching → Saved captures: auto-saves matches
train_and_detect.py - Live display and controls → Saved captures: saves on keypress
train_and_detect.py - Face detection and matching → Audio alert: alerts on match
train_and_detect.py - User → Live display and controls: uses controls
README.md