getOverExposureThreshold method

int getOverExposureThreshold()

Gets the over exposure threshold. Above this threshold, the ratio of face pixels are over-exposed. Hint: Default value is 50.

return Over exposure threshold. throws FaceException An error has occurred during Face Library execution.

Implementation

int getOverExposureThreshold() {
  Pointer<Int> pOverExposureThreshold = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetOverExposureThreshold(_pHandle.value, pOverExposureThreshold);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vOverExposureThreshold = pOverExposureThreshold.value;
    return vOverExposureThreshold;
  } finally {
    calloc.free(pOverExposureThreshold);
  }
}