From 1e0f18f792a37cd07d7b5280ca35e00afd3ee812 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:11:28 +0000 Subject: [PATCH] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20form?= =?UTF-8?q?at=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/annotators/core.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index 449c24c2..2781746d 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -291,22 +291,17 @@ class BoxCornerAnnotator(BaseAnnotator): color_map=self.color_map, ) color = resolve_color(color=self.color, idx=idx) - corners = [ - (x1, y1), (x2, y1), - (x1, y2), (x2, y2) - ] + corners = [(x1, y1), (x2, y1), (x1, y2), (x2, y2)] for x, y in corners: x_end = x + self.corner_length if x == x1 else x - self.corner_length cv2.line( - scene, (x, y), (x_end, y), - color.as_bgr(), thickness=self.thickness + scene, (x, y), (x_end, y), color.as_bgr(), thickness=self.thickness ) y_end = y + self.corner_length if y == y1 else y - self.corner_length cv2.line( - scene, (x, y), (x, y_end), - color.as_bgr(), thickness=self.thickness + scene, (x, y), (x, y_end), color.as_bgr(), thickness=self.thickness ) return scene