Skip to main content

Library for drowsiness detection using deep learning

Project description

This library uses deep learning to detect drowsiness of a person

Before using this library make sure you have installed following libraries which are needed

1. Tensorflow ( pip install tensorflow )
2. keras ( pip install keras )
3. pyaudio
4. pyttsx3







To use it just follow the steps

initialize detector inside __name__ == "__main__" (as for processing frames library will fork a new process
so if code will be outside this if condition then in some os like windows script may get stuck in infinite loop) :

1. import it in your project
from DrowsinessDetection.DrowsinessDetector import drowsiness_detector

2. initializing the detector
d = drowsiness_detector()

3. starting the detector in separate thread
d.start()

# your other code .........

4. d.join()


Use Voice Assistant to control the sensitivity of detector and for quiting

voice commands are ----->>>
1. sensitivity low
2. sensitivity medium
3. sensitivity high
4. quit

Change Log

===============


0.0.4
-------------
- will install tensorflow and keras for you

0.0.5
---------------
- you can use your version of tensorflow and keras which you have


0.0.6
----------------
- you can give your own audio file to play

0.0.7
------------------
- audio commands added


0.1.0
-------------------
- optimizations

0.1.1
-------------
- changed model

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-DrowsyDetection-0.1.1.tar.gz (30.7 MB view details)

Uploaded Source

File details

Details for the file python-DrowsyDetection-0.1.1.tar.gz.

File metadata

  • Download URL: python-DrowsyDetection-0.1.1.tar.gz
  • Upload date:
  • Size: 30.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for python-DrowsyDetection-0.1.1.tar.gz
Algorithm Hash digest
SHA256 362e0c1724af57241d7689905bcf888e3220c946c59445282581dc716dc53f21
MD5 eed6310f552d3584e5b1cf252d660682
BLAKE2b-256 323fbb2af69c7bd068a06d71995a2fc3e9d3eb332385844806fc72705258a497

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page