Skip to content

dilawar/eye-blink-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

This project has moved to opencv version 3.0.0 or higher.

  • opencv-python
  • gnuplotlib. Use the command sudo pip install gnuplotlib
  • gnuplot

gnulotlib may not work on python3.

First frame of video/camera is presented to the user to select the box where your eyes it. Use mouse to left-click at a point, drag the cursor to another point, and release the left-button. You won't see a box unless you are done dragging. Once box is visible press q. The process will start.

blinky.py

Process a given video for blinks. Very fast.

  1. python blinky.py -f video_file.webm
  2. Select a region on frame where eye it.
  3. Let it run till video is over. A csv files will be produced with blink location. Two algorithms are used: one based on edge detection and other one is based on couting dark-pixals.

blinky_gui.py

Gui version of blinky.py. Only for testing and demo purposes. Very slow.

blinky_webcam.py

Process the live feed from given camera index ( default 0 ). Only for demo purpose.

About

An eye blink detector in python + opencv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages