This project is a real-time drowsiness detection system using OpenCV, Dlib, and Scipy. The system monitors a person's eye aspect ratio (EAR) and triggers an alarm if drowsiness is detected.
- Detects drowsiness based on eye aspect ratio
- Uses facial landmarks for precise eye detection
- Plays an alarm sound when drowsiness is detected
- Works with a webcam for real-time monitoring
Ensure you have the following dependencies installed:
- Python 3.x
- OpenCV (
cv2) - Dlib
- Scipy
- Imutils
- Playsound
- Threading