Flask app using opencv for drowsiness detection
This is built using miguelgrinberg's flask video streaming example.
Articles:
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.
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