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

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.0.tar.gz (29.8 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: python-DrowsyDetection-0.1.0.tar.gz
  • Upload date:
  • Size: 29.8 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.0.tar.gz
Algorithm Hash digest
SHA256 534ebaabcabb76a6607a6e3d68f3e03163b5399e52d92f1f0d6b36975c18cdee
MD5 cdb346c5509e864b205370d6d7cc4b5d
BLAKE2b-256 c10f02797839aa9fa680976aa560ecc0b06a8986381d3c70d44a96f8b55cfad2

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