Method, device and equipment for three-dimensional reconstruction of buildings based on single remote sensing image

By adding an offset detection head to the Mask-RCNN model to extract the building roof and offset, the problem of difficulty in base extraction in non-orthophoto remote sensing images is solved, a textured three-dimensional model is generated, and the three-dimensional model of the building is improved. Reconstruction accuracy and visual effects reduce costs.

CN118470250BActive Publication Date: 2024-09-27NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410880464.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The existing three-dimensional reconstruction technology of buildings based on a single remote sensing image is expensive and difficult to generate accurate and intuitive three-dimensional models in urban environments. In particular, it is difficult to extract the base in non-orthophoto images, which affects the accuracy and reliability of the model. visual effects.

Method used

Using a neural network based on the Mask-RCNN model, the building roof and offset are extracted through the offset detection head, the building height is calculated, and a textured three-dimensional model is generated in the form of a triangular grid, which improves the information content and Visual effects.

Benefits of technology

It realizes the efficient construction of textured 3D urban building models from a single non-orthophoto remote sensing image, improves the reconstruction efficiency and accuracy, has high accuracy and intuitive visual effects, and reduces the cost of urban 3D building reconstruction. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470250B
    Figure CN118470250B
Patent Text Reader

Abstract

The present invention relates to a method, device and equipment for three-dimensional reconstruction of a building based on a single remote sensing image. The technical process for three-dimensional construction of a building designed by the method can automatically and efficiently construct a three-dimensional building model with texture from a single non-orthophoto remote sensing image. By designing a neural network model to extract the roof and offset from the non-orthophoto remote sensing image, the height and base of the building are accurately extracted, and a three-dimensional model of the building is constructed based on the extracted roof and offset. The constructed three-dimensional model of the building has high accuracy and good intuitive visual effects. Finally, in the three-dimensional reconstruction task of a single remote sensing image, the reconstruction efficiency and accuracy are higher, the visual effect is better, and there is a good application prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of three-dimensional reconstruction, and relates to a method, a device and equipment for three-dimensional reconstruction of a building based on a single remote sensing image. Background Art

[0002] Due to the powerful representation ability of 3D models for urban environments, the 3D construction methods of urban buildings have always been the focus of academic research. At present, according to the input data, the more mainstream 3D construction methods of buildings include methods based on LiDAR data (data generated by a system that integrates three technologies: laser, global positioning system and inertial navigation system, mainly used to obtain point cloud data and generate accurate digital 3D models), construction based on multi-view stereo vision, and construction based on single images. Among them, the first two have relatively mature technologies and can also generate highly accurate 3D models. For example, the currently widely used oblique photogrammetry technology can generate 3D mesh products with centimeter-level accuracy and texture based on high-definition drone images.

[0003] There are several main technical ideas for the 3D construction method based on a single image: First, the 3D construction method based on the depth estimation method (Geopose) estimates the height value of each pixel in the input image to obtain the 3D DSM (Digital Surface Model) of the target area. Second, the method based on shadow information needs to extract the shadows in the input image, and then calculate the building height through auxiliary information such as the sun altitude angle to construct a 3D model of the building. Third, with the development of NeRF (Neural Radiance Fields) technology and 3DGaussian Splatting technology in recent years, a number of methods have emerged to directly generate NeRF and 3DGaussian Splatting building 3D models from images. However, the above technologies still have the technical problem of high cost when reconstructing urban 3D buildings. Summary of the invention

[0004] In view of the problems existing in the above-mentioned traditional methods, the present invention proposes a three-dimensional building reconstruction method based on a single remote sensing image, a three-dimensional building reconstruction device based on a single remote sensing image, and a computer device, which can effectively reduce the cost of urban 3D building reconstruction.

[0005] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:

[0006] On the one hand, a method for three-dimensional reconstruction of a building based on a single remote sensing image is provided, comprising the steps of:

[0007] Obtain the non-orthophoto remote sensing image of the area to be reconstructed and call the trained neural network model; the neural network model is trained using the non-orthophoto remote sensing image after adding an offset detection head based on the Mask-RCNN model;

[0008] The non-orthophoto remote sensing image of the area to be reconstructed is input into the neural network model for feature extraction to obtain the roofs and building offsets of the area to be reconstructed;

[0009] After vectorizing the roof of the building, the roof polygon is translated using the building offset to obtain the base polygon of the building in the area to be reconstructed;

[0010] Calculate the building height of the area to be reconstructed according to the building offset and the deviation angle of the non-orthophoto remote sensing image of the area to be reconstructed;

[0011] Generate a three-dimensional model of the building in the area to be reconstructed in the form of a triangular mesh according to the LoD1 standard based on the base polygon and the building height of the building;

[0012] Extract roof texture and wall texture based on the building 3D model, building base polygon, building offset and non-orthophoto remote sensing image of the area to be reconstructed;

[0013] The extracted roof texture and wall texture are assigned to the building three-dimensional model to obtain a textured three-dimensional model of the building in the area to be reconstructed.

[0014] On the other hand, a device for three-dimensional reconstruction of a building based on a single remote sensing image is also provided, comprising:

[0015] The data acquisition module is used to obtain the non-orthophoto remote sensing image of the area to be reconstructed and call the trained neural network model; the neural network model is trained using the non-orthophoto remote sensing image after adding an offset detection head based on the Mask-RCNN model;

[0016] A feature extraction module is used to input the non-orthophoto remote sensing image of the area to be reconstructed into the neural network model for feature extraction, so as to obtain the roof and building offset of the area to be reconstructed;

[0017] A base extraction module is used to vectorize the roof of the building and then use the building offset to translate the roof polygon to obtain the base polygon of the building in the area to be reconstructed;

[0018] A height calculation module is used to calculate the building height of the area to be reconstructed according to the building offset and the deviation angle of the non-orthophoto remote sensing image of the area to be reconstructed;

[0019] A model generation module, used to generate a three-dimensional model of the building in the area to be reconstructed in the form of a triangular mesh according to the LoD1 standard based on the base polygon and the building height of the building;

[0020] A texture extraction module is used to extract roof texture and wall texture based on the building 3D model, the building base polygon, the building offset and the non-orthophoto remote sensing image of the area to be reconstructed;

[0021] The 3D reconstruction module is used to assign the extracted roof texture and wall texture to the 3D model of the building, so as to obtain a 3D model of the building with texture in the area to be reconstructed.

[0022] On the other hand, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the above-mentioned methods for three-dimensional reconstruction of a building based on a single remote sensing image are implemented.

[0023] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above-mentioned methods for three-dimensional reconstruction of a building based on a single remote sensing image are implemented.

[0024] One of the above technical solutions has the following advantages and beneficial effects:

[0025] The above-mentioned method, device and equipment for three-dimensional reconstruction of buildings based on a single remote sensing image, through the design of a textured LoD1 3D building reconstruction technology from a single non-orthophoto remote sensing image, can automatically and efficiently construct an intuitive 3D model of urban buildings with texture information by inputting a non-orthophoto remote sensing image. On the one hand, in view of the difficulty that the base is often invisible and difficult to extract in non-orthophoto remote sensing images, the roof of the building and the offset of the roof relative to the base are first extracted from the image through a neural network model, and then the base polygon is calculated, instead of directly extracting the base of the building, thereby extracting the accurate base of the building. On the other hand, in the extraction of the roof and offset based on the neural network model, the location of the roof and wall of the building is determined from the non-orthophoto remote sensing image, the building texture is extracted and added to the three-dimensional model of the building in the form of a triangular mesh, thereby effectively improving the information content and visual effect of the three-dimensional model.

[0026] Compared with traditional technologies, the designed building 3D construction technology process can automatically and efficiently construct a 3D building model with texture from a single non-orthophoto remote sensing image. It accurately extracts the building height and base by designing a neural network model to extract the roof and offset from the non-orthophoto remote sensing image, and constructs a 3D building model based on this. The constructed 3D building model has high accuracy and good intuitive visual effects. Ultimately, the reconstruction efficiency and accuracy are higher in the single remote sensing image 3D reconstruction task, the visual effect is better, and it has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0028] Figure 1 1 is a flow chart of a method for three-dimensional reconstruction of a building based on a single remote sensing image in one embodiment;

[0029] Figure 2 A schematic diagram of a process of reconstructing a LoD1 3D building with texture based on a single non-orthophoto remote sensing image in one embodiment;

[0030] Figure 3 A schematic diagram of a training process of a neural network model in one embodiment;

[0031] Figure 4 A schematic diagram of the structure of a neural network for extracting a mask and an offset of a building roof in one embodiment;

[0032] Figure 5 Schematic diagram of an example of reconstructing a 3D building based on a single remote sensing image in an embodiment, wherein (a), (b) and (c) are all input non-orthophoto remote sensing images, (e), (f) and (g) are all results of 3D reconstruction using the comparison method Geopose, (o), (p) and (q) are all results of 3D reconstruction using the method of the present invention, and (r), (s) and (t) are all true values;

[0033] Figure 6 The figure is a schematic diagram of the module structure of a device for three-dimensional reconstruction of a building based on a single remote sensing image in one embodiment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0036] It should be noted that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of this phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be appreciated by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0037] Among the various 3D reconstruction methods based on different inputs, the application defects of the methods based on LiDAR and multi-view stereo vision are that they require a large amount of remote sensing data, high data acquisition costs, complex generation processes, and slow generation speeds. The present invention belongs to a 3D generation method based on a single purpose. This type of method has the advantages of simple and easy acquisition of required data, fast 3D model generation speed, and strong timeliness.

[0038] Among the existing methods for monocular building reconstruction, the depth estimation method is limited by the insufficient information provided by a single remote sensing image. The extracted DSM is not accurate enough and often cannot restore the shape of the building well, and cannot achieve a good visual effect. The shadow information-based method requires supporting information such as the solar altitude angle, and is not very versatile. The methods based on NeRF and 3D Gaussian Splatting are still under development and exploration. At present, there is still a problem of high computing resource consumption. In addition, the three-dimensional generative method cannot currently generate three-dimensional models of large scenes and can only be applied to the generation of single buildings.

[0039] Level of Detail (LoD) is a set of standards for regulating the degree of detail of 3D building reconstruction. Among them, LoD1 is a level of building reconstruction detail in this set of standards. The reconstructed building model of this level is a prism shape based on a polygonal base. The present invention will use this level of standard building model as the target of 3D building reconstruction. The input of the present invention is a single non-orthogonal satellite remote sensing image. Non-orthogonal images refer to images that are not taken vertically downward from the ground plane, but are taken at a certain angle deviating from the vertical downward direction. It is generally believed that images with an orthogonal deviation angle between 25 and 40 degrees are non-orthogonal images.

[0040] The implementation modes of the present invention will be described in detail below with reference to the accompanying drawings in the embodiments of the present invention.

[0041] In one embodiment, Figure 1 As shown, a method for 3D reconstruction of a building based on a single remote sensing image is provided, which may include the following processing steps S08 to S20:

[0042] S08, obtain the non-orthophoto remote sensing image of the area to be reconstructed and call the trained neural network model; the neural network model is trained using the non-orthophoto remote sensing image after adding an offset detection head based on the Mask-RCNN model. It can be understood that the non-orthophoto remote sensing image of the area to be reconstructed is a monocular remote sensing image of the area to be reconstructed where the building 3D reconstruction is currently required. It can be obtained by taking pictures with space-based remote sensing equipment or directly extracted from the database. The Mask-RCNN (Mask Region-based Convolutional Neural Network) model is an existing instance segmentation algorithm model. By adding different branches, it can complete multiple tasks such as target classification, target detection, semantic segmentation, instance segmentation and human posture recognition.

[0043] This embodiment obtains an improved neural network model by adding an offset detection head to the Mask-RCNN model, and pre-trains the neural network model iteratively using multiple single-purpose non-orthophoto remote sensing images, so that after convergence, the trained neural network model can be used for learning and processing non-orthophoto remote sensing images of the area to be reconstructed. The offset detection head usually includes a series of convolutional layers for processing the features in each RoI (Region of Interest) candidate region. The feature map after convolution processing will be input into an offset regression branch, which outputs the offset of each pixel. The final mask generation will combine these offset information to make the boundary of the mask more accurate.

[0044] S10, inputting the non-orthophoto remote sensing image of the area to be reconstructed into the neural network model for feature extraction, and obtaining the roofs and building offsets of the area to be reconstructed;

[0045] S12, after vectorizing the roof of the building, translating the roof polygon using the building offset to obtain the base polygon of the building in the area to be reconstructed;

[0046] S14, calculating the building height of the area to be reconstructed according to the building offset and the deviation angle of the non-orthophoto remote sensing image of the area to be reconstructed;

[0047] S16, generating a three-dimensional model of the building in the area to be reconstructed in the form of a triangular mesh according to the LoD1 standard based on the base polygon and the building height of the building;

[0048] S18, extracting roof texture and wall texture according to the three-dimensional model of the building, the base polygon of the building, the building offset and the non-orthophoto remote sensing image of the area to be reconstructed;

[0049] S20, assigning the extracted roof texture and wall texture to the three-dimensional model of the building to obtain a three-dimensional model of the building with texture in the area to be reconstructed.

[0050] It is understandable that Figure 2 As shown, it is a flow chart of the method for reconstructing a LoD1 3D building with texture based on a single non-orthophoto remote sensing image, which can be divided into three main steps: using a neural network to extract the roof and offset of the building; constructing a LoD1 3D building model; and extracting texture for the 3D building model.

[0051] The first step is to use a neural network to extract the roof and offset of the building:

[0052] Input: Non-orthophoto remote sensing image of the area to be reconstructed I , the trained neural network model M.

[0053] Output: Building roofs extracted by the neural network model M , building offset .

[0054] Specifically, the non-orthophoto remote sensing image of the area to be reconstructed I Input into the neural network model M to obtain the extraction results of the neural network model M, including the roof of the building and offset The reasoning and extraction process of the neural network model M is consistent with that of the training process.

[0055] The second step is to build the 3D building model of LoD1:

[0056] Input: Building roof , building offset and the deviation angle of non-orthophotos .

[0057] Output: 3D model of the building in the form of triangular mesh .

[0058] Specifically, we first vectorize the roof mask extracted in the previous step (i.e. ), get the roof polygon , based on the building offset extracted in the previous step , translate the roof polygon to get the base polygon of the building Polygon footprint :

[0059] Polygon footprint = Polygonize ( P roof )- P offset;

[0060] in, Polygonize Represents a polygonization operation.

[0061] Then according to the building offset and the deviation angle of non-orthophotos Calculate building height H :

[0062] ;

[0063] Finally, according to the building base polygon and height, the three-dimensional shape of the building model can be determined according to the LoD1 standard, and the three-dimensional model of the building is constructed in the form of a triangular mesh. like Figure 2 shown.

[0064] B 3D = LoD 1( Polygon footprint , H );

[0065] The third step is to create a 3D model of the building Extract texture:

[0066] Input: 3D model of the building , the building's base polygon Polygon footprint , building offset and non-orthophoto remote sensing images of the area to be reconstructed I .

[0067] Output: 3D building model with texture .

[0068] Specifically, first, according to the roof polygon obtained in the previous step polygon roof , extracted from the image ( Crop ) Satellite image of the roof, that is, the roof texture of the 3D building model is obtained Texture roof :

[0069] Texture roof = I.Crop ( polygon roof );

[0070] Then according to the roof polygon polygon roof Offset from building P offset , determine the non-orthophoto remote sensing image of the area to be reconstructed I The wall polygons in polygons FacadeWall , intercept the wall polygon polygons FacadeWall , and perform affine transformation to obtain the wall texture of the three-dimensional building model textures wall (like Figure 2 as shown).

[0071] polygons FacadeWall = GetFacade ( polygon roof , P offset );

[0072] textures wall = WarpAffine ( I.Crop ( polygons FacadeWall ));

[0073] in, GetFacade Indicates the wall polygon acquisition operation. WarpAffine Represents an affine transformation operation.

[0074] Finally, the roof texture and wall texture are assigned to the triangular mesh building model obtained in the previous step, thus completing the construction of the LoD1 building 3D model with texture:

[0075] ;

[0076] The above-mentioned building 3D reconstruction method based on a single remote sensing image, through the design of the textured LoD1 3D building reconstruction technology from a single non-orthophoto remote sensing image, can automatically and efficiently construct an intuitive 3D model of urban buildings with texture information by inputting a non-orthophoto remote sensing image. On the one hand, in view of the difficulty that the base is often invisible and difficult to extract in non-orthophoto remote sensing images, the roof of the building and the offset of the roof relative to the base are first extracted from the image through a neural network model, and then the base polygon is calculated, instead of directly extracting the base of the building, thereby extracting the accurate building base. On the other hand, in the extraction of the roof and offset based on the neural network model, the location of the building roof and wall is determined from the non-orthophoto remote sensing image, the building texture is extracted and added to the 3D building model in the form of a triangular mesh, thereby effectively improving the information content and visual effect of the 3D model.

[0077] Compared with traditional technologies, the designed building 3D construction technology process can automatically and efficiently construct a 3D building model with texture from a single non-orthophoto remote sensing image. It accurately extracts the building height and base by extracting the roof and offset from the non-orthophoto remote sensing image through a neural network model, and constructs a 3D building model based on this. The constructed 3D building model has high accuracy and good intuitive visual effects. Ultimately, the reconstruction efficiency and accuracy are higher in the single remote sensing image 3D reconstruction task, the visual effect is better, and it has good application prospects.

[0078] In one embodiment, the above-mentioned method for three-dimensional reconstruction of a building based on a single remote sensing image further includes the step of storing the textured three-dimensional model of the building in the area to be reconstructed in a file in a 3D Tile format.

[0079] It is understood that in the above embodiment, the textured three-dimensional building model of the area to be reconstructed can be stored in a variety of suitable file formats according to the application needs of the actual scene, so that all parties can request to use it. In this embodiment, the three-dimensional building model is preferably stored in a file in a 3D Tile format, which is a standard format specified by the OGC (OpenGeospatial Consortium). Using this format to store the model can more conveniently support the use of the reconstructed three-dimensional building model by all parties in a standardized manner.

[0080] In one embodiment, Figure 3 As shown, the neural network model can be trained through the following steps S1 to S4:

[0081] S1, obtain non-orthophoto remote sensing images and building labels for training; building labels include building roof labels, building offset labels and building target frame labels;

[0082] S2, inputting the non-orthophoto remote sensing image into the neural network model to obtain the building extraction result; the building extraction result includes the building target frame, the building roof and the building offset;

[0083] S3, using building labels and building extraction results, calculates the loss function and back-propagates to optimize model parameters;

[0084] S4, return to step S1, perform iterative training until the neural network model converges, and obtain a trained neural network model.

[0085] It can be understood that about training neural network models:

[0086] Input: Non-orthophoto remote sensing image I , building label (true value) , which includes building roof labels , Building offset label and building target box labels In this embodiment, multiple single-purpose non-orthophoto remote sensing images I , which can be obtained from pre-collected training datasets or from existing public data.

[0087] Output: The trained neural network model M.

[0088] Specifically, first, a neural network model M for extracting building roofs and offsets is constructed. On the basis of the existing Mask-RCNN network, an offset detection (prediction) head is added to construct a neural network model M for extracting building roofs and offsets, such as Figure 4As shown in the figure, the FPN (Feature Pyramid Network) after the backbone model (network) is a general existing feature extractor, the RPN (Region Proposal Network) is an existing part of the network used to extract pre-selected boxes, and the Mask Head is a network component used to generate pixel-level masks of building targets. It is usually an extension of the Mask-RCNN network and is used to generate high-resolution roof masks within the detected bounding box. The Bounding Box Detection Head is a key component in the Mask-RCNN network, used to predict the bounding box position and category of building targets in the image. It receives the feature map from the feature extraction network and outputs the target box coordinates and category labels for each building target.

[0089] Then the non-orthophoto remote sensing image I Input into the neural network model M to obtain the building extraction results :

[0090] ;

[0091] Building extraction results include building target boxes , building roofs and building offset Finally, the loss function is calculated using the building extraction result P and the true value G L ( P , G ), and back-propagation optimizes the model parameters.

[0092] ;

[0093] ;

[0094] in, represents the loss of the building target box, represents the loss of the building roof, represents the loss of building offset, According to the loss function L The gradient back propagation optimization model M. The loss functions of various losses can be implemented by various existing loss functions in the art. The above process is repeated multiple times to train the model until the neural network model M converges, and the training is completed.

[0095] In one embodiment, an example of reconstructing a 3D building based on a single remote sensing image is also given. Figure 5 As shown. Among them, Figure 5 (a), (b) and (c) in the first row are all input non-orthophoto remote sensing images; Figure 5 (e), (f), and (g) in the second row are the results of 3D reconstruction using comparative methods (such as the existing Geopose method); Figure 5 (o), (p) and (q) in the third row are all the results of 3D reconstruction using the method of the present invention; Figure 5 The (r), (s), and (t) in the last row are all true values. Figure 5 The two columns on the right in the middle are the enlarged effects of some typical buildings on the left.

[0096] It should be understood that although the above process Figure 1 The steps in the flowchart are shown in the order indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0097] In one embodiment, Figure 6As shown, a three-dimensional reconstruction device 100 for a building based on a single remote sensing image is also provided, comprising a data acquisition module 11, a feature extraction module 12, a base extraction module 13, a height calculation module 14, a model generation module 15, a texture extraction module 16 and a three-dimensional reconstruction module 17. Among them, the data acquisition module 11 is used to obtain the non-orthophoto remote sensing image of the area to be reconstructed and call the trained neural network model; the neural network model is obtained by training the non-orthophoto remote sensing image after adding an offset detection head based on the Mask-RCNN model. The feature extraction module 12 is used to input the non-orthophoto remote sensing image of the area to be reconstructed into the neural network model for feature extraction, and obtain the roof of the building and the building offset in the area to be reconstructed. The base extraction module 13 is used to vectorize the roof of the building and use the building offset to translate the roof polygon to obtain the base polygon of the building in the area to be reconstructed. The height calculation module 14 is used to calculate the building height in the area to be reconstructed according to the building offset and the deviation angle of the non-orthophoto remote sensing image of the area to be reconstructed. The model generation module 15 is used to generate a three-dimensional model of the building in the area to be reconstructed in the form of a triangular mesh according to the base polygon and the building height of the building according to the LoD1 standard. The texture extraction module 16 is used to extract the roof texture and wall texture according to the building three-dimensional model, the base polygon of the building, the building offset and the non-orthophoto remote sensing image of the area to be reconstructed. The three-dimensional reconstruction module 17 is used to assign the extracted roof texture and wall texture to the building three-dimensional model to obtain a three-dimensional building model with texture in the area to be reconstructed.

[0098] The above-mentioned building three-dimensional reconstruction device 100 based on a single remote sensing image, through the designed LoD1 3D building reconstruction technology with texture from a single non-orthophoto remote sensing image, can automatically and efficiently construct an intuitive 3D model of an urban building with texture information by inputting a non-orthophoto remote sensing image. On the one hand, in view of the difficulty that the base is often invisible and difficult to extract in non-orthophoto remote sensing images, the roof of the building and the offset of the roof relative to the base are first extracted from the image through a neural network model, and then the base polygon is calculated, instead of directly extracting the base of the building, thereby extracting an accurate building base. On the other hand, in the extraction of the roof and offset based on the neural network model, it determines the location of the roof and wall of the building from the non-orthophoto remote sensing image, extracts the building texture and adds it to the three-dimensional model of the building in the form of a triangular mesh, thereby effectively improving the information content and visual effect of the three-dimensional model.

[0099] Compared with traditional technologies, the designed building 3D construction technology process can automatically and efficiently construct a 3D building model with texture from a single non-orthophoto remote sensing image. It accurately extracts the building height and base by extracting the roof and offset from the non-orthophoto remote sensing image through a neural network model, and constructs a 3D building model based on this. The constructed 3D building model has high accuracy and good intuitive visual effects. Ultimately, the reconstruction efficiency and accuracy are higher in the single remote sensing image 3D reconstruction task, the visual effect is better, and it has good application prospects.

[0100] In one embodiment, the above-mentioned building three-dimensional reconstruction device 100 based on a single remote sensing image may also include a model training module for obtaining non-orthophoto remote sensing images and building labels for training; building labels include building roof labels, building offset labels and building target frame labels; the non-orthophoto remote sensing images are input into the neural network model to obtain building extraction results; the building extraction results include building target frames, building roofs and building offsets; using building labels and building extraction results, loss function calculations are performed and model parameters are back-propagated to optimize; iterative training is performed until the neural network model converges to obtain a trained neural network model.

[0101] In one embodiment, the 3D reconstruction module is further used to store the textured 3D model of the building in the area to be reconstructed in a file in a 3D Tile format.

[0102] It can be understood that for the specific explanation of the building three-dimensional reconstruction device 100 based on a single remote sensing image, please refer to the corresponding explanation of each embodiment of the building three-dimensional reconstruction method based on a single remote sensing image in the above text, and no further details will be given here. Each module in the above-mentioned building three-dimensional reconstruction device 100 based on a single remote sensing image can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of a device with data processing functions in the form of hardware, or can be stored in the memory of the aforementioned device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. The aforementioned device can be, but is not limited to, various types of image processing computer devices already available in the art.

[0103] In one embodiment, a computer device is also provided, including a memory and a processor, the memory stores a computer program, and the processor implements the following processing steps when executing the computer program: obtaining a non-orthophoto remote sensing image of the area to be reconstructed and calling a trained neural network model; the neural network model is obtained by training the non-orthophoto remote sensing image after adding an offset detection head based on the Mask-RCNN model; the non-orthophoto remote sensing image of the area to be reconstructed is input into the neural network model for feature extraction to obtain the roof of the building and the building offset in the area to be reconstructed; after vectorizing the building roof, the roof polygon is translated using the building offset to obtain the base polygon of the building in the area to be reconstructed; according to the building offset and the deviation angle of the non-orthophoto remote sensing image of the area to be reconstructed, the building height of the area to be reconstructed is calculated; according to the base polygon and the building height of the building, a three-dimensional model of the building in the area to be reconstructed is generated in the form of a triangular mesh according to the LoD1 standard; according to the three-dimensional model of the building, the base polygon of the building, the building offset and the non-orthophoto remote sensing image of the area to be reconstructed, the roof texture and the wall texture are extracted; the extracted roof texture and wall texture are assigned to the three-dimensional model of the building to obtain a textured three-dimensional model of the building in the area to be reconstructed.

[0104] It can be understood that in addition to the memory and processor mentioned above, the above-mentioned computer device also includes other software and hardware components not listed in this specification. The specific components can be determined according to the model of the specific image processing computer in different application scenarios, and this specification will not list them one by one in detail.

[0105] In one embodiment, when the processor executes the computer program, it can also implement the steps or sub-steps added in the above-mentioned embodiments of the method for three-dimensional reconstruction of a building based on a single remote sensing image.

[0106] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the following processing steps are implemented: obtaining a non-orthophoto remote sensing image of the area to be reconstructed and calling a trained neural network model; the neural network model is obtained by training the non-orthophoto remote sensing image after adding an offset detection head based on the Mask-RCNN model; the non-orthophoto remote sensing image of the area to be reconstructed is input into the neural network model for feature extraction to obtain the roof of the building and the building offset in the area to be reconstructed; after vectorizing the roof of the building, the roof polygon is translated using the building offset to obtain the base polygon of the building in the area to be reconstructed; according to the building offset and the deviation angle of the non-orthophoto remote sensing image of the area to be reconstructed, the building height of the area to be reconstructed is calculated; according to the base polygon and the building height of the building, a three-dimensional model of the building in the area to be reconstructed is generated in the form of a triangular mesh according to the LoD1 standard; according to the three-dimensional model of the building, the base polygon of the building, the building offset and the non-orthophoto remote sensing image of the area to be reconstructed, the roof texture and the wall texture are extracted; the extracted roof texture and wall texture are assigned to the three-dimensional model of the building to obtain a textured three-dimensional model of the building in the area to be reconstructed.

[0107] In one embodiment, when the computer program is executed by a processor, it can also implement the steps or sub-steps added in the above-mentioned embodiments of the method for three-dimensional reconstruction of a building based on a single remote sensing image.

[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).

[0109] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0110] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for 3D reconstruction of buildings based on a single remote sensing image. It is characterized in that Includes steps: Obtain a non-orthophoto remote sensing image of the area to be reconstructed and call a trained neural network model; the neural network model is trained using the non-orthophoto remote sensing image after adding an offset detection head based on the Mask-RCNN model; Inputting the non-orthophoto remote sensing image of the area to be reconstructed into the neural network model for feature extraction to obtain the roofs and building offsets of the area to be reconstructed; After vectorizing the roof of the building, the roof polygon is translated using the building offset to obtain the base polygon of the building in the area to be reconstructed; the roof polygon is obtained by vectorizing the roof mask through polygonization operation; Calculating the building height of the area to be reconstructed according to the building offset and the deviation angle of the non-orthophoto remote sensing image of the area to be reconstructed; Generate a three-dimensional model of the building in the area to be reconstructed in the form of a triangular mesh according to the LoD1 standard based on the base polygon of the building and the height of the building; Extracting roof texture and wall texture according to the three-dimensional model of the building, the base polygon of the building, the building offset and the non-orthophoto remote sensing image of the area to be reconstructed; Assigning the extracted roof texture and wall texture to the three-dimensional building model to obtain a three-dimensional building model with texture in the area to be reconstructed; The neural network model is trained by the following steps: Obtaining non-orthophoto remote sensing images and building labels for training; the building labels include building roof labels, building offset labels, and building target frame labels; Inputting the non-orthophoto remote sensing image into the neural network model to obtain a building extraction result; the building extraction result includes a building target frame, a building roof and a building offset; Using the building label and the building extraction result, a loss function is calculated and back-propagation is performed to optimize model parameters; Return to the step of obtaining the non-orthophoto remote sensing image and building labels for training, perform iterative training until the neural network model converges, and obtain the trained neural network model.

2. The method for three-dimensional reconstruction of a building based on a single remote sensing image according to claim 1, It is characterized in that The textured 3D building model of the area to be reconstructed is stored in a file in 3D Tile format.

3. A three-dimensional building reconstruction device based on a single remote sensing image. It is characterized in that include: A data acquisition module is used to acquire non-orthophoto remote sensing images of the area to be reconstructed and call a trained neural network model; the neural network model is trained using non-orthophoto remote sensing images after adding an offset detection head based on the Mask-RCNN model; A feature extraction module, used for inputting the non-orthophoto remote sensing image of the area to be reconstructed into the neural network model for feature extraction, so as to obtain the roof and building offset of the area to be reconstructed; A base extraction module is used to vectorize the roof of the building and then use the building offset to translate the roof polygon to obtain the base polygon of the building in the area to be reconstructed; the roof polygon is obtained by vectorizing the roof mask through polygonization operation; A height calculation module, used for calculating the building height of the area to be reconstructed according to the building offset and the deviation angle of the non-orthophoto remote sensing image of the area to be reconstructed; A model generation module, used to generate a three-dimensional model of the building in the area to be reconstructed in the form of a triangular mesh according to the LoD1 standard based on the base polygon of the building and the height of the building; A texture extraction module, used for extracting roof texture and wall texture according to the three-dimensional model of the building, the base polygon of the building, the building offset and the non-orthophoto remote sensing image of the area to be reconstructed; A three-dimensional reconstruction module, used to assign the extracted roof texture and wall texture to the three-dimensional model of the building, so as to obtain a three-dimensional model of the building with texture in the area to be reconstructed; Among them, the three-dimensional reconstruction device of a building based on a single remote sensing image also includes a model training module, which is used to obtain non-orthophoto remote sensing images and building labels for training; the building labels include building roof labels, building offset labels and building target frame labels; the non-orthophoto remote sensing images are input into the neural network model to obtain building extraction results; the building extraction results include building target frames, building roofs and building offsets; using the building labels and the building extraction results, loss function calculations are performed and model parameters are back-propagated to optimize; iterative training is performed until the neural network model converges to obtain the trained neural network model.

4. The device for three-dimensional reconstruction of a building based on a single remote sensing image according to claim 3, It is characterized in that The three-dimensional reconstruction module is also used to store the textured three-dimensional building model of the area to be reconstructed in a file in a 3D Tile format.

5. A computer device comprising a memory and a processor, It is characterized in that The memory stores a computer program, and when the processor executes the computer program, the steps of the method for three-dimensional reconstruction of a building based on a single remote sensing image as described in claim 1 or 2 are implemented.