This project was forked from rafaelpadilla/Object-Detection-Metrics.
Installing object_detection_metrics
$ pip install object_detection_metricsfrom podm.podm import get_pascal_voc_metrics
gt_BoundingBoxes = ... # type: List[BoundingBox]
pd_BoundingBoxes = ... # type: List[BoundingBox]
results = get_pascal_voc_metrics(gt_BoundingBoxes, pd_BoundingBoxes, .5)- Intersection Over Union (IOU)
- TP and FP
- True Positive (TP): IOU ≥ IOU threshold (default: 0.5)
- False Positive (FP): IOU < IOU threshold (default: 0.5)
- Precision and Recall
- Average Precision
- 11-point AP
- all-point AP