setFaceMaskThreshold method

void setFaceMaskThreshold(
  1. int faceMaskThreshold
)

Sets the face mask detection threshold. If the detection score is above this value, the person is probably wearing a mask. Hint: Default value is 35.

param faceMaskThreshold Face mask detection threshold. throws FaceException An error has occurred during Face Library execution.

Implementation

void setFaceMaskThreshold(int faceMaskThreshold) {
  var err = faceSDK.id3FacePortraitProcessor_SetFaceMaskThreshold(_pHandle.value, faceMaskThreshold);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}