{"docs":[{"id":198,"title":"Object Detection Metrics: Precision, Recall and mAP Explained","heading":"Object Detection Metrics: Precision, Recall and mAP Explained","subheading":null,"category":"Computer Vision","body":{"root":{"type":"root","children":[{"type":"heading","tag":"h3","version":1,"children":[{"type":"text","text":"From boxes to mAP","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Intersection over union is the overlap area of a predicted and a true box divided by the area of their union. Detections are sorted by confidence and matched to unmatched true boxes above the IoU threshold; duplicates and unmatched detections are false positives, and unfound objects are false negatives.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Sweeping the confidence threshold traces a precision-recall curve. Average precision is the area under that curve for one class, and mAP is the mean across classes, and in COCO also across IoU thresholds.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"tags":"Computer Vision, Object Detection, Metrics","cardCta":{"label":null,"link":null},"pageCta":{"label":"Talk to AAVICO engineering","link":"/contact"},"excerpt":"Detection results are reported as precision, recall and mAP, and the numbers are easy to misread. These are the definitions and how to use them to judge a model.","featuredImage":null,"type":"Blog","readTime":"3 min read","publishedAt":"2026-11-15T14:01:00.000Z","heroImage":null,"introText":"An object detector outputs boxes, classes and confidence scores, and judging it means deciding which boxes count as correct. Precision, recall and mean average precision are the standard measures, and each answers a different question. Understanding how they are calculated makes it possible to compare models fairly and to choose a confidence threshold that suits the product rather than the leaderboard.","metrics":[{"id":"object-detection-metrics-precision-recall-and-ma-metric-1","value":"TP/(TP+FP)","label":"Precision: the share of detections that are correct.","icon":null},{"id":"object-detection-metrics-precision-recall-and-ma-metric-2","value":"TP/(TP+FN)","label":"Recall: the share of real objects that were found.","icon":null},{"id":"object-detection-metrics-precision-recall-and-ma-metric-3","value":"IoU 0.5","label":"A common overlap threshold for counting a predicted box as a match.","icon":null},{"id":"object-detection-metrics-precision-recall-and-ma-metric-4","value":"0.5:0.95","label":"The COCO convention, averaging over IoU thresholds from 0.5 to 0.95.","icon":null}],"gallery":[],"challenge":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"A single mAP figure hides the trade-off the product actually faces. A detector can score well overall while missing a rare but critical class, or while producing more false alarms than an operator will tolerate.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Figures are also computed differently. The PASCAL VOC convention uses one IoU threshold of 0.5, while COCO averages over ten thresholds, so mAP values calculated under different protocols cannot be compared. Results on a public benchmark also say little about performance on your own images.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"blockquote":{"quote":"Report precision and recall at the threshold you will ship, per class. mAP alone does not tell you that.","author":"","role":"AAVICO Engineering"},"supportImage1":null,"deliverables":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Agree the evaluation protocol, IoU threshold and test set before comparing any models.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Decide which error costs more in the product, a missed object or a false alarm, and per class if needed.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Choose the operating confidence threshold from the precision-recall curve and report both values at that point.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"results":[{"id":"object-detection-metrics-precision-recall-and-ma-result-1","title":"Fair Comparisons","description":"Models are scored under the same protocol on the same data."},{"id":"object-detection-metrics-precision-recall-and-ma-result-2","title":"Product Fit","description":"The threshold reflects the real cost of each error type."},{"id":"object-detection-metrics-precision-recall-and-ma-result-3","title":"Visible Weaknesses","description":"Per-class results expose classes the average conceals."},{"id":"object-detection-metrics-precision-recall-and-ma-result-4","title":"Clear Acceptance","description":"Pass criteria are numbers everyone understands."}],"lookingAhead":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"For counting or tracking applications, add task-level checks such as count error per image, since a good mAP does not guarantee correct counts.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Inspect false positives and false negatives by eye. Patterns in the errors, such as small, distant or partly hidden objects, usually point to missing training data.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"supportImage2":null,"testimonial":{"quote":null,"author":null,"role":null,"photo":null},"challengesSolved":[{"id":"object-detection-metrics-precision-recall-and-ma-challenge-1","title":"mAP values from different protocols compared","description":null,"icon":null},{"id":"object-detection-metrics-precision-recall-and-ma-challenge-2","title":"A rare class hidden by the average","description":null,"icon":null},{"id":"object-detection-metrics-precision-recall-and-ma-challenge-3","title":"A threshold chosen without considering cost","description":null,"icon":null},{"id":"object-detection-metrics-precision-recall-and-ma-challenge-4","title":"Recall reported without precision","description":null,"icon":null}],"relatedPosts":[],"contactUs":{"show":true},"updatedAt":"2026-11-15T17:32:32.682Z","createdAt":"2026-11-15T17:32:32.682Z"}],"hasNextPage":false,"hasPrevPage":false,"limit":10,"nextPage":null,"page":1,"pagingCounter":1,"prevPage":null,"totalDocs":1,"totalPages":1}