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()



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

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

Uploaded Source

File details

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

File metadata

  • Download URL: python-DrowsyDetection-0.0.9.tar.gz
  • Upload date:
  • Size: 27.6 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.0.9.tar.gz
Algorithm Hash digest
SHA256 a6fa01cd236b7d0070fcfcf79d7d343c51d93f169d62b9dc7aca30e65a5dfcbc
MD5 503a9cce09150aa94212ecad50c0cc16
BLAKE2b-256 1abacc5b79757fa9d97175830fd83c7d6b3a2ff4637934c6c80e9ffbf4024be5

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