A method for real-time measurement of fruit tree canopy volume based on two-dimensional laser sensor

The point cloud data of fruit trees is obtained through a two-dimensional laser sensor, an irregular triangular network is generated and the volume of irregular triangular prisms is calculated, which solves the problem of large error in measuring the volume of fruit tree canopy in the existing technology and improves the accuracy and real-time performance of the calculation. Provide precise spray volume for automatic spraying in orchards, reducing pesticide waste and environmental pollution.

CN109764809BActive Publication Date: 2024-09-17SOUTHWEST UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN201910056532.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-22
Publication Date
2024-09-17
Estimated Expiration
2039-01-22

AI Technical Summary

Technical Problem

Existing fruit tree canopy volume measurement methods have large errors and poor accuracy, resulting in poor pesticide application results with automatic spray technology in orchards, resulting in pesticide waste and environmental pollution.

Method used

A real-time calculation method based on two-dimensional laser sensors is used to obtain point cloud data of trees, generate an irregular triangle network, establish a canopy segmentation model based on irregular triangular prisms, and calculate the triangular prism volume to approximate the fruit tree canopy volume, dynamically Identifying fruit tree trunk thickness to reduce errors.

Benefits of technology

It improves the accuracy and precision of fruit tree canopy volume measurement, reduces errors caused by uneven planting of causal trees and uneven sprayer travel, and provides variable spray prescriptions in real time, which is suitable for automatic profiling sprays and yield estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109764809B
    Figure CN109764809B
Patent Text Reader

Abstract

The present invention belongs to the field of modern agricultural technology, and discloses a method for real-time measurement of the canopy volume of fruit trees based on a two-dimensional laser sensor; the point cloud data of trees is obtained by using a two-dimensional laser sensor, and three adjacent points between every two frames are connected according to a certain rule to generate an irregular triangular network, and then the triangles on the surface are projected onto a cross section parallel to the forward direction of the laser sensor and perpendicular to the ground through the center line of the trunk, and a canopy segmentation model based on an irregular triangular prism is obtained, and the volumes of all triangular prisms are added to approximate the canopy volume of the fruit tree. Compared with the traditional rectangular parallelepiped segmentation method, the present invention has higher measurement accuracy, fast processing speed, good real-time performance, and can provide variable prescriptions for the air volume and spray volume of automatic profiling spraying (spraying medicine, foliar fertilizer spraying) in real time, and can also be used for fruit tree yield estimation and variable fertilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of modern agriculture, and in particular relates to a method for real-time measurement of the canopy volume of a fruit tree based on a two-dimensional laser sensor. Background Art

[0002] Currently, the commonly used existing technologies in the industry are as follows: Efficient pesticide utilization is crucial for orchard pest control, high-quality yields, and environmental protection. However, due to the relatively late start of agricultural mechanization in my country, most rural areas still use manual and pedal-operated sprayers. This method of operation is less effective in applying pesticides to target fruit trees, not only failing to achieve the desired control effects but also resulting in significant pesticide waste and soil and water pollution. Therefore, the development of automated targeted spraying technology is of great significance for improving the level of pesticide application technology and equipment in my country's orchards.

[0003] Automatic target detection technology is relatively well established, primarily utilizing ultrasonic sensors, infrared sensors, CCD image sensors, and laser sensors. Laser sensors, with their high recognition accuracy and fast scanning speed, can detect target features such as volume and contour, providing precise variable prescriptions for sprayers. This technology has garnered widespread attention from scholars both domestically and internationally.

[0004] Orchard automatic contour sprayers based on variable spraying usually use the cuboid segmentation method to construct the canopy model, discretizing the fruit tree canopy into multiple small cuboids, and adding up the volumes of all the rectangles to approximate the canopy volume of the fruit tree. Figure 2 The figure shows the principle diagram of volume measurement of a single cuboid. The x-axis is the direction of the laser sensor, the y-axis is the direction toward the plant, and the z-axis is perpendicular to the ground. When the laser scanner moves to point P, it scans point A, Y a is the coordinate of point D on the y-axis, indicating the horizontal distance from the sensor to point A on the outer edge of the fruit tree. p is the horizontal distance from the sensor to the center line of the fruit tree, and the canopy thickness at point A on the outer edge of the fruit tree is w=D p -Y a The height h of a longitudinal segment is the difference between the z values ​​of the previous scan point and point A, and its width is s = v·t, where v is the sprayer's forward speed and t is the sensor's scanning period. The volume of a single segment is V = s·h·w. Adding up the volumes of all segments approximates the total volume of the fruit tree canopy. This segmentation method suffers from large errors and poor accuracy.

[0005] In summary, the problems existing in the prior art are: the existing fruit tree canopy volume measurement methods have large errors and poor accuracy. Summary of the Invention

[0006] In response to the problems existing in the prior art, the present invention provides a method for real-time measurement of the canopy volume of fruit trees based on a two-dimensional laser sensor.

[0007] The present invention is implemented as follows: a method for real-time measurement of the canopy volume of fruit trees based on a two-dimensional laser sensor, wherein the method uses a two-dimensional laser sensor to obtain point cloud data of trees; three adjacent points between every two frames are connected according to a certain rule to generate an irregular triangulated network; the triangles on the surface are projected onto a cross-section parallel to the forward direction of the laser sensor, passing through the center line of the trunk and perpendicular to the ground, to obtain a canopy segmentation model based on irregular triangular prisms, and the volumes of all triangular prisms are added together to approximate the canopy volume of the fruit tree.

[0008] Furthermore, the method for real-time measurement of the canopy volume of fruit trees based on a two-dimensional laser sensor specifically includes:

[0009] Step 1: Set the working parameters of the laser sensor, including scanning angle resolution, scanning frequency, angle range, etc., and then set the horizontal distance D from the sensor to the fruit tree trunk. p ;

[0010] Step 2: Start scanning, receive and process the point cloud data returned by the sensor.

[0011] Step 3: Determine whether there is a target in the scanning area. If yes, go to step 4; if not, go to step 2.

[0012] Step 4: Determine whether the trunk is detected. If so, calculate the horizontal distance from the scanner to the trunk and save it as D p , go to step five; if not, go to step six;

[0013] Step 5: Use the acquired point cloud data to build a triangular mesh model;

[0014] Step 6. Use the triangular mesh model obtained in step 5 and D p Calculate the volume of the fruit tree and then proceed to step 2.

[0015] Furthermore, in step 2, the measurement data returned by the laser scanner is transmitted in the form of a string. The data processing software needs to parse, buffer, and perform relevant processing on the string data transmitted back. The returned measurement data is polar coordinate data. First, the scan data is converted from the polar coordinate system to the rectangular coordinate system:

[0016] X i =v·t;

[0017] Y i =l i cosθ;

[0018] Z i =l i sinθ;

[0019] The coordinate origin is the initial position of the scanner, the x-axis is the forward direction of the laser sensor, the y-axis is horizontal to the plant, and the z-axis is vertical to the ground. i 、Y i , Z i is the coordinate value of the i-th scanning point in the rectangular coordinate system, l i is the straight-line distance from the scanner to the i-th scanning point, θ is the scanning angle of the i-th scanning point, v is the travel speed of the laser sensor, and t is the travel time.

[0020] Furthermore, the process of determining whether a tree trunk is detected and calculating the horizontal distance from the scanner to the tree trunk in step 4 specifically includes:

[0021] (1) Detecting tree trunks requires analyzing all scan points. Where n represents the number of scan frames, N j Indicates whether the jth frame is a trunk frame, N j =0 means that there is no trunk in this frame, N j =1 indicates that there is a tree trunk in this frame; according to the initially set scanning angle range β and angular resolution α, the number of scanning points in a single frame is calculated as:

[0022]

[0023] calculate Determine whether j is an integer; if so, the i-th scanning point is the first scanning point of the j-th frame, and set N j =0; if not, continue to judge the next scanning point;

[0024] (2) Threshold S = 20 mm. Calculate the difference between scanning point i and scanning point i-1 in the y-axis direction:

[0025] n=|Y i -Y i-1 |;

[0026] Determine whether n < S. If so, consider point i and point i-1 to be continuous and proceed to the next scan point. Otherwise, consider the point set to be finished, point i-1 is the end point of the point set, establish a new point set with point i as the initial point, and proceed to the next scan point.

[0027] (3) The threshold fruit tree trunk height is l tree = 200mm, the initial point and the end point of each scanning point set are calculated as follows:

[0028] |Z start-Z end |>l tree ;

[0029] If the above inequality holds, it indicates that the scan point set is a trunk scan point set, and we can get Change N j =1, execute (4); otherwise, it indicates that the scanning point set is not the trunk scanning point set, and continue to judge the next scanning point;

[0030] (4) Determine the previous frame N of this frame j-1 = 0 is true, if true, then the frame is the starting frame of the trunk, take the y-axis average value of the trunk point set as D p , which indicates the horizontal distance from the scanner to the tree trunk. If the distance is less than , the tree trunk is not detected.

[0031] Furthermore, the process of establishing a triangular mesh model from the point cloud data obtained in step 5 specifically includes:

[0032] (1) According to the initially set scanning angle range β and angle resolution α, the number of scanning points in a single frame can be calculated as:

[0033]

[0034] (2) For the i-th scanning point, determine Is it true? If not, continue scanning; if so, execute (3);

[0035] (3) For the i-th scanning point, determine whether i%num≠0 is true. If not, continue to determine the next scanning point; if so, execute (4);

[0036] (4) Threshold T = 500 mm, judge Y i-1 >T、Y i-num >T、Y i-num-1 >T、Y i-1 -D p >0, Y i-num -D p >0, Y i-num-1 -D p > 0 are both true, if so, connect the three points i-1, i-num, and i-num-1 to form a triangle; if not, discard the triangle;

[0037] (5) Set the threshold T = 500mm and judge Y i >T、Y i-1 >T、Y i-num >T、Y i -D p >0, Y i-1 -D p >0, Yi-num -D p >0 are both true. If so, connect the three points i, i-1, and i-num to form a triangle and continue to judge the next scanning point; if not, discard the triangle and continue to judge the next scanning point.

[0038] Furthermore, in step six, all triangles are projected onto a cross section parallel to the direction of travel of the laser sensor, passing through the center line of the tree trunk and perpendicular to the ground, to obtain a canopy segmentation model based on an irregular triangular prism; given the three-dimensional coordinate values ​​of each triangle vertex and the horizontal distance from the laser sensor to the cross section, the edge length of the irregular triangular prism can be calculated, and then the volume of each triangular prism can be calculated. The volumes of all triangular prisms are added together to approximate the canopy volume of the fruit tree.

[0039] In summary, the advantages and positive effects of the present invention are as follows: the canopy segmentation method based on irregular triangular prisms of the present invention has smaller errors and higher accuracy than the existing technology. Most existing fruit tree profiling sprayers use the horizontal distance from the initially set sensor to the fruit tree trunk to calculate the canopy volume; the present invention calculates the canopy thickness and the canopy volume of the fruit tree by dynamically identifying the fruit tree trunk, which can effectively reduce the errors caused by uneven planting of fruit trees and the non-straight movement of the sprayer. The algorithm proposed by the present invention has fast processing speed and good real-time performance. It can provide variable prescriptions for the air volume and spray volume of automatic profiling spraying (spraying, foliar fertilizer spraying) in real time, and can also be used for fruit tree yield estimation and variable fertilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a flow chart of a method for real-time measurement of fruit tree canopy volume based on a two-dimensional laser sensor provided by an embodiment of the present invention.

[0041] Figure 2 This is a flowchart of a method for real-time measurement of the canopy volume of fruit trees based on a two-dimensional laser sensor provided by an embodiment of the present invention.

[0042] Figure 3 It is a schematic diagram of the principle of the canopy segmentation method based on the rectangular parallelepiped model provided by an embodiment of the present invention.

[0043] Figure 4 It is a side schematic diagram of a sprayer scanning a fruit tree provided by an embodiment of the present invention.

[0044] Figure 5 It is a planar schematic diagram of a canopy segmentation method based on an irregular triangular prism model provided by an embodiment of the present invention.

[0045] Figure 6 It is a schematic diagram of the principle of the canopy segmentation method based on the irregular triangular prism model provided by an embodiment of the present invention.

[0046] Figure 7This is a two-dimensional point cloud image of a fruit tree provided by an embodiment of the present invention.

[0047] Figure 8 This is a depth image of a fruit tree provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0049] The application principle of the present invention is described in detail below with reference to the accompanying drawings.

[0050] like Figure 1 As shown, the method for real-time measurement of the canopy volume of a fruit tree based on a two-dimensional laser sensor provided by an embodiment of the present invention includes the following steps:

[0051] S101: Use a two-dimensional laser sensor to obtain point cloud data of trees; connect every three points between every two frames according to a certain pattern to generate an irregular triangulated network;

[0052] S102: Projecting the triangle of the surface onto a cross section parallel to the direction of travel of the laser sensor, passing through the center line of the tree trunk, and perpendicular to the ground;

[0053] S103: Obtain a canopy segmentation model based on irregular triangular prisms, and add up the volumes of all triangular prisms to approximate the canopy volume of the fruit tree.

[0054] The application principle of the present invention will be further described below with reference to the accompanying drawings.

[0055] like Figure 2 As shown, the embodiment of the present invention provides a method for real-time measurement of the canopy volume of fruit trees based on a two-dimensional laser sensor; Figure 5 As shown, a vehicle-mounted 2D laser sensor is used to acquire point cloud data of trees. Three adjacent points between each two frames are then connected according to a certain pattern to generate an irregular triangulated network (TMN). The surface triangles are then projected onto a cross-section parallel to the laser sensor's direction of travel, passing through the trunk centerline, and perpendicular to the ground. This yields a canopy segmentation model based on irregular triangular prisms. The volumes of all triangular prisms are summed to approximate the canopy volume of the fruit tree. The method includes the following steps:

[0056] Step 1: Set the working parameters of the laser sensor, including scanning angle resolution, scanning frequency, angle range, etc., and then set the horizontal distance D from the sensor to the fruit tree trunk. p , the fruit tree canopy volume V=0.

[0057] Step 2: Start scanning, receive and process the point cloud data returned by the sensor. The method for processing point cloud data is as follows:

[0058] The measurement data returned by the laser scanner is transmitted in the form of a string. The data processing software needs to parse and buffer the string data transmitted back, and then perform relevant processing. The returned measurement data is polar coordinate data, so the scan data needs to be transferred from the polar coordinate system to the rectangular coordinate system first:

[0059] X i =v·t;

[0060] Y i =l i cosθ;

[0061] Z i =l i sinθ;

[0062] The coordinate origin is the initial position of the scanner, the x-axis is the forward direction of the laser sensor, the y-axis is horizontal to the plant, and the z-axis is vertical to the ground. i 、Y i , Z i is the coordinate value of the i-th scanning point in the rectangular coordinate system, l i is the straight-line distance from the scanner to the i-th scanning point, θ is the scanning angle of the i-th scanning point, v is the travel speed of the laser sensor, and t is the travel time.

[0063] Step 3: Determine whether there is a target in the scanning area. If yes, go to step 4; if not, go to step 2.

[0064] Step 4: Determine whether the trunk is detected. If so, calculate the horizontal distance from the scanner to the trunk and save it as D p , execute step 5; if not, execute step 6. In the present invention, firstly, a y-coordinate change threshold is set, and by setting a single-frame point cloud data detection, it is determined whether there is a certain length of continuous point cloud whose y-coordinate changes within the set threshold range to determine whether there is a tree trunk. The specific implementation steps are as follows:

[0065] (1) Detecting tree trunks requires analyzing all scan points. Where n represents the number of scan frames, N j Indicates whether the jth frame is a trunk frame, N j =0 means that there is no trunk in this frame, N j =1 indicates that there is a tree trunk in this frame; according to the initially set scanning angle range β and angular resolution α, the number of scanning points in a single frame is calculated as:

[0066]

[0067] calculate Determine whether j is an integer; if so, the i-th scanning point is the first scanning point of the j-th frame, and set N j =0; if not, continue to judge the next scanning point;

[0068] (2) Threshold S = 20 mm. Calculate the difference between scanning point i and scanning point i-1 in the y-axis direction:

[0069] n=|Y i -Y i-1 |;

[0070] Determine whether n < S. If so, consider point i and point i-1 to be continuous and proceed to the next scan point. Otherwise, consider the point set to be finished, point i-1 is the end point of the point set, establish a new point set with point i as the initial point, and proceed to the next scan point.

[0071] (3) The threshold fruit tree trunk height is l tree = 200mm, the initial point and the end point of each scanning point set are calculated as follows:

[0072] |Z start -Z end |>l tree ;

[0073] If the above inequality holds, it indicates that the scan point set is a trunk scan point set, and we can get Change N j =1, execute (4); otherwise, it indicates that the scanning point set is not the trunk scanning point set, and continue to judge the next scanning point;

[0074] (4) Determine the previous frame N of this frame j-1 = 0 is true, if true, then the frame is the starting frame of the trunk, take the y-axis average value of the trunk point set as D p , which indicates the horizontal distance from the scanner to the tree trunk. If the distance is less than , the tree trunk is not detected.

[0075] Step 5: Figure 5 , which represents the triangular mesh model built using the acquired point cloud data. The specific implementation steps are as follows:

[0076] (1) According to the initially set scanning angle range β and angle resolution α, the number of scanning points in a single frame can be calculated as:

[0077]

[0078] (2) For the i-th scanning point, determine Is it true? If not, continue scanning; if so, execute (3);

[0079] (3) For the i-th scanning point, determine whether i%num≠0 is true. If not, continue to determine the next scanning point; if so, execute (4);

[0080] (4) Threshold T = 500 mm, judge Y i-1 >T、Y i-num >T、Y i-num-1 >T、Y i-1 -D p >0, Y i-num -D p >0, Y i-num-1 -D p > 0 are both true, if so, connect the three points i-1, i-num, and i-num-1 to form a triangle; if not, discard the triangle;

[0081] (5) Set the threshold T = 500mm and judge Y i >T、Y i-1 >T、Y i-num >T、Y i -D p >0, Y i-1 -D p >0, Y i-num -D p >0 are both true. If so, connect the three points i, i-1, and i-num to form a triangle and continue to judge the next scanning point; if not, discard the triangle and continue to judge the next scanning point.

[0082] Step 6: Project the triangle obtained in step 5 onto a section parallel to the direction of the laser sensor, passing through the center line of the tree trunk and perpendicular to the ground. You can get an irregular triangular prism. The three-dimensional coordinates of each triangle vertex and the horizontal distance D from the laser sensor to the section are known. p , we can find the length of the irregular triangular prism, and then find the volume of the irregular triangular prism. Add the obtained volume to the volume of the fruit tree canopy V and execute step 2. The method for calculating the volume of a single irregular triangular prism is as follows: Figure 6 As shown, the specific calculation steps are:

[0083] (1) Given A(X a ,Y a ,Z a ), B(X b ,Y b ,Z b ), C(X c ,Y c ,Z c) Three-point coordinates, horizontal distance D from the laser sensor to the plane where ΔA′B′C′ is located p , we can get the coordinates of points A′, B′, and C′: A′(X a ,D p ,Z a ), B′(X b ,D p ,Z b ), C′(X c ,D p ,Z c ). Draw a straight line parallel to AB′ through point A, and compare it with side BB′ at point B″; draw a straight line parallel to B′C′ through point C, and compare it with side BB′ at point B″; draw a straight line parallel to A′C′ through point C, and intersect it with the extension of AA′ at point A″; connect A″B″, and intersect it with AB at point D; connect points C and D.

[0084] (2) Calculate the lengths of the three sides A′B′, B′C′, and A′C′, and the area of ​​the triangle ΔA′B′C′:

[0085]

[0086]

[0087]

[0088] P=(A′B′+B′C′+A′C′) / 2;

[0089] According to Heron's formula, the area of ​​a triangle is:

[0090]

[0091] (3) According to the triangle similarity criterion, DB″ / AB″′=BB″ / BB″′, we can get:

[0092] A′B′=AB″′;

[0093] DB″=(Y b -Y c ) / (Y b -Y a )×AB″′;

[0094] (4) Calculate the azimuth of A′B′:

[0095]

[0096] (5) Calculate the coordinates of point D:

[0097] X d =X b +DB″×sinθ;Yd =Y c ; Z d =Z b + DB″×cosθ;

[0098] (6) Calculate the area of ​​triangle CDB″:

[0099]

[0100] CB″=B′C′;

[0101]

[0102] P′=(CD+CB″+DB″) / 2;

[0103] According to Heron's formula, the area of ​​triangle CDB″ is:

[0104]

[0105] The area of ​​triangle A″CD is:

[0106] S ΔA″CD =S ΔA′B′C′ -S ΔCDB″ ;

[0107] (7) Calculate the volume of the irregular triangular prism ABC-A′B′C′:

[0108]

[0109]

[0110] V A″B″C-A′B′C′ =(D P -Y a )×S ΔA′B′C′ ;

[0111] V ABC-A′B′C′ =V A″B″C-A′B′C′ +V B-B″CD -V A-A″CD .

[0112] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for real-time calculation of canopy volume of fruit trees based on two-dimensional laser sensor, characterized in that: The method for real-time measurement of the canopy volume of fruit trees based on a two-dimensional laser sensor uses a two-dimensional laser sensor to obtain point cloud data of trees; three adjacent points between every two frames are connected according to a certain rule to generate an irregular triangulated network; the triangles on the surface are projected onto a cross section parallel to the forward direction of the laser sensor and passing through the center line of the trunk and perpendicular to the ground to obtain a canopy segmentation model based on an irregular triangular prism, and the volumes of all triangular prisms are added to approximate the canopy volume of the fruit tree; The method for real-time calculation of the canopy volume of fruit trees based on a two-dimensional laser sensor specifically comprises: Step 1: Set the working parameters of the laser sensor, including scanning angle resolution, scanning frequency, angle range, etc., and then set the horizontal distance D from the sensor to the trunk of the fruit tree. p ; Step 2: Start scanning, receive and process the point cloud data returned by the sensor; Step 3: Determine whether there is a target in the scanning area. If yes, proceed to step 4; if no, proceed to step 2; Step 4: Determine whether the tree trunk is detected. If so, calculate the horizontal distance from the scanner to the tree trunk and save it as D p , proceed to step five; if not, proceed to step six; Step 5: Use the acquired point cloud data to build a triangular mesh model; Step 6: Use the triangular mesh model obtained in step 5 and D p Calculate the volume of the fruit tree, then proceed to step 2.

2. The method for real-time calculation of the canopy volume of fruit trees based on a two-dimensional laser sensor as claimed in claim 1, characterized in that: In the step 2, the measurement data returned by the laser scanner is transmitted in the form of a character string, and the data processing software needs to parse and buffer the character string data transmitted back and perform relevant processing; The returned measurement data is polar coordinate data. First, convert the scan data from polar coordinate system to rectangular coordinate system: X i =v·t; Y i l i cosθ; Z i =l i sinθ; The coordinate origin is the initial position of the scanner, the x-axis is the forward direction of the laser sensor, the y-axis is horizontal to the plant, and the z-axis is vertical to the ground. i , Y i , Z i is the coordinate value of the i-th scanning point in the rectangular coordinate system, l i is the straight-line distance from the scanner to the i-th scanning point, θ is the scanning angle of the i-th scanning point, v is the travel speed of the laser sensor, and t is the travel time.

3. The method for real-time calculation of the canopy volume of fruit trees based on a two-dimensional laser sensor as claimed in claim 1, characterized in that: The process of determining whether a tree trunk is detected and calculating the horizontal distance from the scanner to the tree trunk in step 4 specifically includes: (1) Detecting tree trunks requires analyzing all scanning points. Where n represents the number of scan frames, N j Indicates whether the jth frame is a trunk frame, N j = 0 means that there is no trunk in this frame, N j =1 means that there is a tree trunk in this frame; according to the initially set scanning angle range β and angle resolution α, the number of scanning points in a single frame is calculated as: calculate Determine whether j is an integer; if so, the i-th scanning point is the first scanning point of the j-th frame, and set N j =0; if not, continue to judge the next scanning point; (2) Threshold S = 20 mm, calculate the difference between scanning point i and scanning point i-1 in the y-axis direction: n=|Y i -AND i-1 |; Determine whether n<S is true. If so, it is determined that point i is continuous with point i-1, and the judgment of the next scanning point is continued; otherwise, it is determined that the point set ends, point i-1 is the end point of the point set, and a new point set is established, with point i as the initial point, and the judgment of the next scanning point is continued; (3) The threshold fruit tree trunk height is l tree =200mm, the initial point and the end point of each scanning point set are calculated as follows: |From start -WITH end |>l tree ; If the above inequality holds, it means that the scan point set is a trunk scan point set, and we can get Change N j =1, execute (4); otherwise, it indicates that the scanning point set is not the trunk scanning point set, and continue to judge the next scanning point; (4) Determine the previous frame N of this frame j-1 = 0, if true, then the frame is the starting frame of the trunk, and the y-axis average value of the trunk point set is taken as D p , which indicates the horizontal distance from the scanner to the tree trunk. If the distance is less than , the tree trunk is not detected.

4. The method for real-time calculation of canopy volume of fruit trees based on two-dimensional laser sensor according to claim 1, characterized in that: The process of establishing a triangular mesh model from the point cloud data obtained in step 5 specifically includes: (1) According to the initially set scanning angle range β and angle resolution α, the number of scanning points in a single frame can be calculated as: (2) For the i-th scanning point, determine Is it true? If not, continue scanning; if yes, execute (3); (3) For the i-th scanning point, determine whether i%num≠0 is true. If not, continue to determine the next scanning point. If so, execute (4); (4) Threshold T = 500 mm, judge Y i-1 >T、Y i-num >T、Y i-num-1 >T、Y i-1 -D p >0, Y i-num -D p >0, Y i-num-1 -D p > 0. If yes, connect the three points i-1, i-num and i-num-1 to form a triangle. If no, discard the triangle. (5) Set the threshold value T = 500 mm and judge Y i >T、Y i-1 >T、Y i-num >T、Y i -D p >0, Y i-1 -D p >0, Y i-num -D p >0 are both true at the same time. If so, connect the three points i, i-1, and i-num to form a triangle and continue to judge the next scanning point; if not, discard the triangle and continue to judge the next scanning point.

5. The method for real-time calculation of canopy volume of fruit trees based on two-dimensional laser sensor according to claim 1, characterized in that: In step six, all triangles are projected onto a cross section parallel to the direction of the laser sensor, passing through the center line of the trunk and perpendicular to the ground, to obtain a canopy segmentation model based on irregular triangular prisms; the volume of each triangular prism is obtained according to the three-dimensional coordinate value of each triangle vertex and the horizontal distance from the laser sensor to the cross section, and the volumes of all triangular prisms are added together to approximate the canopy volume of the fruit tree.

Citation Information

Patent Citations

  • Method for extracting parameters of tree branches based on ground laser radar three-dimensional scanning

    CN103258345A

  • Tree target volume real-time measuring method based on two-dimension laser scanner

    CN105486228A

  • Single-tree three-dimensional green quantity measuring method based on mobile two-dimensional laser scanning

    CN106643546A

  • Target leaf area online calculation method based on mobile laser scanning

    CN111288934A

  • Method and device for measuring amount of stone load in sand carrier with grab bucket

    JP2000275083A