How ganga07-code/drowse-guard---driver-distraction-detection-system works
DrowseGuard is a browser-based drowsiness-monitoring prototype. The user starts detection, grants camera access, and the app loads MediaPipe, analyzes webcam frames for eye closure and gaze, updates live metrics and alerts, and can export in-memory session logs as CSV. The graph preserves the documented UI, tracking, alert, and export capabilities. The source excerpt is partial, so links for unsampled internal behavior are omitted; README-described external model loading is shown as documented.
Main entry points: app.js Detection engine · index.html Dashboard and controls · style.css Responsive presentation
Components 11
Dashboard interface
- Dashboard and controls
index.html - Responsive presentation
style.css
Detection and analysis
- Detection engine
app.js - MediaPipe model
- Webcam
- Landmark analysis
app.js
Session feedback
- Session metrics
app.js - Alerts and prompts
app.js - CSV export
app.js - In-memory session logs
app.js
Other components
- User
Connections 15
- User → Dashboard and controls: operates
README.md - Dashboard and controls → Detection engine: loads
README.md - Dashboard and controls → Responsive presentation: loads
README.md - User → Detection engine: starts detection
app.js - Detection engine → Webcam: requests frames
app.js - Detection engine → MediaPipe model: loads model
README.md - Detection engine → Landmark analysis: processes frames
app.js - Landmark analysis → Session metrics: updates
app.js - Landmark analysis → Alerts and prompts: triggers
app.js - Detection engine → In-memory session logs: records samples
app.js - Detection engine → In-memory session logs: records alerts
app.js - User → CSV export: exports
app.js - CSV export → In-memory session logs: reads
app.js - Session metrics → Dashboard and controls: displays
- Alerts and prompts → Dashboard and controls: displays