From ce19f917e99fd92e48e4abe977ae1ce3fd692e8d Mon Sep 17 00:00:00 2001 From: Christoforos Aristeidou Date: Fri, 12 Jan 2024 01:09:34 +0200 Subject: [PATCH] changed border thickness percentage, extract confidence level --- supervision/annotators/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index b21221d2..8ae9a241 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -1571,7 +1571,8 @@ class PercentageBarAnnotator(BaseAnnotator): anchor=self.position )[detection_idx].astype(int) - border_thickness = int(0.1 * self.height) + conf = detections.confidence[detection_idx] + border_thickness = int(0.15 * self.height) if self.position == "TOP_LEFT":