docs: 📝 RoundBoundingBox documentations roundness fix

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
Onuralp SEZER 2024-01-06 03:33:10 +03:00
parent 98c0b8c2a5
commit 73ae555e10
No known key found for this signature in database
GPG Key ID: CF0835DFDF14CA38
1 changed files with 3 additions and 3 deletions

View File

@ -1381,7 +1381,7 @@ class RoundBoundingBoxAnnotator(BaseAnnotator):
color: Union[Color, ColorPalette] = ColorPalette.default(),
thickness: int = 2,
color_lookup: ColorLookup = ColorLookup.CLASS,
roundess: float = 0.6,
roundness: float = 0.6,
):
"""
Args:
@ -1398,9 +1398,9 @@ class RoundBoundingBoxAnnotator(BaseAnnotator):
self.color: Union[Color, ColorPalette] = color
self.thickness: int = thickness
self.color_lookup: ColorLookup = color_lookup
if not 0 < roundess <= 1.0:
if not 0 < roundness <= 1.0:
raise ValueError("roundness attribute must be float between (0, 1.0]")
self.roundness: float = roundess
self.roundness: float = roundness
def annotate(
self,