Fruit grading method and device for machine vision of taro harvesting equipment

Through machine vision technology combined with near-infrared spectral analysis, automated evaluation of taro appearance and internal quality is achieved, solving the problems of low efficiency and poor accuracy of traditional grading methods, and improving the technical level and market competitiveness of taro grading.

CN118883544AActive Publication Date: 2024-11-01JIANGXI ACAD OF AGRI SCI INST OF AGRI ENG

Patent Information

Application Number
CN202410919267.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-01
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

The traditional taro grading method relies on artificial visual inspection, is inefficient and difficult to ensure consistency and accuracy, and cannot comprehensively evaluate the appearance and internal quality of taro, especially in large-scale production, cost and time consumption become constraints.

Method used

By using machine vision technology, by collecting the appearance images and near-infrared spectral data of taro, extracting appearance feature information and internal quality information, and building a comprehensive quality index to achieve a comprehensive and automated evaluation of the appearance and internal quality of taro.

Benefits of technology

It significantly improves the efficiency and accuracy of the grading process, avoids subjective errors in manual grading, ensures the consistency and reliability of grading results, meets consumers' demand for high-quality taro, and enhances the market competitiveness of the taro industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118883544A_ABST
    Figure CN118883544A_ABST
Patent Text Reader

Abstract

The invention provides a fruit grading method and device for machine vision of taro harvesting equipment, and relates to the technical field of taro fruit grading. The method comprises the following core steps: firstly, collecting an appearance image and near infrared spectrum data of a taro, analyzing the appearance image to extract color information, size information and surface defect information of the taro, and generating an appearance characteristic index of the taro; and then, analyzing the near infrared spectrum data to obtain the moisture content and the sugar content of the taro, generating an internal quality index of the taro, and constructing a comprehensive quality index model according to the appearance characteristic index and the internal quality index for comprehensively evaluating the fruit quality of the taro. Finally, the comprehensive quality index is compared with a preset grade interval, and accurate grading of the taros is achieved. The method is characterized in that the advanced image recognition technology and the spectrum analysis technology are combined, and comprehensive and objective evaluation of the taro quality is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of taro fruit grading, and in particular to a machine vision fruit grading method and device for taro harvesting equipment. Background Art

[0002] With the advancement of agricultural technology, quality control and grading of agricultural products have become key factors in improving product market competitiveness. As an important root and tuber agricultural product, the appearance and internal quality of taro fruit directly affect consumers' purchasing decisions and eating experience. The traditional taro grading method mainly relies on manual visual inspection and simple physical measurement. This method is not only inefficient, but also easily affected by the subjective judgment of the operator, making it difficult to ensure the consistency and accuracy of the grading results. As consumers' requirements for food safety and quality increase, the traditional manual grading method can no longer meet the needs of the modern market. Therefore, the market urgently needs a grading technology that can comprehensively and objectively evaluate the quality of taro.

[0003] The prior art has the following deficiencies:

[0004] Although there are some automated grading technologies on the market, most of them are limited to the evaluation of appearance characteristics, such as color and size, and lack effective means to evaluate the internal quality of taro, such as moisture and sugar content. These internal quality factors have an important impact on the taste and nutritional value of taro. Existing technologies have obvious deficiencies in comprehensively evaluating the quality of taro. In addition, traditional manual grading methods can no longer meet the requirements of the modern market for efficiency and accuracy. Especially in large-scale production, the cost and time consumption of manual grading become a constraint. Therefore, the development of an automated grading technology that can simultaneously evaluate the appearance and internal quality of taro is of great significance to enhancing the overall competitiveness of the taro industry.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0006] The object of the present invention is to provide a machine vision fruit grading method and device for taro harvesting equipment to solve the problems raised in the above background technology.

[0007] To achieve the above object, the present invention provides a machine vision fruit grading method and device for taro harvesting equipment, and the specific steps include:

[0008] Step 1: collecting appearance images and near infrared spectrum data of taro to be classified, and extracting appearance feature information of taro from the appearance image, and extracting internal quality information of taro from the spectrum data, wherein the appearance feature information data includes color information, size information and surface defect information of taro, and the internal quality information includes moisture content data and sugar content data of taro;

[0009] Step 2: Analyze the collected taro appearance feature information, analyze the color information, size information and surface defect information data of the taro to be graded, classify the color information, size information and surface defect information of the taro and determine the grade score, and generate the appearance feature index of the taro to be graded according to the grade score of the appearance feature information;

[0010] Step 3: Analyze the collected taro internal quality information, analyze the moisture content data and sugar content data of the taro to be graded, divide the moisture content data and sugar content data of the taro to be graded into grades and determine the grade scores, and generate the internal quality index of the taro to be graded according to the grade scores of the internal quality information;

[0011] Step 4: construct an analysis model based on the appearance characteristic index and internal quality index of the taro to be graded, and generate a comprehensive quality index of the taro to be graded, which is used to reflect the overall fruit quality of the taro to be graded;

[0012] Step 5: Analyze the comprehensive quality index of the taro to be graded, compare it with the preset fruit comprehensive quality index grade range, and divide the taro to be graded into different grades.

[0013] Furthermore, the specific logic for extracting the appearance feature information of taro from the appearance image is as follows:

[0014] The collected appearance image of the taro to be classified is converted into a grayscale image, and the grayscale value of each pixel of the taro appearance image is obtained, and the taro area and the background area are segmented in the grayscale image by a set grayscale threshold; the grayscale value of each pixel is compared with the grayscale threshold, if the grayscale value of the pixel is greater than or equal to the grayscale threshold, it is judged that the position of the pixel is in the taro area, if the grayscale value of the pixel is less than the grayscale threshold, it is judged that the position of the pixel is in the background area;

[0015] The specific logic for obtaining the color information of taro is:

[0016]

[0017] in, is the grayscale mean of each pixel in the taro area, M is the total number of pixels in the taro area, β i is the gray value of the i-th pixel in the taro area;

[0018]

[0019] Among them, σ is the standard deviation of the grayscale value of each pixel in the taro area, and the standard deviation is set as color information;

[0020] The specific logic for obtaining the size information of the taro is to determine the proportion of the taro area pixels in the total pixel points of the image, and set the proportion Area as the size information;

[0021] The specific logic for obtaining the surface defect information of taro is to determine the number of pixels whose grayscale values ​​of pixels in the taro area are greater than the average grayscale value of the pixels, and set the number of pixels as the surface defect information.

[0022] Furthermore, the specific logic for extracting the internal quality information of taro from the spectral data is as follows:

[0023] The specific logic for obtaining the moisture content of taro is to determine the number of characteristic absorption peaks of the near infrared spectrum data of taro within the wavelength range of 1400-1900nm and 2200-2500nm, and determine the moisture content of taro by the number of characteristic absorption peaks within the wavelength range;

[0024] The specific logic for obtaining the sugar content of taro is to determine the number of characteristic absorption peaks in the near-infrared spectrum data of taro within the wavelength range of 1100-1200nm and 1400-1500nm, and to determine the sugar content of taro by the number of characteristic absorption peaks within the wavelength range.

[0025] Furthermore, the specific logic for classifying the color information, size information and surface defect information of taro and determining the grade scores is as follows:

[0026] Compare the standard deviation σ of the grayscale value of the pixels in the taro area with the standard deviation threshold. If σ<0.5T 1 , judge that the color grade of taro is within the normal range, and set the grade score of the normal range as C 1 , if 0.5T 1 ≤σ<T 1 , judge the color grade of taro as slightly abnormal, and set the grade score of slightly abnormal to C 2 , if σ ≥ T 1 , judge the grade of taro color as obviously abnormal, and set the grade score of obvious abnormality to C 3 , where T 1 represents the standard deviation threshold;

[0027] Determine the proportion of the number of pixels in the taro area to the total number of pixels in the image. If Area ≥ 80%, determine that the taro size is large, and set the large size grade score to Sz. 1 If 80%<Area≤50%, the size of the taro is judged to be medium, and the grade score of the medium size is set as Sz 2 If Area < 50%, the taro size is judged to be small, and the grade score of small size is set to Sz 3 ;

[0028] Determine that the gray value of the pixel in the taro area is higher than the gray mean The number of pixels, if N defect <2, the taro surface defect level is judged as no defect, and the no defect level score is set as D 1 , if 2≤N defect ≤6, the taro surface defect level is judged as a slight defect, and the grade score of the slight defect is set as D 2 , if N defect >6, the surface defect of taro is judged as obvious defect, and the grade score of obvious defect is set as D 3 , where N defect Indicates the number of pixels in the taro area whose grayscale value is higher than the grayscale mean.

[0029] Furthermore, the specific logic for classifying the moisture content and sugar content of the taro to be graded and determining the grade scores is as follows:

[0030] Determine the number of characteristic absorption peaks of taro near infrared spectrum data in the wavelength range of 1400-1900nm and 2200-2500nm. If N water ≥6, the moisture content of the taro is judged to be high, and the grade score of high moisture content is set to W 1 , if 3≤N water ≤5, the moisture content of the taro is judged to be medium moisture content, and the grade score of medium moisture content is set as W 2 , if 0≤N water ≤2, the moisture content of taro is judged to be low moisture content, and the grade score of low moisture content is set as, where N water Indicates the number of characteristic absorption peaks in the wavelength range of 1400-1900nm and 2200-2500nm;

[0031] Determine the number of characteristic absorption peaks of taro near infrared spectrum data in the wavelength range of 1100-1200nm and 1400-1500nm. If N sugar ≥6, the moisture content of the taro is judged to be high, and the grade score of high moisture content is set to W1 , if 3≤N sugar ≤5, the moisture content of the taro is judged to be medium moisture content, and the grade score of medium moisture content is set as W 2 , if 0≤N sugar ≤2, the moisture content of the taro is judged to be low moisture content, and the grade score of low moisture content is set as W 3 , where N sugar Indicates the number of characteristic absorption peaks in the wavelength range of 1100-1200nm and 1400-1500nm.

[0032] Furthermore, the specific logic for obtaining the appearance characteristic index of the taro to be graded is:

[0033]

[0034] Among them, APPE is the appearance characteristic index of taro to be graded, C i Indicates the color information grade score of taro, C 1 >C 2 >C 3 >1, S i Indicates the taro size information grade score, S 1 >S 2 >S 3 >1,D i Indicates the grade score of taro surface defect information, D 1 >D 2 >D 3 >1.

[0035] Furthermore, the specific logic for obtaining the internal quality index of the taro to be graded is:

[0036]

[0037] Among them, INQ is the internal quality index of the taro to be graded, M i Indicates the moisture content of taro, M 1 >M 2 >M 3 >1, Su i Indicates the sugar content of taro, Su 1 >Su 2 >Su 3 >1.

[0038] Furthermore, the specific logic for obtaining the comprehensive quality index of the taro to be graded is:

[0039] IQI=α*APPE+β*INQ

[0040] Wherein, IQI is the comprehensive quality index of the taro to be graded, α is the first weight coefficient, β is the second weight coefficient, α+β=1 and β>α>0.

[0041] Furthermore, the specific logic for classifying the taro to be graded into different grades is as follows:

[0042] Compare the comprehensive quality index IQI of the taro to be graded with the quality threshold. If the comprehensive quality index IQI of the taro ≥ T q , belongs to the high-quality level range, and the taro is judged to be a high-quality fruit. If the comprehensive quality index of the taro is 0.7T q ≤IQI<T q , belongs to the normal level range, and the taro is judged to be a normal quality fruit. If the comprehensive quality index of the taro is 0.5T q ≤IQI<0.7T q , belongs to the slight defect level range, the taro is judged to be defective quality fruit, if the taro comprehensive quality index IQI < 0.5T q , belongs to the defective level range, then the taro is judged to be a defective quality fruit.

[0043] The present invention further provides a machine vision fruit grading device for taro harvesting equipment, wherein the fruit grading device is used to implement the above-mentioned fruit grading method, comprising:

[0044] A fruit information collection module collects appearance images and near infrared spectrum data of taro to be graded, and extracts appearance feature information of taro from the appearance image, and extracts internal quality information of taro from the spectrum data, wherein the appearance feature information data includes color information, size information and surface defect information of taro, and the internal quality information includes water content data and sugar content data of taro;

[0045] An appearance feature analysis module analyzes the collected taro appearance feature information, analyzes the color information, size information and surface defect information data of the taro to be graded, divides the color information, size information and surface defect information of the taro into grades and determines the grade scores, and generates an appearance feature index of the taro to be graded according to the grade scores of the appearance feature information;

[0046] The internal quality analysis module analyzes the collected internal quality information of the taro, analyzes the moisture content data and sugar content data of the taro to be graded, divides the moisture content data and sugar content data of the taro to be graded into grades and determines the grade scores, and generates the internal quality index of the taro to be graded according to the grade scores of the internal quality information;

[0047] A comprehensive quality assessment module, which constructs an analysis model based on the appearance characteristic index and internal quality index of the taro to be graded, and generates a comprehensive quality index of the taro to be graded, which is used to reflect the overall fruit quality of the taro to be graded;

[0048] The fruit grading decision module analyzes the comprehensive quality index of the taro to be graded, compares it with the preset fruit comprehensive quality index grade range, and divides the taro to be graded into different grades.

[0049] Compared with the prior art, the present invention has the following beneficial effects:

[0050] The taro fruit grading method of the present invention realizes a comprehensive and automated evaluation of the appearance and internal quality of taro by integrating advanced image processing technology and near-infrared spectroscopy analysis technology. The method not only significantly improves the efficiency and accuracy of the grading process, but also effectively avoids subjective errors in manual grading through objective data analysis, ensuring the consistency and reliability of the grading results. In addition, by accurately evaluating the internal quality indicators of moisture and sugar content of taro, the method can better meet consumers' demand for high-quality taro and enhance the market competitiveness of taro. In general, the method of the present invention not only improves the technical level of taro grading, but also provides strong technical support for the development of the taro industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a schematic diagram of the overall method flow of the present invention.

[0052] Figure 2 Schematic diagram of the system structure of the present invention. DETAILED DESCRIPTION

[0053] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0054] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0055] Example:

[0056] See also Figure 1 The present invention provides a machine vision fruit grading method for taro harvesting equipment, and the specific steps include:

[0057] Step 1: collecting appearance images and near infrared spectrum data of taro to be classified, and extracting appearance feature information of taro from the appearance image, and extracting internal quality information of taro from the spectrum data, wherein the appearance feature information data includes color information, size information and surface defect information of taro, and the internal quality information includes moisture content data and sugar content data of taro;

[0058] In this embodiment, the appearance image of the collected taro to be classified is converted into a grayscale image, and the grayscale value of each pixel of the grayscale image of the taro to be classified is calculated. The formula for calculating the grayscale value of each pixel is:

[0059] Y=0.299R+0.587G+0.114B

[0060] Among them, Y is the grayscale value of the pixel, R, G, and B are the intensity values ​​of the red, green, and blue components respectively; the grayscale image only contains brightness information but not color information, so the data volume is smaller than that of the color image and it is more efficient to process. The grayscale image provides a unified brightness standard, which is convenient for comparing the color information, size information, and surface defect information between different taro, and can highlight these features more clearly, which helps to improve the accuracy of image analysis.

[0061] The taro region and the background region are segmented in the grayscale image by a set grayscale threshold, and the grayscale value of each pixel is compared with the grayscale threshold. If the grayscale value of the pixel is greater than or equal to the grayscale threshold, it is judged that the position of the pixel is in the taro region; if the grayscale value of the pixel is less than the grayscale threshold, it is judged that the position of the pixel is in the background region;

[0062] There is usually a brightness difference between taro and the background. The taro area may be darker than the background area. By setting the grayscale threshold, the pixels in the image can be divided into the taro area and the background area. When the grayscale value of the pixel increases, if it exceeds the grayscale threshold, it is classified as part of the taro area. On the contrary, if the grayscale value of the pixel decreases and is lower than the threshold, the pixel will be classified as part of the background area.

[0063] The specific logic for obtaining the color information of taro is:

[0064]

[0065] in, is the grayscale mean of each pixel in the taro area, M is the total number of pixels in the taro area, β i is the gray value of the i-th pixel in the taro area;

[0066]

[0067] Among them, σ is the standard deviation of the grayscale value of each pixel in the taro area, and the standard deviation is set as color information;

[0068] The standard deviation is a statistic that measures the degree of dispersion of data distribution. It can be used to evaluate the degree of change in the grayscale value of pixels in an image, thereby indirectly reflecting color uniformity. In the taro image, the grayscale value of each pixel can be regarded as a simplified representation of color information. By calculating the standard deviation of the grayscale value of the pixel, we can obtain a quantitative indicator of the color uniformity of the taro. If the grayscale values ​​of most pixels in the taro image are close to the average grayscale value, the standard deviation is small, indicating that the color of the taro is relatively uniform; conversely, if the grayscale value distribution of the taro pixels is relatively dispersed, the standard deviation is large, indicating that the color distribution of the taro is uneven.

[0069] The specific logic for obtaining the size information of the taro is to determine the proportion of the taro area pixels in the total pixel points of the image, and set the proportion Area as the size information;

[0070] When the grayscale values ​​of the pixels in the taro area and the grayscale values ​​of the pixels in the background area are at different thresholds, the larger the taro, the more pixels in the taro area, and the larger the proportion of the pixels in the whole image. On the contrary, the smaller the taro, the fewer pixels in the taro area, and the smaller the proportion of the pixels in the whole image. Therefore, the size of the taro can be judged by the proportion of the pixels in the taro area in the whole image.

[0071] The specific logic for obtaining the surface defect information of taro is to determine the number of pixels whose grayscale values ​​of pixels in the taro area are greater than the grayscale mean of the pixels, and set the number of pixels as the surface defect information;

[0072] Defects on the taro surface usually cause the grayscale value of the local area to be different from the overall average grayscale value. By counting the number of pixels with a grayscale value higher than the average grayscale value, the degree of defects on the taro surface can be quickly evaluated.

[0073] In this embodiment, the specific logic for extracting the internal quality information of taro from the spectral data is as follows:

[0074] The specific logic for obtaining the moisture content of taro is to determine the number of characteristic absorption peaks of the near infrared spectrum data of taro within the wavelength range of 1400-1900nm and 2200-2500nm, and determine the moisture content of taro by the number of characteristic absorption peaks within the wavelength range;

[0075] The wavelength ranges of 1400-1900nm and 2200-2500nm are selected because the absorption peaks in these regions have a good correlation with the moisture content, and the spectral data within these wavelength ranges are relatively easy to obtain and analyze. In addition, the spectral data within these wavelength ranges are less disturbed by other components (such as starch, protein, etc.), so this wavelength range is more suitable for the detection of moisture content. When near-infrared light is irradiated onto taro, water molecules absorb light of specific wavelengths, causing the light intensity of these wavelengths to weaken and form absorption peaks. The higher the moisture content in taro, the more absorption peaks its near-infrared spectrum has in these wavelength ranges. Therefore, by counting the number of absorption peaks within these wavelength ranges, the moisture content in taro can be indirectly estimated.

[0076] The specific logic for obtaining the sugar content of taro is to determine the number of characteristic absorption peaks of the near infrared spectrum data of taro within the wavelength range of 1100-1200nm and 1400-1500nm, and determine the sugar content of taro by the number of characteristic absorption peaks within the wavelength range;

[0077] The wavelength ranges of 1100-1200nm and 1400-1500nm were selected because the absorption peaks in these regions have a good correlation with the sugar content. The strong absorption bands of sugar molecules in the near-infrared spectrum are mainly concentrated in the wavelength ranges of 1100-1200nm and 1400-1500nm. These absorption bands are caused by the stretching vibration and bending vibration of the CH and OH bonds in the sugar molecules. When near-infrared light is irradiated on taro, the sugar molecules will absorb light of specific wavelengths, causing the light intensity of these wavelengths to weaken and form absorption peaks. The higher the sugar content in taro, the more absorption peaks its near-infrared spectrum has in these wavelength ranges. If the sugar content in taro is lower, the corresponding near-infrared spectrum has fewer absorption peaks in these wavelength ranges.

[0078] Step 2: Analyze the collected taro appearance feature information, analyze the color information, size information and surface defect information data of the taro to be graded, classify the color information, size information and surface defect information of the taro and determine the grade score, and generate the appearance feature index of the taro to be graded according to the grade score of the appearance feature information;

[0079] In this embodiment, the specific logic for classifying the color information, size information, and surface defect information of taro and determining the grade scores is as follows:

[0080] Compare the standard deviation σ of the grayscale value of the pixels in the taro area with the standard deviation threshold. If σ<0.5T 1 , judge that the color grade of taro is within the normal range, and set the grade score of the normal range as C 1 , if 0.5T 1 ≤σ<T 1 , judge the color grade of taro as slightly abnormal, and set the grade score of slightly abnormal to C 2 , if σ ≥ T 1 , judge the grade of taro color as obviously abnormal, and set the grade score of obvious abnormality to C 3 , where T 1 represents the standard deviation threshold;

[0081] The color of taro is usually closely related to its maturity, nutritional status and health status. Taro with uniform color and meeting the standards is often of better quality, while abnormal color may indicate that the taro has disease, malnutrition or other problems. Color consistency and brightness are important visual indicators for consumers when choosing taro, so color information is one of the important bases for evaluating taro grade.

[0082] Determine the proportion of the number of pixels in the taro area to the total number of pixels in the image. If Area ≥ 80%, determine that the taro size is large, and set the large size grade score to Sz. 1 If 80%<Area≤50%, the size of the taro is judged to be medium, and the grade score of the medium size is set as Sz 2 If Area < 50%, the taro size is judged to be small, and the grade score of small size is set to Sz 3 ;

[0083] The size information of taro is not only directly related to the yield and use value of taro, but also affects consumers' purchasing decisions and the packaging and transportation efficiency of the product. Large-sized taro is generally considered to be of better quality and suitable for display and high-end markets; medium-sized taro meets the needs of most consumers and is the mainstream product on the market; small-sized taro may be popular in certain specific uses or niche markets, but its overall market value is relatively low. The grayscale value of the pixel point in the taro area and the grayscale value of the pixel point in the background area are at different thresholds. Therefore, the size of the taro can be judged by judging the ratio of the number of pixels in the taro area to the total number of pixels in the image.

[0084] Determine that the gray value of the pixel in the taro area is higher than the gray mean The number of pixels, if N defect <2, the taro surface defect level is judged as no defect, and the no defect level score is set as D 1, if 2≤N defect ≤6, the taro surface defect level is judged as a slight defect, and the grade score of the slight defect is set as D 2 , if N defect >6, the surface defect of taro is judged as obvious defect, and the grade score of obvious defect is set as D 3 , where N defect Indicates the number of pixels in the taro area whose grayscale value is higher than the grayscale mean;

[0085] The surface defect information of taro is selected as the basis for grading because the surface condition is directly related to the appearance, food safety and market acceptance of taro. The surface of defect-free taro is smooth, which not only enhances the visual appeal of the product, but also ensures its good preservation and taste, and is a sign of high-quality products. Although taro with slight defects has slight flaws in appearance, it usually does not affect its edible value and overall quality, and can still meet the needs of most consumers. Taro with obvious defects may affect its shelf life and taste due to severe surface damage, reducing its market value. Usually, the grayscale value of the pixel in the defective area is larger, so the degree of defect on the taro surface is judged by judging the number of pixel grayscale values ​​greater than the image grayscale mean.

[0086] In this embodiment, the formula for obtaining the appearance characteristic index of the taro to be graded is:

[0087]

[0088] Among them, APPE is the appearance characteristic index of taro to be graded, C i Indicates the color information grade score of taro, C 1 >C 2 >C 3 >1, S i Indicates the taro size information grade score, S 1 >S 2 >S 3 >1,D i Indicates the grade score of taro surface defect information, D 1 >D 2 >D 3 >1;

[0089] This formula reflects the relationship between the appearance characteristic index and the color information grade score, size information grade score and surface defect information grade score of taro. The color, size and surface defect of taro are often important visual indicators for consumers to buy. The more uniform the color of the taro surface, the higher the color grade score C. i The higher the value, the greater the corresponding appearance characteristic index APPE; if the color of the taro surface is uneven, there are spots or obvious color abnormalities, the color grade score C iThe lower the value, the smaller the corresponding appearance characteristic index APPE. If the volume of taro is larger, the size grade score S i The higher the value, the larger the corresponding appearance characteristic index APPE; if the taro volume is smaller, the size grade score S i The lower the value, the smaller the corresponding appearance characteristic index APPE. If the surface defects of taro are less or even absent, the surface defect grade score D i The lower the value, the larger the corresponding appearance characteristic index APPE; if the taro has more surface defects, the surface defect grade score D i The higher the value, the smaller the corresponding appearance feature index APPE. In addition, different weight coefficients are corresponding to different appearance features to better reflect the impact of different features on taro grading.

[0090] Step 3: Analyze the collected internal quality information of taro, analyze the moisture content data and sugar content data of the taro to be graded, divide the moisture content data and sugar content data of the taro to be graded into grades and determine the grade scores, and generate the internal quality index of the taro to be graded according to the grade scores of the internal quality information;

[0091] In the present embodiment, the specific logic for dividing the grades of the moisture content and sugar content of the taro to be classified and determining the grade scores is as follows:

[0092] Determine the number of characteristic absorption peaks of taro near infrared spectrum data in the wavelength range of 1400-1900nm and 2200-2500nm. If N water ≥6, the moisture content of the taro is judged to be high, and the grade score of high moisture content is set to W 1 , if 3≤N water ≤5, the moisture content of the taro is judged to be medium moisture content, and the grade score of medium moisture content is set as W 2 , if 0≤N water ≤2, the moisture content of taro is judged to be low moisture content, and the grade score of low moisture content is set as, where N water Indicates the number of characteristic absorption peaks in the wavelength range of 1400-1900nm and 2200-2500nm;

[0093] Determine the number of characteristic absorption peaks of taro near infrared spectrum data in the wavelength range of 1100-1200nm and 1400-1500nm. If N sugar ≥6, the moisture content of the taro is judged to be high, and the grade score of high moisture content is set to W 1 , if 3≤N sugar ≤5, the moisture content of the taro is judged to be medium moisture content, and the grade score of medium moisture content is set as W 2 , if 0≤Nsugar ≤2, the moisture content of the taro is judged to be low moisture content, and the grade score of low moisture content is set as W 3 , where N sugar Indicates the number of characteristic absorption peaks in the wavelength range of 1100-1200nm and 1400-1500nm;

[0094] The moisture content of taro directly affects its taste and shelf life. Taro with moderate moisture content tastes better and is less likely to deteriorate in quality during storage. The sugar content of taro is an important indicator for measuring the flavor and sweetness of taro. Taro with high sugar content is usually more popular with consumers because they have better taste and flavor. Therefore, the moisture content and sugar content of taro are key indicators for internal quality assessment of taro.

[0095] In this embodiment, the formula for obtaining the internal quality index of taro to be graded is:

[0096]

[0097] Among them, INQ is the internal quality index of the taro to be graded, M i Indicates the moisture content of taro, M 1 >M 2 >M 3 >1, Su i Indicates the sugar content of taro, Su 1 >Su 2 >Su 3 >1.

[0098] The internal quality index is constructed by integrating the two internal quality information of taro, namely, the moisture content and sugar content. The higher the moisture content of taro, the higher the moisture content grade score M. i The larger the value, the higher the corresponding internal quality index INQ; if the moisture content of taro is lower, the moisture content grade score M i The smaller the value, the lower the corresponding internal quality index INQ. If the sugar content of taro is higher, the sugar content grade score Su i The larger the value, the higher the corresponding internal quality index INQ; if the sugar content of taro is lower, the sugar content grade score Su i The smaller it is, the lower the corresponding internal quality index INQ is.

[0099] Step 4: construct an analysis model based on the appearance characteristic index and internal quality index of the taro to be graded, and generate a comprehensive quality index of the taro to be graded, which is used to reflect the overall fruit quality of the taro to be graded;

[0100] In this embodiment, the specific logic for obtaining the comprehensive quality index of taro to be graded is:

[0101] IQI=a*APPE+β*INQ

[0102] Wherein, IQI is the comprehensive quality index of the taro to be graded, α is the first weight coefficient, β is the second weight coefficient, α+β=1 and β>α>0.

[0103] The appearance characteristic index APPE reflects the visual quality of taro, while the internal quality index INQ reflects the taste and nutritional value of taro. Both APPE and INQ are positively proportional to the comprehensive quality index IQI. The higher the values ​​of PPE and INQ, the better the appearance and internal quality of taro, and the higher the comprehensive quality index IQI. This formula combines the appearance and internal quality characteristics of taro through weighted summation, which can fully reflect the quality of taro and help to make more accurate grading. The choice of weight coefficient also reflects the importance of internal quality relative to appearance quality, and is also based on the specific needs of the market or consumers for taro quality.

[0104] Step 5: Analyze the comprehensive quality index of the taro to be graded, compare it with the preset fruit comprehensive quality index grade interval, and divide the taro to be graded into different grades;

[0105] In the present embodiment, the specific logic that taro to be classified is divided into different grades is as follows:

[0106] Compare the comprehensive quality index IQI of the taro to be graded with the quality threshold. If the comprehensive quality index IQI of the taro ≥ T q , belongs to the high-quality level range, and the taro is judged to be a high-quality fruit. If the comprehensive quality index of the taro is 0.7T q ≤IQI<T q , belongs to the normal level range, and the taro is judged to be a normal quality fruit. If the comprehensive quality index of the taro is 0.5T q ≤IQI<0.7T q , belongs to the slight defect level range, the taro is judged to be defective quality fruit, if the taro comprehensive quality index IQI < 0.5T q , belongs to the defective level interval, then the taro is judged to be defective quality fruit, among which T q Indicates the quality threshold.

[0107] See also Figure 2 The present invention further provides a machine vision fruit grading device for taro harvesting equipment, wherein the fruit grading device is used to implement the above-mentioned fruit grading method, comprising:

[0108] A fruit information collection module collects appearance images and near infrared spectrum data of taro to be graded, and extracts appearance feature information of taro from the appearance image, and extracts internal quality information of taro from the spectrum data, wherein the appearance feature information data includes color information, size information and surface defect information of taro, and the internal quality information includes water content data and sugar content data of taro;

[0109] An appearance feature analysis module analyzes the collected taro appearance feature information, analyzes the color information, size information and surface defect information data of the taro to be graded, divides the color information, size information and surface defect information of the taro into grades and determines the grade scores, and generates an appearance feature index of the taro to be graded according to the grade scores of the appearance feature information;

[0110] The internal quality analysis module analyzes the collected internal quality information of the taro, analyzes the moisture content data and sugar content data of the taro to be graded, divides the moisture content data and sugar content data of the taro to be graded into grades and determines the grade scores, and generates the internal quality index of the taro to be graded according to the grade scores of the internal quality information;

[0111] A comprehensive quality assessment module, which constructs an analysis model based on the appearance characteristic index and internal quality index of the taro to be graded, and generates a comprehensive quality index of the taro to be graded, which is used to reflect the overall fruit quality of the taro to be graded;

[0112] The fruit grading decision module analyzes the comprehensive quality index of the taro to be graded, compares it with the preset fruit comprehensive quality index grade range, and divides the taro to be graded into different grades.

[0113] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0114] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.

[0115] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0116] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A machine vision fruit grading method for taro harvesting equipment, characterized in that, The specific steps include: Step 1: collecting appearance images and near infrared spectrum data of taro to be classified, and extracting appearance feature information of taro from the appearance image, and extracting internal quality information of taro from the spectrum data, wherein the appearance feature information data includes color information, size information and surface defect information of taro, and the internal quality information includes moisture content data and sugar content data of taro; Step 2: Analyze the collected taro appearance feature information, analyze the color information, size information and surface defect information data of the taro to be graded, classify the color information, size information and surface defect information of the taro and determine the grade score, and generate the appearance feature index of the taro to be graded according to the grade score of the appearance feature information; Step 3: Analyze the collected taro internal quality information, analyze the moisture content data and sugar content data of the taro to be graded, divide the moisture content data and sugar content data of the taro to be graded into grades and determine the grade scores, and generate the internal quality index of the taro to be graded according to the grade scores of the internal quality information; Step 4: construct an analysis model based on the appearance characteristic index and internal quality index of the taro to be graded, and generate a comprehensive quality index of the taro to be graded, which is used to reflect the overall fruit quality of the taro to be graded; Step 5: Analyze the comprehensive quality index of the taro to be graded, compare it with the preset fruit comprehensive quality index grade range, and divide the taro to be graded into different grades.

2. The machine vision fruit grading method for taro harvesting equipment according to claim 1, characterized in that: The specific logic for extracting the appearance feature information of taro from the appearance image is as follows: The collected appearance image of the taro to be classified is converted into a grayscale image, and the grayscale value of each pixel of the taro appearance image is obtained, and the taro area and the background area are segmented in the grayscale image by a set grayscale threshold; the grayscale value of each pixel is compared with the grayscale threshold, if the grayscale value of the pixel is greater than or equal to the grayscale threshold, it is judged that the position of the pixel is in the taro area, if the grayscale value of the pixel is less than the grayscale threshold, it is judged that the position of the pixel is in the background area; The specific logic for obtaining the color information of taro is: in, is the grayscale mean of each pixel in the taro area, M is the total number of pixels in the taro area, β i is the gray value of the i-th pixel in the taro area; Among them, σ is the standard deviation of the grayscale value of each pixel in the taro area, and the standard deviation is set as color information; The specific logic for obtaining the size information of the taro is to determine the proportion of the taro area pixels in the total pixel points of the image, and set the proportion Area as the size information; The specific logic for obtaining the surface defect information of taro is to determine the number of pixels whose grayscale values ​​of pixels in the taro area are greater than the average grayscale value of the pixels, and set the number of pixels as the surface defect information.

3. The machine vision fruit grading method for taro harvesting equipment according to claim 2, characterized in that, The specific logic for extracting the internal quality information of taro from spectral data is as follows: The specific logic for obtaining the moisture content of taro is to determine the number of characteristic absorption peaks of the near infrared spectrum data of taro within the wavelength range of 1400-1900nm and 2200-2500nm, and determine the moisture content of taro by the number of characteristic absorption peaks within the wavelength range; The specific logic for obtaining the sugar content of taro is to judge the number of characteristic absorption peaks in the wavelength ranges of 1100 - 1200 nm and 1400 - 1500 nm of the near-infrared spectrum data of taro, and judge the sugar content of taro based on the number of characteristic absorption peaks in this wavelength range.

4. The machine vision fruit grading method for taro harvesting equipment according to claim 3, characterized in that: The specific logic for classifying the grades of the color information, size information, and surface defect information of taro and determining the grade scores is as follows: Compare the standard deviation σ of the gray values of the pixel points in the taro area with the standard deviation threshold. If σ < 0.5T1, judge that the grade of the taro color is in the normal range, and set the grade score for the normal range as C1. If 0.5T1 ≤ σ < T1, judge that the grade of the taro color is slightly abnormal, and set the grade score for the slightly abnormal as C2. If σ ≥ T1, judge that the grade of the taro color is significantly abnormal, and set the grade score for the significantly abnormal as C3, where T1 represents the standard deviation threshold; Judge the proportion Area of the number of pixel points in the taro area in the total number of pixel points in the image. If Area ≥ 80%, judge that the grade of the taro size is large size, and set the grade score for the large size as Sz1. If 80% < Area ≤ 50%, judge that the size of the taro is medium size, and set the grade score for the medium size as Sz2. If Area < 50%, judge that the size of the taro is small size, and set the grade score for the small size as Sz3; Determine that the gray value of the pixel in the taro area is higher than the gray mean The number of pixels, if N defect <2, the level of taro surface defects is judged as no defect, and the level score of no defect is set as D1. If 2≤N defect ≤6, the level of taro surface defects is judged as slight defects, and the level score of slight defects is set as D2. If N defect >6, the level of taro surface defects is judged as obvious defects, and the level score of obvious defects is set to D3, where N defect Indicates the number of pixels in the taro area whose grayscale value is higher than the grayscale mean.

5. The machine vision fruit grading method for taro harvesting equipment according to claim 4, characterized in that, The specific logic for classifying the grades of the moisture content and sugar content of the taro to be graded and determining the grade scores is as follows: Determine the number of characteristic absorption peaks of taro near infrared spectrum data in the wavelength range of 1400-1900nm and 2200-2500nm. If N water ≥6, the moisture content of the taro is judged to be high, and the grade score of high moisture content is set to W1. If 3≤N water ≤5, the moisture content of the taro is judged to be medium moisture content, and the medium moisture content grade score is set to W2. If 0≤N water ≤2, the moisture content of taro is judged to be low moisture content, and the grade score of low moisture content is set as, where N water Indicates the number of characteristic absorption peaks in the wavelength range of 1400-1900nm and 2200-2500nm; Determine the number of characteristic absorption peaks of taro near infrared spectrum data in the wavelength range of 1100-1200nm and 1400-1500nm. If N sugar ≥6, the moisture content of the taro is judged to be high, and the grade score of high moisture content is set to W1. If 3≤N sugar ≤5, the moisture content of the taro is judged to be medium moisture content, and the medium moisture content grade score is set to W2. If 0≤N sugar ≤2, the moisture content of taro is judged to be low moisture content, and the grade score of low moisture content is set to W3, where N sugar Indicates the number of characteristic absorption peaks in the wavelength range of 1100-1200nm and 1400-1500nm.

6. The machine vision fruit grading method for taro harvesting equipment according to claim 5, characterized in that: The specific logic for obtaining the appearance feature index of the taro to be graded is as follows: Among them, APPE is the appearance characteristic index of taro to be graded, C i Indicates the color information grade score of taro, C1>C2>C3>1, S i Indicates the grade score of taro size information, S1>S2>S3>1, D i Represents the grade score of taro surface defect information, D1>D2>D3>1.

7. The machine vision fruit grading method for taro harvesting equipment according to claim 6, characterized in that: The specific logic for obtaining the internal quality index of the taro to be graded is as follows: Among them, INQ is the internal quality index of the taro to be graded, M i Indicates the moisture content of taro, M1>M2>M3>1,Su i Indicates the grade score of taro sugar content information, Su1>Su2>Su3>1.

8. The machine vision fruit grading method for taro harvesting equipment according to claim 7, characterized in that: The specific logic for obtaining the comprehensive quality index of the taro to be graded is as follows: IQI = α * APPE + β * INQ Among them, IQI is the comprehensive quality index of the taro to be graded, α is the first weight coefficient, β is the second weight coefficient, α + β = 1 and β > α > 0.

9. The machine vision fruit grading method for taro harvesting equipment according to claim 8, characterized in that: The specific logic for classifying the taro to be graded into different grades is as follows: The comprehensive quality index IQI of the taro to be graded is compared with the quality threshold. If the comprehensive quality index IQI of the taro ≥ T q , belongs to the high-quality level range, and the taro is judged to be a high-quality fruit. If the comprehensive quality index of the taro is 0.7T q ≤IQI <T q , belongs to the normal level range, and the taro is judged to be a normal quality fruit. If the comprehensive quality index of the taro is 0.5T q ≤IQI<0.7T q , belongs to the slight defect level range, the taro is judged to be defective quality fruit, if the taro comprehensive quality index IQI<0.5T q , belongs to the defective level range, then the taro is judged to be a defective quality fruit.

10. A machine vision fruit grading device for taro harvesting equipment, characterized in that: The fruit grading device is used to implement the fruit grading method according to any one of claims 1 - 9, and includes: A fruit information acquisition module that acquires the appearance image and near-infrared spectrum data of the taro to be graded, extracts the appearance feature information of the taro from the appearance image, and extracts the internal quality information of the taro from the spectrum data. The appearance feature information data includes the color information, size information, and surface defect information of the taro, and the internal quality information includes the moisture content data and sugar content data of the taro; An appearance feature analysis module that analyzes the acquired appearance feature information of the taro. By analyzing the color information, size information, and surface defect information data of the taro to be graded, it classifies the grades of the color information, size information, and surface defect information of the taro and determines the grade scores, and generates the appearance feature index of the taro to be graded based on the grade scores of the appearance feature information. The internal quality analysis module analyzes the collected internal quality information of the taro, analyzes the moisture content data and sugar content data of the taro to be graded, divides the moisture content data and sugar content data of the taro to be graded into grades and determines the grade scores, and generates the internal quality index of the taro to be graded according to the grade scores of the internal quality information; A comprehensive quality assessment module, which constructs an analysis model based on the appearance characteristic index and internal quality index of the taro to be graded, and generates a comprehensive quality index of the taro to be graded, which is used to reflect the overall fruit quality of the taro to be graded; The fruit grading decision module analyzes the comprehensive quality index of the taro to be graded, compares it with the preset fruit comprehensive quality index grade range, and divides the taro to be graded into different grades.

Citation Information

Patent Citations

  • Online nondestructive testing (NDT) method and device for comprehensive internal / external qualities of fruits

    CN101949686A

  • Method for scoring and controlling quality of food products in a dynamic production line

    CN104871175A

  • Hyperspectral detection method of dried scallop moisture content

    CN104949927A

  • Online visual inspection grading device and method for red grape fruit powder

    CN108318494A

  • Potato browning detection method based on machine vision

    CN112734688A

Cited By

  • Method, system and device for judging and classifying target maturity of apple picking robot

    CN121128456A

  • Tricholoma matsutake quality monitoring method and system

    CN122709354A

  • Method for detecting appearance defects of polygonatum sibiricum rhizome based on computer vision

    CN122906016A