Guaranteed- best described and easy tutorial for drowsiness detection using opencv.
Today, we are going to determine how long a given person’s eyes have been closed for. If there eyes have been closed for a certain amount of time, we’ll assume that they are starting to doze off and play an alarm to wake them up and grab their attention.
dependecies:
We’ll need the SciPy package so we can compute the Euclidean distance between facial landmarks points in the eye aspect ratio calculation
We'll need face_recognition module to get facial landmarks.
cv2 (opencv-python) for video capture by camera
playsound module to play sound
and watch video tutorial full for learning step by step.