generated from Hazel/python-project
feat: selecting single bounding box
This commit is contained in:
parent
208f818e18
commit
3d9ecea560
@ -1,7 +1,7 @@
|
||||
from .detect_humans import detect_humans
|
||||
from .get_bounding_boxes import select_bounding_boxes
|
||||
|
||||
|
||||
def cli():
|
||||
print(f"Running secure_pixelation")
|
||||
|
||||
detect_humans("assets/human_detection/humans.png")
|
||||
select_bounding_boxes("assets/human_detection/test.png")
|
||||
|
@ -1 +1,16 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
from .data_classes import RawImage
|
||||
|
||||
|
||||
# https://learnopencv.com/how-to-select-a-bounding-box-roi-in-opencv-cpp-python/
|
||||
|
||||
|
||||
def select_bounding_boxes(to_detect: str):
|
||||
raw_image = RawImage(to_detect)
|
||||
|
||||
r = cv2.selectROI(raw_image.image)
|
||||
print(r)
|
||||
|
Loading…
x
Reference in New Issue
Block a user