Conversation
A button renders in several states (default/hover/pressed) but is one logical target; ab_locator picks one strategy and match_template(scales=) sweeps one template - neither fuses multiple references. Match each reference, cluster the hit centres, and accept only when >= min_votes agree within agree_px, returning the consensus point. Reuses visual_match.match_template + grounding_consensus; vote_centers is the pure voting core.
…le-batch Add match_ensemble: multi-template consensus matching
Every visual_match matcher grayscales first, so red vs green of identical shape is indistinguishable; color_region finds known-colour blobs but can't template-match a multi-colour glyph. Match on HSV hue/saturation with a colour-distance metric (TM_SQDIFF_NORMED, not correlation which normalises away the absolute hue). Reuses color_region's RGB loaders and visual_match's resize/NMS/Match.
…batch Add color_match: colour-aware (HSV) template matching
Matching mid-animation is a top flakiness source; wait_until_screen_stable gates a live loop with a boolean and can't score an injectable frame sequence or check a match held steady. region_stability scores consecutive-frame SSIM; match_persistence confirms a template is found in every frame with the centres agreeing within agree_px. Reuses ssim + visual_match + grounding_consensus.
…ity-batch Add match_stability: pre-match settle gating + match persistence
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 60 |
| Duplication | 1 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
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.



Release — multi-template / colour / stability
Ships 3 net-new features (#393–#395, docs v178–v180) to
main, all merged todevCI-green (SonarCloud + Codacy issues=0 + Actions matrices + Docker headless). Each ships the full 5-layer surface + headless test + EN/Zh docs + changelog.This completes the round-13 vision-robustness sub-lane (match_trust / match_autothresh / edge_match / subpixel_match / match_ensemble / color_match / match_stability). Merge with
--merge(no branch delete;devstays the working branch).