[go: up one dir, main page]

CN118349694B - Method and system for generating ramp converging region vehicle track database - Google Patents

Method and system for generating ramp converging region vehicle track database Download PDF

Info

Publication number
CN118349694B
CN118349694B CN202410772478.XA CN202410772478A CN118349694B CN 118349694 B CN118349694 B CN 118349694B CN 202410772478 A CN202410772478 A CN 202410772478A CN 118349694 B CN118349694 B CN 118349694B
Authority
CN
China
Prior art keywords
vehicle
bounding box
point cloud
target
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
Application number
CN202410772478.XA
Other languages
Chinese (zh)
Other versions
CN118349694A (en
Inventor
张紫豪
田源
魏明召
郭洪宇
张朔
赵涛
厉周缘
吴建清
杜聪
王建柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University
Original Assignee
Shandong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University filed Critical Shandong University
Priority to CN202410772478.XA priority Critical patent/CN118349694B/en
Publication of CN118349694A publication Critical patent/CN118349694A/en
Application granted granted Critical
Publication of CN118349694B publication Critical patent/CN118349694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/766Arrangements for image or video recognition or understanding using pattern recognition or machine learning using regression, e.g. by projecting features on hyperplanes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/54Surveillance or monitoring of activities, e.g. for recognising suspicious objects of traffic, e.g. cars on the road, trains or boats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/64Three-dimensional objects
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/04Detecting movement of traffic to be counted or controlled using optical or ultrasonic detectors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/08Detecting or categorising vehicles

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明提供了一种匝道合流区车辆轨迹数据库的生成方法及系统,属于交通控制技术领域。本发明的方法,包括以下过程:获取匝道合流区的激光雷达点云数据;根据激光雷达点云数据识别出全部的车辆目标;对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库;本发明选择利用匝道合流区的路侧点云数据,通过车辆目标检测和轨迹追踪处理,实现了全面和精准的车辆轨迹数据库的构建。

The present invention provides a method and system for generating a vehicle trajectory database in a ramp merging area, belonging to the field of traffic control technology. The method of the present invention includes the following processes: obtaining laser radar point cloud data in the ramp merging area; identifying all vehicle targets according to the laser radar point cloud data; tracking the trajectories of all identified vehicle targets respectively, calculating the driving data of each vehicle target according to the trajectory tracking results of each vehicle target, and generating a vehicle trajectory database according to the trajectory tracking results and driving data of each vehicle target; the present invention selects and utilizes the roadside point cloud data of the ramp merging area, and realizes the construction of a comprehensive and accurate vehicle trajectory database through vehicle target detection and trajectory tracking processing.

Description

匝道合流区车辆轨迹数据库的生成方法及系统Method and system for generating vehicle trajectory database in ramp merging area

技术领域Technical Field

本发明涉及交通控制技术领域,具体涉及一种匝道合流区车辆轨迹数据库的生成方法及系统。The present invention relates to the technical field of traffic control, and in particular to a method and system for generating a vehicle trajectory database in a ramp merging area.

背景技术Background Art

交通信息是城市交通规划和交通管理的重要基础信息,通过获取全面、丰富、实时的交通信息不但可以把握城市道路的交通通行能力现状,还可以对潜在的交通冲突进行实时预警,最大限度保留道路本身的通行能力,保证交通安全性。交通信息可大致分为两种,静态交通信息和动态交通信息。动态交通信息采集技术按照其采集方式分为自动和非自动采集两种。非自动采集技术的主要特点是需要人工干预才能完成交通信息的采集,如人工采集法、试验车移动调查等;自动采集技术的主要特点是完全依靠采集设备自动感知道路使用者的通过或存在,实现对交通信息的全方位、实时采集,更具有应用价值,所以能实时自动采集交通信息的方法是主要的讨论方向。Traffic information is an important basic information for urban traffic planning and traffic management. By obtaining comprehensive, rich and real-time traffic information, we can not only grasp the current status of urban road traffic capacity, but also give real-time warnings for potential traffic conflicts, maximize the road capacity itself, and ensure traffic safety. Traffic information can be roughly divided into two types, static traffic information and dynamic traffic information. Dynamic traffic information collection technology is divided into automatic and non-automatic collection according to its collection method. The main feature of non-automatic collection technology is that it requires manual intervention to complete the collection of traffic information, such as manual collection method, test vehicle mobile survey, etc.; the main feature of automatic collection technology is that it completely relies on the collection equipment to automatically sense the passage or existence of road users, realize the all-round and real-time collection of traffic information, and has more application value, so the method that can automatically collect traffic information in real time is the main discussion direction.

传统的交通信息采集方法包括交通调查员实地观察、人工统计、交通计数器和交通摄像头,然而,它们存在着数据收集效率低、实时性差等局限。交通信息采集技术多采用单一传感器,数据类型单一且具有很多限制。目前,按信息采集设备原理的不同,在路侧采用的设备类别主要有磁频类传感器、波频类传感器、压电传感器、视频传感器和GPS等。Traditional methods of collecting traffic information include on-site observation by traffic investigators, manual statistics, traffic counters and traffic cameras. However, they have limitations such as low data collection efficiency and poor real-time performance. Traffic information collection technology mostly uses a single sensor with a single data type and many limitations. At present, according to the different principles of information collection equipment, the types of equipment used on the roadside mainly include magnetic frequency sensors, wave frequency sensors, piezoelectric sensors, video sensors and GPS.

相比之下,现代技术为交通信息采集带来了巨大的变化。全球定位系统(GPS)技术可通过安装在交通工具上的设备实时跟踪车辆的位置、速度和行驶方向,提供高精度和实时性的数据。智能手机和移动应用的广泛使用使个人成为信息采集参与者,匿名地提供车辆速度、行驶轨迹和交通拥堵等数据,尽管需要注意隐私和数据质量问题。此外,物联网技术支持下的传感器部署和高分辨率摄像头结合计算机视觉技术,使得自动化的交通信息采集和处理成为可能,包括车辆检测、车牌识别和交通违规行为监测。这些现代技术为提高交通信息采集的效率、精确性和实时性提供了有力工具,有助于更好地管理交通流量、监测拥堵和确保交通安全。In contrast, modern technology has brought about tremendous changes in traffic information collection. Global Positioning System (GPS) technology can track the location, speed and direction of vehicles in real time through devices installed on vehicles, providing highly accurate and real-time data. The widespread use of smartphones and mobile applications has enabled individuals to become participants in information collection, anonymously providing data such as vehicle speed, driving trajectory and traffic congestion, although attention needs to be paid to privacy and data quality issues. In addition, the deployment of sensors and high-resolution cameras supported by the Internet of Things technology combined with computer vision technology has made automated traffic information collection and processing possible, including vehicle detection, license plate recognition and traffic violation monitoring. These modern technologies provide powerful tools to improve the efficiency, accuracy and real-time nature of traffic information collection, helping to better manage traffic flow, monitor congestion and ensure traffic safety.

目前,针对匝道合流区的车辆轨迹数据,常见的公开数据库多是基于摄像头构建的,大多采用无人机来录制,比如NGSIM与INTERACTION数据集,这些数据库通常以车载角度为主要视角进行数据采集,例如Mirror-Traffic与Lyft数据集,缺乏从路侧角度出发、专注于匝道合流区的车辆轨迹公开数据集。At present, common public databases for vehicle trajectory data in ramp merging areas are mostly built based on cameras, and most of them are recorded by drones, such as the NGSIM and INTERACTION datasets. These databases usually collect data from the vehicle-mounted perspective as the main perspective, such as the Mirror-Traffic and Lyft datasets. There is a lack of public datasets of vehicle trajectories that focus on ramp merging areas from the roadside perspective.

发明内容Summary of the invention

为了解决现有技术的不足,本发明提供了一种匝道合流区车辆轨迹数据库的生成方法及系统,选择利用匝道合流区的路侧点云数据,通过车辆目标检测和轨迹追踪处理,实现了全面和精准的车辆轨迹数据库的构建。In order to address the deficiencies of the prior art, the present invention provides a method and system for generating a vehicle trajectory database in a ramp merging area, which selectively utilizes the roadside point cloud data of the ramp merging area and realizes the construction of a comprehensive and accurate vehicle trajectory database through vehicle target detection and trajectory tracking processing.

为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solution:

第一方面,本发明提供了一种匝道合流区车辆轨迹数据库的生成方法。In a first aspect, the present invention provides a method for generating a vehicle trajectory database in a ramp merging area.

一种匝道合流区车辆轨迹数据库的生成方法,包括以下过程:A method for generating a vehicle trajectory database in a ramp merging area includes the following steps:

获取匝道合流区的激光雷达点云数据;Obtain LiDAR point cloud data of ramp merging areas;

根据激光雷达点云数据识别出全部的车辆目标;Identify all vehicle targets based on LiDAR point cloud data;

对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库。The trajectories of all identified vehicle targets are tracked respectively, the driving data of each vehicle target is calculated according to the trajectory tracking results of each vehicle target, and the vehicle trajectory database is generated according to the trajectory tracking results and driving data of each vehicle target.

作为本发明第一方面进一步的限定,根据激光雷达点云数据识别出全部的车辆目标,包括:As a further limitation of the first aspect of the present invention, identifying all vehicle targets according to the laser radar point cloud data includes:

对激光雷达点云数据进行分割,得到车辆目标的三维包围框,对三维包围框内的点云特征进行池化处理,对池化处理后的点云特征进行正则变换,得到各个车辆目标。The laser radar point cloud data is segmented to obtain the three-dimensional bounding box of the vehicle target, the point cloud features in the three-dimensional bounding box are pooled, and the pooled point cloud features are regularized to obtain each vehicle target.

作为本发明第一方面更进一步的限定,对激光雷达点云数据进行分割,得到车辆目标的三维包围框,包括:As a further limitation of the first aspect of the present invention, segmenting the laser radar point cloud data to obtain a three-dimensional bounding box of the vehicle target includes:

按激光雷达坐标系的X轴和Z轴,将激光雷达数据分割成多个离散的bin,并为每个bin设定搜索范围,将每个一维的搜索距离等分为多个bin,以表征不同目标的中心位置,利用交叉熵损失函数对三维包围框进行回归计算,得到最终的车辆目标的三维包围框。According to the X-axis and Z-axis of the LiDAR coordinate system, the LiDAR data is divided into multiple discrete bins, and a search range is set for each bin. Each one-dimensional search distance is equally divided into multiple bins to characterize the center position of different targets. The three-dimensional bounding box is regressed using the cross entropy loss function to obtain the final three-dimensional bounding box of the vehicle target.

作为本发明第一方面更进一步的限定,对三维包围框内的点云特征进行池化处理,包括:As a further limitation of the first aspect of the present invention, performing pooling processing on the point cloud features within the three-dimensional bounding box includes:

定义每个三维包围框的参数,其中,分别代表三维包围框的中心坐标,代表三维包围框的高度、宽度和长度,表示三维包围框的朝向角度;Define the parameters of each 3D bounding box ,in, Represent the center coordinates of the three-dimensional bounding box, Represents the height, width and length of the three-dimensional bounding box, Indicates the orientation angle of the 3D bounding box;

对三维包围框进行扩展后,得到扩展后的三维包围框的参数为预设的常量值;After expanding the three-dimensional bounding box, the parameters of the expanded three-dimensional bounding box are obtained. , is the preset constant value;

通过点云分割得到的分割掩膜真值,判断内的点云属于前景点还是背景点,将未包含前景点的三维包围框剔除。The true value of the segmentation mask obtained by point cloud segmentation is judged The point cloud in the image belongs to the foreground point or the background point, and the 3D bounding box that does not contain the foreground point is eliminated.

作为本发明第一方面更进一步的限定,对池化处理后的点云特征进行正则变换,在变换后的正则坐标系下,坐标原点位于三维包围框簇的中心,正则坐标系的轴平行于地面且朝向与车辆的前进方向一致,轴则与激光雷达坐标系的Y轴保持一致;As a further limitation of the first aspect of the present invention, the point cloud features after the pooling process are subjected to a canonical transformation, and in the transformed canonical coordinate system, the origin of the coordinates is located at the center of the three-dimensional bounding box cluster, and the canonical coordinate system and The axis is parallel to the ground and The direction is consistent with the vehicle's forward direction. The axis is consistent with the Y axis of the laser radar coordinate system;

若三维包围框的参数为,真实三维包围框参数为,经过正则变换后:If the parameters of the 3D bounding box are , the parameters of the true 3D bounding box are , after regular transformation:

,其中,分别代表真实三维包围框的中心坐标,代表真实三维包围框的高度、宽度和长度,表示真实三维包围框的朝向角度; , ,in, Represent the center coordinates of the real 3D bounding box, Represents the height, width and length of the real 3D bounding box, Indicates the orientation angle of the real 3D bounding box;

损失函数为:Loss Function for:

,其中,表示所有生成的三维包围框,代表在三维包围框回归计算中被视为正样本的候选簇,为对目标估计的置信度,为所估计目标的真值,为交叉信息熵损失,分别代表bin分类损失和残差回归损失。 ,in, represents all generated 3D bounding boxes, Represents the candidate clusters that are considered as positive samples in the 3D bounding box regression calculation, is the confidence level of the target estimate, is the true value of the estimated target, is the cross information entropy loss, and Represent bin classification loss and residual regression loss respectively.

作为本发明第一方面进一步的限定,采用AB3DMOT算法对识别出的全部车辆目标分别进行轨迹追踪。As a further limitation of the first aspect of the present invention, the AB3DMOT algorithm is used to track the trajectories of all identified vehicle targets respectively.

第二方面,本发明提供了一种匝道合流区车辆轨迹数据库的生成系统。In a second aspect, the present invention provides a system for generating a vehicle trajectory database in a ramp merging area.

一种匝道合流区车辆轨迹数据库的生成系统,包括:A system for generating a vehicle trajectory database in a ramp merging area, comprising:

数据获取单元,被配置为:获取匝道合流区的激光雷达点云数据;The data acquisition unit is configured to: acquire laser radar point cloud data of a ramp merging area;

车辆目标识别单元,被配置为:根据激光雷达点云数据识别出全部的车辆目标;The vehicle target recognition unit is configured to: recognize all vehicle targets according to the laser radar point cloud data;

数据库生成单元,被配置为:对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库。The database generation unit is configured to: perform trajectory tracking on all identified vehicle targets respectively, calculate the driving data of each vehicle target according to the trajectory tracking results of each vehicle target, and generate a vehicle trajectory database according to the trajectory tracking results and driving data of each vehicle target.

第三方面,本发明提供了一种匝道合流区车辆轨迹数据库,采用本发明第一方面所述的匝道合流区车辆轨迹数据库的生成方法生成;可以是设定时间段的匝道合流区车辆轨迹数据库,也可以实时的进行数据汇入以形成长时段的匝道合流区车辆轨迹数据库。In a third aspect, the present invention provides a ramp merging area vehicle trajectory database, which is generated by the ramp merging area vehicle trajectory database generation method described in the first aspect of the present invention; it can be a ramp merging area vehicle trajectory database for a set time period, or data can be imported in real time to form a ramp merging area vehicle trajectory database for a long period of time.

第四方面,本发明提供了一种计算机设备,包括:处理器和计算机可读存储介质;In a fourth aspect, the present invention provides a computer device, comprising: a processor and a computer-readable storage medium;

处理器,适于执行计算机程序;a processor adapted to execute a computer program;

计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被所述处理器执行时,实现如本发明第一方面所述的匝道合流区车辆轨迹数据库的生成方法。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method for generating a ramp merging area vehicle trajectory database as described in the first aspect of the present invention is implemented.

第五方面,本发明提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序适于被处理器加载并执行如本发明第一方面所述的匝道合流区车辆轨迹数据库的生成方法。In a fifth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by a processor and executing the method for generating a ramp merging area vehicle trajectory database as described in the first aspect of the present invention.

与现有技术相比,本发明的有益效果是:Compared with the prior art, the present invention has the following beneficial effects:

1、本发明创新性的提出了一种匝道合流区车辆轨迹数据库的生成方法及系统,选择利用匝道合流区的路侧点云数据,对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库,实现了全面和精准的车辆轨迹数据库的构建。1. The present invention innovatively proposes a method and system for generating a vehicle trajectory database in a ramp merging area, which selects and utilizes the roadside point cloud data of the ramp merging area to track the trajectories of all identified vehicle targets respectively, calculates the driving data of each vehicle target according to the trajectory tracking results of each vehicle target, and generates a vehicle trajectory database according to the trajectory tracking results and driving data of each vehicle target, thereby realizing the construction of a comprehensive and accurate vehicle trajectory database.

2、本发明对激光雷达点云数据进行分割,得到车辆目标的三维包围框,对三维包围框内的点云特征进行池化处理,对池化处理后的点云特征进行正则变换,得到各个车辆目标,保证了车辆目标识别的精度。2. The present invention segments the laser radar point cloud data to obtain a three-dimensional bounding box of the vehicle target, performs pooling processing on the point cloud features within the three-dimensional bounding box, performs regularization transformation on the pooled point cloud features to obtain each vehicle target, thereby ensuring the accuracy of vehicle target recognition.

3、本发明通过将周边区域按X轴和Z轴分割成多个离散的bin,并为每个bin设定搜索范围,将每个一维的搜索距离等分为多个bin,以表征不同目标的中心位置,利用交叉熵损失函数对三维包围框进行回归计算,保证了三维包围框识别的精度。3. The present invention divides the surrounding area into multiple discrete bins according to the X-axis and Z-axis, sets a search range for each bin, divides each one-dimensional search distance into multiple bins to characterize the center position of different targets, and uses the cross entropy loss function to perform regression calculation on the three-dimensional bounding box to ensure the accuracy of three-dimensional bounding box recognition.

4、本发明将每个点到坐标原点的距离作为额外的特征引入模型中,这样的距离信息有助于在后续的网络学习过程中恢复或弥补深度信息的损失,确保模型能够准确地理解目标物体的三维结构。4. The present invention introduces the distance from each point to the coordinate origin into the model as an additional feature. Such distance information helps to restore or compensate for the loss of depth information in the subsequent network learning process, ensuring that the model can accurately understand the three-dimensional structure of the target object.

5、本发明的损失函数综合了分类损失和回归损失,实现了对三维包围框的精确优化,不仅提高了模型的准确度,也增强了模型对复杂场景下物体定位与尺寸估计的能力。5. The loss function of the present invention combines classification loss and regression loss to achieve accurate optimization of the three-dimensional bounding box, which not only improves the accuracy of the model, but also enhances the model's ability to locate and estimate the size of objects in complex scenes.

本发明附加方面的优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

构成本发明的一部分的说明书附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

图1为本发明实施例1中提供的直接式加速车道合流区示意图;FIG1 is a schematic diagram of a direct acceleration lane merging area provided in Embodiment 1 of the present invention;

图2为本发明实施例1中提供的平行式加速车道合流区示意图;FIG2 is a schematic diagram of a parallel acceleration lane merging area provided in Embodiment 1 of the present invention;

图3为本发明实施例1提供的激光雷达的数据采集平台搭建示意图;FIG3 is a schematic diagram of a data acquisition platform for a laser radar provided in Example 1 of the present invention;

图4为本发明实施例1提供的车辆轨迹可视化效果图。FIG. 4 is a diagram showing the visualization effect of vehicle trajectories provided in Example 1 of the present invention.

具体实施方式DETAILED DESCRIPTION

下面结合附图与实施例对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

应该指出,以下详细说明都是示例性的,旨在对本发明提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本发明所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

实施例1:Embodiment 1:

本实现方式提出了一种匝道合流区车辆轨迹数据库的生成方法,包括以下过程:This implementation proposes a method for generating a vehicle trajectory database in a ramp merging area, including the following process:

S1:搭建基于激光雷达的数据采集平台,采集匝道合流区交通数据,以激光雷达点云数据格式进行保存;S1: Build a data collection platform based on LiDAR to collect traffic data of ramp merging areas and save it in LiDAR point cloud data format;

S2:处理激光雷达点云数据,从中识别出全部的车辆目标;S2: Process the LiDAR point cloud data and identify all vehicle targets;

S3:对识别的全部车辆目标进行轨迹追踪,依据轨迹追踪结果,计算其他字段的数据(如速度和加速度),建立全面的车辆轨迹数据库。S3: Track the trajectories of all identified vehicle targets, calculate the data of other fields (such as speed and acceleration) based on the trajectory tracking results, and establish a comprehensive vehicle trajectory database.

本实现方式的步骤S1中,匝道合流区的定义域分类,包括:In step S1 of this implementation, the definition domain classification of the ramp merging area includes:

车辆合流是指来自同一方向的两股车流汇合成一股的过程,在高速公路上,合流区由入口匝道、加速车道和主线车道三部分组成:入口匝道用于引导车辆进入主干道;加速车道位于主线车道右侧,为进入匝道的车辆提供加速空间,以便安全地汇入主线车流;主线车道则由中央隔离带隔开,供直行行驶。Vehicle merging refers to the process in which two traffic flows coming from the same direction merge into one. On the highway, the merging area consists of three parts: the entrance ramp, the acceleration lane and the main lane. The entrance ramp is used to guide vehicles into the main road; the acceleration lane is located on the right side of the main lane, providing acceleration space for vehicles entering the ramp so that they can safely merge into the main traffic flow; the main lane is separated by a central isolation strip for straight driving.

合流区根据加速车道的设计不同,合流区可分为直接式的加速车道(如图1)和平行式的加速车道(如图2),以内侧车道、中间车道和外侧车道三车道为例,合流区域所在区段为加速车道,加速车道包括加速段和渐变段。直接式的加速车道主要适用于流量较小的路段,其从匝道逐渐斜向扩展直接连接到主线车道,但可能由于连接处较为陡峭而降低司机驾驶的舒适度;与之相比,平行式的加速车道更适合流量较大的路段,加速段与主线车道平行,提供了更为平缓的行车轨迹和明确的车道线划分,使其更易于驾驶和识别,本发明选取平行式的加速车道的合流区进行研究(如图2所示)。According to the different designs of the acceleration lanes, the merging area can be divided into direct acceleration lanes (as shown in Figure 1) and parallel acceleration lanes (as shown in Figure 2). Taking the three lanes of the inner lane, the middle lane and the outer lane as an example, the section where the merging area is located is the acceleration lane, and the acceleration lane includes an acceleration section and a gradient section. The direct acceleration lane is mainly suitable for sections with less traffic. It gradually extends diagonally from the ramp and directly connects to the main lane, but the driver's driving comfort may be reduced due to the steep connection. In comparison, the parallel acceleration lane is more suitable for sections with more traffic. The acceleration section is parallel to the main lane, providing a smoother driving trajectory and clear lane line division, making it easier to drive and identify. The present invention selects the merging area of the parallel acceleration lane for research (as shown in Figure 2).

本实现方式的步骤S1中,搭建基于激光雷达的数据采集平台,包括:In step S1 of this implementation, a data acquisition platform based on laser radar is built, including:

由于采集数据的路段通常无直接可用的交流电源,所以需要携带便携式移动电源进行户外电源支持,搭建基于激光雷达的数据采集平台涉及到的设备包括:电池、逆变器、上位机(通常为笔记本电脑)、激光雷达及其支架、供电线、数据线,其连接方式如图3所示,激光雷达的参数应不低于表1的要求。Since there is usually no directly available AC power supply on the road section where data is collected, it is necessary to carry a portable mobile power supply for outdoor power support. The equipment involved in building a data collection platform based on LiDAR includes: batteries, inverters, host computers (usually laptops), LiDAR and its bracket, power lines, and data lines. The connection method is shown in Figure 3. The parameters of the LiDAR should not be lower than the requirements in Table 1.

表1:激光雷达参数Table 1: LiDAR parameters

本实现方式的步骤S2中,车辆目标识别,包括:In step S2 of this implementation, vehicle target recognition includes:

在轨迹追踪车辆目标之前,首先必须对车辆进行准确的检测,这涉及到处理原始的激光雷达三维点云数据以识别出单一的目标车辆,这些初步的检测结果随后用于指导车辆的轨迹追踪过程;为此,本发明采用PointRCNN算法来对激光雷达生成的三维点云数据执行高精度的目标检测,该算法主要通过以下三个关键步骤实现:首先是生成目标候选簇,其次进行点云区域的池化处理,最后对三维边界框进行精细的规范化优化。Before tracking the vehicle target, the vehicle must first be accurately detected, which involves processing the original LiDAR 3D point cloud data to identify a single target vehicle. These preliminary detection results are then used to guide the vehicle's trajectory tracking process. To this end, the present invention adopts the PointRCNN algorithm to perform high-precision target detection on the 3D point cloud data generated by the LiDAR. The algorithm is mainly implemented through the following three key steps: first, generating target candidate clusters, then performing pooling processing on the point cloud area, and finally fine-tuning and normalizing the 3D bounding box.

基于点云分割生成目标候选簇,包括:Generate target candidate clusters based on point cloud segmentation, including:

本发明首先是利用PointNet++网络,借助其多尺度分组特性对点云数据进行深度特征提取;随后,采取了一种点特征学习策略,通过“分割头(Segmentation head)”有效区分场景中的前景点,进而利用“包围框回归头(box regression head)”处理这些经主干网络编码的原始点云数据,以估算前景掩膜并生成三维的候选框。The present invention firstly utilizes the PointNet++ network to perform deep feature extraction on point cloud data with the help of its multi-scale grouping characteristics; then, a point feature learning strategy is adopted to effectively distinguish the foreground points in the scene through the "segmentation head", and then the "box regression head" is used to process the original point cloud data encoded by the backbone network to estimate the foreground mask and generate a three-dimensional candidate box.

在点云分割阶段,本发明通过对数据集中的三维包围框标注真值的利用,生成对应的分割掩膜真值,考虑到实际场景中前景与背景点数量的不均衡问题,本发明引入Focalloss(简称FL),其表达式如式(1)所示,其中,表示前景点的预测概率,参数设置为0.25,设置为2,以优化点云分割效果:In the point cloud segmentation stage, the present invention generates the corresponding segmentation mask true value by utilizing the true value of the three-dimensional bounding box annotation in the data set. Considering the imbalance of the number of foreground and background points in the actual scene, the present invention introduces Focalloss (FL for short), which is expressed as shown in formula (1), where: Represents the predicted probability of the prospect point, parameter Set to 0.25, Set to 2 to optimize the point cloud segmentation effect:

FL()=(1);FL( )= (1);

如果是前景点,则预测概率的值为,否则,预测概率的值为If it is a foreground point, the predicted probability The value of , otherwise, the predicted probability The value of .

本实现方式中,优选的设计了一种基于bin的三维候选框生成策略,通过将周边区域按X轴和Z轴分割成多个离散的bins,并为每个bin设定搜索范围S;随后,将每个一维的搜索距离等分为多个bin,以表征不同目标的中心位置;最后,利用交叉熵损失函数对三维包围框进行回归计算。In this implementation, a bin-based 3D candidate box generation strategy is preferably designed, which divides the surrounding area into multiple discrete bins according to the X-axis and Z-axis, and sets a search range S for each bin; then, each one-dimensional search distance is equally divided into multiple bins to characterize the center position of different targets; finally, the cross entropy loss function is used to perform regression calculation on the 3D bounding box.

点云区域池化,包括:Point cloud area pooling, including:

在点云区域池化阶段,本发明对先前识别并生成的三维包围框内的点云特征进行细致的池化处理,旨在进一步提炼出目标物体的详细位置信息。此过程涉及到对每个三维包围框的精确定义和调整,以确保可以从中提取最具代表性的特征信息。定义每个三维包围框的参数,可用式(2)进行表示:In the point cloud region pooling stage, the present invention performs a detailed pooling process on the point cloud features within the previously identified and generated three-dimensional bounding box, aiming to further extract the detailed location information of the target object. This process involves the precise definition and adjustment of each three-dimensional bounding box to ensure that the most representative feature information can be extracted from it. The parameters defining each three-dimensional bounding box can be expressed by formula (2):

(2); (2);

其中,分别代表包围框的中心坐标,代表包围框的高度、宽度和长度,表示包围框的朝向角度。为了捕获更丰富的语义信息,本发明对包围框进行适度扩展,这不仅有助于增强模型对目标物体细节的感知能力,也为后续的精确检测提供了更为全面的数据支持。扩展后的包围框表示为式(3):in, Represent the center coordinates of the bounding box, Represents the height, width and length of the bounding box, Indicates the orientation angle of the bounding box. In order to capture richer semantic information, the present invention appropriately expands the bounding box, which not only helps to enhance the model's perception of the details of the target object, but also provides more comprehensive data support for subsequent accurate detection. The expanded bounding box is expressed as formula (3):

(3); (3);

其中,是预设的常量值,用于调整包围框的大小,从而包含更多可能的前景点,同时保留足够的背景信息以供对比。通过分析先前通过点云分割得到的分割掩膜真值,本发明能够判断内的点云属于前景点还是背景点,这一步骤显著提高了包围框候选簇的质量。未包含前景点的包围框将被剔除,确保仅对有可能包含目标物体的区域进行后续处理,从而实现对目标物体位置的精准估计与识别。in, is a preset constant value used to adjust the size of the bounding box to include more possible foreground points while retaining enough background information for comparison. By analyzing the true value of the segmentation mask previously obtained through point cloud segmentation, the present invention can determine The point cloud in the image belongs to the foreground point or the background point. This step significantly improves the quality of the candidate clusters of bounding boxes. The bounding boxes that do not contain foreground points will be eliminated to ensure that only the areas that may contain the target object are processed later, thereby achieving accurate estimation and recognition of the target object's position.

规范三维包围框优化,包括:Standardized 3D bounding box optimization, including:

针对上述三维边界框优化的过程,本发明采用更为精准的正则变换方法来处理通过点云区域池化获得的点云数据。这种方法旨在将点云数据转换到一个更为规范化的坐标系中,以便进行更准确的包围框定位和尺寸估计。在变换后的正则坐标系下,转换后的坐标系具有以下特性:(1)坐标原点位于包围框候选簇的中心,(2)正则坐标系的轴平行于地面并确保朝向与车辆的前进方向一致,(3)轴则与激光雷达的坐标系保持一致。这种坐标系的设置为之后的包围框优化提供了一个标准化的参考框架。In view of the above-mentioned 3D bounding box optimization process, the present invention adopts a more accurate canonical transformation method to process the point cloud data obtained by point cloud region pooling. This method aims to transform the point cloud data into a more standardized coordinate system for more accurate bounding box positioning and size estimation. In the transformed canonical coordinate system, the transformed coordinate system has the following characteristics: (1) the origin of the coordinate is located at the center of the candidate cluster of the bounding box, (2) the canonical coordinate system and The axis is parallel to the ground and ensure The direction is consistent with the vehicle's forward direction, (3) The axes are consistent with the LiDAR coordinate system. This coordinate system setting provides a standardized reference frame for subsequent bounding box optimization.

为了补偿由于坐标变换可能导致的深度信息损失,本发明将每个点到坐标原点的距离作为额外的特征引入模型中。这样的距离信息有助于在后续的网络学习过程中恢复或弥补深度信息的损失,确保模型能够准确地理解目标物体的三维结构,此距离信息可表示为式(4)所示:In order to compensate for the loss of depth information that may be caused by coordinate transformation, the present invention introduces the distance from each point to the coordinate origin as an additional feature into the model. Such distance information helps to restore or compensate for the loss of depth information in the subsequent network learning process, ensuring that the model can accurately understand the three-dimensional structure of the target object. This distance information can be expressed as shown in formula (4):

(4) (4)

进一步地,本发明对每个物体的三维包围框进行了正则坐标变换,设定了三维交并比(IOU)阈值为0.5,以优化包围框的准确性,确保了包围框候选簇与真实包围框之间的最大重合,从而精确反映物体的位置和尺寸,若包围框候选簇的参数表示为,而对应的真实包围框参数为,则经过正则变换后,这些参数将转换为标准化形式如式(5)所示:Furthermore, the present invention performs a canonical coordinate transformation on the 3D bounding box of each object and sets the 3D intersection-over-union (IOU) threshold to 0.5 to optimize the accuracy of the bounding box and ensure the maximum overlap between the candidate cluster of the bounding box and the real bounding box, thereby accurately reflecting the position and size of the object. If the parameters of the candidate cluster of the bounding box are expressed as , and the corresponding true bounding box parameters are , then after regularization transformation, these parameters will be converted into standardized form as shown in formula (5):

(5); (5);

此转换有助于统一处理不同的包围框候选簇,简化了后续的优化和训练过程。This transformation helps to uniformly handle different bounding box candidate clusters and simplifies the subsequent optimization and training process.

最终的损失函数综合了分类损失和回归损失,以优化模型的性能,由式(6)所示:The final loss function combines classification loss and regression loss to optimize the performance of the model, as shown in formula (6):

(6)。 (6).

在这里,表示所有生成的三维包围框候选簇,而则代表那些在包围框回归计算中被视为正样本的候选簇,为对目标所估计的置信度;为所估计目标的真值;为交叉信息熵损失;可由计算得到,分别代表bin分类损失和残差回归损失,共同指导了网络的训练过程,以实现对三维包围框的精确优化。这种综合损失函数的设计不仅提高了模型的准确度,也增强了模型对复杂场景下物体定位与尺寸估计的能力。Here, represents all generated 3D bounding box candidate clusters, and represents the candidate clusters that are considered as positive samples in the bounding box regression calculation. is the estimated confidence level of the target; is the true value of the estimated target; is the cross information entropy loss; and Can be and The calculations show that, respectively, they represent the bin classification loss and the residual regression loss, which jointly guide the network training process to achieve accurate optimization of the 3D bounding box. The design of this comprehensive loss function not only improves the accuracy of the model, but also enhances the model's ability to locate and estimate the size of objects in complex scenes.

本实现方式的步骤S3中,车辆轨迹追踪的方法,包括:In step S3 of this implementation, the vehicle trajectory tracking method includes:

本发明使用AB3DMOT算法作为处理点云数据的轨迹追踪核心机制,其中为了实现对动态目标的连续追踪并保持数据的一致性和准确性,采用了三维卡尔曼滤波模块,结合匈牙利算法,以实现跨帧的目标追踪和数据关联,该算法综合运用了五个关键模块,实现对移动目标的高精度追踪和分析,具体包括:The present invention uses the AB3DMOT algorithm as the core mechanism for processing point cloud data trajectory tracking. In order to achieve continuous tracking of dynamic targets and maintain data consistency and accuracy, a three-dimensional Kalman filter module is used, combined with the Hungarian algorithm to achieve cross-frame target tracking and data association. The algorithm comprehensively uses five key modules to achieve high-precision tracking and analysis of moving targets, including:

(1)三维目标检测模块,负责对车辆、行人等多种目标进行初步识别和定位;(1) 3D object detection module, responsible for the preliminary identification and positioning of various objects such as vehicles and pedestrians;

为了实现对三维目标点云的精确检测,本发明采用了PointRCNN算法,该算法能够从点云数据中识别并定位车辆目标,为后续的轨迹追踪提供了精确的初始数据,检测的结果可以被组织成一个集合,即表示检测目标的总数目),其中每个检测到的目标由一个元组表示,在此集合中表示目标的中心位置坐标,表示目标的三维尺寸,分别为长度、宽度和高度,代表目标的朝向角度,为目标检测的置信度分数,通过精确识别出每个目标的空间位置、尺寸以及朝向,PointRCNN不仅为轨迹追踪提供了可靠的基础,同时也为进一步的行为分析和场景理解奠定了基石。In order to achieve accurate detection of three-dimensional target point clouds, the present invention adopts the PointRCNN algorithm, which can identify and locate vehicle targets from point cloud data, providing accurate initial data for subsequent trajectory tracking. The detection results can be organized into a set, namely Represents the total number of detected targets), where each detected target is represented by a tuple , in this collection Indicates the center position coordinates of the target, Represents the three-dimensional size of the target, which are length, width and height. Represents the target's direction angle, The confidence score of the target detection is obtained by accurately identifying the spatial position, size and orientation of each target. PointRCNN not only provides a reliable foundation for trajectory tracking, but also lays the foundation for further behavior analysis and scene understanding.

(2)三维卡尔曼滤波模块,利用历史数据对目标的当前状态进行预测,以实现连续追踪;(2) A three-dimensional Kalman filter module that uses historical data to predict the current state of the target to achieve continuous tracking;

卡尔曼滤波算法,自1960年提出以来,因其强大的线性系统状态估计能力而广泛应用于多个领域,具体来讲,此算法模块的核心假设包括:①被追踪的系统遵循线性动态模型;②其中会影响测量的噪声可假定为白噪声,并且遵循高斯分布,基于这些假设,现对卡尔曼滤波算法公式进行推导论证,以连续追踪目标物体的状态。Since the Kalman filter algorithm was proposed in 1960, it has been widely used in many fields due to its powerful linear system state estimation capability. Specifically, the core assumptions of this algorithm module include: ① The tracked system follows a linear dynamic model; ② The noise that affects the measurement can be assumed to be white noise and follows a Gaussian distribution. Based on these assumptions, the Kalman filter algorithm formula is now derived and demonstrated to continuously track the state of the target object.

若从时刻到时刻,假设预测系统状态方程为式(7):If from Time has come At this moment, it is assumed that the state equation of the prediction system is as follows:

(7); (7);

其中,是当前时刻的状态估计,是状态转移矩阵,是前一时刻的状态,是控制输入增益矩阵,是系统输入向量,是均值为0、协方差矩阵为且服从正态分布的过程噪声,表示模型预测中的不确定性。in, is the current state estimate, is the state transition matrix, is the state at the previous moment, is the control input gain matrix, is the system input vector, The mean is 0 and the covariance matrix is And the process noise follows a normal distribution, indicating the uncertainty in the model prediction.

总结来说,卡尔曼滤波过程是一种有效的两阶段迭代机制(预测与更新),这为动态系统中目标状态的连续估计提供了方法论基础,在每一次迭代中,卡尔曼滤波器首先利用先前的状态估计来预测目标在当前时刻的状态,随后利用新获得的观测数据对这一预测进行修正,以期获得更准确的状态估计值。In summary, the Kalman filter process is an effective two-stage iterative mechanism (prediction and update), which provides a methodological basis for the continuous estimation of the target state in a dynamic system. In each iteration, the Kalman filter first uses the previous state estimate to predict the state of the target at the current moment, and then uses the newly obtained observation data to correct this prediction in order to obtain a more accurate state estimate.

在目标追踪的应用中,特别是针对车辆、行人等三维空间中的动态目标,卡尔曼滤波算法展现出其独特的优势,通过设定状态向量包括目标的空间位置、尺寸、朝向以及速度等信息,卡尔曼滤波器能够对目标进行有效追踪,精确预测其在三维空间中的运动轨迹;该过程中的状态预测方程和状态更新方程,是基于对目标运动模型的数学描述,允许算法在有限的观测误差和过程噪声的条件下,可以对待追踪的目标的中心坐标值的长宽高等维度信息进行不断预测和更新,以得到待追踪目标的运动轨迹。In target tracking applications, especially for dynamic targets in three-dimensional space such as vehicles and pedestrians, the Kalman filter algorithm shows its unique advantages. By setting the state vector including the target's spatial position, size, orientation, speed and other information, the Kalman filter can effectively track the target and accurately predict its motion trajectory in three-dimensional space. The state prediction equation and state update equation in this process are based on the mathematical description of the target motion model, allowing the algorithm to continuously predict and update the length, width, height and other dimensional information of the center coordinate value of the target to be tracked under limited observation errors and process noise, so as to obtain the motion trajectory of the target to be tracked.

在此模块中,利用卡尔曼滤波算法精确追踪三维空间中移动目标的轨迹,采用等速模型来描述目标的动态行为。通过构建一个综合状态向量,本发明可以持续更新对目标运动状态的估计,从而实现连续追踪。具体实施中,目标的运动状态被表达为一组包含其位置、朝向、尺寸、速度等信息的参数。本发明定义状态向量为:,用于描述运动目标的轨迹信息,其中表示目标在各个方向上的速度。为了预测目标在未来某一时刻的状态,本发明使用等速模型进行简化计算,可表示为式(8):In this module, the Kalman filter algorithm is used to accurately track the trajectory of a moving target in three-dimensional space, and a constant velocity model is used to describe the dynamic behavior of the target. By constructing a comprehensive state vector, the present invention can continuously update the estimate of the target's motion state, thereby achieving continuous tracking. In a specific implementation, the target's motion state is expressed as a set of parameters containing information such as its position, orientation, size, and speed. The present invention defines the state vector as: , used to describe the trajectory information of the moving target, where In order to predict the state of the target at a certain moment in the future, the present invention uses a constant velocity model for simplified calculation, which can be expressed as formula (8):

(8); (8);

这里的分别表示在下一时刻预测的目标位置,在每一帧的轨迹追踪过程中,从前一帧传递到当前帧的轨迹信息是追踪算法的关键输入,这些信息被表述为一个轨迹集合,其中代表在帧中识别出的轨迹数量,对于集合中的每一条轨迹,本发明基于卡尔曼滤波算法的等速模型预测,计算出其在帧的预测状态,如式(9)所示:Here They represent the target position predicted at the next moment. In the trajectory tracking process of each frame, from the previous frame Pass to current frame Track information is the key input of the tracking algorithm. This information is expressed as a set of trajectories ,in Represents the frame The number of trajectories identified in the set The present invention is based on the constant velocity model prediction of the Kalman filter algorithm and calculates its The predicted state is shown in formula (9):

(9); (9);

这里的为第i个目标在当前帧预测的完整状态向量,包括位置、朝向、尺寸、速度等信息。Here The complete state vector predicted for the i -th target in the current frame, including information such as position, orientation, size, and speed.

(3)数据关联模块,通过分析目标检测与卡尔曼滤波预测的结果,执行结果间的匹配工作;(3) Data association module, which performs matching work by analyzing the results of target detection and Kalman filter prediction;

在解决多目标追踪问题中,关键在于如何准确地识别并跟踪场景中的多个目标,尤其是在连续的视频帧中,这一挑战本质上是一个关联问题,需要确定哪些目标在前后帧中是一致的,本发明使用匈牙利算法来解决目多标追踪问题,它通过构建一个成本矩阵来表示每个检测目标与每个预测轨迹之间的匹配成本,然后,该算法寻找一种方式,以最小的总成本将检测到的目标与存在的轨迹关联起来。In solving the problem of multi-target tracking, the key is how to accurately identify and track multiple targets in the scene, especially in continuous video frames. This challenge is essentially an association problem, which requires determining which targets are consistent in the previous and subsequent frames. The present invention uses the Hungarian algorithm to solve the problem of multi-target tracking. It constructs a cost matrix to represent the matching cost between each detected target and each predicted trajectory. Then, the algorithm looks for a way to associate the detected targets with the existing trajectories with the minimum total cost.

依据多任务指派模型,多目标追踪问题相关数学描述可如(10)所示:According to the multi-task assignment model, the mathematical description of the multi-target tracking problem can be shown as (10):

(10); (10);

在多目标追踪问题中,相邻帧之间的运动目标具有唯一的匹配关系,不会出现某一帧的一个目标匹配另一帧中的多个目标,故指派矩阵为0-1决策变量,表示任务是否被指派给员工为代价矩阵,表示将任务指派给员工时产生的成本或代价。在多目标轨迹追踪问题中,进行互相匹配的目标相似度越高,则代价值越小,若相似度越低,则两目标差异越明显,代价越大。一般而言,代价矩阵和效益矩阵是相对的,若假设表示任务指派之后所带来的收益,则此时的目的为找到一种指派方式,使得所有任务到员工的总成本最小,故基于上述数学模型,相关的总成本最大化可表示为式(11):In the multi-target tracking problem, the moving targets between adjacent frames have a unique matching relationship, and there will not be a target in one frame matching multiple targets in another frame, so the assignment matrix is a 0-1 decision variable, indicating the task Assigned to an employee ; is the cost matrix, which means that the task Assign to staff The cost or price incurred when the target is matched. In the multi-target trajectory tracking problem, the higher the similarity of the targets to be matched, the smaller the cost value. If the similarity is lower, the difference between the two targets is more obvious, and the cost is greater. In general, the cost matrix and the benefit matrix are relative. If we assume represents the benefits after task assignment. The goal at this time is to find an assignment method that minimizes the total cost of all tasks to employees. Based on the above mathematical model, the relevant total cost maximization can be expressed as formula (11):

(11); (11);

设置代价最小矩阵为:Set the minimum cost matrix to:

(12); (12);

故效益矩阵如式(13)所示:Therefore, the benefit matrix is shown in formula (13):

(13); (13);

则代价最小最优解可以表示为:The optimal solution with the minimum cost can be expressed as:

(14); (14);

因为为一常量,则有:because is a constant, then:

(15); (15);

即:Right now:

(16); (16);

从式(15)和式(16)可得,这一过程确保了成本最小化与效益最大化之间的等价性,从而提高了多目标追踪的精确度和效率。From equations (15) and (16), it can be seen that this process ensures the equivalence between cost minimization and benefit maximization, thereby improving the accuracy and efficiency of multi-target tracking.

在此模块中,通过创建一个维度为的关联矩阵,本发明能够计算每对检测目标和预测轨迹之间的匹配相似度,进而利用三维交并比(三维Intersection ofUnion,三维IoU)为每对检测目标和预测轨迹提供一个具体的评分。这样,通过匈牙利算法的求解,可以确定已匹配和未匹配的目标,为后续的轨迹更新提供可靠依据,则相关的数据关联结果用数学描述式可表示为:In this module, by creating a dimension The present invention can calculate the matching similarity between each pair of detected targets and predicted trajectories, and then use the three-dimensional intersection of Union (3D IoU) to provide a specific score for each pair of detected targets and predicted trajectories. In this way, by solving the Hungarian algorithm, the matched and unmatched targets can be determined, providing a reliable basis for subsequent trajectory updates. The relevant data association results can be expressed as follows using a mathematical description:

(17); (17);

在式(18)中,分别代表成功匹配的轨迹和检测到的目标,反映了数据中已成功关联的目标总数,与此同时,分别表示那些未能找到匹配的轨迹和目标。In formula (18), and Represent the successfully matched trajectory and the detected target respectively, reflects the total number of targets that have been successfully associated in the data. and They represent the trajectories and targets for which no matches were found, respectively.

(4)目标物体状态更新模块,根据新的观测数据调整目标的追踪状态;(4) Target object state update module, which adjusts the target tracking state according to the new observation data;

在目标物体状态更新模块中,轨迹追踪系统通过整合每个目标的检测信息和对应的预测信息来优化目标状态的估计。具体而言,系统会根据帧t的数据更新目标轨迹,这些轨迹用集合表示,对于每个已匹配的轨迹,更新后的状态表示为(其中),不仅反映了目标的最新位置和属性,而且融合了检测信息和原始轨迹信息,这一过程中采用加权平均法,其中加权系数由卡尔曼滤波算法提供,以确保更新过程既考虑了最新的观测数据,提高了追踪的连续性和可靠性。In the target object state update module, the trajectory tracking system optimizes the estimate of the target state by integrating the detection information of each target and the corresponding prediction information. Specifically, the system updates the target trajectory based on the data of frame t. These trajectories are represented by the set Indicates that for each matched trajectory, the updated state is expressed as (in ), which not only reflects the latest position and attributes of the target, but also integrates the detection information and original trajectory information ,In this process, the weighted average method is used, where the weight coefficient is provided by the Kalman filter algorithm, ,to ensure that the update process takes into account the latest observation data and improves the ,continuity and reliability of tracking.

(5)轨迹生命周期管理模块,自动管理轨迹的生成、维护及终结过程。(5) Trajectory lifecycle management module, which automatically manages the generation, maintenance, and termination process of trajectories.

轨迹生命周期管理模块是轨迹追踪系统中至关重要的一部分,它负责处理目标物体在监控场景中的进入和退出,确保系统能够灵活地适应目标物体的动态变化。该模块主要包括两个关键环节:①新目标识别与轨迹初始化:对于所有未能与现有轨迹匹配的检测结果,系统将它们视为新出现的目标,并进行标记,为了避免因偶发误检或其他因素导致的数据冗余,这些未匹配的检测结果不会立即生成新的轨迹数据。只有当这些检测结果在连续多帧中持续被识别且成功关联匹配时,系统才会为它们创建新的轨迹。②轨迹终止与数据清理:对于那些未能在新的帧中找到匹配对象的现有轨迹,系统将它们标记为即将退出监控场景的目标,考虑到短暂的遮挡或检测失败可能导致轨迹短期内失去匹配,系统引入了轨迹保留周期,这是轨迹在未能重新匹配到目标之前可以保留的最长时间,如果在这个时间窗口内轨迹仍然未能找到匹配目标,系统则认为目标已离开场景,并将相应的轨迹数据从系统中清除。The trajectory lifecycle management module is a crucial part of the trajectory tracking system. It is responsible for handling the entry and exit of the target object in the monitoring scene, ensuring that the system can flexibly adapt to the dynamic changes of the target object. This module mainly includes two key links: ① New target recognition and trajectory initialization: For all detection results that fail to match the existing trajectory , the system regards them as newly appeared targets and marks them. In order to avoid data redundancy caused by occasional false detections or other factors, these unmatched detection results will not immediately generate new trajectory data. Only when these detection results are continuously identified and successfully associated and matched in multiple consecutive frames will the system create new trajectories for them. ②Trajectory termination and data cleaning: For those existing trajectories that fail to find matching objects in the new frame, The system marks them as targets that are about to exit the monitoring scene. Considering that short-term occlusion or detection failure may cause the trajectory to lose matching in a short period of time, the system introduces a trajectory retention cycle , which is the maximum time that a track can be retained before failing to re-match the target. If the track still fails to find a matching target within this time window, the system considers that the target has left the scene and clears the corresponding track data from the system.

本实现方式的步骤S3中,计算其他字段并建立轨迹数据库,包括:In step S3 of this implementation, other fields are calculated and a trajectory database is established, including:

为了完善数据库,本发明不仅追踪了目标车辆的轨迹,还进一步分析了车辆的速度和加速度,并手动连接了部分断开的轨迹,从而提高了数据的连续性和准确性。In order to improve the database, the present invention not only tracks the trajectory of the target vehicle, but also further analyzes the speed and acceleration of the vehicle, and manually connects partially disconnected trajectories, thereby improving the continuity and accuracy of the data.

(1)目标车辆的速度求解过程如下:(1) The process of calculating the target vehicle’s speed is as follows:

利用轨迹追踪技术,本发明能够获得目标车辆在每一帧中沿激光雷达坐标系下x轴、y轴和z轴方向的速度,车辆的实际行驶速度可以通过式(18)计算得出:By using trajectory tracking technology, the present invention can obtain the speed of the target vehicle along the x-axis, y-axis and z-axis in the laser radar coordinate system in each frame. The actual driving speed of the vehicle can be calculated by formula (18):

(18); (18);

这里,表示车辆的实际行驶速度,分别表示车辆在x轴、y轴和z轴方向上的速度。here, Indicates the actual speed of the vehicle. , and Represent the speed of the vehicle in the x-axis, y-axis and z-axis directions respectively.

(2)目标车辆的加速度求解过程如下:(2) The process of solving the acceleration of the target vehicle is as follows:

由于同一辆车会在连续的不同帧中出现,本发明可以通过比较连续两帧间的速度变化来计算车辆的加速度,计算过程如式(19)所示:Since the same vehicle may appear in different consecutive frames, the present invention can calculate the acceleration of the vehicle by comparing the speed change between two consecutive frames. The calculation process is shown in formula (19):

(19); (19);

其中,代表车辆在每一帧下的加速度,是后一帧的速度,是前一帧的速度,假设每帧之间的时间间隔为0.1秒。in, Represents the acceleration of the vehicle in each frame, is the speed of the next frame, is the speed of the previous frame, assuming the time interval between each frame is 0.1 seconds.

通过深入分析和计算,本发明不仅成功追踪了车辆的动态轨迹,而且还精确获得了车辆的速度和加速度信息,这对于深入理解车辆行驶行为、优化交通流量以及提升道路使用安全等方面有着重要的实际应用价值。此外,通过人工方式对断开的轨迹进行衔接,显著增强了数据的连续性和完整性,为后续的交通流研究和分析提供了更加精确和全面的数据支持,依据以上数据即可建立名为路侧激光雷达数据库(Roadside LiDAR Dataset,RSLD)的车辆轨迹数据库。Through in-depth analysis and calculation, the present invention not only successfully tracks the dynamic trajectory of the vehicle, but also accurately obtains the speed and acceleration information of the vehicle, which has important practical application value for in-depth understanding of vehicle driving behavior, optimizing traffic flow, and improving road safety. In addition, by manually connecting the disconnected trajectories, the continuity and integrity of the data are significantly enhanced, providing more accurate and comprehensive data support for subsequent traffic flow research and analysis. Based on the above data, a vehicle trajectory database called Roadside LiDAR Dataset (RSLD) can be established.

本实现方式提供如下示例:This implementation provides the following examples:

选取某地的立交合流区进行数据采集,该合流区域加速车道全长约为180米,共有四条车道,分别为内侧车道、中间车道、外侧车道以及加速车道。An interchange merging area at a certain place was selected for data collection. The total length of the acceleration lane in the merging area is about 180 meters, with a total of four lanes, namely the inner lane, the middle lane, the outer lane and the acceleration lane.

为采集合流区道路用户相关信息,搭建了一套数据采集平台,该采集平台主要包括激光雷达、笔记本电脑、移动电源与变压器,采用镭神LS-C32型号激光雷达,移动电源为一块24V的锂电池,通过变压器将其电压升至220V供激光雷达和笔记本电脑正常工作。In order to collect relevant information of road users in the merging area, a data collection platform was built. The collection platform mainly includes laser radar, laptop computer, mobile power supply and transformer. The LeiShen LS-C32 laser radar is used. The mobile power supply is a 24V lithium battery, and its voltage is increased to 220V through a transformer to ensure the normal operation of the laser radar and laptop computer.

根据当地的交通运行特性,选取工作日上午7:30-9:00与下午17:30-18:30作为高峰时段进行数据采集,选取上午9:30-10:30与下午15:00-16:30作为平峰时段采集合流区平峰数据,共计采集10小时的交通流数据,依据前述步骤,基于AB3DMOT轨迹追踪算法,得到追踪效果如图4所示,该图展示了第115帧、第120帧、第123帧以及第129帧下车辆轨迹追踪的结果。According to the local traffic operation characteristics, 7:30-9:00 in the morning and 17:30-18:30 in the afternoon on weekdays were selected as peak hours for data collection, and 9:30-10:30 in the morning and 15:00-16:30 in the afternoon were selected as off-peak hours to collect off-peak data in the merging area. A total of 10 hours of traffic flow data were collected. According to the above steps, based on the AB3DMOT trajectory tracking algorithm, the tracking effect is shown in Figure 4, which shows the results of vehicle trajectory tracking in the 115th frame, the 120th frame, the 123rd frame and the 129th frame.

由此,建立了路侧激光雷达数据库(Roadside LiDAR Dataset,RSLD),该数据库包括十个子数据库,分别包括5个平峰期和5个高峰期子数据库,总共记录了8830条车辆轨迹数据。其中,平峰时段的轨迹数据为2233条,高峰时段的轨迹数据为6597条。Therefore, a roadside LiDAR dataset (RSLD) was established, which includes ten sub-databases, including five off-peak and five peak-period sub-databases, and a total of 8,830 vehicle trajectory data are recorded, of which 2,233 are off-peak and 6,597 are peak-period trajectory data.

实施例2:Embodiment 2:

本实现方式提供了一种匝道合流区车辆轨迹数据库的生成系统,包括:This implementation provides a system for generating a ramp merging area vehicle trajectory database, including:

数据获取单元,被配置为:获取匝道合流区的激光雷达点云数据;本单元的具体工作过程与实施例1中的步骤S1中的细节过程相同,这里不再赘述;The data acquisition unit is configured to: acquire the laser radar point cloud data of the ramp merging area; the specific working process of this unit is the same as the detailed process in step S1 in embodiment 1, and will not be repeated here;

车辆目标识别单元,被配置为:根据激光雷达点云数据识别出全部的车辆目标;本单元的具体工作过程与实施例1中的步骤S2中的细节过程相同,这里不再赘述;The vehicle target recognition unit is configured to: recognize all vehicle targets according to the laser radar point cloud data; the specific working process of this unit is the same as the detailed process in step S2 in embodiment 1, which will not be repeated here;

数据库生成单元,被配置为:对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库;本单元的具体工作过程与实施例1中的步骤S3中的细节过程相同,这里不再赘述。The database generation unit is configured to: track the trajectories of all identified vehicle targets respectively, calculate the driving data of each vehicle target according to the trajectory tracking results of each vehicle target, and generate a vehicle trajectory database according to the trajectory tracking results and driving data of each vehicle target; the specific working process of this unit is the same as the detailed process in step S3 in Example 1, and will not be repeated here.

可以理解的,上述各个单元可以分别或全部合并为一个或若干个另外的单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述单元是基于逻辑功能划分的,在实际应用中,一个单元的功能也可以由多个单元来实现,或者多个单元的功能由一个单元实现。在本申请的其它实施例中,该数据库生成系统也可以包括其它单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由多个单元协作实现。It is understandable that the above-mentioned units can be separately or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the database generation system may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

根据本申请的另一个实施例,可以通过在包括中央处理单元(CentralProcessing Unit,CPU)、存取存储介质(Random Access Memory,RAM)、只读存储介质(ReadOnly Memory,ROM)等处理元件和存储元件的例如计算机的通用计算设备上运行能够执行实施例1所述的相应方法所涉及的各步骤的计算机程序(包括程序代码),来构造本实施例所述的系统,以及来实现本申请实施例的数据库生成方法,计算机程序可以记载于例如计算机可读记录介质上,并通过计算机可读记录介质装载于上述计算设备中,并在其中运行。According to another embodiment of the present application, the system described in this embodiment can be constructed, and the database generation method of the embodiment of the present application can be implemented by running a computer program (including program code) capable of executing the steps involved in the corresponding method described in Example 1 on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable recording medium, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.

实施例3:Embodiment 3:

本实现方式提供了一种匝道合流区车辆轨迹数据库,采用本发明实施例1所述的匝道合流区车辆轨迹数据库的生成方法生成;可以是设定时间段的匝道合流区车辆轨迹数据库,也可以实时的进行数据汇入以形成长时段的匝道合流区车辆轨迹数据库。The present implementation provides a ramp merging area vehicle trajectory database, which is generated by the ramp merging area vehicle trajectory database generation method described in Example 1 of the present invention; it can be a ramp merging area vehicle trajectory database for a set time period, or data can be imported in real time to form a ramp merging area vehicle trajectory database for a long period of time.

实施例4:Embodiment 4:

本实现方式提供了一种电子设备,该电子设备包括处理器、通信接口以及计算机可读存储介质。其中,处理器、通信接口以及计算机可读存储介质可通过总线或者其它方式连接。This implementation provides an electronic device, which includes a processor, a communication interface, and a computer-readable storage medium, wherein the processor, the communication interface, and the computer-readable storage medium may be connected via a bus or other means.

其中,通信接口用于接收和发送数据,计算机可读存储介质可以存储在电子设备的存储器中,计算机可读存储介质用于存储计算机程序,计算机程序包括程序指令,处理器用于执行计算机可读存储介质存储的程序指令。Among them, the communication interface is used to receive and send data, the computer-readable storage medium can be stored in the memory of the electronic device, the computer-readable storage medium is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer-readable storage medium.

处理器(或称CPU(Central Processing Unit,中央处理器))是电子设备的计算核心以及控制核心,其适于实现一条或多条指令,具体适于加载并执行一条或多条指令从而实现相应方法流程或相应功能。A processor (or CPU (Central Processing Unit)) is the computing core and control core of an electronic device, which is suitable for implementing one or more instructions, and specifically suitable for loading and executing one or more instructions to implement corresponding method flows or corresponding functions.

所述处理器被配置为执行如下过程:The processor is configured to perform the following process:

获取匝道合流区的激光雷达点云数据;具体工作过程与实施例1中的步骤S1中的细节过程相同,这里不再赘述;Obtaining the laser radar point cloud data of the ramp merging area; the specific working process is the same as the detailed process in step S1 in Example 1, which will not be repeated here;

根据激光雷达点云数据识别出全部的车辆目标;具体工作过程与实施例1中的步骤S2中的细节过程相同,这里不再赘述;All vehicle targets are identified according to the laser radar point cloud data; the specific working process is the same as the detailed process in step S2 in Example 1, which will not be repeated here;

对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库;具体工作过程与实施例1中的步骤S3中的细节过程相同,这里不再赘述。The trajectories of all identified vehicle targets are tracked respectively, the driving data of each vehicle target is calculated according to the trajectory tracking results of each vehicle target, and a vehicle trajectory database is generated according to the trajectory tracking results and driving data of each vehicle target; the specific working process is the same as the detailed process in step S3 in Example 1, and will not be repeated here.

实施例5:Embodiment 5:

本实施例提供了一种计算机可读存储介质(Memory),计算机可读存储介质是电子设备中的记忆设备,用于存放程序和数据。可以理解的是,此处的计算机可读存储介质既可以包括电子设备中的内置存储介质,当然也可以包括电子设备所支持的扩展存储介质。计算机可读存储介质提供存储空间,该存储空间存储了电子设备的处理系统。This embodiment provides a computer-readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The computer-readable storage medium provides a storage space that stores the processing system of the electronic device.

并且,在该存储空间中还存放了适于被处理器加载并执行的一条或多条的指令,这些指令可以是一个或多个的计算机程序(包括程序代码)。需要说明的是,此处的计算机可读存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatilememory),例如至少一个磁盘存储器;可选的,还可以是至少一个位于远离前述处理器的计算机可读存储介质。In addition, the storage space also stores one or more instructions suitable for being loaded and executed by the processor, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it may also be at least one computer-readable storage medium located away from the aforementioned processor.

在一个实施例中,该计算机可读存储介质中存储有一条或多条指令;由处理器加载并执行计算机可读存储介质中存放的一条或多条指令,以实现如下过程:In one embodiment, the computer-readable storage medium stores one or more instructions; the processor loads and executes the one or more instructions stored in the computer-readable storage medium to implement the following process:

获取匝道合流区的激光雷达点云数据;具体工作过程与实施例1中的步骤S1中的细节过程相同,这里不再赘述;Obtaining the laser radar point cloud data of the ramp merging area; the specific working process is the same as the detailed process in step S1 in Example 1, which will not be repeated here;

根据激光雷达点云数据识别出全部的车辆目标;具体工作过程与实施例1中的步骤S2中的细节过程相同,这里不再赘述;All vehicle targets are identified according to the laser radar point cloud data; the specific working process is the same as the detailed process in step S2 in Example 1, which will not be repeated here;

对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库;具体工作过程与实施例1中的步骤S3中的细节过程相同,这里不再赘述。The trajectories of all identified vehicle targets are tracked respectively, the driving data of each vehicle target is calculated according to the trajectory tracking results of each vehicle target, and a vehicle trajectory database is generated according to the trajectory tracking results and driving data of each vehicle target; the specific working process is the same as the detailed process in step S3 in Example 1, and will not be repeated here.

本领域普通技术对象可以意识到,结合本申请中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术对象可以对每个特定的应用,使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person skilled in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程设备。计算机指令可以存储在计算机可读存储介质中,或者通过计算机可读存储介质进行传输。计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如,同轴电缆、光纤、数字线(DSL))或无线(例如,红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据处理设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(Solid State Disk,SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (for example, coaxial cable, optical fiber, digital line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by the computer or a data processing device such as a server, a data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state drive (SSD)), etc.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims (5)

1.一种匝道合流区车辆轨迹数据库的生成方法,其特征在于,包括以下过程:1. A method for generating a ramp merging area vehicle trajectory database, characterized by comprising the following steps: 获取匝道合流区的激光雷达点云数据;Obtain LiDAR point cloud data of ramp merging areas; 根据激光雷达点云数据识别出全部的车辆目标;Identify all vehicle targets based on LiDAR point cloud data; 对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库;Track all identified vehicle targets respectively, calculate the driving data of each vehicle target according to the tracking results of each vehicle target, and generate a vehicle trajectory database according to the tracking results and driving data of each vehicle target; 根据激光雷达点云数据识别出全部的车辆目标,包括:All vehicle targets are identified based on the LiDAR point cloud data, including: 对激光雷达点云数据进行分割,得到车辆目标的三维包围框,对三维包围框内的点云特征进行池化处理,对池化处理后的点云特征进行正则变换,得到各个车辆目标;Segment the laser radar point cloud data to obtain the three-dimensional bounding box of the vehicle target, perform pooling on the point cloud features within the three-dimensional bounding box, and perform regular transformation on the pooled point cloud features to obtain each vehicle target; 对激光雷达点云数据进行分割,得到车辆目标的三维包围框,包括:Segment the LiDAR point cloud data to obtain the three-dimensional bounding box of the vehicle target, including: 按激光雷达坐标系的X轴和Z轴,将激光雷达数据分割成多个离散的bin,并为每个bin设定搜索范围,将每个一维的搜索距离等分为多个bin,以表征不同目标的中心位置,利用交叉熵损失函数对三维包围框进行回归计算,得到最终的车辆目标的三维包围框;According to the X-axis and Z-axis of the laser radar coordinate system, the laser radar data is divided into multiple discrete bins, and the search range is set for each bin. Each one-dimensional search distance is equally divided into multiple bins to represent the center position of different targets. The three-dimensional bounding box is regressed using the cross entropy loss function to obtain the final three-dimensional bounding box of the vehicle target. 对三维包围框内的点云特征进行池化处理,包括:Pooling is performed on the point cloud features within the 3D bounding box, including: 定义每个三维包围框的参数,其中,分别代表三维包围框的中心坐标,代表三维包围框的高度、宽度和长度,表示三维包围框的朝向角度;Define the parameters of each 3D bounding box ,in, Represent the center coordinates of the three-dimensional bounding box, Represents the height, width and length of the three-dimensional bounding box, Indicates the orientation angle of the 3D bounding box; 对三维包围框进行扩展后,得到扩展后的三维包围框的参数为预设的常量值;After expanding the three-dimensional bounding box, the parameters of the expanded three-dimensional bounding box are obtained. , is the preset constant value; 通过点云分割得到的分割掩膜真值,判断内的点云属于前景点还是背景点,将未包含前景点的三维包围框剔除;The true value of the segmentation mask obtained by point cloud segmentation is judged Whether the point cloud in the foreground point or the background point, the 3D bounding box that does not contain the foreground point is eliminated; 对池化处理后的点云特征进行正则变换,在变换后的正则坐标系下,坐标原点位于三维包围框簇的中心,正则坐标系的轴平行于地面且朝向与车辆的前进方向一致,轴则与激光雷达坐标系的Y轴保持一致;The point cloud features after pooling are transformed into regular coordinates. In the transformed regular coordinate system, the origin of the coordinates is located at the center of the three-dimensional bounding box cluster. and The axis is parallel to the ground and The direction is consistent with the vehicle's forward direction. The axis is consistent with the Y axis of the laser radar coordinate system; 若三维包围框的参数为,真实三维包围框参数为,经过正则变换后:If the parameters of the 3D bounding box are , the parameters of the true 3D bounding box are , after regular transformation: ,其中,分别代表真实三维包围框的中心坐标,代表真实三维包围框的高度、宽度和长度,表示真实三维包围框的朝向角度; , ,in, Represent the center coordinates of the real 3D bounding box, Represents the height, width and length of the real 3D bounding box, Indicates the orientation angle of the real 3D bounding box; 损失函数为:,其中,表示所有生成的三维包围框,代表在三维包围框回归计算中被视为正样本的候选簇,为对目标估计的置信度,为所估计目标的真值,为交叉信息熵损失,分别代表bin分类损失和残差回归损失;Loss Function for: ,in, represents all generated 3D bounding boxes, Represents the candidate clusters that are considered as positive samples in the 3D bounding box regression calculation, is the confidence level of the target estimate, is the true value of the estimated target, is the cross information entropy loss, and Represent bin classification loss and residual regression loss respectively; 采用AB3DMOT算法对识别出的全部车辆目标分别进行轨迹追踪。The AB3DMOT algorithm is used to track the trajectories of all identified vehicle targets. 2.一种匝道合流区车辆轨迹数据库的生成系统,实现如权利要求1所述的匝道合流区车辆轨迹数据库的生成方法,其特征在于,包括:2. A system for generating a vehicle trajectory database for a ramp merging area, implementing the method for generating a vehicle trajectory database for a ramp merging area according to claim 1, characterized in that it comprises: 数据获取单元,被配置为:获取匝道合流区的激光雷达点云数据;The data acquisition unit is configured to: acquire laser radar point cloud data of a ramp merging area; 车辆目标识别单元,被配置为:根据激光雷达点云数据识别出全部的车辆目标;The vehicle target recognition unit is configured to: recognize all vehicle targets according to the laser radar point cloud data; 数据库生成单元,被配置为:对识别出的全部车辆目标分别进行轨迹追踪,根据各个车辆目标的轨迹追踪结果计算各个车辆目标的行驶数据,根据各个车辆目标的轨迹追踪结果以及行驶数据生成车辆轨迹数据库。The database generation unit is configured to: perform trajectory tracking on all identified vehicle targets respectively, calculate the driving data of each vehicle target according to the trajectory tracking results of each vehicle target, and generate a vehicle trajectory database according to the trajectory tracking results and driving data of each vehicle target. 3.一种匝道合流区车辆轨迹数据库,其特征在于,采用权利要求1所述的匝道合流区车辆轨迹数据库的生成方法生成。3. A ramp merging area vehicle trajectory database, characterized in that it is generated using the ramp merging area vehicle trajectory database generation method according to claim 1. 4.一种计算机设备,其特征在于,包括:处理器和计算机可读存储介质;4. A computer device, comprising: a processor and a computer readable storage medium; 处理器,适于执行计算机程序;a processor adapted to execute a computer program; 计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被所述处理器执行时,实现如权利要求1所述的匝道合流区车辆轨迹数据库的生成方法。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method for generating a ramp merging area vehicle trajectory database according to claim 1 is implemented. 5.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序适于被处理器加载并执行如权利要求1所述的匝道合流区车辆轨迹数据库的生成方法。5. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the method for generating a ramp merging area vehicle trajectory database as claimed in claim 1.
CN202410772478.XA 2024-06-17 2024-06-17 Method and system for generating ramp converging region vehicle track database Active CN118349694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410772478.XA CN118349694B (en) 2024-06-17 2024-06-17 Method and system for generating ramp converging region vehicle track database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410772478.XA CN118349694B (en) 2024-06-17 2024-06-17 Method and system for generating ramp converging region vehicle track database

Publications (2)

Publication Number Publication Date
CN118349694A CN118349694A (en) 2024-07-16
CN118349694B true CN118349694B (en) 2024-08-20

Family

ID=91818285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410772478.XA Active CN118349694B (en) 2024-06-17 2024-06-17 Method and system for generating ramp converging region vehicle track database

Country Status (1)

Country Link
CN (1) CN118349694B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118780086B (en) * 2024-09-09 2025-01-28 山东矩阵软件工程股份有限公司 A kind of automatic control method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116109986A (en) * 2023-03-03 2023-05-12 同济大学 Vehicle track extraction method based on laser radar and video technology complementation

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099040A (en) * 2020-09-15 2020-12-18 浙江省机电设计研究院有限公司 Whole-course continuous track vehicle tracking system and method based on laser radar network
DE112021005607T5 (en) * 2020-10-23 2023-08-24 Ford Global Technologies, Llc Systems and methods for camera-LiDAR-fused object detection
CN113345237A (en) * 2021-06-29 2021-09-03 山东高速建设管理集团有限公司 Lane-changing identification and prediction method, system, equipment and storage medium for extracting vehicle track by using roadside laser radar data
US20230134717A1 (en) * 2021-11-04 2023-05-04 Board Of Regents Of The Nevada System Of Higher Education, On Behalf Of The University Of Nevada METHODS AND SYSTEMS FOR PROCESSING AND INTERPRETING ROADSIDE LiDAR DATA
CN114724392B (en) * 2022-04-01 2023-01-10 合肥工业大学设计院(集团)有限公司 Dynamic signal control method for expressway exit ramp and adjacent intersection
EP4266085A3 (en) * 2022-04-18 2023-11-01 Tata Consultancy Services Limited Fusion-based object tracker using lidar point cloud and surrounding cameras for autonomous vehicles
US20230417912A1 (en) * 2022-06-23 2023-12-28 Board Of Regents Of The Nevada System Of Higher Education, On Behalf Of The University Of Nevada, Re Methods and systems for statistical vehicle tracking using lidar sensor systems
CN115273549B (en) * 2022-07-29 2023-10-31 山东高速集团有限公司 Expressway diversion area anti-collision method based on roadside laser radar
CN116953724A (en) * 2023-06-20 2023-10-27 苏州北醒科技有限公司 Vehicle track tracking method, system and storage medium
CN117197202A (en) * 2023-09-07 2023-12-08 吉林大学 A spatio-temporal registration method of multi-channel side lidar sensor point cloud data
CN118033626B (en) * 2024-04-11 2024-06-14 济南卓伦智能交通技术有限公司 Target tracking speed measurement method and system based on double radars
CN118172938B (en) * 2024-05-14 2024-07-23 山东大学 Vehicle trajectory full-course tracking method based on distributed optical fiber and laser radar

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116109986A (en) * 2023-03-03 2023-05-12 同济大学 Vehicle track extraction method based on laser radar and video technology complementation

Also Published As

Publication number Publication date
CN118349694A (en) 2024-07-16

Similar Documents

Publication Publication Date Title
CN113191459B (en) A roadside lidar-based approach to target classification in transit
WO2023065395A1 (en) Work vehicle detection and tracking method and system
WO2023216470A1 (en) Drivable area detection method and apparatus, and device
CN111818313B (en) Vehicle real-time tracking method and device based on monitoring video
CN112489081B (en) Visual target tracking method and device
CN107918753A (en) Processing Method of Point-clouds and device
CN117949942B (en) Target tracking method and system based on fusion of radar data and video data
CN114488194A (en) Method for detecting and identifying targets under structured road of intelligent driving vehicle
CN118349694B (en) Method and system for generating ramp converging region vehicle track database
CN114359876B (en) Vehicle target identification method and storage medium
CN114428828A (en) Method, device and electronic device for mining new road based on driving trajectory
CN116109601A (en) A real-time target detection method based on 3D lidar point cloud
CN115760898A (en) World coordinate positioning method for road sprinklers in mixed Gaussian domain
WO2025050329A1 (en) Multi-roadside laser radar sensor point cloud data temporal-spatial registration method
CN114882198A (en) Target determination method, device, equipment and medium
CN117409569A (en) A smart transportation system and method based on big data
CN117197202A (en) A spatio-temporal registration method of multi-channel side lidar sensor point cloud data
Li et al. Obstacle detection and tracking algorithm based on multi‐lidar fusion in urban environment
CN118794465A (en) Intelligent logistics method and equipment based on Beidou satellite navigation and Bluetooth positioning technology
Kukolj et al. Road edge detection based on combined deep learning and spatial statistics of LiDAR data
CN110889347B (en) Density traffic flow counting method and system based on space-time counting characteristics
Song et al. Ssf-mos: Semantic scene flow assisted moving object segmentation for autonomous vehicles
Zhou Research Advanced in Deep Learning Object Detection
CN113988198A (en) Multi-scale city function classification method based on landmark constraint
US20240087139A1 (en) Target object tracking method, device, apparatus, and storage medium

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