Skip to content

rudrajit1729/Drowsy-Driver

Repository files navigation

Drowsiness & Yawn detection

Drowsiness and Yawn detection to alert drivers.

Dependencies

  1. Python 3
  2. opencv
  3. dlib
  4. imutils
  5. scipy
  6. numpy
  7. argparse
  8. pyttsx3

Setup

  • Anaconda installation(Ignore if already installed): Click Here

  • Proceed to terminal and create a virtual environment: conda create -n virenv

  • Activate virtual environment: conda activate virenv

  • Install dependencies: pip install -r requirements.txt

  • Install dlib(CPP package): conda install -c conda-forge dlib

Run

python main.py --webcam 0	//For external webcam, use the webcam number accordingly

Settings

Change the threshold values according to distance from camera

EYE_AR_THRESH = 0.3
EYE_AR_CONSEC_FRAMES = 30
YAWN_THRESH = 10`	//change this according to the distance from the camera

Authors

Rudrajit Choudhuri

About

Drowsiness and Yawn detection to alert drivers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages