diff --git a/docs/changelog.md b/docs/changelog.md index bd4b0952..23eb1629 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,7 @@ +### 0.5.2 April 13, 2023 + +- Fixed [[#63](https://github.com/roboflow/supervision/pull/63)]: `LineZone.trigger` function expects 4 values instead of 5. + ### 0.5.1 April 12, 2023 - Fixed `Detections.__getitem__` method did not return mask for selected item. diff --git a/supervision/__init__.py b/supervision/__init__.py index cf2838e7..9f5524a4 100644 --- a/supervision/__init__.py +++ b/supervision/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.5.1" +__version__ = "0.5.2" from supervision.annotation.voc import detections_to_voc_xml from supervision.detection.annotate import BoxAnnotator, MaskAnnotator diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 0466856d..51a24e5b 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -319,9 +319,7 @@ class Detections: ): return Detections( xyxy=self.xyxy[index], - mask=self.mask[index] - if self.mask is not None - else None, + mask=self.mask[index] if self.mask is not None else None, confidence=self.confidence[index] if self.confidence is not None else None,