Work/Machines/Fabric defect detection
Multi-camera vision + ESP32YOLOESP32

Fabric defect detection

Real-time textile defect detection across several cameras, with ESP32 alerts on the line.

ROLETo confirm
TYPEMulti-camera vision + ESP32
HARDWARECameras + ESP32 + GPU
STATUSTested on real lines
TRY IT · hands on

Play with a small version

A simplified, in-browser version of how Fabric defect detection works. Nothing here talks to the real system.

ARCHITECTURE · how it flows
  1. Multiple cameras
  2. YOLO inference
  3. Defect check
  4. Live annotated view
  5. Serial signal
  6. ESP32 buzzer / actuator

Thread-based OpenCV handlers keep the camera streams in step. Detections go over non-blocking serial to an ESP32 that drives GPIO.

01 · Overview

The problem

Manual inspection of fabric is slow, tiring and error-prone.

A YOLO inspection system that reads several USB or IP camera streams, detects holes, lines and creases, and signals an ESP32 over serial to sound a buzzer or drive an actuator.

GOAL

Catch defects early on the production line, cutting human error and waste.

02 · What I built

The key decisions

01

A custom YOLO model for holes, lines and creases.

02

Thread-based capture across several USB and IP cameras.

03

A non-blocking serial link to an ESP32 that drives buzzers and actuators, in three sensor variants.

03 · Challenges

What was hard, and what I did

CHALLENGE

Keeping several cameras in sync

WHAT I DID

Thread-based OpenCV handlers per stream.

CHALLENGE

Changing light and fabric textures

WHAT I DID

Training on an augmented dataset.

CHALLENGE

Real-time inference

WHAT I DID

A smaller YOLO variant with reduced input size.

CHALLENGE

Hardware and software staying in step

WHAT I DID

Serial buffers with non-blocking reads and writes.

WHERE IT STANDS

Tested in simulated and real textile production environments. A web dashboard and edge deployment are future work.

04 · Results

The numbers

>92%detection accuracy on the validation setself-reported
20–30 FPSinference on a mid-range GPUself-reported
<150 msfrom detection to hardware alertself-reported

Only numbers I can back up are shown here. Where a figure is self-reported or from a benchmark I haven't re-run, it says so.

06 · Stack

Built with

TECHNOLOGY
PythonYOLO / UltralyticsPyTorchOpenCVPySerialDocker
HARDWARE
USB and IP camerasESP32mid-range GPU
MY ROLE

Role to add.

Building something like Fabric defect detection?

I'm happy to walk through the architecture and trade-offs on a call.

Book a 20-min call →