Laser & Optoelectronics Progress, Volume. 62, Issue 12, 1212006(2025)

Surface-Mount Technology Production Line Component Detection System Based on Improved YOLOv5s

Dongdong Wei1、*, Yang Li1、**, and Chengzong Yuan2
Author Affiliations
  • 1Shanghai Aerospace Computer Technology Institute, Shanghai 201109, China
  • 2Shanghai Spaceflight Institute of TT&C and Telecommunication, Shanghai 201109, China
  • show less
    Figures & Tables(13)
    Flowchart of the system design
    Line-scan camera and motion control system. (a) Outside view; (b) inside view
    Improved YOLOv5s network architecture
    Diagram of the backbone network incorporating 4 different attention modules
    Diagram of the CA structure module
    Examples of typical tray specifications. (a) 10×12; (b) 6×6; (c) 9×17; (d) 5×16
    Examples of typical chip specifications. (a) Rectangular; (b) rectangular; (c) square; (d) rectangular
    Tray chip detection results. (a) Original image; (b) tray detection and segmentation; (c) chip recognition
    Application system user interface
    • Table 1. Analysis of detection results for different specification tray areas

      View table

      Table 1. Analysis of detection results for different specification tray areas

      TypeSize /(mm×mm)Number of rowsNumber of columnsPTypeSize /(mm×mm)Number of rowsNumber of columnsP
      1147×12517140.9513135×15410121.00
      2142×12612100.9614142×12811110.98
      3135×116980.991562×5920100.97
      4147×1289100.981663×102020.96
      546×1154101.001762×222041.00
      626×1273141.001862×352061.00
      770×1308140.971977×1291020.98
      833×1253101.002062×221031.00
      963×118481.002163×311041.00
      10142×12612100.972263×64661.00
      11145×1289170.962340×625161.00
      12145×12510100.952462×6020100.98
    • Table 2. Comparison of experimental results with different attention mechanisms

      View table

      Table 2. Comparison of experimental results with different attention mechanisms

      ModelRPmAPNFPS /(frame/s)
      YOLOv5s0.9340.9360.9560.8
      YOLOv5s-SE0.9360.9450.9710.7
      YOLOv5s-CBAM0.9450.9430.9680.45
      YOLOv5s-ECA0.9400.9440.9650.6
      YOLOv5s-CA0.9460.9480.9720.65
    • Table 3. Ablation experiment comparison of CA and P2 optimization schemes

      View table

      Table 3. Ablation experiment comparison of CA and P2 optimization schemes

      Optimization schemeRPmAPNFPS /(frame/s)
      CAP2
      //0.9340.9360.9560.8
      /0.9400.9420.9600.75
      /0.9380.9390.9580.7
      0.9460.9480.9720.65
    • Table 4. Comparison results of YOLOv5s-CA with current mainstream algorithms

      View table

      Table 4. Comparison results of YOLOv5s-CA with current mainstream algorithms

      ModelRPmAPNFPS /(frame/s)
      SSD0.840.870.760.35
      Faster R-CNN0.880.900.830.1
      YOLOv5l0.930.940.920.6
      YOLOv5m0.910.930.900.7
      YOLOv5s-CA0.9460.9480.9720.65
    Tools

    Get Citation

    Copy Citation Text

    Dongdong Wei, Yang Li, Chengzong Yuan. Surface-Mount Technology Production Line Component Detection System Based on Improved YOLOv5s[J]. Laser & Optoelectronics Progress, 2025, 62(12): 1212006

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Instrumentation, Measurement and Metrology

    Received: Feb. 24, 2025

    Accepted: Apr. 2, 2025

    Published Online: Jun. 23, 2025

    The Author Email: Dongdong Wei (316486493@qq.com), Yang Li (2445014884@qq.com)

    DOI:10.3788/LOP250692

    CSTR:32186.14.LOP250692

    Topics