Conversation
Every matcher returns integer coordinates from cv2.minMaxLoc; for a drag handle, fine slider or high-DPI display that rounding is the dominant click-placement error. Fit a parabola to the 3x3 score neighbourhood around the peak (independently on x/y) and return a float cx/cy. Reuses visual_match._score_map.
…ch-batch Add subpixel_match: sub-pixel template-match refinement
A target can be grounded several ways at once (set-of-marks / OCR / template / a11y / N model samples) and they don't always agree. ab_locator/element_scoring rank strategies by history; snap_to_element snaps a single coordinate - neither fuses simultaneous proposals. Cluster candidate points (or vote candidate elements), return the agreed point + agreement fraction + spread, and flag low-agreement targets so the agent zooms/asks instead of clicking blind.
…nsensus-batch Add grounding_consensus: self-consistency over grounding proposals
element_parse.reading_order is a flat top-to-bottom sort that interleaves columns on multi-column pages (A1, B1, A2, B2). Recover the correct order with recursive XY-cut: split at the widest whitespace valley (vertical -> columns, horizontal -> rows), so a two-column page reads A1, A2, B1, B2. flow_order returns the same index-tagged contract as reading_order (a drop-in column-aware upgrade, named to not shadow it).
…-batch Add reading_flow: column-aware reading order via XY-cut
text_regions merges glyphs into lines but nothing grouped those lines into paragraphs or detected lists; ocr/structure stops at flat rows. group_paragraphs starts a new paragraph wherever the vertical gap exceeds line_gap_factor x the median line height; detect_lists recognises bullet / ordinal items by their leading marker and left indent.
…batch Add text_blocks: paragraph & list grouping of OCR lines
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 159 |
| Duplication | 0 |
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 — round-13 tail (vision precision + grounding + layout)
Ships 4 net-new features (#384–#387, docs v171–v174) 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.flow_ordersits beside, not shadows,reading_order).Merge with
--merge(no branch delete;devstays the working branch).