Skip to content

A python application to detect the drowsiness of a driver and alerts with a wake up alarm when the driver feels drowsy.

Notifications You must be signed in to change notification settings

pradeepkps19/Driver_Drowsiness_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

A python application to detect the drowsiness of a driver and alerts with a wake up alarm when the driver feels drowsy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages