The invention discloses a
rating system and method for peanuts with shells. The
system is composed of twelve modules including a parameter setting module, a
signal control module, an
image acquisition module, a camera calibration module, a
color correction module, an
image correction module, an
image segmentation and defect detection module, a shape detection module, a
size measurement module, a weighing module and a rating module. The method comprises the following steps: acquiring images of peanuts with shells flatly laid on a tray of an electronic scale by using a camera, and acquiring parameters such as the number, color defects, shape similarity and size of the peanuts by using an
image processing technology and an instance segmentation model based on
deep learning; meanwhile, a camera is used for collecting an image of a display screen of the electronic scale, an
image processing technology and an OCR
character recognition technology are used for obtaining weight data of the peanuts and converting the weight data into thousands of peanuts, and finally, multiple parameters such as color, shape, size and weight are comprehensively used for conducting grade evaluation on the peanuts with the shells. The method is realized based on the
system. According to the invention, automatic rating of peanuts with shells is comprehensively realized, and the detection precision, the
automation level and the rating efficiency of related equipment are improved.