fix: border thickness parameter usage for PercentageBarAnnotator

This commit is contained in:
soumik12345 committed 2025-07-22 15:48:54 +05:30
1 parent d251677774
commit d067f32678
1 file changed
+5 -2
+5 -2
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(