摘要: 针对摄像机采集的快速响应码(QR码)在提取之前存在光照不均匀以及可能产生的旋转、扭曲等现象,提出一种自适应阈值算法。对图像进行二值化,将Roberts算子与小波模极大值相结合,克服传统边缘检测算法对噪声敏感的缺点,提取QR码的边缘信息。根据四边形4个顶点到与对角线平行的直线的最短距离来定位QR码,并利用双线性差值进行纠正。实验结果证明了该算法的可靠性。
关键词:
快速响应码,
自适应阈值,
边缘检测,
双线性插值
Abstract: Aiming at the problem that the Quick Response(QR) code by vidicon has asymmetrical beam, angulation and spin, this paper proposes the adaptive threshold method. Combinating the Roberts operator and a wavelet modulus maxima, a new edge detection algorithm overcomes the noise-sensitive defects of traditional algorithm, and accurately extracts the edge information of QR code. The QR code is located according to the principle of quadrilateral with four vertices to the diagonal line parallel of the shortest distance and the bilinear interpolation algorithm is used to correct the distorted QR code. Experimental results show that the method is reliable.
Key words:
Quick Response(QR) code,
adaptive threshold,
edge detection,
bilinear interpolation
中图分类号:
杨佳丽, 高美凤. 一种QR码的预处理方法[J]. 计算机工程, 2011, 37(2): 218-220.
YANG Jia-Li, GAO Mei-Feng. Pretreatment Method of Quick Response Code[J]. Computer Engineering, 2011, 37(2): 218-220.