In this project we aim to develop a prototype drowsiness detection system. This system works by monitoring the eyes of the driver and sounding an alarm when he/she is feeling drowsy.
- Monitor the blinking of eyes of the user
- If there is a long delay in blinking then the alarm will alert the user
- OpenCV for video capturing
- Dlib for face recognition library for computing eye aspect ratio
- Python as a coding language
- Sqlite3 for database
we have the eye regions, we can compute the eye aspect ratio to determine if the eyes are closed: The eye aspect ratio is instead a much more elegant solution that involves a very simple calculation based on the ratio of distances between facial landmarks of the eyes. Now we check if the aspect ratio value is less than 0.25 (0.25 was chosen as a base case after some tests). If it is less an alarm is sounded and user is warned and the data record of that user with timestamp saved in database.
- Python - pyLibraries,Numpy,Scipy,Playsound,Dlib,Imutils, openCV, etc.
- Database - Sqlite3
- OPERATING SYSTEM - Windows or Ubuntu