From 45e13941976b4c089fdc8659b2057dc5d356b9ed Mon Sep 17 00:00:00 2001 From: Sarah Gershuni Date: Sun, 7 Dec 2025 18:31:41 +0200 Subject: [PATCH 1/3] Increase MSE threshold from 45 to 95 --- src/frame_comparison/frame_change_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame_comparison/frame_change_detector.py b/src/frame_comparison/frame_change_detector.py index 8406d38..8b619bd 100644 --- a/src/frame_comparison/frame_change_detector.py +++ b/src/frame_comparison/frame_change_detector.py @@ -3,7 +3,7 @@ from numpy.typing import NDArray # configurable thresholds -MSE_THRESH = 45.0 +MSE_THRESH = 95.0 SSIM_THRESH = 0.992 FLOW_THRESH = 0.7 MIN_STATIC_FRAMES = 4 From 7dbaf7d80616558f4ad43d7c214c34ad4d1784cd Mon Sep 17 00:00:00 2001 From: Sarah Gershuni Date: Wed, 10 Dec 2025 13:52:03 +0200 Subject: [PATCH 2/3] tune thresholds --- src/frame_comparison/frame_change_detector.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/frame_comparison/frame_change_detector.py b/src/frame_comparison/frame_change_detector.py index 8b619bd..d415477 100644 --- a/src/frame_comparison/frame_change_detector.py +++ b/src/frame_comparison/frame_change_detector.py @@ -4,10 +4,9 @@ # configurable thresholds MSE_THRESH = 95.0 -SSIM_THRESH = 0.992 -FLOW_THRESH = 0.7 -MIN_STATIC_FRAMES = 4 -OPTICAL_FLOW_ACTIVE_THRESH = 0.5 +SSIM_THRESH = 0.93 +FLOW_THRESH = 0.85 +OPTICAL_FLOW_ACTIVE_THRESH = 0.3 class FrameChangeDetector: From 8b1758dcad473f1522b2b6bf48b290c78000b364 Mon Sep 17 00:00:00 2001 From: Sarah Gershuni Date: Wed, 10 Dec 2025 14:10:54 +0200 Subject: [PATCH 3/3] tune thresholds --- src/frame_comparison/frame_change_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame_comparison/frame_change_detector.py b/src/frame_comparison/frame_change_detector.py index d415477..23dbefd 100644 --- a/src/frame_comparison/frame_change_detector.py +++ b/src/frame_comparison/frame_change_detector.py @@ -5,7 +5,7 @@ # configurable thresholds MSE_THRESH = 95.0 SSIM_THRESH = 0.93 -FLOW_THRESH = 0.85 +FLOW_THRESH = 1.0 OPTICAL_FLOW_ACTIVE_THRESH = 0.3