The Driver Drowsiness Detection System is designed to enhance road safety by detecting drowsiness in drivers and alerting them in real-time. This project utilizes computer vision techniques to monitor the driver's eyes for signs of drowsiness. When drowsiness is detected, the system triggers an alert to prompt the driver to take necessary actions.
-
Clone this repository to your local machine:
git clone https://github.com/ChaitanyaChilukuri663/Driver_Drowsiness_Detection.git
-
Install the required dependencies:
pip install opencv-python dlib scipy pydub simpleaudio
-
Download the pre-trained facial landmark predictor file 'shape_predictor_68_face_landmarks.dat' from the dlib website and place it in the project directory.
-
Navigate to the project directory:
cd driver-drowsiness-detection
-
Run the drowsiness detection script:
python drowsiness_detection.py
-
The system uses your webcam to capture video frames and analyze the driver's eyes for drowsiness.
-
If the driver's eyes are closed for an extended period, an audible alert will play.
-
Press the 'Esc' key to exit the application.
- OpenCV (opencv-python)
- dlib
- scipy
- pydub
- simpleaudio
This project is based on the concept of driver drowsiness detection and utilizes various open-source libraries and resources. Special thanks to the developers and contributors of these libraries for their valuable contributions.