In this study, a new detection algorithm for yarn-dyed fabric defect based on autocorrelation function and grey level co-occurrence matrix (GLCM) is put forward. First, autocorrelation function is used to determine the pattern period of yarn-dyed fabric and according to this, the size of detection window can be obtained. Second, GLCMs are calculated with the specified parameters to characterise the original image. Third, Euclidean distances of GLCMs between being detected images and template image, which is selected from the defect-free fabric, are computed and then the threshold value is given to realise the defect detection. Experimental results show that the algorithm proposed in this study can achieve accurate detection of common defects of yarn-dyed fabric, such as the wrong weft, weft crackiness, stretched warp, oil stain and holes.
23 November 2023 in International Journal of Human-Computer Studies
This article presents a novel method for measuring the unevenness of yarn apparent diameter based on yarn sequence images captured from a moving yarn. A dynamic threshold module was designed to gain the global threshold for segmenting yarns in the sequence images. In the module, a K -means clustering algorithm was employed to classify the pixels of each frame in the sequence into two clusters—yarn and background. The cluster center of the current frame was used as the initial value of the cluster center for the next frame in the sequence to expedite the segmentation process. From the segmented yarn image, the yarn core was further extracted utilizing the characteristics of yarn hairiness, and two judgment templates were adopted to remove burrs, isolated points and unrelated small areas in the images. The yarn apparent diameter was measured on the yarn core at a given interval. The same kind of yarns were tested by using this method and Uster Evenness Tester 5. The experimental results show that the proposed method can accurately detect the unevenness of yarn apparent diameter and provide new useful information about yarn unevenness, such as the short-term, the long-term, and the periodic variations of yarn apparent diameters.