/// <summary> /// Returns screen space gaze estimation data obtained in offline gaze tracking mode /// /// This function is used for obtaining estimation data in offline mode (in online mode estimation data is a part of the FaceData object passed to the track() function). /// It returns the repository containing screen space gaze data for each non - calibration frame of processed sequence. /// /// The method returns an empty array if called during tracking. /// /// Note that each time this method is called, the memory for returned ScreenSpaceGazeRepository object is deallocated and reallocated. /// /// @param repository to be filled with screen space gaze data for last tracked sequence /// @return quality grade from 0 to 1 where 0 is the worst grade while 1 is the best. /// @see ScreenSpaceGazeRepository, ScreenSpaceGazeData, InitOfflineGazeCalibration() /// </summary> float GetGazeEstimations(ref ScreenSpaceGazeRepository repository);
/// <summary> /// Initializes offline screen space gaze tracking. Offline mode is used when tracking from video file. /// This method must be called before tracking is started using VisageTracker::Track(). Calibration data is passed to the tracker as a ScreenSpaceGazeRepository object containing a number of calibration points, /// each consisting of the position of the calibration point in normalized screen coordinates and the frame index in which the calibration point was displayed to the user. /// The data for each calibration point is stored as a ScreenSpaceGazeData object. /// /// During the calibration phase tracker reads calibration points from the provided ScreenSpaceGazeRepository and collects tracking data in corresponding frames of the tracked video sequence. /// The gaze tracking system is calibrated automatically after all calibration points from the provided repository are used. /// After the tracking of the whole video sequence is finished, the screen space gaze positions can be obtained by calling GetGazeEstimations() method. /// /// @param calibrator Pointer to ScreenSpaceGazeRepository containing calibration data. /// @see ScreenSpaceGazeData, ScreenSpaceGazeRepository, GetGazeEstimations() /// </summary> void InitOfflineGazeCalibration(ScreenSpaceGazeRepository calibrator);