This page is being translated by your browser

Translation can break parts of Roboflow. If something stops working, turn translation off and reload the page.

Detection · Manufacturing & QC

Textile flaw detection: Datasets & Models

Automated visual inspection that detects fabric defects like holes, stains, and broken threads on textile production lines. Uses object detection to flag flaws in woven and knitted materials before they reach finished goods.

Textile flaw detection example
1M+
developers
16k
organizations
50B
inferences

Textile flaw detection

This detection workflow analyzes images or video frames from cameras mounted over looms, knitting machines, and roll inspection stations to locate fabric defects on textile production lines. Trained on a textile flaw dataset, it returns bounding boxes around defects such as holes, stains, snags, broken threads, and misweaves in woven and knitted materials.

Try it out

Powered by general detection model

Run on custom image

Drop an image here or click to upload

Detecting classes:

Why automate textile flaw detection

Manual fabric inspection is slow, subjective, and hard to sustain across shifts, human inspectors typically catch only a fraction of defects at production speeds, and fatigue makes results inconsistent. In manufacturing and QC operations, a missed hole or stain that ships as first-quality cloth means costly returns and scrapped downstream garments. Automating flaw detection with computer vision gives you consistent, high-speed inspection that flags defects the moment they appear, letting you stop the line, mark the roll, or route material for repair. It also produces a searchable record of every defect and its location for traceability and process improvement.

Key benefits

A trained detection model runs continuously on existing inspection cameras and line-scan hardware, catching defects at production speed without adding inspector headcount. RF-DETR provides strong accuracy on small, subtle flaws against busy fabric textures, and the workflow scales across multiple lines, fabric types, and facilities once the pipeline is in place. Detailed per-defect logging supports yield tracking and root-cause analysis over time.

How to use it

  1. Upload an image: Drop any photo into the widget above to try textile flaw detection for free, right on this page.
  2. Preview instant results: The model detects hole, stain, broken thread, snag, misweave within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
  3. Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train RF-DETR on your own images for production accuracy.
  4. Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model

Recommended model for textile flaw detection

RF-DETR is state of the art for real-time object detection, instance segmentation, and keypoint detection, with higher accuracy and lower latency than comparable models, and it's Apache 2.0 licensed. When you're ready to build a production model for textile flaw detection, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.

Train your own model
Roboflow Agent

Not sure where to start?

Describe your Textile Flaw Detection project to Roboflow Agent.

Agent