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 create 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 getDetector

2. initializing the detector
d = getDetector()(UseAssistant=True)

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

Uploaded Source

File details

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

File metadata

  • Download URL: python-DrowsyDetection-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ba522ac0a7df6dec2312bcbcbd1ea0e5801340cf93e1772d7426650afe2971d0
MD5 06e29eeb2bc33d3c3efc34a7de461ff6
BLAKE2b-256 d4bf7c2fc05c86216f393f187e0ffefe674f58959c71475783dd35387426965e

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