How jerwingubat/facenet-facerecognition works
This repository provides webcam face recognition in a standalone script and a PyQt desktop application that adds attendance management. The main workflow is to load labeled face images, detect and embed faces from camera frames, match embeddings, then display recognition results; the desktop flow also records check-ins and supports check-outs and attendance review. Recognition history/current-state CSVs are implemented in faceNet.py, while attendance records are handled separately in attendance.py. The desktop excerpt is partial, so links to its recognition and attendance dependencies are supported by the source index and shown calls, not a complete inspection of its worker implementation.
Main entry points: faceNet.py Face Recognition Engine · desktop_app.py Desktop UI · app.py Standalone App · attendance.py Attendance Rules
Components 12
Face Recognition
- Known Face Images
people - Standalone App
app.py - Face Recognition Engine
faceNet.py
Desktop Experience
- Desktop UI
desktop_app.py - Camera Worker
desktop_app.py - Attendance View
desktop_app.py
Recognition Records
- Recognition History
recognition_log.csv - Current Recognitions
current_recognitions.csv
Attendance
- Attendance Rules
attendance.py - Attendance Records
attendance.csv
Other components
- Operator
- Webcam
Connections 17
- Operator → Standalone App: runs
README.md - Operator → Desktop UI: operates
desktop_app.py - Webcam → Standalone App: supplies frames
app.py - Webcam → Camera Worker: supplies frames
- Known Face Images → Standalone App: loads images
app.py - Standalone App → Standalone App: detects and matches
app.py - Known Face Images → Face Recognition Engine: loads images
faceNet.py - Face Recognition Engine → Face Recognition Engine: detects and matches
faceNet.py - Desktop UI → Camera Worker: starts worker
desktop_app.py - Desktop UI → Face Recognition Engine: loads embeddings
desktop_app.py - Camera Worker → Attendance Rules: checks in and out
desktop_app.py - Desktop UI → Attendance Rules: requests records
desktop_app.py - Attendance Rules → Attendance Records: reads and writes
attendance.py - Desktop UI → Attendance View: renders records
desktop_app.py - Attendance Rules → Attendance View: returns today's records
desktop_app.py - Face Recognition Engine → Recognition History: appends detections
faceNet.py - Face Recognition Engine → Current Recognitions: updates latest match
faceNet.py