diff --git a/frigate/const.py b/frigate/const.py index dc666b9a9..0fb547e00 100644 --- a/frigate/const.py +++ b/frigate/const.py @@ -27,7 +27,7 @@ LABEL_CONSOLIDATION_MAP = { } LABEL_CONSOLIDATION_DEFAULT = 0.9 LABEL_NMS_MAP = { - "car": 0.7, + "car": 0.6, } LABEL_NMS_DEFAULT = 0.4 diff --git a/frigate/test/test_video.py b/frigate/test/test_video.py index cba63c950..339660bb5 100644 --- a/frigate/test/test_video.py +++ b/frigate/test/test_video.py @@ -287,6 +287,12 @@ class TestObjectBoundingBoxes(unittest.TestCase): consolidated_detections = reduce_detections(frame_shape, detections) assert len(consolidated_detections) == len(detections) + def test_vert_stacked_cars_not_reduced(self): + detections = [("car", 0.8, (954, 312, 1247, 475), 498512, 1.48, (800, 200, 1400, 600)), ("car", 0.85, (970, 380, 1273, 610), 698752, 1.56, (800, 200, 1400, 700))] + frame_shape = (720, 1280) + consolidated_detections = reduce_detections(frame_shape, detections) + assert len(consolidated_detections) == len(detections) + class TestRegionGrid(unittest.TestCase): def setUp(self) -> None: