The invention belongs to a sorting method, and particularly relates to an automatic floor sorting method. The automatic floor sorting method comprises the following steps: step 1, a training stage; artificial intelligence is trained, so that the artificial intelligence can automatically identify the defects of the floor in the black-and-white image and the color image; 2, a use stage; the artificial intelligence obtained through training in the first step is used for recognition, sampling inspection is carried out, and iteration upgrading is continuously carried out on the artificial intelligence. The method has the advantages that an effective recognition algorithm is formed through artificial intelligence training, then the algorithm is used for intelligent recognition, the recognition efficiency is high, the recognition effect is good, the marginal cost is low, and quality control over finished floor products is facilitated. In addition, if other defects occur, the recognition algorithm can be upgraded and reformed only by supplementary training, upgrading and iteration are convenient and fast, and iteration cost is low.