layout op• Data kinds: table → table
• Call: import fullseye as fs; fs.ledger.text_lines(boxes, stroke_width=None, overlap_ratio: 'float' = 0.5, gap_ratio: 'float' = 3.0, width_ratio: 'float' = 3.0) (to call the implementation directly, import textregion; textregion.text_lines(boxes, stroke_width=None, overlap_ratio: 'float' = 0.5, gap_ratio: 'float' = 3.0, width_ratio: 'float' = 3.0); from the registry, opstext.get("text_lines"))
Groups character-candidate boxes into lines (vertically overlapping, horizontally close, similar stroke width).
★ Basis of the rules (measured 2026-09-27): candidates become fragments per stroke (a horizontal bar and an 'l' differ in height by a factor of 5), so making "similar height" a condition split 3 lines into 30 to 60 lines. Line membership is judged by vertical overlap (at least overlap_ratio of the smaller height), the horizontal gap must be within gap_ratio times the larger height, and the stroke width within width_ratio times.
Returns dict: lines (M×4 rectangles) / members (list of candidate indices for each line).
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• The canonical algorithm (author, year) and its uses are named in the family usage guide above.
• poc_text_region_truth — py -3.11 examples/poc_text_region_truth.py
table as input)—
layout)—
*Provenance: textregion.py — TEXT operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.