食品科学

• 安全检测 • 上一篇    下一篇

基于机器视觉与支持向量机的核桃外部缺陷判别分析方法

刘 军1,郭俊先1,*,帕提古丽•司拉木2,史建新1,张学军1,黄 华1   

  1. 1.新疆农业大学机械交通学院,新疆 乌鲁木齐 830052;2.新疆阿克苏市农牧机械管理局,新疆 阿克苏 843000
  • 出版日期:2015-10-25 发布日期:2015-10-20
  • 通讯作者: 郭俊先
  • 基金资助:

    “十二五”国家科技支撑计划项目(2011BAD27B02-05-02);国家自然科学基金面上项目(61367001);
    新疆农业工程装备创新设计重点实验室资助项目

Discrimination of Walnut External Defects Based on Machine Vision and Support Vector Machine

LIU Jun1, GUO Junxian1,*, PATIGULI • Silamu2, SHI Jianxin1, ZHANG Xuejun1, HUANG Hua1   

  1. 1. College of Machine and Traffic, Xinjiang Agricultural University, Ürümqi 830052, China;
    2. Administration of Agriculture and Animal Husbandry Machinery of Aksu in Xinjiang, Aksu 843000, China
  • Online:2015-10-25 Published:2015-10-20
  • Contact: GUO Junxian

摘要:

使用3CCD高精度面阵相机采集新疆多个品种核桃RGB图像,设计一种自适应双阈值的Otsu法,快速、准确地分割出缺陷区域;基于分割区域的几何、纹理等20 个初始特征,转换为新的9 维特征向量集;以该特征集为输入,建立基于贝叶斯、BP神经网络与支持向量机的15 个识别模型,对比评价其适应性,以及裂缝、碎壳、黑斑3 类核桃外部缺陷的识别性能与时间。结果表明,基于径向基的支持向量机识别模型效果最好,对3 类缺陷的验证集平均识别率分别为93.06%、88.31%、89.27%,对缺陷的总识别率为90.21%,平均识别时间为10-4 s级。研究成果能够用于今后核桃缺陷的在线检测与分级,同时也为坚果等其他作物品质的在线检测识别提供一定参考。

关键词: 核桃, 机器视觉, 外部缺陷, 支持向量机, 识别

Abstract:

In the present study, based on the RGB images acquired using a 3-CCD high-precision area array camera for
several varieties of walnuts in Xinjiang, we designed a self-adaptive double-threshold Otsu method which can rapidly and
accurately segment the defective regions and transform 20 initial features including geometry and texture and other features
to a 9-demensional set of eigenvectors. Using the set of eigenvectors as input, 15 recognition models were established based
on Bayesian network, BP neural network (BPNN) and support vector machine (SVM), and their adaptability as well as
identification performance and mean recognition time for 3 defects (crack, damage, and black spot) were compared. The
results revealed that the SVM model based on radial basis function (RBF), showing a mean recognition time at the order
of magnitude of 10-4 s, provided the best results, giving average test recognition accuracy of 93.06% for crack, 88.31% for
damage, and 89.27% for black spot and total recognition rate of 90.21% for the 3 external defects. These results can provide
useful data for on-line determination and classification of walnut detects and on-line quality identification of other nuts.

Key words: walnuts, machine vision, external defects, support vector machine, recognition

中图分类号: