The invention discloses a texture surface defect detection method and
system based on abnormal synthesis and
decomposition, and belongs to the field of
image processing. According to the method, a segmentation-guided defect generation network is constructed, a large number of defect samples similar to real defects can be generated by using a small number of real defect training samples, and meanwhile, an anomaly synthesis method based on
Gaussian sampling is provided, and anomaly negative samples can be randomly synthesized by using defect-free positive samples, so that the problem of small quantity of defect samples in industry can be solved; the defect detection precision is further improved; according to the method and
system, the abnormal
negative sample is decomposed into the texture
background image and the abnormal
mask image by adopting the abnormal
decomposition network, so that defects can be effectively prevented from being reconstructed into the texture background, the texture
background reconstruction precision is improved, the defect area can be accurately segmented, and the residual image and the abnormal segmentation image are fused; therefore, the defect
detection rate is improved, and the defect over-
detection rate is reduced.