Skip to content

rubyruins/driver-drowsiness-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Driver Drowsiness Detection 🚘

made-with-python

This system monitors drowsiness by detecting the driver's face and sending a drowsiness alert if his eyes have been closed for a certain number of frames. The user can configure their own threshold by specifying an EAR ratio and customising the number of frames if they do not want to use the defaults.


Libraries used:

  • dlib for the face detection model
  • opencv-python for drawing frames around the eyes
  • tkinter for the GUI
  • playsound to play the alarm
  • scipy for Euclidean distance calculations

Installation:

You must have Python 3.6 or higher to run the file.

  • Create a new virtual environment for running the application. You can follow the instructions here.
  • Navigate to the virtual environment and activate it.
  • Install the dependancies using pip install -r requirements.txt
  • Run the dds.py file with python dds.py

This system was made as part of our Mini Project for Semester IV.

Releases

No releases published

Packages

No packages published

Languages