Home › Forums › Software Development › Python tobii_research – subscribe_to
Tagged: o general split ac dubai
- This topic has 1 reply, 2 voices, and was last updated 1 year, 11 months ago by Grant [Tobii].
Viewing 2 posts - 1 through 2 (of 2 total)
- AuthorPosts
- 06/10/2022 at 13:30 #22458HananParticipant
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!
11/10/2022 at 13:54 #22468Grant [Tobii]KeymasterHi @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/
- AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.