Agriculture is the primary industry in China,which occupies an important link in the national economic system and supports the development of the national economy.Rice is also the crop with the largest production in agricultural production.The factors affecting the appearance quality of rice produced by processed rice are mainly broken rice rate,chalkiness,and yellow rice rate.These are also important indicators of rice cultivation and rice processing in China.At present,most of the detection methods for rice in the market are mostly human-powered,and the labor cost is too high.It is far from the high efficiency of mechanized production,and the results are also not objective and re-realizable,resulting in a large amount of chalky and broken parti cles.The flow of rice to the market has infringed upon the health rights of the general public.With the vigorous development of computer computing power and component production,as well as the progress of corresponding processing algorithms,computer te chnology has shown its edge in all walks of life.This paper discusses and researches the automatic detection algorithm of appearance quality of rice such as broken rice rate,chalkiness rate,and yellow rice rate by using machine vision technology,and solves the difference of subjective factors of manual measureme nt,and the detection speed is slow;general machine vision The error of rice detection under multi-grain connection and multi-grain type is large;at the same time,a comprehensive discriminant algorithm is proposed,which greatly reduces the time required for the computer to process the image.The main research contents are as follows:1.Establish a dynamic monitoring system for rice in the production line,dynamically obtain clear rice grain im ages,reduce the interference of dust,broken particles,and light in the production line,and obtain a static,low-polymerization grain image;propose a separation by expansion and corrosion operations on the mathematical form The method of connecting gra ins.This method can also separate the contours of other convex images with connecting features.2.Research and discuss the detection algorithm of broken rice rate based on grain perimeter,long axis width to axial ratio,and projected area;for the diffe rence in detection accuracy of different schemes under differ ent grain types,a comprehensive grain-based aspect ratio is proposed The feature selects the optimal algorithm among the broken rice rate detection algorithms,and discusses the selection relationship between the aspect ratio thresholds.3.For the chalky characteristics of rice,a chalky detection method based on the grayscale characteristics of the rice image is used to count the number of rice areas,the total number of chalky pixels,and the total number of pixels in the rice area to find the chalkiness and chalkiness.4.For the detection of yellow rice grains,several color spaces are introduced.Due to the different chromaticity distribution frequency of the yellow grain rice in the HSI space under the H component,the yellow rice grains are detected as a characteristic and satisfactory results are obtained afterwards. |