Background: Corn is the main grain crop grown in China, and the ear shape index of corn is an important parameter for breeding new varieties, including ear length, diameter, row number of ears, row number of grains per ear, and so on. Objective: In order to solve the problem of limited field of view associated with computer detection of the corn ear shape index against a complex background, this paper proposes a panoramic splicing method for corn ears against a complex background, which can splice 10 corn ear panoramic images at the same time, to improve information collection efficiency, display comprehensive information, and support data analysis, so as to realize automatic corn seed examination. Methods: A summary of corn ear panoramic stitching methods under complex backgrounds is presented as follows: 1. a perceptual hash algorithm and histogram equalization were used to extract video frames; 2. the U-Net image segmentation model based on transfer learning was used to predict corn labels; 3. a mask preprocessing algorithm was designed; 4. a corn ear splicing positioning algorithm was designed; 5. an algorithm for irregular surface expansion was designed; 6. an image stitching method based on template matching was adopted to assemble the video frames. Results: The experimental results showed that the proposed corn ear panoramic stitching method could effectively solve the problems of virtual stitching, obvious stitching seams, and too-high similarity between multiple images. The success rate of stitching was as high as 100%, and the speed of single-corn-ear panoramic stitching was about 9.4 s, indicating important reference value for corn breeding and disease and insect detection. Discussions: Although the experimental results demonstrated the significant advantages of the panoramic splicing method for corn ear images proposed in this paper in terms of improving information collection efficiency and automating corn assessment, the method still faces certain challenges. Future research will focus on the following points: 1. addressing the issue of environmental interference caused by diseases, pests, and plant nutritional status on the measurement of corn ear parameters in order to enhance the stability and accuracy of the algorithm; 2. expanding the dataset for the U-Net model to include a wider range of corn ears with complex backgrounds, different growth stages, and various environmental conditions to improve the model’s segmentation recognition rate and precision. Recently, our panoramic splicing algorithm has been deployed in practical applications with satisfactory results. We plan to continue optimizing the algorithm and more broadly promote its use in fields such as corn breeding and pest and disease detection in an effort to advance the development of agricultural automation technology.
Read full abstract