This code can detect your eyes and alert when the user 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.
For more information, see