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.
dlib
for the face detection modelopencv-python
for drawing frames around the eyestkinter
for the GUIplaysound
to play the alarmscipy
for 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.py
file withpython dds.py
This system was made as part of our Mini Project for Semester IV.