Skip to content

This is a trained convolutional neural network I made to monitor driver state and prevent impaired driving. The model can detect drowsiness, intoxication, and distracted driving.

Notifications You must be signed in to change notification settings

hank-w/Driver-State-Facial-Recognition

Repository files navigation

FacialExpressionRecognition

Use a deep learning model to predict facial expressions from a videostream

Requirements

Detect facial expression from live video

run "python liveVideoFrameRead.py"

Additional tags:
--save to save video with predictions and landmarking
--savedata to save csv file with expression predictions, their probability tensor and eye aspect ratio

Detect facial expression from video file

run "python videoFrameRead.py --video-file [your video file.mov]" where the video file needs to be in current directory

Additional tags:
--frame-step the frame rate at which predictions are made, default was set to 10 frames
--save to save video with predictions and landmarking
--savedata to save csv file with expression predictions, their probability tensor and eye aspect ratio

About

This is a trained convolutional neural network I made to monitor driver state and prevent impaired driving. The model can detect drowsiness, intoxication, and distracted driving.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published