def num_detections(df, num_matches, num_switches):
    """Total number of detected objects including matches and switches."""
    del df  # unused
    return num_matches + num_switches
Total number of detected objects including matches and switches.
motmetrics/metrics.py