← All projects

Research lab project (Forschungslabor), Institut für Textiltechnik, RWTH Aachen · 2024

Smarter camera settings for automated textile inspection

A camera can only spot fabric defects if its settings suit the fabric. I combined Bayesian optimisation with case-based reasoning, so the system starts from what worked on similar fabrics instead of from scratch.

−63%images needed per fabric

The problem

Inspectors find only 60 to 70% of fabric defects by eye, so textile inspection is moving to cameras and image processing. But a camera system needs good images first, and the right exposure time, aperture, gain and light differ for every fabric. Finding them by hand takes time.

What I did

  • Worked on the institute’s test rig (camera, four LED lights, adjustable table) and improved the existing Bayesian optimisation algorithm, which searches for the settings that give the most informative image, measured by information entropy
  • Defined features to classify fabrics and built a database of fabrics with their best settings
  • Added case-based reasoning: for a new fabric, the search starts from the settings of similar fabrics in the database, and the database grows with every fabric
  • Tested the approach on new fabrics, with and without case-based reasoning

Result

  • On patterned fabrics, the algorithm found settings as good as the best ones found by hand. Plain single-colour fabrics were the hard case, because information entropy is a weak quality measure for them
  • Case-based reasoning cut the images needed per fabric from 20.3 to 7.5 (−63%) and the optimisation steps by 58%, with equal or better image quality in every direct comparison
  • An extra test without gain as a setting improved the results on single-colour fabrics