Detects eye movements and alerts when the object is drowsy
This can be used by riders who tend to drive for a longer period of time that may lead to accidents
The example code is in Python (version 2.7 or higher will work).
- import cv2
- import imutils
- import dlib
- import scipy
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.
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.
For more information, see
First create an issue if you want to add new feauture or want to improve existing code. After that create a Pull Request.Make a folder named after Test , if the code is platform specific then please create subfolder named to that Operating system within that language folder. For example Test/Linux. Add README.md in it telling about compilation, installing dependencies and some screenshots of the updates.
Join the Slack channel for discussions 👋 : JOIN NOW


