Skip to content

Ananya0104/Real-Time-Drowsiness-Detection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time-Drowsiness-Detection-System

A Real Time Drowsiness Detection System made using OpenCV.This repository code can detect your eyes and alert when the user is drowsy.

Applications

This can be used by riders who tend to drive for a longer period of time that may lead to accidents

Dependencies

  1. import cv2
  2. import imutils
  3. import dlib
  4. import scipy

Description

A computer vision system that can automatically detect driver drowsiness in a real-time video stream and then play an alarm if the driver appears to be drowsy.

Algorithm

Each eye is represented by 6 (x, y)-coordinates, starting at the left-corner of the eye (as if you were looking at the person), and then working clockwise around the eye. It checks 20 consecutive frames and if the Eye Aspect ratio is less than 0.25, Alert is generated.

Relationship

Execution

To run the code

  1. Clone the given repository into your local machine.
  2. Make sure that all the dependencies are already installed
  3. Run the Drowsiness_Detection.py file

References

About

Real Time Drowsiness Detection System made using OpenCV.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published