Merge pull request #1312 from Bhavay-2001/overlay_image

Updated overlay_image function in CropAnnotator
This commit is contained in:
Linas Kondrackis
2024-07-01 14:32:31 +03:00
committed by GitHub
+1 -3
View File
@@ -2102,9 +2102,7 @@ class CropAnnotator(BaseAnnotator):
(x1, y1), (x2, y2) = self.calculate_crop_coordinates(
anchor=anchor, crop_wh=crop_wh, position=self.position
)
scene = overlay_image(
scene=scene, inserted_image=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,