getNaturalSkinColorThreshold method

int getNaturalSkinColorThreshold()

Gets the natural skin color threshold. Above this threshold, th skin of the person looks natural. Hint: Default value is 5.

return Natural skin color threshold. throws FaceException An error has occurred during Face Library execution.

Implementation

int getNaturalSkinColorThreshold() {
  Pointer<Int> pNaturalSkinColorThreshold = calloc();
  try {
    var err = faceSDK.id3FacePortraitProcessor_GetNaturalSkinColorThreshold(_pHandle.value, pNaturalSkinColorThreshold);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vNaturalSkinColorThreshold = pNaturalSkinColorThreshold.value;
    return vNaturalSkinColorThreshold;
  } finally {
    calloc.free(pNaturalSkinColorThreshold);
  }
}