A method and system for comparing differences between a three-dimensional point cloud and a BIM model
By generating a 3D point cloud at the construction site and registering it with the BIM model, constructing a bounding box for the frame space, and calculating the clustering ratio, the problem of inaccurate point cloud difference comparison in existing technologies is solved, enabling more accurate construction quality inspection.
Patent Information
- Application Number
- CN202611644453.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for comparing the differences between 3D point clouds and BIM models are insufficient to accurately reflect the differences between the actual construction status of building components and the design model when there are significant differences in the geometric shape of building components and inconsistent point cloud completeness, thus affecting the accuracy of construction quality inspection.
By acquiring video images of the construction site, visual 3D reconstruction is performed to generate 3D point clouds, which are then registered with the BIM model to the same coordinate system. The planar geometry of the outer solid frame of the door and window components is extracted, a bounding box of the frame space is constructed, effective point cloud clusters are extracted, the aggregation ratio is calculated, and the construction location is determined to be qualified or unqualified.
It improves the accuracy of comparing differences between 3D point clouds and BIM models, reduces the impact of missing point clouds caused by transparent or reflective materials, identifies components that do not match the design location, and provides a basis for on-site verification and rectification.
Smart Images

Figure CN123160968A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of inspection technology in building construction projects, specifically to a method and system for comparing the differences between 3D point clouds and BIM models. Background Technology
[0002] During the quality inspection of engineering construction, it is usually necessary to compare the actual construction results on the construction site with the design model to determine whether the building components meet the design requirements. With the development of 3D reconstruction technology, 3D point clouds can be generated from images or videos collected on the construction site, and then registered with the BIM model. This allows for the checking of differences between the components in the BIM model and the actual construction site based on the 3D point cloud.
[0003] Existing methods for comparing point clouds with models typically determine whether there are construction deviations in components based on the positional relationship or distance between the point cloud and the model surface. However, building components exhibit significant differences in geometry, with some components having borders, openings, empty areas, or multiple adjacent surfaces. When extracting the on-site point cloud based on the overall extent of the component, it is easy to simultaneously include point clouds corresponding to adjacent structures, internal areas of the component, or other unrelated areas, thus affecting the actual range of point clouds used for comparison.
[0004] Furthermore, the completeness of point clouds on the surfaces of different components may vary due to factors such as shooting angle, on-site obstruction, and the quality of 3D reconstruction. If a uniform overall distance comparison method is directly used, missing or irrelevant point clouds in certain areas can easily affect the difference judgment results, making it difficult to accurately reflect the differences between the actual construction state of the components and the design model.
[0005] Therefore, improving the accuracy of comparing the differences between 3D point clouds and BIM models is a problem that needs to be solved in the existing construction quality inspection process. Summary of the Invention
[0006] This application aims to address the problems in the prior art by providing a highly accurate method and system for comparing the differences between 3D point clouds and BIM models.
[0007] To achieve the above objectives, the first aspect of this application provides a method for comparing the differences between 3D point clouds and BIM models, the method comprising:
[0008] Acquire video footage of the construction site and the BIM model in IFC format, perform visual 3D reconstruction on the video footage to generate the 3D point cloud, perform scale restoration on the 3D point cloud, and register the scale-restored 3D point cloud with the BIM model to the same coordinate system; Based on the component categories in the BIM model, door and window components are determined, and the planar geometry of the outer solid frame of the door and window components is extracted to obtain multiple design reference planes. Based on the edge contour range of each design reference plane, a preset tolerance distance is extended along the positive and negative directions of the normal vector of each design reference plane to construct the corresponding frame space bounding box; Obtain a three-dimensional oriented bounding box containing the outer physical frame and its internal area of the door and window component. Expand the three-dimensional oriented bounding box outward and extract the point cloud located within the expanded three-dimensional oriented bounding box from the registered three-dimensional point cloud to obtain a global bounding box point cloud cluster. Extract the point cloud located within any of the frame space bounding boxes from the global bounding box point cloud cluster to obtain an effective frame point cloud cluster. Calculate the ratio of the number of points in the effective frame point cloud cluster to the number of points in the global bounding box point cloud cluster to obtain the aggregation ratio. Determine the door and window components whose aggregation ratio is greater than a preset qualified threshold as qualified construction positions, and identify the door and window components whose aggregation ratio is not greater than the qualified threshold as differential components and output them.
[0009] The second aspect of this application provides a system for comparing the differences between 3D point clouds and BIM models, including: The point cloud registration module is used to acquire video images of the construction site and the BIM model in IFC format, perform visual 3D reconstruction on the video images to generate the 3D point cloud, perform scale restoration on the 3D point cloud, and register the scale-restored 3D point cloud with the BIM model to the same coordinate system. The design reference plane extraction module is used to determine the door and window components according to the component categories in the BIM model, extract the planar geometry of the outer solid frame of the door and window components, and obtain multiple design reference planes. The frame space bounding box construction module is used to construct the corresponding frame space bounding box by extending a preset tolerance distance along the positive and negative directions of the normal vector of each design reference plane according to the edge contour range of each design reference plane. The point cloud extraction module is used to obtain a three-dimensional oriented bounding box containing the outer physical frame and its internal area of the door and window components, expand the three-dimensional oriented bounding box outward, and extract the point cloud located in the expanded three-dimensional oriented bounding box from the registered three-dimensional point cloud to obtain a global bounding box point cloud cluster. The point cloud located in any of the frame space bounding boxes is extracted from the global bounding box point cloud cluster to obtain an effective frame point cloud cluster. The difference determination module is used to calculate the ratio of the number of points in the effective frame point cloud cluster to the number of points in the global bounding box point cloud cluster to obtain the aggregation ratio. The door and window components whose aggregation ratio is greater than a preset qualified threshold are determined to be qualified in construction positions, and the door and window components whose aggregation ratio is not greater than the qualified threshold are identified as difference components and output.
[0010] A third aspect of this application provides a terminal device, including a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, implements the method described above.
[0011] A fourth aspect of this application provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method.
[0012] Compared with the prior art, this application has the following beneficial effects: By unifying the on-site 3D point cloud and the BIM model to the same coordinate system, a spatial correspondence between the design location of doors and windows and the on-site point cloud is established. A bounding box for the frame space is constructed using the design reference plane of the outer solid frame, and the proportion of the effective frame point cloud in the overall captured point cloud of doors and windows is statistically analyzed. This allows for the evaluation of the construction location of doors and windows based on the spatial distribution of the point cloud. It can reduce the impact of missing point clouds caused by openings, transparent or reflective materials inside doors and windows on the verification results, and identify door and window components that do not conform to the design location, providing a basis for on-site verification and rectification. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a flowchart illustrating a method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a three-dimensional point cloud and the spatial location of a visually encoded target at a construction site, provided in an embodiment of this application. Figure 3 This is a schematic diagram of a point cloud measured plane fitting provided in an embodiment of this application; Figure 4 This is a schematic diagram of the wall component difference verification results provided in an embodiment of this application; Figure 5 This is a schematic diagram of the column component difference verification results provided in an embodiment of this application; Figure 6This is a schematic diagram illustrating the differences between multiple components provided in one embodiment of this application; Figure 7 This is a partial verification view of a door and window component provided in an embodiment of this application when it has passed the verification; Figure 8 This is a partial verification view of a door and window component provided in an embodiment of this application when there are differences in the construction location; Figure 9 This is a schematic diagram of the structure of a difference comparison system based on 3D point cloud and BIM model provided in an embodiment of this application; Figure 10 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation
[0015] To facilitate understanding of this application, the following description will be more comprehensive and detailed in conjunction with the accompanying drawings and preferred embodiments, but the scope of protection of this application is not limited to the following specific embodiments.
[0016] Unless otherwise defined, all technical terms used herein have the same meaning as commonly understood by those skilled in the art. The technical terms used herein are for the purpose of describing particular embodiments only and are not intended to limit the scope of this application.
[0017] One embodiment of this application provides a method for comparing the differences between 3D point clouds and BIM models, including the following steps.
[0018] S102. Acquire video images of the construction site and a BIM model in IFC format. Perform visual 3D reconstruction on the video images to generate a 3D point cloud. Perform scale restoration on the 3D point cloud and register the scale-restored 3D point cloud with the BIM model to the same coordinate system.
[0019] In this step, the BIM model serves as a design model for comparing differences on the construction site. It stores the geometric information, component categories, and associated attributes of the components in IFC format. By parsing the BIM model, the design location, shape, and spatial extent of each component can be obtained, and different types of components can be distinguished.
[0020] Video footage from the construction site can be captured using portable shooting devices such as smartphones or panoramic cameras. During filming, the video image should cover the component to be checked, maintaining spatial continuity of the shooting trajectory so that adjacent image frames contain matching feature points of the same name. Frames of the video footage are extracted at preset time intervals to obtain a continuous image sequence. For example, an image sequence can be obtained by extracting one frame every 0.5 seconds.
[0021] Image sequences are input into a visual 3D reconstruction tool. Through image feature matching, camera pose calculation, and multi-view stereo reconstruction, a 3D point cloud representing the spatial distribution of components on the construction site surface is generated. Subsequently, the 3D point cloud can be denoised and voxelized downsampled to reduce outlier interference and make the point cloud density relatively uniform.
[0022] The 3D point cloud obtained from visual 3D reconstruction is usually located in a relative coordinate system, and its scale, position, and orientation may not be consistent with the BIM model. Therefore, scale restoration and spatial registration of the 3D point cloud are performed to make it adopt the same spatial scale as the BIM model and be located in the same coordinate system. This provides a basis for subsequent point cloud extraction according to the geometric range of the components and comparison of construction positions.
[0023] S104. Determine the door and window components based on the component categories in the BIM model, extract the surface geometry of the outer solid frame of the door and window components, and obtain multiple design reference planes.
[0024] In this step, the component categories of the BIM model are analyzed to determine the IfcDoor entity corresponding to the door component and the IfcWindow entity corresponding to the window component. The geometric topological relationships of the door and window components are further analyzed, the outer solid frame is separated, and its planar geometry is extracted.
[0025] The external solid frame includes physical components such as door frames and window frames that surround the internal areas of doors and windows. Design reference planes are used to represent the design surface positions and orientations of the external solid frame in the BIM model. A single door or window component can correspond to multiple design reference planes, and these planes collectively represent the spatial distribution of the external solid frame.
[0026] For door and window components containing transparent or reflective materials such as glass, visual 3D reconstruction is prone to point cloud gaps in their internal areas. Point clouds may also be missing inside the door and window openings during the construction phase before the door and window sashes are installed. Extracting the planar geometry of the outer solid frame can provide a design basis for determining the construction location of doors and windows based on the point cloud distribution near the frame.
[0027] S106. Based on the edge contour range of each design reference plane, extend the preset tolerance distance along the positive and negative directions of the normal vector of each design reference plane to construct the corresponding frame space bounding box.
[0028] In this step, the coverage area of the frame space enclosure within the reference plane is determined based on the edge contour range of the design reference plane, and the thickness direction is determined by the normal vector of the design reference plane. A preset tolerance distance is then extended along both the positive and negative directions of the normal vector to form a frame space enclosure covering the adjacent spaces on both sides of the design reference plane.
[0029] Each design reference plane corresponds to a bounding box. The bounding box defines the point cloud capture range near the corresponding design location, ensuring that point clouds within this range are included in subsequent statistics. The tolerance distance can be preset based on point cloud reconstruction accuracy and actual verification requirements.
[0030] S108. Obtain a three-dimensional directed bounding box containing the outer physical frame and the door and window components within its internal area. Expand the three-dimensional directed bounding box outwards and extract the point cloud located within the expanded three-dimensional directed bounding box from the registered three-dimensional point cloud to obtain a global bounding box point cloud cluster. Extract the point cloud located within any frame space bounding box from the global bounding box point cloud cluster to obtain an effective frame point cloud cluster.
[0031] In this step, a three-dimensional oriented bounding box is used to enclose the entire door and window component, covering the outer solid frame and the internal area enclosed by the frame. The orientation of the three-dimensional oriented bounding box is determined according to the geometric orientation of the door and window component, and it is expanded outward so that the overall intercepted area covers the door and window design location and its adjacent area.
[0032] The entire point cloud within the expanded 3D directed bounding box is extracted from the registered 3D point cloud to form a global bounding box point cloud cluster. The global bounding box point cloud cluster is a collection of point clouds extracted from a single door / window component.
[0033] Determine the spatial relationship between each point in the global bounding box point cloud cluster and the bounding box of the frame space, and include points located within at least one bounding box into the valid bounding box point cloud cluster. Even if the same point is located within multiple bounding boxes, it is only counted once.
[0034] Through the above processing, the effective frame point cloud cluster constitutes part of the global bounding box point cloud cluster. Both originate from the overall cropping range corresponding to the same door and window component, enabling the subsequent calculation of the point count ratio to reflect the degree to which the point cloud within this range clusters towards the vicinity of the frame's design location.
[0035] S110. Calculate the ratio of the number of points in the effective frame point cloud cluster to the number of points in the global bounding box point cloud cluster to obtain the aggregation ratio. Determine the construction position of the door and window components whose aggregation ratio is greater than the preset qualified threshold as qualified, and mark the door and window components whose aggregation ratio is not greater than the qualified threshold as differential components and output them.
[0036] In this step, the calculation of the clustering ratio is based on the premise that the number of points in the global bounding box point cloud cluster is greater than zero. The number of points in the effective bounding box point cloud cluster and the global bounding box point cloud cluster are counted separately, and the ratio of the former to the latter is calculated to obtain the clustering ratio.
[0037] When the location of doors and windows on site matches the design location in the BIM model, the door and window openings or glass areas usually lack point clouds. The extracted point clouds are mainly concentrated near the outer solid frame, resulting in a high clustering ratio. When the openings on site have not yet been made according to the design, or when the door and window positions have undergone significant lateral or longitudinal offsets, a large number of point clouds of solid walls may appear within the designed door and window area. These point clouds are located within the global bounding box, but do not fall into the corresponding frame space bounding box, thus reducing the clustering ratio.
[0038] The acceptance threshold can be preset according to actual verification requirements, for example, set to 70%. When the clustering ratio is greater than the acceptance threshold, the construction position of the door and window components is deemed acceptable. When the clustering ratio is not greater than the acceptance threshold, the door and window components are identified as defective components, and the corresponding component information is output. The output information may include the component's unique identifier (GlobalId), component category, and verification result, so as to locate the door and window components that need to be verified in the BIM model.
[0039] In this embodiment, by unifying the on-site 3D point cloud and the BIM model to the same coordinate system, a spatial correspondence between the design location of doors and windows and the on-site point cloud is established. A bounding box of the frame space is constructed using the design reference plane of the outer solid frame, and the proportion of the effective frame point cloud in the overall captured point cloud of the doors and windows is statistically analyzed. This allows for the evaluation of the construction location of doors and windows based on the spatial distribution of the point cloud. It can reduce the impact of missing point clouds caused by openings, transparent or reflective materials inside doors and windows on the verification results, and identify door and window components that do not conform to the design location, providing a basis for on-site verification and rectification.
[0040] In one embodiment, the scale of the 3D point cloud is restored, and the scale-restored 3D point cloud is registered with the BIM model to the same coordinate system. The correspondence between the two coordinate systems is established through multiple visual coding targets.
[0041] Specifically, multiple visually coded targets in the video image are identified, and the absolute three-dimensional coordinates of the target center of each visually coded target in the BIM model coordinate system are obtained through decoding. The absolute three-dimensional coordinates are used to represent the corresponding position of the target center in the BIM model coordinate system.
[0042] In multiple frames of images extracted from video footage, the center pixel coordinates of the same visually encoded target are extracted. Combined with camera intrinsic and extrinsic parameters obtained during visual 3D reconstruction, multi-view... Figure 3 Angle measurements determine the relative 3D coordinates of each target center in the 3D point cloud coordinate system. The relative 3D coordinates use the same coordinate system and scale as the reconstructed 3D point cloud.
[0043] Pairing the relative and absolute 3D coordinates corresponding to the same target center creates pairs of points of the same name. A combination of random sampling consensus and singular value decomposition (SVD) is used to perform spatial transformation on these pairs. The random sampling consensus algorithm reduces the influence of outlier points on the solution, and the SVD algorithm determines the scale, rotation, and translation parameters to obtain the similarity transformation matrix.
[0044] The similarity transformation matrix contains one scale factor, three rotation components, and three translation components, corresponding to a total of seven degrees of freedom. Based on the similarity transformation matrix, a uniform transformation is performed on each point in the 3D point cloud to complete the scale recovery of the 3D point cloud and its spatial registration with the BIM model.
[0045] In this embodiment, corresponding point pairs with clear relationships are obtained by visually encoding the target, enabling scale recovery and spatial registration to be completed in the same transformation process. The random sampling consensus algorithm is used in conjunction with the singular value decomposition algorithm to reduce the impact of target identification or localization anomalies on the registration results, providing a unified spatial benchmark for subsequent difference comparison.
[0046] In one embodiment, before acquiring video images, the center of a virtual target is determined in the BIM model, and then visually coded targets are deployed at the construction site according to their corresponding locations.
[0047] Specifically, a reference location that can be confirmed to correspond to the construction site is selected in the BIM model, such as a wall corner or the intersection of column grids. Starting from the reference location, the center of the virtual target is determined along the surface of the BIM model according to a preset offset, and the absolute three-dimensional coordinates of the virtual target center in the BIM model coordinate system are extracted.
[0048] The preset offset is used to determine the position of the target center relative to the reference position and to reserve space for the placement of the physical target. For example, the target center can be positioned 15 cm upwards and 15 cm to the left from the reference position along the corresponding model surface. The offset position is then used as the virtual target center. Once the offset direction and distance are determined in the model, the same positional relationship is used during on-site deployment.
[0049] The absolute three-dimensional coordinates of the virtual target center are encoded and stored in the corresponding visually encoded target. The visually encoded target can be in the form of a QR code and can be printed to form a physical target. During on-site deployment, the position of the physical target center is determined according to the corresponding reference position and preset offset, so that the physical target center corresponds to the virtual target center in space.
[0050] For example, visually encoded targets can be placed at 3 to 5 reference locations. Each target should be located in a position that is easy to photograph and unobstructed, and the centers of all targets should be avoided to be on the same straight line, in order to meet the needs of spatial similarity transformation solution.
[0051] In this embodiment, a correspondence between the center of the physical target and the coordinates of the BIM model is established by using a consistent reference position and offset. After directly encoding and storing the absolute three-dimensional coordinates into the visually encoded target, the coordinate information required for registration can be obtained through decoding, facilitating the formation of corresponding point pairs.
[0052] In one embodiment, after registering the scale-restored 3D point cloud with the BIM model to the same coordinate system, the large-area planar components in the BIM model are checked. These large-area planar components include walls, floors, and roof slabs, and their on-site point clouds are mainly distributed on exposed surfaces that can be photographed.
[0053] Specifically, the geometric solid of a large-area planar component is analyzed and converted into a mesh model. Coplanarity is determined based on the normal vectors and vertex coordinates of each mesh face. Mesh faces located on the same plane are merged to obtain a continuous surface with a larger area. The areas of the merged faces are compared, and the face with the largest area is selected as the reference plane for the planar component. Its edge contour range and normal vector are then obtained.
[0054] Based on the edge contour range of the reference surface of the planar component, a preset tolerance distance is extended along the positive and negative directions of its normal vector to form a corresponding tolerance range. Points within this tolerance range are extracted from the registered 3D point cloud, concentrating the point clouds involved in the fitting near the design position on the main surface of the component, reducing interference from point clouds in other areas.
[0055] A random sampling consensus algorithm is used to perform planar fitting on the extracted point cloud to obtain the measured plane of the point cloud, and the fitted inliers that meet the criteria for inliers within the fitted plane are determined. The centroid is calculated based on the three-dimensional coordinates of the fitted inliers. The measured plane of the point cloud is used to represent the actual orientation of the surface of the component in the field, and the centroid is used to represent the concentrated position of the surface point cloud participating in the fitting.
[0056] Calculate the angle between the measured plane of the point cloud and the reference plane of the planar component, as well as the perpendicular distance from the centroid to the reference plane of the planar component. The angle is used to evaluate the degree of inclination of the surface of the component relative to the design surface, and the perpendicular distance is used to evaluate its positional deviation along the normal direction of the design surface. When comparing the angles, parallel planes with the same or opposite normal vectors are treated as planes with the same direction.
[0057] When both the included angle and the vertical distance are less than their respective preset thresholds, the large-area planar component is deemed to have passed the verification. If either of these conditions is not met, the large-area planar component is identified as a differential component and output along with the differential components in the door and window components.
[0058] In this embodiment, by merging coplanar mesh surfaces and selecting the surface with the largest area, a comparison benchmark corresponding to the main surface of a large-area planar component is established. Through plane fitting and joint judgment of included angle and vertical distance, the degree of conformity between the on-site component and the design requirements can be evaluated from two aspects: surface direction and normal position. This helps to identify the surface tilt or positional offset of components such as walls and floors.
[0059] In one embodiment, after registering the scale-restored 3D point cloud with the BIM model to the same coordinate system, independent polyhedral components are determined according to the component categories in the BIM model, and the registered 3D point cloud is used to perform difference verification on the independent polyhedral components. Independent polyhedral components may include column components corresponding to the IfcColumn category and beam components corresponding to the IfcBeam category.
[0060] Specifically, the independent polyhedral components are converted into mesh models. The orientation of each mesh face is determined based on the mesh face normal vector. The mesh faces are then excluded by combining the Boolean operation results between the independent polyhedral components and adjacent components, as well as the mesh faces that are obscured by floor slabs or other adjacent components. For example, the top and bottom surfaces of a column component may be obscured by a floor slab, and some sides of a wall-mounted or corner column may be hidden within the wall.
[0061] After excluding the obscured mesh surfaces, the mesh surfaces located on the same plane are merged based on the normal vectors and corner coordinates of the remaining mesh surfaces to obtain the verification reference surfaces. Each verification reference surface is used to represent the design position and orientation of the corresponding exposed surface of the independent polyhedral component.
[0062] Based on the edge contour range of each verification reference plane, a preset tolerance distance is extended along the positive and negative directions of the corresponding normal vector to form a corresponding spatial interception range. Points within this range are intercepted from the registered 3D point cloud, and a random sampling consensus algorithm is used for plane fitting to obtain the measured plane of the point cloud.
[0063] Points that meet the criteria for in-plane fitting are identified as in-plane fitting points, and their centroids are calculated. Thus, the actual orientation of the corresponding component surface is represented by the measured plane of the point cloud, and the concentration position of the surface point cloud participating in the fitting is represented by the centroids of the in-plane fitting points.
[0064] Calculate the angle between the measured plane of the point cloud and the corresponding verification reference plane, as well as the perpendicular distance from the centroid to the corresponding verification reference plane. The plane angle is used to evaluate the directional deviation between the actual surface and the design surface, and the perpendicular distance is used to evaluate the normal position deviation of the actual surface relative to the design surface. When comparing plane angles, parallel planes with the same or opposite normal vectors are treated as planes with the same direction.
[0065] When both the plane angle and the vertical distance are less than their respective preset thresholds, the corresponding verification reference surface is marked as a hit. The number of hit verification reference surfaces is counted, and their proportion of the total number of verification reference surfaces is calculated to obtain the multi-face hit rate. Among them, all verification reference surfaces refer to the verification reference surfaces obtained after excluding occluded mesh surfaces and completing coplanar merging.
[0066] When the multi-faceted hit rate reaches the preset hit rate threshold, the independent polyhedral component is deemed to have passed the verification. Otherwise, the independent polyhedral component is marked as a differential component and output together with the differential components in the door and window components.
[0067] In this embodiment, by excluding surfaces obscured by adjacent components, the impact of missing point clouds on the verification results of hidden surfaces is reduced. By performing orientation and distance verification on multiple exposed surfaces separately, and then making an overall judgment based on the multi-surface hit rate, the degree of conformity between the exposed surfaces of columns, beams, and other components and the design surfaces can be comprehensively evaluated, which helps to identify the positional or dimensional deviations of the components.
[0068] In one embodiment, after registering the scale-restored 3D point cloud with the BIM model to the same coordinate system, pipeline components are determined according to the component categories in the BIM model, and the registered 3D point cloud is used to perform difference verification on the pipeline components.
[0069] Specifically, the pipeline network model composed of pipeline components is analyzed to determine the elbows and branch nodes, and the model is divided into multiple straight pipe segments along the elbows and branch nodes. The theoretical centerline, theoretical start point, and theoretical end point of each straight pipe segment are obtained. The theoretical centerline is used to represent the design direction of the straight pipe segment, and the theoretical start point and theoretical end point are used to determine the design location and length range of the straight pipe segment.
[0070] Based on the pipe diameter and preset tolerance distance of each straight pipe segment, a cylindrical spatial bounding box is constructed with the corresponding theoretical centerline as its axis. The cylindrical spatial bounding box extends along the corresponding straight pipe segment, and its radial range is determined by combining the pipe diameter and tolerance distance. Based on the cylindrical spatial bounding box, the point cloud within the corresponding range is extracted from the registered 3D point cloud.
[0071] In densely packed pipework scenarios, the captured point cloud may contain point clouds of adjacent pipes or other objects. Therefore, density clustering is performed on the captured point cloud, for example, using the DBSCAN algorithm, to divide points with different clustering distributions in space into multiple point cloud clusters, and the point cloud cluster closest to the theoretical centerline is selected as the candidate point cloud cluster for the pipe segment.
[0072] The principal component analysis algorithm is used to process the pipe segment candidate point cloud cluster. Specifically, the centroid of the pipe segment candidate point cloud cluster is calculated, a covariance matrix is constructed, and eigenvalue decomposition is performed on the covariance matrix. The feature vector corresponding to the maximum eigenvalue is extracted and used as the measured direction vector of the pipe segment candidate point cloud cluster. The line passing through the centroid and parallel to the measured direction vector is the measured centerline obtained by fitting.
[0073] The points in the pipe segment candidate point cloud cluster are projected onto the measured centerline, and the extreme points at both ends of the projected position are extracted. Since the direction vector obtained by principal component analysis has two equivalent representations in forward and reverse directions, when determining the corresponding relationship of the end points, the forward or reverse direction of the measured direction vector is selected according to the orientation from the theoretical starting point to the theoretical ending point, and the measured starting point and measured ending point are determined according to this direction, so that the two correspond to the theoretical starting point and theoretical ending point respectively.
[0074] The angle between the measured centerline and the theoretical centerline is calculated, and the distance from the measured starting point to the theoretical starting point and the distance from the measured ending point to the theoretical ending point are calculated respectively. When the angle is less than the preset direction error threshold and the distances between the two end points are both less than the preset end point deviation threshold, it is determined that the straight pipe segment is qualified. Otherwise, the corresponding pipeline component is identified as a difference component.
[0075] For pipeline components containing multiple straight pipe segments, the verification of each straight pipe segment is performed in sequence. When there is a straight pipe segment that fails the verification, the pipeline component to which it belongs is identified as a difference component, and output together with the difference components in the door and window components.
[0076] In this embodiment, by dividing the pipe network including elbows and branches into straight pipe segments, each pipe segment can be verified by means of centerline comparison. Density clustering is used to reduce the interference of adjacent pipelines on the candidate point cloud, and the judgment is combined with the centerline angle and the corresponding end point distance, which can comprehensively evaluate the degree of compliance of the pipeline's orientation, spatial position and length with the design requirements.
[0077] In one embodiment, after the door and window components whose aggregation degree ratio is not greater than the qualification threshold are identified as difference components, the point cloud distribution corresponding to the difference components is displayed in two different colors.
[0078] Specifically, the effective frame point cloud cluster corresponding to the difference component is rendered with a first color, and the remaining point clouds in the corresponding global bounding box point cloud cluster are rendered with a second color. For example, the effective frame point cloud cluster is rendered green, and the point clouds in the global bounding box point cloud cluster that are not included in the effective frame point cloud cluster are rendered blue.
[0079] In the local verification view, the BIM geometry of the differing components is overlaid with the rendered global bounding box point cloud clusters in the same coordinate system. The first color represents the point cloud that falls within the bounding box of the frame space, and the second color represents the point cloud that is within the overall capture range of the doors and windows but does not fall within the bounding box of the frame space.
[0080] By overlaying the data, the correspondence between the on-site point cloud and the designed positions of doors and windows can be observed. When the positions of doors and windows deviate from their designed positions, the misalignment area between the frame point cloud and the designed frame can be viewed. When there are many solid wall surface point clouds within the designed opening area, the occupancy of the corresponding area can be observed based on the distribution of the second-color point cloud.
[0081] In this embodiment, the spatial distribution of point clouds corresponding to the aggregation ratio is presented intuitively through dual-color rendering and overlay display in the same coordinate system. This allows reviewers to view the difference areas in conjunction with the design frame position, providing a basis for on-site verification and rectification positioning.
[0082] In one specific application embodiment, the third-floor corridor and elevator lobby of an office building were used as the inspection area. Three visually coded targets were placed at locations with clearly defined geometric features, such as corners, and without obstructions, as described above. Inspection personnel used a handheld panoramic camera to capture approximately 120 seconds of video footage, extracting one frame every 0.5 seconds to obtain an image sequence. This image sequence was then input into a visual 3D reconstruction tool composed of OpenMVG and OpenMVS to generate a 3D point cloud covering the inspection area.
[0083] The spatial location of the 3D point cloud and visually coded target at the construction site is as follows: Figure 2 As shown. The relative 3D coordinates of each target center in the 3D point cloud coordinate system are obtained and paired with the absolute 3D coordinates in the corresponding BIM model coordinate system. A random sampling consensus algorithm combined with singular value decomposition is used to solve the similarity transformation matrix, performing scale restoration and spatial registration of the 3D point cloud to place it in the same coordinate system as the BIM model using the IFC format.
[0084] For walls, floors, and roof slabs within the inspection area, their main surfaces are extracted as the design reference plane, and candidate point clouds near the design reference plane are captured. Plane fitting is performed on the candidate point cloud with at least 600 points to obtain the measured plane of the point cloud, and the centroids of the fitted inliers are calculated. Plane fitting results are provided. Figure 3 When the vertical distance from the centroid to the design reference plane is less than 0.08 meters, and the angle between the measured plane of the point cloud and the design reference plane is less than 0.05 radians, the corresponding surface is deemed to have passed the verification; otherwise, it is recorded as having a discrepancy. For column components, the verification method for independent polyhedral components described above is followed, and an overall judgment is made based on the fit and hit of multiple verification reference planes.
[0085] For door and window components, the number of points in the global bounding box point cloud cluster and the effective frame point cloud cluster are counted separately, and the aggregation ratio of the effective frame point cloud cluster to the global bounding box point cloud cluster is calculated. In this specific application embodiment, the qualified threshold is set to 60%. When the aggregation ratio is greater than 60%, the construction position of the door and window component is deemed qualified; otherwise, it is marked as a defective component.
[0086] In the local verification view of door and window components, the effective frame point cloud cluster is rendered in green, and the remaining point clouds in the global bounding box point cloud cluster are rendered in blue, and then overlaid on the corresponding door and window components. For example... Figure 7 As shown, the point cloud corresponding to the qualified door components is mainly concentrated near the outer solid frame. Figure 8 As shown, when the actual door opening is misaligned with the designed location, a large number of blue dot clouds appear within the overall intercepted area that do not fall into the frame space enclosure, causing the aggregation ratio to be lower than the qualified threshold, thus identifying the door and window component as a differential component.
[0087] After verifying each component, the components with discrepancies are superimposed and displayed with the corresponding field point clouds in the same coordinate system, and the areas with deviations are highlighted in red. Figure 4 and Figure 5 The differences between wall components and column components are shown separately. Figure 6 The system displays a comprehensive overview of the differences between multiple components. It also outputs the unique GlobalId identifier of the differing component, the component category, and the verification result. This allows reviewers to locate the differences based on component information and point cloud distribution, providing a basis for on-site verification and rectification.
[0088] like Figure 9 As shown, this application also provides a difference comparison system 300 based on 3D point cloud and BIM model, including: The point cloud registration module 302 is used to acquire video images of the construction site and the BIM model in IFC format, perform visual three-dimensional reconstruction on the video images to generate the three-dimensional point cloud, perform scale restoration on the three-dimensional point cloud, and register the scale-restored three-dimensional point cloud with the BIM model to the same coordinate system. The design reference plane extraction module 304 is used to determine the door and window components according to the component categories in the BIM model, extract the planar geometry of the outer solid frame of the door and window components, and obtain multiple design reference planes. The frame space bounding box construction module 306 is used to construct the corresponding frame space bounding box by extending a preset tolerance distance along the positive and negative directions of the normal vector of each design reference plane according to the edge contour range of each design reference plane. The point cloud extraction module 308 is used to obtain a three-dimensional directed bounding box containing the outer physical frame and its internal area of the door and window component, expand the three-dimensional directed bounding box outward, and extract the point cloud located in the expanded three-dimensional directed bounding box from the registered three-dimensional point cloud to obtain a global bounding box point cloud cluster, and extract the point cloud located in any of the frame space bounding boxes from the global bounding box point cloud cluster to obtain an effective frame point cloud cluster. The difference determination module 310 is used to calculate the ratio of the number of points in the effective frame point cloud cluster to the number of points in the global bounding box point cloud cluster to obtain the aggregation ratio. The door and window components whose aggregation ratio is greater than a preset qualified threshold are determined to be qualified in construction position, and the door and window components whose aggregation ratio is not greater than the qualified threshold are identified as difference components and output.
[0089] Furthermore, the point cloud registration module includes: An absolute coordinate acquisition unit is used to identify multiple visually encoded targets in the video image and obtain the absolute three-dimensional coordinates of the target center of each visually encoded target in the BIM model coordinate system by decoding. The relative coordinate determination unit is used to extract the center pixel coordinates of each visually encoded target in multiple frames of images, combine them with the camera intrinsic and extrinsic parameters obtained from the visual 3D reconstruction, and then perform multi-view... Figure 3 Angle measurement determines the relative three-dimensional coordinates of the center of each target in the three-dimensional point cloud coordinate system; The scale recovery and registration unit is used to pair the relative three-dimensional coordinates corresponding to the same target center with the absolute three-dimensional coordinates, solve the similarity transformation matrix using a random sampling consensus algorithm combined with a singular value decomposition algorithm, and transform the three-dimensional point cloud according to the similarity transformation matrix to complete scale recovery and registration.
[0090] Each module in the above system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0091] like Figure 10 As shown, this application also provides a terminal device, including a processor 401 and a memory 402. The memory 402 stores a program or instructions that can run on the processor 401. When the program or instructions are executed by the processor 401, they implement the various steps of the above-described method embodiment for comparing the differences between three-dimensional point clouds and BIM models, and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0092] This application also provides a readable storage medium storing a program or instructions that, when executed by a processor, implement the various processes of the above-described method embodiments and achieve the same technical effects. To avoid repetition, these will not be described again here.
[0093] Readable storage media include computer-readable storage media, such as computer read-only memory, random access memory, magnetic disks, or optical disks.
[0094] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element. Furthermore, it should be noted that the scope of the methods and systems in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as a read-only memory). The device includes a number of instructions in a ROM (random access memory), RAM (magnetic disk), or optical disk to cause a terminal to execute the methods described in the various embodiments of this application.
[0096] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for comparing differences between a three-dimensional point cloud and a BIM model, characterized in that, The method includes: Acquire video footage of the construction site and a BIM model in IFC format; perform visual 3D reconstruction on the video footage to generate a 3D point cloud; perform scale restoration on the 3D point cloud; and register the scale-restored 3D point cloud with the BIM model to the same coordinate system. Based on the component categories in the BIM model, determine the door and window components, extract the planar geometry of the outer solid frame of the door and window components, and obtain multiple design reference planes; Based on the edge contour range of each design reference plane, a preset tolerance distance is extended along the positive and negative directions of the normal vector of each design reference plane to construct the corresponding frame space bounding box; Obtain a three-dimensional oriented bounding box containing the outer physical frame and its internal area of the door and window component. Expand the three-dimensional oriented bounding box outward and extract the point cloud located within the expanded three-dimensional oriented bounding box from the registered three-dimensional point cloud to obtain a global bounding box point cloud cluster. Extract the point cloud located within any of the frame space bounding boxes from the global bounding box point cloud cluster to obtain an effective frame point cloud cluster. Calculate the ratio of the number of points in the effective frame point cloud cluster to the number of points in the global bounding box point cloud cluster to obtain the aggregation ratio. Determine the door and window components whose aggregation ratio is greater than a preset qualified threshold as qualified construction positions, and identify the door and window components whose aggregation ratio is not greater than the qualified threshold as differential components and output them.
2. The method of claim 1, wherein, Scale restoration is performed on the 3D point cloud, and the scale-restored 3D point cloud is registered with the BIM model to the same coordinate system, including: Identify multiple visually coded targets in the video image, and obtain the absolute three-dimensional coordinates of the target center of each visually coded target in the BIM model coordinate system by decoding; Extract the center pixel coordinates of each visually encoded target in multiple frames of images, combine them with the camera intrinsic and extrinsic parameters obtained by the visual 3D reconstruction, and determine the relative 3D coordinates of the center of each target in the 3D point cloud coordinate system by multi-view triangulation. The relative three-dimensional coordinates corresponding to the same target center are paired with the absolute three-dimensional coordinates. The similarity transformation matrix is solved by combining the random sampling consensus algorithm with the singular value decomposition algorithm. The three-dimensional point cloud is then transformed according to the similarity transformation matrix to complete scale restoration and registration.
3. The method of claim 2, wherein, Before acquiring the video images, the visual coding targets are deployed as follows: Starting from the reference position selected in the BIM model, the center of the virtual target is determined along the surface of the BIM model by a preset offset, and the absolute three-dimensional coordinates of the virtual target center are encoded and stored in the corresponding visual coded target. Based on the reference position and the preset offset, the visually encoded target is deployed at the construction site so that the center of the target corresponds to the center of the corresponding virtual target in space.
4. The method of claim 1, wherein, After registering the scale-restored 3D point cloud with the BIM model to the same coordinate system, the following checks are performed on the large-area planar components in the BIM model: Merge the coplanar mesh surfaces of the large-area planar components, and select the surface with the largest area after merging as the reference surface of the planar component; Within a preset tolerance range of the reference plane of the planar component, the registered three-dimensional point cloud is extracted, and the measured plane of the point cloud is fitted to determine the centroid of the fitted local points. When the angle between the measured plane of the point cloud and the reference plane of the planar component, and the vertical distance from the centroid to the reference plane of the planar component are both less than their respective preset thresholds, the large-area planar component is deemed to be qualified; otherwise, the large-area planar component is identified as the differential component and output together with the differential components in the door and window components.
5. The method of claim 1, wherein, After registering the scale-restored 3D point cloud with the BIM model to the same coordinate system, independent polyhedral components are determined according to the component categories in the BIM model. The registered 3D point cloud is then used to perform a difference check on the independent polyhedral components. The difference check includes: The independent polyhedral component is converted into a mesh model. Based on the mesh surface normal vector of the mesh model and the Boolean operation results between the independent polyhedral component and adjacent components, the mesh surfaces that are blocked by the floor slab or other adjacent components are excluded, and the remaining coplanar mesh surfaces are merged into the verification reference surface. Based on the edge contour range of each verification reference plane, a preset tolerance distance is extended along the positive and negative directions of the normal vector of each verification reference plane. Points within the extended range in the registered three-dimensional point cloud are extracted, and the point cloud measured plane is fitted using a random sampling consensus algorithm. The centroid of the fitted inliers is then calculated. When the angle between the measured plane of the point cloud and the corresponding verification reference plane, and the vertical distance from the centroid to the corresponding verification reference plane are both less than their respective preset thresholds, the corresponding verification reference plane is marked as a hit. The proportion of the number of the verification reference surfaces that are matched to the hit is calculated to obtain the multi-face hit rate. When the multi-face hit rate reaches the preset hit rate threshold, the independent polyhedral component is determined to be qualified. Otherwise, the independent polyhedral component is identified as the difference component and output together with the difference component in the door and window component.
6. The method according to claim 1, characterized in that, After registering the scale-restored 3D point cloud with the BIM model to the same coordinate system, pipeline components are determined according to the component categories in the BIM model, and the registered 3D point cloud is used to perform difference verification on the pipeline components. The difference verification includes: The pipeline network model composed of the pipeline components is divided into straight pipe segments along the bends and branch nodes, and the theoretical center line, theoretical starting point and theoretical ending point of each straight pipe segment are obtained. Based on the pipe diameter and preset tolerance distance of each straight pipe segment, a cylindrical spatial bounding box is constructed with the corresponding theoretical center line as the axis. Density clustering is performed on the point cloud located in the cylindrical spatial bounding box in the registered three-dimensional point cloud, and the point cloud cluster closest to the theoretical center line is selected as the candidate point cloud cluster of the pipe segment. The principal component analysis algorithm is used to fit the measured centerline of the candidate point cloud cluster of the pipe segment. The points in the candidate point cloud cluster of the pipe segment are projected onto the measured centerline. The extreme points at both ends of the projection position are extracted to obtain the measured starting point and measured ending point corresponding to the theoretical starting point and the theoretical ending point, respectively. When the angle between the measured centerline and the corresponding theoretical centerline is less than a preset direction error threshold, and the distances from the measured starting point and the measured ending point to the corresponding theoretical starting point and the theoretical ending point are both less than a preset endpoint deviation threshold, the straight pipe section is deemed to be qualified. Otherwise, the corresponding pipeline component is identified as the difference component and output together with the difference component in the door and window components.
7. The method according to claim 1, characterized in that, The following steps are taken to identify and output the door and window components whose aggregation ratio is not greater than the qualified threshold as differential components: The effective bounding box point cloud clusters corresponding to the difference components and the remaining point clouds in the corresponding global bounding box point cloud clusters are rendered using two different colors respectively. In the local verification view, the difference components and the rendered global bounding box point cloud cluster are superimposed and displayed in the same coordinate system.
8. A system for comparing the differences between 3D point clouds and BIM models, characterized in that, include: The point cloud registration module is used to acquire video images of the construction site and the BIM model in IFC format, perform visual 3D reconstruction on the video images to generate a 3D point cloud, perform scale restoration on the 3D point cloud, and register the scale-restored 3D point cloud with the BIM model to the same coordinate system. The design reference plane extraction module is used to determine the door and window components according to the component categories in the BIM model, extract the planar geometry of the outer solid frame of the door and window components, and obtain multiple design reference planes. The frame space bounding box construction module is used to construct the corresponding frame space bounding box by extending a preset tolerance distance along the positive and negative directions of the normal vector of each design reference plane according to the edge contour range of each design reference plane. The point cloud extraction module is used to obtain a three-dimensional oriented bounding box containing the outer physical frame and its internal area of the door and window components, expand the three-dimensional oriented bounding box outward, and extract the point cloud located in the expanded three-dimensional oriented bounding box from the registered three-dimensional point cloud to obtain a global bounding box point cloud cluster. The point cloud located in any of the frame space bounding boxes is extracted from the global bounding box point cloud cluster to obtain an effective frame point cloud cluster. The difference determination module is used to calculate the ratio of the number of points in the effective frame point cloud cluster to the number of points in the global bounding box point cloud cluster to obtain the aggregation ratio. The door and window components whose aggregation ratio is greater than a preset qualified threshold are determined to be qualified in construction positions, and the door and window components whose aggregation ratio is not greater than the qualified threshold are identified as difference components and output.
9. A terminal device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, implements the method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method described in any one of claims 1 to 7.
