Need help with Drowsiness_Detection?
Click the β€œchat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

akshaybahadur21
302 Stars 182 Forks MIT License 19 Commits 1 Opened issues

Description

A simple Drowsiness Detection module for humans. 😴 🚫 πŸš—

Services available

!
?

Need anything else?

Contributors list

# 39,950
Python
OpenCV
python3
digit-r...
8 commits
# 260,122
Raspber...
OpenCV
Python
python3
1 commit
# 259,565
Raspber...
OpenCV
Python
python3
1 commit
# 140,843
Raspber...
OpenCV
python3
cv2
1 commit
# 237,165
Raspber...
OpenCV
python3
cv2
1 commit
# 187,885
Python
Raspber...
OpenCV
python3
1 commit

Drowsiness Detection OpenCV 😴 🚫 πŸš—

This code can detect your eyes and alert when the user is drowsy.

Applications 🎯

This can be used by riders who tend to drive for a longer period of time that may lead to accidents

Code Requirements πŸ¦„

The example code is in Python (version 2.7 or higher will work).

Dependencies

1) import cv2 2) import imutils 3) import dlib 4) import scipy

Description πŸ“Œ

A computer vision system that can automatically detect driver drowsiness in a real-time video stream and then play an alarm if the driver appears to be drowsy.

Algorithm πŸ‘¨β€πŸ”¬

Each eye is represented by 6 (x, y)-coordinates, starting at the left-corner of the eye (as if you were looking at the person), and then working clockwise around the eye.

It checks 20 consecutive frames and if the Eye Aspect ratio is less than 0.25, Alert is generated.

Relationship

Summing up

For more information, see

Results πŸ“Š

Execution πŸ‰

To run the code, type

python Drowsiness_Detection.py
python Drowsiness_Detection.py

References πŸ”±

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.