Skip to content

A project that detects that detects drowsiness and alerts the user. When your eyes are closed, the score starts increasing & when the score goes above a certain limit(15 in this case), it starts playing a sound file (which won't stop until the score back to zero again), and decreases when it is detected that your eyes are open.

Notifications You must be signed in to change notification settings

Kabiirk/Drowsiness-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DROWSINESS DETECTION

Contents

  • Introduction
  • Tools used
  • Get Started !
  • Working of the Project

Introduction


Tools Used

  • OpenCV
  • Numpy
  • Time
  • Keras (to load the model via load_model() function in keras.models)

NOTE: There is a mixer library imported from imported from pygame, but currently the sound isn't working (sound should alert the user upon detecting drowsiness, its still work in progress)


Get started !

STEP 1: Run the project

To run the project, just open you command line and run drowsiness_detection.py from the command line by typing:

python drowsiness_detection.py

Upon which, a window will open showing the webcam's input


Working of the Project

Whenever the model detects that you eyes are closed, the score starts increasing & when the score goes above a certain limit(15 in this case), it starts playing the alamr.wav soundfile(which won't stop until the score back to zero again), and decrases when it is detected that your eyes are open.

All Done ✨

About

A project that detects that detects drowsiness and alerts the user. When your eyes are closed, the score starts increasing & when the score goes above a certain limit(15 in this case), it starts playing a sound file (which won't stop until the score back to zero again), and decreases when it is detected that your eyes are open.

Topics

Resources

Stars

Watchers

Forks

Languages