Journal of Textile Research ›› 2019, Vol. 40 ›› Issue (01): 153-158.doi: 10.13475/j.fzxb.20171206406

• Management & Information • Previous Articles     Next Articles

Improved algorithm for fabric defect detection based on Canny operator

HU Keman1,2, LUO Siolong1(), HU Haiyan3   

  1. 1. Department of Electronics & Information Engineering, Ningbo Polytechnic, Ningbo, Zhejiang 315800, China
    2. Faculty of Information Technology, Macau University of Science and Technology, Macau 999078, China
    3. Technology and Academia-Industry Cooperation Office, Ningbo Polytechnic, Ningbo, Zhejiang 315800, China
  • Received:2017-12-29 Revised:2018-09-26 Online:2019-01-15 Published:2019-01-18
  • Contact: LUO Siolong E-mail:sllo@must.edu.mo

Abstract:

In order to solve the self-adaption problem that current Canny operator needs to set threshold and to choose the filtering parameters in the fabric defect edge detection, an improved algorithm based on the original Canny operator was proposed. Firstly different filter parameters were chosen according to the type of the fabric flaw, and then self-adaption was used to obtain the threshold and the parameters of the filter, which avoids the wrong choosing of threshold leading to the lack or redundant edge information, and different filter parameters were chosen according to the type of the fabric flaw. The results showed that the improved Canny algorithm can detect the edge detail of fabric defects, and has good self-adaption capability. Compared to the conventional algorithm, the improved algorithm has better detection results.

Key words: Canny operator, self-adaption, fabric defect, parameter of filter, edge detail

CLC Number: 

  • TP391.4

Fig.1

Gauss filter."

Fig.2

Image processed by filter."

Fig.3

X-Direction of energy estimates"

Fig.4

Y-Direction of energy estimates"

Fig.5

Result of high threshold value 400."

Fig.6

Result of high threshold value 50."

Fig.7

Algorithm result of the paper."

[1] 尉苗苗, 李岳阳, 蒋高明, 等. 应用最优Gabor滤波器的经编织物疵点检测[J]. 纺织学报, 2016,37(11):48-49.
YU Miaomiao, LI Yueyang, JIANG Gaoming, et al. Warp knit fabric defect detection method based on optimal Gabor filter[J]. Journal of Textile Research, 2016,37(11):48-49.
[2] 毛兆华, 汪军, 周建, 等. 应用非负字典学习的机织物瑕疵检测算法[J]. 纺织学报, 2016,37(3):144-145.
MAO Zhaohua, WANG Jun, ZHOU Jian, et al. Woven fabric defect detection base on non-negative dictionary learing[J]. Journal of Textile Research, 2016,37(3):144-145.
[3] 王刚, 周建, 汪军, 等. 采用奇异值分解的机织物瑕疵检测算法[J]. 纺织学报, 2014,35(7):61-62.
WANG Gang, ZHOU Jian, WANG Jun, et al. Woven fabric defect detection using singular value decomposition[J]. Journal of Textile Research, 2014,35(7):61-62.
[4] CAMPBELL J G, FRALEY C, MURTAGH F, et al. Linear flaw detection in woven textiles using model based clustering[J]. Pattern Recognition Letters, 1997,18(14):1539-1548.
doi: 10.1016/S0167-8655(97)00148-7
[5] SHI M H, FU R, GUO Y, et al. Fabric defect detection using local contrast deviations[J]. Multimedia Tools and Applications, 2011,52(1):147-157.
doi: 10.1007/s11042-010-0472-8
[6] KUMAR A, PANG G K H. Defect detection in textured materials using Gabor filters[J]. IEEE Transactions on Industry Applications, 2002,38(2):425-440.
doi: 10.1109/28.993164
[7] MIRMEHDI Majid, XIE Xianghua, SURI Jasjit. Handbook of Textile Analysis[M]. London: Imperial College Press, 2008: 101-150.
[8] HEALTH M, SARKAR S, SANOCKI T, et al. Comparison of edge detectors: a methodology and initial study[J]. Computer Vision and Image Understanding, 1998,69(1):38-54.
doi: 10.1006/cviu.1997.0587
[9] 许宏科, 秦严严, 陈会茹. 一种基于改进Canny的边缘检测算法[J]. 红外技术, 2014,36(3):211-212.
XU Hongke, QIN Yanyan, CHEN Huiru. An improve algorithm for edge detection based on canny[J]. Infrared Technology, 2014,36(3):211-212.
[10] 段红燕, 邵豪, 张淑珍, 等. 一种基于Canny 算子的图像边缘检测改进算法[J]. 上海交通大学学报, 2016,50(12):1862-1863.
DUAN Hongyan, SHAO Hao, ZHANG Shuzhen, et al. An improved algorithm for image edge detection based on Canny operator[J]. Journal of Shanghai Jiao Tong University, 2016,50(12):1862-1863.
[11] JOHN CANNY. A computational approach to edge detection[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1986,8(6):679-697.
pmid: 21869365
[12] 景晓军, 李剑峰, 熊玉庆. 静止图像的一种自适应平滑滤波算法[J]. 通信学报, 2002,23(10):8-12.
JING Xiaojun, LI Jianfeng, XIONG Yuqing. An adaptive smooth filter algorithms of still images[J]. Journal of China Institute of Communication, 2002,23(10):8-1.
[13] 薛丽霞, 李涛, 王佐成. 一种自适应的Canny边缘检测算法[J]. 计算机应用研究, 2010,27(9):3588-3589.
XUE Lixia, LI Tao, WANG Zuocheng. Adaptive Canny edge detection algorithm[J]. Application Research of Computers, 2010,27(9):3588-3589.
[1] 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.
[2] DI Lan, YANG Da, LIANG Jiuzhen, MA Mingyin. Fabric defect detection method based on primitive segmentation and Gabor filtering [J]. Journal of Textile Research, 2020, 41(09): 59-66.
[3] YANG Enjun, LIAO Yihui, LIU Andong, YU Li. Detection for fabric defects based on low-rank decomposition [J]. Journal of Textile Research, 2020, 41(05): 72-78.
[4] 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.
[5] . Fabric defect detection based on improved local adaptive contrast method#br# [J]. Journal of Textile Research, 2019, 40(02): 38-44.
[6] . Fabric defect inspection based on modified discriminant complete local binary pattern and lattice segmentation [J]. Journal of Textile Research, 2018, 39(09): 57-64.
[7] . Segmentation of fabric defect images based on improved frequency-tuned salient algorithm [J]. JOURNAL OF TEXTILE RESEARCH, 2018, 39(05): 125-131.
[8] . Graphic contour extraction for printed fabric based on Ttxture smoothing [J]. JOURNAL OF TEXTILE RESEARCH, 2017, 38(11): 162-167.
[9] . Fabric defect detection based on relative total variation model and adaptive mathematical morphology [J]. JOURNAL OF TEXTILE RESEARCH, 2017, 38(05): 145-149.
[10] . Detection of fabric defects based on Gabor filters and Isomap [J]. JOURNAL OF TEXTILE RESEARCH, 2017, 38(03): 162-167.
[11] . Woven fabric defect detection based on nonnegnative dictionary learning [J]. Journal of Textile Research, 2016, 37(3): 144-149.
[12] . Unsupervised fabric defect segmentation using local texture feature [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(12): 43-48.
[13] . Warp knit fabric defect detection method based on optimal Gabor filters [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(11): 48-54.
[14] . Fast fabric defect detection algorithm based on integral image [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(11): 141-147.
[15] . Fabric defects detection method based on texture saliency features [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(10): 42-049.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!