The invention discloses a PCB
welding spot defect positioning detection method and
system based on
deep learning, and the method comprises the steps: S1, collecting visible light data and thermal
imaging data of a PCB, carrying out the preprocessing, and obtaining the preprocessed visible light data and
thermal infrared data of the PCB; s2, according to the pre-processed visible light data and
thermal infrared data of the PCB,
feature extraction and feature alignment are carried out respectively, and a
textural feature map and a temperature feature map after alignment are obtained; s3, carrying out feature calibration, and generating a fusion feature map; s4, calculating a positioning feature map and an optimized enhanced feature map, and finally outputting a
welding spot defect detection frame set; s5, calculating a sub-pixel feature map, and outputting a defect distribution probability map; and S6, converting the defect distribution probability graph into a binary defect
mask, and outputting a final defect detection result in combination with morphological closed operation. The method can solve the problem that a traditional PCB
welding spot defect positioning method is insufficient in small defect recognition accuracy.