条码检测系统——基于MATLAB的一维条码识别
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
条码检测系统——基于MATLAB的一维条码识别
摘要:条码技术是如今应用最广泛的识别和输入技术之一,由于其包含的信息量大,识别错误率低而在各个方面得到很大的重视。它发展迅速并被广泛应用于于工业、商业、图书出版、医疗卫生等各行各业。由我国目前发展现状来看,条码的正常使用受到条形码印刷质量和商品运输过程的影响,并且传统的条码识读方式是采用光电识读器,条码图像对光的不同反射效果也必然会对条码的识读产生影响,而一般条码在搬运过程中条码会不可避免的破损,所以对质量较差的条码的条码的识别尤为重要。
不同的条码有着不同的识读过程。本设计研究一种基于图像处理方式的识读方法,通过计算机辨识来解决条码印刷质量不佳和条码变形等问题。该方法是采用摄像头采集条码图像,通过照相采集条码图像的方法避免了线性扫描器逐行扫描所产生的问题,同时简化了扫描条码图像的操作。然后通过一定的数字图像处理算法处理进行译码。译码算法主要分为两部分:第一部分首先对采集的条码图像进行预处理,图像的预处理包括图像分割,图像滤波等,良好的图像处理将对后面实现正确译码有重大贡献;第二部分就是对预处理后的条码图像进行译码,我们根据相似边距离来判别条码字符,再通过译码、校验、纠错处理来识读条码,得到条码所表示的文本信息。与用条码识读器硬件进行译码相比,软件译码具有更大的灵活性和较低的成本,所以具有很大的市场空间。借助于matlab软件的功能我们完成这次译码工作。
关键词:图像处理图像分割条形码识别 EAN-13 相似边距识别图像滤波Matlab
The System Of Bar-Code Examination
——1D Bar-Code recognition based on MATLAB
Abstract: Nowadays Bar-Code is a very popular technique ofidentification and input. It has been taken serious because of it’s large information and low error rate. It develops very quickly and has already been applied in industry,忽略merce,publishing,medical sanitation and so on. It can be seen from the actualities in our country that the use of Bar-Code is influenced by the printing quality and goods transportation, and besides, the traditional mode of recognition is using optical scanner so that the recognitinon will be consequentially affected by the different reflection of code image by the light. The general course of the removal barcode bar code will inevitably damage, so poor quality bar code bar code identification is particularly important.
Different Bar-Code has different recognition process. This paper researches into a method based on digital image processing mode to resolve the problems of poor printing quality and code distortion, which uses the vidicon to take pictures of code images so as to avoid the traditional questions brought by the line-by-line scanning. And then applies the digital image processing algorithms to recognize the code, which includes two steps: the first is image pretreatments, the second is using statistic method and the distance of edge to similar edge method to recognize the code character. 忽略paring with decoding with special Bar-Code identification hardware, decoding with software is more flexible, and the cost is also 忽略paratively low. Hence, Bar-Code has a very clear future of development. This research is realized by Matlab.
Key word: image processing, Bar-Code recognition, EAN-13, the distance of edge to similar edge, image filters,Matlab
目录
第1章引言 (01)
1.1 条码技术概述 (01)
1.2 Matlab应用图像处理 (02)
1.3本文的研究意义及内容 (03)
1.3.1 研究意义 (03)
1.3.2 研究内容及本文的组织安排 (04)
第2章一维条码技术 (05)
2.1 一维条码的简介 (05)
2.2 一维条码符号的结构 (05)
2.3 EAN码简述 (06)
2.4 EAN-13码符号的特征 (07)
2.4.1 EAN-13码字符集 (08)
2.4.2 EAN-13码符号结构 (09)
2.5 EAN-13码的校验纠错 (11)
第3章条码图像的预处理............................. . (12)
3.1 图像分割理论 (12)
3.1.1 图像分割的定义 (12)
3.1.2 图像分割的算法类 (13)
3.1.3 图像分割结果 (14)
3.2 图像灰度及二值化 (15)
3.3 图像加噪仿真 (16)
3.3 图像的滤波 (16)
3.3.1 图像的平滑滤波 (16)
3.3.2 形态学滤波 (17)
第4章条码的译码方法 (20)
4.1 译码方案的选择 (20)
4.2 相似边距法介绍 (21)
4.3. 条码字符的判别 (22)
第5章条码译码的基本原理 (25)