A real-time Drowsiness Detection System built using OpenCV, Dlib, and machine learning techniques. This project is designed to monitor driver alertness by detecting signs of drowsiness such as prolonged eye closure and yawning, aiming to reduce road accidents caused by fatigue.
- Real-time video stream processing
- Eye aspect ratio (EAR) based eye closure detection
- Yawn detection using lip distance
- Alarm system to alert drowsy drivers
- Simple and intuitive UI for monitoring
- Python
- OpenCV
- Dlib (for facial landmark detection)
- NumPy
- SciPy
- imutils
# Clone the repository
git clone https://github.com/YourUsername/drowsiness-detection.git
cd drowsiness-detection
# Install dependencies
pip install -r requirements.txt- The system captures real-time video from the webcam.
- It detects facial landmarks using Dlibβs pre-trained models.
- Eye aspect ratio (EAR) is calculated to determine eye closure.
- If eyes remain closed for a defined threshold, an alarm is triggered.
- Lip distance is also monitored to detect yawns.
Add relevant screenshots here showing the detection in action.
python drowsiness_detector.py- Add deep learning models for more accurate detection
- Integrate with mobile or embedded systems for real-world deployment
- Add a GUI with Tkinter or PyQt for better user interaction
Milind
This project is licensed under the MIT License - see the LICENSE file for details.