mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Fix tests
This commit is contained in:
parent
677a1a70d2
commit
ebf091a595
@ -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):
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user