https://github.com/abhilash26/dont-drive-drowsy
This webapp detects if a person is feeling drowsy and plays a sound to alert them. This is most useful for drivers.
https://github.com/abhilash26/dont-drive-drowsy
alarm alert camera drive-drowsy drowsy-driver-warning-system eye-detection face face-detection sound wake
Last synced: 6 months ago
JSON representation
This webapp detects if a person is feeling drowsy and plays a sound to alert them. This is most useful for drivers.
- Host: GitHub
- URL: https://github.com/abhilash26/dont-drive-drowsy
- Owner: abhilash26
- License: apache-2.0
- Created: 2019-08-30T02:12:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-31T02:12:06.000Z (about 6 years ago)
- Last Synced: 2025-03-29T18:41:27.458Z (7 months ago)
- Topics: alarm, alert, camera, drive-drowsy, drowsy-driver-warning-system, eye-detection, face, face-detection, sound, wake
- Language: JavaScript
- Homepage: https://dont-drive-drowsy.glitch.me/
- Size: 3.51 MB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Don't drive drowsy.
## Idea and Inspiration
This webapp is inspired from [Driver Drowsiness Detection with OpenCV](https://www.youtube.com/watch?v=Q23K7G1gJgY).
## Tools used
[JeelizWeboji](https://github.com/jeeliz/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.