Patent ID: 8733649

Claim:
A Data Matrix barcode decoding chip, comprising: (a) a characteristic searching unit configured for searching for a characteristic pattern in a barcode image to determine pixel coordinates of the characteristic pattern, wherein the characteristic searching unit detects boundary points between dark-colored modules and light-colored modules in the barcode image through scanning, compares a spacing relationship between the boundary points with a module dimension scale of the characteristic pattern, and determines the pixel coordinates of the characteristic pattern in the barcode image according to the comparison result; (b) a barcode parameter acquiring unit configured for acquiring a barcode parameter according to the pixel coordinates of the characteristic pattern; (c) a correction characteristic acquiring unit configured for searching for a characteristic position in the barcode image and acquiring a correction characteristic pattern according to the characteristic position; (d) a module information processing unit configured for calculating a mapping relationship between pixel coordinates and module coordinates of the barcode image according to pixel coordinates of the correction characteristic pattern and module pixels of the correction characteristic pattern, and calculating a grayscale value corresponding to each module of the barcode image to construct a module map according to the mapping relationship; (e) a binarizing unit configured for binarizing the module map; (f) a codeword extracting unit configured for extracting a codeword according to the binarized module map; and (g) an error correction and decoding unit configured for decoding the codeword.