The proposed system utilizes facial landmark detection and eye aspect ratio calculation to detect drowsiness in real-time from a webcam feed. It employs the dlib library for face detection and facial landmark prediction. The eye aspect ratio (EAR) is computed from the distances between specific points on the eyes. When the EAR falls below a predefined threshold for a certain number of consecutive frames, it triggers an alert indicating potential drowsiness. The alert includes visual cues on the video feed, an auditory alert using the playsound library, and even sends an instant WhatsApp message using pywhatkit to notify a designated contact about the drowsiness. This system serves as a useful tool for monitoring driver fatigue or alertness in various contexts, promoting safety and awareness. Its capacity to swiftly identify and alert users to the onset of drowsiness represents a significant leap forward in safety technology. By mitigating the risk of accidents stemming from fatigue-induced impairments, this project underscores the pivotal role of computer vision in real-time human behavior monitoring, offering a versatile and invaluable tool for fostering safety and awareness across various domains. Keywords: Drowsiness Detection; Python; Whatsapp messaging; Webcam feed; Computer Vision; Alert System; Real-time monitoring; Eye-Aspect Ratio; Frame Processing; Facial Recognition.
Read full abstract