What is DataMatrix?
DataMatrix is a two-dimensional matrix barcode consisting of black and white modules arranged in a square or
rectangular pattern. It is widely used in industrial manufacturing, electronics, pharmaceuticals, and logistics
for marking small components because it can encode large amounts of data in a very small physical area.
Unlike linear (1D) barcodes, DataMatrix codes include Reed–Solomon error correction, which allows them to be
read even when partially damaged or obscured — up to 30 % of a code can be lost while still allowing
successful decoding.
About the Detector
This detector was developed by ZBS — Zentrum für Bild- und Signalverarbeitung e. V.
(David Reese, 2023–2024) on behalf of TechnoTeam Bildverarbeitung GmbH.
The algorithm uses circular-feature detection to locate candidate codes, followed by homography-based
rasterization and Reed–Solomon decoding. It supports square DataMatrix symbols as well as selected rectangular
sizes (8×18 and 12×26) and can handle mirrored (flipped) codes.