The invention is applicable to the technical field of color sorters, and provides a color sorter
impurity distinguishing method based on
texture feature extraction, which comprises the following steps: S1,
image acquisition: acquiring an original image of a to-be-detected material through an industrial camera of a color sorter; according to the color sorter
impurity distinguishing method based on
texture feature extraction, two
texture extraction algorithms of
gray level co-occurrence matrix and
Gabor wavelet transform are fused, texture features are extracted from two dimensions of
spatial distribution and direction scale, and compared with a single
texture extraction method, the texture difference between materials and impurities can be reflected more comprehensively, so that the color sorter
impurity distinguishing method based on
texture feature extraction is more accurate. The method has higher distinguishing precision especially for impurities with similar colors and different textures, dimension reduction
processing is carried out on initial texture features through a
principal component analysis algorithm, redundant features are effectively eliminated, the calculation amount of a classification model is reduced, the sorting efficiency of a color sorter is improved, and the requirement for high-speed material sorting is met. And meanwhile, a
support vector machine classification model is adopted, so that the model generalization ability and the classification stability are improved.