Abstract:In view of the problems of low efficiency of artificial separation, high rate of wrong separation and lack of automatic detection and separation device of mildewed corn seeds in China, a real-time detection and separation device was designed. The device consisted of a feeding unit, a detection unit, a sorting unit and a control system. The MSP430 was used to communicate by lower computer with the upper computer in real time and control the sorting actuator. The Matlab 2014b software was used by upper computer to process the corn seed image in real time and output the recognition results. In order to facilitate the image acquisition of corn seeds, a seed separation mechanism was designed. Based on the difference of surface color between mildewed corn seeds and normal corn seeds, an image algorithm for identifying mildewed corn seeds simultaneously in a single image was designed based on HSV spatial color division of image. The algorithm can realize pixel level mildewed corn seed recognition, and a sort strategy of corn seeds was proposed to achieve accurate sorting. The experiment showed that the device can realize the real-time detection and sorting of mildewed corn seeds. The acquisition and processing time of a single image was about 0.7s, the highest sorting speed was 680 grains per minute, the recognition accuracy of mildewed corn seeds was 100%, and the overall sorting accuracy was no less than 94%. The device realized the whole process of corn from feeding to sorting automatically, and can achieve the purpose of real-time detection and sorting of moldy corn seeds. The device adopted machine vision technology to carry out non-destructive detection of corn seeds, which provided technical support for the related research and development of later corn seed grading system.