基于OpenCV的食品包装缺陷分割方法
CSTR:
作者:
作者单位:

(北京工商大学材料与机械工程学院,北京 100048)

作者简介:

杨洋,男,北京工商大学在读硕士研究生。

通讯作者:

项辉宇(1966—),男,北京工商大学教授,博士。 Email:xianghy@th.btbu.edu.cn

中图分类号:

基金项目:


Food packaging defect segmentation based OpenCV method
Author:
Affiliation:

(College of Material Science and Mechanical Engineering, Beijing Technology and Business University, Beijing 100048, China)

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对现有食品包装表面印刷缺陷分割算法中分割速度慢、精度低的问题,提出基于OpenCV实现图像差分与形态学处理结合的表面缺陷分割方法。分别对模版图像和待测图像进行高斯低通滤波运算;将预处理后的两幅图像作差分运算,得到其差分结果;采用形态学开运算来去除差分图像的噪声并标出目标缺陷位置。选取污点、飞墨、漏印3类缺陷样本各30组进行试验,结果表明:该法能够达到的平均准确率为91.51%,93.41%,9414%,平均的分割时间仅为 466 ms。

    Abstract:

    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.6 ms.

    参考文献
    相似文献
    引证文献
引用本文

杨洋,项辉宇,冷崇杰,等.基于OpenCV的食品包装缺陷分割方法[J].食品与机械,2017,33(7):104-106,174.
YANGYang, XIANGHuiyu, LENGChongjie, et al. Food packaging defect segmentation based OpenCV method[J]. Food & Machinery,2017,33(7):104-106,174.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2023-03-10
  • 出版日期:
文章二维码
×
《食品与机械》
友情提示
友情提示 一、 近日有不少作者反应我刊官网无法打开,是因为我刊网站正在升级,旧网站仍在百度搜索排名前列。请认准《食品与机械》唯一官方网址:http://www.ifoodmm.com/spyjx/home 唯一官方邮箱:foodmm@ifoodmm.com; 联系电话:0731-85258200,希望广大读者和作者仔细甄别。