食品与机械2016,Vol.32Issue(10):123-126,4.DOI:10.13652/j.issn.1003-5788.2016.10.029
基于Halcon的苹果品质视觉检测试验研究
Experimental study of apple quality vision detection based on Halcon
项辉宇 1薛真 1冷崇杰 1胡晶1
作者信息
- 1. 北京工商大学材料与机械工程学院,北京 100048
- 折叠
摘要
Abstract
Apple's typical quality detection experiment was conducted on visual detection platform and the development environment Halcon in this paper.After image acquisition and processing the region of interest was extracted to find out the specific area containing the apple.Moreover,its contour was extracted using dynamic threshold segmentation method,and the area of this contour was calculated and used to assess the size of the apple.Furthermore,the typical defect fruit rot was detected using threshold segmentation method,and then the different gray values were shown in different colors.Based on different region's colors,the defects were detected based on the colors of different regions,and the color feature was valued using RGB color model and template matching method.A good region was selected to create a template and set parameters,and then the appropriate threshold was set as a qualified color according to the standard color of the R component.In this study,the extraction and the area of the fruit contour were calculated,and the defect and color detections of apples were realized.Finally,good results in the size,defect and color detections of apples were achieved by using Halcon and machine vision methods.关键词
苹果品质/大小检测/缺陷检测/颜色检测/HalconKey words
apple quality/size detection/defect detection/color detection/Halcon引用本文复制引用
项辉宇,薛真,冷崇杰,胡晶..基于Halcon的苹果品质视觉检测试验研究[J].食品与机械,2016,32(10):123-126,4.