setTrackerMinimumFaceAge method

void setTrackerMinimumFaceAge(
  1. int trackerMinimumFaceAge
)

Sets the minimum number of consecutive detections to reach before creating a tracked face. Hint: Default value is 1 for FaceDetector4B since the false detection rate is low enough. If using a less accurate detector (such as FaceDetector3C) one might consider increasing a bit this value to avoid false tracks.

param trackerMinimumFaceAge Minimum number of consecutive detections to reach before creating a tracked face. throws FaceException An error has occurred during Face Library execution.

Implementation

void setTrackerMinimumFaceAge(int trackerMinimumFaceAge) {
  var err = faceSDK.id3FacePortraitProcessor_SetTrackerMinimumFaceAge(_pHandle.value, trackerMinimumFaceAge);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}