摘要目前在市场上对于螺钉安装的检测大多采用人工,当需要检查的螺丝数量多以及螺丝体积较小的时候,工人检查和安装就比较费力
因此,为了使检测的结果更为快速和准确,本文尝试利用机器视觉算法来解决这一问题
在设计之前,我们对机器视觉和图像处理技术进行了相关的了解,以便更好地解决问题
接着开始试验,首先我们在合适的光照条件下取得螺丝安装的图像然后通过HALCON软件对得到的图像进行相关的图像预处理并进行检测,检查是否安装螺钉,且对螺钉位置进行重点圈示;最后将得到的检测结果与C++Builder进行交互,通过BCB设计的用户界面展示出来
关键字:螺钉;机器视觉;图像处理;HALCON;C++BuilderABSTRACTCurrentlyonthemarketforscrewtoinstalldetectionusingartificialmostly,whenneedtocheckthenumberofscrewsandscrewmoresmall,workersaremoredifficulttocheckandinstall
Therefore,inordertomakethetestresultsmorerapidandaccurate,thispapertriestosolvethisproblembyusingthemachinevisionalgorithm
Beforethedesign,wehadaknowledgeofmachinevisionandimageprocessingtechnologytobettersolvetheproblem
Thenbegantheexperiment,first,wegettheimageofthescrewintherightlight
ThentheimageisprocessedandtestedbytheHALCONs