select_characters — MV text op

• 数据种类:labels2d → labels2d

• 调用: import 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"))

• HALCON 对应:select_characters(其含义与参数可参考 HALCON 手册)

• GPU:无(仅 CPU 参考实现)

用法

从字符标签图中去掉高度或宽度偏离中位数的块,并从左重新编号。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

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

Args:

labels: segment_characters のラベル画像。

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

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

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

Returns:

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

详细使用指南

• machine_vision_classics 族使用指南

参考(示例数据、文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

• 算法的正典(作者、年份)与用途见上面的族使用指南。

可运行的示例(实际调用该算子并已验证的样例)

• machine_vision_tour — py -3.11 examples/machine_vision_tour.py

类型可衔接的下一个算子(可接受 labels2d 作为输入)

—

同类别(text)

text_line_orientation · text_line_slant · segment_characters


*Provenance: mvtext.py — MV 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.