基于YOLOv5的咖啡瑕疵豆检测方法
CSTR:
作者:
作者单位:

(1. 云南农业大学机电工程学院,云南 昆明 650201;2. 云南省作物生产与智慧农业重点实验室,云南 昆明 650201)

作者简介:

张成尧,男,云南农业大学在读硕士研究生。

通讯作者:

张艳诚(1972—),男,云南农业大学副教授,硕士生导师,硕士。E-mail:zhyancheng72@163.com

中图分类号:

基金项目:

云南省重大科技专项计划项目(编号:202002AE090010)


Detection method of defective coffee beans based on YOLOv5
Author:
Affiliation:

(1. Faculty of Mechanical and Electrical Engineering, Yunnan Agriculture University, Kunming, Yunnan 650201, China; 2. The Key Laboratory for Crop Production and Smart Agriculture of Yunnan Province, Kunming, Yunnan 650201, China)

Fund Project:

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

    目的:实现咖啡豆瑕疵检测。方法:提出一种基于改进YOLOv5s网络,以YOLOv5s为基线网络嵌入并优选不同的注意力机制模块与激活函数。结果:使用CBAM模块与激活函数Hardswish的平均精度均值相比基线网络分别提高了5.3%和2.9%。经过200次迭代训练,模型准确率为99.5%,平均精度均值为97.6%,召回率为0.98,识别速率为64幅/s,模型大小为15 M。结论:相比于Faster RCNN、SSD、YOLOv3、YOLOv4、YOLOv5s,试验算法识别准确率更高,模型更加轻量化,对咖啡瑕疵豆的识别效果更好。

    Abstract:

    Objective: To realize the defect detection of coffee beans. Methods: An improved YOLOv5s network was proposed to embed different attention mechanism modules and activation functions with YOLOv5s as the baseline network. Results: The mean accuracy of the CBAM module and the activation function Hardswish improved by 5.3% and 2.9%, respectively, compared with the baseline network. After 200 iterations of training, the model accuracy was 99.5%, the average accuracy was 97.6%, the recall was 0.98, the recognition rate was 64 amplitude/s, and the model size was 15 M. Conclusion: Compared with Faster RCNN, SSD, YOLOv3, YOLOv4 and YOLOv5s, the test algorithm has higher recognition accuracy, more lightweight model and better recognition effect for coffee defective beans.

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

张成尧,张艳诚,张宇乾,等.基于YOLOv5的咖啡瑕疵豆检测方法[J].食品与机械,2023,39(2):50-56,175.
ZHANG Cheng-yao, ZHANG Yan-cheng, ZHANG Yu-qian, et al. Detection method of defective coffee beans based on YOLOv5[J]. Food & Machinery,2023,39(2):50-56,175.

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