This is a cool OpenCV project which detects drowsiness based on eye moment. (Based on the project by Adrian)
dlib
cv2 (3.0+)
playsound
argparse
python detect_drowsiness.py --shape-predictor shape_predictor_68_face_landmarks.dat --alarm alarm.wav