setMakeupThreshold method

void setMakeupThreshold(
  1. int makeupThreshold
)

Sets the make-up detection threshold. If the detection score is above this value, the persone is definitely wearing make-up. Hint: Default value 50.

param makeupThreshold Make-up detection threshold. throws FaceException An error has occurred during Face Library execution.

Implementation

void setMakeupThreshold(int makeupThreshold) {
  var err = faceSDK.id3FacePortraitProcessor_SetMakeupThreshold(_pHandle.value, makeupThreshold);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}