getRightEyeVisibility method

int getRightEyeVisibility()

Gets the value estimating the visibility of the right eye. -1 if not computed. The range is 0-100, 100 meaning the right eye is fully visible.

return Value estimating the visibility of the right eye. -1 if not computed. The range is 0-100, 100 meaning the right eye is fully visible. throws FaceException An error has occurred during Face Library execution.

Implementation

int getRightEyeVisibility() {
  Pointer<Int> pRightEyeVisibility = calloc();
  try {
    var err = faceSDK.id3FacePortrait_GetRightEyeVisibility(_pHandle.value, pRightEyeVisibility);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vRightEyeVisibility = pRightEyeVisibility.value;
    return vRightEyeVisibility;
  } finally {
    calloc.free(pRightEyeVisibility);
  }
}