This project detects drowsiness in real-time using a webcam and triggers an alarm to prevent accidents.
- Detects drowsiness based on eye blink patterns.
- Identifies yawning based on mouth movements.
- Plays an alarm and sends an email alert for prolonged drowsiness.
-
Clone the repository:
git clone https://github.com/GunjanBhanwal/DriveAlert.git cd drowsiness-detection -
Install dependencies:
pip install -r requirements.txt
-
Download the model: Download shape_predictor_68_face_landmarks.dat from dlib. Extract it and place it in the data/ folder.
-
Run the application:
python src/main.py