Fabric Defect Detection by Fourier Analysis
Fabric Defect Detection by Fourier Analysis
net/publication/3171009
CITATIONS READS
510 2,105
2 authors:
All content following this page was uploaded by Chi-Ho Chan on 13 December 2012.
URL http://hdl.handle.net/10722/46161
Abstract - Many fabric defects are very small and Zhang et. al. [3] have introduced two approaches to detect
undistinguishable, which are very difficult to detect by only defects: gray level statistical and morphological methods.
monitoring the intensity change. Faultless fabric is a repetitive Lanes [4] has defined a number of convolution masks to
and regular global texture and Fourier transform can be applied detect the defect. These methods, which depend on intensity
to monitor the spatial frequency spectrum of a fabric. When a
defect occurs in fabric, its regular structure is changed so that
change on the fabric image, can only capture the significant
the corresponding intensity at some specific positions of the defects such as knot, web and slub. However, faultless fabric
frequency spectrum would change. However, the three- has a periodic regular global structure. The occurrence of a
dimensional frequency spectrum is very difficult to analyze. In defect in the fabric means that the regular structure has been
this paper, a simulated fabric model is used to understand the destroyed. Therefore, the fabric defect can be detected by
relationship between the fabric structure in the image space and monitoring fabric structure. C.Ciamberllini and his
in the frequency space. Based on the three-dimensional colleagues have used the optical Fourier transform to monitor
frequency spectrum, two significant spectrum diagrams are the fabric structure. Their methods can be classified as
defined and used for analyzing the fabric defect. These two follows: fixed masks or structured detectors, adaptable filters
diagrams are called the central spatial frequency spectrums.
The defects are broadly classified into four classes: (1) double
[5], electronic elaboration of the image [6], and binary
yarn; (2) missing yarn; (3) webs or broken fabric; and (4) yarn histogram [7]. Fixed masks, structured detectors and
densities variation. After evaluating these four classes of defects adaptive filters are the fixed optical filters placed over the
using some simulated models and real samples, seven photodetector active area. They are composed of periodic
characteristic parameters for central spatial frequency array transparent and opaque zones, and their locations
spectrum are extracted for defect classification. depend on the peak of the fabric diffraction image. When a
defect occurs, some localized peaks in the diffraction image
will be passed to the sensor. However, this type of operation
I. INTRODUCTION requires a careful alignment and different fabric type requires
different filter. The method of electronic elaboration is based
In the textile industry, before any shipment to customers, on the subtraction of the reference image of faultless fabric
inspection is needed for maintaining the fabric quality. from that of the fabric under inspection. The binary
Srinivasan et. al.[l] have stated that the price of second- histogram method is based on a summation of the gray level
quality fabric is only 45 to 65% of that of first-quality fabric. pixels, which have gray level greater than a threshold. The
However, the current inspection process still depends mainly threshold is defined according to the fabric type and system
on human sight. This nature of work is very dull and sensitivity. Anyhow, optical processing is very expensive
repetitive. Moreover, there could be many human errors in and requires careful calibration. Also, this method could not
this process. According to some studies, human visual recognize fabric with higher fabric density.
inspection can only catch around 60% to 75% of the
significant defects [2]. Therefore, in order to lower the cost Another class of method is dependent on digital image
of the inspection process and to increase the competitive processing. Wood [8] has used Fourier and associate
advantage of the products, it is necessary to automate the transform to characterize carpet patterns. Ravandi and
inspection process. Toriumi [9] have used Fourier transform analysis to measure
fabric appearance. Fabric surface characteristics, fill and
In this study, the central spatial frequency spectrum warp yarns for plain-weave cotton fabric were also discussed.
approach is introduced and examined. This method would Escofet et. al. [lo] have used the angular correlation of the
reduce the computational time for defect detection and Fourier spectra to evaluate fabric web resistance to abrasion.
provide more parameters for defect classification. Before Sari-Saraf and his colleagues [ 113 have used Fourier
introducing this method, the characteristics of fabric structure transform to detect fabric defects. Their approach examines
in frequency spectrum will be examined and some defect and performs a one-dimensional signature in the two-
examples will be described. After that, the procedures of the dimensional spectrum. The signature is obtained by
method and experimental results will be discussed. integrating the points within each ring in the two-dimensional
spectrum. The rings are concentric with different radii, and
they are used to monitor the fill and wrap densities. The idea
A. Fourier Transform
N Z y=o
N-1
x=o
f(x, y ) * e~'z"''+y"'~'N in an image space is equal to the product of their respective
Fourier transforms as shown in ( 5 ) below.
The computational time for Fourier transform is generally 1 FK ,fy ) I=Is, . sy .sinc(23, .s, ). s i n c ( 2 .~sy~) +
1744
frequency. In a simulated model of the double yarn, D(x,y), the crosses. Both Figure 6(b and c) show that the central peak
shown in Figure 4(c), the defect can be regarded as a value (Pl) of the defect fabric is lower than that of the
subtraction from a faultless fabric (Figure 4(a)) to a series of faultless fabric. This is because one or more vertical (Wrap)
rectangle function, d(x,y) (Figure 4(b)). Because of the threads are added in the faultless fabric, which leads to be
distributivity property of the Fourier transform, lower light intensity in the defect image. The double wrap
defect is a change of spatial periodicity in the horizontal axis,
FJD(x3 Y)) = Fcf(x,Y) - d(X1-Y))= Flf(x,YI/' - F/d(XI Y)} (6) and therefore the IF(0,fJI diagram is changed mostly. In this
which means that the defect in the frequency space can be diagram (Figure 6 (c)), the first peak value of the defect at&,
formed by subtracting the faultless fabric frequency spectrum =35 are lower than the faultless fabric first peak values and
to the Fourier transform of an irregular structure function ripples occur. So P5 should be lower and P7 should be
d(X,Y). higher. The first peak location (P6= J$ =35) is a
fundamental yam frequency, which means that the peak
D. Central Spatial Frequency Spectrum location is proportional to the yarn density. In this example,
P6 is almost unchanged. A summary is shown in the second
Due to the nature of the fabric structure, many defects row of table 1. With a similar interpretation, the double fill
would occur along the x and y-axes, which means that those defect is a change of spatial periodicity in the vertical axis.
characteristics would appear on the wrap G) and fill V;) Hence, the parameters P2 and P4 are changed because the
direction in the frequency spectrum. In addition, a three- defect only affects the lF&,O)\ diagram.
dimensional graph of the frequency spectrum is very difficult
to analyze. The method of central spatial frequency spectrum The difference between missing yam and double yam is
is therefore proposed in this paper. This method extracts two their fabric threads count. Average light intensity P1 can
diagrams along the fx and fy direction (IF&, 0) I and IF(0,fy) I) show this characteristic. For missing yam, higher P1 is
from the three-dimensional graph, which are shown in Figure expected because there is less thread in this defect. Broken
5. fabric and yam densities variation are a change of periodicity
in both x and y axis, and both IF&, 0) I and IF(0,fy) I diagrams
Seven significant features can be extracted in these two are mostly changed. P3 and P6 values are not changed in the
diagrams for describing defect characteristics. The equations broken fabric. This is because this defect is a instant change
of these parameters are shown below. of the fabric density, and it only affects P1, P2, P4, P5 and
P7 values. The P1 is high because the fabric is broken, and
leads to increase of light intensity. Details of the expected
results are summarized below.
p3 =&I
TABLE 1
DIFFERENCE
IN PARAMETERS PREDATED BETWEEN THE FABRIC
AND ITS
DEFECT
p7 '1OOx
[f;:o I j
C F ( O , f , , ) F(0,O)
1745
stores it into computer memory. This image data is then (Wrap) (HI (NC) (NC) (NC) (L)
processed by the defect detection procedures as shown in Yarn
Broken 33.4 -14.9 0 32.95 -24.2
Figure 7. Backlighting illumination is used to achieve the Fabric (H) (L) (Nc) (H) (L)
high contrast fabric images. (Web)
Low 32.2 -17 -8 -0.8 -253
B. Histogram Equalization fabric (H) (L) (L) (L) (L)
density
Histogram equalization is performed to obtain a uniform TABLE 3
density image histogram [121. This process extends the DIFFERENCE
M PARAMETERS OBTAINED BETWEEN A REALFABRICAND ITS
dynamic range of gray levels and increases the image DEFECT.
contrast. The aim is to standardize the brightness and
contrast of the images. Figure 8 gives an example of using
equalization to improve the overall brightness and contrast of
an image.
Double -2.1 0 0 0 -14.4 0 66.7 [2] K Schicktanz, “Automatic fault detection possibilities on nonwoven
(Wrap) (L) (NC) (NC) (NC) (L) (NC) (HI fabrics,” Mellrand Textilberrchie,pp 294-295, (1993)
yarn
Missing 2.9 0 0 0 -5.3 0 71.8
1746
X. F. Zhang and R. R. Bresee, “Fabric Defect Detection and [8] E. J. Wood, “Applying Fourier and associated transforms to Pattern
classifiction using Image Analysis,” Textile Research Journal, vol. Characterization in Textiles,” Textile Research Journal, pp.212-220,
65(1), pp.1-9, (1995). (1990).
J. S. Lane, S.C. Moure, “Textile fabric Inspection System,” US Patent [9] S.A.H. Ravandi and K. Toriumi, “Fourier Transform Analysis of plain
No. 5,774,177 (1998). Weave Fabric Appearance,” Textile Research Journal, vol. 65(1 I), pp.
C. Ciamberlini, F. Francini, P. Sansoni and B. Tiribilli, “Defect 676-683 (1995).
detection in textured materials by optical filtering with structured [IO] J. Escofet, M.S. Millan, H. Abril and E. Torrecilla, “Inspection of
detectors and self-adaptable masks”, Opt. Eng., vol. 35(3), pp. 838-844, fabric resistance to abrasion by fouries analysis,” Proc. SPIE , vol.
(1996). 3490, pp. 207-210 (1998).
C. Castellini, F. Francini, G. Longobardi and B. Tiribilli, “On-line [l I ] H. Sari-Saraf and J. S. Goddard, “On-line optical measurement and
Textile Quality Control using Optical Fourier Transforms,” Optics and monitoring of yarn density in woven fabrics,” Automated Optical
Lasers in Engrneering,vol. 24, pp. 19-32 (1996). Inspectionfor Indushy, SPIE, vol. 2899, pp. 444-452 (1996).
C. Ciamberlini, F. Francini, G. Longobardi, P. Poggi, P. Sansoni and B. [I21 R. C. Gonzalez and R.E. Woods, “Image transforms”, Chap.3 and
Tiribilli, “Weaving defect detection by Fourier Imaging,” Vision “Image enchancement”, Chap.4 in Digital Image Processing, Addison-
systems in applications SHE, vol. 2786, pp. 9-18 (1996). Wesley, pp.81-128, 166-189 (1993).
(b) (c)
Figure l(a) Fabric structure gap. (b) Fabric gap location. (c) Simulated faultless fabric
(4 (b) (c) (4
Figure 3 Fabric defect samples: (a) Double yarn; (b) Missing yarn; (c) Broken fabric; (d) Variation of yam.
1747
F(h.01 spccwm
(c)
Figure 5 (a) Portion of faultless fabric frequency magnitude spectrum (b) Fill direction frequency spectrum, (c) Wrap direction frequency spectrum
I
Fabric Image Acquisition - - - Histogram
Equalization
Fast Founer
Transform
Central Spatial
Frequency
Spectrum Analysis
7000
7000
6000 6000
5000 5000
4000 4000
3000 3000
2000 zoo0
1000 1000
0 0
0 02 04 06 08 1 0 02 04 06 08 1
8 (c) (4
Figure 8 Example of an image with gray level histogram.
(a) original image and (b) gray level histogram (c) image after equalization and (d) gray level histogram after equalization.
1748
F(fx,O) Spectrum of Double Wrap
110
100
90
80
>
.-
U
U]
2
+
70
.-S
2 60
.-m
-
7s
w 50
-
.-N
E
Tt
40
0
Z
30
20
10
0
-250 -200 -150 -100 -50 0 50 100 150 200 2 0
Fill direction
F(0,fy) Spectrum of Double Wrap
110
100
90
> 80
.-U
VI
6 70
+
U 4
.-S
2 60
-25)
.-
U
w 5c I I
-
.-N
E
0
4c
z
3c
2c
~
It -t
c I
0
Wrap direction
Figure 6 (a) Double yarn, (b) its fill direction spectrum, (c) its wrap direction spectrum
1749
F[fx,O) direction
120 I I I I I I I I I
100
20 +
0
-1
U+&+,
. ...
,..
-80 -60
,.
-40
/
-20 0
:@
40 60 80 20
Fill direction
\-I
F(ik.0) direction
120
100
80
;
._
8
._
E
60
U
._
N
-fz"
40
20
1750