Dataset: Click Here
- Make sure to have Python version 10 or above and a Text Editor.
- Install the dependencied by running
pip install -r requirements.txt
- Make sure
haarcascade_frontalface_default.xml
,haarcascade_eye_tree_eyeglasses.xml
andbuzz.mp3
are in the same directory asSleepDetection.py
. - Run the
SleepDetection.py
file after completing the previous steps.