{'fraction_non_alphanumeric': 0.014372163388804841, 'fraction_numerical': 0.0007564296520423601, 'mean_word_length': 4.95945945945946, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Measuring the unevenness of yarn apparent diameter from yarn sequence images

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.