High-resolution remote sensing interactive building extraction method, device, equipment and medium

By using an interactive building extraction method in high-resolution remote sensing images, combined with feature extraction and bidirectional attention network, the extraction difficulty in the case of building height offset is solved, and higher extraction accuracy and generalization are achieved. , significantly reducing the error.

CN118587579AInactive Publication Date: 2024-09-03AEROSPACE INFORMATION RES INST CAS

Patent Information

Application Number
CN202410507981.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology makes it difficult to accurately extract building information from high-resolution remote sensing images when the height of the building is offset during satellite photography.

Method used

An interactive building extraction method based on high-resolution remote sensing images is adopted. Through the feature extraction module, feature decoding module and location reasoning module, combined with the image feature extraction network, interactive information encoder and bidirectional attention network, the building roof and offset are obtained. Shift, thereby achieving accurate extraction of building location.

Benefits of technology

It improves the extraction accuracy of building roofs and locations, enhances the ability to predict offsets, and significantly improves generalization. The error is reduced by about 15%, and the true prediction error is reduced by 10%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587579A
    Figure CN118587579A
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to a high-resolution remote sensing interactive building extraction method and device, equipment and a medium. According to the high-resolution remote sensing interactive building extraction method, device and equipment and the medium provided by the invention, a novel interactive frame for extracting the roof, the seating and the roof-seating offset of the building is provided, so that building extraction in a high-resolution remote sensing image can be realized based on the building remote sensing image and interaction information; and the accuracy of offset and roof segmentation extraction is higher, and the generalization is higher. In an extension experiment, the performance of the high-resolution remote sensing interactive building extraction method provided by the invention in an unknown data set is still more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method, device, equipment and medium for extracting interactive buildings from high-resolution remote sensing. Background Art

[0002] The distribution of urban buildings is one of the important research indicators in many fields such as urban planning, disaster management, and geographic information systems. Building extraction is a key step in obtaining urban building distribution information, which is of great significance for understanding urban structure, guiding urban development, and responding to emergencies.

[0003] In the existing technology, buildings are mainly extracted through high-resolution remote sensing images. First, high-resolution remote sensing images of the target area are acquired using satellites, and then statistical or neural network models are used to extract building information.

[0004] However, there are at least the following shortcomings in the prior art: for situations where the satellite is completely perpendicular to the building, or almost perpendicular to the building, and there is a large overlap between the roof and the seat, the neural network model can achieve a good extraction effect by directly performing semantic segmentation of the building roof; however, for situations with high offset, that is, when the satellite captures the side, roof and corners of a large area of ​​a building, the effect of the prior art solution is not ideal, and it is difficult to accurately extract building information from high-resolution remote sensing images. Summary of the invention

[0005] The present invention provides a high-resolution remote sensing interactive building extraction method, device, equipment and medium, which are used to realize accurate extraction of interactive building location and offset vector and roof based on high-resolution remote sensing images.

[0006] The present invention provides a high-resolution remote sensing interactive building extraction method, comprising the following steps:

[0007] Obtain remote sensing images of buildings;

[0008] Inputting building remote sensing images and interactive information into a building extraction neural network model to obtain a building extraction result output by the building extraction neural network model, wherein the building extraction result includes a building roof extraction result, a building offset extraction result, and a building location extraction result;

[0009] The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes:

[0010] Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module;

[0011] Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module;

[0012] Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

[0013] According to the high-resolution remote sensing interactive building extraction method provided by the present invention, obtaining a building remote sensing image includes the following steps:

[0014] Obtain original remote sensing images of buildings;

[0015] The original remote sensing images of buildings are cropped using sliding windows of uniform size and without overlap to obtain remote sensing images of buildings used as input for the neural network model of building extraction.

[0016] According to the high-resolution remote sensing interactive building extraction method provided by the present invention, the building remote sensing image and interactive information are input to the feature extraction module to obtain the previous phase image block feature map and interactive features output by the feature extraction module, including the following steps:

[0017] Use the image feature extraction network to extract features from the building remote sensing image to obtain the building remote sensing image feature map;

[0018] Encode the interactive information using the interactive information encoder to obtain interactive features;

[0019] According to the input building remote sensing image and interaction information, the building remote sensing image feature map and interaction feature are paired, and the previous phase image block feature map and interaction feature are output.

[0020] According to the high-resolution remote sensing interactive building extraction method provided by the present invention, the feature map of the previous phase image block and the interactive features are input to the feature decoding module, and the building roof extraction result and the building offset extraction result output by the feature decoding module are obtained, including the following steps:

[0021] Using a bidirectional attention network to extract information from the feature map of the previous phase image block and the interaction feature, to obtain an offset token and a semantic mask token, wherein the offset token and the semantic mask token correspond to the instance;

[0022] Inputting the offset token into the first fully connected network, and obtaining the building offset extraction result output by the first fully connected network;

[0023] The semantic mask token is input into the second fully connected network to obtain the building roof extraction result output by the second fully connected network.

[0024] According to the high-resolution remote sensing interactive building extraction method provided by the present invention, the building roof extraction result and the building offset extraction result are input into the location reasoning module to obtain the building location extraction result output by the location reasoning module, including the following steps:

[0025] According to the building offset extraction results, the interpretation head is selected for regression reasoning to obtain the roof offset;

[0026] The building roof extraction result is offset corrected according to the roof offset to obtain the building location extraction result.

[0027] According to the high-resolution remote sensing interactive building extraction method provided by the present invention, according to the building offset extraction result, an interpretation head is selected for regression reasoning, including the following steps:

[0028] According to the building offset extraction results, the interpretation head for regression inference is selected, and its expression is:

[0029]

[0030] Among them, ω represents the selector, which is a vector composed of 0 and 1, indicating whether to let Participate in the regression of this offset; is the prediction of the offset of i by the Aug head, is the prediction of the offset of i by the Ref header, O i is the actual prediction result for the i offset;

[0031] According to the building offset extraction results, after selecting the interpretation head for regression reasoning, the following steps are also included: directional suppression of the fuzzy offset, the expression is:

[0032]

[0033] Among them, K represents the Gaussian kernel function, x is the input sample, l represents the entire sample set, σ

[0034] is the standard deviation of the sample set, and e is a natural constant.

[0035] The present invention also provides a high-resolution remote sensing interactive building extraction device, comprising:

[0036] Image acquisition module, used to obtain remote sensing images of buildings;

[0037] The building extraction module is used to input the building remote sensing image and the interactive information into the building extraction neural network model to obtain the building extraction result output by the building extraction neural network model; the building extraction result includes the building roof extraction result, the building offset extraction result and the building location extraction result;

[0038] The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes:

[0039] Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module;

[0040] Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module;

[0041] Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

[0042] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-described high-resolution remote sensing interactive building extraction methods is implemented.

[0043] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the high-resolution remote sensing interactive building extraction method as described in any one of the above is implemented.

[0044] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned high-resolution remote sensing interactive building extraction methods.

[0045] The high-resolution remote sensing interactive building extraction method, device, equipment and medium provided by the present invention propose a new interactive framework for extracting building roofs, locations and roof-location offsets, which can realize building extraction in high-resolution remote sensing images based on building remote sensing images and interactive information, and has higher accuracy for offset and roof segmentation extraction and stronger generalization. In extended experiments, the high-resolution remote sensing interactive building extraction method provided by the present invention is still more accurate in unknown data sets. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 This is one of the flow charts of the high-resolution remote sensing interactive building extraction provided by the present invention;

[0048] Figure 2 This is the second flow chart of the high-resolution remote sensing interactive building extraction method provided by the present invention;

[0049] Figure 3 It is a model working diagram of the high-resolution remote sensing interactive building extraction method provided by the present invention;

[0050] Figure 4 It is a schematic diagram of the structure of a neural network model for extracting buildings in a high-resolution remote sensing interactive building extraction method provided by the present invention;

[0051] Figure 5 It is a schematic diagram of the ROAM structure of the high-resolution remote sensing interactive building extraction method provided by the present invention;

[0052] Figure 6 It is a schematic diagram of a specific algorithm flow for directional suppression of fuzzy offset in the high-resolution remote sensing interactive building extraction method provided by the present invention;

[0053] Figure 7 It is a schematic diagram comparing the extraction effect of the high-resolution remote sensing interactive building extraction method provided by the present invention with that of the prior art;

[0054] Figure 8 It is a structural schematic diagram of the high-resolution remote sensing interactive building extraction device provided by the present invention;

[0055] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] Combine the following Figure 1-Figure 8The invention describes the high-resolution remote sensing interactive building extraction method, device, equipment and medium.

[0058] Figure 1 FIG. 1 is one of the flow charts of high-resolution remote sensing interactive building extraction according to an embodiment of the present invention. Figure 1 As shown, it includes step 110 and step 120, specifically:

[0059] Step 110, obtaining a remote sensing image of a building;

[0060] Step 120, inputting the building remote sensing image and the interaction information into the building extraction neural network model, and obtaining the building extraction results output by the building extraction neural network model, wherein the building extraction results include the building roof extraction results, the building offset extraction results and the building location extraction results;

[0061] The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes:

[0062] Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module;

[0063] Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module;

[0064] Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

[0065] Figure 2 2 is a flow chart of the method for extracting interactive buildings from high-resolution remote sensing according to an embodiment of the present invention. Figure 3 1 is a working schematic diagram of a building extraction neural network model of a high-resolution remote sensing interactive building extraction method provided by the present invention, wherein the input is a building remote sensing image and interactive information, and the output is a building extraction result; the steps of the high-resolution remote sensing interactive building extraction method of the present invention are further described below:

[0066] In the embodiment of the present invention, the building remote sensing image is a high-resolution remote sensing image acquired by a satellite, and may be an original satellite remote sensing image with the same resolution and size, or may be a building remote sensing image obtained by preprocessing the original image.

[0067] Specifically, step 110 of the embodiment of the present invention comprises the following steps:

[0068] Obtain original remote sensing images of buildings;

[0069] The original remote sensing images of buildings are cropped using sliding windows of uniform size and without overlap to obtain remote sensing images of buildings used as input for the neural network model of building extraction.

[0070] As a specific embodiment, a preprocessed building image Img is cropped using a sliding window with uniform size and no overlap to obtain image blocks Pat with the same size; a remote sensing image Pat with a size of 1024×1024×3 is obtained, wherein pixels whose height of the last row of the sliding window image block is less than 1024 and whose width of the last column of the sliding window image block is less than 1024 are filled with 0 values; and before inputting the model, the original image is first compressed to 256×256×3 using four-fold downsampling;

[0071] It can be understood that the building remote sensing images used as input for the building extraction neural network model obtained through the above steps in the embodiment of the present invention are image blocks with the same size, and the building extraction neural network model is used to extract buildings from the image blocks, so that the building extraction neural network model pays more attention to the local features in the high-resolution remote sensing image during extraction, reducing the influence of the large-scale distribution of buildings and other environmental features in the remote sensing image on the building extraction results.

[0072] Figure 4 : is a schematic diagram of the structure of a neural network model for extracting buildings using a high-resolution remote sensing interactive building extraction method provided by the present invention. Figure 4 As shown, in the embodiment of the present invention, inputting the building remote sensing image and the interaction information into the feature extraction module, obtaining the previous phase image block feature map and the interaction feature output by the feature extraction module, comprises the following steps:

[0073] Use the image feature extraction network to extract features from the building remote sensing image to obtain the building remote sensing image feature map;

[0074] Encode the interactive information using the interactive information encoder to obtain interactive features;

[0075] According to the input building remote sensing image and interaction information, the building remote sensing image feature map and interaction feature are paired, and the previous phase image block feature map and interaction feature are output.

[0076] The image feature extraction network in the embodiment of the present invention may be a ViT network obtained through unsupervised training; the front-phase image block feature map and the interaction feature in the embodiment of the present invention correspond to the input token.

[0077] In a specific embodiment of the present invention, unsupervised training ViT is used to extract features from the input image, and Prompt Encoder is used to encode the input interactive information to obtain the front-phase image block feature map Fea of ​​two groups of corresponding tokens. img , interactive features Fea pro After multiple attention and self-attention mechanisms of the image feature extraction network, the final output feature map Fea img The size is 256×256×32;

[0078] In the embodiment of the present invention, the feature map of the previous phase image block and the interactive features are input to the feature decoding module, and the building roof extraction result and the building offset extraction result output by the feature decoding module are obtained, including the following steps:

[0079] Using a bidirectional attention network to extract information from the feature map of the previous phase image block and the interaction feature, to obtain an offset token and a semantic mask token, wherein the offset token and the semantic mask token correspond to the instance;

[0080] Inputting the offset token into the first fully connected network, and obtaining the building offset extraction result output by the first fully connected network;

[0081] The semantic mask token is input into the second fully connected network to obtain the building roof extraction result output by the second fully connected network.

[0082] In an embodiment of the present invention, a bidirectional attention network is used to perform multi-layer self-attention and cross-attention processing on the feature map of the previous phase image block and the interaction feature to extract the offset token and the semantic mask token. During the information extraction process, the size of the offset token and the semantic mask token remains unchanged.

[0083] In an embodiment of the present invention, the offset token is input to the first fully connected network, specifically, first through a forward connection layer, and activated by ReLU, and then through a fully connected layer, the number of nodes of the channel is regressed to 2 channels. The two channels respectively represent the coordinate position of the offset in the plane rectangular coordinate system. The semantic mask token is input to the second fully connected network, specifically, first through a forward connection layer, the forward connection layer of the second fully connected network has the same or similar structure as the forward connection layer of the first fully connected network, but the parameters are not shared, and the matrix operation in the forward connection layer is performed to obtain different semantic layer information under the same shared prompt; and then after the disambiguation operation, the model will fix the final roof representative token to obtain the building roof extraction result.

[0084] In a specific embodiment of the present invention, based on the feature map Fea of ​​the input image block img , and interactive features Fea pro, use a two-way transformer to extract information and output the token Off corresponding to the offset corresponding to the instance to , the token Mas corresponding to the semantic mask to Token Off to Through a set of fully connected networks, the regression offset Off; the token Mas to After passing through the fully connected layer, it is combined with the feature map Fea img Perform a product operation and then perform an upsampling to obtain the final instance segmentation mask Mas. to It will first pass through a feed forward network (FFN), the number of nodes in the hidden layer of the forward connection layer is 1024, and ReLU is used for activation, and the number of hidden layers is 4. Then it passes through a fully connected layer to regress the number of nodes in the channel to 2 channels. The two channels represent the coordinate positions of the offset in the plane rectangular coordinate system. to It will pass through a non-parametric shared FFN with a similar structure to the above, and then undergo matrix operations in the last layer, with the number of channels becoming 4, representing different semantic layers of information under the same shared prompt. After the disambiguation operation, the model will fix the final roof representative token.

[0085] In the embodiment of the present invention, inputting the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module includes the following steps:

[0086] According to the building offset extraction results, the interpretation head is selected for regression reasoning to obtain the roof offset;

[0087] The building roof extraction result is offset corrected according to the roof offset to obtain the building location extraction result.

[0088] Figure 4 It is a schematic diagram of the ROAM structure of the high-resolution remote sensing interactive building extraction method provided by the present invention. When performing location inference, multiple different offset decoders will be used for joint prediction. In view of the loss caused by the uncertainty of the building length during the prediction process, the model will use a ROAM system (Reference Offset Augmentation Module), such as Figure 5 As shown, the appropriate interpretation head is selected autonomously for the final inference prediction. The Distance Non-Max Suppression algorithm (DNMS algorithm) used subsequently will suppress the fuzzy offset in the direction using the offset with better prediction results based on prior statistical knowledge, thereby obtaining a better overall prediction result.

[0089] Among them, according to the building offset extraction result, the interpretation head is selected for regression reasoning, including the following steps:

[0090] According to the building offset extraction results, the interpretation head for regression inference is selected, and its expression is:

[0091]

[0092] Among them, ω represents the selector, which is a vector composed of 0 and 1, indicating whether to let Participate in the regression of this offset; is the prediction of the offset of i by the Aug head, is the prediction of the offset of i by the Ref header, O i is the actual prediction result for the i offset;

[0093] According to the building offset extraction results, after selecting the interpretation head for regression reasoning, the following steps are also included: directional suppression of the fuzzy offset, the expression is:

[0094]

[0095] Among them, K represents the Gaussian kernel function, x is the input sample, l represents the entire sample set, σ is the standard deviation of the sample set, and e is a natural constant. After counting the length and direction of all offsets within the range, the Gaussian distance between the length of each offset and the mean of all offsets is calculated as the influence weight on the direction to correct the direction. This algorithm can be used iteratively to reach the final balance point, which is the regression reasoning result. The specific process of the algorithm for directional suppression of fuzzy offsets is as follows: Figure 6 shown.

[0096] The beneficial effects of the embodiments of the present invention are further described below:

[0097] Compared with the prior art, the technical solution of the embodiment of the present invention is a model of pure Transformer structure, and can interact in different ways such as boxes, points and masks. The OBM model achieves more accurate extraction of building roofs and corners by introducing offset information. Compared with traditional models, the OBM model has achieved significant performance improvements in tasks such as offset prediction and roof segmentation. By using a new evaluation method, the model has achieved a reduction of approximately 15% in error, demonstrating better generalization ability. In addition, by introducing the DNMS algorithm, the true prediction error of the model is further improved by 10%.

[0098] The technical solution proposed in the present invention is applied to the BONAI open source building dataset, and the application effect is compared with the Benchmark method of the dataset. The evaluation results of the roof segmentation accuracy are shown in Table 1, and the comparison of the prediction error of the building roof-corner offset is shown in Table 2.

[0099]

[0100] Table 1 Comparison of roof segmentation accuracy of BONAI dataset

[0101]

[0102]

[0103] Table 2 Comparison of offset prediction errors of BONAI dataset

[0104] In the extended experiment, the present invention uses more than 7k instance samples from a high-resolution urban data set of a certain city, which are manually annotated with high precision. The model proposed in this paper has significantly better roof segmentation accuracy and offset prediction error than the previously proposed models without additional training. The roof segmentation accuracy is shown in Table 3, and the offset detection error is shown in Table 4.

[0105]

[0106] Table 3 Comparison of roof segmentation accuracy of a city dataset

[0107]

[0108]

[0109] Table 4 Comparison of offset prediction errors of a certain city dataset

[0110] The visualization results of the comparison of the effect of this model and other paper models are as follows Figure 7 As shown. In summary, the high-resolution remote sensing interactive building extraction method provided by the embodiment of the present invention proposes a new interactive framework for extracting building roofs, locations, and roof-location offsets, which can realize building extraction in high-resolution remote sensing images based on building remote sensing images and interactive information, and has higher accuracy for offset and roof segmentation extraction and stronger generalization. In extended experiments, the high-resolution remote sensing interactive building extraction method provided by the present invention is still more accurate in unknown data sets.

[0111] The high-resolution remote sensing interactive building extraction device provided by the present invention is described below. The high-resolution remote sensing interactive building extraction device described below and the high-resolution remote sensing interactive building extraction method described above can be referenced to each other.

[0112] Figure 8 is a schematic diagram of the structure of the high-resolution remote sensing interactive building extraction device provided by the present invention, such as Figure 8 As shown, including:

[0113] An image acquisition module 810 is used to acquire remote sensing images of buildings;

[0114] The building extraction module 820 is used to input the building remote sensing image and the interaction information into the building extraction neural network model to obtain the building extraction results output by the building extraction neural network model; the building extraction results include the building roof extraction results, the building offset extraction results and the building location extraction results;

[0115] The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes:

[0116] Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module;

[0117] Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module;

[0118] Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

[0119] It can be seen that the high-resolution remote sensing interactive building extraction device provided by the embodiment of the present invention can construct a new interactive framework for extracting building roofs, locations, and roof-location offsets, and can realize building extraction in high-resolution remote sensing images based on building remote sensing images and interactive information, with higher accuracy for offset and roof segmentation extraction and stronger generalization. In the extended experiment, the high-resolution remote sensing interactive building extraction method provided by the present invention is still more accurate in unknown data sets.

[0120] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the high-resolution remote sensing interactive building extraction method, including the following steps:

[0121] Obtain remote sensing images of buildings;

[0122] Inputting building remote sensing images and interactive information into a building extraction neural network model to obtain a building extraction result output by the building extraction neural network model, wherein the building extraction result includes a building roof extraction result, a building offset extraction result, and a building location extraction result;

[0123] The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes:

[0124] Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module;

[0125] Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module;

[0126] Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

[0127] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0128] On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the high-resolution remote sensing interactive building extraction method provided by the above methods, including the following steps:

[0129] Obtain remote sensing images of buildings;

[0130] Inputting building remote sensing images and interactive information into a building extraction neural network model to obtain a building extraction result output by the building extraction neural network model, wherein the building extraction result includes a building roof extraction result, a building offset extraction result, and a building location extraction result;

[0131] The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes:

[0132] Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module;

[0133] Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module;

[0134] Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

[0135] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the high-resolution remote sensing interactive building extraction method provided by the above methods, comprising the following steps:

[0136] Obtain remote sensing images of buildings;

[0137] Inputting building remote sensing images and interactive information into a building extraction neural network model to obtain a building extraction result output by the building extraction neural network model, wherein the building extraction result includes a building roof extraction result, a building offset extraction result, and a building location extraction result;

[0138] The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes:

[0139] Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module;

[0140] Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module;

[0141] Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

[0142] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A high-resolution remote sensing interactive building extraction method, characterized in that: The following steps are involved: Obtain remote sensing images of buildings; Inputting building remote sensing images and interactive information into a building extraction neural network model to obtain a building extraction result output by the building extraction neural network model, wherein the building extraction result includes a building roof extraction result, a building offset extraction result, and a building location extraction result; The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes: Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module; Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module; Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

2. The high-resolution remote sensing interactive building extraction method according to claim 1, characterized in that: Obtaining remote sensing images of buildings includes the following steps: Obtain original remote sensing images of buildings; The original remote sensing images of buildings are cropped using sliding windows of uniform size and without overlap to obtain remote sensing images of buildings used as input for the neural network model of building extraction.

3. The high-resolution remote sensing interactive building extraction method according to claim 1, characterized in that: Input the building remote sensing image and interaction information to the feature extraction module, and obtain the previous phase image block feature map and interaction features output by the feature extraction module. The following steps are involved: Use the image feature extraction network to extract features from the building remote sensing image to obtain the building remote sensing image feature map; Encode the interactive information using the interactive information encoder to obtain interactive features; According to the input building remote sensing image and interaction information, the building remote sensing image feature map and interaction feature are paired, and the previous phase image block feature map and interaction feature are output.

4. The high-resolution remote sensing interactive building extraction method according to claim 3 is characterized in that: Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module, including the following steps: Using a bidirectional attention network to extract information from the feature map of the previous phase image block and the interaction feature, to obtain an offset token and a semantic mask token, wherein the offset token and the semantic mask token correspond to the instance; Inputting the offset token into the first fully connected network, and obtaining the building offset extraction result output by the first fully connected network; The semantic mask token is input into the second fully connected network to obtain the building roof extraction result output by the second fully connected network.

5. The high-resolution remote sensing interactive building extraction method according to claim 4 is characterized in that: Inputting the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module includes the following steps: According to the building offset extraction results, the interpretation head is selected for regression reasoning to obtain the roof offset; The building roof extraction result is offset corrected according to the roof offset to obtain the building location extraction result.

6. The high-resolution remote sensing interactive building extraction method according to claim 5, characterized in that: According to the building offset extraction results, the interpretation head is selected for regression reasoning, including the following steps: According to the building offset extraction results, the interpretation head for regression inference is selected, and its expression is: Among them, ω represents the selector, which is a vector composed of 0 and 1, indicating whether to let Participate in the regression of i offset; is the prediction of the offset of i by the Aug head, is the prediction of the offset of i by the Ref header, O i is the actual prediction result for the i offset; According to the building offset extraction results, after selecting the interpretation head for regression reasoning, the following steps are also included: directional suppression of the fuzzy offset, the expression is: Among them, K represents the Gaussian kernel function, x is the input sample, l represents the entire sample set, σ is the standard deviation of the sample set, and e is a natural constant.

7. A high-resolution remote sensing interactive building extraction device, characterized in that: include: Image acquisition module, used to obtain remote sensing images of buildings; The building extraction module is used to input the building remote sensing image and interactive information into the building extraction neural network model to obtain the building extraction result output by the building extraction neural network model; The building extraction results include building roof extraction results, building offset extraction results and building location extraction results; The building extraction neural network model includes a feature extraction module, a feature decoding module and a location reasoning module; inputting a building remote sensing image to the image feature extraction neural network model to obtain a building extraction result output by the image feature extraction neural network model further includes: Inputting the building remote sensing image and interaction information into the feature extraction module, and obtaining the previous phase image block feature map and interaction features output by the feature extraction module; Input the feature map of the previous phase image block and the interactive features to the feature decoding module, and obtain the building roof extraction result and the building offset extraction result output by the feature decoding module; Input the building roof extraction result and the building offset extraction result into the location reasoning module to obtain the building location extraction result output by the location reasoning module.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the high-resolution remote sensing interactive building extraction method as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the high-resolution remote sensing interactive building extraction method as claimed in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the high-resolution remote sensing interactive building extraction method as claimed in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Building instance automatic extraction method based on high-spatial-resolution optical remote sensing image

    CN112883887A

  • Convolutional neural network and Transform fused remote sensing image building extraction method

    CN116071650A

  • Building roof identification method and device, electronic equipment and storage medium

    CN116188974A

  • Urban charging pile configuration demand evaluation method and device based on remote sensing image

    CN116485117A

  • Boundary-optimized remote sensing image semantic segmentation method and apparatus, and device and medium

    WO2023077816A1

Cited By

  • Image measurement method and image processing device

    TWI929719B