Tobii Pro SDK Python API
|
Provides methods and properties for managing monocular and bi-monocular calibrations for screen based eye trackers. More...
Inherits object.
Public Member Functions | |
def | __init__ (self, eyetracker) |
Initialize a new ScreenBasedMonocularCalibration 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, eye_to_calibrate) |
Collects data for a calibration point for the selected eye(s). More... | |
def | discard_data (self, x, y, eye_to_calibrate) |
Removes the collected data for the specified eye(s) and calibration point. More... | |
def | compute_and_apply (self) |
Uses the collected data and tries to compute calibration parameters. More... | |
Provides methods and properties for managing monocular and bi-monocular calibrations for screen based eye trackers.
This type of calibration is not supported by all eye trackers. Check the DeviceCapabilities of the eye tracker first!
def tobii_research.ScreenBasedMonocularCalibration.collect_data | ( | self, | |
x, | |||
y, | |||
eye_to_calibrate | |||
) |
Collects data for a calibration point for the selected eye(s).
The point argument is the point on the display the 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. |
eye_to_calibrate | Selected eye for data collection. |
EyeTrackerConnectionFailedError | |
EyeTrackerFeatureNotSupportedError | |
EyeTrackerInvalidOperationError | |
EyeTrackerLicenseError | |
EyeTrackerInternalError |
def tobii_research.ScreenBasedMonocularCalibration.compute_and_apply | ( | self | ) |
Uses the collected data and tries to compute calibration parameters.
If the calculation is successful, the result is applied to the eye tracker. If there is insufficient data to compute a new calibration or if the collected data is not good enough then calibration fails and will not be applied. See find_all_eyetrackers or EyeTracker.__init__ on how to create an EyeTracker object.
EyeTrackerConnectionFailedError | |
EyeTrackerFeatureNotSupportedError | |
EyeTrackerInvalidOperationError | |
EyeTrackerLicenseError | |
EyeTrackerInternalError |
def tobii_research.ScreenBasedMonocularCalibration.discard_data | ( | self, | |
x, | |||
y, | |||
eye_to_calibrate | |||
) |
Removes the collected data for the specified eye(s) and 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. |
eye_to_calibrate | Selected eye for data discarding. |
def tobii_research.ScreenBasedMonocularCalibration.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.ScreenBasedMonocularCalibration.leave_calibration_mode | ( | self | ) |
Leaves the calibration mode.
See find_all_eyetrackers or EyeTracker.__init__ on how to create an EyeTracker object.