Code Monkey home page Code Monkey logo

gaze-spirals's Introduction

gaze-spirals

This is the official code repository to our paper A Spiral into the Mind: Gaze Spiral Visualization for Mobile Eye Tracking published in the Proceedings of the ACM Computer Graphics and Interactive Techniques (PACMCGIT): https://dl.acm.org/doi/10.1145/3530795.

Overview of scripts

  • spiral.py: Create a gaze spiral image (.png) from video and gaze input.
  • linear.py: Create a linear slitscan (.png) from video and gaze input.
  • clock.py: Create a real-time gaze clock from Pupil Invisible device input stream.

Installation

Install the required packages over PyPi with:

python -m pip install requirements.txt

Addtionaly, to run clock.py you need to install the Pupil Invisible's Realtime Network API with:

python -m pip install pupil-labs-realtime-api

Execute

spiral.py and linear.py

You need to specify the path to the gaze file PATH_TO_GAZE_CONFIG and video file PATH_TO_VIDEO. Further you need provide a gaze configuration file PATH_TO_GAZE_CONFIG that defines the mapping from gaze to a unified data scheme. Configuration presets of some common vendors can be found in the directory configurations/presets/. The required columns to specify are the timestamp TIME_MS and the gaze either from the left or right eye [EYE] GAZE X and [EYE] GAZE Y.

python linear.py --gaze PATH_TO_GAZE --gaze_config PATH_TO_GAZE_CONFIG --video PATH_TO_VIDEO

clock.py

Provide the IP and port of your Pupil Invisible companion device. Make sure that your Companion device has the latest version of the Companon app installed (older version might not support the streaming API). Also make sure that both, the Companon device, and your system on which clock.py is going to be exectued, are in the same local network.

python clock.py --ip COMPANION_DEVICE_IP

Citation

@article{koch22spiral,
author = {Koch, Maurice and Weiskopf, Daniel and Kurzhals, Kuno},
title = {A Spiral into the Mind: Gaze Spiral Visualization for Mobile Eye Tracking},
year = {2022},
issue_date = {May 2022},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {5},
number = {2},
url = {https://doi.org/10.1145/3530795},
doi = {10.1145/3530795},
journal = {Proc. ACM Comput. Graph. Interact. Tech.},
month = {may},
articleno = {20},
numpages = {16},
}

gaze-spirals's People

Contributors

maurice189 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

agbeckner

gaze-spirals's Issues

Compatibility of Gaze Spirals with Positive Science Head-Mounted Eye-Tracking Hardware

My advisor returned from a recent conference and presented your paper in our laboratory meeting today. I've successfully installed the required libraries and am ready to run the code, but our head-mounted eye-tracking system was made by Positive Science and I'm not sure if it will be compatible. Is there a required format for the gaze_config file? I know that it requires specific column headers but I'm not sure about file type.

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.