首页 | 官方网站   微博 | 高级检索  
     

一种改进的QR码图像二值化算法
引用本文:张继荣,王利军.一种改进的QR码图像二值化算法[J].现代电子技术,2014(7):56-58.
作者姓名:张继荣  王利军
作者单位:西安邮电大学通信与信息系统,陕西西安710061
摘    要:对光照不均的QR码图像进行全局二值化处理后,会出现全白或全黑的误差区域,在局部二值化过程中会出现伪边界情况,并且计算时间也会变长。针对光照不均的QR码图像提出了一种改进的基于背景灰度的二值化算法。首先,根据二维码源图像大小进行分块处理,使用灰度估算公式对分块的灰度值进行计算。其次,使用联合插值算法产生背景灰度水平图像,然后用背景灰度水平图像替代源图像得到校正图像。最后,采用Ostu算法对校正图像进行二值化。实验结果表明,该算法能有效的校正光照不均的QR图像,并得到一个良好的二值化图像。

关 键 词:QR码  二值化  图像处理  灰度值

Improved binaryzation algorithm of modified QR code image
ZHANG Ji-rong,WANG Li-jun.Improved binaryzation algorithm of modified QR code image[J].Modern Electronic Technique,2014(7):56-58.
Authors:ZHANG Ji-rong  WANG Li-jun
Affiliation:(School of Conmmunication and Information Engineering,Xi’an University of Posts and Telecommunications,Xi’an 710061,China)
Abstract:All white or all black error areas would occur to QR code image with uneven illumination after global binariza-tion processing. Pseudo-boundary would appear in the processing of local binarization,and the calculation time would be long. Aiming at the nonuniform illumination QR code image,an improved binarization algorithm is proposed,which is based on back-ground gray-level. Firstly,doing sub-block according to the size of the Qrcode image,and gray-level estimation formula is used for computing the gray-level value of each block. Secondly,joint interpolation algorithm is adopted to create the background gray-level image which is used to take the place of original image to get the corrected image. Finally,the Ostu algorithm is used for the corrected image binarization. Experiment result shows that the algorithm can effectively correct the uneven illumination QR code image and obtain a good binary image.
Keywords:QR code  binarization  image processing  gray level
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号