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 条
  • [11] Research on surface defect detection model of steel strip based on MFFA-YOLOv5
    Chen, Hao
    Qiu, Jianlin
    Gao, Depeng
    Qian, Lanmei
    Li, Xiujing
    [J]. IET IMAGE PROCESSING, 2024, 18 (08) : 2105 - 2113
  • [12] RESEARCH ON SURFACE DEFECT DETECTION METHOD OF METALLURGICAL SAW BLADE BASED ON YOLOV5
    Meng, L. L.
    Zheng, L.
    Cui, X.
    Liu, R.
    [J]. METALURGIJA, 2024, 63 (01): : 121 - 124
  • [13] TBi-YOLOv5: A surface defect detection model for crane wire with Bottleneck Transformer and small target detection layer
    Huang, Yi
    Fan, JiaYuan
    Hu, Yong
    Guo, Jinmeng
    Zhu, Yongjian
    [J]. PROCEEDINGS OF THE INSTITUTION OF MECHANICAL ENGINEERS PART C-JOURNAL OF MECHANICAL ENGINEERING SCIENCE, 2024, 238 (06) : 2425 - 2438
  • [14] Transmission Lines Small-Target Detection Algorithm Research Based on YOLOv5
    Cheng, Qiuyan
    Yuan, Guowu
    Chen, Dong
    Xu, Bangwu
    Chen, Enbang
    Zhou, Hao
    [J]. APPLIED SCIENCES-BASEL, 2023, 13 (16):
  • [15] RC-YOLOv5s: for tile surface defect detection
    Wenqing Hou
    Huicheng Jing
    [J]. The Visual Computer, 2024, 40 (2) : 459 - 470
  • [16] RC-YOLOv5s: for tile surface defect detection
    Hou, Wenqing
    Jing, Huicheng
    [J]. VISUAL COMPUTER, 2024, 40 (02): : 459 - 470
  • [17] YOLOv5s FMG: An Improved Small Target Detection Algorithm Based on YOLOv5 in Low Visibility
    Zheng, Yunchang
    Zhan, Yunyue
    Huang, Xiaoying
    Ji, Gaoqing
    [J]. IEEE ACCESS, 2023, 11 : 75782 - 75793
  • [18] Metal surface defect detection based on improved YOLOv5
    Zhou, Chuande
    Lu, Zhenyu
    Lv, Zhongliang
    Meng, Minghui
    Tan, Yonghu
    Xia, Kewen
    Liu, Kang
    Zuo, Hailun
    [J]. SCIENTIFIC REPORTS, 2023, 13 (01)
  • [19] Surface Defect Detection of Industrial Parts Based on YOLOv5
    Le, Hai Feng
    Zhang, Lu Jia
    Liu, Yan Xia
    [J]. IEEE ACCESS, 2022, 10 : 130784 - 130794
  • [20] Strip Surface Defect Detection Algorithm Based on YOLOv5
    Wang, Han
    Yang, Xiuding
    Zhou, Bei
    Shi, Zhuohao
    Zhan, Daohua
    Huang, Renbin
    Lin, Jian
    Wu, Zhiheng
    Long, Danfeng
    [J]. MATERIALS, 2023, 16 (07)