A real-time computer vision system that monitors a driver's eye aspect ratio (EAR) to detect signs of drowsiness and alert them with a warning sound.
- Python 3.x
- OpenCV
- Dlib
- SciPy
- playsound
- Uses facial landmarks to locate eyes
- Calculates Eye Aspect Ratio (EAR)
- Triggers an alert if eyes remain closed too long
shape_predictor_68_face_landmarks.dat
is required. Download it here and extract it in the project root.- A sample video/image dataset can be placed inside the
dataset/
folder for testing.
- Clone the repo
- Install dependencies:
pip install -r requirements.txt