This repository accompanies the paper on open-source python library for real-time collection and analysis of eye/head Tracking data.
Write the following in the terminal to start streaming.
python3 TP3Py_main.py
Connect to the glasses and enjoy full control on the data acquisition and live processing.
Installing Gstreamer, Opencv, and pyqt5 (tested on Ubuntu 20.04 and 21.04 with python 3.8 and 3.9*).
sudo apt install libgstreamer1.0-0 gstreamer1.0-plugins-{base,good,bad,ugly} gstreamer1.0-tools python3-gi gir1.2-gstreamer-1.0 gstreamer1.0-libav python3-pip
sudo apt-get install libopencv-dev python3-opencv python3-pyqt5 qtcreator pyqt5-dev-tools qttools5-dev-tools qt5-default qt5ct
python3 -m pip install --user numpy scipy matplotlib==3.4 ipython pandas sympy nose asyncio websocket-client pynput
We will have to build an environemt where gstreamer libraries can be installed properly. For this reason install MySys2 application and open the mingw 64bit terminal.
pacman -Syu
Gstreamer installation:
pacman -S mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-devtools mingw-w64-x86_64-gst-plugins-{base,good,bad,ugly} mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-gobject
python:
pacman -S mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-gobject
pacman -Sy mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-numpy mingw-w64-x86_64-python3-scipy mingw-w64-x86_64-python3-matplotlib mingw-w64-x86_64-python3-pandas mingw-w64-x86_64-python3-Pillow
pacman -S mingw-w64-x86_64-python-matplotlib
pacman -S mingw-w64-x86_64-gst-rtsp-server
- Ubuntu 22.04 with python 3.10 did not work.
Please let us know if there are any issues with the installations. For further information please refer to the paper.
@article {TP3PY,
author = {Rahimi Nasrabadi, Hamed and Alonso, Jose-Manuel},
title = {Modular Streaming Pipeline of Eye/Head Tracking Data Using Tobii Pro Glasses 3},
elocation-id = {2022.09.02.506255},
year = {2022},
doi = {10.1101/2022.09.02.506255},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://www.biorxiv.org/content/early/2022/09/05/2022.09.02.506255},
eprint = {https://www.biorxiv.org/content/early/2022/09/05/2022.09.02.506255.full.pdf},
journal = {bioRxiv}
}