--- 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]" ```
:::supervision.metrics.mean_average_precision.MeanAveragePrecision :::supervision.metrics.mean_average_precision.MeanAveragePrecisionResult :::supervision.dataset.formats.coco.get_coco_class_index_mapping