getEyeGaze method

EyeGaze getEyeGaze()

Gets the estimated gaze.

return Estimated gaze. throws FaceException An error has occurred during Face Library execution.

Implementation

EyeGaze getEyeGaze() {
  Pointer<id3FaceEyeGaze> pEyeGaze = calloc();
  var err = faceSDK.id3FacePortrait_GetEyeGaze(_pHandle.value, pEyeGaze);
  if (err != FaceError.success.value) {
  	calloc.free(pEyeGaze);
  	throw FaceException(err);
  }
  return EyeGaze(pEyeGaze);
}