Skip to content

dilawar/eye-blink-detector

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published