Data processing method, device, electronic device and readable storage medium
By acquiring the contour data of the building object to generate geometry and adding details, the problems of high cost and long cycle of the building object in the prior art are solved, and low-cost and efficient realistic three-dimensional image generation is achieved.
Patent Information
- Application Number
- CN202010632691.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-01
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2040-07-01
AI Technical Summary
Existing three-dimensional image generation methods for building objects such as manual modeling and tilt photography modeling are costly and long periods, making it difficult to efficiently generate realistic three-dimensional images.
By obtaining the building profile data, generating geometry, determining the building type, and adding details according to the type, generating a building image.
Rapidly generate realistic three-dimensional images at a lower cost, which can distinguish different types of construction and improve the authenticity of images and the observer's understanding.
Smart Images

Figure CN113888711B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, device, electronic device, and readable storage medium. Background Art
[0002] Data screens are an effective way to share, communicate, and disseminate information. As a new media format, data screens play a vital role in various scenarios, including brand promotion, government reception, business communication, and data monitoring, and have become a crucial foundational system for information visualization. Three-dimensional digital city screens display three-dimensional images of geographic space, such as buildings. Currently, the most common methods for generating three-dimensional images of buildings are manual modeling or oblique photography. Manual modeling involves manual work using 3D modeling software such as 3ds, Max, and Maya, but this method is costly and time-consuming. Oblique photography modeling uses drones, vehicles, and other means to collect field data and automatically create models, but this method is time-consuming and costly. Summary of the Invention
[0003] In order to solve the problems in the related art, the embodiments of the present disclosure provide a data processing method, device, electronic device and readable storage medium.
[0004] In a first aspect, an embodiment of the present disclosure provides a data processing method.
[0005] Specifically, the data processing method includes:
[0006] Obtain building outline data;
[0007] generating a building geometry according to the building outline data;
[0008] determining the type of the building according to the building outline data;
[0009] Details are added to the building geometry according to the building type to generate a building image.
[0010] In conjunction with the first aspect, in a first implementation of the first aspect of the present disclosure, obtaining building outline data includes:
[0011] Vector geographic data is acquired, wherein the vector geographic data includes building bottom surface contour data and building height data.
[0012] In combination with the first aspect, in a second implementation of the first aspect of the present disclosure, the data processing method further includes:
[0013] According to the building outline data, the association relationship between buildings is determined, and multiple buildings with the association relationship are regarded as a whole building.
[0014] In combination with the second implementation manner of the first aspect, in a third implementation manner of the first aspect of the present disclosure, the association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection.
[0015] In combination with the second implementation of the first aspect, in a fourth implementation of the first aspect of the present disclosure, generating a building geometry according to the building outline data includes:
[0016] The geometrical body of the entire building is generated according to the building outline data of the plurality of buildings having the associated relationship.
[0017] In combination with the second, third, and fourth implementations of the first aspect, in a fifth implementation of the first aspect of the present disclosure, determining the type of the building according to the building outline data includes:
[0018] The type of the entire building is determined according to the building outline data of the plurality of buildings having the associated relationship.
[0019] In combination with the fifth implementation manner of the first aspect, in a sixth implementation manner of the first aspect of the present disclosure, adding details to the building geometry according to the building type to generate a building image includes:
[0020] According to the type of the overall building, details are added to the geometry of the overall building to generate the building image.
[0021] In combination with the first aspect, in a seventh implementation manner of the first aspect of the present disclosure, the details include at least one or more of the following: roof, doors and windows, walls, and ground.
[0022] In a second aspect, an embodiment of the present disclosure provides a data processing method, including:
[0023] Obtaining building-related data;
[0024] Generating a building geometry according to the building-related data;
[0025] determining the type of the building according to the building-related data;
[0026] Details are added to the building geometry according to the building type to generate a building image.
[0027] In a third aspect, an embodiment of the present disclosure provides a data processing device.
[0028] Specifically, the data processing device includes:
[0029] An acquisition module is configured to acquire building outline data;
[0030] A first generating module is configured to generate a building geometry according to the building outline data;
[0031] A first determining module is configured to determine the type of the building according to the building outline data;
[0032] The second generating module is configured to add details to the building geometry according to the building type to generate a building image.
[0033] In conjunction with the third aspect, in a first implementation of the third aspect of the present disclosure, obtaining building outline data includes:
[0034] Vector geographic data is acquired, wherein the vector geographic data includes building bottom surface contour data and building height data.
[0035] In conjunction with the third aspect, in a second implementation of the third aspect of the present disclosure, the data processing device further includes:
[0036] The second determining module is configured to determine the association relationship between buildings based on the building outline data, and regard multiple buildings with the association relationship as a whole building.
[0037] In combination with the second implementation manner of the third aspect, in a third implementation manner of the third aspect of the present disclosure, the association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection.
[0038] In combination with the second implementation of the third aspect, in a fourth implementation of the third aspect of the present disclosure, generating a building geometry according to the building outline data includes:
[0039] The geometrical body of the entire building is generated according to the building outline data of the plurality of buildings having the associated relationship.
[0040] In combination with the second implementation manner, the third implementation manner, or the fourth implementation manner of the third aspect, in a fifth implementation manner of the third aspect of the present disclosure, determining the type of the building according to the building outline data includes:
[0041] The type of the entire building is determined according to the building outline data of the plurality of buildings having the associated relationship.
[0042] In combination with the fifth implementation of the third aspect, in a sixth implementation of the third aspect of the present disclosure, adding details to the building geometry according to the building type to generate a building image includes:
[0043] According to the type of the overall building, details are added to the geometry of the overall building to generate the building image.
[0044] In combination with the third aspect, in a seventh implementation manner of the third aspect of the present disclosure, the details include at least one or more of the following: roof, doors and windows, walls, and ground.
[0045] In a fourth aspect, an embodiment of the present disclosure provides a data processing device, including:
[0046] A second acquisition module is configured to acquire building-related data;
[0047] A third generating module is configured to generate a building geometry according to the building related data;
[0048] a third determining module, configured to determine the type of the building according to the building-related data;
[0049] The fourth generating module is configured to add details to the building geometry according to the building type to generate a building image.
[0050] In a fifth aspect, an embodiment of the present disclosure provides an electronic device comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, and wherein the one or more computer instructions are executed by the processor to implement a method as described in any one of the first and second aspects.
[0051] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the method described in any one of the first and second aspects is implemented.
[0052] According to the technical solutions provided by the embodiments of the present disclosure, a data processing method includes: obtaining building outline data; generating a building geometry based on the building outline data; determining the building type based on the building outline data; and adding details to the building geometry based on the building type to generate a building image. According to the embodiments of the present disclosure, the building outline data is common commercial data that is easily accessible from public channels and has a low data acquisition cost. Using the technical solutions of the present disclosure, it is possible to complete the three-dimensional image rendering of buildings in a specified area at a low cost, distinguish different building types, and generate more realistic three-dimensional images.
[0053] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0055] Figure 1A A flowchart illustrating a data processing method according to an embodiment of the present disclosure is shown;
[0056] Figure 1B A flowchart illustrating a data processing method according to an embodiment of the present disclosure is shown;
[0057] Figure 2 A schematic diagram of generating a building geometry according to an embodiment of the present disclosure is shown;
[0058] Figures 3A-3B A schematic diagram showing adding details to the building geometry according to an embodiment of the present disclosure is shown;
[0059] Figures 4A-4C A schematic diagram showing the building association relationship according to an embodiment of the present disclosure;
[0060] Figure 5A A structural block diagram of a data processing device according to an embodiment of the present disclosure is shown;
[0061] Figure 5B A structural block diagram of a data processing device according to an embodiment of the present disclosure is shown;
[0062] Figure 6 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0063] Figure 7 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0064] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0065] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, actions, components, parts, or combinations thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, actions, components, parts, or combinations thereof exist or are added.
[0066] It should also be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0067] Data screens are an effective way to share, communicate, and disseminate information. As a new media format, data screens play a vital role in various scenarios, including brand promotion, government reception, business communication, and data monitoring, and have become a crucial foundational system for information visualization. Three-dimensional digital city screens display three-dimensional images of geographic space, such as buildings. Currently, the most common methods for generating three-dimensional images of buildings are manual modeling or oblique photography. Manual modeling involves manual work using 3D modeling software such as 3ds, Max, and Maya, but this method is costly and time-consuming. Oblique photography modeling uses drones, vehicles, and other means to collect field data and automatically create models, but this method is time-consuming and costly.
[0068] Taking the above-mentioned defects into consideration, in an embodiment of the present disclosure, a data processing method is proposed. The method first acquires building outline data, then generates building geometry based on the building outline data, determines the building type, and finally adds details to the building geometry based on the building type to generate a building image.
[0069] According to the embodiments of the present disclosure, the building outline data is common commercial data, which is easy to obtain from public channels and has a low data acquisition cost. Through the technical solution of the present disclosure, the three-dimensional image rendering of the building can be completed quickly and conveniently at a low cost, and different types of buildings can be distinguished in the image, making the generated three-dimensional image more realistic.
[0070] The image display method according to the embodiment of the present disclosure is applicable to application scenarios of digital large-screen display, and is also applicable to application scenarios such as the display of game images, movie images, TV images, virtual reality images, and enhanced display images.
[0071] Figure 1A 1 is a flow chart showing a data processing method according to an embodiment of the present disclosure. Figure 1A As shown, the data processing method includes the following steps S101-S104:
[0072] In step S101, building outline data is obtained;
[0073] In step S102, a building geometry is generated according to the building outline data;
[0074] In step S103, the type of the building is determined according to the building outline data;
[0075] In step S104 , details are added to the building geometry according to the building type to generate a building image.
[0076] Specifically, in step S101 , building outline data is acquired.
[0077] According to an embodiment of the present disclosure, the building outline data is, for example, GeoJSON data, and may include any one or more of the following data: projection shape data of the building on the horizontal plane, height data, and location data (such as latitude and longitude data, etc.).
[0078] In step S102 , a building geometry is generated according to the building outline data.
[0079] Figure 2 A schematic diagram of generating a building geometry according to an embodiment of the present disclosure is shown.
[0080] According to an embodiment of the present disclosure, the building geometry, such as Figure 2 As shown, a cylindrical geometric body 204 may be generated based on projection shape data 202 and height data 203 of the building on a horizontal plane 201 .
[0081] In step S103, the type of the building is determined according to the building outline data.
[0082] According to embodiments of the present disclosure, a correspondence between building types and building outline data in a 3D image can be pre-set. Building types in embodiments of the present disclosure can include, for example, commercial buildings, high-rise residential buildings, low-rise residential buildings, factories, stadiums, and the like. Building types corresponding to each building can be determined based on different building outline data.
[0083] For example, a building whose projected shape area on the horizontal plane is greater than a first preset area threshold and less than a second preset area threshold can be set as a commercial building, a building whose projected shape area on the horizontal plane is less than or equal to the first preset area threshold and whose height is higher than the first preset height threshold can be set as a high-rise residential building, a building whose projected shape area on the horizontal plane is less than or equal to the first preset area threshold and whose height is equal to or lower than the first preset height threshold can be set as a low-rise residential building, a building whose projected shape area on the horizontal plane is greater than or equal to the second preset area threshold can be set as a factory building, a building whose projected shape on the horizontal plane is an elliptical building can be set as a stadium, and so on.
[0084] In step S104 , details are added to the building geometry according to the building type to generate a building image.
[0085] Figures 3A-3B A schematic diagram showing adding details to the building geometry according to an embodiment of the present disclosure is shown.
[0086] According to the embodiment of the present disclosure, the building geometry generated in step S103 is merely a three-dimensional framework. To enhance the visual beauty of the generated three-dimensional image and make the three-dimensional image more realistic, image details corresponding to various building types may be preset and added to the building geometry of the corresponding building type.
[0087] For example, Figure 3A As shown in , when the building type is a commercial building, image details such as glass curtain walls and roofs can be preset; Figure 3B As shown in the example, when the building type is a low-rise residential building, image details such as windows, doors, and roofs can be preset; when the building type is a stadium, image details such as the soccer field turf and plastic track can be preset. The corresponding building type can be determined based on the building outline data, and the image details of the corresponding building type are added to the generated building geometry to generate the building image.
[0088] According to an embodiment of the present disclosure, by acquiring building outline data, generating a building geometry based on the building outline data and determining the type of the building, and adding details to the building geometry based on the building type, an image of the building is generated. The building outline data is common commercial data and is easily obtained from public channels. The data acquisition cost is low, and the three-dimensional image rendering of the building can be completed quickly and conveniently at a low cost. Different types of buildings can be distinguished on the image, making the generated three-dimensional image more realistic.
[0089] According to an embodiment of the present disclosure, the acquiring of building outline data includes: acquiring vector geographic data, wherein the vector geographic data includes building bottom surface outline data and building height data.
[0090] According to embodiments of the present disclosure, the building bottom profile data is the projected shape data of the building on a horizontal plane. By acquiring vector geographic data, building geometry, such as the building's geometric framework, can be generated based on the building bottom profile data and building height data contained therein. This vector geographic data can be obtained from public sources at a low cost, enabling the construction of a building's geometric framework in a specified area to be completed at a low cost.
[0091] According to an embodiment of the present disclosure, the data processing method further includes: determining association relationships between buildings based on the building outline data, and treating multiple buildings with association relationships as a whole building.
[0092] Figures 4A-4C A schematic diagram showing the building association relationship according to an embodiment of the present disclosure is shown.
[0093] According to an embodiment of the present disclosure, the association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection. In reality, there may be one or more association relationships between buildings, for example, Figure 4A As shown in FIG, a stadium is often composed of an outer oval building 401 and an inner rectangular football field lawn 402. In this building type, the outer oval building and the inner rectangular building are in a containment relationship. Figure 4B As shown in the figure, the office building is built on a platform with steps, so the platform with steps and the office building are in a stacked relationship. Figure 4C As shown, two buildings in a large shopping mall are connected by a corridor, so the two buildings and the corridor are in a connected relationship. Buildings with associated relationships should be generated as a whole rather than as separate buildings, and their building type should be determined as a whole to avoid significant discrepancies between the generated 3D image and the actual building, resulting in 3D image distortion.
[0094] According to an embodiment of the present disclosure, generating a building geometry according to the building outline data includes: generating a geometry of the entire building according to the building outline data of the plurality of buildings having an associated relationship.
[0095] According to an embodiment of the present disclosure, a plurality of buildings having an association relationship may be combined as a whole building to generate a building geometry. For example, an outer elliptical building and an inner rectangular building having a containment relationship may be combined as a whole building to generate a building geometry, or two buildings having a connection relationship and a corridor between the two buildings may be combined as a whole building to generate a building geometry, or a platform with steps having a stacking relationship and an office building on the platform may be combined as a whole building to generate a building geometry.
[0096] According to an embodiment of the present disclosure, by treating a plurality of buildings having an associated relationship as a whole building, it is possible to avoid inappropriately splitting the image of the whole building into several buildings, thereby preventing display errors.
[0097] According to an embodiment of the present disclosure, determining the building type based on the building outline data includes determining the type of the entire building based on the building outline data of the multiple associated buildings. The multiple associated buildings should be treated as a single building. Therefore, when determining the building type, the building type should be determined based on the building outline data of the entire building, and details should be determined based on the building type, making the generated 3D image more realistic and less different from the actual building.
[0098] For example, an external elliptical building and an internal rectangular building with a containment relationship are determined as a whole building and their type is a sports field, or two buildings with a connection relationship and a corridor between the two buildings are determined as a whole building and their type is a large shopping mall, or a platform with steps and an office building on the platform with a stacking relationship are determined as a whole building and their type is an office building.
[0099] According to an embodiment of the present disclosure, adding details to the building geometry according to the building type to generate the building image includes: adding details to the overall building geometry according to the overall building type to generate the building image.
[0100] According to an embodiment of the present disclosure, the details include at least one or more of the following: roof, doors and windows, walls, and ground.
[0101] After generating the building geometry according to the building outline data, the generated three-dimensional image is only a geometric image composed of several lines, which is very abstract and far from the real scene, and is not conducive to viewing by observers. Therefore, it is necessary to supplement the image details of the building geometry.
[0102] Different types of buildings have significantly different appearances, so details can be added based on the building type. For example, if the building is a commercial building, details such as glass curtain walls can be added to the building geometry; if the building is a low-rise residential building, details such as spires, windows, and entrance doors can be added to the building geometry; if the building is a stadium, details such as lawns and running tracks can be added to the building geometry.
[0103] According to the embodiments of the present disclosure, by adding details to the geometric body of the overall building according to the type of the overall building, it is possible to avoid misjudgment of type caused by determining the type of each part of the overall building separately, which results in the inability to correctly add corresponding details. It can also improve the appearance coordination and uniformity of the image of the overall building.
[0104] By adding details to the geometry of the overall building according to the type of the overall building to generate the building image, the generated three-dimensional image can be made more realistic while controlling costs, making it easier for observers to distinguish different types of buildings and observe the overall layout of all buildings. Figure 1B 1 is a flow chart showing a data processing method according to an embodiment of the present disclosure. Figure 1B As shown, the data processing method includes the following steps S105-S108:
[0105] In step S105, building-related data is obtained;
[0106] In step S106, a building geometry is generated according to the building-related data;
[0107] In step S107, the type of the building is determined according to the building-related data;
[0108] In step S108 , details are added to the building geometry according to the building type to generate a building image.
[0109] According to an embodiment of the present disclosure, the building related data may be a reference Figure 1A The building outline data described may also be other data related to the building, such as any one or more of the following data: three-dimensional size data of the building image, pixel data of the building image, identification data that can be used to determine the building outline data and type data, etc.
[0110] According to an embodiment of the present disclosure, a correspondence between the three-dimensional size data of a building image and / or the pixel data of the building image and the building type can be preset, so that the building type can be determined based on the three-dimensional size data of the building image and / or the pixel data of the building image.
[0111] According to an embodiment of the present disclosure, the association relationship between buildings is determined based on the building-related data, and multiple buildings with the association relationship are regarded as a whole building.
[0112] According to an embodiment of the present disclosure, the association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection.
[0113] According to an embodiment of the present disclosure, generating a building geometry according to the building-related data includes:
[0114] The geometrical body of the entire building is generated according to the building-related data of the plurality of buildings having the associated relationship.
[0115] According to an embodiment of the present disclosure, determining the type of the building according to the building-related data includes:
[0116] The type of the entire building is determined according to the building-related data of the plurality of buildings having the associated relationship.
[0117] According to an embodiment of the present disclosure, adding details to the building geometry according to the building type to generate a building image includes:
[0118] According to the type of the overall building, details are added to the geometry of the overall building to generate the building image.
[0119] According to an embodiment of the present disclosure, the details include at least one or more of the following: roof, doors and windows, walls, and ground.
[0120] Figure 5A A structural block diagram of a data processing device according to an embodiment of the present disclosure is shown, wherein the device can be implemented as part or all of an electronic device through software, hardware, or a combination of both.
[0121] like Figure 5A As shown, the data processing device 500 includes a first acquisition module 510 , a first generation module 520 , a first determination module 530 and a second generation module 540 .
[0122] A first acquisition module 510 is configured to acquire building outline data;
[0123] A first generating module 520 is configured to generate a building geometry according to the building outline data;
[0124] A first determining module 530 is configured to determine the type of the building according to the building outline data;
[0125] The second generating module 540 is configured to add details to the building geometry according to the building type to generate a building image.
[0126] The first acquisition module 510 is configured to acquire building outline data, which is, for example, GeoJSON data and may include any one or more of the following data: projected shape data of the building on a horizontal plane, height data, and location data (such as latitude and longitude data).
[0127] The first generation module 520 is configured to generate a building geometry based on the building outline data. The building geometry is a virtual geometry generated based on the building outline data, and is not the actual building outline. For example, a cylindrical geometry is generated based on the building's projection shape data and height data on a horizontal plane.
[0128] The first determination module 530 is configured to determine the building type based on the building outline data. Based on the needs of the generated 3D image, the building type in the 3D image and the corresponding preset building outline data range are pre-set, such as commercial buildings, high-rise residential buildings, low-rise residential buildings, factories, stadiums, etc. Based on different building outline data, the corresponding building type can be determined.
[0129] The second generation module 540 is configured to add details to the building geometry based on the building type to generate a building image. The building geometry is merely a three-dimensional framework. To enhance the visual aesthetics and realism of the generated 3D image, image details corresponding to various building types can be preset and added to the building geometry of the corresponding building type. For example, if the building type is a low-rise residential building, image details such as windows, doors, and spires can be preset; if the building type is a commercial building, image details such as glass curtain walls and high-rise buildings can be preset. When the building outline data falls within the preset building outline data range, the corresponding building type is identified, and the corresponding image details are added to the generated building geometry to generate a building image of the corresponding type.
[0130] According to an embodiment of the present disclosure, building outline data is obtained, building geometry is generated based on the building outline data, the type of the building is determined, and details of the building geometry are added based on the building type to generate a building image. The building outline data is common commercial data and is easily obtained from public channels. The data acquisition cost is low, and the three-dimensional image rendering work of buildings in a specified area can be completed at a low cost, and the generated three-dimensional image has a higher degree of realism.
[0131] According to an embodiment of the present disclosure, obtaining building outline data includes:
[0132] Vector geographic data is obtained, including building bottom contour data and building height data. The building bottom contour data represents the projected shape of the building on a horizontal plane. By obtaining this vector geographic data, a building geometry, i.e., a virtual geometric framework of the building, can be synthesized based on the building bottom contour data and building height data contained therein. Since this vector geographic data can be obtained from public sources and is inexpensive to acquire, the geometric framework of the building in a specified area can be constructed at a low cost.
[0133] According to an embodiment of the present disclosure, the data processing device further includes:
[0134] The second determining module is configured to determine the association relationship between buildings based on the building outline data, and regard multiple buildings with the association relationship as a whole building.
[0135] According to an embodiment of the present disclosure, the association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection. In reality, one or more association relationships often exist between buildings. For example, a stadium is often composed of an outer elliptical building and an inner rectangular football field. In this building type, the outer elliptical building and the inner rectangular building are in a inclusion relationship. Or, for example, the two cylindrical buildings of the CCTV building are connected by two connecting parts. Therefore, the buildings with an association relationship should belong to the same building as a whole, and generate a three-dimensional image as a whole to avoid a large difference between the generated three-dimensional image and the actual building, which would cause three-dimensional image distortion.
[0136] According to an embodiment of the present disclosure, generating a building geometry according to the building outline data includes:
[0137] The geometry of the entire building is generated based on the building outline data of the multiple associated buildings. For example, a stadium often consists of an outer elliptical building and an inner rectangular football field. In this building type, the outer elliptical building and the inner rectangular building are in a containment relationship. Or, for example, the two cylindrical buildings of the CCTV building are connected by two connecting parts. Therefore, the associated buildings should belong to the same building entity and generate the building geometry as a whole to avoid a significant difference between the generated building geometry and the actual building geometry, which would cause distortion.
[0138] According to an embodiment of the present disclosure, determining the type of the building according to the building outline data includes:
[0139] The type of the entire building is determined based on the building outline data of the multiple buildings with a correlation. The multiple buildings with a correlation should be treated as a single building. Therefore, when determining the building type, the building type should be determined based on the building outline data of the entire building. Building geometry is generated based on the building type and building outline data, making the generated 3D image more realistic and less inaccurate from the actual building.
[0140] According to an embodiment of the present disclosure, adding details to the building geometry according to the building type to generate a building image includes:
[0141] According to the type of the overall building, details are added to the geometry of the overall building to generate the building image.
[0142] According to an embodiment of the present disclosure, the details include at least one or more of the following: roof, doors and windows, walls, and ground.
[0143] After generating the building geometry based on the building outline data, the resulting 3D image is simply a geometric image composed of a few lines. This is very abstract and far from realistic, making it difficult for viewers to interpret. Therefore, it is necessary to supplement the image details of the building geometry. However, different building types have significantly different appearance characteristics, so additional details are needed based on the building type. For example, if the building is a commercial building, details such as a glass curtain wall can be added to the geometry; if the building is a low-rise residential building, details such as a spire, windows, and entrance doors can be added to the geometry; if the building is a stadium, details such as a lawn and a running track can be added to the geometry. By adding details to the overall building geometry based on the building type to generate the building image, the generated 3D image can be made more realistic while controlling costs. This allows viewers to easily distinguish between different building types and gain a comprehensive view of the building's layout.
[0144] Figure 5B A structural block diagram of a data processing device according to an embodiment of the present disclosure is shown, wherein the device can be implemented as part or all of an electronic device through software, hardware, or a combination of both.
[0145] like Figure 5B As shown, the data processing device 590 includes a second acquisition module 550 , a third generation module 560 , a third determination module 570 and a fourth generation module 580 .
[0146] The second acquisition module 550 is configured to acquire building-related data;
[0147] A third generating module 560 is configured to generate a building geometry according to the building related data;
[0148] A third determining module 570 is configured to determine the type of the building according to the building-related data;
[0149] The fourth generating module 580 is configured to add details to the building geometry according to the building type to generate a building image.
[0150] According to an embodiment of the present disclosure, the building related data may be a reference Figure 5A The building outline data described may also be other data related to the building, such as any one or more of the following data: three-dimensional size data of the building image, pixel data of the building image, identification data that can be used to determine the building outline data and type data, etc.
[0151] According to an embodiment of the present disclosure, a correspondence between the three-dimensional size data of a building image and / or the pixel data of the building image and the building type can be preset, so that the building type can be determined based on the three-dimensional size data of the building image and / or the pixel data of the building image.
[0152] According to an embodiment of the present disclosure, the data processing apparatus further includes a fourth determining module configured to determine association relationships between buildings based on the building-related data, and treat multiple buildings with association relationships as a whole building.
[0153] According to an embodiment of the present disclosure, the association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection.
[0154] According to an embodiment of the present disclosure, generating a building geometry according to the building-related data includes:
[0155] The geometrical body of the entire building is generated according to the building-related data of the plurality of buildings having the associated relationship.
[0156] According to an embodiment of the present disclosure, determining the type of the building according to the building-related data includes:
[0157] The type of the entire building is determined according to the building-related data of the plurality of buildings having the associated relationship.
[0158] According to an embodiment of the present disclosure, adding details to the building geometry according to the building type to generate a building image includes:
[0159] According to the type of the overall building, details are added to the geometry of the overall building to generate the building image.
[0160] According to an embodiment of the present disclosure, the details include at least one or more of the following: roof, doors and windows, walls, and ground.
[0161] The present disclosure also discloses an electronic device, Figure 6 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0162] like Figure 6 As shown, the electronic device 600 includes a memory 601 and a processor 602, wherein the memory 601 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 602 to implement a method according to an embodiment of the present disclosure, the method including:
[0163] Obtain building outline data;
[0164] generating a building geometry according to the building outline data;
[0165] determining the type of the building according to the building outline data;
[0166] Details are added to the building geometry according to the building type to generate a building image.
[0167] The step of obtaining building outline data includes:
[0168] Vector geographic data is acquired, wherein the vector geographic data includes building bottom surface contour data and building height data.
[0169] The data processing method further includes:
[0170] According to the building outline data, the association relationship between buildings is determined, and multiple buildings with the association relationship are regarded as a whole building.
[0171] The association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection.
[0172] The step of generating a building geometry according to the building outline data includes:
[0173] The geometrical body of the entire building is generated according to the building outline data of the plurality of buildings having the associated relationship.
[0174] The step of determining the type of the building according to the building outline data includes:
[0175] The type of the entire building is determined according to the building outline data of the plurality of buildings having the associated relationship.
[0176] The step of adding details to the building geometry according to the building type to generate a building image includes:
[0177] According to the type of the overall building, details are added to the geometry of the overall building to generate the building image.
[0178] The details include at least one or more of the following: roof, doors and windows, walls, and ground.
[0179] According to an embodiment of the present disclosure, the one or more computer instructions are executed by the processor 602 to implement a method according to an embodiment of the present disclosure, the method including:
[0180] Obtaining building-related data;
[0181] Generating a building geometry according to the building-related data;
[0182] determining the type of the building according to the building-related data;
[0183] Details are added to the building geometry according to the building type to generate a building image.
[0184] According to an embodiment of the present disclosure, the building related data may be a reference Figure 1A The building outline data described may also be other data related to the building, such as any one or more of the following data: three-dimensional size data of the building image, pixel data of the building image, identification data that can be used to determine the building outline data and type data, etc.
[0185] According to an embodiment of the present disclosure, a correspondence between the three-dimensional size data of a building image and / or the pixel data of the building image and the building type can be preset, so that the building type can be determined based on the three-dimensional size data of the building image and / or the pixel data of the building image.
[0186] According to an embodiment of the present disclosure, the association relationship between buildings is determined based on the building-related data, and multiple buildings with the association relationship are regarded as a whole building.
[0187] According to an embodiment of the present disclosure, the association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection.
[0188] According to an embodiment of the present disclosure, generating a building geometry according to the building-related data includes:
[0189] The geometrical body of the entire building is generated according to the building-related data of the plurality of buildings having the associated relationship.
[0190] According to an embodiment of the present disclosure, determining the type of the building according to the building-related data includes:
[0191] The type of the entire building is determined according to the building-related data of the plurality of buildings having the associated relationship.
[0192] According to an embodiment of the present disclosure, adding details to the building geometry according to the building type to generate a building image includes:
[0193] According to the type of the overall building, details are added to the geometry of the overall building to generate the building image.
[0194] According to an embodiment of the present disclosure, the details include at least one or more of the following: roof, doors and windows, walls, and ground.
[0195] Figure 7 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown.
[0196] like Figure 7 As shown, the computer system 700 includes a processing unit 701, which can execute various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the system 700 are also stored in the RAM 703. The processing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0197] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom can be installed into the storage section 708 as needed. Among them, the processing unit 701 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.
[0198] In particular, according to embodiments of the present disclosure, the methods described above can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for executing the methods described above. In such embodiments, the computer program can be downloaded and installed from a network via the communication portion 709 and / or installed from a removable medium 711.
[0199] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of code, and the module, program segment or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.
[0200] The units or modules described in the embodiments of the present disclosure may be implemented in software or programmable hardware. The units or modules described may also be provided in a processor, and the names of these units or modules do not, in certain circumstances, limit the units or modules themselves.
[0201] As another aspect, the present disclosure further provides a computer-readable storage medium. This computer-readable storage medium may be included in the electronic device or computer system described in the above embodiments, or may be a standalone computer-readable storage medium not incorporated into the device. The computer-readable storage medium stores one or more programs, which are used by one or more processors to execute the methods described in the present disclosure.
[0202] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention herein is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
Claims
1. A data processing method, comprising: Obtain building outline data; generating a building geometry according to the building outline data; determining a building type according to the building outline data; adding details to the building geometry according to the building type to generate a building image; Determining association relationships between buildings based on the building outline data, and treating multiple buildings with association relationships as a whole building; the association relationships include at least one or more of the following relationships: inclusion, stacking, and connection; The determining of the building type according to the building outline data includes: The overall building type is determined according to the building outline data of the plurality of buildings having the associated relationship.
2. The method according to claim 1, wherein The obtaining of building outline data includes: Vector geographic data is acquired, wherein the vector geographic data includes building bottom surface contour data and building height data.
3. The method according to claim 1, wherein Generating a building geometry according to the building outline data includes: The geometrical body of the entire building is generated according to the building outline data of the plurality of buildings having the associated relationship.
4. The method according to claim 1, wherein The step of adding details to the building geometry according to the building type to generate a building image includes: According to the overall building type, details are added to the geometry of the overall building to generate the building image.
5. The method according to claim 1, wherein The details include at least one or more of the following: roof, doors and windows, walls, and ground.
6. A data processing method comprising: Obtaining building-related data; generating a building geometry according to the building-related data; Determining the type of the building according to the building-related data; adding details to the building geometry according to the building type to generate a building image; Determining association relationships between buildings based on the building-related data, and treating multiple buildings with association relationships as a whole building; the association relationships include at least one or more of the following relationships: inclusion, stacking, and connection; The determining of the building type according to the building-related data includes: The overall building type is determined according to the building-related data of the plurality of buildings having the associated relationship.
7. A data processing device, characterized in that: include: A first acquisition module is configured to acquire building outline data; A first generating module is configured to generate a building geometry according to the building outline data; A first determining module is configured to determine a building type according to the building outline data; A second generating module is configured to add details to the building geometry according to the building type to generate a building image; A second determining module is configured to determine association relationships between buildings based on the building outline data, and treat multiple buildings with association relationships as a whole building; the association relationships include at least one or more of the following relationships: inclusion, stacking, and connection; The first determining module is further configured to determine the overall building type according to the building outline data of the plurality of buildings having the associated relationship.
8. A data processing device comprising: A second acquisition module is configured to acquire building-related data; A third generating module is configured to generate a building geometry according to the building related data; a third determining module configured to determine a building type according to the building-related data; a fourth generating module, configured to add details to the building geometry according to the building type to generate a building image; The system is further configured to determine, based on the building-related data, an association relationship between buildings, and treat multiple buildings with an association relationship as a whole building; the association relationship includes at least one or more of the following relationships: inclusion, stacking, and connection; The third determining module is further configured to determine the overall building type according to the building-related data of the plurality of buildings having the associated relationship.
9. An electronic device, characterized in that: The method comprises a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps described in any one of claims 1 to 6.
10. A readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Topographic map building merging method
CN106204446A
Building 3D modeling method and device
CN108320323A