Sei sulla pagina 1di 5

Integrated Digital System for Yarn Surface Quality

Evaluation using Computer Vision and Artificial


Intelligence
Sheng Yan LI, Jie FENG, Bin Gang XU, and Xiao Ming TAO
Institute of Textiles and Clothing, The Hong Kong Polytechnic University, Hung Hom, Kowloon, Hong
Kong

inconsistent. With the rapid development of computer


Abstract - The evaluation method of yarn surface quality
technology, the image processing and artificial intelligence
currently in use is mainly based on manual inspection. In
technologies become more widely used nowadays in textiles.
order to resolve the inherent limitations of the human visual
During the past decades, the investigation on digital yarn
inspection, an intelligent evaluation system has been
analysis by using computer vision has attracted an increasing
developed for the objective and automatic evaluation of yarn
interest of researchers and some valuable research works
surface quality with computer vision and artificial intelligence.
have been carried out [2-7].
In this system, all yarn surface features are fully digitalized
and quantitatively processed to ensure an objective evaluation
of yarn surface appearance. This digital system integrates
and controls the whole progress of yarn surface analysis,
including the image acquisition, digital feature extraction,
characteristic parameter computation and yarn quality
classification, in one computer program with an interactive
and friendly user interface. Besides yarn quality
classification, multiple yarn surface characteristics, such as Yarn sample
Human visual
yarn diameter irregularities, yarn fault areas, foreign matters Yarn board winder
observation
and fuzziness, can also be quantitatively obtained and visibly
displayed.
Figure 1. Traditional method for yarn surface evaluation
Keywords: Yarn evaluation, Intelligent system, Image
processing, Artificial neural network The paper is an extension of our preliminary work [7]
on digital characterization and evaluation of yarn surface
appearance. In this paper, we have further developed and
1 Introduction implemented an intelligent system for the objective and
automatic evaluation of digital yarn appearance quality using
The grade assessment of yarn appearance quality, or so computer vision and artificial intelligence. The newly
called yarn surface grading, is one of the important testing developed system is able to integrate and control the whole
procedures in the textile industry. According to ASTM D progress of yarn surface analysis, including the image
2255 [1], a standard test method is to wind a yarn sample on a acquisition, digital feature extraction, characteristic parameter
black board using a yarn board winder and then compare the computation and yarn quality classification, with an
board with a series of photographic standards representing the interactive and friendly user interface. Besides yarn quality
grades A (best), B, C and D (worst), which assesses yarn classification, multiple yarn surface characteristics, such as
surface quality with consideration of the unevenness, yarn diameter irregularities, yarn fault areas, foreign matters
fuzziness, neppiness and visible foreign matter. and fuzziness, can also be quantitatively obtained in this
system for further study and evaluation.
Traditionally, the inspection is carried out by direct
observation in which a skilled specialist visually compares In the following section, the interface and function of
the wound yarn sample with the grade labeled photographic the integrated evaluation system for digital yarn appearance
standard and then judges the quality of the yarn sample quality will be firstly introduced in Section 2. Then, in
according to the standard definition, as shown in Figure 1. Section 3, the methodology of the system will be illustrated in
But the method is subjective, time-consuming, and sometimes details. Finally the conclusions will be given in Section 4.
Figure 2. Digital Yarn Surface Grading System

2 Digital and Visible Yarn Surface shown in the input feature frame of the artificial neural
network region.
Grading System
Table 1. Visible Results
2.1 System Interface and Function
Maps and figures Statistical results
The graphics user interface (GUI) of the visible Gray image Value of thick place
evaluation system for digital yarn appearance quality is Binary image Value of thin place
shown in Figure 2. In this system, users can carry out the Hairiness image Value of neps
yarn image processing and appearance classification by a Histogram Mean value of diameter
series of simple operations, and then the figures and relevant Width map Standard deviation of diameter
features of the digital yarn image can be displayed visibly. Saliency map Value of hairiness

As shown in Figure 3, the main steps of the Digital Yarn In addition, the system also provides online help for
Surface Grading System are, firstly, to acquire the yarn image users, including the user guide (Demo button), flow chat of
using a commercial scanner, next to load the image into the the program (Flow Chart button) and the digital yarn
system, then to conduct the yarn image processing, and database for training the artificial neural network (Database
finally to classify the yarn appearance grade. button).

Open scanner to Load scan image 2.2 Digital Yarn Database


obtain yarn image into the program
A series of weaving and knitting yarns with different
appearance qualities are produced by different spinning
methods using different materials and spinning parameters.
Yarn appearance Online image All these yarn samples are physically measured by Uster
classification processing Tensorapid for yarn strength, Zweigle hairiness tester for yarn
hairiness and Uster III tester for yarn evenness. And the
Figure 3. Main steps of the Digital Yarn Surface Grading digital yarn images, which are labeled for training the
System artificial neural network in the yarn surface grading system,
are acquired by a scanner.
In yarn image processing, the important processing
figures and the statistical results of yarn image listed in Table In order to manage the yarn information, a digital yarn
1 can be computed and shown in the system interface. database management system is established based on Access
Besides, the extracted features for yarn appearance database, as shown in Figure 4, which can be started by
classification based on the image processing can also be clicking Database button in the grading system. By
retrieving yarn count, yarn appearance grade or the specified
ID of yarn samples (see Figure 4 (a)), the physical properties
and digital images of yarn can be displayed in the system
interface (see Figure 4 (b)).

(a) A grade yarn

(a) Index and queries interface

(b) C grade yarn


Figure 6. Original scanned yarn images with different
appearance grades

3.2 Image Processing

(1) Wavelet transformation for yarn hairiness extraction


Wavelet transform provides a multi-resolution analysis
(b) Detailed information interface
and is exploited to extract texture characteristics of yarn
Figure 4. Yarn image sample database management system hairiness. Figure 7 shows identification results of yarn
hairiness from the two yarn images.
3 Methodology

3.1 Image Acquisition

In the interface of the intelligent evaluation system,


clicking the Scan Yarn Image button on the left top corner
can open a scanner for digital yarn image acquisition, with
the main steps shown in Figure 5. High image resolution is
adopted in digital yarn image acquisition to allow the
accurate and consistent evaluation results. Figure 6 shows
two scanned images of different grade yarns. These two (a) A grade yarn
samples will be used for showing the performance of the
methodology in the system when analyzing different grade
yarns.

Yarn sample Scanner

Yarn board winder Computer


(b) C grade yarn
Figure 5. Yarn image acquisition Figure 7. Hairiness image
(2) Fast Fourier transform for yarn diameter segmentation
4
x 10
2

In digital yarn image processing, fast Fourier transform 1.5


(FFT), Butterworth filters and threshold method are employed
to segment yarn diameter from the whole image. Firstly, the 1
scanned color yarn image is transferred to gray image, then
changed into frequency domain (FFT) for filtering the
0.5
hairiness and noise using Butterworth filter. After that an
automatic threshold method - Otsu method which chooses the
0
threshold to minimize the interclass variance of the black and 0 2 4 6 8 10 12 14

white pixels, is used to get the binary image, as shown in


(a) A grade yarn
Figure 8.
14000

12000

10000

8000

6000

4000

2000

0
0 5 10 15 20 25 30 35

(a) A grade yarn (b) C grade yarn

Figure 9. Histogram of yarn diameter

(b) C grade yarn

Figure 8. Binary image


(a) A grade yarn

3.3 Feature Extraction and Classification

(1) Yarn diameter statistics

Statistical measurement is employed for feature


extraction of yarn diameter. Figures 9 to 11 show the
histogram, width map and saliency map of yarn diameter.
Saliency map [8] is an visual attention method which can
topographically identify the visual saliency or distinguished
areas of a visual scene by considering the centre-surround
contrasts in terms of visual features, including intensity, color (b) C grade yarn
and orientations. Here, saliency map is used for yarn fault
(abnormal region) detection. Figure 10. Width map of yarn diameter
shows the important characteristic results with an interactive
and friendly user interface. This computerized technology is
potential for commercialization and can be applied in textile
testing laboratories and spinning mills for yarn surface quality
control and assurance.

5 Acknowledgments
The authors wish to acknowledge the funding support
from the Hong Kong Polytechnic University for the work
(a) A grade yarn reported here. Miss Li SY and Mr Feng J would also thank
the Hong Kong Polytechnic University for providing them
with postgraduate scholarships.

6 References

[1] “Standard Test Method for Grading Yarn for


Appearance”; ASTM D 2255/D2255M - 09, pp. 1-5, 2009.

[2] D. Semnani, M. Latifi, M.A. Tehran, B. Pourdeyhimi


and A.A. Merati. “Grading of Yarn Surface Appearance
(b) C grade yarn Using Image Analysis and an Artificial Intelligence
Technique”; Textile Research Journal, vol. 76, no. 3, pp. 187-
Figure 11. Saliency map based yarn fault detection 196, 2006.

[3] X. Zhou. “Study on Yarn Blackboard by Digital Image


(2) Artificial neural network for yarn appearance Processing Method”; Modern Applied Science, vol. 1, no. 4,
classification pp. 107-111, 2007.
In the interface of the developed evaluation system, the Yarn [4] J. Liu, Z. Li, Y. Lu and H. Jiang. “Visualisation and
Appearance Classification button is used to employ an Determination of the Geometrical Parameters of Slub Yarn”;
artificial neural network to classify and grade yarn surface FIBRES & TEXTILES in Eastern Europe, vol. 18, no. 1, pp.
quality. Based on the above yarn image processing, 18 31-35, 2010.
features including statistical results of yarn diameter and
texture characteristics of yarn hairiness, are extracted as input [5] R. Pan, W. Gao, J. Liu and H. Wang. “Recognition the
parameters for the artificial neural network. With over 400 Parameters of Slub-yarn Based on Image Analysis”; Journal
training samples in different yarn linear densities (20Ne-80Ne) of Engineered Fibers and Fabrics, vol. 6, no. 1, pp. 25-30,
and appearance grades, the result shows around 87% of over 2011.
170 testing samples can be correctly classified by using this
artificial neural network [7]. [6] H.C. Lien and S. Lee. “A Method of Feature Selection
for Textile Yarn Grading Using the Effective Distance
4 Conclusions between Clusters”; Textile Research Journal, vol. 72, no. 10,
pp. 870-878, 2002.
A novel integrated intelligent evaluation system was
developed to replace the conventional manual inspection for [7] Z. Liang, B.G. Xu, Z.R. Chi and D.G. Feng. “Intelligent
the objective and automatic evaluation of yarn surface Characterization and Evaluation of Yarn Surface Appearance
appearance with computer vision and artificial intelligence. Using Saliency Map Analysis, Wavelet Transform and Fuzzy
In the developed system, some recent advances in digital ARTMAP Neural Network”; Expert Systems with
processing and computer science, such as saliency map Applications, vol. 39, no. 4, pp. 4201-4212, 2012.
analysis, wavelet transform and artificial neural network, are
developed and incorporated to fully extract the yarn surface [8] L. Itti, C. Koch and E. Niebur. “A Model of Saliency-
characteristic features and then to classify and grade yarn Based Visual Attention for Rapid Scene Analysis”; IEEE
surface qualities based on the digital features. This system Trans. Pattern Analysis and Machine Intelligence, vol. 20, no.
integrates the whole progress of yarn surface analysis and 11, pp. 1254-1259, 1998.

Potrebbero piacerti anche