Fix tests

This commit is contained in:
Nick Mowen 2023-10-17 07:24:35 -06:00
parent 677a1a70d2
commit ebf091a595
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from unittest import TestCase, main from unittest import TestCase, main
from frigate.video import box_overlaps, reduce_boxes from frigate.util.object import box_overlaps, reduce_boxes
class TestBoxOverlaps(TestCase): class TestBoxOverlaps(TestCase):

View File

@ -73,7 +73,7 @@ class TestRegion(unittest.TestCase):
boxes = [(100, 100, 200, 200), (202, 150, 252, 200), (900, 900, 950, 950)] boxes = [(100, 100, 200, 200), (202, 150, 252, 200), (900, 900, 950, 950)]
cluster_candidates = get_cluster_candidates( 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) # save_clusters_image("cluster_candidates", boxes, cluster_candidates)