dm_locate — SYMBOL datacode2d op

• 資料種類:image2d → table

• 呼叫: import fullseye as fs; fs.ledger.dm_locate(image) -> 'dict'(要直接呼叫實作,import dmsym; dmsym.dm_locate(image) -> 'dict';從台帳取用則 opssymbol.get("dm_locate"))

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

用法

在影像中找到 Data Matrix 並估計模組空間到影像的單應變換(table)。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

Locate a dark-on-light ECC200 symbol (quiet zone >= 1 module). Global binarisation (Otsu start, then the midpoint of the dark/light means), dark pixels grouped after a distance-based closing at several radii (so separated dot-peen dots join), near max-area quadrilateral in the convex hull, sub-pixel edge lines (grey-level threshold crossings, inward outliers from the clock gaps trimmed), corners = line intersections, then the size and which corner is the L corner are chosen by the agreement of the sampled function pattern (finder + clock + alignment) for every supported size and corner correspondence.

Returns

dict

homography 3x3(module 空間 [x=列, y=行, 1] → 画像 [列, 行, w])、rows, cols,

corners (4, 2) 画素の (行, 列)、順は module 空間の (0,0), (C,0), (C,R), (0,R)、

module_px, score(機能パターンの一致率), threshold(大域閾値 / global threshold)。

Raises

ValueError

2-D でない・NaN/inf・小さすぎる。

DMDecodeError

記号が見つからない。

詳細使用指南

• symbol_reading 族使用指南

參考(範例資料、文獻)

• 範例資料目錄(下載 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_decode_modules · dm_sample


*Provenance: dmsym.py — SYMBOL 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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