open-eye-detector
open-eye-detector copied to clipboard
A Realtime CPU eye detector to detect if the eyes are open or closed
open-eye-detector
A simple opencv script to detect if the eyes are open or closed
Introduction
A resnet inspired CNN model to predict if a person's eye is open or closed.
The main use case for this, is while in face recognition we have to ensure the person remains active and not asleep while doing the auth process, so we have trained the model to ouput closed eyes and some-what drowsy eyes.
Eye opened -- Green
Eye closed-- Red
Contents
- Installation
- Demo
Installation
Requirements
- Keras
- Tensoflow
- OpenCV
- dlib
just run,
pip3 install -r requirements.txt
to instal the dependencies.
Demo
If you've cloned the repo and then install the dependecies, run
python3 main.py
the webcamera will be used to detect the face and the eyes, then the prediction will be done.
Issues
If you encounter any issues, please create an issue tracker.