1.首先在vs nuget包上下载Tobii StreamEngine。
2.连接tobii
EyeTrackerCollection con = EyeTrackingOperations.FindAllEyeTrackers();
IEyeTracker trac = EyeTrackingOperations.GetEyeTracker(con[0].Address);
3.异步校准
private async System.Threading.Tasks.Task Calibrate(IEyeTracker eyeTracker)
{
// Create a calibration object.
var calibration = new ScreenBasedCalibration(eyeTracker);
// Enter calibration mode.
await calibration.EnterCalibrationModeAsync();
// Define the points on screen we should calibrate at.
// The coordinates are normalized, i.e. (0.0f, 0.0f) is the upper left corner and (1.0f, 1.0f) is the lower right corner.
var pointsToCalibrate = new NormalizedPoint2D[] {
new NormalizedPoint2D(0.1f, 0.1f),
new NormalizedPoint2D(0.1f