A method and device for generating a building model using building facade images

By performing image correction and deep learning model processing on building facade images, combined with automated assembly technology, the problem of insufficient accuracy in building model generation in traditional methods is solved, and efficient and accurate building model generation is achieved.

CN117808989BActive Publication Date: 2024-10-18CHENGDU GUOXING YUHANG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311791217.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2024-10-18
Estimated Expiration
2043-12-22

AI Technical Summary

Technical Problem

Traditional building model generation methods are time-consuming and costly, and difficult to accurately capture complex structures and diverse wall materials, resulting in insufficient accuracy of the generated models.

Method used

By acquiring the building facade image and performing image correction processing, the YOLOv8 deep learning network model is used to obtain the building structure information, combined with the U-net network model to obtain the building material information, and an automated script is used to assemble the 3D component model and material information to generate the target Architectural model.

Benefits of technology

It improves the accuracy and efficiency of building model generation, enhances the universality and adaptability of the model, and ensures accurate modeling of various buildings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117808989B_ABST
    Figure CN117808989B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for generating a building model using a building facade image, which relates to the field of model generation technology and aims to solve the technical problem of insufficient building model generation accuracy in the prior art. The method comprises: obtaining a facade image of a target building; performing image correction processing on the facade image of the target building to obtain a front view image; inputting the front view image into a trained YOLOv8 deep learning network model to obtain initial building structure information; normalizing the initial building structure information to obtain target building structure information; obtaining multiple matching 3D component models based on the target building structure information; inputting the front view image of the target building into a trained U‑net network model to obtain building material information; using an automated script to automatically assemble multiple matching 3D component models and building material information to obtain a target building model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of model generation, and in particular to a method and device for generating a building model by using building facade images. Background Art

[0002] In the field of building model making, the traditional method can only be done manually by manually referencing images. Factors such as lighting changes and material differences make the traditional manual modeling process time-consuming and costly; and because it cannot accurately capture complex structures and diverse wall materials, the building models generated by traditional methods have the problem of insufficient accuracy. Summary of the invention

[0003] The present application provides a method and device for generating a building model using building facade images, which at least solves the technical problem of insufficient accuracy in generating building models in the prior art.

[0004] To solve the above technical problems, the present application provides a method for generating a building model using a building facade image, comprising the following steps:

[0005] Acquire the facade image of the target building;

[0006] Performing image correction processing on the facade image of the target building to obtain a front view image;

[0007] Inputting the front view image into a trained YOLOv8 deep learning network model to obtain initial building structure information; normalizing the initial building structure information to obtain target building structure information; and obtaining a plurality of matching 3D component models based on the target building structure information;

[0008] Inputting the front view image of the target building into the trained U-net network model to obtain the building material information;

[0009] An automated script is used to automatically assemble the plurality of matching 3D component models and the building material information to obtain a target building model.

[0010] As some optional implementations of the present application, the step of performing image correction processing on the facade image of the target building to obtain a front view image includes:

[0011] Performing distortion removal, noise elimination and enhancement processing on the facade image of the target building to obtain a first facade image;

[0012] An image correction algorithm is used to perform perspective correction processing on the first facade image to obtain a front view image.

[0013] As some optional implementations of the present application, the step of using an image correction algorithm to perform perspective correction processing on the first facade image to obtain a front view image includes:

[0014] Using the ORB algorithm to perform feature point detection on the first facade image to obtain feature point information;

[0015] Based on the feature point information, a perspective transformation matrix is ​​calculated using a RANSAC algorithm;

[0016] Correction processing is performed based on the perspective transformation matrix to obtain a front view image.

[0017] As some optional implementations of the present application, the step of inputting the front view image into the trained YOLOv8 deep learning network model to obtain initial building structure information includes:

[0018] Inputting the front view image into a trained YOLOv8 deep learning network model to obtain first building structure information;

[0019] The first building structure information is subjected to non-maximum suppression processing to obtain initial building structure information; the confidence value of the initial building structure information is greater than a preset confidence value.

[0020] As some optional embodiments of the present application, the YOLOv8 deep learning network model is obtained by training based on a building sample image set, and the building sample image set includes multiple building sample images, each of which includes location information, shape information, size information, category information and bounding box information of building structure components.

[0021] As some optional implementations of the present application, the step of obtaining a plurality of matching 3D component models based on the target building structure information includes:

[0022] Acquire a target Siamese network; wherein the target Siamese network includes a first subnetwork and a second subnetwork; the first subnetwork and the second subnetwork share the same weight value;

[0023] The target building structure information is input into the first sub-network, and the preset 3D component model set is input into the second sub-network, so that the target Siamese network outputs a matching 3D component model.

[0024] As some optional implementations of the present application, the target Siamese network is obtained by training based on positive sample data and negative sample data; the positive sample data is composed of building component images and 3D component model images that are the same as them, and the negative sample data is composed of building component images and 3D component model images that are different from them.

[0025] As some optional implementations of the present application, the U-net network model is trained based on the following steps:

[0026] Acquire first building material sample data, mark the material category of each pixel in the first building material sample data, and obtain second building material sample data;

[0027] Based on the second building material sample data, obtaining a building material sample data set;

[0028] The initial U-net network model is trained based on the building material sample data set to obtain a target U-net network model.

[0029] As some optional implementations of the present application, the automation script is obtained by writing a blueprint script or a Python script based on the UE.

[0030] On the other hand, an embodiment of the present application provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method of generating a building model using a building facade image as described above.

[0031] Compared with the prior art, the method for generating a building model using a building facade image described in the present application is to obtain a front view image of the acquired target building facade image after image correction processing; then use the YOLOv8 deep learning network model and the U-net network model to obtain the building structure information and building material information respectively; and based on the building structure information, obtain multiple matching 3D component models; finally, use an automated script to automatically assemble the multiple matching 3D component models and the building material information to obtain the target building model. It can be seen that the present application quickly and accurately captures the tiny details of the building structure and wall materials through the deep learning network model, thereby improving the prediction accuracy of the building model generation. At the same time, the model library matching strategy and automated assembly processing are introduced to compare and analyze different building data. The universality and adaptability of the generated building model are improved through the matching process, ensuring accurate modeling of various buildings. Through the above technical solution, the efficiency and accuracy of building modeling are effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the specific implementation of the present application or the technical solution in the prior art, the following is a brief introduction to the drawings required for the specific implementation or the prior art description. In all drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale.

[0033] Figure 1 A schematic diagram of a process for generating a building model using a building facade image according to an embodiment of the present application;

[0034] Figure 2 This is an example diagram of the facade image of the target building described in the embodiment of the present application;

[0035] Figure 3 This is an example diagram of the front view of the target building described in the embodiment of the present application;

[0036] Figure 4 This is a schematic diagram of an image including the initial building structure information in an embodiment of the present application;

[0037] Figure 5 This is a schematic diagram of an image containing the target building structure information after the normalization processing in an embodiment of the present application;

[0038] Figure 6 This is a schematic diagram of an image containing the building material information in an embodiment of the present application;

[0039] Figure 7 This is a schematic diagram of the target building model described in the embodiment of the present application;

[0040] Figure 8 This is a functional module diagram of a system for generating a building model using building facade images as described in an embodiment of the present application.

[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] The existing technology usually includes the following steps when making a building model: First, collect reference materials, among which 3D models are better than drawings; these materials can include architectural design drawings, on-site survey data, etc. Then conduct an architectural model inspection to understand the planning layout and detailed structure of the model; this step is to better understand the design intent and characteristics of the building. Then, based on the collected information and inspection results, start manual modeling of the building; this step requires the use of professional modeling software such as SketchUp. During the modeling process, the model needs to be continuously adjusted and optimized to ensure that it is as consistent as possible with the actual building. Finally, the completed building model is reviewed and modified to ensure its quality and accuracy.

[0044] Therefore, it can be seen that the existing technology is not only time-consuming and costly when manually modeling buildings, but also difficult to obtain and construct when the structure of the building to be modeled is more complex or the building materials used are more complex, which leads to the problem of insufficient accuracy of the generated building model.

[0045] In response to the above technical problems, the embodiment of the present application introduces a method for training a deep learning model, and uses annotated building facade images to train the deep learning model. The training of the deep learning model enables it to learn and capture the rich details of the building structure and wall materials, thereby improving the model's accuracy in acquiring the building's detailed structure and materials. At the same time, the present application also adopts a model library matching strategy, by comparing and analyzing various types of building data in the model library to adapt to the facade images of different building types. Through this matching process, the universality and adaptability of the generated building model are successfully improved, ensuring accurate modeling of a variety of buildings. By introducing the above technical features, the technical solution described in the present application solves the problems of building model generation accuracy, realism, and adaptability in traditional technical solutions, and provides users with a more comprehensive and efficient building model generation method.

[0046] Specifically, if Figure 1 As shown, the embodiment of the present application also provides a method for generating a building model using a building facade image, comprising the following steps:

[0047] Step S10: Acquire the facade image of the target building.

[0048] In actual scenarios, the facade image of the target building can be obtained by different acquisition methods based on actual application requirements, such as drone photography, Baidu Street View, or manual photography. Specifically, in actual applications, when choosing between drone photography, Baidu Street View, and manual photography, the following factors can be considered:

[0049] Data accuracy and quality: Drone photography can overcome the limitations of traffic and other factors on data collection from an aerial perspective and obtain high-definition, large-scale images. Manual photography can capture rich details and colors, but the results are affected by the photographer's skills and experience. In contrast, Baidu Street View may lack in-depth capture of building details because it is modeled and rendered based on street view images uploaded by users of crowdsourcing platforms.

[0050] Data volume and coverage: UAV aerial photography can obtain data on a large area in a short period of time, which is suitable for scenarios that require large-scale data. Manual photography and Baidu Street View are more suitable for scenarios that require detailed data and small areas.

[0051] Cost and time: The cost of drone photography is relatively high, but due to its efficiency, a large amount of data can be obtained in a short time. The cost of manual photography is lower, but it requires a lot of manpower and material resources and takes a long time. In contrast, Baidu Street View is a cost-effective solution, but it may require processing of massive amounts of image data.

[0052] Application scenarios: For example, if you need to conduct large-scale rapid inspections or monitoring patrols in complex environments, drone photography is an ideal choice. If you need to conduct a detailed survey of a certain area or record a specific event, manual photography may be more advantageous. For applications that only need to understand the general situation, Baidu Street View may be sufficient.

[0053] Of course, in some embodiments, the above-mentioned multiple acquisition methods may be used in combination to acquire building facade images at different angles and in different environments.

[0054] like Figure 2 As shown in FIG. 1 , it is an example of a facade image of the target building described in the present application. It can be seen that the image has certain image distortion due to factors such as the shooting angle; and in addition to the target building, the image also contains a lot of noise, and information such as the edge of the target building is not clear. Therefore, after obtaining the facade image of the target building, the present application also needs to perform image correction processing on it so that the subsequent model can accurately identify the structure and material of the building, that is, the following step S20.

[0055] Step S20: performing image correction processing on the facade image of the target building to obtain a front view image.

[0056] Specifically, the image correction processing includes distortion removal processing, noise elimination processing, enhancement processing and perspective correction processing, that is, the step of performing image correction processing on the facade image of the target building to obtain a front view image includes: performing distortion removal processing, noise elimination processing and enhancement processing on the facade image of the target building to obtain a first facade image; and performing perspective correction processing on the first facade image using an image correction algorithm to obtain a front view image.

[0057] The distortion removal process refers to the use of geometric correction technology, such as camera distortion correction algorithm, to detect and correct the distortion in the image to facilitate subsequent model recognition. The noise elimination process refers to the use of image processing filters, such as mean filtering, median filtering, etc., to reduce the noise level in the image to facilitate subsequent model recognition. The enhancement process includes brightness and contrast adjustment processing and edge enhancement processing, wherein the brightness and contrast adjustment processing refers to the adjustment of brightness and contrast according to image quality to ensure that subsequent building structure and material extraction can be carried out under sufficiently bright conditions; the edge enhancement process refers to the use of edge enhancement technology, such as Sobel and Canny operators, to enhance the edge information in the building facade image, which helps the accuracy of subsequent structure detection.

[0058] The perspective correction process refers to using the ORB algorithm to detect feature points, then calculating the perspective transformation matrix through feature matching and the RANSAC algorithm, and finally applying the matrix to perform image correction to ensure that the building facade image is corrected to an accurate front view. Specifically, the step of using the image correction algorithm to perform perspective correction on the first facade image to obtain a front view image includes: using the ORB algorithm to detect feature points on the first facade image to obtain feature point information; based on the feature point information, using the RANSAC algorithm to calculate the perspective transformation matrix; performing correction processing based on the perspective transformation matrix to obtain a front view image.

[0059] It should be noted that the ORB algorithm is called Oriented FAST and Rotated BRIEF, which is an algorithm for extracting and describing feature points. The main function of the algorithm is to quickly create feature vectors for key points in an image, which are then used to identify objects in the image. In the specific operation process, the ORB algorithm will first search for special areas in the image, which are called key points. Then, the features of these key points are extracted based on the FAST algorithm, and the feature descriptors of the key points are further constructed using the BRIEF algorithm. In addition, the ORB algorithm has also improved the original FAST and BRIEF algorithms to ensure the scale invariance and rotation invariance of feature points when they are scaled and rotated. However, this algorithm is relatively existing and will not be described in detail here.

[0060] The RANSAC algorithm, full name Random Sample Consensus, is an iterative algorithm that is mainly used to estimate the parameters of a mathematical model from a set of observation data containing outliers (outliers or erroneous data). After obtaining a sufficient number of inliers, the RANSAC algorithm estimates the model parameters based on these inlier data. If the estimated model parameters can successfully explain or fit most of the data, then it is considered that a suitable model has been found. Finally, the algorithm returns the optimal model parameters, which is the perspective transformation matrix described in this application.

[0061] After obtaining the perspective transformation matrix, we can use the functions in the OpenCV library to perform image correction and perspective transformation. For example, we convert the image to a grayscale image for single-channel calculations. Then, we use the Canny edge detection function to extract the edges in the image. Next, using the obtained transformation matrix, we can call the corresponding function to apply the perspective transformation to the image. The input parameters of this function include the source image coordinates and the output image coordinates. After executing this step, the original image will be transformed in shape and perspective according to the perspective transformation matrix, thus obtaining a corrected front view image.

[0062] Based on the above processing, the perspective and shape of the facade image of the target building can be corrected to obtain a front view that is convenient for model recognition, such as Figure 3 As shown. However, it should be noted that there can be multiple front views. For example, a building usually contains four building faces. When the structures of the four building faces are different, in actual operation, the front views of the four building faces can be obtained respectively according to the above steps, and respectively input into the subsequent model to extract the structural information and material information, so as to improve the accuracy of the generated model. If the four building faces of the building are the same, in actual operation, after obtaining the front view of a single building face based on the above steps, it can be input into the subsequent model to extract the structural information and material information, and in the final automatic assembly, the structural parameters and material parameters of the remaining building faces can be set to be the same as the parameters of the face to obtain the corresponding building model.

[0063] Step S30: input the front view image into the trained YOLOv8 deep learning network model to obtain initial building structure information; normalize the initial building structure information to obtain target building structure information; and obtain multiple matching 3D component models based on the target building structure information.

[0064] In actual operation, the YOLOv8 deep learning network model is trained based on a building sample image set, which includes multiple building sample images, each of which includes the location information, shape information, size information, category information and bounding box information of the building structure components. Therefore, after the front view image is input into the trained YOLOv8 deep learning network model, it can output the various structural components of the target building including windows, balconies, and exterior wall decorations; the detection results include the location, shape and size of the building structure component selection box, and the image schematic diagram containing the initial building structure information is as follows: Figure 4 shown.

[0065] However, since the YOLO model may detect the same structural component multiple times in the image, it is necessary to apply a non-maximum suppression algorithm to filter out high-confidence detection results to remove redundant boxes. By analyzing the detection results processed by the above-mentioned non-maximum suppression algorithm, the final position, shape and size information of each building structure component can be obtained, and this information can be used for subsequent analysis and processing. That is: the step of inputting the front view image into the trained YOLOv8 deep learning network model to obtain the initial building structure information includes: inputting the front view image into the trained YOLOv8 deep learning network model to obtain the first building structure information; performing non-maximum suppression processing on the first building structure information to obtain the initial building structure information; the confidence value of the initial building structure information is greater than the preset confidence value.

[0066] Therefore, the YOLOv8 model returns information such as the category, confidence, and bounding box coordinates (upper left and lower right corner coordinates) of each detected target in the prediction. Throughout the process, the accuracy of the model depends on the quality of the training data, the parameter configuration of the model, and the number of training iterations. In practical applications, multiple tuning may be required to achieve the best results.

[0067] However, generally speaking, the selection boxes in the initial building structure information output by the YOLOv8 model are usually not regular enough, for example, their sizes and positions may not be consistent. Therefore, this application normalizes the selection boxes of similar sizes to a uniform size, and then aligns these selection boxes. That is, the initial building structure information is normalized to obtain the target building structure information. The image diagram containing the target building structure information after normalization is as follows: Figure 5 shown.

[0068] After the target building structure information is obtained through the above-mentioned normalization process, model matching can be performed in a preset 3D building component model library based on the structural information of each component in the target building structure information, thereby obtaining multiple matching 3D component models. In the model matching process, special attention should be paid to details such as doors and windows, and matching should be used to ensure that each part of the building model can be accurately restored.

[0069] Specifically, the step of obtaining a plurality of matching 3D component models based on the target building structure information includes: obtaining a target Siamese network; wherein the target Siamese network includes a first subnetwork and a second subnetwork; the first subnetwork and the second subnetwork share the same weight value; inputting the target building structure information into the first subnetwork, and inputting a preset 3D component model set into the second subnetwork, so that the target Siamese network outputs matching 3D component models. It should be noted that the target Siamese network is obtained by training based on positive sample data and negative sample data; the positive sample data is composed of a building component image and a 3D component model image that is the same as it, and the negative sample data is composed of a building component image and a 3D component model image that is different from it.

[0070] That is, the matching algorithm of the Siamese network can be implemented by the following specific steps: Construct a Siamese network, which contains two identical sub-networks (twin networks) for processing the extracted front view of the building component and the front view of the 3D building component model respectively. The two sub-networks share the same weights. Use the contrastive loss function (ContrastiveLoss) to train the Siamese network. The contrastive loss function aims to bring similar sample pairs closer and push dissimilar sample pairs farther away, so as to learn the similarity between samples. Prepare training data for the Siamese network, including positive sample pairs and negative sample pairs. The positive sample pairs include images of building components and front views of 3D building component models of the same component, while the negative sample pairs include images of different components. Compile the Siamese model and train it, using the prepared training data and contrastive loss function. Match the building component image to the 3D building component model.

[0071] However, when modeling a building, the structure and material of the components are very important considerations. The structure mainly describes the basic information such as the shape, size and position of the building components, which is the basis of the building model. However, it is not enough to consider the structure alone, and the consideration of the material is also crucial. For example, the material of the building components directly affects its appearance and performance. Different materials will give people different visual feelings, such as metal looks cold and hard, and wood looks warm; at the same time, different materials also have different physical properties such as thermal conductivity and sound insulation. These will have an important impact on our perception and the use of buildings. In addition, the material of the building components also has a significant impact on the bearing capacity and stability of its structure. For example, if some structural components use materials that exceed the material strength, they may be unsuitable for continued bearing due to excessive deformation, and may even cause the entire structure to lose balance. Therefore, when making or modeling a building, not only its shape and size should be considered, but also the appropriate material should be selected according to actual needs, so as to ensure the authenticity and practicality of the model. Therefore, the present application also extracts the building material information, that is, step S40.

[0072] Step S40: input the front view image of the target building into the trained U-net network model to obtain the building material information.

[0073] It should be noted that the image schematic diagram containing the building material information is as follows Figure 6 As shown; the U-net network model is trained based on the following steps: obtaining first building material sample data, labeling the material category of each pixel in the first building material sample data, and obtaining second building material sample data; obtaining a building material sample data set based on the second building material sample data; training the initial U-net network model based on the building material sample data set to obtain a target U-net network model.

[0074] It should be noted that the material categories may include materials used in actual scenes, such as masonry, glass, metal, concrete, and wood. Therefore, when semantic segmentation is performed on the front view image of the target building using the trained U-net network, a material category is assigned to each pixel of the image, thereby improving the restoration of the model.

[0075] After obtaining the 3D building component model and building material information through the above steps, the present application uses a self-written UE plug-in to automatically assemble the matched building structure and components to form a complete 3D building model, which is step S50.

[0076] Step S50: using an automated script to automatically assemble the plurality of matching 3D component models and the building material information to obtain a target building model.

[0077] It should be noted that the target building model is Figure 7 The automation script is written based on the UE blueprint script or Python script; the automation script can be responsible for selecting and placing the corresponding 3D component models and materials from the model library according to the building facade structure to automatically create the entire building model; or it can only be responsible for placing the matched 3D component models and materials based on the actual position in the building.

[0078] The automated building assembly is a method implemented using Unreal Engine (UE), which implements the automated assembly of building models by writing scripts and making full use of UE's functions. The following are the general steps for automated building assembly using UE:

[0079] Create a building model: Based on the plane image of the building, expand it vertically to form the outline of the building.

[0080] Establish model library: Add the selected 3D building component models to the model library through step 6.

[0081] Write an automation script: Use UE's blueprint script or Python script to write an automation script. The script will build the facade structure, select and place building modules from the model library to achieve automatic creation of the entire building.

[0082] This application uses UE plug-ins for automated assembly, which greatly improves modeling efficiency and reduces the time and workload of manual operations; and through the matching and automated assembly of 3D building component models, the generated building model is more realistic and lifelike, and conforms to the actual building appearance.

[0083] It can be seen that the present application provides a universal method for generating building models, which can be trained and tuned for any building facade image so that it is not affected by a specific building type or environment, so that the generated model is more universal and adaptable. In addition, the method described in the present application overcomes the problem of the inability to accurately predict due to partial occlusion of the building in the traditional building model generation method; the new model uses the prior knowledge of random occlusion to successfully improve the recognition and connection of the obscured building structure and enhance the connectivity of the overall building model. Furthermore, the present application also solves the problem of high time cost of manual tuning in the traditional method. By introducing a universal new model, the need for specific tuning of a specific model is reduced, thereby improving the versatility of the method.

[0084] On the other hand, Figure 8 As shown, in order to solve the above technical problems, the embodiment of the present application further provides: a system for generating a building model using a building facade image, comprising:

[0085] An image acquisition module is used to acquire the facade image of the target building;

[0086] An image correction module, used for performing image correction processing on the facade image of the target building to obtain a front view image;

[0087] A structure matching module is used to input the front view image into the trained YOLOv8 deep learning network model to obtain initial building structure information; normalize the initial building structure information to obtain target building structure information; and obtain multiple matching 3D component models based on the target building structure information;

[0088] A material information acquisition module is used to input the front view image of the target building into the trained U-net network model to obtain the building material information;

[0089] The assembly module is used to automatically assemble the plurality of matching 3D component models and the building material information using an automated script to obtain a target building model.

[0090] It should be noted that the modules in the system for generating a building model using a building facade image in the present embodiment correspond one-to-one to the steps in the method for generating a building model using a building facade image in the aforementioned embodiment. Therefore, the specific implementation of the present embodiment can refer to the implementation of the aforementioned method for generating a building model using a building facade image, which will not be repeated here.

[0091] Based on the same inventive concept as the above embodiment, this embodiment provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the above method. In some embodiments, the computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it can be various devices including one or any combination of the above memories. The computer can be various computing devices including intelligent terminals and servers.

[0092] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.

[0093] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0094] The computer device of the hardware operating environment involved in the scheme of this embodiment may include: a processor, such as a central processing unit (CPU), a communication bus, a user interface, a network interface, and a memory. Among them, the communication bus is used to realize the connection and communication between these components. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory may be a high-speed random access memory (Random Access Memory, RAM) memory, or it may be a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory may also be a storage device independent of the aforementioned processor.

[0095] Those skilled in the art will appreciate that the above structure does not constitute a limitation on the computer device, and may include more or fewer components than those described above, or a combination of certain components, or a different arrangement of components.

[0096] The memory as a storage medium may include an operating system, a network communication module, a user interface module, and an electronic program, and may also include a data storage module. In the above-mentioned computer device, the network interface is mainly used for data communication with a network server; the user interface is mainly used for data interaction with a user; the processor and the memory in the computer device of this embodiment may be set in the computer device, and the computer device calls the system for generating a building model using a building facade image stored in the memory through the processor, and executes the method for generating a building model using a building facade image provided in this embodiment.

[0097] It should be noted that the above-mentioned computer device may be an external hardware device that can run independently, or may be a hardware device that is built into the system for generating a building model using building facade images.

[0098] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for generating a building model using a building facade image, characterized in that: The following steps are involved: Acquire the facade image of the target building; Performing image correction processing on the facade image of the target building to obtain a front view image; Inputting the front view image into the trained YOLOv8 deep learning network model to obtain initial building structure information; normalizing the initial building structure information to obtain target building structure information; Based on the target building structure information, a plurality of matching 3D component models are obtained; wherein, the step of inputting the front view image into the trained YOLOv8 deep learning network model to obtain the initial building structure information comprises: inputting the front view image into the trained YOLOv8 deep learning network model to obtain the first building structure information; performing non-maximum suppression processing on the first building structure information to obtain the initial building structure information; the confidence value of the initial building structure information is greater than the preset confidence value; wherein, based on the target building structure information, the step of obtaining a plurality of matching 3D component models comprises: obtaining a target Siamese network; wherein, the target Siamese network comprises a first subnetwork and a second subnetwork; the first subnetwork and the second subnetwork share the same weight value; inputting the target building structure information into the first subnetwork, and inputting the preset 3D component model set into the second subnetwork, so that the target Siamese network outputs a matching 3D component model; Inputting the front view image of the target building into the trained U-net network model to obtain the building material information; An automated script is used to automatically assemble the plurality of matching 3D component models and the building material information to obtain a target building model.

2. The method for generating a building model using building facade images according to claim 1, characterized in that: The step of performing image correction processing on the facade image of the target building to obtain a front view image comprises: Performing distortion removal, noise elimination and enhancement processing on the facade image of the target building to obtain a first facade image; An image correction algorithm is used to perform perspective correction processing on the first facade image to obtain a front view image.

3. The method for generating a building model using building facade images according to claim 2, characterized in that: The step of using an image correction algorithm to perform perspective correction processing on the first facade image to obtain a front view image comprises: Using the ORB algorithm to perform feature point detection on the first facade image to obtain feature point information; Based on the feature point information, a perspective transformation matrix is ​​calculated using a RANSAC algorithm; Correction processing is performed based on the perspective transformation matrix to obtain a front view image.

4. The method for generating a building model using building facade images according to claim 1, characterized in that: The YOLOv8 deep learning network model is obtained by training based on a building sample image set, wherein the building sample image set includes a plurality of building sample images, each of which includes location information, shape information, size information, category information and bounding box information of building structure components.

5. The method for generating a building model using building facade images according to claim 1, characterized in that: The target Siamese network is obtained by training based on positive sample data and negative sample data; the positive sample data is composed of a building component image and a 3D component model image that is the same as the building component image, and the negative sample data is composed of a building component image and a 3D component model image that is different from the building component image.

6. The method for generating a building model using building facade images according to claim 1, characterized in that: The U-net network model is trained based on the following steps: Acquire first building material sample data, mark the material category of each pixel in the first building material sample data, and obtain second building material sample data; Based on the second building material sample data, obtaining a building material sample data set; The initial U-net network model is trained based on the building material sample data set to obtain a target U-net network model.

7. The method for generating a building model using building facade images according to claim 1, characterized in that: The automation script is obtained by writing based on the blueprint script or Python script of the UE.

8. A computer device, characterized in that: The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method for generating a building model by using a building facade image according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Building facade texture automatic generation method and system

    CN114117614A

  • Building opening rate automatic extraction method and system based on live-action three-dimensional model

    CN114119572A