Method, device, electronic device and storage medium for generating building model
By performing split and geometric function operations on the building group, the building model is automatically generated, which solves the problems of high cost and low efficiency in the existing three-dimensional modeling technology, and achieves efficient and low-cost building model generation.
Patent Information
- Application Number
- CN202410742196.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-11
AI Technical Summary
Existing three-dimensional modeling technology in the coal mining industry has high labor and time costs, expensive equipment costs, and the accuracy of modeling data is limited by weather and lighting conditions, making it difficult to effectively reduce modeling costs and improve efficiency.
By performing splitting, faceting and construction geometric function operations on the target building group, the building model is automatically generated, reducing the modeling complexity and cost, and improving the modeling efficiency. Specific methods include obtaining collected images and attribute information of the building group, splitting individual buildings into sub-bodies, constructing structural tables and geometric functions, and using GIS and 3D engines to generate building models.
It realizes the automation of building model generation, reduces time and resource costs, improves modeling efficiency and accuracy, and simplifies the modeling process.
Smart Images

Figure CN118334253B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of three-dimensional modeling, and in particular to a method, device, electronic device and storage medium for generating a building model. Background Art
[0002] In the coal mining industry, 3D modeling technology can be applied to mine planning, design, mining decisions and resource assessment, helping to reduce production costs and improve overall economic benefits.
[0003] Among the existing 3D modeling methods, traditional modeling methods (such as CAD, etc.) require high manpower and time costs. Although oblique photography models and point clouds have high modeling efficiency, the required equipment costs are high and are easily restricted by weather and lighting conditions, which limits the accuracy of modeling data. Therefore, there is an urgent need for a method for generating architectural models that can improve modeling efficiency while reducing modeling costs. Summary of the invention
[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the first purpose of this application is to propose a method for generating a building model, so as to realize the automatic generation of the building model by splitting the target building complex, dividing the facets and constructing geometric functions, thereby reducing the complexity of the building model generation, improving the modeling efficiency, and reducing the time and resource costs of the building model.
[0006] The second objective of the present application is to provide a device for generating a building model.
[0007] The third objective of the present application is to provide an electronic device.
[0008] A fourth objective of the present application is to provide a computer-readable storage medium.
[0009] A fifth object of the present application is to provide a computer program product.
[0010] To achieve the above-mentioned purpose, the first embodiment of the present application proposes a method for generating a building model, comprising:
[0011] Acquire a captured image containing a target building complex, attribute information and geometric parameters of the target building complex;
[0012] Based on the collected image and the attribute information, determining a first type of building individual and a second type of building individual in the target building complex;
[0013] Splitting the first type of building individual to determine sub-bodies in the first type of building individual, wherein the sub-bodies include first type sub-bodies and / or second type sub-bodies;
[0014] Based on the type of the sub-body, determining a first structural table corresponding to the first type of building individual or a target geometric function corresponding to the sub-body;
[0015] Determine a second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters;
[0016] The building model corresponding to the target building complex is generated by using the first structure table, the target geometric function and the second structure table.
[0017] To achieve the above-mentioned purpose, the second embodiment of the present application proposes a device for generating a building model, including:
[0018] An acquisition module, used to acquire a captured image containing a target building complex, attribute information and geometric parameters of the target building complex;
[0019] A first determination module, configured to determine a first type of building individual and a second type of building individual in the target building complex based on the collected image and the attribute information;
[0020] A second determining module is used to split the first type of building individual to determine a sub-body in the first type of building individual, wherein the sub-body includes a first type of sub-body and / or a second type of sub-body;
[0021] A third determination module is used to determine, based on the type of the sub-body, a first structural table corresponding to the first type of building individual or a target geometric function corresponding to the sub-body;
[0022] A fourth determination module, configured to determine a second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters;
[0023] A generation module is used to generate a building model corresponding to the target building complex by using the first structure table, the target geometric function and the second structure table.
[0024] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0025] The memory stores computer-executable instructions;
[0026] The processor executes the computer-executable instructions stored in the memory to implement the method for generating a building model as described in the first aspect of the embodiment.
[0027] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium, in which computer-readable storage medium is stored computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method for generating a building model as described in the first aspect embodiment.
[0028] To achieve the above-mentioned purpose, the fifth embodiment of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the method for generating a building model as described in the first embodiment.
[0029] The method, device, electronic device and storage medium for generating a building model provided in the present application automatically generate a building model corresponding to the building complex by splitting a target building complex into multiple building individuals, and further splitting the building individuals into multiple sub-bodies, and constructing a structural table or geometric function for the building individuals or sub-bodies, thereby not only reducing the complexity of generating the building model, improving the modeling efficiency, but also reducing the time and resource costs of the building model.
[0030] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0032] Figure 1 A schematic diagram of a flow chart of a method for generating a building model provided in an embodiment of the present application;
[0033] Figure 2a A schematic diagram of an image including a target building complex provided in an embodiment of the present application;
[0034] Figure 2b A schematic diagram of individual buildings after the target building group is split up provided in an embodiment of the present application;
[0035] Figure 2c A schematic diagram of the geometric structure of a building entity provided in an embodiment of the present application;
[0036] Figure 2d A schematic diagram of a sub-body obtained by splitting a building individual provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a flow chart of another method for generating a building model provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of a two-dimensional mapping surface provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of arc segment numbering of a two-dimensional mapping surface provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of a flow chart of another method for generating a building model provided in an embodiment of the present application;
[0041] Figure 7a A schematic diagram of the geometric structure of a belt conveyor corridor provided in an embodiment of the present application;
[0042] Figure 7b A schematic diagram of the geometric structure of a coal storage bin provided in an embodiment of the present application;
[0043] Figure 7c A schematic diagram of the geometric structure of a double-slope roof provided in an embodiment of the present application;
[0044] Figure 8 A schematic diagram of a flow chart of another method for generating a building model provided in an embodiment of the present application;
[0045] Fig. 9 A schematic diagram of a structure of a split structure tree provided in an embodiment of the present application;
[0046] Fig.10 A schematic diagram of the structure of a device for generating a building model provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0048] The following describes the method and device for generating a building model according to an embodiment of the present application with reference to the accompanying drawings.
[0049] Figure 1 A schematic diagram of a flow chart of a method for generating a building model provided in an embodiment of the present application.
[0050] like Figure 1 As shown, the method for generating the building model includes the following steps:
[0051] Step 101, obtaining a captured image containing a target building group, attribute information and geometric parameters of the target building group.
[0052] Among them, the collected image including the target building complex can be obtained by taking pictures of the target modeled buildings using a camera, or the image can be obtained by other methods, which is not limited in this application.
[0053] In addition, the attribute information and geometric parameters of the target building complex can be obtained through field measurement or other methods. The attribute information can include the purpose, material, and color of each building in the target building complex, and the geometric parameters can include the location coordinates, height, width, etc. corresponding to each building in the target building complex, which is not limited in this application.
[0054] It should be noted that in this application, the target building complex mainly refers to the ground buildings and facilities in the coal mining industry, but the building model generation method proposed in this application is also applicable to other scenarios such as factories, commercial areas, schools, etc.
[0055] Step 102: determining the first type of building individuals and the second type of building individuals in the target building complex based on the collected image and attribute information.
[0056] The first type of building entities refers to buildings involved in the production process. For example, in coal mining production, the first type of building entities can be all the building entities that the coal flow passes through from the wellhead to the transportation plant, that is, the wellhead room, coal crushing room, coal washing plant, belt conveyor corridor, coal bunker, gangue bunker, etc., or it can also be a warehouse, office building, etc.
[0057] The second type of building individuals refers to structures that do not have, contain or provide human living functions, and play an auxiliary role in the production process, such as street lights, walls, roads, gates, sensors, emergency broadcasts, etc.
[0058] In the embodiment of the present application, the target building group in the collected image can be first split into buildings according to the attribute information. That is, when adjacent buildings meet any one of different uses, different materials or different colors, the adjacent buildings can be split into two different building individuals. After the target building group in the collected image is split into multiple building individuals, the first type of building individuals and the second type of building individuals included in the target building group can be determined according to the attribute information of each building individual.
[0059] Combine the following Figure 2a and Figure 2b The building splitting effect of the target building complex is displayed. Figure 2a is the acquired image containing the target building complex, Figure 2b It is a schematic diagram of individual buildings obtained after splitting the target building complex.
[0060] Depend on Figure 2aIt can be seen that a building complex may be a whole formed by connecting many individual buildings with different structures and uses. Therefore, the overall structure of the building complex is relatively complex. Directly modeling the building complex not only requires a large amount of data, but also has high modeling difficulty. Therefore, in this application, the building complex can be split into independent individual buildings, such as Figure 2b As shown, modeling is then performed based on the structure of each independent building to improve the efficiency and reliability of modeling.
[0061] Step 103: split the first type of building individuals to determine sub-bodies in the first type of building individuals.
[0062] The sub-volumes may include first-type sub-volumes and / or second-type sub-volumes.
[0063] It should be noted that, in the present application, the first type of sub-body, i.e., a regular geometric body, is a geometric body with the same cross-section at any height, such as a cube, a cuboid, a pentagonal prism, etc. The second type of sub-body, i.e., an irregular geometric body, can be all geometric bodies except the first type of sub-body.
[0064] In the embodiment of the present application, each first-type building individual can be geometrically split into multiple geometric bodies, and each geometric body obtained after the split is an independent geometric body of the smallest unit and cannot be further split, so that the geometric body can be determined as the sub-body contained in the first-type building individual.
[0065] It should be noted that when the geometric structure of the first type of building individual is split, it can be split not only horizontally but also vertically, or the horizontal split and the vertical split can be combined, and the present disclosure does not limit this.
[0066] The following uses Figure 2c and Figure 2d To show the effect of horizontally splitting individual buildings, Figure 2c A schematic diagram of the geometric structure of an individual building. Figure 2d This is a schematic diagram of the sub-bodies obtained after splitting the building individual.
[0067] Depend on Figure 2c It can be seen that in the first type of building individual, there may be multiple building parts with different heights or floor areas. It may be difficult and inefficient to directly model the first type of building individual. Therefore, in this application, the first type of building individual can be further split, and the multiple independent geometric bodies obtained by splitting can be determined as sub-bodies of the first type of building individual, such as Figure 2d As shown, each sub-body is modeled separately to simplify the modeling process and improve modeling efficiency.
[0068] Alternatively, when the upper and lower parts of the first type of building sub-body have different structures, the first type of building individual can be split vertically. For example, when the first type of building individual includes a roof, and the roof and the main building part below the roof have different structures, such as the main building part is rectangular, and the roof is a double-slope roof or a single-slope roof, etc., the main building part and the building roof part can be split vertically into two sub-bodies.
[0069] It can be understood that, in some embodiments, the first type of building entity may include only the first type of sub-volume, or may include only the second type of sub-volume, or may include both the first type of sub-volume and the second type of sub-volume.
[0070] Step 104: Determine the first structural table corresponding to the first type of building individual or the target geometric function corresponding to the sub-body based on the type of the sub-body.
[0071] Among them, the first structure table is used to store the geometric structure of the first type of building individual, and can include the index information of the surface mapped in the two-dimensional space of all first type sub-volumes in the first type of building individual, and the index information of the arc segments in the two-dimensional mapping surface corresponding to all first type sub-volumes.
[0072] It is understandable that, since the geometric structure corresponding to the first type of sub-body has the same cross section at any height, when modeling the first type of sub-body, it is only necessary to determine the two-dimensional mapping surface at the top of the first type of sub-body and the height of the first type of sub-body to restore the shape of the first type of sub-body. Among them, the two-dimensional mapping surface at the top of the first type of sub-body can be determined by the coordinates of the two endpoints of each arc segment in the two-dimensional mapping surface. The height of the first type of sub-body can also be determined by geometric parameters.
[0073] In the embodiment of the present application, two-dimensional spatial mapping can be performed on all first-type sub-bodies from above the first-type building individual to obtain a two-dimensional mapping surface corresponding to the top of each first-type sub-body. Then, index information of all two-dimensional mapping surfaces corresponding to the first-type building individual can be established based on the identifier of each two-dimensional mapping surface, the identifier of the first-type sub-body to which it belongs, and the identifier of the arc segment. In addition, the parameter information corresponding to each first-type sub-body can be determined based on the geometric parameters of the target building complex, and then the coordinates of the two end points of each arc segment in each two-dimensional mapping surface can be determined to establish the index information of the arc segments of all two-dimensional mapping surfaces corresponding to the first-type building individual. Therefore, based on the index information of the two-dimensional mapping surface and the index information of the arc segment, the first structure table corresponding to the first-type building individual can be obtained.
[0074] However, for the second type of sub-volume, since the geometric structure corresponding to the second type of sub-volume is irregular, using arc segments and faces to describe it is not only complex but also large in data volume and low in accuracy. Therefore, each second type of sub-volume can be described separately by constructing a special geometric function to improve the accuracy and efficiency of the second type of sub-volume modeling.
[0075] Step 105: Determine a second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters.
[0076] The second structure table is used to store information such as location coordinates, types, heights, and attributes corresponding to all second-type building individuals, and may include a point entity structure table and / or a line entity structure table.
[0077] It should be noted that since the second type of building individuals do not participate in the production process, the importance of the second type of building individuals in the target building complex is not high. When generating the building model, the second type of building individuals can be simplified into point entities or line entities to reduce the amount of modeling data.
[0078] In the embodiment of the present application, the second type of building individual can be mapped into a two-dimensional space and mapped into a point space entity or a line space entity. For example, the point space entity may include sensors, trees, cameras, emergency broadcasts, gates, street lights, etc., and the line space entity may include trunk roads, mining area boundaries, walls, transportation roads, etc. Then, two structure tables can be constructed according to the attribute information and geometric parameters corresponding to the second type of building individual to store the point space entity and the line space entity respectively, as shown in Table 1 and Table 2 below.
[0079] Table 1 is a point entity structure table. As shown in Table 1, the point entity structure table may include information such as identification, type, coordinates, height, and attributes of each second type building individual.
[0080] Table 1
[0081]
[0082] The identifier of the second type of building individual mapped as a point entity can be represented by P1, P2, P3, ..., and the "P" in the identifier represents the point "point". The coordinates and height corresponding to each second type of building individual can be determined by the geometric parameters corresponding to the second type of building individual. And the attributes in Table 1 can include information such as color and material, which is not limited in this disclosure.
[0083] Table 2 is a line entity structure table. As shown in Table 2, the line entity structure table may include information such as identification, type, coordinates, height, width, and attributes of each second type building individual.
[0084] Table 2
[0085]
[0086] The identifier of the second type of building individual mapped as a line entity can be represented by L1, L2, L3, ..., and the "L" in the identifier represents the point "line". The coordinates, height and width corresponding to each second type of building individual can be determined by the geometric parameters corresponding to the second type of building individual. And the attributes in Table 2 can include information such as color and material, which is not limited in this disclosure.
[0087] It should be noted that only the storage form of some second type building individuals in the table is used as an example in Table 1 and Table 2. The second structure table may include at least one item in the point entity structure table and the line entity structure table. The specific form of the table may also be adjusted according to actual needs, and the present disclosure does not limit this.
[0088] Step 106, using the first structure table, the target geometric function and the second structure table, generate a building model corresponding to the target building complex.
[0089] In an embodiment of the present application, the first structural table, the target geometric function and the second structural table can be stored in a database of a geographic information system (GIS), and then the structural table and geometric function in the database can be read by utilizing a three-dimensional engine (such as Cesium) in the GIS to automatically generate a building model corresponding to the target building complex.
[0090] It should be noted that in the present application, after generating the building model corresponding to the target building complex, the three-dimensional engine can also introduce GLSL linear transformation, texture, time and other settings by rewriting the OpenGL Shading Language (GLSL) shader source, and customize the rendering of the generated building model according to animation effects such as time, lighting, color, and texture changes, thereby improving the visual appeal of the building model, making the building model more in line with the real building appearance, and providing a rich user experience.
[0091] Optionally, in order to provide a smoother and clearer visual experience, the building model corresponding to the target building complex may be rendered according to the currently displayed view range.
[0092] In an embodiment of the present application, the viewing cone clipping function of the Cesium 3D engine can be used to render only objects within the currently displayed view range, thereby reducing the amount of calculation and resource consumption during the rendering process.
[0093] Alternatively, the target building complex may be divided into a plurality of spatial regions, and when the building model is rendered, only a portion of the region within the currently displayed view range is rendered.
[0094] It should be noted that you can also use appropriate materials and textures to reduce the amount of calculation during rendering. For example, using physically based rendering (PBR) materials can reduce the complexity of lighting calculations.
[0095] In this embodiment, firstly, a collection image including a target building group, attribute information and geometric parameters of the target building group are obtained, and then based on the collection image and attribute information, the first type of building individuals and the second type of building individuals in the target building group are determined. Then, the first type of building individuals are split to determine the sub-bodies in the first type of building individuals, and then based on the type of the sub-bodies, the first structure table corresponding to the first type of building individuals or the target geometric function corresponding to the sub-bodies are determined. After that, based on the second type of building individuals and their corresponding attribute information and geometric parameters, the second structure table is determined, and finally, the building model corresponding to the target building group is generated using the first structure table, the target geometric function and the second structure table. Thus, by splitting the target building group into multiple building individuals, and further splitting the building individuals into multiple sub-bodies, and constructing a structure table or a geometric function for the building individuals or sub-bodies, the building model corresponding to the building group is automatically generated, thereby not only reducing the complexity of building model generation, improving modeling efficiency, but also reducing the time and resource costs of the building model.
[0096] Figure 3 A schematic flow chart of another method for generating a building model provided in an embodiment of the present application.
[0097] like Figure 3 As shown, the method for generating the building model may include the following steps:
[0098] Step 301, obtaining a captured image including a target building group, attribute information and geometric parameters of the target building group.
[0099] Step 302: Determine the first type of building individuals and the second type of building individuals in the target building complex based on the collected image and attribute information.
[0100] Step 303: split the first type of building individuals to determine sub-bodies in the first type of building individuals.
[0101] The description of step 301 to step 303 can be specifically referred to the above embodiment, which will not be repeated here.
[0102] Step 304: when the sub-volume in the first type of building individual is a first type of sub-volume, the first type of sub-volume is mapped to obtain a two-dimensional mapping surface corresponding to the first type of sub-volume.
[0103] In the embodiment of the present application, since the first type of sub-body is a geometric structure with the same cross-section at any height, the first type of sub-body can be mapped in two-dimensional space from above the first type of sub-body at a top-down perspective to obtain a two-dimensional mapping surface that is the same as the top view of the first type of sub-body.
[0104] The following is a description of the two-dimensional mapping surface obtained after mapping the first type of sub-volume with reference to the schematic diagram. Figure 2d The first type of building individual including a plurality of first type fonts shown in the figure, after mapping each first type sub-volume, a two-dimensional mapping surface corresponding to the first type of building individual can be obtained as shown in FIG. Figure 4 shown.
[0105] It should be noted that, when a first-type building individual contains multiple first-type sub-bodies, there may be various spatial topological relationships such as adjacent, nested, partially covered, intersecting, and crossing between the two-dimensional mapping surfaces of different first-type sub-bodies, and the two-dimensional mapping surface corresponding to the first-type building individual may be a concave polygonal surface.
[0106] Step 305: Based on the two-dimensional mapping surface, number the arc segments of the two-dimensional mapping surface in a preset order.
[0107] The arc segment of the two-dimensional mapping surface refers to a directed line segment composed of a series of points, which points from the starting point to the end point and does not intersect with other arc segments except at the end point. Each two-dimensional mapping surface is a surface surrounded by a closed line composed of multiple arc segments connected end to end.
[0108] It should be noted that the preset order can be a clockwise order or a counterclockwise order, and the present disclosure does not limit this. The direction of the arc segment corresponds to the preset order. For example, when the preset order is a clockwise order, the direction of the arc segment is also clockwise.
[0109] In an embodiment of the present application, numbering can be started from any arc segment of the two-dimensional mapping surface, and the arc segment is numbered 1. Then, according to a preset order, the arc segment with the end point of the arc segment numbered 1 as the starting point is numbered 2, and so on, until the numbering of all arc segments in the two-dimensional mapping surface is completed.
[0110] Optionally, when the two-dimensional mapping surfaces of two first-type sub-volumes share the same arc segment, and the directions of the arc segment in the two two-dimensional mapping surfaces are different, the number of the arc segment may be marked as negative on one of the two-dimensional mapping surfaces.
[0111] Combine the following Figure 5 Further explanation of how to number arc segments is given. Figure 5 It is a schematic diagram of arc segment numbering of a two-dimensional mapping surface.
[0112] like Figure 5 As shown, Figure 5 There are two two-dimensional mapping surfaces contained in , namely surface A and surface B. Surface A and surface B are adjacent and share an arc segment. First, arbitrarily select an arc segment in surface A to start numbering (i.e. Figure 5 Then, we number the arcs in plane A in clockwise order until we reach arc 8. Figure 5 It can be seen that the position coordinates of the end point of arc segment 8 are the same as the position coordinates of the starting point of arc segment 1. Arc segment 1, arc segment 2, ..., and arc segment 8 form a closed arc segment ring. Afterwards, the arc segments of face B can be numbered, and any arc segment can be selected to start numbering (i.e. Figure 5 Then, number the arcs in plane B in clockwise order until arc 11 is reached. Although there is an unnumbered arc in plane B, it is also included in plane A and has a corresponding number, so it will not be repeated in plane B.
[0113] But by Figure 5 It can be seen that, in clockwise order, the direction of arc segment 8 in Figure A is from bottom to top, while the direction in Figure B is from top to bottom, so the direction of the shared arc segment 8 on the two two-dimensional mapping surfaces is different. Therefore, arc segment 8 in Figure B can be marked as negative to indicate that the direction of arc segment 8 must be reversed to reconstruct the geometric shape of Figure B. Then the array of arc segments constituting surface A can be recorded as [1,2,3,4,5,6,7,8], and the array of arc segments constituting surface B can be recorded as [-8,9,10,11].
[0114] Step 306: Generate an arc index table corresponding to the first type of building individuals based on the arc numbers and the coordinates corresponding to the arcs.
[0115] In an embodiment of the present application, the coordinates corresponding to the starting point and the end point of each arc segment can be obtained according to the geometric parameters corresponding to the first type of building individual. Then, the number of each arc segment can be associated with the corresponding coordinates and stored and an index can be established to obtain an arc segment index table corresponding to the first type of building individual, as shown in Table 3 below.
[0116] Table 3
[0117]
[0118] It should be noted that the arc index table may also include attribute information corresponding to each arc, and the attribute information may include the orientation of each arc in the building (such as front and back, left and right, north, south, etc.), or the length corresponding to the arc, etc. This application does not limit this.
[0119] Step 307 : Based on the identifier of the two-dimensional mapping surface, the number of the arc segments included in the two-dimensional mapping surface and the identifier of the first type of sub-body to which the two-dimensional mapping surface belongs, generate a facet index table corresponding to the first type of building individual.
[0120] In an embodiment of the present application, the identifier of the two-dimensional mapping surface, the number of the arc segments contained in the two-dimensional mapping surface, and the identifier of the first type of sub-body to which the two-dimensional mapping surface belongs can be associated and stored and indexed to obtain a facet index table corresponding to the first type of building individual, as shown in Table 4 below.
[0121] Table 4
[0122]
[0123] As shown in Table 4, the identifier of the two-dimensional mapping surface (i.e., the surface ID in Table 4) can be recorded as M1, M2, ..., and a two-dimensional mapping surface can be uniquely determined based on the identifier. The identifier of the first type of sub-body, i.e., the building body ID in Table 4, can be recorded in the form of "Bx-x", "Bx-xx", etc., to indicate the subordinate relationship between different sub-bodies. For example, "B1-1-1" and "B1-1-2" can be sub-bodies of "B1-1", and "B1-1-1" and "B1-1-2" are in a peer relationship and do not contain each other.
[0124] It should be noted that, as can be seen from Table 4, the facet index table may also include the bottom height and top height corresponding to each two-dimensional mapping surface. Since the first type of sub-body is a geometric body with the same bottom face and top face, the bottom face and top face of the first type of sub-body are the same as the two-dimensional mapping surface corresponding to the first type of sub-body. The bottom height and top height can be determined according to the geometric parameters corresponding to the first type of sub-body, and the difference between the top height and the bottom height is the height of the first type of sub-body.
[0125] Step 308: Associating the arc segment index table with the facet index table to obtain a first structure table corresponding to the first type of building individual.
[0126] In an embodiment of the present application, the above-mentioned arc segment index table (i.e., Table 3) and the facet index table (i.e., Table 4) can be associated and stored as a first structural table corresponding to the first type of building individual, so that the two-dimensional mapping surface surrounded by arc segments with a spatial topological relationship corresponding to the first type of building individual can be stored.
[0127] Step 309: Determine a second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters in the parameter data.
[0128] The description of step 309 can be specifically referred to the above embodiment, which will not be repeated here.
[0129] Step 310: Generate a building model corresponding to the target building complex using the first structure table and the second structure table.
[0130] In the embodiment of the present application, the Cesium three-dimensional engine can be used to determine the numbers of multiple arc segments contained in the arc segment array of the corresponding two-dimensional mapping surface in the facet index table of the first structure table according to the identifier of the first type of sub-body corresponding to the first type of building individual. Then, the coordinates of the corresponding arc segment can be obtained in the arc segment index table according to the number to construct the surface object corresponding to the first type of sub-body. After that, according to the bottom surface height and top surface height of the first type of sub-body in the facet index table, the surface object is stretched, so that any building body with the same upper and lower bottom surfaces can be generated, and then the model of the first type of building individual is obtained.
[0131] Furthermore, the Cesium three-dimensional engine can be used to construct points or lines at corresponding positions according to the coordinates of each second-type building individual in the second structure table to generate a model of the second-type building individual.
[0132] In this embodiment, when the sub-body in the first type of building individual is the first type of sub-body, the first type of sub-body is first mapped to obtain the two-dimensional mapping surface corresponding to the first type of sub-body, and then based on the two-dimensional mapping surface, the arc segments of the two-dimensional mapping surface are numbered in a preset order, and then based on the arc segment number and the coordinates corresponding to the arc segment, an arc segment index table corresponding to the first type of building individual is generated, and then based on the identification of the two-dimensional mapping surface, the two-dimensional mapping surface includes the arc segment number and the identification of the first type of sub-body to which the two-dimensional mapping surface belongs, a facet index table corresponding to the first type of building individual is generated, and then the arc segment index table and the facet index table are associated to obtain the first structure table corresponding to the first type of building individual. Thus, by performing two-dimensional spatial mapping on the sub-body contained in the building individual, the facet index table and the arc segment index table corresponding to the building individual are obtained to store the geometric structure of the building individual, thereby reducing the amount of modeling data, improving modeling efficiency, and providing a data basis for realizing the automatic generation of building models.
[0133] Figure 6 A schematic flow chart of another method for generating a building model provided in an embodiment of the present application.
[0134] like Figure 6 As shown, the method for generating the building model may include the following steps:
[0135] Step 601, obtaining a captured image containing a target building complex, attribute information and geometric parameters of the target building complex.
[0136] Step 602: Determine the first type of building individuals and the second type of building individuals in the target building complex based on the collected image and attribute information.
[0137] Step 603: split the first type of building individuals to determine sub-bodies in the first type of building individuals.
[0138] The description of step 601 to step 603 can be specifically referred to the above embodiment, which will not be repeated here.
[0139] Step 604: When the sub-body in the first type of building individual is a second type of sub-body, a reference geometric body with the highest similarity is selected according to the geometric structure of the second type of sub-body.
[0140] It is understandable that the geometric structure of the second type of sub-body is complex, and using common geometric modeling may not be able to specifically describe the structure of the second type of sub-body and the role of the second type of sub-body in the target building complex.
[0141] Therefore, in this application, any existing reference geometric body in the three-dimensional engine can be rewritten based on the geometric structure of the second type of sub-body and combined with the specific parameter information of the second type of sub-body to improve the reliability and accuracy of the second type of sub-body modeling and improve the modeling efficiency.
[0142] In an embodiment of the present application, multiple reference geometric bodies may be stored in the three-dimensional engine. The similarity between the geometric structure of the second type of sub-body and each reference geometric body can be calculated, and the reference geometric body with the highest similarity can be determined as the reference geometric body to be rewritten, thereby reducing the amount of data for rewriting the geometry and improving the efficiency of constructing the geometric functions of the second type of sub-body.
[0143] For example, in the coal mining industry, the second type of sub-volume can refer to buildings such as belt conveyor corridors, boiler room chimneys, coal storage bins, waste rock bins, and roofs. The geometric structure of the belt conveyor corridor can be as follows: Figure 7a As shown, the geometric structure of the coal storage bin can be Figure 7b As shown, the geometry of the gable roof can be Figure 7c shown.
[0144] Depend on Figure 7a It can be seen that the belt conveyor corridor is a hollow pentagonal pipe body, so the pipe geometry of the Cesium 3D engine can be selected as the reference geometry of the target. Figure 7b It can be seen that the coal storage bin is a cylindrical bin, which is mainly composed of a top feeding system and a bottom discharging system. When generating the corresponding model, it is not necessary to express the V-shaped and W-shaped processes of the feeding port and the discharging port too much. The bin cap of the coal storage bin is an inverted cone, which is axially symmetrical with the center line of the coal bin. Therefore, the cone and the column can be used as the reference geometry corresponding to the coal storage bin. Figure 7c It can be seen that the gable roof is also a hollow geometric structure, so the pipe geometry of the Cesium 3D engine can also be selected as the reference geometry of the target.
[0145] Step 605: rewrite the reference geometric body based on the geometric parameters corresponding to the second type of sub-body to obtain the target geometric function corresponding to the second type of sub-body.
[0146] In an embodiment of the present application, the coordinates, width, height and other information of special points can be obtained in the geometric parameters corresponding to the second type of sub-body according to the characteristics of the geometric structure of the second type of sub-body to rewrite the reference geometric body, thereby obtaining the target geometric function corresponding to the second type of sub-body.
[0147] That is, for different second-type sub-volumes, the parameters that may be used to rewrite the reference geometry are different.
[0148] The following describes how to obtain the target geometric function in conjunction with the geometric structures of each second-type sub-volume shown in FIG. 7 .
[0149] for Figure 7b The diameter of the cylindrical coal storage bin shown is generally 21m, 27m, 30m, 36m, etc., and the ratio of the silo diameter to the silo height is generally above 1:1.5 and not more than 1:2. When building the model, the middle value of 1:1.8 can be taken. The target geometric function corresponding to the coal storage bin can be constructed based on the vertebrae and columns customized by the 3D engine, the coordinates of the bottom center point of the coal storage bin, the diameter and the height ratio.
[0150] for Figure 7c As shown in the double-slope roof, since the double-slope roof is obtained by longitudinally splitting the first type of building individual, the first type of sub-body corresponding to the double-slope roof can be determined first, and the two-dimensional mapping surface corresponding to the first type of sub-body is the bottom surface of the double-slope roof, and the arc segments of the front, back, left and right surfaces corresponding to the bottom of the double-slope roof can be determined in the facet index table shown in Table 4.
[0151] Then, you can use the coordinate system conversion to convert the arc segment into Cartesian coordinates, and use Cartesian coordinates to calculate the center points S and Z of the left and right arc segments of the roof to calculate the length of the left and right arc segments to determine the width of the roof. For example, when the coordinates of the two endpoints of the left arc segment are [x1, y1] and [x2, y2], the coordinates of the center point S of the left arc segment are [(x1+x2) / 2, (y1+y2) / 2], and the length of the left arc segment is the Euclidean distance between [x1, y1] and [x2, y2].
[0152] Afterwards, the coordinates of the two endpoints of the center line of the gable roof can be determined based on the height of the gable roof. Assuming that the height of the roof is 2 meters, the height of the two endpoints of the center line corresponding to the roof can be 1 plus the height of the center points S and Z, and the height of the center points S and Z is the same as the top surface height of the first type of sub-body corresponding to the gable roof. Then, when the height of the center points S and Z is h, the height of the center line VW is h+1, and the coordinates of the endpoints V and W are the same as the coordinates of the center points S and Z. Alternatively, when the height of the roof is 4 meters, the height of the center line VW is h+2.
[0153] Therefore, the shape of the pipeline geometry of the three-dimensional engine can be rewritten in combination with the centerline coordinates, roof width and height to obtain the target geometric function.
[0154] Step 606: Determine a second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters in the parameter data.
[0155] Step 607: Generate a building model corresponding to the target building complex using the target geometric function and the second structure table.
[0156] The description of step 606 to step 607 can be specifically referred to the above embodiment, which will not be repeated here.
[0157] It should be noted that since the second type of individuals such as roofs use the arc segment data of the corresponding first type of sub-body when constructing the target geometric function, the three-dimensional engine can ensure the positional relationship between the second type of individuals and the first type of sub-body when calling the target geometric function to model the second type of individuals.
[0158] In this embodiment, when the sub-body in the first type of building individual is the second type of sub-body, firstly, according to the geometric structure of the second type of sub-body, the reference geometric body with the highest similarity is selected, and then based on the geometric parameters corresponding to the second type of sub-body, the reference geometric body is rewritten to obtain the target geometric function corresponding to the second type of sub-body. Therefore, by rewriting the reference combination and constructing the geometric function corresponding to the irregular building sub-body, the reliability and accuracy of the building sub-body modeling can be improved, and the modeling efficiency can be improved.
[0159] Figure 8 A schematic flow chart of another method for generating a building model provided in an embodiment of the present application.
[0160] like Figure 8 As shown, the method for generating the building model may include the following steps:
[0161] Step 801, obtaining a captured image containing a target building group, attribute information and geometric parameters of the target building group.
[0162] Step 802: Determine the first type of building individuals and the second type of building individuals in the target building complex based on the collected image and attribute information.
[0163] The description of step 801 to step 802 can be specifically referred to the above embodiment, which will not be repeated here.
[0164] Step 803: split the first type of building individual to obtain at least two first-level sub-bodies corresponding to the first type of building individual.
[0165] It should be noted that the splitting of the first type of building individuals can be a process of one or more cycles. After each split, the sub-bodies obtained need to judge whether they can be split further. All the sub-bodies finally obtained from the first type of building individuals should be indivisible minimum units.
[0166] Step 804, when any first-level sub-body is not a minimum unit, split any first-level sub-body to obtain at least two second-level sub-bodies corresponding to any first-level sub-body, and repeat the operation of splitting the sub-body until all the sub-bodies corresponding to the first type of building individuals that are minimum units are obtained.
[0167] Optionally, the sub-structure tree and / or sub-structure table corresponding to the first type of building individual may be determined according to the relationship between sub-structures at each level.
[0168] In this application, a split structure tree can be designed to represent the relationship between sub-bodies at all levels. The split structure tree is a multi-branch tree data structure. A building parent node can have multiple split child nodes, and it is a multi-layer cyclic splitting process. The split structure tree can be as follows: Fig. 9 As shown, in Fig. 9 In the figure, the splitting process of a sub-body can be expressed as B0->B1->B1-1->B1-1-1 / B1-1-2, where B0 is the parent node of B1, that is, sub-body B1 is contained in B0, B1-1-1 and B1-1-2 are sub-bodies of the same level and do not contain each other, and B1-1-1 and B1-1-2 are sub-bodies of the smallest unit.
[0169] It should be noted that Fig. 9 The first-level node B0 in the figure can represent any first-type building individual, to represent the splitting process of any first-type building individual, or B0 can also be used to represent the target building group, then B1, B2, ..., BN can be represented as different building individuals, which can be first-type building individuals, second-type building individuals, and so on. The present disclosure does not limit this.
[0170] In this application, since the storage capacity of spatial data is closely related to the complexity of the multi-branch tree, it is necessary to design a reasonable relational database to store data structures with hierarchical relationships and complex structures. Therefore, the split structure tree can also be managed by constructing a split structure table. The split structure table can be shown in Table 5 below.
[0171] Table 5
[0172]
[0173] The split structure table shown in Table 5 includes the identifiers of each child (building ID) and the identifier of the parent to which the child belongs. It may also include the attribute information of each child, which may include the color, material, etc. of the child, which is not limited in this application.
[0174] Step 805: Determine the first structural table corresponding to the first type of building individual or the target geometric function corresponding to the sub-body based on the type of the sub-body.
[0175] Step 806: Determine a second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters in the parameter data.
[0176] Step 807, using the first structure table, the target geometric function and the second structure table, generate a building model corresponding to the target building complex.
[0177] The description of step 805 to step 807 can be specifically referred to the above embodiment, which will not be repeated here.
[0178] It should be noted that, in this embodiment, the split structure tree and / or the split structure table can also be stored in the database of the GIS system. When generating the building model corresponding to the target building complex, the split structure tree and / or the split structure table can be combined to ensure the accuracy of the subordinate relationship between the models corresponding to each sub-body in the generated building model.
[0179] In this embodiment, the first type of building individual is first split to obtain at least two first-level sub-volumes corresponding to the first type of building individual, and then, if any first-level sub-volume is not a minimum unit, any first-level sub-volume is split to obtain at least two second-level sub-volumes corresponding to any first-level sub-volume, and the operation of splitting the sub-volume is repeated until all sub-volumes corresponding to the first type of building individual are minimum units. Thus, by cyclically splitting the sub-volume, all sub-volumes corresponding to the building individual are minimum units, so that the geometric structure of the sub-volume can be guaranteed to be simple enough, which provides conditions for improving the efficiency of two-dimensional mapping or geometric function construction of the sub-volume, further improving the modeling efficiency, and improving the reliability of modeling.
[0180] In order to implement the above embodiment, the present application also proposes a device for generating a building model.
[0181] Fig.10 A schematic diagram of the structure of a device for generating a building model provided in an embodiment of the present application.
[0182] like Fig.10 As shown, the generating device of the building model includes:
[0183] The acquisition module 1001 is used to acquire the captured image including the target building group, the attribute information and the geometric parameters of the target building group;
[0184] A first determination module 1002 is used to determine the first type of building individuals and the second type of building individuals in the target building complex based on the collected image and attribute information;
[0185] The second determination module 1003 is used to split the first type of building individual and determine the sub-volumes in the first type of building individual, wherein the sub-volumes include the first type of sub-volumes and / or the second type of sub-volumes;
[0186] The third determination module 1004 is used to determine the first structural table corresponding to the first type of building individual or the target geometric function corresponding to the sub-body based on the type of the sub-body;
[0187] The fourth determination module 1005 is used to determine the second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters;
[0188] The generation module 1006 is used to generate a building model corresponding to the target building complex by using the first structure table, the target geometric function and the second structure table.
[0189] Further, in a possible implementation of the embodiment of the present application, the third determining module 1004 may be specifically configured to:
[0190] When the sub-volume in the first type of building individual is a first type of sub-volume, mapping the first type of sub-volume to obtain a two-dimensional mapping surface corresponding to the first type of sub-volume;
[0191] Based on the two-dimensional mapping surface, numbering arc segments of the two-dimensional mapping surface according to a preset order;
[0192] Based on the arc segment numbers and the coordinates corresponding to the arc segments, an arc segment index table corresponding to the first type of building individuals is generated;
[0193] Based on the identification of the two-dimensional mapping surface, the two-dimensional mapping surface includes the number of the arc segment and the identification of the first type of sub-body to which the two-dimensional mapping surface belongs, a facet index table corresponding to the first type of building individual is generated;
[0194] The arc segment index table and the facet index table are associated to obtain a first structure table corresponding to the first type of building individuals.
[0195] Further, in a possible implementation of the embodiment of the present application, the third determining module 1004 may be specifically configured to:
[0196] When the two-dimensional mapping surfaces of two first-type sub-volumes share the same arc segment, and the directions of the arc segment in the two two-dimensional mapping surfaces are different, the number of the arc segment is marked as negative on one of the two-dimensional mapping surfaces.
[0197] Further, in a possible implementation of the embodiment of the present application, the third determining module 1004 may be specifically configured to:
[0198] When the sub-body in the first type of building individual is a second type of sub-body, selecting a reference geometric body with the highest similarity according to the geometric structure of the second type of sub-body;
[0199] Based on the geometric parameters corresponding to the second type of sub-volume, the reference geometric body is rewritten to obtain the target geometric function corresponding to the second type of sub-volume.
[0200] Further, in a possible implementation of the embodiment of the present application, the second determining module 1003 may be specifically configured to:
[0201] Splitting the first type of building individual to obtain at least two first-level sub-bodies corresponding to the first type of building individual;
[0202] In the case that any first-level sub-volume is not a minimum unit, any first-level sub-volume is split to obtain at least two second-level sub-volumes corresponding to any first-level sub-volume, and the operation of splitting the sub-volume is repeated until all the sub-volumes corresponding to the first type of building individuals that are minimum units are obtained.
[0203] Further, in a possible implementation of the embodiment of the present application, the second determining module 1003 may also be used to:
[0204] According to the relationship between the sub-bodies at each level, the sub-body structure tree and / or sub-body structure table corresponding to the first type of building individual is determined.
[0205] Furthermore, in a possible implementation of the embodiment of the present application, the generating module 1006 may also be used to:
[0206] According to the currently displayed view range, the building model corresponding to the target building complex is rendered.
[0207] It should be noted that the above explanation of the embodiment of the method for generating a building model is also applicable to the device for generating a building model of this embodiment, and will not be repeated here.
[0208] In the embodiment of the present application, firstly, a collection image including a target building group, attribute information and geometric parameters of the target building group are obtained, and then based on the collection image and attribute information, the first type of building individuals and the second type of building individuals in the target building group are determined. Then, the first type of building individuals are split to determine the sub-bodies in the first type of building individuals, and then based on the type of the sub-bodies, the first structure table corresponding to the first type of building individuals or the target geometric function corresponding to the sub-bodies are determined. After that, based on the second type of building individuals and their corresponding attribute information and geometric parameters, the second structure table is determined, and finally, the building model corresponding to the target building group is generated using the first structure table, the target geometric function and the second structure table. Thus, by splitting the target building group into multiple building individuals, and further splitting the building individuals into multiple sub-bodies, and constructing a structure table or a geometric function for the building individuals or sub-bodies, the building model corresponding to the building group is automatically generated, thereby not only reducing the complexity of building model generation, improving modeling efficiency, but also reducing the time and resource costs of the building model.
[0209] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.
[0210] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0211] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0212] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0213] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.
[0214] The present application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by limiting data collection and deleting the data. In addition, when applicable, such personal information is de-identified to protect the privacy of the user.
[0215] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0216] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0217] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0218] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0219] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0220] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0221] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0222] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for generating a building model, characterized in that: include: Acquire a captured image containing a target building complex, attribute information and geometric parameters of the target building complex; Based on the collected image and the attribute information, determine the first type of building individuals and the second type of building individuals in the target building complex, wherein the first type of building individuals refer to buildings involved in the production process, and the second type of building individuals refer to structures that do not have, contain or provide human living functions; Splitting the first type of building individual to determine sub-volumes in the first type of building individual, wherein the sub-volumes include first type sub-volumes and / or second type sub-volumes, wherein the first type sub-volumes are regular geometric bodies, and the second type sub-volumes are irregular geometric bodies; Based on the type of the sub-body, determining a first structural table corresponding to the first type of building individual or a target geometric function corresponding to the sub-body; Determine a second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters; Generate a building model corresponding to the target building complex by using the first structure table, the target geometric function and the second structure table; The step of generating a first structural table corresponding to the first type of building individual or a target geometric function corresponding to the sub-body based on the type of the sub-body includes: When the sub-volume in the first-type building individual is a first-type sub-volume, mapping the first-type sub-volume to obtain a two-dimensional mapping surface corresponding to the first-type sub-volume; Based on the two-dimensional mapping surface, numbering arc segments of the two-dimensional mapping surface in a preset order; Based on the arc segment numbers and the coordinates corresponding to the arc segments, generating an arc segment index table corresponding to the first type of building individual; Based on the identification of the two-dimensional mapping surface, the number of the arc segment included in the two-dimensional mapping surface and the identification of the first type of sub-body to which the two-dimensional mapping surface belongs, generate a facet index table corresponding to the first type of building individual; Associating the arc segment index table with the facet index table to obtain a first structure table corresponding to the first type of building individual; When the sub-body in the first type of building individual is a second type of sub-body, selecting a reference geometric body with the highest similarity according to the geometric structure of the second type of sub-body; Based on the geometric parameters corresponding to the second type of sub-volume, the reference geometric volume is rewritten to obtain a target geometric function corresponding to the second type of sub-volume.
2. The method according to claim 1, characterized in that The step of numbering arc segments of the two-dimensional mapping surface according to a preset order based on the two-dimensional mapping surface includes: When the two-dimensional mapping surfaces of two first-type sub-volumes share the same arc segment, and the directions of the arc segment in the two two-dimensional mapping surfaces are different, the number of the arc segment is marked as negative on one of the two-dimensional mapping surfaces.
3. The method according to claim 1, characterized in that The step of splitting the first type of building individual to determine sub-bodies in the first type of building individual includes: Splitting the first type of building individual to obtain at least two first-level sub-bodies corresponding to the first type of building individual; In the case that any first-level sub-body is not a minimum unit, the first-level sub-body is split to obtain at least two second-level sub-bodies corresponding to the first-level sub-body, and the operation of splitting the sub-body is repeated until all the sub-bodies corresponding to the first type of building individuals that are minimum units are obtained.
4. The method according to claim 3, characterized in that After obtaining all the sub-bodies corresponding to the first type of building individual that are the smallest units, the method further includes: According to the relationship between the sub-bodies at each level, a sub-body structure tree and / or a sub-body structure table corresponding to the first type of building individual is determined.
5. The method according to claim 1, characterized in that After generating the building model corresponding to the target building complex by using the first structure table, the target geometric function and the second structure table, the method further includes: The building model corresponding to the target building complex is rendered according to the currently displayed view range.
6. A device for generating a building model, characterized in that: include: An acquisition module, used to acquire a captured image containing a target building complex, attribute information and geometric parameters of the target building complex; A first determination module is used to determine a first type of building individual and a second type of building individual in the target building complex based on the collected image and the attribute information, wherein the first type of building individual refers to a building involved in a production process, and the second type of building individual refers to a structure that does not have, does not contain, or does not provide a human living function; A second determination module is used to split the first type of building individual to determine sub-volumes in the first type of building individual, wherein the sub-volumes include first type sub-volumes and / or second type sub-volumes, wherein the first type sub-volumes are regular geometric bodies, and the second type sub-volumes are irregular geometric bodies; A third determination module is used to determine, based on the type of the sub-body, a first structural table corresponding to the first type of building individual or a target geometric function corresponding to the sub-body; A fourth determination module, configured to determine a second structure table based on the second type of building individuals and their corresponding attribute information and geometric parameters; A generating module, configured to generate a building model corresponding to the target building complex by using the first structure table, the target geometric function and the second structure table; The third determination module is specifically configured to map the first type of sub-volume to obtain a two-dimensional mapping surface corresponding to the first type of sub-volume when the sub-volume in the first type of building individual is a first type of sub-volume; Based on the two-dimensional mapping surface, numbering arc segments of the two-dimensional mapping surface in a preset order; Based on the arc segment numbers and the coordinates corresponding to the arc segments, generating an arc segment index table corresponding to the first type of building individual; Based on the identification of the two-dimensional mapping surface, the number of the arc segment included in the two-dimensional mapping surface and the identification of the first type of sub-body to which the two-dimensional mapping surface belongs, generate a facet index table corresponding to the first type of building individual; Associating the arc segment index table with the facet index table to obtain a first structure table corresponding to the first type of building individual; The third determination module is further configured to select a reference geometric body with the highest similarity according to the geometric structure of the second type of sub-body when the sub-body in the first type of building individual is a second type of sub-body; Based on the geometric parameters corresponding to the second type of sub-volume, the reference geometric volume is rewritten to obtain a target geometric function corresponding to the second type of sub-volume.
7. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method for generating a building model according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for generating a building model according to any one of claims 1 to 5.
Citation Information
Patent Citations
BIM-based three-dimensional building model splitting processing method and device
CN108427794A
Fusion method of building BIM model and live-action three-dimensional model
CN110807835A
BIM model data processing method and device, electronic equipment and storage medium
CN115587402A
Conversion method and device of building model, equipment and storage medium
CN117521221A
Module unit generation method, device and equipment of modular building and medium
CN118133406A
