datacode2d op• 資料種類:matrix → table
• 呼叫: import fullseye as fs; fs.ledger.dm_decode_modules(modules) -> 'dict'(要直接呼叫實作,import dmsym; dmsym.dm_decode_modules(modules) -> 'dict';從台帳取用則 opssymbol.get("dm_decode_modules"))
• GPU:無(僅 CPU 參考實作)
解碼 Data Matrix 模組格線(含 L 形尋像圖形與時脈軌,0/1)並回傳更正碼字數(table)。
> 以下的詳細說明為原文 —— 摘要與標題已翻譯。
Decode an (R, C) 0/1 module matrix that includes the finder L and the clock track. The grid may be given in any of the 4 rotations, optionally mirrored; the orientation is found from the function pattern (solid L + clock) and, when the pattern alone is ambiguous (a square symbol and its anti-diagonal mirror share it), from which orientation passes Reed-Solomon.
dict
text, rows, cols, n_corrected, block_corrected [int],
block_ec [EC 語数], block_capacity [floor(n_ec/2)], finder_errors
(機能 module の不一致数), codeword_index(正規化後の向き)、rotation
(度、0/90/180/270)と mirrored: 正規化 =
np.rot90(np.fliplr(g) if mirrored else g, rotation // 90)、modules(正規化後)、
codewords_raw / codewords(訂正前後、送出順)、encodations、
fixed_errors(右下固定 2x2 の不一致数、無ければ 0)。
ValueError
2-D でない・0/1 以外・NaN。
DMDecodeError
どの向きでも対応する大きさにならない、機能パターンが崩れすぎ、RS 訂正不能、符号化の矛盾。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者、年份)與用途見上面的族使用指南。
• poc_symbol_part_dpm — py -3.11 examples/poc_symbol_part_dpm.py
table 作為輸入)render_symbol · symbol_read_trials · symbol_read_pod · ocr_classify · ocr_read_line · ocr_read_trials
datacode2d)qr_encode · qr_decode_modules · qr_locate · qr_sample · qr_read · dm_encode · dm_locate · dm_sample
*Provenance: dmsym.py — SYMBOL 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.