- In the present situation world, Accidents are part of life. On an average of 1214 road accidents in India only. One of the main reasons for road accidents is being drowsy during driving.
- The application Drowsiness Detection of a Cab Driver helps the manager of the company get a notification that the driver is drowsy and an alarm rings in the car to alert the driver.
USAGE:
> python detect_drowsiness.py –shape-predictor shape_predictor_68_face_landmarks.dat –alarm alarm.wav
Use the above command to run the application
This Drowsiness Detection of A Cab Driver application needs the following modules: –
MODULE NAME: scipy
COMMAND USED FOR INSTALLING: conda install -c anaconda scipy
MODULE NAME: imutils
COMMAND USED FOR INSTALLING: conda install -c anaconda imutils
MODULE NAME: threading
COMMAND USED FOR INSTALLING: conda install -c anaconda threading
MODULE NAME: numpy
COMMAND USED FOR INSTALLING: conda install -c anaconda numpy
MODULE NAME: playsound
COMMAND USED FOR INSTALLING: conda install -c anaconda playsound
MODULE NAME: argparse
COMMAND USED FOR INSTALLING: conda install -c anaconda argparse
MODULE NAME: time
COMMAND USED FOR INSTALLING: conda install -c anaconda time
MODULE NAME: cv2
COMMAND USED FOR INSTALLING: conda install -c anaconda cv2
MODULE NAME: dlib
COMMAND USED FOR INSTALLING: It should be installed in the virtual environment the command is: conda install -c anaconda dlib
IN THE ABOVE-MENTIONED MODULES MOST OF THEM WILL BE GIVEN DEFAULT
TO CHECK THE MODULES THE COMMAND IS conda list
Download the complete project source code