def precision(df, num_detections, num_false_positives):
    """Number of detected objects over sum of detected and false positives."""
    del df  # unused
    return math_util.quiet_divide(
        num_detections,
        num_false_positives + num_detections)
Number of detected objects over sum of detected and false positives.
motmetrics/metrics.py