Home › Forums › Software Development › SDK pro for tobii 5
Tagged: sdk
- This topic has 0 replies, 1 voice, and was last updated 3 months, 3 weeks ago by ludymila.
- AuthorPosts
- 10/06/2024 at 22:25 #24567ludymilaParticipant
Hi, I acquired the Tobii 5 and followed the steps to get the eye gaze data. This is my code:
import tobii_research as tr
import timefound_eyetrackers = tr.find_all_eyetrackers()
my_eyetracker = found_eyetrackers[0]
print(“Address: ” + my_eyetracker.address)
print(“Model: ” + my_eyetracker.model)
print(“Name (It’s OK if this is empty): ” + my_eyetracker.device_name)
print(“Serial number: ” + my_eyetracker.serial_number)def gaze_data_callback(gaze_data):
print(gaze_data[‘left_gaze_point_on_display_area’])
# Print gaze points of left and right eye
print(“Left eye: ({gaze_left_eye}) \t Right eye: ({gaze_right_eye})”.format(
gaze_left_eye=gaze_data[‘left_gaze_point_on_display_area’],
gaze_right_eye=gaze_data[‘right_gaze_point_on_display_area’]))my_eyetracker.subscribe_to(tr.EYETRACKER_GAZE_DATA, gaze_data_callback)
time.sleep(5)
my_eyetracker.unsubscribe_from(tr.EYETRACKER_GAZE_DATA, gaze_data_callback)However, it doesn’t work. It seems I need an SDK for Tobii 5 instead of SDK PRO. I’ve sent several requests without success. Does anyone have any suggestions?
- AuthorPosts
- You must be logged in to reply to this topic.