How madhusudandesai1/attendancemonitor works
Student Lab Detector is a Flask attendance-monitoring application. In the principal workflow, a webcam feed is processed by the YOLO detector; Flask exposes the annotated stream and current count, combines the count with the active Excel schedule, and saves attendance to SQLite. Separate report and analytics views expose stored records and summaries, with Excel export and schedule editing. The README also documents dynamic scheduling and analytics; the analytics helper’s implementation was not sampled, so its internal data flow is not asserted.
Main entry points: app.py Flask routes · database.py Attendance database · generate_dummy_data.py Sample data generator · excel_handler.py Schedule operations
Components 18
Web interface
- Live dashboard
templates/index.html - Reports view
templates/reports.html - Analytics view
templates/analytics.html - Dashboard interactions
static/js/script.js - Chart visualizations
static/js/chart.js - Flask routes
app.py - Interface styling
static/css/style.css
Detection and attendance
- YOLO detector
detection.py - Runtime configuration
config.py
Schedules and records
- Class schedule
data/schedule.xlsx - Schedule operations
excel_handler.py - Attendance database
database.py - Sample data generator
generate_dummy_data.py
Analytics and exports
- Analytics calculations
analytics_helper.py - Excel report export
app.py
Other components
- Instructor
- Browser
- Webcam
Connections 29
- Instructor → Browser: uses
README.md - Browser → Flask routes: requests pages
README.md - Flask routes → Live dashboard: renders
app.py - Flask routes → Reports view: renders
app.py - Flask routes → Analytics view: renders
app.py - Live dashboard → Dashboard interactions: loads
- Dashboard interactions → Flask routes: fetches status
static/js/script.js - Dashboard interactions → Flask routes: posts schedule
static/js/script.js - Flask routes → YOLO detector: starts and reads
app.py - Flask routes → YOLO detector: streams frames
app.py - Webcam → YOLO detector: provides video
detection.py - YOLO detector → Runtime configuration: uses settings
- Flask routes → Schedule operations: gets session
app.py - Flask routes → Schedule operations: adds class
app.py - Schedule operations → Runtime configuration: reads path
excel_handler.py - Schedule operations → Class schedule: reads and updates
excel_handler.py - Flask routes → Attendance database: saves count
app.py - Flask routes → Attendance database: gets logs
app.py - Attendance database → Runtime configuration: uses database path
database.py - Flask routes → Analytics calculations: requests analytics
app.py - Flask routes → Excel report export: serves export
app.py - Excel report export → Attendance database: queries logs
app.py - Excel report export → Class schedule: reads expected counts
app.py - Flask routes → Sample data generator: triggers generation
app.py - Sample data generator → Runtime configuration: uses file paths
generate_dummy_data.py - Sample data generator → Class schedule: writes schedule
generate_dummy_data.py - Sample data generator → Attendance database: writes sample logs
- Analytics view → Chart visualizations: displays charts
- Browser → Interface styling: loads styling