Python language bindings implemented in Cython for Tobii GazeSDK C API.
This is a work in progress. Backwards incompatible changes are possible in the near future. Currently only basic tracking functionality is supported, See TODO below for planned changes.
Note that use of this software is not officially supported by Tobii.
The following example prints normalized screen coordinates for first 20 events.
from gazesdk import *
url = get_connected_eye_tracker()
t = Tracker(url)
t.run_event_loop()
t.connect()
t.start_tracking()
for _ in range(20):
data = t.event_queue.get()
print (data.left.gaze_point_on_display_normalized,
data.right.gaze_point_on_display_normalized)
t.event_queue.task_done()
t.stop_tracking()
t.disconnect()
t.break_event_loop()
Dependencies: Python 2.7 32 bit
- From "Releases" download gazesdk-win32.zip
- Extract the pyd file
- Copy "TobiiGazeCore32.dll" in the same directory
- Calibration functions
- Raising exceptions on error codes
- Internal thread running
- API docs
The MIT License (MIT)
Copyright (c) 2015 balancana
Please note that this software relies on proprietary library. Check Tobii's website for more details.