Giter Site home page Giter Site logo

teammoss / drowsiness_detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akshaybahadur21/drowsiness_detection

0.0 0.0 0.0 84.81 MB

A simple Drowsiness Detection module for humans. ๐Ÿ˜ด ๐Ÿšซ ๐Ÿš—

License: MIT License

Python 28.96% Jupyter Notebook 71.04%

drowsiness_detection's Introduction

Drowsiness Detection OpenCV ๐Ÿ˜ด ๐Ÿšซ ๐Ÿš—

This 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

Code Requirements ๐Ÿฆ„

The example code is in Python (version 2.7 or higher will work).

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

Summing up

For more information, see

Results ๐Ÿ“Š

Execution ๐Ÿ‰

To run the code, type python Drowsiness_Detection.py

python Drowsiness_Detection.py
Made with โค๏ธ and ๐Ÿฆ™ by Akshay Bahadur

References ๐Ÿ”ฑ

drowsiness_detection's People

Contributors

akshaybahadur21 avatar ionicc avatar so-ham avatar mrm8488 avatar saanikagupta avatar sankalp-sangle avatar yinlaetitia 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.