text oplabels2d → labels2dimport fullseye as fs; fs.ledger.select_characters(labels, min_height_ratio=0.5, max_height_ratio=1.5, max_width_ratio=2.0) (実装を直接呼ぶなら import mvtext; mvtext.select_characters(labels, min_height_ratio=0.5, max_height_ratio=1.5, max_width_ratio=2.0)、台帳から引くなら opsmv.get("select_characters"))select_characters(意味・パラメータは HALCON リファレンスが参考になる)字のラベル画像から、高さと幅が中央値から外れた塊を落として左から振り直す。
高さと幅の中央値に対する比で判定する。塊が 1 つも無いと全 0 を返す(理由: 字が無い)。
空の入力(labels が 0 要素)は ValueError。
Args:
labels: :func:segment_characters のラベル画像。
min_height_ratio: 高さの下限(中央値に対する比)。
max_height_ratio: 高さの上限(中央値に対する比)。
max_width_ratio: 幅の上限(中央値に対する比)。
Returns:
labels と同じ形の整数ラベル画像。
py -3.11 examples/machine_vision_tour.pylabels2d を入力に取れる)—
text)text_line_orientation · text_line_slant · segment_characters
Provenance: mvtext.py — MV operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.