How praveen-asml24026/face-recognition-attendance works
A small, single-file webcam attendance application. It loads named reference images, computes face encodings, then repeatedly captures and downscales webcam frames, detects and matches faces, displays recognized names, and records each person once in a CSV. All runtime responsibilities are implemented in main.py; the README documents the image folder and CSV as inputs and output. The documented workflow is supported, but internal steps share one source file, so edges cite that file rather than implying separate modules.
Main entry points: main.py Face matching
Components 12
Recognition workflow
- Reference images
- Image loader
main.py - Known encodings
main.py - Webcam
- Frame processing
main.py - Face detection
main.py - Face matching
main.py - Visual feedback
main.py
Attendance output
- Duplicate prevention
main.py - Timestamp generation
main.py - Attendance CSV
Other components
- Operator
Connections 13
- Operator → Image loader: provides images
README.md - Reference images → Image loader: loads images
README.md - Image loader → Known encodings: encodes faces
main.py - Operator → Webcam: starts capture
README.md - Webcam → Frame processing: streams frames
main.py - Frame processing → Face detection: detects faces
main.py - Face detection → Face matching: encodes locations
main.py - Known encodings → Face matching: compares faces
main.py - Face matching → Visual feedback: renders match
main.py - Face matching → Duplicate prevention: logs match
main.py - Duplicate prevention → Attendance CSV: reads and writes
main.py - Duplicate prevention → Timestamp generation: requests time
main.py - Timestamp generation → Duplicate prevention: returns time
main.py