Abstract:The quality of solder joints in aerospace electronic assembly is crucial for the reliability of equipment, and the detection of welding defects is the key to ensuring the stable operation of the system. To improve the efficiency and accuracy of welding defect detection in the aerospace electronic assembly process, an image processing method based on an improved Canny algorithm is proposed. The study adopts bilateral filtering technology to smooth noise while preserving edge information, and combines Otsu threshold segmentation algorithm to automatically determine the optimal threshold. By setting dual thresholds to determine strong and weak edges, Hough transform is introduced to fill the broken edges. The experimental results show that the system based on the improved Canny performs well in various types of solder joint detection. In the 0.12mm mesh board, the accuracy of detecting normal solder joints and bridging solder joints is 98.89% and 98.21%, respectively. In the 0.18mm mesh board, the detection accuracy of the system for low solder and over solder joints is 97.56% and 98.47%, respectively. At the same time, it was verified that the improved Canny algorithm had statistically significant differences in accuracy, missed detection rate, and running time. In addition, the improved Canny system outperforms the other two algorithms in terms of computation time and CPU usage, demonstrating its superiority in practical applications.