Tree leaf region identification method and device, electronic equipment and storage medium

By determining the distances of the set of points to be identified in point cloud data, the leaf region is identified, which solves the problem of low identification efficiency in existing technologies and enables real-time processing and correction of reflectivity anomalies in the leaf region.

CN118823575BActive Publication Date: 2026-11-27GUANGZHOU ASENSING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410824839.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2026-11-27
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

Existing methods for identifying leaf regions are inefficient and computationally intensive, making it difficult to process point cloud data in real time.

Method used

By sequentially traversing each target point in the point cloud data along a preset direction, a preset number of consecutive points are determined as the set of points to be identified. The distance sum of the set of points to be identified is calculated to characterize its dispersion, and the region is determined to be a leaf region based on the distance sum.

Benefits of technology

It enables the identification of leaf areas with relatively low computational requirements, can process massive point cloud data in real time, improves identification efficiency, and corrects reflectivity anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823575B_ABST
    Figure CN118823575B_ABST
Patent Text Reader

Abstract

The leaf region identification method and device, the electronic device and the storage medium provided by the embodiment of the present application relate to the technical field of point cloud data identification, the method comprises the following steps: sequentially traversing each target point in the point cloud data along a preset direction, and determining a preset number of points that are continuous in the preset direction as a to-be-identified point set, the to-be-identified point set comprising the target point; calculating a distance sum corresponding to the to-be-identified point set, the distance sum representing the dispersion degree of the preset number of points in the to-be-identified point set; and determining whether the region formed by the corresponding to-be-identified point set is a leaf region according to the distance sum. The leaf region can be identified by simply obtaining the distance sum corresponding to the to-be-identified point set, so that the abnormal reflection in the leaf region can be processed, the calculation amount of the leaf region identification process is small, and the massive point cloud data can be processed in real time to identify the data region.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of point cloud data recognition technology, and more specifically, to a method, apparatus, electronic device, and storage medium for identifying leaf regions. Background Technology

[0002] Point cloud data is a collection of three-dimensional coordinate points measured by point cloud acquisition devices such as lidar. Due to reflection and scattering in foliage areas, lidar data may exhibit reflectivity anomalies. Therefore, identifying and correcting these anomalies is crucial for improving the quality of lidar data.

[0003] In existing technologies, leaf regions are mainly identified in two ways. One is through fusion perception methods, which requires the use of perception means other than LiDAR, resulting in problems such as system complexity, high cost, long analysis time, and difficulty in real-time processing of point cloud data. The other is through deep learning or principal component analysis (PCA) to identify leaf regions in point clouds, but these methods have high computational complexity and low recognition efficiency. Summary of the Invention

[0004] The purpose of this invention is to provide a method, apparatus, electronic device, and computer-readable storage medium for identifying leaf regions, in order to solve the problem of low efficiency in identifying leaf regions.

[0005] In a first aspect, the present invention provides a method for identifying leaf regions, the method comprising:

[0006] Each target point in the point cloud data is traversed sequentially along a preset direction, and a preset number of consecutive points along the preset direction are determined as a set of points to be identified; the set of points to be identified includes the target points;

[0007] Calculate the sum of distances corresponding to the set of points to be identified; the sum of distances represents the degree of dispersion of a predetermined number of points in the set of points to be identified;

[0008] Based on the distance, determine whether the region formed by the corresponding set of points to be identified is a leaf region.

[0009] In an optional implementation, the point cloud data includes the coordinates of each point, and the calculation of the distance sum corresponding to the set of points to be identified includes:

[0010] Based on the coordinates of the first endpoint and the last endpoint of the set of points to be identified, calculate the line vector and distance between the first endpoint and the last endpoint of each set of points to be identified.

[0011] When the distance between the first endpoint and the last endpoint is less than or equal to a distance threshold, the sum of distances corresponding to the set of points to be identified is determined based on multiple reference points in the set of points to be identified and the line vector; the reference points are the remaining points in the set of points to be identified other than the first endpoint and the last endpoint.

[0012] In an optional implementation, determining the distance sum corresponding to the set of points to be identified based on multiple reference points in the set of points to be identified and the line vector includes:

[0013] Calculate the distance between each reference point in the set of points to be identified and the line vector;

[0014] The sum of the distances between each of the reference points and the line vector is determined as the sum of the distances corresponding to the set of points to be identified.

[0015] In an optional implementation, determining whether the region formed by the corresponding set of points to be identified is a leaf region based on the distance includes:

[0016] The area formed by the distance and the set of points to be identified within a preset threshold range is defined as the leaf area.

[0017] In an optional implementation, the point cloud data further includes the grayscale value corresponding to each point, and the method further includes:

[0018] If the region formed by the set of points to be identified is determined to be a leaf region, it is determined whether the gray value of each point in the set of points to be identified is greater than the abnormal gray value threshold.

[0019] Set the gray value of points that are greater than the abnormal gray value threshold as the gray value threshold.

[0020] In a second aspect, the present invention provides a leaf area identification device, the device comprising:

[0021] The point set determination module is used to sequentially traverse each target point in the point cloud data along a preset direction, and determine a preset number of consecutive points in the preset direction as the point set to be identified; the point set to be identified includes the target points;

[0022] The distance and acquisition module is used to calculate the distance sum corresponding to the set of points to be identified; the distance sum characterizes the dispersion of a preset number of points in the set of points to be identified;

[0023] The leaf region determination module is used to determine whether the region formed by the corresponding set of points to be identified is a leaf region based on the distance.

[0024] In an optional implementation, the point cloud data includes the coordinates of each point;

[0025] The distance acquisition module is further configured to calculate the line vector and distance between the first and last endpoints of each set of points to be identified based on the coordinates of the first endpoint and the last endpoint of the set of points to be identified; when the distance between the first endpoint and the last endpoint is less than or equal to a distance threshold, the distance sum corresponding to the set of points to be identified is determined based on multiple reference points in the set of points to be identified and the line vector; the reference points are the remaining points in the set of points to be identified other than the first endpoint and the last endpoint.

[0026] In an optional implementation, the distance acquisition module is further configured to calculate the distance between each reference point of the set of points to be identified and the line vector; and to determine the sum of the distances between each reference point and the line vector as the distance sum corresponding to the set of points to be identified.

[0027] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing a computer program executable by the processor, the computer program being executable by the processor to implement the leaf region recognition method described in any of the foregoing embodiments.

[0028] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the leaf region identification method as described in any of the foregoing embodiments.

[0029] The present invention provides a leaf region identification method, apparatus, electronic device, and storage medium. The method includes: sequentially traversing each target point in point cloud data along a preset direction, and determining a preset number of consecutive points along the preset direction as a set of points to be identified, the set of points to be identified including the target points; calculating the distance sum corresponding to the set of points to be identified, the distance sum characterizing the dispersion of the preset number of points in the set of points to be identified; determining whether the region formed by the corresponding set of points to be identified is a leaf region based on the distance sum; identifying leaf regions by simply obtaining the distance sum corresponding to the set of points to be identified, thereby enabling the processing of reflection anomalies in leaf regions; and the computational load of the leaf region identification process is small, enabling real-time processing of massive point cloud data to identify data regions. Attached Figure Description

[0030] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1This invention provides a schematic flowchart of a leaf region identification method according to an embodiment of the invention.

[0032] Figure 2 This diagram illustrates a set of points to be identified provided in an embodiment of the present invention.

[0033] Figure 3 This paper illustrates another flowchart of the leaf region identification method provided in an embodiment of the present invention.

[0034] Figure 4 This diagram illustrates another flowchart of the leaf region identification method provided in an embodiment of the present invention.

[0035] Figure 5 (a) shows a schematic diagram of the leaf region identification method provided in an embodiment of the present invention before processing;

[0036] Figure 5 (b) shows a processed schematic diagram of the leaf region identification method provided in an embodiment of the present invention;

[0037] Figure 6 A block diagram of a leaf area recognition device provided in an embodiment of the present invention is shown;

[0038] Figure 7 A block diagram of an electronic device provided in an embodiment of the present invention is shown.

[0039] Icons: 100 - Electronic device; 200 - Leaf area recognition device; 210 - Module for determining the set of points to be identified; 220 - Distance and acquisition module; 230 - Leaf area determination module; 110 - Memory; 120 - Processor; 130 - Communication module. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0041] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0042] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0043] Please see Figure 1 , Figure 1 This diagram illustrates a flowchart of a leaf region recognition method provided by an embodiment of the present invention. This leaf region recognition method can be applied to electronic devices; the specific process of this embodiment is described below using an electronic device as an example. The following section addresses... Figure 1 The process shown will be explained in detail. This leaf region identification method may specifically include the following steps:

[0044] Step 110: Traverse each target point in the point cloud data sequentially along the preset direction, and determine the preset number of consecutive points in the preset direction as the set of points to be identified.

[0045] The set of points to be identified includes the target points.

[0046] In some implementations, the electronic device can be communicatively connected to a point cloud acquisition device. The point cloud acquisition device scans the area to be detected to obtain point cloud data and then sends the point cloud data to the electronic device. The point cloud acquisition device may include lidar, depth vision sensors, millimeter-wave radar, ultrasonic radar, etc., and is not limited thereto.

[0047] It is understandable that processing point cloud data in electronic devices is relatively low-complexity and can achieve real-time processing of leaf regions under limited processing resources. This allows for real-time identification of leaf regions even in vehicle-mounted scenarios with limited processing power and bandwidth constraints.

[0048] In this embodiment, the electronic device pre-stores a preset direction and a preset number. The preset direction can be the scanning direction of the point cloud acquisition device (e.g., horizontal or vertical scanning). The electronic device sequentially traverses each target point in the point cloud data along the preset direction and determines a preset number of consecutive points along the preset direction as the set of points to be identified. The preset number can be set according to the processing performance and real-time requirements of the electronic device. The larger the preset number, the more accurate the result of identifying the leaf region.

[0049] like Figure 2 As shown, the point cloud data includes 12 target points, with a preset number of 5. The electronic device sequentially traverses each target point in the point cloud data along a preset direction (horizontal) and determines a preset number of consecutive points in the preset direction as the set of points to be identified, which can determine the set of points to be identified A1 to A4.

[0050] In some implementations, electronic devices can use a sliding window algorithm to determine a preset number of consecutive points in a preset direction as a set of points to be identified, with each set of points to be identified corresponding to a time sliding window.

[0051] Step 120: Calculate the sum of distances corresponding to the set of points to be identified.

[0052] Among them, distance and denot represent the degree of dispersion of a preset number of points in the set of points to be identified.

[0053] In some implementations, the sum of distances corresponding to the set of points to be identified can be calculated by summing absolute values.

[0054] Understandably, calculating the sum of distances corresponding to the set of points to be identified requires relatively little computation, thus improving the efficiency of identifying leaf regions.

[0055] Step 130: Determine whether the region formed by the corresponding set of points to be identified is a leaf region based on the distance.

[0056] The leafy area can be any region with abnormal reflectivity caused by pulse width broadening, echo signal peak superposition, or echo falling edge superposition lag, and is not limited here. The leafy area can also be any region that is prone to abnormal reflection, such as leaves, bushes, grass, and flower beds, and is not limited here.

[0057] It should be noted that the point cloud in the leaf area exhibits an abnormal phenomenon of alternating high and low reflectivity due to the superposition of pulses caused by the proximity of the laser echo to the target and the reflector. Therefore, it is necessary to identify and correct the leaf area.

[0058] The leaf region identification method provided in this invention traverses each target point in point cloud data sequentially along a preset direction, and determines a preset number of consecutive points along the preset direction as a set of points to be identified. The set of points to be identified includes the target points. The distance sum corresponding to the set of points to be identified is calculated. The distance sum characterizes the dispersion of the preset number of points in the set of points to be identified. Based on the distance sum, it is determined whether the region formed by the corresponding set of points to be identified is a leaf region. By simply obtaining the distance sum corresponding to the set of points to be identified, the leaf region can be identified. This allows for the handling of reflection anomalies in the leaf region. Furthermore, the computational load of the leaf region identification process is relatively small, enabling real-time processing of massive point cloud data to identify data regions.

[0059] To reduce the complexity of identifying leaf regions, a simpler method of calculating the distance sum by using line vectors from the first and last points is employed. (See [link to relevant documentation]). Figure 3 That is, step 120 above may specifically include the following steps:

[0060] Step 121: Based on the coordinates of the first and last endpoints of the point set to be identified, calculate the line vector and distance between the first and last endpoints of each point set to be identified.

[0061] In some implementations, the electronic device can calculate the line vector between the first and last endpoints of each set of points to be identified using the following formula.

[0062]

[0063] in, Represented as a line vector Represented as the three-dimensional coordinates of the first and second endpoints. Represented as the three-dimensional coordinates of the tail endpoint.

[0064] In some implementations, the electronic device can calculate the distance between the first and last endpoints of each set of points to be identified using the following formula.

[0065]

[0066] Where D represents distance and x represents line vector. The component in the x-direction and the y-direction are represented as line vectors. The component in the y-direction and the z-direction are represented as line vectors. The component in the z-direction.

[0067] Step 122: When the distance between the first endpoint and the last endpoint is less than or equal to the distance threshold, determine the distance sum corresponding to the set of points to be identified based on multiple reference points and line vectors in the set of points to be identified.

[0068] The reference points are the remaining points in the set of points to be identified, excluding the first and last endpoints.

[0069] For example, the set of points to be identified includes 5 points, and there are 3 reference points in addition to the first and last endpoints; the set of points to be identified includes 6 points, and there are 4 reference points in addition to the first and last endpoints.

[0070] The point cloud data includes the grayscale value corresponding to each point. When the distance between the first endpoint and the last endpoint is greater than the distance threshold, it is determined that the region formed by the corresponding set of points to be identified is not a leaf region, and the grayscale value corresponding to each point in the set of points to be identified is directly output.

[0071] Understandably, since objects in a leafy region are close together, when the distance between the first and last endpoints is less than or equal to the distance threshold, it can be preliminarily determined that the region formed by the set of points to be identified is a leafy region. Then, the distance sum is obtained, and the region formed by the set of points to be identified is determined to be a leafy region based on the distance sum. When the distance between the first and last endpoints is greater than the distance threshold, it can be determined that the region formed by the set of points to be identified is not a leafy region.

[0072] In some implementations, the electronic device can calculate the distance between each reference point in the set of points to be identified and the line vector, and determine the sum of the distances between each reference point and the line vector as the sum of the distances corresponding to the set of points to be identified.

[0073] Electronic devices can calculate the distance between each reference point in the set of points to be identified and the line vector using the following formula.

[0074]

[0075] Where m and n are line vectors The coordinates of two different points on the graph (i.e., the first and last endpoints mentioned above), and the coordinates of the reference point 'a'.

[0076] In some implementations, step 130 may specifically include the following steps: determining the area formed by the distance and the set of points to be identified within a preset threshold range as the leaf area.

[0077] In some implementations, the point cloud data also includes the grayscale value corresponding to each point; please refer to [link to relevant documentation]. Figure 4 Following step 130 above, the following steps are also included:

[0078] Step 140: If the region formed by the set of points to be identified is determined to be a leaf region, determine whether the gray value of each point in the set of points to be identified is greater than the abnormal gray value threshold.

[0079] If the region formed by the set of points to be identified is not a leaf region, the gray value corresponding to each point in the set of points to be identified is directly output.

[0080] Step 150: Set the gray values ​​of points that are greater than the abnormal gray value threshold as the gray value threshold.

[0081] The grayscale threshold can be set according to the fixed reflectivity of the point cloud acquisition device, the reflectivity being set to zero, and the reflectivity correction weight coefficient.

[0082] Output the gray values ​​of points that are less than or equal to the abnormal gray value threshold directly.

[0083] Please see Figure 5 (a) and Figure 5 (b), Figure 5(a) shows a schematic diagram of the leaf region identification method provided in an embodiment of the present invention before processing. Figure 5 (b) shows a schematic diagram of a processed leaf region identification method provided in an embodiment of the present invention. Figure 5 In (a), A1 and B1 represent the leaf areas before treatment. Figure 5 In (b), A2 and B2 are the leaf regions processed by the leaf region identification method described above. This demonstrates that the identified leaf regions can be corrected.

[0084] The leaf region identification method provided in this embodiment of the invention can obtain the distance sum corresponding to the set of points to be identified in a simple way, and identify the leaf region based on the distance sum. The computational load is small, which improves the efficiency of leaf region identification.

[0085] To perform the corresponding steps in the above embodiments and various possible methods, an implementation of a leaf region recognition device is given below. Further, please refer to... Figure 6 The figure shows a functional block diagram of a leaf region identification device provided in an embodiment of the present invention. It should be noted that the basic principle and technical effects of the leaf region identification device provided in this embodiment are the same as those in the above embodiments. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. The leaf region identification device 200 includes: a target point set determination module 210, a distance acquisition module 220, and a leaf region determination module 230, wherein:

[0086] The point set determination module 210 is used to sequentially traverse each target point in the point cloud data along a preset direction, and determine a preset number of consecutive points in the preset direction as the point set to be identified; the point set to be identified includes the target points;

[0087] The distance and acquisition module 220 is used to calculate the distance sum corresponding to the set of points to be identified; the distance sum represents the degree of dispersion of a preset number of points in the set of points to be identified;

[0088] The leaf region determination module 230 is used to determine whether the region formed by the corresponding set of points to be identified is a leaf region based on the distance.

[0089] Optionally, the point cloud data includes the coordinates of each point; the distance and acquisition module 220 is further used to calculate the line vector and distance between the first and last endpoints of each point set to be identified based on the coordinates of the first endpoint and the last endpoint of the point set to be identified; when the distance between the first endpoint and the last endpoint is less than or equal to the distance threshold, the distance and sum corresponding to the point set to be identified are determined based on multiple reference points and line vectors in the point set to be identified; the reference points are the remaining points in the point set to be identified other than the first endpoint and the last endpoint.

[0090] Optionally, the distance acquisition module is also used to calculate the distance between each reference point in the set of points to be identified and the line vector; and to determine the sum of the distances between each reference point and the line vector as the distance sum corresponding to the set of points to be identified.

[0091] Optionally, the leaf region determination module 230 is further configured to determine the region consisting of the distance and the set of points to be identified within a preset threshold range as the leaf region.

[0092] Optionally, the leaf region recognition device 200 further includes: a grayscale value setting module, wherein:

[0093] The grayscale value setting module is used to determine whether the grayscale value of each point in the set of points to be identified is greater than the abnormal grayscale threshold when the area formed by the set of points to be identified is determined to be a leaf area; and to set the grayscale value of the points that are greater than the abnormal grayscale threshold as the grayscale threshold.

[0094] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0095] In several embodiments provided by the present invention, the coupling between modules can be electrical, mechanical or other forms of coupling.

[0096] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0097] Please refer to Figure 7 This is a block diagram of an electronic device 100 provided in an embodiment of the present invention. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, processor 120, and communication module 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0098] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0099] The processor 120 is used to read / write data or programs stored in the memory and perform corresponding functions. For example, when a computer program stored in the memory 110 is executed by the processor 120, the electronic device methods disclosed in the above embodiments can be implemented.

[0100] The communication module 130 is used to establish a communication connection between the electronic device 100 and the point cloud acquisition device via a network, and to send and receive data via the network.

[0101] It should be understood that, Figure 7 The structure shown is only a schematic diagram of an electronic device; the electronic device may also include components that are larger than those shown. Figure 7 The number of components shown may be more or less. Figure 7 The components shown can be implemented using hardware, software, or a combination thereof.

[0102] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the leaf region identification method described in the above method embodiments.

[0103] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media includes non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.

[0104] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0105] If the functionality is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0106] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for identifying leaf regions, characterized in that, The method includes: Each target point in the point cloud data is traversed sequentially along a preset direction, and a preset number of consecutive points along the preset direction are determined as a set of points to be identified using a sliding window algorithm; the set of points to be identified includes the target points; the point cloud data includes the coordinates of each point; Based on the coordinates of the first endpoint and the last endpoint of the set of points to be identified, calculate the line vector and distance between the first endpoint and the last endpoint of each set of points to be identified. When the distance between the first endpoint and the last endpoint is less than or equal to a distance threshold, the distance between each reference point in the set of points to be identified and the line vector is calculated; the reference point is the remaining point in the set of points to be identified excluding the first endpoint and the last endpoint; the sum of the distances between each reference point and the line vector is determined as the distance sum corresponding to the set of points to be identified; the distance sum characterizes the degree of dispersion of a preset number of points in the set of points to be identified; The area formed by the distance and the set of points to be identified within a preset threshold range is defined as the leaf area; If the region formed by the set of points to be identified is determined to be a leaf region, it is determined whether the gray value of each point in the set of points to be identified is greater than the abnormal gray value threshold. Set the gray value of points that are greater than the abnormal gray value threshold as the gray value threshold.

2. A leaf area recognition device, characterized in that, The device includes: The point set determination module is used to sequentially traverse each target point in the point cloud data along a preset direction, and determine a preset number of consecutive points in the preset direction as the point set to be identified using a sliding window algorithm; the point set to be identified includes the target points; the point cloud data includes the coordinates of each point; Distance and acquisition module, used for: Based on the coordinates of the first endpoint and the last endpoint of the set of points to be identified, calculate the line vector and distance between the first endpoint and the last endpoint of each set of points to be identified. When the distance between the first endpoint and the last endpoint is less than or equal to a distance threshold, the distance between each reference point in the set of points to be identified and the line vector is calculated; the reference point is the remaining point in the set of points to be identified excluding the first endpoint and the last endpoint; the sum of the distances between each reference point and the line vector is determined as the distance sum corresponding to the set of points to be identified; the distance sum characterizes the degree of dispersion of a preset number of points in the set of points to be identified; The leaf region determination module is used to determine the region formed by the distance and the set of points to be identified within a preset threshold range as the leaf region; The grayscale setting module is used to: determine whether the grayscale value of each point in the set of points to be identified is greater than the abnormal grayscale threshold when the region formed by the set of points to be identified is determined to be a leaf region; and set the grayscale value of the points that are greater than the abnormal grayscale threshold as the grayscale threshold.

3. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program executable by the processor to implement the leaf region identification method of claim 1.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the leaf region recognition method as described in claim 1.

Citation Information

Patent Citations

  • Rainy day clutter suppression method based on millimeter wave radar

    CN113253236A

  • Method for extracting high-flux leaf included angle and leaf dip angle distribution of field corn

    CN114913359A