二维码自定义与解析平台的研究
摘 要
随着计算机科学与技术的发展,自动识别技术得到了广泛的应用。在众多自动识别技术中,条形码技术已经成为当今备受关注的计算机自动识别技术之一。条码技术中存在两个非常热点的研究话题,即识别技术和编码理论。条形码分为一维条码和二维条码。由于一维条码受到容量的限制,仅能标识商品,而不能描述商品。二维条码弥补了一维条码面临的容量限制问题,具有可靠性高、信息量大、保密防伪等优点,而且可以用来表示多种文字、图像信息。同时,与其他自动识别技术如射频技术、磁卡技术、光学字符识别技术相比,二维条码也具有识别能力强、速度快,抗干扰,成本低等优势。随着我国信息技术的迅速发展和市场经济的不断完善,国内对二维条码这一新技术的需求与日俱增。
本文的研究内容是二维条码QR码的研究与应用。首先简要介绍了国内外QR二维码的研究情况,然后详细阐述了其编码和解码过程的原理和方法。其次,针对失真、倾斜的QR码图像,本文提出了一种基于仿射变换快速识别QR码的图形处理方法。
最后介绍了二维QR码生成与识别技术在Android智能手机平台上的实现,包括Android开发平台及开发环境的介绍,Android平台上二维QR码生成与识别的实现。
关键字:二维码生成与识别 图像预处理仿射变换 Android平台
ABSTRACT
With the development of computer science and technology, Automatic identification technology has been widely used. Among many automatic identification technology , bar code technology has become one of computer automatic identification technology today concern. there are two very hot research topic in Bar code technology, namely recognition technology and coding theory. The bar code is divided into one-dimensional bar code and two-dimensional bar code. One-dimensional bar codes is limited by the capacity only identifies the product you are looking for, and can not describe the goods. The two-dimensional bar code to make up for the one-dimensional bar code facing capacity constraints, With high reliability, large amount of information, confidentiality, security and other advantages, but also can be used to represent a variety of text, images, data and other information. At the same time, compared with other automatic identification technologies such as radio frequency technology, magnetic card technology, optical character recognition technology, the two-dimensional bar code recognition ability, speed, anti-interference and low cost. With the rapid development of China's information technology and the market economy continues to improve, The content of this study is the research and application of two-dimensional bar code QR code. This paper briefly describes the QR code at domestic and abroad firstly, Then elaborates the principle and method of encoding and decoding process. Secondly, for the distortion, tilt of QR code image, this paper put forward a method to quickly identify QR code based on affine transformation. Finally, The document concludes the realization of two-dimensional QR code recognition technology on the Android system, the introduction of Android development platform and development environment. And implementation of the Android platform two - dimensional QR code generation and recognition.
Keywords: QR-dimensional code Based affine transformation quickly identify QR code method Android platform
目 录
绪论 1
1.1 条码简介 1
1.2 二维码技术发展 1
1.2.2 二维码国内应用研究情况 3
1.2.3 QR码的简介 4
1.2.4 QR码的图形特征 4
1.3 本文的研究意义和内容 6
第二章 QR码编码与解码的理论研究 9
2.1 QR码编码理论 9
2.1.1 QR码的图像特征 9
2.1.2 QR码的编码方法 12
2.2 QR码解码理论 16
2.2.1 QR的图像预处理 16
2.2.2 条码定位 19
2.2.3 纠错和译码 21
第三章 QR码识别的图像算法 25
3.1. QR码检测方法概述 25
3.2常用的QR码检测方法 25
3.3基于仿射变换快速识别QR码的方法 26
3.3.1仿射变换概述 26
3.3.2 仿射变换概述 27
3.3.3 实验结果 27
第四章 Android平台上QR码生成与识别系统的搭建 29
4.1 Android平台简介及开发环境搭建 29
4.1.1 Android系统架构 29
4.1.2 Android开发平台搭建 30
4.1.3 ZXing库 31
4.2 QR码生成系统 31
4.2.1需求分析 31
4.2.2 系统实现 32
4.3 QR码识别系统 33
4.3.1 需求分析 33
4.3.2 系统实现 34
第五章 总结与展望 37
5.1 总结 37
5.2 展望 37
致谢 40
参考文献 42