Abstract:In the process of positioning orientation and attitude adjustment of seeds for developed wheat slicers, there are problems of low recognition and positioning accuracy, and difficult to distinguish the attitude of seeds because of the small particle size and irregular shape of seeds. On the basis of the mechanical structure of the wheat seed slicer designed in the early stage, a set of seed positioning orientation and pre-cutting attitude adjustment system were developed to provide a good pre-cutting posture for wheat seed slices. Firstly, the structure of the seed positioning and attitude adjustment system, including industrial camera, parallel mechanical arm and electric grippers was designed. And the hardware parameters were selected to deploy the system reasonably and clarify its working principle. Secondly, an industrial camera was used to collect wheat seed images in order to establish a wheat seed dataset and semantically annotate the germ of wheat. A wheat seed recognition segmentation network was trained based on the semantic segmentation framework of YOLO v8, and the model was structurally improved by incorporating the Shuffle Attention mechanism in order to increase the segmentation accuracy of the seed images. And on the basis of accurate semantic segmentation of seeds, an algorithm was proposed to find the shape center from the mask contour by matching the shape center of the endosperm and germ end of the seed, in order to realize the efficient and accurate detection of the position and attitude of wheat seeds. Finally, the experimental results showed that the weight parameter obtained by adding the attention mechanism was 1.50% higher than that of the original model, the average precision mean value was increased by 8.46%, the average detection time of the improved YOLO v8 model on the dataset was 18.91ms, the correctness rate of wheat seed pose adjustment was 91.30%, the average correctness rate of the pose detection algorithm was 92.93%, and the error range of the pose angle was -3.50°~3.50°, the average absolute error obtained was 1.66°, the average time consumed in the seed data acquisition stage was 9.17s, the average time consumed in the grasping stage was 6.21s, the average time consumed in the returning to the cutting area stage was 5.74s, and the average operating time of the whole workflow was 21.11s, which was within the allowable error range, which verified that the research results in the positioning of wheat seeds and attitude recognition had a high accuracy, and can effectively carry out the adjustment of seed pre-cutting attitude.