diff --git a/docs/detection/double_detection_filter.md b/docs/detection/double_detection_filter.md index b0266371..5c450ce4 100644 --- a/docs/detection/double_detection_filter.md +++ b/docs/detection/double_detection_filter.md @@ -10,6 +10,12 @@ comments: true :::supervision.detection.overlap_filter.OverlapFilter +
+

OverlapMetric

+
+ +:::supervision.detection.overlap_filter.OverlapMetric +

box_non_max_suppression

diff --git a/supervision/detection/overlap_filter.py b/supervision/detection/overlap_filter.py index ab70c54e..9cff643f 100644 --- a/supervision/detection/overlap_filter.py +++ b/supervision/detection/overlap_filter.py @@ -413,8 +413,12 @@ class OverlapMetric(Enum): Enum specifying the metric for measuring overlap between detections. Attributes: - IOU: Intersection over Union. - IOS: Intersection over Similarity. + IOU: Intersection over Union. A region-overlap metric that compares + two shapes (usually bounding boxes or masks) by normalising the + shared area with the area of their union. + IOS: Intersection over Smaller, a region-overlap metric that compares + two shapes (usually bounding boxes or masks) by normalising the + shared area with the smaller of the two shapes. """ IOU = "IOU"