setConfidenceThreshold method

void setConfidenceThreshold(
  1. int confidenceThreshold
)

Sets the confidence threshold, in the range (0;100). Hint: Default value is 50. Note: Setting a high threshold reduces false detection but can increase the number of undetected faces.

param confidenceThreshold Confidence threshold, in the range (0;100). throws FaceException An error has occurred during Face Library execution.

Implementation

void setConfidenceThreshold(int confidenceThreshold) {
  var err = faceSDK.id3FaceTracker_SetConfidenceThreshold(_pHandle.value, confidenceThreshold);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}