基于数字图像处理技术的缺陷检测算法研究毕业设计(论文)(编辑修改稿)内容摘要:

年 月 日 西安交通大学本科毕业设计(论文) 摘 要 VII 摘 要 随着数字图像处理技术在工业领域的发展,基于数字图像处理技术的机件缺陷检测得到了广泛的应用。 低成本、无损伤、准确,快速,使得机器视觉在缺陷检测领域具有重要的意义。 本题专门研究基于数字图像处理的缺陷检测算法,并在工业组态软件 Xavis 中实现,以便更好的应用于实际。 本次毕设在缺陷检测识别中的算法作了较深入的研究。 关于机件的表面缺陷检测,本次毕设针首先对 可用于缺陷检测的 图像处理的各个基本算法,比如图像滤波,图像增强,图像形态学处理, 图像分割,边缘检测等进行了研究。 针对待检测的图像的配准问题,采取 Matlab 对于基于 harris 角点检测的图像配准、基于灰度信息的模板匹配等各种算法进行了仿真。 最终在毕设中采用了三种效果比较不错的配准算法。 针对待检测的缺陷图像,研究并提出了基于信息熵的缺陷检测算法 、 基于图像形态学处理的缺陷检测算法。 并自己的创新性的提出了 基于灰度信息的模板匹配缺陷检测算法 并予以实现。 取得了预想中的成果,检测的表面划痕效果清晰明显。 针对算法的封装与联合调试,在 Visual Studio++下基于 OpenCV 视觉库,把检测 算法封装成动态链接库文件,然后供工业视觉组态软件 Xavis 调用。 经测试,程序运行、容错能力良好。 检测程序适用范围也比较广。 此次毕设也我熟悉并掌握 Visual Studio C++软件、 Xavis 软件和图像处理以及OpenCV 的知识。 同时培养了良好的编程能力,分析和解决问题的能力,为以后的科研夯实了基础。 关 键 词 : 缺陷检测 ; 信息熵 ; 模板匹配 ; Xavis; OpenCV 西安交通大学本科毕业设计(论文) VIII ABSTRACT With the development of the digital image processing technology in the industry fields, the detection technology about mechanical defects based on digital image processing has got widely used. Lowcost, no damage, accurate result and fast diagnosing, makes the machine vision plays an important part in the field of surface defects detection. This thesis research specially about the algorithms of defects detection based on the digital image processing technology, and it is achieved in the Xavis, which is one of the industry configuration software. So it can be put into use better. This thesis researches the application in the detecting and distinguishing about defects in depth. We studied many elemental algorithms of the image processing about the surface defects detection, such as image filtering, image enhancement, image morphology and segmentation, edge detection. To slove the problem of the image registtration, we put forward the defect detection algorithms based on harris corner and template matching in gray level, and get the simulation results with Matlab. Finally we pick out three better image registration algorithms. About the disabled image to be detected, we studied and put forward the defect detection algorithms based on information entropy and template matching in gray level. Being tested, we get the results expect, also the surface scratches are clearly evident. To achieve the algorithms39。 packaging and associated debugging, we make the detection algorithm into the dynamic link library files under Visual Studio ++ based on OpenCV vision library which can be used by Xavis, one of the industry configuration software about machine tested, the program runs perfectly and has a good fault tolerance. So it can be widely used about the detection program. I also studied and mastered the Visual Studio C ++, Xavis and the knowledge of OpenCV. At the same time, it trans us the ability about programming, analyzing problems and solving problems. So it paves the way for the research in the future. KEY WORDS: Defect detection。 Information entropy。 Template Matching。 Xavis。 OpenCV 目 录 IX 目 录 1 绪论 ...................................................................................................................................... 1 表面缺陷检测概述 ........................................................................................................ 1 本文的工作及组织结构 ................................................................................................ 3 2 缺陷检测的数字图像处理实现 .......................................................................................... 5 数字图像处理的概念 .................................................................................................... 5 数字图像 ................................................................................................................. 5 数字图象处理的三个层次 ..................................................................................... 6 数字图象处理的特点 ............................................................................................. 7 待检测图像的形态学处理 ............................................................................................ 8 膨胀 ......................................................................................................................... 8 腐蚀 ......................................................................................................................... 9 开和闭 ..................................................................................................................... 9 图像分割提取缺陷检测中的感兴趣区域 .................................................................... 9 灰度分割法 ........................................................................................................... 10 轮廓提取与跟踪 ................................................................................................... 10 投影 ........................................................................................................................11 图像增强提取目标缺陷的研究 .................................................................................. 12 图像平滑去除检测图像的噪声 ........................................................................... 13 中值滤波降噪 ....................................................................................................... 13 直方图均衡 ........................................................................................................... 13 本章小结 ...................................................................................................................... 14 3 Xavis 机器视觉平台与 Matlab/VC/OpenCV 联合调试的实现 ....................................... 15 Matlab 用于缺陷检测的仿真实现 .........................。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。