The invention discloses a method and a device for computer
visual inspection classification of the quality of fresh corn ears, which aim to solve the problem that an artificial classification method makes the accuracy and the reproducibility of classification generated adverse effects. The method comprises the following steps of: 1, under a certain illumination condition, acquiring images of the fresh corn ears passing through a place right below a camera by an
image acquisition device, and transmitting the images to a main control computer; 2, according to the acquired images of the fresh corn ears, performing
image analysis by the main control computer through intelligent
analysis software through the steps of: partitioning backgrounds of the images of the fresh corn ears by adopting an iteration-
replacement method, and then extracting characteristics as quality indexes of the fresh corn ears on the basis of the images obtained after the background partitioning of the images of the fresh corn ears; and 3, on the basis of the quality indexes, which are acquired through the
image analysis, of the fresh corn ears, and according to a grading standard that the fresh corn ears are classified into three grades, performing grade
estimation on the fresh corn ears by using a
fuzzy neural network. The invention also provides a detection device for implementing the method.