This system uses 'dlib' library for both face detection and eye detection, then I have used OpenCV 4.0 to plot those points over each frame and calculate average opening of both eyes which is then used to detect a blink and closed eye for more than 15 frames in a stream is considered as drowsiness.