From 677a1a70d2f5419c62538b3576db1cb9885ce44a Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 17 Oct 2023 07:09:34 -0600 Subject: [PATCH] Remove unused --- frigate/test/test_video.py | 2 +- frigate/util/object.py | 4 +--- frigate/video.py | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/frigate/test/test_video.py b/frigate/test/test_video.py index f2667bb62..d16a5bea9 100644 --- a/frigate/test/test_video.py +++ b/frigate/test/test_video.py @@ -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) diff --git a/frigate/util/object.py b/frigate/util/object.py index ae2a96a3d..30f02c407 100644 --- a/frigate/util/object.py +++ b/frigate/util/object.py @@ -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 diff --git a/frigate/video.py b/frigate/video.py index 891958f79..93b7019e9 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -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(