Welcome to Journal of Graphics share: 

Journal of Graphics ›› 2024, Vol. 45 ›› Issue (3): 446-453.DOI: 10.11996/JG.j.2095-302X.2024030446

Previous Articles     Next Articles

Defect detection method of rubber seal ring based on improved YOLOv7-tiny

ZHANG Xiangsheng(), YANG Xiao   

  1. Key Laboratory of Advanced Process Control for Light Industry (Ministry of Education), Jiangnan University, Wuxi Jiangsu 214122, China
  • Received:2023-10-08 Accepted:2024-02-20 Online:2024-06-30 Published:2024-06-06
  • About author:

    ZHANG Xiangsheng (1977-), associate professor, Ph.D. His main research interests cover computer vision and image processing, intelligent control of robots, etc. E-mail:zxs_vip@163.com

Abstract:

Aiming at the problem of low efficiency in traditional detection of surface defects of rubber seal rings, an improved YOLOv7-tiny algorithm for surface defect detection of rubber seal rings was proposed. The PConv optimized ELAN structure was introduced into the backbone feature extraction network to enhance the algorithm’s feature extraction capability and to reduce the number of parameters. The global attention mechanism (GAM) was introduced into the feature fusion network, utilizing the attention weights between each pair of 3D channels, spatial widths, and spatial heights to improve efficiency by capturing the important features in three dimensions, thus enhancing the algorithm’s feature fusion capability. The WIoU loss function was employed to optimize the original bounding box loss function, enhancing the algorithm’s ability to locate the detected targets through a situation-compliant gradient gain allocation strategy. Additionally, a P2 small-target detection layer was added to strengthen the fusion of the deep and shallow feature information, thereby enhancing the algorithm’s ability to detect small-target defects. Experimental comparisons were conducted using the O-Rings dataset. The improved algorithm was compared with the YOLOv7-tiny algorithm, resulting in a 7.8% improvement in mAP and achieving a detection accuracy of 90.9%, meeting the needs of actual industrial production.

Key words: YOLOv7-tiny, rubber seal ring, defect detection, attention mechanism, small target detection layer

CLC Number: