Install GazeParser (Linux)


Python 2.7 is necessary to use GazePaser. GazeParser depends on following Python modules.

  • numpy
  • scipy
  • matplotlib
  • PIL (Python Imaging Library)
  • wxPython or Tkinter (Python-TK) (for data viewer)
  • VisionEgg and/or PsychoPy (experimental control library)

Following libraries are necessary to record gaze position.

  • libsdl
  • libsdl-net
  • libsdl-ttf
  • opencv


GazeParser installer can be downloaded from following page.

Install either of two files to computers which you plan to use stimulus presentation and data analysis.

If you download .zip archive, expand it and run ‘python install’. You may need root privilege to complete installation. If you download .deb installer, run ‘sudo dpkg -i gazeparser_0.9.0_all.deb’.

If you plan to record gaze data, download .deb installer. If your system doesn’t support .deb installer, download source code and build SimpleGazeTracker.

Build SimpleGazeTracker (Ubuntu 14.04 desktop)

OpenCV and SDL are necessary to build SimpleGazeTracker. Install following packages in advance. Other packages may be necessary depending on your environment.

  • automake
  • libopencv-dev
  • libsdl2-dev
  • libsdl2-net-dev
  • libsdl2-ttf-dev
  • libusb-1.0.0-dev
~$ sudo apt-get install libopencv-dev

Expand gzipped tarball and change working directory to the created directory.

~$ tar zxvf SimpleGazeTracker-x.x.x.tar.gz
~$ cd SimpleGazeTracker-x.x.x

Generate ‘configure’ script using autoconfig automake.

~/SimpleGazeTracker-x.x.x$ aclocal
~/SimpleGazeTracker-x.x.x$ autoheader
~/SimpleGazeTracker-x.x.x$ autoconf
~/SimpleGazeTracker-x.x.x$ automake --add-missing

Execute ‘configure’ script. If error message is displayed, check missing files and install corresponding packages. Ubuntu package search (<>) is useful to search contents of packages.

~/SimpleGazeTracker-x.x.x$ ./configure

If ‘configure’ script finish successfully, build and install SimpleGazeTracker.

~/SimpleGazeTracker-x.x.x$ make
~/SimpleGazeTracker-x.x.x$ sudo make install

By default, simplegazetracker is installed at /usr/local/simplegazetracker. Type as following to comfirm SimpleGazeTracker has been correctly installed. If it works correctly, ~/SimpleGazeTracker directory is created at the home directory. SimpleGazeTracker will show error message and terminate automatically if you have not connected camera unit in advance.

~/SimpleGazeTracker-x.x.x$ /usr/local/simplegazetracker/sgtsrv

Build SimpleGazeTracker Flycapture2 edition

Install Flycapture2 SDK in advance. Procedure of building FlyCapture2 edition is the same as that of OpenCV edition except running configure script with –with-flycapture.

~/SimpleGazeTracker-x.x.x$ ./configure --with-flycapture

Name of the executable file of Flycapture2 edition is sgtsrv-flycap, not sgtsrv.