Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pradeepkps19/driver_drowsiness_detection
A python application to detect the drowsiness of a driver and alerts with a wake up alarm when the driver feels drowsy.
https://github.com/pradeepkps19/driver_drowsiness_detection
alarm driver-drowsiness-detection drowsiness frames machinelearning-python opencv python-application
Last synced: 4 days ago
JSON representation
A python application to detect the drowsiness of a driver and alerts with a wake up alarm when the driver feels drowsy.
- Host: GitHub
- URL: https://github.com/pradeepkps19/driver_drowsiness_detection
- Owner: pradeepkps19
- Created: 2020-05-12T08:20:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T09:04:06.000Z (over 4 years ago)
- Last Synced: 2024-05-14T12:46:12.349Z (6 months ago)
- Topics: alarm, driver-drowsiness-detection, drowsiness, frames, machinelearning-python, opencv, python-application
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Driver_Drowsiness_Detection
A python application to detect the drowsiness of a driver and alerts with a wake-up alarm when the driver feels drowsy.This application works by continuous detection of both the eyes of the driver. The Eye Aspect Ratio (EAR) is calculated for both the eyes by calculating the euclidean distance between the indices of an eye. The average EAR of both the left and right eyes is calculated and whenever the ratio falls below the declared threshold value (here given 0.25), the application starts counting the number of frames until the EAR gets above the threshold. On counting the frames, whenever the frame count gets beyond the given frame check count (here given 20 frames), the application founds the driver to be drowsy and keeps alarming until he wakes up.
The indices of the eye are captured using the "facialLandmarks.dat" which has the trained set of facial indices.
The file "facialLandmarks.dat" is uploaded in my drive and the link is shared below.
https://drive.google.com/file/d/1QlyabER61f1ogDpShjUD3rmVYy2Ry3Pw/view?usp=sharing
Reference : https://www.pyimagesearch.com/2017/05/08/drowsiness-detection-opencv/