Simple code in python to detect Drowsiness and Yawn and alert the user using Dlib.
1.Python 3
2.grovepi
3.opencv (tested with 3.4)
4.dlib (tested with 19.18.0)
5.imutils (tested with 0.5.3)
6.scipy
7.numpy
8.argparse
1.Grove -Buzzer
2.Grove-Button
3.Grove-RGB Backlit LCD
4.External Web Camera
It is suggested to install Jupyter notebook in your Raspberry Py 4. For external webcam, use the webcam number is used as 0. Extract 3 shape_predictor_68_face_landmarks.dat files in one folder.