引用本文:蒋亚军,曹昭辉,丁椒平,文煜超,张闯,胡志刚.基于改进YOLOv5s模型纸杯缺陷检测方法[J].包装工程,2023,44(11):249-258.
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 2131次   下载 1279 本文二维码信息
码上扫一扫!
分享到: 微信 更多
基于改进YOLOv5s模型纸杯缺陷检测方法
蒋亚军1,曹昭辉1,丁椒平2,文煜超1,张闯1,胡志刚1
1.武汉轻工大学 机械工程学院,武汉 430048;2.湖北克拉弗特实业有限公司,武汉 430048
摘要:
目的 针对小尺寸和特征不明显的纸杯缺陷在检测过程中易出现漏检、错检的问题,提出一种基于改进YOLOv5s模型纸杯缺陷检测方法。方法 在原始模型的Backbone部分引入CBAM注意力机制模块,提升模型的特征提取能力;增加一个YOLO检测头,将三尺度检测改为四尺度检测,提高模型对小目标和特征不明显目标的检测能力;在Neck部分借鉴加权双向特征金字塔网络BiFPN,对原始模型中的PANet进行部分改进,加强模型的特征融合能力。结果 结果显示,改进后的模型YOLOv5s–CXO精度为89.1%、召回率为90.4%、平均精度均值为89.5%,比原始模型的精度提高了1.5%、召回率提高了1.3%、平均精度均值提高了1.2%。结论 本文的改进方法有效提高了模型的检测能力,对小尺寸和特征不明显纸杯缺陷的检测效果有明显提升。
关键词:  YOLOv5s  CBAM  BiFPN  多尺度检测  纸杯
DOI:10.19554/j.cnki.1001-3563.2023.11.029
分类号:TS206.4
基金项目:湖北省教育厅指导性项目(B2021119);武汉轻工大学校立科研项目(2021Y27)
Paper Cup Defect Detection Method Based on the Improved YOLOv5s Model
JIANG Ya-jun1, CAO Zhao-hui1, DING Jiao-ping2, WEN Yu-chao1, ZHANG Chuang1, HU Zhi-gang1
(1. College of Mechanical Engineering, Wuhan Polytechnic University, Wuhan 430048, China;2. Hubei Kraftpack Industry Co., LTD., Wuhan 430048, China)
Abstract:
The work aims to propose a paper cup defect detection method based on improved YOLOv5s model aiming at the problem that paper cup defects in small size and with insignificant features are easy to be missed and misdetected in the detection process. The CBAM attention mechanism module was introduced in the Backbone part of the original model to improve the feature extraction ability of the model. A YOLO detection head was added, and the three-scale detection was changed to four-scale detection to improve the detection ability of the model for small targets and targets with insignificant features. In the Neck part, the weighted bidirectional feature pyramid network BiFPN was used to partially improve the PANet in the original model to strengthen the feature fusion ability of the model. The results indicated that the precision of the improved model YOLOv5s-CXO was 89.1%, the recall was 90.4%, and the average precision mean was 89.5%. Compared with the original model, the precision was increased by 1.5%, the recall was increased by 1.3%, and the average precision mean was increased by 1.2%. The proposed improved method effectively improves the detection ability of the model, and significantly improves the detection effect of paper cup defects in small size and with insignificant features.
Key words:  YOLOv5s  CBAM  BiFPN  multi-scale detection  paper cups

关于我们 | 联系我们 | 投诉建议 | 隐私保护

您是第24463338位访问者    渝ICP备15012534号-2

版权所有:《包装工程》编辑部 2014 All Rights Reserved

邮编:400039 电话:023—68792836传真:023—68792396 Email: designartj@126.com

    

  
 

渝公网安备 50010702501717号