Skip to content

App for tracking eyes focus on screen by JAZZ-novo eye tracker device.

License

Notifications You must be signed in to change notification settings

ntrfrnc/eye-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eye Tracker img

C++ Qt app for tracking eyes focus on screen by JAZZ-novo eye tracker device.

Version 0.2-alpha

img

Compilation

You can compile program by Qt Creator with GCC (under Linux) or MSVC (under Windows) compiler.

Prerequisites

Install FTDI device virtual COM port drivers

Windows

Download it from http://www.ftdichip.com/Drivers/VCP.htm and install.

Linux

If you use Ubuntu (at least version 11.10 ) drivers are already in kernel. To automatically load appropriate driver when device is plugged in you have to:

  1. Create file /etc/udev/rules.d/99-ftdi.rules if it doesn't exist already
  2. Add the following line to the file ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="e859", RUN+="/sbin/modprobe ftdi_sio" RUN+="/bin/sh -c 'echo 0403 e859 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'"
  3. Run sudo udevadm control --reload in the console

If you don't have permission to use ttyUSB0 serial port you have to add your user to dialout group:

sudo usermod -aG dialout $USER

And reboot the system.

How to use

Firstly, calibrate device input by clicking Start calibration button and follow calibration procedure described below. If you go through calibration with success you can start new tracking session by clicking the New session button, but before you must enter needed information in configuration form.

Calibration

Start calibration button allows you to enter calibration mode. In this mode application shows calibration board stretched to screen resolution. Calibration procedure is to follow your eyes markers starting from top left, then stop on each one and hit space key on your keyboard. Correct order of markers to focus your eyes on is as follows:

  1. Top left
  2. Center
  3. Bottom right
  4. Bottom left
  5. Center again
  6. Top right

You can exit this mode by hitting ESC key on keyboard.

Session

Start new session button allows entering session mode where you can see red dot on screen in the position of your eyes focus if the calibration is successful. On screen there is also displayed your test board chosen in the configuration as background. You can exit this mode by hitting ESC key on keyboard.

Session configuration

Field Description
Serial port name Name of serial port to which device is connected. Next to text field are listed detected ports and most likely ones like COM3 on Windows or ttyUSB0 on Linux.
Recorded data file Path of file where you want to log all data of eye position recorded during session.
Board background Link to website e.g. http://google.com, or local html file. You can also use default build in test board with one column of text: qrc:///testBoard.html .

Chart plotter

By clicking Plot data button you can plot all eye trace saved in chosen file. Chart is shown with board background chosen in session configuration as background. All plotted data with background will be automatically save as PNG image chosen in plot configuration form.

You can close plot view by hitting ESC key on keyboard.

Plotter configuration

Field Description
Data file to plot Path of data file which you want to plot.
Output image Path where chart will be saved as PNG file.

How it works

See brief documentation in pdf (polish language only).

License

EyeTracker is released under the terms of the MIT license. See LICENSE file for details.

Credits

EyeTracker is developed by Rafael Pawlos, pawlos.dev

About

App for tracking eyes focus on screen by JAZZ-novo eye tracker device.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published