Skip to main content

API Docs (Unity Mobile)

GazeTracker#

public class GazeTracker

GazeTracker is the class that generates gaze tracking data from the video from the device's front camera.

Construction#

initGazeTracker#

public static void initGazeTracker(string license, InitializationDelegate.onInitialized onInitialized)

GazeTracker constructing process includes authentication.

The process is asynchronous.

  • parameter

    • license:

      • type: String
      • description: Key generated from SeeSo Console
    • onInitialized

      • type: InitializationDelegate.onInitialized
      • description: The implementation of InitializationDelegate onInitialized delegate. This contains GazeTracker construction result.
  • return: void

  • usage:

      void onInitialized(InitializationErrorType error)   {       Debug.Log("onInitialized result : " + error);       if(error == InitializationErrorType.ERROR_NONE)       {           isInitialized = true;       }       else       {           isInitialized = false;       }   }
      GazeTracker.initGazeTracker("key", onInitialized);

initGazeTracker with User Status Options#

public static void initGazeTracker(string license, InitializationDelegate.onInitialized onInitialized, UserStatusOption option)

GazeTracker constructing process includes authentication.

The process is asynchronous.

The created GazeTracker instance is delivered through InitializationDelegate.

To use this initGazeTracker and User Status in your production environment, please contact to the SeeSo team.

  • parameter

    • license:

      • type: String
      • description: Key generated from SeeSo Console
    • onInitialized

      • type: InitializationDelegate.onInitialized
      • description: The implementation of InitializationDelegate onInitialized delegate. This contains GazeTracker construction result.
    • option

    • type: UserStatusOption

    • description: A class containing User status option information

  • return: void

  • usage:

      void onInitialized(InitializationErrorType error)   {       Debug.Log("onInitialized result : " + error);       if(error == InitializationErrorType.ERROR_NONE)       {           isInitialized = true;       }       else       {           isInitialized = false;       }   }
      UserStatusOption option = new UserStatusOption();  option.useAll();
      GazeTracker.initGazeTracker("key", onInitialized, option);

Destruction#

deinitGazeTracker#

public static void deinitGazeTracker()
  • parameter: x

  • return: void

  • usage:

    GazeTracker.deinitGazeTracker(); 

Gaze Tracking#

startTracking#

public static void startTracking()

This is the function that should be called before starting gaze tracking.

It calls the onStarted() function when gaze tracking initialization succeeded and setStatusCallback(onStarted, onStopped) has been attached to GazeTracker.

  • parameter: x

  • return: void

  • usage:

    
    void onStarted(){    Debug.Log("onStarted");    isTracking = true;}
    void onStopped(StatusErrorType error){    Debug.Log("onStopped with error : " + error);    isTracking = false;}        GazeTracker.setStatusCallback(onStarted, onStopped);
    // after initGazeTracker Success, Call startTrackingGazeTracker.startTracking();

stopTracking#

public static void stopTracking()

This function is called to stop gaze tracking.

It calls the onStop() function when setStatusCallback(onStarted, onStopped) has been attached to GazeTracker.

  • parameter: x

  • return: void

  • usage:

    
    void onStarted()  {      Debug.Log("onStarted");      isTracking = true;  }
      void onStopped(StatusErrorType error)  {      Debug.Log("onStopped with error : " + error);      isTracking = false;  }
    GazeTracker.stopTracking();

isTracking#

public static bool isTracking()

This function represents the status of gaze tracking.

It returns true when gaze tracking is working, false when gaze tracking is stopped.

  • parameter: x

  • return: bool

  • usage:

    bool isTracking = GazeTracker.isTracking();

setTrackingFPS#

public static bool setTrackingFPS(int fps)

The parameter that sets the FPS of the gaze tracking source.

Its value should bigger than 0 and no more than 30.

FPS can be dropped due to device spec. The default value is 30.

  • parameter

    • fps

      • type: int
      • description: Custom FPS(Frame Per Second) for gaze tracking
  • return: bool

  • usage:

    GazeTracker.setTrackingFPS(20);

UserStatus Setting#

setAttentionInterval#

public static void setAttentionInterval(int interval)

Set time interval for the UserStatus Attention callback.

The UserStatus Attention score will be calculated for the given time interval.

The beginning and ending timestamps are passed through the onAttention callback as timestampBegin and timestampEnd.

The interval range is 10 to 60 (seconds), and the default value is 30 seconds.

  • parameter

    • interval

      • type: int
      • description: Time interval for the UserStatus Attention score.
  • return: void

  • usage:

    GazeTracker.setAttentionInterval(30);

Get UserStatus Data#

getAttentionScore#

public static float getAttentionScore()

Get current Attention score from the GazeTracker.

This API does not provide timestamp of the Attention score data.

Use onAttention callback, unless the Attention score is required at a specific time/location.

  • parameter: X

  • return: float

  • usage:

    float score = GazeTracker.getAttentionScore();

Calibration#

startCalibration#

public static bool startCalibration(CalibrationModeType calibrationModeType, float left, float top, float right, float bottom)public static bool startCalibration(CalibrationModeType mode, AccuracyCriteria criteria)public static bool startCalibration(float left, float top, float right, float bottom)public static bool startCalibration()

It returns true when parameters are valid.

It also returns false when the calibration region has been set outside of the device screen.

The false return will block the calibration process.

  • parameter

    • calibrationModeType

      • type: CalibrationModeType
      • description: Can select the calibration option. DEFAULT(=FIVE_POINT), ONE_POINT, FIVE_POINT, SIX_POINT.
      • default: DEFAULT
    • left,top,right,bottom

      • type: float
      • description: Region that needs calibration. The unit is px.
      • default: 80% region of device screen.
    • criteria

      • type: AccuracyCriteria
      • description: Option that manage calibration process and accuracy. Three options - DEFAULT, LOW, HIGH - are available. Default is DEFAULT.
      • default: DEFAULT
  • return: bool

  • usage:

    
        void onCalibrationNextPoint(float x, float y)    {        Debug.Log("onCalibrationNextPoint" + x + "," + y);
            calibrationX = _convertCoordinateX(x);        calibrationY = _convertCoordinateY(y);
            isNextStepReady = true;
        }    void onCalibrationProgress(float progress)    {        Debug.Log("onCalibrationProgress" + progress);        calibrationProgress = progress;    }            void onCalibrationFinished(double[] calibrationData)    {        Debug.Log("OnCalibrationFinished" + calibrationData.Length);        isCalibrationFinished = true;    }
        GazeTracker.setCalibrationCallback(onCalibrationNextPoint, onCalibrationProgress, onCalibrationFinished);
        bool success = GazeTracker.startCalibration();   

stopCalibration#

public static void stopCalibration()
  • parameter: x

  • return: void

  • usage:

    GazeTracker.stopCalibration();

startCollectSamples#

public static bool startCollectSamples()

This relies on the coordinates of the target point which should be displayed when calibration is in progress at the function: CalibrationDelegate.onCalibrationNextPoint.

You should display the coordinates on the screen and call startCollectSamples for calibration.

  • parameter: x

  • return: bool

  • usage:

      if (isNextStepReady)  {      isNextStepReady = false;      GazeTracker.startCollectSamples();  }

setCalibrationData#

public static bool setCalibrationData(double[] calibrationData)

Set existing calibration data to gazeTracker.

  • parameter:

    • calibrationData

      • type: double[]
      • description: Calibration Data
  • return: bool

  • usage:

    
    void onCalibrationFinished (double[] calibrationData){    Debug.Log("calibration is done");
      appStorageCalibrationData = calibrationData;}
    

// when you restart app etc... // you can set existing calibration data without new calibration GazeTracker.setCalibrationData(appStorageCalibrationData);


## Callback assistants
### setStatusCallback
```csharppublic static void setStatusCallback(StatusDelegate.onStarted onStarted, StatusDelegate.onStopped onStopped)

Enroll StatusDelegate delegate implementation to GazeTracker.

  • parameter

    • onStarted

      • type: StatusDelegate.onStarted
      • description: StatusDelegate onStarted delegate implementation. This will be called when tracking started
    • onStopped

      • type: StatusDelegate.onStopped
      • description: StatusDelegate onStopped delegate implementation. This will be called with error information when tracking stopped
  • return: void

  • usage:

    GazeTracker.setStatusCallback(onStarted, onStoped);
    void onStarted(){     Debug.Log("tracking is started");}
    void onStopped(int error){    Debug.Log("tracking is stopped");    if(error == 0) Debug.Log(InitializationErrorType.ERROR_NONE);    if(error == 1) Debug.Log(InitializationErrorType.ERROR_CAMERA_START);    if(error == 2) Debug.Log(InitializationErrorType.ERROR_CAMERA_INTERRUPT);}
    GazeTracker.startTracking();

removeStatusCallback#

public static void removeStatusCallback()

Remove all StatusDelegate implementations registered at GazeTracker

  • parameter: x

  • return: void

  • usage:

    GazeTracker.removeStatusCallback();

setGazeCallback#

public static void setGazeCallback(GazeDelegate.onGaze onGaze)

Enroll GazeDelegate delegate implementation to GazeTracker.

  • parameter

    • onGaze

      • type: GazeDelegate.onGaze
      • description: GazeDelegate onGaze delegate implementation.
    • onStopped

      • type: GazeDelegate.onFilteredGaze
      • description: GazeDelegate onFilteredGaze delegate implementation
  • return: void

  • usage:

    void onGaze(long timestamp, float x, float y, int trackingState){     Debug.Log("onGaze " + x + "," + y);}
    void onFilteredGaze(long timestamp, float x, float y, int trackingState){     Debug.Log("onFilteredGaze" + x + "," + y);}
    GazeTracker.setGazeCallback(onGaze, onFilteredGaze);GazeTracker.startTracking();

removeGazeCallback#

public void removeGazeCallback()

Remove all GazeDelegate delegate implementations registered at GazeTracker

  • parameter

  • return: void

  • usage:

    GazeTracker.removeGazeCallback();

setCalibrationCallback#

public void setCalibrationCallback(  CalibrationDelegate.onCalibrationNextPoint onCalibrationNextPoint   CalibrationDelegate.onCalibrationProgress onCalibrationProgress   CalibrationDelegate.onCalibrationFinished onCalibrationFinished)

Enroll CalibrationDelegate delegate implementation to GazeTracker.

  • parameter

    • onCalibrationNextPoint

      • type: CalibrationDelegate.onCalibrationNextPoint
      • description: CalibrationDelegate onCalibrationNextPoint delegate implementation.
    • onCalibrationProgress

      • type: CalibrationDelegate.onCalibrationProgress
      • description: CalibrationDelegate onCalibrationProgress delegate implementation.
    • onCalibrationFinished

      • type: CalibrationDelegate.onCalibrationFinished
      • description: CalibrationDelegate onCalibrationFinished delegate implementation.
  • return: void

  • usage:

    void onCalibrationNextPoint (float x, float y){    Debug.Log("current step calibration point will be positioned to " + x + "," + y);        // draw calibration point to x,y in Main Thread    // then call startCollectSamples    // GazeTracker.startCollectSamples();}
    void onCalibrationProgress (float progress){    Debug.Log("current point's calibration progress: ");}
    void onCalibrationFinished (double[] calibrationData){    Debug.Log("calibration is done");}
    GazeTracker.setCalibrationCallback(onCalibrationNextPoint, onCalibrationProgress, onCalibrationFinished);GazeTracker.startCalibration();

removeCalibrationCallback#

public void removeCalibrationCallback()

Remove all CalibrationDelegate delegate implementations registered at GazeTracker

  • parameter: x

  • return: void

  • usage:

    GazeTracker.removeCalibrationCallback();

setUserStatusCallback#

public static void setUserStatusCallback(UserStatusDelegate.onAttention onAttention, UserStatusDelegate.onBlink onBlink, UserStatusDelegate.onDrowsiness onDrowsiness)

Enroll UserStatusDelegate delegate implementation to GazeTracker.

  • parameter

    • onAttention

      • type: UserStatusDelegate.onAttention
      • description: UserStatusDelegate onAttention delegate implementation.
    • onBlink

      • type: UserStatusDelegate.onBlink
      • description: UserStatusDelegate onBlink delegate implementation.
    • onDrowsiness

      • type: UserStatusDelegate.onDrowsiness
      • description: UserStatusDelegate onDrowsiness delegate implementation.
  • return: void

  • usage:

    void onAttention(long timestampBegin, long timestamEnd, float score){    Debug.Log("onAttention " + score);}
    void onBlink(long timestamp, bool isBlinkLeft, bool isBlinkRight, bool isBlink, float eyeOpenness){  Debug.Log("onBlink " + isBlinkLeft + ", " + isBlinkRight + ", " + isBlink);}
    void onDrowsiness(long timestamp, bool isDrowsiness){  Debug.Log("onDrowsiness " + isDrowsiness);}
    GazeTracker.setUserStatusCallback(onAttention, onBlink, onDrowsiness);GazeTracker.startTracking();

removeUserStatusCallback#

public void removeUserStatusCallback()

Remove all UserStatusDelegate delegate implementations registered at GazeTracker

  • parameter: x

  • return: void

  • usage:

    GazeTracker.removeUserStatusCallback();

Camera Preview#

setCameraPreview#

public static void setCameraPreview(float left, float top, float right, float bottom)

Set camera preview to appear in the specified location

For Android, previews used by GazeTracker must be hardware acceleration enabled

  • parameter

    • left,top,right,bottom
      • type: float
      • description: Region that needs camera preview. The unit is px.
  • return: void

  • usage:

        GazeTracker.setCameraPreview(previewLeft, previewTop, previewRight, previewBottom);

removeCameraPreview#

public static void removeCameraPreview()

Remove camera preview

  • parameter: x

  • return: void

  • usage:

    GazeTracker.removeCameraPreview();

Version Check#

getVersionName#

public static string getVersionName()

Returns SeeSo SDK version.

  • parameter: x

  • return: string

  • usage:

    string version = GazeTracker.getVersionName();Debug.Log("SeeSo version: " + version);

InitializationDelegate#

public class InitializationDelegate

onInitialized#

public delegate void onInitailzed(InitializationErrorType error);

This is callback function being called when GazeTracker.initGazeTracker function has been called.

  • parameter

    • error

      • type: InitializationErrorType
      • description: The enum that contains error types of initGazeTracker.
  • return: void

  • implementation:

    GazeTracker.initGazeTracker("key", onInitialized);
    void onInitialized(InitializationErrorType error){  ...}

StatusDelegate#

public class StatusDelegate

onStarted#

public delegate void onStarted()

The function calld automatically after startTracking() of GazeTracker object succeeds. Calibration is available after this call.

  • parameter: x

  • return: void

  • implementation:

      void onStarted()  {      Debug.Log("onStarted");      isTracking = true;  }    void onStopped(StatusErrorType error)  {      Debug.Log("onStopped with error : " + error);      isTracking = false;  }        GazeTracker.setStatusCallback(onStarted, onStopped);
      GazeTracker.startTracking();

onStopped#

public delegate void onStopped(StatusErrorType error)
  • parameter

    • error

      • type: StatusErrorType
      • description: ERROR_NONE, ERROR_CAMERA_START, ERROR_CAMERA_INTERRUPT.
  • return: void

  • implementation:

      void onStarted()  {      Debug.Log("onStarted");      isTracking = true;  }    void onStopped(StatusErrorType error)  {      Debug.Log("onStopped with error : " + error);      isTracking = false;  }        GazeTracker.setStatusCallback(onStarted, onStopped);
      GazeTracker.startTracking();

GazeDelegate#

public class GazeDelegate

onGaze#

public delegate void onGaze(GazeInfo gazeInfo)
  • parameter:

    • gazeInfo

      • type: GazeInfo
  • return: void

  • implementation:

    
      void onGaze(GazeInfo gazeInfo)  {      Debug.Log("onGaze " + gazeInfo.timestamp + "," + gazeInfo.x + "," + gazeInfo.y + "," + gazeInfo.trackingState + "," + gazeInfo.eyeMovementState + "," + gazeInfo.screenState);  }
      GazeTracker.setGazeCallback(onGaze);  GazeTracker.startTracking();

CalibrationDelegate#

public class CalibrationDelegate

onCalibrationNextPoint#

public delegate void onCalibrationNextPoint(float x, float y)

The x, y coordinate value of the gaze point that should be focused on during the calibration process. A proper UI should be displayed on the screen to notify the calibration target point. You should call startCollectSamples to process the calibration.

  • parameter

    • x, y

      • type: float
      • description: The x, y coordinate value of the gaze point that should be focused on during the calibration process. Origin is the device screen. The unit is pixel(px).
  • return: void

  • implementation:

    void onCalibrationNextPoint (float x, float y){    Debug.Log("current step calibration point will be positioned to " + x + "," + y);        // draw calibration point to x,y in Main Thread    // then call startCollectSamples    // GazeTracker.startCollectSamples();}
    void onCalibrationProgress (float progress){    // Debug.Log("current point's calibration progress: " + progress);}
    void onCalibrationFinished (double[] calibrationData){    // Debug.Log("calibration is done");}
    GazeTracker.setCalibrationCallback(onCalibrationNextPoint, onCalibrationProgress, onCalibrationFinished);GazeTracker.startCalibration();

onCalibrationProgress#

public delegate void onCalibrationProgress(float progress)

This is callback function that represents the calibration progression. The value will be between 0.0~1.0. The value start increases when startCollectSamples function executed.

For UX, visualize the calibration progression with proper UI is recommended.

  • parameter

    • progress

      • type: float
      • description: Calibration progression for each point.
  • return: void

  • implementation:

    void onCalibrationNextPoint (float x, float y){    //Debug.Log("current step calibration point will be positioned to " + x + "," + y);        // draw calibration point to x,y in Main Thread
        // then call startCollectSamples    // GazeTracker.startCollectSamples();}
    void onCalibrationProgress (float progress){    Debug.Log("current point's calibration progress: " + progress);}
    void onCalibrationFinished (double[] calibrationData){    //Debug.Log("calibration is done");}
    GazeTracker.setCalibrationCallback(onCalibrationNextPoint, onCalibrationProgress, onCalibrationFinished);GazeTracker.startCalibration();

onCalibrationFinished#

    public delegate void onCalibrationFinished(double[] calibrationData)

This is callback function that notify if all calibration steps are finished.

The calibrationData is passed as a parameter, it has already been applied to GazeTracker.

You can save or load this calibration data directly into GazeTracker without new calibration process by calling setCalibrationData(calibrationData) when restarting the app etc..

  • parameter:

    • calibrationData

      • type: double[]
      • description: Calibration Data
  • return: void

  • implementation:

    void onCalibrationNextPoint (float x, float y){    //Debug.Log("current step calibration point will be positioned to " + x + "," + y);        // draw calibration point to x,y in Main Thread    // then call startCollectSamples    // GazeTracker.startCollectSamples();}
    void onCalibrationProgress (float progress){    // Debug.Log("current point's calibration progress: " + progress);}
    void onCalibrationFinished (double[] calibrationData){    Debug.Log("calibration is done");    // Delete Calibration Point    // The gaze data became robust!}
    GazeTracker.setCalibrationCallback(onCalibrationNextPoint, onCalibrationProgress, onCalibrationFinished);GazeTracker.startCalibration();

UserStatusDelegate#

public class UserStatusDelegate

The User Status includes Attention, Drowsiness, and Blink.

Attention: How much the user attention is focused on the screen content for interval time (0.0 ~ 1.0)

  • Timestamp range of the data will be passed as timestampBegin and timestampEnd in onAttention callback.
  • The default time interval is 30 seconds.
  • If the user attention level is low, score in onAttention callback will be closed to 0.0.
  • If the user attention level is high, score in onAttention callback will be closed to 1.0.

Drowsiness: If the user feel drowsiness (True/False)

  • Timestamp of the data will be passed as timestamp in onDrowsiness callback.
  • If the user feel Drowsiness, isDrowsiness in onDrowsiness callback will be true.
  • Otherwise, isDrowsiness will be false.

Blink: If the user blink eyes (left eye, right eye, general(both eyes))

  • Timestamp of the data will be passed as timestamp in onBlink callback.
  • If the user blink left eye, isBlinkLeft in onBlink callback will be true.
  • If the user blink right eye, isBlinkRight in onBlink callback will be true.
  • If the user blink eyes, isBlink in onBlink callback will be true (This is a general blink condition).
  • If the user's eyes are wide, eyeOpenness in onBlink callback will be closed to 1.0 (not available yet).
  • If the user's eyes are narrow, eyeOpenness in onBlink callback will be closed to 0.0 (not available yet).

onAttention#

public void onAttention(long timestampBegin, long timestampEnd, float score)
  • parameter:

    • timestampBegin

      • type: long
      • description: Beginning Timestamp of the data.
    • timestampEnd

      • type: long
      • description: Ending Timestamp of the data.
    • score

      • type: float
      • description: User Attention rate score between the timestamps.
  • return: void

  • implementation:

    void onAttention(long timestampBegin, long timestamEnd, float score){  userStatusAttention = "" + score;  Debug.Log("onAttention " + score);}
    GazeTracker.setUserStatusCallback(onAttention, onBlink, onDrowsiness);

onDrowsiness#

public delegate void onDrowsiness(long timestamp, bool isDrowsiness)
  • parameter:

    • timestamp

      • type: long
      • description: Timestamp of the data.
    • isDrowsiness

      • type: boolean
      • description: User Drowsiness flag.
  • return: void

  • implementation:

    void onDrowsiness(long timestamp, bool isDrowsiness){  userStatusDrowsiness = "" + isDrowsiness;  Debug.Log("onDrowsiness " + isDrowsiness);}
    GazeTracker.setUserStatusCallback(onAttention, onBlink, onDrowsiness);

onBlink#

public delegate void onBlink(long timestamp, bool isBlinkLeft, bool isBlinkRight, bool isBlink, float eyeOpenness)
  • parameter:

    • timestamp

      • type: long
      • description: Timestamp of the data.
    • isBlinkLeft

      • type: boolean
      • description: User Left Blink flag.
    • isBlinkRight

      • type: boolean
      • description: User Right Blink flag.
    • isBlink

      • type: boolean
      • description: User Blink flag.
    • eyeOpenness

      • type: float
      • description: User EyeOpenness rate (not available yet).
  • return: void

  • implementation:

    void onBlink(long timestamp, bool isBlinkLeft, bool isBlinkRight, bool isBlink, float eyeOpenness){  userStatusBlink = "blink : " + isBlink;  Debug.Log("onBlink " + isBlinkLeft + ", " + isBlinkRight + ", " + isBlink);}
    GazeTracker.setUserStatusCallback(onAttention, onBlink, onDrowsiness);

Class#

GazeInfo#

public class GazeInfo{    public long timestamp;    public float x;    public float y;    public TrackingState trackingState;    public EyeMovementState eyeMovementState;    public ScreenState screenState;}
  • variables:

    • timestamp

      • type: long
      • description: Timestamp of gaze point. The unit is millisecond. The time format is UTC.
    • x, y

      • type: float
      • description: x, y coordinate value of gaze point. Origin is device screen. The unit is pixel(px).
    • trackingState

      • type: TrackingState
      • description: SUCCESS, LOW_CONFIDENCE, UNSUPPORTED, FACE_MISSING
    • eyeMovementState

      • type: EyeMovementState
      • description: FIXATION, SACCADE, UNKNOWN
    • screenState

      • type: ScreenState
      • description: INSIDE_OF_SCREEN, OUTSIDE_OF_SCREEN, UNKNOWN

UserStatusOption#

public class UserStatusOption

The class contains User Status options information for GazeTracker

  • functions:

    • isUseAttention

      • parameter: x
      • return: boolean
      • description: Return true if Attention flag is on, otherwise return false.
    • isUseBlink

      • parameter: x
      • return: boolean
      • description: Return true if Blink flag is on, otherwise return false.
    • isUseDrowsiness

      • parameter: x
      • return: boolean
      • description: Return true if Drowsiness flag is on, otherwise return false.
    • useAttention

      • parameter: x
      • return: void
      • description: Set Attention flag.
    • useBlink

      • parameter: x
      • return: void
      • description: Set Blink flag.
    • useDrowsiness

      • parameter: x
      • return: void
      • description: Set Drowsiness flag.
    • useAll

      • parameter: x
      • return: void
      • description: Set All User Status flag.

Enum#

InitializationErrorType#

public enum InitializationErrorType

The enum that contains error types of InitializationDelegate.

Please read : Authentication for more details.

StatusErrorType#

public enum StatusErrorType

The enum that contains error types of StatusDelegate

  • enum

    • ERROR_NONE

      • type: enum
      • value: 0
      • description: Succeed without error.
    • ERROR_CAMERA_START

      • type: enum
      • value: 1
      • description: Error code occurs when GazeTracker.startTracking is called but front camera of device is not available.
    • ERROR_CAMERA_INTERRUPT

      • type: enum
      • value: 2
      • description: Error code occurs when the camera stream disturbed(i.e. used by other applications) or the application running at the background.

    TrackingState#

    public enum TrackingState

    The enum that contains state types using at GazeInfo.

  • enum

    • SUCCESS

      • type: enum
      • value: 0
      • description: Face alignment is in a best position (Gaze tracking success, with valid x and y).
    • LOW_CONFIDENCE

      • type: enum
      • value: 1
      • description: Face alignment is not in the best position, should not be used for precise gaze tracking (Gaze tracking success, with less accurate x and y).
    • UNSUPPORTED

      • type: enum
      • value: 2
      • description: Face alignment is not suitable for tracking (Gaze tracking fail, with invalid x and y).
    • FACE_MISSING

      • type: enum
      • value: 3
      • description: Face is missing (Gaze tracking fail).

    CalibrationModeType#

    public enum CalibrationModeType

    The enum that contains mode of GazeTracker.startCalibartion .

  • enum

    • DEFAULT

      • type: enum
      • value: 0
      • description: Default. Equal FIVE_POINT.
    • ONE_POINT

      • type: enum
      • value: 1
      • description: One-point calibration mode.
    • FIVE_POINT

      • type: enum
      • value: 5
      • description: Five-point calibration mode.
    • SIX_POINT

      • type: enum
      • value: 6
      • description: Six-point calibration mode.

AccuracyCriteria#

 public enum AccuracyCriteria

The enum that contains accuracy criteria of GazeTracker.startCalibartion .

  • enum

    • DEFAULT

      • type: enum
      • value: 0
      • description: Default calibration accuracy criteria.
    • LOW

      • type: enum
      • value: 1
      • description: Low calibration accuracy criteria.
    • HIGH

      • type: enum
      • value: 2
      • description: High calibration accuracy criteria.

    EyeMovementState#

    public enum EyeMovementState

    The Enum that contains eye movement state types using at GazeInfo

  • enum

    • FIXATION

      • type: enum
      • value: 0
    • SACCADE

      • type: enum
      • value: 1
    • UNKNOWN

      • type: enum
      • value: 2

    ScreenState#

    public enum ScreenState

    The Enum that contains screen state types using at GazeInfo

  • Enum

    • INSIDE_OF_SCREEN

      • type: enum
      • value: 0
      • description: Gaze tracking is success and the gaze point is inside of device screen
    • OUTSIDE_OF_SCREEN

      • type: enum
      • value: 1
      • description: Gaze tracking is success and the gaze point is outside of device screen
    • UNKNOWN

      • type: enum
      • value: 2
      • description: Gaze tracking is fail