The textile industry is required to detect defects of the length and width of textiles that move rapidly on the production line, as well as changes in patterns, colors and textures, and materials, so as to ensure the consistency and quality. Machine vision is mainly used for surface defect detection, pattern detection, color and texture detection, etc.