From 22987190fbf237348baa2f89007d74f50968941d Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 11 Jun 2023 08:29:03 -0500 Subject: [PATCH] fix variable scope --- frigate/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/video.py b/frigate/video.py index a24a9894c..874490eae 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -635,8 +635,8 @@ def get_cluster_candidates(frame_shape, min_region, boxes): ) # if region could be smaller and either box would be too small # for the resulting region, dont cluster + should_cluster = True if (cluster_region[2] - cluster_region[0]) > min_region: - should_cluster = True for b in potential_cluster: box = boxes[b] # boxes should be more than 5% of the area of the region