This system monitors drowsiness by detecting the driver's face and sending a drowsiness alert if his eyes have been closed for a certain number of frames. The user can configure their own threshold by specifying an EAR ratio and customising the number of frames if they do not want to use the defaults.
dlibfor the face detection modelopencv-pythonfor drawing frames around the eyestkinterfor the GUIplaysoundto play the alarmscipyfor Euclidean distance calculations
You must have Python 3.6 or higher to run the file.
- Create a new virtual environment for running the application. You can follow the instructions here.
- Navigate to the virtual environment and activate it.
- Install the dependancies using
pip install -r requirements.txt - Run the
dds.pyfile withpython dds.py
This system was made as part of our Mini Project for Semester IV.