A method, system, device and medium for calculating leaf curling degree

By differentiating the triangular patched blade model into multiple grids and calculating its vertical vector projection, the problem of blade curl degree calculation error in the existing technology is solved, and accurate quantification of the curl degree of irregular leaves is achieved.

CN117994324BActive Publication Date: 2024-10-18CHINA AGRI UNIV

Patent Information

Application Number
CN202410172883.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-07
Publication Date
2024-10-18
Estimated Expiration
2044-02-07

AI Technical Summary

Technical Problem

In the existing technology, there are errors in the calculation of leaf curling degree. This is mainly due to the overestimation of leaf area calculation due to the fluctuation of the leaves during curling, which in turn affects the accuracy of the curling degree. Especially for irregular leaves, existing methods are difficult to accurately quantify. .

Method used

By obtaining the triangular patched blade model and differentiating it into multiple meshes, each mesh has a different degree of undulation, calculate the vertical vector of each mesh, and project it onto the vertical vector at the center of mass position of the blade model. , obtain the sum of the projection lengths, and substitute it into the leaf curl index formula to determine the leaf curl index, thereby accurately calculating the degree of leaf curl.

Benefits of technology

This method can more accurately quantify the degree of curling of irregular blades by considering the impact of the fluctuations of each grid on calculations, reducing calculation errors and improving the measurement accuracy of blade curling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117994324B_ABST
    Figure CN117994324B_ABST
Patent Text Reader

Abstract

The invention discloses a method, system, device and medium for calculating the curling degree of leaves, and relates to the field of biotechnology, including: collecting leaf images and constructing a triangular faceted leaf model; obtaining multiple grids of the leaf model to obtain the vertical vector of each grid, so that the vertical vector length of each grid is the same; obtaining the vertical vector of the centroid position, so that the vertical vector length of the centroid position is a multiple of the vertical vector length of each grid; projecting the vertical vector of each grid on the vertical vector of the centroid position and recording the projection length of the vertical vector of each grid, and determining the positive and negative zero values ​​of the projection length according to the angle between the vertical vector pointing of each grid and the vertical vector pointing of the centroid position; summing the projection lengths, and obtaining the leaf curling index according to the ratio of the summation result to the vertical vector length of the centroid position, and determining the curling degree of the leaves. The invention can avoid inaccurate calculation of leaf curling due to undulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of biotechnology, and in particular to a method, system, equipment and medium for calculating the curling degree of leaves. Background Art

[0002] Leaf curl is one of the leaf phenotypes with important physiological significance. It affects the light energy utilization efficiency and water utilization efficiency of crops. Currently, the research on leaf curl is mainly focused on symmetrical leaves such as corn, rice and wheat. The leaf curl LRI calculation formula is LRI = [(L w -L n ) / L w ]×100, where L w is the maximum blade width, L n is the natural distance from the blade edge. In this definition, L w and L n All of them are measured manually, which is affected by the subjective judgment of the experimenter, and the definition of LRI calculated by only a single position of the narrow and long blade is unreliable.

[0003] In the prior art, Kang Shaozhong and several researchers performed greedy projection triangulation on the complete leaf 3D point cloud file to obtain the patched leaf area and leaf projection area; and then calculated the leaf curl LAR, the calculation formula is LAR = 1-AP / S, where AP is the projection area of ​​the leaf on the maximum fitting plane, and S is the leaf area. This scheme uses the PCL point cloud library to design an algorithm to extract the phenotype of crop leaves, and proposes a definition that uses the point cloud area ratio to quantify the degree of leaf curl. This definition is used to calculate the curl of cotton leaves. This definition and method can more accurately quantify the curl of irregular leaves such as cotton.

[0004] However, the leaf area when the leaf is curled is not absolutely equal to that when the leaf is completely flat. When the leaf is curled, the leaf point cloud is not completely smooth, but has a certain degree of undulation, which will lead to an increase in the number of triangular leaves and an overestimation of the leaf area calculation, causing errors in the calculation of the leaf area, and ultimately leading to inaccurate calculation of the leaf curl. Summary of the invention

[0005] The embodiments of the present invention provide a method, system, device and medium for calculating the curl degree of a blade, which can solve the problem in the prior art that the curl degree of a blade is inaccurate due to fluctuations.

[0006] An embodiment of the present invention provides a method for calculating the degree of curl of a blade, comprising the following steps: obtaining a triangulated blade model, and differentiating the triangulated blade model into multiple grids, wherein the degree of undulation of each grid is different; obtaining the vertical vector of each grid according to the vertex coordinates of each grid; obtaining the vertical vector of the centroid position of the blade model; projecting the vertical vector of each grid onto the vertical vector of the centroid position and recording the projection length of the vertical vector of each grid, and summing all the projection lengths; substituting the ratio of the summation result to the length of the vertical vector at the centroid position into the blade curl index formula to obtain the blade curl index, and determining the degree of curl of the blade according to the blade curl index.

[0007] Furthermore, the vertical vector of each mesh is obtained according to the vertex coordinates of each mesh, and the specific steps are: using the PCL point cloud library to differentiate the triangulated three-dimensional blade model into n meshes; using the cross product function, the vertical vector of each mesh is obtained using the vector composed of multiple vertices of each mesh; the length of the vertical vector is set to a, and the number of vectors is i, that is, a1=a2...=a i =...a n =a, record the starting point coordinates A of all surface normals i (x ai ,y ai ,z ai ) and the end point coordinates B i (x bi ,y bi ,z bi ).

[0008] Furthermore, the vertical vector of the centroid position of the blade model is obtained by the following specific steps: the centroid coordinates of the point cloud are obtained by using the centroid formula using the coordinates of all points in the point set, and the point set is obtained from the blade image using the motion recovery structure algorithm; the vertical vector of the centroid position is obtained by using the centroid coordinates through the cross product function; the length of the vertical vector of the centroid position is set to na, and its starting point coordinates A(x a ,y a ,z a ) and the end point coordinates B(x b ,y b ,z b ).

[0009] Furthermore, the vertical vector of each grid is projected onto the vertical vector of the centroid position and the projection length of the vertical vector of each grid is recorded, and all projection lengths are summed. The specific steps are: summing the vertical vectors a of a total of i grids i Project onto the perpendicular vector AB at the centroid position, and record the length of each projection as a' i; When the angle between the vertical vector pointing of each grid and the vertical vector pointing of the center of mass position is acute, the projection length is positive; when the angle between the vertical vector pointing of each grid and the vertical vector pointing of the center of mass position is obtuse, the projection length is negative; when the angle between the vertical vector pointing of each grid and the vertical vector pointing of the center of mass position is right angle, the projection length is 0; Sum the projection lengths of the vertical vectors of each grid after determining the positive, negative or zero value.

[0010] Furthermore, the leaf curl index formula is:

[0011]

[0012] Where LRI is the leaf curl index, n is the number of vertical vector projections determined by n grids, and a' i The projected length of the vertical vector determined for each grid, na is the length of the vertical vector at the centroid location.

[0013] Furthermore, the method of obtaining a triangulated blade model comprises the following specific steps: collecting a blade image, reconstructing the image using structure from motion, and obtaining a point cloud file, wherein the point cloud file is a point set with coordinate data; meshing the point cloud file using Meshleb software, and preprocessing the meshed point cloud file using a PCL point cloud library to obtain a complete point cloud file; and obtaining a triangulated blade model by controlling the size of the search area of ​​the projection point according to the coordinate data in the point set using a greedy projection triangulation algorithm based on the growth method.

[0014] Furthermore, the preprocessing includes: optimizing the point cloud file after gridding through a point cloud segmentation algorithm to obtain the internal points and external points of the optimized model parameters; filtering the optimized point cloud file according to a downsampling filtering algorithm to obtain a filtered point cloud file, so that the number of point clouds is reduced and the geometric structure of the point cloud is maintained unchanged; performing surface reconstruction on the filtered point cloud file according to an upsampling filtering algorithm to obtain a complete point cloud file.

[0015] An embodiment of the present invention provides a blade curling degree calculation system, comprising:

[0016] The model building module is used to obtain a triangulated blade model and differentiate the triangulated blade model into multiple grids, wherein the undulation degree of each grid is different; the vector analysis module is used to obtain the vertical vector of each grid according to the vertex coordinates of each grid; obtain the vertical vector of the centroid position of the blade model; project the vertical vector of each grid onto the vertical vector of the centroid position and record the projection length of the vertical vector of each grid, and sum all the projection lengths; the blade curl degree determination module is used to substitute the ratio of the summation result and the vertical vector length of the centroid position into the blade curl index formula to obtain the blade curl index, and determine the blade curl degree through the blade curl index.

[0017] An embodiment of the present invention provides a blade curl degree calculation device, comprising: a memory and a processor; the memory stores a computer program, and the processor implements the above-mentioned blade curl degree calculation method when executing the computer program.

[0018] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for calculating the curling degree of a blade is implemented.

[0019] The embodiments of the present invention provide a method, system, device and medium for calculating the curling degree of a blade. Compared with the prior art, the beneficial effects thereof are as follows:

[0020] Obtain a triangulated leaf model, and differentiate the triangulated leaf model into multiple grids, use the vertex coordinates of each grid to obtain the vertical vector of each grid, obtain the vertical vector of the centroid position of the leaf model, project the vertical vector of each grid on the vertical vector of the centroid position and record the projection length of the vertical vector of each grid, sum all the projection lengths, and finally use the formula to obtain the leaf curl index and determine the degree of leaf curl.

[0021] Among them, since there is a certain degree of undulation on the surface of the leaf when it curls, the triangulated leaf model is differentiated into multiple grids, and the degree of undulation of each grid is different. The leaf curl index is obtained by combining the vertical vector length of each grid with the vertical vector length of the centroid position of the leaf model using the leaf curl index formula. The influence of the undulation of each grid on the calculation of the leaf curl index can be taken into account, and finally the leaf curl degree is determined by the accurately calculated leaf curl index. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 An original cotton leaf point cloud file of a leaf curl degree calculation method, system, device and medium provided by an embodiment of the present invention;

[0023] Figure 2A method, system, device and medium for calculating the curling degree of a blade provided by an embodiment of the present invention is provided. A point cloud file for differential patching using a greedy projection triangulation algorithm for patching of a medium;

[0024] Figure 3 A vertical vector diagram of a blade grid and a vertical vector front diagram of the center of mass position of the entire blade of a blade curling degree calculation method, system, device and medium provided by an embodiment of the present invention;

[0025] Figure 4 A method, system, device and medium for calculating the curling degree of a blade provided in an embodiment of the present invention include a vertical vector diagram of a blade grid and a vertical vector side diagram of the center of mass position of the entire blade. DETAILED DESCRIPTION

[0026] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.

[0027] See also Figures 1 to 4 , an embodiment of the present invention provides a method for calculating the curling degree of a blade, comprising the following steps:

[0028] Step 1: Collect leaf images.

[0029] Step 2: Use motion recovery structure to reconstruct the image and obtain a point cloud file, which is a point set with coordinate data. Use Meshleb software to mesh the point cloud file, and pre-process the meshed point cloud file through the PCL point cloud library to obtain a complete point cloud file. Use the greedy projection triangulation algorithm based on the growth method to control the search area size of the projection point to obtain a triangulated leaf model.

[0030] Step 3: Use the PCL point cloud library to differentiate the triangulated 3D blade model into n meshes. Use the cross product function to obtain the vertical vector of each mesh using the vectors composed of multiple vertices of each mesh. The length of the vertical vector is set to a, and the number of vectors is i, that is, a1=a2...=a i =...a n =a, record the starting point coordinates A of all surface normals i (x ai ,y ai ,z ai ) and the end point coordinates B i (x bi ,ybi ,z bi ). The centroid coordinates of the point cloud are obtained by using the centroid formula using the coordinates of all points in the point cloud file. The vertical vector of the centroid position is obtained by using the cross product function using the centroid coordinates. Set the length of the vertical vector at the centroid position to na, and record its starting point coordinates A(x a ,y a ,z a ) and the end point coordinates B(x b ,y b ,z b ).

[0031] Step 4: The vertical vectors a of the i grids are i Project onto the perpendicular vector AB at the centroid position, and record the length of each projection as a' i When the angle between the vertical vector of each grid and the vertical vector of the center of mass is acute, the projection length is positive. When the angle between the vertical vector of each grid and the vertical vector of the center of mass is obtuse, the projection length is negative. When the angle between the vertical vector of each grid and the vertical vector of the center of mass is right, the projection length is 0.

[0032] Step 5: Sum the projection lengths of the vertical vectors of each grid after determining the positive, negative or zero value, and calculate the ratio of the sum result to the vertical vector length at the center of mass position. The leaf curl index is obtained by the ratio of the sum result to the vertical vector length at the center of mass position, and the degree of leaf curl is determined by the leaf curl index.

[0033] The leaf curl index is:

[0034]

[0035] Where LRI is the leaf curl index, n is the number of vertical vector projections determined by n grids, and a' i The projected length of the vertical vector determined for each grid, na is the length of the vertical vector at the centroid location.

[0036] The preprocessing includes the following steps:

[0037] The point cloud segmentation algorithm optimizes the point cloud file after gridding processing to obtain the local points and external points of the optimized model parameters; the downsampling filtering algorithm filters the optimized point cloud file to obtain a filtered point cloud file, reducing the number of point clouds and maintaining the point cloud geometric structure unchanged; the upsampling filtering algorithm reconstructs the surface of the filtered point cloud file to obtain a complete point cloud file.

[0038] An embodiment of the present invention provides a blade curling degree calculation system, comprising:

[0039] The model building module is used to obtain a triangulated blade model and differentiate the triangulated blade model into multiple grids, wherein each grid has a different degree of undulation. The vector analysis module is used to obtain the vertical vector of each grid based on the vertex coordinates of each grid; obtain the vertical vector of the centroid position of the blade model; project the vertical vector of each grid onto the vertical vector of the centroid position and record the projection length of the vertical vector of each grid, and sum all the projection lengths. The blade curling degree determination module is used to substitute the ratio of the summation result and the vertical vector length of the centroid position into the blade curling index formula to obtain the blade curling index, and determine the blade curling degree through the blade curling index.

[0040] An embodiment of the present invention provides a blade curling degree calculation device, including: a memory and a processor; the memory stores a computer program, and the processor implements the following method when executing the computer program:

[0041] A triangulated blade model is obtained, and the triangulated blade model is differentiated into multiple grids, wherein each grid has a different degree of undulation. The vertical vector of each grid is obtained according to the vertex coordinates of each grid. The vertical vector of the centroid position of the blade model is obtained. The vertical vector of each grid is projected onto the vertical vector of the centroid position and the projection length of the vertical vector of each grid is recorded, and all projection lengths are summed. The ratio of the summation result and the length of the vertical vector at the centroid position is substituted into the blade curl index formula to obtain the blade curl index, and the degree of leaf curl is determined by the blade curl index.

[0042] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following method is implemented:

[0043] A triangulated blade model is obtained, and the triangulated blade model is differentiated into multiple grids, wherein each grid has a different degree of undulation. The vertical vector of each grid is obtained according to the vertex coordinates of each grid. The vertical vector of the centroid position of the blade model is obtained. The vertical vector of each grid is projected onto the vertical vector of the centroid position and the projection length of the vertical vector of each grid is recorded, and all projection lengths are summed. The ratio of the summation result and the length of the vertical vector at the centroid position is substituted into the blade curl index formula to obtain the blade curl index, and the degree of leaf curl is determined by the blade curl index.

[0044] A specific embodiment is as follows:

[0045] (1) Take an image of a plant leaf, reconstruct the image using structure from motion to obtain a point cloud file, mesh the point cloud file using Meshleb software, and then preprocess it using the PCL point cloud library. Finally, a greedy projection triangulation algorithm based on the growth method is used to control the search area size of the projection point to obtain a triangulated leaf model.

[0046] (2) The PCL point cloud library is used to differentiate the patched 3D leaf point cloud into n grids, and the surface normal of each grid, i.e., the vertical vector, is calculated. The length of the surface normal is set to a, i.e., a1 = a2 ... = a i =...a n =a, record the starting point coordinates A of all surface normals i (x ai ,y ai ,z ai ) and the end point coordinates B i (x bi ,y bi ,z bi ).

[0047] (3) Calculate the surface normal of the centroid of the blade point cloud, that is, the vertical vector, whose length is set to na, and record its starting point coordinates A(x a ,y a ,z a ) and the end point coordinates B(x b ,y b ,z b ).

[0048] (4) All a i , that is, the small vector A i B i , projected onto the large vector AB, the length after projection is recorded as a' i , where the angle between the large vector and the direction is an acute angle a' i is a positive value, and the angle between the large vector and the direction is an obtuse angle a' i a' is a negative value, and the angle between it and the direction of the large vector is a right angle i is 0.

[0049] (5) A definition and method for quantifying the curling degree of irregular leaves by vector length ratio is proposed. That is:

[0050]

[0051] Wherein, LRI is the leaf curl index.

[0052] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for calculating the curling degree of a leaf, characterized in that: The following steps are involved: Obtaining a triangulated blade model, and differentiating the triangulated blade model into a plurality of grids, wherein each grid has a different degree of undulation; Obtain the vertical vector of each grid according to the vertex coordinates of each grid; obtain the vertical vector of the centroid position of the blade model; Project the vertical vector of each grid onto the vertical vector of the centroid position and record the projection length of the vertical vector of each grid, and sum all the projection lengths; Substitute the ratio of the summation result and the vertical vector length of the centroid into the leaf curl index formula to obtain the leaf curl index, and determine the leaf curl degree through the leaf curl index; The leaf curl index formula is: Where LRI is the leaf curl index, n is the number of vertical vector projections determined by n grids, and a' i The projected length of the vertical vector determined for each grid, na is the length of the vertical vector at the centroid location.

2. A method for calculating the curling degree of a blade as claimed in claim 1, characterized in that: The specific steps of obtaining the vertical vector of each grid according to the vertex coordinates of each grid are as follows: The PCL point cloud library is used to differentiate the triangulated 3D blade model into n grids; Through the cross product function, the vertical vector of each mesh is obtained using the vectors composed of multiple vertices of each mesh; The length of the vertical vector is set to a, and the number of vectors is i, that is, a1 = a2 ... = a i =...a n =a, record the starting point coordinates A of all surface normals i (x ai ,y ai ,z ai ) and the end point coordinates B i (x bi ,y bi ,z bi ).

3. A method for calculating the curling degree of a leaf as claimed in claim 1, characterized in that: The specific steps of obtaining the vertical vector of the centroid position of the blade model are as follows: The centroid coordinates of the point cloud are obtained by using the centroid formula using the coordinates of all points in the point set, and the point set is obtained from the leaf image using the motion recovery structure algorithm; The vertical vector of the centroid position is obtained by using the centroid coordinates through the cross product function; Set the length of the vertical vector at the centroid position to na, and record its starting point coordinates A(x a ,y a ,z a ) and the end point coordinates B(x b ,y b ,z b ).

4. A method for calculating the curling degree of a leaf as claimed in claim 1, characterized in that: The vertical vector of each grid is projected onto the vertical vector of the centroid position and the projection length of the vertical vector of each grid is recorded, and all projection lengths are summed. The specific steps are as follows: The vertical vectors a of the total i of multiple grids i Project onto the perpendicular vector AB at the centroid position, and record the length of each projection as a' i ; When the angle between the vertical vector of each grid and the vertical vector of the centroid position is acute, the projection length is positive; When the angle between the vertical vector of each grid and the vertical vector of the centroid is an obtuse angle, the projection length is a negative value; When the angle between the vertical vector of each grid and the vertical vector of the centroid is a right angle, the projection length is 0; Sum the projected lengths of the perpendicular vectors for each grid after determining the positive, negative, or zero value.

5. A method for calculating the curling degree of a blade as claimed in claim 1, characterized in that: The specific steps of obtaining the triangulated leaf model are as follows: Collect blade images, reconstruct the images using motion recovery structure, and obtain point cloud files, which are point sets with coordinate data; The point cloud file is meshed by Meshleb software, and the meshed point cloud file is pre-processed by PCL point cloud library to obtain a complete point cloud file; Through the greedy projection triangulation algorithm based on the growth method, the search area size of the projection point is controlled according to the coordinate data in the point set to obtain the triangulated leaf model.

6. A method for calculating the curling degree of a blade as claimed in claim 5, characterized in that: The pre-processing comprises: The point cloud file after gridding is optimized by point cloud segmentation algorithm to obtain the internal and external points of the optimized model parameters; The optimized point cloud file is filtered according to a downsampling filtering algorithm to obtain a filtered point cloud file, so that the number of point clouds is reduced and the geometric structure of the point cloud is maintained unchanged; The surface of the filtered point cloud file is reconstructed according to the upsampling filtering algorithm to obtain a complete point cloud file.

7. A system for calculating the curling degree of a leaf, characterized in that: include: A model building module is used to obtain a triangulated blade model and differentiate the triangulated blade model into a plurality of grids, wherein each grid has a different degree of undulation; A vector analysis module is used to obtain the vertical vector of each grid according to the vertex coordinates of each grid; obtain the vertical vector of the centroid position of the blade model; project the vertical vector of each grid on the vertical vector of the centroid position and record the projection length of the vertical vector of each grid, and sum all the projection lengths; A leaf curling degree determination module is used to substitute the ratio of the summation result and the vertical vector length of the centroid position into the leaf curling index formula to obtain the leaf curling index, and determine the leaf curling degree through the leaf curling index; The leaf curl index formula is: Where LRI is the leaf curl index, n is the number of vertical vector projections determined by n grids, and a' i The projected length of the vertical vector determined for each grid, na is the length of the vertical vector at the centroid location.

8. A device for calculating the curling degree of a leaf, comprising: Memory and processor; The memory stores a computer program, wherein the processor implements a method for calculating a curling degree of a blade according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, a method for calculating the curling degree of a blade according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method for measuring curl degree of plant leaves with main veins

    CN111259321A

  • Calculation method for local bending characteristic of plant leaf

    CN116697920A

Cited By

  • Corn leaf crimpness calculation method and system based on image processing

    CN120976293A

  • A method and system for calculating the curl of maize leaves based on image processing

    CN120976293B