Drowsy detection using OpenCV and Convolution Neural Networks.
- Python 2.7
- OpenCV
- Keras
- Tensorflow
- Scipy
Please download the dataset and unzip to the /dataset/ folder. We will have four folders:
- closedLeftEyes
- closedRightEyes
- openLeftEyes
- openRightEyes
Please download this file and place into the current folder. Rename it with trained_data.dat
You maybe collect any different data for testing the algorithms
python eye_preprocess.py
python eye_training_cnn.py
python predict_eye.py -img path_to_local_image
Firstly, make sure the camera is usable in your computer. Run this application real time with this command:
python drowsy_predict.py
Press Q to quit the application