The invention discloses a
textile production defect detection
system based on
image processing, and relates to the technical field of image defect detection.The
textile production defect detection
system comprises the following steps that a
linear array CCD collects a cloth image, and illumination difference is eliminated in a standardized mode; improving an
anisotropic diffusion extraction structure layer and a local
contrast enhancement detail layer; performing multi-structure element
morphological gradient operation, and constructing a composite gradient map according to the expansion
corrosion difference value; carrying out weighted product on the detail layer, the structure layer and the
frequency domain features, and carrying out normalization to generate a comprehensive feature map; performing 3 sigma threshold binarization and morphological optimization based on a feature map mean value to remove a
noise region; defect contour parameters are extracted, and a
physical marking device is triggered after classification coding. According to the method, through a multi-scale texture
decomposition architecture, spatial separation of a complex
textile texture background and defect features is realized, and structural layer extraction based on
anisotropic diffusion can retain fabric macroscopic morphological features and can also inhibit interference of periodic textures at the same time.