Building modeling method and related device
Patent Information
- Application Number
- CN202280093047.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-04
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-03-04
AI Technical Summary
Existing building modeling methods rely on the accuracy of sensor data. If part of the structure is not collected, the accuracy of the constructed model will be low. Especially when point cloud data is missing, a complete closed loop cannot be formed, resulting in partial wall or ground areas. was omitted.
By obtaining the point cloud data of the building, the topological information of the wall projection line segment and the ground area is extracted, and the neural network is used to determine the true existence of the projection line segment and the ground area, and the projection line segment is extended to fill in the missing data, thereby constructing a more accurate building. information model.
In the case of incomplete data coverage, the accuracy of the building model is improved, missing parts can be restored, and the accuracy of BIM construction is enhanced.
Smart Images

Figure CN118830005A_ABST
Abstract
Description
Building modeling method and related device Technical Field
[0001] The present application relates to the field of computers, and in particular to a building modeling method and related devices. Background Art
[0002] Scene vectorization automatically converts sensor data into a CAD model composed of 3D primitives containing semantic meaning, single instances, and minimal parameters, meeting or exceeding the quality standards of manual modeling. Scene vectorization is widely used in a variety of industries, including game animation, architectural design, smart factories, and digital cities. Currently, scene vectorization relies heavily on manual processing. Due to high labor costs, poor real-world accuracy, and ambiguous semantics, it can only achieve human-computer interaction in limited scenarios and even prevents further intelligent digital analysis.
[0003] In existing implementations, the building information model (BIM) is obtained by performing surface extraction on data collected by sensors. This method strongly relies on the accuracy of the collected data. If some structural planes of the building are not captured by the sensors, the accuracy of the constructed building model is low. Specifically, the BIM of a building can be constructed based on point cloud data collected from the building and relies on closed-loop assumptions. In some scenarios, due to omissions in the collected point cloud data, it is possible that complete point cloud data cannot be collected for some surfaces of the building, and thus, a complete closed loop cannot be formed. In this case, some walls or ground areas of the building will be omitted from the BIM.
[0004] Summary of the Invention
[0005] The building modeling method provided in the embodiment of the present application can obtain a building model with high accuracy even when the data collected on the building is not fully covered.
[0006] In a first aspect, the present application provides a building modeling method, the method comprising: obtaining point cloud data collected for a target building, the point cloud data comprising first point cloud data of multiple walls of the target building; obtaining topology information based on the first point cloud data, the topology information comprising position information of projection line segments of each of the walls, and position information of at least one ground area surrounded by multiple projection line segments; wherein the multiple projection line segments are formed by the intersection of straight lines on which the projection lines of the multiple walls on the horizontal plane are located; and determining whether each of the projection line segments or the ground area is retained based on the topology information through a target neural network, wherein the retained projection line segments or the ground area are used to construct a building information model (BIM) of the target building.
[0007] In existing implementations, the BIM of a building is constructed based on point cloud data collected from the building and relies on closed-loop assumptions. In some scenarios, due to omissions in the collected point cloud data, that is, it may be impossible to collect complete point cloud data for some surfaces of the building, and thus, it is impossible to form a complete closed loop. In this case, part of the wall or ground area of the building in the BIM will be omitted. In an embodiment of the present application, the projection line of the wall can be extended, and the line segments between the intersection points of the extended projection line (that is, the straight line where the projection line is located) are used as candidate projection line segments. The projection line segment may be real (for example, the point cloud data itself is complete, or the point cloud data itself is missing) or non-existent (because it is obtained by the intersection between the extended lines, it may not actually exist). A neural network can be used to determine whether to retain the projection line segment obtained by the intersection of the extended lines, and then the wall with the missing point cloud data can be restored in the BIM, thereby increasing the accuracy of BIM construction.
[0008] In a possible implementation, the multiple walls include a first wall, and a first projection line segment of the first wall includes a projection line of the first wall on a horizontal plane and an extension line of the projection line.
[0009] In a possible implementation, the topology information further includes position information of intersection points where straight lines containing projection lines of the multiple walls on the horizontal plane intersect.
[0010] In order to construct the BIM of the target building, it is necessary to obtain topological information used to describe the structure of the wall and ground area of the target building (the structure may include shape and position). For example, the structure of the wall of the target building can be described by the position of the projection line segment of the wall on the horizontal plane, and the structure of the ground area of the target building can be described by the position of the ground area.
[0011] In one possible implementation, the position of the wall can be described by the position of the projection line segment of the wall on the horizontal plane, and the position of the projection line segment can be described by the position of the endpoints at both ends, or the center point (or other feature point) of the line segment combined with the direction.
[0012] In a possible implementation, the position information of the at least one ground area may also be represented by the position of the enclosed projection line segment.
[0013] In a possible implementation, the topology information may include location information of an intersection where the straight lines on which the projection lines of the multiple walls on the horizontal plane intersect each other. The location information of the intersection may be described as a coordinate value of the intersection.
[0014] In a possible implementation, the position information of each projection line segment is represented by the positions of endpoints at both ends of the target projection line, and the endpoints are intersection points between the target projection lines of the multiple walls.
[0015] In a possible implementation, the position information of the at least one ground area is represented by the position of the enclosed projection line segment.
[0016] In one possible implementation, the topology information includes intersection points where straight lines on which projection lines of the multiple walls on the horizontal plane intersect each other; and the data structure used for the arrangement and layout relationship between the intersection points, the projection line segments and the ground area includes arrangement.
[0017] In one possible implementation, topological information can be represented as an arrangement layout structure (Arrangement). The arrangement layout structure may include cut-out atomic line segments (i.e., projected line segments in the embodiment of the present application) and facets surrounded by atomic line segments (i.e., ground areas in the embodiment of the present application). Arrangement allows the inclusion of isolated points and edges, which is a more general way of expressing a planar graph. Planar graph prediction based on ArrangementNet not only utilizes explicit geometric data features, but also can learn potential topological relationships between line segments to generate higher quality planar graphs.
[0018] In one possible implementation, after obtaining the topological information, since the topological information includes projection line segments and ground areas obtained by extending the projection lines, it is necessary to identify whether these projection line segments and ground areas actually exist, and then determine whether these projection line segments and ground areas need to be retained in the BIM.
[0019] In one possible implementation, the topological information can be converted into a graph structure, and based on the trained graph neural network (also including downstream task networks, such as fully connected layers and output layers), it can be identified whether these projected line segments and ground areas need to be retained in the BIM.
[0020] In a possible implementation, a target graph structure can be obtained based on the topology information, where the target graph structure includes multiple nodes and connection relationships between the multiple nodes, wherein each of the nodes corresponds to an object, and the object is the wall or the ground area.
[0021] In a possible implementation, some nodes in the target graph structure correspond to walls. Optionally, the some nodes may correspond to the walls one-to-one, that is, one node corresponds to one wall.
[0022] In a possible implementation, some nodes in the target graph structure correspond to ground areas. Optionally, there may be a one-to-one correspondence between these some nodes and the ground areas, that is, one node corresponds to one ground area.
[0023] For the nodes corresponding to the wall, each node can be represented as a feature vector. In a possible implementation, each of the multiple nodes includes a target vector for representing the corresponding wall, and the target vector can be related to at least one of the following: the position information of the corresponding wall in the topology information (for example, but not limited to the center point position of the projection line segment corresponding to the wall); or, the degree of overlap (or consistency) between the position information of the corresponding wall in the topology information and the position information of the corresponding wall in the point cloud data.
[0024] For the nodes corresponding to the ground area, each node can be represented as a feature vector. In a possible implementation, each of the multiple nodes includes a target vector for representing the corresponding ground area, and the target vector can be related to at least one of the following: the position information of the corresponding ground area in the topology information; or the degree of overlap (or consistency) between the position information of the corresponding ground area in the topology information and the position information of the corresponding ground area in the point cloud data.
[0025] In a possible implementation, the objects corresponding to the nodes having a connection relationship in the target graph structure are adjacently located units, wherein edges exist between the nodes having a connection relationship.
[0026] In a possible implementation, the geometric relative position information of the edges can be used as the features of the edges in the graph structure.
[0027] In a possible implementation, the nodes that are connected all correspond to the wall, and the adjacent positions mean that the projected line segments of the wall are adjacent and collinear; or,
[0028] The nodes that are connected all correspond to the wall surfaces, and the positions are adjacent if: the projection line segments of the wall surfaces are used to enclose the same ground area; or,
[0029] The nodes having a connection relationship correspond to the wall surface and the ground area respectively, and the positions are adjacent when: the projection line segment of the wall surface is used to surround the ground area.
[0030] In a possible implementation, the point cloud data further includes: second point cloud data of multiple ceilings of the target building; the multiple ceilings include a first ceiling and a second ceiling; and the method further includes:
[0031] determining position information of the first ceiling and the second ceiling according to the second point cloud data;
[0032] An energy equation is constructed based on a graph minimum cut algorithm, and the position information of the first ceiling and the second ceiling is corrected according to the energy equation. The corrected position information of the first ceiling and the second ceiling is used to construct a building information model (BIM) of the target building.
[0033] For roof elements, the element boundaries can be established and spliced. The roof is composed of multiple element planes. For each element, an intersection line is drawn and projected onto a horizontal plane to form an arrangement. The arrangement is divided into atomic units, taking into account fitting energy and smoothing energy. For each atomic patch, the fitting energy term is the difference volume between the patch and the roof point cloud when the patch is classified as a certain plane; for every two patches, the smoothing energy is the vertical gap area caused by the two adjacent patches being in different planes. The energy can be optimized and segmented as a whole using a multi-label graph cut algorithm to determine the final plane division of the roof for network construction.
[0034] In a second aspect, the present application provides a building modeling device, the device comprising:
[0035] An acquisition module, configured to acquire point cloud data collected for a target building, wherein the point cloud data includes first point cloud data of a plurality of walls of the target building;
[0036] a topology information construction module, configured to obtain topology information based on the first point cloud data, the topology information including position information of a projection line segment of each of the wall surfaces and position information of at least one ground area surrounded by a plurality of the projection line segments; wherein the plurality of projection line segments are formed by the intersection of straight lines on which the projection lines of the plurality of wall surfaces on a horizontal plane lie;
[0037] A modeling module is used to determine whether each of the projected line segments or the ground areas is retained based on the topological information through a target neural network, wherein the retained projected line segments or the ground areas are used to construct a building information model (BIM) of the target building.
[0038] In a possible implementation, the multiple walls include a first wall, and a first projection line segment of the first wall includes a projection line of the first wall on a horizontal plane and an extension line of the projection line.
[0039] In a possible implementation, the topology information further includes position information of intersection points where straight lines containing projection lines of the multiple walls on the horizontal plane intersect.
[0040] In a possible implementation, the position information of each projection line segment is represented by the positions of endpoints at both ends of the target projection line, and the endpoints are intersection points between the target projection lines of the multiple walls.
[0041] In a possible implementation, the position information of the at least one ground area is represented by the position of the enclosed projection line segment.
[0042] In one possible implementation, the topology information includes intersection points where straight lines on which projection lines of the multiple walls on the horizontal plane intersect each other; and the data structure used for the arrangement and layout relationship between the intersection points, the projection line segments and the ground area includes arrangement.
[0043] In a possible implementation, the apparatus further includes:
[0044] a graph structure construction module, configured to obtain a target graph structure based on the topological information, wherein the target graph structure includes a plurality of nodes and connection relationships between the plurality of nodes, wherein each of the nodes corresponds to an object, the object being the wall or the ground area, and the objects corresponding to the nodes having a connection relationship are adjacent units;
[0045] The modeling module is specifically used to:
[0046] Based on the target graph structure, determining whether each of the plurality of nodes is to be retained is performed through a target neural network.
[0047] In a possible implementation, the nodes that are connected all correspond to the wall, and the adjacent positions mean that the projected line segments of the wall are adjacent and collinear; or,
[0048] The nodes that are connected all correspond to the wall surfaces, and the positions are adjacent if: the projection line segments of the wall surfaces are used to enclose the same ground area; or,
[0049] The nodes having a connection relationship correspond to the wall surface and the ground area respectively, and the positions are adjacent when: the projection line segment of the wall surface is used to surround the ground area.
[0050] In one possible implementation, the target neural network includes a graph neural network.
[0051] In one possible implementation, each of the plurality of nodes includes a target vector for representing a corresponding object, where the target vector is related to at least one of the following:
[0052] The location information of the corresponding object in the topology information; or
[0053] The degree of overlap between the position information of the corresponding object in the topology information and the position information of the corresponding object in the point cloud data.
[0054] In a possible implementation, the point cloud data further includes: second point cloud data of multiple ceilings of the target building; the multiple ceilings include a first ceiling and a second ceiling; and the modeling module is further configured to:
[0055] determining position information of the first ceiling and the second ceiling according to the second point cloud data;
[0056] An energy equation is constructed based on a graph minimum cut algorithm, and the position information of the first ceiling and the second ceiling is corrected according to the energy equation. The corrected position information of the first ceiling and the second ceiling is used to construct a building information model (BIM) of the target building.
[0057] In a third aspect, the present application provides a building modeling device, which may include a processor coupled to a memory, the memory storing program instructions. When the program instructions stored in the memory are executed by the processor, the method described in the first aspect is implemented. For details regarding the steps in each possible implementation of the first aspect performed by the processor, please refer to the first aspect and will not be repeated here.
[0058] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect above.
[0059] In a fifth aspect, the present application provides a circuit system, which includes a processing circuit, and the processing circuit is configured to execute the method described in the first aspect above.
[0060] In a sixth aspect, the present application provides a computer program product, comprising code, which, when executed on a computer, enables the computer to execute the method described in the first aspect above.
[0061] In a seventh aspect, the present application provides a chip system, which includes a processor for implementing the functions involved in the above aspects, for example, sending or processing the data and / or information involved in the above methods. In one possible design, the chip system also includes a memory, which is used to store program instructions and data necessary for the server or communication device. The chip system can be composed of a chip or can include a chip and other discrete devices.
[0062] An embodiment of the present application provides a building modeling method, the method comprising: obtaining point cloud data collected for a target building, the point cloud data comprising first point cloud data of multiple walls of the target building; obtaining topology information based on the first point cloud data, the topology information comprising position information of projection line segments of each of the walls, and position information of at least one ground area surrounded by multiple projection line segments; wherein the multiple projection line segments are formed by the intersection of straight lines on which the projection lines of the multiple walls on a horizontal plane lie; and determining whether each of the projection line segments or the ground area is retained based on the topology information through a target neural network, wherein the retained projection line segments or the ground area are used to construct a building information model (BIM) of the target building. This application aims at the projection line of the wall, which can be extended, and the line segments between the intersection points of the extended projection lines (that is, the straight lines where the projection lines are located) can be used as candidate projection line segments. The projection line segments may be real (for example, the point cloud data itself is complete, or the point cloud data itself is missing), or they may not exist (because they are obtained by the intersection of the extended lines, they may not really exist). A neural network can be used to determine whether to retain the projection line segments obtained by the intersection of the extended lines, and then the wall with missing parts of the point cloud data can also be restored in the BIM, thereby increasing the accuracy of the BIM construction. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] FIG1 is a schematic diagram of an application architecture structure of the present application;
[0064] FIG2 is a schematic diagram of an application architecture structure of the present application;
[0065] FIG3 is a schematic diagram of an application architecture structure of the present application;
[0066] FIG4 is a schematic diagram of a building modeling method provided in an embodiment of the present application;
[0067] FIG5 is a schematic diagram of topology information construction provided in an embodiment of the present application;
[0068] FIG6 is a schematic diagram of topology information construction provided in an embodiment of the present application;
[0069] FIG7 is a schematic diagram of topology information construction provided in an embodiment of the present application;
[0070] FIG8 is a schematic diagram of topology information construction provided in an embodiment of the present application;
[0071] FIG9 is a schematic diagram of a process of a building modeling method provided in an embodiment of the present application;
[0072] FIG10 is a schematic diagram of a building modeling device provided in an embodiment of the present application;
[0073] FIG11 is a schematic diagram of the structure of an execution device provided in an embodiment of the present application;
[0074] FIG12 is a schematic structural diagram of a training device provided in an embodiment of the present application;
[0075] FIG13 is a schematic structural diagram of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0076] The following describes the embodiments of the present invention in conjunction with the accompanying drawings. The terms used in the embodiments of the present invention are only used to explain the specific embodiments of the present invention, and are not intended to limit the present invention.
[0077] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0078] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attributes when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0079] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0080] Next, we introduce the application architecture of the embodiment of this application:
[0081] Refer to Figure 1, which is a schematic diagram of the architecture of the application system of an embodiment of the present application:
[0082] Among them, the application architecture may include point cloud production hardware (4001), a main server (4002), and a terminal (4003). The point cloud production hardware may include a data acquisition module and a data distribution module, wherein the data acquisition module may exemplarily include: a laser vehicle and an inertial sensor, or a camera group, an RGBD camera, etc. The data distribution module may store the data collected by the data acquisition module (such as the point cloud data in the embodiment of the present application) into the memory and transmit it to the main server through the network card. The hardware of the main server (4002) may include: (a) a network card for receiving input point cloud data and distributing the output building information model (BIM) results. (b) a memory for storage. (c) an AI chip for calculating and implementing deep learning algorithms. (d) a CPU for calculating and implementing geometric processing algorithms. Among them, (c) and (d) can implement the building modeling method in the embodiment of the present application. The terminal (4003) is used to receive the BIM model calculated by the main server, and display the BIM model through the collaboration of memory, GPU, and CPU, so that the user can interact with the terminal. Optionally, the BIM model can also be analyzed according to business needs.
[0083] Referring to FIG. 2 , FIG. 2 is a schematic diagram of the architecture of the application system according to an embodiment of the present application. Compared with FIG. 1 , FIG. 2 illustrates the data flow process between various parts of the system architecture:
[0084] Among them, the system architecture can include logic modules and hardware modules.
[0085] The logic module can include a pre-processing module to read the input point cloud data and perform semantic and element segmentation, which is the basis for the successful construction of subsequent BIM main elements.
[0086] The main element construction module includes a floor plan construction module, a ceiling construction module, and construction modules for key structures such as door and window columns. For example, the main element construction module can implement floor plan construction based on Arrangement. Unlike other existing floor plan construction algorithms, it does not require assumptions such as Manhattan and room closure, and is a general two-dimensional floor plan generation algorithm. Specifically, the main element construction module can implement a ceiling construction module based on Arrangement and a multi-label graph cut optimization algorithm. Specifically, the main element construction module can implement a door and window column construction module based on FCAF3D.
[0087] The BIM generation module integrates multiple semantic monomer elements and uses constructive solid geometry (CSG) to merge them into the final BIM model.
[0088] The description of the hardware modules can be referred to FIG1 , and the similarities are not repeated here.
[0089] Next, a more detailed architecture of the execution entity that executes the connection relationship prediction method in the embodiment of the present application is introduced.
[0090] The following describes the system architecture provided by the embodiment of the present application in detail with reference to Figure 3. Figure 3 is a schematic diagram of the system architecture provided by the embodiment of the present application. As shown in Figure 3, the system architecture 500 includes an execution device 510, a training device 520, a database 530, a client device 540, a data storage system 550, and a data acquisition system 560.
[0091] Execution device 510 includes a computing module 511, an I / O interface 512, a preprocessing module 513, and a preprocessing module 514. Computing module 511 may include target model / rule 501. For example, preprocessing module 513 and preprocessing module 514 may acquire point cloud data and perform operations such as semantic segmentation and topology construction on the point cloud data.
[0092] Data acquisition device 560 is used to collect training samples. The training samples can be point cloud data (which can be used to describe the topology of a building), etc. In the embodiment of the present application, the training samples can be obtained based on the building's topology information. After collecting the training samples, data acquisition device 560 stores them in database 530.
[0093] The training device 520 can train the neural network to be trained (such as the target neural grid in the embodiment of the present application, etc.) based on the training samples maintained in the database 530 to obtain the target model / rule 501.
[0094] It should be noted that, in actual applications, the training samples maintained in the database 530 may not all be collected by the data acquisition device 560, but may also be received from other devices. It should also be noted that the training device 520 may not train the target model / rule 501 entirely based on the training samples maintained in the database 530, but may also obtain training samples from the cloud or other places for model training. The above description should not be used as a limitation on the embodiments of the present application.
[0095] The target model / rule 501 obtained through training with the training device 520 can be applied to different systems or devices, such as the execution device 510 shown in FIG10 . The execution device 510 can be a server, a terminal, etc., such as a mobile phone terminal, a tablet computer, a laptop computer, an augmented reality (AR) / virtual reality (VR) device, an in-vehicle terminal, etc., or a server or a cloud.
[0096] Specifically, the training device 520 may transfer the trained model to the execution device 510 .
[0097] In Figure 10, the execution device 510 is configured with an input / output (I / O) interface 512 for data interaction with external devices. The user can input data (such as point cloud data collected for buildings in the embodiment of the present application) to the I / O interface 512 through the client device 540.
[0098] Preprocessing module 513 and preprocessing module 514 are used to preprocess the input data received by I / O interface 512. It should be understood that preprocessing module 513 and preprocessing module 514 may be absent or only one preprocessing module may be present. If preprocessing module 513 and preprocessing module 514 are absent, computing module 511 may be used directly to process the input data.
[0099] When the execution device 510 preprocesses the input data, or when the computing module 511 of the execution device 510 performs calculations and other related processing, the execution device 510 can call the data, code, etc. in the data storage system 550 for corresponding processing, and can also store the data, instructions, etc. obtained from the corresponding processing in the data storage system 550.
[0100] Finally, the I / O interface 512 provides the processing result (eg, BIM in the embodiment of the present application) to the client device 540 , and thus to the user.
[0101] In the scenario shown in FIG3 , the user can manually input data, and this "manual input data" can be operated through the interface provided by I / O interface 512. In another scenario, client device 540 can automatically send input data to I / O interface 512. If user authorization is required for client device 540 to automatically send input data, the user can set the corresponding permissions in client device 540. The user can view the results output by execution device 510 on client device 540, and the specific presentation form can be a display, sound, action, or other specific method. Client device 540 can also serve as a data acquisition terminal, collecting input data input into I / O interface 512 and output results output from I / O interface 512 as new sample data, and storing them in database 530. Of course, collection can also be performed without client device 540, and instead the I / O interface 512 directly stores the input data input into I / O interface 512 and output results output from I / O interface 512 as new sample data in database 530.
[0102] It is worth noting that FIG3 is merely a schematic diagram of a system architecture provided by an embodiment of the present application, and the positional relationships between the devices, components, modules, etc. shown in the figure do not constitute any limitation. For example, in FIG3 , the data storage system 550 is an external memory relative to the execution device 510. In other cases, the data storage system 550 can also be placed in the execution device 510. It should be understood that the execution device 510 can be deployed in the client device 540.
[0103] From the inference side of the model:
[0104] In the embodiment of the present application, the computing module 511 of the execution device 520 can obtain the code stored in the data storage system 550 to implement part or all of the building modeling method in the embodiment of the present application.
[0105] In an embodiment of the present application, the computing module 511 of the execution device 520 may include a hardware circuit (such as an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a general-purpose processor, a digital signal processor (DSP), a microprocessor or a microcontroller, etc.), or a combination of these hardware circuits. For example, the training device 520 can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.
[0106] Specifically, the computing module 511 of the execution device 520 can be a hardware system with the function of executing instructions. Part or all of the building modeling method provided in the embodiment of the present application can be software code stored in the memory. The computing module 511 of the execution device 520 can obtain the software code from the memory and execute the obtained software code to implement part or all of the building modeling method provided in the embodiment of the present application.
[0107] It should be understood that the computing module 511 of the execution device 520 can be a combination of a hardware system that does not have the function of executing instructions and a hardware system that has the function of executing instructions (such as an AI chip). Some or all of the steps in the building modeling method provided in the embodiment of the present application can also be implemented by a hardware system that does not have the function of executing instructions in the computing module 511 of the execution device 520, which is not limited here.
[0108] Since the embodiments of the present application involve the application of a large number of neural networks, in order to facilitate understanding, the relevant terms and related concepts such as neural networks involved in the embodiments of the present application are first introduced below.
[0109] (1) Neural Network
[0110] A neural network can be composed of neural units. A neural unit can refer to an operation unit with xs and intercept 1 as input. The output of the operation unit can be:
[0111]
[0112] Where s = 1, 2, ... n, n is a natural number greater than 1, Ws is the weight of xs, and b is the bias of the neural unit. f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into the output signal. The output signal of the activation function can be used as the input of the next convolutional layer. The activation function can be a sigmoid function. A neural network is a network formed by connecting many of the above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neural units.
[0113] The work of each layer in the neural network can be expressed mathematically as To describe: From a physical perspective, the work of each layer in a neural network can be understood as completing the transformation from input space to output space (i.e., from the row space to the column space of a matrix) through five operations on the input space (a set of input vectors). These five operations include: 1. Dimensionality increase / decrease; 2. Zoom in / out; 3. Rotation; 4. Translation; 5. "Bending". Operations 1, 2, and 3 are represented by Completed, operation 4 is completed by +b, and operation 5 is implemented by a(). The word "space" is used here because the object being classified is not a single thing, but a class of things, and space refers to the collection of all individuals of this class of things. Among them, W is a weight vector, and each value in the vector represents the weight value of a neuron in this layer of the neural network. The vector W determines the spatial transformation from the input space to the output space mentioned above, that is, the weight W of each layer controls how to transform the space. The purpose of training a neural network is to eventually obtain the weight matrix of all layers of the trained neural network (the weight matrix formed by many layers of vectors W). Therefore, the training process of a neural network is essentially learning how to control spatial transformation, and more specifically learning the weight matrix.
[0114] Because we want the output of the neural network to be as close as possible to the value we really want to predict, we can compare the current network's predicted value with the desired target value, and then update the weight vector of each layer of the neural network based on the difference between the two (of course, there is usually an initialization process before the first update, which is to pre-configure the parameters for each layer in the neural network). For example, if the network's predicted value is too high, the weight vector is adjusted to make it predict a lower value, and this adjustment is continued until the neural network can predict the desired target value. Therefore, it is necessary to pre-define "how to compare the difference between the predicted value and the target value." This is the loss function or objective function, which is an important equation used to measure the difference between the predicted value and the target value. Among them, taking the loss function as an example, the higher the output value (loss) of the loss function, the greater the difference, so the training of the neural network becomes a process of minimizing this loss as much as possible.
[0115] (2) Deep Neural Networks
[0116] Deep Neural Network (DNN), also known as multi-layer neural network, can be understood as a neural network with many hidden layers. There is no special metric for "many" here. Based on the position of different layers in DNN, the neural network inside DNN can be divided into three categories: input layer, hidden layer, and output layer. Generally speaking, the first layer is the input layer, the last layer is the output layer, and the layers in between are all hidden layers. The layers are fully connected, that is, any neuron in the i-th layer must be connected to any neuron in the i+1-th layer. Although DNN looks complicated, the work of each layer is actually not complicated. Simply put, it is the following linear relationship expression: in, is the input vector, is the output vector, is the offset vector, W is the weight matrix (also called coefficient), and α() is the activation function. Each layer is just an input vector After such a simple operation, the output vector Since there are many DNN layers, the coefficient W and the offset vector The definition of these parameters in DNN is as follows: Take the coefficient W as an example: Assume that in a three-layer DNN, the linear coefficient from the 4th neuron in the second layer to the 2nd neuron in the third layer is defined as The superscript 3 represents the layer number of the coefficient W, while the subscript corresponds to the output of the third layer index 2 and the input of the second layer index 4. In summary, the coefficient from the kth neuron in the L-1th layer to the jth neuron in the Lth layer is defined as It's important to note that the input layer has no W parameter. In deep neural networks, more hidden layers allow the network to better capture complex real-world situations. Theoretically, a model with more parameters has higher complexity and greater "capacity," meaning it can handle more complex learning tasks. Training a deep neural network is essentially the process of learning the weight matrix, with the ultimate goal of obtaining the weight matrices for all layers of a trained deep neural network (a weight matrix formed by the vectors W across many layers).
[0117] (3) Convolutional Neural Network
[0118] A convolutional neural network (CNN) is a deep neural network with a convolutional architecture. A CNN consists of a feature extractor consisting of convolutional layers and subsampling layers. This feature extractor can be viewed as a filter, and the convolution process can be thought of as convolving an input image or feature map with a trainable filter. A convolutional layer is the layer of neurons in a CNN that performs convolution on the input signal. Within a convolutional layer, a neuron can only connect to a subset of neurons in adjacent layers. A convolutional layer typically contains several feature planes, each composed of a rectangular arrangement of neurons. Neurons within the same feature plane share weights, referred to as the convolution kernel. Shared weights can be understood as ensuring that the method for extracting image information is independent of position. The underlying principle is that the statistical information of one part of the image is the same as that of another. This means that image information learned in one part can also be applied to other parts. Therefore, the same learned image information can be used at all positions in the image. In the same convolutional layer, multiple convolution kernels can be used to extract different image information. Generally speaking, the more convolution kernels there are, the richer the image information reflected by the convolution operation.
[0119] Convolution kernels can be initialized as matrices of random size, and during the training process of the convolutional neural network, the convolution kernels can be learned to obtain reasonable weights. In addition, the direct benefit of shared weights is that they reduce the number of connections between the layers of the convolutional neural network, while also reducing the risk of overfitting.
[0120] (4) Loss function
[0121] During the training of a deep neural network, because we want the output of the deep neural network to be as close as possible to the desired predicted value, we can compare the current network's predicted value with the desired target value and then update the weight vector of each layer of the neural network based on the difference between the two. (Of course, before the first update, there is usually an initialization process, which pre-configures the parameters for each layer in the deep neural network.) For example, if the network's predicted value is too high, the weight vector is adjusted to make it predict a lower value. This adjustment is continued until the deep neural network can predict the desired target value or a value very close to the desired target value. Therefore, it is necessary to predefine "how to compare the difference between the predicted value and the target value." This is the loss function (or objective function), which is an important equation used to measure the difference between the predicted value and the target value. For example, the loss function output value (loss s) indicates a greater difference, so training a deep neural network becomes a process of minimizing this loss.
[0122] (5) Backpropagation algorithm
[0123] Convolutional neural networks can use the back propagation (BP) algorithm to correct the size of the parameters in the initial super-resolution model during training, reducing the reconstruction error loss of the super-resolution model. Specifically, the forward propagation of the input signal to the output generates an error loss. This error loss information is then backpropagated to update the parameters of the initial super-resolution model, thereby converging the error loss. The BP algorithm is a backward propagation movement dominated by the error loss, aiming to obtain the optimal super-resolution model parameters, such as the weight matrix.
[0124] In one possible implementation, scene vectorization automatically converts sensor data into a CAD model composed of 3D primitives containing semantic meaning, single instances, and minimal parameters, meeting or exceeding the quality standards of manual modeling. Scene vectorization is widely used in a variety of industries, including game animation, architectural design, smart factories, and digital cities. Currently, scene vectorization relies heavily on manual processing. Due to high labor costs, poor relevance to the real environment, and ambiguous semantics, it can only achieve human-computer interaction in limited scenarios and even prevents further intelligent digital analysis.
[0125] In existing implementations, BIM is generated by performing surface extraction on data collected by sensors, which is highly dependent on the accuracy of the collected data. If some structural planes of a building are not captured by the sensors, the accuracy of the constructed building model is low. The building modeling method provided in the embodiments of the present application can still obtain a highly accurate building model even when the data collected for the building is not fully covered.
[0126] Referring to FIG. 4 , FIG. 4 is a flow chart of a building modeling method provided in an embodiment of the present application. As shown in FIG. 4 , the building modeling method provided in an embodiment of the present application includes:
[0127] 401. Acquire point cloud data collected for a target building, where the point cloud data includes first point cloud data of multiple walls of the target building.
[0128] In a possible implementation, the execution device may obtain point cloud data collected for the target building.
[0129] In one possible implementation, the acquisition device for collecting point cloud data of the target building can be a laser scanning vehicle, a camera, a mobile phone, a tablet personal computer, a laptop computer, a digital camera, a personal digital assistant (PDA), a navigation device, a mobile internet device (MID) or a wearable device, etc., which is not specifically limited in this application.
[0130] In a possible implementation, the sensor for collecting point cloud data of the target building may be a lidar, a camera, and the like.
[0131] Optionally, the data collection device can have real-time upload capabilities, meaning it can upload collected data to a server in real time. Alternatively, after completing data collection, the data collection device can upload the collected data to the server in a centralized manner. This collected data is used by the execution device to construct a BIM for the target building.
[0132] Exemplarily, point cloud data can be acquired through a variety of methods, including LiDAR scanning, stereo cameras, and multi-view 3D reconstruction algorithms. Optionally, the point cloud data can include multiple point clouds, and the point cloud data can be an Nx6 array representing the 3D coordinates and RGB colors of N point clouds. The RGB colors are optional.
[0133] In a possible implementation, the point cloud data may be used to describe the structural features of a target building (eg, may be used to describe the structural features of a surface of the building).
[0134] In one possible implementation, semantic segmentation and primitive segmentation can be performed on point cloud data. For example, a trained semantic segmentation network can be used for semantic segmentation, and a trained primitive segmentation network can be used for primitive segmentation. For example, a SparseConvNet can be used for semantic segmentation, and a RegionGrowing network can be used for primitive segmentation. After semantic segmentation and primitive segmentation, each point in the point cloud data can contain corresponding semantic labels and planar primitive parameters.
[0135] In one possible implementation, for the i-th point, a semantic integer value 0<=si<=S can be assigned (for example, the semantic type can include but is not limited to the ground, wall, column, door and window, ceiling, table, chair, etc.), where 0 represents no semantics (for example, 0 can be assigned for noise points in the point cloud data, or point clouds that cannot be recognized by the semantic segmentation network), and S represents the total number of semantic types that the system can segment.
[0136] In one possible implementation, each point cloud can be assigned a plane integer value li>=0, where 0 indicates that it is not on the detected plane. Points assigned the same plane integer value are considered to be on the same plane. Assuming that the maximum value of {li} is L, there are a total of L planes, and each plane calculates its parameters through the plane fitting method<a,b,c,d> , representing the plane equation ax+by+cz+d=0. For the i-th plane (1<=i<=L), its semantics can be calculated as follows: the maximum number of points contained in each semantic among the points contained in the plane is the corresponding semantics.
[0137] In one possible implementation, floor levels can be determined based on point cloud data. Specifically, by segmenting primitives with the semantic meaning of ground, the scene can be divided into different floors. For example, a plane with the semantic meaning of ground is found, and the median height of the points contained in it is obtained. This value is used as the horizontal cutting height of the floor to divide the point cloud into floors.
[0138] In a possible implementation, the point cloud data may include first point cloud data, and the first point cloud data may be point cloud data with the semantics of a wall in the point cloud data.
[0139] In a possible implementation, the first point cloud data may be point cloud data located on the same floor and having the semantics of a wall in the point cloud data.
[0140] 402. Based on the first point cloud data, obtain topological information, wherein the topological information includes position information of the projection line segment of each of the walls and position information of at least one ground area surrounded by multiple projection line segments; wherein the multiple projection line segments are formed by the intersection of straight lines on which the projection lines of the multiple walls on the horizontal plane lie.
[0141] In one possible implementation, the first point cloud data with the semantics of a wall can be projected onto the ground (e.g., a horizontal plane) to become a projection line. The straight lines where the projection lines of multiple walls on the horizontal plane intersect can form multiple projection line segments, wherein the endpoints at both ends of each projection line segment can be the intersection points between the projection lines.
[0142] In a possible implementation, the projection line obtained by projecting the point cloud data onto the ground (eg, a horizontal plane) may be obtained by straight line fitting.
[0143] In existing implementations, building BIMs are constructed based on collected point cloud data and rely on closed-loop assumptions. In some scenarios, due to omissions in the collected point cloud data, it is possible that complete point cloud data cannot be collected for some building surfaces, and thus, a complete closed loop cannot be formed. In this case, parts of the building's walls or ground areas may be omitted from the BIM. Referring to FIG5 , the solid line in FIG5 is the projection result of point cloud data with the semantics of a wall in the point cloud data onto a horizontal plane. Due to omissions in the collected data, the point cloud of a portion of the wall corresponding to projection line 501 is not collected (the dashed portion in projection line 501), and the point cloud of a portion of the wall corresponding to projection line 502 is not collected (the dashed portion in projection line 502). In this case, since the closed-loop assumption only defines the area strictly enclosed by the wall as a valid ground area, the building BIM is constructed based only on the implemented point cloud data, and the ground area enclosed by projection lines 501, 502, 503, and 504 is missing from the BIM.
[0144] In an embodiment of the present application, the projection line of the wall can be extended, and the line segments between the intersection points of the extended projection lines (that is, the straight lines where the projection lines are located) can be used as candidate projection line segments. The projection line segments may actually exist (for example, the point cloud data itself is complete, or the point cloud data itself is missing), or they may not exist (because they are obtained by the intersection of the extended lines, they may not actually exist). A neural network can be used to determine whether to retain the projection line segments obtained by the intersection of the extended lines, and then the wall with the missing part of the point cloud data can also be restored in the BIM, thereby increasing the accuracy of the BIM construction.
[0145] Taking the case where the multiple walls may include a first wall, the first projection line segment of the first wall includes a projection line of the first wall on a horizontal plane and an extension line of the projection line.
[0146] For example, referring to Figure 5, one end of the projection line segment 501 is the intersection with the extended projection line 501, and the other end of the projection line segment 501 is the intersection with the projection line 504. Therefore, the projection line segment 504 can include the projection line of the wall on the horizontal plane (solid line part) and the extension line of the projection line (dashed line part).
[0147] In order to construct the BIM of the target building, it is necessary to obtain topological information used to describe the structure of the wall and ground area of the target building (the structure may include shape and position). For example, the structure of the wall of the target building can be described by the position of the projection line segment of the wall on the horizontal plane, and the structure of the ground area of the target building can be described by the position of the ground area.
[0148] In one possible implementation, the position of the wall can be described by the position of the projection line segment of the wall on the horizontal plane, and the position of the projection line segment can be described by the position of the endpoints at both ends, or the center point (or other feature point) of the line segment combined with the direction.
[0149] In a possible implementation, the position information of the at least one ground area may also be represented by the position of the enclosed projection line segment.
[0150] In a possible implementation, the topology information may include location information of an intersection where the straight lines on which the projection lines of the multiple walls on the horizontal plane intersect each other. The location information of the intersection may be described as a coordinate value of the intersection.
[0151] In a possible implementation, the position information of each projection line segment is represented by the positions of endpoints at both ends of the target projection line, and the endpoints are intersection points between the target projection lines of the multiple walls.
[0152] For example, referring to FIG. 5 , the position of the projected line segment 501 in FIG. 5 can be described by the positions of the endpoints at both ends of the projected line segment 501 .
[0153] In a possible implementation, the position information of the at least one ground area is represented by the position of the enclosed projection line segment.
[0154] In one possible implementation, topological information can be represented as an arrangement layout structure (Arrangement). The arrangement layout structure may include cut-out atomic line segments (i.e., projected line segments in the embodiment of the present application) and facets surrounded by atomic line segments (i.e., ground areas in the embodiment of the present application). Arrangement allows the inclusion of isolated points and edges, which is a more general way of expressing a planar graph. Planar graph prediction based on ArrangementNet not only utilizes explicit geometric data features, but also can learn potential topological relationships between line segments to generate higher quality planar graphs.
[0155] The arrangement structure (Arrangement) may include the positions of each intersection point, the positions of both end points of each projection line segment, each ground area, and the positions of the projection line segments that enclose the ground area.
[0156] In one possible implementation, after obtaining the topological information, since the topological information includes projection line segments and ground areas obtained by extending the projection lines, it is necessary to identify whether these projection line segments and ground areas actually exist, and then determine whether these projection line segments and ground areas need to be retained in the BIM.
[0157] In one possible implementation, the topological information can be converted into a graph structure, and based on the trained graph neural network (also including downstream task networks, such as fully connected layers and output layers), it can be identified whether these projected line segments and ground areas need to be retained in the BIM.
[0158] In a possible implementation, a target graph structure can be obtained based on the topology information, where the target graph structure includes multiple nodes and connection relationships between the multiple nodes, wherein each of the nodes corresponds to an object, and the object is the wall or the ground area.
[0159] In a possible implementation, some nodes in the target graph structure correspond to walls. Optionally, the some nodes may correspond to the walls one-to-one, that is, one node corresponds to one wall.
[0160] In a possible implementation, some nodes in the target graph structure correspond to ground areas. Optionally, there may be a one-to-one correspondence between these some nodes and the ground areas, that is, one node corresponds to one ground area.
[0161] For the nodes corresponding to the wall, each node can be represented as a feature vector. In a possible implementation, each of the multiple nodes includes a target vector for representing the corresponding wall, and the target vector can be related to at least one of the following: the position information of the corresponding wall in the topology information (for example, but not limited to the center point position of the projection line segment corresponding to the wall); or, the degree of overlap (or consistency) between the position information of the corresponding wall in the topology information and the position information of the corresponding wall in the point cloud data. For example, in Figure 5, if the dotted line portion of the projection line segment 501 is longer, it means that the degree of overlap between the position information of the corresponding objects in the first point cloud data is lower (or described as worse consistency).
[0162] For the nodes corresponding to the ground area, each node can be represented as a feature vector. In a possible implementation, each of the multiple nodes includes a target vector for representing the corresponding ground area, and the target vector can be related to at least one of the following: the position information of the corresponding ground area in the topology information; or the degree of overlap (or consistency) between the position information of the corresponding ground area in the topology information and the position information of the corresponding ground area in the point cloud data.
[0163] In a possible implementation, the objects corresponding to the nodes having a connection relationship in the target graph structure are adjacently located units, wherein edges exist between the nodes having a connection relationship.
[0164] In a possible implementation, the nodes that are connected all correspond to the wall surfaces, and the adjacent positions mean that the projection line segments of the wall surfaces are adjacent and collinear.
[0165] For example, referring to FIG. 6 , the projection line segment 601 and the projection line segment 602 are adjacent and collinear.
[0166] In a possible implementation, the nodes that are connected all correspond to the wall surfaces, and the adjacent positions mean that the projection line segments of the wall surfaces are used to surround the same ground area.
[0167] For example, referring to FIG. 7 , projection line segment 701 , projection line segment 702 , projection line segment 703 , and projection line segment 704 are used to enclose the same ground area.
[0168] In a possible implementation, the nodes having a connection relationship correspond to the wall and the ground area respectively, and the adjacent positions are: a projection line segment of the wall is used to surround the ground area.
[0169] 8 , projection line segments 801, 802, 803, and 804 are used to enclose the same ground area 805. Therefore, a connection relationship exists between any two nodes in projection line segments 801, 802, 803, and the ground area 805.
[0170] Taking Arrangement as an example, topological information can be further constructed into a graph structure as the input of a graph neural network. The graph structure contains two different types of nodes, representing the two elements in the Arrangement: line segments in the Arrangement represent wall nodes, and facets in the Arrangement represent floor nodes. Three types of edges are constructed in the graph structure to represent the relationship between two nodes:
[0171] (1) Two adjacent line segments are collinear: adjacent line segments with the same direction vector;
[0172] (2) Two adjacent line segments are coplanar: adjacent line segments enclosing the same patch;
[0173] (3) Adjacent lines and surfaces: the correspondence between line segments and the surfaces they surround;
[0174] By calculating the data consistency between the elements (line segments, patches) in the arrangement and the original point cloud, we use them as the features of the two nodes in the graph structure. Optionally, the geometric relative position information of the edges can be used as the features of the edges in the graph structure.
[0175] 403. Determine whether each of the projection line segments or the ground area is retained based on the topological information through a target neural network, wherein the retained projection line segments or the ground area are used to construct a building information model (BIM) of the target building.
[0176] In one possible implementation, after obtaining the topological information, since the topological information includes projection line segments and ground areas obtained by extending the projection lines, it is necessary to identify whether these projection line segments and ground areas actually exist, and then determine whether these projection line segments and ground areas need to be retained in the BIM.
[0177] In one possible implementation, the topological information can be converted into a graph structure, and based on the trained graph neural network (also including downstream task networks, such as fully connected layers and output layers), it can be identified whether these projected line segments and ground areas need to be retained in the BIM.
[0178] In one possible implementation, determining whether each of the projection line segments or the ground area is retained based on the topological information through a target neural network may specifically include: determining whether each of the multiple nodes is retained based on the target graph structure through a target neural network.
[0179] Next, we give a data processing diagram of a graph neural network:
[0180] In one possible implementation, the input to the graph neural network is the graph structure composed of the basic elements in the arrangement, as well as the feature vectors of each node and relationship. Convolution is performed on each relationship in the graph structure using different network parameters, and the features obtained from the edge convolution are aggregated back to the adjacent elements through a pooling operation. This may include updating node features and edge features:
[0181] (1) Update of node features
[0182] In one possible implementation, the feature of each node is updated by the features of all its associated adjacent nodes. For example, the feature calculation formula of the k-th layer node v is:
[0183]
[0184] Where N(v) represents the neighbor nodes of node v, λ represents the proportion coefficient of the original features in the node feature update, f represents the linear projection from the edge feature space to the node feature space, and ⊙ represents the convolution operation.
[0185] (2) Update of edge features
[0186] In one possible implementation, the edge feature is updated by the features of its two end points. For example, the update formula of the edge feature of the k-th layer composed of uv nodes is:
[0187]
[0188] Among them, γ represents the proportion coefficient of the original features in the edge feature update, and f' represents the linear projection from the node feature space to the edge feature space.
[0189] In one possible implementation, the input features of the initialized element are the coverage (occupancy), size, and center position of its original point cloud. The output of the multi-layer perceptron consisting of 5 layers of ArrangementConv and 3 layers of linear layers is a binary prediction of each element in the Arrangement. The elements retained are 1 and those deleted are 0. The groundtruth is used to supervise the learning, and the retained elements are the final plane map.
[0190] In a possible implementation, the retained projection line segment or the ground area is used to construct a Building Information Model (BIM) of the target building.
[0191] In a possible implementation, the BIM may also include other objects of the target building (eg, ceilings, doors, windows, columns, etc.).
[0192] In a possible implementation, the point cloud data also includes: second point cloud data of multiple ceilings of the target building; the multiple ceilings include a first ceiling and a second ceiling; the position information of the first ceiling and the second ceiling can be determined based on the second point cloud data; based on the minimum cut algorithm of the graph, an energy equation is constructed, and the position information of the first ceiling and the second ceiling is corrected according to the energy equation, and the corrected position information of the first ceiling and the second ceiling is used to construct the building information model (BIM) of the target building.
[0193] For roof elements, the element boundaries can be established and spliced. The roof is composed of multiple element planes. For each element, an intersection line is drawn and projected onto a horizontal plane to form an arrangement. The arrangement is divided into atomic units, taking into account fitting energy and smoothing energy. For each atomic patch, the fitting energy term is the difference volume between the patch and the roof point cloud when it is classified as a plane; for every two patches, the smoothing energy is the vertical gap area caused by the two patches being in different planes. The energy can be optimized and segmented as a whole using the standard Multilabel Graphcut to determine the final plane division of the roof for mesh construction.
[0194] For key structural construction such as doors, windows, and columns, FCAF3D can be used to learn their locations. For each object, FCAF3D provides a three-dimensional bounding box.
[0195] In one possible implementation, semantic elements can be integrated into the model by combining CSG technology. Based on the above rules, a modeling language is formed, combining multiple elements (such as layers (floors), floor plans (ground, walls), columns, doors, windows, ceilings) to form the final BIM model. The mathematical description can be:
[0196]
[0197] Specifically, the layout E a Function prediction wall C w and ground C f , through E b The function (described in S4) predicts the ceiling C c , the three are integrated. The elements can be extracted by FCAF3D (denoted as function E c ), including doors, windows and other key semantic elements, among which doors and windows are removed from the first three structures, and the remaining elements are fused through CSG technology.
[0198] Next, a specific example is used to describe the building modeling method in the embodiment of the present application:
[0199] Referring to Figure 9, taking the construction of an entire shopping mall as an example, a Navvis laser car is used to scan the mall, covering the area of the mall that needs to be built as much as possible, and obtaining an Nx6 point cloud (3D coordinates and colors) from the laser car. The point cloud is transmitted to the server, and SparseConvNet and RegionGrowing are used to assign semantic labels and plane instance labels to each point respectively; for each plane, a 4-parameter plane equation is fitted through the points it contains, and the semantics with the largest number of points is found as the semantics of each plane. According to the plane of the ground semantics, the median height of the points it contains is found as the ground height. The original point cloud is clustered into each layer using the ground height of each layer as the dividing line. Correspondingly, the semantics and planes are also clustered into the corresponding floors. Loop through each floor, build the corresponding BIM for that floor, and fuse them to obtain the final BIM.
[0200] Specifically, all planes on the floor that are semantically walls can be found and projected onto the horizontal plane to obtain two-dimensional line segments. By extending and intersecting the two-dimensional line segments, a standard geometric arrangement is formed. The method described in the above embodiment is used to construct a graph structure on the geometric arrangement, and the GCN network is used to perform binary predictions on the elements of the graph to determine whether to retain them. The plane diagram is obtained through the prediction. Specifically, the retained line segments are the two-dimensional projections of the actual walls that should be retained, and the retained facets are the areas that should be filled with floors.
[0201] For all planes on this floor that are semantically ceilings, find the intersection lines between them in 3D space and project them onto a 2D plane to form a geometric arrangement. The geometric arrangement facets are instance-segmented using the method described in the above embodiment, and each facet is assigned a corresponding plane instance. Using the plane parameters, the facets can be back-projected back into 3D space to form a CAD model of the ceiling. The wall segments in the plan view are stretched to the height of the ceiling to form vertical 3D walls. This results in the 3D BIM intermediate results for the floor, ceiling, and walls.
[0202] FCAF3D was used to extract 3D bounding boxes for key semantics. For doors and windows, the 3D bounding box areas were deducted from the intermediate results generated by S4. For other key elements of the mall, such as columns and staircases, CAD models from the model library were replaced. Specifically, three-axis stretching was performed to align their bounding boxes with those extracted by FCAF3D. These elements were then fused with the intermediate BIM results using CSG to form the final BIM for each floor.
[0203] The comparison of the results of the embodiments of the present application with those of the prior art can be seen in Table 1 below:
[0204] Table 1
[0205]
[0206] Among them, the simplification rate can uniformly thin the point cloud by 2 cm and output the simplified mesh, with the number of points of the patch and the point cloud being b.
[0207] Evaluation method: Select all indoor scenes, calculate the simplification rate for each scene, and take the average value.
[0208] Table 1 shows that automatic CAD can achieve a simplification rate extremely close to that of manual CAD, and the simplification rate of 3D vectorization is much higher than that of mesh generation.
[0209] Table 2
[0210]
[0211] Among them, for the floor (F), wall (W), and ceiling (C), evaluate them separately:
[0212] Accuracy <N represents the proportion of the area where the error is less than N.
[0213] Evaluation method: Take the average value of the proportion of indoor scenes.
[0214] Median error: Take the median of the errors for the above semantic regions.
[0215] Evaluation method: Take the average value of the medians of all indoor scenes.
[0216] The embodiment of the present application provides a building modeling method, and the method includes: obtaining point cloud data collected for a target building, where the point cloud data includes first point cloud data of multiple walls of the target building; obtaining topological information according to the first point cloud data, where the topological information includes position information of projection line segments of each wall and position information of at least one ground area surrounded by multiple projection line segments; among them, the multiple projection line segments are formed by the intersection of the straight lines where the projection lines of the multiple walls on the horizontal plane are located; according to the topological information, through a target neural network, determine whether each projection line segment or the ground area is retained, where the retained projection line segment or ground area is used to construct a building information model BIM of the target building. For the projection lines of the walls in the present application, they can be extended, and the line segments between the intersections of the extended projection lines (that is, the straight lines where the projection lines are located) are used as candidate projection line segments. This projection line segment may actually exist (for example, the point cloud data itself is complete or there are missing parts in the point cloud data), or it may not exist (because it is obtained by the intersection of extended lines and may not actually exist). The neural network can be used to determine whether to retain the projection line segment obtained by the intersection of the extended lines, so that the walls with missing parts in the point cloud data can be restored in the BIM, thereby increasing the accuracy of BIM construction.
[0217] Furthermore, the Arrangement structure is used to model floor plans, and a graph convolutional network based on the Arrangement graph structure learns the correct connection relationships between line segments in the floor plan, automatically generating high-quality two-dimensional floor plans. The Arrangement-based floor plan representation does not require Manhattan and contour closure assumptions.
[0218] In addition, the boundary lines between roof planes are projected to form an arrangement structure. An energy equation is constructed based on the minimum graph cut to achieve facet segmentation of the arrangement. For each atomic facet, the fitted energy term is the volume difference between the facet and the roof point cloud when the facet is classified as a plane. For every two facets, the smoothing energy is the area of the vertical gap between the two adjacent facets due to their different planes. A standard multi-label graph cut algorithm is used to optimize and segment the energy overall, determining the final planar division of the roof for mesh construction.
[0219] Next, from the perspective of the device, the building modeling device provided in the embodiment of the present application is described with reference to FIG10 . FIG10 is a schematic diagram of the structure of the building modeling device 1000 provided in the embodiment of the present application. The device 1000 includes:
[0220] An acquisition module 1001 is configured to acquire point cloud data collected for a target building, wherein the point cloud data includes first point cloud data of a plurality of walls of the target building;
[0221] The specific description of the acquisition module 1001 can refer to the description of step 401 in the above embodiment, which will not be repeated here.
[0222] A topology information construction module 1002 is configured to obtain topology information based on the first point cloud data, the topology information including position information of a projection line segment of each wall surface and position information of at least one ground area surrounded by a plurality of the projection line segments; wherein the plurality of projection line segments are formed by the intersection of straight lines on which the projection lines of the plurality of walls on a horizontal plane lie;
[0223] The specific description of the topology information construction module 1002 can refer to the description of step 402 in the above embodiment, which will not be repeated here.
[0224] The modeling module 1003 is used to determine whether each of the projection line segments or the ground area is retained based on the topological information through a target neural network, wherein the retained projection line segments or the ground area are used to construct a building information model (BIM) of the target building.
[0225] The specific description of the modeling module 1003 can refer to the description of step 403 in the above embodiment, which will not be repeated here.
[0226] In a possible implementation, the multiple walls include a first wall, and a first projection line segment of the first wall includes a projection line of the first wall on a horizontal plane and an extension line of the projection line.
[0227] In a possible implementation, the topology information further includes position information of intersection points where straight lines containing projection lines of the multiple walls on the horizontal plane intersect.
[0228] In a possible implementation, the position information of each projection line segment is represented by the positions of endpoints at both ends of the target projection line, and the endpoints are intersection points between the target projection lines of the multiple walls.
[0229] In a possible implementation, the position information of the at least one ground area is represented by the position of the enclosed projection line segment.
[0230] In a possible implementation, the apparatus further includes:
[0231] a graph structure construction module, configured to obtain a target graph structure based on the topological information, wherein the target graph structure includes a plurality of nodes and connection relationships between the plurality of nodes, wherein each of the nodes corresponds to an object, the object being the wall or the ground area, and the objects corresponding to the nodes having a connection relationship are adjacent units;
[0232] The modeling module is specifically used to:
[0233] Based on the target graph structure, determining whether each of the plurality of nodes is to be retained is performed through a target neural network.
[0234] In a possible implementation, the nodes that are connected all correspond to the wall, and the adjacent positions mean that the projected line segments of the wall are adjacent and collinear; or,
[0235] The nodes that are connected all correspond to the wall surfaces, and the positions are adjacent if: the projection line segments of the wall surfaces are used to enclose the same ground area; or,
[0236] The nodes having a connection relationship correspond to the wall surface and the ground area respectively, and the positions are adjacent when: the projection line segment of the wall surface is used to surround the ground area.
[0237] In one possible implementation, the target neural network includes a graph neural network.
[0238] In one possible implementation, each of the plurality of nodes includes a target vector for representing a corresponding object, where the target vector is related to at least one of the following:
[0239] The location information of the corresponding object in the topology information; or
[0240] The degree of overlap between the position information of the corresponding object in the topology information and the position information of the corresponding object in the point cloud data.
[0241] In a possible implementation, the point cloud data further includes: second point cloud data of multiple ceilings of the target building; the multiple ceilings include a first ceiling and a second ceiling; and the modeling module is further configured to:
[0242] determining position information of the first ceiling and the second ceiling according to the second point cloud data;
[0243] An energy equation is constructed based on a graph minimum cut algorithm, and the position information of the first ceiling and the second ceiling is corrected according to the energy equation. The corrected position information of the first ceiling and the second ceiling is used to construct a building information model (BIM) of the target building.
[0244] Next, an execution device provided by an embodiment of the present application is introduced. Please refer to Figure 11. Figure 11 is a structural schematic diagram of the execution device provided by an embodiment of the present application. The execution device 1100 can be specifically manifested as a mobile phone, a tablet, a laptop computer, an intelligent wearable device, a server, etc., which is not limited here. Among them, the building modeling device described in the embodiment corresponding to Figure 10 can be deployed on the execution device 1100 to implement the function of building modeling in the embodiment corresponding to Figure 11. Specifically, the execution device 1100 includes: a receiver 1101, a transmitter 1102, a processor 1103 and a memory 1104 (wherein the number of processors 1103 in the execution device 1100 can be one or more, and Figure 11 takes one processor as an example), wherein the processor 1103 may include an application processor 11031 and a communication processor 11032. In some embodiments of the present application, the receiver 1101, the transmitter 1102, the processor 1103 and the memory 1104 may be connected via a bus or other means.
[0245] The memory 1104 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1103. A portion of the memory 1104 may also include non-volatile random access memory (NVRAM). The memory 1104 stores processor and operation instructions, executable modules, or data structures, or subsets or extended sets thereof. The operation instructions may include various operation instructions for implementing various operations.
[0246] Processor 1103 controls the operation of the execution device. In specific applications, the various components of the execution device are coupled together via a bus system. In addition to a data bus, the bus system may also include a power bus, a control bus, and a status signal bus. However, for clarity, all of these buses are referred to as a bus system in the figure.
[0247] The methods disclosed in the above embodiments of the present application can be applied to or implemented by processor 1103. Processor 1103 can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in processor 1103. The above processor 1103 can be a general-purpose processor, a digital signal processor (DSP), a microprocessor, or a microcontroller, and can further include an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The processor 1103 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in memory 1104, and processor 1103 reads information from memory 1104 and, in conjunction with its hardware, completes the steps of the above method.
[0248] Receiver 1101 can be used to receive input digital or character information and generate signal input related to executing device-related settings and function control. Transmitter 1102 can be used to output digital or character information through the first interface. Transmitter 1102 can also be used to send instructions to the disk pack through the first interface to modify data in the disk pack. Transmitter 1102 can also include a display device such as a display screen.
[0249] In an embodiment of the present application, in one case, the processor 1103 is configured to execute the building modeling method in the embodiment corresponding to FIG4 .
[0250] The present application also provides a training device. Please refer to FIG. 12 , which is a schematic diagram of the structure of a training device provided by an embodiment of the present application. Specifically, the training device 1200 is implemented by one or more servers. The training device 1200 may vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 1212 (e.g., one or more processors), a memory 1232, and one or more storage media 1230 (e.g., one or more mass storage devices) storing application programs 1242 or data 1244. The memory 1232 and storage medium 1230 may be either ephemeral or persistent storage. The program stored in the storage medium 1230 may include one or more modules (not shown), each of which may include a series of instruction operations on the training device. Furthermore, the CPU 1212 may be configured to communicate with the storage medium 1230 to execute the series of instruction operations in the storage medium 1230 on the training device 1200.
[0251] The training device 1200 may also include one or more power supplies 1226, one or more wired or wireless network interfaces 1250, one or more input and output interfaces 1258; or, one or more operating systems 1241, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0252] Specifically, the training device can execute the steps related to model training in the above embodiments.
[0253] An embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the steps executed by the aforementioned execution device, or enables the computer to execute the steps executed by the aforementioned training device.
[0254] A computer-readable storage medium is also provided in an embodiment of the present application, which stores a program for signal processing. When the computer-readable storage medium is run on a computer, it enables the computer to execute the steps executed by the aforementioned execution device, or enables the computer to execute the steps executed by the aforementioned training device.
[0255] The execution device, training device or terminal device provided in the embodiments of the present application can specifically be a chip, and the chip includes: a processing unit and a communication unit, the processing unit can be, for example, a processor, and the communication unit can be, for example, an input / output interface, a pin or a circuit, etc. The processing unit can execute the computer execution instructions stored in the storage unit, so that the chip in the execution device executes the data processing method described in the above embodiment, or so that the chip in the training device executes the data processing method described in the above embodiment. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc. The storage unit can also be a storage unit located outside the chip in the wireless access device, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.
[0256] Specifically, see Figure 13 , which is a schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip may be a neural network processor (NPU) 1300. NPU 1300 is mounted on a host CPU (host CPU) as a coprocessor, with tasks assigned by the host CPU. The core of the NPU is arithmetic circuit 1303, which is controlled by controller 1304 to extract matrix data from memory and perform multiplication operations.
[0257] In some implementations, the arithmetic circuit 1303 includes multiple processing units (PEs). In some implementations, the arithmetic circuit 1303 is a two-dimensional systolic array. The arithmetic circuit 1303 can also be a one-dimensional systolic array or other electronic circuitry capable of performing mathematical operations such as multiplication and addition. In some implementations, the arithmetic circuit 1303 is a general-purpose matrix processor.
[0258] For example, assume there are input matrix A, weight matrix B, and output matrix C. The computation circuit retrieves the corresponding data of matrix B from weight memory 1302 and caches it on each PE in the computation circuit. The computation circuit then retrieves the data of matrix A from input memory 1301 and performs a matrix operation on it with matrix B. The partial or final matrix result is stored in accumulator 1308.
[0259] Unified memory 1306 is used to store input and output data. Weight data is directly transferred to weight memory 1302 through the Direct Memory Access Controller (DMAC) 1305. Input data is also transferred to unified memory 1306 through the DMAC.
[0260] BIU stands for Bus Interface Unit 1310 , which is used for interaction between the AXI bus, DMAC, and instruction fetch buffer (IFB) 1309 .
[0261] The bus interface unit 1310 (BIU) is used for the instruction fetch memory 1309 to obtain instructions from the external memory, and is also used for the storage unit access controller 1305 to obtain the original data of the input matrix A or the weight matrix B from the external memory.
[0262] DMAC is mainly used to move input data in the external memory DDR to the unified memory 1306 or to move weight data to the weight memory 1302 or to move input data to the input memory 1301.
[0263] The vector calculation unit 1307 includes multiple operation processing units. When necessary, it further processes the output of the operation circuit 1303, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. It is mainly used for non-convolutional / fully connected layer network calculations in neural networks, such as batch normalization, pixel-level summation, and upsampling of feature planes.
[0264] In some implementations, the vector calculation unit 1307 can store the processed output vector in the unified memory 1306. For example, the vector calculation unit 1307 can apply a linear function or a nonlinear function to the output of the operation circuit 1303, such as linear interpolation of the feature plane extracted by the convolution layer, or accumulate a vector of values to generate an activation value. In some implementations, the vector calculation unit 1307 generates a normalized value, a pixel-level summed value, or both. In some implementations, the processed output vector can be used as an activation input to the operation circuit 1303, for example, for use in subsequent layers in a neural network.
[0265] An instruction fetch buffer 1309 connected to the controller 1304 is used to store instructions used by the controller 1304;
[0266] Unified memory 1306, input memory 1301, weight memory 1302, and instruction fetch memory 1309 are all on-chip memories. External memories are private to the NPU hardware architecture.
[0267] The processor mentioned in any of the above places can be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the above program.
[0268] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
[0269] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.
[0270] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0271] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
Claims
1. A building modeling method, characterized in that: The method comprises: Acquire point cloud data collected for a target building, the point cloud data including first point cloud data of a plurality of walls of the target building; Acquire topological information based on the first point cloud data, the topological information including position information of a projection line segment of each of the walls and position information of at least one ground area surrounded by a plurality of the projection line segments; wherein the plurality of projection line segments are formed by the intersection of straight lines on which projection lines of the plurality of walls on a horizontal plane lie; Based on the topological information, a target neural network is used to determine whether each of the projected line segments or the ground areas are retained, wherein the retained projected line segments or the ground areas are used to construct a building information model (BIM) of the target building.
2. The method according to claim 1, characterized in that The multiple walls include a first wall, and a first projection line segment of the first wall includes a projection line of the first wall on a horizontal plane and an extension line of the projection line.
3. The method according to claim 1 or 2, characterized in that The topology information further includes position information of intersection points where straight lines on which projection lines of the multiple walls on the horizontal plane intersect each other.
4. The method according to any one of claims 1 to 3, characterized in that: The position information of each projection line segment is represented by the positions of the endpoints at both ends of the target projection line, and the endpoints are the intersection points between the target projection lines of the multiple walls.
5. The method according to any one of claims 1 to 4, characterized in that: The position information of the at least one ground area is represented by the position of the enclosed projection line segment.
6. The method according to any one of claims 1 to 5, characterized in that: The topology information includes intersection points where straight lines on which projection lines of the multiple walls on the horizontal plane intersect each other; and the data structure used for the arrangement and layout relationship between the intersection points, the projection line segments and the ground area includes arrangement.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Acquire a target graph structure according to the topology information, the target graph structure including a plurality of nodes and connection relationships between the plurality of nodes, wherein each of the nodes corresponds to an object, the object being the wall or the ground area, and the objects corresponding to the nodes having a connection relationship are adjacent units; The determining, based on the topological information, by a target neural network, whether each of the projected line segments or the ground area is to be retained includes: Based on the target graph structure, determining whether each of the plurality of nodes is to be retained is performed through a target neural network.
8. The method according to claim 7, characterized in that The nodes that are connected all correspond to the wall, and the adjacent positions mean that the projected line segments of the wall are adjacent and collinear; or, The nodes that are connected all correspond to the wall surfaces, and the positions are adjacent when: the projection line segments of the wall surfaces are used to enclose the same ground area; or, The nodes having a connection relationship correspond to the wall surface and the ground area respectively, and the positions are adjacent when: the projection line segment of the wall surface is used to surround the ground area.
9. The method according to claim 7 or 8, characterized in that The target neural network includes a graph neural network.
10. The method according to any one of claims 7 to 9, characterized in that: Each node of the plurality of nodes includes a target vector for representing a corresponding object, the target vector being related to at least one of the following: The location information of the corresponding object in the topology information; or The degree of overlap between the position information of the corresponding object in the topology information and the position information of the corresponding object in the point cloud data.
11. The method according to any one of claims 1 to 10, characterized in that: The point cloud data further includes: second point cloud data of a plurality of ceilings of the target building; the plurality of ceilings includes a first ceiling and a second ceiling; the method further includes: determining position information of the first ceiling and the second ceiling according to the second point cloud data; An energy equation is constructed based on a graph minimum cut algorithm, and the position information of the first ceiling and the second ceiling is corrected according to the energy equation. The corrected position information of the first ceiling and the second ceiling is used to construct a building information model (BIM) of the target building.
12. A building modeling device, characterized in that: The device comprises: An acquisition module, configured to acquire point cloud data collected for a target building, wherein the point cloud data includes first point cloud data of a plurality of walls of the target building; a topology information construction module, configured to obtain topology information based on the first point cloud data, the topology information including position information of a projection line segment of each of the wall surfaces and position information of at least one ground area surrounded by a plurality of the projection line segments; wherein the plurality of projection line segments are formed by the intersection of straight lines on which the projection lines of the plurality of wall surfaces on a horizontal plane lie; A modeling module is used to determine whether each of the projected line segments or the ground areas is retained based on the topological information through a target neural network, wherein the retained projected line segments or the ground areas are used to construct a building information model (BIM) of the target building.
13. The device according to claim 12, characterized in that The multiple walls include a first wall, and a first projection line segment of the first wall includes a projection line of the first wall on a horizontal plane and an extension line of the projection line.
14. The device according to claim 12 or 13, characterized in that The topology information further includes position information of intersection points where straight lines on which projection lines of the multiple walls on the horizontal plane intersect each other.
15. The device according to any one of claims 12 to 14, characterized in that The position information of each projection line segment is represented by the positions of the endpoints at both ends of the target projection line, and the endpoints are the intersection points between the target projection lines of the multiple walls.
16. The device according to any one of claims 12 to 15, characterized in that The position information of the at least one ground area is represented by the position of the enclosed projection line segment.
17. The device according to any one of claims 12 to 16, characterized in that The topology information includes intersection points where straight lines on which projection lines of the multiple walls on the horizontal plane intersect each other; and the data structure used for the arrangement and layout relationship between the intersection points, the projection line segments and the ground area includes arrangement.
18. The device according to any one of claims 12 to 17, characterized in that The device further comprises: a graph structure construction module, configured to obtain a target graph structure based on the topological information, wherein the target graph structure includes a plurality of nodes and connection relationships between the plurality of nodes, wherein each of the nodes corresponds to an object, the object being the wall or the ground area, and the objects corresponding to the nodes having a connection relationship are adjacent units; The modeling module is specifically used to: Based on the target graph structure, determining whether each of the plurality of nodes is to be retained is performed through a target neural network.
19. The device according to claim 18, characterized in that The nodes that are connected all correspond to the wall, and the adjacent positions mean that the projected line segments of the wall are adjacent and collinear; or, The nodes that are connected all correspond to the wall surfaces, and the positions are adjacent when: the projection line segments of the wall surfaces are used to enclose the same ground area; or, The nodes having a connection relationship correspond to the wall surface and the ground area respectively, and the positions are adjacent when: the projection line segment of the wall surface is used to surround the ground area.
20. The device according to claim 18 or 19, characterized in that The target neural network includes a graph neural network.
21. The device according to any one of claims 18 to 20, characterized in that Each node of the plurality of nodes includes a target vector for representing a corresponding object, the target vector being related to at least one of the following: The location information of the corresponding object in the topology information; or The degree of overlap between the position information of the corresponding object in the topology information and the position information of the corresponding object in the point cloud data.
22. The device according to any one of claims 12 to 21, characterized in that The point cloud data further includes: second point cloud data of a plurality of ceilings of the target building; the plurality of ceilings includes a first ceiling and a second ceiling; the modeling module is further configured to: determining position information of the first ceiling and the second ceiling according to the second point cloud data; An energy equation is constructed based on a graph minimum cut algorithm, and the position information of the first ceiling and the second ceiling is corrected according to the energy equation. The corrected position information of the first ceiling and the second ceiling is used to construct a building information model (BIM) of the target building.
23. A building modeling device, characterized in that: include: One or more processors and memory; wherein the memory stores computer-readable instructions; The one or more processors read the computer-readable instructions to enable the computer device to implement the method according to any one of claims 1 to 11.
24. A computer-readable storage medium, characterized in that The method comprises computer-readable instructions, which, when executed on a computer device, cause the computer device to execute the method according to any one of claims 1 to 11.
25. A computer program product, characterized in that The method comprises computer-readable instructions, which, when executed on a computer device, cause the computer device to execute the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Method for extracting coordinates of building characteristic points based on least square method
CN104697502A
House plan reconstruction method and device based on point cloud data
CN112765709A
Urban scene reconstruction method and device based on mass data
CN114004938A
Generative adversarial network-based point cloud completion method and device
CN114067075A
Data processing method and device
WO2021189420A1
