Welcome to Francis Academic Press

Academic Journal of Computing & Information Science, 2021, 4(7); doi: 10.25236/AJCIS.2021.040712.

Fabric Defect Detection Based on the Improved Cascade R-CNN


Lin Xue, Qi Li, Yao Lu, Dejian Zhang, Qun He, Hao Wang

Corresponding Author:
Lin Xue

School of Mechanical Engineering Dalian University of Technology, Dalian, China


There is a large amount of fabric produced in the process of industrial production, thus fabric defects automatic detection can bring great benefits to enterprises. With the development of computer technology, deep learning has more advantages on fabric defect detection compared with traditional image processing. By comparing the advantages and disadvantages of different target detection models, we chose to use the Cascade R-CNN model for fabric defect detection finally. However, due to the large size of fabric image, small number of partial defects and complex image background, there are many difficulties in fabric defect detection. To solve the difficulties, we propose some methods to improve the accuracy of defect detection. First, in order to enhance the detection accuracy of small targets, we cut large fabric images into blocks for training and detection, and combine the detection results. Then, to solve the problem of the small number of partial defects in the fabric Dataset, a new method of multi-morphological data augmentation was proposed to increase the number of the Dataset. Finally, we improved the Feature Pyramid Networks module to enhance positional accuracy of defect detection. Experimental results show that the model can complete the task of defect detection efficiently and improve the accuracy of target detection effectively.


Fabric defect detection, cascade R-CNN, defect detection

Cite This Paper

Lin Xue, Qi Li, Yao Lu, Dejian Zhang, Qun He, Hao Wang. Fabric Defect Detection Based on the Improved Cascade R-CNN. Academic Journal of Computing & Information Science (2021), Vol. 4, Issue 7: 81-87. https://doi.org/10.25236/AJCIS.2021.040712.


[1] T. Su, H. Chen, G. Hong and C. Ma, "Automatic inspection system for defects classification of stretch knitted fabrics," 2010 International Conference on Wavelet Analysis and Pattern Recognition, 2010, pp. 125-129, doi: 10.1109/ICWAPR.2010.5576302.

[2] K. Hanbay, M. F. Talu, Ö. F. Özgüven and D. Öztürk, "Fabric defect detection methods for circular knitting machines," 2015 23nd Signal Processing and Communications Applications Conference (SIU), 2015, pp. 735-738, doi: 10.1109/SIU.2015.7129932.

[3] S. Zhao, J. Wang, J. Zhang, J. Bao and R. Zhong, "Edge-cloud collaborative fabric defect detection based on industrial internet architecture," 2020 IEEE 18th International Conference on Industrial Informatics (INDIN), 2020, pp. 483-487, doi: 10.1109/INDIN45582.2020.9442236.

[4] Jing Junfeng, Zhuo Dong, Zhang Huanhuan, Liang Yong, Zheng Min. Fabric defect detection using the improved YOLOv3 model[J]. Journal of Engineered Fibers and Fabrics,2020,15.

[5] Jun Wu,Juan Le,Zhitao Xiao,Fang Zhang,Lei Geng,Yanbei Liu,Wen Wang. Automatic fabric defect detection using a wide-and-light network[J]. Applied Intelligence,2021(prepublish).

[6] Zhiyong Zhao, Kang Gui, and Peimao Wang. 2020. Fabric Defect Detection Based on Cascade Faster R-CNN. In Proceedings of the 4th International Conference on Computer Science and Application Engineering (CSAE 2020). Association for Computing Machinery, New York, NY, USA, Article 98, 1–6.

[7] Z. Cai and N. Vasconcelos, "Cascade R-CNN: Delving Into High Quality Object Detection," 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018, pp. 6154-6162, doi: 10.1109/CVPR.2018.00644.

[8] Ren S, He K, Girshick R, et al. Faster R-CNN: towards real-time object detection with region proposal networks[C]// International Conference on Neural Information Processing Systems. MIT Press, 2015:91-99.

[9] H. Zuo, Y. Wang, X. Yang and X. Wang, "Fabric defect detection based on texture enhancement," 2012 5th International Congress on Image and Signal Processing, 2012, pp. 876-880, doi: 10.1109/CISP.2012.6469799.

[10] H. Rezatofighi, N. Tsoi, J. Gwak, A. Sadeghian, I. Reid and S. Savarese, "Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression," 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019, pp. 658-666, doi: 10.1109/CVPR.2019.00075.

[11] Girshick R. Fast R-CNN[J]. Computer Science, 2015.

[12] M. Tan, R. Pang and Q. V. Le, "EfficientDet: Scalable and Efficient Object Detection," 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pp. 10778-10787, doi: 10.1109/CVPR42600.2020.01079.