A real-time driver monitoring system that detects drowsiness and sleepiness using computer vision and triggers an alert to prevent accidents! π
π Eye Blink Detection: Tracks eye landmarks using Dlib and OpenCV.
β± Real-time Monitoring: Continuously analyzes driverβs face through webcam.
π Audio Alerts: Plays sound alerts for drowsy or sleeping states.
π Driver Status: Classifies driver as Active, Drowsy, or Sleeping with visual cues.
π― Accurate Detection: Uses blink ratio thresholds to detect fatigue reliably.
-
Language: Python
-
Libraries: OpenCV, Dlib, NumPy, Imutils, SimpleAudio
-
Models: shape_predictor_68_face_landmarks.dat (facial landmarks)
-
Clone this repository.
-
Install required packages: pip install opencv-python dlib imutils numpy simpleaudio
-
Download shape_predictor_68_face_landmarks.dat and place it in the project folder.
-
Run the script: python drowsy_driver_detection.py
-
Look into the webcam and see real-time status updates and audio alerts.