A method, device and storage medium for splicing point cloud data of house type

By dividing the house into multiple measurement stations and matching the design drawing with the point cloud data, the problem of low efficiency and low accuracy of point cloud data splicing in the existing technology is solved, and the rapid construction of the point cloud model of the house type is achieved. Construction and efficient splicing.

CN118608381BActive Publication Date: 2024-10-18HENAN ZHIFU DIGITAL TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411069640.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-10-18
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

In the existing technology, the splicing efficiency of point cloud data of house types is low and the accuracy is not high, which results in a heavy workload for front-end scanning personnel and is prone to errors, affecting the progress of the project.

Method used

By dividing the house into multiple measurement stations, using the design drawings to match point cloud data, constructing the design feature data and scanning feature data of the measurement stations, and calculating the relative position relationships of the measurement stations and the relative position relationships of the wall boundaries, we can achieve Automatic splicing of point cloud data.

Benefits of technology

It improves the efficiency and accuracy of point cloud splicing, reduces the workload of front-end scanners, reduces manual participation, and enables the rapid construction of house type point cloud models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608381B_ABST
    Figure CN118608381B_ABST
Patent Text Reader

Abstract

The present invention discloses a point cloud data splicing method for a house type, comprising: segmenting the house type according to a preset station segmentation rule to obtain a plurality of measuring stations; constructing design feature data according to the design drawing of each measuring station and constructing scanning feature data according to the point cloud data of the measuring station, then matching the design feature data and scanning feature data of each measuring station to obtain the house zoom ratio and the relative position relationship of the points in the point cloud data of each measuring station, then using the relative position relationship of the measuring stations in the design drawing to perform point cloud splicing on the plurality of measuring stations to obtain a point cloud model of the house type, and the present invention improves the point cloud splicing efficiency and accuracy when implementing point cloud data splicing. The present invention also discloses a point cloud data splicing device and a storage medium for house types.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to point cloud data splicing, and in particular to a point cloud data splicing method, device and storage medium for house layout. Background Art

[0002] At present, the scanning of houses is generally performed by scanning each space of the actual house with a laser scanning device to obtain the point cloud data of each space, and then the point cloud data of multiple spaces of a house are spliced ​​to form a point cloud model of the house. However, when splicing the house, it is necessary to know the relative position relationship of multiple spaces of the house before the point cloud data can be spliced. The current method is mainly that the scanner divides the house type in advance by the back-end staff when obtaining the point cloud data of each space, and then pre-numbers each space and sets the scanning order. The scanner scans in sequence according to the pre-set order, and when uploading the system, it is also necessary to indicate the number of the uploaded point cloud data of each space, so that when the point cloud data of the house type is spliced ​​later, the position relationship of multiple spaces is determined by the numbering and scanning order, and then the point cloud data of multiple spaces are spliced ​​to form a point cloud model of the house type. However, this method requires strong interaction between the front-end and back-end staff, and also increases the workload of the front-end scanner. In the actual measurement process, a front-end scanner often has to process a large number of houses in batches, which results in a huge workload for the front-end scanner and is prone to errors. Once an error occurs, it will directly affect the stitching errors of the subsequent point cloud data and affect the progress of the project. Summary of the invention

[0003] In order to overcome the shortcomings of the prior art, one of the objects of the present invention is to provide a point cloud data stitching method for house types, which can solve the problems of poor stitching efficiency and low stitching accuracy of real measurement data of house types in the prior art.

[0004] The second object of the present invention is to provide a point cloud data splicing device for a house type, which can solve the problems of poor splicing efficiency and low splicing accuracy of real measurement data of house types in the prior art.

[0005] The third object of the present invention is to provide a computer storage medium, which can solve the problems of poor splicing efficiency and low splicing accuracy of real measurement data of apartment types in the prior art.

[0006] One of the purposes of the present invention is achieved by the following technical solution:

[0007] A point cloud data splicing method for a house type, the point cloud data splicing method comprising:

[0008] Station division step: obtaining a house type and dividing the house type according to a preset station division rule to obtain a plurality of measurement stations;

[0009] Design drawing processing step: obtaining and deriving a design drawing of each measuring station according to the design drawing of the house type, and then constructing design feature data of each measuring station according to the design drawing of each measuring station; wherein the design feature data includes a first optimal rectangle and a relative position relationship between points on each wall boundary in the design drawing of the corresponding measuring station and the first optimal rectangle; and deriving a relative position relationship of the measuring stations and a relative position relationship of multiple wall boundaries in the design drawing of each measuring station according to the position of the design drawing of each measuring station in the design drawing of the house type;

[0010] Point cloud data processing step: scanning each measuring station according to a preset scanning rule to obtain point cloud data of each measuring station, and constructing scanning feature data of each measuring station according to the point cloud data of each measuring station; wherein the scanning feature data includes the second optimal rectangle and the relative position relationship between the points on each wall boundary in the point cloud data of the corresponding measuring station and the second optimal rectangle;

[0011] Matching step: according to the first optimal rectangle in the design feature data of each measuring station and the second optimal rectangle in the scanning feature data, the relative position relationship between the first optimal rectangle and the second optimal rectangle is obtained by matching, and at the same time, according to the relative position relationship between the points on each wall boundary in the design drawing of the measuring station and the first optimal rectangle, the relative position relationship between the points on each wall boundary in the point cloud data of the measuring station and the second optimal rectangle, and the relative position relationship between the first optimal rectangle and the second optimal rectangle, the matching relationship between the points on each wall boundary in the design drawing of the measuring station and the points on each wall boundary in the point cloud data is obtained, and then the relative position relationship between the multiple wall boundaries in the design drawing of each measuring station is obtained, and then the relative position relationship between the points in the point cloud data of each measuring station is obtained;

[0012] Stitching step: stitching the point cloud data of all measuring stations of the house type according to the relative position relationship of the points in the point cloud data of each measuring station and the relative position relationship of the measuring stations to obtain a point cloud model of the house type.

[0013] Furthermore, the matching step of obtaining the relative position relationship between the first optimal rectangle and the second optimal rectangle by matching the first optimal rectangle in the design feature data of each measuring station with the second optimal rectangle in the scanning feature data also includes: firstly matching the first optimal rectangle and the second optimal rectangle of each measuring station to obtain the scaling ratio of each measuring station and the relative orientation of the first optimal moment and the second optimal rectangle; then calculating the average value of the scaling ratios of all measuring stations, and correcting the scaling ratio of each measuring station according to the average value of the scaling ratios, and then using the corrected scaling ratio as the scaling ratio of the house type; wherein the average value of the scaling ratio refers to the average value of the scaling ratios of all measuring stations.

[0014] Furthermore, the splicing step specifically includes:

[0015] Sorting step: sorting multiple measuring stations according to the relative position relationship of the measuring stations and the preset splicing order;

[0016] First splicing step: taking two measuring stations from the sorting results and splicing the point cloud data of the two measuring stations through a point cloud splicing algorithm according to the relative position relationship of the points in the point cloud data of the two measuring stations to form the point cloud data of a new splicing station, and at the same time obtaining the relative position relationship of multiple wall boundaries in the point cloud data of the new splicing station;

[0017] The re-stitching step is as follows: taking the next measuring station from the sorting result, and stitching the point cloud data of the new stitching station with the point cloud data of the next measuring station through a point cloud stitching algorithm according to the relative position relationship of the points in the point cloud data of the new stitching station and the relative position relationship of the points in the point cloud data of the next measuring station to form the point cloud data of the new stitching station and the relative position relationship of the points in the point cloud data of the new stitching station, and then executing the re-stitching step; until all the measuring stations are stitched together, the point cloud model of the house type is obtained.

[0018] Furthermore, the station division step further includes:

[0019] Determination step: determine whether there is a repeated scanning coverage area between any two adjacent measuring stations. If not, add a connecting station between the two adjacent measuring stations, and record the relative position relationship between the connecting station and the two measuring stations;

[0020] The point cloud data processing step further includes: scanning each connected measuring station according to a preset calibrated scanning direction and scanning center point to obtain point cloud data of each connected measuring station.

[0021] Furthermore, the first splicing step specifically includes: selecting two measurement stations according to the sorting result, and determining whether there is a connecting station between the two measurement stations:

[0022] If yes, then the point cloud data of the two measuring stations and the point cloud data of the connecting station are spliced ​​according to the relative position relationship of the multiple wall boundaries in the point cloud data of the two measuring stations, the relative position relationship between the connecting station and the two measuring stations, and the point cloud splicing algorithm to obtain the point cloud data of the new splicing station and the relative position relationship of the multiple wall boundaries in the point cloud data of the new splicing station; then the re-splicing step is performed;

[0023] If not, then the point cloud data of the two measuring stations are spliced ​​according to the relative position relationship of the multiple wall boundaries in the point cloud data of the two measuring stations and the point cloud splicing algorithm to form the point cloud data of the new splicing station and the relative position relationship of the multiple wall boundaries in the point cloud data of the new splicing station, and then the re-splicing step is performed;

[0024] The rejoining step further includes: selecting the next measuring station according to the sorting result, and determining whether there is a connecting station between the next measuring station and the new jointing station:

[0025] If yes, then the point cloud data of the next measuring station, the point cloud data of the connecting station and the point cloud data of the new splicing station are spliced ​​according to the point cloud splicing algorithm to form the point cloud data of the new splicing station and the relative position relationship of the multiple wall boundaries in the point cloud data of the new splicing station, and then the re-splicing step is performed;

[0026] If not, the point cloud data of the next measuring station and the point cloud data of the new splicing station are spliced ​​according to the point cloud splicing algorithm to form the point cloud data of the new splicing station and the relative position relationship of the multiple wall boundaries in the point cloud data of the new splicing station, and then the re-splicing step is performed;

[0027] After all the measuring stations are spliced ​​together, the point cloud model of the house type is obtained.

[0028] Furthermore, the point cloud data processing step also includes: scanning each measuring station of the house type through a three-dimensional laser scanning device according to preset scanning rules to obtain point cloud data of each measuring station; wherein the preset scanning rules include the scanning direction and / or scanning center point of each measuring station.

[0029] Furthermore, the design drawing processing step specifically includes:

[0030] Design drawing segmentation step: obtaining a floor plan design drawing of a house type, and segmenting the floor plan design drawing of the house type according to the divided multiple measuring stations to obtain a design drawing of each measuring station;

[0031] The first rectangle construction step: according to the design drawing of each measuring station, all the wall boundaries of each measuring station are obtained, and then according to all the wall boundaries of each measuring station and the preset rules, the first optimal rectangle of each measuring station is constructed;

[0032] The point cloud data processing step specifically includes:

[0033] Point cloud plane simulation step: simulating the points in the point cloud data of each measuring station to obtain the corresponding point cloud plane; wherein the point cloud plane of each measuring station is obtained by projecting all or part of the points in the point cloud data of the corresponding measuring station within the coordinate XOY;

[0034] Second rectangle construction step: deriving all wall boundaries of each measuring station according to the point cloud plane map of each measuring station, and then constructing a second optimal rectangle of each measuring station according to all wall boundaries of each measuring station and preset rules;

[0035] The preset rules specifically include: first, constructing a plurality of rectangles according to all wall boundaries of a measuring station and the calibration points of the measuring station, then obtaining all corresponding wall boundary points according to each rectangle and connecting each wall boundary point with the calibration point of the measuring station to obtain a plurality of line segments and line segment angles that meet the requirements; finally, finding the line segment angle corresponding to each rectangle and selecting a rectangle from a plurality of rectangles according to the sum of the line segment angles of each rectangle as the corresponding optimal rectangle of the measuring station; the line segment angle that meets the requirements specifically includes: the two sides of the line segment angle are both line segments connecting the wall boundary point and the calibration point;

[0036] A rectangle among several rectangles is constructed based on all wall boundaries of a measurement station and the calibration points of the measurement station, and the rectangle satisfies the following conditions: the calibration points are located in the corresponding rectangle, and at least one side of the rectangle coincides with a wall boundary or coincides with a part of a wall boundary;

[0037] When the corresponding optimal rectangle is the first optimal rectangle, the calibration point of the measurement station is the center point of the design drawing of the measurement station; when the corresponding optimal rectangle is the second optimal rectangle, the calibration point of the measurement station is the scanning center point of the measurement station.

[0038] Furthermore, the measuring station division step specifically includes: dividing the house type into a plurality of measuring stations according to the number of rooms in the house type, and the number of the measuring stations is the same as the number of rooms, and each room is a measuring station.

[0039] The second object of the present invention is achieved by adopting the following technical solution:

[0040] A point cloud data stitching device for a house type comprises a memory and a processor, wherein the memory stores a point cloud data stitching program running on the processor, the point cloud data stitching program being a computer program, and the processor implements the steps of a point cloud data stitching method for a house type adopted as one of the purposes of the present invention when executing the point cloud data stitching program.

[0041] The third object of the present invention is achieved by adopting the following technical solution:

[0042] A computer-readable storage medium stores a point cloud data stitching program, which is a computer program. When the point cloud data stitching program is executed by a processor, the point cloud data stitching program implements the steps of a point cloud data stitching method for a house type adopted as one of the purposes of the present invention.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] The present invention divides the house into multiple measuring stations according to the house type, and then matches the design drawings of the measuring stations with the point cloud data to obtain the relative position relationship of the points in the point cloud data of the measuring stations, and then splices the point clouds of the measuring stations according to the relative position relationship of the measuring stations in the design drawings of the house type to obtain the point cloud model of the house type. The present invention matches the design drawings with the point cloud data to realize the relative position relationship of the points in the point cloud data according to the known information in the design drawings, provides better initial conditions for the point cloud splicing algorithm, improves the splicing efficiency and splicing success rate of the point cloud splicing algorithm, and then realizes the rapid construction of the point cloud model of the house type. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A flow chart of a point cloud data splicing method for a house type provided by the present invention;

[0046] Figure 2 for Figure 1 Flow chart of step S2 in FIG.

[0047] Figure 3 for Figure 2 Flow chart of step S22 in FIG.

[0048] Figure 4 for Figure 1 Flowchart of step S3 in

[0049] Figure 5 for Figure 1 Flow chart of step S5 in FIG.

[0050] Figure 6 A schematic diagram of the relationship between the optimal rectangle of the measuring station provided by the present invention and the position of the measuring station;

[0051] Figure 7 for Figure 6 Schematic diagram of the connection between the wall and line segments of the measuring station. DETAILED DESCRIPTION

[0052] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0053] Embodiment 1

[0054] like Figure 1 As shown, the present invention provides a preferred embodiment, a point cloud data stitching method for a house type, comprising:

[0055] Step S1, obtaining a house type and segmenting the house type according to a preset measurement station segmentation rule to obtain a plurality of measurement stations.

[0056] In this embodiment, when the house type is divided into multiple measurement stations, the division is based on the number of rooms in the house type, and one room is used as a measurement station. Figure 1 The room layout of the house type will generally be displayed. Therefore, by splitting the house type's floor plan, multiple measurement stations of the house type can be obtained.

[0057] Step S2, obtaining and deriving a design drawing of each measuring station according to the floor plan design drawing of the house type, and then constructing and deriving design feature data of each measuring station according to the design drawing of each measuring station; wherein the design feature data includes a first optimal rectangle and a relative position relationship between points on each wall boundary in the design drawing of the corresponding measuring station and the first optimal rectangle; and deriving a relative position relationship of the measuring stations and a relative position relationship of multiple wall boundaries in the design drawing of each measuring station according to the position of the design drawing of each measuring station in the floor plan design drawing of the house type.

[0058] Specifically, the floor plan design drawings of a house type are generally given in the form of PDF, CAD, three-dimensional drawings and other files. During actual use, the above files are imported into the system. The system receives the floor plan design drawings of the house type and can divide the house type according to the divided measuring stations and the floor plan design drawings to obtain the design drawings of each measuring station.

[0059] At the same time, the relative position relationship of the measuring stations can be obtained according to their positions in the apartment design drawing, such as the measuring stations corresponding to the front, back, left and right of a measuring station.

[0060] Generally speaking, in order to obtain a point cloud model of a house type, it is necessary to first match the point cloud data obtained after scanning the house type with the design drawing, and then realize the splicing of the point cloud data according to the matching result and the ICP algorithm. In order to realize the matching of the point cloud data of the house type with the design drawing, this embodiment realizes the matching of the two by constructing an optimal rectangle that can characterize the measurement station. At the same time, when constructing the optimal rectangle, the relative position relationship between the points on the boundary of each wall in the design drawing of each measurement station and the first optimal rectangle is also obtained, so as to realize the matching of the measurement station through the optimal rectangle of the measurement station and the relative position relationship between the points and the optimal rectangle.

[0061] At the same time, while constructing design feature data based on the floor plan of the measuring station, the relative position relationship of the measuring station and the relative position relationship of multiple wall boundaries in the design drawing of each measuring station can also be obtained based on the position of the design drawing of the measuring station in the floor plan of the house.

[0062] More specifically, the design feature data of the measuring station constructed by processing the design drawing of the measuring station in this embodiment is as follows: Figure 2 As shown, step S2 also includes:

[0063] Step S21, obtaining a floor plan design drawing of a house type and dividing the floor plan design drawing of the house type according to the divided multiple measuring stations to obtain a design drawing of each measuring station.

[0064] Step S22: all wall boundaries of each measuring station are obtained according to the design drawing of each measuring station, and then the first optimal rectangle of each measuring station and the relative position relationship between the points on each wall boundary in the design drawing of the corresponding measuring station and the first optimal rectangle are constructed according to all the wall boundaries of each measuring station and the preset rules.

[0065] Among them, the first optimal rectangle in this embodiment is constructed by the wall boundaries and wall boundary points of the design drawing of the measuring station. Therefore, in the process of constructing the first optimal rectangle, the relative position relationship between the points on each wall boundary in the design drawing of each measuring station and the first optimal rectangle can also be obtained.

[0066] Furthermore, step S22 also provides a first optimal rectangle of the measuring station constructed according to all wall boundaries of the measuring station and preset rules, such as Figure 3 As shown, specifically:

[0067] Step S221: construct several rectangles based on all wall boundaries of a measuring station and the calibration points of the measuring station. The calibration point of the measuring station refers to any point in the design drawing of the measuring station, and the calibration point needs to be within the constructed rectangle. Generally, the center point of the design drawing is used as the calibration point of the measuring station. Figure 7 As shown, point O is the calibration point.

[0068] Each of the several rectangles constructed according to the wall boundary of the measuring station and the calibration points of the measuring station satisfies the following conditions: the calibration points are located in the corresponding rectangle, and at least one side of the rectangle coincides with a wall boundary or coincides with a part of a wall boundary.

[0069] Step S222: Obtain all corresponding wall boundary points according to each rectangle and connect each wall boundary point with the calibration point of the measuring station to obtain multiple line segments and line segment angles that meet the requirements.

[0070] The line segment angle that meets the requirements is specifically: both sides of the line segment angle are line segments connecting the wall boundary point and the calibration point.

[0071] Step S223: Find out the line segment angle corresponding to each rectangle and select a rectangle from a plurality of rectangles according to the sum of the line segment angles of each rectangle as the first optimal rectangle of the measurement station.

[0072] The line segment angle that meets the requirements is specifically: both sides of the line segment angle are line segments connecting the wall boundary point and the calibration point.

[0073] Specifically, Figure 6 and Figure 7 Survey stations shown:

[0074] The calibration point of the survey station is O.

[0075] The wall boundaries are: wall boundary AB, wall boundary BC, wall boundary CD, wall boundary DE, wall boundary EF, and wall boundary FA.

[0076] According to the construction conditions of the rectangle, multiple rectangles can be constructed, such as Figure 7 As shown, they are: rectangle AIBCEFG, rectangle AIBCDGA, and rectangle IBCD.

[0077] All the wall boundary points according to the constructed rectangle include: wall boundary point A, wall boundary point B, wall boundary point C, wall boundary point D, wall boundary point E, wall boundary point F, wall boundary point G, wall boundary point H, and wall boundary point I.

[0078] Then, each wall boundary point is connected to the calibration point to obtain multiple line segments, namely: line segment OA, line segment OB, line segment OC, line segment OD, line segment OE, line segment OF, line segment OG, line segment OH, and line segment OI.

[0079] The corresponding line segment angles of rectangle AIBCEFG include: ∠AOB, ∠BOC, ∠EOF, ∠FOA.

[0080] The corresponding line segment angles of rectangle AIBCDGA include: ∠AOB, ∠BOC, ∠COD, ∠GOA.

[0081] The corresponding line segment angles of rectangle IBCD include: ∠IOB, ∠BOC, ∠COD.

[0082] More preferably, in this embodiment, when selecting the first optimal rectangle, the rectangle corresponding to the maximum sum of angles is selected as the first optimal rectangle of the station to be matched. That is, since the sum of the angles of the line segments corresponding to rectangle AIBCEFG is the largest, the optimal rectangle of the measuring station is rectangle AIBCEFG.

[0083] Step S3, scan each measuring station according to the preset scanning rules to obtain the point cloud data of each measuring station, and construct the scanning feature data of each measuring station according to the point cloud data of each measuring station; wherein the scanning feature data includes the second optimal rectangle and the relative position relationship between the points on each wall boundary in the point cloud data of the corresponding measuring station and the second optimal rectangle. In this embodiment, the first optimal rectangle refers to the one constructed according to the floor plan of the measuring station, and the second optimal rectangle refers to the one constructed according to the point cloud data of the measuring station. For the convenience of distinction, this embodiment distinguishes between the first and the second, and there is no order of precedence in actual use.

[0084] Specifically, the point cloud data in this embodiment is obtained by scanning each measuring station of the house type through a three-dimensional laser scanner device. Specifically, each measuring station of the house type is scanned by a three-dimensional laser scanning device according to a preset scanning rule to obtain the point cloud data of each measuring station. Among them, the preset scanning rule includes the scanning direction and / scanning center point of each measuring station. In actual use, the scanning direction can be preset, and the scanning personnel need to scan according to the scanning direction, so that in subsequent matching, no feature identifiers (such as doors, windows, wire boxes, holes, etc.) are required, and the zoom ratio can be directly matched. Of course, the scanning direction can also be omitted, which is convenient for the scanning personnel to operate, and then in subsequent matching, in order to improve the matching accuracy, feature identifiers (such as doors, windows, wire boxes, holes, etc.) need to be added for matching. Among them, the scanning center point refers to the installation position of the scanning device during scanning, which can be pre-calibrated by the user, such as setting the scanning center point according to the center point of the first optimal rectangle generated by the system, and the scanning center point can also be given in a range, as long as the scanning device is within the corresponding coordinate range during scanning. Since the actual position error may cause the actual scanning center to be inconsistent with the set scanning center, after the point cloud data is obtained after the scanning is completed, the scanning center point can be corrected according to the point cloud data.

[0085] Similarly, in order to achieve the matching of point cloud data with the design drawing, this embodiment also obtains the scanning feature data of the measuring station based on the point cloud data when obtaining the design feature data from the design drawing. The scanning feature data includes the second optimal rectangle and the relative position relationship between the points on each wall boundary in the point cloud data of the corresponding measuring station and the second optimal rectangle. More specifically, this embodiment also provides a construction process for the second optimal rectangle, that is, as Figure 4 As shown, step S3 also includes:

[0086] Step S31, constructing a corresponding point cloud plane diagram according to the point simulation in the point cloud data of each measuring station, wherein the point cloud plane diagram of the measuring station is obtained by projecting all or part of the points in the point cloud data of the corresponding measuring station in the coordinate system XOY.

[0087] Since the optimal rectangle constructed in this embodiment is a two-dimensional plane diagram, for the point cloud data of each measuring station, the corresponding point cloud plane diagram is first constructed by simulation based on the point cloud data, that is, all or part of the points of the point cloud data of the measuring station are projected in the coordinate system XOY.

[0088] Step S32: Obtain all wall boundaries of each measuring station according to the point cloud plan of each measuring station, and then construct a second optimal rectangle of each measuring station according to all wall boundaries of each measuring station and preset rules.

[0089] Similarly, according to the method of constructing the first optimal rectangle in the aforementioned steps S221 to S223, after all the wall boundaries of each measuring station are obtained according to the point cloud data, the second optimal rectangle of the measuring station is constructed. Wherein, when constructing the second optimal rectangle of the measuring station, the calibration point in step S221 refers to the scanning center point of the measuring station. Wherein, the scanning center point refers to the scanning center point when the point cloud scanning is performed on the measuring station, and the point can be a point set in the preset scanning rule, or a point at the location where the actual scanning device is installed, or a scanning center point corrected by the point cloud data.

[0090] Similarly, while constructing the second optimal rectangle, the relative position relationship between the points on each wall boundary in the point cloud data of each measuring station and the second optimal rectangle can also be obtained. In this way, when the first optimal rectangle of the design feature data of the measuring station is subsequently matched with the second optimal rectangle of the scan feature data, the relative position relationship between the points on each wall boundary in the design drawing of the measuring station and the points on each wall boundary in the point cloud data of the measuring station can be obtained based on the relative position relationship between the points on each wall boundary in the design drawing of the measuring station and the first optimal rectangle and the relative position relationship between the points on each wall boundary in the point cloud data of the measuring station and the second optimal rectangle.

[0091] That is, step S4, the relative position relationship between the first optimal rectangle and the second optimal rectangle is obtained by matching the first optimal rectangle in the design feature data of each measuring station with the second optimal rectangle in the scanning feature data, and at the same time, the matching relationship between the points on each wall boundary in the design drawing of the measuring station and the points on each wall boundary in the point cloud data is obtained according to the relative position relationship between the points on each wall boundary in the design drawing of the measuring station and the first optimal rectangle, the relative position relationship between the points on each wall boundary in the point cloud data of the measuring station and the second optimal rectangle, and the relative position relationship between the first optimal rectangle and the second optimal rectangle.

[0092] The relative positional relationship between the first optimal rectangle and the second optimal rectangle includes the scaling ratio of the measurement station and the relative orientation of the first optimal rectangle and the second optimal rectangle. Specifically, the scaling ratio in this embodiment refers to the scaling ratio between the design drawing and the actual distance, wherein the point cloud data can represent the actual size of the measurement station. By obtaining the scaling ratio and the relative orientation after matching, the point cloud can be spliced ​​faster according to the scaling ratio and the relative orientation when splicing.

[0093] Step S5: derive the relative position relationship of the multiple wall boundaries in the point cloud data of each measuring station according to the relative position relationship of the multiple wall boundaries in the point cloud data of each measuring station, the matching relationship between the points of each wall boundary in the design drawing of the measuring station and the points of each wall boundary in the point cloud data, and the relative position relationship of the multiple wall boundaries in the design drawing of each measuring station, and further derive the relative position relationship of the points in the point cloud data of each measuring station.

[0094] Step S6: splicing the point cloud data of all measuring stations of the house type according to the relative position relationship of the points in the point cloud data of each measuring station and the relative position relationship of the measuring stations to obtain a point cloud model of the house type.

[0095] The present invention divides a house into multiple measuring stations to collect point cloud data of each measuring station respectively, and then matches the point cloud data of the measuring station with the design drawing through a matching relationship, thereby using the relative position relationship of multiple wall boundaries in the design drawing to realize the relative position relationship of each point in the point cloud data of the measuring station, and finally uses the relative position relationship of the measuring stations in the design drawing to derive the relative position relationship of the point cloud data of multiple measuring stations, thereby realizing the splicing of the point cloud data of multiple measuring stations. More preferably, the commonly used point cloud splicing algorithms may include ICP algorithms, 4PCS, deep learning algorithms and other methods, and these methods generally require initial conditions to be given when splicing point clouds. Once the initial conditions are given more accurately, the point cloud splicing speed is faster and the splicing result is more accurate. That is, this embodiment divides the entire house into point cloud data of multiple measuring stations through the division of measuring stations, and then uses the matching of design drawings and point cloud data for each measuring station to obtain the relative position relationship of the points in the point cloud data of each measuring station, giving a better initial condition, which can quickly improve the point cloud stitching efficiency and the accuracy of the stitching results when multiple strategic stations are stitched together.

[0096] Furthermore, in this embodiment, since a house has multiple measuring stations, when matching, the first step is to match the design feature data of each measuring station with the scan feature data to obtain the zoom ratio of each measuring station. Since different measuring stations have data errors when scanning, etc., there may be differences between the zoom ratios of each measuring station. Therefore, this embodiment also calculates the average value of the zoom ratios of all measuring stations obtained by matching, so as to correct the zoom ratio of each measuring station according to the averaged zoom ratio, and use the corrected zoom ratio as the final zoom ratio of the house. During matching, the first optimal rectangle and the second optimal rectangle can be rotated, translated, scaled, etc. and moved to the same coordinate system to achieve a matching relationship between the wall boundary in the point cloud data of the measuring station and the wall boundary in the design drawing, and the zoom ratio can also be obtained.

[0097] Furthermore, when splicing multiple measuring stations, this embodiment also splices the measuring stations in sequence according to the relative position relationship of the measuring stations to improve the splicing efficiency. Figure 5 As shown, step S5 also includes:

[0098] Step S51, sorting a plurality of measuring stations according to the relative position relationship of the measuring stations and a preset splicing order. The preset splicing order includes counterclockwise or clockwise, etc., selecting a measuring station at the splicing starting point and a measuring station at the splicing end point according to the relative position relationship of the measuring stations, then sorting them, and then splicing them in sequence according to the sorting results to improve splicing efficiency.

[0099] Step S52: Take two measurement stations from the sorting results and stitch the point cloud data of the two measurement stations through a point cloud stitching algorithm according to the relative position relationship of the wall boundaries in the point cloud data of the measurement stations to form point cloud data of a new stitching station, and at the same time obtain the relative position relationship of the wall boundaries in the point cloud data of the new stitching station. Preferably, the point cloud stitching algorithm may be an ICP algorithm.

[0100] Specifically, for the sorted measurement stations, two measurement stations are selected in order, and then the two measurement stations are spliced ​​to form point cloud data of new spliced ​​stations.

[0101] Step S53, taking the next measurement station from the sorting result, and splicing the point cloud data of the new splicing station with the point cloud data of the next measurement station through a point cloud splicing algorithm according to the relative position relationship between the points in the point cloud data of the new splicing station and the next measurement station, and the relative position relationship between the points in the point cloud data of the next measurement station to form the point cloud data of the new splicing station and the relative position relationship between the points in the point cloud data of the splicing station, and then executing step S53.

[0102] After all the measuring stations are spliced ​​together, the point cloud model of the house layout is obtained.

[0103] That is, the present invention splices two measuring stations each time during splicing, and then splices the newly spliced ​​point cloud data with the next measuring station to form the point cloud data of the new spliced ​​measuring station, and so on, until the point cloud data of all the measuring stations are spliced ​​together to obtain a point cloud model of the house.

[0104] In actual use, for two adjacent measurement stations, since the two adjacent measurement stations will share corresponding areas, such as doors, windows, corridors and other areas, there will be repeated scanning coverage areas between the point cloud data of the two adjacent measurement stations after scanning. In this way, when the repeated coverage area is larger, the success rate will be higher and the splicing error will be smaller when the point cloud data is spliced. Therefore, while dividing the measurement stations, the present invention also determines whether there are repeated scanning coverage areas between the two adjacent measurement stations. If not, a connecting station is added between the two adjacent measurement stations to perform point cloud scanning on the connecting station to obtain the point cloud data of the connecting station. The success rate of splicing the two measurement stations is increased by adding a connecting station.

[0105] At the same time, when adding a connecting measuring station, it is also necessary to record the relative position relationship between the connecting measuring station and its adjacent measuring station.

[0106] Preferably, the present invention also needs to scan the additional connection station to obtain the point cloud data of the connection station. At the same time, when scanning the connection station, it is also necessary to determine the scanning direction of the connection station, that is, the direction of the points in the point cloud data of the connection station is known, and each connection station is scanned according to the set scanning direction and scanning center point to obtain point cloud data. At the same time, since the connection station is not a separate room, the additional connection station in the present invention does not match the point cloud data, but is only used to assist in processing the splicing of the point cloud data of the measurement station.

[0107] Similarly, when performing measurement station splicing, step S52 further includes: selecting two measurement stations according to the sorting result, and determining whether there is a connecting station between the two measurement stations:

[0108] If so, the point cloud data of the two measuring stations and the point cloud data of the connecting station are spliced ​​by a point cloud splicing algorithm according to the relative position relationship of the multiple wall boundaries in the point cloud data of the two measuring stations and the relative position relationship between the connecting station and the two measuring stations to obtain the point cloud data of the new splicing station and the relative position relationship of the points in the point cloud data of the new splicing station; and then the re-splicing step is performed;

[0109] If not, the point cloud data of the two measuring stations are spliced ​​by a point cloud splicing algorithm according to the relative position relationship of the points in the point cloud data of the two measuring stations to form the point cloud data of a new spliced ​​station and the relative position relationship of the points in the point cloud data of the new spliced ​​station, and then step S53 is executed.

[0110] Step S53 also includes: selecting the next measurement station according to the sorting result, and determining whether there is a connection station between the next measurement station and the new splicing station:

[0111] If so, the point cloud data of the next measurement station, the point cloud data of the connected station and the point cloud data of the new splicing station are spliced ​​according to the ICP algorithm to form the point cloud data of the new splicing station and the relative position relationship of the points in the point cloud data of the new splicing station, and then step S53 is executed.

[0112] If not, the point cloud data of the next measurement station and the point cloud data of the new splicing station are spliced ​​according to the ICP algorithm to form the point cloud data of the new splicing station and the relative position relationship of the points in the point cloud data of the new splicing station, and then step S53 is executed.

[0113] After all the measuring stations are spliced ​​together, the point cloud model of the house type is obtained.

[0114] The present invention divides the house type into multiple measuring stations, and then matches the design drawings and point cloud data of the measuring stations, so as to obtain the relative position relationship of the point cloud data of the measuring stations according to the relative position relationship of the measuring stations in the design drawings, and the relative position relationship of the wall boundaries in the point cloud data of the measuring stations, thereby providing a relatively good initial condition for the point cloud splicing algorithm, such as the ICP algorithm, to improve the splicing efficiency and the splicing success rate, and then realize the construction of the point cloud model of the house type. When constructing the point cloud model, the present invention does not need to number the measuring stations or set the scanning order, and the front-end scanning personnel do not need to input any parameters. It only needs to scan each measuring station and then upload all the point cloud data of a house type scanned to the system, and the system automatically matches and splices the house type without manual participation, which greatly improves the efficiency and accuracy of point cloud data splicing, and also reduces the workload of the scanning personnel.

[0115] Embodiment 2

[0116] Based on Example 1, the present invention also provides a point cloud data stitching device for a house type, including a memory and a processor, the memory stores a point cloud data stitching program running on the processor, the point cloud data stitching program is a computer program, and when the processor executes the point cloud data stitching program, it implements the steps of a point cloud data stitching method for a house type provided in Example 1 of the present invention.

[0117] Embodiment 3

[0118] Based on Example 1, the present invention also provides a computer-readable storage medium, on which a point cloud data stitching program is stored. The point cloud data stitching program is a computer program. When the point cloud data stitching program is executed by a processor, the steps of a point cloud data stitching method for a house type provided in Example 1 of the present invention are implemented.

[0119] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.

Claims

1. A method for splicing point cloud data of house types, characterized in that: The point cloud data splicing method comprises: Station division step: obtaining a house type and dividing the house type according to a preset station division rule to obtain a plurality of measurement stations; Design drawing processing step: obtaining and deriving a design drawing of each measuring station according to the design drawing of the house type, and then constructing design feature data of each measuring station according to the design drawing of each measuring station; wherein the design feature data includes a first optimal rectangle and a relative position relationship between points on each wall boundary in the design drawing of the corresponding measuring station and the first optimal rectangle; and deriving a relative position relationship of the measuring stations and a relative position relationship of multiple wall boundaries in the design drawing of each measuring station according to the position of the design drawing of each measuring station in the design drawing of the house type; Point cloud data processing step: scanning each measuring station according to a preset scanning rule to obtain point cloud data of each measuring station, and constructing scanning feature data of each measuring station according to the point cloud data of each measuring station; wherein the scanning feature data includes the second optimal rectangle and the relative position relationship between the points on each wall boundary in the point cloud data of the corresponding measuring station and the second optimal rectangle; Matching step: according to the first optimal rectangle in the design feature data of each measuring station and the second optimal rectangle in the scanning feature data, the relative position relationship between the first optimal rectangle and the second optimal rectangle is obtained by matching, and at the same time, according to the relative position relationship between the points on each wall boundary in the design drawing of the measuring station and the first optimal rectangle, the relative position relationship between the points on each wall boundary in the point cloud data of the measuring station and the second optimal rectangle, and the relative position relationship between the first optimal rectangle and the second optimal rectangle, the matching relationship between the points on each wall boundary in the design drawing of the measuring station and the points on each wall boundary in the point cloud data is obtained, and then the relative position relationship between the multiple wall boundaries in the design drawing of each measuring station is obtained, and then the relative position relationship between the points in the point cloud data of each measuring station is obtained; Stitching step: stitching the point cloud data of all measuring stations of the house type according to the relative position relationship of the points in the point cloud data of each measuring station and the relative position relationship of the measuring stations to obtain a point cloud model of the house type; The matching step of matching the first optimal rectangle in the design feature data of each measuring station with the second optimal rectangle in the scanning feature data to obtain the relative position relationship between the first optimal rectangle and the second optimal rectangle also includes: firstly matching the first optimal rectangle and the second optimal rectangle of each measuring station to obtain the zoom ratio of each measuring station and the relative orientation of the first optimal moment and the second optimal rectangle; then calculating the average zoom ratio of all measuring stations, and correcting the zoom ratio of each measuring station according to the average zoom ratio, and then using the corrected zoom ratio as the zoom ratio of the house type; wherein the average zoom ratio refers to the average zoom ratio of all measuring stations; The splicing step specifically includes: Sorting step: sorting multiple measuring stations according to the relative position relationship of the measuring stations and the preset splicing order; First splicing step: taking two measuring stations from the sorting results and splicing the point cloud data of the two measuring stations through a point cloud splicing algorithm according to the relative position relationship of the points in the point cloud data of the two measuring stations to form the point cloud data of a new splicing station, and at the same time obtaining the relative position relationship of multiple wall boundaries in the point cloud data of the new splicing station; The re-stitching step is as follows: taking the next measuring station from the sorting result, and stitching the point cloud data of the new stitching station with the point cloud data of the next measuring station through a point cloud stitching algorithm according to the relative position relationship of the points in the point cloud data of the new stitching station and the relative position relationship of the points in the point cloud data of the next measuring station to form the point cloud data of the new stitching station and the relative position relationship of the points in the point cloud data of the new stitching station, and then executing the re-stitching step; until all the measuring stations are stitched together, the point cloud model of the house type is obtained.

2. The point cloud data splicing method of a house type according to claim 1, characterized in that: The station division step further comprises: Determination step: determine whether there is a repeated scanning coverage area between any two adjacent measuring stations. If not, add a connecting station between the two adjacent measuring stations, and record the relative position relationship between the connecting station and the two measuring stations; The point cloud data processing step further includes: scanning each connected measuring station according to a preset calibrated scanning direction and scanning center point to obtain point cloud data of each connected measuring station.

3. The point cloud data splicing method of a house type according to claim 2, characterized in that: The first splicing step specifically includes: selecting two measurement stations according to the sorting result, and determining whether there is a connecting station between the two measurement stations: If yes, then the point cloud data of the two measuring stations and the point cloud data of the connecting station are spliced ​​according to the relative position relationship of the multiple wall boundaries in the point cloud data of the two measuring stations, the relative position relationship between the connecting station and the two measuring stations, and the point cloud splicing algorithm to obtain the point cloud data of the new splicing station and the relative position relationship of the multiple wall boundaries in the point cloud data of the new splicing station; then the re-splicing step is performed; If not, then the point cloud data of the two measuring stations are spliced ​​according to the relative position relationship of the multiple wall boundaries in the point cloud data of the two measuring stations and the point cloud splicing algorithm to form the point cloud data of the new splicing station and the relative position relationship of the multiple wall boundaries in the point cloud data of the new splicing station, and then the re-splicing step is performed; The rejoining step further includes: selecting the next measuring station according to the sorting result, and determining whether there is a connecting station between the next measuring station and the new jointing station: If yes, then the point cloud data of the next measuring station, the point cloud data of the connecting station and the point cloud data of the new splicing station are spliced ​​according to the point cloud splicing algorithm to form the point cloud data of the new splicing station and the relative position relationship of the multiple wall boundaries in the point cloud data of the new splicing station, and then the re-splicing step is performed; If not, the point cloud data of the next measuring station and the point cloud data of the new splicing station are spliced ​​according to the point cloud splicing algorithm to form the point cloud data of the new splicing station and the relative position relationship of the multiple wall boundaries in the point cloud data of the new splicing station, and then the re-splicing step is performed; After all the measuring stations are spliced ​​together, the point cloud model of the house type is obtained.

4. The point cloud data splicing method of a house type according to claim 1, characterized in that: The point cloud data processing step also includes: scanning each measurement station of the house type through a three-dimensional laser scanning device according to preset scanning rules to obtain point cloud data of each measurement station; wherein the preset scanning rules include a scanning direction and / or a scanning center point of each measurement station.

5. The point cloud data splicing method of a house type according to claim 1, characterized in that: The design drawing processing steps specifically include: Design drawing segmentation step: obtaining a floor plan design drawing of a house type, and segmenting the floor plan design drawing of the house type according to the divided multiple measuring stations to obtain a design drawing of each measuring station; The first rectangle construction step: according to the design drawing of each measuring station, all the wall boundaries of each measuring station are obtained, and then according to all the wall boundaries of each measuring station and the preset rules, the first optimal rectangle of each measuring station is constructed; The point cloud data processing step specifically includes: Point cloud plane simulation step: simulating the points in the point cloud data of each measuring station to obtain the corresponding point cloud plane; wherein the point cloud plane of each measuring station is obtained by projecting all or part of the points in the point cloud data of the corresponding measuring station within the coordinate XOY; Second rectangle construction step: deriving all wall boundaries of each measuring station according to the point cloud plane map of each measuring station, and then constructing a second optimal rectangle of each measuring station according to all wall boundaries of each measuring station and preset rules; The preset rules specifically include: first, constructing a plurality of rectangles according to all wall boundaries of a measuring station and the calibration points of the measuring station, then obtaining all corresponding wall boundary points according to each rectangle and connecting each wall boundary point with the calibration point of the measuring station to obtain a plurality of line segments and line segment angles that meet the requirements; finally, finding the line segment angle corresponding to each rectangle and selecting a rectangle from a plurality of rectangles according to the sum of the line segment angles of each rectangle as the corresponding optimal rectangle of the measuring station; the line segment angle that meets the requirements specifically includes: the two sides of the line segment angle are both line segments connecting the wall boundary point and the calibration point; A rectangle among several rectangles is constructed based on all wall boundaries of a measurement station and the calibration points of the measurement station, and the rectangle satisfies the following conditions: the calibration points are located in the corresponding rectangle, and at least one side of the rectangle coincides with a wall boundary or coincides with a part of a wall boundary; When the corresponding optimal rectangle is the first optimal rectangle, the calibration point of the measurement station is the center point of the design drawing of the measurement station; when the corresponding optimal rectangle is the second optimal rectangle, the calibration point of the measurement station is the scanning center point of the measurement station.

6. The point cloud data splicing method of a house type according to claim 1, characterized in that: The measuring station division step specifically includes: dividing the house type into a plurality of measuring stations according to the number of rooms in the house type, and the number of the measuring stations is the same as the number of rooms, and each room is a measuring station.

7. A point cloud data stitching device for a house type, comprising a memory and a processor, wherein the memory stores a point cloud data stitching program running on the processor, and the point cloud data stitching program is a computer program, characterized in that: When the processor executes the point cloud data stitching program, the steps of the point cloud data stitching method for a house type as described in any one of claims 1-6 are implemented.

8. A computer-readable storage medium having a point cloud data splicing program stored thereon, characterized in that: The point cloud data stitching program is a computer program. When the point cloud data stitching program is executed by a processor, the steps of the point cloud data stitching method for a house type as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Three-dimensional room measurement method, device and system and storage medium

    CN117274478A

  • Method and system for reconstructing a three-dimensional model of point clouds

    US20170053438A1