Home › Forums › Community Projects › Python bindings for Tobii Gaze SDK
- This topic has 2 replies, 3 voices, and was last updated 6 years, 3 months ago by Grant [Tobii].
- 16/07/2015 at 12:01 #3234PabloParticipant
I implemented Python bindings for Tobii GazeSDK C API. You can find it at:
Basic tracking functionality is supported and I plan to add calibration and tracker configuration functions.
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()
Please submit issues to github in case of bugs/questions.22/12/2016 at 05:18 #6069Nam JonghoParticipant
Do you have any plan to make this TobiiSDK work with PsychoPy2?
The program you provide work well alone. However, when I add the very first program line
“from psychopy import visual”, it gives a error message.
from psychopy import visual, core, event
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\__init__.py”, line 47, in <module>
from psychopy.tools.versionchooser import useVersion, ensureMinimal
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\tools\versionchooser.py”, line 19, in <module>
from psychopy import logging, tools, web
Please take a look at this matter.
Thanks.22/12/2016 at 11:05 #6070Grant [Tobii]Keymaster
Hi Pablo, thanks sincerely for your efforts, but please kindly bear in mind the Gaze SDK is now deprecated and no longer supported, maintained or distributed by Tobii.
- You must be logged in to reply to this topic.