datacode2d op• Data kinds: matrix → table
• Call: import fullseye as fs; fs.ledger.dm_decode_modules(modules) -> 'dict' (to call the implementation directly, import dmsym; dmsym.dm_decode_modules(modules) -> 'dict'; from the registry, opssymbol.get("dm_decode_modules"))
• GPU: none (CPU reference implementation only)
Decode a Data Matrix module grid (with L finder and clock track, 0/1) and return the corrected codewords (table).
> The detailed description below is the original text — the summary and the headings are translated.
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 訂正不能、符号化の矛盾。
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• The canonical algorithm (author, year) and its uses are named in the family usage guide above.
• poc_symbol_part_dpm — py -3.11 examples/poc_symbol_part_dpm.py
table as input)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 operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.