getEqualBrightnessThreshold method

int getEqualBrightnessThreshold()

Gets the equal brightness threshold. Above this value, the face is equally exposed. Hint: Default value is 10.

return Equal brightness threshold. throws FaceException An error has occurred during Face Library execution.

Implementation

int getEqualBrightnessThreshold() {
  Pointer<Int> pEqualBrightnessThreshold = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetEqualBrightnessThreshold(_pHandle.value, pEqualBrightnessThreshold);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vEqualBrightnessThreshold = pEqualBrightnessThreshold.value;
    return vEqualBrightnessThreshold;
  } finally {
    calloc.free(pEqualBrightnessThreshold);
  }
}