Building facade window BIM reconstruction method based on three-dimensional point cloud semantic segmentation
Through 3D point cloud semantic segmentation technology, combined with deep learning and Octree algorithm, window single point clouds are automatically separated from building point clouds and categories are identified, which solves the lack of fully automated building facade window BIM model generation in the existing technology. problem, achieving efficient and accurate window BIM model reconstruction.
Patent Information
- Application Number
- CN202410631772.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-30
AI Technical Summary
Existing automatic generation methods of building and component BIM models based on 3D point cloud data cannot realize the automation of the entire process. Especially when automatically segmenting the point cloud of the required reconstructed components from the overall point cloud of the building, most methods still use manual labor. means, and cannot identify the categories of non-structural components such as doors and windows to establish corresponding BIM models.
Three-dimensional point cloud semantic segmentation technology is used to separate the window semantic point cloud from the building's three-dimensional point cloud. The Pointnet++ deep learning algorithm and Octree algorithm are used to separate the window single point cloud, and the chamfer distance and principal component analysis method are combined to determine the window category. The pyRANSAC algorithm is used to fit the window dimensions, and the window BIM model is automatically reconstructed through secondary development of the Revit API.
It achieves a high degree of automation in the entire process from the overall point cloud of the building to the window BIM model, improves the accuracy and efficiency of window type identification, accurately extracts window size information, reduces manual operations, and improves the accuracy and efficiency of the BIM model.
Smart Images

Figure CN118570377A
Abstract
Description
Technical Field
[0001] The present invention relates to the interdisciplinary technical field combining computer vision and building automation technology, and in particular to a BIM reconstruction method for building facade windows based on three-dimensional point cloud semantic segmentation. Background Art
[0002] In the field of architecture, accurate building facade information is crucial for building design, maintenance, and historical preservation. With the development of Building Information Modeling (BIM) technology, how to efficiently and accurately obtain detailed information on building facades from the real world and convert them into BIM models has become the focus of industry attention. Traditional methods rely on manual measurement and manual drawing, which are not only inefficient, but also difficult to cope with accurate modeling of complex facades, especially when dealing with historical buildings with complex geometric shapes and decorations. Therefore, exploring automated and intelligent facade information acquisition and BIM reconstruction methods has important practical application value and broad market prospects.
[0003] In recent years, with the rapid development of 3D laser scanning technology and computer vision technology, the method of acquiring and reconstructing building facades through 3D point cloud data has received widespread attention. 3D point clouds can capture the spatial information of buildings with high precision and efficiency, making it possible for automated processing and analysis. However, how to accurately extract key information of building facades, such as windows, doors and other structures, from massive and disordered point cloud data and further reconstruct them into BIM models remains a challenge. This process involves a series of complex steps such as point cloud preprocessing, feature extraction, semantic segmentation and model reconstruction. Although existing technologies have been able to realize the processing of point cloud data and the extraction of facade information to a certain extent, there is still room for improvement in terms of accuracy, efficiency and degree of automation.
[0004] At the same time, existing methods often require a lot of manual intervention when dealing with specific types of building facades, such as windows with irregular shapes or special structures, which greatly limits the scope and efficiency of these technologies. In addition, how to seamlessly integrate the extracted facade information into BIM software and automatically reconstruct a BIM model that meets actual building standards is also an important challenge facing current technology. Therefore, developing a technology that can automatically and accurately extract building facade window information from point cloud data and efficiently reconstruct it into a BIM model is of great significance to promoting the development and application of building information modeling technology.
[0005] The invention patent with publication number CN111612806A proposes a building facade window extraction method and device, which simplifies the window extraction process by generating a building facade point cloud, removing invalid points, and converting it into a dual depth image, and then accurately identifies the window boundary using image processing technology and triangulated irregular network (TIN). However, although the process of converting a three-dimensional point cloud into a two-dimensional image simplifies the calculation, it will cause the loss of some spatial information and cannot fully reflect the details of the three-dimensional space.
[0006] The invention patent with publication number CN117058337A discloses a method and device for automatically generating a BIM model of a construction project by three-dimensional reconstruction of point clouds. First, the three-dimensional point cloud data of the construction site is collected and a deliverable point cloud model is generated. Then, the redundant data in the model is cleared, and the wall and cylinder data are retained. Then, the wall and cylinder data are clustered to generate fitting lines, the corner points of the walls and cylinders are identified, and bounding boxes are generated by connecting them. The internal data is optimally fitted to generate wall and cylinder fitting surfaces. Finally, the openings are detected and extracted, the opening bounding boxes are generated, and the BIM model is generated using modeling software and deliverable files. Although the method is intended to be automated, the segmentation of the initial wall and cylinder data from the building point cloud still uses manual intervention, and a fully automatic process is not achieved.
[0007] The invention with the publication number CN108898662A proposes an automatic reconstruction method for pipeline facility models based on point cloud data. First, the point cloud data of pipeline facilities is collected through 3D laser scanning technology. After preprocessing, filtering and segmentation, the feature values are extracted and the matching and reconstruction of the point cloud data to the geometric model is completed using the constructed model database. Finally, the accurate matching and automatic reconstruction of the pipeline facility model are achieved through the matching of the point cloud feature descriptor and the geometric information.
[0008] The invention with publication number CN116108526A proposes a method and device for generating a BIM model of a building component based on point cloud data. First, the original point cloud data of the building component is obtained, and the sub-point cloud data and multiple regional point cloud data are divided based on the initial end section plane. Subsequently, by obtaining and processing the point cloud data of the cross-sections in these regions, the panel area in each cross-section is fitted and segmented to obtain a geometric model that matches the shape of each panel. Finally, the average geometric model of the panel is obtained by synthesizing these geometric models, and the BIM model of the building component is generated based on it, thereby improving the efficiency of BIM model generation.
[0009] The invention with publication number CN113868733A proposes a method for automatically generating a BIM model of an existing structure based on a three-dimensional point cloud. The three-dimensional point cloud model of the existing structure is obtained by a three-dimensional laser scanner, and then the point cloud data are used to identify surface damage of the structure and perform three-dimensional modeling of the structural geometry. Then, according to the IFC specification, a surface-based geometric model and a triangulated network-based damage model are constructed, and the geometric parameters and damage parameters of the structure are recorded. Finally, the BIM file in the IFC format is automatically output through the IfcOpenShell library to generate a BIM model containing damage information, thereby realizing structured storage of the structural geometric model and damage information.
[0010] In summary, most of the current automated generation methods of building and component BIM models based on 3D point cloud data cannot achieve full process automation, such as automatically segmenting the point cloud of the required reconstructed components from the overall point cloud of the building. Most methods still use manual means for this step. In addition, in most existing solutions, for non-structural components such as doors and windows, which have a relatively rich variety, most methods only reconstruct them into geometric models, and are unable to identify their categories and then establish corresponding BIM models. Summary of the invention
[0011] The purpose of the present invention is to overcome the defect that most of the above-mentioned existing technologies for automatically generating BIM models of buildings and components based on three-dimensional point cloud data cannot realize full-process automation, and to provide a BIM reconstruction method for building facade windows based on three-dimensional point cloud semantic segmentation.
[0012] The purpose of the present invention can be achieved by the following technical solutions:
[0013] A BIM reconstruction method for building facade windows based on 3D point cloud semantic segmentation includes the following steps:
[0014] Acquire a three-dimensional point cloud of a building, and separate a window semantic point cloud from the three-dimensional point cloud of the building;
[0015] Based on the obtained window semantic point cloud, separate the window monomer point cloud of each building facade;
[0016] The obtained window single point cloud is matched with the point cloud converted from the pre-built standard BIM component library, and the chamfer distance is used as a standard to determine the category to which each window single point cloud belongs;
[0017] According to the obtained window single point cloud, the window single point cloud is fitted into a standard rectangle, and its length and width information are extracted as the window size parameters;
[0018] Reconstruct the window BIM model based on the obtained window category and window size parameters.
[0019] Furthermore, the Pointnet++ deep learning algorithm is used to separate the window semantic point cloud from the building's three-dimensional point cloud through the deep learning algorithm model.
[0020] Furthermore, an Octree algorithm is used to separate the window semantic point cloud to obtain the window monomer point cloud of each building facade. The Octree algorithm includes: constructing an octree structure to recursively divide the space into subspaces according to the point cloud distribution; then analyzing the point cloud features of the window semantic point cloud in the leaf nodes, identifying and extracting the point cloud subset belonging to the same window; finally, optimizing the accuracy of the monomer point cloud through post-processing to obtain the window monomer point cloud.
[0021] Furthermore, the process of determining the category to which each window point cloud belongs is as follows:
[0022] Scale the window point cloud to a unit cube, which corresponds to the point cloud size converted from the standard BIM component library;
[0023] The principal component analysis method is used to roughly align the scaled window point cloud with the point cloud converted from the standard BIM component library;
[0024] The chamfer distance is used as a standard to determine the category to which each window point cloud belongs.
[0025] Furthermore, a principal component analysis method is used to perform a coarse registration between the two point clouds, and the principal component analysis method includes: calculating the covariance matrix of the point cloud to be registered, and performing eigenvalue decomposition to extract the principal components; constructing a transformation matrix based on the extracted principal components, and applying the transformation matrix to the original point cloud data to achieve a coarse registration transformation.
[0026] Furthermore, the calculation method of the chamfer distance includes: given two point sets A and B, starting from each point in A, finding the nearest point in B, and calculating the distance between the two points; then, starting from each point in B, finding the nearest point in A, and also calculating the distance between the two points, averaging the sum of the squares of all the calculated distances, and the resulting value is the chamfer distance.
[0027] Furthermore, the categories to which the determined window point clouds belong include fixed windows, casement windows, shutters, tilt-turn windows and bay windows.
[0028] Furthermore, the process of extracting the window size parameters specifically includes:
[0029] 1) Use the pyRANSAC algorithm to fit the window point cloud into a standard rectangle;
[0030] 2) For each point in the window point cloud, calculate the distance from it to the fitted standard rectangular surface, and determine whether the point is an inner point based on the calculated distance;
[0031] 3) Iterate step 1) to step 2), and generate a new standard rectangular model and a set of inner points in each iteration; by comparing the number of inner points in each iteration, select the standard rectangular model with the most inner points as the final model, so as to obtain the length and width information of the window according to the final model.
[0032] Furthermore, the reconstruction process of the window BIM model includes:
[0033] Create a Revit plug-in project in Visual Studio based on C# language, input the obtained window length and width information into the Revit plug-in project, and create a window BIM model.
[0034] Furthermore, when performing window BIM reconstruction, the window category exists dependently on the wall category, assuming that the wall BIM model is known and that all windows are located in the wall plane.
[0035] Compared with the prior art, the present invention has the following advantages:
[0036] (1) The present invention separates the window point cloud from the overall building point cloud through semantic segmentation, point cloud processing, and Revit secondary development, thereby mapping the building windows to the digital display of BIM. A solution for quickly and accurately converting the building point cloud to the window BIM model is established, achieving high automation of the entire process. At the same time, for categories with higher granularity such as windows, this method can accurately determine their types and map them to the BIM model required in the construction industry, which is of great significance to the development of digital technology in the construction industry.
[0037] (2) In the process of judging the window type, the present invention realizes intelligent judgment of the window type by comparing with the standard window point cloud library and combining the PCA algorithm to perform coarse alignment of the point cloud position and calculate the chamfer distance; this not only improves the accuracy of window type recognition, but also speeds up the matching speed and realizes efficient automatic processing.
[0038] (3) The present invention uses the Octree algorithm to automatically segment the individual point clouds of windows, further refining the recognition and classification of windows and laying a solid foundation for accurate modeling.
[0039] (4) In the process of extracting window size parameters, the pyRANSAC algorithm is used to fit the window point cloud into a standard rectangle, so as to accurately extract the length, width and other size information of the window. This step ensures that the reconstructed BIM model can accurately reflect the size of the window in the real world, providing a reliable guarantee for the creation of high-quality BIM models.
[0040] (5) In the process of rebuilding the window BIM model, the present invention uses the Revit API secondary development to automatically import the extracted window type and size parameters into the Revit model to complete the automatic reconstruction of the window BIM model. This automated method greatly reduces the need for manual operation and improves the efficiency and accuracy of modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flow chart of a method for BIM reconstruction of building facade windows based on three-dimensional point cloud semantic segmentation provided in an embodiment of the present invention;
[0042] Figure 2 Five common window schematic diagrams provided in the embodiments of the present invention;
[0043] Figure 3 A point cloud semantic segmentation effect diagram provided in an embodiment of the present invention;
[0044] Figure 4 This is a window point cloud separation effect diagram provided in an embodiment of the present invention;
[0045] Figure 5 A point cloud normalization effect diagram provided in an embodiment of the present invention;
[0046] Figure 6 A point cloud registration effect diagram provided in an embodiment of the present invention;
[0047] Figure 7 A window point cloud fitting effect diagram provided in an embodiment of the present invention;
[0048] Figure 8 A window BIM reconstruction rendering provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0050] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0052] Example 1
[0053] like Figure 1 As shown, this embodiment provides a BIM reconstruction method for building facade windows based on 3D point cloud semantic segmentation, comprising the following steps:
[0054] S1: Obtain a three-dimensional point cloud of a building, and separate a window semantic point cloud from the three-dimensional point cloud of the building;
[0055] S2: Based on the obtained window semantic point cloud, separate the window monomer point cloud of each building facade;
[0056] S3: Match the obtained window point cloud with the point cloud converted from the pre-built standard BIM component library, and use the chamfer distance as a standard to determine the category to which each window point cloud belongs;
[0057] S4: According to the obtained window single point cloud, the window single point cloud is fitted into a standard rectangle, and its length and width information are extracted as the window size parameter;
[0058] S5: Reconstruct the window BIM model according to the acquired window category and window size parameters.
[0059] Specifically, in step S1, the Pointnet++ algorithm is applied to perform point cloud segmentation, and the window semantic point cloud is separated from the three-dimensional point cloud of the building through a deep learning algorithm model.
[0060] The Pointnet++ deep learning training network can effectively process the spatial structure in the point cloud and provide accurate point cloud analysis and prediction for window semantics.
[0061] In this embodiment, the Pointnet++ deep learning algorithm is based on Ubuntu 16.04, CUDA11.3, PyTorch 1.11 and Python 3.7, and the GPU is 3090. The final window category segmentation result accuracy is 98.21%, as shown in the effect diagram Figure 3 shown.
[0062] In step S2, the window point cloud is recursively divided into subspaces by constructing an Octree spatial index structure through the Octree algorithm, and the window monomer point cloud is identified and extracted in the leaf node based on the point cloud features.
[0063] The main principles of the Octree algorithm are as follows: first, an octree structure is constructed to recursively divide the space into subspaces according to the point cloud distribution; then, the point cloud features are analyzed in the leaf nodes to identify and extract the point cloud subsets belonging to the same window; finally, the accuracy of the single point cloud is optimized through post-processing to achieve accurate segmentation of the single point cloud of the window. The present invention sets the minimum number of points in each point set to 10, and the final single window point cloud segmentation effect is shown in the figure below. Figure 4 shown.
[0064] In step S3, since there are many types of building windows, it is difficult to achieve full coverage of category judgment. Therefore, the present invention selects several common building facade window categories, specifically including: fixed windows, casement windows, shutters, tilt-turn windows and bay windows. Figure 2 shown.
[0065] The basis for intelligent judgment of window type is the chamfer distance between the point cloud of the window body and the point cloud of the window standard group library. The judgment process is divided into three steps: point cloud size normalization, point cloud position coarse alignment, and chamfer distance calculation.
[0066] Normalize point cloud size: Use the PCL (Point Cloud Library) to scale the point cloud data into a unit cube. The point cloud effect is as follows: Figure 5 shown.
[0067] Point cloud position coarse registration: The principal component analysis method PCA is used to coarsely register two point clouds. The main steps are as follows: First, the covariance matrix of each point cloud to be registered is calculated, and the eigenvalue decomposition is performed to extract the principal components; then, the transformation matrix is constructed according to the principal components, and the matrix is applied to the original point cloud data to achieve coarse registration transformation, including necessary translation and rotation operations. Specifically, the transformation process is as follows:
[0068] The original data is converted into a new coordinate system through linear transformation, so that the data variance on the first coordinate axis of the new coordinate system is the largest, and the data variance on the second coordinate axis is second, thereby finding the optimal alignment between the two point clouds.
[0069] In addition, it is necessary to correct the possible main axis reversal problem to ensure the consistency of the two point clouds in the main direction; the final rough registration result is as follows Figure 6 shown.
[0070] Chamfer distance calculation: Chamfer distance is used as the indicator for calculating the similarity between two point clouds in the intelligent judgment of window types. The calculation method is as follows: given two point sets A and B, starting from each point in A, find the nearest point in B, and calculate the distance between the two points. Then, starting from each point in B, find the nearest point in A, and also calculate the distance between the two points. Finally, take the average of the sum of the squares of all these distances, and the value obtained is the chamfer distance.
[0071] In step S4, the process of extracting the window size parameters specifically includes:
[0072] 1) Use the pyRANSAC algorithm to fit the window point cloud into a standard rectangle;
[0073] 2) For each point in the window point cloud, calculate the distance from it to the fitted standard rectangular surface, and determine whether the point is an inner point based on the calculated distance;
[0074] 3) Iterate steps 1) to 2) 3-5 times, and generate a new standard rectangular model and a set of inliers in each iteration; by comparing the number of inliers in each iteration, select the standard rectangular model with the most inliers as the final model, and then obtain the length and width information of the window according to the final model. The effect is as follows: Figure 7 shown.
[0075] In step S5, when reconstructing the window BIM, since the window category in Revit is dependent on the wall category, it is assumed that the wall BIM is known, and it is also assumed that all windows are in the wall plane, and their depth is not considered for the time being.
[0076] The automatic reconstruction method of the window BIM model is: use the Revit API secondary development to import the window parameter information obtained in steps 3 and 4 into the Revit model, and rebuild the window BIM model, such as Figure 8 shown.
[0077] The specific steps are as follows: create a Revit plug-in project in Visual Studio based on C# language, access the current Revit document through the Document class, use the Transaction class to manage transactions, call the Wall.Create method and pass in window parameters, including the window type parameters obtained in step S3 and the window size information obtained in step S4, and create a window BIM model in the Revit software based on this.
[0078] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A BIM reconstruction method for building facade windows based on 3D point cloud semantic segmentation, characterized in that: The following steps are involved: Acquire a three-dimensional point cloud of a building, and separate a window semantic point cloud from the three-dimensional point cloud of the building; Based on the obtained window semantic point cloud, separate the window monomer point cloud of each building facade; The obtained window single point cloud is matched with the point cloud converted from the pre-built standard BIM component library, and the chamfer distance is used as a standard to determine the category to which each window single point cloud belongs; According to the obtained window single point cloud, the window single point cloud is fitted into a standard rectangle, and its length and width information are extracted as the window size parameters; Reconstruct the window BIM model based on the obtained window category and window size parameters.
2. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 1, characterized in that: The Pointnet++ deep learning algorithm is used to separate the window semantic point cloud from the building's three-dimensional point cloud through the deep learning algorithm model.
3. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 1, characterized in that: The Octree algorithm is used to separate the window semantic point cloud to obtain the window monomer point cloud of each building facade. The Octree algorithm includes: constructing an octree structure to recursively divide the space into subspaces according to the point cloud distribution; then analyzing the point cloud features of the window semantic point cloud in the leaf nodes, identifying and extracting the point cloud subset belonging to the same window; finally, optimizing the accuracy of the monomer point cloud through post-processing to obtain the window monomer point cloud.
4. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 1, characterized in that: The specific process of determining the category to which each window point cloud belongs is as follows: Scale the window point cloud to a unit cube, which corresponds to the point cloud size converted from the standard BIM component library; The principal component analysis method is used to roughly align the scaled window point cloud with the point cloud converted from the standard BIM component library; The chamfer distance is used as a standard to determine the category to which each window point cloud belongs.
5. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 4, characterized in that: The principal component analysis method is used to perform coarse registration between two point clouds. The principal component analysis method includes: calculating the covariance matrix of the point cloud to be registered, and performing eigenvalue decomposition to extract principal components; constructing a transformation matrix according to the extracted principal components, and applying the transformation matrix to the original point cloud data to achieve coarse registration transformation.
6. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 1, characterized in that: The chamfer distance is calculated by: given two point sets A and B, starting from each point in A, finding the nearest point in B, and calculating the distance between the two points; then, starting from each point in B, finding the nearest point in A, and also calculating the distance between the two points, averaging the sum of the squares of all the calculated distances, and the resulting value is the chamfer distance.
7. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 1, characterized in that: The categories to which the single window point clouds are determined include fixed windows, casement windows, shutters, tilt-turn windows and bay windows.
8. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 1, characterized in that: The process of extracting the window size parameters specifically includes: 1) Use the pyRANSAC algorithm to fit the window point cloud into a standard rectangle; 2) For each point in the window point cloud, calculate the distance from it to the fitted standard rectangular surface, and determine whether the point is an inner point based on the calculated distance; 3) Iterate step 1) to step 2), and generate a new standard rectangular model and a set of inner points in each iteration; by comparing the number of inner points in each iteration, select the standard rectangular model with the most inner points as the final model, so as to obtain the length and width information of the window according to the final model.
9. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 1, characterized in that: The reconstruction process of the window BIM model includes: A Revit plug-in project is created in Visual Studio based on C# language, and the obtained window length and width information is input into the Revit plug-in project to create a window BIM model.
10. The method for BIM reconstruction of building facade windows based on 3D point cloud semantic segmentation according to claim 9, characterized in that: When performing window BIM reconstruction, the window category is attached to the wall category, assuming that the wall BIM model is known and that all windows are located in the wall plane.
Citation Information
Cited By
Construction project engineering management audit doubtful point extraction method based on three-dimensional point cloud
CN119067616A
Building information model component reconstruction method and device
CN119962019A
Building window primitive creating method and device based on building information model
CN120030665A
Door and window size measurement method based on point cloud semantic segmentation and sliding edge detection
CN121170342A
