Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1.03 KB

README.md

File metadata and controls

30 lines (16 loc) · 1.03 KB

drowzee

Flask app using opencv for drowsiness detection

This is built using miguelgrinberg's flask video streaming example.

Articles:

Description

The app will try to detect faces and eyes. If it detects 50 frames of faces with no eyes consecutively, it will play a sound and deduct a score.

Libraries used

Pygame, Flask, PyFladesk, OpenCV and pyinstaller

pyinstaller build command:

pyinstaller -w --add-data "templates;templates" --add-data "static;static" app.py --path 'C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x64'   

or if you downloaded the app.spec:

pyinstaller app.spec

References:

Face Detection using Haar Cascades - OpenCV tutorial