From d7cf61ee2dbf6ab5cff4d9623a821b40319fcbf7 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 24 Apr 2025 10:47:57 +0200 Subject: [PATCH] feat: added multiple bounding boxes support --- secure_pixelation/get_bounding_boxes.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/secure_pixelation/get_bounding_boxes.py b/secure_pixelation/get_bounding_boxes.py index 5924972..7dbd069 100644 --- a/secure_pixelation/get_bounding_boxes.py +++ b/secure_pixelation/get_bounding_boxes.py @@ -12,5 +12,10 @@ from .data_classes import RawImage def select_bounding_boxes(to_detect: str): raw_image = RawImage(to_detect) - r = cv2.selectROI(raw_image.image) - print(r) + bounding_boxes = cv2.selectROIs( + windowName=raw_image.name, + img=raw_image.image, + fromCenter=False + ) + + print(bounding_boxes)