Giter VIP home page Giter VIP logo

abhilash26 / dont-drive-drowsy Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 3.59 MB

This webapp detects if a person is feeling drowsy and plays a sound to alert them. This is most useful for drivers.

Home Page: https://dont-drive-drowsy.glitch.me/

License: Apache License 2.0

CSS 28.23% JavaScript 44.54% HTML 27.23%
alarm drive-drowsy face camera face-detection eye-detection sound alert wake drowsy-driver-warning-system

dont-drive-drowsy's Introduction

Don't drive drowsy.

Idea and Inspiration

This webapp is inspired from Driver Drowsiness Detection with OpenCV.

Tools used

JeelizWeboji is an excellent tool to build this. It has face detection as well as eye closing detection which is perfect for this app.

Application and use

We are humans, we get tired and sleepy. There is one most important time that needs our undivided attention which is the time when we are driving. This application will detect if you are sleepy/drowsey and play an alarm sound to wake you up, simply and effectively.

Configuration

In the assets/js/main.js assign eyesClosedThreshold to a fractional value ranging from 0.5 to 1. In the same file change timeThreshold in miliseconds value after which you need the alarm to ring after. Currently the algo waits for 500 miliseconds and then rings the alarm but you can change this setting.

Warnings

  1. This webapp needs camera to run. It will obviously need camera permission as well.
  2. The alarm sound is for waking you up so it quite loud.
  3. The tracker needs proper even lighting on your face to work.

dont-drive-drowsy's People

Contributors

abhilash26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.