diff --git a/config.yaml b/config.yaml index 93ccc3f..3761b8b 100644 --- a/config.yaml +++ b/config.yaml @@ -28,7 +28,7 @@ roi: stabilizer: ema_alpha: 0.35 - max_hold: 25 # frames to hold occluded tracks (platform parity: 25 = ~1s @25fps) + max_hold: 10 # FCP parity: predict.py:668 (max_hold_frames=10) pipeline: detect_interval: 1 # detection+tracking every N frames (1 = every frame, most accurate) diff --git a/tests/test_config.py b/tests/test_config.py index bc68ecb..69f9a02 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -135,3 +135,9 @@ def test_detection_thresholds_match_fcp(): assert cfg["min_bbox_area"]["sack"] == 1500 assert cfg["min_bbox_area"]["box"] == 1000 assert cfg["min_bbox_area"]["truck"] == 5000 + + +def test_stabilizer_hold_matches_fcp(): + cfg = load_config() + assert cfg["stabilizer"]["ema_alpha"] == 0.35 + assert cfg["stabilizer"]["max_hold"] == 10