Skip to content

Flask app using opencv to detect eyes for drowsiness detection

Notifications You must be signed in to change notification settings

weirdyang/drowzee

Repository files navigation

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

About

Flask app using opencv to detect eyes for drowsiness detection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published