摘要
为了进一步提高复杂背景下移动端二维条码检测算法的效率和效果,以Data Matrix二维条码为研究对象,提出了一种基于区域特征分析和直线Snake定位的条码检测算法.该算法首先对原始图像进行区域标记,通过对每个区域的颜色、几何、梯度和区域边缘等特征的分析,筛选出含有"L型"定位边框的条码区域,然后通过直线Snake算法定位条码边缘,最后拟合条码的四个顶点,并利用透射变换完成条码的校正.实验表明:该二维条码检测算法具有良好的性能,优于已有的条码检测算法,抗干扰能力强,能够很好的适应复杂背景下的条码检测,满足了移动端实时高效性的需要.
In order to improve the efficiency and effectiveness of 2D barcode detection algorithm under complicated background, detection algorithm based on regional characteristics analysis and location of line Snake is presented in this paper focusing on Data Matrix 2D barcode. Firstly, the region which contains "L-type" barcode border is selected. Secondly, the barcode border is located by using line Snake algorithm. Finally, the four vertices of the barcode are fitted and the barcode is corrected by using transmission shift. Experiments show that the detection algorithm of 2D barcode has good performance, and it is better than existing barcode detection algorithm. It has strong anti-interference capacity and can satisfy the need of real-time efficiency on mobile terminal.
出处
《浙江工业大学学报》
CAS
北大核心
2011年第5期574-578,共5页
Journal of Zhejiang University of Technology
基金
浙江省科技厅基金资助项目(2008C21079
2010C31088)