A rapid detection device and method for citrus Huanglongbing
Through the detection device and method of citrus Huanglongbing based on transmission and reflection polarization imaging technology, combined with the linear discriminant analysis algorithm, the problem of low accuracy of existing detection methods and difficulty in distinguishing zinc deficiency Huanglongbing has been solved, and the detection of citrus Huanglongbing has been realized. Fast, accurate detection and early identification.
Patent Information
- Application Number
- CN202210180565.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-02-25
AI Technical Summary
Existing citrus Huanglongbing detection methods have low accuracy and are not suitable for large-scale field application. In particular, the difficulty of distinguishing zinc deficiency and zinc-deficiency Huanglongbing is more prominent.
A rapid detection device and method for citrus huanglongbing based on transmission and reflection polarization imaging technology is adopted. Through the combination of image acquisition unit and control unit, reflection and transmission images are obtained respectively using 660nm and 590nm light sources. Combined with the linear discriminant analysis algorithm, a stepwise classification model is established. , identify the broad categories of health, Huanglongbing and zinc deficiency, and subdivide them into zinc deficiency and zinc deficiency-type Huanglongbing.
It has achieved rapid and accurate on-site detection of citrus Huanglongbing, improved the identification accuracy, especially solved the problem of distinguishing zinc deficiency and zinc-deficient Huanglongbing, and enhanced the sensitivity to early-stage Huanglongbing.
Smart Images

Figure CN114674759B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of plant disease detection, and in particular to a rapid detection device and method for citrus Huanglongbing disease. Background Art
[0002] China is one of the important production areas of citrus, with an annual output of 38.19 million tons, ranking first in the world. Citrus Huanglongbing, also known as yellow tip disease, is a disease caused by bacteria of the genus Bacillus and is mainly transmitted by insect vectors. After infection, spots and yellow buds will appear on the leaves of the plant, and the surface of the leaves will show yellow and green mottled yellowing. Huanglongbing is highly contagious and harmful. It not only affects the quality of the fruit, but also causes the death of citrus plants. In severe cases, it will cause the entire orchard to lose its economic value. There is still no effective treatment in the world. Detecting and removing diseased plants is one of the most effective ways to control the spread of Huanglongbing. Therefore, the development of rapid and effective Huanglongbing detection technology is of great significance to realize on-site detection of citrus Huanglongbing and control the large-scale spread of Huanglongbing.
[0003] Currently, there are mainly three methods for detecting Huanglongbing: naked eye observation, molecular biology-based detection, and atlas-based detection. Naked eye observation requires detection by experienced technicians in the late stage of infection, which relies on rich detection experience and has a low accuracy rate. The molecular biology-based detection method can quantitatively detect Candida species related to citrus Huanglongbing and is the most effective for Huanglongbing detection, but this method needs to be completed in the laboratory, which is expensive and time-consuming, and is not suitable for large-scale application in orchards. The atlas-based detection method relies on the appearance of typical symptoms and is affected by light conditions, which can easily lead to misjudgment.
[0004] The prior art discloses a rapid detection method for citrus Huanglongbing, which uses only a single value of optical rotation as the basis for judgment and cannot identify starch accumulation caused by different stresses, which is prone to misjudgment. The prior art also discloses a citrus Huanglongbing detection method based on visible light imaging technology. This method is greatly affected by outdoor lighting conditions, and the consistency and stability of the image are weak, which is not conducive to the extraction of leaf surface texture features and is prone to misjudgment. Summary of the invention
[0005] In view of the shortcomings in the prior art, the present invention provides a rapid detection device and method for citrus Huanglongbing disease, which is based on the fusion of transmissive and reflective polarization imaging technology and can obtain the surface texture information of citrus leaves and the degree of starch accumulation in the leaves, thereby realizing on-site rapid detection of citrus Huanglongbing disease and partial nutrient deficiencies.
[0006] The present invention achieves the above technical objectives through the following technical means.
[0007] A rapid detection device for citrus Huanglongbing disease, comprising: an image acquisition unit and a control unit;
[0008] The image acquisition unit includes a light shielding box and a polarization camera, a short-focus lens, a first light averaging plate, a first linear polarizer, a sample stage, a sample pressing plate, a second linear polarizer, a second light averaging plate, a first LED light source and a second LED light source located in the light shielding box;
[0009] The short-focus lens is mounted on the polarization camera, the first light averaging plate is overlapped and placed above the first linear polarizer, the first light averaging plate and the first linear polarizer are both provided with a second through hole, the short-focus lens passes through the second through hole, and its end face is flush with the bottom face of the first linear polarizer, the linear polarization direction of the first linear polarizer is parallel to the 0° direction of the micro-polarization element inside the polarization camera, the first LED light source is placed above the first light averaging plate, the sample stage is designed to be movable, and is placed on the sample pressing plate when collecting reflection images, and the sample stage is taken out when collecting transmission images;
[0010] The second LED light source is placed at the bottom of the light-shielding box, the second light-homogenizing plate is placed above the second LED light source, the second linear polarizer is overlapped and placed above the second light-homogenizing plate, the linear polarization direction of the second linear polarizer is parallel to the 0° direction of the micro-polarization element inside the polarization camera, the sample pressing plate is overlapped and placed on the second linear polarizer, and a third through hole is provided in the center of the sample pressing plate, so that the polarization camera can collect polarized light transmitted through the leaf sample.
[0011] The light emitted by the first LED light source is homogenized by the first homogenizing plate and then converted into linearly polarized light by the first linear polarizer, and irradiates the leaf sample on the sample stage. The reflected and scattered light generated by the illuminated sample is collected by the polarization camera, and the signal is transmitted to the control unit for the next step of processing.
[0012] The light emitted by the second LED light source is homogenized by the second homogenizing plate and then converted into linearly polarized light by the second linear polarizer. The light passes through the leaf sample placed under the sample pressing plate and then passes through the third through hole to be collected by the polarization camera. The signal is transmitted to the control unit for further processing.
[0013] Preferably, according to the difference in absorption rates of chlorophyll and lutein under light sources of different wavelengths, the first LED light source selects a 660nm narrow-band light source, the first LED light source includes a heat dissipation substrate and a plurality of lamp beads, the heat dissipation substrate is an aluminum plate, a first through hole is provided on the heat dissipation substrate, the short-focus lens passes through the first through hole, the plurality of lamp beads are connected in series, and the plurality of lamp beads are evenly distributed along the circumference with the axis of the first through hole as the center.
[0014] Preferably, since the optical rotation of starch is strongest at 590nm, the second LED light source selects a 590nm narrow-band light source, and the second LED light source includes a heat dissipation substrate and a plurality of lamp beads, the heat dissipation substrate is an aluminum plate, and the plurality of lamp beads are connected in series and evenly arranged in an array on the heat dissipation substrate.
[0015] Preferably, the main parameters of the short-focus lens are as follows: focal length 8 mm, 5 million pixels, and minimum working distance 50 mm.
[0016] Preferably, the distance between the short-focus lens and the sample stage is 130 mm.
[0017] Preferably, the distance between the first light emitting plate and the first LED light source is 50 mm, and the distance between the second light emitting plate and the second LED light source is 50 mm.
[0018] Preferably, a layer of black light-absorbing cloth is provided on the upper surface of the sample stage to simplify the background of image segmentation.
[0019] Preferably, the third through hole of the sample pressing plate is an ellipse of fixed size.
[0020] The present invention also provides a detection method of the above-mentioned citrus Huanglongbing rapid detection device, comprising:
[0021] Step 1: Collect reflection images and transmission images of sample leaves with different disease types;
[0022] Step 2: preprocess the collected transmission image and extract image features;
[0023] Step 3: Preprocess the collected reflection image and extract image features;
[0024] Step 4: Establish a stepwise classification model and use the linear discriminant analysis (LDA) algorithm to identify leaves of each disease type step by step.
[0025] Preferably, the step 1 is specifically:
[0026] Step 1.1: using the first LED light source, the first light homogenizing plate and the first linear polarizer to generate uniform 0° linear polarized light, the 0° linear polarized light irradiates the leaf sample to be tested, and is collected by the polarization camera to generate reflected polarized images with four polarization angles, namely, a 0° reflected polarized image, a 45° reflected polarized image, a 90° reflected polarized image and a 135° reflected polarized image;
[0027] Step 1.2: Use the second LED light source, the second light homogenizer and the second linear polarizer to generate uniform 0° linear polarized light. The 0° linear polarized light transmits the leaf sample to be tested and is collected by the polarization camera to generate transmission polarization images with four polarization angles, namely, a 0° transmission polarization image, a 45° transmission polarization image, a 90° transmission polarization image and a 135° transmission polarization image.
[0028] Among them, the 0° polarization image is: an image formed by the linear polarized light generated by the 0° micro-polarization element and the first linear polarizer (second linear polarizer) in the polarization camera; the 45° polarization image is: an image formed by the linear polarized light generated by the 45° micro-polarization element and the first linear polarizer (second linear polarizer) in the polarization camera; the 90° polarization image is: an image formed by the linear polarized light generated by the 90° micro-polarization element and the first linear polarizer (second linear polarizer) in the polarization camera; the 135° polarization image is: an image formed by the linear polarized light generated by the 135° micro-polarization element and the first linear polarizer (second linear polarizer) in the polarization camera.
[0029] Preferably, the specific steps of preprocessing the collected transmission image in step 2 are:
[0030] Step 2.1: extracting the leaf image passing through the third through hole using a threshold segmentation method;
[0031] Step 2.2: Use the Stokes vector method to describe the transmitted light:
[0032]
[0033] In the above formula, S 0 is the light intensity parameter, S 1 is the first polarization parameter, S 2 is the second polarization parameter, S 3 is the circular polarization parameter, I represents the light intensity and, Q represents the intensity difference of linear polarized light in the directions of 0° and 90°, U represents the intensity difference of linear polarized light in the directions of 45° and 135°, and V represents the intensity difference of right-handed circularly polarized light component and left-handed circularly polarized light component;
[0034] Step 2.3: Calculate and generate a polarization angle image using equation (1) and the polarization angle calculation formula. The polarization angle calculation formula is:
[0035]
[0036] Preferably, the specific steps of extracting features from the preprocessed transmission image in step 2 are:
[0037] Step 2.4: Use grayscale value normalization to enhance the polarized transmission image, as follows:
[0038] Gray value normalization is performed according to formula (3):
[0039] f(g)=g*Mult+Add (3)
[0040] Where g is the initial grayscale value, f(g) is the scaled grayscale value, and the parameters of grayscale value transformation must be reasonably selected according to different application conditions, which are generally determined by the following formula:
[0041]
[0042] Add=-Mult*g Min (5)
[0043] In order to ensure that the scaled grayscale value is within the range of 0-255, the scaled grayscale value is clipped using formula (6):
[0044]
[0045] Preferably, since there are too bright or too dark grayscale areas in the polarization angle image (the grayscale maximum value is 255, the grayscale minimum value is 0, the calculated multiplication coefficient is 1, and the addition coefficient is 0), the ideal grayscale value range cannot be obtained by ordinary grayscale value transformation. Therefore, the grayscale value change method is a robust grayscale value normalization process, that is, the cumulative histogram threshold is set by the cumulative histogram, and the maximum grayscale value and the minimum grayscale value of the image are determined according to the set threshold. The cumulative histogram is calculated by formula (7):
[0046]
[0047] Where n is the number of pixels in the image region of interest, n i is the number of pixels with gray value i;
[0048] Step 2.5: Extract gray level co-occurrence matrix texture information;
[0049] Step 2.6: Extract grayscale histogram features.
[0050] Preferably, in step 2.5, when calculating the grayscale co-occurrence matrix, the distance d=1 is taken, and the angles are 0°, 45°, 90°, and 135°, respectively, to obtain 4 grayscale co-occurrence matrices. The grayscale co-occurrence matrix calculation process is as follows: Take any point (x, y) in the image (N×N) and another deviated point (x+a, x+b), and let the grayscale value of the point pair be (i, j). Move the point (x, y) across the entire screen to obtain multiple (i, j) values. Let the number of grayscale values be k, then (i, j) has k 2For the entire image, count the number of times each (i, j) value appears, arrange them into a square matrix, and use the total number of times (i, j) appears to normalize it to the probability of occurrence p(i, j) to generate the gray-level co-occurrence matrix;
[0051] Different combinations of distance difference values (a, b) can be used to obtain joint probability matrices in different situations. The values of (a, b) need to be selected according to the characteristics of the texture period distribution. For finer textures, small difference values such as (1, 0), (1, 1), and (2, 0) are selected.
[0052] When a=1, b=0, the pixel pair is horizontal, i.e., 0-degree scanning; when a=0, b=1, the pixel pair is vertical, i.e., 90-degree scanning; when a=1, b=1, the pixel pair is right diagonal, i.e., 45-degree scanning; when a=-1, b=-1, the pixel pair is left diagonal, i.e., 135-degree scanning. In this way, the probability of two pixel gray levels occurring at the same time is described by converting the spatial coordinates of (x, y) into "grayscale pairs" (i, j), forming a grayscale co-occurrence matrix. Usually, some scalars are used to characterize the characteristics of the grayscale co-occurrence matrix. The present invention selects four characteristics of energy, contrast, correlation and inverse difference to characterize the grayscale co-occurrence matrix. The specific formula is:
[0053] 1) Calculation formula of energy E:
[0054]
[0055] Energy is the sum of the squares of the gray-level co-occurrence matrix values p(i, j), which reflects the uniformity of the image grayscale distribution and the coarseness of the texture;
[0056] 2) Calculation formula of contrast ratio Con:
[0057]
[0058] Contrast reflects the clarity of the image and the depth of the texture grooves;
[0059] 3) Calculation formula of relevant Cor:
[0060]
[0061] in:
[0062]
[0063]
[0064]
[0065]
[0066] Correlation is used to measure the similarity of the elements of the spatial gray-level co-occurrence matrix in the row or column direction;
[0067] 4) Calculation formula of inverse moment H:
[0068]
[0069] The inverse gap reflects the homogeneity of the image texture and measures the local changes in the image texture. The larger the value, the less changes there are between different regions of the image texture and the local texture is very uniform.
[0070] The eigenvalues of the above four features obtained at the four directions of 0°, 45°, 90°, and 135° are respectively calculated to obtain eight eigenvalues as input features of the classification model;
[0071] Preferably, the step 2.6 is specifically as follows:
[0072] Extracting grayscale mean and grayscale variance from the grayscale histogram as extracted grayscale histogram features;
[0073] Grayscale mean μ
[0074]
[0075] Grayscale variance σ 2
[0076]
[0077] Preferably, the step three is specifically:
[0078] Step 3.1: Select the 90° polarized image as the analysis object, unify the leaf vein directions in all images, and separate the leaf area from the shooting background area using a global threshold segmentation algorithm;
[0079] Step 3.2: Extract gray-level co-occurrence matrix texture information:
[0080] Calculate the gray level co-occurrence matrix when the distance d = 1, obtain the eigenvalues of the four features of energy, contrast, correlation and inverse difference in the four directions of 0°, 45°, 90°, and 135°, calculate the average and variance of the four eigenvalues obtained in each direction, and finally obtain eight eigenvalues;
[0081] The specific formulas for energy, contrast, correlation and inverse difference are:
[0082] 1) Calculation formula of energy E:
[0083]
[0084] Energy is the sum of the squares of the gray-level co-occurrence matrix values p(i, j), which reflects the uniformity of the image grayscale distribution and the coarseness of the texture;
[0085] 2) Calculation formula of contrast ratio Con:
[0086]
[0087] Contrast reflects the clarity of the image and the depth of the texture grooves;
[0088] 3) Calculation formula of relevant Cor:
[0089]
[0090] in:
[0091]
[0092]
[0093]
[0094]
[0095] Correlation is used to measure the similarity of the elements of the spatial gray-level co-occurrence matrix in the row or column direction;
[0096] 4) Calculation formula of inverse moment H:
[0097]
[0098] The inverse gap reflects the homogeneity of the image texture and measures the amount of local changes in the image texture. The larger the value, the less changes there are between different areas of the image texture and the local texture is very uniform.
[0099] Step 3.3: Extract the grayscale mean and grayscale variance from the grayscale histogram as extracted grayscale histogram features;
[0100] Grayscale mean μ
[0101]
[0102] Grayscale variance σ 2
[0103]
[0104] Preferably, because in the late stage of Huanglongbing infection, Huanglongbing can cause zinc deficiency in plants, and Huanglongbing symptoms are often accompanied by zinc deficiency. We call the zinc deficiency caused by Huanglongbing zinc-deficient Huanglongbing, and the symptoms are similar to the symptoms of zinc-deficient leaves. Therefore, in practical applications, it is necessary not only to judge whether it is healthy, but also to judge the type of Huanglongbing (common Huanglongbing symptoms and zinc-deficient Huanglongbing symptoms). According to the texture characteristics and starch accumulation characteristics of Huanglongbing leaves, a linear discriminant analysis (LDA) algorithm is used to establish a stepwise classification model, and the step four is specifically as follows:
[0105] Step 4.1: The reflection images of all samples are used for classification in the first step. According to the difference in leaf surface texture, the linear discriminant analysis (LDA) algorithm is used to divide all samples into healthy, Huanglongbing, and zinc deficiency categories (zinc deficiency and zinc deficiency type Huanglongbing);
[0106] Step 4.2: The transmission image of the zinc-deficient samples obtained in step 4.1 is used for the classification in the second step. According to the difference in starch content between the zinc-deficient samples and the zinc-deficient type Huanglongbing samples, the difference is quantified using the polarization angle image of the transmission imaging, and the linear discriminant analysis (LDA) algorithm is used to subdivide the zinc-deficient category into zinc-deficient and zinc-deficient type Huanglongbing.
[0107] Beneficial effects of the present invention:
[0108] 1) The present invention combines reflection imaging and transmission imaging to establish a step-by-step classification model. In the first step, leaf samples are divided into healthy, Huanglongbing and zinc deficiency categories (zinc deficiency and zinc deficiency type Huanglongbing) according to the leaf texture information obtained by reflection imaging; in the second step, the zinc deficiency category is subdivided into zinc deficiency and zinc deficiency type Huanglongbing according to the difference in starch content in the leaves obtained by transmission imaging; ultimately, the identification of all types of Huanglongbing is achieved, and in particular, the difficult problem in this field is solved: the distinction between zinc deficiency and zinc deficiency type Huanglongbing.
[0109] 2) According to the texture differences of leaves and the differences in the absorption rates of chlorophyll and xanthophyll under illumination from light sources of different wavelengths, the present invention selects the 660nm characteristic band as the light source band for collecting reflected images, which is beneficial to enhancing the surface texture of leaves, highlighting the symptoms of Huanglongbing, and effectively improving the recognition accuracy. In addition, since the yellowing of early Huanglongbing is not easy to be identified, the use of 660nm as the reflected imaging light source band enhances the sensitivity of the imaging system to slight yellowing of leaves, which has a significant effect on the identification of earlier Huanglongbing.
[0110] 3) Based on the fact that Huanglongbing infection can lead to a significant increase in starch content in leaves, the present invention selects 590nm as the light source band for transmission imaging in combination with the optical rotation of starch. The optical rotation of starch is most obvious in this band, which effectively realizes the distinction between zinc deficiency and zinc deficiency type Huanglongbing. BRIEF DESCRIPTION OF THE DRAWINGS
[0111] Figure 1 This is a schematic structural diagram of a rapid detection device for citrus Huanglongbing according to an embodiment of the present invention;
[0112] Figure 2 Examples of reflection imaging at four polarization angles according to an embodiment of the present invention;
[0113] Figure 3 Examples of 90° reflection images of four types of leaf samples according to an embodiment of the present invention;
[0114] Figure 4 This is an example of transmission imaging according to an embodiment of the present invention;
[0115] Figure 5 A schematic diagram of robust grayscale value normalization processing of a sample according to an embodiment of the present invention;
[0116] Figure 6 This is a comparison diagram of image enhancement effects of robust grayscale value normalization processing according to an embodiment of the present invention;
[0117] Figure 7 The polarization angle images after the four types of leaf sample images are enhanced according to the embodiment of the present invention;
[0118] Figure 8 The figure is a flow chart of a step-by-step classification model according to an embodiment of the present invention.
[0119] In the figure:
[0120] 1. Light shielding box, 2. Polarization camera, 3. Short-focus lens, 4. First LED light source, 5. First light averaging plate, 6. First linear polarizer, 7. Sample stage, 8. Sample pressing plate, 9. Second linear polarizer, 10. Second light averaging plate, 11. Second LED light source, 12. Micro-polarization element, 13. First through hole, 14. Second through hole, 15. Third through hole. DETAILED DESCRIPTION
[0121] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0122] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "axial", "radial", "vertical", "horizontal", "inner", "outer" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0123] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0124] First, a rapid detection device and method for citrus Huanglongbing according to an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
[0125] See also Figure 1 According to an embodiment of the present invention, a rapid detection device for citrus Huanglongbing includes an image acquisition unit and a control unit.
[0126] Specifically, Figure 1 As shown, the image acquisition unit includes a light shielding box 1 and a polarization camera 2 placed on the top of the inner side of the light shielding box 1, a short-focus lens 3, a first LED light source 4, a first light averaging plate 5, a first linear polarizer 6, a sample stage 7, a sample pressing plate 8, a second linear polarizer 9, a second light averaging plate 10, and a second LED light source 11. The control unit includes a light source controller and a computer data processing center.
[0127] The light-shielding box 1 is constructed of 2 mm thick black frosted galvanized sheet. The box is a rectangular structure of 150 mm × 150 mm × 370 mm. A rectangular wiring hole is left in the center of the top plate of the light-shielding box 1 for connecting the polarization camera 2 and the first LED light source 4 and the second LED light source 11 to the computer and the light source controller respectively.
[0128] The model of the polarization camera 2 is LUCIO PHX050S-P, which is placed at the top center of the inner side of the light-shielding box 1. A micro-polarization element 12 is integrated inside, and it can capture grayscale images at four polarization angles of 0°, 45°, 90°, and 135°, and the gain is adjustable from 0dB to 48dB. The main parameters of the short-focus lens 3 are as follows: focal length of 8mm, 5 million pixels, minimum working distance of 50mm, and the short-focus lens 3 is connected to the polarization camera 2 through a threaded port.
[0129] The first LED light source 4 is placed above the first light-diffusing plate 5, and the distance from the first light-diffusing plate 5 is 50mm. The first LED light source 4 uses a 660nm narrow-band light source. The first LED light source 4 includes a heat dissipation substrate and a plurality of lamp beads. The heat dissipation substrate is made of an aluminum plate with a size of 150mm×150mm×2mm. A first through hole 13 with a diameter of 32mm is opened in the center for passing through the short-focus lens 3. A plurality of lamp beads are connected in series, and a plurality of lamp beads are evenly distributed along the circumference with the axis of the first through hole 13 as the center. In this embodiment, the number of lamp beads included in the first LED light source 4 is 6, and the model is the American Cree XPE2 660nm lamp bead, and the maximum power of a single lamp bead is 3W.
[0130] The first light homogenizing plate 5 has a size of 150 mm×150 mm×1 mm, and has a second through hole 14 with a diameter of 32 mm in the center, and is overlapped and placed above the first linear polarizing plate 6. The first linear polarizing plate 6 has a size of 150 mm×150 mm×1 mm, and has a second through hole 14 with a diameter of 32 mm in the center. The short-focus lens 3 passes through the first light homogenizing plate 5 and the first linear polarizing plate 6 through the second through hole 14, and the end face of the short-focus lens 3 is flush with the bottom face of the first linear polarizing plate 6, and the linear polarization direction of the first linear polarizing plate 6 is parallel to the 0° direction of the micro-polarizing element 12 in the polarization camera 2.
[0131] The sample stage 7 is made of black frosted acrylic, with a size of 150mm×150mm×1mm, and a layer of black light-absorbing cloth is provided on the surface to simplify the background of image segmentation. The sample stage 7 is 130mm away from the bottom of the short-focus lens 3. The sample stage 7 is designed to be movable, and is placed on the sample pressing plate 8 when collecting the reflected image, and is taken out when collecting the transmitted image.
[0132] The sample pressing plate 8 is made of black frosted acrylic, with a size of 150 mm × 150 mm × 1 mm, and has an elliptical third through hole 15 with a long axis of 30 mm and a short axis of 20 mm in the center, which is overlapped and placed under the sample stage 7. The sample pressing plate 8 is used to flatten the leaf, so that the polarized light transmitted through the leaf sample passes through the third through hole 15 and is collected by the polarization camera 2.
[0133] The second linear polarizer 9 has a size of 150 mm×150 mm×1 mm and is overlapped under the sample pressing plate 8. The linear polarization direction of the second linear polarizer 9 is parallel to the 0° direction of the micro-polarization element 12 in the polarization camera 2. The second homogenizer 10 has a size of 150 mm×150 mm×1 mm and is overlapped under the second linear polarizer 9.
[0134] The second LED light source 11 is placed below the second light averaging plate 10, and the distance from the second light averaging plate 10 is 50mm. The second LED light source 11 uses a 590nm narrow-band light source. The second LED light source 11 includes a heat dissipation substrate and a plurality of lamp beads. The heat dissipation substrate is made of an aluminum plate with a size of 150mm×150mm×2mm. The plurality of lamp beads are connected in series, and the plurality of lamp beads are evenly arranged in an array on the heat dissipation substrate. In this embodiment, the number of lamp beads included in the second LED light source 11 is 25, which are regularly arranged in a 5×5 array. The model is the American Cree XRE Q5 590nm lamp bead, and the maximum power of a single lamp bead is 3W.
[0135] The light emitted by the first LED light source 4 is homogenized by the first light homogenizing plate 5, and then converted into linearly polarized light by the first linear polarizer 6, and irradiates the leaf sample on the sample stage 7. The reflected and scattered light generated by the illuminated sample is collected by the polarization camera 2, and the signal is transmitted to the control unit for the next step of processing.
[0136] The light emitted by the second LED light source 11 is homogenized by the second light homogenizing plate 10 and then converted into linearly polarized light by the second linear polarizer 9. The light passes through the leaf sample placed under the sample pressing plate 8, and then passes through the third through hole 15 to be collected by the polarization camera 2. The signal is transmitted to the control unit for the next step of processing.
[0137] Example 1
[0138] The following describes a detection method of a citrus Huanglongbing rapid detection device according to an embodiment of the present invention, and evaluates its ability to distinguish between healthy, Huanglongbing, zinc-deficient and zinc-deficient Huanglongbing samples.
[0139] The number and types of leaf samples in this example are: 50 healthy, 50 Huanglongbing, 50 zinc-deficient, and 20 zinc-deficient Huanglongbing, all of which were collected from the Citrus Science Research Institute in Ganzhou City, Jiangxi Province in November 2021.
[0140] Step 1: Collect reflection images and transmission images of sample leaves with different disease types;
[0141] Step 1.1: using the first LED light source (4), the first light homogenizing plate (5) and the first linear polarizer (6) to generate uniform 0° linear polarized light, the 0° linear polarized light irradiates the leaf sample to be tested, and is collected by the polarization camera (2) to generate reflected polarized images at four polarization angles, namely, a 0° reflected polarized image, a 45° reflected polarized image, a 90° reflected polarized image and a 135° reflected polarized image;
[0142] Step 1.2: The second LED light source ((11)), the second light homogenizing plate (10) and the second linear polarizing plate (9) are used to generate uniform 0° linear polarized light, and the 0° linear polarized light is transmitted through the leaf sample to be tested and is collected by the polarization camera (2) to generate transmission polarization images at four polarization angles, namely, a 0° transmission polarization image, a 45° transmission polarization image, a 90° transmission polarization image and a 135° transmission polarization image.
[0143] Among them, the 0° polarization image is: an image formed by the linear polarized light generated by the 0° micro-polarization element in the polarization camera 2 and the first linear polarizer 6 (second linear polarizer 9); the 45° polarization image is: an image formed by the linear polarized light generated by the 45° micro-polarization element in the polarization camera 2 and the first linear polarizer 6 (second linear polarizer 9); the 90° polarization image is: an image formed by the linear polarized light generated by the 90° micro-polarization element in the polarization camera 2 and the first linear polarizer 6 (second linear polarizer 9).
[0144] Step 2: preprocess the collected transmission image and extract image features;
[0145] Step 2.1: Transmission imaging effect is as follows Figure 4 As shown, a 0° polarization image, a 45° polarization image, a 90° polarization image, and a 135° polarization image are selected as analysis objects, and a threshold segmentation method is used to extract the blade image passing through the third through hole;
[0146] Step 2.2: Use the Stokes vector method to describe the transmitted light:
[0147]
[0148] In the above formula, S 0 is the light intensity parameter, S 1 is the first polarization parameter, S 2 is the second polarization parameter, S 3 is the circular polarization parameter, I represents the light intensity and, Q represents the intensity difference of linear polarized light in the directions of 0° and 90°, U represents the intensity difference of linear polarized light in the directions of 45° and 135°, and V represents the intensity difference of right-handed circularly polarized light component and left-handed circularly polarized light component;
[0149] Step 2.3: Calculate and generate a polarization angle image using equation (1) and the polarization angle calculation formula. The polarization angle calculation formula is:
[0150]
[0151] Step 2.4: Use grayscale value normalization to enhance the polarized transmission image, as follows:
[0152] Gray value normalization is performed according to formula (3):
[0153] f(g)=g*Mult+Add (3)
[0154] Where g is the initial grayscale value, f(g) is the scaled grayscale value, and the parameters of grayscale value transformation must be reasonably selected according to different application conditions, which are generally determined by the following formula:
[0155]
[0156] Add=-Mult*g Min (5)
[0157] In order to ensure that the scaled grayscale value is within the range of 0-255, the scaled grayscale value is clipped using formula (6):
[0158]
[0159] Since there are too bright or too dark grayscale areas in the polarization angle image (the maximum grayscale value is 255, the minimum grayscale value is 0, the calculated multiplication coefficient is 1, and the addition coefficient is 0), the ideal grayscale value range cannot be obtained through ordinary grayscale value transformation. Therefore, the grayscale value change method is a robust grayscale value normalization processing, that is, the cumulative histogram threshold is set through the cumulative histogram, and the maximum grayscale value and the minimum grayscale value of the image are determined according to the set threshold. The cumulative histogram is calculated by formula (7):
[0160]
[0161] Where n is the number of pixels in the image region of interest, n i is the number of pixels with gray value i;
[0162] The robust grayscale normalization process is as follows: Figure 5 As shown, c = 0.9 is determined as the threshold of the cumulative histogram; the image enhancement effect is as follows Figure 6 As shown; the enhanced deflection angle images of the four types of leaf samples are shown in Figure 7 shown.
[0163] Step 2.5: Extract gray level co-occurrence matrix texture information;
[0164] When calculating the gray-level co-occurrence matrix, the distance d=1 is taken, and the angles are 0°, 45°, 90°, and 135°, respectively, to obtain four gray-level co-occurrence matrices. Usually, some scalars are used to characterize the characteristics of the gray-level co-occurrence matrix. The present invention selects four characteristics of energy, contrast, correlation, and inverse difference to characterize the gray-level co-occurrence matrix. The specific formula is:
[0165] 1) Calculation formula of energy E:
[0166]
[0167] Energy is the sum of the squares of the gray-level co-occurrence matrix values p(i, j), which reflects the uniformity of the image grayscale distribution and the coarseness of the texture;
[0168] 2) Calculation formula of contrast ratio Con:
[0169]
[0170] Contrast reflects the clarity of the image and the depth of the texture grooves;
[0171] 3) Calculation formula of relevant Cor:
[0172]
[0173] in:
[0174]
[0175]
[0176]
[0177]
[0178] Correlation is used to measure the similarity of the elements of the spatial gray-level co-occurrence matrix in the row or column direction;
[0179] 4) Calculation formula of inverse moment H:
[0180]
[0181] The inverse gap reflects the homogeneity of the image texture and measures the local changes in the image texture. The larger the value, the less changes there are between different regions of the image texture and the local texture is very uniform.
[0182] The eigenvalues of the above four features obtained at the four directions of 0°, 45°, 90°, and 135° are respectively calculated to obtain eight eigenvalues as input features of the classification model;
[0183] Step 2.6: Extract the grayscale mean and grayscale variance from the grayscale histogram as extracted grayscale histogram features;
[0184] Grayscale mean μ
[0185]
[0186] Grayscale variance σ 2
[0187]
[0188] Step 3: Preprocess the collected reflection image and extract image features;
[0189] Step 3.1: The reflection imaging effect is as follows Figure 2 As shown in the figure, the combination of polarization camera and linear polarizer can effectively remove the reflection on the leaf surface. Therefore, the 90° polarization image is selected as the analysis object, the leaf vein direction in all images is unified, and the leaf area is separated from the shooting background area through the global threshold segmentation algorithm. The results of the four types of leaf samples after preprocessing are shown in the figure below. Figure 3 As shown;
[0190] Step 3.2: Extract gray-level co-occurrence matrix texture information:
[0191] Calculate the gray level co-occurrence matrix when the distance d = 1, obtain the eigenvalues of the four features of energy, contrast, correlation and inverse difference in the four directions of 0°, 45°, 90°, and 135°, calculate the average and variance of the four eigenvalues obtained in each direction, and finally obtain eight eigenvalues;
[0192] The specific formulas for energy, contrast, correlation and inverse difference are:
[0193] 1) Calculation formula of energy E:
[0194]
[0195] Energy is the sum of the squares of the gray-level co-occurrence matrix values p(i, j), which reflects the uniformity of the image grayscale distribution and the coarseness of the texture;
[0196] 2) Calculation formula of contrast ratio Con:
[0197]
[0198] Contrast reflects the clarity of the image and the depth of the texture grooves;
[0199] 3) Calculation formula of relevant Cor:
[0200]
[0201] in:
[0202]
[0203]
[0204]
[0205]
[0206] Correlation is used to measure the similarity of the elements of the spatial gray-level co-occurrence matrix in the row or column direction;
[0207] 4) Calculation formula of inverse moment H:
[0208]
[0209] The inverse gap reflects the homogeneity of the image texture and measures the amount of local changes in the image texture. The larger the value, the less changes there are between different areas of the image texture and the local texture is very uniform.
[0210] Step 3.3: Extract the grayscale mean and grayscale variance from the grayscale histogram as extracted grayscale histogram features;
[0211] Grayscale mean μ
[0212]
[0213] Grayscale variance σ 2
[0214]
[0215] Step 4: Create Figure 8 The stepwise classification model shown uses the Linear Discriminant Analysis (LDA) algorithm to identify leaves with each disease type step by step.
[0216] Step 4.1: The reflection images of all samples are used for classification in the first step. According to the difference in leaf surface texture, the linear discriminant analysis (LDA) algorithm is used to divide all samples into healthy, Huanglongbing, and zinc deficiency categories (zinc deficiency and zinc deficiency type Huanglongbing);
[0217] Step 4.2: The transmission image of the zinc-deficient sample obtained in step 4.1 is used for the second step of classification. According to the difference in starch content between the zinc-deficient sample and the zinc-deficient type Huanglongbing sample, the difference is quantified using the polarization angle image of the transmission imaging. The linear discriminant analysis (LDA) algorithm is used to subdivide the zinc-deficient category into zinc-deficient and zinc-deficient type Huanglongbing, ultimately achieving accurate identification of the types of Huanglongbing (common chlorosis and zinc-deficiency type chlorosis).
[0218] The confusion matrix for all categories of samples is shown in Table 1. Since the stepwise classification model is used for classification, the risk of misjudgment caused by the previous classification step is required in the identification of zinc-deficient Huanglongbing samples, so the accuracy is low. However, as shown in Table 2, the method proposed in the present invention still achieves an overall accuracy of 93.85% for distinguishing zinc deficiency and zinc-deficient Huanglongbing, which is a major breakthrough in this field. The goal of the present invention is to achieve accurate detection of various types of Huanglongbing, so Huanglongbing and zinc-deficient Huanglongbing are classified as Huanglongbing, and healthy and zinc-deficient are classified as non-Huanglongbing. The data are statistically analyzed, and the confusion matrix for Huanglongbing infection status is shown in Table 3. The experimental results show that the method of the present invention can obtain a recognition accuracy of 96.47% for various types of Huanglongbing.
[0219] Table 1 Confusion matrix for all categories of samples
[0220]
[0221] Table 2 Confusion matrix for zinc deficiency and zinc deficiency type Huanglongbing
[0222]
[0223]
[0224] Table 3 Confusion matrix for Huanglongbing infection status
[0225]
[0226] Experimental Case 1
[0227] The main purpose of this experimental case is to evaluate the ability of a reflective polarization imaging technology to distinguish between healthy, Huanglongbing and zinc deficiency (zinc deficiency and zinc deficiency type Huanglongbing) samples, and to compare the classification performance of multiple pattern recognition algorithms to determine the best pattern recognition algorithm.
[0228] The number and types of leaf samples in this experimental case are: 50 healthy, 50 Huanglongbing, 50 zinc-deficient, and 20 zinc-deficient Huanglongbing, all of which were collected from the Citrus Science Research Institute in Ganzhou City, Jiangxi Province in November 2021.
[0229] A rapid detection method for citrus Huanglongbing based on reflective polarization imaging technology is designed to distinguish between healthy, Huanglongbing and zinc deficiency (zinc deficiency and zinc deficiency type Huanglongbing). The specific steps are as follows:
[0230] Step S1: same as step 1.1 in the embodiment;
[0231] Step S2: Same as step 3 of the embodiment;
[0232] Step S3: Establish a classification model; specifically:
[0233] The grayscale histogram features extracted in step S2 were divided into training set and test set at a ratio of 3:1 and input into the classification model. The recognition accuracy of 10 classification models including linear discriminant analysis (LDA), random forest algorithm (RF), support vector machine (SVM), CART decision tree algorithm, generalized linear mixed model (GLMM), neural network, Lagrangian support vector regression algorithm (LSVM), Bayesian algorithm, CHAID decision tree algorithm and Quest decision tree algorithm were compared.
[0234] The results are shown in Table 4. Linear discriminant analysis (LDA) has the best classification effect, with a training set accuracy of 95.73% and a test set accuracy of 100%. The results of this embodiment show that the rapid detection method for citrus Huanglongbing based on reflective polarization imaging technology can effectively distinguish between healthy, Huanglongbing and zinc deficiency (zinc deficiency and zinc deficiency type Huanglongbing), and the best pattern recognition algorithm is linear discriminant analysis (LDA).
[0235] Table 4 Accuracy of reflection imaging pattern recognition algorithm
[0236]
[0237]
[0238] Experimental Case 2
[0239] The main purpose of this experimental case is to evaluate the ability of a transmission polarization imaging technology to distinguish zinc-deficient and zinc-deficient Huanglongbing samples, and to compare the classification performance of multiple pattern recognition algorithms to determine the best pattern recognition algorithm.
[0240] The number and types of leaf samples in this experimental case are: 50 healthy, 50 Huanglongbing, 50 zinc-deficient, and 20 zinc-deficient Huanglongbing, all of which were collected from the Citrus Science Research Institute in Ganzhou City, Jiangxi Province in November 2021.
[0241] A rapid detection method for citrus Huanglongbing based on transmission polarization imaging technology is designed to distinguish zinc deficiency and zinc deficiency type Huanglongbing. The specific steps are as follows:
[0242] Step A1: same as step 1.2 in Example 1;
[0243] Step A2: same as step 2 of the embodiment;
[0244] Step A3: Establish a classification model; specifically:
[0245] The grayscale histogram features extracted in step A2 were divided into training set and test set at a ratio of 3:1 and input into the classification model. The recognition accuracy of 10 classification models, including linear discriminant analysis (LDA), random forest algorithm (RF), support vector machine (SVM), CART decision tree algorithm, generalized linear mixed model (GLMM), neural network, Lagrangian support vector regression algorithm (LSVM), Bayesian algorithm, CHAID decision tree algorithm, and Quest decision tree algorithm, were compared.
[0246] The results are shown in Table 5. Linear discriminant analysis (LDA) has the best classification effect, with a training set accuracy of 88.00% and a test set accuracy of 85.00%. The results of this experimental case show that the rapid detection method of citrus Huanglongbing based on reflective polarization imaging technology can effectively distinguish between zinc deficiency and zinc deficiency type Huanglongbing, and the best pattern recognition algorithm is linear discriminant analysis (LDA).
[0247] Table 5 Accuracy of transmission imaging pattern recognition algorithm
[0248] Classification Model Training set accuracy Test set accuracy LDA 88.00% 85.00% RF 90.00% 55.00% SVM 88.00% 70.00% CART 94.00% 80.00% GLMM 72.00% 70.00% Neural network 86.00% 75.00% LSVM 88.00% 70.00% Bayesian 98.00% 55.00% CHAID 90.00% 65.00% Quest 90.00% 70.00%
[0249] Compared with the existing technology, the present invention selects the 660nm characteristic band as the light source band for collecting the reflected image according to the texture difference of the leaves and the difference in the absorption rate of chlorophyll and lutein under different bands of light sources, which is conducive to enhancing the surface texture of the leaves, highlighting the symptoms of Huanglongbing, and effectively improving the recognition accuracy. In addition, since the yellowing of early Huanglongbing is not easy to be identified, the use of 660nm as the light source band for reflected imaging enhances the sensitivity of the imaging system to the slight yellowing of the leaves, which has a significant effect on the identification of relatively early Huanglongbing. According to the fact that Huanglongbing infection will cause a significant increase in the starch content in the leaves, combined with the optical rotation of starch, the present invention can effectively identify the yellowing of the leaves. , 590nm is selected as the light source band of transmission imaging. The optical rotation of starch is most obvious in this band, which effectively realizes the distinction between zinc deficiency and zinc deficiency type Huanglongbing. The present invention combines reflection imaging and transmission imaging to establish a step-by-step classification model. In the first step, leaf samples are divided into healthy, Huanglongbing and zinc deficiency categories (zinc deficiency and zinc deficiency type Huanglongbing) according to the leaf texture information obtained by reflection imaging. In the second step, the zinc deficiency category is subdivided into zinc deficiency and zinc deficiency type Huanglongbing according to the difference in starch content in the leaves obtained by transmission imaging. Finally, the identification of all types of Huanglongbing is realized, and in particular, the difficult problem in this field is solved: the distinction between zinc deficiency and zinc deficiency type Huanglongbing.
[0250] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. means to refer to the specific features, structures, etc. described in conjunction with the embodiment or example. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0251] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and intent of the present invention.
Claims
1. A rapid detection device for citrus Huanglongbing, It is characterized in that include: Image acquisition unit and control unit; The image acquisition unit comprises a light shielding box (1), and a polarization camera (2) located inside the light shielding box (1), a short-focus lens (3), a first light averaging plate (5), a first linear polarizing plate (6), a sample stage (7), a sample pressing plate (8), a second linear polarizing plate (9), a second light averaging plate (10), a first LED light source (4), and a second LED light source (11); The short-focus lens (3) is mounted on the polarization camera (2); the first light averaging plate (5) is overlapped and placed above the first linear polarizing plate (6); the first light averaging plate (5) and the first linear polarizing plate (6) are both provided with a second through hole; the short-focus lens (3) passes through the second through hole, and its end face is flush with the bottom face of the first linear polarizing plate (6); the linear polarization direction of the first linear polarizing plate (6) is parallel to the 0° direction of the micro-polarizing element inside the polarization camera (2); the first LED light source (4) is placed above the first light averaging plate (5); the sample stage (7) is designed to be movable, and is placed on the sample pressing plate (8) when collecting a reflection image, and is taken out when collecting a transmission image; The second LED light source (11) is placed at the bottom of the light shielding box (1), the second light averaging plate (10) is placed above the second LED light source (11), the second linear polarizing plate (9) is placed above the second light averaging plate (10), the linear polarization direction of the second linear polarizing plate (9) is parallel to the 0° direction of the micro-polarization element inside the polarization camera (2), the sample pressing plate (8) is placed on the second linear polarizing plate (9), and a third through hole (15) is provided at the center of the sample pressing plate (8), so that the polarization camera (2) can collect polarized light transmitted through the leaf sample, and the polarization camera (2) transmits the collected image to the control unit; The first LED light source (4) is a 660nm narrow-band light source, and comprises a heat dissipation substrate and a plurality of lamp beads, wherein the heat dissipation substrate is an aluminum plate, a first through hole is provided on the heat dissipation substrate, the short-focus lens (3) passes through the first through hole, the plurality of lamp beads are connected in series, and the plurality of lamp beads are evenly distributed along the circumference with the axis of the first through hole as the center of the circle; The second LED light source (11) is a 590nm narrow-band light source. The second LED light source (11) comprises a heat dissipation substrate and a plurality of lamp beads. The heat dissipation substrate is an aluminum plate. The plurality of lamp beads are connected in series and evenly arranged in an array on the heat dissipation substrate.
2. A detection method of the citrus Huanglongbing rapid detection device according to claim 1, It is characterized in that include: Step 1: Collect reflection images and transmission images of sample leaves with different disease types; Step 2: preprocess the collected transmission image and extract image features; Step 3: Preprocess the collected reflection image and extract image features; Step 4: Establish a stepwise classification model and use the linear discriminant analysis (LDA) algorithm to identify leaves with different disease types step by step.
3. The detection method of the citrus Huanglongbing rapid detection device according to claim 2, It is characterized in that The step 1 is specifically as follows: Step 1.1: using the first LED light source (4), the first light homogenizing plate (5) and the first linear polarizer (6) to generate uniform 0° linear polarized light, the 0° linear polarized light irradiates the leaf sample to be tested, and is collected by the polarization camera (2) to generate reflected polarized images at four polarization angles, namely, a 0° reflected polarized image, a 45° reflected polarized image, a 90° reflected polarized image and a 135° reflected polarized image; Step 1.2: The second LED light source (11), the second light homogenizing plate (10) and the second linear polarizing plate (9) are used to generate uniform 0° linear polarized light, and the 0° linear polarized light is transmitted through the leaf sample to be tested and is collected by the polarization camera (2) to generate transmission polarization images at four polarization angles, namely, a 0° transmission polarization image, a 45° transmission polarization image, a 90° transmission polarization image and a 135° transmission polarization image.
4. The detection method of the citrus Huanglongbing rapid detection device according to claim 3, It is characterized in that The specific steps of preprocessing the collected transmission image in step 2 are: Step 2.1: extracting the leaf image passing through the third through hole (15) using a threshold segmentation method; Step 2.2: Use the Stokes vector method to describe the transmitted light: In the above formula, S 0 is the light intensity parameter, S 1 is the first polarization parameter, S 2 is the second polarization parameter, S 3 is the circular polarization parameter, I represents the light intensity and, Q represents the intensity difference of linear polarized light in the directions of 0° and 90°, U represents the intensity difference of linear polarized light in the directions of 45° and 135°, and V represents the intensity difference of right-handed circularly polarized light component and left-handed circularly polarized light component; Step 2.3: Calculate and generate a polarization angle image using equation (1) and the polarization angle calculation formula. The polarization angle calculation formula is:
5. The detection method of the citrus Huanglongbing rapid detection device according to claim 3, It is characterized in that The specific steps of extracting features from the preprocessed transmission image in step 2 are: Step 2.4: Use grayscale value normalization to enhance the polarized transmission image, as follows: Gray value normalization is performed according to formula (3): f(g)=g*Mult+Add (3) Where g is the initial grayscale value, f(g) is the scaled grayscale value, and the parameters of the grayscale value transformation are determined by the following formula: Add=-Mult*g Min (5) Use formula (6) to clip the scaled grayscale value: The cumulative histogram threshold is set through the cumulative histogram, and the maximum grayscale value and the minimum grayscale value of the image are determined according to the set threshold. The cumulative histogram is calculated by formula (7): Where n is the number of pixels in the image region of interest, n i is the number of pixels with gray value i; Step 2.5: Extract gray level co-occurrence matrix texture information; Step 2.6: Extract grayscale histogram features.
6. The detection method of the citrus Huanglongbing rapid detection device according to claim 5, It is characterized in that In the step 2.5, the gray level co-occurrence matrix is calculated when the distance d=1, and the eigenvalues of the four features of energy, contrast, correlation and inverse difference are obtained in the four directions of 0°, 45°, 90° and 135°. The average value and variance of the four eigenvalues obtained in each direction are calculated respectively, and finally eight eigenvalues are obtained as the input features of the classification model in step 4; In the step 2.6, the grayscale mean and grayscale variance are extracted from the grayscale histogram as extracted grayscale histogram features.
7. The detection method of the citrus Huanglongbing rapid detection device according to claim 2, It is characterized in that The step three is specifically as follows: Step 3.1: Select the 90° polarized image as the analysis object, unify the leaf vein directions in all images, and separate the leaf area from the shooting background area using a global threshold segmentation algorithm; Step 3.2: Extract gray-level co-occurrence matrix texture information: Calculate the gray level co-occurrence matrix when the distance d = 1, obtain the eigenvalues of the four features of energy, contrast, correlation and inverse difference in the four directions of 0°, 45°, 90°, and 135°, calculate the average and variance of the four eigenvalues obtained in each direction, and finally obtain eight eigenvalues; Step 3.3: Extract the grayscale mean and grayscale variance from the grayscale histogram as the extracted grayscale histogram features.
8. The detection method of the citrus Huanglongbing rapid detection device according to claim 2, It is characterized in that The step 4 is specifically as follows: Step 4.1: The reflection images of all samples are used for classification in the first step. According to the difference in leaf surface texture, the linear discriminant analysis (LDA) algorithm is used to classify all samples into healthy, Huanglongbing, and zinc deficiency categories; Step 4.2: The transmission image of the zinc-deficient samples obtained in step 4.1 is used for the second step of classification. According to the difference in starch content between the zinc-deficient samples and the zinc-deficient type Huanglongbing samples, the difference is quantified using the polarization angle image of the transmission imaging, and the linear discriminant analysis LDA algorithm is used to subdivide the zinc-deficient category into zinc-deficient and zinc-deficient type Huanglongbing.
