--- comments: true description: API reference for MeanAveragePrecision — compute mAP for object detection benchmarking with boxes, masks, and oriented boxes. --- # Mean Average Precision Install the metrics extra before using this API: ```bash pip install "supervision[metrics]" ```

MeanAveragePrecision

:::supervision.metrics.mean_average_precision.MeanAveragePrecision

MeanAveragePrecisionResult

:::supervision.metrics.mean_average_precision.MeanAveragePrecisionResult

get_coco_class_index_mapping

:::supervision.dataset.formats.coco.get_coco_class_index_mapping