How hassan-487/facial-detection_attendance-system works
This is a camera-based facial-recognition attendance system with a Flask service, SQLite storage, a kiosk client, and an administrator dashboard. The main workflow captures a face, performs a blink-based liveness check at the kiosk, submits the image for server-side recognition, records attendance, and may alert the administrator for after-hours activity. Enrollment and administrative user/log management are separate workflows. The excerpts show these client-to-service calls and server responsibilities; the README documents the broader capabilities, but the supplied tree has different client filenames than its project-structure example.
Main entry points: server.py HTTP API routes · admindashboard.py Admin dashboard · attendance_client.py Attendance kiosk · enrollment_client.py Enrollment client
Components 16
Client applications
- Attendance kiosk
attendance_client.py - Enrollment client
enrollment_client.py - Admin dashboard
admindashboard.py
Attendance service
- HTTP API routes
server.py - System mode
server.py
Recognition and identity
- Image decoding
server.py - Face embeddings
server.py - Identity matching
server.py - Credential and embedding security
server.py
Records and alerts
- SQLite records
server.py - Attendance logging
server.py - After-hours detection
server.py
Other components
- Attendance user
- Administrator
- Camera
- Email service
Connections 25
- Attendance user → Attendance kiosk: uses
README.md - Camera → Attendance kiosk: captures frames
attendance_client.py - Attendance kiosk → Attendance kiosk: checks blinks
attendance_client.py - Attendance kiosk → System mode: polls mode
attendance_client.py - Attendance kiosk → HTTP API routes: submits image
attendance_client.py - Administrator → Admin dashboard: uses
README.md - Admin dashboard → HTTP API routes: authenticates
admindashboard.py - Admin dashboard → System mode: sets mode
admindashboard.py - Admin dashboard → HTTP API routes: requests enrollment
admindashboard.py - Admin dashboard → HTTP API routes: fetches logs
admindashboard.py - Admin dashboard → HTTP API routes: manages users
admindashboard.py - Camera → Enrollment client: captures image
enrollment_client.py - Enrollment client → HTTP API routes: submits enrollment
enrollment_client.py - HTTP API routes → System mode: reads mode
server.py - HTTP API routes → Image decoding: decodes image
server.py - HTTP API routes → Face embeddings: requests embedding
server.py - Face embeddings → Identity matching: provides vector
server.py - HTTP API routes → Credential and embedding security: hashes credentials
server.py - HTTP API routes → Credential and embedding security: encrypts embeddings
server.py - HTTP API routes → SQLite records: reads and writes
server.py - HTTP API routes → Identity matching: matches identity
server.py - HTTP API routes → Attendance logging: records match
server.py - Attendance logging → SQLite records: inserts log
server.py - HTTP API routes → After-hours detection: checks hours
server.py - After-hours detection → Email service: sends alert
server.py