The invention provides a magnetic tile surface defect 
feature extraction and defect classification method based on 
machine vision. A concrete 
algorithm comprises a first step of building a 5-scale and 8-direction 
Gabor filter bank suitable for magnetic tile surface defect 
feature extraction, conducting filtering to an original image and obtaining a 40-width component plot, a second step of respectively extracting a gray average and a variance feature of the component plot and forming a 80-dimension 
feature vector, a third step of conducting 
dimensionality reduction to the original 80-dimension 
feature vector through a 
principal component analysis (PCA) method and an 
independent component analysis (ICA) method, removing relevance and redundancy and obtaining a 20-dimension 
feature vector, a fourth step of conducting normalization pretreatment to feature vector data, wherein the 
original data are normalized between zero and one, and a fifth step of adopting a grid method and a K-CV method to achieve SVM parameter optimization at first and training an SVM model using training sample data offline, wherein pretreated testing sample data are input into a 
support vector machine during online testing, and automatic classification and identification of defects can be achieved. The 
feature extraction method can effectively filter interference and prominent defects of magnetic tile surface texture, extracted features can reflect defect information accurately, data values are small, and a classifier used for classifying the defects can achieve defect identification fast and accurately online.