You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add auto-thresholded template matching (Otsu on score map)
Every match_template_all call forces a hand-tuned min_score: too low floods
NMS, too high drops re-themed targets, and the right value differs per asset.
Run Otsu on the correlation score histogram to find the valley between
background correlation and real matches, returning that cut-off plus a
separability score so a unimodal (no-match) surface is flagged. match_auto
returns one peak per above-threshold region via connected_boxes.
Copy file name to clipboardExpand all lines: WHATS_NEW.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# What's New — AutoControl
2
2
3
+
## What's new (2026-06-24) — Auto-Thresholded Template Matching (Otsu on the Score Map)
4
+
5
+
No more hand-tuned `min_score` — derive the match threshold from the score map. Full reference: [`docs/source/Eng/doc/new_features/v164_features_doc.rst`](docs/source/Eng/doc/new_features/v164_features_doc.rst).
6
+
7
+
-**`match_auto` / `auto_threshold`** (`AC_match_auto`, `AC_auto_threshold`): every `match_template_all` call forces you to guess `min_score` (too low floods NMS, too high drops re-themed targets, and it differs per asset). This runs Otsu on the *correlation score histogram* to find the valley between background correlation and real matches, returns that cut-off plus a *separability* score (near 0 = unimodal, no clear match → don't trust it). `match_auto` returns one peak per above-threshold region (via `connected_boxes`, avoiding duplicate hits on a wide peak), clamped by a `floor`. Reuses the new `visual_match._score_map`; injectable `haystack`; no `PySide6`.
8
+
3
9
## What's new (2026-06-24) — Token-Budgeted Observation Delta (What Changed)
4
10
5
11
Tell an agent *what changed* since the last step, not the whole screen again. Full reference: [`docs/source/Eng/doc/new_features/v163_features_doc.rst`](docs/source/Eng/doc/new_features/v163_features_doc.rst).
0 commit comments