摘要为了实现电能表自动识别功能,设计了一个实现一维条码识别的软件。其主要过程包括条码图像的预处理、条形码定位和二值化、条码识别三个阶段。
电能表条码图像预处理,首先对条码图像采用加权平均法进行灰度化处理,以减少图像处理的计算量,提高运算速度。通过灰度值的分布情况采用中值滤波去除孤立噪声,在定位出条码区域以后还需要中值滤波进行平滑处理。65545
第二个阶段是条码定位和二值化,通过利用条码本身的灰度特性,采用扫描线算法通过扫描电能表图像进行判定实现条形码的定位。使用条码特性与局部阈值法相结合的二值化方法对条码图像进行二值化处理,能较好的满足图像二值化的要求。
最后条码识别阶段,根据Code128条码的编码规则,采用相似边识别的方法,通过C++Builder平台开发的电表图像一维条码识别软件进行识别。
毕业论文关键词 一维条码 图像预处理 条码定位 二值化 Code128条码
毕业设计说明书(论文)外文摘要
Title Electric meter image of 1D bar code recognition technology research
Abstract
In order to get the information of the electric meter automaticly, a recognition system, based on 1D bar code recognition technique, is designed.Which consists of 3 steps: image preprocessing;locating bar code and binarization ; image recognition.
Image preprocessing . First should do gray processing by using the weighted average method in order to reduce the amount of computation in image processing, improve the speed of computation .Through the distribution of image gray using median filter to remove isolated noise, and after positioning the bar code area median filter smoothing processing is needed.
The second stage is the bar code position and binarization.According to the characteristics of the bar code, a scanning line method is selected to find the region which meets the characteristics of the bar code. Using bar code characteristics and local threshold method binarization method to the bar code binarization processing.Can better meet the requirements of image binarization.
The last stage of bar code recognition. Development platform of electric meter one dimension bar code image recognition software for identification by c + + Builder adopting the method of similar edge recognition according to the Code128 bar code encoding rules.
Keywords 1D Bar code Image Preprocessing Bar code location
Binarization Code128
目 次
1 引言 6
1.1 选题的背景和意义 6
1.3 研究内容及各章节安排 8
2 电表条形码图像的预处理 9
2.1 条码图像的灰度化处理 9
2.2 图像噪声的去除 11
2.2.1 图像噪声的分类及产生的原因 11
2.2.2 噪声的去除 12
3 电表条码区域定位及二值化 13
3.1 电能表条码区域定位 13
3.2 电能表条码的二值化 18
3.2.1 全局阈值法 18
Code128电表图像中一维条码识别技术研究:http://www.youerw.com/zidonghua/lunwen_73199.html