A method for extracting tree height based on lidar drone images

By using a method based on lidar UAV images, the state description degree and state correlation degree are calculated to extract the tree trunk area, and the global image of the tree is traversed to determine the left and right sides, which solves the problem of inaccurate tree height measurement in the existing technology and realizes It achieves more efficient tree height extraction accuracy.

CN118711073BActive Publication Date: 2024-10-25INST OF MOUNTAIN HAZARDS & ENVIRONMENT CHINESE ACADEMY OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411204546.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-10-25
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

Existing tree height measuring instruments are prone to introduce human errors when operating in forest environments, and the rich forest vegetation leads to inaccurate tree height extraction.

Method used

Using a method based on lidar UAV images, the bottom and top of the trunk area are extracted by calculating the state description degree and state correlation degree, and the global image of the tree is traversed to determine the left and right sides, thereby generating the final trunk area, using a neural network Extract tree height.

Benefits of technology

The accuracy of tree height extraction is improved, interference from other trees is reduced, and more accurate tree height measurement results are provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711073B_ABST
    Figure CN118711073B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for extracting tree height based on laser radar unmanned aerial vehicle images, which relates to the technical field of tree height extraction and includes the following steps: S1, using a laser radar carried by an unmanned aerial vehicle to collect a global image of the tree; S2, in the global image of the tree, extracting the bottom, top, left and right sides of the trunk area to generate a trunk area; S3, determining the tree height corresponding to the trunk area. The accurate extraction of the trunk area by the present invention can provide an accurate input image for a neural network, greatly improve the accuracy of tree height extraction, and minimize the interference of other trees.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of tree height extraction, and in particular to a method for extracting tree height based on laser radar unmanned aerial vehicle images. Background Art

[0002] With the continuous improvement of the requirements for precision forestry, accurate, convenient and efficient measurement of standing tree height has become one of the hot issues in forestry research. In forest resource surveys, the determination of tree height is crucial, which directly affects the volume of forest stands and the accuracy of forest biomass extraction. Currently, the widely used instruments for tree height measurement are the Brules altimeter and the ultrasonic altimeter, but their measurement principles have clear requirements for horizontal and vertical movement, which operators cannot strictly meet, thus introducing human errors. In addition, the forest vegetation is rich, and several tree heights may be extracted for one tree, and the extraction results are inaccurate. Summary of the invention

[0003] In order to solve the above problems, the present invention proposes a method for extracting tree height based on laser radar unmanned aerial vehicle images.

[0004] The technical solution of the present invention is: a method for extracting tree height based on laser radar drone images comprises the following steps:

[0005] S1. Collect global images of trees using the laser radar carried by the drone;

[0006] S2, in the global image of the tree, extracting the bottom, top, left and right sides of the trunk area to generate the trunk area;

[0007] S3. Determine the tree height corresponding to the trunk area.

[0008] Furthermore, S2 includes the following sub-steps:

[0009] S21, starting from the last row of the global image of the tree, calculating the state description degree between the last row and the previous row;

[0010] S22, if the state description degree satisfies the state description condition, the last row of the global image of the tree is used as the bottom of the trunk area, and the process goes to S24, otherwise, the process goes to S23;

[0011] S23, calculating the state description degree between the last row and each of the remaining rows in turn, taking the row with the largest state description degree as the bottom of the trunk area, and proceeding to S24;

[0012] S24, starting from the first row of the global image of the tree, calculating the state correlation between each row and the bottom of the trunk area;

[0013] S25, taking the row where the first state correlation is greater than or equal to 0.8 as the top of the trunk area;

[0014] S26, traversing the global image of the tree from left to right to determine the left and right sides of the trunk area;

[0015] S27, generating a tree trunk region according to the bottom, top, left side and right side of the tree trunk region.

[0016] The beneficial effect of the above further scheme is: in the present invention, the extraction result of the trunk area can determine the accuracy of the generated tree height. The global image of the tree collected by the drone may contain other trees, which will interfere with the extraction of the target tree height. Therefore, the present invention needs to first confirm the two important positions of the top and bottom of the trunk area, and complete the extraction of the top and bottom by calculating the state description degree and the state correlation. After the top and bottom of the trunk area are extracted, the extraction step is not completed. If the global image of the tree that has only been processed by S21-S25 is input into the neural network, the global image of the tree at this time may still contain other trees, which will cause inaccurate extraction results. Therefore, although the bottom and top positions containing the tree height data have been obtained at this time, the global image of the tree still needs to be further cropped to ensure that there is no interference from other trees in the trunk area, thereby improving the accuracy of tree height extraction. Therefore, the present invention traverses the global image of the tree to determine the left and right sides of the trunk area.

[0017] In S21-S23, first determine whether there is a trunk in the last row of the global image of the tree trunk. If the state description degree between the last row and the previous row meets the state description condition, the last row is taken as the bottom of the trunk area. Otherwise, there is no trunk in the last row. Then, the state description degree between each row and the last row is calculated upwards. The row with the maximum state description degree is taken as the bottom of the trunk area. After determining the bottom of the trunk area, start from the first row of the global image of the tree and calculate the state correlation degree between each row and the bottom of the trunk area in sequence. When the state correlation degree is greater than or equal to 0.8 (this value can also be adjusted according to actual conditions) for the first time, it means that the row is similar to the bottom of the trunk area, and the row is taken as the top of the trunk area.

[0018] Furthermore, in S21, the state description The calculation formula is:

[0019] ;

[0020] In the formula, Indicates the number of rows above the last row of the global image of trees. The pixel value of a pixel, Indicates the number of pixels in the row above the last row of the global image of trees. The last row of the global image of the tree The pixel value of a pixel, Indicates the number of pixels in the last row of the global image of trees. Represents a constant.

[0021] Furthermore, in S22, the expression of the state description condition is:

[0022] ;

[0023] In the formula, represents the maximum value function, represents the minimum function, The last row of the global image of the tree The pixel value of a pixel, Indicates the state description degree.

[0024] Furthermore, in S24, the state correlation The calculation formula is:

[0025] ;

[0026] In the formula, represents the exponential function, Indicates the first The pixel matrix of the row, The pixel matrix corresponding to the bottom of the tree area, Indicates The pixel matrix of each row corresponds to the maximum eigenvalue, The maximum eigenvalue of the pixel matrix corresponding to the bottom of the tree area, Represents the F-norm operation.

[0027] The pixel matrix of each row is generated by arranging the pixel values ​​of the pixels in the row according to the positions of the pixels.

[0028] Further, S26 includes the following sub-steps:

[0029] S261, removing the top area of ​​the trunk area and the bottom area of ​​the tree area in the global image of the tree, generating a trunk range to be monitored, and using a sliding window to traverse the trunk range to be monitored from left to right to obtain a sliding value of each pixel point;

[0030] S262, taking the pixel with the largest sliding value in each row as the reference left pixel of each row;

[0031] S263, connecting the reference left pixel points of each row as the left side of the tree trunk area;

[0032] S264, starting from the reference left pixel point of each row, calculating the reference sliding degree between the remaining pixel points in each row and the left side of the tree trunk area;

[0033] S265, taking the pixel point with the smallest reference sliding degree in each row as the reference right pixel point of each row;

[0034] S266, connecting the reference right pixel points of each row as the right side of the tree trunk area.

[0035] The beneficial effect of the above further scheme is: in the present invention, after determining the top and bottom of the trunk area, the pixel points contained between the bottom and the top are horizontally traversed, and the left boundary of the trunk area is determined in each row, that is, the reference left pixel points are vertically connected in each row to obtain the left side of the trunk area, and the right side of the trunk area is determined by the left side.

[0036] Furthermore, in S261, the sliding value of the pixel point The calculation formula is:

[0037] ;

[0038] In the formula, Indicates the starting offset of the sliding window, Indicates the number of pixels contained in the sliding window where the pixel is located. Indicates the first The pixel value of a pixel, Indicates the first The pixel value of a pixel, Represents the pixel value of a pixel. Indicates a round-up operation.

[0039] Further, in S264, the reference sliding degree The calculation formula is:

[0040] ;

[0041] In the formula, Indicates The pixel value of the reference left pixel, Represents the pixel value of the remaining pixels, represents the exponential function, represents a constant, Indicates the number of reference left pixels.

[0042] Furthermore, in S3, the trunk area of ​​the global image of the tree is used as the input of the BP neural network to determine the corresponding tree height.

[0043] The beneficial effects of the present invention are as follows: the present invention discloses a method for extracting tree height based on laser radar unmanned aerial vehicle images, which uses state description degree and state correlation degree to extract the bottom and top of the trunk area in the global image of the tree, and after the bottom and the top are determined, the global image of the tree is horizontally traversed to determine the left and right sides of the trunk area, thereby generating the final trunk area; finally, the tree height corresponding to the trunk area can be effectively extracted using a neural network; the precise extraction of the trunk area by the present invention can provide an accurate input image for the neural network, which can greatly improve the accuracy of tree height extraction and minimize the interference of other trees. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 Flowchart of the method for extracting tree height based on LiDAR UAV imagery. DETAILED DESCRIPTION

[0045] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0046] like Figure 1 As shown, the present invention provides a method for extracting tree height based on laser radar drone images, comprising the following steps:

[0047] S1. Collect global images of trees using the laser radar carried by the drone;

[0048] S2, in the global image of the tree, extracting the bottom, top, left and right sides of the trunk area to generate the trunk area;

[0049] S3. Determine the tree height corresponding to the trunk area.

[0050] In this embodiment of the present invention, S2 includes the following sub-steps:

[0051] S21, starting from the last row of the global image of the tree, calculating the state description degree between the last row and the previous row;

[0052] S22, if the state description degree satisfies the state description condition, the last row of the global image of the tree is used as the bottom of the trunk area, and the process goes to S24, otherwise, the process goes to S23;

[0053] S23, calculating the state description degree between the last row and each of the remaining rows in turn, taking the row with the largest state description degree as the bottom of the trunk area, and proceeding to S24;

[0054] S24, starting from the first row of the global image of the tree, calculating the state correlation between each row and the bottom of the trunk area;

[0055] S25, taking the row where the first state correlation is greater than or equal to 0.8 as the top of the trunk area;

[0056] S26, traversing the global image of the tree from left to right to determine the left and right sides of the trunk area;

[0057] S27, generating a tree trunk region according to the bottom, top, left side and right side of the tree trunk region.

[0058] In the present invention, the extraction result of the trunk area can determine the accuracy of the generated tree height. The global image of the tree collected by the drone may contain other trees, which will interfere with the extraction of the target tree's height. Therefore, the present invention needs to first confirm the two important positions of the top and bottom of the trunk area, and complete the extraction of the top and bottom by calculating the state description degree and the state correlation. After the top and bottom of the trunk area are extracted, the extraction step is not over. If the global image of the tree that has only been processed by S21-S25 is input into the neural network, the global image of the tree at this time may still contain other trees, which will cause inaccurate extraction results. Therefore, although the bottom and top positions containing the tree height data have been obtained at this time, the global image of the tree still needs to be further cropped to ensure that there is no interference from other trees in the trunk area, thereby improving the accuracy of tree height extraction. Therefore, the present invention traverses the global image of the tree to determine the left and right sides of the trunk area.

[0059] In S21-S23, first determine whether there is a trunk in the last row of the global image of the tree trunk. If the state description degree between the last row and the previous row meets the state description condition, the last row is taken as the bottom of the trunk area. Otherwise, there is no trunk in the last row. Then, the state description degree between each row and the last row is calculated upwards. The row with the maximum state description degree is taken as the bottom of the trunk area. After determining the bottom of the trunk area, start from the first row of the global image of the tree and calculate the state correlation degree between each row and the bottom of the trunk area in sequence. When the state correlation degree is greater than or equal to 0.8 (this value can also be adjusted according to actual conditions) for the first time, it means that the row is similar to the bottom of the trunk area, and the row is taken as the top of the trunk area.

[0060] In the embodiment of the present invention, in S21, the state description degree The calculation formula is:

[0061] ;

[0062] In the formula, Indicates the number of rows above the last row of the global image of trees. The pixel value of a pixel, Indicates the number of pixels in the row above the last row of the global image of trees. The last row of the global image of the tree The pixel value of a pixel, Indicates the number of pixels in the last row of the global image of trees. Represents a constant.

[0063] The row above the last row is the second to last row.

[0064] In the embodiment of the present invention, in S22, the expression of the state description condition is:

[0065] ;

[0066] In the formula, represents the maximum value function, represents the minimum function, The last row of the global image of the tree The pixel value of a pixel, Indicates the state description degree.

[0067] In the embodiment of the present invention, in S24, the state correlation The calculation formula is:

[0068] ;

[0069] In the formula, represents the exponential function, Indicates the first The pixel matrix of the row, The pixel matrix corresponding to the bottom of the tree area, Indicates The pixel matrix of each row corresponds to the maximum eigenvalue, The maximum eigenvalue of the pixel matrix corresponding to the bottom of the tree area, Represents the F-norm operation.

[0070] The pixel matrix of each row is generated by arranging the pixel values ​​of the pixels in the row according to the positions of the pixels.

[0071] In this embodiment of the present invention, S26 includes the following sub-steps:

[0072] S261, removing the top area of ​​the trunk area and the bottom area of ​​the tree area in the global image of the tree, generating a trunk range to be monitored, and using a sliding window to traverse the trunk range to be monitored from left to right to obtain a sliding value of each pixel point;

[0073] S262, taking the pixel with the largest sliding value in each row as the reference left pixel of each row;

[0074] S263, connecting the reference left pixel points of each row as the left side of the tree trunk area;

[0075] S264, starting from the reference left pixel point of each row, calculating the reference sliding degree between the remaining pixel points in each row and the left side of the tree trunk area;

[0076] S265, taking the pixel point with the smallest reference sliding degree in each row as the reference right pixel point of each row;

[0077] S266, connecting the reference right pixel points of each row as the right side of the tree trunk area.

[0078] In the present invention, after determining the top and bottom of the trunk area, the pixel points contained between the bottom and the top are horizontally traversed, and the left boundary of the trunk area is determined in each row, that is, the reference left pixel points are vertically connected in each row to obtain the left side of the trunk area, and the right side of the trunk area is determined by the left side.

[0079] In the embodiment of the present invention, in S261, the sliding value of the pixel point The calculation formula is:

[0080] ;

[0081] In the formula, Indicates the starting offset of the sliding window, Indicates the number of pixels contained in the sliding window where the pixel is located. Indicates the first The pixel value of a pixel, Indicates the first The pixel value of a pixel, Represents the pixel value of a pixel. Indicates a round-up operation.

[0082] In the embodiment of the present invention, in S264, the reference sliding degree The calculation formula is:

[0083] ;

[0084] In the formula, Indicates The pixel value of the reference left pixel, Represents the pixel value of the remaining pixels, represents the exponential function, represents a constant, Indicates the number of reference left pixels.

[0085] In the embodiment of the present invention, in S3, the trunk area of ​​the global image of the tree is used as the input of the BP neural network to determine the corresponding tree height.

[0086] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A method for extracting tree height based on laser radar drone images, characterized in that: The following steps are involved: S1. Collect global images of trees using the laser radar carried by the drone; S2, in the global image of the tree, extracting the bottom, top, left and right sides of the trunk area to generate the trunk area; S3, determining the tree height corresponding to the trunk area; The S2 comprises the following sub-steps: S21, starting from the last row of the global image of the tree, calculating the state description degree between the last row and the previous row; S22, if the state description degree satisfies the state description condition, the last row of the global image of the tree is used as the bottom of the trunk area, and the process goes to S24, otherwise, the process goes to S23; S23, calculating the state description degree between the last row and each of the remaining rows in turn, taking the row with the largest state description degree as the bottom of the trunk area, and proceeding to S24; S24, starting from the first row of the global image of the tree, calculating the state correlation between each row and the bottom of the trunk area; S25, taking the row where the first state correlation is greater than or equal to 0.8 as the top of the trunk area; S26, traversing the global image of the tree from left to right to determine the left and right sides of the trunk area; S27, generating a tree trunk region according to the bottom, top, left side and right side of the tree trunk region; In S21, the state description degree The calculation formula is: ; In the formula, Indicates the number of rows above the last row of the global image of trees. The pixel value of a pixel, Indicates the number of pixels in the row above the last row of the global image of trees. The last row of the global image of the tree The pixel value of a pixel, Indicates the number of pixels in the last row of the global image of trees. represents a constant; In S24, the state correlation The calculation formula is: ; In the formula, represents the exponential function, Indicates the first The pixel matrix of the row, The pixel matrix corresponding to the bottom of the tree area, Indicates The pixel matrix of each row corresponds to the maximum eigenvalue, The maximum eigenvalue of the pixel matrix corresponding to the bottom of the tree area, Represents the F-norm operation.

2. The method for extracting tree height based on laser radar drone images according to claim 1 is characterized in that: In S22, the expression of the state description condition is: ; In the formula, represents the maximum value function, represents the minimum function, The last row of the global image of the tree The pixel value of a pixel, Indicates the state description.

3. The method for extracting tree height based on laser radar drone images according to claim 1 is characterized in that: The S26 comprises the following sub-steps: S261, removing the top area of ​​the trunk area and the bottom area of ​​the tree area in the global image of the tree, generating a trunk range to be monitored, and using a sliding window to traverse the trunk range to be monitored from left to right to obtain a sliding value of each pixel point; S262, taking the pixel with the largest sliding value in each row as the reference left pixel of each row; S263, connecting the reference left pixel points of each row as the left side of the tree trunk area; S264, starting from the reference left pixel point of each row, calculating the reference sliding degree between the remaining pixel points in each row and the left side of the tree trunk area; S265, taking the pixel point with the smallest reference sliding degree in each row as the reference right pixel point of each row; S266, connecting the reference right pixel points of each row as the right side of the tree trunk area.

4. The method for extracting tree height based on laser radar drone images according to claim 3 is characterized in that: In S261, the sliding value of the pixel point The calculation formula is: ; In the formula, Indicates the starting offset of the sliding window, Indicates the number of pixels contained in the sliding window where the pixel is located. Indicates the first The pixel value of a pixel, Indicates the first The pixel value of a pixel, Represents the pixel value of a pixel. Indicates a round-up operation.

5. The method for extracting tree height based on laser radar drone images according to claim 3 is characterized in that: In S264, the reference sliding degree The calculation formula is: ; In the formula, Indicates The pixel value of the reference left pixel, Represents the pixel value of the remaining pixels, represents the exponential function, represents a constant, Indicates the number of reference left pixels.

6. The method for extracting tree height based on laser radar drone images according to claim 1 is characterized in that: In S3, the trunk area of ​​the global image of the tree is used as the input of the BP neural network to determine the corresponding tree height.