Anda di halaman 1dari 5

Ebraheem Shady1,

Khadijah Qashqary2,
Image Processing Based Method Evaluating
Mounir Hassan1&3,
Jiri Militky4
Fabric Structure Characteristics
1Textile Engineering Department, Abstract
Faculty of Engineering, A digital image processing approach was developed to evaluate fabric structure charac-
Mansoura University, teristics and to recognise the weave pattern utilising a Wiener filter. Images of six different
Egypt groups were obtained and used for analysis. The groups included three different fabric
2Fashion Design Department,
structures with two different constructions for each. The approach developed decomposed
Faculty of Art &Design, the fabric image into two images, each of which included either warp or weft yarns. Yarn
boundaries were outlined to evaluate the fabric surface characteristics and further used to
3Computer Science Department, identify the areas of interlaces to detect the fabric structure. The results showed success in
Faculty of Computing and Information Technology, evaluating the surface fabric characteristics and detecting the fabric structure for types
King Abdulaziz University, of fabrics having the same colors of warp and weft yarns. The approach was also able to
Saudi Arabia obtain a more accurate evaluation for yarn spacing and the rational fabric cover factor
E-mail: monir_hassan@yahoo.com compared to the analytical techniques used to estimate these characteristics.
4Faculty of Textile Engineering,
Key words: fabric structure characteristics, pattern recognition, image processing, Wiener
Technical University of Liberec, filter.
Czech Republic

characteristics. Basically this analysis nel (Red, Green and Blue) of a coloured
defines the weave pattern, the densities fabric image. Analytical techniques were
of warp and weft yarns and probably the used to assign the pilling grade for each
counts of warp and weft yarns by using a sample based on counting the pilled area
microscope. The process is traditionally obtained from the image analysed [11].
carried out by a human inspector who Another image processing technique was
uses a magnifier, ruler and some other used to measure the surface roughness of
simple tools to count the densities and a knitted fabric. Fabric images were cap-
visually define the weave pattern. Gener- tured via a high resolution scanner and
ally a manual operation like this is tedi- then analytical analysis was conducted
ous, time-consuming and inconvenient in order to obtain the fabric roughness
for the inspectors eyes. Thus the judg- index [12]. Fabric wrinkle was also
ment may not be consistent or accurate characterised utilizing image processing
enough because it may vary from one in- through analysing the heights of light
spector to another. profiles created by fabric wrinkle. Sta-
tistical parameters for the light profile
On the other hand, the dynamic devel- were estimated to characterise the fabric
opment in computer speed and storage
wrinkle [13]. Frequency transforms were
capacity opens the door for more ad-
also utilised to estimate morphological
vanced digital image analysis to replace
features for nonwoven web [14] and to
the operations that depend on human
extract some image features to classify
vision. Using digital image analysis
some knitted fabric defects [15]. Cor-
enabled detailed analysis of basic struc-
rection operations, like histogram lev-
tural parameters of textile products [1].
eling and autocorrelation erosion, were
It was used earlier to estimate the cross
also used in other applications to clas-
sectional area of wool fibres [2]. There-
after other applications arose to estimate sify some woven fabric defects [16]. A
the irregularities of fibre blending on the Wiener filter was used for weave pattern
yarn surface, to evaluate cotton maturity recognition by decomposing the fabric
and to analyse the damage of wool fibres image into two images, one containing
[3 - 7]. Other researchers utilised digital the warp yarns and the other weft yarns
image analysis to characterise the basic [17]. Then another image was initialised
structural parameters of a yarns surface to define grid lines representing the cen-
like the thickness, hairiness and twist [1, tral axis of yarns. The points where the
8, 9]. Digital analysis was also used to central axis intersected were defined as
characterise the texture of carpets during the cross-over points. This technique
usage [10]. The term image processing assumed that the yarns are straight and
appeared when techniques started to be identified the pattern by checking the in-
more complicated and used some image tensity at each cross-over point. Depend-
n Introduction processes to suit certain applications. An ing on only one point and checking its
Visual analysis of a fabric sample is an image processing technique was used to intensity to decide which yarn is crossing
essential process for reproducing this assess a fabric surface after pilling by over the other is not sufficient even if the
fabric and/or evaluating its structural analysing the brightness of each chan- yarns were straight.

86 Shady E, Qashqary K, Hassan M, Militky J. Image Processing Based Method Evaluating Fabric Structure Characteristics.
FIBRES & TEXTILES in Eastern Europe 2012; 20, 6A(95):86-90.
The aim of this work was to use image Table 1. Specifications of fabric samples.
processing analysis to estimate some of
Fabric Yarn density, thread per cm Yarn count, tex
the structural characteristics of woven ID
structure Warp Weft Warp Weft
fabric and to identify the weave pattern.
1 Plain 1/1 26 0.409 35 0.551 20 1.194 28 1.333
The success of such an image processing 2 Plain 1/1 30 0.495 26 0.491 34 1.637 34 1.543
approach will enable fast and accurate 3 Twill 3/1 37 0.562 20 0.339 22 1.301 16 0.841
analysis of some of the fabric structure 4 Twill 3/1 26 0.542 31 0.486 14 0.778 20 1.109
characteristics. The traditional procedure 5 Satin 5 27 0.530 18 0.407 20 1.261 14 0.711
was known to be tedious, time-consum- 6 Satin 5 57 0.746 29 0.542 46 1.977 42 2.044
ing and inconvenient for the inspectors
eyes. All these drawbacks will be elimi-
nated when the traditional procedure
is replaced by a computer system that
captures and processes fabric images. In
this work, an image processing approach
utilising a Wiener filter is presented to
identify the pattern of woven fabric and
estimate some of the fabric structure
characteristics. Six groups of fabric sam-
ples were used in this work including
three different fabric structures, namely Figure 1. Greyscale images for the three fabric structures; a) plain weave, b) twill weave,
plain weave, twill 3/1 and satin 5, with c) satin weave.
each structure containing two fabric con-
structions in order to have different struc- sample type, which were digitised us- the fabric. Each sub-image shows only
tural characteristics. Five images were ing a frame grabber and transferred onto one group of the two basic groups of
captured from each sample group to be a personal computer to be stored. The yarns known as warp and weft. Gener-
analysed. The weave pattern, warp and image size was 512 512 pixels with a ally the Wiener filter uses constant power
weft densities and yarn diameters were resolution of 6500 pixels per inch. All spectra to reduce the noise within a local
identified and compared to sample data images were processed using histogram window of pixels. The Wiener filter cal-
estimated using the traditional manual equalisation to reassign the brightness culates the value of each pixel using the
procedure. to improve the visual appearance. Col- following expression [17]:
oured images were converted into two-
dimensional greyscale images with 256
Materials and image
grey levels to improve the computer
acquisition
processing time and speed for the next where:
Three fabric structures were chosen for image processing steps. Samples of im-
this study and each fabric structure is rep- ages for the three structures are shown in
resented by two fabric constructions. The Figure1 after the greyscale conversion.
three fabric structures are plain, twill 3/1 and v2 is the variance of the noise.
and five harness satin weave. All fabrics
were manufactured from 100% cotton n Image processing approach The windows dimensions (MN) are
yarns. The six fabric samples were tested A Wiener filter was applied to the grey- chosen based on the application, and the
utilising the traditional manual procedure scale fabric images to regenerate two filtration method depends on statistical
to identify the fabric structure and densi- sub-images from the original image of calculations in the local neighborhood
ties in both the warp and weft directions.
The yarn counts of each sample were
tested and the results agreed with those
obtained from the fabric manufacturer.
Detailed specifications of each sample
are listed in Table 1. The data represent
the average measured values with their
standard error and the data between
brackets were provided by the manufac- Sub-image for weft Enhanced image Outlines of wefts

turer. All fabric samples were uni-color


except sample number four, which was
denim fabric with dark blue warp yarns
Original image
and white weft yarns.

A CCD camera equipped with a zoom Outlines of warps


Sub-image for warp Enhanced image
lens attached was used to capture the
fabric images under reflected light. Five
different images were captured for each Figure 2. Applying a Wiener filter on a plain weave image.

FIBRES & TEXTILES in Eastern Europe 2012, Vol. 20, No. 6A (95) 87
of each pixel. Assuming that I represents investigation and its sub-images resulting minimising the weighted sum of within
the 2D matrix of the fabrics greyscale from applying a Wiener filter. Histogram class variances for the foreground and
image and m, n denote the indices of the equalisation and adjustment processes background pixels. The minimisation of
images pixel, hence I(m,n) will denote are applied to the resulting images in or- within class variances is equivalent to the
the intensity of the pixels in the grey der to enhance the quality of the images, maximization of between class scatter.
level, which will vary from 0, black, to as shown in Figure 2 (see page 87). The methods results are considered sat-
255, white. isfactory when the numbers of pixels in
Some noises are recognised at the top each class are close to each other. Small
The shape of the texture in the warp or and bottom in the sub-images that con- holes (33 pixels) and short-thin lines
weft direction is always of the long line tain the warp yarn group and also on showing up in binary images are consid-
type. Therefore by applying the filter the sides in the sub-images that contain ered as noise and removed. Then the out-
in the horizontal direction, the vertical the weft yarns group. Removing these bound of each yarn in both directions is
texture is neutralised and vice versa. parts will ease the process of detecting outlined, as shown in Figure 2.
Choosing a window of short height and the outbound of yarns and will not af-
long width will produce a sub-image that fect the further processes. The resulting Densities and yarn count calculations
contains only the weft yarn group. In this sub-images are enhanced again utilising The outlines of yarns shown in the last
case the size of the window was chosen histogram equalisation and converted
step of Figure 2 are further used to calcu-
as 560 pixels. On the other hand, a win- into binary images. Clustering threshold-
late the mean value of the yarn diameter
dow of long height and short width will ing or Otsus method is used to obtain the
in each direction by relating the image
produce a sub-image that contains only threshold values of fabric images in order
resolution to the number of pixels rep-
the warp yarn group. In this case the size to convert them into binary images [18].
resenting each yarn width. The mean di-
of the window was chosen as 605 pixels. Otsus method is considered as one of the
ameter of warp and weft yarns calculated
Figure 2 shows a sample of the original most referenced methods. This method
can be used to calculate the English yarn
greyscale plain weave fabric image under establishes an optimum threshold by
count (Ne) using the following relation:
1

28
Also the number of yarns in each direc-
tion is identified and used to calculate the
density in each direction using the in-
a) formation of the image dimensions. The
same technique is used to calculate the
yarn spacing.

Fabric cover factor


In general, the cover factor indicates the
extent to which the area of a fabric is cov-
ered by one group of yarns, i.e. for any
fabric there are two cover factors: one for
the warp yarns and the other for the weft.
Pierce presented the following equation
b) to calculate the cover factor for each
group [19]:

=

Where n is the number of threads in one


inch and Ne is the English yarn count.

The fractional cover factor is also known


to represent both groups of yarns, defined
as the total area of the fabric covered by
the component yarns. A simplified ap-
c)
proach is used to calculate the fractional
cover factor, assuming that the yarns
have a circular cross-section. If the yarn
diameter is d and the adjacent yarn is dis-
Original image converted into a binary
placed by a distance s, the fractional cov-
Recognized structure
image er factor is expressed as d/s. In an ideal
model, s is equivalent to 1/n, and hence
Figure 3. Original image converted into a binary image and the structure identified; the fractional cover will be d n. If Cw
a) plain weave, b) twill weave and c) satin weave. is the fraction cover for the warp and Cf

88 FIBRES & TEXTILES in Eastern Europe 2012, Vol. 20, No. 6A (95)
60
160
Figure 4. Figure 5.
Warp and weft density, thread per inch

140 50

Warp and weft count, Ne


120
40
100

80 30

60
20
40
10
20

0 0
1 2 3 4 5 6 1 2 3 4 5 6
Fabric ID Fabric ID
Warp count (manually) Warp count (by digital image processing)
Warp count (manually) Warp count (by digital image processing)
Weft count (manually) Weft count (by digital image processing)
Weft count (manually) Weft count (by digital image processing)

Figure 6.
0.8
Fabric cover factor

0.6
Figure 4. Comparison between the densities meas-
ured and density results of approach presented.
0.4

Figure 5. Comparison between the counts meas-


ured and count results of approach presented.
0.2

Figure 6. Comparison of fabric cover factor re-


0
2 3 4 5 6
Fabric ID
sults.
Estimated from measured values Calculated from digital image processing approach

is that for the weft, the total fabric cover n Results and discussion the concept of obtaining the count from
factor will be: Cw + Cf - CwCf. the image approach. The image approach
The image processing approach was ap- calculates the width of the yarns pro-
Pattern recognition plied to various fabric images to calcu- jection, not the yarn diameter, and uses
late some yarn parameters and to identify this information to calculate the yarns
The outbound of yarns in each sub-image the weave pattern. The image process-
is identified as mentioned previously for count. Comparing the approach results
ing approach was applied for all images
each fabric image, as shown in Figure 2. to the results measured, one can notice
and the pattern recognition results were
Only the outlines of yarns are captured in that there is a significant difference in the
compared to the known weave patterns.
each sub-image to produce another two weft counts compared to the warp counts
The approach presented was able to iden-
images containing only the lines repre- for both twill and satin weave. Weft yarns
tify successfully the pattern of the fabric
have less tension compared to warp yarns
senting the yarns outlines, and by add- structure for all samples except for sam-
during the weaving process, and this
ing up these two images an image results ple number 4 (denim fabric). The main
gives the possibility of weft yarns be-
containing grid lines. At this point, the problem with that sample was the colour
difference between the warp and weft coming flattened, especially when they
windows representing yarn cross-over
yarns. The colour of warp yarns was dark have the space, which is provided in
areas are identified. Applying this infor-
blue (too dark) and that of the weft yarns fabrics with low yarn densities and/or in
mation on the original fabric image after
was white (too bright). All enhancement fabric structures which have a relatively
converting it into a binary image utilising
processes failed to decompose the yarns long float length, like twill and satin
Otsus method, the windows representing weave. This clarifies why there is almost
cross-over areas are defined in the binary accurately. Because of the colour differ-
ence, some yarns were merged together no difference between weft counts for
image. Then the intensities of all the pix- plain weave; however, differences start
and some were split. Thus the image
els within the window are summed. The appearing in twill and satin weaves.
processing technique was not able to
analysis shows that areas where weft
recognise the yarn boundaries and hence
yarn crosses over warp yarn are much The results listed in Table 3 (see page
neither the cross-over areas for that sam-
brighter compared to those where warp ple. Figures 4 and 5 show the approach 90) show the yarn spacing calculated by
crosses over weft. To this end, the fabric results for densities and yarn counts com- the digital image processing approach.
structures are identified as shown in Fig- pared to the values measured via the tra- Figure 6 shows the results of the im-
ure 3, where white marks mean that weft ditional procedure. Results showed good age processing approach for the fabric
yarn is crossing over warp yarn. This ap- agreement between the two procedures. cover factor compared to the values es-
proach evaluates the weave pattern based Some differences between the counts timated, calculated from the data meas-
on the intensity in each cross-over area, resulting from the approach and counts ured, i.e. fabric density and yarn counts.
which makes it more reliable and able to measured are identified for twill and satin It is noticed that there is not much dif-
detect a wide range of weave patterns. weave, the reason for which is based on ference between both results (excluding

FIBRES & TEXTILES in Eastern Europe 2012, Vol. 20, No. 6A (95) 89
Table 2. Mean yarn diameter and spacing calculated using the digital image processing 4. Thibodeaux D, Evans J. Cotton Fibre
approach. Maturity by Image Analysis. Textile Res.
J. 1986; 56: 130-139.
Mean yarn diameter, mm Mean calculated yarn spacing, mm
ID 5. Watanabe A, Kurosaki S, Konoda F.
Warp Weft Warp Weft
Analysis of Blend Irregularity in Yarns
1 0.208 0.170 0.373 0.356
Using Image Processing. Textile Res. J.
2 0.155 0.155 0.432 0.406
1992; 62: 729-735.
3 0.191 0.239 0.254 0.533
6. Zhao W, Johnson N, Willard A. Investigat-
4 0.254 0.191 0.406 0.432
ing Wool Fibre Damage by Image Analy-
5 0.206 0.241 0.457 0.559
6 0.132 0.147 0.178 0.432
sis. Textile Res. J. 1986; 56: 464-466.
7. urek W, Kruciska I, Adrian H. Distribu-
tion of Component Fibres on the Surface
results of sample no. 4). In our opinion, for each structure. The samples were ana- of Blend Yarns. Textile Res. J. 1982; 52:
the image processing results of the fab- lysed manually using a magnifier and the 473-478.
ric density, the projection of yarn diam- results were compared to those of the ap- 8. Cybulska M. Assessing Yarn Structure
eter, yarn spacing and the fabric cover proach developed. The approach results with Image Analysis Methods. Textile
factor tend to be more accurate because showed good agreement compared to Res. J. 1999; 69: 369-373.
of considering the yarn projection in the the results pre-identified for the samples 9. Masajtis J. Thread Image Processing
fabric. However, some variations appear having the same colour for both warp in the Estimation of Repetition of Yarn
in the yarn count results for the fabric and weft yarns. On the other hand, the Structure. Fibres & Textiles in Eastern
structures that have a long float due to Europe 1997; 10(4): 68-72.
approach developed failed to analyse the
the yarn flattening, which changes the 10. Wu Y, Pourdeyhimi B, Spivak M. Tex-
sample that had an extreme difference in
projected yarn diameter. Therefore it can ture Evaluation of Carpets Using Image
the colours of warp and weft yarns. The
be concluded that the image processing Analysis. Textile Res. J.1991; 61(7):
technique is able to analyse fabrics that approach was not able to identify the 407-419.
have warp and weft yarns with the same yarn boundaries of this sample and hence 11. Jasiska I. Assessment of a Fabric Sur-
color or uni-color fabrics. The image neither the fabric surface characteristics. face after the Pilling Process Based on
processing approach was able to assign The large variation in the colours of warp Image Analysis. FIBRES & TEXTILES in
the densities of warp and weft yarns, the and weft yarn in this sample confused Eastern Europe 2009; 17, 2 (73): 55-58.
yarn spacing, diameters of warp and weft the image processing approach and gave 12. Semnani D, Hasani H, Behtaj S, Ghor-
yarns and counts of warp and weft yarns. false results by merging two adjacent bani E. Surface Roughness Measure-
In addition, the approach developed suc- yarns or splitting one yarn into two. The ment of Weft Knitted Fabrics Using Im-
age Processing. FIBRES & TEXTILES in
cessfully identified the different weave approach developed also gives us a bet-
Eastern Europe 2011; 19; 3 (86): 55-59.
patterns. It can be predicted that the ap- ter understanding of how the weaving
13. Mirjalili SA, Ekhtiyari E. Wrinkle Assess-
proach developed will be able to identify process could alter some yarn dimen-
ment of Fabric Using Image Processing.
a wide range of patterns once it can iden- sions, thus giving more accurate results FIBRES & TEXTILES in Eastern Europe
tifythe yarn boundaries and, hence, the for yarn spacing and the rational fabric 2010; 18, 5 (82): 60-63.
cross-over areas. cover factor. 14. Huang X, Bresee R. Characterizing Non-
woven Web Structure Using Image Anal-
n Conclusions ysis Techniques. INDA 1993; 5: 13-211.
15. Shady E, Abouiiana M, Youssef, S,
This work focused on identifying the pat- Acknowledgement Gowayed Y, Pastore C. Detection and
tern of a woven structure in addition to This project was funded by the Deanship of classification of defects in knitted fabric
evaluating other surface characteristics Scientific Research (DSR), King Abdulaziz structures. Textile Res. J. 2006; 76(4):
utilising the digital image processing ap- University, Jeddah, Saudi Arabia, under grant 295-300.
proach. The approach developed uses a no. ( 20 - 002 / 1430 ). The authors, therefore, 16. Zhang YF, Bresee RR. Fabric Defect De-
Wiener filter to decompose the fabric im- acknowledge with thanks the DSR technical tection and Classification Using Image
age into two sub-images, each of which and financial support. Analysis. Textile Res. J. 1995; 65: 1-9.
containing either a warp yarn group or 17. Liqing L, Tingting Jia, Xia Chen. Auto-
weft yarn group. The sub-images are fur- matic recognition of fabric structures
ther analysed to outline the yarn bounda- References based on digital image decomposition.
ries and hence characterise fabric sur- Indian J. of Fibre & Textile Res. 2008;
face characteristics. Yarn diameter, yarn 1. Cybulska M. Analysis of Warp Destruc- 33, 388-391.
spacing, yarn count, densities in both tion in the Process of Weaving Using 18. Sezgin M, Sankur B. Survey over image
the System for Assessment of the Yarn thresholding techniques and quantitative
directions and the rational fabric cover
Structure. Fibres & Textiles in Eastern performance evaluation. Journal of Elec-
factor are characterised. Yarn bounda-
Europe 1997; 5(4): 6872. tronic Imaging 2003; 13 (1): 146165.
ries are further used to identify the ar- 2. Pohle E. Interlaboratory Test for Wool
eas of interlace or the cross-over areas, 19. Pierce FT. The Geometry of Cloth Struc-
Fineness Using the PiMc. J. Testing
which are processed to identify the fabric ture. The J. of the Textile Inst. 1937;
Eval. 1975; 3: 24-26.
structure. Six fabric samples were used 28(3): 45-96.
3. Berlin J, Worley S, Ramey H. Measur-
in this study to evaluate the approach ing the Cross-Sectional Area of Cotton
developed. The samples included three Fibres with an Image Analyzer. Textile
fabric structures with two constructions Res. J. 1981; 51: 109-113. Received 26.09.2011 Reviewed 15.04.2012

90 FIBRES & TEXTILES in Eastern Europe 2012, Vol. 20, No. 6A (95)

Anda mungkin juga menyukai