Surface defect detection algorithm of electronic components based on improved YOLOv5

被引:3
作者
Zeng Y. [1 ]
Gao F.-Q. [1 ]
机构
[1] School of Information Science and Engineering, Zhejiang Sci-Tech University, Hangzhou
来源
Zhejiang Daxue Xuebao (Gongxue Ban)/Journal of Zhejiang University (Engineering Science) | 2023年 / 57卷 / 03期
关键词
attention module; deep learning; object detection network; surface defect of electronic component; YOLOv5;
D O I
10.3785/j.issn.1008-973X.2023.03.003
中图分类号
学科分类号
摘要
For the poor real-time detection capability of the current object detection model in the production environment of electronic components, GhostNet was used to replace the backbone network of YOLOv5. And for the existence of small objects and objects with large scale changes on the surface defects of electronic components, a coordinate attention module was added to the YOLOv5 backbone network, which enhanced the sensory field while avoiding the consumption of large computational resources. The coordinate information was embedded into the channel attention to improve the object localization of the model. The feature pyramid networks (FPN) structure in the YOLOv5 feature fusion module was replaced with a weighted bi-directional feature pyramid network structure, to enhance the fusion capability of multi-scale weighted features. Experimental results on the self-made defective electronic component dataset showed that the improved GCB-YOLOv5 model achieved an average accuracy of 93% and an average detection time of 33.2 ms, which improved the average accuracy by 15.0% and the average time by 7 ms compared with the original YOLOv5 model. And the improved model can meet the requirements of both accuracy and speed of electronic component surface defect detection. © 2023 Zhejiang University. All rights reserved.
引用
收藏
页码:455 / 465
页数:10
相关论文
共 21 条
[1]  
WANG Yu, WU Zhi-heng, DENG Zhi-wen, Et al., Metal component surface defect detection system based on machine vision [J], Mechanical Engineering and Automation, 4, pp. 210-211, (2018)
[2]  
HO C C, SU E, LI P, Et al., Machine vision and deep learning based rubber gasket defect detection [J], Advances in Technology Innovation, 5, 2, pp. 76-83, (2020)
[3]  
LI Jing-yu, XIAO Jun-liang, FU Han, Et al., Detection of small defects on the surface of light guide plates [J], China CIO News, 2, pp. 65-69, (2021)
[4]  
DAI Jun-jie, Research on object recognition and surface defect detection based on machine vision, (2021)
[5]  
LIU W, ANGUELOV D, ERHAN D, Et al., SSD: single shot MultiBox detector
[6]  
REDMON J, DIVVALA S, GIRSHICK R, Et al., You only look once: unified, real-time object detection [C], Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 779-788, (2016)
[7]  
GIRSHICK R, DONAHUE J, DARRELL T, Et al., Rich feature hierarchies for accurate object detection and semantic segmentation [C], Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 580-587, (2014)
[8]  
GIRSHICK R., Fast R-CNN [C], 2015 IEEE International Conference on Computer Vision, pp. 1440-1448, (2015)
[9]  
REN S Q, HE K M, GIRSHICK R, Et al., Faster R-CNN: towards real-time object detection with region proposal networks [J], IEEE Transactions on Pattern Analysis and Machine Intelligence, 39, 6, pp. 1137-1149, (2017)
[10]  
HE K M, GKIOXARI G, DOLLAR P, Et al., Mask R-CNN [C], 2017 IEEE International Conference on Computer Vision, pp. 2980-2988, (2017)