计算机视觉在玻璃制品裂纹检测中的应用
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
在玻璃制品的生产过程中,随着生产速度的提高以及越来越严格的质量要求,传统的人工检测裂纹的方法由于受主观因素的影响,已不能保质保量的完成生产任务。在这种情况下,国内外不少厂家开始研制用于玻璃制品裂纹检测的机器。从已开发的产品来看,它们都具有机械制造要求高、不易调整且价格昂贵等缺点。
     随着计算机软件,硬件的发展,以及计算机视觉相关理论的完善,用计算机视觉进行裂纹检测的方法已变得切实可行。在国外已有少数厂家利用这一原理制造出较为成功的产品,但在国内还处于起步阶段。按此方法制造的检测设备相对以往的采用机械接触方式进行检测的设备,它具有以下优点:
     制造代价小,对机械制造的精度要求低;
     灵活性高,易于调试;
     系统的检测速度可随CPU速度的提高而不断增加;
     工作环境要求低。
     作者研制的“玻璃瓶裂纹检测系统”是“玻璃制品的计算机视觉在线检测系统”的一个子系统。整个系统由广西师范大学电子研究所与桂林市玻璃厂协作开发。对于用计算机视觉进行玻璃制品裂纹的检测,该系统提出了在国内尚属全新的两种方法:简易判断法和边界特征判断法。这两种方法都采用非接触的传感方式。首先,选取合适的相机、光源、图像卡,在特定的空间位置获取能反映裂纹存在的一系列数字图像。由于是利用裂纹的反射光来进行判断,而裂纹在玻璃瓶上的位置并不确定,玻璃瓶的四周都有存在的可能性,因此必需对玻璃瓶进行旋转拍摄。系统采用的方法是固定相机和光源,旋转玻璃瓶,对每个玻璃瓶以固定频率摄取一系列图像,然后直接在用户内存对图像进行各种预处理,在预处理的基础上对图像进行分割,以便把裂纹小区和其他干扰小区分割开来,再对各小区提取特征,最后,根据各特征参数,使用不同的判断法则进行判断。
     简易判断法和边界特征判断法采用相同的途径获取图像。在图像预处理阶段,前者使用邻域平均法进行噪声平滑,后者使用中值滤波法进行噪声平滑,这两种平滑方法对物体边缘产生不同的影响。邻域平均法使图像边界模糊,中值滤波法能保持图像边界基本不失真。在图像分割阶段,两者都使用门限化法(最佳阈值法)进行图像分割。在简易判断法中,抽取光斑面积和光斑位置两类特征作为判断依据。而在边界特征判断法中,在门限化的基础上用拉普拉斯算子进行边缘检测,提取各区域边缘,计算边界链码,然后再使用傅立叶级数提取边界特征细长度和圆形度作为判断依据。
     在都能保证对裂纹进行有效判断的前提下,相对于简易判断法,边界特征判断法对用于检测的机械设备要求低,但是处理速度慢。其实质是牺牲部分处理速度来换取低价格、低精度的机械设备。
     作者用Visual C++较成功地实现玻璃瓶裂纹的检测。
In the production of glassware , with the enhancing of production speed and more and more strict request of quality , the traditional method detecting crack can not do well because of major factor. This method can not insure the quality and quantity of product. In this case , many factories begin to manufacture the machine that can detects the crack of glassware . The product those have been developed have some default , such as highly precision with machine manufacturing, uneasy adjusting and expensive price .
    With the development of computer software and hardware and perfecting of computer vision's theory .In foreign countries some factories has made out this kind of product. Its quality is good. Our country is studying this kind of product and has not make out any kind of finished product .The method for detecting crack with computer is becoming viable . Compare to the traditional product that is made with the way of mechanical touching, The machine according to this kind of method to product has virtues:
    Low manufacturing price and low precision to mechanical manufacturing ;
    High feasibility and easy adjusting ;
    The detecting speed of system can enhance with the increase of CPU speed.
    Low request to working environment.
    Crack Detecting System of glass bottles is a subsystem of on-line detecting system of glassware with computer envision . We cooperate with Guilin Glass Factory to develop this system . I have invented two new way in this kind of system . Easy judging method (EJM) and border feature judging method (BFJM).These ways all follow the principle of computer vision .First , choosing right camera , lighting and image card to get a series of digital image with special space that can show crack . System uses the reflect of crack to judge, and the crack location of bottle is not static. The crack may lies in each place of a bottle. In this system when a series of digital images are being gotten, the camera and the light source are static, but the glass bottle is swirling .The Second , this system does some kinds of pre-processing in user buffer memory . After pre-processing , in order to distinct the crack area (CA) and disturbing area (DA) system segment the image . Then system extracts features from each small area . Last I judge the glass bottle in judging method according to all kinds of parameters .
    EJM and BFJM both choose a same way to get digital image . In the phase of image preprocessing ,the former uses adjacent area average method (AAAM) to smooth noise , the latter uses median fitting method (MFM) to smooth noise .These two method smoothing effect the border of area differently .AAAM faints the border of a image . MFM can maintain the border of a Image not to distort .In the phase of segmenting a image ,EJM and BFJM both use the best threshold method (BTM) to segment images . In the EJM , facula area feature and facula location feature are extract to judge bottles . In the BFJM , Laplacian is used to detect the border basing BTM .then 1 extract the border of each area and calculate the chain code of the border . afterwards
    
    
    
    the thin degree and circle degree with Fourier are extracted to judge bottle .
    In the precondition of judging crack rightly .comparing to EJM , BFJM has low request to machine for detecting . but its processing speed is slow . The essence is sacrificing part of processing speed to exchange the low price and low precision .
    This system realizes detecting the crack of bottles with Visual C++ .
引文
[1]赵荣椿 编著 《数字图象处理导论》西北工业大学出版社,95年6月第一版。
    [2]阮秋琦 编著 《数字图象处理基础》中国铁道出版社,88年6月第一版。
    [3]谭浩强 编著 《C程序设计》清华大学出版社,91年7月第一版。
    [4]郑南宁 著 《计算机视觉与模式识别》,国防工业出版社,98年3月第一版。
    [5]李金宗 编著 《模式识别导论》高等教育出版社,94年7月第一版。
    [6]沈庭芝、方子文 编著 《数字图象处理及模式识别》北京理工大学出版社,98年10月第一版。
    [7]王伟 编著 《人工神经网络原理——入门与应用》北京航空航天大学出版社,95年10月第一版。
    [8]杨敬安、张莫成 编著 《三维计算机视觉》安徽教育出版社,94年8月第一版。
    [9]木林森 编著 《Visud C++5.0使用与开发》清华大学出版社,97年5月第一版。
    [10] J.P.Pstarink and I.T. Yong,"Localization og Circular Object, "Pat. Rec.Letters, 14:895-905,1993.
    [11] W-Y.Wu and M-J.Wang, "Elliptical Object Detection by Using its Geometric Properties," pat. Rec.,26(10):1499-1509,1993.
    [12] D.C.Kay and J.R.Levine,Gmphics File Formats,Windcrest/McGraw-Hill,Blue Ridge Summit, PA. 1992
    [13] C.Balasubmmaniam, "Dataflow Image Process,"IEEE Computer,82-84,Nov. 1994
    [14] P.Coad and J.Nicola,Object-Oriented Programmomg, Prentice Hall,Englewood Cliffs,NJ, 1993.
    [15] P.Coad and E.Yourdon,Object-Ofiented Design,Prentice Hall Englewood Cliffs,NJ,1991.
    [16] R.N.Bracewell,The Fourier Transform and its Applicafion(2d revised ed.),Mc Graw-Hill,New York, 1986.
    [17] E.O.Brigham,The Fast Fourier Transform,Prentice-Hall,Englewood Cliffs,N.J 1988.
    [18] D.F.Ellion and K.R.Rao,Fast Transforms;Algofithms,Analyses,Applicafions,Academic Press, New york, 1982.
    [19] R.W.Ramirez, The FFT, Fundamentals and Concepts,Prentice-Hall,Englewood Cliffs,NJ, 1985.
    [20] J.Tastola and T.G.Cambell, "On Computation of the Running Media," IEEE Trans,Acoustics,Speech, and Signal Processing,ASSP-37(4);572-574,1989.
    [21] A.K.Jain,Fundamentals of Digital Image processing,Prentice Hall.Inc. 1989.
    [22] J.W. Goodman,Introduction to Fourier Optics,McGraw-Hill, 1986.
    [23] H.Andrews,Computer Techniques in Image Processing,Academic Press, New York, 1970.
    [24] N.Ahrned,T. Natarajan, and K.R.Rao,On Image Processing and a Discrete Cosine Transform,IEEE Trans,Computers,C-23,1, january 1994,90-93.
    [25] mersereau,R.L.,and Minal,M.c.,Picture Reconstruction for Projection,IEEE Trans. Comput.24,No.9,1995,915-923.
    [26]R.C.冈萨雷斯、P.温茨著(李叔梁等译),《数字图象处理》,科学出版社,1981。
    [27]宋琪 一种基于分型的金字塔快速图形分割法 计算机应用与软件 Vol.15 No.2 34-40 1998年第2期
    [28]徐志海等 Win95下利用VxD访问物理地址微型计算机应用Vol.19 No.3 129-133 1998年第3期。
    
    
    [29]严隽琪等 二维图形的轮廓线搜索 微型计算机应用 Vol.19 No.5 199-202 98年第7期。
    [30]陈雷霆 微机采集成像系统的设计与实现 计算机应用 Vol.18 No.5 12-17 98年第5期。
    [31]刘晓强 方滨兴 Windows风格界面的实现及实例 计算机应用与研究 Vol.14 No.5 14-19 1997年第5期。
    [32]杨亮等 Windows多任务调度机制中的核心技术分析 微型计算机应用 Vol.19 No.4 310-313 1998年第9期。
    [33]王建华 童秉枢 工程图形的两种快速细化法 计算机研究与发展 Vol.35 No.2 161-163 1998年第2期。
    [34]金凌等 面向对象软件测试技术进展 计算机研究与发展 Vol.35 No.1 274-278 1998年。
    [35]滕福生 滕欢 实时分析与应用 计算机应用 Vol.18 No.3 1-3 1998年第1期。
    [36]邹荣金 光照模型中的亮度递推算法 计算机应用与软件 Vol.14 No.2 53-59 97年第2期
    [37]洪国彬 专家系统的开发与实现 计算机应用与软件 Vol.15 No.4 61-66 98年第4期。
    [38]徐岩松 实时FFT计算的实现 计算机应用与软件 Vol.15 No.4 41-45 1998年第4期。
    [39]李林英 微机内存资源管理功能的灵活运用 微型计算机应用 Vol.19 No.5 310-313 1998年第5期。
    [40]章国宝等 照明方向及反射特性参数的鲁棒估计 计算机研究与发展 Vol.35 No.2 161-163 1998年第2期。

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700