select_characters — MV text op

• Data kinds: labels2d → labels2d

• Call: import fullseye as fs; fs.ledger.select_characters(labels, min_height_ratio=0.5, max_height_ratio=1.5, max_width_ratio=2.0) (to call the implementation directly, import mvtext; mvtext.select_characters(labels, min_height_ratio=0.5, max_height_ratio=1.5, max_width_ratio=2.0); from the registry, opsmv.get("select_characters"))

• HALCON equivalent: select_characters (the HALCON reference is a useful guide to its meaning and parameters)

• GPU: none (CPU reference implementation only)

Usage

Drop blobs whose height or width is off the median from a character label image and renumber from the left.

> The detailed description below is the original text — the summary and the headings are translated.

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

Args:

labels: segment_characters のラベル画像。

min_height_ratio: 高さの下限(中央値に対する比)。

max_height_ratio: 高さの上限(中央値に対する比)。

max_width_ratio: 幅の上限(中央値に対する比)。

Returns:

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

Detailed usage guide

• machine_vision_classics family guide

References (sample data, literature)

• 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.

Runnable examples (verified samples that actually call this op)

• machine_vision_tour — py -3.11 examples/machine_vision_tour.py

• poc_real_typewritten_ocr — py -3.11 examples/poc_real_typewritten_ocr.py

Ops the type connects to (they accept labels2d as input)

—

Same category (text)

text_line_orientation · text_line_slant · segment_characters


*Provenance: mvtext.py — MV 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.