CN119941550B - Dynamic obstacle point cloud filtering method and device - Google Patents
Dynamic obstacle point cloud filtering method and deviceInfo
- Publication number
- CN119941550B CN119941550B CN202411863017.XA CN202411863017A CN119941550B CN 119941550 B CN119941550 B CN 119941550B CN 202411863017 A CN202411863017 A CN 202411863017A CN 119941550 B CN119941550 B CN 119941550B
- Authority
- CN
- China
- Prior art keywords
- point cloud
- dynamic
- grid
- point
- cloud data
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Image Analysis (AREA)
Abstract
本申请实施例公开了一种动态障碍物点云滤除方法,方法包括:获取包含目标区域的帧图像和惯性测量数据;利用迭代误差卡尔曼滤波算法,获得第二点云数据和帧图像的位姿信息;利用配准算法确定,获得全局坐标系下的第三点云数据;将第三点云数据覆盖的空间范围划分为网格单元,统计每个网格单元中的点云数量和点云高度方差;若点云数量超过第一阈值且点云数量与历史帧点云数量之间方差差值绝对值超过第二阈值,则判定为动态栅格;若动态性置信度低于设定阈值,则将动态栅格重新标记为静态栅格;通过空间区域增长算法,获得动态障碍物的点云,并将动态障碍物的点云滤除,获得目标区域的静态点云数据。本申请实现了对动态障碍物点云的有效滤除。
The present application discloses a method for filtering out dynamic obstacle point clouds, comprising: obtaining a frame image and inertial measurement data containing a target area; obtaining second point cloud data and the pose information of the frame image using an iterative error Kalman filter algorithm; obtaining third point cloud data in a global coordinate system using a registration algorithm; dividing the spatial range covered by the third point cloud data into grid cells, and counting the number of point clouds and the point cloud height variance in each grid cell; determining a dynamic grid if the number of point clouds exceeds a first threshold and the absolute value of the variance difference between the number of point clouds and the number of historical frame point clouds exceeds a second threshold; re-marking the dynamic grid as a static grid if the dynamic confidence is lower than a set threshold; obtaining a point cloud of dynamic obstacles using a spatial region growing algorithm, and filtering out the point cloud of dynamic obstacles to obtain static point cloud data of the target area. The present application achieves effective filtering of dynamic obstacle point clouds.
Description
技术领域Technical Field
本申请涉及计算机视觉技术领域,特别是涉及一种动态障碍物点云提取方法及装置。The present application relates to the field of computer vision technology, and in particular to a method and device for extracting dynamic obstacle point clouds.
背景技术Background Art
在自主驾驶和机器人导航中,常用激光雷达实时获取周围环境的三维点云数据。点云数据中包含了静态障碍物(如建筑、道路、固定设施等)和动态障碍物(如行人、车辆、动物等)。在动态环境中,如何高效、准确地去除动态障碍物成为点云处理中的重要问题。In autonomous driving and robotic navigation, LiDAR (LiDAR) is often used to acquire real-time 3D point cloud data of the surrounding environment. This point cloud data contains both static obstacles (such as buildings, roads, and fixed facilities) and dynamic obstacles (such as pedestrians, vehicles, and animals). In dynamic environments, efficiently and accurately removing dynamic obstacles becomes a critical issue in point cloud processing.
现有方法通常依赖于静态环境建模与动态障碍物检测的分离,但在实时处理和复杂环境中的应用仍然存在困难。因此,如何精确、实时地从点云数据中去除动态障碍物,是一个需要解决的重要技术问题。Existing methods typically rely on the separation of static environment modeling and dynamic obstacle detection, but still have difficulties in real-time processing and application in complex environments. Therefore, how to accurately and in real time remove dynamic obstacles from point cloud data is an important technical problem that needs to be solved.
发明内容Summary of the Invention
本申请提供了一种动态障碍物点云滤除方法和装置,实现对动态障碍物点云的有效滤除。The present application provides a method and device for filtering dynamic obstacle point clouds, which can effectively filter dynamic obstacle point clouds.
本申请提供了如下方案:This application provides the following solutions:
根据第一方面,提供了一种动态障碍物点云滤除方法,所述方法包括:获取一个以上的包含目标区域的帧图像和每一个所述帧图像对应的惯性测量数据;针对每一个所述帧图像,生成第一点云数据;利用迭代误差卡尔曼滤波算法,将所述第一点云数据与所述惯性测量数据进行融合,获得第二点云数据和所述帧图像的位姿信息;利用配准算法,根据所述位姿信息确定所述帧图像相对于参考帧的位姿变换矩阵;利用所述位姿变换矩阵,将所述第二点云数据从局部坐标系转换到全局坐标系下进行表示,并获得全局坐标系下的第三点云数据;在所述全局坐标系下,将所述第三点云数据覆盖的空间范围划分为一个以上的网格单元,并统计每个所述网格单元中的点云数量和点云高度方差;根据所述点云高度方差,利用平面拟合算法判断所述网格单元是否为地面网格单元,并对判断为地面网格单元中的所述第三点云数据进行滤除;若当前帧所述点云数量超过第一阈值且当前帧所述点云数量与历史帧点云数量之间方差差值的绝对值超过第二阈值,则标记所述网格单元为动态栅格;获取所述动态栅格的历史帧信息,所述历史帧信息为当前所述动态栅格对应的当前帧图像的前一个或一个以上的帧图像在所述动态栅格中的所述点云数量和所述点云高度方差;利用时间序列分析算法对所述历史帧信息进行处理,计算动态栅格的动态性置信度;若所述动态性置信度低于设定阈值,则将所述动态栅格的标记修改为静态栅格;针对标记为动态栅格的所述网格单元,通过空间区域增长算法,获得动态障碍物的点云,并将所述动态障碍物的点云从所述第三点云数据中滤除,获得所述目标区域的静态点云数据。According to a first aspect, a method for filtering out a dynamic obstacle point cloud is provided, the method comprising: acquiring one or more frame images containing a target area and inertial measurement data corresponding to each of the frame images; generating first point cloud data for each of the frame images; utilizing an iterative error Kalman filter algorithm to fuse the first point cloud data with the inertial measurement data to obtain second point cloud data and the pose information of the frame image; utilizing a registration algorithm to determine a pose transformation matrix of the frame image relative to a reference frame based on the pose information; utilizing the pose transformation matrix to transform the second point cloud data from a local coordinate system to a global coordinate system for representation, and obtaining third point cloud data in the global coordinate system; in the global coordinate system, dividing the spatial range covered by the third point cloud data into one or more grid cells, and counting the number of point clouds and the point cloud height variance in each of the grid cells; utilizing a plane fitting algorithm to determine whether the grid cell is If it is not a ground grid unit, the third point cloud data judged as a ground grid unit is filtered out; if the number of point clouds in the current frame exceeds a first threshold and the absolute value of the variance difference between the number of point clouds in the current frame and the number of point clouds in the historical frame exceeds a second threshold, the grid unit is marked as a dynamic grid; historical frame information of the dynamic grid is obtained, and the historical frame information is the number of point clouds and the point cloud height variance of one or more frame images before the current frame image corresponding to the current dynamic grid in the dynamic grid; the historical frame information is processed by a time series analysis algorithm to calculate the dynamic confidence of the dynamic grid; if the dynamic confidence is lower than the set threshold, the mark of the dynamic grid is modified to a static grid; for the grid unit marked as a dynamic grid, a point cloud of a dynamic obstacle is obtained by a spatial region growing algorithm, and the point cloud of the dynamic obstacle is filtered out from the third point cloud data to obtain static point cloud data of the target area.
根据本申请实施例中一可实现的方式,所述利用配准算法,根据所述位姿信息确定所述帧图像相对于参考帧的位姿变换矩阵包括:获取所述参考帧的点云数据;利用点到点迭代最近点算法,生成所述第二点云数据和所述参考帧点云数据的初始位姿变换矩阵;利用梯度下降算法对所述初始位姿变换矩阵进行优化,获得所述位姿变换矩阵。According to an implementable method in an embodiment of the present application, the use of a registration algorithm to determine the pose transformation matrix of the frame image relative to the reference frame based on the pose information includes: obtaining point cloud data of the reference frame; using a point-to-point iterative nearest point algorithm to generate an initial pose transformation matrix of the second point cloud data and the reference frame point cloud data; and using a gradient descent algorithm to optimize the initial pose transformation matrix to obtain the pose transformation matrix.
根据本申请实施例中一可实现的方式,所述在所述全局坐标系下,将所述第三点云数据覆盖的空间范围划分为一个以上的网格单元包括:针对全局坐标系的所述第三点云数据生成三维包围盒,对所述包围盒沿三维坐标系中的三个互相垂直的坐标轴方向进行非均匀划分,并根据所述第三点云数据的分布特性自适应调整网格分辨率;为每个所述网格单元分配一个多维索引,并将所述第三点云数据分配到对应的网格单元中。According to an achievable method in an embodiment of the present application, dividing the spatial range covered by the third point cloud data into more than one grid units in the global coordinate system includes: generating a three-dimensional bounding box for the third point cloud data in the global coordinate system, non-uniformly dividing the bounding box along three mutually perpendicular coordinate axis directions in the three-dimensional coordinate system, and adaptively adjusting the grid resolution according to the distribution characteristics of the third point cloud data; assigning a multidimensional index to each of the grid units, and assigning the third point cloud data to the corresponding grid unit.
根据本申请实施例中一可实现的方式,所述利用时间序列分析对所述历史帧信息进行处理,计算动态栅格的动态性置信度包括:根据所述历史帧信息中对应的所述动态栅格中的所述点云数量和所述点云高度方差构建点云数量时间序列和点云高度方差时间序列;根据所述点云数量时间序列和所述点云高度方差时间序列,计算所述动态栅格中点云数量和高度方差的变化率、稳定性和变化趋势;根据所述变化率、稳定性和变化趋势,定义动态性置信度公式,并根据所述动态性置信度公式计算所述动态性置信度。According to an implementable method in an embodiment of the present application, the use of time series analysis to process the historical frame information and calculate the dynamic confidence of the dynamic grid includes: constructing a point cloud quantity time series and a point cloud height variance time series based on the point cloud quantity and the point cloud height variance in the dynamic grid corresponding to the historical frame information; calculating the rate of change, stability and change trend of the point cloud quantity and height variance in the dynamic grid based on the point cloud quantity time series and the point cloud height variance time series; defining a dynamic confidence formula based on the change rate, stability and change trend, and calculating the dynamic confidence based on the dynamic confidence formula.
根据本申请实施例中一可实现的方式,所述根据所述点云高度方差,利用平面拟合算法判断所述网格单元是否为地面网格单元,并对判断为地面网格单元中的所述第三点云数据进行滤除包括:基于每个所述网格单元中的点云数据,采用随机采样一致性算法进行平面模型拟合,获得拟合平面;计算所述第三点云数据中的每个点与所述拟合平面之间的垂直距离,根据距离阈值判断其是否为地面点,将满足距离阈值条件的点从点云数据中去除;其中,所述距离阈值基于所述点云高度方差进行动态调整。According to an implementable method in an embodiment of the present application, the plane fitting algorithm is used to determine whether the grid unit is a ground grid unit based on the point cloud height variance, and the third point cloud data determined to be a ground grid unit is filtered out, including: based on the point cloud data in each of the grid cells, a random sampling consistency algorithm is used to perform plane model fitting to obtain a fitting plane; the vertical distance between each point in the third point cloud data and the fitting plane is calculated, and whether it is a ground point is determined based on a distance threshold, and the points that meet the distance threshold condition are removed from the point cloud data; wherein, the distance threshold is dynamically adjusted based on the point cloud height variance.
根据本申请实施例中一可实现的方式,所述针对标记为动态栅格的所述网格单元,通过空间区域增长算法,获得动态障碍物的点云,并将所述动态障碍物的点云从所述第三点云数据中滤除包括:从所述动态栅格中,根据预设指标选定初始种子点云,根据距离度量和点云密度函数,从所述初始种子点云进行区域扩展,将邻近点云纳入扩展区域形成连续的点云区域;利用聚类算法将所述连续的点云区域区分割成多个独立区域,从所述独立区域中滤除动态障碍物的点云。According to an achievable method in an embodiment of the present application, for the grid unit marked as a dynamic grid, obtaining a point cloud of a dynamic obstacle through a spatial region growing algorithm, and filtering out the point cloud of the dynamic obstacle from the third point cloud data includes: selecting an initial seed point cloud from the dynamic grid according to preset indicators, performing regional expansion from the initial seed point cloud according to a distance metric and a point cloud density function, incorporating adjacent point clouds into the expanded area to form a continuous point cloud area; and using a clustering algorithm to divide the continuous point cloud area into multiple independent areas, and filtering out the point cloud of the dynamic obstacle from the independent areas.
根据本申请实施例中一可实现的方式,所述根据所述变化率、稳定性和变化趋势,定义动态性置信度公式包括:划分多个不同的时间区间;获取所述历史帧信息的时间戳信息,根据所述时间戳信息,将所述历史帧信息划分到相应的时间区间内;根据不同时间区间内点云数量和高度方差的重要性差异,为不同时间区间内的变化率、稳定性和变化趋势设置不同的权重,根据所述权重确定动态性置信度公式。According to an achievable method in an embodiment of the present application, defining a dynamic confidence formula based on the change rate, stability and change trend includes: dividing a plurality of different time intervals; obtaining the timestamp information of the historical frame information, and dividing the historical frame information into corresponding time intervals based on the timestamp information; setting different weights for the change rate, stability and change trend in different time intervals based on the importance differences of the number of point clouds and height variance in different time intervals, and determining a dynamic confidence formula based on the weights.
根据第二方面,提供了一种动态障碍物点云滤除装置,所述装置包括:数据获取单元,被配置为获取一个以上的包含目标区域的帧图像和每一个所述帧图像对应的惯性测量数据;数据融合单元,被配置为针对每一个所述帧图像,生成第一点云数据;利用迭代误差卡尔曼滤波算法,将所述第一点云数据与所述惯性测量数据进行融合,获得第二点云数据和所述帧图像的位姿信息;坐标转换单元,被配置为利用配准算法,根据所述位姿信息确定所述帧图像相对于参考帧的位姿变换矩阵;利用所述位姿变换矩阵,将所述第二点云数据从局部坐标系转换到全局坐标系下进行表示,并获得全局坐标系下的第三点云数据;网格数据统计单元,被配置为在所述全局坐标系下,将所述第三点云数据覆盖的空间范围划分为一个以上的网格单元,并统计每个所述网格单元中的点云数量和点云高度方差;地面点云滤除单元,被配置为根据所述点云高度方差,利用平面拟合算法判断所述网格单元是否为地面网格单元,并对判断为地面网格单元中的所述第三点云数据进行滤除;动态栅格判断单元,被配置为若当前帧所述点云数量超过第一阈值且当前帧所述点云数量与历史帧点云数量之间方差差值的绝对值超过第二阈值,则标记所述网格单元为动态栅格;获取所述动态栅格的历史帧信息,所述历史帧信息为当前所述动态栅格对应的所述帧图像的前一个或一个以上的帧图像在所述动态栅格中的所述点云数量和所述点云高度方差;利用时间序列分析算法对所述历史帧信息进行处理,计算动态栅格的动态性置信度;若所述动态性置信度低于设定阈值,则将所述动态栅格的标记修改为静态栅格;动态点云滤除单元,被配置为针对标记为动态栅格的所述网格单元,通过空间区域增长算法,获得动态障碍物的点云,并将所述动态障碍物的点云从所述第三点云数据中滤除,获得所述目标区域的静态点云数据。According to a second aspect, a dynamic obstacle point cloud filtering device is provided, the device comprising: a data acquisition unit, configured to acquire one or more frame images containing a target area and inertial measurement data corresponding to each of the frame images; a data fusion unit, configured to generate first point cloud data for each of the frame images; using an iterative error Kalman filter algorithm, the first point cloud data is fused with the inertial measurement data to obtain second point cloud data and the pose information of the frame image; a coordinate conversion unit, configured to use a registration algorithm to determine the pose transformation matrix of the frame image relative to a reference frame according to the pose information; using the pose transformation matrix, the second point cloud data is converted from a local coordinate system to a global coordinate system for representation, and third point cloud data in the global coordinate system is obtained; a grid data statistics unit, configured to divide the spatial range covered by the third point cloud data into one or more grid cells in the global coordinate system, and count the number of point clouds and the point cloud height variance in each of the grid cells; a ground point cloud filtering unit, configured to use the point cloud height variance to obtain the third point cloud data. A plane fitting algorithm is used to determine whether the grid cell is a ground grid cell, and the third point cloud data in the grid cell determined to be a ground grid cell is filtered out. A dynamic grid determination unit is configured to mark the grid cell as a dynamic grid if the number of point clouds in the current frame exceeds a first threshold and the absolute value of the variance difference between the number of point clouds in the current frame and the number of point clouds in the historical frame exceeds a second threshold. Historical frame information of the dynamic grid is obtained, where the historical frame information is the number of point clouds and the point cloud height variance in the dynamic grid in one or more frame images preceding the frame image corresponding to the current dynamic grid. The historical frame information is processed using a time series analysis algorithm to calculate the dynamic confidence of the dynamic grid. If the dynamic confidence is lower than a set threshold, the label of the dynamic grid is changed to a static grid. A dynamic point cloud filtering unit is configured to obtain a point cloud of a dynamic obstacle using a spatial region growing algorithm for the grid cell marked as a dynamic grid, and filter the point cloud of the dynamic obstacle from the third point cloud data to obtain static point cloud data of the target area.
根据第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述第一方面中任一项所述的方法的步骤。According to a third aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of any one of the methods according to the first aspect are implemented.
根据第四方面,提供了一种电子设备,包括:一个或多个处理器;以及与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行上述第一方面中任一项所述的方法的步骤。According to a fourth aspect, an electronic device is provided, comprising: one or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, which, when read and executed by the one or more processors, execute the steps of the method described in any one of the above-mentioned first aspects.
根据本申请提供的具体实施例,本申请公开了以下技术效果:According to the specific embodiments provided in this application, this application discloses the following technical effects:
(1)本方法通过获取包含目标区域的多个帧图像及其对应的惯性测量数据,生成第一点云数据,并通过迭代误差卡尔曼滤波算法与惯性测量数据融合,得到第二点云数据和帧图像的位姿信息。采用配准算法进一步确定位姿变换矩阵并将数据转换到全局坐标系下。通过网格化处理和统计分析,识别动态栅格,结合时间序列分析计算动态性置信度,从而准确识别和滤除动态障碍物的点云。这种方法的优势在于提高了动态障碍物的检测精度,减少了环境建模中的干扰。(1) This method generates the first point cloud data by acquiring multiple frame images containing the target area and their corresponding inertial measurement data, and then fuses the inertial measurement data with the iterative error Kalman filter algorithm to obtain the second point cloud data and the pose information of the frame image. The registration algorithm is used to further determine the pose transformation matrix and convert the data into a global coordinate system. Through grid processing and statistical analysis, dynamic grids are identified, and the dynamic confidence is calculated in combination with time series analysis, so as to accurately identify and filter out the point cloud of dynamic obstacles. The advantage of this method is that it improves the detection accuracy of dynamic obstacles and reduces interference in environmental modeling.
(2)本申请采用点到点迭代最近点算法和梯度下降优化算法进行位姿变换矩阵的计算与优化,进一步增强了点云数据的空间一致性和精度,显著减少数据配准过程中的误差,提高后续处理的稳定性与准确性。(2) This application uses a point-to-point iterative closest point algorithm and a gradient descent optimization algorithm to calculate and optimize the pose transformation matrix, further enhancing the spatial consistency and accuracy of point cloud data, significantly reducing errors in the data registration process, and improving the stability and accuracy of subsequent processing.
(3)本申请在全局坐标系下进行网格划分时,利用三维包围盒和非均匀分辨率调整技术,能更精确地反映点云数据的分布特性。此方法使得每个网格单元的分析更加细致,提升了动态栅格的检测与分辨率,进一步增强了静态与动态障碍物的区分度。(3) This application utilizes three-dimensional bounding boxes and non-uniform resolution adjustment technology when performing grid division in a global coordinate system, which can more accurately reflect the distribution characteristics of point cloud data. This method enables more detailed analysis of each grid cell, improves the detection and resolution of dynamic grids, and further enhances the differentiation between static and dynamic obstacles.
(4)本申请通过时间序列分析计算动态栅格的动态性置信度,该方法能够有效评估每个网格单元的动态行为,降低误判率。动态性置信度的引入使得动态栅格的判定更为科学,避免了因环境变动导致的误判或漏检问题。(4) This application calculates the dynamic confidence of the dynamic grid through time series analysis. This method can effectively evaluate the dynamic behavior of each grid cell and reduce the false positive rate. The introduction of dynamic confidence makes the judgment of the dynamic grid more scientific and avoids the problem of false positives or missed detections caused by environmental changes.
(5)本申请基于随机采样一致性算法的平面拟合方法能够精确地识别地面网格并去除地面点。此方法通过动态调整距离阈值,适应不同环境条件,保证了地面点的准确剔除,从而提高了滤除效率和点云数据质量。(5) The plane fitting method based on the random sampling consistency algorithm in this application can accurately identify the ground grid and remove ground points. This method ensures the accurate removal of ground points by dynamically adjusting the distance threshold to adapt to different environmental conditions, thereby improving the filtering efficiency and point cloud data quality.
(6)本申请通过空间区域增长算法对动态栅格进行点云滤除,该方法能有效从复杂点云中分离出动态障碍物。利用聚类算法对点云区域进行细分,确保动态障碍物能够被准确检测和滤除。此技术能够显著改善环境感知系统的实时性与可靠性。(6) This application uses a spatial region growing algorithm to filter out point clouds from dynamic grids. This method can effectively separate dynamic obstacles from complex point clouds. A clustering algorithm is used to subdivide the point cloud regions, ensuring that dynamic obstacles can be accurately detected and filtered out. This technology can significantly improve the real-time performance and reliability of environmental perception systems.
(7)本申请通过对动态性置信度公式的定义和时间区间的权重调整,提高了对动态栅格动态性变化的敏感性。结合历史数据的时间戳信息进行分析,使得动态性置信度更加贴近实际环境的变化情况,有助于动态栅格的更准确识别与处理,提升了系统的整体性能。(7) This application improves the sensitivity to dynamic changes in dynamic grids by defining a dynamic confidence formula and adjusting the weight of time intervals. By combining analysis with the timestamp information of historical data, the dynamic confidence is more closely aligned with actual environmental changes, facilitating more accurate identification and processing of dynamic grids and improving the overall performance of the system.
当然,实施本申请的任一产品并不一定需要同时达到以上所述的所有优点。Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
图1为本申请实施例所适用的系统架构图;FIG1 is a diagram of a system architecture applicable to an embodiment of the present application;
图2为本申请实施例提供的动态障碍物点云滤除方法的流程图;FIG2 is a flow chart of a method for filtering a dynamic obstacle point cloud according to an embodiment of the present application;
图3为本申请实施例提供的动态障碍物点云滤除方法的过程示意图;FIG3 is a schematic diagram of the process of a dynamic obstacle point cloud filtering method provided by an embodiment of the present application;
图4为本申请实施例提供的动态障碍物点云滤除装置的结构框图;FIG4 is a structural block diagram of a dynamic obstacle point cloud filtering device provided in an embodiment of the present application;
图5为本申请实施例提供的电子设备的示意性框图。FIG5 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "an", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and/or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character "/" in this document generally indicates that the associated objects are in an "or" relationship.
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。The word "if," as used herein, may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
目前已经存在一些技术动态障碍物点云滤除方法,这些方法大多依赖于运动检测、模型预测等技术。然而,这些方法需要额外的计算资源和复杂的算法设计,且在复杂的动态场景中点云滤除的准确率较低。Currently, there are some technical methods for filtering dynamic obstacle point clouds, most of which rely on motion detection, model prediction, and other technologies. However, these methods require additional computing resources and complex algorithm design, and the accuracy of point cloud filtering in complex dynamic scenes is low.
有鉴于此,本申请提供了一种新的思路。为了方便对本申请的理解,首先对本申请所基于的系统架构进行描述。图1示出了可以应用本申请实施例的示例性系统架构,如图1中所示,该系统架构可以包括:用户设备和位于服务器端的动态障碍物点云滤除装置。In view of this, the present application provides a new approach. To facilitate understanding of the present application, the system architecture on which the present application is based is first described. Figure 1 shows an exemplary system architecture to which embodiments of the present application can be applied. As shown in Figure 1, the system architecture may include: a user device and a dynamic obstacle point cloud filtering device located on the server side.
用户可以通过用户设备输入帧图像和惯性测量数据,并通过用户设备将其发送给服务器端的动态障碍物点云滤除装置。动态障碍物点云滤除装置可以采用本申请实施例中提供的方法,针对帧图像中的点云数据进行动态障碍物点云滤除,得到目标区域的静态点云数据。服务器端可以响应于用户终端的请求,将目标区域的静态点云数据发送给用户终端,由用户终端利用三维实景模型进行渲染,得到二维图像、三维图像、VR(虚拟现实)场景或AR(增强现实)场景等。The user can input frame images and inertial measurement data through the user device, and send them to the dynamic obstacle point cloud filtering device on the server side through the user device. The dynamic obstacle point cloud filtering device can use the method provided in the embodiments of the present application to perform dynamic obstacle point cloud filtering on the point cloud data in the frame image to obtain static point cloud data of the target area. In response to the request of the user terminal, the server side can send the static point cloud data of the target area to the user terminal, and the user terminal can render it using the three-dimensional real scene model to obtain a two-dimensional image, a three-dimensional image, a VR (virtual reality) scene, or an AR (augmented reality) scene, etc.
其中,用户设备可以包括但不限于诸如:智能移动终端、智能家居设备、可穿戴式设备、PC(Personal Computer,个人计算机)等。其中智能移动设备可以包括诸如手机、平板电脑、笔记本电脑、PDA(Personal Digital Assistant,个人数字助理)、互联网汽车等。智能家居设备可以包括智能电视、智能冰箱等等。可穿戴式设备可以包括诸如智能手表、智能眼镜、虚拟现实设备、增强现实设备、混合现实设备(即可以支持虚拟现实和增强现实的设备)等等。User devices may include, but are not limited to, smart mobile terminals, smart home devices, wearable devices, and personal computers (PCs). Smart mobile devices may include mobile phones, tablets, laptops, PDAs (Personal Digital Assistants), and internet-connected cars. Smart home devices may include smart TVs and smart refrigerators. Wearable devices may include smart watches, smart glasses, virtual reality devices, augmented reality devices, and mixed reality devices (i.e., devices that support both virtual reality and augmented reality).
动态障碍物点云滤除装置可以设置为独立的服务器,也可以设置为服务器群组,还可以设置于云服务器。云服务器又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决传统物理主机与虚拟专用服务器(VPS,Virtual Private Server)服务中存在的管理难度大,服务扩展性弱的缺陷。除了图1所示架构之外,动态障碍物点云滤除装置还可以设置于具有较强计算能力的计算机终端。The dynamic obstacle point cloud filtering device can be deployed as a standalone server, in a server cluster, or even on a cloud server. A cloud server, also known as a cloud computing server or cloud host, is a host product within the cloud computing service ecosystem. It addresses the management difficulties and scalability limitations of traditional physical hosts and virtual private servers (VPS). In addition to the architecture shown in Figure 1, the dynamic obstacle point cloud filtering device can also be deployed on a computer terminal with high computing power.
应该理解,图1中的用户设备和动态障碍物点云滤除装置仅仅是示意性的。根据实现需要,可以具有任意数目的用户设备和动态障碍物点云滤除装置。It should be understood that the user equipment and the dynamic obstacle point cloud filtering device in FIG1 are merely illustrative and any number of user equipment and dynamic obstacle point cloud filtering devices may be provided according to implementation requirements.
图2为本申请实施例提供的动态障碍物点云滤除方法流程图,该方法可以由图1所示系统中的动态障碍物点云滤除装置执行。如图2中所示,该方法可以包括以下步骤:FIG2 is a flow chart of a method for filtering a dynamic obstacle point cloud provided by an embodiment of the present application. The method can be executed by the dynamic obstacle point cloud filtering device in the system shown in FIG1. As shown in FIG2, the method can include the following steps:
步骤201:获取一个以上的包含目标区域的帧图像和每一个所述帧图像对应的惯性测量数据。Step 201: Acquire one or more frame images containing a target area and inertial measurement data corresponding to each frame image.
步骤202:针对每一个所述帧图像,生成第一点云数据;利用迭代误差卡尔曼滤波算法,将所述第一点云数据与所述惯性测量数据进行融合,获得第二点云数据和所述帧图像的位姿信息。Step 202: For each of the frame images, generate first point cloud data; use an iterative error Kalman filter algorithm to fuse the first point cloud data with the inertial measurement data to obtain second point cloud data and the pose information of the frame image.
步骤203:利用配准算法,根据所述位姿信息确定所述帧图像相对于参考帧的位姿变换矩阵;利用所述位姿变换矩阵,将所述第二点云数据从局部坐标系转换到全局坐标系下进行表示,并获得全局坐标系下的第三点云数据。Step 203: Using a registration algorithm, determine the pose transformation matrix of the frame image relative to the reference frame based on the pose information; using the pose transformation matrix, transform the second point cloud data from the local coordinate system to the global coordinate system for representation, and obtain the third point cloud data in the global coordinate system.
步骤204:在所述全局坐标系下,将所述第三点云数据覆盖的空间范围划分为一个以上的网格单元,并统计每个所述网格单元中的点云数量和点云高度方差。Step 204: In the global coordinate system, the spatial range covered by the third point cloud data is divided into one or more grid units, and the number of point clouds and the point cloud height variance in each grid unit are counted.
步骤205:根据所述点云高度方差,利用平面拟合算法判断所述网格单元是否为地面网格单元,并对判断为地面网格单元中的所述第三点云数据进行滤除。Step 205: Based on the point cloud height variance, a plane fitting algorithm is used to determine whether the grid unit is a ground grid unit, and the third point cloud data determined to be a ground grid unit is filtered out.
步骤206:若当前帧所述点云数量超过第一阈值且当前帧所述点云数量与历史帧点云数量之间方差差值的绝对值超过第二阈值,则标记所述网格单元为动态栅格;获取所述动态栅格的历史帧信息,所述历史帧信息为当前所述动态栅格对应的所述帧图像的前一个或一个以上的帧图像在所述动态栅格中的所述点云数量和所述点云高度方差;利用时间序列分析算法对所述历史帧信息进行处理,计算动态栅格的动态性置信度;若所述动态性置信度低于设定阈值,则将所述动态栅格的标记修改为静态栅格。Step 206: If the number of point clouds in the current frame exceeds a first threshold and the absolute value of the variance difference between the number of point clouds in the current frame and the number of point clouds in the historical frame exceeds a second threshold, the grid unit is marked as a dynamic grid; historical frame information of the dynamic grid is obtained, where the historical frame information is the number of point clouds and the point cloud height variance in the dynamic grid of one or more frame images before the frame image corresponding to the current dynamic grid; the historical frame information is processed using a time series analysis algorithm to calculate the dynamic confidence of the dynamic grid; if the dynamic confidence is lower than a set threshold, the mark of the dynamic grid is changed to a static grid.
步骤207:针对标记为动态栅格的所述网格单元,通过空间区域增长算法,获得动态障碍物的点云,并将所述动态障碍物的点云从所述第三点云数据中滤除,获得所述目标区域的静态点云数据。Step 207: For the grid cells marked as dynamic grids, a point cloud of a dynamic obstacle is obtained by using a spatial region growing algorithm, and the point cloud of the dynamic obstacle is filtered out from the third point cloud data to obtain static point cloud data of the target area.
由上述流程可以看出,本方法通过获取包含目标区域的多个帧图像及其对应的惯性测量数据,生成第一点云数据,并通过迭代误差卡尔曼滤波算法与惯性测量数据融合,得到第二点云数据和帧图像的位姿信息。采用配准算法进一步确定位姿变换矩阵并将数据转换到全局坐标系下。通过网格化处理和统计分析,识别动态栅格,结合时间序列分析计算动态性置信度,从而准确识别和滤除动态障碍物的点云。这种方法的优势在于提高了动态障碍物的检测精度,减少了环境建模中的干扰。通过多帧图像和惯性测量数据的融合,结合时间序列分析和空间区域增长算法,提升了对动态障碍物的检测的精确度。As can be seen from the above process, this method generates first point cloud data by acquiring multiple frame images containing the target area and their corresponding inertial measurement data. This data is then fused with the inertial measurement data through an iterative error Kalman filter algorithm to obtain the second point cloud data and the pose information of the frame images. A registration algorithm is used to further determine the pose transformation matrix and convert the data to a global coordinate system. Dynamic grids are identified through gridding and statistical analysis, and dynamic confidence is calculated using time series analysis to accurately identify and filter out point clouds of dynamic obstacles. The advantage of this method is that it improves the detection accuracy of dynamic obstacles and reduces interference in environmental modeling. By fusing multiple frames of images and inertial measurement data, combined with time series analysis and a spatial region growing algorithm, the accuracy of dynamic obstacle detection is improved.
下面结合实施例分别对上述流程中的各步骤以及能够进一步产生的效果进行详细描述。需要说明的是,本公开中涉及的“第一”、“第二”等限定并不具备大小、顺序和数量等方面的限制,仅仅用以在名称上加以区分,例如“第一点云数据”和“第二点云数据”用以区分两组点云数据。The following describes in detail each step of the above process and the effects that can be produced, in conjunction with the embodiments. It should be noted that the terms "first" and "second" in this disclosure do not restrict the size, order, or quantity, but are merely used to distinguish between the two sets of point cloud data. For example, "first point cloud data" and "second point cloud data" are used to distinguish between the two sets of point cloud data.
首先结合实施例对上述步骤201即“获取一个以上的包含目标区域的帧图像和每一个所述帧图像对应的惯性测量数据”进行详细描述。First, the above step 201 , namely “obtaining one or more frame images including a target area and inertial measurement data corresponding to each frame image”, is described in detail with reference to an embodiment.
本申请中,目标区域为需要执行动态点云滤除的区域,帧图像包含目标区域。帧图像为连续图像帧,这些图像帧能够表示某一特定区域或场景中的视角信息。优选地,可以采用激光雷达获取帧图像,激光雷达设备会在一个固定时间间隔内完成一次扫描,生成一帧数据。不同的激光雷达设备扫描速度不同,扫描频率(每秒钟扫描的帧数)可以是几十帧到几百帧不等。In this application, the target area is the area where dynamic point cloud filtering needs to be performed, and the frame image contains the target area. The frame image is a continuous image frame, which can represent the perspective information in a specific area or scene. Preferably, a laser radar can be used to obtain the frame image. The laser radar device completes a scan within a fixed time interval to generate a frame of data. Different laser radar devices have different scanning speeds, and the scanning frequency (the number of frames scanned per second) can range from tens of frames to hundreds of frames.
惯性测量数据则来自惯性测量单元(Inertial Measurement Unit,IMU),IMU是一种用于测量和报告物体在三维空间中运动状态的电子设备,通常包括加速度计和陀螺仪,有时还包括磁力计。惯性测量数据包含设备在特定时间点的加速度、角速度和其他运动参数。通过获取这些数据,可以将帧图像与其对应的运动信息进行匹配,从而实现更高精度的点云数据处理。在获取惯性测量数据后,可以对惯性测量数据进行预处理,如进行去噪、低通滤波和时间同步等操作,从而提升惯性测量数据的准确性。Inertial measurement data comes from an inertial measurement unit (IMU), an electronic device used to measure and report the motion state of an object in three-dimensional space. It usually includes an accelerometer, a gyroscope, and sometimes a magnetometer. Inertial measurement data contains the acceleration, angular velocity, and other motion parameters of the device at a specific point in time. By obtaining this data, the frame image can be matched with its corresponding motion information, thereby achieving higher-precision point cloud data processing. After obtaining the inertial measurement data, the inertial measurement data can be preprocessed, such as denoising, low-pass filtering, and time synchronization, to improve the accuracy of the inertial measurement data.
下面结合实施例对上述步骤202即“针对每一个所述帧图像,生成第一点云数据;利用迭代误差卡尔曼滤波算法,将所述第一点云数据与所述惯性测量数据进行融合,获得第二点云数据和所述帧图像的位姿信息”进行详细描述。The above-mentioned step 202, namely "generating first point cloud data for each of the frame images; fusing the first point cloud data with the inertial measurement data using an iterative error Kalman filter algorithm to obtain second point cloud data and the pose information of the frame image" is described in detail below in conjunction with an embodiment.
本申请中,第一点云数据是通过激光雷达采集的原始点云数据,该数据由激光雷达设备通过扫描特定环境区域生成。每一个帧图像都代表了在某一时间点激光雷达设备获取的空间数据,包含了从目标区域反射回来的激光光束的距离和方向信息。In this application, the first point cloud data is raw point cloud data collected by a LiDAR device, which is generated by the LiDAR device by scanning a specific environment area. Each frame image represents the spatial data acquired by the LiDAR device at a specific point in time, including the distance and direction of the laser beam reflected from the target area.
迭代误差卡尔曼滤波算法是一种用于融合多源数据的递归滤波方法,特别适合处理动态系统中的噪声和误差。迭代误差卡尔曼滤波算法能够通过对系统状态的预测和更新,减小估计误差,并且在多次迭代中逐步逼近真实值。在本申请中,它用于将激光雷达生成的第一点云数据与IMU的惯性测量数据融合,以提高点云数据的空间精度和设备位姿的估计精度。The Iterative Error Kalman Filter (IERKF) algorithm is a recursive filtering method for fusing multi-source data, particularly well-suited for handling noise and errors in dynamic systems. It reduces estimation errors by predicting and updating the system state, gradually approaching the true value over multiple iterations. In this application, it is used to fuse the first point cloud data generated by a LiDAR with the inertial measurement data from an IMU to improve the spatial accuracy of the point cloud data and the estimated accuracy of the device's position and pose.
图3为本申请实施例提供的动态障碍物点云滤除方法的过程示意图,通过迭代误差卡尔曼滤波算法,将第一点云数据与IMU数据进行融合后,生成一个经过改进的第二点云数据,该数据在空间上更加精准且符合设备实际位置和姿态。同时,滤波算法输出的状态信息提供了帧图像的位姿信息,包括设备的位置和姿态。具体地,可以首先利用IMU的加速度和角速度数据预测当前时间点的设备位置和姿态。之后,将预测的位姿与第一点云数据进行对比,通过误差计算和滤波器更新步骤修正位姿估计,确保输出的位姿信息更符合实际情况。并通过多次迭代优化滤波器状态,使得位姿估计和点云数据在精度上得到提高。最后,滤波器输出的第二点云数据包含经过修正的点云信息,反映了融合后的环境空间。与之同时生成的位姿信息包括帧图像在采集过程中设备位置和姿态,如位置坐标和朝向角度等等。Figure 3 is a schematic diagram of the process of the dynamic obstacle point cloud filtering method provided by an embodiment of the present application. Using an iterative error Kalman filter algorithm, the first point cloud data is fused with the IMU data to generate an improved second point cloud data set. This data is more spatially accurate and consistent with the device's actual position and attitude. Simultaneously, the state information output by the filtering algorithm provides pose information for the frame image, including the device's position and attitude. Specifically, the IMU's acceleration and angular velocity data can be first used to predict the device's position and attitude at the current time point. The predicted pose is then compared with the first point cloud data. Error calculation and filter update steps are used to correct the pose estimate, ensuring that the output pose information is more consistent with the actual situation. Multiple iterations are then performed to optimize the filter state, improving the accuracy of the pose estimate and point cloud data. Finally, the second point cloud data output by the filter contains the corrected point cloud information, reflecting the fused environment space. The pose information generated simultaneously includes the device's position and attitude during the frame image acquisition process, such as position coordinates and orientation angle.
下面结合实施例对上述步骤203即“利用配准算法,根据所述位姿信息确定所述帧图像相对于参考帧的位姿变换矩阵;利用所述位姿变换矩阵,将所述第二点云数据从局部坐标系转换到全局坐标系下进行表示,并获得全局坐标系下的第三点云数据”进行详细描述。The following is a detailed description of step 203, namely, "using a registration algorithm to determine the pose transformation matrix of the frame image relative to the reference frame based on the pose information; using the pose transformation matrix to transform the second point cloud data from the local coordinate system to the global coordinate system for representation, and obtaining the third point cloud data in the global coordinate system" in conjunction with an embodiment.
配准算法是一种用来对多帧点云数据进行空间对齐的方法。根据帧图像的位姿信息,配准算法能够计算当前帧图像与参考帧之间的位姿变换矩阵。参考帧是指在一系列点云数据处理过程中,用作基准的特定帧点云或坐标系。其他帧的数据通过位姿估计与参考帧对齐,以确保点云数据在空间中的统一性。参考帧可以是选定的静态帧或者动态环境中的某一时刻的点云数据,通常以全局坐标系的形式进行表示。本申请可以由多种配准算法实现,例如迭代最近点ICP(Iterat ive Closest Point,ICP)算法和归一化分布变换(Norma lDi str ibut ions Transform,NDT)算法,这些算法均可以通过匹配点云数据中相似的特征点来计算两帧数据之间的相对位移和旋转关系。具体地,可以在第二点云数据和参考帧点云中提取特征点(例如边缘点和平面点),以用于匹配计算。采用ICP算法,通过最近邻搜索将特征点匹配起来,计算初始变换矩阵;进一步通过误差优化(如最小二乘法)得到高精度的位姿变换矩阵。最后,得到描述帧图像相对于参考帧的位姿变换矩阵。The registration algorithm is a method for spatially aligning multi-frame point cloud data. Based on the pose information of the frame image, the registration algorithm can calculate the pose transformation matrix between the current frame image and the reference frame. The reference frame refers to a specific frame point cloud or coordinate system used as a benchmark in the process of processing a series of point cloud data. The data of other frames are aligned with the reference frame through pose estimation to ensure the uniformity of the point cloud data in space. The reference frame can be a selected static frame or point cloud data at a certain moment in a dynamic environment, usually represented in the form of a global coordinate system. The present application can be implemented by a variety of registration algorithms, such as the Iterative Closest Point (ICP) algorithm and the Normalized Distribution Transform (NDT) algorithm, which can calculate the relative displacement and rotation relationship between the two frames of data by matching similar feature points in the point cloud data. Specifically, feature points (such as edge points and plane points) can be extracted from the second point cloud data and the reference frame point cloud for matching calculations. Using the ICP algorithm, feature points are matched through nearest neighbor search to calculate the initial transformation matrix. Further, through error optimization (such as the least squares method), a high-precision pose transformation matrix is obtained. Finally, the pose transformation matrix describing the frame image relative to the reference frame is obtained.
位姿变换矩阵是一个描述刚体运动的矩阵,包含旋转矩阵和平移向量,用于表示一帧数据在空间中的位置和朝向相对于参考帧的变化。位姿变换矩阵一般为4×4齐次矩阵形式,其中旋转部分定义了姿态变化,平移部分定义了位置变化。A pose transformation matrix describes the motion of a rigid body. It contains a rotation matrix and a translation vector, representing the change in position and orientation of a frame of data in space relative to a reference frame. The pose transformation matrix is typically a 4×4 homogeneous matrix, where the rotation defines the change in pose and the translation defines the change in position.
作为一种可实施的方式,本申请可以采用点到点迭代最近点算法,获取位姿变换矩阵。具体地,获取所述参考帧的点云数据;采用点到点迭代最近点算法,计算所述第二点云数据和所述参考帧点云数据的初始位姿变换矩阵;利用梯度下降算法对所述初始位姿变换矩阵进行优化,获得所述位姿变换矩阵。As an implementable approach, the present application can employ a point-to-point iterative closest point algorithm to obtain a pose transformation matrix. Specifically, the point cloud data of the reference frame is obtained; an initial pose transformation matrix of the second point cloud data and the reference frame point cloud data is calculated using a point-to-point iterative closest point algorithm; and the initial pose transformation matrix is optimized using a gradient descent algorithm to obtain the pose transformation matrix.
其中,首先采用点到点迭代最近点(Iterat ive Closest Point,ICP)算法通过匹配两组点云中距离最近的点对,构建误差函数以描述两组点云之间的几何偏差,并通过迭代优化误差函数,得到初始位姿变换矩阵。初始位姿变换矩阵包括平移矩阵和平面旋转矩阵,用于初步对齐两组点云。接着,利用梯度下降算法对上述初始位姿变换矩阵进行优化。具体来说,根据初始位姿变换矩阵的输出结果构造优化目标函数,目标函数通常为两组点云之间的点到点距离平方和。通过梯度下降算法不断调整位姿变换矩阵中的参数(包括旋转角度和平移量),迭代优化目标函数的值,直至达到预设的误差阈值或者迭代次数限制,最终获得优化后的位姿变换矩阵。优化后的位姿变换矩阵可准确描述当前帧点云数据相对于参考帧点云数据的位姿关系,并作为后续点云数据变换至全局坐标系时的核心参数。First, the iterative closest point (ICP) algorithm is used to match the closest point pairs in the two point clouds. An error function is constructed to describe the geometric deviation between the two point clouds. The error function is then iteratively optimized to obtain an initial pose transformation matrix. This initial pose transformation matrix, consisting of a translation matrix and a planar rotation matrix, is used to initially align the two point clouds. Next, a gradient descent algorithm is used to optimize this initial pose transformation matrix. Specifically, an optimization objective function is constructed based on the output of the initial pose transformation matrix. The objective function is typically the sum of the squared point-to-point distances between the two point clouds. The gradient descent algorithm continuously adjusts the parameters of the pose transformation matrix (including rotation angles and translations) and iteratively optimizes the objective function until a preset error threshold or a limit on the number of iterations is reached. Ultimately, the optimized pose transformation matrix is obtained. The optimized pose transformation matrix accurately describes the pose relationship of the current frame's point cloud data relative to the reference frame's point cloud data and serves as the core parameter for subsequent point cloud data transformation to the global coordinate system.
局部坐标系是以激光雷达传感器为原点的参考坐标系,而全局坐标系是描述整个环境的统一坐标系。通过位姿变换矩阵,可以将局部坐标系下的点云数据转换为全局坐标系下进行表示,确保各帧数据之间在空间位置上的一致性。具体地,将第二点云数据的每个点通过位姿变换矩阵进行坐标转换,公式为:The local coordinate system is a reference coordinate system with the LiDAR sensor as its origin, while the global coordinate system is a unified coordinate system that describes the entire environment. Through the pose transformation matrix, the point cloud data in the local coordinate system can be converted to the global coordinate system for representation, ensuring the consistency of the spatial position between each frame of data. Specifically, each point of the second point cloud data is transformed using the pose transformation matrix. The formula is:
Pglobal=T·Plocal (1)P global = T·P local (1)
其中,Plocal是局部坐标系下的点云坐标,T是位姿变换矩阵,Pglobal是全局坐标系下的点云坐标。Among them, P local is the point cloud coordinate in the local coordinate system, T is the pose transformation matrix, and P global is the point cloud coordinate in the global coordinate system.
经过坐标转换的点云数据在全局坐标系下统一表示,所有帧的数据可以无缝融合形成第三点云数据。该数据在空间一致性和精度上满足环境建模要求。The transformed point cloud data is uniformly represented in the global coordinate system, and the data from all frames can be seamlessly fused to form a third point cloud data set that meets the requirements of environmental modeling in terms of spatial consistency and accuracy.
下面结合实施例对上述步骤204即“在所述全局坐标系下,将所述第三点云数据覆盖的空间范围划分为一个以上的网格单元,并统计每个所述网格单元中的点云数量和点云高度方差”进行详细描述。The above step 204, namely "dividing the spatial range covered by the third point cloud data into one or more grid units in the global coordinate system, and counting the number of point clouds and the point cloud height variance in each of the grid units" is described in detail below in conjunction with an embodiment.
在动态障碍物检测过程中,为了对全局坐标系下的点云数据进行精确分析,需要对点云数据的空间范围进行划分。具体来说,全局坐标系下的点云数据会覆盖一定的三维空间范围,而该范围通常包含目标区域的全部点云。通过将覆盖的空间范围划分为多个网格单元,可以对点云数据进行局部分组,以便更有效地分析点云在不同空间区域的分布特性。每个网格单元是一个三维立方体区域,用于包含该区域内的点云数据。During dynamic obstacle detection, accurate analysis of point cloud data in a global coordinate system requires segmenting the spatial range of the point cloud data. Specifically, the point cloud data in a global coordinate system covers a specific three-dimensional spatial range, which typically encompasses the entire point cloud in the target area. By dividing the covered spatial range into multiple grid cells, the point cloud data can be locally grouped for more efficient analysis of the distribution characteristics of the point cloud in different spatial regions. Each grid cell is a three-dimensional cube region that contains the point cloud data within that region.
其中,网格单元的划分可以采用多种方式,例如,根据固定分辨率沿三维坐标系中的三个互相垂直的坐标轴方向进行均匀划分。优选地,本申请可以进行非均匀划分,针对全局坐标系的第三点云数据生成三维包围盒,对包围盒沿三维坐标系中的三个互相垂直的坐标轴方向进行非均匀划分,并根据所述第三点云数据的分布特性自适应调整网格分辨率;为每个所述网格单元分配一个多维索引,并将所述第三点云数据分配到对应的网格单元中。The grid cells can be divided in a variety of ways, for example, uniformly divided along three mutually perpendicular coordinate axes in a three-dimensional coordinate system according to a fixed resolution. Preferably, the present application can perform non-uniform division, generate a three-dimensional bounding box for the third point cloud data in the global coordinate system, divide the bounding box non-uniformly along three mutually perpendicular coordinate axes in the three-dimensional coordinate system, and adaptively adjust the grid resolution according to the distribution characteristics of the third point cloud data; assign a multi-dimensional index to each of the grid cells, and assign the third point cloud data to the corresponding grid cell.
具体地,针对全局坐标系的第三点云数据生成三维包围盒,可以将整个点云的空间范围用最小的三维矩形盒进行包裹,以确保所有点云数据都包含在该包围盒内。包围盒的边界由点云数据的最大和最小坐标值确定,分别沿三维坐标系的X、Y和Z轴方向扩展,从而定义了点云在全局坐标系下的空间分布范围。Specifically, a 3D bounding box is generated for the third point cloud data in the global coordinate system. This allows the entire point cloud's spatial range to be enclosed in a minimal 3D rectangular box to ensure that all point cloud data is contained within the bounding box. The bounding box's boundaries are determined by the maximum and minimum coordinate values of the point cloud data, extending along the X, Y, and Z axes of the 3D coordinate system, respectively, thereby defining the spatial distribution range of the point cloud in the global coordinate system.
在三维包围盒的基础上,通过对包围盒沿X、Y和Z三个互相垂直的坐标轴方向进行非均匀划分,可以将包围盒分割为多个网格单元。非均匀划分的过程依据点云数据的分布特性进行,例如,在点云密度较高的区域,使用更小的网格单元以提高分辨率;而在点云稀疏的区域,可以采用较大的网格单元以减少计算量。通过对点云密度和分布特性进行分析,可以自适应地调整网格的分辨率,使划分更具针对性和效率。Based on the 3D bounding box, the bounding box can be divided into multiple grid cells by performing non-uniform partitioning along the three mutually perpendicular coordinate axes (X, Y, and Z). This non-uniform partitioning process is based on the distribution characteristics of the point cloud data. For example, in areas with high point cloud density, smaller grid cells are used to improve resolution; in areas with sparse point clouds, larger grid cells can be used to reduce computational complexity. By analyzing the density and distribution characteristics of the point cloud, the grid resolution can be adaptively adjusted, making the partitioning more targeted and efficient.
每个生成的网格单元分配一个唯一的多维索引,该索引可以表示网格单元在三维坐标系中的位置。例如,使用三元组(i,j,k)表示网格单元,其中i,j,k分别为网格单元在X、Y和Z轴方向上的序号。然后,将第三点云数据中的每个点根据其坐标值分配到对应的网格单元中。具体来说,通过对点的坐标进行判断,确定其落在包围盒内的具体网格单元,从而将点云数据映射到三维网格结构中。Each generated grid cell is assigned a unique multi-dimensional index, which can represent the position of the grid cell in the three-dimensional coordinate system. For example, a triplet (i, j, k) is used to represent a grid cell, where i, j, and k are the serial numbers of the grid cell in the X, Y, and Z axis directions, respectively. Then, each point in the third point cloud data is assigned to the corresponding grid cell according to its coordinate value. Specifically, by judging the coordinates of the point, the specific grid cell in which it falls within the bounding box is determined, thereby mapping the point cloud data to a three-dimensional grid structure.
在划分完成后,对每个网格单元中的点云进行统计分析。统计指标包括每个网格单元中的点云数量和点云高度方差。点云数量表示该网格单元中包含的点数目,反映点云的局部密度特性;点云高度方差则表示网格内点云在高度方向的分布离散程度,用于判断点云分布的均匀性和层次性。通过这些统计信息,可以为后续的动态障碍物提取奠定基础。After the division is complete, the point cloud within each grid cell is statistically analyzed. Statistical metrics include the number of points within each grid cell and the point cloud height variance. The point cloud number represents the number of points contained in that grid cell, reflecting the local density of the point cloud. The point cloud height variance indicates the degree of dispersion of the point cloud within the grid in the height direction, and is used to determine the uniformity and hierarchy of the point cloud distribution. This statistical information lays the foundation for subsequent dynamic obstacle extraction.
其中,点云高度方差计算公式为:Among them, the point cloud height variance The calculation formula is:
其中,h(pj)是点pj的高度值,N(gi)为点云数量,为栅格gi中所有点的高度均值,的计算公式为:Where h(p j ) is the height of point p j , N( gi ) is the number of point clouds, is the mean height of all points in grid gi , The calculation formula is:
下面结合实施例对上述步骤205即“根据所述点云高度方差,利用平面拟合算法判断所述网格单元是否为地面网格单元,并对判断为地面网格单元中的第三点云数据进行滤除”进行详细描述。The above step 205, i.e., "determining whether the grid unit is a ground grid unit using a plane fitting algorithm based on the point cloud height variance, and filtering out the third point cloud data determined to be a ground grid unit" is described in detail below in conjunction with an embodiment.
首先,针对第三点云数据覆盖的全局坐标系空间范围,依据点云高度方差的特性初步筛选潜在的地面网格单元。点云高度方差反映网格单元内点云在垂直方向(Z轴)的分布均匀性。当高度方差较小时,说明点云在高度方向的变化较小,具有接近地面的平坦特性。通过设定一个高度方差阈值,将高度方差低于该阈值的网格单元标记为候选地面网格。First, within the global coordinate system space covered by the third point cloud data, potential ground grid cells are initially screened based on the point cloud height variance. This variance reflects the uniformity of the point cloud's vertical distribution (Z-axis) within the grid cell. A low height variance indicates that the point cloud exhibits minimal variation in height and is flat, close to the ground. A height variance threshold is set, and grid cells with a height variance below this threshold are marked as candidate ground grid cells.
随后,在候选地面网格中,应用平面拟合算法进一步判断其是否为地面网格单元。具体而言,平面拟合算法通过拟合网格单元中点云数据的空间分布,建立一个平面模型并计算点云到平面的距离。拟合平面可以采用最小二乘法求解,其公式为:Then, a plane fitting algorithm is applied to the candidate ground grid to further determine whether it is a ground grid cell. Specifically, the plane fitting algorithm fits the spatial distribution of the point cloud data in the grid cell, builds a plane model, and calculates the distance from the point cloud to the plane. The fitted plane can be solved using the least squares method, and its formula is:
ax+by+cz+d=0 (4)ax+by+cz+d=0 (4)
其中,a,b,c是平面的法向量参数,d是偏移量。利用最小二乘法对网格单元中的点云数据进行拟合,并计算每个点到拟合平面的垂直距离。如果所有点云到拟合平面的距离均值或最大值低于预设阈值,则可以认为该网格单元符合地面特性。Where a, b, and c are the plane normal parameters, and d is the offset. The least squares method is used to fit the point cloud data in the grid cell, and the perpendicular distance from each point to the fitted plane is calculated. If the mean or maximum distance from all point clouds to the fitted plane is below a preset threshold, the grid cell is considered to conform to the ground characteristics.
对于判断为地面网格单元的点云数据,进一步对其进行滤除,以避免地面点云对后续处理(如障碍物识别或环境建模)的干扰。具体地,将这些地面点云从第三点云数据集中移除,从而保留非地面点云,用于更高精度的空间分析和处理。Point cloud data identified as ground grid cells is further filtered out to prevent them from interfering with subsequent processing (such as obstacle identification or environment modeling). Specifically, these ground point clouds are removed from the third point cloud dataset, retaining the non-ground point clouds for higher-precision spatial analysis and processing.
作为一种可实施的方式,本申请可以基于每个所述网格单元中的点云数据,采用随机采样一致性算法进行平面模型拟合,获得拟合平面;计算所述第三点云数据中的每个点与所述拟合平面之间的垂直距离,根据距离阈值判断其是否为地面点,将满足距离阈值条件的点从点云数据中去除;其中,所述距离阈值基于所述点云高度方差进行动态调整。As an implementable method, the present application can use a random sampling consistency algorithm to fit a plane model based on the point cloud data in each of the grid cells to obtain a fitting plane; calculate the vertical distance between each point in the third point cloud data and the fitting plane, determine whether it is a ground point based on a distance threshold, and remove points that meet the distance threshold condition from the point cloud data; wherein, the distance threshold is dynamically adjusted based on the point cloud height variance.
具体地,首先,针对每个网格单元中的点云数据,根据点云高度方差评估网格单元内点云在垂直方向(Z轴)的分布特性。当点云高度方差低于预设标准时,初步筛选出具有潜在地面特性的网格单元,作为后续处理的候选对象。Specifically, the point cloud data in each grid cell is first evaluated based on its vertical distribution characteristics (Z axis) based on its height variance. When the height variance is below a preset standard, grid cells with potential ground features are initially selected as candidates for subsequent processing.
在候选网格单元中,应用随机采样一致性算法对点云数据进行平面模型拟合。随机采样一致性算法通过随机选择点云数据中的子集作为拟合样本,迭代构建可能的平面模型,并计算模型的内点数量,即在一定容差范围内满足该平面模型的点云数量。通过最大化内点数量,确定最佳平面模型,以描述网格单元的整体平面特性。A random sampling consensus algorithm is applied to fit a plane model to the point cloud data within the candidate grid cells. This algorithm iteratively constructs possible plane models by randomly selecting subsets of the point cloud data as fitting samples. The algorithm then calculates the number of inliers within the model—the number of point clouds that satisfy the plane model within a certain tolerance. By maximizing the number of inliers, the optimal plane model is determined to describe the overall planar characteristics of the grid cell.
获得拟合平面后,计算每个点与该平面之间的垂直距离。垂直距离定义为点到平面的最短距离,其公式为:After obtaining the fitted plane, calculate the perpendicular distance between each point and the plane. The perpendicular distance is defined as the shortest distance from the point to the plane, and its formula is:
其中,a,b,c是拟合平面的法向量参数,x,y,z是点云坐标,d是平面的偏移量。Among them, a, b, c are the normal vector parameters of the fitted plane, x, y, z are the point cloud coordinates, and d is the offset of the plane.
根据点云高度方差动态调整距离阈值,用以识别地面点。具体而言,当高度方差较小时,说明点云的高度变化范围小,距离阈值可设为较低值,以提高地面点识别的精度;当高度方差较大时,说明点云的高度分布较分散,距离阈值可适当放宽,以涵盖更多可能属于地面的点云。The distance threshold is dynamically adjusted based on the point cloud height variance to identify ground points. Specifically, when the height variance is small, indicating that the point cloud has a small range of height variation, the distance threshold can be set to a lower value to improve the accuracy of ground point identification. When the height variance is large, indicating that the point cloud has a more dispersed height distribution, the distance threshold can be appropriately relaxed to include more points that may belong to the ground.
最终,对于满足距离阈值条件的点云,即垂直距离小于动态调整的阈值的点云,判断为地面点,将其从第三点云数据中去除。保留非地面点云数据用于进一步分析,如动态障碍物检测或环境建模。Finally, point clouds that meet the distance threshold condition, that is, point clouds with a vertical distance less than the dynamically adjusted threshold, are judged to be ground points and removed from the third point cloud data. The non-ground point cloud data is retained for further analysis, such as dynamic obstacle detection or environment modeling.
下面结合实施例对上述步骤206即“若当前帧所述点云数量超过第一阈值且当前帧所述点云数量与历史帧点云数量之间方差差值的绝对值超过第二阈值,则标记所述网格单元为动态栅格;获取所述动态栅格的历史帧信息,所述历史帧信息为当前所述动态栅格对应的所述帧图像的前一个或一个以上的帧图像在所述动态栅格中的所述点云数量和所述点云高度方差;利用时间序列分析算法对所述历史帧信息进行处理,计算动态栅格的动态性置信度;若所述动态性置信度低于设定阈值,则将所述动态栅格的标记修改为静态栅格”进行详细描述。The following describes in detail step 206 in conjunction with an embodiment, namely, "if the number of point clouds in the current frame exceeds a first threshold and the absolute value of the variance difference between the number of point clouds in the current frame and the number of point clouds in the historical frame exceeds a second threshold, marking the grid unit as a dynamic grid; obtaining historical frame information of the dynamic grid, the historical frame information being the number of point clouds and the point cloud height variance in the dynamic grid of one or more frame images before the frame image corresponding to the current dynamic grid; processing the historical frame information using a time series analysis algorithm to calculate the dynamic confidence of the dynamic grid; if the dynamic confidence is lower than the set threshold, changing the mark of the dynamic grid to a static grid."
本申请在判定网格单元是否为动态栅格时,首先通过第一阈值和第二阈值对于网格单元是否为动态栅格进行初步判断,之后再通过计算动态性置信度对动态栅格进行进一步判断。When determining whether a grid unit is a dynamic grid, the present application first makes a preliminary judgment on whether the grid unit is a dynamic grid using a first threshold and a second threshold, and then further judges the dynamic grid by calculating the dynamic confidence level.
其中,若当前帧所述点云数量超过第一阈值且当前帧所述点云数量与历史帧点云数量之间方差差值的绝对值超过第二阈值,则该网格单元可能包含动态物体,例如移动的车辆或行人。此时,将该网格单元标记为动态栅格,以表明其具有较大的变化性或不稳定性。本申请的历史帧可以指当前帧的前一帧数据,在进行当前帧点云数量与历史帧点云数量之间方差差值绝对值的计算时,可以仅判断当前帧与其前一帧点云数量之间的方差差值绝对值是否超过第二阈值;本申请的历史帧也可以指当前帧的前多帧数据,分别计算当前帧与其前面多个帧的点云数量之间的方差差值绝对值,当获得的多个绝对值均超过第二阈值时,判定当前帧所述点云数量与历史帧点云数量之间方差差值的绝对值超过第二阈值。Among them, if the number of point clouds in the current frame exceeds the first threshold and the absolute value of the variance difference between the number of point clouds in the current frame and the number of point clouds in the historical frame exceeds the second threshold, then the grid unit may contain dynamic objects, such as moving vehicles or pedestrians. At this time, the grid unit is marked as a dynamic grid to indicate that it has greater variability or instability. The historical frame of this application may refer to the previous frame data of the current frame. When calculating the absolute value of the variance difference between the number of point clouds in the current frame and the number of point clouds in the historical frame, it can be judged whether the absolute value of the variance difference between the number of point clouds in the current frame and the previous frame exceeds the second threshold; the historical frame of this application may also refer to the previous multiple frames of data of the current frame, and the absolute value of the variance difference between the number of point clouds in the current frame and the previous multiple frames is calculated respectively. When the multiple absolute values obtained all exceed the second threshold, it is determined that the absolute value of the variance difference between the number of point clouds in the current frame and the number of point clouds in the historical frame exceeds the second threshold.
为了进一步评估动态栅格的实际动态性,从历史帧中提取该动态栅格的历史帧信息。历史帧信息指当前动态栅格在时间序列上的前一个或多个帧中,所包含的点云数量和点云高度方差。通过这些历史数据,可以分析动态栅格在时间维度上的变化趋势,为后续动态性判断提供依据。To further evaluate the dynamic grid's actual dynamics, we extract historical frame information from the grid's history. This information refers to the number of point clouds and the point cloud height variance in the previous frame or frames of the current dynamic grid. This historical data allows us to analyze the dynamic grid's temporal trends, providing a basis for subsequent dynamic assessments.
利用时间序列分析方法对动态栅格的历史帧信息进行处理,可以捕获其在时间维度上的变化规律。时间序列分析可以包括移动平均、指数加权平均或自回归分析等算法。这些分析有助于计算动态栅格的动态性置信度,即其具有动态特性的可能性大小。动态性置信度通常是一个量化指标,用于表示网格单元动态性的程度。Using time series analysis methods to process historical frames of dynamic grid data can capture patterns of temporal change. Time series analysis can include algorithms such as moving averages, exponentially weighted averages, or autoregressive analysis. These analyses help calculate the dynamic confidence level of a dynamic grid, specifically the likelihood that it possesses dynamic characteristics. Dynamic confidence is typically a quantitative indicator that indicates the degree of dynamicity of a grid cell.
作为一种可实施的方式,本申请利用时间序列分析对历史帧信息进行处理,计算动态栅格的动态性置信度包括:根据历史帧信息中对应的所述动态栅格中的所述点云数量和所述点云高度方差构建点云数量时间序列和点云高度方差时间序列;根据所述点云数量时间序列和所述点云高度方差时间序列,计算所述动态栅格中点云数量和高度方差的变化率、稳定性和变化趋势;根据所述变化率、稳定性和变化趋势,定义动态性置信度公式,并根据所述动态性置信度公式计算所述动态性置信度。As an implementable method, the present application uses time series analysis to process historical frame information, and calculates the dynamic confidence of the dynamic grid, including: constructing a point cloud quantity time series and a point cloud height variance time series based on the point cloud quantity and the point cloud height variance in the dynamic grid corresponding to the historical frame information; calculating the change rate, stability and change trend of the point cloud quantity and height variance in the dynamic grid based on the point cloud quantity time series and the point cloud height variance time series; defining a dynamic confidence formula based on the change rate, stability and change trend, and calculating the dynamic confidence based on the dynamic confidence formula.
具体地,首先,根据动态栅格对应的历史帧信息中记录的点云数量和点云高度方差,分别构建两个时间序列,即点云数量时间序列和点云高度方差时间序列。这两个时间序列表示在连续时间帧内,该动态栅格中的点云数量和高度方差的变化情况。Specifically, we first construct two time series based on the number of point clouds and the point cloud height variance recorded in the historical frame information corresponding to the dynamic grid: the point cloud number time series and the point cloud height variance time series. These two time series represent the changes in the number of point clouds and the point cloud height variance in the dynamic grid within consecutive time frames.
接下来,根据点云数量时间序列和点云高度方差时间序列,分别计算动态栅格的点云数量和高度方差的变化率、稳定性和变化趋势。其中,变化率表示时间序列中相邻帧数据的变化幅度,用于量化点云数量或高度方差的波动程度;稳定性通过分析时间序列的方差或标准差,描述点云数量或高度方差是否在一定范围内波动;变化趋势则利用趋势分析方法(如线性回归或多项式拟合)来判断时间序列是否存在显著的增长或下降趋势。Next, based on the time series of point cloud number and point cloud height variance, we calculated the rate of change, stability, and trend of the dynamic grid's point cloud number and height variance, respectively. The rate of change represents the magnitude of change between adjacent frames in the time series, quantifying the degree of fluctuation in the number of point clouds or height variance. Stability describes whether the number of point clouds or height variance fluctuates within a certain range by analyzing the variance or standard deviation of the time series. Trend analysis methods (such as linear regression or polynomial fitting) are used to determine whether the time series has a significant upward or downward trend.
基于这些计算结果,定义动态性置信度公式。动态性置信度公式可以综合考虑变化率、稳定性和变化趋势,通过加权方式构建,例如动态性置信度可以表示为:Based on these calculation results, a dynamic confidence formula is defined. The dynamic confidence formula can be constructed by comprehensively considering the rate of change, stability, and change trend through a weighted approach. For example, the dynamic confidence can be expressed as:
D=w1·R+w2·(1-S)+w3·T (6)D=w 1 ·R+w 2 ·(1-S)+w 3 ·T (6)
其中,R表示变化率,S表示稳定性,T表示变化趋势,w1,w2,w3为权重系数,用于平衡不同因素对动态性置信度的影响。根据这一公式,对动态栅格的动态性置信度进行计算,得出一个量化值。Where R represents the rate of change, S represents stability, T represents the trend of change, and w1 , w2 , and w3 are weight coefficients used to balance the impact of different factors on the dynamic confidence. Based on this formula, the dynamic confidence of the dynamic grid is calculated to obtain a quantitative value.
更进一步,本申请还可以划分多个不同的时间区间;获取所述历史帧信息的时间戳信息,根据所述时间戳信息,将所述历史帧信息划分到相应的时间区间内;根据不同时间区间内点云数量和高度方差的重要性差异,为不同时间区间内的变化率、稳定性和变化趋势设置不同的权重,根据所述权重确定动态性置信度公式。Furthermore, the present application can also divide multiple different time intervals; obtain the timestamp information of the historical frame information, and divide the historical frame information into corresponding time intervals according to the timestamp information; according to the importance difference of the number of point clouds and height variance in different time intervals, set different weights for the change rate, stability and change trend in different time intervals, and determine the dynamic confidence formula based on the weights.
具体地,首先,根据动态栅格的历史帧信息提取时间戳信息,将历史帧数据按时间维度划分至多个时间区间。时间区间的划分可以根据特定应用场景灵活设置,例如均匀划分为最近的短时间区间、中等时间区间和较远时间区间,也可以依据任务需求动态调整分组规则,以平衡实时性和历史数据对动态性置信度计算的影响。Specifically, timestamp information is first extracted from the historical frame information of the dynamic grid, and the historical frame data is divided into multiple time intervals according to the time dimension. The time interval division can be flexibly set according to the specific application scenario, for example, evenly divided into the nearest short time interval, medium time interval, and distant time interval. The grouping rules can also be dynamically adjusted according to task requirements to balance the impact of real-time and historical data on the dynamic confidence calculation.
在每个时间区间内,针对点云数量和高度方差的历史变化,计算三个关键特性:变化率、稳定性和变化趋势。由于不同时间区间对动态性判断的贡献可能不同,需要根据重要性差异为各区间的特性设置权重。例如,最近时间区间的数据对动态性的判断具有更强的影响,可赋予较高的权重;较远时间区间的数据则可能对趋势判断提供辅助信息,权重相对较低。权重值可以通过经验设定或根据实际场景优化得到。Within each time interval, three key characteristics are calculated based on the historical changes in the number of point clouds and height variance: rate of change, stability, and trend. Because different time intervals may contribute differently to dynamics assessment, it is necessary to assign weights to the characteristics of each interval based on their importance. For example, data from the most recent time interval has a stronger impact on dynamics assessment and can be given a higher weight; data from more distant time intervals may provide auxiliary information for trend assessment and thus be given a relatively lower weight. Weights can be set empirically or optimized based on actual scenarios.
基于上述分析,定义动态性置信度公式,将各时间区间的变化率、稳定性和变化趋势的加权值综合计算动态性置信度。公式可以表示为:Based on the above analysis, a dynamic confidence formula is defined, which comprehensively calculates the dynamic confidence by combining the weighted values of the rate of change, stability, and change trend of each time interval. The formula can be expressed as:
其中,Cd为动态性置信度;i表示时间区间;n为时间区间的总数;ωi为时间区间的权重;Ri,Si,Ti分别表示第i个时间区间内的变化率、稳定性和变化趋势;α,β,γ为特性项的权重系数,根据具体需求设定。Where Cd is the dynamic confidence; i represents the time interval; n is the total number of time intervals; ωi is the weight of the time interval; Ri , Si , and Ti represent the rate of change, stability, and change trend in the i-th time interval, respectively; α, β, and γ are the weight coefficients of the characteristic items, which are set according to specific needs.
如果通过时间序列分析得出的动态性置信度低于预先设定的阈值,表明该动态栅格的动态性不足以被继续视为动态状态,例如,可能是由于传感器噪声或其他异常情况导致的误判。此时,可以将该动态栅格重新标记为静态栅格,从而减少对动态场景的误判,并优化点云数据的处理精度。If the dynamic confidence level derived from time series analysis falls below a pre-set threshold, the dynamic grid is no longer dynamic enough to be considered dynamic. This could be due to sensor noise or other anomalies, for example. In this case, the dynamic grid can be relabeled as static, reducing false positives for dynamic scenes and optimizing point cloud data processing accuracy.
优选地,本申请在进行动态栅格判定时,还可以判断该栅格是否为新增场景。如果该栅格的历史帧信息中显示该栅格从未被占用,则认为该栅格属于新场景,而不是动态障碍物,进而将该栅格标记为新增栅格。其中,栅格是否被占用,可以通过判断历史数据中栅格的点云数量来判断,若点云数量为零或是低于某一预设阈值,则认为该栅格未被占用。Preferably, when performing dynamic grid determination, the present application can also determine whether the grid is a newly added scene. If the grid's historical frame information shows that the grid has never been occupied, the grid is considered to belong to a new scene, not a dynamic obstacle, and the grid is then marked as a newly added grid. Whether the grid is occupied can be determined by determining the number of point clouds of the grid in the historical data. If the number of point clouds is zero or is below a preset threshold, the grid is considered unoccupied.
下面结合实施例对上述步骤207即“针对标记为动态栅格的所述网格单元,通过空间区域增长算法,获得动态障碍物的点云,并将所述动态障碍物的点云从所述第三点云数据中滤除,获得所述目标区域的静态点云数据。”进行详细描述。The above step 207, i.e., "for the grid cells marked as dynamic grids, obtaining a point cloud of dynamic obstacles through a spatial region growing algorithm, and filtering the point cloud of the dynamic obstacles from the third point cloud data to obtain static point cloud data of the target area," is described in detail below in conjunction with an embodiment.
本申请中,首先,基于动态栅格的位置,将其内的点云作为初始种子点云,用于执行空间区域增长算法。区域增长算法是一种常用的聚类方法,主要通过递归或迭代方式,将相邻且具有相似特性的点逐步添加到同一集合中。在具体实施中,可以根据点云之间的空间距离和法向量的相似性,判断点云是否属于同一个区域。例如,设定一个空间距离阈值和法向量夹角阈值,只有在两者都满足的情况下,点才会被纳入当前区域。这种方法可以将动态栅格内的点云数据划分为多个连通区域,进一步用于提取完整的动态障碍物点云。In this application, first, based on the position of the dynamic grid, the point cloud within it is used as the initial seed point cloud to execute the spatial region growing algorithm. The region growing algorithm is a commonly used clustering method, which mainly adds adjacent points with similar characteristics to the same set in a recursive or iterative manner. In a specific implementation, it is possible to determine whether the point clouds belong to the same region based on the spatial distance between the point clouds and the similarity of the normal vectors. For example, a spatial distance threshold and a normal vector angle threshold are set, and only when both are met will the point be included in the current region. This method can divide the point cloud data within the dynamic grid into multiple connected regions, which are further used to extract a complete dynamic obstacle point cloud.
其次,根据动态栅格的动态性特征(如动态性置信度高的区域),将识别出的连通区域标记为动态障碍物点云数据。动态障碍物通常具有显著的空间变化特性,例如车辆、人、动物等。这些点云数据代表在目标区域中随时间变化的动态物体,对环境建模时需要进行滤除。Secondly, based on the dynamic characteristics of the dynamic grid (such as areas with high dynamic confidence), the identified connected regions are marked as dynamic obstacle point cloud data. Dynamic obstacles often have significant spatial variation characteristics, such as vehicles, people, and animals. These point cloud data represent dynamic objects that change over time in the target area and need to be filtered out when modeling the environment.
然后,将提取出的动态障碍物点云从全局坐标系下的第三点云数据中剔除,以消除动态物体对环境建模的干扰。在具体实施中,可通过点云索引或坐标匹配,将标记为动态障碍物的点云数据逐点剔除或屏蔽,从而保留静态点云数据。The extracted dynamic obstacle point cloud is then removed from the third point cloud data in the global coordinate system to eliminate the interference of dynamic objects on the environment modeling. In specific implementations, point cloud data marked as dynamic obstacles can be removed or masked point by point through point cloud indexing or coordinate matching, thereby retaining the static point cloud data.
最后,获得目标区域的静态点云数据。这些静态点云数据不受动态物体干扰,能够更准确地反映目标区域的固定环境特性,为进一步的三维环境建模、路径规划或物体检测等应用提供基础。Finally, static point cloud data of the target area is obtained. This static point cloud data is not disturbed by dynamic objects and can more accurately reflect the fixed environmental characteristics of the target area, providing a basis for further applications such as 3D environment modeling, path planning, or object detection.
作为一种可实施的方法,本申请针对所述动态栅格,通过空间区域增长算法,滤除动态障碍物的点云包括:从所述动态栅格中,根据预设指标选定初始种子点云,根据距离度量和点云密度函数,从所述初始种子点云进行区域扩展,将邻近点云纳入扩展区域形成连续的点云区域;利用聚类算法对所述连续的点云区域区分割成多个独立区域,从所述独立区域中滤除动态障碍物的点云。As an implementable method, the present application filters out the point cloud of dynamic obstacles for the dynamic grid through a spatial region growing algorithm, including: selecting an initial seed point cloud from the dynamic grid according to preset indicators, expanding the region from the initial seed point cloud according to a distance metric and a point cloud density function, incorporating adjacent point clouds into the expanded region to form a continuous point cloud region; using a clustering algorithm to divide the continuous point cloud region into multiple independent regions, and filtering out the point cloud of dynamic obstacles from the independent regions.
具体地,初始种子点云的选取基于预设指标,这些指标可能包括点云的空间分布、局部密度、曲率或高度等特性。例如,选取点云密度较高且空间分布具有一定连通性的点云作为初始种子点云,以保证区域扩展的稳定性和准确性。Specifically, the selection of the initial seed point cloud is based on preset indicators, which may include characteristics such as the spatial distribution, local density, curvature, or height of the point cloud. For example, a point cloud with high point density and a certain degree of spatial connectivity is selected as the initial seed point cloud to ensure the stability and accuracy of the region expansion.
接着,利用空间区域增长算法从初始种子点云开始进行区域扩展。区域扩展的过程基于两项关键标准:距离度量和点云密度函数。距离度量用于评估种子点云与其邻近点云之间的空间距离,通常采用欧几里得距离计算,确保扩展点云与种子点云具有足够的空间相似性。点云密度函数则用于判断邻近点云的局部密度特性,避免将孤立点云或离散分布的噪声点纳入扩展区域。通过逐步扩展,将符合条件的邻近点云纳入扩展区域,形成连续的点云区域。Next, a spatial region growing algorithm is used to expand the region starting from the initial seed point cloud. This region expansion process is based on two key criteria: a distance metric and a point cloud density function. The distance metric, typically calculated using Euclidean distance, is used to assess the spatial distance between the seed point cloud and its neighboring point clouds, ensuring sufficient spatial similarity between the expanded point cloud and the seed point cloud. The point cloud density function is used to determine the local density characteristics of neighboring point clouds, avoiding the inclusion of isolated point clouds or discrete noise points in the expanded region. Through gradual expansion, neighboring point clouds that meet the criteria are incorporated into the expanded region, forming a continuous point cloud region.
在连续点云区域生成后,应用聚类算法对其进行区域划分。聚类算法通过分析点云区域内点的空间分布特性,将其区分为多个独立区域。常用的聚类算法包括基于密度的噪声应用空间聚类(Density-Based Spatial Clustering of Applications with Noise,DBSCAN)算法和基于k均值的K-Means算法等。以DBSCAN算法为例,通过设置密度阈值和最小点数阈值,将点云划分为若干连通性良好的独立区域,同时自动滤除孤立点云。After a continuous point cloud region is generated, a clustering algorithm is applied to partition it into regions. Clustering algorithms analyze the spatial distribution characteristics of points within a point cloud region and divide it into multiple independent regions. Common clustering algorithms include the Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm and the K-Means algorithm. Taking the DBSCAN algorithm as an example, by setting a density threshold and a minimum point count threshold, the point cloud is divided into several independent regions with good connectivity, while automatically filtering out isolated point clouds.
最后,根据划分结果对动态障碍物的点云进行滤除。结合动态障碍物的空间特性(如高度范围、密度分布或运动轨迹)和区域划分结果,将识别出的动态障碍物点云从连续点云区域中剔除,保留静态点云数据供后续处理使用。Finally, the point cloud of dynamic obstacles is filtered out based on the segmentation results. Combining the spatial characteristics of dynamic obstacles (such as height range, density distribution, or motion trajectory) with the region segmentation results, the identified dynamic obstacle point cloud is removed from the continuous point cloud area, retaining the static point cloud data for subsequent processing.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
根据另一方面的实施例,提供了一种动态障碍物点云滤除装置。图4示出根据一个实施例的该动态障碍物点云滤除装置的示意性框图,该装置设置于图1所示架构中的服务器端。如图4所示,该装置400包括:According to another embodiment, a dynamic obstacle point cloud filtering device is provided. FIG4 shows a schematic block diagram of the dynamic obstacle point cloud filtering device according to one embodiment, and the device is provided on the server side of the architecture shown in FIG1 . As shown in FIG4 , the device 400 includes:
数据获取单元401,被配置为获取一个以上的包含目标区域的帧图像和每一个所述帧图像对应的惯性测量数据。The data acquisition unit 401 is configured to acquire one or more frame images containing a target area and inertial measurement data corresponding to each frame image.
数据融合单元402,被配置为针对每一个所述帧图像,生成第一点云数据;利用迭代误差卡尔曼滤波算法,将所述第一点云数据与所述惯性测量数据进行融合,获得第二点云数据和所述帧图像的位姿信息。The data fusion unit 402 is configured to generate first point cloud data for each of the frame images; and fuse the first point cloud data with the inertial measurement data using an iterative error Kalman filter algorithm to obtain second point cloud data and the pose information of the frame image.
坐标转换单元403,被配置为利用配准算法,根据所述位姿信息确定所述帧图像相对于参考帧的位姿变换矩阵;利用所述位姿变换矩阵,将所述第二点云数据从局部坐标系转换到全局坐标系下进行表示,并获得全局坐标系下的第三点云数据。The coordinate conversion unit 403 is configured to use a registration algorithm to determine the posture transformation matrix of the frame image relative to the reference frame based on the posture information; use the posture transformation matrix to convert the second point cloud data from the local coordinate system to the global coordinate system for representation, and obtain third point cloud data in the global coordinate system.
网格数据统计单元404,被配置为在所述全局坐标系下,将所述第三点云数据覆盖的空间范围划分为一个以上的网格单元,并统计每个所述网格单元中的点云数量和点云高度方差。The grid data statistics unit 404 is configured to divide the spatial range covered by the third point cloud data into one or more grid units in the global coordinate system, and count the number of point clouds and the point cloud height variance in each grid unit.
地面点云滤除单元405,被配置为根据所述点云高度方差,利用平面拟合算法判断所述网格单元是否为地面网格单元,并对判断为地面网格单元中的所述第三点云数据进行滤除。The ground point cloud filtering unit 405 is configured to determine whether the grid unit is a ground grid unit by using a plane fitting algorithm according to the point cloud height variance, and to filter the third point cloud data in the ground grid unit.
动态栅格判断单元406,被配置为若当前帧所述点云数量超过第一阈值且当前帧点云数量与历史帧点云数量之间方差差值的绝对值超过第二阈值,则标记所述网格单元为动态栅格;获取所述动态栅格的历史帧信息,所述历史帧信息为当前所述动态栅格对应的所述帧图像的前一个或一个以上的帧图像在所述动态栅格中的所述点云数量和所述点云高度方差;利用时间序列分析算法对所述历史帧信息进行处理,计算动态栅格的动态性置信度;若所述动态性置信度低于设定阈值,则将所述动态栅格的标记修改为静态栅格。The dynamic grid judgment unit 406 is configured to mark the grid unit as a dynamic grid if the number of point clouds in the current frame exceeds a first threshold and the absolute value of the variance difference between the number of point clouds in the current frame and the number of point clouds in the historical frame exceeds a second threshold; obtain historical frame information of the dynamic grid, the historical frame information being the number of point clouds and the point cloud height variance in the dynamic grid of one or more frame images before the frame image corresponding to the current dynamic grid; process the historical frame information using a time series analysis algorithm to calculate the dynamic confidence of the dynamic grid; and change the mark of the dynamic grid to a static grid if the dynamic confidence is lower than a set threshold.
动态点云滤除单元407,被配置为针对标记为动态栅格的所述网格单元,通过空间区域增长算法,获得动态障碍物的点云,并将所述动态障碍物的点云从所述第三点云数据中滤除,获得所述目标区域的静态点云数据。The dynamic point cloud filtering unit 407 is configured to obtain a point cloud of a dynamic obstacle by using a spatial region growing algorithm for the grid cell marked as a dynamic grid, and filter the point cloud of the dynamic obstacle from the third point cloud data to obtain static point cloud data of the target area.
作为其中一种可实现的方式,坐标转换单元403在利用配准算法,根据所述位姿信息确定所述帧图像相对于参考帧的位姿变换矩阵时可以被配置为:获取所述参考帧的点云数据;利用点到点迭代最近点算法,生成所述第二点云数据和所述参考帧点云数据的初始位姿变换矩阵;利用梯度下降算法对所述初始位姿变换矩阵进行优化,获得所述位姿变换矩阵。As one of the feasible ways, when the coordinate conversion unit 403 uses the registration algorithm to determine the pose transformation matrix of the frame image relative to the reference frame according to the pose information, it can be configured as follows: obtaining the point cloud data of the reference frame; using the point-to-point iterative nearest point algorithm to generate the initial pose transformation matrix of the second point cloud data and the reference frame point cloud data; and using the gradient descent algorithm to optimize the initial pose transformation matrix to obtain the pose transformation matrix.
作为其中一种可实现的方式,网格数据统计单元404在所述全局坐标系下,将所述第三点云数据覆盖的空间范围划分为一个以上的网格单元时可以被配置为:3.针对全局坐标系的所述第三点云数据生成三维包围盒,对所述包围盒沿三维坐标系中的三个互相垂直的坐标轴方向进行非均匀划分,并根据所述第三点云数据的分布特性自适应调整网格分辨率;为每个所述网格单元分配一个多维索引,并将所述第三点云数据分配到对应的网格单元中。As one of the feasible ways, the grid data statistics unit 404 can be configured to divide the spatial range covered by the third point cloud data into more than one grid units in the global coordinate system as follows: 3. Generate a three-dimensional bounding box for the third point cloud data in the global coordinate system, perform non-uniform division on the bounding box along three mutually perpendicular coordinate axis directions in the three-dimensional coordinate system, and adaptively adjust the grid resolution according to the distribution characteristics of the third point cloud data; assign a multi-dimensional index to each of the grid units, and assign the third point cloud data to the corresponding grid unit.
作为其中一种可实现的方式,动态栅格判断单元406在利用时间序列分析对所述历史帧信息进行处理,计算动态栅格的动态性置信度时可以被配置为:根据所述历史帧信息中对应的所述动态栅格中的所述点云数量和所述点云高度方差构建点云数量时间序列和点云高度方差时间序列;根据所述点云数量时间序列和所述点云高度方差时间序列,计算所述动态栅格中点云数量和高度方差的变化率、稳定性和变化趋势;根据所述变化率、稳定性和变化趋势,定义动态性置信度公式,并根据所述动态性置信度公式计算所述动态性置信度。As one of the feasible ways, the dynamic grid judgment unit 406 can be configured to process the historical frame information using time series analysis and calculate the dynamic confidence of the dynamic grid as follows: construct a point cloud quantity time series and a point cloud height variance time series based on the point cloud quantity and the point cloud height variance in the dynamic grid corresponding to the historical frame information; calculate the rate of change, stability and change trend of the point cloud quantity and height variance in the dynamic grid based on the point cloud quantity time series and the point cloud height variance time series; define a dynamic confidence formula based on the change rate, stability and change trend, and calculate the dynamic confidence based on the dynamic confidence formula.
作为其中一种可实现的方式,地面点云滤除单元405在根据所述点云高度方差,利用平面拟合算法判断所述网格单元是否为地面网格单元,并对判断为地面网格单元中的所述第三点云数据进行滤除时可以被配置为:基于每个所述网格单元中的点云数据,采用随机采样一致性算法进行平面模型拟合,获得拟合平面;计算所述第三点云数据中的每个点与所述拟合平面之间的垂直距离,根据距离阈值判断其是否为地面点,将满足距离阈值条件的点从点云数据中去除;其中,所述距离阈值基于所述点云高度方差进行动态调整。As one of the feasible ways, the ground point cloud filtering unit 405 can be configured as follows when using a plane fitting algorithm to determine whether the grid unit is a ground grid unit based on the point cloud height variance, and filtering the third point cloud data determined to be a ground grid unit: based on the point cloud data in each of the grid cells, a random sampling consistency algorithm is used to perform plane model fitting to obtain a fitting plane; the vertical distance between each point in the third point cloud data and the fitting plane is calculated, and whether it is a ground point is determined according to a distance threshold, and the points that meet the distance threshold condition are removed from the point cloud data; wherein the distance threshold is dynamically adjusted based on the point cloud height variance.
作为其中一种可实现的方式,动态点云滤除单元407在针对标记为动态栅格的所述网格单元,通过空间区域增长算法,获得动态障碍物的点云,并将所述动态障碍物的点云从所述第三点云数据中滤除时可以被配置为:从所述动态栅格中,根据预设指标选定初始种子点云,根据距离度量和点云密度函数,从所述初始种子点云进行区域扩展,将邻近点云纳入扩展区域形成连续的点云区域;利用聚类算法将所述连续的点云区域区分割成多个独立区域,从所述独立区域中滤除动态障碍物的点云As one of the feasible ways, the dynamic point cloud filtering unit 407 obtains the point cloud of the dynamic obstacle by using the spatial region growing algorithm for the grid unit marked as the dynamic grid, and filters the point cloud of the dynamic obstacle from the third point cloud data. It can be configured as follows: from the dynamic grid, an initial seed point cloud is selected according to a preset indicator; based on the distance metric and the point cloud density function, the region is expanded from the initial seed point cloud, and the adjacent point clouds are included in the expanded region to form a continuous point cloud region; the continuous point cloud region is divided into multiple independent regions by using a clustering algorithm, and the point cloud of the dynamic obstacle is filtered out from the independent regions.
作为其中一种可实现的方式,动态栅格判断单元406在根据所述变化率、稳定性和变化趋势,定义动态性置信度公式时可以被配置为:划分多个不同的时间区间;获取所述历史帧信息的时间戳信息,根据所述时间戳信息,将所述历史帧信息划分到相应的时间区间内;根据不同时间区间内点云数量和高度方差的重要性差异,为不同时间区间内的变化率、稳定性和变化趋势设置不同的权重,根据所述权重确定动态性置信度公式。As one of the feasible ways, the dynamic grid judgment unit 406 can be configured to: divide a plurality of different time intervals when defining the dynamic confidence formula according to the change rate, stability and change trend; obtain the timestamp information of the historical frame information, and divide the historical frame information into corresponding time intervals according to the timestamp information; set different weights for the change rate, stability and change trend in different time intervals according to the importance difference of the number of point clouds and height variance in different time intervals, and determine the dynamic confidence formula according to the weights.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. The device embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
另外,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述方法实施例中任一项所述的方法的步骤。In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of any one of the methods in the aforementioned method embodiments are implemented.
以及一种电子设备,包括:一个或多个处理器;以及与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行前述方法实施例中任一项所述的方法的步骤。And an electronic device comprising: one or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, which, when read and executed by the one or more processors, execute the steps of the method described in any one of the aforementioned method embodiments.
本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序在被处理器执行时实现前述方法实施例中任一项所述的方法的步骤。The present application also provides a computer program product, comprising a computer program, which implements the steps of any one of the methods described in the aforementioned method embodiments when executed by a processor.
其中,图5示例性的展示出了电子设备的架构,具体可以包括处理器510,视频显示适配器511,磁盘驱动器512,输入/输出接口513,网络接口514,以及存储器520。上述处理器510、视频显示适配器511、磁盘驱动器512、输入/输出接口513、网络接口514,与存储器520之间可以通过通信总线530进行通信连接。5 exemplarily illustrates the architecture of an electronic device, which may include a processor 510, a video display adapter 511, a disk drive 512, an input/output interface 513, a network interface 514, and a memory 520. The processor 510, the video display adapter 511, the disk drive 512, the input/output interface 513, the network interface 514, and the memory 520 may be communicatively connected via a communication bus 530.
其中,处理器510可以采用通用的CPU、微处理器、应用专用集成电路(ApplicationSpecific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本申请所提供的技术方案。The processor 510 may be implemented as a general-purpose CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and may be used to execute relevant programs to implement the technical solutions provided in this application.
存储器520可以采用ROM(Read Only Memory,只读存储器)、RAM(Random AccessMemory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器520可以存储用于控制电子设备500运行的操作系统521,用于控制电子设备500的低级别操作的基本输入输出系统(BIOS)522。另外,还可以存储网页浏览器523,数据存储管理系统524,以及动态障碍物点云滤除装置525等等。上述动态障碍物点云滤除装置525就可以是本申请实施例中具体实现前述各步骤操作的应用程序。总之,在通过软件或者固件来实现本申请所提供的技术方案时,相关的程序代码保存在存储器520中,并由处理器510来调用执行。The memory 520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 520 can store an operating system 521 for controlling the operation of the electronic device 500, and a basic input and output system (BIOS) 522 for controlling the low-level operations of the electronic device 500. In addition, a web browser 523, a data storage management system 524, and a dynamic obstacle point cloud filtering device 525, etc. can also be stored. The above-mentioned dynamic obstacle point cloud filtering device 525 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 520 and is called and executed by the processor 510.
输入/输出接口513用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。The input/output interface 513 is used to connect input/output modules to implement information input and output. The input/output modules can be configured as components in the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.
网络接口514用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。The network interface 514 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WIFI, Bluetooth, etc.).
总线530包括一通路,在设备的各个组件(例如处理器510、视频显示适配器511、磁盘驱动器512、输入/输出接口513、网络接口514,与存储器520)之间传输信息。The bus 530 comprises a pathway for transmitting information between the various components of the device (eg, the processor 510 , the video display adapter 511 , the disk drive 512 , the input/output interface 513 , the network interface 514 , and the memory 520 ).
需要说明的是,尽管上述设备仅示出了处理器510、视频显示适配器511、磁盘驱动器512、输入/输出接口513、网络接口514,存储器520,总线530等,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本申请方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the above device only shows a processor 510, a video display adapter 511, a disk drive 512, an input/output interface 513, a network interface 514, a memory 520, a bus 530, etc., in a specific implementation, the device may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above device may also include only the components necessary to implement the solution of the present application, and does not necessarily include all the components shown in the figure.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机程序产品的形式体现出来,该计算机程序产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, it can be seen that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer program product, which can be stored in a storage medium such as ROM/RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application or certain parts of the embodiments.
以上对本申请所提供的技术方案进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to the technical solutions provided by this application. Specific examples are used herein to illustrate the principles and implementation methods of this application. The description of the above embodiments is only intended to help understand the method and core concept of this application. At the same time, for those skilled in the art, based on the concept of this application, there may be changes in the specific implementation methods and application scope. In summary, the contents of this specification should not be understood as limiting this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411863017.XA CN119941550B (en) | 2024-12-17 | 2024-12-17 | Dynamic obstacle point cloud filtering method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411863017.XA CN119941550B (en) | 2024-12-17 | 2024-12-17 | Dynamic obstacle point cloud filtering method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN119941550A CN119941550A (en) | 2025-05-06 |
| CN119941550B true CN119941550B (en) | 2025-10-03 |
Family
ID=95537510
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411863017.XA Active CN119941550B (en) | 2024-12-17 | 2024-12-17 | Dynamic obstacle point cloud filtering method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119941550B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120593771B (en) * | 2025-07-16 | 2025-10-14 | 济南三五一五信息科技有限责任公司 | A navigation and positioning method and system for delivery drones in highway service areas |
| CN120612558B (en) * | 2025-08-08 | 2025-10-28 | 上海联赣光电科技有限公司 | Laser radar smoke and fire monitoring visual analysis method and system for forest protection |
| CN121033557A (en) * | 2025-10-30 | 2025-11-28 | 绍兴锋锐电子科技有限公司 | A visual recognition-based method and system for classifying cargo information |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117788735A (en) * | 2023-12-27 | 2024-03-29 | 哈尔滨工业大学 | Dynamic point cloud removal method based on grid division |
| CN118691651A (en) * | 2024-06-05 | 2024-09-24 | 广东工业大学 | A method for unmanned boat lidar point cloud registration in complex environment interference |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111815707B (en) * | 2020-07-03 | 2024-05-28 | 北京爱笔科技有限公司 | Point cloud determining method, point cloud screening method, point cloud determining device, point cloud screening device and computer equipment |
| CN112162297B (en) * | 2020-09-24 | 2022-07-19 | 燕山大学 | Method for eliminating dynamic obstacle artifacts in laser point cloud map |
| US11232544B1 (en) * | 2020-10-09 | 2022-01-25 | Nvidia Corporation | History clamping for denoising dynamic ray-traced scenes using temporal accumulation |
| WO2022133770A1 (en) * | 2020-12-23 | 2022-06-30 | 深圳元戎启行科技有限公司 | Method for generating point cloud normal vector, apparatus, computer device, and storage medium |
| CN118795499A (en) * | 2023-04-12 | 2024-10-18 | 成都昌绥恬信息科技有限公司 | Automobile intelligent obstacle perception method, system, electronic device and storage medium |
-
2024
- 2024-12-17 CN CN202411863017.XA patent/CN119941550B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117788735A (en) * | 2023-12-27 | 2024-03-29 | 哈尔滨工业大学 | Dynamic point cloud removal method based on grid division |
| CN118691651A (en) * | 2024-06-05 | 2024-09-24 | 广东工业大学 | A method for unmanned boat lidar point cloud registration in complex environment interference |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119941550A (en) | 2025-05-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN119941550B (en) | Dynamic obstacle point cloud filtering method and device | |
| CN111968229B (en) | High-precision map making method and device | |
| JP6745328B2 (en) | Method and apparatus for recovering point cloud data | |
| CN112784873B (en) | A method and device for constructing a semantic map | |
| EP3570253B1 (en) | Method and device for reconstructing three-dimensional point cloud | |
| US8199977B2 (en) | System and method for extraction of features from a 3-D point cloud | |
| US11860846B2 (en) | Methods, systems and apparatus to improve spatial-temporal data management | |
| KR101380628B1 (en) | Method and apparatus for object tracking using multiple cameras | |
| WO2021052283A1 (en) | Method for processing three-dimensional point cloud data and computing device | |
| WO2014138622A1 (en) | Performance prediction for generation of point clouds from passive imagery | |
| CN112328715A (en) | Visual positioning method and related model training method and related devices and equipment | |
| CN118397588B (en) | Camera scene analysis method, system, equipment and medium for intelligent driving automobile | |
| CN112381873B (en) | A data labeling method and device | |
| CN116342899A (en) | A target detection and positioning method, device, equipment and storage medium | |
| CN118674886B (en) | Intelligent geographic mapping data processing method and system | |
| KR20250087618A (en) | Image-based speed determination method, device, apparatus and storage medium | |
| CN113158816B (en) | Visual odometry quadratic surface road sign construction method for outdoor scene objects | |
| CN116266359A (en) | Target tracking method, device, computer equipment and storage medium | |
| CN118015559A (en) | Object identification method and device, electronic equipment and storage medium | |
| CN115909284B (en) | Method and device for acquiring three-dimensional attribute of target traffic signal lamp and electronic equipment | |
| CN114494597B (en) | Plan view generation method and device and computer readable storage medium | |
| CN110399892B (en) | Environmental Feature Extraction Method and Device | |
| CN119251408B (en) | Image processing method, device and storage medium based on open vocabulary | |
| CN120689581B (en) | Large-space real-time positioning method and system based on SLAM and visual graphics | |
| CN117611670A (en) | Building height estimation methods, devices, electronic equipment and storage media |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |