计算机与现代化2024,Issue(9) :107-113.DOI:10.3969/j.issn.1006-2475.2024.09.018

基于改进YOLOv8s的摄像头模组缺陷检测

Camera Module Defect Detection Based on Improved YOLOv8s

张泽 张建权 周国鹏
计算机与现代化2024,Issue(9) :107-113.DOI:10.3969/j.issn.1006-2475.2024.09.018

基于改进YOLOv8s的摄像头模组缺陷检测

Camera Module Defect Detection Based on Improved YOLOv8s

张泽 1张建权 2周国鹏2
扫码查看

作者信息

  • 1. 武汉纺织大学电子与电气工程学院,湖北 武汉 430000
  • 2. 湖北科技学院自动化学院,湖北 咸宁 437000;湖北香城智能机电技术研究院有限公司,湖北 咸宁 437000
  • 折叠

摘要

针对摄像头模组缺陷检测中缺陷尺寸变化大、轮廓不明晰和小目标缺陷漏检率高等问题,提出一种改进的YO-LOv8s算法.首先,增加小目标检测层,提高小目标检测性能;其次,引入BiFormer对主干网络中C2f模块进行改进,提出C2f-Bif模块来增强网络的提取图像特征能力;再次,提出混合快速空间金字塔池化模块,增强网络捕获局部和全局信息的能力;最后,加入无参型SimAM注意力机制,抑制非目标背景干扰信息,提高对目标的关注度.实验结果表明:在减少模型参数量的情况下,改进后的YOLOv8s算法对摄像头模组缺陷检测的平均精度均值达到了87.2%,比YOLOv8s算法提升了3.2个百分点.检测速度达到55 FPS,满足工厂对摄像头模组缺陷实时检测的要求.

Abstract

Aiming at the problems of the great change of defect size,unclear contour and high missed detection rate of small tar-get defects in camera module defect detection,an improved YOLOv8s algorithm is proposed.Firstly,the small target detection layer is added to improve the detection performance of small targets.Secondly,BiFormer is introduced to improve the C2f module in the backbone network,and the C2f-Bif module is proposed to enhance the ability of the network to extract image features.Then,the H-SPPF(Hybrid Fast Space Pyramid Pooling)module is proposed to enhance the ability of the network to capture lo-cal and global information.Finally,the parameter-free SimAM attention mechanism is added to suppress the non-target back-ground interference information and improve the attention of the target.The experimental results show that the average accuracy of the improved YOLOv8s algorithm for camera module defect detection reaches 87.2%under the condition of reducing the num-ber of model parameters,which is 3.2 percentage points higher than that of the YOLOv8s algorithm.The detection speed reaches 55 FPS,which meets the factory's real-time detection requirements for camera module defects.

关键词

深度学习/YOLOv8s/缺陷检测/摄像头/BiFormer/注意力机制

Key words

deep learning/YOLOv8s/defect detection/camera/BiFormer/attention mechanism

引用本文复制引用

基金项目

湖北省科技计划项目(2020BGC028)

湖北省重点研发计划项目(2021BGD022)

湖北省重点研发计划项目(2022BBA026)

出版年

2024
计算机与现代化
江西省计算机学会 江西省计算技术研究所

计算机与现代化

CSTPCD
影响因子:0.472
ISSN:1006-2475
参考文献量6
段落导航相关论文