The invention provides a flower quality grading quality
inspection method and
system based on AI and
image processing, and belongs to the technical field of
computer vision and pattern recognizing.The method comprises the steps that an original image of the surface of a flower is collected through high-resolution
imaging equipment, and high-frequency sub-band data representing tiny physical characteristics are extracted through multistage
discrete wavelet transform; meanwhile, a sliding window is adopted to
traverse the image, the color information entropy of a local area is calculated, and a color entropy graph is constructed. And after vectoring and splicing the two types of features, inputting the two types of features into a
deep belief network model based on a multilayer
restricted Boltzmann machine, and extracting deep abnormal feature codes. And finally, performing
linear discriminant analysis on the code by utilizing a classification projection vector based on inter-class and intra-class distance optimization to generate an
insect attack infection index, and realizing automatic grading quality inspection of the flower quality according to the
insect attack infection index. According to the method, precise recognition and quantitative grading of tiny
insect pests and recessive lesions on the surfaces of the fresh flowers are realized.