fullseye

select_characters — MV text op

使い方

字のラベル画像から、高さと幅が中央値から外れた塊を落として左から振り直す。

高さと幅の中央値に対する比で判定する。塊が 1 つも無いと全 0 を返す(理由: 字が無い)。 空の入力(labels が 0 要素)は ValueError。

Args: labels: :func:segment_characters のラベル画像。 min_height_ratio: 高さの下限(中央値に対する比)。 max_height_ratio: 高さの上限(中央値に対する比)。 max_width_ratio: 幅の上限(中央値に対する比)。

Returns: labels と同じ形の整数ラベル画像。

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(labels2d を入力に取れる)

—

同カテゴリ(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.