In the textile industry,intelligent detection of fabric defects remains a formidable challenge.To automate the detection of fabric defects,we propose an algorithm based on the relative total variation model and adaptive threshold segmentation.This approach utilizes median filtering for noise reduction,enhances fabric defects using the relative total variation model to suppress background textures,and analyzes the grayscale histogram of the enhanced defect image.Through iterative adaptive threshold segmentation,a binary image of defects is obtained.Testing on various types of defect images demonstrates that this algorithm effectively enhances and segments defects,yielding promising detection outcomes.
关键词
疵点检测/中值滤波/相对总变差模型/自适应阈值分割
Key words
defect detection/median filtering/relative total variation model/adaptive threshold segmentation