Three-dimensional reconstruction method and device for geometric structure of pavement
By initializing the grid and assigning values to laser point clouds in 3D reconstruction technology, combined with camera pose rendering and backpropagation, the problem of low image quality in existing 3D reconstruction technology is solved and higher geometric accuracy and color representation are achieved. , which improves the effect of three-dimensional reconstruction.
Patent Information
- Application Number
- CN202410603562.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-30
AI Technical Summary
In existing 3D reconstruction technology, the consistency constraints between grid-rendered images and real images result in low image quality. Especially in large scenes and high-resolution object representations, there are problems of memory usage and poor color representation.
By obtaining road surface images and laser point clouds, perform grid initialization and height assignment, combine the camera pose for rendering, calculate the loss of rendering and normal vector images, and use backpropagation to update the grid position and color to improve the geometric accuracy of the grid. and image quality.
The image quality of the three-dimensional reconstruction is improved, and the lidar point cloud is used to initialize the grid shape and normal vector constraints, which significantly improves the geometric accuracy and color representation of the grid.
Smart Images

Figure CN118570371A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer graphics technology, and in particular to a three-dimensional reconstruction method and device for a road surface geometric structure. Background Art
[0002] In the field of computer graphics, 3D reconstruction refers to restoring the 3D structure and color of the surrounding environment based on sensor data (e.g., images, lidar, etc.). High-quality 3D reconstruction results can be used in fields such as autonomous driving simulation and 4D annotation, thereby promoting the advancement of autonomous driving technology.
[0003] How to represent the three-dimensional structure and color of the surrounding environment has always been a core issue in the three-dimensional reconstruction process; in existing three-dimensional reconstruction technologies, for structures, common representation methods include voxels, point clouds, and meshes. The voxel representation method has a serious disadvantage: the memory occupied increases cubically with the increase of resolution, so it is not suitable for large scenes and high-resolution object representation. The disadvantage of the point cloud representation method is that the point cloud is discrete, lacks the connection between points, and is not good at representing colors. Therefore, the commonly used representation method of three-dimensional structure is mesh, which occupies less memory and is conducive to expressing colors.
[0004] The task of 3D reconstruction is actually to determine the 3D coordinates of each triangle vertex in a mesh and its corresponding color. The core idea of existing 3D reconstruction methods is to make the mesh-rendered image and the real image as consistent as possible to obtain a mesh that is identical to the real 3D world. However, constraining the geometry of the mesh only by the consistency of the image under the same viewing angle often results in poor results, resulting in low quality of the reconstructed image.
[0005] Therefore, the prior art needs to be improved. Summary of the invention
[0006] The technical problem to be solved by the present invention is that, in view of the defects of the prior art, the present invention provides a three-dimensional reconstruction method and device for road surface geometry to solve the problem of low image quality after reconstruction by the existing three-dimensional reconstruction method.
[0007] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0008] In a first aspect, the present invention provides a method for three-dimensional reconstruction of a road surface geometric structure, comprising:
[0009] Acquire a road surface image and a road surface laser point cloud, and perform grid initialization on a plane obtained by fitting the road surface image;
[0010] Initializing the road surface height according to the road surface laser point cloud, and assigning the average height of the road surface laser points to the corresponding grid nodes;
[0011] Rendering the assigned grid nodes according to the camera pose corresponding to the road surface image to obtain a rendered image and a normal vector image;
[0012] The rendered image and the normal vector image are respectively compared with the corresponding real image, and the corresponding loss is calculated. Back propagation is performed according to the calculated loss to update the position and color of the grid to obtain the reconstructed grid.
[0013] In one implementation, the step of acquiring a road surface image and a road surface laser point cloud includes:
[0014] Collect multiple road images and corresponding road laser point clouds while the vehicle is driving;
[0015] Get the camera pose corresponding to each road surface image when it was taken;
[0016] A segmentation model is used to segment the ground area and the road surface area of each road surface image, and a normal vector prediction model is used to predict the normal vector true value image corresponding to each road surface image; wherein the ground area includes: the road surface area and the non-road surface area on the ground.
[0017] In one implementation, the step of initializing a grid by fitting the road surface image to obtain a plane includes:
[0018] The plane is obtained by fitting according to the three-dimensional position of each road surface image when it is shot;
[0019] Initialize the node colors of each mesh in the plane to arbitrary values.
[0020] In one implementation, the step of initializing the road surface height according to the road surface laser point cloud and assigning the average height of the road surface laser points to the corresponding grid nodes includes:
[0021] A point cloud segmentation algorithm is used to extract road surface points in the road surface laser point cloud to obtain all road surface laser points;
[0022] Find a set of road surface laser points closest to each node in the grid according to the nearest neighbor search algorithm;
[0023] The average height value of a group of road surface laser points found is calculated, and the average height value is assigned to the corresponding grid node.
[0024] In one implementation, rendering the assigned grid nodes according to the camera pose corresponding to the road surface image to obtain a rendered image and a normal vector image includes:
[0025] For the camera posture corresponding to any road surface image, the assigned grid nodes are rendered in the renderer in the same posture manner to obtain the rendered image and the normal vector image.
[0026] In one implementation, the respectively comparing the rendered image and the normal vector image with the corresponding real image to calculate the corresponding losses includes:
[0027] Comparing the rendered image with the corresponding road surface image to calculate the loss of the ground area;
[0028] Comparing the normal vector image with the corresponding normal vector true value image, and calculating the loss of the non-road area in the ground area;
[0029] A total reconstruction loss is calculated according to the loss of the ground area and the loss of the non-road area in the ground area.
[0030] In one implementation, back propagating according to the calculated loss to update the position and color of the grid includes:
[0031] Perform back propagation according to the total reconstruction loss to update the position and color of the grid;
[0032] The image rendering, reconstruction total loss calculation and back propagation operations are repeated for all road images until the reconstruction total loss meets the conditions.
[0033] In a second aspect, the present invention provides a three-dimensional reconstruction device for a road surface geometric structure, comprising:
[0034] A grid initialization module is used to obtain a road surface image and a road surface laser point cloud, and to perform grid initialization on a plane obtained by fitting the road surface image;
[0035] A road surface height initialization module is used to initialize the road surface height according to the road surface laser point cloud, and assign the average height of the road surface laser points to the corresponding grid nodes;
[0036] A rendering module, used to render the assigned grid nodes according to the camera pose corresponding to the road surface image, to obtain a rendered image and a normal vector image;
[0037] The reconstruction optimization module is used to compare the rendered image and the normal vector image with the corresponding real image respectively, calculate the corresponding loss, and perform back propagation according to the calculated loss to update the position and color of the grid to obtain the reconstructed grid.
[0038] In a third aspect, the present invention provides a terminal comprising: a processor and a memory, wherein the memory stores a three-dimensional reconstruction program for a road surface geometry structure, and when the three-dimensional reconstruction program for a road surface geometry structure is executed by the processor, it is used to implement the operation of the three-dimensional reconstruction method for a road surface geometry structure as described in the first aspect.
[0039] In a fourth aspect, the present invention further provides a medium, which is a computer-readable storage medium, and which stores a three-dimensional reconstruction program for a road surface geometry structure. When the three-dimensional reconstruction program for a road surface geometry structure is executed by a processor, it is used to implement the operation of the three-dimensional reconstruction method for a road surface geometry structure as described in the first aspect.
[0040] The present invention adopts the above technical solution to achieve the following effects:
[0041] The present invention can render the assigned grid nodes according to the camera pose corresponding to the road surface image by initializing the grid and initializing the road surface height according to the road surface laser point cloud, and calculate the corresponding losses according to the rendered image and the normal vector image respectively, and use the calculated losses for back propagation, thereby updating the position and color of the grid to obtain the reconstructed road surface grid. The present invention uses the laser radar point cloud to initialize the grid shape, uses the normal vector constraint to improve the geometric accuracy of the grid, and improves the image quality of the three-dimensional reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0043] Figure 1 It is a flow chart of a method for three-dimensional reconstruction of road surface geometry in one implementation of the present invention.
[0044] Figure 2 It is a schematic diagram of a grid image in one implementation of the present invention.
[0045] Figure 3 It is a schematic diagram of three-dimensional reconstruction in one implementation of the present invention.
[0046] Figure 4 It is a functional principle diagram of a terminal in one implementation of the present invention.
[0047] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0049] Exemplary Methods
[0050] The core idea of existing 3D reconstruction methods is to make the mesh-rendered image and the real image as consistent as possible to obtain a mesh that is identical to the real 3D world; however, constraining the geometry of the mesh only by the consistency of the image under the same perspective often produces poor results, resulting in low quality of the reconstructed image.
[0051] In view of the above technical problems, an embodiment of the present invention provides a three-dimensional reconstruction method for road geometry. The method can render the assigned grid nodes according to the camera pose corresponding to the road image by initializing the grid and the road height according to the road laser point cloud, and calculate the corresponding losses according to the rendered image and the normal vector image respectively, and use the calculated losses for back propagation to update the position and color of the grid to obtain the reconstructed road grid. Therefore, the present invention uses the laser radar point cloud to initialize the grid shape, uses the normal vector constraint to improve the geometric accuracy of the grid, and improves the image quality of the three-dimensional reconstruction.
[0052] like Figure 1 As shown, an embodiment of the present invention provides a three-dimensional reconstruction method of a road surface geometric structure, comprising the following steps:
[0053] Step S100, obtaining a road surface image and a road surface laser point cloud, and performing grid initialization on a plane obtained by fitting the road surface image.
[0054] In this embodiment, a grid representation is used to perform three-dimensional reconstruction of the road surface geometry; wherein the grid is a curved surface composed of some triangles, such as Figure 2 As shown, when the vertices of all triangles of a mesh and the corresponding connection relationships are determined, a mesh can be determined; if all meshes are determined, they can be saved in the form of an obj file, in which the color of each mesh node, the spatial coordinates and the connection relationship between the points are saved.
[0055] Specifically, in an implementation of this embodiment, step S100 includes the following steps:
[0056] Step S101, collecting multiple road surface images and corresponding road surface laser point clouds during the vehicle's driving process;
[0057] Step S102, obtaining the camera position corresponding to each road surface image when it was taken;
[0058] Step S103, using the segmentation model to segment each road surface image to obtain the ground area and road surface area, and using the normal vector prediction model to predict the normal vector true value image corresponding to each road surface image; wherein the ground area includes: the road surface area and the non-road surface area.
[0059] In this embodiment, a series of road surface images of the vehicle during driving, a road surface laser point cloud corresponding to each road surface image, and a camera posture corresponding to each road surface image when shooting are collected; wherein, the camera posture refers to the position and posture when shooting, including six degrees of freedom (i.e., the x-axis coordinate, y-axis coordinate, z-axis coordinate, pitch angle, yaw angle, and roll angle of the camera center when shooting).
[0060] After a series of road surface images are acquired, for each road surface image Use any segmentation model (e.g., detectron2 model) to get the ground area Mask of each road image. ground (x) and road area Mask road (x).
[0061] It is worth mentioning that the ground area in this embodiment includes the road area and the non-road area, wherein the non-road area includes: curbs, wheel blocks, speed bumps and other areas. In addition, for each road image, it is also necessary to use any normal vector prediction model (for example, omnidata model) to predict the normal vector true value image corresponding to each road image.
[0062] In this embodiment, the ground area Mask of each road surface image is obtained. ground (x), Road surface area Mask road (x) and the corresponding normal vector true value image Finally, the grid is initialized so that each grid has a random color value.
[0063] Specifically, in an implementation of this embodiment, step S100 further includes the following steps:
[0064] Step S104, fitting the plane according to the three-dimensional position of the camera when each road surface image is taken;
[0065] Step S105, initializing the node color of each grid in the plane to an arbitrary value.
[0066] In this embodiment, for the three-dimensional reconstruction process of the road scene, the initialized grid can be a plane; wherein the plane is a plane fitted according to the three-dimensional position of each road image when it is taken; specifically, the fitting process of the plane is: according to a number of three-dimensional points in a known space, the plane is obtained by using the least squares fitting method.
[0067] For the initial color of the grid, a random value or a fixed value can be given. Note that the color of each node in the grid is a learnable parameter, which can be initialized to any value. The specific learning process is not described here.
[0068] like Figure 1 As shown, in one implementation of the embodiment of the present invention, the three-dimensional reconstruction method of the road surface geometric structure further includes the following steps:
[0069] Step S200, initializing the road surface height according to the road surface laser point cloud, and assigning the average height of the road surface laser points to the corresponding grid nodes.
[0070] like Figure 3 As shown, compared with the traditional 3D reconstruction method, this embodiment adds a road height initialization node to obtain the approximate road shape; and adds a normal vector supervision loss to further guide the accurate reconstruction of the road surface. Among them, the road height initialization node is used to initialize the road height using the road surface laser point cloud collected by the laser radar commonly equipped on autonomous driving vehicles; this can reconstruct a road surface with higher accuracy than the traditional image constraint method. In this embodiment, considering the influence of factors such as the resolution and ranging error of the road surface laser point cloud, normal vector constraints are further used to improve the accuracy of small road surface structures, such as curbs, wheel chocks and other elements.
[0071] Specifically, in an implementation of this embodiment, step S200 includes the following steps:
[0072] Step S201, extracting road surface points in the road surface laser point cloud using a point cloud segmentation algorithm to obtain all road surface laser points;
[0073] Step S202, searching a group of road surface laser points closest to each node in the grid according to a nearest neighbor search algorithm;
[0074] Step S203, calculating the average height value of a group of road surface laser points found, and assigning the average height value to the corresponding grid node.
[0075] In this embodiment, the road surface height is initialized using the laser point cloud.
[0076] Specifically, firstly, any point cloud segmentation algorithm (for example, Patchwork++ algorithm) is used to extract road surface points in the road surface laser point cloud. The specific method of extracting the road surface point cloud is: directly calling the point cloud segmentation algorithm, inputting all point clouds containing ground points and above-ground points, and outputting them as ground points after segmentation by the point cloud segmentation algorithm.
[0077] Then, the nearest neighbor search algorithm is used to find the nearest set of road surface laser points corresponding to each node in the grid.
[0078] Finally, the average height of this group of road laser points is calculated and assigned to the corresponding grid node. (For example, a grid has three nodes, and all nodes can be obtained by averaging the height of their nearest neighbor points).
[0079] like Figure 1 As shown, in one implementation of the embodiment of the present invention, the three-dimensional reconstruction method of the road surface geometric structure further includes the following steps:
[0080] Step S300, rendering the assigned grid nodes according to the camera pose corresponding to the road surface image to obtain a rendered image and a normal vector image.
[0081] Specifically, in an implementation of this embodiment, step S300 includes the following steps:
[0082] Step S301, for any camera pose corresponding to a road surface image, the assigned mesh nodes are rendered in a renderer in the same pose manner to obtain the rendered image and the normal vector image.
[0083] In this embodiment, for any camera pose x, the assigned mesh nodes are rendered in any renderer (for example, Pytorch3D or nvdiffrast, etc.) in the same pose manner; the so-called rendering is similar to the process of taking a photo.
[0084] The specific process is: directly call the mature rendering tool, and by inputting the camera pose and object (grid) into the renderer, the rendered image C can be obtained. render (x) and the normal vector image C normal (x).
[0085] In this embodiment, by introducing lidar information with precise depth information and normal vector information with relative geometric structure, the road surface height can be initialized using the lidar point cloud, and the normal vector obtained by rendering is used to supervise the loss, thereby improving the accuracy of three-dimensional reconstruction.
[0086] like Figure 1As shown, in one implementation of the embodiment of the present invention, the three-dimensional reconstruction method of the road surface geometric structure further includes the following steps:
[0087] Step S400, respectively compare the rendered image and the normal vector image with the corresponding real image, calculate the corresponding loss, and perform back propagation according to the calculated loss to update the position and color of the grid to obtain a reconstructed grid.
[0088] In this embodiment, if Figure 3 As shown, at a certain camera perspective, after the rendering process of the renderer, a rendered image and a normal vector image at the camera perspective are obtained; then, the obtained rendered image and the corresponding real image (i.e., the collected road surface image) are used to calculate the rendering loss, and the obtained normal vector image and the corresponding normal vector true value image (i.e., the normal vector true value image predicted by the normal vector prediction model in step S103) are used to calculate the normal vector loss, and the final loss (i.e., the total loss) can be obtained by weighted summing the rendering loss and the normal vector loss.
[0089] Specifically, in an implementation of this embodiment, step S400 includes the following steps:
[0090] Step S401, comparing the rendered image with the corresponding road surface image to calculate the loss of the ground area;
[0091] Step S402, comparing the normal vector image with the corresponding normal vector true value image, and calculating the loss of the non-road area in the ground area;
[0092] Step S403, calculating a total reconstruction loss according to the loss of the ground area and the loss of the non-road area in the ground area;
[0093] Step S404, performing back propagation according to the total reconstruction loss to update the position and color of the grid;
[0094] Step S405, repeatedly performing image rendering, total reconstruction loss calculation and back propagation operations on all road images until the total reconstruction loss meets a condition.
[0095] In this embodiment, when calculating the normal vector loss, since most of the image is the road surface, if the normal vector loss of all pixels in the entire image is directly calculated, the loss of the road surface part will dominate the entire normal vector loss, making the loss contributed by elements such as curbs and wheel chocks less important. Based on this, in this embodiment, a road surface segmentation algorithm is used to obtain road surface pixels, and when calculating the loss, the loss of the ground part can be ignored, thereby improving the efficiency of reconstruction.
[0096] In this embodiment, when the rendering loss is calculated for the obtained rendered image and the corresponding collected image, only the rendering loss of the reconstructed area (ie, the ground area) is calculated. Therefore, the formula for the rendering loss is:
[0097]
[0098] in, Refers to the camera input image at this pose, Mask ground (x) is the mask corresponding to the ground area.
[0099] In this embodiment, when calculating the normal vector loss using the obtained normal vector image and the corresponding normal vector true value image, only the non-road area in the ground area is calculated, so the formula for the normal vector loss is:
[0100]
[0101] Among them, Mask valid (x) = Mask ground (x)-Mask road (x)
[0102] Mask road (x) is the mask corresponding to the road surface area;
[0103] is the true value of the normal vector;
[0104] It should be noted that - in the above formula is a set operation.
[0105] The final loss (i.e., total loss) is obtained by weighted summing the rendering loss and the normal vector loss:
[0106] L total =L color +σ*L normal
[0107] Among them, σ is the weight coefficient.
[0108] In this embodiment, the position and color of the grid can be updated by back-propagating the final loss obtained; for all images, the image rendering, reconstruction total loss calculation and back-propagation operations are repeated until the reconstruction total loss meets the conditions, that is, until the final loss no longer decreases, and the reconstructed road grid is obtained.
[0109] This embodiment uses the lidar point cloud to initialize the mesh shape, and uses normal vector constraints to further improve the geometric accuracy of the mesh; compared with the traditional three-dimensional reconstruction method, this embodiment introduces lidar information with precise depth information and normal vector information with relative geometric structure, thereby improving the accuracy of three-dimensional reconstruction.
[0110] This embodiment achieves the following technical effects through the above technical solution:
[0111] This embodiment can render the assigned grid nodes according to the camera pose corresponding to the road surface image by initializing the grid and the road surface height according to the road surface laser point cloud, and calculate the corresponding losses according to the rendered image and the normal vector image respectively, and use the calculated losses for back propagation to update the position and color of the grid to obtain the reconstructed road surface grid. This embodiment uses the laser radar point cloud to initialize the grid shape, uses the normal vector constraint to improve the geometric accuracy of the grid, and improves the image quality of the three-dimensional reconstruction.
[0112] Exemplary Devices
[0113] Based on the above embodiments, the present invention further provides a three-dimensional reconstruction device for road surface geometric structure, comprising:
[0114] A grid initialization module is used to obtain a road surface image and a road surface laser point cloud, and to perform grid initialization on a plane obtained by fitting the road surface image;
[0115] A road surface height initialization module is used to initialize the road surface height according to the road surface laser point cloud, and assign the average height of the road surface laser points to the corresponding grid nodes;
[0116] A rendering module, used to render the assigned grid nodes according to the camera pose corresponding to the road surface image, to obtain a rendered image and a normal vector image;
[0117] The reconstruction optimization module is used to compare the rendered image and the normal vector image with the corresponding real image respectively, calculate the corresponding loss, and perform back propagation according to the calculated loss to update the position and color of the grid to obtain the reconstructed grid.
[0118] This embodiment achieves the following technical effects through the above technical solution:
[0119] This embodiment can render the assigned grid nodes according to the camera pose corresponding to the road surface image by initializing the grid and the road surface height according to the road surface laser point cloud, and calculate the corresponding losses according to the rendered image and the normal vector image respectively, and use the calculated losses for back propagation to update the position and color of the grid to obtain the reconstructed road surface grid. This embodiment uses the laser radar point cloud to initialize the grid shape, uses the normal vector constraint to improve the geometric accuracy of the grid, and improves the image quality of the three-dimensional reconstruction.
[0120] Based on the above embodiment, the present invention further provides a terminal, whose principle block diagram can be as follows: Figure 4 shown.
[0121] The terminal includes: a processor, a memory, an interface, a display screen and a communication module connected through a system bus; wherein the processor of the terminal is used to provide computing and control capabilities; the memory of the terminal includes a storage medium and an internal memory; the storage medium stores an operating system and a computer program; the internal memory provides an environment for the operation of the operating system and the computer program in the storage medium; the interface is used to connect to external devices; the display screen is used to display corresponding information; and the communication module is used to communicate with a cloud server or other devices.
[0122] When the computer program is executed by a processor, it is used to implement the operation of the three-dimensional reconstruction method of the road surface geometric structure.
[0123] It can be understood by those skilled in the art that Figure 4 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal to which the scheme of the present invention is applied. The specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0124] In one embodiment, a terminal is provided, which includes: a processor and a memory, wherein the memory stores a three-dimensional reconstruction program of a road surface geometry structure, and the three-dimensional reconstruction program of the road surface geometry structure is used to implement the operation of the three-dimensional reconstruction method of the road surface geometry structure as described above when executed by the processor.
[0125] In one embodiment, a storage medium is provided, wherein the storage medium stores a three-dimensional reconstruction program for a road surface geometry structure, and the three-dimensional reconstruction program for a road surface geometry structure is used to implement the operation of the above three-dimensional reconstruction method for a road surface geometry structure when executed by a processor.
[0126] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and volatile memory.
[0127] In summary, the present invention provides a method and device for three-dimensional reconstruction of road geometry, the method comprising: obtaining a road image and a road laser point cloud, and initializing a grid by fitting the road image to obtain a plane; initializing the road height according to the road laser point cloud, and assigning the average height of the road laser point to the corresponding grid node; rendering the assigned grid nodes according to the camera pose corresponding to the road image to obtain a rendered image and a normal vector image; respectively comparing the rendered image and the normal vector image with the corresponding real image, calculating the corresponding loss, and performing back propagation according to the calculated loss to update the position and color of the grid to obtain a reconstructed grid. The present invention uses a laser radar point cloud to initialize the grid shape, uses normal vector constraints to improve the geometric accuracy of the grid, and improves the image quality of three-dimensional reconstruction.
[0128] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A three-dimensional reconstruction method of road surface geometric structure, characterized in that: include: Acquire a road surface image and a road surface laser point cloud, and perform grid initialization on a plane obtained by fitting the road surface image; Initializing the road surface height according to the road surface laser point cloud, and assigning the average height of the road surface laser points to the corresponding grid nodes; Rendering the assigned grid nodes according to the camera pose corresponding to the road surface image to obtain a rendered image and a normal vector image; The rendered image and the normal vector image are respectively compared with the corresponding real image, and the corresponding loss is calculated. Back propagation is performed according to the calculated loss to update the position and color of the grid to obtain the reconstructed grid.
2. The three-dimensional reconstruction method of road surface geometric structure according to claim 1, characterized in that: The step of acquiring the road surface image and the road surface laser point cloud comprises: Collect multiple road images and corresponding road laser point clouds while the vehicle is driving; Get the camera pose corresponding to each road surface image when it was taken; A segmentation model is used to segment the ground area and the road surface area of each road surface image, and a normal vector prediction model is used to predict the normal vector true value image corresponding to each road surface image; wherein the ground area includes: the road surface area and the non-road surface area on the ground.
3. The three-dimensional reconstruction method of road surface geometric structure according to claim 1, characterized in that: The step of initializing a grid by fitting the road surface image to obtain a plane includes: The plane is obtained by fitting according to the three-dimensional position of each road surface image when it is shot; Initialize the node colors of each mesh in the plane to arbitrary values.
4. The three-dimensional reconstruction method of road surface geometric structure according to claim 1, characterized in that: Initializing the road surface height according to the road surface laser point cloud and assigning the average height of the road surface laser points to the corresponding grid nodes includes: A point cloud segmentation algorithm is used to extract road surface points in the road surface laser point cloud to obtain all road surface laser points; Find a set of road surface laser points closest to each node in the grid according to the nearest neighbor search algorithm; The average height value of a group of road surface laser points found is calculated, and the average height value is assigned to the corresponding grid node.
5. The three-dimensional reconstruction method of road surface geometric structure according to claim 1, characterized in that: The step of rendering the assigned grid nodes according to the camera pose corresponding to the road surface image to obtain a rendered image and a normal vector image includes: For the camera posture corresponding to any road surface image, the assigned grid nodes are rendered in the renderer in the same posture manner to obtain the rendered image and the normal vector image.
6. The three-dimensional reconstruction method of road surface geometric structure according to claim 1, characterized in that: The step of comparing the rendered image and the normal vector image with the corresponding real image respectively and calculating the corresponding losses includes: Comparing the rendered image with the corresponding road surface image to calculate the loss of the ground area; Comparing the normal vector image with the corresponding normal vector true value image, and calculating the loss of the non-road area in the ground area; A total reconstruction loss is calculated according to the loss of the ground area and the loss of the non-road area in the ground area.
7. The three-dimensional reconstruction method of road surface geometric structure according to claim 6, characterized in that: The back propagation is performed based on the calculated loss to update the position and color of the grid, including: Perform back propagation according to the total reconstruction loss to update the position and color of the grid; The image rendering, reconstruction total loss calculation and back propagation operations are repeated for all road images until the reconstruction total loss meets the conditions.
8. A three-dimensional reconstruction device for road surface geometric structure, characterized in that: include: A grid initialization module is used to obtain a road surface image and a road surface laser point cloud, and to perform grid initialization on a plane obtained by fitting the road surface image; A road surface height initialization module is used to initialize the road surface height according to the road surface laser point cloud, and assign the average height of the road surface laser points to the corresponding grid nodes; A rendering module, used to render the assigned grid nodes according to the camera pose corresponding to the road surface image, to obtain a rendered image and a normal vector image; The reconstruction optimization module is used to compare the rendered image and the normal vector image with the corresponding real image respectively, calculate the corresponding loss, and perform back propagation according to the calculated loss to update the position and color of the grid to obtain the reconstructed road grid.
9. A terminal, characterized in that: include: A processor and a memory, wherein the memory stores a three-dimensional reconstruction program for a road surface geometry structure, and when the three-dimensional reconstruction program for a road surface geometry structure is executed by the processor, it is used to implement the operation of the three-dimensional reconstruction method for a road surface geometry structure as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a three-dimensional reconstruction program for road geometry, which, when executed by a processor, is used to implement the operation of the three-dimensional reconstruction method for road geometry as described in any one of claims 1-7.
Citation Information
Cited By
Convex curved surface workpiece laser processing planning method and device based on grid distortion
CN120409845A
