dm_decode_modules — SYMBOL 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.

Returns

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)。

Raises

ValueError

2-D でない・0/1 以外・NaN。

DMDecodeError

どの向きでも対応する大きさにならない、機能パターンが崩れすぎ、RS 訂正不能、符号化の矛盾。

자세한 사용 가이드

• symbol_reading 패밀리 가이드

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL 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 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

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