How quyenmcu/senior-project works
IrisMind is a Django fatigue-aware usage-based insurance decision-support app. Drivers register, start a session, submit browser-camera frames and smartphone telemetry, and view fatigue histories, risk summaries, and premium forecasts; staff get an overview. Source excerpts show the ingestion, detector, persistence, risk, and dashboard calls. The README documents charts and optional demo panels; unsampled presentation wiring is not inferred beyond those documented capabilities.
Main entry points: api.py Session and ingestion API · views.py Driver dashboard · models.py Driving records · services.py Risk summary
Components 15
Accounts
- Registration
apps/accounts/views.py - Registration form
apps/accounts/forms.py
Driving data
- Session and ingestion API
apps/driving/api.py - Camera fatigue detection
apps/driving/fatigue_detector.py - Driving records
apps/driving/models.py
Risk and forecasts
- Risk summary
apps/driving/services.py - Premium forecasts
apps/driving/services.py
Dashboards
- Driver dashboard
apps/dashboard/views.py - Staff overview
apps/dashboard/views.py - Demo telemetry summary
apps/dashboard/demo_data.py - Fatigue monitor page
apps/dashboard/views.py
Other components
- Driver
- Staff
- Browser camera
- Smartphone client
Connections 18
- Driver → Registration: registers
README.md - Registration → Registration form: validates with
apps/accounts/views.py - Driver → Session and ingestion API: submits session data
README.md - Smartphone client → Session and ingestion API: sends telemetry
README.md - Session and ingestion API → Driving records: creates records
apps/driving/api.py - Session and ingestion API → Camera fatigue detection: analyzes frames
apps/driving/api.py - Camera fatigue detection → Session and ingestion API: returns detection result
apps/driving/api.py - Browser camera → Fatigue monitor page: provides frames
- Driver → Fatigue monitor page: opens monitor
README.md - Driver dashboard → Risk summary: calculates risk
apps/dashboard/views.py - Risk summary → Driving records: queries events and profile
apps/driving/services.py - Driver dashboard → Premium forecasts: requests forecasts
apps/dashboard/views.py - Premium forecasts → Driving records: reads estimates
apps/driving/services.py - Driver → Driver dashboard: views history and forecasts
README.md - Driver dashboard → Demo telemetry summary: loads when telemetry absent
apps/dashboard/views.py - Staff → Staff overview: views summaries
README.md - Staff overview → Risk summary: summarizes users
apps/dashboard/views.py - Staff overview → Driving records: aggregates fatigue events
apps/dashboard/views.py