Skip to content

This model is used to count number of blink. It uses Opencv Python

Notifications You must be signed in to change notification settings

shfaizan/blink-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Blink-detection

This model is used to count number of blink. It uses Opencv Python

First create a file name detect_blinks and copy/paste file from https://github.com/shfaizan/blink-detection/blob/master/detect_blinks.py

Now download pretrained face predictor : http://bit.ly/2lU9vFI

I use Python 3.7

first download pip

now you need to install following library

  1. pip install opencv-python
  2. pip install numpy/scipy
  3. pip install cmake
  4. pip install dlib
  5. pip install argparse
  6. pip install imutils

Open Cmd in project directory

  1. For input as a video python detect_blinks.py --shape-predictor shape_predictor_68_face_landmarks.dat --video blink_detection_demo.mp4

2.For input as a webcam python detect_blinks.py --shape-predictor shape_predictor_68_face_landmarks.dat

About

This model is used to count number of blink. It uses Opencv Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages