Merge pull request #1906 from roboflow/fix/border_thickness

fix: border thickness parameter usage for `PercentageBarAnnotator`
This commit is contained in:
Piotr Skalski 2025-07-22 12:27:26 +02:00 committed by GitHub
commit 0c8a9d34a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -2239,8 +2239,11 @@ class PercentageBarAnnotator(BaseAnnotator):
self.position: Position = position
self.color_lookup: ColorLookup = color_lookup
if border_thickness is None:
self.border_thickness = int(0.15 * self.height)
self.border_thickness = (
border_thickness
if border_thickness is not None
else int(0.15 * self.height)
)
@ensure_cv2_image_for_annotation
def annotate(