stepacool / Eye-Tracker

Eye tracking using OpenCV, Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eye-Tracker

Modular, Extensible Eye-Tracking solution Youtube Video Demonstration

Overview

A very accurate eye-tracking software. What it looks like

Features

  • Cross-platform
  • Works with glasses
  • Does not require high-end hardware, works well even with a 640*480 webcam
  • Uses blob detection algorithm, but earlier versions used circle detection too.
  • Highly extensible/flexible
  • New image sources or capture sources can easily be added

Requirements

  • Python 3.7 +

Guide

Full installation & run:

MACOS & linux

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install poetry
$ poetry install
$ cd project
$ python main.py

WINDOWS:

$ python3 -m venv venv
$ venv\Scripts\activate.bat
$ pip install poetry
$ poetry install
$ cd project
$ python main.py

Options & Arguments:

  • --frame-source allows you to specify the source of your frames. Currently available options are: camera, folder, file. Defaults to camera

camera means images will come from your device's camera

folder means images will come one-by-one from your DEBUG_DUMP_LOCATION setting folder in settings.py with the interval of REFRESH_PERIOD

file means the image will be static, good for debugging or development. Path can be specified in the STATIC_FILE_PATH setting

  • There are some Environment variables that can be specified to change the behaviour. Like DEBUG_DUMP to set whether a dump should be made when the program crashes

Developer

About

Eye tracking using OpenCV, Python.


Languages

Language:Python 96.0%Language:CSS 3.1%Language:Makefile 0.9%