The invention provides a fruit flaw classification method and device based on
machine vision and
deep learning fusion, a storage medium and
computer equipment. The method comprises the following steps: acquiring a
color image of a fruit by using a camera, and respectively performing background segmentation
algorithm processing, background region removal, HSI
color transformation,
Gaussian difference operation of an S space and the like on the acquired
color image, thus obtaining a DoG image; then carrying out threshold segmentation on the DoG image, obtaining a
defect region, positioning a target region in a
color image, intercepting an image of the
defect region, carrying out
processing classification, endowing different
label numbers, and constructing and training a differential
convolutional neural network structure; and obtaining a
network connection weight matrix, thereby completing defect classification of the to-be-detected image. According to the method, fruit classification is achieved; the advantages of
machine vision and
deep learning are fused, and the complexity of fruit flaw classification and recognition is fully considered, so that the recognition rate is improved, meanwhile, the recognition time is shortened, and the interference of fruit stems and calyx on classification and recognition due to angle and posture transformation is reduced.