适用于工业场景的zxing识别DataMatrix码优化
OPTIMIZATION OF ZXING IDENTIFICATION ALGORITHM FOR DATA MATRIX IN INDUSTRIAL SCENES
-
摘要: 针对工业制造领域实时扫描识别,对zxing解析DataMatrix算法进行了优化。该文介绍了DataMatrix码制及zxing解码DataMatrix过程,再对zxing算法进行剖析,阐述了当前算法存在的一些问题。针对这些问题,提出若干优化措施,包括采用更有效的二值化算法,采取措施避免二维码区域检测过程过早终止,依据黑点数判定L线,使用图像卷积消除噪声等。实验结果表明,采取优化措施后,DataMatrix识别成功率得到大幅提升。Abstract: This paper discusses how to improve zxing's decoding algorithm for DataMatrix which was used for real-time scanning and recognition in industrial manufacturing field. This paper introduced the principle of DataMatrix and the algorithm steps of zxing, and analyzed the algorithm and pointed out the deficiencies. In view of these problems, a number of optimization measures were proposed, including using a more effective binarization algorithm, taking measures to avoid premature termination of the detection process of the DataMatrix code area, judging the L line according to the black number, and using image convolution to eliminate noise when reading data. Experimental results show that after taking these optimization measures, the success rate of DataMatrix recognition has been greatly improved.
下载: