DrowsyMuch A repo for playing with dlib eye detection with and without using CNN
Prerequisites:
- dlib installed
- imutils installed
- keras and tensorflow 2.2+ for drowsiness detector v2 for training the model
- python 3+
Download the model for face detection from here: http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
Put this model in the Drowsiness Detector or Drowsiness Detector v2 folder and rename it to "predictor.dat" and you are good to go.
References: https://www.pyimagesearch.com/2017/04/17/real-time-facial-landmark-detection-opencv-python-dlib/ https://medium.com/@iaswnparaskev/a-simple-blink-detector-using-a-small-convolutional-neural-network-with-python-ba8171ae0e0b