Remove unused

This commit is contained in:
Nick Mowen 2023-10-17 07:09:34 -06:00
parent 3e9820549c
commit 677a1a70d2
3 changed files with 3 additions and 6 deletions

View File

@ -73,7 +73,7 @@ class TestRegion(unittest.TestCase):
boxes = [(100, 100, 200, 200), (202, 150, 252, 200), (900, 900, 950, 950)]
cluster_candidates = get_cluster_candidates(
self.frame_shape, self.min_region_size, boxes
self.frame_shape, self.min_region_size, boxes, []
)
# save_clusters_image("cluster_candidates", boxes, cluster_candidates)

View File

@ -346,9 +346,7 @@ def get_cluster_boundary(box, min_region):
]
def get_cluster_candidates(
frame_shape, min_region, boxes, region_grid: list[list[dict[str, any]]]
):
def get_cluster_candidates(frame_shape, min_region, boxes):
# and create a cluster of other boxes using it's max region size
# only include boxes where the region is an appropriate(except the region could possibly be smaller?)
# size in the cluster. in order to be in the cluster, the furthest corner needs to be within x,y offset

View File

@ -591,7 +591,7 @@ def process_frames(
frame_shape, region_min_size, candidate, tracked_object_boxes
)
for candidate in get_cluster_candidates(
frame_shape, region_min_size, tracked_object_boxes, region_grid
frame_shape, region_min_size, tracked_object_boxes
)
]
@ -607,7 +607,6 @@ def process_frames(
frame_shape,
region_min_size,
standalone_motion_boxes,
region_grid,
)
motion_regions = [
get_cluster_region_from_grid(