fullseye

ocr_read_trials — SYMBOL ocr op

使い方

印字した文字列を劣化量の各水準で trials 回撮って OCR で読み、1 行 = 1 回の表を返す(table)。

Legibility trials for classical OCR: render text with the built-in font (ocrclassic.ocr_render_text; font defaults to the model’s font), apply the capture chain (:func:symrender.capture_degrade, sensor 20000 e / 10 e / 8 bit by default) with the swept factor (:data:OCR_FACTORS), and read the line with ocrclassic.ocr_read_line. Each trial draws a fresh sub-pixel offset of the line and a sensor-noise seed. Outcomes per capture: hit = the whole string read exactly, misread = at least one character read as a different character (substituted or inserted, per ocrclassic.ocr_score) — the dangerous case, never folded into the read rate —, noread = otherwise (rejects ? or missing characters only). The table has the same columns as :func:symbol_read_trials (plus rejected_chars / substituted_chars) so :func:symbol_read_pod fits it. refine and level_jitter work as in :func:symbol_read_trials.

空の入力(text == "" / levels が 3 未満)は ValueError。 拒否(ValueError): 未知の factor、trials < 1、水準の重複・非有限、 字種の外の文字、render / capture に掃引中の因子と同じ鍵、level_jitter が [0, 0.5] の外、OCR の模型でない model。

詳しい使い方ガイド

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

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

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

render_symbol · symbol_read_trials · symbol_read_pod · ocr_classify · ocr_read_line

同カテゴリ(ocr)

ocr_font · ocr_render_text · ocr_segment_line · ocr_features · ocr_train · ocr_classify · ocr_read_line · ocr_score


Provenance: symbolpod.py — SYMBOL operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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