The invention relates to the technical field of image recognition, in particular to a quality detection and recognition method. The method comprises the steps of performing
spatial mapping on an original image, performing
feature extraction on the mapped image, performing step-by-step segmentation on an obtained image to be layered, extracting a required layer, forming color features by using color information of the layer, performing regression judgment through
machine learning training, and obtaining a
score. The color features are calculated through distribution of
hue, saturation and brightness of each pixel in the image and comprise one or more combinations of a mean value, a standard deviation and a deviation. Through
computer vision and
image processing technologies, an optimal detection area in a sample is automatically identified and analyzed, stratified analysis is carried out, multi-dimensional
quality data of the sample is detected, and rapid and accurate acquisition and quality evaluation of the multi-dimensional
quality data of the sample are realized. For the evaluation standard difference of different groups, only the evaluation
score Y value needs to be adjusted, the model does not need to be trained again, and the application range of the method is greatly widened.