From 0bd9862f8a94a0a0f043d05d06f2beede98d4529 Mon Sep 17 00:00:00 2001 From: Christoforos Aristeidou Date: Fri, 29 Dec 2023 10:40:14 +0200 Subject: [PATCH] Class description for RoundBoundingBoxAnnotator --- supervision/annotators/core.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index 1c0cc58c..368436ea 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -1356,7 +1356,8 @@ class TriangleAnnotator(BaseAnnotator): class RoundBoundingBoxAnnotator(BaseAnnotator): """ - A class for drawing bounding boxes with round edges on an image using provided detections. + A class for drawing bounding boxes with round edges on an image + using provided detections. """ def __init__( @@ -1373,7 +1374,10 @@ class RoundBoundingBoxAnnotator(BaseAnnotator): thickness (int): Thickness of the bounding box lines. color_lookup (str): Strategy for mapping colors to annotations. Options are `INDEX`, `CLASS`, `TRACK`. - roundness (float): Percent of roundness for edge + roundness (float): Percent of roundness for edges of bounding box. + Value must be 0 < roundness <= 1.0 + By default roundness percent is calculated based on smaller side + length (width or height). """ self.color: Union[Color, ColorPalette] = color self.thickness: int = thickness