How koradasainithin/face_recognition works
FaceAttend AI is a Flask student-attendance application whose central workflow captures a kiosk webcam frame, recognizes a registered face, and records a deduplicated attendance check-in. Separate enrollment, student management, filtered reporting/CSV export, and analytics capabilities serve administrators. The backend routes requests to the vision engine and SQLite data layer; browser scripts implement the kiosk and administrative views. Relationships for unsampled pages and endpoints are included only where the README documents the capability; source excerpts provide more specific call evidence for the sampled paths.
Main entry points: app.py Flask API · database.py Student management · base.html Shared layout · camera.js Live kiosk
Components 19
Web experience
- Live kiosk
static/js/camera.js - Enrollment studio
static/js/register.js - Records interface
static/js/records.js - Analytics dashboard
static/js/dashboard.js - Shared utilities
static/js/main.js - Kiosk view
templates/index.html - Enrollment view
templates/register.html - Records view
templates/records.html - Dashboard view
templates/dashboard.html - Shared layout
templates/base.html
Attendance workflow
- Face recognition
face_engine.py - Attendance records
database.py - Face snapshots
data/faces
Administration
- Student directory
templates/students.html - Student management
database.py - Analytics queries
database.py
Backend and data
- Flask API
app.py - SQLite database
data/attendance.db
Other components
- Browser user
Connections 32
- Browser user → Kiosk view: opens
README.md - Browser user → Enrollment view: opens
README.md - Browser user → Records view: opens
README.md - Browser user → Dashboard view: opens
README.md - Kiosk view → Shared layout: uses layout
- Enrollment view → Shared layout: uses layout
- Records view → Shared layout: uses layout
- Dashboard view → Shared layout: uses layout
- Kiosk view → Live kiosk: hosts
README.md - Enrollment view → Enrollment studio: hosts
README.md - Records view → Records interface: hosts
README.md - Dashboard view → Analytics dashboard: hosts
README.md - Live kiosk → Flask API: posts frames
README.md - Enrollment studio → Flask API: submits enrollment
static/js/register.js - Records interface → Flask API: requests filters
static/js/records.js - Records interface → Flask API: requests export
static/js/records.js - Analytics dashboard → Flask API: loads statistics
static/js/dashboard.js - Flask API → Face recognition: decodes and recognizes
app.py - Flask API → Student management: looks up students
app.py - Flask API → Attendance records: records check-ins
app.py - Flask API → Attendance records: filters and exports
app.py - Flask API → Analytics queries: requests statistics
README.md - Flask API → Student management: registers students
app.py - Flask API → Student management: deletes students
README.md - Student management → SQLite database: reads and writes
- Attendance records → SQLite database: reads and writes
- Analytics queries → SQLite database: queries
- Face recognition → Student management: loads enrollment data
face_engine.py - Face recognition → Face snapshots: reads snapshots
face_engine.py - Enrollment studio → Shared utilities: plays feedback
static/js/register.js - Live kiosk → Shared utilities: plays feedback
static/js/camera.js - Browser user → Student directory: manages students
README.md