Font Size: a A A

The Design And Implementation Of Rice Seed Counting System Based On Image Processing

Posted on:2020-04-18Degree:MasterType:Thesis
Country:ChinaCandidate:H L ZhouFull Text:PDF
GTID:2393330596976859Subject:Engineering
Abstract/Summary:PDF Full Text Request
Rice is one of the oldest foods and the second largest food crop in China.The 1000-grain weight of rice seeds,as well as grain length,grain width,perimeter,area,and other information are often used as key indicators for measuring and analyzing their quality.Because most traditional rice seed counting methods are performed manually,after a long period of time,the human eye tends to fatigue,resulting in calculation errors and inability to ensure accuracy.In order to ensure the high quality production of rice and improve the accuracy and detection efficiency of counting seeds of agriculture,this paper uses image processing technology combined with Qt to design the counting systems of rice.The main work of this paper is:(1)Hardware design of counting rice systems.The 8 megapixel USB interface camera is combined with the working indicator of the 19 mm metal device to install on the fixed box,and the dither tray and the external balance are designed to realize real-time collection of rice seed image and weight information.(2)Image algorithm design for counting systems of rice.OpenCV is a cross-platform computer vision library that uses its C++ interface to process acquired rice seed images.The image is smoothed to reduce the noise and interfere with the subsequent recognition processing of the algorithm.The collected seeds of rice image binarization process,the binarized image and then opening operation,thereby excluding the tail portion out of rice seeds,rice seeds obtained containing only the body of binarized image information.For the segmentation of the adhesion region,the distance transformation and the watershed algorithm are combined to segment the regions where multiple seeds are adhered.According to the morphological characteristics of the seeds,a scribing algorithm is proposed for the adhesion region.(3)The software interface implementation of counting rice systems.Qt is a cross-platform C++ graphical user interface application development framework.The software interfaces of counting rice systems are developed on the Qt platform.The MVC design pattern is used in the software,and the data and user interface can be effectively separated by using a model representing the data,a view representing the user interface,and a control defining the user’s operation on the interface.The software interface is simple and fast to operate,with automatic counting rice seeds,display and output of rice seed data,and tight alignment of rice seeds.The experimental results show that: The system can realize automatic counting of rice seeds,and the counting accuracy is 99.12%.The system is more suitable for counting and morphological analysis of conical crop seeds.Therefore,for other shapes of seeds,the improvement of the applicable performance of the system requires further research.
Keywords/Search Tags:automatic counting, image segmentation, distance transformation, tightly arranged, observer mode
PDF Full Text Request
Related items