How shreyasdebbarma-code/smart-classroom-attendance-cv works
This is an offline classroom attendance and security application. Its main workflow registers students and captures face samples, trains an LBPH recognizer, then uses live webcam recognition to classify students, log attendance, and optionally send events or unknown-face alerts. A separate group-photo workflow detects, annotates, and exports faces. The desktop control panel dispatches these tasks alongside standalone CLI scripts. Edges reflect README-documented workflows and shown calls; unsampled GUI dispatch details are not inferred beyond the documentation.
Main entry points: 3_attendance_system.py Live Recognition · 1_collect_data.py Student Capture · main_app.py Desktop Panel · 2_train_model.py LBPH Training
Components 17
Enrollment & Training
- Student Capture
1_collect_data.py - Face Samples
- Student Mapping
- LBPH Training
2_train_model.py - LBPH Weights
Live Attendance
- Live Recognition
3_attendance_system.py - Attendance Log
- Sheets Webhook
- Gmail Alerts
Photo Analysis
- Group Photo
- Photo Detection
4_group_analyzer.py - Annotation & Export
4_group_analyzer.py - Annotated Image
User Interface
- Desktop Panel
main_app.py
Other components
- Operator
- Webcam
- Haar Cascade
haarcascade_frontalface_default.xml
Connections 27
- Operator → Desktop Panel: launches
README.md - Operator → Student Capture: runs
README.md - Operator → LBPH Training: runs
README.md - Operator → Live Recognition: runs
README.md - Operator → Group Photo: provides
README.md - Desktop Panel → Student Capture: dispatches
README.md - Desktop Panel → LBPH Training: dispatches
README.md - Desktop Panel → Live Recognition: dispatches
README.md - Desktop Panel → Photo Detection: dispatches
README.md - Webcam → Student Capture: supplies frames
1_collect_data.py - Haar Cascade → Student Capture: detects faces
1_collect_data.py - Student Capture → Face Samples: writes samples
README.md - Student Capture → Student Mapping: writes names
1_collect_data.py - Face Samples → LBPH Training: loads samples
2_train_model.py - Student Mapping → LBPH Training: reads mapping
2_train_model.py - LBPH Training → LBPH Weights: saves model
2_train_model.py - Webcam → Live Recognition: supplies frames
README.md - Haar Cascade → Live Recognition: detects faces
README.md - LBPH Weights → Live Recognition: loads model
README.md - Student Mapping → Live Recognition: resolves labels
README.md - Live Recognition → Attendance Log: logs attendance
README.md - Live Recognition → Sheets Webhook: posts events
3_attendance_system.py - Live Recognition → Gmail Alerts: alerts unknowns
3_attendance_system.py - Group Photo → Photo Detection: loads image
4_group_analyzer.py - Haar Cascade → Photo Detection: detects faces
4_group_analyzer.py - Photo Detection → Annotation & Export: passes detections
4_group_analyzer.py - Annotation & Export → Annotated Image: saves image
README.md