From e421af494fd5d7bb3c20c86e3ca96df6247edb4c Mon Sep 17 00:00:00 2001 From: Bhavay Malhotra Date: Thu, 27 Jun 2024 17:43:10 +0530 Subject: [PATCH 1/2] Changed the parameters of overlay_image function --- supervision/annotators/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index 1c0ad8af..babbdf11 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -2089,7 +2089,7 @@ class CropAnnotator(BaseAnnotator): anchor=anchor, crop_wh=crop_wh, position=self.position ) scene = overlay_image( - scene=scene, inserted_image=resized_crop, anchor=(x1, y1) + image=scene, overlay=resized_crop, anchor=(x1, y1) ) color = resolve_color( color=self.border_color, From 552c8dbede733221120bc1defd6dcb885724b63b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:21:27 +0000 Subject: [PATCH 2/2] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20?= =?UTF-8?q?format=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/annotators/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index babbdf11..42c76053 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -2088,9 +2088,7 @@ class CropAnnotator(BaseAnnotator): (x1, y1), (x2, y2) = self.calculate_crop_coordinates( anchor=anchor, crop_wh=crop_wh, position=self.position ) - scene = overlay_image( - image=scene, overlay=resized_crop, anchor=(x1, y1) - ) + scene = overlay_image(image=scene, overlay=resized_crop, anchor=(x1, y1)) color = resolve_color( color=self.border_color, detections=detections,