← Back to VOLUME 15, ISSUE 11, NOVEMBER 2026
This work is licensed under a Creative Commons Attribution 4.0 International License.
AI Based Fabric Defect Detection System
Dr. U. M. Patil, Pranil Sanjay Pawar, Kanchan Sunil Patil, Vaishnavi Chittaranjan Bhavsar, Jayesh Rameshsing Girase
👁 18 views📥 2 downloads
Abstract: Fabric inspection in most mills is still done by people who look at the cloth on a lighted frame and mark the faults they see. After some time they get tired, two people may judge the same fault differently, and nothing is written down. In this paper we describe a fabric defect detection system that works on pixel values, runs in real time, and does not need a dataset of labelled defects or any special camera. Each frame is changed to grey, smoothed, and compared with an estimate of how plain fabric should look at that spot. Pixels that differ by more than a threshold, calculated from the frame itself, are marked, cleaned, joined into regions and sorted into hole, stain, knot, double knot or broken thread by simple shape rules. Every region gets a confidence value, and weak ones are dropped. The code runs on a laptop (FastAPI and OpenCV) and has three modes: image, video and Live Stream. For live use, the user scans a QR code with a phone on the same Wi-Fi and allows the camera. The faults then show on the phone screen while the laptop keeps the log. The length of fabric checked is estimated from feed speed and time, and each fault is saved in a SQLite table with its frame, time, position and size, which can be exported to CSV. In our test runs the fault area was found well in real time, but the class name was sometimes wrong when two faults look alike. We see this as the main weakness and the first thing to fix.
Keywords: Fabric defect detection, Pixel-based image processing, Real-time inspection, Smartphone camera, OpenCV, FastAPI.
Keywords: Fabric defect detection, Pixel-based image processing, Real-time inspection, Smartphone camera, OpenCV, FastAPI.
How to Cite:
[1] Dr. U. M. Patil, Pranil Sanjay Pawar, Kanchan Sunil Patil, Vaishnavi Chittaranjan Bhavsar, Jayesh Rameshsing Girase, “AI Based Fabric Defect Detection System,” International Journal of Advanced Research in Computer and Communication Engineering (IJARCCE), DOI: 10.17148/IJARCCE.2026.1511117
