Articulated train aided driving method and system based on three-dimensional reconstruction
Through multi-sensor real-time data collection and three-dimensional reconstruction, the surrounding perspective and real-time pose are generated, which solves the problem of difficult posture perception of articulated vehicles, improves driving safety and perception capabilities, and adapts to high-speed motion environments.
Patent Information
- Application Number
- CN202410713170.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-10-01
AI Technical Summary
Existing visual sensor solutions are difficult to effectively collect body posture information of articulated vehicles, resulting in frequent traffic accidents under complex working conditions. Moreover, there are many types of sensors in autonomous driving systems, and the modeling complexity and accuracy requirements are different, which increases error and uncertainty.
A variety of sensors (binocular cameras, lidar, monocular cameras) are used for real-time data collection, and three-dimensional reconstruction technology is used to generate an auxiliary view of the surrounding perspective. The point cloud registration algorithm is used to calculate the real-time pose of each train segment and generate Driving warning signal to assist driving.
It improves the perception of vehicle posture and surrounding environment, enhances driving safety, overcomes the problems of inaccurate pose estimation and low BEV image stitching quality under high-speed movement, optimizes the training time of the 3D Gaussian Splatting algorithm, and adapts to high-speed movement environments .
Smart Images

Figure CN118722774A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of intelligent driving technology, and in particular relates to an articulated train auxiliary driving method and system based on three-dimensional reconstruction. Background Art
[0002] Articulated trains consist of multiple rigid carriages connected by articulated devices, with fewer bogies, so that the matching of vehicle length, number of axles and axle weight can better meet specific traffic needs. In recent years, the demand for articulated trains has been increasing, but due to the high working intensity and difficulty of driving articulated trains, traffic accidents frequently occur under complex working conditions. A mature assisted driving system can effectively reduce the occurrence of related accidents.
[0003] With the development of intelligent driving technology and the rapid rise of 3D reconstruction technologies such as 3D Gaussian Splatting and MobileNeRF, the relevant algorithms of multi-sensor fusion in scenes with relatively fixed internal parameters continue to mature, but the existing visual sensor solutions are difficult to effectively collect the posture information of the articulated vehicle body, and the existing related products for articulated trains cannot clearly display the complete vehicle posture information to the driver in all-weather conditions. For example, Chinese patent application CN202310994135.3 discloses a method and system for generating scene data for autonomous driving based on implicit neural rendering. On the one hand, the trajectory of the vehicle is edited in combination with road network information to generate a more consistent and more realistic vehicle trajectory; on the other hand, the scene is reconstructed with high fidelity for the autonomous driving scene through implicit reconstruction technology and combined with the foreground asset library; finally, the scene is edited and rendered in combination with the generated trajectory to generate various types of highly fidelity sensor data. However, there are many types of sensors used in autonomous driving systems, and the modeling difficulty and accuracy requirements of different sensors are different, which may increase the complexity and difficulty of simulation rendering. The above method may lead to an increase in errors and uncertainties in the modeling process. Therefore, it is necessary to design an articulated train assisted driving method and system based on three-dimensional reconstruction to further improve the perception of the vehicle posture and the surrounding environment of the vehicle and fully ensure driving safety. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide an articulated train assisted driving method and system based on three-dimensional reconstruction, so as to improve the perception ability of the vehicle posture and the surrounding environment of the vehicle and ensure the driving safety.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] The present invention provides an articulated train assisted driving method based on three-dimensional reconstruction, comprising the following steps:
[0007] S1. Collect image data and point cloud data in real time during road driving through multiple sensors installed on the train. The sensors installed on the train include a binocular camera, multiple laser radars, and multiple monocular cameras. The number and installation position of each sensor are obtained according to a layout optimization model.
[0008] S2, generating auxiliary views of multiple surround viewing angles through three-dimensional reconstruction technology according to the data collected in step S1;
[0009] S3, based on the data collected in step S1, iteratively calculate the real-time position and posture of each vehicle section of the train through a point cloud registration algorithm;
[0010] S4. Generate a driving warning signal according to the auxiliary view and the real-time posture to assist train driving.
[0011] Furthermore, the method for calculating the number of laser radars and monocular cameras according to the layout optimization model is as follows:
[0012] m=2s
[0013]
[0014] Among them, m is the number of lidars, n is the number of monocular cameras, s is the number of train sections, l is the length of the train, l2 is the length of the train head, and h is the height of the train section.
[0015] Furthermore, the installation positions of the sensors are determined according to the calculation results of the layout optimization model, as follows:
[0016] The binocular camera is installed on the front of the train to obtain images and depth information of distant objects in front of and on both sides of the train route;
[0017] Two monocular cameras are installed on both sides of the train head to assist in acquiring images of both sides of the train and the train sections;
[0018] The m laser radars are divided into two groups and symmetrically installed at one end of each car section close to the front of the train to obtain the point cloud data of the blind spots on both sides of the train and each car section;
[0019] The remaining monocular cameras are installed on the top of both sides of the train section to obtain images around the train.
[0020] Furthermore, in step S2, the process of constructing auxiliary views of multiple surround viewing angles by using three-dimensional reconstruction technology includes:
[0021] S210, using the NARF feature extraction method, projecting the point cloud data of the key articulations of the articulated train to a top-down perspective and performing feature extraction to obtain key point cloud features of the articulated train car section in the BEV space;
[0022] S220, adopting a fast real-time 3D reconstruction method based on 3D Gaussian Splatting, taking the key point cloud features as pre-input, rasterizing and rendering the image data with high quality through the structured light measurement method SFM, and generating auxiliary views of multiple surround viewing angles.
[0023] Furthermore, the specific process of step S210 is as follows:
[0024] S211, obtaining point cloud data of key articulations of articulated trains;
[0025] S212, performing surface estimation and edge point extraction by calculating the normal of each point;
[0026] S213, extracting feature points based on edge points and local geometric saliency;
[0027] S214, obtaining a local support region for each feature point, projecting a point cloud of the local support region onto a two-dimensional plane, and calculating a feature vector;
[0028] S215. Based on the gradient direction, construct and calculate the NARF feature descriptor of the feature point to obtain the key point cloud features of the articulated vehicle section in the BEV space.
[0029] Furthermore, the specific process of step S220 is as follows:
[0030] S221, generating sparse point cloud using structured light measurement method SFM;
[0031] S222, initializing a 3D Gaussian function set at the current point cloud position to construct a 3D Gaussian ellipsoid;
[0032] S223, predicting the shape, opacity and spherical harmonic function of the 3D Gaussian ellipsoid from a BEV perspective or a side-up perspective;
[0033] S224, perform fast differentiable rasterization to generate a predicted image, compare it with the current image data to calculate the deviation, construct a final optimization loss function based on the deviation, and optimize the parameters of the generated 3D Gaussian ellipsoid accordingly.
[0034] Furthermore, in step S224, a low weight is assigned to the deviation of the non-focused view to construct the final optimization loss function.
[0035] Furthermore, in step S3, an iterative calculation is performed using the ICP algorithm, and the specific process is as follows:
[0036] The current point cloud data is registered with the point cloud data at the previous moment through the random sampling consistency algorithm;
[0037] The optimal alignment between the two sets of point cloud data is iteratively solved through the ICP algorithm to obtain the real-time position and relative motion speed of each train section.
[0038] The present invention also provides an articulated train auxiliary driving system based on three-dimensional reconstruction, comprising:
[0039] A data acquisition module includes multiple sensors installed on the train, which are used to acquire image data and point cloud data in real time during road driving. The sensors installed on the train include a binocular camera, multiple laser radars, and multiple monocular cameras. The number and installation position of each sensor are obtained according to the layout optimization model.
[0040] An auxiliary view generation module, used to generate auxiliary views of various surround viewing angles through three-dimensional reconstruction technology according to the data of the data acquisition module;
[0041] A real-time posture calculation module, used to iteratively calculate the real-time posture of each car section of the train through a point cloud registration algorithm according to the data of the data acquisition module;
[0042] Train driving assistance module: used to receive and store the data generated by the auxiliary view generation module and the real-time posture calculation module, generate driving warning signals, and assist train driving.
[0043] Furthermore, the multiple sensors in the data acquisition module are connected to the same Exchange server via Ethernet, the Exchange server is connected to a domain controller, and the domain controller is used to uniformly process and share the image data and point cloud data.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] 1. The present invention collects image data and point cloud data in real time during road driving through multiple sensors installed on the train, then generates auxiliary views of multiple surround view angles through three-dimensional reconstruction technology, and iteratively calculates the real-time position and posture of each section of the train through a point cloud registration algorithm, and finally generates a driving warning signal based on the obtained auxiliary views and real-time position and posture to assist train driving; the auxiliary views of multiple surround view angles and the real-time position and posture of each section of the train are both important information for assisted driving, the former can provide comprehensive environmental perception information, and the latter can assist in adjusting the operation of the train, and the combination of the two can further improve driving safety.
[0046] 2. The present invention adopts the feature extraction method of NARF, projects the point cloud data of the key joints of the articulated train to a bird's-eye view and extracts features, so as to obtain the key point cloud features of the articulated train car section in the BEV space; adopts a fast real-time 3D reconstruction method based on 3D Gaussian Splatting, takes the key point cloud features as pre-input, and rasterizes and renders the image data with high quality through the structured light measurement method SFM, so as to generate auxiliary views of multiple surround view angles, thereby overcoming the defects of inaccurate real-time pose estimation of the camera and low quality of BEV image stitching under high-speed motion; the present invention optimizes the problem of long training time of the existing 3D Gaussian Splatting algorithm by assigning low weights to the deviations of non-interested views and then constructing the final optimization loss function, so as to adapt to the environment of high-speed moving articulated trains and render high-quality coherent real-time videos of the required perspectives, thereby greatly improving the perception of the vehicle posture and the surrounding environment of the vehicle, and fully ensuring the safety of driving.
[0047] 3. In the present invention, the number and installation position of each sensor are obtained according to the layout optimization model. The optimized sensor layout and configuration can fully collect image data and point cloud data during road driving, minimize visual blind spots, and reduce maintenance costs, thereby ensuring the safe, economical and efficient operation of trains in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of the method of the present invention;
[0049] Figure 2 A top view of the sensor layout optimization model;
[0050] Figure 3 This is a top-down schematic diagram of the sensor layout optimization model at the vehicle's maximum turning angle;
[0051] Figure 4 The hardware structure and connection method of the present invention;
[0052] Figure 5 This is the flow chart of feature extraction and processing of NARF point cloud data;
[0053] Figure 6 This is a flow chart of the fast reconstruction method based on 3D Gaussian Splatting;
[0054] Figure 7 A schematic diagram of a three-dimensional model of the sensor deployment solution of the present invention;
[0055] Figure 8 A schematic diagram of a three-dimensional model of the position of a laser radar in the sensor deployment solution of the present invention;
[0056] Fig. 9 A schematic diagram of a three-dimensional model of the position of a binocular camera in the sensor deployment solution of the present invention;
[0057] Fig.10 A schematic diagram of a three-dimensional model of the position of a monocular camera in the sensor deployment solution of the present invention;
[0058] Description of reference numerals: 101, binocular camera sensing range; 102, laser radar sensing range; 103, monocular camera sensing range; 104, vehicle body blind spot (no more than 0.3m); 105, vehicle section; 106, vehicle front;
[0059] 201. Sensing range of binocular camera; 202. Sensing range of laser radar; 203. Sensing range of monocular camera; 204. Blind spot of vehicle body (no more than 0.3m); 205. Vehicle section; 206. Vehicle front;
[0060] 501. The placement position of the binocular camera in a specific embodiment; 502. The placement position of the laser radar in a specific embodiment; 503. The placement position of the monocular camera in a specific embodiment;
[0061] 601. The placement position of the laser radar in a specific embodiment; 602. The placement position of the monocular camera at the front of the vehicle in a specific embodiment;
[0062] 701. The placement position of the binocular camera in a specific embodiment;
[0063] 801. The placement position of a monocular camera for detecting side targets on the vehicle body in a specific embodiment; 802. The placement position of a monocular camera for detecting oblique rear targets on the vehicle body in a specific embodiment; 803. The placement position of a monocular camera for detecting rear targets on the vehicle body in a specific embodiment. DETAILED DESCRIPTION
[0064] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0065] Example 1
[0066] This embodiment provides an articulated train assisted driving method based on three-dimensional reconstruction, which can be generally applicable to articulated trains of any size under the current national standard GB1589-2016. At the same time, the assisted driving system in the invention supports the front-end and rear-end solutions for current articulated trains, which can effectively improve the driver's perception and estimation of the surrounding environment of the whole vehicle, and optimize and reduce the cost of related products to the greatest extent. Figure 1 As shown, the following steps are included:
[0067] S1. Image data and point cloud data during road driving are collected in real time through multiple sensors installed on the train. The sensors installed on the train include a binocular camera, multiple laser radars and multiple monocular cameras. The number and installation position of each sensor are obtained according to the layout optimization model.
[0068] The number of LiDARs m and the number of monocular cameras n are calculated as follows:
[0069] m=2s
[0070]
[0071] Among them, s is the number of car sections, l is the length of the train, l2 is the length of the train front, and h is the height of the train car section.
[0072] The top view of the installation position of each sensor is as follows: Figure 2 As shown, the top view of the vehicle at the maximum turning angle is as follows Figure 3 As shown. The binocular camera is installed at the front of the train, and its sensing range 101 is used to obtain images and depth information of distant objects in front and on both sides of the train route; two monocular cameras are installed on both sides of the train front to assist in obtaining images of both sides of the train and the car segment 105; m laser radars are divided into two groups and symmetrically installed at one end of each car segment 105 close to the train front 106, and their sensing range 102 is used to obtain the blind spots on both sides of the train and the point cloud data of each car segment 105; the remaining monocular cameras are installed on the top of both sides of the train car segment 105, and their sensing range 103 is used to realize 360° monitoring outside the safe distance around the articulated train. The above settings can minimize the blind spots 104 of the vehicle body.
[0073] The layout optimization model refers to the establishment of a simulated 3D model of the vehicle based on its actual physical dimensions. The core step is to optimize the deployment positions of the laser radar and monocular camera used in order to make more efficient use of the data obtained by the sensors. After the layout optimization model is given the relevant physical dimensions of the articulated train, such as the head length, car segment length, number of car segments, car segment length, car segment width, and car segment height, in order to ensure that the invented assisted driving system can monitor the surrounding area of the vehicle 360° without blind spots at a safe height of less than 2.5 meters and a safe distance of 0.3 meters (104 locations), Figure 7 As shown in FIG. 1 , three sensors, namely, laser radar, binocular camera and monocular camera, are selected to collect images and point cloud data around the vehicle, which are installed at 502, 501 and 503 respectively. Considering the existence of the inner wheel difference problem of the articulated train, Figure 8As shown in FIG. 1 , a laser radar is arranged at 601 on the left and right sides of the articulated train section, and a monocular camera is arranged at 602 to simultaneously collect accurate position and depth information of dangerous areas around the vehicle and some sections, so as to strengthen the monitoring of dangerous areas and ensure no blind spot sampling within a safe distance of the section articulation at any turning angle; Fig. 9 As shown, a binocular camera is arranged at 701 of the front of the vehicle to obtain a wide range of image information in the direction of the vehicle, so as to ensure that the auxiliary driving system has a certain degree of foresight; in order to improve the reconstruction effect of the vehicle surrounding environment of the present invention and reduce the cost of the system solution, as shown Fig.10 As shown, three sets of monocular cameras are selected and installed on the side 801, the side rear 802 and the rear 803 of the vehicle section respectively, as the main sensors to obtain the surrounding environment information of each vehicle section. Taking the 120° monocular camera as an example, the layout plan is as follows:
[0074] Since the maximum width of an articulated train is 2.55 meters under the GB1589-2016 standard, one monocular camera installed at 803 and two monocular cameras installed at 802 can sample objects 0.3 meters away from the rear of the articulated train without blind spots. In order to ensure that the repeated view within the sampling interval is not less than 60°, the angle between the camera's normal view direction at position 803 and the vehicle body normal in the longitudinal plane (positive downward) is required. Where h is the height of the vehicle section, 54.73° is the cone area covered by the 120° monocular camera, and the offset in the direction perpendicular to the axis of the cone When the cone section angle is 60°, the system reaches the lower limit of the viewing angle required by the system. At 801 around the vehicle section, in order to ensure that all objects within 2.5 meters (when the vehicle height is greater than 2.5 meters) of the vehicle are repeatedly sampled within a safe distance without blind spots, the required The above-mentioned cameras can satisfy the repeated sampling with a viewing angle of not less than 60°.
[0075] The specific arrangement of the monocular cameras at 801 and 802 is as follows: the cameras at 801 and 802 are installed on the side of the vehicle section (i.e., the side whose normal is perpendicular to the direction of vehicle travel). The specific coordinates and facing direction of each camera are represented by [x, h z ,θ′ z ,θ x ] is determined. Where x represents the camera coordinates with the rear of the vehicle as the zero point and the vehicle travel direction as the positive direction. In the present invention, the distance between all 801 and 802 cameras on one side is fixed to m, which is the value of the 120° camera at θ x= 30°, the spacing required to ensure that the overlapping viewing angle within the safety distance is greater than 60° is determined. Therefore, the number of cameras required on one side is h z Indicates the height of the camera. In the present invention, the heights of all 801 and 802 cameras are constant, so h z =h;θ′ z It represents the angle between the camera’s viewing direction and the vehicle body normal in the longitudinal plane (positive when facing downward), θ′ z =[θ′ z1 ,θ′ z2 ,…,θ′ zn ], in order to ensure that the cones covered by the monocular camera have sufficient overlap within a safe distance and increase the difference in the viewing angle of the obtained image, a set of values is set, namely [θ′ a ,θ′ b ], θ′ b =30°, the two sets of values are at θ′ z In order to ensure the maximum utilization of sensor efficiency; θ x Indicates the angle between the camera's viewing direction and the body normal in the horizontal plane (positive deflection toward the front of the vehicle). In order to increase the difference between the images of different cameras to obtain more viewing angle data, θ x The value increases with the increase of camera x, θ x =[0, Δθ, 2Δθ, …, nΔθ], where nΔθ≥30° is used to determine the value of Δθ, and Δθ is not recommended to be greater than 5°. The former condition is preferably satisfied to ensure that the camera cone closest to the danger zone at the vehicle articulation can cover the entire surrounding scene when the vehicle turns, and maximize the use of the original data of this camera (more key information can be collected in the single camera at the front) to improve the quality of image synthesis.
[0076] The distance between the 602 monocular cameras and the front and rear ends of the vehicle m; h z =h; For flat-head articulated trains, due to their shorter front end, For long-head articulated trains, due to their long front end, Improve monitoring of blind spots caused by A-pillars.
[0077] 601 laser radars are placed 0.3 meters below 602 monocular cameras; for flat-head articulated trains, 501 binocular cameras are placed at the front center of the roof, with the front view direction coinciding with the normal line of the front of the train to expand the sensing range; for long-head articulated trains, 501 binocular cameras are placed Figure 7 Middle position, the direction of view is directly forward.
[0078] like Figure 4 As shown, after the required data is collected, the required road images and point cloud data in motion are transmitted to the Exchange server via Ethernet. At the same time, the server is connected to the domain controller to share and uniformly process all sensor data.
[0079] S2. Generate auxiliary views of multiple surround viewing angles through three-dimensional reconstruction technology based on the data collected in step S1.
[0080] After receiving the above data from various perspectives, the processor extracts features from the camera images on the articulated train and quickly reconstructs the three-dimensional scene, and projects the model to the required top-down perspective and side-up perspective for rendering to obtain high-quality images. The processing methods for different data are as follows:
[0081] LiDAR data: Using the NARF (Normal Aligned Radial Feature) feature extraction method, the point cloud data of the key joints of the articulated train is projected to a bird’s-eye view and feature extracted to obtain the key point cloud features of the articulated train section in the BEV space. Figure 5 As shown, the specific process is:
[0082] 301: Input the 3D point cloud data of the vehicle joint.
[0083] 302: Surface estimation and edge point extraction are performed by calculating the normal of each point. i Its neighboring points in a square window with a width of s in the two-dimensional plane Calculate 3D Euclidean distance And sort them in ascending order to get Assumptions There are at least M points in the i Located on the same surface, select δ = d′ M As point p i p i -s typical three-dimensional distance in the neighborhood; for point p i Calculate the possibility of edges in four directions respectively, taking the average distance on the right as an example: m p is the number of right points to be considered, 3-5 can be selected to simplify the calculation; calculate the three-dimensional distance d right =||p x,y -p right ||; Calculate s right The larger the value, the greater the probability that the point is an edge point; by rightBy smoothing the graph, continuous edges of the point cloud data can be obtained, among which the most important are the boundary points of the vehicle body. By recording and tracking the position data of these points, a rough geometric prior can be provided, alleviating the obstacles to initializing 3D Gaussian.
[0084] 303: Extract feature points based on boundary points and local geometric saliency. x,y With p right After comparing the three-dimensional distances in the four directions, the points can be classified: x,y If p is smaller, it means that the point may be the boundary of the object; right If the value is smaller, it means that the point may be an occlusion boundary caused by occlusion. For all points that may be object boundaries, find the corresponding occlusion boundary in their corresponding comparison direction and select m points in this direction on the two-dimensional plane. p The largest point in the range is taken as the corresponding occlusion boundary, and S is calculated shadow , and adjust S right s′ right =max(0.9,1-(1-s shadow ) 3 )×s right , when the value is greater than 0.8 and is (p x-1,y , p x+1,y ) neighborhood, it is considered to be the corresponding occlusion boundary point.
[0085] For the selected object boundary points, a surface change score and the main direction of change are calculated, that is, the scaling weight of each direction is (p x-1,y , p x+1,y ), and the interest value of this point is defined as σ is the diameter of the three-dimensional support size (neighborhood), n i is the neighborhood point of point p, represents the one-dimensional projection angle of each neighborhood point relative to point p,
[0086] 304: Define the local support region for each point (p x-1,y , p x+1,y ), that is, the point can significantly represent the characteristics of the points in the area.
[0087] 305: Project the point cloud of the local support area onto a two-dimensional plane and calculate the feature vector.
[0088] 306: Construct the feature descriptor of NARF based on the gradient direction. That is, create a star-shaped sampling area around the point of interest: take the point of interest as the center, select points at a certain distance and points on the path between the point and the point of interest at equal angles as the feature descriptors of the point of interest at the current angle. These points with the same deflection angle relative to the point of interest are recorded as points on a beam, and the darkest point on each beam is recorded as c0, and the rest are recorded from near to far according to the distance from the darkest point as {c1, c2...c m The grayscale change of each pixel on each beam corresponds to a value in the final descriptor, namely Corresponding to the cumulative change value of the i-th beam, It can represent the weight of each point assigned according to the distance, and σ is the diameter of the three-dimensional support size (neighborhood). By calculating the size of the descriptor in each direction around the point of interest, it can be determined whether the point is a boundary point of interest.
[0089] 307: Output the NARF feature descriptor of the feature point.
[0090] Camera data: A fast real-time 3D reconstruction method based on 3D Gaussian Splatting is used, and the precise point cloud data obtained by the LiDAR is used as the pre-input of the model scene point cloud. At the same time, the 3D point cloud features of the camera data are extracted by the image feature extraction method based on the SFM algorithm. The training is performed on the required top-down and side-up perspectives of the entire articulated train surrounding image, and the 3D Gaussian Splatting ellipsoid features under some useless perspectives are discarded to speed up the training. The obtained images are rasterized and rendered with high quality. Figure 6 As shown, the specific process is:
[0091] 401: Generate sparse point cloud using structured light measurement (SFM). First, SIFT key point detection is used to match key points between different images; then the key point information is used to estimate the camera motion parameters and the 3D coordinates of the scene points. For a set of matching points p and p′, Where E and F can be obtained through the camera's intrinsic parameter matrix K, that is, E = K T FK; then reprojection error estimation and bundle adjustment are performed, that is, given a 3D point X and its projection X in the i-th camera view i , and its reprojection error is e i =x i -π(K i , R i , t i , X), optimize the target value to minimize the camera reprojection error, π is the projection function, K i is the camera intrinsic parameter matrix, Ri is the rotation parameter of the camera relative to the global reference frame, t i is the translation parameter of the camera relative to the global reference system; finally, the multi-view stereo vision technology (VMS) is used to expand the sparse point cloud into a dense point cloud to achieve the goal of restoring the 3D scene; in this invention, the use of LiDAR is innovatively introduced. Through the hybrid scene representation, the system can obtain point cloud data from the LiDAR as a rough geometric prior for scene reconstruction, that is, the density network is initialized with the LiDAR. First, the point cloud of the LiDAR is loaded and create a set of points Scattered on the background surface and at p∈P pc ∪P bg The density σ in the position initialization density grid is σ=σ0, where σ0 is a constant, and the occupancy network for effective sampling is updated according to the initialized density map, thereby ensuring that the sampling positions are sparse in the scene, which will alleviate the obstacles to scene geometry optimization;
[0092] 402: Initialize a set of 3D Gaussian functions at the current point cloud position.
[0093] 403: 3D Gaussian is defined by position μ, covariance matrix ∑ and opacity α. The specific formula for each Gaussian ellipsoid is Since the Gaussian ellipsoid μ = 0 is constructed at the point cloud, and there is no need to ensure that the volume of the ellipsoid is constant at 1, x is the position of the point in space, k=3 is the three-dimensional dimension, and ∑ is the three-dimensional covariance matrix.
[0094] 404: Predict the shape, opacity, and spherical harmonics of the 3D Gaussian (BEV or side-to-side view). That is, by applying a view transformation, the 3D Gaussian is projected onto a two-dimensional plane using a snowball method, which involves transforming the three-dimensional covariance matrix ∑ to the camera coordinate system, and then ignoring the third row and the third column to obtain the two-dimensional covariance matrix ∑′, that is, ∑′=T∑T T , T is the Jacobian matrix of the affine approximation projective transformation; the spherical harmonic function can be expressed as is a spherical harmonic function of order l and degree m, is the associated Legendre polynomial, θ and φ are the polar angle and azimuth angle, is a normalization constant, so the illumination and color can be approximated by the spherical harmonic expansion, that is is the spherical harmonic coefficient, indicating the corresponding spherical harmonic The lighting component on the image is used to simulate the complex lighting effects in the environment. The shape and direction of the Gaussian can be changed by adjusting the value of the covariance matrix ∑. The opacity α0 is a scalar. When rendering an image, the opacity is stacked from near to far until the sum is greater than or equal to 1, which is the color value of the point in the view.
[0095] 405: Fast Differentiable Rasterization;
[0096] 406: Generate a predicted image, compare it with the current view and calculate the deviation, and optimize the generated 3D Gaussian parameters with the deviation as the target;
[0097] 407: Adaptive density control, remove unreasonable 3D Gaussian. That is, if a Gaussian ellipsoid is too large and covers multiple structures or features, it can be split into multiple small Gaussian ellipsoids; if the 3D Gaussian in a neighborhood is too dense and the generated Gaussian ellipsoid is too small, that is, λ min (∑)<τ,λ min (∑) is the minimum eigenvalue, τ is the minimum size threshold, and they are merged into a large Gaussian ellipsoid; when the opacity of a Gaussian ellipsoid is too low, the Gaussian ellipsoid is removed.
[0098] 408: Assign low weights to the detail loss of non-attention views to accelerate training. That is, when calculating the loss of the generated 3D Gaussian and the current view, first calculate the deviation loss between the current real image and the predicted image, then assign a null value to the spherical harmonic function at the non-attention view angle, and calculate the deviation loss between the current real image and the predicted image. null , the final optimization loss is loss′=loss-(1-k)·loss null , k is the weight of the non-attention perspective, which can reduce the attention distribution of details under the non-attention perspective and abandon some 3D Gaussian Splatting ellipsoid features under useless perspectives during road travel to speed up training.
[0099] S3. Based on the data collected in step S1, the real-time position and posture of each vehicle section of the train are iteratively calculated through a point cloud registration algorithm.
[0100] The visual odometry effect is achieved by using the three-dimensional feature points of the image obtained based on the SFM (Structure from Motion) feature point extraction method, and the laser radar feature point cloud data is fused for correction to obtain the accurate position and relative speed of each section of the articulated vehicle. That is, the current point cloud is first registered with the point cloud at the previous moment through the random sampling consensus algorithm (RANSAC), and after the registration, the ICP algorithm is used to iteratively find the best alignment between the two groups of point clouds to minimize the distance between them. The core formula is to calculate a transformation matrix that minimizes the average distance from the source point cloud to the target point cloud.
[0101] The iterative process is as follows: for each source point, find the nearest point in the target point cloud; calculate the rotation R and translation t that minimizes the distance between the point pairs, so that Minimize, P and Q are the matching source and target point sets respectively; apply the transformation to the source point cloud, repeat the above process until convergence to obtain the pose rotation R of the body point cloud set.
[0102] S4. Generate a driving warning signal based on the auxiliary view and real-time posture to assist train driving.
[0103] After processing the video stream, the auxiliary view is presented to the driver to assist driving, and the vehicle section information is output to the vehicle terminal for subsequent control, including displaying the high-quality real-time panoramic BEV image or side and upper image processed by the terminal server in the cab through an LED screen, and storing and continuously recording the vehicle's own motion information for call by other cloud data processors.
[0104] The above method can efficiently utilize sensor information and overcome the defects of inaccurate real-time camera pose estimation and low BEV image stitching quality under high-speed movement; at the same time, the problem of long training time of the existing 3D Gaussian Splatting algorithm is optimized so that it can adapt to the world environment of high-speed articulated trains and render high-quality coherent real-time video of the required perspective, which greatly improves the driver's perception of the vehicle posture and the surrounding environment of the vehicle and improves road driving safety.
[0105] If the above method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0106] Example 2
[0107] The present invention also provides an articulated train auxiliary driving system based on three-dimensional reconstruction, comprising:
[0108] A data acquisition module includes multiple sensors installed on the train, which are used to acquire image data and point cloud data in real time during road driving. The sensors installed on the train include a binocular camera, multiple laser radars, and multiple monocular cameras. The number and installation position of each sensor are obtained according to the layout optimization model.
[0109] An auxiliary view generation module, used to generate auxiliary views of various surround viewing angles through three-dimensional reconstruction technology according to the data of the data acquisition module;
[0110] A real-time posture calculation module, used to iteratively calculate the real-time posture of each car section of the train through a point cloud registration algorithm according to the data of the data acquisition module;
[0111] Train driving assistance module: used to receive and store the data generated by the auxiliary view generation module and the real-time posture calculation module, generate driving warning signals, and assist train driving.
[0112] The rest is the same as in Example 1.
[0113] The above description of the embodiments is to facilitate the understanding and use of the invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to these embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments, and improvements and modifications made by those skilled in the art based on the disclosure of the present invention without departing from the scope of the present invention should be within the scope of protection of the present invention.
Claims
1. An articulated train assisted driving method based on three-dimensional reconstruction, characterized in that: The following steps are involved: S1. Collect image data and point cloud data in real time during road driving through multiple sensors installed on the train. The sensors installed on the train include a binocular camera, multiple laser radars, and multiple monocular cameras. The number and installation position of each sensor are obtained according to a layout optimization model. S2, generating auxiliary views of multiple surround viewing angles through three-dimensional reconstruction technology according to the data collected in step S1; S3, based on the data collected in step S1, iteratively calculate the real-time position and posture of each vehicle section of the train through a point cloud registration algorithm; S4. Generate a driving warning signal according to the auxiliary view and the real-time posture to assist train driving.
2. The articulated train assisted driving method based on three-dimensional reconstruction according to claim 1, characterized in that: The method for calculating the number of lidars and monocular cameras according to the layout optimization model is as follows: m=2s Among them, m is the number of lidars, n is the number of monocular cameras, s is the number of train sections, l is the length of the train, l2 is the length of the train head, and h is the height of the train section.
3. The articulated train assisted driving method based on three-dimensional reconstruction according to claim 2 is characterized in that: The installation positions of each sensor are determined according to the calculation results of the layout optimization model, as follows: The binocular camera is installed on the front of the train to obtain images and depth information of distant objects in front of and on both sides of the train route; Two monocular cameras are installed on both sides of the train head to assist in acquiring images of both sides of the train and the train sections; The m laser radars are divided into two groups and symmetrically installed at one end of each car section close to the front of the train to obtain the point cloud data of the blind spots on both sides of the train and each car section; The remaining monocular cameras are installed on the top of both sides of the train section to obtain images around the train.
4. The articulated train assisted driving method based on three-dimensional reconstruction according to claim 1, characterized in that: In step S2, the process of constructing auxiliary views of multiple surround viewing angles by using 3D reconstruction technology includes: S210, using the NARF feature extraction method, projecting the point cloud data of the key articulations of the articulated train to a top-down perspective and performing feature extraction to obtain key point cloud features of the articulated train car section in the BEV space; S220, adopting a fast real-time 3D reconstruction method based on 3D Gaussian Splatting, taking the key point cloud features as pre-input, rasterizing and rendering the image data with high quality through the structured light measurement method SFM, and generating auxiliary views of multiple surround viewing angles.
5. The articulated train assisted driving method based on three-dimensional reconstruction according to claim 4, characterized in that: The specific process of step S210 is as follows: S211, obtaining point cloud data of key articulations of articulated trains; S212, performing surface estimation and edge point extraction by calculating the normal of each point; S213, extracting feature points based on edge points and local geometric saliency; S214, obtaining a local support region for each feature point, projecting a point cloud of the local support region onto a two-dimensional plane, and calculating a feature vector; S215. Based on the gradient direction, construct and calculate the NARF feature descriptor of the feature point to obtain the key point cloud features of the articulated vehicle section in the BEV space.
6. The articulated train assisted driving method based on three-dimensional reconstruction according to claim 4, characterized in that: The specific process of step S220 is as follows: S221, generating sparse point cloud using structured light measurement method SFM; S222, initializing a 3D Gaussian function set at the current point cloud position to construct a 3D Gaussian ellipsoid; S223, predicting the shape, opacity and spherical harmonic function of the 3D Gaussian ellipsoid from a BEV perspective or a side-up perspective; S224, perform fast differentiable rasterization to generate a predicted image, compare it with the current image data to calculate the deviation, construct a final optimization loss function based on the deviation, and optimize the parameters of the generated 3D Gaussian ellipsoid accordingly.
7. The articulated train assisted driving method based on three-dimensional reconstruction according to claim 6, characterized in that: In step S224, low weights are assigned to the deviations of non-focused views to construct the final optimization loss function.
8. The articulated train assisted driving method based on three-dimensional reconstruction according to claim 1, characterized in that: In step S3, an iterative calculation is performed using the ICP algorithm. The specific process is as follows: The current point cloud data is registered with the point cloud data at the previous moment through the random sampling consistency algorithm; The optimal alignment between the two sets of point cloud data is iteratively solved through the ICP algorithm to obtain the real-time position and relative motion speed of each train section.
9. An articulated train assisted driving system based on three-dimensional reconstruction, characterized in that: include: A data acquisition module includes multiple sensors installed on the train, which are used to acquire image data and point cloud data in real time during road driving. The sensors installed on the train include a binocular camera, multiple laser radars, and multiple monocular cameras. The number and installation position of each sensor are obtained according to the layout optimization model. An auxiliary view generation module, used to generate auxiliary views of various surround viewing angles through three-dimensional reconstruction technology according to the data of the data acquisition module; A real-time posture calculation module, used to iteratively calculate the real-time posture of each car section of the train through a point cloud registration algorithm according to the data of the data acquisition module; Train driving assistance module: used to receive and store the data generated by the auxiliary view generation module and the real-time posture calculation module, generate driving warning signals, and assist train driving.
10. The articulated train auxiliary driving system based on three-dimensional reconstruction according to claim 9, characterized in that: The multiple sensors in the data acquisition module are connected to the same Exchange server via Ethernet, and the Exchange server is connected to a domain controller, which is used for unified processing and sharing of the image data and point cloud data.
Citation Information
Cited By
Track planning method of train follow-up device
CN118124618A
Pavement new view angle synthesis method and device based on motion information and Gaussian sputtering
CN119693550A
Method and device for synthesizing new perspective of road surface based on motion information and gaussian sputtering
CN119693550B
Three-dimensional modeling system and method using online multi-view stereo
WO2026095342A1
