{'fraction_non_alphanumeric': 0.014794889038332213, 'fraction_numerical': 0.0, 'mean_word_length': 5.469565217391304, '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}}
Appearance change for colored spun yarn fabric based on image color transfer

The fabric of colored spun yarn has ever-changing appearances and styles with different fancy yarns. The fabric image is commonly designed by the designer using the software, which needs complex user interactions and difficult image segmentation. In this paper, a modified color transfer method was proposed to generate the fabric appearance of colored spun yarn. Given the color card as the target image, the style fabric image was matched as the reference image based on the dominant luminance. After transferring the two images to lαβ color space, Wavelet transform and luminance sampling were utilized to filter the redundant high-frequency information and select the representative pixels, respectively. Then, the chromatic channels were transferred based on the best matched luminance and the neighborhood relation. Finally, the image after color transfer was reconstructed by wavelet reconstruction. The proposed reference image matching maintained the result to be the ground truth. For the samples selected, the combined methods based on wavelet transform and luminance sampling improved the efficiency and performance of the proposed scheme. Experiments were conducted on different fabrics with different colors and styles. Experiments demonstrated the validity and superiority of the proposed method, which can provide referential assistance for the designer and save considerable amounts of labor.