From 9fba46d7f7b6f6dabaaa6cbab61d9c2e9400a7fb Mon Sep 17 00:00:00 2001 From: AdrianoDev Date: Fri, 24 Apr 2026 09:58:15 +0200 Subject: [PATCH] fix: default score 0.65 + verify 0.25 nel simple match Default precedenti scartavano match validi con variazione intensita attorno al foro (verify NCC 0.4 troppo stretto). Nuovo: 4/5 fori corona dentata trovati con default. Co-Authored-By: Claude Opus 4.7 (1M context) --- pm2d/web/server.py | 4 +++- pm2d/web/static/index.html | 6 ++++-- pm2d/web/static/style.css | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pm2d/web/server.py b/pm2d/web/server.py index 749933d..817c452 100644 --- a/pm2d/web/server.py +++ b/pm2d/web/server.py @@ -230,7 +230,9 @@ def _simple_to_technical( "min_score": p.min_score, "max_matches": p.max_matches, "nms_radius": 0, - "verify_threshold": 0.4, + # Verify NCC più permissivo per match con variazione intensità + # (foro su sfondo variabile, parti di oggetto ecc.) + "verify_threshold": 0.25, } diff --git a/pm2d/web/static/index.html b/pm2d/web/static/index.html index 9ab5ae5..6be8a23 100644 --- a/pm2d/web/static/index.html +++ b/pm2d/web/static/index.html @@ -79,8 +79,10 @@
- - + +
diff --git a/pm2d/web/static/style.css b/pm2d/web/static/style.css index b767ab3..41f5df1 100644 --- a/pm2d/web/static/style.css +++ b/pm2d/web/static/style.css @@ -76,6 +76,7 @@ canvas { } #v-score { color: #00c8ff; font-weight: bold; } +.hint { color: #777; font-size: 10px; font-weight: normal; margin-left: 4px; } details { margin-top: 10px; font-size: 12px; } details summary {