A method for filtering out spray noise and related equipment

By updating the flight map and filtering out spray noise, the problem of low lidar point cloud data quality and waste of computing resources is solved, the map construction efficiency and accuracy are improved, and the application scenarios of lidar are expanded.

CN118226416BActive Publication Date: 2024-10-25JIANGSU YOUTAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410205266.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-23
Publication Date
2024-10-25
Estimated Expiration
2044-02-23

AI Technical Summary

Technical Problem

Spray noise reduces the quality of point cloud data collected by lidar, consumes more computing resources, reduces map construction efficiency and accuracy, and limits the applicable scenarios of lidar.

Method used

By obtaining the current positioning data of the flying object and the point cloud data of the spray direction, the historical flight map is updated, each target point in the point cloud data is traversed, and its three-dimensional coordinates are compared with the preset noise spatial range to filter out the spray noise. Process to get the actual flight map.

Benefits of technology

It improves the quality of point cloud data, reduces the computing resources consumed in the process of map construction and update, and expands the applicable scenarios of lidar.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118226416B_ABST
    Figure CN118226416B_ABST
Patent Text Reader

Abstract

The present application relates to a method for filtering out spray noise and related equipment, and to the technical field of point cloud data processing. A specific implementation of the method includes: obtaining the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, updating the historical flight map based on the current moment positioning data and the current moment point cloud data, and obtaining the current moment flight map; traversing each target point in the current moment point cloud data, and comparing the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range and the target height value of the corresponding position of the target point in the local map height data, so as to determine the spray noise, and filtering out the spray noise in the current moment flight map to obtain the actual flight map at the current moment. This implementation achieves the filtering out of spray noise, improves the quality of point cloud data, improves the accuracy of the map, and expands the applicable scenarios of laser radar.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of point cloud data processing, and in particular to a method for filtering spray noise points and related equipment. Background Art

[0002] LiDAR detects and identifies targets by sending a detection signal (laser beam) to the target object, comparing the signal sent back by the target (target echo) with the transmitted signal, performing relevant processing and obtaining accurate information about the target (target distance, direction, height, speed and other parameters). Based on the advantages of LiDAR such as high resolution and strong anti-interference ability, it is increasingly used in the fields of robots, unmanned driving, unmanned vehicles, and drones.

[0003] When faced with specific scenarios, such as drone plant protection operations in the field of smart agriculture, drones need to use lidar to build maps to achieve terrain-like flight while avoiding obstacles, so as to accurately and evenly spray water, pesticides, fertilizers, seeds, powders and other sprays. When the laser beam emitted by the lidar hits the sprayed object, the echo signal reflected by the sprayed object will interfere with the lidar. In the subsequent mapping process based on the data collected by the lidar, the sprayed object is easily judged as an obstacle, affecting the drone's path planning and the completion of the protection operation.

[0004] In the related technology, the noise of spray objects reduces the quality of point cloud data collected by the lidar. The noise data consumes more computing resources, reduces the efficiency and accuracy of map construction, and limits the applicable scenarios of the lidar. No effective solution has been proposed so far. Summary of the invention

[0005] A method for filtering out spray noise and related equipment provided by an embodiment of the present invention at least solves the problem in the related art that the spray noise reduces the quality of the point cloud data collected by the laser radar, the noise data consumes more computing resources, reduces the efficiency and accuracy of map construction, and limits the applicable scenarios of the laser radar.

[0006] In order to solve the above problem, one aspect of an embodiment of the present invention provides a method for filtering spray noise points, comprising:

[0007] Acquire the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, update the historical flight map based on the current moment positioning data and the current moment point cloud data, and obtain the current moment flight map; wherein the flight map includes local map point cloud data and local map height data indicating the spraying direction of the flying object during the working process of the flying object and satisfying the preset map space range;

[0008] Traverse each target point in the point cloud data at the current moment, compare the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range and the target height value of the corresponding position of the target point in the local map height data to determine the spray noise point, filter out the spray noise point in the flight map at the current moment, and obtain the actual flight map at the current moment.

[0009] In some embodiments, the historical flight map is constructed based on the point cloud data and positioning data at the previous moment; the step of updating the historical flight map based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map includes:

[0010] Determine the relative extrinsic matrix between the laser radar coordinate systems at adjacent moments through the extrinsic matrix of the laser radar coordinate system relative to the world coordinate system at adjacent moments;

[0011] Update the local map point cloud data in the historical flight map to the map point cloud data at the current moment through the relative external parameter matrix;

[0012] Traverse each target point in the point cloud data at the current moment, and determine whether there is a corresponding point in the map point cloud data according to the coordinate index; if there is, discard the target point; if not, add the target point to the map point cloud data to obtain the local map point cloud data at the current moment;

[0013] Based on the positioning data and the local map point cloud data at the current moment, the local map altitude data is updated to obtain the flight map at the current moment.

[0014] In some of the embodiments, the method further comprises the step of constructing a coordinate index:

[0015] A coordinate index corresponding to the three-dimensional coordinates of any map point in the flight map is constructed according to the map space size information indicated by the preset map space range and the voxel size information indicated by the preset voxel space information.

[0016] In some embodiments, the step of comparing the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range includes:

[0017] According to the three-dimensional coordinates corresponding to the target point and the horizontal distance value indicated by the preset noise point spatial range, it is determined whether the target point is within the preset noise point spatial range;

[0018] If the target point is not within the preset noise point space range, the target point is not a spray noise point.

[0019] In some of the embodiments, if the target point is not within the preset noise point space range, the method further includes:

[0020] Determine the location point corresponding to the target point in the local map point cloud data at the current moment according to the coordinate index, and judge whether there is a map point in the location point; if there is a map point in the location point, do not update the target point; if there is no map point in the location point, add the target point to the local map point cloud data at the current moment, and update the local map height data at the current moment.

[0021] In some embodiments, if the target point is within a preset noise point space, the step of comparing the three-dimensional coordinates of the target point with the target height value of the corresponding position of the target point in the local map height data includes:

[0022] According to the three-dimensional coordinates of the target point, the target height value of the corresponding position of the target point in the local map height data is calculated;

[0023] It is determined whether the target height value is equal to the preset height value. If the target height value is equal to the preset height value, the target point is retained in the local map point cloud data at the current moment.

[0024] In some embodiments, if the target height value is not equal to the preset height value, the method further includes:

[0025] Determine whether the actual height value of the target point is greater than the difference between the target height value and the error height value; if so, retain the target point in the local map point cloud data at the current moment.

[0026] In some embodiments, if the target height value is not equal to the preset height value, the method further includes:

[0027] Determine whether the actual height value of the target point is greater than the target height value; if the actual height value is greater than the target height value, determine whether there is a map point at the corresponding position of the target point in the local map height data according to the coordinate index. If not, add the target point to the local map point cloud data at the current moment, and update the local map height data at the current moment.

[0028] In some of the embodiments, the method further comprises the step of constructing an initial flight map:

[0029] Construct the flying object coordinate system, the lidar coordinate system and the world coordinate system respectively, based on the transformation matrix between the flying coordinate system and the lidar coordinate system;

[0030] Acquire the initial moment positioning data and initial moment point cloud data of the flying object, and determine the three-dimensional coordinates of the initial point cloud data in the initial moment laser radar coordinate system based on the initial moment positioning data, the initial moment point cloud data and the transformation matrix;

[0031] Based on the preset voxel space information, the preset map space range and the three-dimensional coordinates, the point cloud data at the initial moment is screened and processed to obtain the candidate point cloud data; the candidate point cloud data is subjected to initial noise filtering processing according to the preset noise point space range to obtain the local map point cloud data at the initial moment.

[0032] In some of the embodiments, after the step of obtaining the local map point cloud data at the initial moment, the method further includes:

[0033] The local map height data at the initial moment is constructed based on the positioning data at the initial moment and the local map point cloud data at the initial moment. The local map height data at the initial moment and the local map point cloud data constitute the initial flight map corresponding to the initial moment.

[0034] In some embodiments, the step of constructing the local map height data at the initial moment based on the initial moment positioning data and the local map point cloud data at the initial moment includes:

[0035] Based on the positioning data at the initial moment, a preset height value of the local map height data is set, and according to the three-dimensional coordinates of each point in the local map point cloud data at the initial moment, the height value corresponding to the existing point on the vertical plane is determined, and the local map height data at the initial moment is constructed based on the preset height value and the height value corresponding to the existing point.

[0036] In some of the embodiments, the flying object is a drone, and the method further comprises:

[0037] The flight route of the UAV is planned based on the actual flight map after the spray noise is filtered out.

[0038] In order to solve the above problem, one aspect of an embodiment of the present invention provides a spray noise filtering device, the device comprising:

[0039] A data acquisition module is used to acquire the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, and to update the historical flight map based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map; wherein the flight map includes local map point cloud data and local map height data indicating the spraying direction of the flying object during the working process of the flying object and satisfying the preset map space range;

[0040] The noise point filtering module is used to traverse each target point in the point cloud data at the current moment, and compare the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range and the target height value of the corresponding position of the target point in the local map height data to determine the spray noise point, and filter the spray noise point in the flight map at the current moment to obtain the actual flight map at the current moment.

[0041] In order to solve the above problems, one aspect of an embodiment of the present invention provides an electronic device, including: a processor, and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes any one of the above spray noise filtering methods.

[0042] In order to solve the above problem, one aspect of an embodiment of the present invention provides a non-transitory machine-readable medium storing computer instructions, where the computer instructions are used to enable a computer to execute any of the above spray noise filtering methods.

[0043] The beneficial effects of the embodiments of the present invention are as follows: by acquiring the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, the historical flight map is updated based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map; wherein the flight map includes local map point cloud data and local map height data indicating the spraying direction of the flying object during the working process of the flying object and satisfying the preset map space range; traversing each target point in the current moment point cloud data, comparing the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point space range and the target height value of the corresponding position of the target point in the local map height data, so as to determine the spraying noise point , in the flight map at the current moment, the spray noise is filtered out to obtain the technical means of the actual flight map at the current moment, which overcomes the problem that the spray noise reduces the quality of the point cloud data collected by the lidar in the related technology, the noise data consumes more computing power resources, reduces the map construction efficiency and map construction accuracy, and limits the applicable scenarios of the lidar. The real-time update of the flight map based on the point cloud data collected by the lidar is realized, and the spray noise is filtered out in combination with the preset noise spatial range and other parameters during the update process, which improves the point cloud quality, reduces the computing power resources consumed in the map construction and update process, improves the map update efficiency, and expands the applicable scenarios of the lidar.

[0044] The details of one or more embodiments of the invention are set forth in the following drawings and description so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other embodiments can be obtained based on these drawings without creative work.

[0046] Figure 1It is a flow chart of a method for filtering spray noise according to an embodiment of the present invention.

[0047] Figure 2a It is a flow chart of initial flight construction and current flight map update in a spray noise filtering method according to another embodiment of the present invention.

[0048] Figure 2b Schematic diagram of a flow chart of filtering spray noise points on a flight map at a current moment in a spray noise point filtering method according to another embodiment of the present invention

[0049] Figure 2c yes Figure 2a Schematic diagram of constructing the drone coordinate system in the method shown.

[0050] Figure 2d This is a schematic diagram of map point cloud data before spray noise is filtered out based on a preset spray noise interval.

[0051] Figure 2e This is a schematic diagram of map point cloud data after spray noise is filtered out based on a preset spray noise interval.

[0052] Figure 3 It is a schematic diagram of the framework of a spray noise filtering device provided in another embodiment of the present invention.

[0053] Figure 4 Schematic diagram of the structure of the electronic device of this embodiment. DETAILED DESCRIPTION

[0054] Embodiments of the present embodiment will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present embodiment are shown in the accompanying drawings, it should be understood that the present embodiment can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, which are instead provided for a more thorough and complete understanding of the present embodiment. It should be understood that the drawings and embodiments of the present embodiment are only for exemplary purposes and are not intended to limit the scope of protection of the present embodiment.

[0055] Drones are widely used in the agricultural field for plant protection operations. Specifically, drones use mapping and flight control algorithms to achieve spraying operations. This type of drone can build maps in real time based on the geographical terrain, flexibly adjust the flight altitude, and autonomously identify and avoid obstacles, so as to accurately and evenly spray water, pesticides, fertilizers, seeds, powders and other sprays. LiDAR is one of the sensors installed on agricultural drones for environmental detection. LiDAR can accurately detect the distance of the environment and provide key data support for drones to perform terrain-simulating flight.

[0056] However, in drone operations, sprays can interfere with LiDAR detection. When the laser beam reflects off sprays such as water mist and pesticides and the echo signal of the object exceeds the detection threshold of the LiDAR, noise data output will be generated, resulting in poor quality of point cloud data. At the same time, in the subsequent map construction process based on the point cloud data containing the spray noise data, the spray is easily identified as an obstacle in the environment, resulting in low map accuracy, affecting the flight trajectory of the drone, and further affecting the progress of plant protection operations. LiDAR is difficult to promote in areas involving sprays.

[0057] In order to solve the above problems, the embodiment of the present invention provides a method for filtering spray noise points, such as Figure 1 As shown, the spray noise filtering method mainly includes:

[0058] Step S101, obtaining the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, updating the historical flight map based on the current moment positioning data and the current moment point cloud data, and obtaining the current moment flight map; wherein the flight map (the flight map refers to the flight map at any moment, such as including the initial moment flight map, the historical flight map, the current moment flight map) includes local map point cloud data and local map height data indicating the spraying direction of the flying object during the working process of the flying object and satisfying the preset map space range.

[0059] The point cloud data provided by the embodiment of the present invention is collected by a laser radar installed on the side of the flying object facing the ground. Since the spraying direction of the flying object in the agricultural operation scene is also toward the ground, the spraying noise will affect the point cloud quality and the accuracy of the constructed and updated real-time map, so the spraying noise needs to be filtered out later.

[0060] Among them, the point cloud data at the current moment refers to the data collected by the lidar at the current moment, which is the point cloud data actually collected by the radar; the local map point cloud data at the current moment is the point cloud data obtained after point cloud screening and used for drawing maps.

[0061] Among them, the preset map space range provided in the embodiment of the present invention refers to limiting the size of the map through preset parameters. Map points exceeding the preset map space range are not retained in the map, so as to more intuitively and accurately understand the actual geographical scene corresponding to the flying object at the current moment, and effectively save computing resources.

[0062] Through the above settings, the historical flight data is directly updated based on the positioning data and point cloud data corresponding to the flying object at the current moment, which improves the map update efficiency. Subsequently, it is only necessary to filter out the spraying noise points on the updated real-time map (i.e. the flight map at the current moment) to obtain the actual flight map, and then the driving path of the flying object based on the actual flight map trajectory can be used to smoothly perform plant protection operations.

[0063] In some of the embodiments, the historical flight map is constructed based on the point cloud data and positioning data of the previous moment; the step of updating the historical flight map based on the positioning data and the point cloud data of the current moment to obtain the flight map of the current moment includes: determining the relative external parameter matrix between the lidar coordinate systems at adjacent moments through the external parameter matrix of the lidar coordinate system relative to the world coordinate system at adjacent moments; updating the local map point cloud data in the historical flight map to the map point cloud data at the current moment through the relative external parameter matrix; traversing each target point in the point cloud data at the current moment, and determining whether there is a corresponding point of the target point in the map point cloud data according to the coordinate index; if so, discarding the target point; if not, adding the target point to the map point cloud data to obtain the local map point cloud data at the current moment; updating the local map height data based on the positioning data and the local map point cloud data at the current moment to obtain the flight map of the current moment.

[0064] Among them, the initial moment flight map in the embodiment of the present invention is constructed based on the point cloud data at the initial moment, and then the flight map at each moment in the flight process is updated based on the point cloud data and positioning data at each moment.

[0065] The "target point" in the embodiment of the present invention refers to a point in the newly acquired point cloud data at the current moment, that is, a point to be processed (such as determining whether a corresponding point already exists in the corresponding position in the map, determining whether it is located within the preset noise point space range, etc.). The time difference between the current moment and the previous moment provided in the embodiment of the present invention is set based on the map update frequency and the laser radar acquisition frequency. It can be understood that the higher the map update frequency and the higher the point cloud acquisition frequency, the smaller the time difference corresponding to adjacent moments, and the higher the accuracy of the map constructed or updated based on the point cloud data.

[0066] In the process of determining the flight map at the current moment, the map point cloud data in the flight map at the previous moment can be directly converted into the map point cloud data at the current moment through the external parameter matrix, that is, each map point in the flight map at the previous moment is converted to the corresponding position of the flight map at the current moment, and then combined with the point cloud data at the current moment, it is judged whether the corresponding position already has a corresponding map point (a map point refers to a point that already exists in the historical map, which is used for comparison with the target point. If a map point exists at the corresponding position of the target point in the map, it means that the target point is not collected for the first time, and the target point is discarded). If there is no corresponding map point, it means that the point is collected for the first time at two moments, and it is added to the map point cloud data at the current moment, thereby realizing the update of the local map point cloud data at the current moment, and only needs to synchronously update the local map height data to obtain the flight map at the current moment. Through the above settings, the embodiment of the present invention realizes the rapid conversion and update of the flight map at the previous moment to the flight map at the current moment based on position discrimination, which significantly improves the map update efficiency.

[0067] In some of the embodiments, the above method also includes a coordinate index construction step: constructing a coordinate index corresponding to the three-dimensional coordinates of any map point in the flight map according to the map space size information indicated by the preset map space range and the voxel size information indicated by the preset voxel space information.

[0068] Among them, the flight map provided by the embodiment of the present invention is a non-dense map. By presetting the preset voxel space information, only one map point will be retained in each voxel space size and stored in the local map point cloud data, which helps to further improve the calculation efficiency and save computing resources. At the same time, since the laser radar is fixedly set on the flying object body and the two are rigidly connected, the flying object coordinate system and the laser radar coordinate system can be converted through the conversion matrix, and the external parameter matrix of the laser radar coordinate system in the world coordinate system at each moment can be determined by the rotation matrix and translation vector of the two at adjacent moments. Therefore, for any point in the flight map, its unique coordinate index in the local map point cloud data and the local map height data can be determined based on the three-dimensional coordinates of the point. Based on the coordinate index, it helps to speed up the identification of the same point (avoiding repeated arrangement of multiple points at the same position), and can also realize the identification of spray noise points based on preset conditions (such as the spray noise point interval range) to achieve spray noise point filtering.

[0069] In some of the embodiments, the above method also includes the step of constructing an initial flight map: constructing a flying object coordinate system, a lidar coordinate system and a world coordinate system respectively based on the transformation matrix between the flying coordinate system and the lidar coordinate system; obtaining the flying object's initial moment positioning data and initial moment point cloud data, and determining the three-dimensional coordinates of the initial point cloud data in the lidar coordinate system at the initial moment based on the initial moment positioning data, the initial moment point cloud data and the transformation matrix; screening the initial moment point cloud data based on preset voxel spatial information, preset map spatial range and three-dimensional coordinates to obtain candidate point cloud data; performing initial noise filtering on the candidate point cloud data according to the preset noise spatial range to obtain local map point cloud data at the initial moment.

[0070] The historical flight map provided by the embodiment of the present invention may be constructed by the construction method of the flight map at the last moment indicated by the above embodiment, or may be a flight map constructed by an existing method in the related art. In addition, the embodiment of the present invention also provides an initial flight map construction method, that is, the three-dimensional coordinates of each map point are determined based on the positioning data and point cloud data at the initial moment, and then the point cloud data at the initial moment is screened in combination with the map size constraint (including preset voxel space information and preset map space range), and the points exceeding the map size constraint are directly discarded, which effectively reduces the data processing amount and improves the map construction efficiency. Then, all the points within the preset noise point space range are directly filtered to obtain the initial flight map for filtering the spray noise points. It should be noted that the purpose of directly filtering all the points within the preset noise point space range during the initial map construction process is to speed up the initial map construction efficiency. Since the flight map in the method provided by the embodiment of the present invention is updated in real time, the spray noise points are accurately identified in the subsequent map update process to ensure that the flight trajectory planning is not affected.

[0071] In some of the embodiments, after the step of obtaining the local map point cloud data at the initial moment, the method further includes: constructing the local map height data at the initial moment based on the positioning data at the initial moment and the local map point cloud data at the initial moment, and the local map height data at the initial moment and the local map point cloud data constitute the initial flight map corresponding to the initial moment.

[0072] Among them, the local height data provided by the embodiment of the present invention is a two-dimensional matrix, which reflects the height data of the point cloud in the vertical plane in the flight direction of the flying object, which can better provide data reference for the flying object's ground-mimicking flight (maintaining a constant height difference between the flying object and the target ground).

[0073] In some of the embodiments, the step of constructing the local map height data at the initial moment based on the positioning data at the initial moment and the local map point cloud data at the initial moment includes: setting a preset height value of the local map height data based on the positioning data at the initial moment, determining the height value corresponding to the existing point on the vertical plane according to the three-dimensional coordinates of each point of the local map point cloud data at the initial moment, and constructing the local map height data at the initial moment based on the preset height value and the height value corresponding to the existing point.

[0074] Among them, the preset altitude value can be the flight altitude value of the flying object, or it can be the altitude value corresponding to a certain altitude interval below the flight altitude. It means that when there is no map point in a certain position point in the two-dimensional matrix corresponding to the preset noise point space range, its corresponding value is set to the preset altitude value (by setting the preset altitude value, it is helpful to quickly and accurately identify the map points collected for the first time in the subsequent period, thereby improving the accuracy of map updates). If there is a map point in the corresponding position point, the altitude coordinate corresponding to the map point is used as the actual altitude value.

[0075] Step S102, traverse each target point in the point cloud data at the current moment, compare the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range and the target height value of the corresponding position of the target point in the local map height data, so as to determine the spray noise point, filter out the spray noise point in the flight map at the current moment, and obtain the actual flight map at the current moment.

[0076] Among them, the horizontal distance value indicated by the preset noise point spatial range provided in the embodiment of the present invention can be set according to different types of sprays and the spray range intervals at different flight altitudes (in actual application, based on different considerations such as the filtering accuracy of the spray noise and the calculation efficiency, the size of the preset noise point spatial range can be adaptively adjusted). Based on the preset noise point spatial range, the spray noise point filtering method provided in the embodiment of the present invention can be applicable to different types of sprays and different operating scenarios, further expanding the application scenarios of lidar.

[0077] Through the above settings, combined with parameters such as the preset noise spatial range, the spray noise is filtered out, which improves the point cloud quality, reduces the computing power resources consumed in the map update process, improves the map update efficiency, and expands the applicable scenarios of lidar.

[0078] In some of the embodiments, the step of comparing the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range includes: judging whether the target point is located within the preset noise point spatial range based on the three-dimensional coordinates corresponding to the target point and the horizontal distance value indicated by the preset noise point spatial range; if the target point is not within the preset noise point spatial range, the target point is not a spray noise point.

[0079] Through the above settings, combined with the step of determining whether the target point is located in the preset noise point space range, if the target point is not located in the preset noise point space range, it is determined that the target point is not a spray noise point; and the point located in the preset noise point space range is more likely to be a spray noise point, and a step of discrimination processing is required.

[0080] In some of the embodiments, if the target point is not located within the preset noise point space range, the above method also includes: determining the location point corresponding to the target point in the local map point cloud data at the current moment according to the coordinate index, and judging whether there is a map point in the location point; if there is a map point in the location point, the target point is not updated; if there is no map point in the location point, the target point is added to the local map point cloud data at the current moment, and the local map height data at the current moment is updated.

[0081] Regarding the case of determining whether a target point is within the preset noise point spatial range, although the target point is not a spray noise point and does not need to be filtered out, a map point may already exist in the corresponding position of the updated map point cloud. Therefore, whether to add the target point to the local map point cloud requires further determination of whether a map point already exists at the corresponding position, thereby avoiding the situation of placing multiple points repeatedly at the same position.

[0082] In some of the embodiments, if the target point is located within a preset noise point space range, the step of comparing the three-dimensional coordinates of the target point with the target height value of the corresponding position of the target point in the local map height data includes: calculating the target height value of the corresponding position of the target point in the local map height data based on the three-dimensional coordinates of the target point; determining whether the target height value is equal to the preset height value, and if the target height value is equal to the preset height value, retaining the target point in the local map point cloud data at the current moment.

[0083] In some of the embodiments, if the target point is within the preset noise point space range, the target point is a suspected spray noise point. In order to improve the accuracy of spray noise point filtering and avoid filtering out non-spray noise points, the embodiments of the present invention determine the target height value of the target point at the corresponding position in the local map height data, and then determine whether the target height value is a preset height value. If it is a preset height value, it means that the position has not appeared in the historical data, so the point is not filtered out, and the target point is added to the local map point cloud data at the current moment.

[0084] In some of the embodiments, if the target height value is not equal to the preset height value, the above method also includes: determining whether the actual height value of the target point is greater than the difference between the target height value and the error height value; if so, retaining the target point in the local map point cloud data at the current moment.

[0085] Furthermore, since there are inevitably certain errors in the data collection process, an error height value is set. As long as the actual height value of the target point is greater than the difference between the target height value and the error height value, it can be determined that the point has not appeared, and the target point is retained and added to the local map point cloud data at the current moment. Through the above settings, the system error is taken into consideration, further improving the accuracy of the updated flight map.

[0086] In some of the embodiments, if the target height value is not equal to the preset height value, the above method also includes: determining whether the actual height value of the target point is greater than the target height value; if the actual height value is greater than the target height value, determining whether there is a map point at the corresponding position of the target point in the local map height data according to the coordinate index, if so, discarding the target point, if not, adding the target point to the local map point cloud data at the current moment, and updating the local map height data at the current moment.

[0087] The actual height value mentioned above refers to the height value of the target point from the center point of the UAV fuselage in the vertical direction.

[0088] According to an embodiment of the present invention, if the flying object coordinate system constructed by the embodiment of the present invention takes the center point of the aircraft fuselage as the origin, the Z axis is facing above the aircraft fuselage, and the height value is represented by the Z axis coordinate value, then when the Z axis coordinate value of the actual height value of the target point is less than the Z axis coordinate value corresponding to the target height value, it means that the actual position of the target point is below the position corresponding to the target height value. At this time, it is determined whether a map point already exists at the corresponding position based on the map index. If no map point exists, the target point is added to the local map point cloud data.

[0089] In some embodiments, the flying object is a drone, and the method further includes: planning a flight route of the drone based on an actual flight map after spray noise points are filtered out.

[0090] According to an embodiment of the present invention, based on the actual flight map for achieving spray noise filtering, obstacle identification and ground terrain identification can be performed, and the flight route of the UAV can be planned based on the flight altitude data, obstacle identification results, and ground terrain identification results indicated by the actual flight map to better complete plant protection operations.

[0091] The above-mentioned spray noise filtering method provided by the embodiment of the present invention obtains the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, and updates the historical flight map based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map; wherein the flight map includes local map point cloud data and local map height data that indicate the spraying direction of the flying object during the working process of the flying object and meet the preset map space range; traverse each target point in the current moment point cloud data, and compare the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise space range and the target height value of the corresponding position of the target point in the local map height data, so as to determine The invention solves the problem that the spray noise reduces the quality of the point cloud data collected by the lidar, the noise data consumes more computing power resources, reduces the map construction efficiency and the accuracy of map construction, and limits the applicable scenarios of the lidar in related technologies. The invention realizes real-time updating of the flight map based on the point cloud data collected by the lidar, and filters the spray noise in the updating process in combination with the preset noise spatial range and other parameters, thereby improving the point cloud quality, reducing the computing power resources consumed in the map construction and updating process, improving the map update efficiency, and expanding the applicable scenarios of the lidar.

[0092] The embodiment of the present invention also provides a method for filtering spray noise points, which is applied to the scene where a drone sprays water, pesticides, fertilizers, seeds, powders and other sprays through terrestrial flight for plant protection operations. Figure 2a and Figure 2b As shown, the spray noise filtering method provided by the embodiment of the present invention includes:

[0093] Step S201, respectively construct the flying object coordinate system, the laser radar coordinate system and the world coordinate system based on the transformation matrix between the flying coordinate system and the laser radar coordinate system; obtain the initial moment positioning data and the initial moment point cloud data of the flying object, and determine the three-dimensional coordinates of the initial point cloud data in the laser radar coordinate system at the initial moment based on the initial moment positioning data, the initial moment point cloud data and the transformation matrix; based on the preset voxel spatial information, the preset map spatial range and the three-dimensional coordinates, filter the initial moment point cloud data to obtain candidate point cloud data; perform initial noise filtering on the candidate point cloud data according to the preset noise spatial range to obtain the local map point cloud data at the initial moment.

[0094] Specifically, Figure 2cAs shown, the drone coordinate system can be constructed with the center point of the drone as the origin. It is assumed that the X-axis of the drone coordinate system faces the drone nose, the Y-axis faces the left side of the drone, and the Z-axis faces the top of the drone. Since the laser radar coordinate system is installed directly below the drone, the axial direction of the coordinate system can be set to be consistent with the drone coordinate system. At this time, the height value of each point in the collected point cloud can be expressed by the coordinate value of the Z axis. It should be noted that the construction of the above coordinate system is only an example. During the specific installation process, due to factors such as the installation structure and the laser radar collection direction, the axial directions of the coordinate systems of the drone coordinate system and the laser radar coordinate system may not be consistent. At this time, based on the specific installation position, the conversion matrix of the drone coordinate system and the laser radar coordinate system is determined.

[0095] Among them, the preset map space range provided in the embodiment of the present invention refers to limiting the size of the map through preset parameters. Map points exceeding the preset map space range are not retained in the map, so as to more intuitively and accurately understand the actual geographical scene corresponding to the flying object at the current moment, and effectively save computing resources.

[0096] The embodiment of the present invention provides a method for constructing an initial flight map, that is, after determining the external parameter matrix of the laser radar coordinate system relative to the world coordinate system, the three-dimensional coordinates of each map point are determined based on the positioning data and point cloud data at the initial moment, and then the point cloud data at the initial moment is screened in combination with the map size constraint (including preset voxel space information and preset map space range), and points that exceed the map size constraint are directly discarded, which effectively reduces the amount of data processing and improves the efficiency of map construction. Then, all points within the preset noise point space range are directly filtered to obtain the initial flight map that achieves spray noise point filtering. It should be noted that the purpose of directly filtering all points within the preset noise point space range during the initial map construction process is to speed up the efficiency of initial map construction. Since the flight map is updated in real time in the method provided in the embodiment of the present invention, the spray noise points are subsequently accurately identified during the map update process to ensure that the flight trajectory planning is not affected. According to the embodiment of the present invention, Figure 2d and Figure 2e As shown, it can be seen that during the initial flight construction process, the candidate point cloud data is directly subjected to initial noise filtering processing according to the preset noise point spatial range, and a schematic diagram of the map point cloud before and after comparison is shown.

[0097] According to an embodiment of the present invention, a specific implementation method for determining an external parameter matrix is ​​provided. After acquiring the point cloud data collected by the laser radar and the GPS positioning data, the external parameter matrix of the laser radar coordinate system in the world coordinate system at each moment can be calculated according to the conversion matrix between the drone coordinate system and the laser radar coordinate system, where: Represents the 3x3 rotation matrix R of the laser radar coordinate system in the world coordinate system, Represents the 3x1 translation vector T of the LiDAR coordinate system in the world coordinate system.

[0098] Right now and are the rotation matrix and translation vector of the lidar in the world coordinate system at time t respectively. and are the rotation matrix and translation vector of the laser radar coordinate system in the world coordinate system at time t−1 respectively. Then we can get the rotation matrix of the laser radar coordinate system at time t−1 relative to the laser radar coordinate system at time t and translation vectors ,

[0099]

[0100]

[0101] Thus, the external parameter matrix of the laser radar coordinate system at time t-1 relative to the laser radar coordinate system at time t can be determined: , the expression is:

[0102]

[0103] According to another specific implementation of the embodiment of the present invention, since the installation position of the drone spray head and the installation position of the laser radar are fixed, the range of the spray noise points in the point cloud data during the flight or hovering of the drone is basically fixed. Assume that the horizontal distance value of the spray noise point in the preset noise point space range is In the process of initial noise filtering of candidate point cloud data according to the preset noise point spatial range, when the horizontal position of the map point in the candidate point cloud data is not within the horizontal distance value In the corresponding range, the corresponding map points are not saved, but only the horizontal distance radius (XY axis plane) greater than the horizontal distance value is saved of map points.

[0104] Step S202, setting a preset height value of the local map height data based on the positioning data at the initial moment, determining the height value corresponding to the existing point on the vertical plane according to the three-dimensional coordinates of each point in the local map point cloud data at the initial moment, and constructing the local map height data at the initial moment based on the preset height value and the height value corresponding to the existing point.

[0105] The local height data provided by the embodiment of the present invention is a two-dimensional matrix, which reflects the height data of the point cloud in the vertical plane in the direction of the flying object, and can provide better data reference for the flying object's ground-following flight (maintaining a constant height difference between the flying object and the target ground). The preset height value can be set to 0 (the height value is the height coordinate value in the coordinate system, and 0 represents the height value corresponding to the center point of the drone).

[0106] Among them, the preset altitude value can be the flight altitude value of the flying object, or it can be the altitude value corresponding to a certain altitude interval below the flight altitude. It means that when there is no map point in a certain position point in the two-dimensional matrix corresponding to the preset noise point space range, its corresponding value is set to the preset altitude value (by setting the preset altitude value, it is helpful to quickly and accurately identify the map points collected for the first time in the subsequent period, thereby improving the accuracy of map updates). If there is a map point in the corresponding position point, the altitude coordinate corresponding to the map point is used as the actual altitude value.

[0107] Step S203, constructing a coordinate index corresponding to the three-dimensional coordinates of any map point in the flight map according to the map space size information indicated by the preset map space range and the voxel size information indicated by the preset voxel space information.

[0108] Among them, the flight map provided by the embodiment of the present invention is a non-dense map. By presetting the preset voxel space information, only one map point will be retained in each voxel space size and stored in the local map point cloud data, which helps to further improve the calculation efficiency and save computing resources. At the same time, since the laser radar is fixedly set on the flying object body and the two are rigidly connected, the flying object coordinate system and the laser radar coordinate system can be converted through the conversion matrix, and the external parameter matrix of the laser radar coordinate system in the world coordinate system at each moment can be determined by the rotation matrix and translation vector of the two at adjacent moments. Therefore, for any point in the flight map, its unique coordinate index in the local map point cloud data and the local map height data can be determined based on the three-dimensional coordinates of the point. Based on the coordinate index, it helps to speed up the identification of the same point (avoiding repeated arrangement of multiple points at the same position), and can also realize the identification of spray noise points based on preset conditions (such as the spray noise point interval range) to achieve spray noise point filtering.

[0109] According to a specific implementation of an embodiment of the present invention, the map space size information indicated by the preset map space range is to limit the map size of the local map point cloud data and the local map height data in the X, Y, and Z three-dimensional space. The corresponding parameters of the map space size information are recorded as , , , points beyond the preset map space range will not be retained. At the same time, the preset voxel size is used , , It is represented by meters, and only one point will be retained in each voxel space in the local map point cloud data, thereby improving calculation efficiency.

[0110] For any point P (x, y, z), its unique coordinate index in the local map point cloud data The calculation formula is as follows:

[0111]

[0112]

[0113]

[0114]

[0115] For any point P (x, y, z), its unique coordinate index in the local map height data The calculation formula is as follows:

[0116]

[0117]

[0118]

[0119] Step S204, determine the relative extrinsic parameter matrix between the laser radar coordinate systems at adjacent moments through the extrinsic parameter matrix of the laser radar coordinate system relative to the world coordinate system at adjacent moments; update the local map point cloud data in the flight map at the initial moment to the map point cloud data at the current moment through the relative extrinsic parameter matrix; obtain the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, traverse each target point in the point cloud data at the current moment, and determine whether there is a corresponding point of the target point in the map point cloud data according to the coordinate index; if so, discard the target point; if not, add the target point to the map point cloud data to obtain the local map point cloud data at the current moment; based on the positioning data and the local map point cloud data at the current moment, update the local map height data to obtain the flight map at the current moment.

[0120] In the process of determining the flight map at the current moment, the map point cloud data in the flight map at the previous moment can be directly converted into the map point cloud data at the current moment through the external parameter matrix, that is, each map point in the flight map at the previous moment is converted to the corresponding position of the flight map at the current moment, and then combined with the target point in the point cloud data at the current moment, it is determined whether there is a corresponding map point at the corresponding position of the target point. If there is no corresponding map point, it means that the target point is collected for the first time at two moments, and it can be added to the map point cloud data at the current moment, thereby realizing the update of the local map point cloud data at the current moment. It only needs to synchronously update the local map height data to obtain the flight map at the current moment. Through the above settings, the embodiment of the present invention realizes the rapid conversion and update of the flight map at the previous moment to the flight map at the current moment based on position discrimination, which significantly improves the map update efficiency.

[0121] Through the above settings, the historical flight data is directly updated based on the positioning data and point cloud data corresponding to the flying object at the current moment, which improves the map update efficiency. Subsequently, it is only necessary to filter out the spraying noise points on the updated real-time map (i.e. the flight map at the current moment) to obtain the actual flight map, and then the driving path of the flying object based on the actual flight map trajectory can be used to smoothly perform plant protection operations.

[0122] Step S205, traverse each target point in the point cloud data at the current moment, and determine whether the target point is within the preset noise point space range according to the three-dimensional coordinates corresponding to the target point and the horizontal distance value indicated by the preset noise point space range. If not, that is, the target point is not within the preset noise point space range, then the target point is not a spray noise point, and step S206 is executed; if yes, that is, whether the target point is within the preset noise point space range, then the target point is a suspected spray noise point, and step S207 is executed.

[0123] Among them, step S204 and step S205 provide a process of traversing the target points in the point cloud data at the current moment to perform different operations. It should be noted that in step S204, the target points are traversed to determine whether the target points already exist in the map, with the purpose of quickly completing the construction of the flight map at the current moment (the spray noise filtering operation is not performed at this time). It can be understood that based on the actual scenarios corresponding to different situations such as the frequency of flying object spraying, the frequency of map updates, and whether the spray noise filtering operation has been performed in the flight map at the previous moment, and the computing efficiency of map construction and update, in order to avoid the impact on the path planning of the flying object, the primary purpose is to build the flight map at the current moment, and then on this basis, combined with step S205, traverse the target points to perform the operation of filtering the spray noise points. Furthermore, if the computing resources are sufficient and the computing efficiency is fast, it is only necessary to traverse each target point in the point cloud at the current moment. First, determine whether there is a corresponding point of the target point in the map point cloud data based on the coordinate index; if so, discard the target point; if not, do not add the target point to the map point cloud data for the time being, but continue to execute the steps indicated in steps S205-S210 to directly complete the filtering operation of the spray noise points.

[0124] Among them, the horizontal distance value indicated by the preset noise point spatial range provided in the embodiment of the present invention can be set according to different types of sprays and the spray range intervals at different flight altitudes (in actual application, based on different considerations such as the filtering accuracy of the spray noise and the calculation efficiency, the size of the preset noise point spatial range can be adaptively adjusted). Based on the preset noise point spatial range, the spray noise point filtering method provided in the embodiment of the present invention can be applicable to different types of sprays and different operating scenarios, further expanding the application scenarios of lidar.

[0125] Through the above settings, combined with the preset noise point spatial range and other parameters, the spray noise points are filtered out, which improves the point cloud quality, reduces the computing resources consumed in the map update process, improves the map update efficiency, and expands the applicable scenarios of LiDAR. Combined with the step of determining whether the target point is within the preset noise point spatial range, if the target point is not within the preset noise point spatial range, it is determined that the target point is not a spray noise point; and the point within the preset noise point spatial range is more likely to be a spray noise point, and a step of discrimination processing is required.

[0126] Step S206, determine the location point corresponding to the target point in the local map point cloud data at the current moment according to the coordinate index, and determine whether there is a map point in the location point; if there is a map point in the location point, do not update the target point; if there is no map point in the location point, add the target point to the local map point cloud data at the current moment, and update the local map height data at the current moment.

[0127] Regarding the case of determining whether a target point is within the preset noise point spatial range, although the target point is not a spray noise point and does not need to be filtered out, a map point may already exist in the corresponding position of the updated map point cloud. Therefore, whether to add the target point to the local map point cloud requires further determination of whether a map point already exists at the corresponding position, thereby avoiding the situation of placing multiple points repeatedly at the same position.

[0128] Step S207, according to the three-dimensional coordinates of the target point, calculate the target height value of the corresponding position of the target point in the local map height data, and determine whether the target height value is equal to the preset height value. If so, that is, the target height value is equal to the preset height value, execute step S208; if not, that is, the target height value is not equal to the preset height value, execute step S209.

[0129] In some of the embodiments, if the target point is within the preset noise point space range, the target point is a suspected spray noise point. In order to improve the accuracy of spray noise point filtering and avoid filtering out non-spray noise points, the embodiments of the present invention determine the target height value of the target point at the corresponding position in the local map height data, and then determine whether the target height value is a preset height value. If it is a preset height value, it means that the position has not appeared in the historical data, so the point is not filtered out, and the target point is added to the local map point cloud data at the current moment.

[0130] In step S208, the target point is added to the local map point cloud data at the current moment, and the local map height data at the current moment is updated.

[0131] Step S209, determine whether the actual height value of the target point is greater than the difference between the target height value and the error height value; if so, add the target point to the local map point cloud data at the current moment, and update the local map height data at the current moment; or, determine whether the actual height value of the target point is greater than the target height value; if the actual height value is greater than the target height value, determine whether there is a map point at the corresponding position of the target point in the local map height data according to the coordinate index, if so, discard the target point, if not, add the target point to the local map point cloud data at the current moment, and update the local map height data at the current moment.

[0132] Furthermore, since certain errors are unavoidable in the data collection process, an error height value is set. As long as the actual height value of the target point is greater than the difference between the target height value and the error height value, it can be determined that the point has not appeared, and the target point is retained and added to the local map point cloud data at the current moment. Through the above settings, the system error is taken into consideration, and the accuracy of the updated flight map is further improved. The flying object coordinate system constructed by the embodiment of the present invention takes the center point of the aircraft fuselage as the origin. The actual height value of the target point mentioned here is greater than the target height value, which means that the actual position of the target point is below the position corresponding to the target height value. At this time, it is determined whether a map point already exists at the corresponding position based on the map index. If there is no map point, the target point is added to the local map point cloud data.

[0133] Step S210, filtering out the spray noise points in the current flight map to obtain the actual flight map at the current moment; and planning the flight route of the UAV based on the actual flight map after the spray noise points are filtered out.

[0134] According to an embodiment of the present invention, based on the actual flight map for achieving spray noise filtering, obstacle identification and ground terrain identification can be performed, and the flight route of the UAV can be planned based on the flight altitude data, obstacle identification results, and ground terrain identification results indicated by the actual flight map to better complete plant protection operations.

[0135] The above-mentioned spray noise filtering method provided by the embodiment of the present invention obtains the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, and updates the historical flight map based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map; wherein the flight map includes local map point cloud data and local map height data that indicate the spraying direction of the flying object during the working process of the flying object and meet the preset map space range; traverse each target point in the current moment point cloud data, and compare the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise space range and the target height value of the corresponding position of the target point in the local map height data, so as to determine The invention solves the problem that the spray noise reduces the quality of the point cloud data collected by the lidar, the noise data consumes more computing power resources, reduces the map construction efficiency and the accuracy of map construction, and limits the applicable scenarios of the lidar in related technologies. The invention realizes real-time updating of the flight map based on the point cloud data collected by the lidar, and filters the spray noise in the updating process in combination with the preset noise spatial range and other parameters, thereby improving the point cloud quality, reducing the computing power resources consumed in the map construction and updating process, improving the map update efficiency, and expanding the applicable scenarios of the lidar.

[0136] Based on the above-mentioned spray noise filtering method provided by the embodiment of the present invention, the embodiment of the present invention also provides a spray noise filtering device, such as Figure 3 As shown, the spray noise filtering device 300 includes:

[0137] The data acquisition module 301 is used to obtain the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, and to update the historical flight map based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map; wherein the flight map includes local map point cloud data and local map height data that indicate the spraying direction of the flying object during the working process of the flying object and meet the preset map space range.

[0138] Among them, the point cloud data provided by the embodiment of the present invention is collected by a laser radar set on the side of the flying object facing the ground. The preset map space range provided by the embodiment of the present invention refers to limiting the size of the map through preset parameters, and map points exceeding the preset map space range are not retained in the map, so as to more intuitively and accurately understand the actual geographical scene corresponding to the flying object at the current moment, and effectively save computing resources. Through the above settings, the historical flight data is directly updated based on the positioning data and point cloud data corresponding to the flying object at the current moment, which improves the map update efficiency. Subsequently, it is only necessary to filter out the spray noise points on the updated real-time map (i.e., the flight map at the current moment) to obtain the actual flight map, and then based on the actual flight map trajectory The flying object’s driving path can smoothly perform plant protection operations.

[0139] In some of the embodiments, the historical flight map is constructed based on the point cloud data and positioning data of the previous moment; the data acquisition module 301 is also used to: determine the relative external parameter matrix between the lidar coordinate systems at adjacent moments through the external parameter matrix of the lidar coordinate system relative to the world coordinate system at adjacent moments; update the local map point cloud data in the historical flight map to the map point cloud data at the current moment through the relative external parameter matrix; traverse each target point in the point cloud data at the current moment, and determine whether there is a corresponding point of the target point in the map point cloud data according to the coordinate index; if so, discard the target point; if not, add the target point to the map point cloud data to obtain the local map point cloud data at the current moment; based on the positioning data and the local map point cloud data at the current moment, update the local map height data to obtain the flight map at the current moment.

[0140] In the process of determining the flight map at the current moment, the map point cloud data in the flight map at the previous moment can be directly converted into the map point cloud data at the current moment through the external parameter matrix, that is, each map point in the flight map at the previous moment is converted to the corresponding position of the flight map at the current moment, and then combined with the point cloud data at the current moment, it is determined whether the corresponding position already has a corresponding map point. If there is no corresponding map point, it means that the point is collected for the first time at two moments, and it can be added to the map point cloud data at the current moment, thereby realizing the update of the local map point cloud data at the current moment. It only needs to synchronously update the local map height data to obtain the flight map at the current moment. Through the above settings, the embodiment of the present invention realizes the rapid conversion and update of the flight map at the previous moment to the flight map at the current moment based on position discrimination, which significantly improves the map update efficiency.

[0141] In some of the embodiments, the spray noise filtering device 300 further includes a coordinate index construction module for constructing a coordinate index corresponding to the three-dimensional coordinates of any map point in the flight map according to the map space size information indicated by the preset map space range and the voxel size information indicated by the preset voxel space information.

[0142] Among them, the flight map provided by the embodiment of the present invention is a non-dense map. Through the pre-set voxel space information, only one map point will be retained in each voxel space size and stored in the local map point cloud data, which helps to further improve the calculation efficiency and save computing resources. At the same time, since the laser radar is fixedly set on the flying object body and the two are rigidly connected, the flying object coordinate system and the laser radar coordinate system can be converted through the conversion matrix, and the external parameter matrix of the laser radar coordinate system in the world coordinate system at each moment can be determined by the rotation matrix and translation vector of the two at adjacent moments. Therefore, for any point in the flight map, its unique coordinate index in the local map point cloud data and the local map height data can be determined based on the three-dimensional coordinates of the point. Based on the coordinate index, it helps to speed up the identification of the same point (avoiding repeated arrangement of multiple points at the same position), and can also realize the identification of spray noise points based on preset conditions (such as the spray noise point interval range) to achieve spray noise point filtering.

[0143] In some of the embodiments, the spray noise filtering device 300 further includes an initial flight map construction module, which is used to: respectively construct a flying object coordinate system, a lidar coordinate system and a world coordinate system based on the transformation matrix between the flying coordinate system and the lidar coordinate system; obtain the flying object's initial moment positioning data and initial moment point cloud data, and determine the three-dimensional coordinates of the initial point cloud data in the lidar coordinate system at the initial moment based on the initial moment positioning data, the initial moment point cloud data and the transformation matrix; screen the initial moment point cloud data based on preset voxel spatial information, preset map spatial range and three-dimensional coordinates to obtain candidate point cloud data; perform initial noise filtering on the candidate point cloud data according to the preset noise spatial range to obtain local map point cloud data at the initial moment.

[0144] The historical flight map provided by the embodiment of the present invention may be constructed by the construction method of the flight map at the last moment indicated by the above embodiment, or may be a flight map constructed by an existing method in the related art. In addition, the embodiment of the present invention also provides an implementation method for constructing an initial flight map, that is, determining the three-dimensional coordinates of each map point based on the positioning data and point cloud data at the initial moment, and then filtering the point cloud data at the initial moment in combination with the map size constraint (including preset voxel space information and preset map space range), and directly discarding the points that exceed the map size constraint, effectively reducing the data processing amount and improving the map construction efficiency. Then, directly filter all the points within the preset noise point space range to obtain the initial flight map for filtering the spray noise points. It should be noted that the purpose of directly filtering all the points within the preset noise point space range during the initial map construction process is to speed up the initial map construction efficiency. Since the flight map in the method provided by the embodiment of the present invention is updated in real time, the spray noise points are accurately identified in the subsequent map update process to ensure that the flight trajectory planning is not affected.

[0145] In some of the embodiments, after the step of obtaining the local map point cloud data at the initial moment, the above-mentioned initial flight map construction module is also used to: construct the local map height data at the initial moment based on the positioning data at the initial moment and the local map point cloud data at the initial moment, and the local map height data at the initial moment and the local map point cloud data constitute the initial flight map corresponding to the initial moment.

[0146] Among them, the local height data provided by the embodiment of the present invention is a two-dimensional matrix, which reflects the height data of the point cloud in the vertical plane in the flight direction of the flying object, which can better provide data reference for the flying object's ground-mimicking flight (maintaining a constant height difference between the flying object and the target ground).

[0147] In some of the embodiments, the above-mentioned initial flight map construction module is also used to: set a preset height value of the local map height data based on the positioning data at the initial moment, determine the height value corresponding to the existing point on the vertical plane according to the three-dimensional coordinates of each point in the local map point cloud data at the initial moment, and construct the local map height data at the initial moment based on the preset height value and the height value corresponding to the existing point.

[0148] Among them, the preset altitude value can be the flight altitude value of the flying object, or it can be the altitude value corresponding to a certain altitude interval below the flight altitude. It means that when there is no map point in a certain position point in the two-dimensional matrix corresponding to the preset noise point space range, its corresponding value is set to the preset altitude value (by setting the preset altitude value, it is helpful to quickly and accurately identify the map points collected for the first time in the subsequent period, thereby improving the accuracy of map updates). If there is a map point in the corresponding position point, the altitude coordinate corresponding to the map point is used as the actual altitude value.

[0149] The noise point filtering module 302 is used to traverse each target point in the point cloud data at the current moment, and compare the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range and the target height value of the corresponding position of the target point in the local map height data to determine the spray noise point, and filter the spray noise point in the flight map at the current moment to obtain the actual flight map at the current moment.

[0150] Based on the preset noise point spatial range provided by the embodiment of the present invention, the spray noise point filtering device provided by the embodiment of the present invention can be applied to different types of spray objects and different operation scenarios, further expanding the application scenarios of laser radar. Through the above settings, the spray noise points are filtered out in combination with the preset noise point spatial range and other parameters, which improves the point cloud quality, reduces the computing power resources consumed in the map update process, improves the map update efficiency, and expands the applicable scenarios of laser radar.

[0151] In some of the embodiments, the noise point filtering module 302 is also used to determine whether the target point is located within the preset noise point space range according to the three-dimensional coordinates corresponding to the target point and the horizontal distance value indicated by the preset noise point space range; if the target point is not within the preset noise point space range, the target point is not a spray noise point.

[0152] Through the above settings, combined with the step of determining whether the target point is located in the preset noise point space range, if the target point is not located in the preset noise point space range, it is determined that the target point is not a spray noise point; and the point located in the preset noise point space range is more likely to be a spray noise point, and a step of discrimination processing is required.

[0153] In some of the embodiments, if the target point is not located within the preset noise point space range, the noise point filtering module 302 is further used to: determine the location point corresponding to the target point in the local map point cloud data at the current moment according to the coordinate index, and determine whether there is a map point in the location point; if there is a map point in the location point, the target point is not updated; if there is no map point in the location point, the target point is added to the local map point cloud data at the current moment, and the local map height data at the current moment is updated.

[0154] Regarding the case of determining whether a target point is within the preset noise point spatial range, although the target point is not a spray noise point and does not need to be filtered out, a map point may already exist in the corresponding position of the updated map point cloud. Therefore, whether to add the target point to the local map point cloud requires further determination of whether a map point already exists at the corresponding position, thereby avoiding the situation of placing multiple points repeatedly at the same position.

[0155] In some of the embodiments, if the target point is located within a preset noise point space range, the noise point filtering module 302 is further used to: calculate the target height value of the target point at the corresponding position in the local map height data according to the three-dimensional coordinates of the target point; determine whether the target height value is equal to the preset height value, and if the target height value is equal to the preset height value, retain the target point in the local map point cloud data at the current moment.

[0156] In some of the embodiments, if the target point is within the preset noise point space range, the target point is a suspected spray noise point. In order to improve the accuracy of spray noise point filtering and avoid filtering out non-spray noise points, the embodiments of the present invention determine the target height value of the target point at the corresponding position in the local map height data, and then determine whether the target height value is a preset height value. If it is a preset height value, it means that the position has not appeared in the historical data, so the point is not filtered out, and the target point is added to the local map point cloud data at the current moment.

[0157] In some of the embodiments, if the target height value is not equal to the preset height value, the noise filtering module 302 is also used to: determine whether the actual height value of the target point is greater than the difference between the target height value and the error height value; if so, retain the target point in the local map point cloud data at the current moment.

[0158] Furthermore, since there are inevitably certain errors in the data collection process, an error height value is set. As long as the actual height value of the target point is greater than the difference between the target height value and the error height value, it can be determined that the point has not appeared, and the target point is retained and added to the local map point cloud data at the current moment. Through the above settings, the system error is taken into consideration, further improving the accuracy of the updated flight map.

[0159] In some of the embodiments, if the target height value is not equal to the preset height value, the noise filtering module 302 is further used to: determine whether the actual height value of the target point is greater than the target height value; if the actual height value is greater than the target height value, determine whether there is a map point at the corresponding position of the target point in the local map height data according to the coordinate index; if so, discard the target point; if not, add the target point to the local map point cloud data at the current moment, and update the local map height data at the current moment.

[0160] The flying object coordinate system constructed by the embodiment of the present invention takes the center point of the aircraft fuselage as the origin. The actual height value of the target point mentioned here is greater than the target height value, which means that the actual position of the target point is below the position corresponding to the target height value. At this time, it is determined whether a map point already exists at the corresponding position based on the map index. If no map point exists, the target point is added to the local map point cloud data.

[0161] In some of the embodiments, the flying object is a drone, and the spray noise filtering device 300 further includes a flight route planning module for planning the flight route of the drone based on the actual flight map after the spray noise filtering is completed.

[0162] According to an embodiment of the present invention, based on the actual flight map for achieving spray noise filtering, obstacle identification and ground terrain identification can be performed, and the flight route of the UAV can be planned based on the flight altitude data, obstacle identification results, and ground terrain identification results indicated by the actual flight map to better complete plant protection operations.

[0163] The above-mentioned spray noise filtering device provided by the embodiment of the present invention obtains the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object through the data acquisition module, updates the historical flight map based on the current moment positioning data and the current moment point cloud data, and obtains the current moment flight map; wherein the flight map includes local map point cloud data and local map height data that indicate the spraying direction of the flying object during the working process of the flying object and meet the preset map space range; each target point in the current moment point cloud data is traversed by the noise filtering module, and the three-dimensional coordinates of the target point are compared with the horizontal distance value indicated by the preset noise space range and the target height value of the corresponding position of the target point in the local map height data. A comparison is made to determine the spray noise points, and the spray noise points are filtered out in the flight map at the current moment to obtain the technical means of the actual flight map at the current moment. This overcomes the problem in the related technology that the spray noise points reduce the quality of the point cloud data collected by the lidar, the noise data consumes more computing resources, reduces the map construction efficiency and the accuracy of map construction, and limits the applicable scenarios of the lidar. The flight map is updated in real time based on the point cloud data collected by the lidar, and the spray noise points are filtered out in combination with the preset noise spatial range and other parameters during the update process, which improves the point cloud quality, reduces the computing power consumed in the map construction and update process, improves the map update efficiency, and expands the applicable scenarios of the lidar.

[0164] An embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory in communication with the at least one processor. The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device executes the method of the embodiment of the present invention.

[0165] An embodiment of the present invention further provides a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present invention.

[0166] An embodiment of the present invention further provides a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is used to enable the computer to execute the method of the embodiment of the present invention.

[0167] refer to Figure 4 , a block diagram of an electronic device that can be used as a server or client of an embodiment of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0168] like Figure 4 As shown, the electronic device includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 to a random access memory (RAM) 403. In RAM 403, various programs and data required for the operation of the electronic device can also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0169] Multiple components in the electronic device are connected to the I / O interface 405, including: an input unit 406, an output unit 407, a storage unit 408, and a communication unit 409. The input unit 406 can be any type of device that can input information to the electronic device, and the input unit 406 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device. The output unit 407 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 408 can include but is not limited to a disk, an optical disk. The communication unit 409 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0170] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a CPU, a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above. For example, in some embodiments, the method embodiments of the present invention may be implemented as a computer program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via ROM 402 and / or communication unit 409. In some embodiments, the computing unit 401 may be configured to perform the above-described method in any other appropriate manner (e.g., by means of firmware).

[0171] The computer programs for implementing the methods of the embodiments of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0172] In the context of an embodiment of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable signal medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0173] It should be noted that the term "including" and its variations used in the embodiments of the present invention are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The modifications of "one" and "multiple" mentioned in the embodiments of the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more".

[0174] The various steps described in the method implementation methods provided in the embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method implementation methods may include additional steps and / or omit the steps shown. The scope of protection of the present invention is not limited in this respect.

[0175] The term "embodiment" in this specification refers to specific features, structures or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments refer to each other. In particular, for the device, equipment, and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment.

[0176] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A method for filtering spray noise, characterized in that: include: Acquire the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, and update the historical flight map based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map; wherein the flight map includes local map point cloud data and local map height data indicating the spraying direction of the flying object during the working process of the flying object and satisfying the preset map space range; Traverse each target point in the point cloud data at the current moment, compare the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range and the target height value of the corresponding position of the target point in the local map height data, so as to determine the spray noise point, filter out the spray noise point in the flight map at the current moment, and obtain the actual flight map at the current moment.

2. The method according to claim 1, characterized in that The historical flight map is constructed based on the point cloud data and positioning data at the previous moment; the step of updating the historical flight map based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map includes: Determine the relative extrinsic matrix between the laser radar coordinate systems at adjacent moments through the extrinsic matrix of the laser radar coordinate system relative to the world coordinate system at adjacent moments; By using the relative external parameter matrix, the local map point cloud data in the historical flight map is updated to the map point cloud data at the current moment; Traversing each target point in the point cloud data at the current moment, determining whether the target point has a corresponding point in the map point cloud data according to the coordinate index; if so, discarding the target point; if not, adding the target point to the map point cloud data to obtain the local map point cloud data at the current moment; Based on the positioning data and the local map point cloud data at the current moment, the local map altitude data is updated to obtain the flight map at the current moment.

3. The method according to claim 2, characterized in that The method also includes a coordinate index construction step: A coordinate index corresponding to the three-dimensional coordinates of any map point in the flight map is constructed according to the map space size information indicated by the preset map space range and the voxel size information indicated by the preset voxel space information.

4. The method according to claim 1, characterized in that: The step of comparing the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range comprises: Determining whether the target point is within the preset noise point space range according to the three-dimensional coordinates corresponding to the target point and the horizontal distance value indicated by the preset noise point space range; If the target point is not located within the preset noise point space range, the target point is not a spray noise point.

5. The method according to claim 4, characterized in that If the target point is not within the preset noise point space range, the method further includes: Determine the location point corresponding to the target point in the local map point cloud data at the current moment according to the coordinate index, and judge whether there is a map point in the location point; if there is a map point in the location point, do not update the target point; if there is no map point in the location point, add the target point to the local map point cloud data at the current moment, and update the local map height data at the current moment.

6. The method according to claim 4, characterized in that If the target point is within the preset noise point space range, the step of comparing the three-dimensional coordinates of the target point with the target height value of the corresponding position of the target point in the local map height data comprises: Calculating a target height value of a position corresponding to the target point in the local map height data according to the three-dimensional coordinates of the target point; It is determined whether the target height value is equal to a preset height value. If the target height value is equal to the preset height value, the target point is retained in the local map point cloud data at the current moment.

7. The method according to claim 6, characterized in that If the target height value is not equal to the preset height value, the method further includes: Determine whether the actual height value of the target point is greater than the difference between the target height value and the error height value; if so, retain the target point in the local map point cloud data at the current moment.

8. The method according to claim 6, characterized in that If the target height value is not equal to the preset height value, the method further includes: Determine whether the actual height value of the target point is greater than the target height value; if the actual height value is greater than the target height value, determine whether there is a map point at the corresponding position of the target point in the local map height data according to the coordinate index; if not, add the target point to the local map point cloud data at the current moment, and update the local map height data at the current moment.

9. The method according to claim 1, characterized in that: The method also includes the step of constructing an initial flight map: Constructing a flying object coordinate system, a laser radar coordinate system and a world coordinate system respectively, based on a transformation matrix between the flying object coordinate system and the laser radar coordinate system; Acquire the initial moment positioning data and the initial moment point cloud data of the flying object, and determine the three-dimensional coordinates of the initial moment point cloud data in the initial moment laser radar coordinate system based on the initial moment positioning data, the initial moment point cloud data and the transformation matrix; Based on the preset voxel space information, the preset map space range and the three-dimensional coordinates, the point cloud data at the initial moment is screened to obtain candidate point cloud data; the candidate point cloud data is subjected to initial noise point filtering according to the preset noise point space range to obtain local map point cloud data at the initial moment.

10. The method according to claim 9, characterized in that After the step of obtaining the local map point cloud data at the initial time, the method further includes: The local map height data at the initial moment is constructed based on the initial moment positioning data and the local map point cloud data at the initial moment, and the local map height data and the local map point cloud data at the initial moment constitute the initial flight map corresponding to the initial moment.

11. The method according to claim 10, characterized in that The step of constructing the local map height data at the initial moment based on the initial moment positioning data and the local map point cloud data at the initial moment comprises: A preset height value of the local map height data is set based on the positioning data at the initial moment, and the height value corresponding to the existing point on the vertical plane is determined according to the three-dimensional coordinates of each point in the local map point cloud data at the initial moment. The local map height data at the initial moment is constructed based on the preset height value and the height value corresponding to the existing point.

12. A spray noise filtering device, characterized in that: The device comprises: A data acquisition module, used to acquire the current moment positioning data of the flying object and the current moment point cloud data corresponding to the spraying direction of the flying object, and update the historical flight map based on the current moment positioning data and the current moment point cloud data to obtain the current moment flight map; wherein the flight map includes local map point cloud data and local map height data indicating the spraying direction of the flying object during the working process of the flying object and satisfying the preset map space range; The noise point filtering module is used to traverse each target point in the point cloud data at the current moment, compare the three-dimensional coordinates of the target point with the horizontal distance value indicated by the preset noise point spatial range and the target height value of the corresponding position of the target point in the local map height data, so as to determine the spray noise point, filter out the spray noise point in the flight map at the current moment, and obtain the actual flight map at the current moment.