载重车2016年第12淛 y信息疼甲文章编号= 1009 -2552 (2016) 12 -0139 -03D O I:10. 13274/j. cnki. hdzj. 2016. 12. 031
一种基于C I S的识别算法
里德穆勒
钟阳,李外云,金豫
(华东师范大学通信工程系,上海200241)
摘要:由于二维码(Q R Code)信息量大,容错能力强等特点,很多商品都使用Q R Code承载 商品信息,用户只需扫描Q R C o d e即可获取原始信息。目前大多数做法是使用摄像头进行Q R C o d e的扫描,很多智能手机中带有Q R C o d e扫描A P P,但摄像头的扫描需要较好的光线,扫描
到的图像存在畸变,存储多帧图像所使用的内存开销较大。因此,文中提出使用接触式传感器(CIS)来进行图像的扫描,它自带光源,可较好地解决摄像头的问题,针对C I S扫描到的图像特点,文中提出一种图像处理的算法,从扫描方向和与扫描垂直方向两个方向上对图像进行处理,省略大量浮点运算。本方案经过测试,准确率较高,计算量,内存占用率和处理速度都较传统Q R Code扫描方式有一定的改善和提高。 关键词:二维码;识别算法;接触式图像传感器;图像处理
中图分类号:TP391 文献标识码:A
A QR code scanning and recognition algorithm based on CIS
ZHONGYang,LI Wai-yun,JIN Yu
(Department of Communication Engineering,East China Normal University,Shanghai 200241,China) Abstract:Q R code contains loads o l information.I t has strong error correction ability.Many products
use Q R code t o carry the product information.Users can simply scan the Q R code t o gain information.At present,most popular way i s t o use the camera t o scan the Q R code.Lots o f smart phones have Q R code scanning APPs.However,the camera's scanning needs light.Camera also brings image distortion,costing large amount o f work for calculating and storage.Therefore,the paper suggests using contact image sensor (CIS)t o scan Q R code images.CIS has i t s own l i g h t source,so i t has advantages over camera.According t o the characteristics o f CIS,the paper presents a new image processing algorithm.
The new algorithm processes image from two directions,one i s parallel t o scanning while the othe
r i s vertical t o scanning.I t can reduce many f l o a t point calculations.The image recognition accuracy rate i s higher and the memory occupancy rate and processing speed are a l l improved a fter being tested comparing t o the traditional Q R code scanning method.
Key words:Q R code;recognition algorithm;contact image sensor;image processing
高铬铸铁0引言
Q R Code具有高密度编码,信息容量大,纠错能 力强,易制作等特点[1],被越来越多地用于各种商 品中。目前,智能手机也推出了多种Q R C o d e扫描 识别A P P,大多数扫描方式是使用摄像头来进行Q R Cod e扫描,这种方式在处理中,需要经过对焦,扫 描,识别等步骤。使用摄像头扫描Q R Co d e具有很多缺点,在环境光线较弱时,摄像头扫描有局限性;摄像头扫描数据是Y U V格式,在图像预处理过程 中,需要将其转换为灰度图像才能进行后续处理[2];摄像头由于其本身会给扫描到的图像带来畸 变,运算量较大。为此,本文提出使用CIS代替摄像
收稿日期:2015 -12-10
空洞检测作者简介:钟阳(1992 -),女,硕士,研究方向为嵌人式
滑石粉母粒—139—
防近视笔