基于OpenCV的食品包装缺陷分割方法  被引量:6

Food packaging defect segmentation based OpenCV method

在线阅读下载全文

作  者:杨洋[1] 项辉宇[1] 冷崇杰[1] 薛真[1] 

机构地区:[1]北京工商大学材料与机械工程学院,北京100048

出  处:《食品与机械》2017年第7期104-106,174,共4页Food and Machinery

摘  要:针对现有食品包装表面印刷缺陷分割算法中分割速度慢、精度低的问题,提出基于OpenCV实现图像差分与形态学处理结合的表面缺陷分割方法。分别对模版图像和待测图像进行高斯低通滤波运算;将预处理后的两幅图像作差分运算,得到其差分结果;采用形态学开运算来去除差分图像的噪声并标出目标缺陷位置。选取污点、飞墨、漏印3类缺陷样本各30组进行试验,结果表明:该法能够达到的平均准确率为91.51%,93.41%,94.14%,平均的分割时间仅为46.6ms。Assembly line detection more depend on the machine vision technology,and image segmentation is the key step in the detection.To solve the problem of slow speed and low accuracy of defects segmentation methods to the surface defects of food packing,proposed a segmenting method based on image difference and mathematical morphology in OpenCV.Firstly,compute the template image of the target image and filter them by a low pass filter.Secondly,differential operation is happened on the two pretreated images to obtain the differential image.Finally,using morphological opening operation to remove the noise on the difference image and get the position of defects image.In this paper,30 groups of defect samples,such as stain,misting and stripping,were selected and the experimental results were recorded.The results showed that the average accuracies of the proposed method were 91.51%,93.41%,94.14%,respectively,and the average segmentation time was only 46.6ms.

关 键 词:食品包装 视觉检测 图像分割 OPENCV 

分 类 号:TP391.41[自动化与计算机技术—计算机应用技术] TS206[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象