Tobii Pro SDK Python API
|
Provides methods and properties for managing calibrations for screen based eye trackers. More...
Inherits object.
Public Member Functions | |
def | __init__ (self, eyetracker) |
Initialize a new ScreenBasedCalibration object from an existing EyeTracker object. | |
def | enter_calibration_mode (self) |
Enters the calibration mode and the eye tracker is made ready for collecting data and calculating new calibrations. More... | |
def | leave_calibration_mode (self) |
Leaves the calibration mode. More... | |
def | collect_data (self, x, y) |
Starts collecting data for a calibration point. More... | |
def | discard_data (self, x, y) |
Removes the collected data associated with a specific calibration point. More... | |
def | compute_and_apply (self) |
Uses the data in the temporary buffer and tries to compute calibration parameters. More... | |
Provides methods and properties for managing calibrations for screen based eye trackers.
def tobii_research.ScreenBasedCalibration.collect_data | ( | self, | |
x, | |||
y | |||
) |
Starts collecting data for a calibration point.
The argument used is the point the calibration user is assumed to be looking at and is given in the active display area coordinate system. See find_all_eyetrackers or EyeTracker.__init__ on how to create an EyeTracker object.
x | Normalized x coordinate on the active display area. |
y | Normalized y coordinate on the active display area. |
EyeTrackerConnectionFailedError | |
EyeTrackerFeatureNotSupportedError | |
EyeTrackerInvalidOperationError | |
EyeTrackerLicenseError | |
EyeTrackerInternalError |
def tobii_research.ScreenBasedCalibration.compute_and_apply | ( | self | ) |
Uses the data in the temporary buffer and tries to compute calibration parameters.
If the call is successful, the data is copied from the temporary buffer to the active buffer. If there is insufficient data to compute a new calibration or if the collected data is not good enough then an exception will be raised. See find_all_eyetrackers or EyeTracker.__init__ on how to create an EyeTracker object.
EyeTrackerConnectionFailedError | |
EyeTrackerFeatureNotSupportedError | |
EyeTrackerInvalidOperationError | |
EyeTrackerLicenseError | |
EyeTrackerInternalError |
def tobii_research.ScreenBasedCalibration.discard_data | ( | self, | |
x, | |||
y | |||
) |
Removes the collected data associated with a specific calibration point.
See find_all_eyetrackers or EyeTracker.__init__ on how to create an EyeTracker object.
x | Normalized x coordinate on the active display area. |
y | Normalized y coordinate on the active display area. |
def tobii_research.ScreenBasedCalibration.enter_calibration_mode | ( | self | ) |
Enters the calibration mode and the eye tracker is made ready for collecting data and calculating new calibrations.
See find_all_eyetrackers or EyeTracker.__init__ on how to create an EyeTracker object.
def tobii_research.ScreenBasedCalibration.leave_calibration_mode | ( | self | ) |
Leaves the calibration mode.
See find_all_eyetrackers or EyeTracker.__init__ on how to create an EyeTracker object.