基于Halcon的苹果品质视觉检测试验研究
CSTR:
作者:
作者单位:

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

作者简介:

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

通讯作者:

中图分类号:

基金项目:


Experimental study of apple quality vision detection based on Halcon
Author:
Affiliation:

(Materials and Mechanical Engineering College, Beijing Technology and Business University, Beijing 100048, China)

Fund Project:

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

    基于视觉检测平台和Halcon开发环境进行苹果典型品质检测试验,采集图像并处理。提取感兴趣区域,找出包含苹果的区域,用动态阈值分割的方法提取苹果的轮廓,并计算轮廓面积,以该面积来评定苹果的大小。对苹果的腐烂这一典型缺陷进行试验,用阈值分割的方法完成图像分割,不同灰度值显示为不同的颜色,据此将缺陷部分显示出来。颜色特征的检测是依据RGB颜色模型,采用模板匹配的方法,选取好的区域创建匹配模板,进行参数设置,并根据标准颜色的R分量设定合适的阈值作为合格苹果的颜色。该试验完成了水果轮廓的提取及面积的计算,实现了苹果部分区域的缺陷检测以及苹果颜色的检测。采用Halcon和机器视觉的方法对苹果品质的大小、缺陷、颜色检测能取得较好的效果。

    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.

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

项辉宇,薛真,冷崇杰,等.基于Halcon的苹果品质视觉检测试验研究[J].食品与机械,2016,32(10):123-126.
XIANGHuiyu, XUEZhen, LENGChongjie, et al. Experimental study of apple quality vision detection based on Halcon[J]. Food & Machinery,2016,32(10):123-126.

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