基于机器视觉的锻件尺寸检测方法.pdf

机械工程师

MECHANICALENGINEER

基于机器视觉的锻件尺寸检测方法

苗杰,倪洪启,杨兵?

(1.沈阳化工大学机械与动力工程学院,沈阳110142;2.江苏圣贤锻造有限责任公司,江苏常州213169)

摘要:针对锻件尺寸测量过程中的人工手动接触性检测速率低下及检测不方便等问题,设计了一种基于Halcon的锻件

尺寸检测系统。拍摄照片之后,先对图像进行合适的预处理,将原始图像转化为灰度图,然后选取待测区域,采用高斯滤波

以削弱高频噪声,接着使用双边滤波对图像进行处理,它考虑了像素之间的空间距离和像素之间的灰度差异,从而能够去

除噪声并保留图像边缘的细节,然后进行图像增强处理。通过二值化值分割筛除噪声进而进行特征筛选,然后进行形态

学处理腐蚀操作,最后对锻件尺寸进行测量并将数值显示到窗口上,对参照物区域进行分割,分别得到参照物的像素尺寸

和实际尺寸,再通过数学运算分别得到900、1000、1100℃状态下待测锻件的实际尺寸。试验结果表明,该算法能够很好地

对待测锻件进行处理,进而得到尺寸数据。

关键词:锻件测量;图像处理;双边滤波;二值化;特征提取;形态学处理

中图分类号:TP751文献标志码:A

ForgingsSizeInspectionMethodBasedonMachineVision

MIAOJie,NIHongqi,YANGBing?

(1.SchoolofMechanicalandPowerEngineering,ShenyangUniversityofChemicalTechnology,Shenyang110142,China;

2.JiangsuShengxianForgingCo.,Ltd.,Changzhou213169,China)

Abstract:Tosolvetheproblemssuchaslowspeedofmanualcontactdetectionandinconvenientdetectionintheprocessof

forgingsizemeasurement,thispaperdesignsaforgingsizedetectionsystembasedonHalcon.Afterthephotoistaken,the

imageispreprocessedproperly,theoriginalimageisconvertedintograyscaleimage,andthentheareatobemeasuredis

selected,Gaussianfilteringisadoptedtoreducehigh-frequencynoise,andthentheimageisprocessedbybilateralfiltering,

whichtakesintoaccountthespatialdistancebetweenpixelsandthegrayscaledifferencebetweenpixels,soastoremove

noiseandretainthedetailsoftheimageedge.Afterthat,imageenhancementprocessingiscarriedout,binarizedthreshold

segmentationisperformedtoscreennoiseandthenfeaturescreeningisperformed,andmorphologicalprocessingcorrosion

operationiscarriedout,andfinallytheforgingsizeismeasuredandthevaluei

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档