WO2022142628A1 - Point cloud data processing method and device - Google Patents

Point cloud data processing method and device Download PDF

Info

Publication number
WO2022142628A1
WO2022142628A1 PCT/CN2021/125567 CN2021125567W WO2022142628A1 WO 2022142628 A1 WO2022142628 A1 WO 2022142628A1 CN 2021125567 W CN2021125567 W CN 2021125567W WO 2022142628 A1 WO2022142628 A1 WO 2022142628A1
Authority
WO
WIPO (PCT)
Prior art keywords
point cloud
grid
target
data
cloud data
Prior art date
Application number
PCT/CN2021/125567
Other languages
French (fr)
Chinese (zh)
Inventor
金磊
杨鑫
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022142628A1 publication Critical patent/WO2022142628A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • G06T17/205Re-meshing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds

Definitions

  • the present application relates to the technical field of data processing, and in particular, to a method and device for processing point cloud data.
  • Three-dimensional (3-dimension, 3D) point cloud data is important data to be collected in various scenarios such as autonomous driving and high-precision map production.
  • 3D point cloud data is generally collected by high-precision laser radar.
  • the size of a file containing 3D point cloud data is about 1.8 megabytes (MB), and the 3D point cloud data collected for about ten minutes will get 10 gigabytes (gigabytes). , GB) size file. Therefore, the 3D point cloud data collected by the existing method has a large amount of data, which will occupy a large amount of memory space and disk space, and the data calculation amount in the process of playing the 3D point cloud in real time is also large. Therefore, it is necessary to compress the collected 3D point cloud data.
  • the commonly used 3D point cloud compression method is the proportional voxel filtering method, which reduces the number of point clouds by filtering the collected 3D point cloud data, thereby realizing point cloud compression.
  • this method damages the point cloud structure greatly, and the shape deviation between the compressed point cloud data and the original point cloud data is large, so the point cloud compression effect is poor.
  • the present application provides a point cloud data processing method and device, which are used to reduce the damage to the shape features of the point cloud data and improve the point cloud compression effect during point cloud compression.
  • the present application provides a point cloud data processing method, the method includes: acquiring initial point cloud data, and determining a target area of the initial point cloud data, wherein the target area includes the initial point cloud data Each point cloud in the grid; the target area is divided into grids to obtain multiple grids, wherein the feature data of the point cloud in each grid satisfies the feature distribution condition, and the feature data is used to represent the point cloud and all the grids. Describe the spatial geometric relationship between the neighboring points of the point cloud; select the target point cloud of each grid from the point clouds contained in each grid, and delete other point clouds except the target point cloud in each grid ; According to the target point cloud of each grid, get the target point cloud data.
  • the target area of the point cloud data is divided into grids, and then the target point cloud in each grid is used to replace all point clouds in the grid, which can effectively reduce the number of point clouds and realize point cloud compression.
  • the spatial geometric characteristics of the point cloud in the divided grid must meet the characteristic distribution conditions, that is, the grid division in this method is based on the geometric distribution characteristics of the point cloud, which can ensure that while compressing the point cloud, It avoids major damage to the geometric distribution characteristics of the point cloud, thereby reducing the damage to the shape characteristics of the point cloud data and improving the point cloud compression effect.
  • the geometric distribution feature of the above point cloud is a local feature with invariant attitude, so the rotation and translation invariance of the point cloud can be guaranteed during grid division, the stability is improved, and the error of point cloud data processing can be reduced.
  • the dividing the target area into grids includes: dividing the target area into multiple grids according to a set grid size; dividing each grid that does not meet the dividing conditions The following steps are performed on each grid that satisfies the dividing conditions: the target grid is divided into multiple grids, and the target grid is each grid that meets the dividing conditions; wherein, the The division condition is that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
  • the grid when dividing the grid, by setting the dividing conditions, the grid can be selectively divided, and finally non-uniform grid division can be realized.
  • the point cloud is selectively simplified, thereby reducing the elimination of some point clouds with obvious features and reducing the damage to the shape features of the point cloud data.
  • whether the feature data of the point cloud in the grid satisfies the feature distribution condition is determined according to the following methods: calculating the first target parameter according to the feature data of all point clouds in the grid; if it is determined that the If the first target parameter is not greater than the set threshold, it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition; otherwise, it is determined that the feature data of the point cloud in the grid does not meet the feature distribution condition.
  • the method further includes: adopting a random sampling consensus algorithm to perform a random sampling on the point cloud included in the target point cloud data.
  • Plane fitting to obtain at least one fitting plane; in the at least one fitting plane, determine a first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value; if the at least one fitting plane is If there is a second target fitting plane that satisfies the setting condition in the fitting plane, then perform voxel filtering on the point cloud data included in the second target fitting plane; wherein the setting condition includes: perpendicular to the For the first target fitting plane, the length along the target direction is greater than the set length value, and the number of point clouds located in the plane is greater than the set value.
  • some planes with more point clouds are further selected in the target point cloud data, and the selected planes are filtered.
  • the general distribution characteristics of the point cloud are relatively smooth, so removing some of the redundant points will not cause great damage to the shape characteristics of the point cloud data, and at the same time, it can further simplify the point cloud data and reduce the size of the point cloud data file. .
  • the method before determining the target area of the initial point cloud data, the method further includes: filtering the initial point cloud data to remove outliers in the initial point cloud data.
  • the initially collected point cloud data generally contains a certain amount of noise points and measurement error points.
  • the existence of these outlier points will affect the local distribution characteristics of the point cloud in the initial point cloud data. Therefore, by removing the outlier points It can improve the accuracy of point cloud feature extraction in point cloud data, thereby improving the accuracy of point cloud data processing.
  • the method further includes: adjusting the second target parameter of the target point cloud in each grid is the average value of the second target parameter for all point clouds contained in this grid.
  • the target point cloud of the grid when used as the representative point of all point clouds in the grid, by adjusting the relevant parameters of the target point cloud to the average value of all the relevant parameters of the point clouds in the grid where it is located, it is possible to relatively More accurately reflect the overall point cloud parameter characteristics of the grid, and avoid deviations caused by some extreme parameter values.
  • the target point cloud of each grid is the centroid point in the point cloud contained in each grid.
  • centroid point of the point cloud in the grid is used as the representative point of the grid, which can better preserve the spatial layout characteristics of the point cloud in the point cloud data and reduce the damage to the point cloud distribution characteristics of the point cloud data.
  • the present application provides a point cloud data processing device, the device includes an acquisition unit and a processing unit; the acquisition unit is used to acquire initial point cloud data; the processing unit is used to determine the value of the initial point cloud data a target area, wherein the target area includes each point cloud in the initial point cloud data; the processing unit is further configured to perform grid division on the target area to obtain multiple grids, wherein each grid The feature data of the point cloud in the grid satisfies the feature distribution condition, and the feature data is used to represent the spatial geometric relationship between the point cloud and the neighboring points of the point cloud; select each point cloud contained in each grid.
  • the target point cloud of the grid is deleted, and other point clouds except the target point cloud in each grid are deleted; according to the target point cloud of each grid, the target point cloud data is obtained.
  • the processing unit divides the target area into grids, including: dividing the target area into multiple grids according to a set grid size; The grid is not divided; perform the following steps on each grid that meets the dividing conditions: divide the target grid into multiple grids, and the target grid is each grid that meets the dividing conditions; wherein,
  • the division condition is that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
  • the processing unit determines whether the feature data of the point cloud in the grid satisfies the feature distribution condition according to the following manner: calculating the first target parameter according to the feature data of all point clouds in the grid; If it is determined that the first target parameter is not greater than the set threshold, it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition; otherwise, it is determined that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
  • Feature distribution conditions Feature distribution conditions.
  • the processing unit is further configured to: adopt a random sampling consensus algorithm to analyze the points included in the target point cloud data Perform plane fitting on the cloud to obtain at least one fitting plane; in the at least one fitting plane, determine the first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value; if the If there is a second target fitting plane that satisfies the setting condition in at least one fitting plane, then perform voxel filtering on the point cloud data included in the second target fitting plane; wherein, the setting condition includes: perpendicular to the The length of the first target fitting plane along the target direction is greater than the set length value, and the number of point clouds located in the plane is greater than the set value.
  • the processing unit before determining the target area of the initial point cloud data, is further configured to: filter the initial point cloud data to remove outliers in the initial point cloud data point.
  • the processing unit is further configured to: convert the second target of the target point cloud in each grid The parameter is adjusted to the average value of the second target parameter of all point clouds contained in this grid.
  • the target point cloud of each grid is the centroid point in the point cloud contained in each grid.
  • the present application provides a point cloud data processing device, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the calculation program stored in the memory, so as to realize the above-mentioned first aspect or the method described in any possible design of the first aspect.
  • the present application provides a point cloud data processing device, including at least one processor and an interface; the interface is used to provide program instructions or data for the at least one processor; the at least one processor is used to execute The program instructions implement the method described in the first aspect or any possible design of the first aspect.
  • the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed on a data processing apparatus, the data processing apparatus is made to execute the above-mentioned first The method described in the aspect or any possible design of the first aspect.
  • the present application provides a computer program product, the computer program product includes a computer program or an instruction, when the computer program or instruction is executed by a data processing apparatus, realizes the first aspect or any one of the first aspects. possible designs of the method described.
  • the present application provides a chip system, the chip system includes at least one processor and an interface, the interface is used to provide program instructions or data for the at least one processor, and the at least one processor is used to execute all the The program instructions are used to implement the method described in the first aspect or any possible design of the first aspect.
  • the chip system further includes a memory for storing program instructions and data.
  • the chip system consists of chips, or includes chips and other discrete devices.
  • FIG. 1 is a schematic diagram of a possible application scenario to which a point cloud data processing method provided by an embodiment of the present application is applicable;
  • FIG. 2 is a schematic diagram of a point cloud data processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a fitting plane processing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a method for dividing a point cloud grid according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of comparison before and after point cloud data processing provided by an embodiment of the present application.
  • 6a is a schematic diagram of a method for limiting the display range of a point cloud provided by an embodiment of the present application
  • 6b is a schematic diagram of another method for limiting the display range of a point cloud provided by an embodiment of the present application.
  • FIG. 7a is a schematic diagram of original point cloud data provided by an embodiment of the present application.
  • FIG. 7b is a schematic diagram of a processed point cloud data provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a data processing apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a data processing apparatus according to an embodiment of the present application.
  • Point cloud data The set of point data on the surface of an object measured by measuring equipment can be called point cloud data.
  • Point cloud data is a collection of points obtained after obtaining the spatial coordinates of each sampling point on the surface of the object, also known as the mass point collection of the surface characteristics of the target object.
  • the point cloud data (also referred to as laser point cloud data) measured based on the principle of laser measurement includes information such as three-dimensional coordinates and laser reflection intensity.
  • the point cloud data obtained based on the principle of photogrammetry includes information such as three-dimensional coordinates and color, wherein the color information may be color data in red, green, blue, RGB format. Combining the principles of laser measurement and photogrammetry, point cloud data including three-dimensional coordinates, laser reflection intensity and color information are obtained.
  • point feature histograms point feature histograms
  • the point feature histogram is a local feature with invariant attitude, which is based on the relationship between the point cloud contained in the point cloud data and its neighboring points and their estimation. Normals are used to describe the geometric features of local point cloud data.
  • PFH uses parameterization to query the spatial difference between the point cloud and the neighboring points, and forms a multi-dimensional histogram to describe the neighborhood geometric properties of the point cloud.
  • the high-dimensional hyperspace in which the histogram resides provides a measurable information space for feature representation, is invariant to the 6-dimensional pose of the surface corresponding to the point cloud, and is robust to different sampling densities or noise levels in the neighborhood .
  • FPFH Fast point feature histograms
  • At least one refers to one or more, and "a plurality” refers to two or more.
  • And/or which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • At least one (item) of the following or its similar expression refers to any combination of these items, including any combination of single item (item) or plural item (item).
  • At least one (a) of a, b or c may represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c Can be single or multiple.
  • 3D point cloud data is an important data that needs to be collected in various scenarios such as autonomous driving and high-precision map production.
  • high-precision electronic map acquisition systems or automatic driving systems and assisted driving systems usually use radar to collect point cloud data, for example, use LiDAR (light detection and ranging, LiDAR) to obtain 3D point clouds with reflection intensity data, and then obtain the corresponding environmental information according to the 3D point cloud data.
  • LiDAR light detection and ranging
  • Lidar is a radar system that emits a laser beam to detect the position, speed and other characteristic quantities of a target. Its working principle is to transmit a detection signal such as a laser beam to the target, and then receive the signal reflected from the target, such as target echo and emission. Signals are compared, and relevant information of the target is obtained after appropriate processing, such as the target's distance, orientation, height, speed, attitude, and even shape and other parameters. If the laser beam is scanned according to a certain trajectory by the lidar, the reflected laser point information will be recorded while scanning. Since the scanning is extremely fine, a large number of laser points can be obtained during the scanning process, thereby forming point cloud data.
  • Point cloud compression needs to keep the shape characteristics of point clouds while reducing the number of point clouds and reducing the size of point cloud data files.
  • the commonly used point cloud compression method is the proportional voxel filtering method, which homogenizes and sparses the point cloud in the point cloud data, so it is easy to lose the shape or distribution characteristics of the point cloud, resulting in the effect of point cloud compression. poor.
  • an embodiment of the present application provides a point cloud data processing method, which selectively sparse and simplifies point cloud data according to point cloud characteristics, which can compress the data volume of point cloud data and reduce the need for point cloud data. The destruction of the structure, thereby improving the point cloud compression effect.
  • compressing point cloud data can be understood as selectively deleting a part of the point cloud data from the collected point cloud data and retaining the other part of the point cloud, thereby reducing the amount of data contained in the point cloud data.
  • the number of point clouds reduces the file size of point cloud data and realizes compression of point cloud data. Therefore, compressing point cloud data can also be understood as streamlining the point cloud data.
  • the point cloud data processing method provided in the embodiment of the present application can compress the point cloud data collected by the radar, and the method can be applied to a data processing device with data processing capability, and the data processing device can be a vehicle with data processing function, Or the on-board equipment with data processing function in the vehicle, or set in the sensor with the function of collecting and processing point cloud data.
  • Vehicle-mounted devices may include, but are not limited to, vehicle-mounted terminals, vehicle-mounted controllers, vehicle-mounted modules, vehicle-mounted modules, vehicle-mounted components, vehicle-mounted chips, vehicle-mounted units, vehicle-mounted radars, and other devices.
  • the data processing device may also be other electronic devices with data processing functions, including but not limited to smart home devices (such as TVs, etc.), smart robots, mobile terminals (such as mobile phones, tablet computers, etc.), wearable devices (such as smart Watches, etc.) and other smart devices.
  • the data processing device may also be a controller, a chip, a radar and other devices in the smart device.
  • FIG. 1 is a schematic diagram of a possible application scenario to which a point cloud data processing method provided by an embodiment of the present application is applicable.
  • the application scenario of the point cloud data processing method provided by the embodiment of the present application may be an assisted driving scenario.
  • the vehicle is in a certain natural environment, for example, the vehicle is driving on a road, and the setting on the vehicle is There is radar, which can take measurements of the surrounding environment to obtain point cloud data of the surrounding environment of the vehicle.
  • the radar can send the collected point cloud data to the vehicle where it is located or the vehicle-mounted device on the vehicle, so that the vehicle or the vehicle-mounted device can perform the point cloud data processing method provided in the embodiment of the present application on the collected point cloud data; or, the radar Execute the point cloud data processing method provided by the embodiment of the present application on the obtained point cloud data, and send the processed point cloud data to the vehicle or the vehicle-mounted device on the vehicle, so that the vehicle or the vehicle-mounted device can process the processed point cloud data. Perform subsequent operations, such as playing point cloud data, etc.
  • the radar is just an example of a device that can collect point cloud data.
  • the device that collects point cloud data in this embodiment of the present application is not limited to radar, but can also be any other device that can collect point cloud data.
  • it can also be A device such as a camera is not limited in this embodiment of the present application.
  • the position of the radar on the vehicle is just an example, and the specific position of the radar on the vehicle is not limited thereto.
  • FIG. 1 is just an example, and the application scenarios of the embodiments of the present application are not limited thereto.
  • the data processing device used to execute the point cloud data processing method provided by the embodiments of the present application may not be a radar but other equipment, and the device may not be installed on the vehicle, but may be installed on other equipment, or the Devices can also be set individually.
  • FIG. 2 is a schematic diagram of a point cloud data processing method provided by an embodiment of the present application.
  • the data processing apparatus may be, but is not limited to, the apparatus with data processing capability provided in this embodiment of the present application, for example, may be a radar, a vehicle, or an in-vehicle device in the scenario shown in FIG.
  • the point cloud data processing method provided by this application includes:
  • the data processing apparatus acquires initial point cloud data, and determines a target area of the initial point cloud data, wherein the target area includes each point cloud in the initial point cloud data.
  • the radar is used as an example for the device for collecting initial point cloud data for description.
  • the data of the point cloud in the initial point cloud data collected by the radar includes at least position information of the point cloud, and the position information may be the three-dimensional coordinates of the point cloud.
  • the point cloud data may also include point cloud color parameters such as RGB color values and reflection intensity parameters.
  • the initial point cloud data is obtained by the radar measuring the environment in the scene.
  • the radar when the radar is the radar shown in FIG. 1, and the scene where the radar is located is the scene where the vehicle is driving on the road shown in FIG. 1, the radar measures and collects data on the surrounding environment to obtain initial point cloud data, and sent to the data processing device.
  • the radar can collect point cloud data of all objects including vehicles, roads, other vehicles on the road, signs on both sides of the road, buildings, etc., or collect point cloud data of specific objects or specific ranges according to actual needs .
  • the target area of the initial point cloud data needs to include all the point clouds in the initial point cloud data, and the target area may be the smallest circumscribed area of all the point clouds in the initial point cloud data.
  • the shape of the region may be any shape or a shape set arbitrarily, for example, it may be a rectangular parallelepiped, a cube, a triangular prism, a triangular pyramid, a sphere, and the like.
  • the shape of the target area is a cuboid as an example to introduce and describe the data processing method provided by the present application.
  • the processing method when the target area is other shapes refer to the processing method adopted when the target area is a cuboid.
  • the target area of the initial point cloud data can be understood as the circumscribed cuboid of the initial point cloud data.
  • the following takes the circumscribed cuboid as the smallest circumscribed cuboid that can contain all the point clouds in the initial point cloud data as an example. illustrate.
  • the data processing device After acquiring the initial point cloud data collected by the radar, the data processing device determines the smallest cuboid that can contain all point clouds in the initial point cloud data, and determines the smallest cuboid as the circumscribed cuboid of the initial point cloud data. Wherein, when the lengths of each side of the circumscribed cuboid are equal, the circumscribed cuboid may also be called a circumscribed cube.
  • a circumscribed cuboid (or a circumscribed cube) is a frame surrounding the object being processed, and can be understood as an imaginary frame surrounding the initial point cloud data in this application.
  • the data processing device may also determine the smallest cube that can contain all the point clouds in the initial point cloud data, and determine the smallest cube as the size of the initial point cloud data.
  • the circumscribed cube is subsequently processed as described below.
  • the data processing device may first perform filtering processing on the initial point cloud data, and perform a statistical analysis on the neighborhood of each point cloud through the filtering processing. , and remove some point clouds that do not meet the standard, so as to ensure the accuracy of subsequent processing.
  • the data processing apparatus may use a statistical outlier removal filter to determine and delete outlier points from the point cloud included in the initial point cloud data.
  • the data processing device may set the parameters of the statistical outlier elimination filter as follows: the search neighborhood for the point cloud is the set neighborhood value, and the reference standard deviation multiple is the set multiple value, for example, the set neighborhood value It can be 50, and the standard deviation multiple can be 1. For a certain point cloud within the set search neighborhood, if the average distance between the point cloud and other point clouds in the search neighborhood is greater than the standard range of point cloud distribution in the search neighborhood, the point cloud is determined to be an outlier. and removed from the initial point cloud data.
  • the average distance calculates the average distance from each point cloud to all its neighbor points in the search neighborhood. Assuming that the obtained result is a Gaussian distribution whose shape is determined by the mean and standard deviation, the corresponding average distance is Points outside the standard range are determined as outliers, where the standard range is the range corresponding to the product of the standard deviation and the multiple of the set standard deviation.
  • the data processing device divides the target area into grids to obtain a plurality of grids, wherein the feature data of the point cloud in each grid satisfies the feature distribution condition, and the feature data is used to represent the point cloud and the neighborhood of the point cloud Spatial geometric relationship between points.
  • the data processing apparatus divides the target area into grids
  • the following methods may be adopted: first, according to the set grid size, the target area is divided into multiple grids; in the obtained multiple grids, for each grid The grids that do not meet the division conditions will not be divided; perform the following steps for each grid that meets the division conditions: divide the target grid into multiple grids, where the target grid is each grid that meets the division conditions grid.
  • the division condition is that the characteristic data of the point cloud in the grid does not meet the characteristic distribution condition
  • the data processing device determines whether the characteristic data of the point cloud in the grid meets the characteristic distribution condition in the following way: According to the characteristic data of all point clouds in the grid Calculate the first target parameter; if it is determined that the first target parameter is not greater than the set threshold, it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition; otherwise, it is determined that the feature data of the point cloud in the grid does not meet the feature distribution condition.
  • the above-mentioned first target parameter may be a variance parameter, a standard deviation parameter, etc., wherein, in the following embodiments of the present application, the first target parameter is taken as an example to introduce the solution.
  • the data processing device determines the circumscribed cuboid of the acquired initial point cloud data, according to the set grid size, the circumscribed cuboid is evenly divided, and the circumscribed cuboid is divided into multiple grids.
  • the length of each side of the grid corresponding to the set grid size may be the same or different.
  • the grid can also be understood as a fictitious outer frame that contains part of the point cloud or does not contain the point cloud.
  • Set the grid size to one of the following:
  • the set grid size may be a fixed 40 ⁇ 30 ⁇ 20 cm, that is, the grid corresponding to the set grid size is a cuboid with side lengths of 40, 30, and 20 cm, respectively, and the data processing device will The circumscribed cuboid is evenly divided into multiple grids with a size of 40 ⁇ 30 ⁇ 20 cm.
  • the product of each side length of the circumscribed cuboid and the set coefficient may be respectively determined as the grid side length corresponding to the set grid size, and the set coefficient is greater than 0 and not greater than 1.
  • the data processing device divides the circumscribed cuboid into a plurality of 10 ⁇ 8 For example, when the length of each side of the circumscribed cuboid determined by the data processing device is 50 meters, that is, when the circumscribed cuboid is a cube at the same time, the grid size is set to 5 ⁇ 5 ⁇ 5 cm.
  • the grid may also be referred to as a voxel grid.
  • the data processing device preliminarily divides the circumscribed cuboid, it respectively judges whether each grid obtained by the division satisfies the division conditions, and if so, continues to divide the grid, and continues to judge each grid obtained after division Whether the division conditions are met and continue to divide when the division conditions are met, and so on, until all the divided grids do not meet the division conditions, stop dividing the grid.
  • the data processing device preliminarily divides the circumscribed cuboid into a plurality of grids, it continues to perform the following grid division steps:
  • Step 1 The data processing apparatus takes each grid of the divided grids as a target grid.
  • Step 2 The data processing device judges whether the target grid satisfies the division conditions, and if yes, executes Step 3, otherwise, the target grid is not divided.
  • Step 3 The data processing apparatus divides the target grid into a plurality of grids, and uses each grid of the plurality of grids obtained by division as a target grid, and performs step 2.
  • the local geometric features of the point cloud include PFH or FPFH.
  • PFH or FPFH is a local feature with invariant attitude, which has feature invariance to the 6-DOF pose of the corresponding surface of the point cloud, and is in different sampling densities or neighborhoods. Feature extraction under noise level is robust. Therefore, in the grid division process, it can be determined whether to further divide the grid according to the PFH or FPFH characteristics of the point cloud in the grid.
  • the data processing device when judging whether the target grid satisfies the division conditions, the data processing device firstly determines the feature data of each point cloud in the target grid according to the point cloud contained in the target grid, wherein the feature data It is used to represent the positional relationship between the point cloud and the neighboring points of the point cloud; then, the data processing device calculates the variance of the feature data of all point clouds in the target grid, and judges whether the obtained variance is greater than the set threshold, if the If the variance is greater than the set threshold, it is determined that the feature data of the point cloud in the target grid does not meet the feature distribution conditions, then the target grid satisfies the division conditions; otherwise, it is determined that the feature data of the point cloud in the target grid meets the feature distribution conditions, then the target grid The raster does not meet the division criteria.
  • the variance calculated above is the variance calculated according to the PFH of the point cloud within the target grid range.
  • the feature data of the above point cloud includes a distance parameter and three angle parameters, wherein one distance parameter is the Euclidean distance between the point cloud and a certain neighborhood point, and the three angle parameters are used to represent the point cloud. The angular deviation between the normal of and the normal of one of its neighbor points.
  • the data processing device uses the point cloud and the neighboring points of the point cloud to form point pairs for each point cloud in the target grid, and calculates the distance parameters and angle parameters corresponding to each group of point pairs. After the calculation is completed, the PFH is obtained, and Find the variance of the feature data contained in the PFH. Finally, it is determined whether the target grid satisfies the division conditions according to the obtained variance.
  • the variance calculated above is the variance calculated according to the FPFH of the point cloud within the target grid range.
  • the feature data of the above point cloud includes three angle parameters, which are used to represent the angle deviation between the normal of the point cloud and the normal of its neighboring points.
  • the data processing device uses the point cloud and the neighboring points of the point cloud to form point pairs, and calculates the angle parameters corresponding to each group of point pairs.
  • the FPFH is obtained.
  • the feature data contained in the FPFH is varianced. Finally, it is determined whether the target grid satisfies the division conditions according to the obtained variance.
  • the variance corresponding to the grid After determining the variance corresponding to the grid, compare the variance with the set threshold. If the variance is less than the set threshold, it means that the PFH or FPFH characteristics of the point cloud in the grid change little, and the grid does not need to be further divided. If the variance is greater than or equal to the set threshold, it means that the PFH or FPFH characteristics of the point cloud in the grid change drastically, and the grid can be further divided.
  • the point cloud in general point cloud data is three-dimensional, and the data of three-dimensional point cloud is unstructured data, which has the characteristics of sparsity, disorder, non-uniform distribution, and large number of changes.
  • the feature data of the point cloud is determined according to the point pair formed by the point cloud and its neighboring points, which has a certain anti-interference, such as anti-rotation, etc., so more accurate and robust features can be obtained. data.
  • the value of each side length of the target grid may be reduced to 1/n of the original side length value Then, taking the obtained size as the side length, and dividing the target grid according to the corresponding grid size, the target grid can be evenly divided into n 3 grids, where n is an integer not less than 2.
  • the data processing device divides the target grid into side lengths. For a grid of 20 cm, a total of 8 smaller grids are obtained.
  • the target grid is a 90 ⁇ 60 ⁇ 30 cm cube and the value of n is 3, the size of the target grid is 30 ⁇ 20 ⁇ 10 cm after the value of each side is reduced to 1/3 of the original, then the data processing device will The grid is evenly divided into grids of size 30 ⁇ 20 ⁇ 10 cm, resulting in a total of 27 smaller grids.
  • the data processing device finishes performing the grid division step and determines that all grids obtained by division do not meet the division conditions, it determines that the grid division is completed, and continues to perform the point cloud reduction process described below.
  • S203 The data processing apparatus selects the target point cloud of each grid from the point clouds contained in each grid, and deletes other point clouds except the target point cloud in each grid.
  • the point cloud data can be simplified. Specifically, the data processing apparatus selects the target point cloud of each grid from the point clouds contained in each grid.
  • the target point cloud is the centroid point in the point cloud included in the grid, wherein the coordinates of the centroid point in the grid are obtained by calculating the average value of the coordinates of all the point clouds in the grid .
  • the target point cloud may also be the center of gravity point in the point cloud included in the grid.
  • the data processing device For each grid, after determining the target point cloud in the grid, the data processing device deletes other point clouds in the grid except the target point cloud, and only replaces the grid with the target point cloud.
  • the second target parameter of the target point cloud in the grid can also be adjusted to the average value of the second target parameters of all point clouds contained in the grid, wherein the second target parameter includes the color parameter of the point cloud and/or Or the reflection intensity parameter, which can be an RGB color value.
  • the data processing device may adjust the RGB color parameters of the target point cloud in the grid to the average value of the red, green and blue color parameters of all point clouds contained in the grid; and/or, the target point in the grid
  • the reflection intensity parameter of the cloud is adjusted to the average of the reflection intensity parameters of all point clouds contained in this grid.
  • S204 The data processing device obtains target point cloud data according to the target point cloud of each grid.
  • the target point cloud data composed of all retained target point clouds is obtained, and the target point cloud data is the point cloud data after the initial point cloud data is simplified or compressed.
  • the target point cloud data obtained by simplifying the initial point cloud data may also include many points with smooth but redundant features.
  • the points with smooth but redundant features are reflected in the road surface and building plane around the vehicle.
  • the road surface generally contains There is more traffic sign information, so its point cloud data can be retained without excessive processing, but the redundant building plane data on both sides of the road can be further simplified. Therefore, in some embodiments of the present application, the target point cloud data may be further downsampled by plane fitting, so as to remove redundant point clouds on the plane of buildings on both sides of the road, and further reduce the number of point clouds.
  • a random sampling consensus algorithm can be used to perform plane fitting on the point cloud included in the target point cloud data to obtain at least one fitted plane, and then in the at least one fitted plane, Determine the first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value;
  • the point cloud data contained in the combined plane is filtered; wherein, the setting conditions include: perpendicular to the first target fitting plane, the length along the target direction is greater than the set length value, and the number of point clouds in the plane is greater than the set value
  • the target coordinate system is the coordinate system adopted by the device for collecting initial point cloud data
  • the coordinate system is a coordinate system with the center of the device (such as radar) collecting initial point cloud data as the origin.
  • the data processing device may perform random sample consensus (RANSAC) plane fitting on the point cloud contained in the target point cloud data.
  • RANSAC random sample consensus
  • the plane fitting takes N points as the fitting condition, and determines the plane containing the number of point clouds greater than N, where N is a set positive integer.
  • the data processing device may first randomly select three point clouds from the target point cloud data, form a plane by these three point clouds, and then calculate the target point cloud data separately from other point clouds to The distance of the plane, if the distance from the point cloud to the plane is less than the preset distance value, the point cloud is considered to be a point located in this plane, otherwise, the point cloud is considered not to be located in the plane. Finally, if it is determined that the number of point clouds located in the plane is greater than N, the plane is determined as a fitting plane obtained, and all point clouds located in the fitting plane are marked as matched, and then never marked as Continue to select three point clouds from the matched point clouds, and determine the fitting plane based on the selected three point clouds.
  • the data processing device iteratively performs plane fitting in the above-mentioned manner until the termination condition is satisfied, and at least one fitted plane is obtained.
  • the termination condition is that the number of point clouds contained in the determined plane after M iterations is less than N, or three point clouds not marked as matched cannot be found.
  • M is the set number of iterations, which is a positive integer.
  • the data processing device After determining at least one fitting plane through the above-mentioned plane fitting, the data processing device selects a plane whose number of point clouds needs to be further reduced from the at least one fitting plane, and further reduces the selected plane.
  • the following description will be made with reference to FIG. 3 .
  • FIG. 3 is a schematic diagram of a fitting plane processing method provided by an embodiment of the present application.
  • the X axis, the Y axis and the Z axis are the three coordinate axes of the three-dimensional coordinate system adopted by the device for collecting the initial point cloud data, wherein any two coordinate axes are perpendicular to each other, and point O is the three-dimensional coordinate system of the three-dimensional coordinate system. origin.
  • the X axis can be the same as the direction in which the vehicle is traveling
  • the XOY plane can be the horizontal plane in the natural coordinate system
  • the Z axis represents the height.
  • the plane obtained by the data processing device performing plane fitting on the target point cloud data includes the points O, P, The plane L1 corresponding to Q and R, the plane L2 corresponding to the points P1, P2, P3, and P4, and the plane L3 corresponding to the points P3, P4, and P5.
  • the target plane is the XOY plane.
  • the data processing device first selects the plane whose distance from the target plane in the coordinate system is lower than the set distance value from the planes L1, L2, and L3, that is, the plane with the lowest plane height.
  • Plane L1 serves as the ground plane.
  • the plane L2 is determined as the building plane.
  • the resolution of the plane L2 is reduced to a set value through filtering, for example, the set value may be one tenth of the original resolution of the plane L2.
  • a voxel grid filter can be used to filter the point cloud contained in the plane, wherein when the voxel filter filters the point cloud contained in the plane, the circumscribed cuboid of the point cloud contained in the plane is uniform Divide it into multiple grids, and the length of each side of each grid is one-tenth of the corresponding side length of the circumscribed cuboid, and then use the target point cloud in each grid as the representative point of the grid, and delete the Non-target point cloud in raster.
  • step numbers in the various embodiments described in the embodiments of the present application are only an example of the execution flow, and do not constitute a limitation on the sequence of execution of the steps. There is no strict order of execution between the steps of timing dependencies.
  • the data processing device in the above step S204 may select the target point cloud from the point clouds contained in the grid and delete the grid.
  • step S204 for each grid after the execution of step S203 and determine that all grids do not meet the grid division requirements, that is, when steps S203 and S204 are executed , the step S203 may be performed prior to the step S204, or the two steps may be selectively performed simultaneously.
  • the target point cloud determined in each grid is used to replace the grid, which can reduce the number of point clouds and realize the realization of point clouds. compression.
  • the grid when dividing the grid, by setting the dividing conditions, the grid can be selectively divided, and the non-uniform grid division can reduce the elimination of some point clouds with obvious characteristics, thereby ensuring the shape of the point cloud data. feature to improve point cloud compression.
  • the division conditions are set according to the feature parameters reflecting the discrete degree of point cloud distribution in the grid, which can be combined with the geometric features of the point cloud data to divide the grid to ensure the pose invariance of the point cloud, improve the robustness, and ensure the point cloud.
  • the accuracy of the features can avoid grid division errors caused by changes such as translation and rotation of the point cloud, and further improve the effect of point cloud compression.
  • FIG. 4 it is a schematic diagram of a method for dividing a point cloud grid according to an embodiment of the present application. As shown in (a) of FIG. 4 , it is assumed that the initial point cloud data acquired by the data processing device is a point cloud set S.
  • the following is an example of determining the circumscribed cube of the initial point cloud data, and taking the centroid point in the point cloud included in the grid as the target point cloud of the grid as an example for description.
  • the data processing device When the data processing device processes the initial point cloud data, it first determines the circumscribed cube of the initial point cloud data. Grid S1.
  • the data processing apparatus divides the grid S1 into a plurality of grids according to the set grid size. As an optional implementation manner, the data processing apparatus determines and sets the grid size according to the size of the grid S1. For example, as shown in (a) of FIG. 4 , the data processing apparatus may determine half of the side length of the grid S1 as the side length corresponding to the set grid size, then the grid S1 is divided into 8 equal-sized grids After division, the side length of each grid is half of the side length of grid S1, as shown in grid S2, where grids A, B, C, D, E, F, G, and H are 8 small grids obtained by dividing the grid S2.
  • grid D and grid F are used as examples for illustration. Specifically, for grid D, as shown in (b) in FIG. 4 , if the data processing device determines that grid D does not meet the division conditions, then Grid D is divided, but the centroid point is selected in the point cloud contained in grid D, and other point clouds except the centroid point in grid D are deleted to obtain grid D1, which is shown in grid D1 The point cloud of is the centroid point of the reserved grid D.
  • grid F11, grid F16 and grid F17 are used as examples for illustration. Specifically, if the data processing device determines that grid F11, grid F16 and grid F17 do not meet the division conditions, grid F11 will not be processed any more. , grid F16 and grid F17 to divide, but select the centroid point in the point clouds contained in grid F11, grid F16 and grid F17 respectively, and delete other point clouds except the centroid point in the grid respectively , the grid F21, grid F26 and grid F27 shown in (b) of FIG. 4 are obtained respectively.
  • the grid F2 shown in (b) in FIG. 4 is obtained, and the grid F2 is a pair of grids.
  • the data processing device divides the grid S1 corresponding to the circumscribed cube of the initial point cloud data according to the above grid division method, until all grids obtained by the latest division do not meet the division conditions, it is determined that the point cloud simplification is completed, and the latest division is obtained.
  • the point clouds in all the grids of make up the target point cloud data, as shown in grid S3.
  • the point cloud in the grid S3 is the point cloud after the point cloud in the grid S1 is simplified.
  • FIG. 5 is a schematic diagram of comparison before and after point cloud data processing according to an embodiment of the present application.
  • Grid W in FIG. 5 shows the point cloud distribution of the original simulated point cloud data before the point cloud data processing
  • grid W1 shows the point cloud data using the method provided by the above embodiments of the present application.
  • the point cloud distribution of the point cloud data obtained after processing. Comparing the distribution of point clouds in the grid W and the grid W1, it can be seen that after the point cloud processing method provided in the embodiment of the present application is used to process the point cloud data with a large amount of data, the number of point clouds can be effectively reduced, thereby reducing the number of point clouds.
  • the size of the cloud data file realizes point cloud compression; at the same time, compared with the point cloud before processing shown in grid W1, the processed point cloud shown in grid W1 is denser in shape features and point cloud distribution. The differences in the degree and other aspects are relatively small, so the point cloud processing method provided by the embodiment of the present application damages the shape features of the point cloud very little, and can ensure a better point cloud compression effect.
  • the initial point cloud data is first divided into a uniform grid, and then the grid obtained by the initial division is selectively further divided according to the dividing conditions.
  • the uniform division method is still used.
  • the non-uniform rasterization of the point cloud is finally realized, and the point cloud compression is realized by replacing the centroid point, which can reduce the damage to the shape and distribution characteristics of the point cloud, thereby improving the point cloud compression effect.
  • the initial point cloud data of the scene collected by the radar may contain sensitive building features and other data that are not suitable for display, and relevant regulations require that these sensitive data should not be disclosed or large-scale. It is held for a long time, so the viewing of point cloud data is greatly restricted.
  • point cloud data is mainly used for driving perception.
  • point clouds that are far away from the radar it is not very helpful for driving perception, especially in the field of intelligent driving such as automatic driving and assisted driving.
  • it mainly relies on It is based on the point cloud data within a certain range with the vehicle center as the origin for driving perception. Therefore, the range of point cloud data collected by radar and subsequently displayed can be limited, so as to avoid or blur the point cloud of sensitive buildings. characteristics, and at the same time, it will not have much impact on driving perception.
  • the radar collects the point cloud data of the surrounding environment of the vehicle
  • the point cloud data outside the set range can be deleted, only the point cloud data within the set range can be retained, and the set range
  • the point cloud data inside is used as the initial point cloud data, and the initial point cloud data is processed by using the point cloud data processing method provided by the above-mentioned embodiment of the present application, and then the point cloud data is effectively simplified, and the compliance erasure is invalid. point cloud in the range.
  • FIG. 6a is a schematic diagram of a method for limiting the display range of a point cloud provided by an embodiment of the present application.
  • the radar when the radar is located on the top of the vehicle, the radar is used as the origin, and in the vertical direction, only the point cloud data within the range corresponding to the set distance on both sides of the radar is retained, that is, the dotted line L4 and the dotted line L5 in Figure 6a
  • the point cloud data within the limited range, for the point cloud data beyond this range, the radar does not perform point cloud collection or deletes the point cloud data that has been collected.
  • the height distance value can be set to 2.5 meters, and only the point cloud data within the range corresponding to 2.5 on both sides of the radar is retained, that is
  • the limit between the two dashed lines in Figure 6a is a range of 5 meters in height, which can cover both the ground and the height of basically all models.
  • the buildings on both sides of the driveway will be shielded because of the height limit of 2.5 meters, and will not be displayed too much, so as to prevent all sensitive building information from being disclosed.
  • FIG. 6b is a schematic diagram of another method for limiting the display range of a point cloud provided by an embodiment of the present application.
  • Figure 6b on the basis of the limited range shown in Figure 6a, only the point cloud data within the range corresponding to the set distances on the left and right sides of the radar and the front and rear sides of the radar are retained, that is, the range surrounded by the dotted box in Figure 6b.
  • the radar does not collect the point cloud or deletes the point cloud data that has been collected.
  • the x-axis shown in Figure 6b is the same as the vehicle's driving direction, and the y-axis is perpendicular to the x-axis.
  • the distribution of point clouds in the range beyond 100 meters before and after the vehicle is relatively sparse, which has no reference value and can be removed. Therefore, the set distance in the front and rear directions of the radar can be 100 meters.
  • the relevant standards stipulate that the maximum width of the standard lane is 3.75 meters, and the width of the 8-lane one-way is less than 16 meters.
  • the point cloud beyond the range of 30 meters to the left and right of the radar does not affect the target detection and can also be removed.
  • the set distance in the direction can be 30 meters.
  • the necessary detection information in the lane and on both sides of the road can be retained, and the collection of invalid information can be reduced.
  • the point cloud data collected around the vehicle only includes point cloud data within a set range around the vehicle, which can cover the useful information range while shielding the road.
  • the building information on both sides can avoid the disclosure of sensitive building information, further reduce the amount of point cloud data, and improve the efficiency of point cloud data transmission and playback.
  • FIG. 7a is a schematic diagram of original point cloud data provided by an embodiment of the present application. As shown in Figure 7a, it is the point cloud data of the actual environment collected by the radar. The white points in the figure are point clouds. It can be seen that the number of point clouds in the point cloud data in the figure is relatively large.
  • FIG. 7b is a schematic diagram of processed point cloud data according to an embodiment of the present application.
  • the point cloud data obtained after processing the original point cloud data shown in FIG. 7a the white points in the figure are point clouds.
  • the data processing apparatus 800 may include: an acquisition unit 801 and a processing unit 802 .
  • the acquiring unit 801 is used for acquiring initial point cloud data.
  • the processing unit 802 is configured to determine a target area of the initial point cloud data, wherein the target area includes each point cloud in the initial point cloud data.
  • the processing unit 802 is further configured to perform grid division on the target area to obtain a plurality of grids, wherein the feature data of the point cloud in each grid satisfies the feature distribution condition, and the feature data is used to represent the point cloud.
  • the processing unit 802 divides the target area into grids, including: dividing the target area into multiple grids according to a set grid size; The grids that meet the conditions are not divided; perform the following steps for each grid that satisfies the dividing conditions: divide the target grid into multiple grids, and the target grid is each grid that meets the dividing conditions; wherein , and the division condition is that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
  • the processing unit 802 determines whether the feature data of point clouds in the grid satisfies the feature distribution condition according to the following manner: calculating the first target parameter according to the feature data of all point clouds in the grid ; If it is determined that the first target parameter is not greater than the set threshold, then it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition, otherwise, it is determined that the feature data of the point cloud in the grid does not meet the requirements Describe the characteristic distribution conditions.
  • the processing unit 802 is further configured to: adopt a random sampling consensus algorithm to analyze the data contained in the target point cloud data Perform plane fitting on the point cloud to obtain at least one fitting plane; in the at least one fitting plane, determine the first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value; If there is a second target fitting plane that satisfies the setting condition in the at least one fitting plane, then perform voxel filtering on the point cloud data included in the second target fitting plane; wherein, the setting condition includes: vertical In the first target fitting plane, the length along the target direction is greater than the set length value, and the number of point clouds in the plane is greater than the set value.
  • the processing unit 802 before determining the target area of the initial point cloud data, is further configured to: filter the initial point cloud data to remove the distances in the initial point cloud data group point.
  • the processing unit 802 is further configured to: The target parameters are adjusted to the average of the second target parameters of all point clouds contained in the grid.
  • the target point cloud of each grid is the centroid point in the point cloud contained in each grid.
  • the data processing apparatus 800 may further include a storage unit 803 for storing program codes and data of the data processing apparatus 800 .
  • the processing unit 802 may be a processor or a controller, for example, a general-purpose central processing unit (CPU), a general-purpose processor, a digital signal processing (DSP), an application-specific integrated circuit (application). specific integrated circuits, ASIC), field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logical blocks, modules, etc. described in connection with this disclosure.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
  • the storage unit 803 may be a memory.
  • the acquiring unit 801 may be an interface circuit of the data processing device, and is used for receiving data from other devices, for example, receiving initial point cloud data sent by a point cloud data acquisition device.
  • the transceiver unit 801 may be an interface circuit used by the chip to receive data from or send data to other chips or devices.
  • the division of units in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit. In the device, it can also exist physically alone, or two or more units can be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the software or firmware includes, but is not limited to, computer program instructions or code, and can be executed by a hardware processor.
  • the hardware includes, but is not limited to, various types of integrated circuits, such as a central processing unit (CPU), a digital signal processor (DSP), a field programmable gate array (FPGA), or an application specific integrated circuit (ASIC).
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • the embodiments of the present application further provide a data processing apparatus for implementing the point cloud data processing method provided by the embodiments of the present application.
  • the data processing apparatus 900 may include: one or more processors 901, a memory 902, and one or more computer programs (not shown in the figure).
  • the above devices may be coupled through one or more communication lines 903 .
  • One or more computer programs are stored in the memory 902, and the one or more computer programs include instructions; the processor 901 invokes the instructions stored in the memory 902, so that the data processing apparatus 900 executes the instructions provided by the embodiments of the present application.
  • Point cloud data processing methods are stored in the memory 902, and the one or more computer programs include instructions; the processor 901 invokes the instructions stored in the memory 902, so that the data processing apparatus 900 executes the instructions provided by the embodiments of the present application.
  • the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous DRAM
  • SDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • the data processing apparatus 900 may further include a communication interface 904 for communicating with other apparatuses through a transmission medium.
  • the The data processing apparatus 900 may communicate with the apparatus for collecting initial point cloud data through the communication interface 904, so as to receive the initial point cloud data collected by the apparatus.
  • the communication interface may be a transceiver, a circuit, a bus, a module, or other types of communication interfaces.
  • the transceiver when the communication interface is a transceiver, the transceiver may include an independent receiver and an independent transmitter; it may also be a transceiver integrating a transceiver function, or an interface circuit.
  • the processor 901, the memory 902 and the communication interface 904 may be connected to each other through a communication line 903;
  • the communication line 903 may be a Peripheral Component Interconnect (PCI for short) bus or an extension Industry standard structure (Extended Industry Standard Architecture, referred to as EISA) bus and so on.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication line 903 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
  • the methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server or data center by means of wired (such as coaxial cable, optical fiber, digital subscriber line, DSL for short) or wireless (such as infrared, wireless, microwave, etc.)
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media.
  • the available media can be magnetic media (eg, floppy disks, hard disks, magnetic tape), optical media (eg, digital video disc (DVD) for short), or semiconductor media (eg, SSD), and the like.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
  • the disclosed apparatus and method may be implemented in other manners without exceeding the scope of the present application.
  • the above-described embodiments are only illustrative.
  • the division of the modules or units is only a logical function division.
  • multiple units or components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units .
  • Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

Abstract

The present application provides a point cloud data processing method and device. The method comprises: obtaining initial point cloud data, and determining a target area of the initial point cloud data, wherein the target area comprises all point clouds in the initial point cloud data; performing grid division on the target area to obtain multiple grids, wherein feature data of each point cloud in each grid satisfies a feature distribution condition, and the feature data is used for representing the spatial geometric relationship between the point cloud and neighboring points of the point cloud; selecting a target point cloud of each grid from the point clouds comprised in each grid, and deleting the point clouds except the target point cloud in each grid; and obtaining target point cloud data according to the target point cloud of each grid. According to the point cloud data processing method provided by the present application, firstly, point cloud data is subjected to grid division according to the geometric distribution features of point clouds, and then a target point cloud of each grid is used as a representative point of the grid, so that when the point clouds are compressed, damage to the shape features of the point clouds can be reduced, and the compression effect of the point cloud data is improved.

Description

一种点云数据处理方法及装置Method and device for processing point cloud data
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2020年12月29日提交中国专利局、申请号为202011588423.1、申请名称为“一种点云数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011588423.1 and the application title "a point cloud data processing method and device", which was submitted to the China Patent Office on December 29, 2020, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请涉及数据处理技术领域,尤其涉及一种点云数据处理方法及装置。The present application relates to the technical field of data processing, and in particular, to a method and device for processing point cloud data.
背景技术Background technique
三维(3-dimension,3D)点云(point cloud)数据是自动驾驶和高精地图制作等各种场景中需要采集的重要数据。目前3D点云数据一般通过高精度激光雷达采集,一帧包含3D点云数据的文件的大小在1.8兆(megabyte,MB)左右,采集十分钟左右的3D点云数据会得到10千兆(gigabyte,GB)大小的文件。因此,现有方法采集的3D点云数据的数据量很大,会占用很高的内存空间和磁盘空间,并且在实时播放3D点云过程中的数据计算量也很大。因此需要对采集的3D点云数据进行压缩处理。Three-dimensional (3-dimension, 3D) point cloud data is important data to be collected in various scenarios such as autonomous driving and high-precision map production. At present, 3D point cloud data is generally collected by high-precision laser radar. The size of a file containing 3D point cloud data is about 1.8 megabytes (MB), and the 3D point cloud data collected for about ten minutes will get 10 gigabytes (gigabytes). , GB) size file. Therefore, the 3D point cloud data collected by the existing method has a large amount of data, which will occupy a large amount of memory space and disk space, and the data calculation amount in the process of playing the 3D point cloud in real time is also large. Therefore, it is necessary to compress the collected 3D point cloud data.
目前常用的3D点云压缩方法为等比例体素滤波法,该方法通过对采集的3D点云数据进行滤波来减少点云数量,从而实现点云压缩。但是该方法对点云结构的破坏较大,压缩后的点云数据与原点云数据的形状偏差较大,因此点云压缩效果较差。At present, the commonly used 3D point cloud compression method is the proportional voxel filtering method, which reduces the number of point clouds by filtering the collected 3D point cloud data, thereby realizing point cloud compression. However, this method damages the point cloud structure greatly, and the shape deviation between the compressed point cloud data and the original point cloud data is large, so the point cloud compression effect is poor.
发明内容SUMMARY OF THE INVENTION
本申请提供一种点云数据处理方法及装置,用以在进行点云压缩时,降低对点云数据的形状特征的破坏,提高点云压缩效果。The present application provides a point cloud data processing method and device, which are used to reduce the damage to the shape features of the point cloud data and improve the point cloud compression effect during point cloud compression.
第一方面,本申请提供一种点云数据处理方法,该方法包括:获取初始点云数据,并确定所述初始点云数据的目标区域,其中,所述目标区域包含所述初始点云数据中每个点云;对所述目标区域进行栅格划分,得到多个栅格,其中,每个栅格中点云的特征数据满足特征分布条件,所述特征数据用于表示点云与所述点云的邻域点之间的空间几何关系;在每个栅格包含的点云中选择每个栅格的目标点云,并删除每个栅格中除目标点云以外的其它点云;根据每个栅格的目标点云,得到目标点云数据。In a first aspect, the present application provides a point cloud data processing method, the method includes: acquiring initial point cloud data, and determining a target area of the initial point cloud data, wherein the target area includes the initial point cloud data Each point cloud in the grid; the target area is divided into grids to obtain multiple grids, wherein the feature data of the point cloud in each grid satisfies the feature distribution condition, and the feature data is used to represent the point cloud and all the grids. Describe the spatial geometric relationship between the neighboring points of the point cloud; select the target point cloud of each grid from the point clouds contained in each grid, and delete other point clouds except the target point cloud in each grid ; According to the target point cloud of each grid, get the target point cloud data.
在该方法中,通过对点云数据的目标区域进行栅格划分,再利用每个栅格中的目标点云代替该栅格中所有点云,能够有效减少点云数量,实现点云压缩。同时,划分的栅格中点云的空间几何特征需满足特征分布条件,即该方法中划分栅格时是以点云的几何分布特征为依据的,这样可以保证在进行点云压缩的同时,避免对点云的几何分布特征造成较大破坏,从而降低对点云数据的形状特征的破坏,提高点云压缩效果。此外,上述点云的几何分布特征是一种姿态不变的局部特征,因此可以在进行栅格划分时保证点云的旋转平移不变性,提高稳定性,进而降低点云数据处理的误差。In this method, the target area of the point cloud data is divided into grids, and then the target point cloud in each grid is used to replace all point clouds in the grid, which can effectively reduce the number of point clouds and realize point cloud compression. At the same time, the spatial geometric characteristics of the point cloud in the divided grid must meet the characteristic distribution conditions, that is, the grid division in this method is based on the geometric distribution characteristics of the point cloud, which can ensure that while compressing the point cloud, It avoids major damage to the geometric distribution characteristics of the point cloud, thereby reducing the damage to the shape characteristics of the point cloud data and improving the point cloud compression effect. In addition, the geometric distribution feature of the above point cloud is a local feature with invariant attitude, so the rotation and translation invariance of the point cloud can be guaranteed during grid division, the stability is improved, and the error of point cloud data processing can be reduced.
在一种可能的设计中,所述对所述目标区域进行栅格划分,包括:按照设定栅格大小, 将所述目标区域划分为多个栅格;对每个不满足划分条件的栅格,不进行划分处理;对每个满足划分条件的栅格执行以下步骤:将目标栅格划分为多个栅格,所述目标栅格为每个满足划分条件的栅格;其中,所述划分条件为栅格中点云的特征数据不满足所述特征分布条件。In a possible design, the dividing the target area into grids includes: dividing the target area into multiple grids according to a set grid size; dividing each grid that does not meet the dividing conditions The following steps are performed on each grid that satisfies the dividing conditions: the target grid is divided into multiple grids, and the target grid is each grid that meets the dividing conditions; wherein, the The division condition is that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
在该方法中,在划分栅格时,通过设定划分条件,能够选择性的对栅格进行划分,最终实现非均匀栅格划分,而通过非均匀栅格划分,能够对点云数据中的点云进行选择性精简,进而减少对某些特征明显的点云的消除,降低对点云数据的形状特征的破坏。In this method, when dividing the grid, by setting the dividing conditions, the grid can be selectively divided, and finally non-uniform grid division can be realized. The point cloud is selectively simplified, thereby reducing the elimination of some point clouds with obvious features and reducing the damage to the shape features of the point cloud data.
在一种可能的设计中,根据下列方式确定栅格中点云的特征数据是否满足所述特征分布条件:根据所述栅格中所有点云的特征数据计算第一目标参数;若确定所述第一目标参数不大于设定阈值,则确定所述栅格中点云的特征数据满足所述特征分布条件,否则,确定所述栅格中点云的特征数据不满足所述特征分布条件。In a possible design, whether the feature data of the point cloud in the grid satisfies the feature distribution condition is determined according to the following methods: calculating the first target parameter according to the feature data of all point clouds in the grid; if it is determined that the If the first target parameter is not greater than the set threshold, it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition; otherwise, it is determined that the feature data of the point cloud in the grid does not meet the feature distribution condition.
在该方法中,通过根据提取的点云的特征数据,确定反映栅格中点云的几何分布特征的相关参数,能够根据该相关参数快速确定划分得到的栅格是否满足要求,进而可以确定是否对栅格进行进一步划分。In this method, by determining the relevant parameters reflecting the geometric distribution characteristics of the point cloud in the grid according to the feature data of the extracted point cloud, it is possible to quickly determine whether the divided grid meets the requirements according to the relevant parameters, and then it can be determined whether The grid is further divided.
在一种可能的设计中,在根据每个栅格的目标点云,得到目标点云数据之后,所述方法还包括:采用随机抽样一致算法,对所述目标点云数据包含的点云进行平面拟合,得到至少一个拟合平面;在所述至少一个拟合平面中,确定与目标坐标系中目标平面的距离低于设定距离值的第一目标拟合平面;若所述至少一个拟合平面中存在满足设定条件的第二目标拟合平面,则对所述第二目标拟合平面包含的点云数据进行体素滤波;其中,所述设定条件包括:垂直于所述第一目标拟合平面,沿目标方向的长度大于设定长度值,且位于平面中的点云的数量大于设定数值。In a possible design, after obtaining the target point cloud data according to the target point cloud of each grid, the method further includes: adopting a random sampling consensus algorithm to perform a random sampling on the point cloud included in the target point cloud data. Plane fitting to obtain at least one fitting plane; in the at least one fitting plane, determine a first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value; if the at least one fitting plane is If there is a second target fitting plane that satisfies the setting condition in the fitting plane, then perform voxel filtering on the point cloud data included in the second target fitting plane; wherein the setting condition includes: perpendicular to the For the first target fitting plane, the length along the target direction is greater than the set length value, and the number of point clouds located in the plane is greater than the set value.
在该方法中,去除初始点云数据中一部分点云得到目标点云数据后,进一步在目标点云数据中选择一些点云数较多的平面,对选择出来的平面进行滤波,其中,平面中的点云一般分布特征较为平滑,因此去除其中一些冗余点后也不会对点云数据的形状特征造成很大破坏,同时还能进一步对点云数据进行精简,降低点云数据文件的大小。In this method, after removing some point clouds in the initial point cloud data to obtain the target point cloud data, some planes with more point clouds are further selected in the target point cloud data, and the selected planes are filtered. The general distribution characteristics of the point cloud are relatively smooth, so removing some of the redundant points will not cause great damage to the shape characteristics of the point cloud data, and at the same time, it can further simplify the point cloud data and reduce the size of the point cloud data file. .
在一种可能的设计中,在确定所述初始点云数据的目标区域之前,所述方法还包括:对所述初始点云数据进行滤波,去除所述初始点云数据中的离群点。In a possible design, before determining the target area of the initial point cloud data, the method further includes: filtering the initial point cloud data to remove outliers in the initial point cloud data.
在该方法中,初始采集的点云数据一般包含一定量的噪声点和测量误差点,这些离群点的存在会影响初始点云数据中点云的局部分布特征,因此,通过去除离群点能够提高点云数据中点云特征提取的准确度,从而提高点云数据处理的准确度。In this method, the initially collected point cloud data generally contains a certain amount of noise points and measurement error points. The existence of these outlier points will affect the local distribution characteristics of the point cloud in the initial point cloud data. Therefore, by removing the outlier points It can improve the accuracy of point cloud feature extraction in point cloud data, thereby improving the accuracy of point cloud data processing.
在一种可能的设计中,在每个栅格包含的点云中选择每个栅格的目标点云之后,所述方法还包括:将每个栅格中目标点云的第二目标参数调整为该栅格包含的所有点云的第二目标参数的平均值。In a possible design, after selecting the target point cloud of each grid from the point clouds contained in each grid, the method further includes: adjusting the second target parameter of the target point cloud in each grid is the average value of the second target parameter for all point clouds contained in this grid.
在该方法中,利用栅格的目标点云作为栅格中所有点云的代表点时,通过将目标点云的相关参数调整为其所在栅格中所有点云相关参数的平均值,能够相对更准确的反映栅格整体的点云参数特征,避免一些极端参数值造成的偏差。In this method, when the target point cloud of the grid is used as the representative point of all point clouds in the grid, by adjusting the relevant parameters of the target point cloud to the average value of all the relevant parameters of the point clouds in the grid where it is located, it is possible to relatively More accurately reflect the overall point cloud parameter characteristics of the grid, and avoid deviations caused by some extreme parameter values.
在一种可能的设计中,所述每个栅格的目标点云为每个栅格包含的点云中的质心点。In a possible design, the target point cloud of each grid is the centroid point in the point cloud contained in each grid.
在该方法中,将栅格中点云的质心点作为栅格的代表点,能够更好保留点云数据中点云的空间布局特征,减小对点云数据的点云分布特征的破坏。In this method, the centroid point of the point cloud in the grid is used as the representative point of the grid, which can better preserve the spatial layout characteristics of the point cloud in the point cloud data and reduce the damage to the point cloud distribution characteristics of the point cloud data.
第二方面,本申请提供一种点云数据处理装置,该装置包括获取单元和处理单元;所 述获取单元用于获取初始点云数据;所述处理单元用于确定所述初始点云数据的目标区域,其中,所述目标区域包含所述初始点云数据中每个点云;所述处理单元还用于对所述目标区域进行栅格划分,得到多个栅格,其中,每个栅格中点云的特征数据满足特征分布条件,所述特征数据用于表示点云与所述点云的邻域点之间的空间几何关系;在每个栅格包含的点云中选择每个栅格的目标点云,并删除每个栅格中除目标点云以外的其它点云;根据每个栅格的目标点云,得到目标点云数据。In a second aspect, the present application provides a point cloud data processing device, the device includes an acquisition unit and a processing unit; the acquisition unit is used to acquire initial point cloud data; the processing unit is used to determine the value of the initial point cloud data a target area, wherein the target area includes each point cloud in the initial point cloud data; the processing unit is further configured to perform grid division on the target area to obtain multiple grids, wherein each grid The feature data of the point cloud in the grid satisfies the feature distribution condition, and the feature data is used to represent the spatial geometric relationship between the point cloud and the neighboring points of the point cloud; select each point cloud contained in each grid. The target point cloud of the grid is deleted, and other point clouds except the target point cloud in each grid are deleted; according to the target point cloud of each grid, the target point cloud data is obtained.
在一种可能的设计中,所述处理单元对所述目标区域进行栅格划分,包括:按照设定栅格大小,将所述目标区域划分为多个栅格;对每个不满足划分条件的栅格,不进行划分处理;对每个满足划分条件的栅格执行以下步骤:将目标栅格划分为多个栅格,所述目标栅格为每个满足划分条件的栅格;其中,所述划分条件为栅格中点云的特征数据不满足所述特征分布条件。In a possible design, the processing unit divides the target area into grids, including: dividing the target area into multiple grids according to a set grid size; The grid is not divided; perform the following steps on each grid that meets the dividing conditions: divide the target grid into multiple grids, and the target grid is each grid that meets the dividing conditions; wherein, The division condition is that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
在一种可能的设计中,所述处理单元根据下列方式确定栅格中点云的特征数据是否满足所述特征分布条件:根据所述栅格中所有点云的特征数据计算第一目标参数;若确定所述第一目标参数不大于设定阈值,则确定所述栅格中点云的特征数据满足所述特征分布条件,否则,确定所述栅格中点云的特征数据不满足所述特征分布条件。In a possible design, the processing unit determines whether the feature data of the point cloud in the grid satisfies the feature distribution condition according to the following manner: calculating the first target parameter according to the feature data of all point clouds in the grid; If it is determined that the first target parameter is not greater than the set threshold, it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition; otherwise, it is determined that the feature data of the point cloud in the grid does not satisfy the feature distribution condition. Feature distribution conditions.
在一种可能的设计中,所述处理单元在根据每个栅格的目标点云,得到目标点云数据之后,还用于:采用随机抽样一致算法,对所述目标点云数据包含的点云进行平面拟合,得到至少一个拟合平面;在所述至少一个拟合平面中,确定与目标坐标系中目标平面的距离低于设定距离值的第一目标拟合平面;若所述至少一个拟合平面中存在满足设定条件的第二目标拟合平面,则对所述第二目标拟合平面包含的点云数据进行体素滤波;其中,所述设定条件包括:垂直于所述第一目标拟合平面,沿目标方向的长度大于设定长度值,且位于平面中的点云的数量大于设定数值。In a possible design, after obtaining the target point cloud data according to the target point cloud of each grid, the processing unit is further configured to: adopt a random sampling consensus algorithm to analyze the points included in the target point cloud data Perform plane fitting on the cloud to obtain at least one fitting plane; in the at least one fitting plane, determine the first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value; if the If there is a second target fitting plane that satisfies the setting condition in at least one fitting plane, then perform voxel filtering on the point cloud data included in the second target fitting plane; wherein, the setting condition includes: perpendicular to the The length of the first target fitting plane along the target direction is greater than the set length value, and the number of point clouds located in the plane is greater than the set value.
在一种可能的设计中,所述处理单元在确定所述初始点云数据的目标区域之前,还用于:对所述初始点云数据进行滤波,去除所述初始点云数据中的离群点。In a possible design, before determining the target area of the initial point cloud data, the processing unit is further configured to: filter the initial point cloud data to remove outliers in the initial point cloud data point.
在一种可能的设计中,所述处理单元在每个栅格包含的点云中选择每个栅格的目标点云之后,还用于:将每个栅格中目标点云的第二目标参数调整为该栅格包含的所有点云的第二目标参数的平均值。In a possible design, after the processing unit selects the target point cloud of each grid from the point clouds contained in each grid, the processing unit is further configured to: convert the second target of the target point cloud in each grid The parameter is adjusted to the average value of the second target parameter of all point clouds contained in this grid.
在一种可能的设计中,所述每个栅格的目标点云为每个栅格包含的点云中的质心点。In a possible design, the target point cloud of each grid is the centroid point in the point cloud contained in each grid.
第三方面,本申请提供一种点云数据处理装置,包括存储器和处理器;所述存储器用于存储计算机程序;所述处理器用于执行所述存储器中存储的计算程序,实现上述第一方面或第一方面的任一可能的设计所描述的方法。In a third aspect, the present application provides a point cloud data processing device, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the calculation program stored in the memory, so as to realize the above-mentioned first aspect or the method described in any possible design of the first aspect.
第四方面,本申请提供一种点云数据处理装置,包括至少一个处理器和接口;所述接口,用于为所述至少一个处理器提供程序指令或者数据;所述至少一个处理器用于执行所述程序指令,实现上述第一方面或第一方面的任一可能的设计所描述的方法。In a fourth aspect, the present application provides a point cloud data processing device, including at least one processor and an interface; the interface is used to provide program instructions or data for the at least one processor; the at least one processor is used to execute The program instructions implement the method described in the first aspect or any possible design of the first aspect.
第五方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在数据处理装置上运行时,使得所述数据处理装置执行上述第一方面或第一方面的任一可能的设计所描述的方法。In a fifth aspect, the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed on a data processing apparatus, the data processing apparatus is made to execute the above-mentioned first The method described in the aspect or any possible design of the first aspect.
第六方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,当所述计算机程序或指令被数据处理装置执行时,实现上述第一方面或第一方面的任一可能的设计所描述的方法。In a sixth aspect, the present application provides a computer program product, the computer program product includes a computer program or an instruction, when the computer program or instruction is executed by a data processing apparatus, realizes the first aspect or any one of the first aspects. possible designs of the method described.
第七方面,本申请提供一种芯片系统,该芯片系统包括至少一个处理器和接口,所述接口用于为所述至少一个处理器提供程序指令或者数据,所述至少一个处理器用于执行所述程序指令,实现上述第一方面或第一方面的任一可能的设计所描述的方法。In a seventh aspect, the present application provides a chip system, the chip system includes at least one processor and an interface, the interface is used to provide program instructions or data for the at least one processor, and the at least one processor is used to execute all the The program instructions are used to implement the method described in the first aspect or any possible design of the first aspect.
在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于存储程序指令和数据。In a possible design, the chip system further includes a memory for storing program instructions and data.
在一种可能的设计中,所述芯片系统由芯片构成,或者包括芯片和其他分立器件。In one possible design, the chip system consists of chips, or includes chips and other discrete devices.
上述第二方面到第七方面的有益效果,请参见上述第一方面的有益效果的描述,这里不再重复赘述。For the beneficial effects of the second aspect to the seventh aspect, please refer to the description of the beneficial effects of the first aspect, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种点云数据处理方法适用的一种可能的应用场景示意图;1 is a schematic diagram of a possible application scenario to which a point cloud data processing method provided by an embodiment of the present application is applicable;
图2为本申请实施例提供的一种点云数据处理方法的示意图;2 is a schematic diagram of a point cloud data processing method provided by an embodiment of the present application;
图3为本申请实施例提供的一种拟合平面处理方法的示意图;3 is a schematic diagram of a fitting plane processing method provided by an embodiment of the present application;
图4为本申请实施例提供的一种点云栅格划分方法的示意图;4 is a schematic diagram of a method for dividing a point cloud grid according to an embodiment of the present application;
图5为本申请实施例提供的一种点云数据处理前后的对比示意图;5 is a schematic diagram of comparison before and after point cloud data processing provided by an embodiment of the present application;
图6a为本申请实施例提供的一种限制点云显示范围的方法示意图;6a is a schematic diagram of a method for limiting the display range of a point cloud provided by an embodiment of the present application;
图6b为本申请实施例提供的另一种限制点云显示范围的方法示意图;6b is a schematic diagram of another method for limiting the display range of a point cloud provided by an embodiment of the present application;
图7a为本申请实施例提供的一种原始点云数据的示意图;FIG. 7a is a schematic diagram of original point cloud data provided by an embodiment of the present application;
图7b为本申请实施例提供的一种处理后的点云数据的示意图;7b is a schematic diagram of a processed point cloud data provided by an embodiment of the present application;
图8为本申请实施例提供的一种数据处理装置的示意图;FIG. 8 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
图9为本申请实施例提供的一种数据处理装置的示意图。FIG. 9 is a schematic diagram of a data processing apparatus according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。其中,在本申请实施例的描述中,以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings. Among them, in the description of the embodiments of the present application, the terms "first" and "second" are only used for description purposes, and should not be understood as indicating or implying relative importance or indicating the number of technical features indicated. . Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature.
为了便于理解,示例性的给出了与本申请相关概念的说明以供参考。For ease of understanding, descriptions of concepts related to the present application are exemplarily given for reference.
1)、点云数据:通过测量设备测量得到的物体外观表面上的点数据集合可称之为点云数据。点云数据是在获取物体表面每个采样点的空间坐标后得到的一个点的集合,也称为目标对象表面特性的海量点集合。1) Point cloud data: The set of point data on the surface of an object measured by measuring equipment can be called point cloud data. Point cloud data is a collection of points obtained after obtaining the spatial coordinates of each sampling point on the surface of the object, also known as the mass point collection of the surface characteristics of the target object.
基于激光测量原理测量到的点云数据(也可以称为激光点云数据)包括三维坐标和激光反射强度(intensity)等信息。基于摄影测量原理得到的点云数据包括三维坐标和颜色等信息,其中,颜色信息可以为红绿蓝(red、green、blue,RGB)格式的颜色数据。结合激光测量原理和摄影测量原理得到点云数据包括三维坐标、激光反射强度和颜色等信息。The point cloud data (also referred to as laser point cloud data) measured based on the principle of laser measurement includes information such as three-dimensional coordinates and laser reflection intensity. The point cloud data obtained based on the principle of photogrammetry includes information such as three-dimensional coordinates and color, wherein the color information may be color data in red, green, blue, RGB format. Combining the principles of laser measurement and photogrammetry, point cloud data including three-dimensional coordinates, laser reflection intensity and color information are obtained.
2)、点特征直方图(point feature histograms,PFH):点特征直方图是一种姿态不变的局部特征,是基于点云数据包含的点云与其邻域点之间的关系以及它们的估计法线来描述局部点云数据的几何特征的。PFH通过参数化查询点云与邻域点之间的空间差异,并形成 一个多维直方图对点云的邻域几何属性进行描述。直方图所在的高维超空间为特征表示提供了一个可度量的信息空间,对点云对应曲面的6维姿态来说具有不变性,并且在不同的采样密度或邻域的噪音等级下具有鲁棒性。快速点特征直方图(fast point feature histograms,FPFH)是PFH计算方式的简化形式。2), point feature histograms (point feature histograms, PFH): The point feature histogram is a local feature with invariant attitude, which is based on the relationship between the point cloud contained in the point cloud data and its neighboring points and their estimation. Normals are used to describe the geometric features of local point cloud data. PFH uses parameterization to query the spatial difference between the point cloud and the neighboring points, and forms a multi-dimensional histogram to describe the neighborhood geometric properties of the point cloud. The high-dimensional hyperspace in which the histogram resides provides a measurable information space for feature representation, is invariant to the 6-dimensional pose of the surface corresponding to the point cloud, and is robust to different sampling densities or noise levels in the neighborhood . Fast point feature histograms (FPFH) are a simplified form of how PFH is calculated.
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。It should be understood that, in the embodiments of the present application, "at least one" refers to one or more, and "a plurality" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one (item) of the following" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural item (item). For example, at least one (a) of a, b or c may represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c Can be single or multiple.
方法实施例中的具体操作方法也可以应用于装置实施例或系统实施例中。The specific operation methods in the method embodiments may also be applied to the apparatus embodiments or the system embodiments.
3D点云数据是自动驾驶和高精地图制作等各种场景中需要采集的重要数据。例如,在智能驾驶领域,高精度电子地图采集系统或者自动驾驶系统、辅助驾驶系统通常利用雷达采集点云数据,例如,利用激光雷达(light detection and ranging,LiDAR)获取具有反射强度的3D点云数据,进而根据3D点云数据获取对应的环境信息。3D point cloud data is an important data that needs to be collected in various scenarios such as autonomous driving and high-precision map production. For example, in the field of intelligent driving, high-precision electronic map acquisition systems or automatic driving systems and assisted driving systems usually use radar to collect point cloud data, for example, use LiDAR (light detection and ranging, LiDAR) to obtain 3D point clouds with reflection intensity data, and then obtain the corresponding environmental information according to the 3D point cloud data.
激光雷达是以发射激光束探测目标的位置、速度等特征量的雷达系统,其工作原理是向目标发射探测信号如激光束,然后将接收到的从目标反射回来的信号如目标回波与发射信号进行比较,作适当处理后获得目标的有关信息,如目标的距离、方位、高度、速度、姿态、甚至形状等参数。若通过激光雷达将激光束按照某种轨迹进行扫描,便会边扫描边记录到反射的激光点信息,由于扫描极为精细,因而扫描过程中能够得到大量的激光点,进而形成点云数据。Lidar is a radar system that emits a laser beam to detect the position, speed and other characteristic quantities of a target. Its working principle is to transmit a detection signal such as a laser beam to the target, and then receive the signal reflected from the target, such as target echo and emission. Signals are compared, and relevant information of the target is obtained after appropriate processing, such as the target's distance, orientation, height, speed, attitude, and even shape and other parameters. If the laser beam is scanned according to a certain trajectory by the lidar, the reflected laser point information will be recorded while scanning. Since the scanning is extremely fine, a large number of laser points can be obtained during the scanning process, thereby forming point cloud data.
目前雷达采集的3D点云数据的数据量很大,在存储时需要占用大量的内存和磁盘空间,不利于进行点云数据传输、点云数据播放等处理,因此需要对点云数据进行压缩或精简,从而降低点云数据的数据量。At present, the amount of 3D point cloud data collected by radar is very large, which requires a lot of memory and disk space for storage, which is not conducive to point cloud data transmission, point cloud data playback and other processing. Therefore, it is necessary to compress or compress point cloud data. Streamlined, thereby reducing the data volume of point cloud data.
点云压缩需在精简点云数量、降低点云数据文件大小的同时,保持点云的形状特征。目前通常采用的点云压缩方法为等比例体素滤波法,该方法对点云数据中的点云进行的是均匀化的稀疏,因此容易损失点云的形状或分布特征,导致点云压缩效果较差。Point cloud compression needs to keep the shape characteristics of point clouds while reducing the number of point clouds and reducing the size of point cloud data files. At present, the commonly used point cloud compression method is the proportional voxel filtering method, which homogenizes and sparses the point cloud in the point cloud data, so it is easy to lose the shape or distribution characteristics of the point cloud, resulting in the effect of point cloud compression. poor.
鉴于此,本申请实施例提供一种点云数据处理方法,该方法根据点云特征,选择性的对点云数据进行稀疏精简,能够在压缩点云数据的数据量的同时,降低对点云结构的破坏,进而提高点云压缩效果。In view of this, an embodiment of the present application provides a point cloud data processing method, which selectively sparse and simplifies point cloud data according to point cloud characteristics, which can compress the data volume of point cloud data and reduce the need for point cloud data. The destruction of the structure, thereby improving the point cloud compression effect.
需要说明的是,在本申请实施例中,对点云数据进行压缩可以理解为从采集的点云数据中选择性删除一部分点云,保留其余的另一部分点云,从而减少点云数据包含的点云数量,降低点云数据的文件大小,实现对点云数据的压缩,因此,对点云数据进行压缩也可以理解为对点云数据进行精简处理。It should be noted that, in this embodiment of the present application, compressing point cloud data can be understood as selectively deleting a part of the point cloud data from the collected point cloud data and retaining the other part of the point cloud, thereby reducing the amount of data contained in the point cloud data. The number of point clouds reduces the file size of point cloud data and realizes compression of point cloud data. Therefore, compressing point cloud data can also be understood as streamlining the point cloud data.
本申请实施例提供的点云数据处理方法可以对雷达采集的点云数据进行压缩处理,该方法可以应用于具有数据处理能力的数据处理装置中,数据处理装置可以为具有数据处理功能的车辆,或者车辆中具有数据处理功能的车载设备,或者设置在具有采集及处理点云数据的功能的传感器中。车载设备可以包括但不限于车载终端、车载控制器、车载模块、 车载模组、车载部件、车载芯片、车载单元、车载雷达等装置。数据处理装置还可以是其它具有数据处理功能的电子设备,电子设备包括但不限于智能家居设备(例如电视等)、智能机器人、移动终端(例如手机、平板电脑等)、可穿戴设备(例如智能手表等)等智能设备。数据处理装置也可以是智能设备内的控制器、芯片、雷达等其它器件。The point cloud data processing method provided in the embodiment of the present application can compress the point cloud data collected by the radar, and the method can be applied to a data processing device with data processing capability, and the data processing device can be a vehicle with data processing function, Or the on-board equipment with data processing function in the vehicle, or set in the sensor with the function of collecting and processing point cloud data. Vehicle-mounted devices may include, but are not limited to, vehicle-mounted terminals, vehicle-mounted controllers, vehicle-mounted modules, vehicle-mounted modules, vehicle-mounted components, vehicle-mounted chips, vehicle-mounted units, vehicle-mounted radars, and other devices. The data processing device may also be other electronic devices with data processing functions, including but not limited to smart home devices (such as TVs, etc.), smart robots, mobile terminals (such as mobile phones, tablet computers, etc.), wearable devices (such as smart Watches, etc.) and other smart devices. The data processing device may also be a controller, a chip, a radar and other devices in the smart device.
下面结合附图,对本申请实施例提供的点云数据处理方法进行详细描述,可以理解的是,以下所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。The method for processing point cloud data provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It can be understood that the embodiments described below are only a part of the embodiments of the present application, rather than all the embodiments.
图1为本申请实施例提供的一种点云数据处理方法适用的一种可能的应用场景示意图。如图1所示,本申请实施例提供的点云数据处理方法的应用场景可以为辅助驾驶场景,该场景下,车辆处于某一自然环境中,如车辆行驶在一条道路上,且车辆上设置有雷达,雷达可以对周围环境进行测量,以获得车辆周围环境的点云数据。FIG. 1 is a schematic diagram of a possible application scenario to which a point cloud data processing method provided by an embodiment of the present application is applicable. As shown in FIG. 1 , the application scenario of the point cloud data processing method provided by the embodiment of the present application may be an assisted driving scenario. In this scenario, the vehicle is in a certain natural environment, for example, the vehicle is driving on a road, and the setting on the vehicle is There is radar, which can take measurements of the surrounding environment to obtain point cloud data of the surrounding environment of the vehicle.
雷达可以将采集到的点云数据发送到所在的车辆或车辆上的车载装置,以使车辆或车载装置对采集到的点云数据执行本申请实施例提供的点云数据处理方法;或者,雷达对获得的点云数据执行本申请实施例提供的点云数据处理方法,并将处理后的点云数据发送到车辆或车辆上的车载装置,从而使车辆或车载装置对处理后的点云数据进行后续操作,如播放点云数据等。The radar can send the collected point cloud data to the vehicle where it is located or the vehicle-mounted device on the vehicle, so that the vehicle or the vehicle-mounted device can perform the point cloud data processing method provided in the embodiment of the present application on the collected point cloud data; or, the radar Execute the point cloud data processing method provided by the embodiment of the present application on the obtained point cloud data, and send the processed point cloud data to the vehicle or the vehicle-mounted device on the vehicle, so that the vehicle or the vehicle-mounted device can process the processed point cloud data. Perform subsequent operations, such as playing point cloud data, etc.
图1中,雷达只是一种示例的能够采集点云数据的装置,本申请实施例中采集点云数据的装置不仅限于雷达,还可以是其它任何能够采集点云数据的装置,例如还可以是摄像机等装置,本申请实施例对此不做限定。雷达在车辆上的位置也只是示例,雷达在车辆上的具体位置不限于此。In FIG. 1 , the radar is just an example of a device that can collect point cloud data. The device that collects point cloud data in this embodiment of the present application is not limited to radar, but can also be any other device that can collect point cloud data. For example, it can also be A device such as a camera is not limited in this embodiment of the present application. The position of the radar on the vehicle is just an example, and the specific position of the radar on the vehicle is not limited thereto.
当然图1只是一种示例,本申请实施例的应用场景不限于此。例如执行本申请实施例所提供的点云数据处理方法应用的数据处理装置也可能不是雷达而是其它的设备,且该装置也可能不设置在车辆上,而是设置在其它设备上,或者该装置也可以单独设置。Of course, FIG. 1 is just an example, and the application scenarios of the embodiments of the present application are not limited thereto. For example, the data processing device used to execute the point cloud data processing method provided by the embodiments of the present application may not be a radar but other equipment, and the device may not be installed on the vehicle, but may be installed on other equipment, or the Devices can also be set individually.
下面结合具体实施例,对本申请提供的点云数据处理方法进行详细介绍。The method for processing point cloud data provided by the present application will be described in detail below with reference to specific embodiments.
图2为本申请实施例提供的一种点云数据处理方法的示意图。FIG. 2 is a schematic diagram of a point cloud data processing method provided by an embodiment of the present application.
为了便于介绍,在下文中,以本申请提供的点云数据处理方法由数据处理装置执行为例进行说明。数据处理装置可以但不限于为本申请实施例提供的具有数据处理能力的装置,例如可以为图1所示的场景中的雷达、车辆或车载设备,或者其他设备如服务器、云端服务器等。For ease of introduction, hereinafter, the method for processing point cloud data provided by the present application is performed by a data processing apparatus as an example for description. The data processing apparatus may be, but is not limited to, the apparatus with data processing capability provided in this embodiment of the present application, for example, may be a radar, a vehicle, or an in-vehicle device in the scenario shown in FIG.
如图2所示,本申请提供的点云数据处理方法包括:As shown in Figure 2, the point cloud data processing method provided by this application includes:
S201:数据处理装置获取初始点云数据,并确定初始点云数据的目标区域,其中,目标区域包含初始点云数据中每个点云。S201: The data processing apparatus acquires initial point cloud data, and determines a target area of the initial point cloud data, wherein the target area includes each point cloud in the initial point cloud data.
本申请实施例中,以雷达为采集初始点云数据的装置为例进行说明。In the embodiments of the present application, the radar is used as an example for the device for collecting initial point cloud data for description.
雷达采集的初始点云数据中点云的数据至少包括该点云的位置信息,该位置信息可以为点云的三维坐标。点云的数据还可以包括点云的色彩参数如RGB色彩值和反射强度参数。The data of the point cloud in the initial point cloud data collected by the radar includes at least position information of the point cloud, and the position information may be the three-dimensional coordinates of the point cloud. The point cloud data may also include point cloud color parameters such as RGB color values and reflection intensity parameters.
初始点云数据为雷达对所在场景下的环境进行测量得到的。示例性的,该雷达为上述图1所示的雷达时,雷达所在场景为图1所示的车辆行驶在道路中的场景,则雷达对周边环境进行测量和数据采集,得到初始点云数据,并发送给数据处理装置。其中,雷达可以采集包括例如车辆、道路、道路中其它车辆、道路两旁的标志牌、建筑等对象在内的所有 对象的点云数据,或者根据实际需求采集特定对象或特定范围内的点云数据。The initial point cloud data is obtained by the radar measuring the environment in the scene. Exemplarily, when the radar is the radar shown in FIG. 1, and the scene where the radar is located is the scene where the vehicle is driving on the road shown in FIG. 1, the radar measures and collects data on the surrounding environment to obtain initial point cloud data, and sent to the data processing device. Among them, the radar can collect point cloud data of all objects including vehicles, roads, other vehicles on the road, signs on both sides of the road, buildings, etc., or collect point cloud data of specific objects or specific ranges according to actual needs .
在本申请实施例中,初始点云数据的目标区域需包含初始点云数据中的所有点云,该目标区域可以为初始点云数据中所有点云的最小外接区域。其中,该区域的形状可以为任意形状或任意设定的形状,例如可以为长方体、正方体、三棱柱、三棱锥、球体等形状。In this embodiment of the present application, the target area of the initial point cloud data needs to include all the point clouds in the initial point cloud data, and the target area may be the smallest circumscribed area of all the point clouds in the initial point cloud data. Wherein, the shape of the region may be any shape or a shape set arbitrarily, for example, it may be a rectangular parallelepiped, a cube, a triangular prism, a triangular pyramid, a sphere, and the like.
本申请实施例中,以目标区域的形状为长方体为例,对本申请提供的数据处理方法进行介绍说明,目标区域为其它形状时的处理方法可参照目标区域为长方体时采用的处理方法。In the embodiment of the present application, the shape of the target area is a cuboid as an example to introduce and describe the data processing method provided by the present application. For the processing method when the target area is other shapes, refer to the processing method adopted when the target area is a cuboid.
初始点云数据的目标区域的形状为长方体时,该目标区域可以理解为初始点云数据的外接长方体,以下以该外接长方体为能够包含初始点云数据中所有点云的最小外接长方体为例进行说明。When the shape of the target area of the initial point cloud data is a cuboid, the target area can be understood as the circumscribed cuboid of the initial point cloud data. The following takes the circumscribed cuboid as the smallest circumscribed cuboid that can contain all the point clouds in the initial point cloud data as an example. illustrate.
数据处理装置获取雷达采集的初始点云数据后,确定能够包含初始点云数据中所有点云的最小长方体,并将该最小长方体确定为初始点云数据的外接长方体。其中,外接长方体的各个边长均相等时,该外接长方体也可以称为外接立方体。外接长方体(或外接立方体)是围绕正在处理的对象的边框,在本申请中可以理解为是围绕初始点云数据的虚构的外框。After acquiring the initial point cloud data collected by the radar, the data processing device determines the smallest cuboid that can contain all point clouds in the initial point cloud data, and determines the smallest cuboid as the circumscribed cuboid of the initial point cloud data. Wherein, when the lengths of each side of the circumscribed cuboid are equal, the circumscribed cuboid may also be called a circumscribed cube. A circumscribed cuboid (or a circumscribed cube) is a frame surrounding the object being processed, and can be understood as an imaginary frame surrounding the initial point cloud data in this application.
在本申请一些实施例中,数据处理装置获取雷达采集的初始点云数据后,也可以确定能够包含初始点云数据中所有点云的最小立方体,并将该最小立方体确定为初始点云数据的外接立方体,后续对该外接立方体进行下文所述的处理。In some embodiments of the present application, after acquiring the initial point cloud data collected by the radar, the data processing device may also determine the smallest cube that can contain all the point clouds in the initial point cloud data, and determine the smallest cube as the size of the initial point cloud data. The circumscribed cube is subsequently processed as described below.
雷达扫描通常会生成不同点云密度的点云集合,此外,测量中产生的噪声点及由于测量误差产生的稀疏的离群点,会影响点云数据局部特征的分布,进而可能会破坏处理结果。因此,在本申请一些实施例中,数据处理装置在确定初始点云数据的外接长方体之前,可以先对初始点云数据进行滤波处理,通过滤波处理对每个点云的邻域进行一个统计分析,并去除一些不符合标准的点云,从而保证后续处理的准确度。Radar scanning usually generates point cloud sets with different point cloud densities. In addition, the noise points generated in the measurement and the sparse outliers due to measurement errors will affect the distribution of local features of the point cloud data, which may destroy the processing results. . Therefore, in some embodiments of the present application, before determining the circumscribed cuboid of the initial point cloud data, the data processing device may first perform filtering processing on the initial point cloud data, and perform a statistical analysis on the neighborhood of each point cloud through the filtering processing. , and remove some point clouds that do not meet the standard, so as to ensure the accuracy of subsequent processing.
在本申请一些实施例中,数据处理装置可以采用统计离群消除滤波器(statistical outlier removal filter),从初始点云数据包含的点云中,确定并删除离群点。具体实施时,数据处理装置可以设置统计离群消除滤波器的参数为:针对点云的搜索邻域为设定邻域值,参考的标准差倍数为设定倍数值,例如设定邻域值可以为50,标准差倍数可以为1。对于设定的搜索邻域范围内的某一点云,若该点云与该搜索邻域内其余点云的平均距离大于该搜索邻域内点云分布的标准范围,则确定该点云为离群点并从初始点云数据中删除。具体实施时,计算搜索邻域范围内每个点云到它的所有邻域点的平均距离,假设得到的结果是一个高斯分布,其形状由均值和标准差决定,则将对应的平均距离在标准范围之外的点,确定为离群点,其中,标准范围为标准差与设定标准差倍数的乘积对应的范围。In some embodiments of the present application, the data processing apparatus may use a statistical outlier removal filter to determine and delete outlier points from the point cloud included in the initial point cloud data. During specific implementation, the data processing device may set the parameters of the statistical outlier elimination filter as follows: the search neighborhood for the point cloud is the set neighborhood value, and the reference standard deviation multiple is the set multiple value, for example, the set neighborhood value It can be 50, and the standard deviation multiple can be 1. For a certain point cloud within the set search neighborhood, if the average distance between the point cloud and other point clouds in the search neighborhood is greater than the standard range of point cloud distribution in the search neighborhood, the point cloud is determined to be an outlier. and removed from the initial point cloud data. In the specific implementation, calculate the average distance from each point cloud to all its neighbor points in the search neighborhood. Assuming that the obtained result is a Gaussian distribution whose shape is determined by the mean and standard deviation, the corresponding average distance is Points outside the standard range are determined as outliers, where the standard range is the range corresponding to the product of the standard deviation and the multiple of the set standard deviation.
S202:数据处理装置对目标区域进行栅格划分,得到多个栅格,其中,每个栅格中点云的特征数据满足特征分布条件,特征数据用于表示点云与该点云的邻域点之间的空间几何关系。S202: The data processing device divides the target area into grids to obtain a plurality of grids, wherein the feature data of the point cloud in each grid satisfies the feature distribution condition, and the feature data is used to represent the point cloud and the neighborhood of the point cloud Spatial geometric relationship between points.
具体的,数据处理装置对目标区域进行栅格划分时,可以采用如下方式:先按照设定栅格大小,将目标区域划分为多个栅格;在得到的多个栅格中,对每个不满足划分条件的栅格,不进行划分处理;对每个满足划分条件的栅格执行以下步骤:将目标栅格划分为多个栅格,其中,目标栅格为每个满足划分条件的栅格。Specifically, when the data processing apparatus divides the target area into grids, the following methods may be adopted: first, according to the set grid size, the target area is divided into multiple grids; in the obtained multiple grids, for each grid The grids that do not meet the division conditions will not be divided; perform the following steps for each grid that meets the division conditions: divide the target grid into multiple grids, where the target grid is each grid that meets the division conditions grid.
其中,划分条件为栅格中点云的特征数据不满足特征分布条件,数据处理装置通过如 下方式确定栅格中点云的特征数据是否满足特征分布条件:根据栅格中所有点云的特征数据计算第一目标参数;若确定第一目标参数不大于设定阈值,则确定栅格中点云的特征数据满足特征分布条件,否则,确定栅格中点云的特征数据不满足特征分布条件。The division condition is that the characteristic data of the point cloud in the grid does not meet the characteristic distribution condition, and the data processing device determines whether the characteristic data of the point cloud in the grid meets the characteristic distribution condition in the following way: According to the characteristic data of all point clouds in the grid Calculate the first target parameter; if it is determined that the first target parameter is not greater than the set threshold, it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition; otherwise, it is determined that the feature data of the point cloud in the grid does not meet the feature distribution condition.
上述第一目标参数可以为方差参数、标准差参数等,其中,本申请以下实施例中以第一目标参数为方差参数为例进行方案介绍。The above-mentioned first target parameter may be a variance parameter, a standard deviation parameter, etc., wherein, in the following embodiments of the present application, the first target parameter is taken as an example to introduce the solution.
下面进行详细说明。A detailed description will be given below.
上述数据处理装置确定获取的初始点云数据的外接长方体后,按照设定栅格大小,对外接长方体进行均匀划分,将外接长方体划分为多个栅格。其中,设定栅格大小对应栅格的各边长可以相同或不同。After the data processing device determines the circumscribed cuboid of the acquired initial point cloud data, according to the set grid size, the circumscribed cuboid is evenly divided, and the circumscribed cuboid is divided into multiple grids. The length of each side of the grid corresponding to the set grid size may be the same or different.
其中,栅格也可以理解为包含部分点云或不包含点云的虚构的外框。设定栅格的大小为如下任一种:Among them, the grid can also be understood as a fictitious outer frame that contains part of the point cloud or does not contain the point cloud. Set the grid size to one of the following:
1)设定栅格大小为设定的固定大小。1) Set the grid size to the set fixed size.
示例性的,设定栅格大小可以为固定的40×30×20厘米,即设定栅格大小对应的栅格为各边长分别是40、30、20厘米的长方体,则数据处理装置将外接长方体均匀划分为多个尺寸为40×30×20厘米的栅格。Exemplarily, the set grid size may be a fixed 40×30×20 cm, that is, the grid corresponding to the set grid size is a cuboid with side lengths of 40, 30, and 20 cm, respectively, and the data processing device will The circumscribed cuboid is evenly divided into multiple grids with a size of 40×30×20 cm.
2)设定栅格大小为根据外接长方体的尺寸确定的大小。2) Set the grid size to the size determined according to the size of the circumscribed cuboid.
示例性的,可以将外接长方体各个边长与设定系数的乘积分别确定为设定栅格大小对应的各栅格边长,设定系数大于0且不大于1。Exemplarily, the product of each side length of the circumscribed cuboid and the set coefficient may be respectively determined as the grid side length corresponding to the set grid size, and the set coefficient is greater than 0 and not greater than 1.
例如,若设定系数取值为0.1%,当数据处理装置确定的外接长方体的尺寸为100×80×40米时,设定栅格大小对应的各栅格边长分别为100×0.1%=0.1米、80×0.1%=0.08米、40×0.1%=0.04米,即设定栅格大小为10×8×4厘米,则数据处理装置将外接长方体均匀划分为多个大小为10×8×4厘米的栅格;又例如,当数据处理装置确定的外接长方体的各个边长均为50米,即外接长方体同时是立方体时,设定栅格大小为5×5×5厘米。For example, if the set coefficient is 0.1%, when the size of the circumscribed cuboid determined by the data processing device is 100×80×40 meters, the side lengths of the grids corresponding to the set grid size are respectively 100×0.1%= 0.1m, 80×0.1%=0.08m, 40×0.1%=0.04m, that is, the grid size is set to 10×8×4 cm, then the data processing device divides the circumscribed cuboid into a plurality of 10×8 For example, when the length of each side of the circumscribed cuboid determined by the data processing device is 50 meters, that is, when the circumscribed cuboid is a cube at the same time, the grid size is set to 5×5×5 cm.
在本申请实施例中,栅格也可以称为体素栅格。In this embodiment of the present application, the grid may also be referred to as a voxel grid.
上述数据处理装置对外接长方体进行初步划分后,分别判断划分得到的每个栅格是否满足划分条件,若是,则对该栅格继续进行划分,并对划分后得到的每个栅格,继续判断是否满足划分条件及在满足划分条件时继续进行划分,以此类推,直到划分得到的所有栅格均不满足划分条件时,停止划分栅格。After the above-mentioned data processing device preliminarily divides the circumscribed cuboid, it respectively judges whether each grid obtained by the division satisfies the division conditions, and if so, continues to divide the grid, and continues to judge each grid obtained after division Whether the division conditions are met and continue to divide when the division conditions are met, and so on, until all the divided grids do not meet the division conditions, stop dividing the grid.
具体的,数据处理装置将外接长方体初步划分为多个栅格后,继续执行如下栅格划分步骤:Specifically, after the data processing device preliminarily divides the circumscribed cuboid into a plurality of grids, it continues to perform the following grid division steps:
步骤1:数据处理装置分别将划分得到的多个栅格中的每个栅格作为目标栅格。Step 1: The data processing apparatus takes each grid of the divided grids as a target grid.
步骤2:数据处理装置判断目标栅格是否满足划分条件,若是,执行步骤3,否则,不对目标栅格进行划分。Step 2: The data processing device judges whether the target grid satisfies the division conditions, and if yes, executes Step 3, otherwise, the target grid is not divided.
步骤3:数据处理装置将目标栅格划分为多个栅格,并将划分得到的多个栅格中的每个栅格作为目标栅格,执行步骤2。Step 3: The data processing apparatus divides the target grid into a plurality of grids, and uses each grid of the plurality of grids obtained by division as a target grid, and performs step 2.
点云的局部几何特征包括PFH或FPFH,PFH或FPFH均是一种姿态不变的局部特征,对点云对应曲面的6自由度姿态有特征不变性,且在不同的采样密度或邻域的噪音等级下的特征提取具有鲁棒性。因此,在栅格划分过程中,可以根据栅格中点云的PFH或FPFH特征确定是否进一步划分栅格。The local geometric features of the point cloud include PFH or FPFH. PFH or FPFH is a local feature with invariant attitude, which has feature invariance to the 6-DOF pose of the corresponding surface of the point cloud, and is in different sampling densities or neighborhoods. Feature extraction under noise level is robust. Therefore, in the grid division process, it can be determined whether to further divide the grid according to the PFH or FPFH characteristics of the point cloud in the grid.
具体的,在上述步骤2中,数据处理装置判断目标栅格是否满足划分条件时,首先根 据目标栅格中包含的点云,确定目标栅格中每个点云的特征数据,其中,特征数据用于表示点云与点云的邻域点之间的位置关系;然后,数据处理装置对目标栅格中所有点云的特征数据求方差,并判断得到的方差是否大于设定阈值,若该方差大于设定阈值,则确定目标栅格中点云的特征数据不满足特征分布条件,则目标栅格满足划分条件,否则,确定目标栅格中点云的特征数据满足特征分布条件,则目标栅格不满足划分条件。Specifically, in the above step 2, when judging whether the target grid satisfies the division conditions, the data processing device firstly determines the feature data of each point cloud in the target grid according to the point cloud contained in the target grid, wherein the feature data It is used to represent the positional relationship between the point cloud and the neighboring points of the point cloud; then, the data processing device calculates the variance of the feature data of all point clouds in the target grid, and judges whether the obtained variance is greater than the set threshold, if the If the variance is greater than the set threshold, it is determined that the feature data of the point cloud in the target grid does not meet the feature distribution conditions, then the target grid satisfies the division conditions; otherwise, it is determined that the feature data of the point cloud in the target grid meets the feature distribution conditions, then the target grid The raster does not meet the division criteria.
作为一种可选的实施方式,上述计算的方差为根据目标栅格范围内点云的PFH计算的方差。具体的,上述点云的特征数据包括一个距离参数和三个角度参数,其中,一个距离参数为该点云与其某个邻域点之间的欧式距离,三个角度参数用于表示该点云的法线与其某个邻域点的法线之间的角度偏差。数据处理装置对目标栅格中每个点云,利用该点云与该点云的邻域点组成点对,并计算每组点对对应的距离参数和角度参数,计算完成后得到PFH,并对该PFH包含的特征数据求方差。最后根据求得的方差确定目标栅格是否满足划分条件。As an optional implementation manner, the variance calculated above is the variance calculated according to the PFH of the point cloud within the target grid range. Specifically, the feature data of the above point cloud includes a distance parameter and three angle parameters, wherein one distance parameter is the Euclidean distance between the point cloud and a certain neighborhood point, and the three angle parameters are used to represent the point cloud. The angular deviation between the normal of and the normal of one of its neighbor points. The data processing device uses the point cloud and the neighboring points of the point cloud to form point pairs for each point cloud in the target grid, and calculates the distance parameters and angle parameters corresponding to each group of point pairs. After the calculation is completed, the PFH is obtained, and Find the variance of the feature data contained in the PFH. Finally, it is determined whether the target grid satisfies the division conditions according to the obtained variance.
作为另一种可选的实施方式,上述计算的方差为根据目标栅格范围内点云的FPFH计算的方差。具体的,上述点云的特征数据包括三个角度参数,用于表示该点云的法线与其邻域点的法线之间的角度偏差。数据处理装置对目标栅格中每个点云,分别利用该点云与该点云的邻域点组成点对,并计算每组点对对应的角度参数,计算完成后得到FPFH,并对该FPFH包含的特征数据求方差。最后根据求得的方差确定目标栅格是否满足划分条件。As another optional implementation manner, the variance calculated above is the variance calculated according to the FPFH of the point cloud within the target grid range. Specifically, the feature data of the above point cloud includes three angle parameters, which are used to represent the angle deviation between the normal of the point cloud and the normal of its neighboring points. For each point cloud in the target grid, the data processing device uses the point cloud and the neighboring points of the point cloud to form point pairs, and calculates the angle parameters corresponding to each group of point pairs. After the calculation is completed, the FPFH is obtained. The feature data contained in the FPFH is varianced. Finally, it is determined whether the target grid satisfies the division conditions according to the obtained variance.
上述确定栅格对应的方差后,将该方差与设定阈值进行比较,若该方差小于设定阈值,则说明栅格中点云的PFH或FPFH特征变化较小,则可以不用进一步划分该栅格;若方差大于或等于设定阈值,则说明栅格中点云的PFH或FPFH特征变化剧烈,则可以进一步划分该栅格。After determining the variance corresponding to the grid, compare the variance with the set threshold. If the variance is less than the set threshold, it means that the PFH or FPFH characteristics of the point cloud in the grid change little, and the grid does not need to be further divided. If the variance is greater than or equal to the set threshold, it means that the PFH or FPFH characteristics of the point cloud in the grid change drastically, and the grid can be further divided.
一般点云数据中的点云是三维的,三维点云的数据是非结构化数据,具有稀疏性、无序性、非均匀分布、数量变化大等特点。本实施例上述方法中根据点云与其邻域点组成的点对,确定点云的特征数据,具有一定的抗干扰性,比如抗旋转等,因此能够得到更准确且鲁棒性较强的特征数据。The point cloud in general point cloud data is three-dimensional, and the data of three-dimensional point cloud is unstructured data, which has the characteristics of sparsity, disorder, non-uniform distribution, and large number of changes. In the above method of this embodiment, the feature data of the point cloud is determined according to the point pair formed by the point cloud and its neighboring points, which has a certain anti-interference, such as anti-rotation, etc., so more accurate and robust features can be obtained. data.
在上述步骤3中,作为一种可选的实施方式,数据处理装置将目标栅格划分为多个栅格时,可以将目标栅格的各边长值缩减为原边长值的1/n后,以得到的大小为边长,根据对应的栅格大小对目标栅格进行划分,则可以将目标栅格均匀划分为n 3个栅格,其中,n为不小于2的整数。 In the above step 3, as an optional implementation manner, when the data processing apparatus divides the target grid into multiple grids, the value of each side length of the target grid may be reduced to 1/n of the original side length value Then, taking the obtained size as the side length, and dividing the target grid according to the corresponding grid size, the target grid can be evenly divided into n 3 grids, where n is an integer not less than 2.
例如,目标栅格是边长为40厘米的立方体且n取值为2时,边长值40厘米缩减为原来的1/2后为20厘米,则数据处理装置将目标栅格划分为边长为20厘米的栅格,共得到8个更小的栅格。目标栅格是90×60×30厘米的立方体且n取值为3时,各边长值缩减为原来的1/3后目标栅格大小为30×20×10厘米,则数据处理装置将目标栅格均匀划分为大小为30×20×10厘米的栅格,共得到27个更小的栅格。For example, when the target grid is a cube with a side length of 40 centimeters and n is 2, the side length value of 40 centimeters is reduced to 1/2 of the original value and then becomes 20 centimeters, then the data processing device divides the target grid into side lengths. For a grid of 20 cm, a total of 8 smaller grids are obtained. When the target grid is a 90×60×30 cm cube and the value of n is 3, the size of the target grid is 30×20×10 cm after the value of each side is reduced to 1/3 of the original, then the data processing device will The grid is evenly divided into grids of size 30 × 20 × 10 cm, resulting in a total of 27 smaller grids.
数据处理装置执行完栅格划分步骤并确定划分得到的所有栅格均不满足划分条件时,确定完成栅格划分,并继续执行下述的点云精简处理。When the data processing device finishes performing the grid division step and determines that all grids obtained by division do not meet the division conditions, it determines that the grid division is completed, and continues to perform the point cloud reduction process described below.
S203:数据处理装置在每个栅格包含的点云中选择每个栅格的目标点云,并删除每个栅格中除目标点云以外的其它点云。S203: The data processing apparatus selects the target point cloud of each grid from the point clouds contained in each grid, and deletes other point clouds except the target point cloud in each grid.
数据处理装置划分栅格完成后,就可以对点云数据进行精简。具体的,数据处理装置在每个栅格包含的点云中选择每个栅格的目标点云。After the data processing device divides the grid, the point cloud data can be simplified. Specifically, the data processing apparatus selects the target point cloud of each grid from the point clouds contained in each grid.
在本申请一些实施例中,目标点云为栅格包含的点云中的质心点,其中,该质心点在栅格中的坐标是通过计算该栅格中所有点云坐标的平均值得到的。在本申请一些实施例中,目标点云还可以是栅格包含的点云中的重心点。In some embodiments of the present application, the target point cloud is the centroid point in the point cloud included in the grid, wherein the coordinates of the centroid point in the grid are obtained by calculating the average value of the coordinates of all the point clouds in the grid . In some embodiments of the present application, the target point cloud may also be the center of gravity point in the point cloud included in the grid.
对每个栅格,数据处理装置确定栅格中的目标点云后,删除该栅格中除该目标点云以外的其它点云,仅以该目标点云代替该栅格。同时,还可以将该栅格中目标点云的第二目标参数调整为该栅格包含的所有点云的第二目标参数的平均值,其中,第二目标参数包括点云的色彩参数和/或反射强度参数,该色彩参数可以为RGB色彩值。具体的,数据处理装置可以将该栅格中目标点云的RGB色彩参数调整为该栅格包含的所有点云的红绿蓝色彩参数的平均值;和/或,将该栅格中目标点云的反射强度参数调整为该栅格包含的所有点云的反射强度参数的平均值。For each grid, after determining the target point cloud in the grid, the data processing device deletes other point clouds in the grid except the target point cloud, and only replaces the grid with the target point cloud. At the same time, the second target parameter of the target point cloud in the grid can also be adjusted to the average value of the second target parameters of all point clouds contained in the grid, wherein the second target parameter includes the color parameter of the point cloud and/or Or the reflection intensity parameter, which can be an RGB color value. Specifically, the data processing device may adjust the RGB color parameters of the target point cloud in the grid to the average value of the red, green and blue color parameters of all point clouds contained in the grid; and/or, the target point in the grid The reflection intensity parameter of the cloud is adjusted to the average of the reflection intensity parameters of all point clouds contained in this grid.
S204:数据处理装置根据每个栅格的目标点云,得到目标点云数据。S204: The data processing device obtains target point cloud data according to the target point cloud of each grid.
数据处理装置对每个栅格进行上述处理后,得到保留下来的所有目标点云组成的目标点云数据,该目标点云数据即为对初始点云数据进行精简或压缩后的点云数据。After the data processing device performs the above-mentioned processing on each grid, the target point cloud data composed of all retained target point clouds is obtained, and the target point cloud data is the point cloud data after the initial point cloud data is simplified or compressed.
本申请实施例中,上述精简初始点云数据得到的目标点云数据,也有可能会包含较多特征平滑但冗余的点。以图1中所示场景为例,对雷达采集的初始点云数据进行精简后得到的目标点云数据中,特征平滑但冗余的点体现为车辆周围的路面和建筑平面,其中路面一般含有较多交通标志信息,因此可以保留其点云数据,而不再进行过多处理,但道路两旁建筑平面数据冗余,是可以进一步精简的。因此,在本申请一些实施例中,可以进一步对目标点云数据进行平面拟合降采样,从而去除道路两旁建筑平面冗余点云,进一步减少点云数量。In the embodiment of the present application, the target point cloud data obtained by simplifying the initial point cloud data may also include many points with smooth but redundant features. Taking the scene shown in Figure 1 as an example, in the target point cloud data obtained by simplifying the initial point cloud data collected by the radar, the points with smooth but redundant features are reflected in the road surface and building plane around the vehicle. The road surface generally contains There is more traffic sign information, so its point cloud data can be retained without excessive processing, but the redundant building plane data on both sides of the road can be further simplified. Therefore, in some embodiments of the present application, the target point cloud data may be further downsampled by plane fitting, so as to remove redundant point clouds on the plane of buildings on both sides of the road, and further reduce the number of point clouds.
具体的,数据处理装置得到目标点云数据后,可以采用随机抽样一致算法,对目标点云数据包含的点云进行平面拟合,得到至少一个拟合平面,然后在至少一个拟合平面中,确定与目标坐标系中目标平面的距离低于设定距离值的第一目标拟合平面;若至少一个拟合平面中存在满足设定条件的第二目标拟合平面,则对第二目标拟合平面包含的点云数据进行滤波;其中,设定条件包括:垂直于第一目标拟合平面,沿目标方向的长度大于设定长度值,且位于平面中的点云的数量大于设定数值,目标坐标系为采集初始点云数据的装置所采用的坐标系,该坐标系是以采集初始点云数据的装置(如雷达)的中心为原点的坐标系。Specifically, after the data processing device obtains the target point cloud data, a random sampling consensus algorithm can be used to perform plane fitting on the point cloud included in the target point cloud data to obtain at least one fitted plane, and then in the at least one fitted plane, Determine the first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value; The point cloud data contained in the combined plane is filtered; wherein, the setting conditions include: perpendicular to the first target fitting plane, the length along the target direction is greater than the set length value, and the number of point clouds in the plane is greater than the set value , the target coordinate system is the coordinate system adopted by the device for collecting initial point cloud data, and the coordinate system is a coordinate system with the center of the device (such as radar) collecting initial point cloud data as the origin.
下面进行详细说明。A detailed description will be given below.
数据处理装置可以对目标点云数据包含的点云进行随机抽样一致性(random sample consensus,RANSAC)平面拟合。其中,平面拟合以N个点为拟合条件,确定出包含的点云数量大于N的平面,N为设定的正整数。The data processing device may perform random sample consensus (RANSAC) plane fitting on the point cloud contained in the target point cloud data. Among them, the plane fitting takes N points as the fitting condition, and determines the plane containing the number of point clouds greater than N, where N is a set positive integer.
作为一种可选的实施方式,数据处理装置可以先从目标点云数据中随机选取三个点云,由这三个点云组成一个平面,然后分别计算目标点云数据中其它各点云到该平面的距离,若点云到该平面的距离小于预设距离值,则认为该点云是位于这个平面的点,否则,认为该点云不是位于该平面的点。最后,若确定位于该平面的点云的数量大于N,则将该平面确定为得到的一个拟合平面,并将位于该拟合平面中的所有点云标记为已匹配,然后从未标记为已匹配的点云中继续选取三个点云,基于选取的三个点云确定拟合平面。若确定位于该平面的点云的数量不大于N,则直接从未标记为已匹配的点云中继续选取三个点云,基于选取的三个点云确定拟合平面。数据处理装置以上述方式迭代进行平面拟合至满足终 止条件,得到至少一个拟合平面。终止条件为迭代M次后确定的平面所包含的点云的数量小于N,或者无法找到三个未标记为已匹配的点云。其中,M为设定的迭代次数值,取值为正整数。As an optional implementation manner, the data processing device may first randomly select three point clouds from the target point cloud data, form a plane by these three point clouds, and then calculate the target point cloud data separately from other point clouds to The distance of the plane, if the distance from the point cloud to the plane is less than the preset distance value, the point cloud is considered to be a point located in this plane, otherwise, the point cloud is considered not to be located in the plane. Finally, if it is determined that the number of point clouds located in the plane is greater than N, the plane is determined as a fitting plane obtained, and all point clouds located in the fitting plane are marked as matched, and then never marked as Continue to select three point clouds from the matched point clouds, and determine the fitting plane based on the selected three point clouds. If it is determined that the number of point clouds located on the plane is not greater than N, directly continue to select three point clouds from the point clouds not marked as matched, and determine the fitting plane based on the selected three point clouds. The data processing device iteratively performs plane fitting in the above-mentioned manner until the termination condition is satisfied, and at least one fitted plane is obtained. The termination condition is that the number of point clouds contained in the determined plane after M iterations is less than N, or three point clouds not marked as matched cannot be found. Among them, M is the set number of iterations, which is a positive integer.
数据处理装置通过上述平面拟合确定至少一个拟合平面后,从至少一个拟合平面中选择需要继续精简点云数量的平面,并对选择出来的平面进行进一步精简。下面结合图3进行说明。After determining at least one fitting plane through the above-mentioned plane fitting, the data processing device selects a plane whose number of point clouds needs to be further reduced from the at least one fitting plane, and further reduces the selected plane. The following description will be made with reference to FIG. 3 .
图3为本申请实施例提供的一种拟合平面处理方法的示意图。如图3所示,X轴、Y轴、Z轴为采集初始点云数据的装置采用的三维坐标系的三个坐标轴,其中任意两个坐标轴互相垂直,O点为该三维坐标系的原点。FIG. 3 is a schematic diagram of a fitting plane processing method provided by an embodiment of the present application. As shown in Figure 3, the X axis, the Y axis and the Z axis are the three coordinate axes of the three-dimensional coordinate system adopted by the device for collecting the initial point cloud data, wherein any two coordinate axes are perpendicular to each other, and point O is the three-dimensional coordinate system of the three-dimensional coordinate system. origin.
在应用于图1所示的场景中时,X轴可以与车辆行驶的方向相同,XOY平面可以为自然坐标系下的水平面,则Z轴表示高度。假设目标点云数据包含的点云在三维坐标系下的分布如图3中所示,数据处理装置对目标点云数据进行平面拟合得到的平面包括图3中所示的点O、P、Q、R对应的平面L1、点P1、P2、P3、P4对应的平面L2以及点P3、P4、P5对应的平面L3。When applied to the scene shown in FIG. 1 , the X axis can be the same as the direction in which the vehicle is traveling, the XOY plane can be the horizontal plane in the natural coordinate system, and the Z axis represents the height. Assuming that the distribution of the point cloud contained in the target point cloud data in the three-dimensional coordinate system is shown in Figure 3, the plane obtained by the data processing device performing plane fitting on the target point cloud data includes the points O, P, The plane L1 corresponding to Q and R, the plane L2 corresponding to the points P1, P2, P3, and P4, and the plane L3 corresponding to the points P3, P4, and P5.
目标平面为XOY平面,数据处理装置从平面L1、L2、L3中首先选择与坐标系中目标平面距离低于设定距离值的平面,即平面高度最低的平面,在选择到平面L1后,将平面L1作为地面平面。然后从除平面L1以外的其余平面中选择沿Z轴方向的高度高于设定高度值、包含的点云的数量大于设定数量值且垂直于平面L1的平面,在选择到满足该条件的平面L2后,将平面L2确定为建筑平面。则通过滤波将平面L2的分辨率降低为设定值,例如,该设定值可以为平面L2原本分辨率的十分之一。具体实施时,可以采用体素滤波器(voxel grid filter)对平面包含的点云进行滤波,其中,体素滤波器对平面包含的点云进行滤波时,将平面包含的点云的外接长方体均匀划分为多个栅格,每个栅格的各边长为该外接长方体对应边长的十分之一,再利用每个栅格中的目标点云作为该栅格的代表点,并删除该栅格中非目标点云。The target plane is the XOY plane. The data processing device first selects the plane whose distance from the target plane in the coordinate system is lower than the set distance value from the planes L1, L2, and L3, that is, the plane with the lowest plane height. Plane L1 serves as the ground plane. Then select a plane whose height along the Z-axis direction is higher than the set height value, the number of point clouds contained is greater than the set number value, and is perpendicular to the plane L1 from the rest of the planes except the plane L1. After the plane L2, the plane L2 is determined as the building plane. Then, the resolution of the plane L2 is reduced to a set value through filtering, for example, the set value may be one tenth of the original resolution of the plane L2. In specific implementation, a voxel grid filter can be used to filter the point cloud contained in the plane, wherein when the voxel filter filters the point cloud contained in the plane, the circumscribed cuboid of the point cloud contained in the plane is uniform Divide it into multiple grids, and the length of each side of each grid is one-tenth of the corresponding side length of the circumscribed cuboid, and then use the target point cloud in each grid as the representative point of the grid, and delete the Non-target point cloud in raster.
上述方法中,通过确定车辆行驶环境的点云中的建筑平面,对其进行降采样处理,能够有效去除道路两旁建筑平面的冗余数据,进一步降低点云数据量。In the above method, by determining the building plane in the point cloud of the vehicle driving environment and performing down-sampling processing on it, redundant data of the building plane on both sides of the road can be effectively removed, and the amount of point cloud data can be further reduced.
需要说明的是,本申请实施例中所描述的各个实施例中的步骤编号仅为执行流程的一种示例,并不构成对步骤执行的先后顺序的限制,本申请实施例中相互之间没有时序依赖关系的步骤之间没有严格的执行顺序。例如,在上述步骤S203中,可以在确定某一栅格不满足栅格划分要求时,就对该栅格执行上述步骤S204中数据处理装置在栅格包含的点云中选择目标点云并删除除目标点云以外的其它点云的处理步骤,也可在步骤S203执行完毕确定所有栅格均不满足栅格划分要求后再对每个栅格执行步骤S204,即步骤S203与步骤S204执行时,可以是步骤S203先于步骤S204执行,也可以是两个步骤选择性同时执行。It should be noted that, the step numbers in the various embodiments described in the embodiments of the present application are only an example of the execution flow, and do not constitute a limitation on the sequence of execution of the steps. There is no strict order of execution between the steps of timing dependencies. For example, in the above step S203, when it is determined that a grid does not meet the grid division requirements, the data processing device in the above step S204 may select the target point cloud from the point clouds contained in the grid and delete the grid. For the processing steps of other point clouds except the target point cloud, it is also possible to perform step S204 for each grid after the execution of step S203 and determine that all grids do not meet the grid division requirements, that is, when steps S203 and S204 are executed , the step S203 may be performed prior to the step S204, or the two steps may be selectively performed simultaneously.
上述实施例中,对点云数据进行精简压缩过程中,通过对点云数据进行栅格划分,利用每个栅格内确定的目标点云代替该栅格,能够减少点云数量,实现点云压缩。同时,在划分栅格时,通过设定划分条件,能够选择性的对栅格进行划分,通过非均匀栅格划分,减少对某些特征明显的点云的消除,从而保证点云数据的形状特征,提高点云压缩效果。其中,根据栅格中反映点云分布离散程度的特征参数设定划分条件,能够结合点云数据的几何特征进行栅格划分,保证点云的姿态不变性,提高鲁棒性,及保证点云特征的准确性, 避免因点云的平移、旋转等变化导致的栅格划分误差,进一步提升点云压缩的效果。In the above embodiment, in the process of streamlining and compressing point cloud data, by dividing the point cloud data into grids, the target point cloud determined in each grid is used to replace the grid, which can reduce the number of point clouds and realize the realization of point clouds. compression. At the same time, when dividing the grid, by setting the dividing conditions, the grid can be selectively divided, and the non-uniform grid division can reduce the elimination of some point clouds with obvious characteristics, thereby ensuring the shape of the point cloud data. feature to improve point cloud compression. Among them, the division conditions are set according to the feature parameters reflecting the discrete degree of point cloud distribution in the grid, which can be combined with the geometric features of the point cloud data to divide the grid to ensure the pose invariance of the point cloud, improve the robustness, and ensure the point cloud. The accuracy of the features can avoid grid division errors caused by changes such as translation and rotation of the point cloud, and further improve the effect of point cloud compression.
下面结合具体实例,对本申请上述实施例中的栅格划分方法进行详细说明。The grid division method in the foregoing embodiments of the present application will be described in detail below with reference to specific examples.
参照图4,为本申请实施例提供的一种点云栅格划分方法的示意图。如图4中的(a)图所示,假设数据处理装置获取到的初始点云数据为点云集合S。Referring to FIG. 4 , it is a schematic diagram of a method for dividing a point cloud grid according to an embodiment of the present application. As shown in (a) of FIG. 4 , it is assumed that the initial point cloud data acquired by the data processing device is a point cloud set S.
以下以确定初始点云数据的外接立方体为例、以栅格包含的点云中的质心点作为该栅格的目标点云为例进行说明。The following is an example of determining the circumscribed cube of the initial point cloud data, and taking the centroid point in the point cloud included in the grid as the target point cloud of the grid as an example for description.
数据处理装置对初始点云数据进行处理时,首先确定初始点云数据的外接立方体,外接立方体为包含点云集合S中所有点云的最小立方体,即图中所示的包含初始点云数据的栅格S1。When the data processing device processes the initial point cloud data, it first determines the circumscribed cube of the initial point cloud data. Grid S1.
数据处理装置按照设定栅格大小,将栅格S1划分为多个栅格。作为一种可选的实施方式,数据处理装置根据栅格S1的大小确定设定栅格大小。例如,如图4中的(a)图所示,数据处理装置可以将栅格S1的边长的一半确定为设定栅格大小对应的边长,则栅格S1被分为8个大小相同的栅格,划分后每个栅格的边长为栅格S1的边长的一半,如栅格S2所示,其中,栅格A、B、C、D、E、F、G、H为栅格S2中划分得到的8个小栅格。The data processing apparatus divides the grid S1 into a plurality of grids according to the set grid size. As an optional implementation manner, the data processing apparatus determines and sets the grid size according to the size of the grid S1. For example, as shown in (a) of FIG. 4 , the data processing apparatus may determine half of the side length of the grid S1 as the side length corresponding to the set grid size, then the grid S1 is divided into 8 equal-sized grids After division, the side length of each grid is half of the side length of grid S1, as shown in grid S2, where grids A, B, C, D, E, F, G, and H are 8 small grids obtained by dividing the grid S2.
数据处理装置对栅格S1进行栅格划分得到栅格S2后,对栅格S2中划分得到的每个栅格,分别确定该栅格是否满足划分条件。图中以栅格D和栅格F为例进行示意,具体的,对于栅格D,如图4中的(b)图所示,数据处理装置确定栅格D不满足划分条件,则不再对栅格D进行划分,而是在栅格D包含的点云中选择质心点,并删除栅格D中除质心点之外的其它点云,得到栅格D1,其中栅格D1中所示的点云即为保留的栅格D的质心点。图4中的(b)图中所示的栅格D2即为对栅格D进行精简后的栅格,与栅格D1相同。对于栅格F,如图4中的(b)图所示,数据处理装置确定栅格F满足划分条件,则对栅格F进行进一步划分,例如,如图4中的(b)图中所示,采用与划分栅格S1相同的方法,将栅格F划分为2 3=8个小栅格,得到栅格F1,其中,栅格F11、F12、F13、F14、F15、F16、F17、F18为栅格F1中划分得到的8个小栅格。 After the data processing device divides the grid S1 to obtain the grid S2, for each grid obtained by dividing the grid S2, it is respectively determined whether the grid satisfies the dividing conditions. In the figure, grid D and grid F are used as examples for illustration. Specifically, for grid D, as shown in (b) in FIG. 4 , if the data processing device determines that grid D does not meet the division conditions, then Grid D is divided, but the centroid point is selected in the point cloud contained in grid D, and other point clouds except the centroid point in grid D are deleted to obtain grid D1, which is shown in grid D1 The point cloud of is the centroid point of the reserved grid D. The grid D2 shown in (b) of FIG. 4 is the grid after the grid D is simplified, and is the same as the grid D1. For the grid F, as shown in (b) in FIG. 4 , the data processing apparatus determines that the grid F satisfies the division conditions, and further divides the grid F, for example, as shown in (b) in FIG. 4 As shown, using the same method as dividing the grid S1, the grid F is divided into 2 3 =8 small grids to obtain the grid F1, wherein the grids F11, F12, F13, F14, F15, F16, F17, F18 is the 8 small grids obtained by dividing the grid F1.
数据处理装置对栅格F进行栅格划分得到栅格F1后,对栅格F1中划分得到的每个栅格,分别确定该栅格是否满足划分条件。图中以栅格F11、栅格F16和栅格F17为例进行示意,具体的,数据处理装置确定栅格F11、栅格F16和栅格F17均不满足划分条件,则不再对栅格F11、栅格F16和栅格F17进行划分,而是分别在栅格F11、栅格F16和栅格F17包含的点云中选择质心点,并分别删除栅格中除质心点之外的其它点云,分别得到图4中的(b)图所示的栅格F21、栅格F26和栅格F27。数据处理装置对栅格F1中的各个栅格分别进行选择质心点及删除非质心点的操作后,就得到图4中的(b)图中所示的栅格F2,栅格F2为对栅格F1进行精简后的栅格。After the data processing device divides the grid F to obtain the grid F1, for each grid obtained by dividing the grid F1, it is respectively determined whether the grid satisfies the division conditions. In the figure, grid F11, grid F16 and grid F17 are used as examples for illustration. Specifically, if the data processing device determines that grid F11, grid F16 and grid F17 do not meet the division conditions, grid F11 will not be processed any more. , grid F16 and grid F17 to divide, but select the centroid point in the point clouds contained in grid F11, grid F16 and grid F17 respectively, and delete other point clouds except the centroid point in the grid respectively , the grid F21, grid F26 and grid F27 shown in (b) of FIG. 4 are obtained respectively. After the data processing device performs the operations of selecting centroid points and deleting non-centroid points for each grid in the grid F1, the grid F2 shown in (b) in FIG. 4 is obtained, and the grid F2 is a pair of grids. Grid F1 for the reduced grid.
图4中未示出的其它栅格的处理方式可参照上述方法,此处不再赘述。For processing manners of other grids not shown in FIG. 4 , reference may be made to the foregoing method, and details are not described herein again.
数据处理装置按照上述栅格划分方法,对初始点云数据对应的外接立方体即栅格S1进行划分,直至最新划分得到的所有栅格均不满足划分条件时,确定完成点云精简,最新划分得到的所有栅格中的点云组成目标点云数据,如栅格S3所示。栅格S3中点云为对栅格S1中点云进行精简后的点云。The data processing device divides the grid S1 corresponding to the circumscribed cube of the initial point cloud data according to the above grid division method, until all grids obtained by the latest division do not meet the division conditions, it is determined that the point cloud simplification is completed, and the latest division is obtained. The point clouds in all the grids of , make up the target point cloud data, as shown in grid S3. The point cloud in the grid S3 is the point cloud after the point cloud in the grid S1 is simplified.
上述部分方法的具体实施方式可参照上述实施例一中相关描述,此处不再重述。For specific implementations of the above-mentioned partial methods, reference may be made to the relevant descriptions in the above-mentioned first embodiment, which will not be repeated here.
图5为本申请实施例提供的一种点云数据处理前后的对比示意图。FIG. 5 is a schematic diagram of comparison before and after point cloud data processing according to an embodiment of the present application.
图5中栅格W中所示的为进行点云数据处理前的原始模拟点云数据的点云分布情况,栅格W1中所示的为采用本申请上述实施例提供的方法进行点云数据处理后得到的点云数据的点云分布情况。对比栅格W和栅格W1中点云分布情况可知,采用本申请实施例提供的点云处理方法对数据量较大的点云数据进行处理后,能够有效减少点云的数量,从而降低点云数据文件的大小,实现点云压缩;同时,栅格W1中所示的处理后的点云与栅格W中所示的处理前的点云相比,在形状特征、点云分布的稠密程度等方面的差别均比较小,因此本申请实施例提供的点云处理方法对点云形状特征的破坏很小,能够保证较好的点云压缩效果。Grid W in FIG. 5 shows the point cloud distribution of the original simulated point cloud data before the point cloud data processing, and grid W1 shows the point cloud data using the method provided by the above embodiments of the present application. The point cloud distribution of the point cloud data obtained after processing. Comparing the distribution of point clouds in the grid W and the grid W1, it can be seen that after the point cloud processing method provided in the embodiment of the present application is used to process the point cloud data with a large amount of data, the number of point clouds can be effectively reduced, thereby reducing the number of point clouds. The size of the cloud data file realizes point cloud compression; at the same time, compared with the point cloud before processing shown in grid W1, the processed point cloud shown in grid W1 is denser in shape features and point cloud distribution. The differences in the degree and other aspects are relatively small, so the point cloud processing method provided by the embodiment of the present application damages the shape features of the point cloud very little, and can ensure a better point cloud compression effect.
本申请上述实施例中,在对点云进行栅格划分时,先对初始点云数据进行均匀栅格划分,再根据划分条件,选择性的对初始划分得到的栅格进行进一步划分,其中对每个栅格进行进一步划分时仍采用均匀划分方法。通过上述方法最终实现对点云的非均匀栅格化,再采用质心点替代的方式实现点云压缩,能够减少对点云形状及分布特征的破坏,进而提高点云压缩效果。In the above embodiments of the present application, when dividing the point cloud into a grid, the initial point cloud data is first divided into a uniform grid, and then the grid obtained by the initial division is selectively further divided according to the dividing conditions. When each grid is further divided, the uniform division method is still used. Through the above method, the non-uniform rasterization of the point cloud is finally realized, and the point cloud compression is realized by replacing the centroid point, which can reduce the damage to the shape and distribution characteristics of the point cloud, thereby improving the point cloud compression effect.
在高精度电子地图采集、自动驾驶、辅助驾驶等领域,雷达采集的所在场景的初始点云数据可能包含有敏感建筑特征等不宜显示的数据,并且相关法规要求这些敏感数据不可公开或者不能大面积长期持有,因此对点云数据的查看有很大的限制。In the fields of high-precision electronic map collection, automatic driving, and assisted driving, the initial point cloud data of the scene collected by the radar may contain sensitive building features and other data that are not suitable for display, and relevant regulations require that these sensitive data should not be disclosed or large-scale. It is held for a long time, so the viewing of point cloud data is greatly restricted.
而在实际应用中,点云数据主要用于驾驶感知,对于距雷达超远距离的点云,对驾驶感知是没有太大帮助的,尤其在自动驾驶、辅助驾驶等智能驾驶领域,一般主要依赖于以车辆中心为原点的一定范围内的点云数据,来进行驾驶感知的,因此,可以对雷达采集及后续显示的点云数据的范围进行限制,从而避开或模糊掉敏感建筑的点云特征,同时对驾驶感知也不会有太大影响。In practical applications, point cloud data is mainly used for driving perception. For point clouds that are far away from the radar, it is not very helpful for driving perception, especially in the field of intelligent driving such as automatic driving and assisted driving. Generally, it mainly relies on It is based on the point cloud data within a certain range with the vehicle center as the origin for driving perception. Therefore, the range of point cloud data collected by radar and subsequently displayed can be limited, so as to avoid or blur the point cloud of sensitive buildings. characteristics, and at the same time, it will not have much impact on driving perception.
例如,基于以上实施例,雷达在采集车辆周围环境的点云数据时,可以将设定范围之外的点云数据删除掉,仅保留设定范围内的点云数据,并将该设定范围内的点云数据作为初始点云数据,采用本申请上述实施例提供的点云数据处理方法对该初始点云数据进行处理,进而在对点云数据进行有效精简的同时,合规抹除非有效范围内的点云。For example, based on the above embodiment, when the radar collects the point cloud data of the surrounding environment of the vehicle, the point cloud data outside the set range can be deleted, only the point cloud data within the set range can be retained, and the set range The point cloud data inside is used as the initial point cloud data, and the initial point cloud data is processed by using the point cloud data processing method provided by the above-mentioned embodiment of the present application, and then the point cloud data is effectively simplified, and the compliance erasure is invalid. point cloud in the range.
图6a为本申请实施例提供的一种限制点云显示范围的方法示意图。如图6a所示,在雷达位于车辆顶部时,以雷达作为原点,在竖直方向上,仅保留雷达两侧设定距离对应的范围内的点云数据,即图6a中虚线L4与虚线L5之间限制的范围内的点云数据,对于超出该范围的点云数据,雷达不进行点云采集或者删除已采集的点云数据。FIG. 6a is a schematic diagram of a method for limiting the display range of a point cloud provided by an embodiment of the present application. As shown in Figure 6a, when the radar is located on the top of the vehicle, the radar is used as the origin, and in the vertical direction, only the point cloud data within the range corresponding to the set distance on both sides of the radar is retained, that is, the dotted line L4 and the dotted line L5 in Figure 6a The point cloud data within the limited range, for the point cloud data beyond this range, the radar does not perform point cloud collection or deletes the point cloud data that has been collected.
鉴于目前一般小型车辆高度基本在2米以下,大型货车最高限高不超过4.2米,因此可以设定高度距离值为2.5米,仅保留雷达两侧各2.5对应的范围内的点云数据,即图6a中两条虚线之间限制的是5米高度的范围,这样既可以覆盖到地面,也可以覆盖到基本所有车型的高度。而车道两旁的建筑会因为高度2.5米的限制,基本全部被屏蔽,不会过多显示出来,从而避免敏感建筑物信息被全部公开。In view of the fact that the height of general small vehicles is basically below 2 meters, and the maximum height of large trucks is not more than 4.2 meters, the height distance value can be set to 2.5 meters, and only the point cloud data within the range corresponding to 2.5 on both sides of the radar is retained, that is The limit between the two dashed lines in Figure 6a is a range of 5 meters in height, which can cover both the ground and the height of basically all models. The buildings on both sides of the driveway will be shielded because of the height limit of 2.5 meters, and will not be displayed too much, so as to prevent all sensitive building information from being disclosed.
图6b为本申请实施例提供的另一种限制点云显示范围的方法示意图。如图6b所示,在图6a所示的限制范围的基础上,仅保留雷达左右及前后两侧设定距离对应的范围内的点云数据,即图6b中虚线框包围的范围,对于超出该范围的点云数据,雷达不进行点云采集或者删除已采集的点云数据,其中,图6b中所示的x轴与车辆行驶方向相同,y轴与x轴垂直。FIG. 6b is a schematic diagram of another method for limiting the display range of a point cloud provided by an embodiment of the present application. As shown in Figure 6b, on the basis of the limited range shown in Figure 6a, only the point cloud data within the range corresponding to the set distances on the left and right sides of the radar and the front and rear sides of the radar are retained, that is, the range surrounded by the dotted box in Figure 6b. For the point cloud data in this range, the radar does not collect the point cloud or deletes the point cloud data that has been collected. The x-axis shown in Figure 6b is the same as the vehicle's driving direction, and the y-axis is perpendicular to the x-axis.
一般车辆前后100米以外的范围点云分布比较稀疏,不具备参考价值,可以去掉,因此,在雷达前后方向上的设定距离可以为100米。而相关标准规定标准车道最宽3.75米,则单向8车道的宽度是低于16米的,雷达左右30米范围以外的点云是不影响目标检测的,也可以去掉,因此,在雷达左右方向上的设定距离可以为30米。Generally, the distribution of point clouds in the range beyond 100 meters before and after the vehicle is relatively sparse, which has no reference value and can be removed. Therefore, the set distance in the front and rear directions of the radar can be 100 meters. The relevant standards stipulate that the maximum width of the standard lane is 3.75 meters, and the width of the 8-lane one-way is less than 16 meters. The point cloud beyond the range of 30 meters to the left and right of the radar does not affect the target detection and can also be removed. The set distance in the direction can be 30 meters.
上述通过保留雷达前后各100米、左右各30米及上下各2.5米范围内的点云数据,能够在保留车道内和道路两旁必要的检测信息的同时,减少对无效信息的采集。By retaining the point cloud data within the range of 100 meters before and after the radar, 30 meters on the left and right, and 2.5 meters on the upper and lower sides of the radar, the necessary detection information in the lane and on both sides of the road can be retained, and the collection of invalid information can be reduced.
本实施例中,结合上述图6a、图6b所示的方法,对于车辆周围的采集的点云数据,仅包括车辆四周设定范围的点云数据,能够在覆盖有用信息范围的同时,屏蔽道路两旁的建筑物信息,避免敏感建筑物信息的公开,还可以进一步降低点云数据量,提升点云数据的传输、播放等的效率。In this embodiment, in combination with the methods shown in Figures 6a and 6b above, the point cloud data collected around the vehicle only includes point cloud data within a set range around the vehicle, which can cover the useful information range while shielding the road. The building information on both sides can avoid the disclosure of sensitive building information, further reduce the amount of point cloud data, and improve the efficiency of point cloud data transmission and playback.
图7a为本申请实施例提供的一种原始点云数据的示意图。如图7a所示,为雷达采集的实际环境的点云数据,图中白色点为点云,可以看到图中点云数据的点云数量相对很大。FIG. 7a is a schematic diagram of original point cloud data provided by an embodiment of the present application. As shown in Figure 7a, it is the point cloud data of the actual environment collected by the radar. The white points in the figure are point clouds. It can be seen that the number of point clouds in the point cloud data in the figure is relatively large.
图7b为本申请实施例提供的一种处理后的点云数据的示意图。如图7b所示,为采用本申请上述实施例提供的点云数据处理方法,对图7a所示的原始点云数据进行处理后,得到的点云数据,图中白色点为点云。FIG. 7b is a schematic diagram of processed point cloud data according to an embodiment of the present application. As shown in FIG. 7b, in order to use the point cloud data processing method provided by the above embodiments of the present application, the point cloud data obtained after processing the original point cloud data shown in FIG. 7a, the white points in the figure are point clouds.
对比图7a和图7b可知,采用本申请实施例提供的点云处理方法对数据量较大的点云数据进行处理后,点云数量下降为原来的十分之一左右,因此,本申请方案能够有效减少点云的数量,实现点云压缩;同时,图7b所示的处理后的点云与图7a所示的原始点云相比,在形状特征、点云分布的稠密程度等方面的差别均比较小,因此本申请实施例提供的点云处理方法对点云形状特征的破坏很小,能够保证较好的点云压缩效果。Comparing Fig. 7a and Fig. 7b, it can be seen that after the point cloud data with a large amount of data is processed by the point cloud processing method provided in the embodiment of the present application, the number of point clouds is reduced to about one tenth of the original. Therefore, the solution of the present application It can effectively reduce the number of point clouds and realize point cloud compression; at the same time, compared with the original point cloud shown in Figure 7a, the processed point cloud shown in Fig. The differences are relatively small, so the point cloud processing method provided in the embodiment of the present application damages the shape features of the point cloud very little, and can ensure a better point cloud compression effect.
基于以上实施例及相同构思,本申请实施例还提供了一种数据处理装置,如图8所示,所述数据处理装置800可以包括:获取单元801和处理单元802。Based on the above embodiments and the same concept, an embodiment of the present application further provides a data processing apparatus. As shown in FIG. 8 , the data processing apparatus 800 may include: an acquisition unit 801 and a processing unit 802 .
所述获取单元801用于获取初始点云数据。The acquiring unit 801 is used for acquiring initial point cloud data.
所述处理单元802用于确定所述初始点云数据的目标区域,其中,所述目标区域包含所述初始点云数据中每个点云。The processing unit 802 is configured to determine a target area of the initial point cloud data, wherein the target area includes each point cloud in the initial point cloud data.
所述处理单元802还用于对所述目标区域进行栅格划分,得到多个栅格,其中,每个栅格中点云的特征数据满足特征分布条件,所述特征数据用于表示点云与所述点云的邻域点之间的空间几何关系;在每个栅格包含的点云中选择每个栅格的目标点云,并删除每个栅格中除目标点云以外的其它点云;根据每个栅格的目标点云,得到目标点云数据。The processing unit 802 is further configured to perform grid division on the target area to obtain a plurality of grids, wherein the feature data of the point cloud in each grid satisfies the feature distribution condition, and the feature data is used to represent the point cloud. The spatial geometric relationship with the neighboring points of the point cloud; select the target point cloud of each grid from the point clouds contained in each grid, and delete the other than the target point cloud in each grid Point cloud: According to the target point cloud of each grid, the target point cloud data is obtained.
在一种可能的设计中,所述处理单元802对所述目标区域进行栅格划分,包括:按照设定栅格大小,将所述目标区域划分为多个栅格;对每个不满足划分条件的栅格,不进行划分处理;对每个满足划分条件的栅格执行以下步骤:将目标栅格划分为多个栅格,所述目标栅格为每个满足划分条件的栅格;其中,所述划分条件为栅格中点云的特征数据不满足所述特征分布条件。In a possible design, the processing unit 802 divides the target area into grids, including: dividing the target area into multiple grids according to a set grid size; The grids that meet the conditions are not divided; perform the following steps for each grid that satisfies the dividing conditions: divide the target grid into multiple grids, and the target grid is each grid that meets the dividing conditions; wherein , and the division condition is that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
在一种可能的设计中,所述处理单元802根据下列方式确定栅格中点云的特征数据是否满足所述特征分布条件:根据所述栅格中所有点云的特征数据计算第一目标参数;若确定所述第一目标参数不大于设定阈值,则确定所述栅格中点云的特征数据满足所述特征分布条件,否则,确定所述栅格中点云的特征数据不满足所述特征分布条件。In a possible design, the processing unit 802 determines whether the feature data of point clouds in the grid satisfies the feature distribution condition according to the following manner: calculating the first target parameter according to the feature data of all point clouds in the grid ; If it is determined that the first target parameter is not greater than the set threshold, then it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition, otherwise, it is determined that the feature data of the point cloud in the grid does not meet the requirements Describe the characteristic distribution conditions.
在一种可能的设计中,所述处理单元802在根据每个栅格的目标点云,得到目标点云 数据之后,还用于:采用随机抽样一致算法,对所述目标点云数据包含的点云进行平面拟合,得到至少一个拟合平面;在所述至少一个拟合平面中,确定与目标坐标系中目标平面的距离低于设定距离值的第一目标拟合平面;若所述至少一个拟合平面中存在满足设定条件的第二目标拟合平面,则对所述第二目标拟合平面包含的点云数据进行体素滤波;其中,所述设定条件包括:垂直于所述第一目标拟合平面,沿目标方向的长度大于设定长度值,且位于平面中的点云的数量大于设定数值。In a possible design, after obtaining the target point cloud data according to the target point cloud of each grid, the processing unit 802 is further configured to: adopt a random sampling consensus algorithm to analyze the data contained in the target point cloud data Perform plane fitting on the point cloud to obtain at least one fitting plane; in the at least one fitting plane, determine the first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value; If there is a second target fitting plane that satisfies the setting condition in the at least one fitting plane, then perform voxel filtering on the point cloud data included in the second target fitting plane; wherein, the setting condition includes: vertical In the first target fitting plane, the length along the target direction is greater than the set length value, and the number of point clouds in the plane is greater than the set value.
在一种可能的设计中,所述处理单元802在确定所述初始点云数据的目标区域之前,还用于:对所述初始点云数据进行滤波,去除所述初始点云数据中的离群点。In a possible design, before determining the target area of the initial point cloud data, the processing unit 802 is further configured to: filter the initial point cloud data to remove the distances in the initial point cloud data group point.
在一种可能的设计中,所述处理单元802在每个栅格包含的点云中选择每个栅格的目标点云之后,还用于:将每个栅格中目标点云的第二目标参数调整为该栅格包含的所有点云的第二目标参数的平均值。In a possible design, after selecting the target point cloud of each grid from the point clouds contained in each grid, the processing unit 802 is further configured to: The target parameters are adjusted to the average of the second target parameters of all point clouds contained in the grid.
在一种可能的设计中,所述每个栅格的目标点云为每个栅格包含的点云中的质心点。In a possible design, the target point cloud of each grid is the centroid point in the point cloud contained in each grid.
作为一种实现方式,所述数据处理装置800还可以包括存储单元803,用于存储所述数据处理装置800的程序代码和数据。其中,所述处理单元802可以是处理器或控制器,例如可以是通用中央处理器(central processing unit,CPU),通用处理器,数字信号处理(digital signal processing,DSP),专用集成电路(application specific integrated circuits,ASIC),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块等。所述处理器也可以是实现计算功能的组合,例如包括一个或多个微处理器组合,DSP和微处理器的组合等等。所述存储单元803可以是存储器。所述获取单元801可以是一种该数据处理装置的接口电路,用于从其它装置接收数据,例如接收点云数据采集装置发送的初始点云数据。当该数据处理装置以芯片的方式实现时,收发单元801可以是该芯片用于从其它芯片或装置接收数据或者向其它芯片或装置发送数据的接口电路。As an implementation manner, the data processing apparatus 800 may further include a storage unit 803 for storing program codes and data of the data processing apparatus 800 . The processing unit 802 may be a processor or a controller, for example, a general-purpose central processing unit (CPU), a general-purpose processor, a digital signal processing (DSP), an application-specific integrated circuit (application). specific integrated circuits, ASIC), field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logical blocks, modules, etc. described in connection with this disclosure. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The storage unit 803 may be a memory. The acquiring unit 801 may be an interface circuit of the data processing device, and is used for receiving data from other devices, for example, receiving initial point cloud data sent by a point cloud data acquisition device. When the data processing device is implemented in the form of a chip, the transceiver unit 801 may be an interface circuit used by the chip to receive data from or send data to other chips or devices.
本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能单元可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。The division of units in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit. In the device, it can also exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
图8中的各个单元的只一个或多个可以软件、硬件、固件或其结合实现。所述软件或固件包括但不限于计算机程序指令或代码,并可以被硬件处理器所执行。所述硬件包括但不限于各类集成电路,如中央处理单元(CPU)、数字信号处理器(DSP)、现场可编程门阵列(FPGA)或专用集成电路(ASIC)。Only one or more of the various elements in FIG. 8 may be implemented in software, hardware, firmware, or a combination thereof. The software or firmware includes, but is not limited to, computer program instructions or code, and can be executed by a hardware processor. The hardware includes, but is not limited to, various types of integrated circuits, such as a central processing unit (CPU), a digital signal processor (DSP), a field programmable gate array (FPGA), or an application specific integrated circuit (ASIC).
基于以上实施例及相同构思,本申请实施例还提供了一种数据处理装置,用于实现本申请实施例提供的点云数据处理方法。如图9所示,所述数据处理装置900可以包括:一个或多个处理器901,存储器902,以及一个或多个计算机程序(图中未示出)。作为一种实现方式,上述各器件可以通过一个或多个通信线路903耦合。其中,存储器902中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令;处理器901调用存储器902中存储的所述指令,使得数据处理装置900执行本申请实施例提供的点云数据处理方法。Based on the above embodiments and the same concept, the embodiments of the present application further provide a data processing apparatus for implementing the point cloud data processing method provided by the embodiments of the present application. As shown in FIG. 9, the data processing apparatus 900 may include: one or more processors 901, a memory 902, and one or more computer programs (not shown in the figure). As an implementation manner, the above devices may be coupled through one or more communication lines 903 . One or more computer programs are stored in the memory 902, and the one or more computer programs include instructions; the processor 901 invokes the instructions stored in the memory 902, so that the data processing apparatus 900 executes the instructions provided by the embodiments of the present application. Point cloud data processing methods.
在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现 场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or The methods, steps and logic block diagrams disclosed in the embodiments of this application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置。In the embodiments of the present application, the memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (direct rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory. The memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function.
作为一种实现方式,所述数据处理装置900还可以包括通信接口904,用于通过传输介质和其它装置进行通信,例如,在采集初始点云数据的装置不是所述数据处理装置900时,所述数据处理装置900可以通过所述通信接口904,与采集初始点云数据的装置进行通信,从而接收该装置采集的初始点云数据。在本申请实施例中,通信接口可以是收发器、电路、总线、模块或其它类型的通信接口。在本申请实施例中,通信接口为收发器时,收发器可以包括独立的接收器、独立的发射器;也可以集成收发功能的收发器、或者是接口电路。As an implementation manner, the data processing apparatus 900 may further include a communication interface 904 for communicating with other apparatuses through a transmission medium. For example, when the apparatus for collecting initial point cloud data is not the data processing apparatus 900, the The data processing apparatus 900 may communicate with the apparatus for collecting initial point cloud data through the communication interface 904, so as to receive the initial point cloud data collected by the apparatus. In this embodiment of the present application, the communication interface may be a transceiver, a circuit, a bus, a module, or other types of communication interfaces. In this embodiment of the present application, when the communication interface is a transceiver, the transceiver may include an independent receiver and an independent transmitter; it may also be a transceiver integrating a transceiver function, or an interface circuit.
在本申请一些实施例中,所述处理器901、存储器902以及通信接口904可以通过通信线路903相互连接;通信线路903可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。所述通信线路903可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。In some embodiments of the present application, the processor 901, the memory 902 and the communication interface 904 may be connected to each other through a communication line 903; the communication line 903 may be a Peripheral Component Interconnect (PCI for short) bus or an extension Industry standard structure (Extended Industry Standard Architecture, referred to as EISA) bus and so on. The communication line 903 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,简称DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如, 软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,简称DVD)、或者半导体介质(例如,SSD)等。The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server or data center by means of wired (such as coaxial cable, optical fiber, digital subscriber line, DSL for short) or wireless (such as infrared, wireless, microwave, etc.) A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The available media can be magnetic media (eg, floppy disks, hard disks, magnetic tape), optical media (eg, digital video disc (DVD) for short), or semiconductor media (eg, SSD), and the like.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,在没有超过本申请的范围内,可以通过其他的方式实现。例如,以上所描述的实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners without exceeding the scope of the present application. For example, the above-described embodiments are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units . Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
另外,所描述装置和方法以及不同实施例的示意图,在不超出本申请的范围内,可以与其它系统,模块,技术或方法结合或集成。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电子、机械或其它的形式。In addition, the described apparatus and methods, as well as the schematic diagrams of the various embodiments, may be combined or integrated with other systems, modules, techniques or methods without departing from the scope of this application. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electronic, mechanical or other forms.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (17)

  1. 一种点云数据处理方法,其特征在于,包括:A method for processing point cloud data, comprising:
    获取初始点云数据,并确定所述初始点云数据的目标区域,其中,所述目标区域包含所述初始点云数据中每个点云;acquiring initial point cloud data, and determining a target area of the initial point cloud data, wherein the target area includes each point cloud in the initial point cloud data;
    对所述目标区域进行栅格划分,得到多个栅格,其中,每个栅格中点云的特征数据满足特征分布条件,所述特征数据用于表示点云与所述点云的邻域点之间的空间几何关系;Perform grid division on the target area to obtain a plurality of grids, wherein the feature data of the point cloud in each grid satisfies the feature distribution condition, and the feature data is used to represent the point cloud and the neighborhood of the point cloud Spatial geometric relationship between points;
    在每个栅格包含的点云中选择每个栅格的目标点云,并删除每个栅格中除目标点云以外的其它点云;Select the target point cloud of each grid in the point cloud contained in each grid, and delete other point clouds except the target point cloud in each grid;
    根据每个栅格的目标点云,得到目标点云数据。According to the target point cloud of each grid, the target point cloud data is obtained.
  2. 根据权利要求1所述的方法,其特征在于,所述对所述目标区域进行栅格划分,包括:The method according to claim 1, wherein the performing grid division on the target area comprises:
    按照设定栅格大小,将所述目标区域划分为多个栅格;Divide the target area into a plurality of grids according to the set grid size;
    对每个不满足划分条件的栅格,不进行划分处理;For each grid that does not meet the division conditions, no division processing is performed;
    对每个满足划分条件的栅格执行以下步骤:将目标栅格划分为多个栅格,所述目标栅格为每个满足划分条件的栅格;Perform the following steps on each grid that satisfies the division conditions: divide the target grid into a plurality of grids, and the target grid is each grid that meets the dividing conditions;
    其中,所述划分条件为栅格中点云的特征数据不满足所述特征分布条件。Wherein, the division condition is that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
  3. 根据权利要求1或2所述的方法,其特征在于,根据下列方式确定栅格中点云的特征数据是否满足所述特征分布条件:The method according to claim 1 or 2, characterized in that whether the feature data of the point cloud in the grid satisfies the feature distribution condition is determined according to the following manner:
    根据所述栅格中所有点云的特征数据计算第一目标参数;Calculate the first target parameter according to the feature data of all point clouds in the grid;
    若确定所述第一目标参数不大于设定阈值,则确定所述栅格中点云的特征数据满足所述特征分布条件,否则,确定所述栅格中点云的特征数据不满足所述特征分布条件。If it is determined that the first target parameter is not greater than the set threshold, it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition; otherwise, it is determined that the feature data of the point cloud in the grid does not satisfy the feature distribution condition. Feature distribution conditions.
  4. 根据权利要求1~3任一所述的方法,其特征在于,在根据每个栅格的目标点云,得到目标点云数据之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after obtaining the target point cloud data according to the target point cloud of each grid, the method further comprises:
    采用随机抽样一致算法,对所述目标点云数据包含的点云进行平面拟合,得到至少一个拟合平面;A random sampling consensus algorithm is used to perform plane fitting on the point cloud included in the target point cloud data to obtain at least one fitted plane;
    在所述至少一个拟合平面中,确定与目标坐标系中目标平面的距离低于设定距离值的第一目标拟合平面;In the at least one fitting plane, determine a first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value;
    若所述至少一个拟合平面中存在满足设定条件的第二目标拟合平面,则对所述第二目标拟合平面包含的点云数据进行体素滤波;If there is a second target fitting plane that satisfies the set condition in the at least one fitting plane, performing voxel filtering on the point cloud data included in the second target fitting plane;
    其中,所述设定条件包括:垂直于所述第一目标拟合平面,沿目标方向的长度大于设定长度值,且位于平面中的点云的数量大于设定数值。The setting conditions include: perpendicular to the first target fitting plane, the length along the target direction is greater than the set length value, and the number of point clouds in the plane is greater than the set value.
  5. 根据权利要求1~4任一所述的方法,其特征在于,在确定所述初始点云数据的目标区域之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein before determining the target area of the initial point cloud data, the method further comprises:
    对所述初始点云数据进行滤波,去除所述初始点云数据中的离群点。Filtering the initial point cloud data to remove outliers in the initial point cloud data.
  6. 根据权利要求1~5任一所述的方法,其特征在于,在每个栅格包含的点云中选择每个栅格的目标点云之后,所述方法还包括:The method according to any one of claims 1 to 5, wherein after selecting the target point cloud of each grid from the point clouds contained in each grid, the method further comprises:
    将每个栅格中目标点云的第二目标参数调整为该栅格包含的所有点云的第二目标参数的平均值。The second target parameter of the target point cloud in each grid is adjusted to the average value of the second target parameter of all point clouds contained in the grid.
  7. 根据权利要求1~6任一所述的方法,其特征在于,所述每个栅格的目标点云为每个 栅格包含的点云中的质心点。The method according to any one of claims 1 to 6, wherein the target point cloud of each grid is the centroid point in the point cloud included in each grid.
  8. 一种数据处理装置,其特征在于,包括获取单元和处理单元;A data processing device, characterized in that it includes an acquisition unit and a processing unit;
    所述获取单元用于获取初始点云数据;The acquisition unit is used to acquire initial point cloud data;
    所述处理单元用于确定所述初始点云数据的目标区域,其中,所述目标区域包含所述初始点云数据中每个点云;The processing unit is configured to determine a target area of the initial point cloud data, wherein the target area includes each point cloud in the initial point cloud data;
    所述处理单元还用于对所述目标区域进行栅格划分,得到多个栅格,其中,每个栅格中点云的特征数据满足特征分布条件,所述特征数据用于表示点云与所述点云的邻域点之间的空间几何关系;在每个栅格包含的点云中选择每个栅格的目标点云,并删除每个栅格中除目标点云以外的其它点云;根据每个栅格的目标点云,得到目标点云数据。The processing unit is further configured to perform grid division on the target area to obtain a plurality of grids, wherein the feature data of the point cloud in each grid satisfies the feature distribution condition, and the feature data is used to represent the difference between the point cloud and the grid. The spatial geometric relationship between the neighboring points of the point cloud; select the target point cloud of each grid from the point clouds contained in each grid, and delete other points in each grid except the target point cloud Cloud; according to the target point cloud of each grid, get the target point cloud data.
  9. 根据权利要求8所述的装置,其特征在于,所述处理单元对所述目标区域进行栅格划分,包括:The apparatus according to claim 8, wherein the processing unit performs grid division on the target area, comprising:
    按照设定栅格大小,将所述目标区域划分为多个栅格;Divide the target area into a plurality of grids according to the set grid size;
    对每个不满足划分条件的栅格,不进行划分处理;For each grid that does not meet the division conditions, no division processing is performed;
    对每个满足划分条件的栅格执行以下步骤:将目标栅格划分为多个栅格,所述目标栅格为每个满足划分条件的栅格;Perform the following steps on each grid that satisfies the division conditions: divide the target grid into a plurality of grids, and the target grid is each grid that meets the dividing conditions;
    其中,所述划分条件为栅格中点云的特征数据不满足所述特征分布条件。Wherein, the division condition is that the feature data of the point cloud in the grid does not satisfy the feature distribution condition.
  10. 根据权利要求8或9所述的装置,其特征在于,所述处理单元根据下列方式确定栅格中点云的特征数据是否满足所述特征分布条件:The device according to claim 8 or 9, wherein the processing unit determines whether the feature data of the point cloud in the grid satisfies the feature distribution condition according to the following manner:
    根据所述栅格中所有点云的特征数据计算第一目标参数;Calculate the first target parameter according to the feature data of all point clouds in the grid;
    若确定所述第一目标参数不大于设定阈值,则确定所述栅格中点云的特征数据满足所述特征分布条件,否则,确定所述栅格中点云的特征数据不满足所述特征分布条件。If it is determined that the first target parameter is not greater than the set threshold, it is determined that the feature data of the point cloud in the grid satisfies the feature distribution condition; otherwise, it is determined that the feature data of the point cloud in the grid does not satisfy the feature distribution condition. Feature distribution conditions.
  11. 根据权利要求8~10任一所述的装置,其特征在于,所述处理单元在根据每个栅格的目标点云,得到目标点云数据之后,还用于:The device according to any one of claims 8 to 10, wherein after obtaining the target point cloud data according to the target point cloud of each grid, the processing unit is further configured to:
    采用随机抽样一致算法,对所述目标点云数据包含的点云进行平面拟合,得到至少一个拟合平面;A random sampling consensus algorithm is used to perform plane fitting on the point cloud included in the target point cloud data to obtain at least one fitted plane;
    在所述至少一个拟合平面中,确定与目标坐标系中目标平面的距离低于设定距离值的第一目标拟合平面;In the at least one fitting plane, determine a first target fitting plane whose distance from the target plane in the target coordinate system is lower than the set distance value;
    若所述至少一个拟合平面中存在满足设定条件的第二目标拟合平面,则对所述第二目标拟合平面包含的点云数据进行体素滤波;If there is a second target fitting plane that satisfies the set condition in the at least one fitting plane, performing voxel filtering on the point cloud data included in the second target fitting plane;
    其中,所述设定条件包括:垂直于所述第一目标拟合平面,沿目标方向的长度大于设定长度值,且位于平面中的点云的数量大于设定数值。The setting conditions include: perpendicular to the first target fitting plane, the length along the target direction is greater than the set length value, and the number of point clouds in the plane is greater than the set value.
  12. 根据权利要求8~11任一所述的装置,其特征在于,所述处理单元在确定所述初始点云数据的目标区域之前,还用于:The apparatus according to any one of claims 8 to 11, wherein before determining the target area of the initial point cloud data, the processing unit is further configured to:
    对所述初始点云数据进行滤波,去除所述初始点云数据中的离群点。Filtering the initial point cloud data to remove outliers in the initial point cloud data.
  13. 根据权利要求8~12任一所述的装置,其特征在于,所述处理单元在每个栅格包含的点云中选择每个栅格的目标点云之后,还用于:The apparatus according to any one of claims 8 to 12, wherein after selecting the target point cloud of each grid from the point clouds included in each grid, the processing unit is further configured to:
    将每个栅格中目标点云的第二目标参数调整为该栅格包含的所有点云的第二目标参数的平均值。The second target parameter of the target point cloud in each grid is adjusted to the average value of the second target parameter of all point clouds contained in the grid.
  14. 根据权利要求8~13任一所述的装置,其特征在于,所述每个栅格的目标点云为每个栅格包含的点云中的质心点。The device according to any one of claims 8 to 13, wherein the target point cloud of each grid is a centroid point in the point cloud included in each grid.
  15. 一种数据处理装置,其特征在于,包括存储器和处理器;A data processing device, comprising a memory and a processor;
    所述存储器用于存储计算机程序;the memory is used to store computer programs;
    所述处理器用于执行所述存储器中存储的计算程序,实现如权利要求1~7中任一项所述的方法。The processor is configured to execute the calculation program stored in the memory to implement the method according to any one of claims 1-7.
  16. 一种数据处理装置,其特征在于,包括至少一个处理器和接口;A data processing device, comprising at least one processor and an interface;
    所述接口用于为所述至少一个处理器提供程序指令或者数据;the interface is used to provide program instructions or data for the at least one processor;
    所述至少一个处理器用于执行所述程序指令,实现如权利要求1-7中任一项所述的方法。The at least one processor is configured to execute the program instructions, implementing the method of any of claims 1-7.
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在数据处理装置上运行时,使得所述数据处理装置执行如上述权利要求1~7中任一项所述的方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program runs on a data processing device, the data processing device is made to execute the above claims 1- The method of any one of 7.
PCT/CN2021/125567 2020-12-29 2021-10-22 Point cloud data processing method and device WO2022142628A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011588423.1A CN114693696A (en) 2020-12-29 2020-12-29 Point cloud data processing method and device
CN202011588423.1 2020-12-29

Publications (1)

Publication Number Publication Date
WO2022142628A1 true WO2022142628A1 (en) 2022-07-07

Family

ID=82131590

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/125567 WO2022142628A1 (en) 2020-12-29 2021-10-22 Point cloud data processing method and device

Country Status (2)

Country Link
CN (1) CN114693696A (en)
WO (1) WO2022142628A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115830269A (en) * 2022-12-08 2023-03-21 中铁工程设计咨询集团有限公司 Tunnel point cloud normal direction adjusting method, device and equipment and readable access medium
CN115984147A (en) * 2023-03-17 2023-04-18 汉斯夫(杭州)医学科技有限公司 Point cloud self-adaptive processing method, device and medium based on dental scanner
CN116385571A (en) * 2023-06-01 2023-07-04 山东矩阵软件工程股份有限公司 Point cloud compression method and system based on multidimensional dynamic variable resolution
CN116433506A (en) * 2023-03-13 2023-07-14 港珠澳大桥管理局 Multi-beam data processing method, device, computer equipment and storage medium
CN116681767A (en) * 2023-08-03 2023-09-01 长沙智能驾驶研究院有限公司 Point cloud searching method and device and terminal equipment
CN117216484A (en) * 2023-11-08 2023-12-12 山东汇蓝环保科技有限公司 Environmental data monitoring method based on multidimensional data analysis
CN117576100A (en) * 2024-01-16 2024-02-20 浙江合丰科技有限公司 Surface defect grading detection and evaluation method for FPC connector

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024086972A1 (en) * 2022-10-24 2024-05-02 华为技术有限公司 Data processing method and apparatus, and intelligent driving device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127031A (en) * 2006-08-18 2008-02-20 鸿富锦精密工业(深圳)有限公司 Point cloud data mean value filtering system and method
CN103701466A (en) * 2012-09-28 2014-04-02 上海市政工程设计研究总院(集团)有限公司 Scattered point cloud compression algorithm based on feature reservation
CN104794687A (en) * 2014-01-20 2015-07-22 鸿富锦精密工业(深圳)有限公司 Point clouds simplifying system and method
CN110097582A (en) * 2019-05-16 2019-08-06 广西师范大学 A kind of spots cloud optimization registration and real-time display system and working method
WO2020012187A1 (en) * 2018-07-13 2020-01-16 Vividq Limited Method and system for compressing and decompressing digital three-dimensional point cloud data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127031A (en) * 2006-08-18 2008-02-20 鸿富锦精密工业(深圳)有限公司 Point cloud data mean value filtering system and method
CN103701466A (en) * 2012-09-28 2014-04-02 上海市政工程设计研究总院(集团)有限公司 Scattered point cloud compression algorithm based on feature reservation
CN104794687A (en) * 2014-01-20 2015-07-22 鸿富锦精密工业(深圳)有限公司 Point clouds simplifying system and method
WO2020012187A1 (en) * 2018-07-13 2020-01-16 Vividq Limited Method and system for compressing and decompressing digital three-dimensional point cloud data
CN110097582A (en) * 2019-05-16 2019-08-06 广西师范大学 A kind of spots cloud optimization registration and real-time display system and working method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115830269A (en) * 2022-12-08 2023-03-21 中铁工程设计咨询集团有限公司 Tunnel point cloud normal direction adjusting method, device and equipment and readable access medium
CN115830269B (en) * 2022-12-08 2023-06-06 中铁工程设计咨询集团有限公司 Tunnel point cloud normal direction adjustment method, device, equipment and readable access medium
CN116433506A (en) * 2023-03-13 2023-07-14 港珠澳大桥管理局 Multi-beam data processing method, device, computer equipment and storage medium
CN115984147A (en) * 2023-03-17 2023-04-18 汉斯夫(杭州)医学科技有限公司 Point cloud self-adaptive processing method, device and medium based on dental scanner
CN115984147B (en) * 2023-03-17 2023-09-15 汉斯夫(杭州)医学科技有限公司 Dental scanner-based point cloud self-adaptive processing method, device and medium
CN116385571B (en) * 2023-06-01 2023-09-15 山东矩阵软件工程股份有限公司 Point cloud compression method and system based on multidimensional dynamic variable resolution
CN116385571A (en) * 2023-06-01 2023-07-04 山东矩阵软件工程股份有限公司 Point cloud compression method and system based on multidimensional dynamic variable resolution
CN116681767A (en) * 2023-08-03 2023-09-01 长沙智能驾驶研究院有限公司 Point cloud searching method and device and terminal equipment
CN116681767B (en) * 2023-08-03 2023-12-29 长沙智能驾驶研究院有限公司 Point cloud searching method and device and terminal equipment
CN117216484A (en) * 2023-11-08 2023-12-12 山东汇蓝环保科技有限公司 Environmental data monitoring method based on multidimensional data analysis
CN117216484B (en) * 2023-11-08 2024-01-26 山东汇蓝环保科技有限公司 Environmental data monitoring method based on multidimensional data analysis
CN117576100A (en) * 2024-01-16 2024-02-20 浙江合丰科技有限公司 Surface defect grading detection and evaluation method for FPC connector
CN117576100B (en) * 2024-01-16 2024-03-22 浙江合丰科技有限公司 Surface defect grading detection and evaluation method for FPC connector

Also Published As

Publication number Publication date
CN114693696A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
WO2022142628A1 (en) Point cloud data processing method and device
EP3620823B1 (en) Method and device for detecting precision of internal parameter of laser radar
WO2021097618A1 (en) Point cloud segmentation method and system, and computer storage medium
CN111192295B (en) Target detection and tracking method, apparatus, and computer-readable storage medium
CN108109139B (en) Airborne LIDAR three-dimensional building detection method based on gray voxel model
CN111080662A (en) Lane line extraction method and device and computer equipment
CN110349092B (en) Point cloud filtering method and device
CN108074232B (en) Voxel segmentation-based airborne LIDAR building detection method
CN111553946B (en) Method and device for removing ground point cloud and method and device for detecting obstacle
WO2022206517A1 (en) Target detection method and apparatus
CN115436910B (en) Data processing method and device for performing target detection on laser radar point cloud
US20240071099A1 (en) Method and device for estimating position of networked vehicle based on independent non-uniform increment sampling
WO2023179718A1 (en) Point cloud processing method and apparatus for lidar, and device and storage medium
WO2023002093A1 (en) Systems and methods for determining road traversability using real time data and a trained model
CN117590362B (en) Multi-laser radar external parameter calibration method, device and equipment
WO2022099620A1 (en) Three-dimensional point cloud segmentation method and apparatus, and mobile platform
CN113345072A (en) Multi-view remote sensing topographic image point cloud reconstruction method and system
CN113763438B (en) Point cloud registration method, device, equipment and storage medium
CN116467848B (en) Millimeter wave radar point cloud simulation method and device
CN114677435A (en) Point cloud panoramic fusion element extraction method and system
CN113052118A (en) Method, system, device, processor and storage medium for realizing scene change video analysis and detection based on high-speed dome camera
CN115147803A (en) Object detection method and device
CN116965802A (en) Pedestrian height measurement method and device, computer equipment and storage medium
CN116664809A (en) Three-dimensional information acquisition method, three-dimensional information acquisition device, computer equipment, storage medium and product
CN115527034A (en) Vehicle end point cloud dynamic and static segmentation method, device and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21913373

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21913373

Country of ref document: EP

Kind code of ref document: A1