# setTrackerMaximumFaceAge method

void setTrackerMaximumFaceAge(

1. int trackerMaximumFaceAge

)

Sets the maximum number of consecutive non-detections to be reached before deleting a tracked face. Hint: Default value is 2. One must adapt this value to its needs in terms of tracker identity memory (in seconds) and measured frame rate on target platform.

param trackerMaximumFaceAge Maximum number of consecutive non-detections to be reached before deleting a tracked face. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setTrackerMaximumFaceAge(int trackerMaximumFaceAge) {
      var err = faceSDK.id3FacePortraitProcessor_SetTrackerMaximumFaceAge(_pHandle.value, trackerMaximumFaceAge);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }