指针式仪表自动读数识别系统设计 下载本文

指针式仪表自动读数系统设计

摘要

随着模式识别技术、计算机技术等多种技术的不断完善和发展,机器视觉获得了巨大的进步与发展。目前在许多企业中,存在着大量的仪表,仪表的读数都要靠人来完成,工作量很大而且误差率相对来说比较高,基于这个原因,设计了一个工业生产线在线检测数据数字化处理系统。首先通过摄像头采集仪表图像,通过传输装置以无线的方式把图像传输到电脑上,然后在电脑上通过matlab程序设计,处理图像,读取仪表的数据,然后用labview调用matlab程序,并设计一个显示界面,通过界面可以看到实时的数据与仪表图像以及在一段时间内数据的变化情况。最后通过labview访问access数据库,将读取的数据传入数据库中,便于被调用,最终实现检测数据的数字化处理。

关键词:机器视觉 图像处理 Matlab Labview

Online testing data of industrial production line

digital processing system design

Abstract

With the development of computer technology and pattern recognition technology,machine vision technology makes a great progress and develop- ment.At present,there are a lot of instrument in many enterprises.in- strument reading work need people to complete.So there are a lot of work to do and efficiency is very low,as the same time,error rate is quite high.For this reason,there design a online testing data of industrial production line digital processing system.First of all,there need to take

Picture by camera.next,through transmission device in wireless way to transmit the image to a computer. Then by matlab programming on the compu- ter,data processing images, read the meter.And then call matlab by labview and design a display interface.Through the interface can see the real-time data.At last,through labview access access database,and take the data into database.Finally,realize the testing data of the digital processing.

Keywords: Machine vision image processing Matlab Labview

目 录

1.前言............................................................. 1

1.1课题背景..................................................... 1 1.2课题研究现状................................................. 1 1.3设计的目的与意义............................................. 2 1.4设计需要解决的问题........................................... 3

2. 工业生产线在线检测数据数字化处理系统总体方案设计 ........ 4

2.1设计方案..................................................... 4 2.2可行性分析................................................... 4

3. 工业生产线在线检测数据数字化处理系统设计综述 ............. 5

3.1图像采集与传输装置设计....................................... 5

3.1.1图像采集 ............................................... 5 3.1.2图像传输系统 ........................................... 5 3.1.3图像采集与传输系统的设计 ............................... 8 3.2图像处理与仪表数据的读取..................................... 9

3.2.1图像预处理 ............................................ 10

3.2.1.1图像滤波去噪..................................... 10 3.2.1.2图像增强......................................... 12 3.2.1.3二值化处理....................................... 13 3.2.1.4边缘检测与图像分割............................... 16 3.2.2指针识别 .............................................. 17 3.2.3读数识别 .............................................. 18 3.3数据显示界面的设计.......................................... 19

3.3.1数据显示界面的前面板 .................................. 19 3.3.2数据显示界面的程序框图 ................................ 21 3.4数据库的建立................................................ 21

4. 结论 .......................................................... 24 致谢 .............................................................. 25 附录一 matlab图像处理程序 ..................................... 25 附录二 labview程序框图 ........................................ 35