Driver’s drowsiness is one of the huge factors that cause road accidents. In such a scenario, simple prevention can be availed from DriveSafe. A system built in Python, to observe drivers whether they are in the drive or drowsy to have alerts for accident prevention.
Features
The system analyzes live video input of the driver to detect when a driver’s eyes remain closed too long and is considered one of the key indicators of drowsiness. This then acts as the trigger to immediately activate a sound alert in the case of DriveSafe with the aim of keeping a driver awake and safe.
How It Works
source: youtube.com
- Live Video Capture: A camera captures the driver in real-time.
- Eye Detection: OpenCV and Dlib track the driver’s eyes.
- Drowsiness Detection: It monitors how long the eyes are closed to detect fatigue.
- Sound and Alert: In case drowsiness is detected, a sound is played to alert the driver and a notification will be sent to selected devices.
Libraries
DriveSafe makes use of the following Python libraries:
- OpenCV
- NumPy
- dlib
- face-utils
- Iimutils
- pushbullet.py
- scipy
- pygame
How to setup DriveSafe
- Clone the repository from GitHub.
- Run pip install -r requirements.txt to install the needed libraries.
- Run the main script to start the detection system