ocr op• 数据种类:matrix × table → table
• 调用: import fullseye as fs; fs.ledger.ocr_classify(features, model, k=1, blur=None) -> 'dict'(要直接调用实现,import ocrclassic; ocrclassic.ocr_classify(features, model, k=1, blur=None) -> 'dict';从台账取用则 opssymbol.get("ocr_classify"))
• GPU:无(仅 CPU 参考实现)
用 k 近邻识别特征,并按距离与距离比拒识(table)。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
features : (d,) か (m, d)、d = FEATURE_LENGTH。
model : ocr_train の返り値。
k : 近傍数(奇数推奨)。多数決、同票は最近傍のクラス。
blur : 既知(または推定済み)のぼけ σ/字高。与えると、学習のぼけ格子でそれと隣り合う
格子点までの試料だけを照合に使う(ocr_read_line は行全体で推定して渡す)。
Restrict templates to the blur band around blur (sigma / char height).
dict
labels (list of str、棄却は "?"), raw_labels(棄却前の判定),
distance(判定クラスの最近傍距離。model["weights"] で重みづけした対角マハラノビス距離),
margin(他クラス最近傍距離 / 判定クラス最近傍距離、1 に近いほど境界上), rejected。
棄却条件: distance > reject_distance_by_class[判定字] または margin < min_margin_ratio。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• poc_symbol_lot_ocr — py -3.11 examples/poc_symbol_lot_ocr.py
table 作为输入)render_symbol · symbol_read_trials · symbol_read_pod · ocr_read_line · ocr_read_trials
ocr)ocr_font · ocr_render_text · ocr_segment_line · ocr_features · ocr_train · ocr_read_line · ocr_score · ocr_read_trials
*Provenance: ocrclassic.py — SYMBOL 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.