Skip to content

AkiiSinghal/Drowsiness-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Drowsiness-Detection

Driver fatigue is one of the major causes of accidents in the world. Detecting the drowsiness of the driver is one of the surest ways of measuring driver fatigue. In this project we aim to develop a prototype drowsiness detection system. This system works by monitoring the eyes and mouth of the driver and sounding an alarm when he/she is drowsy. The programming for this is done in OpenCV using the Dlib library for the detection of facial features.

Installations

  1. Install Python 3.6 in your system.
    • Click here to install.
  2. Now install OpenCV and dlib also.
    • Click here to install OpenCV.
    • To install Dlib :

Implementation

  1. To change the camera use 0 for internal camera and 1 for external webcam in the cap = cv2.VideoCapture(0) of Drowsiness_detection.py.
  2. Run using python Drowsiness_detection.py command.

Screenshots

Screenshot (27)~2 Screenshot (29)~2 Screenshot (46)~2