摘要
提出了一种针对复杂条件下快速响应矩阵码(QR码)的图像预处理算法。对从任意角度拍摄的有畸变和有复杂背景干扰的QR码水平和垂直扫描,标记黑白模块宽度大致符合1∶1∶3∶1∶1比例的中心点。将得到的一系列中心点分别拟合直线,求得直线交点即位置探测图形中心。采用形态学操作除掉背景中无关细节的干扰,依据三个位置探测图形中心的位置关系分割、校正QR码。实验结果表明,该算法能够去掉QR码区域的无关细节干扰,能够快速、准确地从图像中定位、分割出有畸变的QR码并予以几何校正。
An image preprocessing algorithm for( quick response code)QR code has been proposed. Scanning the distorted QR code which shooted from any angle horizontal and vertical to obtain the center which the length of the black and white module accord with the proportion 1 : 1 : 3 : 1 : 1 roughly. Fitting a straight line baseed on the the center of a series of point, the intersects as the center of the findpattern are gotten. Using morphological operations to remove the irrelevant details in the background, the QR code according to the relation of the three center of the findpattern is segmented and corrected. The simulation results showed that the proposed algorithm can remove the irrelevant details of the QR code. It also can locate the findpattern and segment the distorted QR code from the complex background quickly and accurately, it can correction the code geometricly after segment.
出处
《科学技术与工程》
北大核心
2014年第2期211-214,共4页
Science Technology and Engineering
关键词
QR码
图像预处理
定位
形态学
QR code
image preprocessing
location
morpholog