# Drowsiness-and-Yawn-Detection-with-voice-alert-using-Dlib **Repository Path**: sazima1/Drowsiness-and-Yawn-Detection-with-voice-alert-using-Dlib ## Basic Information - **Project Name**: Drowsiness-and-Yawn-Detection-with-voice-alert-using-Dlib - **Description**: https://github.com/Arijit1080/Drowsiness-and-Yawn-Detection-with-voice-alert-using-Dlib - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2023-06-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Drowsiness and Yawn detection with voice alert using Dlib Simple code in python to detect Drowsiness and Yawn and alert the user using Dlib. ## Dependencies 1. Python 3 2. opencv (tested with 3.4) 3. dlib (tested with 19.18.0) 4. imutils (tested with 0.5.3) 5. scipy 6. numpy 7. argparse ## Run ``` Python3 drowsiness_yawn.py -- webcam 0 //For external webcam, use the webcam number accordingly ``` ## Setups Change the threshold values according to your need ``` EYE_AR_THRESH = 0.3 EYE_AR_CONSEC_FRAMES = 30 YAWN_THRESH = 10` //change this according to the distance from the camera ``` ## Authors **Arijit Das** ## Acknowledgments * https://www.pyimagesearch.com/