Code Monkey home page Code Monkey logo

live-lucky-eye-tracker's Introduction

Eye Tracker - return pupil coordinates

Install python-opencv and clearly python. Run with python3 ./pupilCoordinates.py A USB webcam should be installed.

Background

I wanted to analyze pupil movements to validate an idea, and I remembered that OpenCV was there exactly for this kind of stuff.

The goal of this project is to measure precisely enough the movement of the pupil while looking at a Z-shape figure and validate the signal would be good enough for small print reading scenarios.

This is the Z-shaped figure used for testing

Z-shaped Figure for reading test

This is the webcam setup, camera should be fixed relative to the eyes, once 'mounted' you can adjust the camera to have the eye centered in the control rectangle.

Live Lucky!

Cooler angle

and this is a video of the conclusion of the 2 days research:

Demo video reading small text first and then z-shaped figure

You can see the pupil x,y coordinates being collected by the tool and validated in Google Sheet graph, so show the expected position of the pupil while reading and the comparison with the previous approach, where noise data was retrieved.

Sources

I first tried with the good EyeLike (1), which is C++ based, still OpenCV.

But I had issues getting clean coordinates for the pupil position, I believe because the coordinates where relative to the rectangle contouring the recognized faces.

I believe this problem could be solved by removing the known delta, but while researching I came across (5), so I started over.

(1) https://github.com/trishume/eyeLike

(2) https://www.youtube.com/watch?v=kbdbZFT9NQI

(3) https://pysource.com/2019/01/04/eye-motion-tracking-opencv-with-python/

live-lucky-eye-tracker's People

Contributors

zupino avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.