In order to improve the inspection efficiency of weld surface cracks and effectively reduce the inspection cost and the risk of high-altitude fall,this paper applies image recognition technology to weld surface cracks recognition.Aiming at the characteristics of low contrast between weld and image background under natural conditions,a weld recognition technology based on two-dimensional Fourier transform is proposed,which realizes the recognition of weld direction and weld width,effectively reduces the influence of image background on crack recognition results,and improves the detection rate of weld surface cracks.The method proposed in this paper has been validated through image recognition experiments to achieve rapid and effective screening of surface cracks in welds.