How kkanistan06/face-recognition works
This is a small OpenCV face-recognition application with two scripts: one captures and stores face crops, and the other builds a recognizer from stored images and runs recognition on a webcam stream. The recognition script uses FisherFaces, despite the README describing LBPH. The README also describes training and recognition scripts that are absent from the tree; the graph follows the sampled scripts and omits those undocumented implementation details.
Main entry points: face_recognize.py Recognition loop · create_data.py Capture loop · datasets Face images · haarcascade_frontalface_default.xml Face detector
Components 11
Face capture
- Capture loop
Face Recognition/create_data.py - Capture webcam
Face Recognition/create_data.py - Face detector
Face Recognition/haarcascade_frontalface_default.xml
Recognition runtime
- Recognition loop
Face Recognition/face_recognize.py - FisherFace model
Face Recognition/face_recognize.py - Recognition webcam
Face Recognition/face_recognize.py - Face detector
Face Recognition/haarcascade_frontalface_default.xml - Annotated video
Face Recognition/face_recognize.py - Unknown snapshot
Face Recognition/face_recognize.py
Image storage
- Face images
Face Recognition/datasets
Other components
- Operator
Connections 10
- Capture loop → Capture webcam: reads frames
Face Recognition/create_data.py - Capture loop → Face detector: loads detector
Face Recognition/create_data.py - Capture loop → Face images: writes face crops
Face Recognition/create_data.py - Recognition loop → Face images: reads images
Face Recognition/face_recognize.py - Recognition loop → FisherFace model: trains model
Face Recognition/face_recognize.py - Recognition loop → Recognition webcam: reads frames
Face Recognition/face_recognize.py - Recognition loop → Face detector: loads detector
Face Recognition/face_recognize.py - Recognition loop → FisherFace model: predicts faces
Face Recognition/face_recognize.py - Recognition loop → Annotated video: displays results
Face Recognition/face_recognize.py - Recognition loop → Unknown snapshot: saves unknown frame
Face Recognition/face_recognize.py