From 566a9296d0c2aeb6ce0a06ddf7e597ce69e355e7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:04:16 +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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index 10db7920..73b5c57b 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -1252,11 +1252,13 @@ class PixelateAnnotator(BaseAnnotator): for x1, y1, x2, y2 in clipped_xyxy: roi = scene[y1:y2, x1:x2] scaled_up_roi = cv2.resize( - src=roi, dsize=None, fx=1 / self.pixel_size, fy=1 / self.pixel_size) + src=roi, dsize=None, fx=1 / self.pixel_size, fy=1 / self.pixel_size + ) scaled_down_roi = cv2.resize( src=scaled_up_roi, dsize=(roi.shape[1], roi.shape[0]), - interpolation=cv2.INTER_NEAREST) + interpolation=cv2.INTER_NEAREST, + ) scene[y1:y2, x1:x2] = scaled_down_roi