Home Forums Software Development Python tobii_research – subscribe_to

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22458
    Hanan
    Participant

    Hi,

    I’m trying to use the function subscribe_to for my Tobii eye tracker 5 in my python code and my callback function wants a call at all.
    maybe someone can help?

    Connection:

                    found_eyetrackers = tr.find_all_eyetrackers()
                    my_tobii = found_eyetrackers[0]
    

    subscribe:

    my_tobii.subscribe_to(tr.EYETRACKER_GAZE_DATA, callback=gaze_data_callback, as_dictionary=True)
    

    gaze_data_callback:

     def gaze_data_callback(gaze_data):
        global media_player, stimeSinceStart, global_gaze_data
        currentTimeSinceStart = media_player.get_time() / 1000
        stimeSinceStart.append(currentTimeSinceStart)
        global_gaze_data = gaze_data
        print(currentTimeSinceStart)
        print(gaze_data)
    

    I’m calibrate by calling Tobii.Configuration.exe -C through cmd.

    Thank you for your help!

    #22468
    Grant [Tobii]
    Keymaster

    Hi @hananw, The Tobii Pro SDK Python API is only available for Tobii Pro Trackers. The only SDK that is compatible with the Tobii ET5 is the Tobii Stream Engine which you need to apply for access via the form @ https://developer.tobii.com/software-downloads/

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