A digital twin generation method and system based on image and point cloud
Data is collected through drones and lidar, and combined with a variety of filtering and fitting algorithms, a high-precision digital twin maglev track model is generated, which solves the problem of poor data fusion in the existing technology and achieves efficient data fitting. and model generation.
Patent Information
- Application Number
- CN202211088586.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-07
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-09-07
AI Technical Summary
Existing image and point cloud data fusion methods do not do enough to improve system robustness, and fail to effectively explore the high-precision data fusion effect of large-scale transportation infrastructure such as maglev tracks.
Collect data through drones and lidar, perform aerial triangulation and data processing, generate color point cloud data, and combine bilateral filtering, point cloud ground point filtering and gradient filtering for data filtering and registration, and finally use least square The digital twin maglev track model is generated by multiplying the fitting plane algorithm and Poisson surface reconstruction.
The effective fusion of image point cloud data is achieved, and the generated maglev track model has good fitting effect. The software operation steps are simple, each application subsystem is highly independent, and the data processing errors are clear and within a reasonable range.
Smart Images

Figure CN115661333B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the application field of digital twins, and specifically to a method and system for generating digital twins based on images and point clouds. Background Art
[0002] Taking intelligent transportation as an example, extensive research in the field of vehicle-road collaboration and autonomous driving has shown that it is difficult to achieve higher accuracy in the perception and data detection of the traffic environment by using only a single sensor to obtain data. Therefore, many researchers have deeply registered the three-dimensional data of the laser point cloud with the image data, and have achieved good results in the research on object detection schemes and traffic environment perception. The deep registration technology of image point cloud data has evolved into multiple application directions, such as the widely used field of vehicle-road collaboration, dynamic target detection, static road recognition, etc.
[0003] The concept of digital twin was proposed by Professor Grieves for product lifecycle management. This initial conceptual model includes physical products in real space, virtual products in virtual space, and data and information connections between the two spaces. The subsequent development of digital twin theory is also based on the refinement and supplementation of this basic model. The elements of digital twin include multi-physics, multi-scale, and probabilistic system simulation. This simulation uses the best simulation of the system, sensor updates, historical information, etc. Its purpose is to mirror the entire life cycle of the physical twin.
[0004] However, the above-mentioned methods of image and point cloud data fusion are mostly focused on how to improve the robustness of the system through optimization algorithms, rarely considering the fitting effect of the digital twin model, and rarely exploring the high-precision data fusion effect of large-scale transportation infrastructure such as maglev. Summary of the invention
[0005] The present application discloses a method and system for generating digital twins based on images and point clouds, which collects basic data through drones and lidars, performs deep data registration, and obtains a digital twin maglev track model.
[0006] To achieve the above objectives, this application provides the following solutions:
[0007] A method for generating digital twins based on images and point clouds comprises the following steps:
[0008] S1. Collecting drone image data and coordinate data, performing aerial triangulation based on the drone image data and the coordinate data, and reconstructing and generating color point cloud data;
[0009] S2. Collecting laser radar point cloud data, and processing the color point cloud data and the laser radar point cloud data to obtain processed data;
[0010] S3. Perform data fusion on the processed data to generate a digital twin maglev track model.
[0011] Preferably, in S1, the method for generating color point cloud data includes:
[0012] Using a drone to perform oblique photogrammetry to obtain the drone image data;
[0013] Performing multiple aerial triangulations on the drone image data to obtain sparse point cloud data;
[0014] Reconstructing a model based on the sparse point cloud data to obtain a three-dimensional model;
[0015] Based on the three-dimensional model, the color point cloud data is derived and generated.
[0016] Preferably, in S1, the processing method includes:
[0017] Extracting first point cloud data requiring data fusion based on the color point cloud data and the laser radar point cloud data;
[0018] Eliminating redundant point clouds in the first point cloud data to obtain second point cloud data;
[0019] The second point cloud data is subjected to data filtering to obtain filtered data;
[0020] Performing data registration on the filtered data to obtain the processed data.
[0021] Preferably, the data filtering method comprises:
[0022] The second point cloud data is subjected to data filtering processing, and three methods, namely bilateral filtering, point cloud ground point filtering algorithm and gradient filtering method, are applied successively. By setting the maximum number of iterations, grid size, filtering threshold and spatial standard deviation, multi-layer filtering is completed to obtain the filtered data.
[0023] Preferably, the data registration method comprises:
[0024] Set the color point cloud coordinates in the filtered data to P = {p1, p2...p n}, the laser point cloud coordinates in the filtered data are Q = {q1, q2...q n}, based on the setting, the objective function to be minimized is as follows:
[0025]
[0026] Based on the minimized objective function, the filtered data are aligned to obtain processed data.
[0027] Preferably, in S3, the data fusion method includes:
[0028] Calculating normal vectors of the color point cloud and the laser point cloud in the processed data;
[0029] Use the least squares plane fitting algorithm to adjust the direction of the point cloud normal through the minimum cost spanning tree and perform Poisson surface reconstruction to generate a digital twin model;
[0030] The flatness of the digital twin model is calculated to obtain the digital twin maglev track model.
[0031] Preferably, the flatness calculation comprises the following steps:
[0032] Pick multiple points randomly on the track surface, and select three points with larger spacing, p1(x1,y1,z1), p2(x2,y2,z2), and p3(x3,y3,z3). The remaining points are: n (x n ,y n ,z n );
[0033] Calculate the normal vector composed of the three points as follows:
[0034]
[0035] Substitute the coordinates of one point to solve the unknown number d, as follows:
[0036] d=0-a×x1-b×y1-c×z1
[0037] The equation of the plane formed by the three points is obtained as follows:
[0038] ax+by+cz+d=0
[0039] Calculate the distance from the remaining points to this plane as follows:
[0040]
[0041] Among them, a, b, c are normal vector coefficients, and the three are not zero at the same time; i, j, k are unit vectors in the positive direction of the x-axis, the positive direction of the y-axis, and the positive direction of the z-axis respectively.
[0042] The present application also provides a digital twin generation system based on images and point clouds, including: a two-dimensional image data processing module, a point cloud data processing module and a digital twin model generation module:
[0043] The two-dimensional image data processing module is used to collect drone image data and coordinate data, perform aerial triangulation based on the drone image data and the coordinate data, and reconstruct and generate color point cloud data;
[0044] The point cloud data processing module is used to collect laser radar point cloud data, and process the color point cloud data and the laser radar point cloud data to obtain processed data;
[0045] The digital twin model generation module is used to perform data fusion on the processed data to generate a digital twin maglev track model.
[0046] The beneficial effects of this application are:
[0047] The present application can fuse image point cloud data based on the complementarity of their characteristics, and the generated magnetic levitation track model has a good fitting effect. The software operation steps are simple, and each of its application subsystems can be used as an independent application method. At the same time, it provides a two-dimensional image data processing module, a point cloud data processing module, and a digital twin model generation module. The modules have good independence, and each module can work as an independent system. The processing steps of the point cloud data processing module are simple, easy to operate, and the data processing effect is very good. The model error of the digital twin model generation module can be clearly expressed, and the error range meets the requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solution of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0049] Figure 1 A schematic diagram of a process of generating a digital twin based on images and point clouds according to an embodiment of the present application;
[0050] Figure 2 This is a flow chart of step S1 of the embodiment of the present application;
[0051] Figure 3 This is a flow chart of step S2 of the embodiment of the present application;
[0052] Figure 4 This is a flow chart of step S3 of the embodiment of the present application;
[0053] Figure 5 This is a structural schematic diagram of a digital twin generation system based on images and point clouds according to an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0055] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0056] Embodiment 1
[0057] In this embodiment 1, if Figure 1 As shown, a method for generating digital twins based on images and point clouds includes the following steps:
[0058] S1. Collect drone image data and coordinate data, perform aerial triangulation based on the drone image data and coordinate data, and reconstruct and generate color point cloud data.
[0059] Specifically, the method includes: performing oblique photogrammetry on a drone to obtain the drone image data; performing multiple aerial triangulations on the drone image data to obtain sparse point cloud data; performing model reconstruction based on the sparse point cloud data to obtain a three-dimensional model; and exporting and generating the color point cloud data based on the three-dimensional model.
[0060] In the first embodiment, the two-dimensional image data and position coordinate information of the oblique photography are used, such as Figure 2 As shown, through the context capture software, the aerial triangulation process is performed multiple times, and finally a sparse point cloud is generated, which can provide feature points that are easy to detect and match. It can be understood from the embodiment that the coordinates of the model feature points are consistent with the overall trend of the track, and the initial trend of the model is good; next, this embodiment undergoes a block operation during the reconstruction process, and sets filling methods such as holes, colors, and textures; finally, a three-dimensional model including only two-dimensional image data is reconstructed, and the reconstructed three-dimensional model can be exported to generate color point cloud data.
[0061] S2. Collect laser radar point cloud data, and process the color point cloud data and the laser radar point cloud data to obtain processed data.
[0062] The processing method specifically includes: based on color point cloud data and lidar point cloud data, extracting the first point cloud data that needs to be fused; removing redundant point clouds in the first point cloud data to obtain second point cloud data; using a variety of different filtering algorithms to filter the second point cloud data to obtain filtered data; and performing data registration on the filtered data to obtain processed data.
[0063] In this embodiment 1, Figure 3 As shown in FIG. 1 , the cloud compare software is used to process the above-mentioned color point cloud data and the three-dimensional point cloud data obtained by the laser radar scanning, and the part of the point cloud data that needs to be fused is extracted from the entire magnetic levitation track point cloud data to obtain the first point cloud data; according to the characteristics of the track model, other point clouds on both sides of the track are cut off, such as arch bridges, rivers, street lights and other long-distance obstacles; then the obstacles around the track that are difficult to separate, such as shrubs and street lights, are finely segmented to obtain the second point cloud data; the second point cloud data is subjected to data filtering processing, and the three methods of bilateral filtering, point cloud ground point filtering (CSF) algorithm and gradient filtering are used in sequence, and the maximum number of iterations, grid size, filtering threshold, spatial standard deviation and other physical parameters are set. Through software operation, multi-layer filtering can be achieved to obtain filtered data; the iterative closest point algorithm (ICP) algorithm is used for data registration, and the registration object is the filtered data; the color point cloud coordinates in the filtered data are set to P = {p1, p2...p n}, the laser point cloud coordinates in the filtered data are Q = {q1, q2...q n}, where the coordinates of P and Q correspond to the coordinate systems before and after the movement, respectively, and the minimization objective function is set as follows:
[0064]
[0065] The solution of R and t can be solved by singular value decomposition and other methods; the two point clouds after data registration can clearly understand the advantages and disadvantages of each data. In this embodiment, due to the reasons such as equipment data collection, the data quality of the laser point cloud data below and on the side of the track is higher, while the opposite is true above the track, while the data quality of the color point cloud data above and on the side of the track is higher, while the data quality below the track is poor. Therefore, based on this data feature, we complementarily screen the color point cloud and laser point cloud data to obtain the final two sets of point cloud data, and finally merge the two to complete the entire process of data processing.
[0066] S3. Perform data fusion on the processed data to generate a digital twin maglev track model.
[0067] The data fusion method specifically includes: calculating the normal vectors of the color point cloud and the laser point cloud in the processed data; using the least squares fitting plane algorithm to adjust the direction of the point cloud normal through the minimum cost spanning tree and perform Poisson surface reconstruction to generate a digital twin model; calculating the flatness of the digital twin model to obtain a digital twin maglev track model.
[0068] The calculation of flatness includes the following steps:
[0069] Pick multiple points randomly on the track surface, and select three points with larger spacing: p1(x1,y1,z1), p2(x2,y2,z2), p3(x3,y3,z3), and the remaining points are: pn(xn,yn,zn);
[0070] Calculate the normal vector composed of the three points as follows:
[0071]
[0072] Substitute the coordinates of one point to solve the unknown number d, as follows:
[0073] d=0-a×x1-b×y1-c×z1
[0074] The equation of the plane formed by the three points is obtained as follows:
[0075] ax+by+cz+d=0
[0076] Calculate the distance from the remaining points to this plane as follows:
[0077]
[0078] Among them, a, b, c are normal vector coefficients, and the three are not zero at the same time; i, j, k are unit vectors in the positive direction of the x-axis, the positive direction of the y-axis, and the positive direction of the z-axis respectively.
[0079] In this embodiment 1, Figure 4 As shown, firstly, the cloud compare software is used to calculate the normal vectors of the merged color point cloud and laser point cloud; the least squares plane fitting algorithm is used, and the direction of the point cloud normal is adjusted through the minimum cost spanning tree, so that the color point cloud and laser point cloud data can be reconstructed for Poisson surface and a preliminary digital twin model is generated; but the model at this time is not optimistic enough, because the system default parameters are inconsistent with the target model requirements, and then, the appropriate octree depth parameter value is selected as the optimal state value (here 12 is selected as the appropriate value), where the larger the octree depth parameter (that is, the deeper the depth), the better the result, but it also requires more running time and memory; the boundary setting is changed from the system default to the Dirichlet method to avoid errors in calculating the boundary normal vector.
[0080] Embodiment 2
[0081] In the second embodiment, Figure 5 As shown, a digital twin generation system based on image and point cloud includes: a two-dimensional image data processing module, a point cloud data processing module and a digital twin model generation module:
[0082] The two-dimensional image data processing module is used to collect drone image data and coordinate data, perform aerial triangulation based on the drone image data and coordinate data, and reconstruct and generate color point cloud data; in the second embodiment, the two-dimensional image data of oblique photography and its position coordinate information are used, and the context capture software is used to perform multiple aerial triangulation processes, and finally a sparse point cloud is generated, which can provide feature points that are easy to detect and match. It can be seen from the embodiment that the coordinates of the model feature points are consistent with the overall trend of the track, and the initial trend of the model is good; next, this embodiment undergoes a block operation during the reconstruction process, and sets filling methods such as holes, colors, and textures; finally, a three-dimensional model including only the two-dimensional image data is reconstructed, and the reconstructed three-dimensional model can be exported to generate color point cloud data.
[0083] The point cloud data processing module is used to collect laser radar point cloud data and process the color point cloud data and laser radar point cloud data to obtain processed data; in this embodiment 2, the cloud is used The compare software processes the above-mentioned color point cloud data and the three-dimensional point cloud data obtained by laser radar scanning, extracts the part of point cloud data that needs to be fused from the entire magnetic levitation track point cloud data, and obtains the first point cloud data; according to the characteristics of the track model, other point clouds on both sides of the track are cut off, such as arch bridges, rivers, street lights and other long-distance obstacles; then the obstacles around the track that are difficult to separate, such as shrubs and street lights, are finely segmented to obtain the second point cloud data; the second point cloud data is filtered, and the three methods of bilateral filtering, point cloud ground point filtering (CSF) algorithm and gradient filtering are used in sequence, and the maximum number of iterations, grid size, filtering threshold, spatial standard deviation and other physical parameters are set. Through software operation, multi-layer filtering can be achieved to obtain filtered data; the iterative closest point algorithm (ICP) algorithm is used for data registration, and the registration object is the filtered data; the color point cloud coordinates in the filtered data are set to P = {p1, p2...p n}, the laser point cloud coordinates in the filtered data are Q = {q1, q2...q n}, where the coordinates of P and Q correspond to the coordinate systems before and after the movement, respectively, and the minimization objective function is set as follows:
[0084]
[0085] The solution of R and t can be solved by singular value decomposition and other methods; the two point clouds after data registration can clearly understand the advantages and disadvantages of each data. In this embodiment, due to the reasons such as equipment data collection, the data quality of the laser point cloud data below and on the side of the track is higher, while the opposite is true above the track, while the data quality of the color point cloud data above and on the side of the track is higher, while the data quality below the track is poor. Therefore, based on this data feature, we complementarily screen the color point cloud and laser point cloud data to obtain the final two sets of point cloud data, and finally merge the two to complete the entire process of data processing.
[0086] The digital twin model generation module is used to perform data fusion on the processed data to generate a digital twin maglev track model. In the second embodiment, the flatness calculation includes the following steps:
[0087] Pick multiple points randomly on the track surface, and select three points with larger spacing: p1(x1,y1,z1), p2(x2,y2,z2), p3(x3,y3,z3), and the remaining points are: pn(xn,yn,zn);
[0088] Calculate the normal vector composed of the three points as follows:
[0089]
[0090] Substitute the coordinates of one point to solve the unknown number d, as follows:
[0091] d=0-a×x1-b×y1-c×z1
[0092] The equation of the plane formed by the three points is obtained as follows:
[0093] ax+by+cz+d=0
[0094] Calculate the distance from the remaining points to this plane as follows:
[0095]
[0096] Among them, a, b, c are normal vector coefficients, and the three are not zero at the same time; i, j, k are unit vectors in the positive direction of the x-axis, the positive direction of the y-axis, and the positive direction of the z-axis respectively.
[0097] In the second embodiment, the cloud compare software is first used to calculate the normal vectors of the merged color point cloud and laser point cloud; the least squares plane fitting algorithm is used, and the direction of the point cloud normal is adjusted through the minimum cost spanning tree, so that the color point cloud and laser point cloud data can be reconstructed for Poisson surface, and a preliminary digital twin model is generated; but the model at this time is not optimistic enough, because the system default parameters are inconsistent with the target model requirements, and then, a suitable octree depth parameter value is selected as the optimal state value (here 12 is selected as a suitable value), where the larger the octree depth parameter (that is, the deeper the depth), the better the result, but it also requires more running time and memory; the boundary setting is changed from the system default to the Dirichlet method to avoid errors in calculating the boundary normal vector.
[0098] The embodiments described above are only descriptions of the preferred methods of the present application, and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the scope of protection determined by the claims of the present application.
Claims
1. A digital twin generation method based on image and point cloud, characterized in that: The following steps are involved: S1. Collecting drone image data and coordinate data, performing aerial triangulation based on the drone image data and the coordinate data, and reconstructing and generating color point cloud data; S2. Collecting laser radar point cloud data, and processing the color point cloud data and the laser radar point cloud data to obtain processed data; In S2, the processing method includes: Extracting first point cloud data requiring data fusion based on the color point cloud data and the laser radar point cloud data; Eliminating redundant point clouds in the first point cloud data to obtain second point cloud data; The second point cloud data is subjected to data filtering to obtain filtered data; Performing data registration on the filtered data to obtain the processed data; The data registration method comprises: Set the color point cloud coordinates in the filtered data to P = {p1, p2...p n }, the laser point cloud coordinates in the filtered data are Q = {q1, q2...q n }, based on the setting, the objective function to be minimized is as follows: Based on the minimized objective function, registering the filtered data to obtain processed data; S3. Perform data fusion on the processed data to generate a digital twin maglev track model.
2. The method for generating digital twins based on images and point clouds according to claim 1, characterized in that: In S1, the color point cloud data generation method includes: Using a drone to perform oblique photogrammetry to obtain the drone image data; Performing multiple aerial triangulations on the drone image data to obtain sparse point cloud data; Reconstructing a model based on the sparse point cloud data to obtain a three-dimensional model; Based on the three-dimensional model, the color point cloud data is derived and generated.
3. The method for generating digital twins based on images and point clouds according to claim 1, characterized in that: The data filtering method comprises: The second point cloud data is subjected to data filtering processing, and three methods, namely bilateral filtering, point cloud ground point filtering algorithm and gradient filtering method, are applied successively. By setting the maximum number of iterations, grid size, filtering threshold and spatial standard deviation, multi-layer filtering is completed to obtain the filtered data.
4. The method for generating digital twins based on images and point clouds according to claim 1, characterized in that: In S3, the data fusion method includes: Calculating normal vectors of the color point cloud and the laser point cloud in the processed data; Use the least squares plane fitting algorithm to adjust the direction of the point cloud normal through the minimum cost spanning tree and perform Poisson surface reconstruction to generate a digital twin model; The flatness of the digital twin model is calculated to obtain the digital twin maglev track model.
5. The method for generating digital twins based on images and point clouds according to claim 4, characterized in that: The flatness calculation comprises the following steps: Pick multiple points randomly on the track surface, and select three points p1(x1,y1,z1), p2(x2,y2,z2), p3(x3,y3,z3), and the remaining points are: p n (x n ,y n ,z n ); Calculate the normal vector composed of the three points as follows: Substitute the coordinates of one point to solve the unknown number d, as follows: d=0-a×x1-b×y1-c×z1 The equation of the plane formed by the three points is obtained as follows: ax+by+cz+d=0 Calculate the distance from the remaining points to this plane as follows: Among them, a, b, c are normal vector coefficients, and the three are not zero at the same time; i, j, k are unit vectors in the positive direction of the x-axis, the positive direction of the y-axis, and the positive direction of the z-axis respectively.
6. A digital twin generation system based on images and point clouds, the generation system applying the generation method according to any one of claims 1 to 5, characterized in that: include: Two-dimensional image data processing module, point cloud data processing module and digital twin model generation module: The two-dimensional image data processing module is used to collect drone image data and coordinate data, perform aerial triangulation based on the drone image data and the coordinate data, and reconstruct and generate color point cloud data; The point cloud data processing module is used to collect laser radar point cloud data, and process the color point cloud data and the laser radar point cloud data to obtain processed data; The digital twin model generation module is used to perform data fusion on the processed data to generate a digital twin maglev track model.
Citation Information
Patent Citations
Real-time three-dimensional modeling method and real-time three-dimensional modeling systems based on the aerial-photographing image data of unmanned aerial vehicle
CN107341851A
Railway business line three-dimensional center line manufacturing method based on point cloud and image fusion technology
CN111429498A
Three-dimensional modeling method for intelligent substation
CN114741768A
Crowd evacuation system based on real time perception, simulation, and warning
US11417106B1
