Methods and devices for generating three-dimensional building structures, electronic devices, and storage media

By identifying walls and constructing wing structures from architectural images and combining them with 3D data, a 3D architectural structure can be automatically generated, solving the problems of insufficient efficiency and accuracy in existing technologies and achieving efficient 3D architectural model generation.

CN122312930APending Publication Date: 2026-06-30HOYMILES POWER ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HOYMILES POWER ELECTRONICS INC
Filing Date
2026-05-29
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Existing 3D building structure generation technologies suffer from insufficient operational efficiency and accuracy, especially in the manual modeling process where it is difficult to efficiently generate high-quality 3D building models.

Method used

By identifying multiple walls in the target building image and constructing the wing structure of each wall, combined with preset 3D structural data, a 3D building structure is automatically generated.

Benefits of technology

It improves the efficiency and accuracy of 3D building structure generation, reduces the workload of manual modeling, and realizes the automated generation of 3D building structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122312930A_ABST
    Figure CN122312930A_ABST
Patent Text Reader

Abstract

This disclosure provides a method and apparatus for generating three-dimensional building structures, an electronic device, and a storage medium. The method includes: determining a target building and multiple walls of the target building in a target building image; constructing wing structures corresponding to each of the multiple walls; and generating a three-dimensional building structure of the target building based on the wing structures of the multiple walls and preset three-dimensional structure data. Embodiments of this disclosure can automate the generation of three-dimensional building structures, improving the efficiency and accuracy of three-dimensional building structure generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method and apparatus for generating three-dimensional building structures, electronic equipment, and computer-readable storage medium. Background Technology

[0002] With the rapid development of computer graphics technology, the technical means in the field of architectural design are constantly being enriched. Driven by the development of Building Information Modeling (BIM) and digital design technologies, 3D modeling technology is gradually being applied to the field of architectural design. Through 3D digital means, it is possible to realize the three-dimensional expression of architectural space, enabling the construction of 3D architectural structures from 2D architectural images in a virtual environment.

[0003] However, in practical applications, the realization of 3D building structures still faces certain technical hurdles. 3D architectural rendering involves multiple stages in the modeling process, requiring a certain level of professional technical skill from the operators. For example, manual modeling obviously reduces the efficiency and accuracy of generating 3D building structures. Therefore, there is still room for improvement in the operational efficiency and accuracy of current 3D building structure implementation. Summary of the Invention

[0004] This disclosure provides a method and apparatus for generating three-dimensional building structures, an electronic device, and a computer-readable storage medium.

[0005] Firstly, this disclosure provides a method for generating three-dimensional building structures, including:

[0006] Identify the target building and multiple walls of the target building in the target building image;

[0007] Construct the wing structures corresponding to the multiple walls respectively;

[0008] Based on the wing structure of the multiple walls and the preset three-dimensional structural data, the three-dimensional building structure of the target building is generated.

[0009] Secondly, this disclosure provides a three-dimensional building structure generation device, comprising:

[0010] The determination module is configured to determine the target building and multiple walls of the target building in the target building image;

[0011] The construction module is configured to construct the wing structures corresponding to the plurality of walls respectively;

[0012] The generation module is configured to generate the three-dimensional building structure of the target building based on the wing structure of the plurality of walls and preset three-dimensional structural data.

[0013] Thirdly, this disclosure provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, the one or more computer programs being executed by the at least one processor to enable the at least one processor to perform the above-described three-dimensional building structure generation method.

[0014] Fourthly, this disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described method for generating three-dimensional building structures.

[0015] The embodiments provided in this disclosure can directly determine multiple walls of a target building from a target building image containing the target building, and construct corresponding wing structures for each wall. This enables the storage of relevant information about the walls based on the wing structures. The wing structures can more efficiently maintain the topological relationships between multiple walls and the rooms formed by the walls, thereby reducing the workload of manual modeling. After generating the wing structures of multiple walls, the three-dimensional building structure of the target building is further generated by combining preset three-dimensional structural data, thereby automating the generation of three-dimensional building structures and improving the efficiency and accuracy of three-dimensional building structure generation.

[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0017] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the embodiments of the present disclosure to explain the disclosure and do not constitute a limitation thereof. The above and other features and advantages will become more apparent to those skilled in the art from the detailed description of exemplary embodiments with reference to the accompanying drawings, in which:

[0018] Figure 1 A flowchart of a method for generating a three-dimensional building structure provided in this disclosure embodiment;

[0019] Figure 2 A schematic diagram of a building unit template provided in an embodiment of this disclosure;

[0020] Figure 3 This is a schematic diagram of a wing structure of a single wall provided in an embodiment of the present disclosure;

[0021] Figure 4 This is a schematic diagram of a wing structure of a multi-wall structure provided in an embodiment of the present disclosure;

[0022] Figure 5 This is a schematic diagram of a wing-side structure provided in an embodiment of the present disclosure;

[0023] Figure 6 A schematic diagram of the roof wing structure provided in the embodiments of this disclosure;

[0024] Figure 7 This is a schematic diagram illustrating the effect of a three-dimensional building structure provided in an embodiment of the present disclosure;

[0025] Figure 8 A block diagram of a three-dimensional building structure generation device provided in this disclosure embodiment;

[0026] Figure 9 This is a block diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0027] To enable those skilled in the art to better understand the technical solutions of this disclosure, exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments of this disclosure to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0028] Where there is no conflict, the various embodiments of this disclosure and the features thereof in the embodiments may be combined with each other.

[0029] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0030] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Words such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0031] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined herein.

[0032] In the field of 3D floor plan rendering, various implementation approaches have been developed. Common methods include manual geometric modeling, where users manually draw elements such as walls, doors, and windows one by one from a 2D floor plan using general modeling tools, and then extrude them to form a 3D model; Building Information Modeling (BIM) based methods, which construct floor plans by calling predefined parametric components and maintain the topological relationships between components using built-in software mechanisms; and algorithmic generation based on geometric constraints, where constraints such as wall lengths and room areas are input, and computational geometry techniques are used to automatically generate the floor plan layout. In addition, semi-automatic reconstruction methods based on images or point cloud data also exist. While these technologies are widely used in different application scenarios, how to further improve the efficiency and flexibility of 3D floor plan rendering remains a key technical issue in this field.

[0033] According to the three-dimensional building structure generation method of this disclosure, multiple walls of the target building can be directly determined from the target building image containing the target building, and a corresponding wing structure can be constructed for each wall. The wing structure stores relevant information of the wall, and can more efficiently maintain the topological relationship between multiple walls and the rooms formed by the walls, thereby reducing the workload of manual modeling. After generating the wing structures of multiple walls, the three-dimensional building structure of the target building is generated by further combining the preset three-dimensional structure data, thereby realizing the automation of generating three-dimensional building structures and improving the efficiency and accuracy of generating three-dimensional building structures.

[0034] The three-dimensional building structure generation method according to embodiments of this disclosure can be executed by electronic devices such as terminal devices or servers. Terminal devices can be in-vehicle devices, user equipment (UE), mobile devices, user terminals, terminals, cellular phones, cordless phones, personal digital assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, etc. The method can be implemented by a processor calling computer-readable program instructions stored in memory. Alternatively, the method can be executed by a server.

[0035] Figure 1A flowchart illustrating a method for generating a three-dimensional building structure according to an embodiment of this disclosure. See also... Figure 1 The method specifically includes the following steps:

[0036] Step 102: Identify the target building and its multiple walls in the target building image.

[0037] The target building image refers to a two-dimensional building image containing the target building. This image can be a two-dimensional satellite map, a two-dimensional photograph of the building, or a video frame from a video containing the target building. The target building refers to any building whose three-dimensional structure needs to be generated. In this embodiment, an image of the target building from a top-down view is preferred. Multiple walls refer to the multiple walls contained within the target building; the number of walls is determined based on the building's floor plan.

[0038] In practical applications, the target building image is acquired, such as a two-dimensional satellite map containing the target building, and the target building for which a three-dimensional building structure needs to be generated is identified in the target building image. Furthermore, multiple walls of the target building are identified.

[0039] Taking the target building image as a two-dimensional satellite map as an example, a third-party map software interface is called to obtain one or more two-dimensional satellite maps from the map software. Based on the scaling level and latitude and longitude of the two-dimensional satellite map, the scaling ratio of the two-dimensional satellite map is determined, that is, how many pixels are equal to one meter. Thus, the size of the two-dimensional satellite map, that is, the width and height of the two-dimensional satellite map, is determined based on the scaling ratio of the two-dimensional satellite map.

[0040] Specifically, the method for determining the scaling ratio of a two-dimensional satellite map can be found in Formula 1 below:

[0041] Formula 1

[0042] in, For scaling ratio, To return the cosine value of the angle, Latitude and longitude Let π be the mathematical constant. To return the power of the base, Formula 1 returns 2. Power of 1 This is the scaling level.

[0043] The methods for determining the width and height of a two-dimensional satellite map can be found in Formulas 2 and 3 below, respectively:

[0044] Formula 2

[0045] Formula 3

[0046] in, For width, The height is 1280×1280 pixels. Taking a 2D satellite map with 1280×1280 pixels as an example, the width and height of the 2D satellite map are both 1280 / 1280. .

[0047] Furthermore, after determining the actual height and width of the two-dimensional satellite map according to the above implementation method, the target building is determined in the two-dimensional satellite map, for example, the target building is determined according to the building identifiers of multiple buildings in the two-dimensional satellite map, and the multiple walls contained in the target building are determined.

[0048] It should be noted that the selection of walls in the target building can be customized by the user. In practical applications, users can select walls in the target building on the interactive page, and the terminal will determine the walls in the target building in response to the user's selection.

[0049] In addition, after determining the target building, the corresponding building floor plan template can be selected from the preset building floor plan templates based on the target building's floor plan. A building floor plan template includes multiple walls of a single floor plan; therefore, after determining the building floor plan template corresponding to the target building, the multiple walls of the target building can be determined.

[0050] Based on this, in a specific embodiment provided in this disclosure, determining a target building and multiple walls of the target building in a target building image includes: acquiring a target building image and determining the target building in the target building image; acquiring a building layout template of the target building, wherein the building layout template includes multiple template walls of the target building; and determining the multiple template walls of the building layout template as multiple walls of the target building.

[0051] Among them, the building unit template refers to the pre-defined structural template for the roof plan view of different unit types of buildings. See also Figure 2 , Figure 2 This is a schematic diagram of a building unit template provided in an embodiment of this disclosure, such as... Figure 2 As shown, Figure 2 Includes six sub-figures (a) to (f), which respectively show the rooftop top view structure of six different apartment types, i.e., six different building apartment templates. Figure 2 The roof structures shown in (a) to (f) are a single-slope roof (flat roof without slope), a double-slope roof, a half-slope roof of a four-slope roof, a four-slope roof, an L-shaped corner single-slope four-slope roof (hipped roof corner), and an L-shaped corner double-slope four-slope roof (hipped roof corner). Figure 2The six building unit templates shown are only for illustrative purposes to illustrate the building unit templates provided in this disclosure, and are not limited to these six types in actual applications. Template walls refer to the walls included in the building unit template, i.e. Figure 2 The edges used to form the templates for each building unit type.

[0052] Specifically, the process involves acquiring an image of the target building and identifying the target building from which the 3D building structure needs to be generated. The terminal can select a matching floor plan template from multiple preset templates based on the target building's floor plan, and then define multiple wall sections from that template as walls of the target building. In practical applications, the user can also select the floor plan template corresponding to the target building. After the user's selection, the terminal responds to the user's selection and determines the corresponding floor plan template. The method for determining the floor plan template is determined based on the specific application and is not limited herein.

[0053] For example, after acquiring an image of the target building and identifying it as Building A within that image, the terminal determines the corresponding building unit template based on the unit type of Building A. Figure 2 The template shown in (a) is then used to obtain... Figure 2 The building unit template shown in (a) is used, and the four walls in the template are identified as the walls of building A.

[0054] This disclosure embodiment can determine the target building based on a two-dimensional building image, and determine multiple walls of the target building by user-defined selection of walls in the target building or by using a preset building type template, thereby improving the flexibility of determining multiple walls in the target building.

[0055] Step 104: Construct the wing structures corresponding to the multiple walls respectively.

[0056] After identifying the multiple walls of the target building, a wing structure is constructed for each wall. The wing structure, also known as the wing data structure, is used to record and store the geometric and topological information of the rooms in the target building. Geometric information includes corner points and drawn lines (i.e., walls in the target building), while topological information includes shared information about common walls between rooms. The wing structure uses edges as its core storage unit; each edge records adjacent roof surfaces and vertices. By explicitly recording the geometric and topological relationships between roof surfaces, edges, and vertices, it supports complex model representations when at least two roof surfaces intersect, allowing for fast access to adjacent geometric elements. Specifically, the wing structure is a hexagonal structure.

[0057] See Figure 3 , Figure 3 This is a schematic diagram of a wing structure of a single wall provided in an embodiment of the present disclosure, as shown below. Figure 3 As shown, the solid line formed by points 0 and 3 (hereinafter referred to as "line 03") represents any wall in the target building, i.e., the drawn line, whose wing structure starts from the left front ( Figure 3 (01) Left wing side Figure 3 (12) Middle edge, left back edge ( Figure 3 (23) Right front edge ( Figure 3 (34) Right wing ( Figure 3 (middle edge 45) and right back edge ( Figure 3 The wall consists of edge 50. Here, w is the thickness of wall line 03. In practical applications, the edges of each wing structure corresponding to each wall are determined by the wall's start and end points. The start and end points are user-defined; for example, users can determine the start and end points by clicking on the two endpoints of the wall, or manually set which endpoint is the start and which is the end point on the interactive page. Figure 3 Let's take point 0 as the starting point and point 3 as the ending point as an example for explanation.

[0058] In practical applications, by traversing the wing structure of the wall in a counterclockwise or clockwise direction based on the starting and ending points of the wall, the left front, left wing, left rear, right front, right wing, and right rear of the wall can be determined in sequence.

[0059] Further, see Figure 4 , Figure 4 This is a schematic diagram of a wing structure of a multi-wall structure provided in an embodiment of the present disclosure, as shown below. Figure 4 As shown, Figure 4 Includes three subgraphs (a) to (c). Figure 4 Image (a) shows the wing structure of a wall. Figure 4 (b) shows the wing structure of the two walls. Figure 4 Image (c) shows the wing structure of the seven walls. Figure 4 The wing structures shown do not include any drawn lines (i.e., actual walls).

[0060] Since the wing structure can store both geometric and topological information, when it is necessary to perform operations such as searching, inserting, deleting, and refining the walls in a room, these operations can be performed on the walls using the geometric and topological information stored in the wing structure. This reduces the amount of manual adjustment work and speeds up the efficiency of wall adjustments.

[0061] The following explains the specific implementation method of the wing structure of the generated wall.

[0062] In one specific embodiment provided in this disclosure, constructing the wing structures corresponding to the plurality of walls includes: for a first wall among the plurality of walls, determining a first left wing and a first right wing of the first wall based on the length of the first wall and a preset wall thickness, wherein the first wall is any one of the plurality of walls of the target building; selecting at least two walls adjacent to the first wall among the plurality of walls of the target building based on a preset traversal direction; determining a plurality of vertices of the first wall based on the at least two walls; and constructing the first wing structure of the first wall based on the first left wing, the first right wing, and the plurality of vertices.

[0063] Here, "first wall" refers to any one of the multiple walls of the target building. "First left wing" refers to the left wing of the first wall, and "first right wing" refers to the right wing of the first wall. The traversal direction is used to determine at least two walls adjacent to the first wall, including counter-clockwise and clockwise directions; the at least two walls adjacent to the first wall include at least one wall adjacent to the starting point of the first wall and at least one wall adjacent to the ending point of the first wall. The multiple vertices of the first wall refer to the multiple vertices used to form the wing structure of the first wall. Taking the wing structure of a single wall as an example, the multiple vertices are the intersection points of the left front edge and the left wing edge (i.e.,...). Figure 3 Point 1 shown), the intersection of the left wing and the left rear (i.e. Figure 3 Point 2 shown), the intersection of the right front edge and the right wing edge (i.e. Figure 3 Point 4 shown in the diagram) and the intersection of the right wing and the right rear (i.e. Figure 3 Point 5 (as shown); taking the wing structure of a multi-walled structure as an example, the multiple vertices are the intersections of the left wing of the first wall and the wings of the two adjacent walls (corresponding to...). Figure 3 Points 1 and 2 shown), and the intersection of the right wing of the first wall with the wings of the two adjacent walls (corresponding to...) Figure 3 Points 4 and 5 in the diagram). The first wing structure refers to the wing structure of the first wall.

[0064] Specifically, for any one of the multiple walls of the target building, namely the first wall, the first left wing and the first right wing of the first wall are determined based on the length of the first wall and a preset wall thickness. Based on preset traversal directions, namely counterclockwise and clockwise, the multiple walls of the target building are traversed, and at least one wall adjacent to the starting point of the first wall and at least one wall adjacent to the ending point of the first wall are selected. Based on the at least two walls adjacent to the first wall, multiple vertices for constituting the wing structure of the first wall are determined. Thus, based on the first left wing, the first right wing, and the multiple vertices of the first wall, the first wing structure of the first wall is constructed.

[0065] The embodiments disclosed herein can dynamically generate the wing structure of the wall based on the wall parameters (wall length and wall thickness, etc.) and the geometric properties of the target building, thereby improving the flexibility and dynamic adaptability of generating the wing structure of the wall.

[0066] As described above, based on the preset traversal direction, at least two walls adjacent to the first wall can be determined among the multiple walls of the target building. The at least two walls include at least one wall adjacent to the starting point of the first wall and at least one wall adjacent to the ending point of the first wall. Therefore, in the process of determining at least two walls adjacent to the first wall, after determining the starting point and ending point of the first wall, traversal can be performed according to the starting point and ending point of the first wall, and the walls adjacent to the starting point and ending point of the first wall can be determined respectively.

[0067] Therefore, in a specific embodiment provided in this disclosure, the traversal direction includes a counterclockwise direction and a clockwise direction, and the at least two walls include at least one wall adjacent to the starting point of the first wall and at least one wall adjacent to the ending point of the first wall; based on the preset traversal direction, selecting at least two walls adjacent to the first wall from among the multiple walls of the target building includes: according to the traversal direction, selecting at least one wall adjacent to the starting point of the first wall from among the multiple walls of the target building according to the starting point of the first wall; and according to the traversal direction, selecting at least one wall adjacent to the ending point of the first wall from among the multiple walls of the target building according to the ending point of the first wall.

[0068] Specifically, based on the starting point of the first wall, the system traverses counterclockwise to determine the first wall reached in the counterclockwise direction, and then traverses clockwise to determine the first wall reached in the clockwise direction; correspondingly, based on the ending point of the first wall, the system traverses counterclockwise to determine the first wall reached in the counterclockwise direction, and then traverses clockwise to determine the first wall reached in the clockwise direction.

[0069] It should be noted that, theoretically, traversing according to the above method will identify four walls adjacent to the first wall. However, in practical applications, if the starting point of the first wall is adjacent to only one wall, then the wall identified by traversing in both counter-clockwise and clockwise directions will be the same wall. In this case, the number of walls identified as adjacent to the starting point of the first wall is only one. Similarly, if the ending point of the first wall is adjacent to only one wall, the wall identified by traversing in both counter-clockwise and clockwise directions will also be the same wall. In this case, the number of walls identified as adjacent to the ending point of the first wall is also only one. Therefore, the number of walls identified by the above method is between two and four.

[0070] Furthermore, in practical applications, at least two walls adjacent to the first wall can be determined by following only one traversal direction. In this case, a full traversal (360 degrees) is performed according to the preset traversal direction (counterclockwise or clockwise) to determine the first and last walls traversed. These two walls are the walls adjacent to the first wall. Specifically, based on the starting point of the first wall, traverse in a counter-clockwise direction to determine the first and last walls traversed in the counter-clockwise direction; based on the ending point of the first wall, traverse in a counter-clockwise direction to determine the first and last walls traversed in the counter-clockwise direction; or, based on the starting point of the first wall, traverse in a clockwise direction to determine the first and last walls traversed in the clockwise direction; based on the ending point of the first wall, traverse in a clockwise direction to determine the first and last walls traversed in the clockwise direction; or, based on the starting point and ending point of the first wall, traverse in different directions to determine at least two walls adjacent to the first wall.

[0071] The method described above for determining at least two walls adjacent to the first wall can be determined according to the actual application. For example, if it is necessary to improve the efficiency of determining adjacent walls, two traversals can be performed in the counterclockwise and clockwise directions; if it is necessary to reduce the number of traversals, one traversal can be performed in one traversal direction to determine the walls. This disclosure does not limit the method for determining at least two walls adjacent to the first wall.

[0072] This embodiment of the disclosure determines at least two walls adjacent to the first wall by traversing the first wall according to a preset traversal direction based on the set start and end points of the first wall, thereby improving the accuracy of determining adjacent walls.

[0073] After determining at least two walls adjacent to the first wall according to the preset traversal direction, multiple vertices for generating the first wing structure of the first wall can be further determined.

[0074] In one specific embodiment provided in this disclosure, determining multiple vertices of the first wall based on the at least two walls includes: determining a first wing edge and a second wing edge intersecting with the first left wing edge from the left and right wing edges corresponding to the at least two walls respectively; determining a portion of the vertices of the first wall based on the first wing edge, the second wing edge, and the first left wing edge; determining a third wing edge and a fourth wing edge intersecting with the first right wing edge from the left and right wing edges corresponding to the at least two walls respectively; and determining other partial vertices among the multiple vertices of the first wall based on the third wing edge, the fourth wing edge, and the first right wing edge, wherein the other partial vertices are the vertices other than the partial vertices among the multiple vertices.

[0075] As described above, in the case of constructing a wing structure of multiple walls, the multiple vertices are the intersection points of the left wing of the first wall with the wing edges of the two adjacent walls, and the intersection points of the right wing of the first wall with the wing edges of the two adjacent walls. Therefore, it is necessary to determine the wing edge intersecting with the first left wing edge of the first wall and the wing edge intersecting with the first right wing edge of the first wall among the left and right wing edges of at least two walls adjacent to the first wall, and then further determine the multiple vertices of the first wall based on the determined wing edges.

[0076] Specifically, among the left and right wings of at least two walls adjacent to the first wall, a first wing and a second wing intersect with the first left wing of the first wall. The first and second wings are wings intersecting with the first left wing, and the walls corresponding to the first and second wings are respectively adjacent to the start or end point of the first wall. The intersection point of the first wing and the first left wing, and the intersection point of the second wing and the first left wing, are determined as partial vertices of the first wall. Continuing, among the left and right wings of at least two walls adjacent to the first wall, a third and a fourth wing intersect with the first right wing of the first wall. The third and fourth wings are wings intersecting with the first right wing, and the walls corresponding to the third and fourth wings are respectively adjacent to the start or end point of the first wall. The intersection point of the third wing and the first right wing, and the intersection point of the fourth wing and the first right wing, are determined as the remaining partial vertices of the first wall.

[0077] The following is in conjunction with the appendix Figure 5 The specific implementation process for determining multiple vertices of the first wall is explained below. Figure 5 , Figure 5 This is a schematic diagram of a wing-side structure provided in an embodiment of the present disclosure, such as... Figure 5 As shown, the wall formed by corner points PS and PE is the first wall, where PS is the starting point and PE is the ending point of the first wall. Figure 5 The dashed line represents the wall, and the solid line represents the wing structure of the wall. Figure 5 Only a portion of the wall is shown. Figure 5 In the diagram, walls 1 and 2 are adjacent to the starting point of the first wall, and walls 3 and 4 are adjacent to the ending point of the first wall. Among the left and right wings of walls 1, 2, 3, and 4 respectively, determine the first and second wing edges that intersect with the left wing edge of the first wall. Figure 5As shown, the intersection points of wing 2 and the left wing of the first wall, and the intersection points of wing 4 and the left wing of the first wall, are defined as partial vertices of the first wall. Among the left and right wings of walls 1, 2, 3, and 4 respectively, the third and fourth wings that intersect with the right wing of the first wall are determined. Figure 5 The intersection of wing 1 and wing 3 shown is used to determine the other vertices of the first wall. The intersection of wing 1 and the right wing of the first wall, and the intersection of wing 3 and the right wing of the first wall, are used to determine the four vertices of the first wall.

[0078] Furthermore, as mentioned above, at least two walls adjacent to the first wall are determined by traversing the first wall in a counterclockwise or clockwise direction based on the starting and ending points of the first wall. Similarly, multiple vertices of the first wall can also be determined by traversing the first wall in a counterclockwise or clockwise direction based on the starting and ending points of the first wall. Specifically, for a second wall adjacent to the starting point of the first wall, if the second wall is determined based on a counter-clockwise direction and its starting point is the same as the starting point of the first wall, the first vertex of the first wall is determined based on the second left wing of the second wall and the first right wing of the first wall; if the second wall is determined based on a counter-clockwise direction and its starting point is different from the starting point of the first wall, the first vertex of the first wall is determined based on the second right wing of the second wall and the first right wing of the first wall; if the second wall is determined based on a clockwise direction and its starting point is the same as the starting point of the first wall, the second vertex of the first wall is determined based on the second right wing of the second wall and the first left wing of the first wall; if the second wall is determined based on a clockwise direction and its starting point is different from the starting point of the first wall, the second vertex of the first wall is determined based on the second left wing of the second wall and the first left wing of the first wall.

[0079] by Figure 5 Taking wall 1, which is adjacent to the starting point of the first wall, as an example, this explanation is given. When wall 1 is determined based on a counter-clockwise direction, and the starting point of wall 1 coincides with the starting point PS of the first wall, the left wing of wall 1 (i.e.,...) is determined. Figure 5 The intersection of wing 1 (shown) and the right wing of the first wall is the first vertex of the first wall; when wall 1 is determined based on a counterclockwise direction, and the starting point of wall 1 is not the same as the starting point PS of the first wall, the right wing of wall 1 (i.e., Figure 5 The intersection of the wing edge 1 shown in the diagram and the right wing edge of the first wall is the first vertex of the first wall; when wall 1 is determined based on a clockwise direction and the starting point of wall 1 is consistent with the starting point PS of the first wall, the right wing edge of wall 1 (i.e., Figure 5The intersection of the wing edge 5 shown in the diagram and the left wing edge of the first wall is the second vertex of the first wall; when wall 1 is determined based on a clockwise direction, and the starting point of wall 1 is not the same as the starting point PS of the first wall, according to the left wing edge of wall 1 (i.e. Figure 5 The intersection of the wing edge 5 shown with the left wing edge of the first wall is the second vertex of the first wall.

[0080] Accordingly, for the third wall adjacent to the end point of the first wall, if the third wall is determined based on a counterclockwise direction and its starting point is the same as the end point of the first wall, the third vertex of the first wall is determined based on the third right wing of the third wall and the first right wing of the first wall; if the third wall is determined based on a counterclockwise direction and its starting point is different from the end point of the first wall, the third vertex of the first wall is determined based on the third left wing of the third wall and the first right wing of the first wall; if the third wall is determined based on a clockwise direction and its starting point is the same as the end point of the first wall, the fourth vertex of the first wall is determined based on the third left wing of the third wall and the first left wing of the first wall; if the third wall is determined based on a clockwise direction and its starting point is different from the end point of the first wall, the fourth vertex of the first wall is determined based on the third right wing of the third wall and the first left wing of the first wall.

[0081] by Figure 5 Taking wall 3, which is adjacent to the endpoint of the first wall, as an example, this explanation is given. When wall 3 is determined based on a counter-clockwise direction, and the starting point of wall 3 coincides with the endpoint PE of the first wall, the right wing of wall 3 (i.e.,...) is determined. Figure 5 The intersection of the wing edge 3 shown with the right wing edge of the first wall is the third vertex of the first wall; when wall 3 is determined based on a counterclockwise direction, and the starting point of wall 3 is not the same as the ending point PE of the first wall, the left wing edge of wall 3 (i.e., Figure 5 The intersection of the wing edge 3 shown and the right wing edge of the first wall is the third vertex of the first wall; when wall 3 is determined based on a clockwise direction and the starting point of wall 3 coincides with the ending point PE of the first wall, the left wing edge of wall 3 (i.e., Figure 5 The intersection of the wing edge 6 shown in the diagram and the left wing edge of the first wall is the fourth vertex of the first wall; when the wall 3 is determined based on a clockwise direction, and the starting point of the wall 3 is not the same as the ending point PE of the first wall, according to the right wing edge of the wall 3 (i.e. Figure 5 The intersection of the wing edge 6 shown in the figure and the left wing edge of the first wall is the fourth vertex of the first wall.

[0082] This embodiment of the disclosure determines multiple vertices of the first wall by identifying the intersection points of the wing edges of adjacent walls. Combined with the previously determined first left wing edge and first right wing edge, the first wing edge structure of the first wall can be quickly generated, ensuring the accuracy of the generated wing edge structure while further improving the efficiency of generating the wing edge structure.

[0083] Step 106: Generate the three-dimensional building structure of the target building based on the wing structure of the multiple walls and the preset three-dimensional structural data.

[0084] Since different types of roof wing structures correspond to different preset three-dimensional structural data, the three-dimensional structural data can be used to generate the three-dimensional building structure corresponding to the target building. Therefore, after constructing the wing structure of each wall in the target building, the roof wing structure of the target building can be further determined, and the three-dimensional building structure of the target building can be generated by combining the three-dimensional structural data corresponding to the roof wing structure.

[0085] The 3D structural data is used to convert the target building from a 2D structure to a 3D structure, including the roof's slope angle and height. The roof slope angle refers to the angle between a defined slope and the horizontal plane. The roof wing structure refers to the wing structure of the target building's roof, generated from the wing structures of multiple walls. The specific generation method for the roof wing structure is as follows:

[0086] In one specific embodiment provided in this disclosure, after constructing the wing structures corresponding to the plurality of walls respectively, the method further includes: summarizing the left and right wings of the plurality of walls in the wing structures of the plurality of walls; for any wing of any wall, traversing and connecting the wings adjacent to the wing in a counterclockwise or clockwise direction until the traversal path corresponding to the wing forms a closed shape; summarizing the plurality of closed shapes obtained in the target building to obtain the roof wing structure of the target building.

[0087] Specifically, for all wings (including left and right wings) of all walls in the target building, starting from one endpoint of any wing, traverse in a counter-clockwise or clockwise direction, connecting adjacent wings in sequence. Stop the traversal when the traversal path of the wing forms a closed shape. Based on the same method, multiple closed shapes in the target building can be obtained. By summing these closed shapes, the roof wing structure of the target building can be obtained.

[0088] See Figure 6 , Figure 6 This is a schematic diagram of the roof wing structure provided in an embodiment of this disclosure, as shown below. Figure 6 As shown, Figure 6 Includes two subgraphs, (a) and (b). Figure 6Figures (a) and (b) show two types of roof wing structures: a wing structure for a gable roof and a wing structure for a hip roof. Figure 6 The double-sloped roof wing structure shown in (a) was generated by performing two traversals to obtain two closed shapes. Figure 6 The four-sloped roof wing structure shown in (b) was generated by performing four traversals to obtain four closed shapes.

[0089] In this embodiment of the disclosure, after determining the wing structure of each wall in the target building, the adjacent wings are connected by traversing to form a closed shape, i.e., a room, thereby generating the entire roof wing structure of the target building, which facilitates the subsequent generation of the three-dimensional building structure of the target building based on this.

[0090] Furthermore, after generating the roof wing structure of the target building, the three-dimensional building structure of the target building can be generated based on the preset three-dimensional structural data.

[0091] In one specific embodiment provided in this disclosure, generating a three-dimensional building structure of the target building based on the wing structure of the plurality of walls and preset three-dimensional structural data includes: determining the target three-dimensional structural data corresponding to the roof wing structure according to the structural type of the roof wing structure; and generating the three-dimensional building structure of the target building based on the roof wing structure and the target three-dimensional structural data.

[0092] In practical applications, different types of roof wing structures correspond to different 3D structural data. For example, the 3D structural data for a gable roof includes the roof's tilt angle, roof height, eaves length, and eaves width, while the 3D structural data for a hip roof includes the orientation, roof area, and roof tilt angle. Therefore, after generating the roof wing structure of the target building, it is necessary to further determine the structural type of the roof wing structure in order to determine the corresponding 3D structural data.

[0093] Here, "structure type" refers to the category of the roof wing structure of the target building, and also indicates the top-view structure of the roof of the target building, including single-slope roof, double-slope roof, four-slope roof, etc. "Target 3D structural data" refers to the actual 3D structural data corresponding to the roof wing structure of the target building.

[0094] Specifically, after generating the roof wing structure of the target building, the terminal identifies the structural type of the roof wing structure and determines its corresponding preset 3D structural data based on the structural type. In practical applications, the terminal displays the preset 3D structural data corresponding to the roof wing structure to the user on the interactive interface. The user can modify the 3D structural data or, after confirming that it is correct, keep the preset 3D structural data unchanged. After the user completes the adjustment of the 3D structural data, the terminal responds to the user's operation on the interactive interface by obtaining the adjusted 3D structural data, i.e., the target 3D structural data. For example, the target 3D structural data includes an eaves length of 12 meters, an eaves width of 6 meters, a roof height of 2 meters, and a roof tilt angle of 20 degrees. Based on the target 3D structural data, the roof wing structure of the target building is adjusted, converting the roof wing structure from a two-dimensional angle to a three-dimensional angle, generating the 3D building structure of the target building, and storing the target 3D structural data in the roof wing structure for subsequent adjustments to the roof of the target building.

[0095] See Figure 7 , Figure 7 This is a schematic diagram illustrating the effect of a three-dimensional building structure provided in an embodiment of this disclosure, such as... Figure 7 As shown, Figure 7 Three-dimensional architectural structures with three types of roof wing structures are shown: a double-sloped roof, a four-sloped roof, and an L-shaped corner single-sloped four-sloped roof.

[0096] Furthermore, in practical applications, users can add other structures such as dormer windows to the generated roof wing structure. The additional structures added by the user also need to generate their corresponding wing structures according to the above method and convert them into three-dimensional angles to generate a three-dimensional building structure.

[0097] By using roof wing structures of different structural types, the corresponding target three-dimensional structural data is determined, so that each type of roof wing structure has corresponding three-dimensional structural data, thereby improving the accuracy of generating three-dimensional building structures; and the embodiments of this disclosure support users to customize the three-dimensional structural data of the roof wing structure, thereby improving the user experience.

[0098] This embodiment of the disclosure achieves the direct determination of multiple walls of a target building using a target building image containing the target building, and constructs a corresponding wing structure for each wall. This enables the storage of relevant information of the walls based on the wing structure. The wing structure can more efficiently maintain the topological relationships between multiple walls and the rooms formed by the walls, thereby reducing the workload of manual modeling. After generating the wing structures of multiple walls, the three-dimensional building structure of the target building is further generated by combining preset three-dimensional structural data, thereby automating the generation of three-dimensional building structures and improving the efficiency and accuracy of three-dimensional building structure generation.

[0099] It is understood that the various method embodiments mentioned above in this disclosure can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, this disclosure will not elaborate further. Those skilled in the art will understand that in the above methods of specific implementation, the specific execution order of each step should be determined by its function and possible internal logic.

[0100] In addition, this disclosure also provides a three-dimensional building structure generation device, electronic device, and computer-readable storage medium, all of which can be used to implement the three-dimensional building structure generation method provided in this disclosure. The corresponding technical solutions and descriptions are described in the corresponding section of the method and will not be repeated here.

[0101] Figure 8 A block diagram of a three-dimensional building structure generation device provided in an embodiment of this disclosure.

[0102] See Figure 8 This disclosure provides a three-dimensional building structure generation device, which includes:

[0103] The determination module 802 is configured to determine a target building and multiple walls of the target building in a target building image;

[0104] Construction module 804 is configured to construct the wing structures corresponding to the plurality of walls respectively;

[0105] The generation module 806 is configured to generate the three-dimensional building structure of the target building based on the wing structure of the plurality of walls and preset three-dimensional structural data.

[0106] Optionally, the building module 804 is further configured to:

[0107] For the first wall among the plurality of walls, the first left wing and the first right wing of the first wall are determined according to the length of the first wall and the preset wall thickness, wherein the first wall is any one of the plurality of walls of the target building;

[0108] Based on a preset traversal direction, at least two walls adjacent to the first wall are selected from multiple walls of the target building.

[0109] Based on the at least two walls, a plurality of vertices of the first wall are determined;

[0110] The first wing structure of the first wall is constructed based on the first left wing, the first right wing, and the plurality of vertices.

[0111] Optionally, the traversal direction includes a counterclockwise direction and a clockwise direction, and the at least two walls include at least one wall adjacent to the starting point of the first wall and at least one wall adjacent to the ending point of the first wall;

[0112] The building module 804 is further configured as follows:

[0113] According to the traversal direction, based on the starting point of the first wall, at least one wall adjacent to the starting point of the first wall is selected from among the multiple walls of the target building.

[0114] According to the traversal direction, based on the endpoint of the first wall, at least one wall adjacent to the endpoint of the first wall is selected from among the multiple walls of the target building.

[0115] Optionally, the building module 804 is further configured to:

[0116] Among the left and right wings corresponding to the at least two walls respectively, determine the first wing wing and the second wing wing that intersect with the first left wing wing;

[0117] Based on the first wing edge, the second wing edge, and the first left wing edge, determine some vertices of the first wall;

[0118] Among the left and right wings corresponding to the at least two walls respectively, the third and fourth wings that intersect with the first right wing are determined;

[0119] Based on the third wing, the fourth wing, and the first right wing, other partial vertices among the plurality of vertices of the first wall are determined, wherein the other partial vertices are the vertices other than the partial vertices among the plurality of vertices.

[0120] Optionally, the device further includes a connection module configured to:

[0121] In the wing structure of the plurality of walls, the left wing and the right wing of the plurality of walls are combined;

[0122] For any wing edge of any wall, traverse and connect the adjacent wing edges in a counterclockwise or clockwise direction until the traversal path corresponding to the wing edge forms a closed shape;

[0123] By summing up the multiple closed shapes obtained from the target building, the roof wing structure of the target building is obtained.

[0124] Optionally, the generation module 806 is further configured to:

[0125] Based on the structural type of the roof wing structure, determine the target three-dimensional structural data corresponding to the roof wing structure;

[0126] Based on the roof wing structure and the target three-dimensional structure data, the three-dimensional building structure of the target building is generated.

[0127] Optionally, the determining module 802 is further configured to:

[0128] Acquire an image of the target building, and identify the target building within the image;

[0129] Obtain the building layout template of the target building, wherein the building layout template includes multiple template walls of the target building;

[0130] Multiple template walls of the building unit template are identified as multiple walls of the target building.

[0131] The three-dimensional building structure generation apparatus provided in this embodiment includes: a determining module configured to determine a target building and multiple walls of the target building in a target building image; a constructing module configured to construct wing structures corresponding to the multiple walls respectively; and a generating module configured to generate a three-dimensional building structure of the target building based on the wing structures of the multiple walls and preset three-dimensional structure data.

[0132] This embodiment of the disclosure achieves the direct determination of multiple walls of a target building using a target building image containing the target building, and constructs a corresponding wing structure for each wall. This enables the storage of relevant information of the walls based on the wing structure. The wing structure can more efficiently maintain the topological relationships between multiple walls and the rooms formed by the walls, thereby reducing the workload of manual modeling. After generating the wing structures of multiple walls, the three-dimensional building structure of the target building is further generated by combining preset three-dimensional structural data, thereby automating the generation of three-dimensional building structures and improving the efficiency and accuracy of three-dimensional building structure generation.

[0133] Figure 9 This is a block diagram of an electronic device provided in an embodiment of the present disclosure.

[0134] See Figure 9 This disclosure provides an electronic device 900, which includes: at least one processor 901; at least one memory 902; and one or more I / O interfaces 903 connected between the processor 901 and the memory 902; wherein the memory 902 stores one or more computer programs that can be executed by the at least one processor 901, and the one or more computer programs are executed by the at least one processor 901 to enable the at least one processor 901 to perform the above-described three-dimensional building structure generation method.

[0135] This disclosure also provides a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the above-described three-dimensional building structure generation method. The computer-readable storage medium may be volatile or non-volatile.

[0136] This disclosure also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device executes the above-described three-dimensional building structure generation method.

[0137] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0138] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0139] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0140] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.

[0141] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0142] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0143] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0144] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0145] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0146] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in connection with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in connection with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this disclosure as set forth by the appended claims.

Claims

1. A method for generating three-dimensional building structures, characterized in that, include: Identify the target building and multiple walls of the target building in the target building image; Construct the wing structures corresponding to the multiple walls respectively; Based on the wing structure of the multiple walls and the preset three-dimensional structural data, the three-dimensional building structure of the target building is generated.

2. The method for generating three-dimensional building structures as described in claim 1, characterized in that, Constructing the wing structures corresponding to the plurality of walls includes: For the first wall among the plurality of walls, the first left wing and the first right wing of the first wall are determined according to the length of the first wall and the preset wall thickness, wherein the first wall is any one of the plurality of walls of the target building; Based on a preset traversal direction, at least two walls adjacent to the first wall are selected from multiple walls of the target building. Based on the at least two walls, a plurality of vertices of the first wall are determined; The first wing structure of the first wall is constructed based on the first left wing, the first right wing, and the plurality of vertices.

3. The method for generating three-dimensional building structures as described in claim 2, characterized in that, The traversal direction includes a counterclockwise direction and a clockwise direction, and the at least two walls include at least one wall adjacent to the starting point of the first wall and at least one wall adjacent to the ending point of the first wall; Based on a preset traversal direction, at least two walls adjacent to the first wall are selected from multiple walls of the target building, including: According to the traversal direction, based on the starting point of the first wall, at least one wall adjacent to the starting point of the first wall is selected from among the multiple walls of the target building. According to the traversal direction, based on the endpoint of the first wall, at least one wall adjacent to the endpoint of the first wall is selected from among the multiple walls of the target building.

4. The method for generating three-dimensional building structures as described in claim 2, characterized in that, Based on the at least two walls, a plurality of vertices of the first wall are determined, including: Among the left and right wings corresponding to the at least two walls respectively, determine the first wing wing and the second wing wing that intersect with the first left wing wing; Based on the first wing edge, the second wing edge, and the first left wing edge, determine some vertices of the first wall; Among the left and right wings corresponding to the at least two walls respectively, the third and fourth wings that intersect with the first right wing are determined; Based on the third wing, the fourth wing, and the first right wing, other partial vertices among the plurality of vertices of the first wall are determined, wherein the other partial vertices are the vertices other than the partial vertices among the plurality of vertices.

5. The method for generating three-dimensional building structures as described in any one of claims 1-4, characterized in that, After constructing the wing structures corresponding to the plurality of walls, the method further includes: In the wing structure of the plurality of walls, the left wing and the right wing of the plurality of walls are combined; For any wing edge of any wall, traverse and connect the adjacent wing edges in a counterclockwise or clockwise direction until the traversal path corresponding to the wing edge forms a closed shape; By summing up the multiple closed shapes obtained from the target building, the roof wing structure of the target building is obtained.

6. The method for generating three-dimensional building structures as described in claim 5, characterized in that, Based on the wing structure of the multiple walls and the preset three-dimensional structural data, a three-dimensional architectural structure of the target building is generated, including: Based on the structural type of the roof wing structure, determine the target three-dimensional structural data corresponding to the roof wing structure; Based on the roof wing structure and the target three-dimensional structure data, the three-dimensional building structure of the target building is generated.

7. The method for generating three-dimensional building structures as described in claim 1, characterized in that, Identify the target building and multiple walls of the target building in the target building image, including: Acquire an image of the target building, and identify the target building within the image; Obtain the building layout template of the target building, wherein the building layout template includes multiple template walls of the target building; Multiple template walls of the building unit template are identified as multiple walls of the target building.

8. A three-dimensional building structure generation device, characterized in that, include: The determination module is configured to determine the target building and multiple walls of the target building in the target building image; The construction module is configured to construct the wing structures corresponding to the plurality of walls respectively; The generation module is configured to generate the three-dimensional building structure of the target building based on the wing structure of the plurality of walls and preset three-dimensional structural data.

9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores one or more computer programs that can be executed by the at least one processor, such that the at least one processor can perform the three-dimensional building structure generation method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the three-dimensional building structure generation method as described in any one of claims 1-7.