Skip to content

There are some rules and codes of conduct for those who drive irrespective of their social status. One of them is staying alert and active while driving.

Notifications You must be signed in to change notification settings

philoma/Driver_Yawning_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Driver_Yawning

There are some rules and codes of conduct for those who drive irrespective of their social status. One of them is staying alert and active while driving. Neglecting our duties toward safer travel has enabled hundreds of thousands of tragedies to get associated with this wonderful invention every year. It may seem like a trivial thing to most folks but following rules and regulations on the road is of utmost importance. So, in order to mitigate the chances of road accidents, I've built an AI-ML model to alert the driver of his consciousness while driving the vehicle.
System Model:
image

Implementation:

1 --> In this program we used Dlib, a pre-trained program trained on the HELEN dataset to detect human faces using the pre-defined 68 landmarks.

image

2 --> After passing our video feed to dlib frame by frame, we are able to detect left eye and right eye features of the face.

3 --> Now, we drew contours around it using OpenCV.

4 --> Using Scipy’s Euclidean function, we calculated the sum of both eyes’ aspect ratio which is the sum of 2 distinct vertical distances between the eyelids divided by their horizontal distance.

image

5--> Now we check if the aspect ratio value is less than 0.25 (0.25was chosen as a base case after some tests). If it is less the user is warned.

Results:

image

About

There are some rules and codes of conduct for those who drive irrespective of their social status. One of them is staying alert and active while driving.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages