Loading repository data…
Loading repository data…
9keystrokes / repository
A real-time drowsiness and yawn detection system built with Python, OpenCV, and dlib to help prevent accidents caused by driver fatigue.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A real-time drowsiness and yawn detection system built with Python, OpenCV, and dlib to help prevent accidents caused by driver fatigue.
cv2)Clone this repository:
git clone https://github.com/9keystrokes/Driver-Drowsiness-Detection-System.git
cd Driver-Drowsiness-Detection-System
Install the required packages:
pip install opencv-python dlib imutils numpy scipy
Download the shape predictor file:
Install espeak for audio alerts:
sudo apt-get install espeakbrew install espeakRun the program with:
python drowsiness_yawn.py --webcam 0
Where:
--webcam (or -w): specifies the webcam index (default is 0 for the built-in webcam)q to quit the applicationhaarcascade_frontalface_default.xml: Haar Cascade classifier for face detectionshape_predictor_68_face_landmarks.dat: Trained model for facial landmark detection