getResolutionThreshold method

int getResolutionThreshold()

Gets the threshold indicating whether the image resolution is sufficient. Hint: Default value is 90.

return Threshold indicating whether the image resolution is sufficient. throws FaceException An error has occurred during Face Library execution.

Implementation

int getResolutionThreshold() {
  Pointer<Int> pResolutionThreshold = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetResolutionThreshold(_pHandle.value, pResolutionThreshold);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vResolutionThreshold = pResolutionThreshold.value;
    return vResolutionThreshold;
  } finally {
    calloc.free(pResolutionThreshold);
  }
}