feat: added multiple bounding boxes support

This commit is contained in:
Hazel 2025-04-24 10:47:57 +02:00
parent 3d9ecea560
commit d7cf61ee2d

View File

@ -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)