mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
Remove unused
This commit is contained in:
parent
3e9820549c
commit
677a1a70d2
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user