e-candeloro/Driver-State-Detection
A real time, webcam based, driver attention state detection/monitoring system in Python3 using OpenCV and Mediapipe
Detects five distinct driver states (normal, tired, asleep, looking away, distracted) by computing Eye Aspect Ratio, gaze direction, and head pose from 478 Mediapipe face keypoints and iris landmarks. Uses OpenCV's solvePnP for 3D head pose estimation against a canonical face model, then applies rolling PERCLOS (percentage of eyelid closure over time) with decay-based temporal smoothing to reduce false positives. Includes configurable thresholds via command-line arguments for production adaptation across different vehicle setups.
143 stars. No commits in the last 6 months.
Stars
143
Forks
36
Language
Python
License
MIT
Category
Last pushed
Apr 10, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/computer-vision/e-candeloro/Driver-State-Detection"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
Gagandeep-2003/driver-drowsiness-detection-system
AI-powered Driver Drowsiness Detection System using Computer Vision & Machine Learning for...
Boubker10/SafeDriveVision
SafeDriveVision is a computer vision project aimed at enhancing road safety. This project...
daved01/Driver-Assistant
A vision-based driver assistant for iOS.
AnshumanSrivastava108/Real-Time-Drowsiness-Detection-System
A car safety technology that can auto-detect driver drowsiness in real-time. This system can...
KaerMorh/fatigue-driving-detection
Do not trust any DL code in your car