Abstract:Aiming at the problem of detection of fabric defect, a fabric defect detection method based on Gabor filter and Histogram of Oriented Gradient(HOG) feature is presented. Firstly, a bank of Gabor filters with three scales and four directions are used to process the fabric image, through image fusion, the contrast between the defect zone and the background texture in the fabric image is enhanced; Then, the bilateral filter is used to weaken the influence of the background texture and noise of the fabric image; And Finally, the filtered image is divided into small image blocks with the same size, after extracting the HOG feature of each sub-image block, threshold segmentation is executed based on the difference of the HOG feature between defect area and background texture to realize the detection of fabric defect. Five normal fabric defects are tested, and a contrast experiment with the traditional Gabor algorithm is conducted. The experiment results show that the algorithm can better suppress the interference of the background texture and detect fabric defects more accurately.