”1”
Leader:
The first attempts of using computer vision for industrial applications started in the early
70’s [1]. At that time, the cost of computing power was a limiting factor in the
development of efficient techniques for image analysis. But today the advent of low cost
digital computers and increased computing power significantly encouraged further
development in the field, especially in the area of fabric detection to reduce the
dependence of human inspectors in this subjective, tedious, and time consuming process.
Recent advances in imaging technology and image processing have also resulted in
inexpensive, high quality image acquisition, and pattern recognition. This situation made
automated image-based inspection an attractive alternative to human inspection [2].
One of the early considerations of the use of computers in the inspection of fabrics was
carried out in SIRA institute by Purll in 1970 [3] opening the way to further utilization of
image processing in textile quality control and analysis. This included evaluation of trash
content in the cotton fiber [4] and evaluation of blend irregularity in blended yarns [5]. In
detecting and classifying defects, image analysis has been used extensively, especially for
the woven fabric defects [6-17].
Many researchers in the field of image analysis used neural network as a classifier [10,
15-19]. In these approaches, the data of the images is reduced, in one form or another, to
accelerate the processing time. Techniques used to extract image features include
statistical procedures [13, 15, 17], time-frequency domain transforms such as Discrete
Cosine Transform [13, 15], Fourier Transform [8, 11, 12, 15-17] and Wavelet Transform
[11].
The goal of this work is to build an image classifier routine that is able to detect and
classify knitted fabric defects. Two approaches of features extraction were used - one is
based on a statistical procedure and the other is on Fourier Transform.
Image Acquisition
Feature Extraction
The feature extraction aspect of image analysis seeks to identify inherent characteristics,
or features, of objects found within an image. These characteristics are used to describe
the object, or attributes of the object, prior to the subsequent task of classification.
Feature extraction operates on two-dimensional image arrays but produces a list of
descriptions, or feature vectors [20].
In this work, two approaches have been used to extract image features. The first approach
is based on a statistical procedure and the second is based on transferring the image
matrix to the frequency domain using a Fourier Transform.
Statistical Approach
In this approach the all images were converted to black and white images and represented
by a matrix of binary values (0 or 1). Values in rows and columns were added to produce
a column or row vector, as shown in Figure 2. The standard deviation, range, maximum -
median and the mean values were calculated for each column and row vector. Since the
mean values of both vectors are the same and equal to the mean value of the whole
matrix, seven different features were produced in this analysis.
N −1 N −1 (1)
1
F ( u, v ) =
N
∑ ∑ f ( x , y ) e − j 2π ( ux +vy )/ N
x =0 y =0
for u, v = 0, 1,2, . . . , N-1 , and
N −1 N −1 (2)
1
f ( x, y) =
N
∑ ∑ F (u, v) e j 2π (ux +vy )/ N
u =0 v =0
for x, y = 0, 1, 2, . . . , N-1.
Figures 3 and 4 show the spectrum of the images in the frequency domain. It can be seen
that spatial frequency changes with the spatial periodicity of fabric defects. Due to the
symmetry of the spectrum, only one quarter of the transform was chosen to represent the
image. The most obvious variations occurred at the positions Fet1, Fet2, Fet3, Fet4, Fet5
and Fet6 of the spectrum. So, these six peaks were taken as features to the images.
Fet1
Fet2
Fet6
Fet3
Fet4
Fet5
Fet1
Fet6
Fet4 Fet2
Fet5
Fet3
Bias term
xi1
Wj1
Input Oi
∑θ i
Fi Output
xin Wjn
Using neural networks as a classifier requires two main work steps. The first step, the
training phase, the neural network makes the proper adjustment for its weights to produce
the desired response. When the actual output response is the same as the desired one, the
Results
Two neural networks were trained and tested for each features extraction approach. Table
1 shows the results of the features extracted using the statistical method. It is clear that
the NNt succeeds in classifying 100% correct four defects (broken needle, hole, thick and
thin yarn). The results were not as successful in detecting and classifying the free defect
samples and the fly defect. The barrie’ defect has the worst result even in the training
phase. The barrie’ defect has a linear nature and periodicity that resembles those of thin
or thick yarn defects including possible tension variation either in the fed yarn or in the
take-up, color variations, or heat-set variation in textured yarns.
Table 2 shows the results for the features extracted by the second approach. The NNt
succeeded in detecting all of the free defect samples in both the training and testing
phases and classifying all four defects (broken needle, fly, hole and thin yarn) correctly.
Again we have the worst results with the barrie’ defect. In this approach the features of
the barrie’ defect affected the classifying of the thick yarn defect.
Conclusions
In this work two approaches have been used to extract image features for six different
knitted fabric defects beside a free defect fabric. Neural networks were used as a
classifier using the LVQ algorithm in training the networks. Results show success in
classifying most of the defects. The classification results for the barrie’ defect were not
conceived using either approaches for the nature of the defect shape which cause it to
interfere with other defects like thick/thin yarn defects. The results of using the Fourier
Transform features extraction approach was slightly more successful than the statistical
approach in detecting the free defect sample and classifying most of the other defects.
References
1. Alam Eldin A. T, “Computer Vision for Automated Inspection of Fabric Products”, Ph. D.
Thesis, University of Wuppertal, Germany, 1988
2. Roland T. Chin and Charles A. Harlow, “Automated Visual Inspection : A Survey”, IEEE
Transactions on Pattern Analysis and Machine Intelligence, Vol. 4, No. 6, Nov. 1982
3. A. A. Hashim, M. Lefley, and D. Spencer, “Automated Visual Inspection and Classification
of textile materials and garments”, Computers in the world of textiles. Annual world
Conference. Manchester, UK : Textile Institute, 1984, p. 167-175
4. Ingo Hormes and Burkhard Wulfhorst, “Identification of trash particles using digital image
processing”, ITB, Feb., 1995
5. Akira Watanabe, Fujio Konda, and Shi-Nya Kurosaki, “Analysis of blend irregularity in
yarns using image processing”, Part I and II Textile Res. J. 65(1), 1995.
6. Warren J. Jasper and Harsh Potlapalli, “Image analysis of mispicks in woven fabric”, Textile
Res. J. 65(11), 683-692 (1995)
7. A. D. Clark, S. K. Parui, and A. A. Hashim, “Detection of defects on fabrics”, IEE
Colloquium on “Image Processing for Automated Inspection” Digest No. 48. London, UK,
April 1986.
8. S. Ribolzi, J. Merckle, J. Gresser, and P. E. Exbrayat, “Real-Time fault detection on textiles
using Opto-electronic processing” Textile Res. J. 63(2), 61-71 (1993)
9. Yxiang Frank Zhang and Randall R. Bresee, “Fabric defect detection and classification using
image analysis” Textile Res. J. 65(1), 1-9 (1995)
10. I-Shou Tsai, Chung-Hua Lin, and Jeng-Jong Lin, “Applying an Artificial Neural Network to
pattern recognition in fabric defects”, Textile Res. J. 65(3), 123-130 (1995)
11. Warren J. Jasper and Harsh Potlapalli, “Image analysis of mispicks in woven fabric” Textile
Res. J. 65(11), 683-692 (1995)
12. Bugao Xu, “Identifying fabric structures with Fast Fourier Transform techniques”, Textile
Res. J. 66(8), 496-506 (1996)
13. Alam Eldin A. T. and Nour Eldin H. A., “Automated visual inspection of web-type products
using unitary transforms” the 36th ISMM International Conference, Mini and
Microcomputers and their applications, MIMI 88, June 27-30, Barcelona, SPAIN, 1988.
14. Alam Eldin A. T. and Nour Eldin H. A., “Automated visual inspection of uniformly textured
flat surfaces using correlation analysis” Proc. of the IASTED International Symposium on
applied control, Filtering, and Signal processing, June 15-17, Geneva, Switzerland, 1987.