Skip to content
/ Eye Public

Track eye pupil movement, detects blinking of an eye from videos taken from medical devices in which only eye is visible

License

Notifications You must be signed in to change notification settings

97k/Eye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eye

Tracks the eye pupil's movement and effectively detects the blinking of eye. Blinking of eye can be easily detected when eye(facial) landmarks are available, Eye is a computer vision application which can effectively tracks the pupil and find the eye blinking based on heuristics powered by data.

Instructions to Run

Clone the project

$ git clone https://github.com/aditya98ak/Eye.git

Install the dependencies, create a virtual environment (recommended)

$ cd Eye
$ pip install -r requirements.txt

Run the application

$ python main.py

I've added a video file in order to show how it works. As of now, this application works on closely cropped eye videos stacked side by side (horizontally). The aim of this application is to apply heuristics to find blinking of the eye in case where eye(facial) landmarks are not available or can not be generated. This is just a POC and it's performace can definately be improved!

Final Result

eye

Screenshots

  1. Sample frame image
  2. Detection of pupil image
  3. Detection of blink image
  4. SSIM Difference image

This approach can be helpful in cases where data is obtained from devices in healthcare domain and we may still need to track, capture blink of eye and not whole face is visible. If whole face is visible, then eye blink can be easily detected with help of (eye) facial landmarks!

Contributing

All patches welcome!

About

Track eye pupil movement, detects blinking of an eye from videos taken from medical devices in which only eye is visible

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages