Defects occurring during the welding process of metal structural components directly affect their overall strength, which is crucial to the load-bearing capacity and durability of the components. This signifies the importance of accurate measurement and assessment of weld strength. However, traditional non-destructive testing methods such as ultrasonic and non-contact camera inspection have certain technical limitations. In response to these issues, this paper analyzes the detection principle of weld strength, revealing that weld defects reduce the effective area of the structural bearing section and cause stress concentration around them. Through repeated experimental data analysis of samples, strain distribution data along the one-dimensional direction caused by defects such as slag inclusion and porosity were obtained. Experimental results show that this method can identify defect types in welds, including slag inclusion, porosity, and unevenness, and accurately measure the location and size of defects with a precision of 0.64 mm, achieving qualitative analysis of weld defects. Additionally, by deploying distributed optical fiber sensors (DOFS) at different vertical distances along the weld direction, the propagation law of stress induced by different types of weld defects on samples was thoroughly analyzed. This further validates the advantages of this method in weld strength detection, including high spatial resolution, high sensitivity, and non-destructive measurement.