A method for rapid 3D model reconstruction of cement fiber board house
The point cloud information of the cement fiber board house is obtained through multiple depth cameras and deep learning feature extraction and singular value decomposition registration are performed, which solves the problem of traditional 3D reconstruction methods being affected by weather and lighting, and achieves fast and accurate 3D model reconstruction. Suitable for the rapid modeling needs of the construction industry.
Patent Information
- Application Number
- CN202210684030.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-06-16
AI Technical Summary
Traditional three-dimensional reconstruction methods are easily affected by factors such as weather, humidity, and lighting conditions during the construction of architectural models. The operations are complex and difficult to be completed by non-professionals, resulting in uneven results and failing to meet the construction industry's demand for rapid modeling. .
Multiple depth cameras are used to obtain point cloud information of cement fiber board houses. Point cloud registration is performed through denoising processing and deep learning feature extraction models. The singular value decomposition algorithm is used to register multiple point cloud images into one image to achieve a fast three-dimensional model. reconstruction.
It improves the robustness and accuracy of 3D model reconstruction, simplifies the operation process, enables non-professionals to achieve fast and accurate 3D model reconstruction, and improves work efficiency and generalization capabilities.
Smart Images

Figure CN114937122B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of three-dimensional reconstruction, and in particular is a method for quickly reconstructing a three-dimensional model of a cement fiberboard. Background Art
[0002] With the continuous development of economy and the continuous improvement of people's living standards, people have higher requirements for the aesthetics, comfort and functionality of buildings. Ordinary building materials can no longer meet social needs. Fiber cement board is a new type of building material made of natural fiber cement. Its ingredients include natural fiber, cement, natural river sand, water and a small amount of chemical additives, glass fiber, etc. It has exquisite appearance and excellent properties and is used in various fields.
[0003] In recent years, the rapid development of depth cameras and the continuous upgrading of artificial intelligence technology have provided important impetus and support for the development of point cloud acquisition, point cloud denoising, point cloud registration and other technologies. Compared with traditional cameras, depth cameras have added a depth measurement function, which makes it more convenient and accurate to perceive the surrounding environment and changes. With the continuous iteration of technology, it has appeared in our lives and played a huge role, such as in architectural modeling on construction sites, interior space design, three-dimensional measurement of the human body and other scenes, and has achieved good results.
[0004] Deep learning is a type of machine learning, and machine learning is the only way to achieve artificial intelligence. The concept of deep learning originated from the study of artificial neural networks. A multilayer perceptron with multiple hidden layers is a deep learning structure. Deep learning combines low-level features to form more abstract high-level representations of attribute categories or features to discover distributed feature representations of data. The motivation for studying deep learning is to establish a neural network that simulates the human brain for analysis and learning. It imitates the mechanism of the human brain to interpret data, such as images, sounds, and text.
[0005] At present, my country's construction industry is in a period of rapid development, and the demand for rapid modeling of building models is very urgent. In the process of model construction, traditional methods are easily affected by factors such as weather and humidity, and the final results are often unsatisfactory. my country is a major infrastructure country, and there are construction sites under construction all the time. A rapid building modeling method is very necessary. Traditional 3D reconstruction methods must first acquire images of buildings and use cameras to acquire two-dimensional images of three-dimensional objects. However, these methods are very easily affected by lighting conditions, weather conditions, and different geometric characteristics of cameras, which creates difficulties for subsequent operations. After that, camera calibration, feature extraction, stereo matching, 3D reconstruction and other processes are required. These tasks are difficult for non-professionals to complete, and the reconstruction effects are also uneven due to the skills of professionals. For this reason, the present invention proposes a rapid 3D model reconstruction method for cement fiber board houses. Summary of the invention
[0006] In order to solve the problems existing in the prior art, the present invention provides a method for quickly reconstructing a three-dimensional model of a cement fiber board house. The three-dimensional model reconstruction can be obtained by using multiple depth cameras. The method is reasonable and simple to operate.
[0007] The technical solution adopted by the present invention to solve its technical problem is:
[0008] Step 1, using multiple depth cameras to obtain point cloud information of the cement fiber board house;
[0009] Step 2, preprocessing the original point cloud image by removing noise;
[0010] Step 3, inputting the preprocessed multiple point cloud images into the deep learning feature extraction model to extract features;
[0011] Step 4: align multiple point cloud images according to the extracted features, and align multiple cement fiber board house point cloud images into one point cloud, which includes the feature information of all point cloud images.
[0012] Furthermore, the specific implementation of step 1 includes the following steps:
[0013] When placing the depth cameras, take the fiberboard house as the center, ensure that the distances from multiple depth cameras to the center of the fiberboard house are equal, and ensure that the angles of multiple depth cameras are equal.
[0014] Step 2 specifically includes the following steps:
[0015] First, the point cloud image is downsampled. The purpose of downsampling is to reduce the amount of calculation and reduce the operation time. The denoising method uses a compromise between the spatial proximity of the image and the similarity of pixel values, while considering the spatial domain information and grayscale similarity, as follows:
[0016] First, the point cloud image is passed through the rotation matrix to give the point cloud rotation invariance, so that no matter how the point cloud is rotated, the information stored in the point cloud changes. Then, denoising is performed on the three-dimensional image. The formula is expressed as:
[0017]
[0018] p i is a point in the point cloud data to be processed, n i is the normal vector of the point, λ is the bilateral filter factor, and the calculation formula of λ is as follows:
[0019]
[0020] There are two weights during design, Wc and Ws, as shown below:
[0021]
[0022] Among them, Wc and Ws represent the spatial domain and frequency domain weight functions of the bilateral filtering function, respectively, which control the smoothness and feature preservation of the bilateral filtering. <n i ,p j -p i > for n i With p j -p i The inner product of .
[0023] The step 3 specifically includes the following steps:
[0024] Step 3.1, the network structure of the feature extraction module mainly includes four convolutional layers with 64 output channels, two convolutional layers with 128 output channels, and two convolutional layers with 256 output channels;
[0025] Step 3.2, first pass the input n×3 point cloud features to the 64-dimensional convolution layer in sequence to obtain an n×64 feature matrix. Then pass through the 128-dimensional convolution layer and the 256-dimensional convolution layer in sequence. Finally, concatenate the feature matrices obtained by each convolution. That is, 64*4+128*2+256*2, and obtain n×1024 features.
[0026] The step 4 comprises the following steps:
[0027] Step 4.1, based on the multiple point cloud feature maps extracted in step 3, use the L2 paradigm to calculate the feature distances in the multiple point cloud maps. The closer the feature distances of a pair of points in two point cloud maps are, the more likely it is that the pair of points are the same point. Based on this idea, find all matching point pairs in the point cloud maps;
[0028] Step 4.2, if the matching point pair is correct, then their neighborhood features must be the same. Use the nearest neighbor algorithm to find the neighborhood features of the matching point pair. If the difference in their neighborhood features is less than a threshold, we consider this pair of matching points to be correct. On the contrary, if the difference in the neighborhood features of the matching points is greater than the threshold, we consider this pair of matching points to be wrong and hide them to avoid errors in subsequent operations.
[0029] Step 4.3, based on the correct matching point pairs, use the singular value decomposition algorithm to find the rotation and translation matrices of the two point clouds, and multiply the point cloud image with the rotation and translation matrix to align the two point cloud images into one;
[0030] Step 4.4, using the above-described operations on all point cloud images pairwise, multiple point cloud images can be finally aligned into a final point cloud image.
[0031] Beneficial effects of the present invention:
[0032] 1. This method of fast 3D model reconstruction of cement fiber board house uses deep learning and algorithm technology to achieve fast 3D reconstruction of cement fiber board house. Multiple depth cameras are used to obtain point cloud information of cement fiber board house from different perspectives. The obtained multiple point cloud images are preprocessed, and the preprocessed multiple point cloud images are sent to the feature extraction network to extract features. The extracted features are used to find matching point pairs, and finally the singular value decomposition is used to obtain the registered point cloud. Even non-professionals can get the reconstructed model as long as they follow the method. Compared with traditional reconstruction methods, this method has better robustness, faster registration time, and better generalization.
[0033] 2. This rapid three-dimensional model reconstruction method of cement fiber board house can realize the effective registration of multiple point cloud images, improve the accuracy of registration, and reduce the feature loss of the model.
[0034] 3. This reconstruction method is fast and accurate. When used in engineering, it can improve work efficiency and is not limited to professionals. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of a process for a rapid three-dimensional model reconstruction method for a cement fiber board house; DETAILED DESCRIPTION
[0036] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.
[0037] See also Figure 1 The present invention provides a technical solution: a method for rapid three-dimensional model reconstruction of a cement fiber board house, including a point cloud data collection module, a point cloud preprocessing module, a point cloud feature extraction module and a point cloud registration module, as follows:
[0038] Point cloud data collection module: First, place 4 or more depth cameras at a distance of 10 to 20 meters from the cement fiberboard house, with the cement fiberboard house as the center, and use these depth cameras to obtain the 3D point cloud information of the cement fiberboard house from different perspectives. These point cloud information only include part of the information of the fiberboard house at this perspective, and the overlap of multiple point cloud images is about 60%. Then transmit the multiple point cloud images to the system. When placing the depth cameras, pay attention to taking the fiberboard house as the center, ensure that the distances from multiple depth cameras to the center point of the fiberboard house are equal, and ensure that the angles of multiple depth cameras are equal, so that all the point cloud information of the fiberboard house can be captured;
[0039] Point cloud preprocessing module: After obtaining the collected 3D point cloud information, the point cloud denoising algorithm is used to denoise the multiple point cloud images taken by the depth camera from different perspectives. First, the point cloud image is downsampled. A point cloud image may have hundreds of thousands or even millions of point clouds. The downsampling process can greatly reduce the amount of subsequent point cloud operation calculations. Then, the algorithm is used to delete the outliers of the point cloud, also called noise. The outliers may be caused by the position and lighting of the depth camera. These outliers make it difficult to align the subsequent point cloud.
[0040] The specific denoising method uses a compromise process that combines the spatial proximity of the image and the similarity of pixel values, while considering the spatial information and grayscale similarity to achieve the purpose of edge-preserving denoising. It has the characteristics of being simple, non-iterative, and local. This is a nonlinear downsampling filtering method:
[0041] First, the point cloud image is passed through a rotation matrix to give the point cloud rotation invariance. This rotation matrix can be learned, mainly to give the input point cloud a rotation invariance, that is, no matter how the point cloud is rotated, the information it stores will not change. The point cloud matrix with rotation invariance is more robust during registration. Specifically, the point cloud is stored using its three-dimensional coordinates in space. In other words, a point cloud image is actually an N×3 matrix, where N represents the number of points in the point cloud image, and 3 is the XYZ coordinate of each point. The stored point cloud is actually a set of three-dimensional matrices. The N×3 matrix is passed through a rotation matrix to obtain (N×3)×(3×3). The final matrix is still N×3, but after this process, the point cloud has been given rotation invariance. Then, denoising is performed on the three-dimensional image. The formula can be expressed as:
[0042]
[0043] p i is a point in the point cloud data to be processed, n i is the normal vector of the point, λ is the bilateral filter factor, and the calculation formula of λ is as follows:
[0044]
[0045] There are two weights during design, Wc and Ws, as shown below:
[0046]
[0047] Among them, Wc and Ws represent the spatial domain and frequency domain weight functions of the bilateral filtering function, respectively, which control the smoothness and feature preservation of the bilateral filtering. <n i ,p j -p i > for ni With p j -p i The inner product of
[0048] Point cloud feature extraction module: The network structure of the feature extraction module mainly includes four convolutional layers with 64 output channels, two convolutional layers with 128 output channels, and two convolutional layers with 256 output channels.
[0049] The output input of the network structure is n×3 point cloud features, which are combined with the neighborhood information of the point in the point cloud to obtain a new feature with a dimension of n×6. Then, it is passed to four 64-dimensional convolutional layers in sequence to obtain an n×64 feature matrix, and then passed through a Maxpooling layer to obtain a 1×64 feature matrix. Then, similar to the first step, the neighborhood information of the point in the point cloud is combined, and then passed through two 128-dimensional convolutional layers in sequence. Similarly, the neighborhood information is combined and passed through a 256-dimensional convolutional layer. Finally, the feature matrices obtained from each convolution are concatenated. That is, 64*4+128*2+256*2, and n×1024 features are obtained.
[0050] Point cloud registration module:
[0051] Step 1: Based on the extracted multiple point cloud feature maps, use the L2 paradigm to calculate the feature distance of the points in the multiple point cloud maps. The closer the feature distance of a pair of points in two point cloud maps is, the more likely it is that the pair of points is the same point. Based on this idea, find all matching point pairs in the point cloud map.
[0052] Step 2: If the matching point pair is correct, then their neighborhood features must be the same. Use the nearest neighbor algorithm to find the neighborhood features of the matching point pair. If the difference in their neighborhood features is less than a threshold, we consider this pair of matching points to be correct. On the contrary, if the difference in the neighborhood features of the matching points is greater than the threshold, we consider this pair of matching points to be wrong and hide them to avoid errors in subsequent operations.
[0053] Step 3: Based on the correct matching point pairs, the singular value decomposition algorithm is used to find the rotation and translation matrices of the two point clouds. The point cloud images are multiplied by the rotation and translation matrices to align the two point cloud images into one.
[0054] Step 4: Using the above-described operations on all point cloud images pairwise, multiple point cloud images can be finally aligned into a final point cloud image.
[0055] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.
[0056] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A method for rapid three-dimensional model reconstruction of a cement fiber board house, characterized in that: The details are as follows: Step 1: First, use a depth camera to obtain a point cloud image of the cement fiber board house from multiple different perspectives; Step 2: Use the point cloud preprocessing algorithm to denoise and complete the point clouds from different perspectives; Step 3, using a point cloud feature extraction network to extract features from the pre-processed point cloud images of multiple cement fiber board houses; Step 4, using the extracted feature map to construct matching point pairs, using the Hungarian algorithm and the spatial consistency algorithm to obtain matching point pairs for registration, and aligning multiple cement fiber board house point cloud images into one point cloud, which includes all the information of multiple point clouds; The specific implementation of step 3 includes the following steps: Step 3.1, use the neighborhood spatial information of the point and the information of the point for input. First, the input point cloud is an n×3 feature matrix, where n represents the number of point clouds and 3 is the dimension of the point cloud feature. The coordinate information of the point cloud is used as the feature of the initial point cloud. The neighborhood of the point cloud is obtained using the K nearest neighbor algorithm, and the neighborhood coordinates of the point in the point cloud are combined with the coordinate position of the point, and the n×3 feature is expanded to n×6. The expanded dimension is the neighborhood coordinate feature of the point cloud. Step 3.2, the expanded feature dimension is n×6, which includes the spatial information of the point cloud. Then the feature is input into four convolutional layers with dimensions of 64 for dimensionality upgrading, and the output is n×64; combined with the spatial neighborhood information of the point cloud, the n×64 feature is expanded to n×128, and then through two convolutional layers with dimensions of 128, the feature matrix obtained is n×128; once again combined with the neighborhood information of the point cloud, the n×128 feature is expanded to n×256, and finally through a convolutional layer with a dimension of 256, the final n×256 feature matrix is obtained; finally, the feature matrices obtained by each convolution are concatenated, that is, 64*4+128*2+256*2, to obtain n×1024 features; The step 4 specifically comprises the following steps: Step 4.1, according to the multiple point cloud feature maps extracted in step 3, the feature distances in the multiple point cloud maps are calculated using the L2 paradigm to find matching point pairs; Step 4.2, based on the matching point pairs obtained in step 4.1, first use the K nearest neighbor algorithm to find the nearest neighbor points, and calculate the Euclidean distance between the matching point and the nearest neighbor points. If the distance difference between the matching point and the neighborhood point is less than a threshold, then this pair of matching points is correct. If the neighborhood feature difference of the matching point is greater than the threshold, then this pair of matching points is wrong and will be hidden to avoid errors in subsequent operations; Step 4.3, based on the correct matching point pairs, use the singular value decomposition algorithm to find the rotation and translation matrices of the two point clouds, multiply the point cloud image with the rotation and translation matrix, and align the two point cloud images into one; Step 4.4, use the above-described operations on all point cloud images in pairs to finally align multiple cement fiber board house point cloud images into one cement fiber board house point cloud image.
2. The method for rapid three-dimensional model reconstruction of a cement fiber board house according to claim 1, characterized in that: The specific implementation of step 1 is as follows: When placing the depth cameras, take the fiberboard house as the center, ensure that the distances from multiple depth cameras to the center of the fiberboard house are equal, and ensure that the angles of multiple depth cameras are equal.
3. The method for rapid three-dimensional model reconstruction of a cement fiber board house according to claim 1, characterized in that: The specific implementation of step 2 is as follows: First, the point cloud image is downsampled. The denoising method uses a processing method that combines the spatial proximity and pixel value similarity of the image, while considering the spatial domain information and grayscale similarity, as follows: First, the point cloud image is passed through the rotation matrix to give the point cloud rotation invariance, and then the 3D image is denoised. The formula is expressed as: p i is a point in the point cloud data to be processed, n i is the normal vector of the point, λ is the bilateral filter factor, and the calculation formula of λ is as follows: Wc and Ws are expressed as follows: Among them, Wc and Ws represent the spatial domain and frequency domain weight functions of the bilateral filtering function, respectively, which control the smoothness and feature preservation of the bilateral filtering. <n i ,p j -p i > for n i With p j -p i The inner product of .
Citation Information
Patent Citations
Three-dimensional point cloud data rapid weight registering method based on curvature characteristic
CN108376408A
Monocular camera outdoor three-dimensional reconstruction method based on full convolutional neural network
CN110060331A
