Home › Forums › Software Development › Using Tobii pro SDK Python
- This topic has 1 reply, 2 voices, and was last updated 1 year, 2 months ago by Jonas Högström.
Viewing 2 posts - 1 through 2 (of 2 total)
- AuthorPosts
- 12/07/2023 at 22:38 #23444StoyanGanchevParticipant
Hi,
From a while ago I have been trying to retrieve information about gaze position on a screen using the Tobii pro SDK and a Tobii eyetracker 4c, but the only thing I manage to get is the name and the serial number.
I want to ask if there is some further permission I need to get in order to retrieve information about the gaze point.
If anyone has already done such thing, please help.
I put the code I use below:import tobii_research as tr import time found_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 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, as_dictionary=True) time.sleep(5) my_eyetracker.unsubscribe_from(tr.EYETRACKER_GAZE_DATA, gaze_data_callback)
13/07/2023 at 09:45 #23447Jonas HögströmParticipant4C is a consumer tracker. Tobii Pro SDK only supports the Tobii Pro line of trackers. The list of supported trackers is here: https://developer.tobiipro.com/tobiiprosdk/supportedeyetrackers.html
- AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.