How mbsaravanakumar2006-dotcom/attention_monitor works
This is a Flask-based classroom attention monitor. Its main workflow captures classroom video, identifies and tracks students, analyzes gaze and posture, classifies attention, and records behavior changes for dashboards and student reports. The graph preserves the documented analytics, alerts, student administration, and access control. Some subsystem links rely on the README or SOURCE INDEX; unsampled implementation details are not inferred beyond those references.
Main entry points: detector.py Attention detector · routes.py Web routes · models.py Student and event models · app.py Application startup
Components 20
Video analysis
- Attention detector
app/core/detector.py - Face recognition
app/core/face_recognition.py - Student tracker
app/core/tracker.py - Posture analysis
app/core/posture.py - Gaze analysis
app/core/gaze.py - Behavior classification
app/core/fusion.py
Attention records
- Event logger
app/core/event_logger.py - Student and event models
app/models.py - SQLite database
instance/attention.db
Web application
- Application startup
app.py - Web routes
app/routes.py - Live alerts
app/events.py
User interface
- Classroom dashboard
app/templates/dashboard.html - Dashboard interactions
app/static/js/dashboard.js - Student analytics
app/templates/report.html - Report visualizations
app/static/js/report.js - Student management views
app/templates/manage_students.html - Admin login view
app/templates/login.html
Other components
- Classroom camera
- Administrator
Connections 22
- Classroom camera → Attention detector: provides frames
README.md - Application startup → Attention detector: starts pipeline
app.py - Attention detector → Face recognition: identifies students
app/core/detector.py - Attention detector → Student tracker: tracks students
app/core/detector.py - Attention detector → Posture analysis: analyzes posture
app/core/detector.py - Attention detector → Gaze analysis: analyzes gaze
app/core/detector.py - Attention detector → Behavior classification: classifies behavior
app/core/detector.py - Attention detector → Event logger: logs changes
app/core/detector.py - Event logger → Student and event models: records events
app/core/event_logger.py - Application startup → SQLite database: creates tables
app.py - Web routes → Student and event models: queries and updates
app/routes.py - Web routes → Attention detector: streams frames
app/routes.py - Web routes → Attention detector: re-trains recognition
app/routes.py - Administrator → Web routes: uses secured routes
README.md - Web routes → Admin login view: renders login
app/routes.py - Web routes → Classroom dashboard: renders dashboard
README.md - Web routes → Student analytics: serves analytics
README.md - Web routes → Student management views: renders management
app/routes.py - Classroom dashboard → Dashboard interactions: uses interactions
README.md - Student analytics → Report visualizations: uses visualizations
README.md - Attention detector → Live alerts: emits alerts
README.md - Student and event models → SQLite database: persists records