Actual combat | OpenCV realizes textile defect detection -> dirt, oil stains, line damage (detailed steps + Python/C++ source code)

Click the card below to follow "  OpenCV and AI Deep Learning "

Visual/image heavy dry goods, delivered as soon as possible!

Guided reading

This article will introduce the detailed steps + code for textile defect detection (dirty, oily, broken line defects) using OpenCV. (Source Public Account: OpenCV and AI Deep Learning)

Video demonstration effect:

OpenCV realizes the effect of textile defect detection

Background introduction

The application of defect detection in     machine vision application scenarios is very extensive, usually involving various industries and various defect types. Today we are going to introduce the defect detection of textiles. The types of defects include dirt , oil stains , and broken lines . These three defects are very similar to the defects detected by LCD screens , and the processing methods can also be used for reference.

dirty defect

    The picture of the dirt defect is as follows. There are several obvious dirts visible to the naked eye. How to deal with it?

Implementation steps:

[1] Use Gaussian filter to eliminate the interference of background texture

Guess you like

Origin blog.csdn.net/stq054188/article/details/124458496