generated from Hazel/python-project
feat: added multiple bounding boxes support
This commit is contained in:
parent
3d9ecea560
commit
d7cf61ee2d
@ -12,5 +12,10 @@ from .data_classes import RawImage
|
|||||||
def select_bounding_boxes(to_detect: str):
|
def select_bounding_boxes(to_detect: str):
|
||||||
raw_image = RawImage(to_detect)
|
raw_image = RawImage(to_detect)
|
||||||
|
|
||||||
r = cv2.selectROI(raw_image.image)
|
bounding_boxes = cv2.selectROIs(
|
||||||
print(r)
|
windowName=raw_image.name,
|
||||||
|
img=raw_image.image,
|
||||||
|
fromCenter=False
|
||||||
|
)
|
||||||
|
|
||||||
|
print(bounding_boxes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user