Add confidence-returning template matching (score / multi-scale / find-all)#337
Merged
Conversation
Not up to standards ⛔
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Round-11, automation-core (visual lane). The existing matcher (
je_open_cv.find_object) is single-scale and discards the correlation score — no way to rank candidates, set a confidence threshold and read it back, match a DPI/zoom-scaled control, or enumerate every occurrence.Layers
je_auto_control/utils/visual_match/visual_match.py—Match(x/y/width/height/score/scale/center),match_template(best, multi-scale),match_template_all(all, NMS-deduped),best_matches(top-N). Injectablehaystack(ndarray/path/PIL) → headless-testable; OpenCV/NumPy imported lazily (via theje_open_cvdep). No PySide6.Matchaliased toTemplateMatch) +__all__.AC_match_template→ {found, match},AC_match_template_all→ {count, matches}.ac_match_template/ac_match_template_all.CommandSpecs under Image.Tests / docs
test/unit_test/headless/test_visual_match_batch.py— 8 headless tests (score+box, no-match, find-all+NMS, multi-scale on a non-self-similar texture, unknown-method ValueError, to_dict + wiring + facade) on synthetic arrays, guarded bypytest.importorskip("cv2").v127_features_doc.rst+ toctrees; 3 WHATS_NEW entries.Note: Codacy may show
action_requiredfrom its coverage gate only (issues=0); SonarCloud + all GitHub Actions are the substantive gates.