Home Forums Community Projects Python bindings for Tobii Gaze SDK

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3234
    Pablo
    Participant

    Hi all,

    I implemented Python bindings for Tobii GazeSDK C API. You can find it at:
    https://github.com/balancana/gazesdk

    Basic tracking functionality is supported and I plan to add calibration and tracker configuration functions.

    Basic example:

    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.

    #6069
    Nam Jongho
    Participant

    Hi,
    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.

    #6070
    Grant [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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.