1. Introduction
In the traditional textile industry, the recognition of the woven fabric is mostly done manually, which is very tedious and time-consuming. With the rapid development of technology, the application of image processing and machine vision technology is becoming more dominant. Recently, image processing and machine vision technology have been introduced into the area of woven fabric [1].
The analysis of fabric texture [2–7] has been studied since the mid-1980s, these methods are mainly based on the properties of the Fourier spectrum. But there are limits to its adaptability for solid fabrics, since these methods recognize patterns by light reflection from the warp and weft, there are limits to their adaptability for solid fabrics. Recently, some relevant researches have been developed for automatic analysis of fabric weave structures. Haralicck et al. [8] proposed a method of gray-level cooccurrence matrix, which is used to calculate the texture characteristics. R.Pan [9] analyzed weft and warp floats to determine the fabric weave patterns. Y. Ben Salem [10] developed a supervised recognition method using support vector machine to classify fabric weave patterns and used the SVM to classify woven fabric structure. Hu [11] used Bayesian statistics to classify fabric weave patterns, a Bayesian model was established for the classification of fabric images, and the morphological parameters of fabric images were extracted as the eigenvector. Other methods [12, 13] determine the fabric weave patterns by analyzing warp and weft floats. These methods can successfully classify several woven fabrics. However, the skew correction of fabric images in current woven fabric classification methods is ignored; real-time and integrity of these methods are low.
Hence, this paper introduces an approach for recognition and classification of woven fabrics with real-time and integrity. Firstly, TILT is used to correct the deviation of the fabric images. Histogram equalization is employed to minimize the uneven distribution of gray levels of pixels caused by local illumination. Then 2D spatial-domain gray projection is used to segment the weft and warp yarns. Secondly, we get the texture features of the woven fabric and HOG features are extracted. Finally, the yarn floats are classified by FCM clustering to recognize the weft and warp cross. The preliminary recognition results are obtained and the correct results are obtained through periodic correction.
The rest of this paper is organized as follows: the entire recognition process is described and analyzed in Section 2. Then, the recognition results of our method and comparison with other methods are obtained in Section 3. The conclusions are given in Section 4. The overall framework of the method is shown in Figure 1.
[figure omitted; refer to PDF]2. Experimental Methods
2.1. Transform Invariant Low-Rank Textures
It is inevitable that the fabric images are skewed due to the placement of samples when using scanner or other image devices for image acquisition. The skewness of the image usually causes a large error in the recognition result, so it is necessary to rectify the woven fabric in the process of the recognition and classification of the woven fabric. To solve the deflection phenomenon in the process of fabric image acquisition, we adopt TILT [14] to process woven fabric images.
Generally speaking, the grayscale image on a planar can be described by mathematical expression as a two-dimensional function
For the deflection of woven fabric image, we can view it as the first case and the second case. According to the principle of invariance and solving algorithm of low-rank texture transformation, the correction procedure of fabric image can be summarized as follows.
Figures 2(a) and 2(c) are the original woven fabric images; Figures 2(b) and 2(d) are the corrected woven fabric images using TILT.
[figures omitted; refer to PDF]
Using Hough transform [15], the image is corrected by obtaining the optimal angle, which is the rotation transformation of the image. It is shown as follows:
However, most of the images captured by the device are often rotary. Furthermore, there is more or less deviation in horizontal or vertical direction, which is the migration transformation. In other words, the images are not only rotated but also shifted. In this paper, the images are corrected at both horizontal and vertical directions by using TILT.
The corrected woven fabric images are obtained in Figures 3(e), 3(f), and 3(g) by using Hough transform, canny transform, and angle analysis, and the rotate angles are -3.0266 and 2.9851, -3.4682 and 3.3665, -2 and 1, respectively. The rotate angles by using TILT algorithm in Figures 3(d) and 3(h) are -3 and 3. Compared with these methods, the algorithm of TILT works effectively and robustly for woven fabric images with symmetric patterns and structures. Moreover, the sparse noise of original image can be obtained. The results obtained in the recognition of woven fabrics are given in “experimental results and analysis” section.
[figures omitted; refer to PDF]
2.2. HOG Feature Extraction
In order to overcome the interference of a variety of pedestrian posture and clothing color. HOG [16] was proposed in 2005. In this paper, based on the HOG, we get the HOG features for recognition of woven fabrics.
The algorithm of HOG is shown in the following.
( 1 ) Gamma Rectification. Normalize the input images obtained in the segmented region by using gamma rectification. The formula is as follows:
( 2 ) Gradient Image Computation. The gradient value and the gradient orientation of the image pixel in each of the small blocks are calculated:
( 3 ) Gradient Histogram Construction. We consider each segment region as the cells, project the gradient direction of each pixel in a cell onto the histogram, and generate the gradient histogram finally. The HOG features are obtained.
2.3. FCM Clustering
Clustering analysis is based on partitioning a collection of data points into a number of subgroups, where the objects inside a subgroup show a certain degree of closeness or similarity. FCM [17] is viewed as an instance of unsupervised learning. The weft and warp cross-areas can be recognized by FCM clustering; it is based on the minimization of the following objective function, with respect to
The main steps of FCM clustering are as follows:
According to the above step, the weft and warp cross-areas are divided into two groups. Then the preliminary recognition results can be obtained.
3. Experimental and Results
In this paper, we implemented the proposed method in MATLAB R2012a and Windows 7. All the experimental samples, including plain, twill, and satin, are scanned by Epson Scan V330 under the same external condition. 12 different fabric samples of different sizes were scanned and four representative fabrics which were cut into the same size were selected for the experiment. The resolution is 1200dpi. Figure 4 shows some representative samples of experimental woven fabric images.
[figures omitted; refer to PDF]
The captured woven fabric images are corrected by using the TILT algorithm and the results are shown in Figure 5. Figures 5(a), 5(c), 5(e), 5(g) and 5(b), 5(d), 5(f), 5(h) are the corrected images
[figures omitted; refer to PDF]
After the image correction, it is necessary to convert into gray images for improving processing speed. However, Gaussian function for histogram equalization is used to distribute images gray level in lower and higher graylevel so that images contrast can be enhanced. The results are shown in Figure 6.
[figures omitted; refer to PDF]
After image preprocessing, the weft and warp floats of woven fabric images are segmented, which is very important for weft and warp floats recognition. In this paper, 2D spatial-domain gray projection approach is used to segment the weft and warp floats. Due to the fact that the weft and warp yarns are perpendicular to each other, the weft and warp floats can be segmented accurately based on the gray projection curves. The segmentation results are obtained by using 2D spatial-domain gray projection.
The weft floats mean that the weft yarn is floating on the weft yarn and the warp floats reverse. In order to obtain the type of the floats, features should be extracted from the images. HOG feature grad is obtained and the results are shown as Figure 7, respectively.
[figures omitted; refer to PDF]
Finally, FCM clustering is used to recognize the type of weft and warp floats preliminarily. The results are shown in Figure 8.
[figures omitted; refer to PDF]
In this paper, in the recognition of woven fabric pattern, the error judgment of the preliminary recognition results cannot be avoided with the woven fabric image itself and scanning. The recognition rate is used to measure the performance of the algorithm, which is defined as follows:
Table 1
The correct rate and the elapsed time of different methods.
Uncorrected Image | TILT | Hough Transform | Canny Transform | Angle Analysis | |
---|---|---|---|---|---|
Correct Rate | × | 94.57% | 93.67% | 93.67% | × |
| |||||
elapsed time (s) | × | 13.4666 | 2.9851 | 3.8206 | × |
From the preliminary recognition results, it can be seen that the accuracy of (c) is 100%, (a) is 95.63%, (b) is 95.83%, and (d) is only 94.11%. The error may be caused by a local defect of the fabric surface, a bad segmentation, or the low quality of fabric image. From the results, more than 90% weft and warp floats can be correctly recognized.
From Figure 7, it can be seen that it is necessary to correct the error recognition results. The woven fabric consists of the basic weave pattern. In order to identify the basic weave pattern, the preliminary weave pattern can transform into a matrix in which zero and one replace the black and white squares as shown in Figure 9 [18].
[figures omitted; refer to PDF]
From Figure 9, the minimum cycle unit matrices are obtained by using the relevant statistics. The results are shown in Figure 10.
[figures omitted; refer to PDF]
According to the basic weave patterns in Figure 10, in order to obtain the final weave pattern, we can generate their masks, as shown in Figure 11.
[figures omitted; refer to PDF]
In the paper, an effective method based on TILT is proposed to correct the deviation of the fabric images. It is necessary to correct the scanned images for the woven fabric recognition. Taking the example of Figures 2(a), 2(b), 3(a), 3(b), and 3(c), the recognized results are shown in Figure 12.
[figures omitted; refer to PDF]
After the statistical data of the recognition results were analyzed, the recognition rate and the elapsed time are shown in Table 1.
The accuracy of woven fabric recognition is objectively appraised by using the correct rate, as shown in (17). With regard to the recognition accuracy of the five methods, it is observed that the recognition result by using the method of TILT performs best in the correct rate (94.57%). The recognition rate not only illustrates the recognition performance of the algorithm of the fabric image, but also shows recognition capability of the woven fabric. It can be seen that the identification of uncorrected image has a large margin of error. It makes no sense to compute the recognition rate due to the large deviations of the number of organizations available. Meanwhile, the results obtained by using the method of angle analysis have some error due to the angle deviations. The proposed algorithm is characterized as follows:
4. Conclusions
In this paper, an automatic and efficient classification method is proposed. In order to correct the captured woven fabric images, we propose a novel algorithm, based on low-rank texture transformation. In the recognition system, the skew angles of the original woven fabric images are corrected based on the algorithm of TILT. For the corrected images and image preprocessing, weft and warp floats are detected by using 2D spatial-domain gray projection in both horizontal and vertical directions; HOG is used to extract the features of the woven fabrics. Preliminary recognition results are obtained by using FCM clustering. To obtain the final recognized results, the black and white squares of the weave pattern are replaced with a matrix of zeroes and ones. The basic weave patterns are obtained by using the relevant statistics. According to the basic weave patterns, the final recognized results are obtained.
To the authors’ knowledge, no automatic method is applicable to identify all kinds of weave fabric up to now. Our method in this paper is proved to be capable of recognizing the plain, twill, and stain woven fabrics and it gains the best classification results (100%) with a faster speed. Also, there are some limits in this recognition system. For example, it cannot recognize the double layer weaves.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This research is supported by Applied Basic Research Programs of China National Textile and Apparel Council (J201509).
[1] A. Baykasoglu, L. Özbakir, S. Kulluk, "Classifying defect factors in fabric production via DIFACONN-miner: A case study," Expert Systems with Applications, vol. 38 no. 9, pp. 11321-11328, DOI: 10.1016/j.eswa.2011.02.182, 2011.
[2] M. Kinoshita, Y. Hashimoto, R. Akiyama, S. Uchiyama, "Determination of weave type in woven fabric by digital image processing," Journal of the Textile Machinery Society of Japan, vol. 35 no. 2,DOI: 10.4188/jte1955.35.2_1, 1989.
[3] H. C. Lin, "Rapid Fabric Weave Analysis Method by Computer Image Processing," Proceedings of the 2nd Asian Textile Conference, vol. l, pp. 317-320, .
[4] Y. Na, "Pore Shape Characteristics of Aramid and Simulated Nonwoven Fabrics through Image Analysis," Journal of the Korean Fiber Society, vol. 33 no. 11, pp. 939-946, 1996.
[5] T. Nishimatsu, "Automatic Recognition of the Interlacing Pattern of Woven Fabrics," Journal of the Textile Machinery Society of Japan, vol. 44 no. 6, pp. 51-57, DOI: 10.4188/transjtmsj.44.6_T126, 1991.
[6] K. Ohta, K. Sakaue, H. Tamura, "Pattern recognition of fabric surfaces," Journal of the Textile Machinery Society of Japan, vol. 32 no. 1,DOI: 10.4188/jte1955.32.7, 1986.
[7] T. Jin Kang, C. Hoon Kim, K. Wha oh, "Automatic Recognition of Fabric Weave Patterns by Digital Image Analysis," Textile Research Journal, vol. 69 no. 2, pp. 77-83, DOI: 10.1177/004051759906900201, 1999.
[8] R. M. Haralick, K. Shanmugam, I. Dinstein, "Textural features for image classification," IEEE Transactions on Systems, Man, and Cybernetics, vol. 3 no. 6, pp. 610-621, DOI: 10.1109/TSMC.1973.4309314, 1973.
[9] R. Pan, W. Gao, J. Liu, H. Wang, "Automatic recognition of woven fabric pattern based on image processing and BP neural network," Journal of the Textile Institute, vol. 102 no. 1, pp. 19-30, DOI: 10.1080/00405000903430255, 2011.
[10] Y. B. Salem, S. Nasri, "Automatic recognition of woven fabrics based on texture and using SVM," Signal, Image and Video Processing, vol. 4 no. 4, pp. 429-434, DOI: 10.1007/s11760-009-0132-5, 2010.
[11] J. L. Hu, "Textile classification based on bayesian approach," Journal of Textile Research, vol. 25 no. 1, pp. 48-49, 2004.
[12] X. Wang, N. D. Georganas, E. M. Petriu, "Fabric texture analysis using computer vision techniques," IEEE Transactions on Instrumentation and Measurement, vol. 60 no. 1, pp. 44-56, DOI: 10.1109/TIM.2010.2069850, 2011.
[13] X.-Y. Zhang, W.-D. Gao, B.-J. Xu, "Application of neural network in recognition of fabric weave parameters," Journal of Dong Hua University, vol. 21 no. 3, pp. 94-97, 2004.
[14] Z. Zhang, A. Ganesh, X. Liang, Y. Ma, "TILT: transform invariant low-rank textures," International Journal of Computer Vision, vol. 99 no. 1,DOI: 10.1007/s11263-012-0515-x, 2012.
[15] P. Hough, "Machine analysis of bubble chamber pictures," Proceedings of the International Conference on High Energy Accelerators and Instrumentation, pp. 554-556, .
[16] N. Dalal, B. Triggs, "Histograms of oriented gradients for human detection," Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR '05), vol. 1, pp. 886-893, DOI: 10.1109/CVPR.2005.177, .
[17] J. C. Bezdek, Pattern Recognition with Fuzzy Objective Function Algorithms, 1981.
[18] F. Ajallouian, H. Tavanai, M. Palhang, S. A. Hosseini, S. Sadri, K. Matin, "A novel method for the identification of weave repeat through image processing," Journal of the Textile Institute, vol. 100 no. 3, pp. 195-206, DOI: 10.1080/00405000701660244, 2009.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
Copyright © 2018 Zhitao Xiao et al. This is an open access article distributed under the Creative Commons Attribution License (the “License”), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License. https://creativecommons.org/licenses/by/4.0/
Abstract
In this paper, an effective method based on Transform Invariant Low-rank Textures (TILT) and HOG is proposed to identify woven fabric pattern. Firstly, the method based on TILT is used to solve the deflection phenomenon in the process of woven fabric image acquisition. Secondly, the yarn floats in the fabric image is localized by the yarns segmentation method based on the 2D spatial-domain gray projection, which is used to segment the weft and warp yarns. Thirdly, HOG is applied to extract distinctive invariant features in the process of feature extraction. According to the HOG feature, the texture features of the woven fabric are acquired. Finally, the yarn floats are classified by Fuzzy C-Means (FCM) clustering to recognize the weft and warp cross. Experimental results demonstrate that the proposed method can achieve the recognition of the three woven fabrics, plain, twill, and satin, and obtain accurate classification results.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
Details


1 School of Electronics and Information Engineering, Tianjin Polytechnic University, Tianjin 300380, China
2 School of Mechanical Engineering, Tianjin Polytechnic University, Tianjin 300380, China