detect opmatrix → tableimport fullseye as fs; fs.ledger.text_candidates(swt, min_area: 'int' = 8, max_var_ratio: 'float' = 0.5, aspect_range=(0.1, 10.0), max_height: 'int' = 300) (実装を直接呼ぶなら import textregion; textregion.text_candidates(swt, min_area: 'int' = 8, max_var_ratio: 'float' = 0.5, aspect_range=(0.1, 10.0), max_height: 'int' = 300)、台帳から引くなら opstext.get("text_candidates"))SWT の連結成分を文字候補に絞る(幅のばらつき・縦横比・大きさ)。
Epshtein 2010 §4 の規則: 成分内のストローク幅の分散が平均に対して小さい /
縦横比が極端でない / 大きすぎない。swt は :func:swt_map の swt。
Returns dict: boxes(N×4 の [y0, x0, y1, x1]、半開区間)/ labels /
stroke_width(各成分の中央値)/ n_components(絞る前の数)。
py -3.11 examples/poc_text_region_truth.pytable を入力に取れる)detect)—
Provenance: textregion.py — TEXT operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.