setMatchThreshold method

void setMatchThreshold(
  1. int matchThreshold
)

Sets the minimum match score to reach to preserve the ID of a tracked face between frame 't-1' and frame 't'. Hint: Default value is 3000 which corresponds to a False Match Rate of 1/1000.

param matchThreshold Minimum match score to reach to preserve the ID of a tracked face between frame 't-1' and frame 't'. throws FaceException An error has occurred during Face Library execution.

Implementation

void setMatchThreshold(int matchThreshold) {
  var err = faceSDK.id3FaceTracker_SetMatchThreshold(_pHandle.value, matchThreshold);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}