From d80df57ef826f6bea81f832c9a271426e0b66131 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Wed, 31 Jul 2024 20:09:23 +0200 Subject: [PATCH] Increase default threshold value for image pattern matching The previous default value could cause a lot of false positive detections and thus cause confusion if the image detection is working correctly or not. --- plugins/video/paramerter-wrappers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/video/paramerter-wrappers.hpp b/plugins/video/paramerter-wrappers.hpp index 3db1c8a5..6fa0e531 100644 --- a/plugins/video/paramerter-wrappers.hpp +++ b/plugins/video/paramerter-wrappers.hpp @@ -60,7 +60,7 @@ public: bool useForChangedCheck = false; bool useAlphaAsMask = false; cv::TemplateMatchModes matchMode = cv::TM_CCORR_NORMED; - NumberVariable threshold = 0.8; + NumberVariable threshold = 0.999; }; class ObjDetectParameters {