In the situation of low resolution, black modules and white modules of 2D barcode are very easy to be segmented wrongly with the method of pixel-based barcode segmentation, which results in the barcode can not be recognized correctly. To solve this problem, a 2D barcode segmentation method based on sub-pixel and Otsu method is proposed in this paper. First, the resolution of the barcode image is improved by sub-pixel processing which is based on an improved edge-based adaptive interpolation algorithm. Then the dark and light modules of the barcode image are segmented with block-based Otsu method. Experimental results demonstrate that the method can eliminate the impact of low resolution on barcode recognition effectively.%在低分辨率的情况下,基于像素的条码分割方法很容易造成二维条码的深色模块和浅色模块分割错误,导致条码不能被正确识别.为解决该问题,提出一种基于亚像素大津法的二维条码分割方法.首先进行基于插值算法的亚像素处理来提高条码图像的分辨率,为此提出了一种改进的基于边缘的自适应插值算法.然后用基于分块的大津法分割条码图像的深色模块和浅色模块.实验结果表明该方法能够有效地消除低分辨率对条码识别的影响.
展开▼