ocr_read_trials — SYMBOL ocr op

• 資料種類:table → table

• 呼叫: import fullseye as fs; fs.ledger.ocr_read_trials(text, factor, levels, *, model, font=None, char_height_px=24.0, trials=20, render=None, capture=None, level_jitter=0.0, refine=False, seed=0)(要直接呼叫實作,import symbolpod; symbolpod.ocr_read_trials(text, factor, levels, *, model, font=None, char_height_px=24.0, trials=20, render=None, capture=None, level_jitter=0.0, refine=False, seed=0);從台帳取用則 opssymbol.get("ocr_read_trials"))

• GPU:無(僅 CPU 參考實作)

用法

在每個劣化水準下對印刷字串拍攝 trials 次並以 OCR 讀取,回傳每次一列的表(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 (symrender.capture_degrade, sensor 20000 e / 10 e / 8 bit by default) with the swept factor (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 symbol_read_trials (plus rejected_chars / substituted_chars) so symbol_read_pod fits it. refine and level_jitter work as in symbol_read_trials.

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

詳細使用指南

• symbol_reading 族使用指南

參考(範例資料、文獻)

• 範例資料目錄(下載 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_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 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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