 This paper proposes an automated quality inspection system for aviation plug solder joints. It uses a two-phase approach to detect defects quickly and accurately. First, a fine-tuned YOLOV-5 model is used to identify the region of interest, ROI, containing the solder joints. This is then moved to the center of the image to improve clarity. A second fine-tuned YOLOV-5 model is then used to analyze the ROI and determine if any defects are present. The system's accuracy is tested in a real production line and found to be over 97.5%. Additionally, the system's speed is measured at 0.1 seconds per solder joint, meeting the requirements of industrial production. This article was authored by Junwei Sha, Zhuanpu Wang, Guanranhu, and others.