def __init__(self, allowed_staleness=10, min_iou=0.6):
    """Constructor for MediaPipeTrackValidator.

    Args:
      allowed_staleness: How many updates the track can linger for until it is
        determined to be stale.
      min_iou: How much the detection box must match a tracked box to be
        determined as an associated detection.
    """
    self._track_map = {}
    self._allowed_staleness = allowed_staleness
    self._min_iou = min_iou