Journal of Textile Research ›› 2022, Vol. 43 ›› Issue (11): 59-67.doi: 10.13475/j.fzxb.20210310709

• Textile Engineering • Previous Articles     Next Articles

Dual-algorithm for fabric defect detection based on singular value decomposition

ZHENG Zhaolun1,2, LU Yujun1()   

  1. 1. School of Mechanical Engineering, Zhejiang Sci-Tech University, Hangzhou, Zhejiang 310018, China
    2. Longgang Institute of Zhejiang Sci-Tech University, Wenzhou, Zhejiang 325802, China
  • Received:2021-03-31 Revised:2022-07-04 Online:2022-11-15 Published:2022-12-26
  • Contact: LU Yujun E-mail:luet_lyj@zstu.edu.cn

Abstract:

Aiming at the problem that hole and line defects are difficult to be detected simultaneously, a double-algorithm fabric defect detection method based on singular value decomposition was proposed. The image was decomposed by singular value first, and then the background texture was eliminated and the defect area was preserved by Boolean difference set operation between the original image and the eigenvalue image. Following that the mean filtering, histogram average and variance threshold filtering were used to eliminate the interference of texture and noise points and the defect position was determined by morphological processing. The linear defects and hole defects were eventually obtained by using area threshold and variance threshold. Experimental results show that the proposed method not only can effectively detect hole defects, but also has a good performance in detecting linear defects, and the accuracy is significantly higher than the traditional algorithm, which proves the effectiveness and versatility of the proposed method.

Key words: fabric defect detection, singular value decomposition, variance threshold filtering, Boolean difference set operation, area threshold filtering

CLC Number: 

  • TP391.4

Fig.1

Picture of fabric with warp defect.(a) Linear defect; (b) Hole shape defect"

Fig.2

Sample images. (a) Linear defect; (b) Hole shape defect"

Fig.3

Algorithm flow chart"

Fig.4

Boolean difference set operation between original graph and eigenvalue graph. (a) Defects in original image; (b) Defect eigenvalue diagram; (c) Defect difference chart"

Fig.5

Mean filtering and histogram averaging. (a) Defect mean filtering; (b) Histogram averaging"

Fig.6

Variance threshold filter kernel"

Fig.7

Variance threshold filtering.(a) Linear defect; (b) Hole shape defects"

Fig.8

Schematic of expansion and corrosion operations.(a) Erosion operation; (b) Dilation operation"

Fig.9

Morphological processing. (a) Defect opening operation; (b) Defect expansion operation"

Fig.10

Detection results of hole defects. (a) Area threshold filtering; (b) Defect original drawing verification"

Fig.11

Linear defects are compared with the eigenvalue diagrams of normal fabrics. (a) Original image; (b) Eigenvalue image"

Fig.12

Linear defects and normal fabric variance threshold filtering results. (a) Eigenvalue image of fabric; (b) Image of variance threshold filtering"

Tab.1

Comparison of three fabric defect algorithms"

算法 洞形检测准确率/
%
线形检测准确率/
%
平均耗时/
s
文献[1] 80.2 34.3 0.11
文献[8] 75.8 27.5 0.34
本文算法 91.8 83.5 0.83

Fig.13

Comparison diagram of hole defects. (a) Original image; (b) Method of reference [1]; (c) Method of reference[8]; (d) Method of this paper; (e) Detection results of this paper"

Fig.14

Linear defect comparison diagram. (a) Original image; (b) Method of reference [1]; (c) Method of reference[8]; (d) Method of this paper; (e) Detection results of this paper"

[1] 张缓缓, 马金秀, 景军锋, 等. 基于改进的加权中值滤波与K-means聚类的织物缺陷检测[J]. 纺织学报, 2019, 40(12): 50-56.
ZHANG Huanhuan, MA Jinxiu, JING Junfeng, et al. Fabric defect detection based on improved weighted median filter and K-means clustering[J]. Journal of Textile Research, 2019, 40(12): 50-56.
[2] CHAN C H, PANG G K H. Fabric defect detection by Fourier analysis[J]. IEEE Transactions on Industry Applications, 2000, 6(5): 1267-1276.
[3] 田宸玮, 王雪纯, 杨嘉能, 等. 织物瑕疵检测方法研究进展[J]. 计算机工程与应用, 2020, 56(12): 8-17.
doi: 10.3778/j.issn.1002-8331.2002-0169
TIAN Chenwei, WANG Xuechun, YANG Jianeng, et al. Research progress of fabric defect detection methods[J]. Computer Engineering and Applications, 2020, 56(12): 8-17.
doi: 10.3778/j.issn.1002-8331.2002-0169
[4] 周文明, 周建, 潘如如. 应用上下文视觉显著性的色织物疵点检测[J]. 纺织学报, 2020, 41(8): 40-43.
ZHOU Wenming, ZHOU Jian, PAN Ruru. Yarn-dyed fabric defect detection based on context visual saliency[J]. Journal of Textile Research, 2020, 41(8): 40-43.
[5] DHIVYA M, DEVI M R. Detection of structural defects in fabric parts using a novel edge detection method[J]. The Computer Journal, 2018, 62(7):1036-1043.
doi: 10.1093/comjnl/bxy121
[6] 孙国栋, 林松, 艾成汉, 等. 基于灰度共生矩阵与反向投影的织物疵点检测[J]. 计算机测量与控制, 2016, 24(7): 65-67.
SUN Guodong, LIN Song, AI Chenghan, et al. Fabric defect detection based on gray level co-occurrence matrix and back projection[J]. Computer Measurement & Control, 2016, 24(7): 65-67.
[7] JING Junfeng, MA Hao, LIU Zhuomei. Fabric defect detection based on sparse representation image decomposition[C]// International Conference on Brain Inspired Cognitive Systems. Cham: Springer, 2018:422-429.
[8] 何峰, 周亚同, 赵翔宇, 等. 纹理织物疵点窗口跳步形态学法检测[J]. 纺织学报, 2017, 38(10): 124-131.
HE Feng, ZHOU Yatong, ZHAO Xiangyu, et al. Textured fabric defect detection based on windowed hop-step morphological algorithm[J]. Journal of Textile Research, 2017, 38(10): 124-131.
[9] JIANG Jielin, JIN Zilong, WANG Boheng, et al. A sobel operator combined with patch statistics algorithm for fabric defect detection[J]. KSII Transactions on Internet and Information Systems, 2020, 14: 687-701.
[10] 顾菁, 薛云灿, 张龙, 等. 基于小波变换与局部熵的织物疵点检测方法[J]. 微处理机, 2015(5): 69-75.
GU Jing, XUE Yuncan, ZHANG Long, et al. Fabric defect detection method based on wavelet transform and local entropy[J]. Microprocessors, 2015(5): 69-75.
[11] LI Yueyang, LUO Haichi, YU Miaomiao, et al. Fabric defect detection algorithm using RDPSO based optimal Gabor filter[J]. Journal of The Textile Institute, 2019, 110(4): 487-495.
doi: 10.1080/00405000.2018.1489951
[12] QIN Runtian, LI Yu, FAN Yujie. Research on fabric defect detection based on multi-branch residual network[J]. Journal of Physics: Conference Series, 2021, 1907(1): 012057.
doi: 10.1088/1742-6596/1907/1/012057
[13] LI Y, ZHANG D, LEE D J. Automatic fabric defect detection with a wide-and-compact network[J]. Neurocomputing, 2019, 329: 329-338.
doi: 10.1016/j.neucom.2018.10.070
[14] 张啸剑, 付聪聪, 孟小峰. 结合矩阵分解与差分隐私的人脸图像发布[J]. 中国图象图形学报, 2020, 25(4): 655-668.
ZHANG Xiaojian, FU Congcong, MENG Xiaofeng. Facial image publishing combining matrix decomposition and differential privacy[J]. Journal of Image and Graphics, 2020, 25(4): 655-668.
[15] 邓子云. 基于奇异值分解的图像压缩技术[J]. 计算机系统应用, 2021, 30(2): 35-42.
DENG Ziyun. Image compression technology based on singular value decomposition[J]. Computer Systems & Applications, 2021, 30(2): 35-42.
[1] LI Bowen, WANG Ping, LIU Yuye. 3-D virtual try-on technique based on dynamic feature of body postures [J]. Journal of Textile Research, 2021, 42(09): 144-149.
[2] ZHU Lei, REN Mengfan, PAN Yang, LI Botao. Fabric defect detection based on similarity location and superpixel segmentation [J]. Journal of Textile Research, 2020, 41(10): 58-66.
[3] ZHANG Huanhuan, MA Jinxiu, JING Junfeng, LI Pengfei. Fabric defect detection method based on improved fast weighted median filtering and K-means [J]. Journal of Textile Research, 2019, 40(12): 50-56.
[4] . Detection of fabric defects based on Gabor filters and Isomap [J]. JOURNAL OF TEXTILE RESEARCH, 2017, 38(03): 162-167.
[5] . Warp knit fabric defect detection method based on optimal Gabor filters [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(11): 48-54.
[6] . Fast fabric defect detection algorithm based on integral image [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(11): 141-147.
[7] . Fabric defects detection method based on texture saliency features [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(10): 42-049.
[8] . Fabric defect detection using monogenic wavelet analysis [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(09): 59-64.
[9] . Woven fabric defect detection using singular value decomposition [J]. JOURNAL OF TEXTILE RESEARCH, 2014, 35(7): 61-0.
[10] . Research on detection of defects in fabrics using improved singular value decomposition [J]. JOURNAL OF TEXTILE RESEARCH, 2014, 35(6): 62-0.
[11] TIAN Chengtai;BU Honggang;WANG Jun;CHEN Xia;. Fabric defect detection based on fractal feature of time series [J]. JOURNAL OF TEXTILE RESEARCH, 2010, 31(5): 44-47.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 33 -34 .
[2] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 35 -36 .
[3] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 107 .
[4] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 109 -620 .
[5] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(01): 1 -9 .
[6] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 101 -102 .
[7] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 103 -104 .
[8] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 105 -107 .
[9] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 108 -110 .
[10] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 111 -113 .