Large-scale three-dimensional model lightweight reconstruction method and system

Extracting and filtering 3D point cloud data through the image semantic segmentation network and point cloud registration algorithm, combined with the feature extraction network to reconstruct the building model, solves the problems of slow reconstruction speed and high computing power in the existing technology, and achieves efficient 3D Model reconstruction.

CN118736099APending Publication Date: 2024-10-01SICHUAN JIANSHAN TECH CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202310309057.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing building model reconstruction technology based on two-dimensional image data and three-dimensional point cloud data requires high computing power and slow reconstruction speed, and cannot meet the actual needs of virtual city planning and design.

Method used

The image semantic segmentation network is used to extract the outer contour features of the three-dimensional model, and the point cloud registration algorithm is used to match the outer contour features and the three-dimensional point cloud data. The lightweight three-dimensional point cloud data is screened out, and the feature extraction network is used for reconstruction.

Benefits of technology

It achieves improved modeling speed and reduced computing power requirements while ensuring model accuracy and accuracy, and is suitable for 3D model reconstruction of city-level large-scale point cloud data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736099A_ABST
    Figure CN118736099A_ABST
Patent Text Reader

Abstract

The invention provides a large-scale three-dimensional model lightweight reconstruction method and system. The method comprises the following steps: based on two-dimensional image data of a three-dimensional model, extracting outer contour features of the three-dimensional model by using an image semantic segmentation network; based on the outer contour features, screening the three-dimensional point cloud data of the three-dimensional model to obtain lightweight three-dimensional point cloud data; and based on the lightweight three-dimensional point cloud data, reconstructing the three-dimensional model. According to the method, the three-dimensional model point cloud data in the city-level large-scale point cloud data can be extracted with small computing power, the contour information of the reconstructed three-dimensional model is enriched, and the modeling speed is improved on the premise of ensuring the accuracy and precision of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of computer vision, and in particular, to a method and system for lightweight reconstruction of large-scale three-dimensional models. Background Art

[0002] With the continuous advancement of the construction of digital earth, smart cities, and digital twin cities, the accuracy and precision of traditional building models reconstructed based on two-dimensional image data and three-dimensional point cloud data can no longer meet the needs of various fields for urban buildings. Building reconstruction technology combining multi-source data can accurately reconstruct building models, but this method requires extremely high computing power and has a slow reconstruction speed, which can no longer meet the actual application needs of virtual city planning and design. How to reconstruct building models through effective and efficient methods has become a hot topic in industry research.

[0003] As the basic data that carries digital technology, three-dimensional building models have become important research directions in terms of what technical means to use to process large-scale source data, what modeling methods to use to achieve three-dimensional reconstruction, and what methods to use to effectively and efficiently reconstruct building models. Summary of the invention

[0004] The present disclosure provides a method and system for lightweight reconstruction of large-scale three-dimensional models, as well as an electronic device and a computer-readable storage medium, so as to at least solve the problems in the above-mentioned related technologies, or may not solve any of the above-mentioned problems.

[0005] According to a first aspect of an embodiment of the present disclosure, a three-dimensional model reconstruction system is provided, and the system may include: an outer contour extraction module, configured to extract outer contour features of the three-dimensional model based on two-dimensional image data of the three-dimensional model using an image semantic segmentation network; a lightweight module, configured to filter three-dimensional point cloud data of the three-dimensional model based on the outer contour features to obtain lightweight three-dimensional point cloud data; and a reconstruction module, configured to reconstruct the three-dimensional model based on the lightweight three-dimensional point cloud data.

[0006] Optionally, the encoder of the image semantic segmentation model may have at least four n×n convolutional layers, and an adaptive activation function may be used in each of the at least four convolutional layers, where n>1.

[0007] Optionally, the encoder of the image semantic segmentation model may include at least two encoders, and the outer contour extraction module may be configured to: input the two-dimensional image data into the at least two encoders of the image semantic segmentation model respectively, obtain at least two valid feature layers respectively, and input the at least two valid feature layers into the decoder of the image semantic segmentation model.

[0008] Optionally, the convolution layers of the at least two encoders may be different, and the convolution rates of the at least four convolution layers of each of the at least two encoders may be different.

[0009] Optionally, the image semantic segmentation model can be trained in the following manner: inputting a training set of building image data into the image semantic segmentation model to obtain a model output; using a cross entropy loss function to determine the loss between the model output and the true label; determining the gradient of the loss with respect to the model parameters of the image semantic segmentation model based on automatic differentiation technology, and updating the model parameters using a gradient descent method.

[0010] Optionally, the lightweight module can be configured to: add annotations to the outer contour features and the three-dimensional point cloud data respectively; use a point cloud registration algorithm to match the annotated outer contour features and the three-dimensional point cloud data; determine the point cloud data filtering interval based on the outer contour features by matching the outer contour features and the three-dimensional point cloud data; and perform lightweight processing on the three-dimensional point cloud data based on the point cloud data filtering interval.

[0011] Optionally, the lightweight module can be configured to match the annotated outer contour features and the three-dimensional point cloud data using a point cloud registration algorithm in the following manner: selecting feature points of the outer contour features as reference points for registration; and matching representative feature points of the three-dimensional point cloud data selected from the three-dimensional point cloud data based on the reference points.

[0012] Optionally, the lightweight module can be configured to match representative feature points of the three-dimensional point cloud data selected from the three-dimensional point cloud data in the following manner: first match the representative feature points that are a first distance away from the reference point, and then match the representative feature points that are a second distance away from the reference point, wherein the first distance may be smaller than the second distance.

[0013] Optionally, the lightweight module can be configured to determine the point cloud data filtering interval based on the outer contour feature by matching the outer contour feature and the three-dimensional point cloud data in the following manner: using the outer contour feature to determine the position of the observation point; projecting multiple rays starting from the observation point onto the surface of the three-dimensional model to determine the point cloud data filtering interval.

[0014] Optionally, the lightweight module may be configured to perform lightweight processing on the three-dimensional point cloud data based on the point cloud data screening interval in the following manner: using a point cloud filtering algorithm to process the three-dimensional point cloud data of the building within the point cloud data screening interval.

[0015] Optionally, the reconstruction module can be configured to: input the lightweight three-dimensional point cloud data into a feature extraction network to extract features of m categories; for the features of the m categories, respectively encode local geometric features of the points of the features of the m categories according to their respective neighbor thresholds to reconstruct the three-dimensional model, wherein the neighbor threshold can represent the maximum distance between the encoded point and its neighboring points.

[0016] Optionally, the reconstruction module can be configured to encode local geometric features of the points of the features of the m categories according to their respective nearest neighbor thresholds in the following manner: classify the features of the m categories to obtain features of n levels, where n≤m; set n nearest neighbor thresholds corresponding to the n levels respectively; and encode local geometric features of the points of the features of the n levels according to their respective nearest neighbor thresholds.

[0017] Optionally, the reconstruction module can also be configured to: input the local geometric features of each point into a fully connected layer to obtain a first feature vector; project the intermediate feature vector into query, key and value spaces to obtain a query vector, key vector and value vector of the first feature vector; determine an attention weight based on the query vector and the key vector; apply the attention weight to the value vector to obtain an enhanced second feature vector.

[0018] Optionally, the reconstruction module may be further configured to: convert the enhanced second eigenvector into a eigenvector image; apply a Gaussian filter to the eigenvector image; and convert the filtered eigenvector image into a third eigenvector.

[0019] Optionally, the reconstruction module can also be configured to: use a fully connected layer to classify and regress the third eigenvector to obtain classification labels and coordinate values ​​of points corresponding to the third eigenvector to reconstruct the three-dimensional model.

[0020] Optionally, the feature extraction network may be a feature extraction convolutional neural network based on a point cloud hierarchical aggregation network PointNet++.

[0021] Optionally, the feature extraction convolutional neural network based on PointNet++ may include: a local feature pooling module, used to pool local features of the point cloud data; a hierarchical feature learning module including multiple nested feature learning layers, wherein each layer of the multiple nested feature learning layers performs feature learning and feature extraction operations on the point cloud data; and a multi-scale feature fusion module, used to fuse features of different scales obtained from the hierarchical feature learning module.

[0022] According to a second aspect of an embodiment of the present disclosure, a three-dimensional model reconstruction method is provided, which may include: based on the two-dimensional image data of the three-dimensional model, using an image semantic segmentation network to extract the outer contour features of the three-dimensional model; based on the outer contour features, screening the three-dimensional point cloud data of the three-dimensional model to obtain lightweight three-dimensional point cloud data; based on the lightweight three-dimensional point cloud data, reconstructing the three-dimensional model.

[0023] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, which may include: at least one processor; and at least one memory storing computer-executable instructions, wherein the computer-executable instructions, when executed by at least one of the processors, prompt at least one of the processors to execute the three-dimensional model reconstruction method.

[0024] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium storing instructions is provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the three-dimensional model reconstruction method.

[0025] According to the embodiments of the present disclosure, it is possible to extract three-dimensional model point cloud data from large-scale city-level point cloud data with less computing power, enrich the contour information of the reconstructed three-dimensional model, and improve the modeling speed while ensuring the accuracy and precision of the model.

[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a schematic block diagram showing a system for lightweight reconstruction of a large-scale three-dimensional model according to an example embodiment of the present disclosure;

[0028] Figure 2 is a schematic diagram showing an example structure of an image semantic segmentation model according to an example embodiment of the present disclosure;

[0029] Figure 3 is a diagram showing the effect of obtaining an outer contour feature based on two-dimensional image data according to an exemplary embodiment of the present disclosure;

[0030] Figure 4 is a comparison diagram showing lightweighting of point cloud data according to an example embodiment of the present disclosure;

[0031] Figure 5 is a flowchart illustrating a method for lightweight reconstruction of a large-scale three-dimensional model according to an exemplary embodiment of the present disclosure; and

[0032] Figure 6is a schematic block diagram illustrating an electronic device according to an example embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0035] It should be noted that “at least one of the several items” appearing in the present disclosure refers to three types of parallel situations: “any one of the several items”, “a combination of any multiple of the several items”, and “all of the several items”. For example, “including at least one of A and B” includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is “executing at least one of step one and step two”, which means the following three parallel situations: (1) executing step one; (2) executing step two; (3) executing step one and step two. “A and / or B” and “A and / or B” appearing in the present disclosure refer to the following three parallel situations: only A; only B; both A and B.

[0036] The methods of building three-dimensional modeling can be divided into methods based on manual modeling, image-based building surface reconstruction, point cloud-based building modeling, and building modeling based on the combination of multi-source data. The manual modeling method uses specific software to perform manual modeling based on the parameters of the building or the building vector map. The model constructed by this method has high accuracy, but requires a lot of manpower and material resources to collect and measure the building parameters or vector maps, and also requires professionals to use professional software for modeling. This method has high modeling cost and low efficiency, and is not suitable for large-scale building modeling in urban scenes. Image-based surface reconstruction generally uses drone oblique images as the data source, performs aerial triangulation, image dense matching, and point cloud surface mesh construction on the image to form a mesh model of the scene, and then uses dynamic rendering, vector cutting, ID identification and other monomerization technologies to extract the building mesh model from the mesh model of the scene. This method is low-cost and can quickly build a model of a large-scale scene, but the constructed model will have jagged edges and is not smooth enough, and dynamic rendering and ID identification do not really extract the building model, and regional updates cannot be performed. Point cloud-based building modeling uses point cloud as the data source, first classifies the point cloud, extracts the building point cloud, and then uses various algorithms to perform geometric modeling on the building. The model constructed by this method has high accuracy, high degree of construction automation, and small amount of model data, but the single modeling method based on point cloud has low model robustness, and the group modeling method cannot perform fine modeling. The building modeling method based on multi-source data integration integrates multiple data to solve the limitation of single data modeling, greatly improves the model accuracy, precision and reconstruction speed, and also solves the problem of reconstruction accuracy of large-scale group buildings. However, the building modeling method based on multi-source data integration requires a huge amount of data and does not give full play to the advantages of each data source.

[0037] In order to construct urban building models at a low cost, efficiently and accurately, and meet the requirements of digital earth, smart city, smart transportation, etc. for building models, and taking into account the disordered and discrete structure of massive point cloud data at the city level, the data cannot carry high-precision three-dimensional spatial information while taking into account more detailed boundary information. High-precision image data has clearer object boundary features, which can be used to specifically extract point cloud data of buildings. Therefore, the respective advantages of point cloud data and high-precision image data can be fully utilized.

[0038] Figure 1 is a schematic block diagram showing a system for lightweight reconstruction of a large-scale three-dimensional model according to an example embodiment of the present disclosure.

[0039] The system 100 may include an outer contour extraction module 110, a lightweight module 120, and a reconstruction module 130. The system 100 may be installed in various electronic devices to realize lightweight reconstruction of large-scale three-dimensional models, or various modules in the system 400 may realize corresponding functions in a separate manner, or the system 400 may be distributed online or in the cloud for users to use.

[0040] The outer contour extraction module 110 can be configured to extract the outer contour features of the three-dimensional model based on the two-dimensional image data of the three-dimensional model using an image semantic segmentation network. The two-dimensional image data can be remote sensing image data. For example, the resolution of the remote sensing image data can be 3000×4000 pixels. In the present disclosure, the remote sensing image data can be preprocessed to adjust the size of the remote sensing image data. For example, the remote sensing image data can be preprocessed to adjust the image size to 512×512 pixels. In this way, the calculation speed can be accelerated, and the memory and calculation burden caused by the large image size can also be reduced.

[0041] In addition, the two-dimensional image data can also be subjected to image denoising to improve the segmentation effect and the accuracy of contour features. Some image denoising algorithms can be used, such as median filtering, mean filtering, Gaussian filtering, etc.

[0042] In addition, the two-dimensional image data can also be enhanced to make the three-dimensional model contour in the image clearer and more obvious, which is conducive to the subsequent image semantic segmentation processing. Image enhancement methods such as histogram equalization and grayscale stretching can be used.

[0043] In addition, the two-dimensional image data can also be converted to a color space. Before image segmentation, the image is converted from the RGB space to other color spaces, such as HSV (hue, saturation, brightness), Lab (device-independent color space), etc., which can make the color information of the image more accurate and rich.

[0044] However, those skilled in the art should understand that the preprocessing operations on the two-dimensional image data are not limited to the above operations. For example, other preprocessing operations such as image rotation and cropping can also be performed on the two-dimensional image data to adapt to the model's requirements for input data.

[0045] The two-dimensional image data can be input into the image semantic segmentation model to obtain the outer contour features of the three-dimensional model in the two-dimensional image data. As an example only, the image semantic segmentation model can be a DeepLabV3+ network. Compared with DeepLabV3, the improvement of DeepLabV3+ is mainly reflected in the decoder module. By introducing feature pyramid pooling and encoder-decoder structure, the model can handle objects of different scales and sizes while maintaining a high segmentation accuracy.

[0046] In an exemplary embodiment of the present disclosure, the encoder of the image semantic segmentation model may have at least four n×n convolutional layers, and an adaptive activation function may be used in each of the at least four convolutional layers, where n>1. In addition, the encoder of the image semantic segmentation model may include at least two encoders.

[0047] Figure 2 is a schematic diagram showing an example structure of an image semantic segmentation model according to an example embodiment of the present disclosure.

[0048] like Figure 2 As shown, the encoder of the image semantic segmentation model has four n×n convolutional layers and includes two left and right encoders. The convolutional layers of the two encoders are different, for example, one is 3×3 and the other is 5×5. The convolution rates of the four convolutional layers of each encoder are different, for example, in the left encoder, the convolution rates are 3, 6, 12 and 18 respectively. However, those skilled in the art should understand that Figure 2 The structure shown is only an example. For example, the encoder of the image semantic segmentation model may also include three or four encoders. The encoder of the image semantic segmentation model may have five, six or seven n×n convolutional layers. The convolutional layer can also be 7×7 or 9×9, etc. The convolution rate of each encoder can also be other values.

[0049] like Figure 2 As shown, the two-dimensional image data can be input into at least two encoders of the image semantic segmentation model respectively to obtain at least two effective feature layers respectively, and the at least two effective feature layers can be input into the decoder of the image semantic segmentation model to obtain the outer contour features of the three-dimensional model in the two-dimensional image data.

[0050] In the encoder module, for example, an image of size 512×512 can be sent to the encoders of different convolutional layers on the left and right sides for learning. An adaptive activation function can be used in the convolutional layer, and four dilated convolutions and pooling layers with different convolution rates are used in parallel to extract the preliminary effective feature layer. The extracted features are merged separately, and then 1×1 convolution compression is performed to obtain an enhanced feature layer.

[0051] In the decoder module, the feature layer compressed twice can be used to adjust the number of channels using 1×1 convolution, and then stacked with the upsampling result of the enhanced feature layer after the hole convolution and performed two depth-separable convolutions to obtain a final effective feature layer. Finally, 3×3 convolution is used to adjust the channels and upsample to obtain the outer contour features of the three-dimensional model in the two-dimensional image data.

[0052] Figure 3 1 is a diagram showing the effect of obtaining outer contour features based on two-dimensional image data according to an exemplary embodiment of the present disclosure. The left side diagram shows a two-dimensional image, and the right side diagram shows the extracted outer contour features.

[0053] In addition, before the two-dimensional image data is input into the image semantic segmentation model, the image semantic segmentation model needs to be trained. As an example, the image semantic segmentation model can be trained in the following manner: input the building image data training set into the image semantic segmentation model to obtain the model output; use the cross entropy loss function to determine the loss between the model output and the true label; determine the gradient of the loss with respect to the model parameters of the image semantic segmentation model based on the automatic differentiation technology, and use the gradient descent method to update the model parameters.

[0054] Specifically, first, the images and corresponding labels in the building image dataset can be input into the image semantic segmentation model as a training set. The model will output the corresponding pixel-level semantic segmentation results based on the input image data, that is, each pixel point is assigned to a different semantic category. The cross entropy loss function can be used to calculate the difference between the model output result and the true label. The cross entropy loss function is a loss function that measures the difference in classification results in classification problems, and can measure the distance between the predicted results and the true results. Based on the automatic differentiation technology, the gradient of the loss function to the model parameters can be calculated. Automatic differentiation technology can automatically calculate the gradient through the calculation graph and the chain rule, without the need to manually derive and write the gradient calculation code, which greatly simplifies the model training process. Finally, the gradient descent method is used to update the model parameters to minimize the loss function. The gradient descent method is an optimization algorithm that can gradually converge the loss function to the minimum value by calculating the gradient direction and updating the parameters in this direction, so that the model can better fit the training set data. This process will be iterated many times until the preset stop condition is reached or convergence occurs.

[0055] In addition to the cross entropy loss function, other methods can be used to calculate the loss between the model output and the true label. For example, the Euclidean distance loss function (L2 Loss) can be used, which is a commonly used loss function in regression problems to calculate the Euclidean distance between the predicted value and the true value. For the image semantic segmentation task, L2 Loss can be converted into the average Euclidean distance at the pixel level as a loss function. For example, the pixel-wise cross-entropy loss function can be used, which is a pixel-level cross-entropy loss function used to calculate the classification loss of each pixel, that is, each pixel is used as a separate sample to calculate the cross entropy loss. For example, the quadratic approximation loss function can be used, which is a loss function based on quadratic approximation to accelerate the training speed of the image semantic segmentation model. It is an approximate loss function that can replace the cross entropy loss function to a certain extent, while having faster convergence speed and better robustness. For example, the augmented loss function can be used, which is an enhanced version of the cross entropy loss function. By introducing additional information at the pixel level, such as edge information, spatial constraints, etc., the accuracy and robustness of the model can be improved.

[0056] In addition, an adaptive learning rate algorithm can also be used to determine the gradient of the loss with respect to the model parameters and update the model parameters. An adaptive learning rate algorithm refers to an optimization algorithm that dynamically adjusts the learning rate, and can adjust the learning rate based on the historical information of the gradient. Among them, commonly used adaptive learning rate algorithms include AdaGrad, RMSprop, and Adam. Taking Adam as an example, it is an adaptive learning rate algorithm based on momentum gradient descent and RMSprop. In each iterative step, the Adam algorithm calculates the exponentially weighted average of the gradient (momentum term) and the exponentially weighted average of the square of the gradient, which are used to adjust the direction and size of the parameter update, respectively. Specifically, the update formula of the Adam algorithm is as follows:

[0057] m t =β 1 m t-1 +(1-β 1 ) t

[0058]

[0059]

[0060]

[0061]

[0062] Among them, m t and v t They represent the exponentially weighted average of the gradient and the exponentially weighted average of the square of the gradient at step t, respectively. and m t and v t The bias correction term, β 1 and β 2 is the decay coefficient, usually 0.9 and 0.999, η is the initial learning rate. ∈ is a decimal to avoid division by 0.

[0063] At each iteration step, the Adam algorithm calculates the exponentially weighted average m of the gradients t and the exponentially weighted average of the squared gradient v t , and then obtain m through the bias correction term t and v t An unbiased estimate of and Finally, according to the learning rate and m t and The square root of the parameter θ is used to update t+1 .

[0064] Compared with the gradient descent method, the Adam algorithm has faster convergence speed and better performance, and is especially suitable for the optimization of large-scale models such as deep neural networks.

[0065] In addition, a variational inference algorithm can be used to determine the gradient of the loss with respect to the model parameters and update the model parameters. Specifically, a reasonable variational interpretation can be established, that is, to determine the parameter expression of the joint distribution, use the variational descent method (VB) to minimize the KL divergence of the joint distribution to update the parameters, and use the variational inference algorithm to calculate the gradient of the loss function with respect to the model parameters, that is, to obtain the gradient by calculating the automatic differentiation of the parameters, and use the gradient descent method to update the model parameters.

[0066] Those skilled in the art should understand that the above-mentioned method of determining the gradient of the loss with respect to the model parameters and updating the model parameters is not limited thereto. For example, the stochastic gradient descent method, the momentum gradient descent method, the conjugate gradient method, the back propagation algorithm, etc. may also be used to determine the gradient of the loss with respect to the model parameters and update the model parameters.

[0067] After the outer contour feature is extracted by the outer contour extraction module, the lightweight module 120 may filter the three-dimensional point cloud data of the three-dimensional model based on the outer contour feature to obtain lightweight three-dimensional point cloud data.

[0068] In the present disclosure, annotations can be added to the outer contour features and the three-dimensional point cloud data respectively. Annotations can be added to the outer contour features, that is, a unique identifier is added to each contour data point for subsequent matching. The three-dimensional point cloud data can be annotated. Since the point cloud data has the original spatial position information, the annotation can be batch annotated using a point cloud clustering algorithm (e.g., a distance-based clustering algorithm, a density-based clustering algorithm, etc.).

[0069] The annotated outer contour features and the three-dimensional point cloud data may be matched using a point cloud registration algorithm. Point cloud registration is the process of aligning two or more point cloud data sets. When matching the annotated outer contour features and the three-dimensional point cloud data, data preprocessing may be performed first. The annotated outer contour features and the three-dimensional point cloud data are preprocessed, such as removing noise points, filtering, and downsampling operations to reduce the amount of data and the influence of noise. The outer contour features usually have obvious geometric structures. It may be considered to select the feature points of the outer contour features as reference points for registration. Based on the reference points, the representative feature points of the three-dimensional point cloud data selected from the three-dimensional point cloud data are matched. When matching the representative feature points of the three-dimensional point cloud data selected from the three-dimensional point cloud data, a local matching strategy may be adopted to first match the representative feature points at a first distance from the reference point, and then match the representative feature points at a second distance from the reference point (the first distance is less than the second distance). In other words, adjacent points can be matched first, and then the matching range can be gradually expanded to finally complete the registration of the entire point cloud, thereby improving the accuracy and stability of the matching.

[0070] As an example, the point cloud registration algorithm Kabsch can be used. The Kabsch algorithm is a commonly used point cloud registration algorithm. Its basic idea is to calculate the rotation matrix and translation vector by minimizing the average distance between two sets of points.

[0071] In addition to the classic Kabsch algorithm, there are many other point cloud registration algorithms, for example, the ICP (Iterative Closest Point) algorithm is an iterative algorithm that aligns point clouds by minimizing the distance between two point clouds. The ICP algorithm is widely used in 3D reconstruction, robotics, computer-aided design, etc. For example, the NDT (Normal Distributions Transform) algorithm is a point cloud descriptor algorithm based on Gaussian distribution. By constructing a Gaussian grid, the point cloud is converted into a continuous probability distribution, and the point cloud is registered by minimizing the KL divergence.

[0072] In addition, the initial matching result of the point cloud registration algorithm can also be optimized based on a nonlinear minimization algorithm. As an example, the initial registration result can be optimized using the Levenberg-Marquardt algorithm to improve the accuracy and stability of the matching. In addition, other information, such as the contour line and texture of the building, can be combined to further improve the accuracy of the point cloud registration. For example, the contour line of the building and the point cloud data can be aligned, and then the point cloud data can be projected onto the contour line to further optimize the result of the point cloud registration.

[0073] The Macquart method is a commonly used nonlinear optimization algorithm that can be used to optimize the point cloud registration results. The basic idea is to adjust the parameters in an iterative way to minimize the objective function. For the point cloud registration problem, the objective function can be the sum of the squares of the distances between the two groups of points, that is:

[0074] min||Xp-Y||^2, where Xp represents the transformed point cloud and Y represents the reference point cloud.

[0075] The Macquart method requires an initial parameter vector as a starting point, and then the parameters are adjusted iteratively until the objective function is minimized. When implementing the Macquart method, existing optimization libraries or tools can be used, such as Ceres Solver, Eigen, etc. These tools have implemented the core part of the Macquart method, which can greatly reduce the amount of code and development time.

[0076] The point cloud data screening interval can be determined based on the outer contour feature by matching the outer contour feature with the three-dimensional point cloud data. In the present disclosure, the outer contour feature can be used to determine the position of the observation point, and multiple rays starting from the observation point are projected onto the three-dimensional model surface to determine the point cloud data screening interval.

[0077] The three-dimensional point cloud data can be lightly processed based on the point cloud data screening interval. In the present disclosure, a point cloud filtering algorithm can be used to process the three-dimensional point cloud data within the point cloud data screening interval. Optionally, the screening can be performed by traversing all points and determining whether the points are within the screening interval, or some point cloud processing libraries or software, such as PCL (Point Cloud Library) or CloudCompare, can be used for screening.

[0078] Figure 4 2 is a comparison diagram showing the lightweighting of point cloud data according to an example embodiment of the present disclosure. The left diagram is a diagram of point cloud data without lightweighting, and the right diagram is a diagram of point cloud data after lightweighting according to the present disclosure.

[0079] In addition, after the point cloud data is screened, some post-processing operations can be performed, such as meshing and fitting the screened point cloud data to obtain a more compact and regular model.

[0080] According to an example embodiment of the present disclosure, after obtaining lightweight three-dimensional point cloud data, the reconstruction module 130 may reconstruct the three-dimensional model based on the lightweight three-dimensional point cloud data.

[0081] The reconstruction module 130 can input the lightweight point cloud data into a feature extraction network to extract features of m categories. As an example only, based on the Delaunay triangulated surface reconstruction algorithm, a feature extraction convolutional neural network based on PointNet++ (point network++) can be used to extract features. PointNet++ is a deep learning architecture for processing point cloud data, which inputs point cloud data into a series of multi-layer network structures, which are composed of feature extraction layers, pooling layers and classification layers. In the feature extraction layer, convolution or fully connected networks are used to extract features of point cloud data, which represent the geometry, spatial relationship, etc. of point cloud data. The pooling layer is used to reduce the dimension of point cloud data, abstract features, and provide input for the classification layer. In the classification layer, the network will predict the category of point cloud data through a softmax layer (soft maximum function layer), and classify according to the prediction results. PointNet++ extracts features of point cloud data through a multi-layer network structure, and classifies point cloud data through a classification layer. By inputting point cloud data into the feature extraction network PointNet++, classified features can be obtained for classifying point cloud data.

[0082] PointNet++ is easily affected by the number of sample points when processing point cloud data, that is, when the number of points contained in the point cloud data changes, the performance and accuracy of the network may be affected.

[0083] In order to solve this problem, PointNet++ can be improved. A dynamic sampling method can be used to sample different amounts of point cloud data, so that the network can process any amount of point cloud data. This method can be achieved by adding a dynamic sampling module to the network so that the network can adaptively select the number of sampling points according to the size of the input point cloud data. A local feature pooling module can be added to the network to pool the local features of the point cloud data, so that the network has better robustness for different amounts of point cloud data. This method can be achieved by adding an adaptive pooling module to the network so that the network can adaptively select the size of the pooling area according to the size of the input point cloud data. A hierarchical feature learning module including multiple nested feature learning layers can also be added to the network. Each layer of the multiple nested feature learning layers performs feature learning and feature extraction operations on the point cloud data, so that the network has better adaptability and representation capabilities for different amounts of point cloud data. This method can be achieved by adding multiple layers of feature learning modules to the network so that the network can perform hierarchical processing and feature learning on point cloud data of different scales. A multi-scale feature fusion module can also be added to the network to fuse features of different scales obtained from the hierarchical feature learning module, so that the network has better robustness and representation capabilities for different amounts of point cloud data. This method can add a multi-scale feature fusion module to the network to fuse features of different scales, thereby obtaining a richer and more diverse point cloud feature representation.

[0084] However, those skilled in the art should understand that feature extraction networks such as Kd-Tree network, Radius network and Random Projection network can also be used to extract features from point cloud data. Kd-Tree network is a network that divides point cloud data into multiple subspaces, which can effectively reduce the time of feature search; Radius network extracts features from point cloud data according to a specified radius; Random Projection network is a random transformation that maps point cloud data to a low-dimensional space, thereby extracting features from point cloud data. In addition, other types of neural networks, such as residual networks, recurrent neural networks, etc., can also be used to extract features from point cloud data.

[0085] In the present disclosure, local geometric features may be encoded for the points of the m categories of features according to their respective nearest neighbor thresholds to reconstruct the three-dimensional model. According to an exemplary embodiment of the present disclosure, the m categories of features may be graded to obtain n (n≤m) levels of features, n nearest neighbor thresholds corresponding to the n levels are set, and local geometric features may be encoded for the points of the n levels of features according to their respective corresponding nearest neighbor thresholds.

[0086] Thus, richer local geometric information of the surface can be provided. Here, the neighbor threshold may represent the maximum distance between the encoded point and the neighboring points adjacent to the encoded point. For example, the features may be divided into different levels 1, 2, and 3 (for example, the concave and convex parts are level 1, the top features are level 2, and the wall plane information is level 3), and different neighbor thresholds are used for features of different levels (the higher the level, the smaller the neighbor threshold) to encode local geometric features for each point.

[0087] In the present disclosure, the K-nearest neighbor (KNN) algorithm can be used to calculate the K nearest neighbor points around each point of a certain level of feature, and the local geometric features are encoded by calculating the distance and direction between these points. In addition, an equivalent sphere can be used to detect the geometric shape formed by these points, and the area, volume, center of mass, radius and other features of the geometric shape can be calculated to encode the local geometric features. In addition, the curvature estimation method (CurvatureEstimation) can be used to estimate the curvature of the feature point, and the local geometric features can be encoded by the curvature estimation result.

[0088] Subsequently, the above-mentioned local geometric features can be enhanced to strengthen the feature expression capability. As an example only, the attention mechanism can be used for enhancement: the local geometric features of each point can be input into the fully connected layer to obtain a first feature vector; the intermediate feature vector is projected into the query, key, and value space to obtain the query vector, key vector, and value vector of the first feature vector; based on the query vector and the key vector, the attention weight is determined; and the attention weight is applied to the value vector to obtain an enhanced second feature vector. In addition, methods such as convolutional neural networks and batch normalization can also be used to improve the expressiveness and distinguishability of features.

[0089] After obtaining the enhanced second eigenvector, filtering can be performed to smooth the eigenvector and remove noise and unnecessary details. For example, the enhanced second eigenvector can be converted into an eigenvector image, a Gaussian filter is applied to the eigenvector image, and the filtered eigenvector image is converted into a third eigenvector. Gaussian filtering is a commonly used image filtering algorithm that can be applied to the filtering process of the enhanced eigenvector. First, a Gaussian filter can be defined. A Gaussian filter is a filter that can perform weighted averaging of pixel values, and its weight is calculated by a Gaussian function, and the Gaussian function is defined by a standard deviation (sigma) and a kernel size (kernelsize). Generally speaking, a larger standard deviation produces a smoother image, while a smaller standard deviation retains more details. Then, the eigenvector can be converted into an image. The eigenvector can be regarded as a vector, each element of which represents a feature. In order to facilitate the application of the Gaussian filter, the eigenvector can be converted into an image, that is, each element of the eigenvector is placed at a pixel position, thereby forming a two-dimensional matrix. Subsequently, the Gaussian filter can be applied to the eigenvector image, that is, the value of each pixel in the image is weighted averaged to obtain a smooth image. Finally, the filtered image can be converted back into a feature vector, that is, the two-dimensional matrix is ​​re-expanded into a vector.

[0090] It should be noted that when performing the above filtering process, the feature vector should be normalized first so that each element is between 0 and 1. This is because the Gaussian filter is calculated based on pixel values. If the pixel value range is too large, it may lead to poor filtering effect.

[0091] In addition, Laplacian filtering can also be used for filtering. Laplacian filtering is a filtering method based on gradient information, which is used to analyze the edges and contours of objects and can detect and track the contours of objects. To use Laplacian filtering to filter the enhanced feature vector, first, a Laplacian operator can be defined, which contains a gradient filter and a convolution filter, and then the operator is applied to the enhanced feature vector to filter it.

[0092] After filtering to obtain the third eigenvector, the third eigenvector can be classified and regressed using a fully connected layer to obtain the classification labels and coordinate values ​​of the points corresponding to the third eigenvector to reconstruct the three-dimensional model. In the present disclosure, the third eigenvector can be sent to a fully connected layer, and then after operation at each layer of the network, the output result: classification labels and coordinate values ​​can be obtained. Based on the obtained classification labels and coordinate values, each point can be divided according to the labels and coordinate values ​​to reconstruct the three-dimensional model.

[0093] Various modules according to example embodiments of the present disclosure may be integrated into a single module that performs its functions, or at least one of the various modules may be divided into a plurality of smaller modules.

[0094] Figure 5 is a flowchart illustrating a method for lightweight reconstruction of a large-scale three-dimensional model according to an example embodiment of the present disclosure.

[0095] In step 510, an image semantic segmentation network may be used to extract outer contour features of the three-dimensional model based on the two-dimensional image data of the three-dimensional model.

[0096] In step 520, the three-dimensional point cloud data of the three-dimensional model may be screened based on the outer contour features to obtain lightweight three-dimensional point cloud data.

[0097] In step 530, the three-dimensional model may be reconstructed based on the lightweight three-dimensional point cloud data.

[0098] Figure 6 is a schematic block diagram illustrating an electronic device 600 according to an example embodiment of the present disclosure.

[0099] According to an exemplary embodiment of the present disclosure, an electronic device 600 may also be provided, and the electronic device 600 may include a processor 610 and a memory 620 storing computer executable instructions. When the computer executable instructions are executed by the processor 610, the processor 610 is prompted to perform the above-mentioned large-scale three-dimensional model lightweight reconstruction method according to the exemplary embodiment of the present disclosure.

[0100] This paper uses a deep learning-based method to conduct research on building model reconstruction, focusing on building outline extraction, point cloud data lightweight processing and building surface reconstruction technology based on point cloud data, and finally applies it to digital twin city planning and construction.

[0101] The present invention realizes the extraction of three-dimensional model point cloud data from city-level point cloud data with less computing power, and enriches the contour information of the reconstructed three-dimensional model, improves the modeling speed while ensuring the accuracy and precision of the model, and is used in virtual city planning and construction in an effective and efficient manner. The model reconstructed by this method is applied to urban scenes, which speeds up the planning and construction of virtual cities and reduces production costs.

[0102] According to an embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to perform a method according to an exemplary embodiment of the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0103] According to an embodiment of the present disclosure, a computer program product may also be provided. Instructions in the computer program product may be executed by at least one processor in an electronic device to perform the method according to the exemplary embodiment of the present disclosure.

[0104] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0105] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the claims.

Claims

1. Three-dimensional model reconstruction system, including: An outer contour extraction module is configured to extract outer contour features of the three-dimensional model using an image semantic segmentation network based on the two-dimensional image data of the three-dimensional model; A lightweight module is configured to filter the three-dimensional point cloud data of the three-dimensional model based on the outer contour feature to obtain lightweight three-dimensional point cloud data; The reconstruction module is configured to reconstruct the three-dimensional model based on the lightweight three-dimensional point cloud data.

2. The system of claim 1, wherein: The encoder of the image semantic segmentation model has at least four n×n convolutional layers, and an adaptive activation function is used in each of the at least four convolutional layers, where n>1.

3. The system of claim 2, wherein: The encoder of the image semantic segmentation model includes at least two encoders, and the outer contour extraction module is configured as follows: The two-dimensional image data are respectively input into the at least two encoders of the image semantic segmentation model to obtain at least two effective feature layers respectively, and the at least two effective feature layers are input into the decoder of the image semantic segmentation model.

4. The system of claim 3, wherein: The convolution layers of the at least two encoders are different, and the convolution rates of at least four convolution layers of each of the at least two encoders are different.

5. The system of claim 1, wherein: The image semantic segmentation model is trained in the following way: Inputting the building image data training set into the image semantic segmentation model to obtain a model output; Use the cross entropy loss function to determine the loss between the model output and the true label; The gradient of the loss with respect to the model parameters of the image semantic segmentation model is determined based on the automatic differentiation technique, and the model parameters are updated using the gradient descent method.

6. The system according to any one of claims 1 to 5, wherein: The lightweight module is configured as: adding annotations to the outer contour features and the three-dimensional point cloud data respectively; Using a point cloud registration algorithm to match the annotated outer contour features with the three-dimensional point cloud data; By matching the outer contour feature with the three-dimensional point cloud data, determining a point cloud data screening interval based on the outer contour feature; and The three-dimensional point cloud data is lightweight processed based on the point cloud data screening interval.

7. The system of claim 6, wherein: The lightweight module is configured to match the annotated outer contour features with the three-dimensional point cloud data using a point cloud registration algorithm in the following manner: Selecting feature points of the outer contour feature as reference points for registration; Based on the reference point, representative feature points of the three-dimensional point cloud data selected from the three-dimensional point cloud data are matched.

8. The system of claim 7, wherein: The lightweight module is configured to match representative feature points of the three-dimensional point cloud data selected from the three-dimensional point cloud data in the following manner: First, matching is performed on representative feature points that are at a first distance from the reference point. Then matching the representative feature points at a second distance from the reference point, The first distance is smaller than the second distance.

9. The system of claim 6, wherein: The lightweight module is configured to determine the point cloud data screening interval based on the outer contour feature by matching the outer contour feature with the three-dimensional point cloud data in the following manner: Determine the position of the observation point using the outer contour feature; A plurality of rays starting from the observation point are projected onto the surface of the three-dimensional model to determine a point cloud data screening interval.

10. The system of claim 6, wherein: The lightweight module is configured to perform lightweight processing on the three-dimensional point cloud data based on the point cloud data screening interval in the following manner: A point cloud filtering algorithm is used to process the three-dimensional point cloud data of the building within the point cloud data screening interval.

11. The system according to any one of claims 1 to 10, wherein: The reconstruction module is configured as: Inputting the lightweight three-dimensional point cloud data into a feature extraction network to extract features of m categories; For the features of the m categories, respectively, according to respective neighbor thresholds, local geometric features are encoded for the points of the features of the m categories to reconstruct the three-dimensional model, The neighbor threshold represents the maximum distance between the encoded point and its neighboring points.

12. The system of claim 11, wherein: The reconstruction module is configured to encode local geometric features of the points of the features of the m categories according to their respective neighbor thresholds in the following manner: Classifying the features of the m categories to obtain features of n levels, where n≤m; Setting n nearest neighbor thresholds corresponding to the n levels respectively; For the features at the n levels, local geometric features are encoded for the points of the features at the n levels according to their corresponding nearest neighbor thresholds.

13. The system of claim 11, wherein: The reconstruction module is also configured to: Input the local geometric features of each point into the fully connected layer to obtain the first feature vector; Projecting the intermediate feature vector into query, key, and value spaces to obtain a query vector, a key vector, and a value vector of the first feature vector; Determining an attention weight based on the query vector and the key vector; The attention weight is applied to the value vector to obtain an enhanced second feature vector.

14. The system of claim 13, wherein: The reconstruction module is also configured to: Converting the enhanced second feature vector into a feature vector image; Applying a Gaussian filter to the feature vector image; The filtered eigenvector image is converted into a third eigenvector.

15. The system of claim 14, wherein: The reconstruction module is also configured to: The third eigenvector is classified and regressed using a fully connected layer to obtain classification labels and coordinate values ​​of points corresponding to the third eigenvector to reconstruct the three-dimensional model.

16. The system of claim 11, wherein: The feature extraction network is a feature extraction convolutional neural network based on the point cloud hierarchical aggregation network PointNet++.

17. The system of claim 16, wherein: The feature extraction convolutional neural network based on PointNet++ includes: A local feature pooling module, used for pooling the local features of the point cloud data; a hierarchical feature learning module comprising a plurality of nested feature learning layers, wherein each of the plurality of nested feature learning layers performs feature learning and feature extraction operations on the point cloud data; and The multi-scale feature fusion module is used to fuse features of different scales obtained from the hierarchical feature learning module.

18. A three-dimensional model reconstruction method, comprising: Based on the two-dimensional image data of the three-dimensional model, using an image semantic segmentation network to extract the outer contour features of the three-dimensional model; Based on the outer contour features, the three-dimensional point cloud data of the three-dimensional model is screened to obtain lightweight three-dimensional point cloud data; The three-dimensional model is reconstructed based on the lightweight three-dimensional point cloud data.

19. Electronic equipment, including: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by at least one of the processors, the at least one of the processors is prompted to perform the method as claimed in claim 18.

20. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one processor, the at least one processor is prompted to perform the method according to claim 18.

Citation Information

Cited By

  • Structural lightweight three-dimensional digital display model construction method and system

    CN119540471A

  • Large-scale digital twinborn model automatic construction method

    CN119741416A

  • Modeling optimization processing method and system based on digital image

    CN120852702A

  • A modeling optimization processing method and system based on digitized images

    CN120852702B

  • Box culvert inner wall concrete quality detection method based on image recognition technology

    CN120953159A