Building object extraction method, system and equipment of remote sensing image and storage medium

Through the combination of object detection network and contour optimization network, the problem of insufficient initial contour design in building object extraction in remote sensing images is solved, and high-precision extraction in complex scenarios is achieved, vertex matching errors are avoided, and extraction accuracy is improved. .

CN119007002AActive Publication Date: 2024-11-22WUHAN ZHONGDI DIGITAL TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410992709.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-22
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

In the prior art, when extracting building objects in remote sensing images, the initial contour design lacks generalization, resulting in inaccurate extraction in different scenarios and complex buildings, and the movement of contour vertices may cause errors or self-intersecting, resulting in final extraction. The contour accuracy is limited.

Method used

The object detection network is used for feature extraction, the initial contour of the building is optimized through the contour optimization network and the attention module, the coordinate iteration formula is used to calculate the vertex target coordinates, and the contour is gradually adjusted to improve accuracy.

Benefits of technology

It realizes accurate extraction of building objects in complex scenarios, avoids insufficient generalization of the initial contour design and vertex matching errors, and improves the accuracy and stability of the contours.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007002A_ABST
    Figure CN119007002A_ABST
Patent Text Reader

Abstract

The invention discloses a building object extraction method, system and device for a remote sensing image and a storage medium, and the method comprises the steps: inputting the remote sensing image into a target detection network for building detection, and obtaining a plurality of segments of initial contours; inputting the contour feature vector of each section of initial contour into a contour optimization network for vertex prediction to obtain a plurality of vertex offsets of each section of optimized contour; processing the remote sensing image feature map through a contour attention module to obtain a weight coefficient of each vertex; according to each original vertex coordinate, each vertex offset and each vertex weight coefficient, obtaining a plurality of vertex target coordinates of each section of optimized contour through a coordinate iteration formula; and extracting the building object from the remote sensing image based on the plurality of vertex target coordinates. According to the method, a detection frame is divided into multiple sections of initial contours, an edge attention module is introduced in a contour optimization stage, the weight of each vertex of each section of initial contour in a regression process is adjusted, and the building object is accurately extracted from the remote sensing image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of remote sensing image information extraction, and in particular to a method, system, device and storage medium for extracting building objects from remote sensing images. Background Art

[0002] As the most important component of a city, buildings shape the structure and form of the city and convey important cognitive information and structural knowledge. Accurate extraction of buildings is of great significance for urban structure optimization and urban planning.

[0003] At present, most studies regard building extraction as a semantic segmentation task. The results of extracting building objects using semantic segmentation methods can obtain ideal accuracy in specific scenarios, but the results cannot be directly applied to subsequent tasks. Some studies post-process the results of semantic segmentation to extract instance objects, but this method first relies on the accuracy of the semantic segmentation results, and may not be able to completely segment each object in complex scenes. The method of directly predicting building vertices is faster than semantic segmentation, but the quality of the extracted buildings is poor. Although some subsequent studies have improved this type of method, there are still the following problems: First, the manually designed initial contour lacks sufficient generalization, and the initial contour is not accurate enough when facing different scenes and complex building situations; second, due to the inaccurate initial contour, errors or self-intersections occur when the contour vertex moves; third, the feature extraction of the building contour is limited, which makes the movement of the contour vertex inaccurate, resulting in limited accuracy of the final extracted contour.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, system, device and storage medium for extracting building objects from remote sensing images, aiming to solve the technical problem of how to accurately extract building objects from remote sensing images.

[0006] To achieve the above object, the present invention provides a method for extracting building objects from remote sensing images, the method comprising:

[0007] Inputting the remote sensing image into the Backbone module in the target detection network for feature extraction to obtain a remote sensing image feature map, and performing building detection on the remote sensing image feature map to obtain multiple initial contours of the building object;

[0008] Determine the contour feature vector and multiple original vertex coordinates corresponding to each segment of the initial contour;

[0009] Inputting multiple contour feature vectors into a contour optimization network for vertex prediction respectively, and obtaining multiple vertex offsets corresponding to each segment of the optimized contour, wherein the contour optimization network is constructed by combining a Backbone module, a Fusion module, and a Prediction module;

[0010] The remote sensing image feature map is processed by a contour attention module to obtain a contour boundary attention map, and bilinear interpolation is performed on the contour boundary attention map according to a plurality of original vertex coordinates corresponding to each segment of the initial contour to obtain a plurality of vertex weight coefficients corresponding to each segment of the initial contour;

[0011] According to the multiple original vertex coordinates corresponding to each segment of the initial contour, the multiple vertex offsets corresponding to each segment of the optimized contour and the multiple vertex weight coefficients corresponding to each segment of the initial contour, the multiple vertex target coordinates corresponding to each segment of the optimized contour are obtained through a coordinate iteration formula;

[0012] The building object is extracted from the remote sensing image based on a plurality of vertex target coordinates corresponding to each segment of the optimized contour.

[0013] Optionally, the step of performing building detection on the remote sensing image feature map to obtain multiple initial contours of building objects includes:

[0014] Downsampling the remote sensing image feature map to obtain a prediction heat map, a prediction bias map, and a prediction attribute map;

[0015] Determine the geometric center coordinates of the building object through a heatmap head module according to the predicted heat map;

[0016] Determine the center coordinates of the detection frame corresponding to the building object according to the geometric center coordinates;

[0017] Determine the center coordinate offset of the detection frame through the offset head module according to the predicted bias map;

[0018] Determine the detection box attribute information through the wh head module according to the predicted attribute graph;

[0019] Generate a detection frame of the building object according to the detection frame center coordinates, the center coordinate offset and the detection frame attribute information;

[0020] Based on the detection frame of the building object, multiple initial contours of the building object are obtained through vertex sampling.

[0021] Optionally, the step of respectively inputting a plurality of contour feature vectors into a contour optimization network for vertex prediction to obtain a plurality of vertex offsets corresponding to each segment of the optimized contour comprises:

[0022] Input multiple contour feature vectors into the Backbone module in the contour optimization network to obtain contour feature information of different levels corresponding to each segment of the initial contour;

[0023] The contour feature information of different levels corresponding to each segment of the initial contour is processed respectively by the Fusion module in the contour optimization network to obtain the contour feature information after pooling of each segment of the initial contour;

[0024] According to the contour feature information after pooling of each segment of the initial contour, a plurality of vertex offsets corresponding to each segment of the optimized contour are obtained through the Predi ction module in the contour optimization network.

[0025] Optionally, the step of processing the remote sensing image feature map by a contour attention module to obtain a contour boundary attention map includes:

[0026] Performing a convolution process on the remote sensing image feature map through a contour attention module to obtain a contour boundary convolution map;

[0027] Processing the contour boundary convolution map through a Sigmoid activation layer to obtain a contour boundary prediction map;

[0028] Performing multi-layer convolution processing on the contour boundary prediction map to obtain a contour prediction convolution map;

[0029] A contour boundary attention map is generated according to the contour prediction convolution map through the Sigmoid activation layer.

[0030] Optionally, the step of obtaining a plurality of vertex target coordinates corresponding to each segment of the optimized contour through a coordinate iteration formula according to a plurality of original vertex coordinates corresponding to each segment of the initial contour, a plurality of vertex offsets corresponding to each segment of the optimized contour, and a plurality of vertex weight coefficients corresponding to each segment of the initial contour, comprises:

[0031] According to the multiple vertex offsets corresponding to each segment of the optimized contour and the multiple vertex weight coefficients corresponding to each segment of the initial contour, the multiple vertex target offsets corresponding to each segment of the optimized contour are obtained through the vertex offset formula;

[0032] The vertex offset formula is:

[0033] (Δx′ k ,Δy′ k )=Atten(x k ,y k )*(Δx k ,Δy k )

[0034] Where k is the number of iterations, Atten(x k , x k) is the k-th vertex weight coefficient, (Δx k , Δy k ) is the k-th vertex offset, (Δx′ k ,Δy′ k ) is the k-th vertex target offset;

[0035] According to the multiple original vertex coordinates corresponding to each segment of the initial contour and the multiple vertex target offsets corresponding to each segment of the optimized contour, the multiple vertex target coordinates corresponding to each segment of the optimized contour are obtained through a coordinate iteration formula;

[0036] The coordinate iteration formula is:

[0037]

[0038] In the formula, is the vertex target offset of point i at the k-1th time, (Δx′ k-1 ,Δy′ k-1 ) is the k-1th vertex offset, is the original vertex coordinate of point i at the k-1th time, is the vertex target coordinate of point i at the kth time.

[0039] In addition, to achieve the above-mentioned purpose, the present invention also proposes a building object extraction system for remote sensing images, the building object extraction system for remote sensing images comprising:

[0040] The initial module is used to input the remote sensing image into the Backbone module in the target detection network for feature extraction, obtain the remote sensing image feature map, and perform building detection on the remote sensing image feature map to obtain multiple initial contours of the building object;

[0041] A determination module, used to determine the contour feature vector and multiple original vertex coordinates corresponding to each segment of the initial contour;

[0042] An optimization module, used for respectively inputting a plurality of contour feature vectors into a contour optimization network for vertex prediction, and obtaining a plurality of vertex offsets corresponding to each segment of the optimized contour, wherein the contour optimization network is constructed by a Backbone module, a Fusion module, and a Prediction module;

[0043] The optimization module is further used to process the remote sensing image feature map through the contour attention module to obtain a contour boundary attention map, and perform bilinear interpolation on the contour boundary attention map according to multiple original vertex coordinates corresponding to each segment of the initial contour to obtain multiple vertex weight coefficients corresponding to each segment of the initial contour;

[0044] The optimization module is further used to obtain multiple vertex target coordinates corresponding to each segment of the optimized contour through a coordinate iteration formula according to multiple original vertex coordinates corresponding to each segment of the initial contour, multiple vertex offsets corresponding to each segment of the optimized contour, and multiple vertex weight coefficients corresponding to each segment of the initial contour;

[0045] The extraction module is used to extract the building object from the remote sensing image based on the multiple vertex target coordinates corresponding to each segment of the optimized contour.

[0046] In addition, to achieve the above-mentioned purpose, the present invention also proposes a building object extraction device for remote sensing images, the device comprising: a memory, a processor, and a building object extraction program for remote sensing images stored in the memory and executable on the processor, the building object extraction program for remote sensing images being configured to implement the steps of the building object extraction method for remote sensing images as described above.

[0047] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a building object extraction program for remote sensing images is stored. When the building object extraction program for remote sensing images is executed by a processor, the steps of the building object extraction method for remote sensing images as described above are implemented.

[0048] The invention firstly inputs a remote sensing image into a Backbone module in a target detection network for feature extraction to obtain a remote sensing image feature map, performs building detection on the remote sensing image feature map, obtains multiple initial contours of a building object, and determines contour feature vectors and multiple original vertex coordinates corresponding to each initial contour segment, then respectively inputs the multiple contour feature vectors into a contour optimization network for vertex prediction to obtain multiple vertex offsets corresponding to each optimized contour segment, the contour optimization network is constructed by a Backbone module, a Fusion module and a Prediction module, then processes the remote sensing image feature map through a contour attention module to obtain a contour boundary attention map, and performs bilinear interpolation on the contour boundary attention map according to multiple original vertex coordinates corresponding to each initial contour segment to obtain multiple vertex weight coefficients corresponding to each initial contour segment, finally obtains multiple vertex target coordinates corresponding to each optimized contour segment through a coordinate iteration formula according to multiple original vertex coordinates corresponding to each initial contour segment, multiple vertex offsets corresponding to each optimized contour segment and multiple vertex weight coefficients corresponding to each initial contour segment, and extracts the building object from the remote sensing image based on the multiple vertex target coordinates corresponding to each optimized contour segment. The present invention divides the initial contour into multiple segments according to the target detection frame, and each segment of the initial contour is separately input into the network for regression, so as to avoid the matching error between the predicted vertex and the real vertex. A new Backbone network is proposed in the contour optimization stage. Compared with the previous network, the Backbone can extract deeper features of the contour, and the predicted contour boundary is closer to the real boundary. Then, an edge attention module is introduced in the contour optimization stage to adjust the weight of each vertex in the regression process, forcing the vertices far away from the real contour to move faster. Finally, the coordinate iteration formula is used to obtain the target coordinates of multiple vertices corresponding to each segment of the optimized contour, so as to realize the accurate extraction of building objects from remote sensing images. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a structural schematic diagram of a building object extraction device of a remote sensing image in a hardware operating environment involved in an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for extracting building objects from remote sensing images of the present invention;

[0051] Figure 3 The overall structure diagram of the CenterNet network of the first embodiment of the building object extraction method of remote sensing images of the present invention;

[0052] Figure 4 A schematic diagram of a detection frame of a first embodiment of a method for extracting building objects from remote sensing images of the present invention;

[0053] Figure 5A schematic diagram of contour segmentation of a first embodiment of a method for extracting building objects from remote sensing images of the present invention;

[0054] Figure 6 The overall structure diagram of the contour optimization network of the first embodiment of the building object extraction method of remote sensing images of the present invention;

[0055] Figure 7 This is a structural diagram of a Backbone module in a contour optimization network of the first embodiment of the building object extraction method of remote sensing images of the present invention;

[0056] Figure 8 It is a flow chart of the contour attention module of the first embodiment of the method for extracting building objects from remote sensing images of the present invention;

[0057] Fig. 9 It is a structural block diagram of the first embodiment of the building object extraction system of remote sensing images of the present invention.

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

[0059] 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.

[0060] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of a building object extraction device for remote sensing images in the hardware operating environment involved in an embodiment of the present invention.

[0061] like Figure 1 As shown, the building object extraction device of the remote sensing image may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage system independent of the aforementioned processor 1001.

[0062] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the building object extraction device for remote sensing images, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0063] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a building object extraction program of a remote sensing image.

[0064] exist Figure 1 In the building object extraction device for remote sensing images shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the building object extraction device for remote sensing images of the present invention can be set in the building object extraction device for remote sensing images, and the building object extraction device for remote sensing images calls the building object extraction program of the remote sensing images stored in the memory 1005 through the processor 1001, and executes the building object extraction method for remote sensing images provided in the embodiment of the present invention.

[0065] The embodiment of the present invention provides a method for extracting building objects from remote sensing images. Figure 2 , Figure 2 It is a flowchart diagram of a first embodiment of a method for extracting building objects from remote sensing images according to the present invention.

[0066] In this embodiment, the building object extraction method of the remote sensing image includes the following steps:

[0067] Step S10: inputting the remote sensing image into the Backbone module in the target detection network for feature extraction to obtain a remote sensing image feature map, and performing building detection on the remote sensing image feature map to obtain multiple initial contours of the building object.

[0068] It is easy to understand that the execution subject of this embodiment can be a building object extraction system of remote sensing images with functions such as data processing, network communication and program running, or other computer equipment with similar functions, etc., and this embodiment is not limited.

[0069] It should be noted that remote sensing images contain a large number of objects. In order to obtain building objects of different locations and sizes, it is first necessary to locate the building in the remote sensing image and construct the initial outline of the building object.

[0070] It should also be understood that reference Figure 3 , Figure 3The overall structure diagram of the CenterNet network of the first embodiment of the building object extraction method of remote sensing images of the present invention is shown in FIG. Figure 3 The target detection network uses CenterNet as the network in the building recognition and positioning stages to detect potential building objects in remote sensing images.

[0071] Furthermore, the remote sensing image feature map is used for building detection, and the processing method for obtaining multiple initial contours of the building object is to downsample the remote sensing image feature map to obtain a predicted heat map, a predicted bias map and a predicted attribute map; the geometric center coordinates of the building object are determined by a heatmap head module according to the predicted heat map; the center coordinates of the detection frame corresponding to the building object are determined according to the geometric center coordinates; the center coordinate offset of the detection frame is determined by an offset head module according to the predicted bias map; the detection frame attribute information is determined by a wh head module according to the predicted attribute map; the detection frame of the building object is generated according to the center coordinates of the detection frame, the center coordinate offset and the detection frame attribute information; and the multiple initial contours of the building object are obtained by vertex sampling based on the detection frame of the building object.

[0072] In the specific implementation, the remote sensing image is subjected to feature extraction by the Backbone module composed of CNN in the CenterNet network, and the extracted feature map (i.e., remote sensing image feature map) is sampled to obtain three maps for prediction, namely, the offset map (i.e., prediction bias map), the wh map (i.e., prediction attribute map), and the heatmap map (i.e., prediction heat map).

[0073] It should also be noted that the peak retrieval method is used to determine the geometric center coordinates of several building objects from the heatmap through the heatmap head module. This method uses 3×3 maximum pooling to traverse each point of the heatmap, and compares whether the value (confidence) of the point is greater than or equal to the eight adjacent points. After obtaining a certain number of pending points, the points greater than the threshold are selected according to the confidence as the final center point. The positions of these center points in the heatmap correspond to the center coordinates of the detection frame of the building object. Then, the offset head module is used to determine the center coordinate offset of the detection frame, and the wh head module is used to determine the detection frame attribute information. The detection frame attribute information includes the length and width information of the detection frame.

[0074] In this embodiment, CenterNet obtains the center point and length and width information of the detection object through the three predicted heads (i.e., heatmap head module, offset head module, and wh head module), obtains the potential building location in the remote sensing image, and generates a detection box of the building object at its location. Figure 4 , Figure 4Schematic diagram of a detection frame of a first embodiment of a method for extracting building objects from remote sensing images of the present invention.

[0075] It should also be understood that a detection box is assigned to each building. The detection box is usually represented by the coordinates of the upper left corner and the coordinates of the lower right corner, and its shape is usually a matrix. Directly sample this rectangle uniformly, and sample it from a rectangle represented by only 2 or 4 vertices to N vertices, N is usually set to 128, and this new outline is used as the initial outline of the building. Then, the four vertices of the target detection box (i.e., the initial outline of the building) and the four intersection points of the building object and the detection box are used to divide the initial outline of the building into multiple initial outlines (for example, eight initial outlines), and then the multiple initial outlines are resampled, and the outline is locally optimized within each outline segment. Refer to Figure 5 , Figure 5 Schematic diagram of contour segmentation of a first embodiment of a method for extracting building objects from remote sensing images of the present invention.

[0076] Step S20: Determine the contour feature vector and multiple original vertex coordinates corresponding to each segment of the initial contour.

[0077] It should also be noted that although the initial building outline can represent the building object to a certain extent, it is still not accurate enough compared to the real building outline. Therefore, the initial building outline needs to be segmented and optimized to make it closer to the real outline.

[0078] It should be understood that in order to determine that each segment of the initial contour has a corresponding plurality of original vertices, it is necessary to predetermine the contour feature vectors and the corresponding plurality of original vertex coordinates corresponding to each segment of the initial contour.

[0079] Step S30: Inputting multiple contour feature vectors into the contour optimization network for vertex prediction respectively, and obtaining multiple vertex offsets corresponding to each segment of the optimized contour. The contour optimization network is constructed by combining the Backbone module, the Fusion module and the Prediction module.

[0080] Furthermore, a plurality of contour feature vectors are respectively input into the contour optimization network for vertex prediction, and a processing method for obtaining a plurality of vertex offsets corresponding to each segment of the optimized contour is as follows: a plurality of contour feature vectors are respectively input into the Backbone module in the contour optimization network to obtain contour feature information of different levels corresponding to each segment of the initial contour; the contour feature information of different levels corresponding to each segment of the initial contour is respectively processed through the Fusion module in the contour optimization network to obtain contour feature information after pooling of each segment of the initial contour; and a plurality of vertex offsets corresponding to each segment of the optimized contour are obtained through the Prediction module in the contour optimization network according to the contour feature information after pooling of each segment of the initial contour.

[0081] In the specific implementation, refer to Figure 6 , Figure 6 This is the overall structure diagram of the contour optimization network of the first embodiment of the building object extraction method of remote sensing images of the present invention. In the contour optimization network, the input of the network is the contour feature vector corresponding to each segment of the initial contour of the building object, and the output is a plurality of vertex offsets corresponding to each segment of the optimized contour. The entire contour optimization network is divided into Backbone, Fusion and Prediction parts.

[0082] The multiple vertex offsets corresponding to each segment of the optimized contour can be understood as the multiple vertex offsets after the initial contour of each segment is optimized.

[0083] In the specific implementation, for the Backbone module:

[0084] A Backbone that simulates the Unet++ network is designed. The network structure is as follows Figure 7 As shown, Figure 7 This is a diagram of the Backbone module structure in the contour optimization network of the first embodiment of the building object extraction method for remote sensing images of the present invention. Compared with the network structure of Unet++, Backbone abandons the depth of the network and increases the length of the network. There are three operations involved in the Backbone, namely downsampling, upsampling and basic convolution blocks, where the basic convolution block is composed of two layers of 1D convolution, ReLu and BatchNorm; for each X in the first layer 0,i , is X 0,i-1 After the basic convolution block and X 1,i-1 The upsampling results are added together; for each X in the second layer 1,i , except X 1,0 Yes X 0,0 The results of downsampling, the others are the results of the previous layer after the basic convolution block and settlement (that is, the contour feature information of different levels corresponding to the initial contour of each segment); each X of the first layer 0 ,i have the same dimensions, and each X 0,i All stored in State.

[0085] Fusion Module:

[0086] The fusion part is to fuse the features of different levels. The State output by the Backbone module is fused through a 1×1 convolution layer and maximum pooling is performed to obtain the contour feature information of each segment after initial contour pooling.

[0087] Prediction module:

[0088] The Prediction part is composed of N layers of 1×1 convolution and ReLU function. According to the contour feature information after pooling of the initial contour of each segment, the Prediction module in the contour optimization network obtains multiple vertex offsets corresponding to each segment of the optimized contour.

[0089] Step S40: Process the remote sensing image feature map through the contour attention module to obtain a contour boundary attention map, and perform bilinear interpolation on the contour boundary attention map according to multiple original vertex coordinates corresponding to each segment of the initial contour to obtain multiple vertex weight coefficients corresponding to each segment of the initial contour.

[0090] Furthermore, the remote sensing image feature map is processed by a contour attention module to obtain a contour boundary attention map by performing superimposed convolution processing on the remote sensing image feature map by the contour attention module to obtain a contour boundary convolution map; processing the contour boundary convolution map by a Sigmoid activation layer to obtain a contour boundary prediction map; performing multi-layer convolution processing on the contour boundary prediction map to obtain a contour prediction convolution map; and generating a contour boundary attention map by a Sigmoid activation layer according to the contour prediction convolution map.

[0091] In the specific implementation, refer to Figure 8 , Figure 8 The contour attention module flow chart of the first embodiment of the building object extraction method of remote sensing images of the present invention introduces an additional contour attention module, which automatically learns the weights of each vertex in the contour and gives greater weights to vertices far away from the true contour, making them move faster and increasing the efficiency of network learning.

[0092] In this embodiment, the feature map obtained after the contour initialization of the image, i.e., the remote sensing image feature map (feature map), continues to be superimposed with N layers of convolution, and is processed using a Sigmoid activation layer to obtain a prediction map about the contour boundary, i.e., a contour boundary prediction map (contour map). This contour boundary prediction map is directly compared with the actual contour boundary of the image for loss calculation.

[0093] The contour boundary prediction map also undergoes N layers of convolution, and finally uses the Sigmoid activation layer to generate an attention map. Bilinear interpolation is performed on the attention map according to the position of the contour (i.e., the coordinates of multiple original vertices corresponding to each segment of the initial contour) to obtain the weight coefficient Atten of each vertex (i.e., the weight coefficients of multiple vertices corresponding to each segment of the initial contour).

[0094] Step S50: obtaining multiple vertex target coordinates corresponding to each segment of the optimized contour through a coordinate iteration formula according to multiple original vertex coordinates corresponding to each segment of the initial contour, multiple vertex offsets corresponding to each segment of the optimized contour, and multiple vertex weight coefficients corresponding to each segment of the initial contour.

[0095] In this embodiment, multiple vertex target offsets corresponding to each segment of the optimized contour are obtained through a vertex offset formula according to multiple vertex offsets corresponding to each segment of the optimized contour and multiple vertex weight coefficients corresponding to each segment of the initial contour;

[0096] The vertex offset formula is:

[0097] (Δx ′ k ,Δy ′ k )=Atten(x k ,y k )*(Δx k ,Δy k )

[0098] Where k is the number of iterations, Atten(x k , x k ) is the k-th vertex weight coefficient, (Δx k , Δy k ) is the k-th vertex offset, (Δx′ k ,Δy′ k ) is the k-th vertex target offset;

[0099] According to the multiple original vertex coordinates corresponding to each segment of the initial contour and the multiple vertex target offsets corresponding to each segment of the optimized contour, the multiple vertex target coordinates corresponding to each segment of the optimized contour are obtained through a coordinate iteration formula;

[0100] The coordinate iteration formula is:

[0101]

[0102] In the formula, is the vertex target offset of point i at the k-1th time, (Δx′ k-1 ,Δy′ k-1 ) is the k-1th vertex offset, is the original vertex coordinate of point i at the k-1th time, is the vertex target coordinate of point i at the kth time.

[0103] It should also be noted that the vertex coordinates are updated in an iterative manner. The coordinates of the original vertex Offset from vertex Add the new coordinates of the vertex And this new coordinate will continue to be passed into the contour optimization network as before, outputting a new offset, where the number of iterations K can be set to 3.

[0104] Step S60: extracting the building object from the remote sensing image based on the multiple vertex target coordinates corresponding to each segment of the optimized contour.

[0105] It should be understood that by obtaining the target coordinates of each vertex after each segment of the optimized contour in the above manner, the optimized contour of the building object can be determined based on the target coordinates of each vertex after each segment of the optimized contour, and then the building object can be extracted from the remote sensing image based on the optimized contour of the building object.

[0106] In this embodiment, the remote sensing image is first input into the Backbone module in the target detection network for feature extraction to obtain a remote sensing image feature map, and building detection is performed on the remote sensing image feature map to obtain multiple initial contours of the building object, and the contour feature vector and multiple original vertex coordinates corresponding to each initial contour segment are determined, and then the multiple contour feature vectors are respectively input into the contour optimization network for vertex prediction to obtain multiple vertex offsets corresponding to each optimized contour segment. The contour optimization network is constructed by the Backbone module, the Fusion module and the Prediction module. After that, the remote sensing image feature map is processed by the contour attention module to obtain a contour boundary attention map, and the contour boundary attention map is bilinearly interpolated according to the multiple original vertex coordinates corresponding to each initial contour segment to obtain multiple vertex weight coefficients corresponding to each initial contour segment. Finally, according to the multiple original vertex coordinates corresponding to each initial contour segment, the multiple vertex offsets corresponding to each optimized contour segment and the multiple vertex weight coefficients corresponding to each initial contour segment, the multiple vertex target coordinates corresponding to each optimized contour segment are obtained through the coordinate iteration formula, and the building object is extracted from the remote sensing image based on the multiple vertex target coordinates corresponding to each optimized contour segment. This embodiment divides the initial contour into multiple segments according to the target detection frame, and each segment of the initial contour is separately input into the network for regression, so as to avoid matching errors between the predicted vertices and the real vertices. A new Backbone network is proposed in the contour optimization stage. Compared with the previous network, the Backbone can extract deeper features of the contour, and the predicted contour boundary is closer to the real boundary. Then, an edge attention module is introduced in the contour optimization stage to adjust the weight of each vertex in the regression process, forcing the vertices far away from the real contour to move faster. Finally, the coordinate iteration formula is used to obtain the target coordinates of multiple vertices corresponding to each segment of the optimized contour, so as to realize the accurate extraction of building objects from remote sensing images.

[0107] Reference Fig. 9 , Fig. 9 It is a structural block diagram of the first embodiment of the building object extraction system of remote sensing images of the present invention.

[0108] like Fig. 9 As shown, the building object extraction system of remote sensing images proposed in the embodiment of the present invention includes:

[0109] Initial module 9001, used for inputting remote sensing images into the Backbone module in the target detection network for feature extraction, obtaining a remote sensing image feature map, and performing building detection on the remote sensing image feature map to obtain multiple initial contours of the building object;

[0110] A determination module 9002 is used to determine the contour feature vector and multiple original vertex coordinates corresponding to each segment of the initial contour;

[0111] An optimization module 9003 is used to input multiple contour feature vectors into a contour optimization network for vertex prediction, and obtain multiple vertex offsets corresponding to each segment of the optimized contour. The contour optimization network is constructed by combining a Backbone module, a Fusion module, and a Prediction module.

[0112] The optimization module 9003 is further used to process the remote sensing image feature map through the contour attention module to obtain a contour boundary attention map, and perform bilinear interpolation on the contour boundary attention map according to multiple original vertex coordinates corresponding to each segment of the initial contour to obtain multiple vertex weight coefficients corresponding to each segment of the initial contour;

[0113] The optimization module 9003 is further used to obtain multiple vertex target coordinates corresponding to each segment of the optimized contour through a coordinate iteration formula according to multiple original vertex coordinates corresponding to each segment of the initial contour, multiple vertex offsets corresponding to each segment of the optimized contour, and multiple vertex weight coefficients corresponding to each segment of the initial contour;

[0114] The extraction module 9004 is used to extract the building object from the remote sensing image based on the multiple vertex target coordinates corresponding to each segment of the optimized contour.

[0115] In this embodiment, the remote sensing image is first input into the Backbone module in the target detection network for feature extraction to obtain a remote sensing image feature map, and building detection is performed on the remote sensing image feature map to obtain multiple initial contours of the building object, and the contour feature vector and multiple original vertex coordinates corresponding to each initial contour segment are determined, and then the multiple contour feature vectors are respectively input into the contour optimization network for vertex prediction to obtain multiple vertex offsets corresponding to each optimized contour segment. The contour optimization network is constructed by the Backbone module, the Fusion module and the Prediction module. After that, the remote sensing image feature map is processed by the contour attention module to obtain a contour boundary attention map, and the contour boundary attention map is bilinearly interpolated according to the multiple original vertex coordinates corresponding to each initial contour segment to obtain multiple vertex weight coefficients corresponding to each initial contour segment. Finally, according to the multiple original vertex coordinates corresponding to each initial contour segment, the multiple vertex offsets corresponding to each optimized contour segment and the multiple vertex weight coefficients corresponding to each initial contour segment, the multiple vertex target coordinates corresponding to each optimized contour segment are obtained through the coordinate iteration formula, and the building object is extracted from the remote sensing image based on the multiple vertex target coordinates corresponding to each optimized contour segment. This embodiment divides the initial contour into multiple segments according to the target detection frame, and each segment of the initial contour is separately input into the network for regression, so as to avoid matching errors between the predicted vertices and the real vertices. A new Backbone network is proposed in the contour optimization stage. Compared with the previous network, the Backbone can extract deeper features of the contour, and the predicted contour boundary is closer to the real boundary. Then, an edge attention module is introduced in the contour optimization stage to adjust the weight of each vertex in the regression process, forcing the vertices far away from the real contour to move faster. Finally, the coordinate iteration formula is used to obtain the target coordinates of multiple vertices corresponding to each segment of the optimized contour, so as to realize the accurate extraction of building objects from remote sensing images.

[0116] Other embodiments or specific implementations of the building object extraction system for remote sensing images of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0117] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0118] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

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

Claims

1. A method for extracting building objects from remote sensing images. It is characterized in that The building object extraction method of the remote sensing image comprises the following steps: Inputting the remote sensing image into the Backbone module in the target detection network for feature extraction to obtain a remote sensing image feature map, and performing building detection on the remote sensing image feature map to obtain multiple initial contours of the building object; Determine the contour feature vector and multiple original vertex coordinates corresponding to each segment of the initial contour; Inputting multiple contour feature vectors into a contour optimization network for vertex prediction respectively, and obtaining multiple vertex offsets corresponding to each segment of the optimized contour, wherein the contour optimization network is constructed by combining a Backbone module, a Fusion module, and a Prediction module; The remote sensing image feature map is processed by a contour attention module to obtain a contour boundary attention map, and bilinear interpolation is performed on the contour boundary attention map according to a plurality of original vertex coordinates corresponding to each segment of the initial contour to obtain a plurality of vertex weight coefficients corresponding to each segment of the initial contour; According to the multiple original vertex coordinates corresponding to each segment of the initial contour, the multiple vertex offsets corresponding to each segment of the optimized contour and the multiple vertex weight coefficients corresponding to each segment of the initial contour, the multiple vertex target coordinates corresponding to each segment of the optimized contour are obtained through a coordinate iteration formula; The building object is extracted from the remote sensing image based on a plurality of vertex target coordinates corresponding to each segment of the optimized contour.

2. The method according to claim 1, It is characterized in that The step of performing building detection on the remote sensing image feature map to obtain multiple initial contours of the building object includes: Downsampling the remote sensing image feature map to obtain a prediction heat map, a prediction bias map, and a prediction attribute map; Determine the geometric center coordinates of the building object through a heatmap head module according to the predicted heat map; Determine the center coordinates of the detection frame corresponding to the building object according to the geometric center coordinates; Determine the center coordinate offset of the detection frame through the offset head module according to the predicted bias map; Determine the detection box attribute information through the wh head module according to the predicted attribute graph; Generate a detection frame of the building object according to the detection frame center coordinates, the center coordinate offset and the detection frame attribute information; Based on the detection frame of the building object, multiple initial contours of the building object are obtained through vertex sampling.

3. The method according to claim 2, It is characterized in that The step of inputting a plurality of contour feature vectors into the contour optimization network for vertex prediction to obtain a plurality of vertex offsets corresponding to each segment of the optimized contour comprises: Input multiple contour feature vectors into the Backbone module in the contour optimization network to obtain contour feature information of different levels corresponding to each segment of the initial contour; The contour feature information of different levels corresponding to each segment of the initial contour is processed respectively by the Fusion module in the contour optimization network to obtain the contour feature information after pooling of each segment of the initial contour; According to the contour feature information after pooling of each segment of the initial contour, a plurality of vertex offsets corresponding to each segment of the optimized contour are obtained through the Predi ction module in the contour optimization network.

4. The method according to any one of claims 1 to 3, It is characterized in that The step of processing the remote sensing image feature map by a contour attention module to obtain a contour boundary attention map comprises: Performing a convolution process on the remote sensing image feature map through a contour attention module to obtain a contour boundary convolution map; The contour boundary convolution map is processed through a Sigmoid activation layer to obtain a contour boundary prediction map; Performing multi-layer convolution processing on the contour boundary prediction map to obtain a contour prediction convolution map; A contour boundary attention map is generated according to the contour prediction convolution map through the Sigmoid activation layer.

5. The method according to claim 4, It is characterized in that The step of obtaining the target coordinates of the vertices corresponding to each segment of the optimized contour by a coordinate iteration formula according to the coordinates of the vertices corresponding to each segment of the initial contour, the vertices offsets corresponding to each segment of the optimized contour, and the vertices weight coefficients corresponding to each segment of the initial contour comprises: According to the multiple vertex offsets corresponding to each segment of the optimized contour and the multiple vertex weight coefficients corresponding to each segment of the initial contour, the multiple vertex target offsets corresponding to each segment of the optimized contour are obtained through the vertex offset formula; The vertex offset formula is: (Δx ′ k ,Δy ′ k )=Atten(x k ,y k )*(Δx k ,Δy k ) Where k is the number of iterations, Atten(x k , x k ) is the k-th vertex weight coefficient, (Δx k , Δy k ) is the k-th vertex offset, (Δx′ k ,Δy′ k ) is the k-th vertex target offset; According to the multiple original vertex coordinates corresponding to each segment of the initial contour and the multiple vertex target offsets corresponding to each segment of the optimized contour, the multiple vertex target coordinates corresponding to each segment of the optimized contour are obtained through a coordinate iteration formula; The coordinate iteration formula is: In the formula, is the vertex target offset of point i at the k-1th time, (Δx k-1 ,Δy k-1 ) is the k-1th vertex offset, is the original vertex coordinate of point i at the k-1th time, is the vertex target coordinate of point i at the kth time.

6. A building object extraction system from remote sensing images, It is characterized in that The building object extraction system of the remote sensing image comprises: The initial module is used to input the remote sensing image into the Backbone module in the target detection network for feature extraction, obtain a remote sensing image feature map, and perform building detection on the remote sensing image feature map to obtain multiple initial contours of the building object; A determination module, used for determining the contour feature vector and multiple original vertex coordinates corresponding to each segment of the initial contour; An optimization module, used for respectively inputting a plurality of contour feature vectors into a contour optimization network for vertex prediction, and obtaining a plurality of vertex offsets corresponding to each segment of the optimized contour, wherein the contour optimization network is constructed by combining a Backbone module, a Fusion module, and a Prediction module; The optimization module is further used to process the remote sensing image feature map through the contour attention module to obtain a contour boundary attention map, and perform bilinear interpolation on the contour boundary attention map according to multiple original vertex coordinates corresponding to each segment of the initial contour to obtain multiple vertex weight coefficients corresponding to each segment of the initial contour; The optimization module is further used to obtain multiple vertex target coordinates corresponding to each segment of the optimized contour through a coordinate iteration formula according to multiple original vertex coordinates corresponding to each segment of the initial contour, multiple vertex offsets corresponding to each segment of the optimized contour, and multiple vertex weight coefficients corresponding to each segment of the initial contour; The extraction module is used to extract the building object from the remote sensing image based on the multiple vertex target coordinates corresponding to each segment of the optimized contour.

7. A device for extracting building objects from remote sensing images. It is characterized in that The device includes: a memory, a processor, and a building object extraction program for remote sensing images stored in the memory and executable on the processor, wherein the building object extraction program for remote sensing images is configured to implement the steps of the building object extraction method for remote sensing images as described in any one of claims 1 to 5.

8. A storage medium, It is characterized in that The storage medium stores a building object extraction program for remote sensing images, and when the building object extraction program for remote sensing images is executed by a processor, the steps of the building object extraction method for remote sensing images as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Improved instance segmentation method based on target contour

    CN113822905A

  • Remote sensing image building extraction method and based on deep learning and equipment

    CN113920147A

  • Transform-based optical remote sensing target detection method

    CN114821357A

  • Building contour extraction method and device

    CN117934524A

  • Method and system for performing segmentation of image having a sparsely distributed object

    US20190080456A1

Cited By

  • Building vector end-to-end extraction method and system based on state updating

    CN119991997A