From 08af18ad41193e7cfd75bc472683a8be51a8c6ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:49:56 +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/draw/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/supervision/draw/utils.py b/supervision/draw/utils.py index 08f0b586..7acea903 100644 --- a/supervision/draw/utils.py +++ b/supervision/draw/utils.py @@ -209,8 +209,9 @@ def draw_image( scene_roi = scene[rect.y : rect.y + rect.height, rect.x : rect.x + rect.width] # Alpha blending - blended_roi = cv2.addWeighted(scene_roi, 1 - (alpha_channel / 255.0), image, - (alpha_channel / 255.0), 0) + blended_roi = cv2.addWeighted( + scene_roi, 1 - (alpha_channel / 255.0), image, (alpha_channel / 255.0), 0 + ) # Apply the blended ROI to the scene scene[rect.y : rect.y + rect.height, rect.x : rect.x + rect.width] = blended_roi