Inspecting denim at the stenter with back-lit cameras

Denim is woven, dyed and finished in long runs, and a fault in the weave or the finish is repeated over many metres before anyone notices. At the end of the line the fabric is usually checked on inspection tables, slowly and by eye. This post describes how MVE (Monitait Vision Engine) inspects denim fabric on the line at a denim mill, at the stenter.

The problem

Weave faults such as weft and warp defects and spots are small compared with the width of the fabric, and they are easy to miss at line speed. When they are found only at final inspection, a whole run may already be affected. The goal was to see defects while the fabric is still on the line, with each one tied to a position on the roll, so that a problem can be traced back and fixed early.

What we installed

Cameras are mounted across the fabric at the stenter, with a back light behind the fabric. Back light makes the structure of the weave visible: missing or extra threads and thin or dense areas show as changes in the light that passes through. Frames are taken on encoder steps, so every part of the fabric is seen and each defect gets a position along the roll. All processing runs on an edge PC next to the line.

What the system looks for

A trained detector looks for weave and surface defects on every frame. On this line the main defect classes are weft defects, warp defects and spots. Measurement channels that need no training, such as darkness and texture compared with normal fabric, run alongside the model.

The Detection Insights screen for one week of production: a quality score and release verdict, the top defects by impact, the trend over the window and the detections per class.

How the mill uses it

The Detection Insights screen sums up a period or a single shipment. It gives a quality score out of 100 with a verdict (release, re-inspect or hold), lists the defect types with the biggest impact, and shows whether the defect rate is improving or getting worse over time. Each bar in the charts opens the images behind it, so the team can check what the system saw.

In the week shown above, the system processed more than 3.5 million detections over about 108 hours of production. The top defects by impact were weft defects, then warp defects, then spots, and the trend over the window was improving. A summary like this, per shipment, can be downloaded as a PDF and shared with the customer.

Numbers we can share

  • Our systems have seen about 40,000,000 metres of denim fabric so far.
  • Our best denim model scored 0.95 (mAP@0.5) in validation. This is a validation score on labelled images, not a line accuracy figure.

What we learned

  • Back light shows the weave. Many weave faults are much easier to see in light that passes through the fabric than in light reflected from it.
  • Rank defects by impact, not by count. The most frequent detection is not always the most important one. Ranking by impact tells the team which defect to work on first.
  • A verdict per shipment is what people use. Quality managers want a clear release, re-inspect or hold decision for each lot, with the images behind it, more than they want raw counts.

Is this relevant to your line?

The same setup fits other woven and knitted fabrics, nonwovens and coated textiles. Send us 20 to 50 images or a short phone video of good and faulty fabric, with your line speed, fabric width and the smallest defect that matters, and we will reply with a verdict per defect type and a proposed camera and lighting setup.

Finding defects without a trained model compares vision-language models with anomaly detection on 659 factory images. It is useful reading if your line has few labelled defect images to start with. For the MVE product lines and field figures, see monitait.com.