Install GazeParser (Windows)¶
Python 2.7 is necessary to use GazePaser. GazeParser depends on following Python modules.
- PIL (Python Imaging Library)
- wxPython or Tkinter (Python-TK) (for data viewer)
- VisionEgg and/or PsychoPy (experimental control library)
Following libraries are necessary to build SimpleGazeTracker.
- SDKs for your camera
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.
- GazeParser-0.9.0-win32.exe : Windows installer
- GazeParser-0.9.0.zip : source distribution (expand this and run ‘python setup.py install’)
If you plan to record gaze data, install one of following files to a computer which you plan to use recording gaze data.
- SimpleGazeTracker-0.9.0-OptiTrack-1.7.2.msi : SimpleGazeTracker installer for OptiTrack V120 or V100R2 cameras
Probably OptiTrack Baseline 2D SDK will be necessary to use SimpleGazeTracker. The SDK can be downloaded from OptiTrack Downloads page.
Version number following ‘OptiTrack-‘ in the SimpleGazeTracker installer indicates which version of SDK is necessary. For example, if name of the SimpleGazeTracker installer is SimpleGazeTracker-0.9.0-OptiTrack-1.7.2.msi, OptiTrack CameraSDK 1.7.2 is necessary.
- SimpleGazeTracker-0.9.0-OpenCV-3.0.0.msi : SimpleGazeTracker installer for cameras supported by OpenCV.
Necessary interfaces, drivers and other applications depend on camera unit. Confirm user manual of the camera.
If you need source files of SimpleGazeTracker, download following file.
- SimpleGazeTracker-0.9.0-src-vs2013.zip : Zipped archive of source files.
Source files of SimpleGazeParser for Microsoft Windows is provided as a project of Microsoft VisualStudio. vsXXXX indicates the version of VisualStudio (e.g. ‘vs2013’ indicates VisualStudio2013).
Setting up VisualStudio2010 to build SimpleGazeTracker (SimpleGazeTracker 0.8.2)¶
Download zipped source files of SimpleGazeTracker and expand it under VisualStudio2010 project directory (usuall, %USERPROFILE%/Documents/VisualStudio2010/Projects). Get development library of libsdl, libsdl-net, libsdl-ttf.
- http://www.libsdl.org/release/ (libsdl)
- http://www.libsdl.org/projects/SDL_ttf/release/ (libsdl-ttf)
- http://www.libsdl.org/projects/SDL_net/release/ (libsdl-net)
Expand zipped files under C:/SDL. Create C:/SDL/include/SDL and C:/SDL/bin. Copy all SDL include files (*.h) to C:/SDL/include/SDL (Figure 1).
In a similar way, copy all SDL DLL files (*.dll) to C:/SDL/bin. Add C:/SDL/bin to %PATH% environment variable.
Next, get Measurement Computing’s Universal Library and install it.
- http://www.mccdaq.com/software.aspx (Universal Library)
Get OpenCV self-extract file from following URL. Extracted files to C:/opencv. Same as above, update “include” and “library” directories of project’s property. Add C:/opencv/build/x86/vc10/bin to %PATH% environment variable.
Install SDK for your camera. The SimpleGazeTracker’s source file assumes that SDKs are installed under following directories.
|FlyCapture2||C:/Program Files/Point Grey Research/FlyCapture2|
|OpenCV||(No camera-specific SDK)|
If you want to install these files in other directory, you’ll have to edit “Include Directory” and “Library directory” of project’s property so that VisualStuido can find necessary files. Start VisualStudio and open SimpleGazeTracker solution. Right-click on project (for example, SimpleGazeTracker_FlyCapture2) in the Solution Explorer to show pop-up menu. Then, select “Properties” (Figure 2).
Select “VC++ Directories” and left-click an edit box right to “Include Directories”. Then, select “<Edit...>” (Figure 3).
As shown in Figure 4, include directories for this project is listed (Figure 4). Add directories where you have installed libraries and SDKs. In a similar way, update Library directories (Figure 5).
Building SimpleGazeTracker 0.9.0 (or later)¶
In SimpleGazeTracker 0.9.0, SDL was replaced with SDL2.0. With this change, Paths are changed as foloowing.
- Include files
SimpleGazeTracker 0.9.0 was developed on 64bit Windows. Paths to following libraries were also changed.
|GPC5300||C:/Program Files (x86)/Interface/GPC5300/|
|OptiTrack||C:/Program Files (x86)/NaturalPoint/Optitrack|