Abstract
A new texture-feature description operator, called the multidirectional binary patterns (MDBP) operator, is proposed in this paper. The operator can extract the detailed distribution of textures in local regions by comparing the differences in the gray levels between neighboring pixels. Moreover, the texture expression ability is enhanced by focusing on the texture features in the linear neighborhood of the image in multiple directions. The MDBP operator was modified by introducing a “uniform” pattern to reduce the grayscale values in the image. Combining the “uniform” MDBP operator and the gray-level co-occurrence matrix, an unpatterned fabric-defect detection scheme is proposed, including texture-feature extraction and detection stages. In the first stage, the multidirectional texture-feature matrix of a nondefective fabric image is extracted, and then the detection threshold is determined based on the similarity between the feature matrices. In the second stage, the defect is detected with the detection threshold. The proposed method is adapted to various grayscale textile images with different characteristics and is robust to a wide variety of image-processing operations. In addition, it is invariant to grayscale changes, performs well when representing textures and detecting defects and has lower computational complexity than other methods.
Keywords
The ability to detect defects in fabric is important for quality monitoring in the process of textile dyeing. It has been reported that the value of the fabric will be reduced by 45–60% if it has defects. 1 In fact, traditional manual detection methods are not only time consuming but also make it difficult to ensure the inspection quality due to experience and visual fatigue. According to statistics, the error rate of manual detection is generally 35–55%, 2 and the missing rate is higher than 60% when the width of the fabric is more than 2 meters and the detection speed is greater than 30 meters per minute. 3 Therefore, fabric-defect detection urgently requires more intelligent and computerized methods.
In general, fabric is woven with warp and weft threads, which create various patterns and texture features. 4 In computer graphics, the texture of textile images is composed of many pixels with different gray levels. The key to fabric-defect detection is to extract and distinguish texture features, because the defects destroy the original structure. Currently, mainstream texture-feature extraction methods for detecting defects can be divided into five types: statistical-, model-, spectral-, structure- and learning-based methods. 5
The statistical-based methods mainly include the gray-level co-occurrence matrix (GLCM),6–9 the autocorrelation function 10 and the Elo-rating algorithm (ER).11,12 Haralick et al. 6 proposed the GLCM method for texture classification based on the generalized co-occurrence matrix (GCM). 7 Later, the GLCM was widely used in the field of defect detection and achieved a demonstrably good effect, but high dimensionality also resulted in high computational complexity.8,9 The ER algorithm was first applied in fabric-defect detection by Tsang et al. 11 Kang and Zhang 12 presented a defect detection algorithm for various types of fabrics that applied the ER method to the basics of integral images. However, it had a low success rate with yarn-dyed fabric with a complex background texture.
Typical model methods used for defect detection include the Markov random field (MRF)13–15 and the one-dimensional autoregressive. 16 Ozdemir and Ercil 14 used the MRF model to achieve good results in detecting defects in plain, unpatterned fabric. Zhang et al. 15 proposed a feature-field model by combining the MRF and wavelet method to segment jacquard warp-knitted fabric images. Although this method is not used for fabric-defect detection, the improvement in the MRF method is a good reference for research in this field.
The spectral-based methods mainly include Fourier analysis, 17 Gabor filters18,19 and wavelet transforms.20,21 Chan and Pang 17 used a Fourier transform to obtain the center spatial spectrum to detect defects. However, it has a poor detection performance in the local area. Arivazhagan et al. 20 proposed a method combining a Gabor filter and a wavelet transform to achieve better detection results, but it was sensitive to noise and was not suitable for fabrics with inhomogeneous textures. Zhu et al. 22 improved the discriminant measure of the wavelet transform, which performed well in seam detection for fabrics with irregular patterns.
Local binary patterns (LBP), a texture description operator proposed by Ojala et al., 23 is a common structure-based method. Tajerpour et al. 2 were the first to apply the LBP operator to fabric-defect detection. Subsequently, many researchers have proposed modified LBP operators with stronger representation abilities, which are also widely used in fabric texture classification.24–29 The LBP operator can be used for more than just grayscale images; Li et al. 30 converted the fabric image from the RGB color space to the CIELAB color space and combined the energy-based feature images with the LBP operator to detect defects; however, there was no obvious improvement in the structure of the LBP operator.
Recently, defect detection methods based on machine learning have received extensive attention.31–35 Zhou and Wang 32 proposed a new detection method, applied learning adaptive dictionaries. Wei et al. 34 presented a faster regional-based convolutional network structure, which is effective in fabric-defect detection. Mei et al. 35 proposed an unsupervised learning-based automated detection method. The advantage of this method is that it can be trained with only a small number of samples, but the detection accuracy and stability for some fabric textures with complicated patterns still need to be improved.
Most defect detection methods for unpatterned fabric have limitations based on the fabric material and cannot adapt to changes in the detection environment. Therefore, the key to defect detection is to find an effective texture-feature extraction method and to analyze the differences in the texture features of the defective area and the nondefective area.
In this paper, we propose the multidirectional binary patterns (MDBP) operator: a texture representation operator that can extract the detailed distribution of textures in local regions by comparing the gray-level differences between neighboring pixels. Moreover, the ability of texture expression is enhanced by focusing on the texture features in the linear neighborhoods of the image in multiple directions. This paper further modified the MDBP operator with a “uniform” pattern to reduce the gray levels of the image. Finally, the texture characteristics of the fabric image are described globally in combination with the GLCM and its statistical features. This paper further proposed a defect detection method for unpatterned fabric, which is divided into two stages: a texture-feature extraction stage and a fabric-defect detection stage.
The experiments show that the proposed detection schema can adapt to various grayscale textile images with different characteristics and is robust to a wide variety of image-processing operations. In addition, it is invariant to grayscale changes and has a good performance in representing textures and detecting defects and has a lower computational complexity than other methods.
The structure of this paper is organized as follows. In the next section, the original LBP operator is introduced first, and then the texture representation MDBP operator and the modified version are described. In the third section, the GLCM method and the combined MDBP and GLCM texture-feature extraction algorithm are introduced. In the fourth section, the defect detection schema for unpatterned fabric and its effectiveness are described. In the fifth section, the partial fabric images in the dataset of the experiment are shown. In the sixth section, the parameters are analyzed, and the detection results of the four methods are compared. A conclusion follows in the last section.
Original local binary patterns
LBP is a common texture representation operator that characterizes the gray-level difference between the central pixel and neighboring pixels in the neighborhood. The new gray value of the center pixel can be obtained by encoding pixels as either 0 or 1 and transforming the binary distribution to an integer. The LBP operator can be described by the following equation
In Equation (1), P is the number of neighboring pixels with respect to the internal pixels, R is the radius, gc is the gray value of the center pixel and gi describes the gray value of other pixels. In Equation (2), s(g) is the label of the encoded pixels. The gray value of the center pixel will be updated to
The neighborhood usually adopts a square and circular neighborhood, which can increase with increasing radius. Figure 1 illustrates the operational process of the LBP in a square neighborhood, where P = 3 and R = 8.
The process of the local binary patterns operator in a square neighborhood.
The original LBP operator is simple to calculate, but it has certain disadvantages. Firstly, the gray differences between the neighboring pixels are ignored. Secondly, as the radius increases, only the outermost pixels of the neighborhood are considered, which causes the loss of texture information. Finally, the LBP operator insufficiently considers the direction. To solve the above problems, the MDBP operator is proposed in this paper to describe the texture of the textile image.
Multidirectional binary patterns
The MDBP operator adopts a linear neighborhood and considers the grayscale differences between neighboring pixels. Not only can the central pixel be included in the gray-level representation, but also the internal texture features can be extracted when the neighborhood is large. Therefore, the MDBP operator has a strong ability to describe the detailed distribution of textures in local regions.
In the linear neighborhood, a pixel is labeled as either 1 or 0 by comparing it with the next pixel. Naturally, the last pixel in the current neighborhood is compared with the first pixel in the next linear neighborhood. The binary encoding process of the MDBP operator can be described by the following equation
In Equation (3), pi and
The MDBP operator in one direction is defined by the following equation
The gray value of the first pixel in the linear neighborhood is updated to The calculation process of the multidirectional binary patterns operator.
The MDBP operator defines linear neighborhoods in four directions: 0, 45, 90 and 135 degrees. On the one hand, it conforms to the textile structure; on the other hand, it has an enhanced texture representation ability by extracting more gray information in local areas. The fabric image is processed into four result images after applying the MDBP operator, as shown in Figure 3. The MDBP operator enhances the texture expression in the direction perpendicular to the neighborhood direction, so it can achieve a good effect in distinguishing between defects and nondefects.
The calculation process of applying the multidirectional binary patterns operator. Where the source image is the image with warp-lacking defects, III_D_a_0018 (Figure 11).
Uniform multidirectional binary patterns
The resulting images of the MDBP operator need to be analyzed to obtain the statistical grayscale information of the texture. However, as the number of pixels in the neighborhood increases, the grayscale of the image increases significantly, which results in high computational complexity. Thus, grayscale dimensionality reduction is a necessary step to improve the detection efficiency of the algorithm.
To solve this problem, the MDBP operator was modified. A parameter U for measuring uniform patterns is introduced to limit the number of hops between 0 and 1 in the binary sequence. Then, the number of occurrences of label 1 is taken as the new gray value of the first pixel when the number of hops in binary sequences does not exceed U. Otherwise, the pixel is labeled as N + 1, which is regarded as a “nonuniform” pattern. In this paper, the value of U is set to 2. The MDBP operator with a uniform pattern is described by the following equations
In Equations (5) and (6),
The proposed MDBP operator has the following advantages. Firstly, the MDBP operator considers the difference in the grayscale values between neighboring pixels, which allows the detailed texture features in a narrow area to be extracted and the ability of texture representation is enhanced. Secondly, the texture features of the fabric image are described in multiple directions by applying the linear neighborhood so that the texture expression is more directional. Finally, the texture information inside the neighborhood can be extracted even if the number of pixels is large, which makes texture-feature extraction more comprehensive.
Gray-level co-occurrence matrix
The GLCM is defined as the probability distribution of pixel pairs appearing in the entire grayscale image, which can reflect the global texture features of an image in different directions and for different distances.
The dimension of the matrix is the grayscale of the image. The relationship between a pair of pixels for constructing the GLCM is shown in Figure 4, where θ is the direction of the gray-level statistics, that is, the angle between the pixel pair with a gray value of The relationship between a pair of pixels for constructing the gray-level co-occurrence matrix, where 
The combination of the uniform multidirectional binary patterns and the gray-level co-occurrence matrix
To obtain the texture characteristics with a strong representation ability, the algorithm first applies the uniform MDBP operator to extract the local texture features of the textile image in four directions and then calculates the GLCM in the corresponding direction to characterize the texture features globally.
The GLCM cannot describe texture features directly. In this paper, five statistical features of the GLCM are calculated to represent the texture features, which are described by the following equations.
Energy. ENE reflect the degree of uniformity of texture, If the texture is simple, ENE will be large
Entropy. ENT reflect the thickness of texture. If the texture is simple, ENT will be small
Contrast. CON describes the sharpness of the texture; the value is large when the texture of the image is clear
Homogeneity. HOM reflects the homogeneity of the texture; the value of HOM is large when the local texture is uniform
Correlation. COR reflects the linear dependence of the grayscale values. If there is a horizontal texture in the image, the COR of the horizontal matrix is greater than that of the other matrices:
where
The process of feature extraction combining the uniform multidirectional binary patterns (MDBP) and the gray-level co-occurrence matrix (GLCM)
The defect detection method
In the algorithm of this paper, fabric-defect detection is mainly carried out according to feature matching of textures between the textile image without defects and the test image. The process of texture-feature extraction was introduced in the previous sections. The detection method is divided into two stages: a texture-feature extraction stage and a fabric-defect detection stage, as shown in Figure 5.

Image preprocessing
Due to the interference of the production environment and the image capture equipment, there is often some noise in the collected fabric images, so it is necessary to preprocess them before extracting the texture features. The preprocessing of texture images mainly includes Gaussian filtering, grayscale conversion, histogram equalization and high contrast retention; the results are shown in Figure 6.

The texture-feature extraction stage
The appearance of defects destroys the normal textile texture, so the characteristics of the defects must be quite different from those of the standard features. Therefore, the goal of the first stage is to obtain the detection threshold from the texture features of the nondefective image. The steps of texture-feature extraction are as follows.
Step 1: preprocess the nondefective fabric image.
Step 2: extract the multidirectional texture-feature matrix
Step 3: divide the image into nonoverlapping subimages of size
Step 4: calculate the similarity Si between Mi and MF
Step 5: take the maximum value of Si as the detection threshold T
The larger Si is, the larger the distance between the two texture-feature matrices and the more dissimilar the two images. T is related only to the type of fabric and the detection environment. The algorithm can automatically determine the detection threshold in different environments. Therefore, the proposed method is adapted to various gray textile images with different characteristics and is robust to a wide variety of image-processing operations.
The fabric-defect detection stage
In the second stage, the defect is detected with the detection threshold T. The multidirectional texture-feature matrix of the entire nondefective fabric image is also needed in this stage.
The steps of the fabric-defect detection stage is as follows.
Step 1: preprocess the textile image to be detected.
Step 2: select the detection window that has the same size as the subimages in the first stage, and adopt the overlap sliding window method from left to right and from top to bottom according to the fixed step size until the detection is completed.
Step 3: extract the multidirectional texture-feature matrix Mt of the detection window Wt by using the texture-feature extraction algorithm combined the uniform MDBP and the GLCM.
Step 4: calculate the similarity St between Mt and MF, according to Equation (16).
Step 5: compare the similarity St with the detection threshold T obtained by the first stage, and detect the current detection window Wt according to the comparison result, as shown in Equation (18)
Step 6: if the detection of the test image is not complete, return to Step 2 and move the detection window.
A diagram of the defect detection method for unpatterned fabric based on MDBP and the GLCM is shown in Figure 7.
Diagram of the defect detection method for unpatterned fabric based on multidirectional binary patterns (MDBP) and the gray-level co-occurrence matrix (GLCM).
The validity of the detection method
To indicate the validity of the detection method, this paper selected a nondefective fabric image and obtained the detection threshold (T = 0.60). Then, an image of the same fabric but with warp-lacking defects was divided into nonoverlapping subimages. These subimages were assigned unique labels from top to bottom and from left to right. Figure 8 shows the assignment of labels to partial subimage windows.

The similarity values of all the subimages and the defect-free fabric image were calculated, as shown in Figure 9.
The similarity values of all subimages.
In Figure 9, the horizontal axis is the labels of subimages, the vertical axis represents the similarity values between each of the subimages and the defect-free image and the horizontal line represents the detection threshold of T = 0.60. The subimages whose similarity values are larger than T are marked with a rhombus. For example, the similarity values of the defective subimages labeled 88, 89, 104 and 105 are 0.71, 0.67, 1.02 and 0.66, respectively (Figure 8). We observe that all of the marked subimages are defective. Therefore, the threshold is effective for detecting defects.
Dataset
The unpatterned fabric images used in the experiment were collected with a Dalsa industrial linear scanning camera (PX-HC-16K04T) and Dalsa frame grabbers (Xtium-CLHS PX8) in a fabric production workshop. The textures of the fabric are classified as tabby, twill, high-density twill, high-elastic textile, linen, flannelette and woolen textiles, which are labeled in order from I to VII, as shown in Figure 10. The size of the fabric image collected by the camera is 1024 × 1024, the image patch detection method is adopted in the actual detection system, the size of images used in the detection method is 256 × 256 and the size of the subimages and detection window is 16 × 16.
Examples of the unpatterned, nondefective fabric images included in the experiment, where I–VII represent the material of the fabric, which is tabby, twill, high-density twill, high-elastic textile, linen, flannelette, and woolen textiles, respectively. A–I are the color labels.
For each type of fabric, the defect-free images are selected as the standard images used in the first stage, and the other images are used as test images. The defects can be divided into five types: warp-lacking, weft-lacking, shredded, oil and scuffed defects; they are labeled with the letters a–e in order (Figure 11).
Examples of the unpatterned, defective fabric images included in the experiment. The letters a–e represent the types of defects (warp-lacking, weft-lacking, shredded, oil and scuffed defects, respectively). The figure label is the image identifier. For example, image III_D_a_0018 has warp-lacking defects, and the corresponding defect-free image is III_D (Figure 10).
Experimental analysis and results
Three main parameters affect the detection result in the defect detection method: the number of pixels N in the linear neighborhood of the MDBP operator, the distance d in the GLCM and the sliding step length s in the detection stage. To choose appropriate parameter values, the influence of each parameter value will be discussed. Subsequently, four different detection methods are compared.
The detection accuracy rate C is taken as the parameters for evaluation
In Equation (19), TD represents the number of defective windows detected correctly and TU is the correct number of nondefective windows. FU is the number of defective windows that are detected as nondefective and FD is the number of nondefective windows that are also detected incorrectly. A higher value for C indicates a better detection effect.
The number of pixels N in the linear neighborhood
The number of pixels N in the linear neighborhood of the MDBP operator should adapt to the thickness of the fabric. If N is small, the MDBP operator reveals only the texture features in a small area, which can easily cause misclassifications. If N is too large, the number of MDBP operator-based patterns will increase, resulting in a high computational complexity. Therefore, this section analyzes the detection results of two images in the cases of N = 3, N = 5 and N = 8, as shown in Figure 12 (d = 4 and b = 3).

Detection accuracy rate of multidirectional binary patterns (MDBP) operators with different neighborhoods
In Table 2, (a) represents an image with warp-lacking defects, (b) represents an image with weft-lacking defects, (c) represents an image with shredded defects, (d) represents an image with oil defects and (e) represents an image with scuffed defects.
The results show that the detection effects of the MDBP operator with N = 5 are better than those of the other two neighborhoods, with an average detection accuracy rate of 97%.
The distance d in the GLCM operator
In the process of constructing the GLCM, the distance d directly affects the grayscale statistics of the texture. If d is small, the runtime will be long. The accuracy rate of the texture extraction procedure is reduced when d is large, which will result in a weak detection ability.
The defective subimages of the textile image with warp-lacking defects (III_D_a_0018, Figure 11) are obtained according to the analysis process of the validity of the detection results (Figure 8); then, the mean values of the GLCM features in the four directions are calculated. The feature value changes under distances between d = 1 and d = 12 are obtained, as shown in Figure 13 (N = 5 and b = 3).
Each feature value change under different values of d.
As shown in Figure 13, for each feature, the value changes significantly when d changes from 1 to 3. When d is between 4 and 7, the change in the feature values is relatively stable, which indicates that d has less influence on the texture features of the defective area in this interval than in other intervals, so the algorithm performance is better. When d is greater than 7, the value of the features begins to change gradually. Therefore, d is set to 4 in this algorithm.
Step b for sliding detection
It is important to select a reasonable sliding step size b in the defect detection stage. If b is small, the computational complexity of the method will be high. If b is large, missed detections will occur in a partial area.
For the two defective images, the detection effects for values of b ranging from 1 to 16 are analyzed. Figure 14 shows the result images only when b is even (N = 5 and d = 4).

According to the detection results, when b is small, the defective area can be accurately detected, but a small part of the normal area is also detected as defect, which reduces the detection accuracy rate. As b increases, the detection effect significantly weakens, although the detection speed increases. For the sake of comprehensive consideration, b = 4.
The detection accuracy rates C for the five types of defects under different b values are shown in Figure 15. C increases gradually when b is small, but decreases significantly when b is greater than 4. Therefore, it is reasonable to set b to 4.
Detection accuracy rate for the five types of defects under different step sizes.
Comparison of different detection methods
The detection results of four methods are compared in this section: the LBP-based detection method, the neighbor-based binary pattern (NBP)-based detection method, the GLCM-based detection method and the MDBP/GLCM detection method proposed in the paper.
In general, the four detection methods have similar processes, except the steps of extracting the texture features and calculating the similarity. In the LBP-based detection method, the original LBP operator with a circular neighborhood is applied to describe the texture features of the fabric image, and the similarity between the gray-level histograms is calculated to detect defects. In the NBP-based detection method, the texture description operator is the NBP, in which the binary sequence is obtained by considering the gray correlation information between neighboring pixels in a square neighborhood.
27
The encoding mode of the NBP operator is similar to that of the MDBP operator, but somewhat different, especially the selection of the neighborhood. In the GLCM-based detection method, the texture-feature vector is obtained by adopting the GLCM method, and the Euclidean distance between the vectors is calculated as the similarity value of the textile images. Figures 16 and 17 show the detection results of these four methods.
Comparison of the four detection methods. The defective images include an image with warp-lacking defects (III_D_a_0018), an image with weft-lacking defects (I_B_b_0061) and an image with shredded defects (VI_H_c_0009) (Figure 11). LBP: local binary patterns; NBP: neighbor-based binary pattern; GCLM: gray-level co-occurrence matrix; MDBP: multidirectional binary patterns. Comparison of the four detection methods. The defective images include an image with oil defects (IV_F_d_0005), an image with scuffed defects (V_E_e_0078) and an image with weft-lacking defects (II_B_a_0025) (Figure 11). LBP: local binary patterns; NBP: neighbor-based binary pattern; GCLM: gray-level co-occurrence matrix; MDBP: multidirectional binary patterns.

Figures 16 and 17 illustrate that the detection effect of the proposed method is better than those of the other three detection methods. There is a missed detection in the LBP-based method because that the LBP operator insufficiently considers the direction, which makes it difficult to describe the detailed features of the texture. The NBP operator is sensitive to some textures in nondefective areas, so the misjudgment rate is high. For the GLCM-based detection algorithm it is difficult to extract features of fine textures, so the detection accuracy rate is lower. The MDBP/GLCM detection method describes both the local and global information of the texture in four directions, so it achieved significant detection results.
Some of the fabric defects collected by the camera are not obvious and are directional, such as the image with weft-lacking defects in Figure 17. In the LBP-based method, only a few defective pixels fall in the neighborhood, so the defective pixels have a smaller weight when calculating the LBP value. The GLCM-based method statistics measure the global distribution of the gray level and the values of the defective pixel pairs in the matrix are smaller than those normal pixels, so the extracted texture features have no obvious ability to distinguish between defects and nondefects. Therefore, these two methods cannot detect weak weft-lacking defects (Figure 17). However, the proposed MDBP operator uses the linear neighborhood to encode the image in multiple directions, which shows a good detection ability by greatly enhancing the texture expression of the defects. For the weft-lacking defects (Figure 17), the linear neighborhood within 90 degrees of the MDBP operator has an obvious texture enhancement effect and better detection ability than the circular neighborhood of the LBP operator, as illustrated in Figure 18.
The resulting images from the multidirectional binary patterns (MDBP)-based method at 90 degrees and from the local binary patterns (LBP)-based method. The image with weft-lacking defects is II_B_a_0025 (Figure 17).
Average detection accuracy rate of each method for one type of fabric
LBP: local binary patterns; NBP: neighbor-based binary pattern; GCLM: gray-level co-occurrence matrix; MDBP: multidirectional binary patterns. TD: the number of defective images that are detected correctly; FU: the number of defective images that are detected as nondefective; TU: the number of nondefective images that are detected correctly; FD: the number of nondefective images that are detected as defects.
Figure 19 shows the average detection accuracy C of the four detection methods for all types of fabrics in the dataset. Obviously, the detection method combining the MDBP operator and the GLCM can successfully detect more than 97% of the defective images in the dataset.
It is worth mentioning that for some fabric images, there are certain difficulties for defect detection. This is related to fabric texture and the causes and size of defects. Figure 20 shows some of the failure cases of applying the proposed method for defect detection in Table 3.
The average detection accuracy C of the four detection methods for all types of fabrics in the dataset. LBP: local binary patterns; NBP: neighbor-based binary pattern; GCLM: gray-level co-occurrence matrix; MDBP: multidirectional binary patterns. The failure cases of applying the proposed method for defect detection. There are scuffed defects in these two textile images.

The reason why the detection method is ineffective for these two images is that the texture of the fabric is more complicated and uneven and, what is more, the texture of the defect is similar to the normal texture of the fabric image, resulting in the similarity between the multidirectional texture-feature matrix of the defective area and the matrix of the nondefective area being less than the detection threshold. These problems will be studied in the follow-up research work.
Conclusion
To overcome the disadvantages of the original LBP operator, the MDBP, a texture description operator, was proposed in this paper. This operator has enhanced texture expression abilities by focusing on the gray-level distribution between the linear neighboring pixels in an image in multiple directions. The modified MDBP operator with a uniform pattern is further proposed to reduce the grayscale of the textile image; then, the features of the GLCM statistical method are combined to describe the global texture of the textile image.
This paper proposed a defect detection schema for unpatterned fabric based on the above texture-feature extraction process. In the texture-feature extraction stage, the multidirectional texture-feature matrix of the nondefective fabric image is extracted first, and then the detection threshold is determined based on the similarity between the feature matrices. In the detection stage, the defect is detected with the detection threshold calculated in the first stage.
This paper also analyzed the influence of three important parameters on the defect detection results. In addition, the detection results of the proposed method are compared with those of the LBP-based method, the NBP-based detection method and the GLCM-based method, which shows that the proposed algorithm has a better detection ability than the other two methods.
The proposed method is adapted to various grayscale textile images with different characteristics and is robust to a wide variety of image-processing operations. In addition, it is invariant to grayscale changes, performs well in representing textures and detecting defects and has lower computational complexity than the other methods. So, this research has good applicability and adaptability to the detection of defects in different types of fabrics under different production environments, especially for the detection of small defects, which will greatly improve the quality and detection efficiency of the fabric.
Footnotes
Declaration of conflicting interests
The authors declare no potential conflicts of interest with respect to the research, authorship and/or publication of this article.
Funding
The authors disclose receipt of the following support for the research, authorship, and/or publication of this article: This work was supported by the National Key R&D Program of China (grant no. 2017YFB0309800), the Graduate Student Innovation Fund of Donghua University (grant no. GSIF-DH-M-2019011) and the Intermittent Dyeing and Finishing Green Smart Factory Project initiated by the China Ministry of Industry and Information Technology’s Intelligent Manufacturing Integrated Standardization and New Mode Application project.
