# setMinimumTrackedFaceAge method

void setMinimumTrackedFaceAge(

1. int minimumTrackedFaceAge

)

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 minimumTrackedFaceAge Minimum number of consecutive detections to reach before creating a tracked face. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setMinimumTrackedFaceAge(int minimumTrackedFaceAge) {
      var err = faceSDK.id3FaceTracker_SetMinimumTrackedFaceAge(_pHandle.value, minimumTrackedFaceAge);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }