# getMaximumTrackedFaceAge method

int getMaximumTrackedFaceAge()

Gets the maximum number of consecutive non-detections to reach before deleting a tracked face. Hint: Default value is 30 which corresponds to 2s at a frame rate of 15 FPS. One must adapt this value to its needs in terms of tracker identity memory (in seconds) and measured frame rate on target platform.

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

## Implementation

    int getMaximumTrackedFaceAge() {
      Pointer<Int> pMaximumTrackedFaceAge = calloc();
      try {
        var err = faceSDK.id3FaceTracker_GetMaximumTrackedFaceAge(_pHandle.value, pMaximumTrackedFaceAge);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vMaximumTrackedFaceAge = pMaximumTrackedFaceAge.value;
        return vMaximumTrackedFaceAge;
      } finally {
        calloc.free(pMaximumTrackedFaceAge);
      }
    }