getRightEyeOpening method

int getRightEyeOpening()

Gets the value estimating the opening of the left eye. -1 if not computed. The range is 0-100, 100 meaning the eye is fully opened.

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

Implementation

int getRightEyeOpening() {
  Pointer<Int> pRightEyeOpening = calloc();
  try {
    var err = faceSDK.id3FacePortrait_GetRightEyeOpening(_pHandle.value, pRightEyeOpening);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vRightEyeOpening = pRightEyeOpening.value;
    return vRightEyeOpening;
  } finally {
    calloc.free(pRightEyeOpening);
  }
}