Research on Surface Defect Detection of Camera Module Lens Based on YOLOv5s-Small-Target

被引:6
|
作者
He, Gang [1 ]
Zhou, Jianyun [1 ]
Yang, Hu [1 ]
Ning, Yuan [1 ]
Zou, Huatao [1 ]
机构
[1] Hohai Univ, Coll Mech & Elect Engn, Dept Mech, Changzhou 213022, Peoples R China
基金
中国国家自然科学基金;
关键词
deep learning; camera module; surface small target defect detection; YOLOv5; attention mechanism; NEURAL-NETWORK;
D O I
10.3390/electronics11193189
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
For the problem of low resolution of camera module lens surface defect image, small target and blurred defect details leading to low detection accuracy, a camera module lens surface defect detection algorithm YOLOv5s-Defect based on improved YOLOv5s is proposed. Firstly, to solve the problems arising from the anchor frame generated by the network through K-means clustering, the dynamic anchor frame structure DAFS is introduced in the input stage. Secondly, the SPP-D (Spatial Pyramid Pooling-Defect) improved from the SPP module is proposed. The SPP-D module is used to enhance the reuse rate of feature information in order to reduce the loss of feature information due to the maximum pooling of SPP modules. Then, the convolutional attention module is introduced to the network model of YOLOv5s, which is used to enhance the defective region features and suppress the background region features, thus improving the detection accuracy of small targets. Finally, the post-processing method of non-extreme value suppression is improved, and the improved method DIoU-NMS improves the detection accuracy of small targets in complex backgrounds. The experimental results show that the mean average precision mAP@0.5 of the YOLOv5s-Small-Target algorithm is 99.6%, 8.1% higher than that of the original YOLOv5s algorithm, the detection speed FPS is 80 f/s, and the model size is 18.7M. Compared with the traditional camera module lens surface defect detection methods, YOLOv5s-Small-Target can detect the type and location of lens surface defects more accurately and quickly, and has a smaller model volume, which is convenient for deployment in mobile terminals, meeting the demand for real-time and accuracy of camera module lens surface defect detection.
引用
收藏
页数:22
相关论文
共 50 条
  • [1] YOLOv7-EAS: A Small Target Detection of Camera Module Surface Based on Improved YOLOv7
    Zou, Huatao
    He, Gang
    Yao, Yuan
    Zhu, Feng
    Zhou, Yang
    Chen, Xuan
    [J]. ADVANCED THEORY AND SIMULATIONS, 2023, 6 (11)
  • [2] Small Defect Detection Algorithm of Particle Board Surface Based on Improved YOLOv5s
    Zha, Jian
    Chen, Xianzhong
    Wang, Wencai
    Guan, Yuyin
    Zhang, Jie
    [J]. Computer Engineering and Applications, 2024, 60 (17) : 158 - 166
  • [3] Rail Surface Defect Detection Based on An Improved YOLOv5s
    Luo, Hui
    Cai, Lianming
    Li, Chenbiao
    [J]. APPLIED SCIENCES-BASEL, 2023, 13 (12):
  • [4] Research on Optimization of YOLOv5s Detection Algorithm for Steel Surface Defect
    Xu, Hongjun
    Tang, Ziqiang
    Zhang, Jindong
    Zhu, Peihua
    [J]. Computer Engineering and Applications, 2024, 60 (07) : 306 - 314
  • [5] Research on Steel Surface Defect Detection Based on YOLOv5 with Attention Mechanism
    Shi, Jianting
    Yang, Jian
    Zhang, Yingtao
    [J]. ELECTRONICS, 2022, 11 (22)
  • [6] Research on strip surface defect detection based on improved YOLOv5 algorithm
    Lv, Shuaishuai
    Tao, Chuanzhen
    Hao, Zhuangzhuang
    Ni, Hongjun
    Hou, Zhengjie
    Li, Xiaoyuan
    Gu, Hai
    Shi, Weidong
    Chen, Linfei
    [J]. IRONMAKING & STEELMAKING, 2024,
  • [7] Research on tile surface defect detection by improved YOLOv5
    Yu, Xulong
    Yu, Qiancheng
    Zhang, Yue
    Wang, Aoqiang
    Wang, Jinyun
    [J]. JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2023, 45 (06) : 11319 - 11331
  • [8] Apple surface defect detection based on lightweight improved YOLOv5s
    School of Electrical Engineering, Xinjiang University, Urumqi
    830017, China
    [J]. Int. J. Inf. Commun. Technol., 2024, 7 (113-128): : 113 - 128
  • [9] Surface Defect Detection of Industrial Components Based on Improved YOLOv5s
    Liu, Li
    Feng, Xuefeng
    Li, Feng
    Xian, Qinglong
    Chen, Zhendong
    Jia, Zhenhong
    [J]. IEEE SENSORS JOURNAL, 2024, 24 (15) : 23940 - 23950
  • [10] Surface defect detection of ceramic disc based on improved YOLOv5s
    Pan, Haipeng
    Li, Gang
    Feng, Hao
    Li, Qianghua
    Sun, Peng
    Ye, Shujia
    [J]. HELIYON, 2024, 10 (12)