中文

Journal of Intelligent Agricultural Mechanization ›› 2025, Vol. 6 ›› Issue (1): 41-50.DOI: 10.12398/j.issn.2096-7217.2025.01.004

Previous Articles     Next Articles

Design and experiment of cracked egg sorting robot based on machine vision and YOLO v5

CAI Jiayi1(), LIU Shiwei1(), SHAN Longxiang1, LIU Yong1, SHEN Hongyi1, WANG Qiaohua1,2   

  1. 1.College of Engineering,Huazhong Agricultural University,Wuhan 430070,China
    2.Key Laboratory of Agricultural Equipment in Mid-lower Yangtze River,Ministry of Agriculture and Rural Affairs,Wuhan 430070,China
  • Received:2024-02-01 Revised:2024-04-04 Online:2025-02-15 Published:2025-02-15
  • Corresponding author: LIU Shiwei
  • About author:CAI Jiayi, E-mail: jycai@webmail.hzau.edu.cn
  • Supported by:
    National Natural Science Foundation of China(52005203);Fundamental Research Funds for the Central Universities(2662022GXQD002);National Key Laboratory of Electromagnetic Energy Technology Fund(61422172220507);Provincial Innovation and Entrepreneurship Training Program for Undergraduate(S202310504167)

Abstract:

With the improvement of our national living standard, consumers have higher requirements for the quality of eggs. The detection of cracked eggs is an important step before packing eggs. In order to solve the problems of high labor intensity and heavy workload in manual sorting of cracked eggs, a cracked egg sorting robot based on machine vision and YOLO v5 was designed. Firstly, the rotation Angle of each steering gear of the manipulator was obtained by inverse kinematics and converted into PWM duty cycle to realize the control of the three-axis series manipulator. Secondly, a high-definition 120° wide-angle camera was used as the image acquisition core to quickly acquire the image information of egg surface and label the 1 000 images collected. YOLO v5 models with different gradient descent batch sizes were then trained respectively,among which the model with gradient descent batch size of 8 had the highest mAP with a value of 98.92%. Finally, the model was called on the main board of the upper computer of the mechanical arm, and after the recognition and judgment of normal eggs and cracked eggs, the sorting stroke of the mechanical arm was started. In addition, the end pickup mechanism of the egg sorting robot was a pneumatic suction cup, which was mounted on the mechanical arm to achieve non-destructive absorption of eggs. The test results showed that the robot can identify the two kinds of eggs with the accuracy of 93.33% and 99.17% respectively, the average success rate of sorting is 94.34%, and the average sorting rate was 7.55 s/egg, which basically met the requirements. The research results can provide technical support for the screening of cracked eggs, and provide solutions for crack detection and sorting of eggs, which has high practical significance.

Key words: cracked egg, YOLO v5, machine vision, three-axis mechanical arm, intelligent sorting

CLC Number: