Coder Social home page Coder Social logo

driver-fatigue-detection's Introduction

Driver-Fatigue-Detection

Motivation:

The risk, danger and sometimes tragic results of drowsy driving are alarming. The National Highway Traffic Safety 
Administration conservatively estimates that 100,000 police-reported crashes resulted in an estimated 1,550 deaths,
71,000 injuries, and $12.5 billion in monetary losses due to driver fatigue.
This application detects blinks and alerts of the driver's drowsiness. It handles variable lighting conditions and 
works pretty well in day as well as in the dark. It uses histogram equalization and gamma correction to eliminate 
the effect of lighting.

Create a virtual environment and activate it:

virtualenv -p python env
/env/Scripts/activate

Install the required packages to run the project:

python -m pip install -r requirements.txt

Run blinkDetect.py:

python blinkDetect.py

A blink is supposed to last for 300 to 400 milliseconds. So, if the eye remains closed for more than 800-900 ms, we can say that the person is either drowsy or sleeping. On the other hand, if the eye reopens after just 100ms, its considered an invalid blink discarded.

P.S: Press 'r' key to reset drowsiness alert and 'esc' to exit.

Project still in progress. Next step is to detect driver's gaze direction.

driver-fatigue-detection's People

Contributors

adityachechani avatar nidtiw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.