A method and system for all-weather geolocation of unmanned aerial vehicles without GNSS operation
By registering and fusion processing of visible light and thermal infrared images of the drone, combining convolutional neural network and feature extraction module, the challenge of positioning in GNSS-free environment is solved, and the high accuracy of the drone under different imaging conditions is achieved Geographical positioning.
Patent Information
- Application Number
- CN202310814661.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-07-04
AI Technical Summary
The existing drone positioning technology cannot take into account positioning tasks under different imaging conditions in GNSS-free environments, especially in different lights, cloudy weather or satellite imaging blind spots.
By acquiring visible light images and thermal infrared images for registration and fusion processing, the image edge features are extracted using a convolutional neural network, and intermediate image features are generated by combining COA and SST modules, and finally the geographic coordinates of the drone are obtained through a classifier.
It realizes the acquisition of high-quality drone images under all weather conditions, ensuring that drones can perform geolocation in real time and accurately in GNSS-free environments, and supports all-weather drone patrol and navigation tasks.
Smart Images

Figure CN116797660B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a multi-source remote sensing data fusion technology, and in particular to an all-weather geographic positioning method and system based on an unmanned aerial vehicle (UAV) without the need for GNSS. Background Art
[0002] UAV positioning technology is the research foundation and key of UAV inspection and autonomous navigation. It usually guides flight based on the onboard global satellite navigation GNSS (Global Navigation Satellite Sytem) and combines methods such as inertial sensors, radio, cameras, geomagnetic and other modules. However, in tunnels, forests, and combat environments, GNSS signals will be blocked by dense obstacles or electromagnetic interference, and stable and accurate UAV positioning cannot be achieved. In complex electromagnetic environments where GNSS stops working, limited positioning capabilities seriously hinder the widespread application of UAVs. Therefore, exploring the positioning of UAVs for all-weather use under GNSS termination conditions is one of the hot research directions in the future.
[0003] There are two main methods for locating robots in environments where GNSS cannot be used. The first method uses a beacon transmitter on a drone to send the drone's position in real time. The second method relies on external perception sensors installed on the robot, such as LIDAR or optical imaging sensors, to detect visual feature points of representative landmarks based on relevant data, and then calculate the robot's position incrementally based on continuous three-dimensional scans or camera image frames. Comparing the two methods based on LiDAR three-dimensional scanning and two-dimensional visual sensor imaging, the latter obviously has the cost advantage of being more widely used.
[0004] At present, in the work of positioning in a non-GNSS environment, the mainstream is to use image sensors to obtain drone views and match them one by one with locally uploaded satellite images. However, most of these current methods are unable to take into account positioning tasks under different imaging conditions, such as different lighting conditions during the day and night, foggy weather with poor visibility, or rapid registration and positioning in satellite imaging blind areas. This means that the richness of the optical properties of the imaging data and the efficiency of the matching algorithm determine the quality of the drone positioning system. In summary, the current drone non-GNSS positioning system cannot cope with various challenges in real life, and there is an urgent need for a drone non-GNSS positioning system that can be used for all-weather, multi-view image retrieval.
[0005] The Chinese invention patent with application number 202010686373.4 is a method for matching UAV images and SAR satellite images based on edge structure information. The specific technical solution is as follows: first, the edges of the SAR satellite image are extracted using the traditional Ratio operator, and then superimposed on the original SAR image to enhance the SAR image. The edge image of the UAV optical / infrared image and the enhanced SAR satellite image are extracted using a convolutional neural network, and then the deep semantic features of the edge image are extracted using a new convolutional neural network. The deep features of the edge image are then matched for similarity to obtain a matching heat map of the UAV image and the SAR satellite image. Finally, the position of the UAV image in the SAR satellite image is found according to the area with the highest value in the heat map. The technical solution provided by the present invention has taken further improvements in the acquisition and processing of images. The present invention obtains high-quality UAV images in all weather conditions by acquiring visible light images and thermal infrared images for registration and fusion processing. Summary of the invention
[0006] In view of the problem that the existing UAV positioning technology cannot take into account the positioning tasks under different imaging conditions, the present invention provides an all-weather geographic positioning method and system for UAVs based on the non-GNSS operation. The technical solution adopted by the present invention is:
[0007] The first aspect of the present invention provides an all-weather geolocation method for a drone without GNSS operation, comprising the following steps:
[0008] S1, acquiring visible light images and thermal infrared images;
[0009] S2, performing smoothing noise reduction and color enhancement preprocessing on the visible light image and the thermal infrared image;
[0010] S3, performing edge extraction processing on the preprocessed visible light image and thermal infrared image respectively to obtain a corresponding optimal edge map;
[0011] S4, performing feature matching and purification processing on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, obtaining a transformation relationship between the visible light image and the thermal infrared image, and obtaining the registered visible light image and the thermal infrared image through the transformation relationship;
[0012] S5, extracting, calculating and fusing the registered visible light image and thermal infrared image to finally obtain the UAV image;
[0013] S6, the drone image and the multi-view reference image respectively obtain corresponding intermediate image features using a preset COA module and an SST module;
[0014] S7, respectively generating a feature vector of the drone image and a feature vector of the multi-view reference image through the position perception information in the corresponding intermediate image features;
[0015] S8, inputting the feature vector of the drone image and the feature vector of the multi-view reference image into a classifier to obtain a predicted label value, and obtaining the geographic coordinates of the corresponding multi-view reference image through the predicted label value;
[0016] S9, calculating the transformation relationship between the geographic coordinates of the reference image and the drone image, and obtaining the geographic coordinates of the drone through the transformation relationship.
[0017] Compared with the existing technology, the method of the present invention can fully retain the advantages of high resolution of visible light images and clear boundaries of thermal infrared images at night, can be used around the clock, and solve the problem of inconsistency between thermal infrared and visible light imaging principles.
[0018] As a preferred solution, before step S1, the following steps are further included:
[0019] The multi-view reference image is uploaded locally, and the multi-view reference image includes geographic coordinate information.
[0020] As a preferred solution, in step S2, the color enhancement preprocessing is specifically:
[0021] The brightness of the visible light image after smoothing and denoising is evaluated and calculated, and the average color saturation of each pixel in the visible light image is calculated. If the average value is lower than the threshold, the image is judged to be too dark, and color enhancement is performed using a deep network based on style transfer.
[0022] As a preferred solution, step S4 is specifically as follows:
[0023] Feature point detection and preliminary pairing of feature points are performed on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, and then RANSAC purification processing is performed on the preliminary pairing results, and finally the transformation relationship between the visible light and thermal infrared images is obtained; and the aligned visible light image and thermal infrared image are obtained through the transformation relationship.
[0024] As a preferred solution, the step S5 specifically further includes the following steps:
[0025] S51, performing feature extraction processing on the registered visible light image and thermal infrared image to obtain multi-scale features;
[0026] S52, performing image depth structure extraction processing on the multi-scale features to obtain a visible light image depth structure map and a thermal infrared image depth structure map, specifically:
[0027]
[0028] Among them, struct i,c,j Represents struct i The jth pixel of the cth channel of represents the Sobel operator, dec i,c,j represents the jth pixel of the cth channel of the i-th scale of the extracted multi-scale feature dec, express The global average pooling result of ;
[0029] S53, calculating and processing the visible light image depth structure map and the thermal infrared image depth structure map to obtain depth image prior knowledge, specifically:
[0030]
[0031] in, represents the i-th scale of the image depth structure map extracted from the visible light image and thermal infrared image respectively; p i Show Inconsistency, in the region where the visible light and thermal infrared structures are consistent i is 1, on the contrary, it is 0 in the severely inconsistent areas, and p in other areas i is set to the hyperparameter λ (0<λ<1), indicating that there is no significant inconsistency;
[0032] S54, multiplying the depth image prior knowledge with the thermal infrared image depth structure map to obtain a consistent thermal infrared image depth structure map, specifically:
[0033]
[0034] Among them, p i Prior knowledge of deep images;
[0035] S55, fusing the consistent thermal infrared image depth structure map with the visible light image depth structure map to obtain a drone image.
[0036] As a preferred solution, in step S6, the COA module performs the following steps on the input image:
[0037] A1, the input image is input into the convolution module with a convolution kernel size of 3×3 to generate a feature map X. Then, the feature map X smoothed by the convolution module with a convolution kernel size of 1×1 is mapped to the 64-channel feature space to obtain the feature X'∈F (C×H×W) , and generate three variables F K =Conv(x),F Q =Conv(x),FV =Conv(x), where Conv represents a convolution with a kernel size of 1×1, and F K represents local static context information, F K Local static context information can be obtained; for F K and F Q Perform a Concat operation to generate the attention matrix F through two convolution operations with a convolution kernel size of 1×1 R , specifically:
[0038] F R =Conv(Concat(F K , F Q ));
[0039] A2, for the attention matrix F R and F V Perform element-by-element matrix multiplication to obtain the global feature F * , specifically:
[0040]
[0041] A3, the local static context information F K With the global feature F * Fusion, generate and output F′, specifically:
[0042]
[0043] A4, F′ is convolved with a convolution kernel size of 1×1 and 256 channels to obtain the first feature map F U .
[0044] As a preferred solution, in step S6, the SST module performs the following steps on the input image:
[0045] B1, divide the image into j blocks and perform linear projection to flatten each block one-dimensional vector to obtain the image encoding vector V j , j∈{1, 2, …, n}, and then create a learnable signature to represent each block and compare it with V j put together to aggregate the global context embedded at all positions and generate the feature embedding V E ;
[0046] B2, the feature embedding V E Through the normalization module and the multi-head attention module, the corresponding output encoding vector V is obtained C , specifically:
[0047] V C =Concat(Att1(Norm(VE )),Att2(Norm(V E )),...,Att n (Norm(V E )));
[0048] Among them, Norm means normalization, Att means multi-head attention module;
[0049] B3, performs residual integration operation, and outputs the encoding vector V C Add to the input encoding vector V E To generate the output feature map V CE , specifically:
[0050]
[0051] in, Represents element-by-element addition operation;
[0052] B4, in the DP module, the feature map V CE Perform group convolution operations, each group is responsible for extracting only one channel feature; then perform point convolution to integrate the features of each channel and concatenate them through the Concat operation; at the same time, the input feature V CE Mapped to the MLP module to preserve V CE Finally, an element-wise addition operation is performed between the outputs of the DP module and the MLP module, which generates the output feature V D , specifically:
[0053] V D =DP(V CE )+MLP(Norm(V CE ));
[0054] B5, will output feature V D Add to V CE The output encoding vector V S , specifically:
[0055]
[0056] in, Represents element-by-element addition operation;
[0057] B6, the encoding vector V S The input is sent to the fully connected layer for nonlinear mapping to obtain the feature map F1. In addition, the SST module is designed as a parallel structure, and the final second feature map output is represented as F i , i∈{1,2}.
[0058] The second feature maps F1 and F2 obtained by the SST module are connected through channel shuffling to obtain the third feature map F3, and the first feature map F obtained by the COA module is U The features are enhanced in the spatial dimension, and then the third feature map F3 and the enhanced first feature map are operated by element-by-element addition operation, and finally F is obtained. O ; F O Input to COA module to obtain F′ U , input F1 and F2 into the SST module again to obtain F′1 and F′2, repeat the above operation twice, and finally obtain the intermediate image feature F corresponding to the input image UAv .
[0059] As a preferred solution, step S7 specifically further includes:
[0060] The intermediate image features are segmented by a pre-trained LPN model, and then an average pooling operation is performed on the position-aware features obtained on each branch to obtain a 2048-dimensional feature vector.
[0061] As a preferred solution, step S8 is specifically as follows:
[0062] The 2048-dimensional feature vector is input into the classifier to obtain a 701-dimensional feature vector, and the MCP losses of all blocks are added to the optimization module, and the predicted category label value is obtained according to the result of the classifier; the corresponding multi-view reference image is found through the predicted category label value and its geographic coordinates are obtained.
[0063] The second aspect of the present invention also provides an all-weather geographic positioning system based on a drone that does not require GNSS operation, comprising an image acquisition unit, an image preprocessing unit, an edge extraction unit, an image registration unit, a drone image generation unit, an intermediate image feature extraction unit, a feature vector acquisition unit, a reference geographic coordinate acquisition unit, and a drone geographic coordinate acquisition unit connected in sequence;
[0064] The image acquisition unit is used to acquire visible light images and thermal infrared images;
[0065] The image preprocessing unit is used to perform smoothing noise reduction and color enhancement preprocessing on the visible light image and the thermal infrared image;
[0066] The edge extraction unit is used to perform edge extraction processing on the preprocessed visible light image and thermal infrared image respectively to obtain the corresponding optimal edge map;
[0067] The image registration unit is used to perform feature matching and purification processing on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, to obtain the transformation relationship between the visible light image and the thermal infrared image, and to obtain the registered visible light image and thermal infrared image through the transformation relationship;
[0068] The drone image generation unit is used to extract, calculate and fuse the registered visible light image and thermal infrared image to finally obtain the drone image;
[0069] The intermediate image feature extraction unit is used to obtain corresponding intermediate image features from the drone image and the multi-view reference image using a preset COA module and an SST module respectively;
[0070] The feature vector acquisition unit is used to generate a feature vector of the drone image and a feature vector of the multi-view reference image respectively through the position perception information in the corresponding intermediate image features;
[0071] The reference geographic coordinate acquisition unit is used to input the feature vector of the drone image and the feature vector of the multi-view reference image into the classifier to obtain a predicted label value, and obtain the corresponding geographic coordinates of the multi-view reference image through the predicted label value;
[0072] The UAV geographic coordinate acquisition unit is used to calculate the transformation relationship between the geographic coordinates of the reference image and the UAV image, and obtain the geographic coordinates of the UAV through the transformation relationship.
[0073] The beneficial effects of the present invention are:
[0074] The present invention realizes the acquisition of high-quality UAV images in all weather conditions by registering and fusing visible light images and thermal infrared images; through cross-view geolocation technology, real-time geolocation of UAVs is achieved without the need for GNSS working conditions, thereby enabling subsequent all-weather UAV inspection, navigation and other tasks to obtain high-precision real-time UAV positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 A flowchart of a method for all-weather geolocation of a UAV without GNSS operation provided by an embodiment of the present invention;
[0076] Figure 2 A schematic diagram of the process of fusing a visible light image and a thermal infrared image provided by an embodiment of the present invention;
[0077] Figure 3 A schematic diagram of the principle flow of a depth extraction module provided in an embodiment of the present invention;
[0078] Figure 4A schematic diagram of the image fusion process of the feature extraction module and the image fusion module provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0079] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;
[0080] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0081] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0082] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0083] In addition, in the description of this application, unless otherwise specified, "multiple" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0084] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0085] Example 1
[0086] Please refer to Figures 1 to 4 , a method for all-weather geolocation of a UAV based on working without GNSS, comprising the following steps:
[0087] S1, acquiring visible light images and thermal infrared images;
[0088] In a specific embodiment, before step S1, the method further includes:
[0089] The multi-view reference image is uploaded locally, and the multi-view reference image includes geographic coordinate information.
[0090] Specifically, the multi-view reference images include satellite images and street view images.
[0091] S2, performing smoothing noise reduction and color enhancement preprocessing on the visible light image and the thermal infrared image;
[0092] In a specific embodiment, in step S2, the color enhancement preprocessing is specifically:
[0093] The brightness of the visible light image after smoothing and denoising is evaluated and calculated, and the average color saturation of each pixel in the visible light image is calculated. If the average value is lower than the threshold, the image is judged to be too dark, and color enhancement is performed using a deep network based on style transfer.
[0094] S3, performing edge extraction processing on the preprocessed visible light image and thermal infrared image respectively to obtain a corresponding optimal edge map;
[0095] S4, performing feature matching and purification processing on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, obtaining a transformation relationship between the visible light image and the thermal infrared image, and obtaining the registered visible light image and the thermal infrared image through the transformation relationship;
[0096] In a specific embodiment, the step S4 is specifically as follows:
[0097] Feature point detection and preliminary pairing of feature points are performed on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, and then RANSAC purification processing is performed on the preliminary pairing results, and finally the transformation relationship between the visible light and thermal infrared images is obtained; and the aligned visible light image and thermal infrared image are obtained through the transformation relationship.
[0098] S5, extracting, calculating and fusing the registered visible light image and thermal infrared image to finally obtain the UAV image;
[0099] In a specific embodiment, the step S5 further includes the following steps:
[0100] S51, performing feature extraction processing on the registered visible light image and thermal infrared image to obtain multi-scale features;
[0101] Specifically, step S51 is performed in a feature extraction module, which consists of a convolution layer and four encoding blocks. Each encoding block contains two convolution layers and a maximum pooling layer. Multi-scale features of different scales can be extracted through the feature extraction module.
[0102] S52, performing image depth structure extraction processing on the multi-scale features to obtain a visible light image depth structure map and a thermal infrared image depth structure map, specifically:
[0103]
[0104] Among them, struct i,c,j Represents struct i The jth pixel of the cth channel of represents the Sobel operator, dec i,c,j represents the jth pixel of the cth channel of the i-th scale of the extracted multi-scale feature dec, express The global average pooling result of ;
[0105] Specifically, the visible light image depth structure map and the thermal infrared image depth structure map contain multi-scale features of structural information. The different scale features of the registered visible light image and thermal infrared image are respectively input into the depth extraction module to obtain the visible light image depth structure map and the thermal infrared image depth structure map. A pre-trained autoencoder model is used to generate supervision information, and the supervised depth extraction module generates high-quality visible light image depth structure map and thermal infrared image depth structure map.
[0106] S53, calculating and processing the visible light image depth structure map and the thermal infrared image depth structure map to obtain depth image prior knowledge, specifically:
[0107]
[0108] in, represents the i-th scale of the image depth structure map extracted from the visible light image and thermal infrared image respectively; p i Show Inconsistency, in the region where the visible light and thermal infrared structures are consistent i is 1, on the contrary, it is 0 in the severely inconsistent areas, and p in other areas i is set to the hyperparameter λ (0<λ<1), indicating that there is no significant inconsistency;
[0109] S54, multiplying the depth image prior knowledge with the thermal infrared image depth structure map to obtain a consistent thermal infrared image depth structure map, specifically:
[0110]
[0111] Among them, p i Prior knowledge of deep images;
[0112] S55, fusing the consistent thermal infrared image depth structure map with the visible light image depth structure map to obtain a drone image;
[0113] Specifically, the consistent thermal infrared image depth structure map and the visible light image depth structure map are input into an image fusion module for image fusion. The image fusion module includes six decoding blocks and a convolutional layer. The decoding block includes two convolutional layers. The six decoding blocks are connected through a nested structure to avoid the semantic gap between the feature extraction module and the image fusion module.
[0114] S6, the drone image and the multi-view reference image respectively obtain corresponding intermediate image features using a preset COA module and an SST module;
[0115] In a specific embodiment, in step S6, the COA module performs the following steps on the input image:
[0116] A1, the input image is input into the convolution module with a convolution kernel size of 3×3 to generate a feature map X. Then, the feature map X smoothed by the convolution module with a convolution kernel size of 1×1 is mapped to the 64-channel feature space to obtain the feature X'∈F (C×H×W) , and generate three variables F K =Conv(x),F Q =Conv(x),F V =Conv(x), where Conv represents a convolution with a kernel size of 1×1, and F K represents local static context information, F K Local static context information can be obtained; for F K and F Q Perform a Concat operation to generate the attention matrix F through two convolution operations with a convolution kernel size of 1×1 R , specifically:
[0117] F R =Conv(Concat(F K , F Q ));
[0118] A2, for the attention matrix F R and F V Perform element-by-element matrix multiplication to obtain the global feature F *, specifically:
[0119]
[0120] A3, the local static context information F K With the global feature F * Fusion, generate and output F′, specifically:
[0121]
[0122] A4, F′ is convolved with a convolution kernel size of 1×1 and 256 channels to obtain the first feature map F U .
[0123] In a specific embodiment, in step S6, the SST module performs the following steps on the input image:
[0124] B1, divide the image into j blocks and perform linear projection to flatten each block one-dimensional vector to obtain the image encoding vector V j , j∈{1, 2, …, n}, and then create a learnable signature to represent each block and compare it with V j put together to aggregate the global context embedded at all positions and generate the feature embedding V E ;
[0125] B2, the feature embedding V E Through the normalization module and the multi-head attention module, the corresponding output encoding vector V is obtained C , specifically:
[0126] V C =Concat(Att1(Norm(V E )),Att2(Norm(V E )),...,Att n (Norm(V E )));
[0127] Among them, Norm means normalization, Att means multi-head attention module;
[0128] B3, performs residual integration operation, and outputs the encoding vector V C Add to the input encoding vector V E To generate the output feature map V CE , specifically:
[0129]
[0130] in, Represents element-by-element addition operation;
[0131] B4, in the DP module, the feature map V CE Perform group convolution operations, each group is responsible for extracting only one channel feature; then perform point convolution to integrate the features of each channel and concatenate them through the Concat operation; at the same time, the input feature V Ce Mapped to the MLP module to preserve V CE Finally, an element-wise addition operation is performed between the outputs of the DP module and the MLP module, which generates the output feature V D , specifically:
[0132] V D =DP(V CE )+MLP(Norm(V CE ));
[0133] B5, will output feature V D Add to V CE The output encoding vector V S , specifically:
[0134]
[0135] in, Represents element-by-element addition operation;
[0136] B6, the encoding vector V S The input is sent to the fully connected layer for nonlinear mapping to obtain the feature map F1. In addition, the SST module is designed as a parallel structure, and the final second feature map output is represented as F i , i∈{1,2}.
[0137] The second feature maps F1 and F2 obtained by the SST module are connected through channel shuffling to obtain the third feature map F3, and the first feature map F obtained by the COA module is U The features are enhanced in the spatial dimension, and then the third feature map F3 and the enhanced first feature map are operated by element-by-element addition operation, and finally F is obtained. O ; F O Input to COA module to obtain F′ U , input F1 and F2 into the SST module again to obtain F′1 and F′2, repeat the above operation twice, and finally obtain the intermediate image feature F corresponding to the input image UAV .
[0138] S7, respectively generating a feature vector of the drone image and a feature vector of the multi-view reference image through the position perception information in the corresponding intermediate image features;
[0139] In a specific embodiment, the step S7 specifically further includes:
[0140] The intermediate image features are segmented by a pre-trained LPN model, and then an average pooling operation is performed on the position-aware features obtained on each branch to obtain a 2048-dimensional feature vector.
[0141] S8, inputting the feature vector of the drone image and the feature vector of the multi-view reference image into a classifier to obtain a predicted label value, and obtaining the geographic coordinates of the corresponding multi-view reference image through the predicted label value;
[0142] In a specific embodiment, the 2048-dimensional feature vector is input into a classifier to obtain a 701-dimensional feature vector, and the MCP losses of all blocks are added to the optimization module, and the predicted category label value is obtained according to the result of the classifier; the corresponding multi-view reference image is found through the predicted category label value and its geographic coordinates are obtained.
[0143] S9, calculating the transformation relationship between the geographic coordinates of the reference image and the drone image, and obtaining the geographic coordinates of the drone through the transformation relationship.
[0144] Example 2
[0145] An all-weather geographic positioning system for unmanned aerial vehicles that does not require GNSS operation, comprising an image acquisition unit, an image preprocessing unit, an edge extraction unit, an image registration unit, an unmanned aerial vehicle image generation unit, an intermediate image feature extraction unit, a feature vector acquisition unit, a reference geographic coordinate acquisition unit, and an unmanned aerial vehicle geographic coordinate acquisition unit that are connected in sequence;
[0146] The image acquisition unit is used to acquire visible light images and thermal infrared images;
[0147] The image preprocessing unit is used to perform smoothing noise reduction and color enhancement preprocessing on the visible light image and the thermal infrared image;
[0148] The edge extraction unit is used to perform edge extraction processing on the preprocessed visible light image and thermal infrared image respectively to obtain the corresponding optimal edge map;
[0149] The image registration unit is used to perform feature matching and purification processing on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, to obtain the transformation relationship between the visible light image and the thermal infrared image, and to obtain the registered visible light image and thermal infrared image through the transformation relationship;
[0150] The drone image generation unit is used to extract, calculate and fuse the registered visible light image and thermal infrared image to finally obtain the drone image;
[0151] Specifically, the drone image generation unit includes a feature extraction module, a depth extraction module and an image fusion module.
[0152] The intermediate image feature extraction unit is used to obtain corresponding intermediate image features from the drone image and the multi-view reference image using a preset COA module and an SST module respectively;
[0153] Specifically, the intermediate image feature extraction unit includes a COA module and an SST module;
[0154] The COA module includes a convolution module with a convolution kernel size of 3×3 and a convolution module with a convolution kernel size of 1×1;
[0155] The SST module includes a normalization module, a multi-head attention module, a DP module, an MLP module and a fully connected layer.
[0156] The feature vector acquisition unit is used to generate a feature vector of the drone image and a feature vector of the multi-view reference image respectively through the position perception information in the corresponding intermediate image features;
[0157] The reference geographic coordinate acquisition unit is used to input the feature vector of the drone image and the feature vector of the multi-view reference image into the classifier to obtain a predicted label value, and obtain the corresponding geographic coordinates of the multi-view reference image through the predicted label value;
[0158] The UAV geographic coordinate acquisition unit is used to calculate the transformation relationship between the geographic coordinates of the reference image and the UAV image, and obtain the geographic coordinates of the UAV through the transformation relationship.
[0159] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for all-weather geolocation of unmanned aerial vehicles without GNSS operation, characterized in that: The following steps are involved: S1, acquiring visible light images and thermal infrared images; S2, performing smoothing, noise reduction and color enhancement preprocessing on the visible light image and the thermal infrared image; S3, performing edge extraction processing on the preprocessed visible light image and thermal infrared image respectively to obtain a corresponding optimal edge map; S4, performing feature matching and purification processing on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, obtaining a transformation relationship between the visible light image and the thermal infrared image, and obtaining the registered visible light image and the thermal infrared image through the transformation relationship; S5, extracting, calculating and fusing the registered visible light image and thermal infrared image to finally obtain the UAV image; S6, the drone image and the multi-view reference image respectively obtain corresponding intermediate image features using a preset COA module and an SST module; S7, respectively generating a feature vector of the drone image and a feature vector of the multi-view reference image through the position perception information in the corresponding intermediate image features; S8, inputting the feature vector of the drone image and the feature vector of the multi-view reference image into a classifier to obtain a predicted label value, and obtaining the geographic coordinates of the corresponding multi-view reference image through the predicted label value; S9, calculating the transformation relationship between the geographic coordinates of the reference image and the drone image, and obtaining the geographic coordinates of the drone through the transformation relationship; In step S6, the COA module performs the following steps on the input image: A1: Input the input image to the convolution module with a convolution kernel size of 3×3 to generate the feature map X. Then, the feature map X smoothed by the convolution module with a convolution kernel size of 1×1 is mapped to the 64-channel feature space to obtain the feature X′∈F. (C×H×W) , and generate three variables F K =Conv(x),F Q =Conv(x),F V =Conv(x), where Conv represents a convolution with a kernel size of 1×1, and F K represents local static context information, F K Local static context information can be obtained; for F K and F Q Perform a Concat operation to generate the attention matrix F through two convolution operations with a convolution kernel size of 1×1 R , specifically: F R =Conv(Concat(F K ,F Q )); A2, for the attention matrix F R and F V Perform element-by-element matrix multiplication to obtain the global feature F*, specifically: A3, the local static context information F K With the global feature F * Fusion, generate and output F′, specifically: A4, F′ is convolved with a convolution kernel size of 1×1 and 256 channels to obtain the first feature map F U ; In step S6, the SST module performs the following steps on the input image: B1, divide the image into j blocks and perform linear projection to flatten each block one-dimensional vector to obtain the image encoding vector V j , j∈{1, 2, …, n}, and then create a learnable signature to represent each block and compare it with V j put together to aggregate the global context embedded at all positions and generate the feature embedding V E ; B2, the feature embedding V E Through the normalization module and the multi-head attention module, the corresponding output encoding vector V is obtained C , specifically: V C =Concat(Att1(Norm(V E )),At2(Norm(V E )),...,To n (Norm(V E ))); Among them, Norm means normalization, Att means multi-head attention module; B3, performs residual integration operation, and outputs the encoding vector V C Add to the input encoding vector V E To generate the output feature map V CE , specifically: in, Represents element-by-element addition operation; B4, in the DP module, the feature map V CE Perform group convolution operations, each group is responsible for extracting only one channel feature; then perform point convolution to integrate the features of each channel and concatenate them through the Concat operation; at the same time, the input feature V CE Mapped to the MLP module to preserve V CE Finally, an element-wise addition operation is performed between the outputs of the DP module and the MLP module, which generates the output feature V D , specifically: In D =DP(V CE )+MLP(Norm(V CE )); B5, will output feature V D Add to V CE The output encoding vector V S , specifically: in, Represents element-by-element addition operation; B6, the encoding vector V S The input is sent to the fully connected layer for nonlinear mapping to obtain the feature map F1. In addition, the SST module is designed as a parallel structure, and the final second feature map output is represented as F i , i∈{1,2}; The second feature maps F1 and F2 obtained by the SST module are connected through channel shuffling to obtain the third feature map F3, and the first feature map F obtained by the COA module is U The features are enhanced in the spatial dimension, and then the third feature map F3 and the enhanced first feature map are operated by element-by-element addition operation, and finally F is obtained. O ; F O Input to COA module to obtain F′ U , input F1 and F2 into the SST module again to obtain F′1 and F′2, repeat the above operation twice, and finally obtain the intermediate image feature F corresponding to the input image UAV .
2. The all-weather geolocation method based on a UAV without GNSS operation according to claim 1, characterized in that: Before step S1, the method further includes: The multi-view reference image is uploaded locally, and the multi-view reference image includes geographic coordinate information.
3. The all-weather geolocation method based on a UAV without GNSS operation according to claim 1, characterized in that: In step S2, the color enhancement preprocessing is specifically as follows: The brightness of the visible light image after smoothing and denoising is evaluated and calculated, and the average color saturation of each pixel in the visible light image is calculated. If the average value is lower than the threshold, the image is judged to be too dark, and color enhancement is performed using a deep network based on style transfer.
4. The all-weather geolocation method based on a UAV without GNSS operation according to claim 1, characterized in that: The step S4 is specifically as follows: Feature point detection and preliminary pairing of feature points are performed on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, and then RANSAC purification processing is performed on the preliminary pairing results, and finally the transformation relationship between the visible light and thermal infrared images is obtained; and the aligned visible light image and thermal infrared image are obtained through the transformation relationship.
5. The all-weather geolocation method based on a UAV without GNSS operation according to claim 1, characterized in that: The step S5 specifically further comprises the following steps: S5 1, performing feature extraction processing on the registered visible light image and thermal infrared image to obtain multi-scale features; S52, performing image depth structure extraction processing on the multi-scale features to obtain a visible light image depth structure map and a thermal infrared image depth structure map, specifically: Among them, struct i,c,j Represents struct i The jth pixel of the cth channel of represents the Sobel operator, dec i,c,j represents the jth pixel of the cth channel of the i-th scale of the extracted multi-scale feature dec, express The global average pooling result of ; S53, calculating and processing the visible light image depth structure map and the thermal infrared image depth structure map to obtain depth image prior knowledge, specifically: in, represents the i-th scale of the image depth structure map extracted from the visible light image and thermal infrared image respectively; p i Show Inconsistency, in the region where the visible light and thermal infrared structures are consistent i is 1, on the contrary, it is 0 in the severely inconsistent areas, and p in other areas i is set to the hyperparameter λ (0<λ<1), indicating that there is no significant inconsistency; S54, multiplying the depth image prior knowledge with the thermal infrared image depth structure map to obtain a consistent thermal infrared image depth structure map, specifically: Among them, p i Prior knowledge of deep images; S55, fusing the consistent thermal infrared image depth structure map with the visible light image depth structure map to obtain a drone image.
6. The all-weather geolocation method based on a UAV without GNSS operation according to claim 1, characterized in that: The step S7 specifically includes: The intermediate image features are segmented by a pre-trained LPN model, and then an average pooling operation is performed on the position-aware features obtained on each branch to obtain a 2048-dimensional feature vector.
7. The all-weather geolocation method based on a UAV without GNSS operation according to claim 6, characterized in that: The step S8 is specifically as follows: The 2048-dimensional feature vector is input into the classifier to obtain a 701-dimensional feature vector, and the MCP losses of all blocks are added to the optimization module, and the predicted category label value is obtained according to the result of the classifier; the corresponding multi-view reference image is found through the predicted category label value and its geographic coordinates are obtained.
8. An all-weather geo-positioning system based on a drone that does not require GNSS operation, characterized in that: It includes an image acquisition unit, an image preprocessing unit, an edge extraction unit, an image registration unit, a drone image generation unit, an intermediate image feature extraction unit, a feature vector acquisition unit, a reference geographic coordinate acquisition unit, and a drone geographic coordinate acquisition unit, which are connected in sequence; The image acquisition unit is used to acquire visible light images and thermal infrared images; The image preprocessing unit is used to perform smoothing noise reduction and color enhancement preprocessing on the visible light image and the thermal infrared image; The edge extraction unit is used to perform edge extraction processing on the preprocessed visible light image and thermal infrared image respectively to obtain the corresponding optimal edge map; The image registration unit is used to perform feature matching and purification processing on the best edge maps corresponding to the visible light image and the thermal infrared image respectively, to obtain the transformation relationship between the visible light image and the thermal infrared image, and to obtain the registered visible light image and thermal infrared image through the transformation relationship; The drone image generation unit is used to extract, calculate and fuse the registered visible light image and thermal infrared image to finally obtain the drone image; The intermediate image feature extraction unit is used to obtain corresponding intermediate image features from the drone image and the multi-view reference image using a preset COA module and an SST module respectively; The feature vector acquisition unit is used to generate a feature vector of the drone image and a feature vector of the multi-view reference image respectively through the position perception information in the corresponding intermediate image features; The reference geographic coordinate acquisition unit is used to input the feature vector of the drone image and the feature vector of the multi-view reference image into the classifier to obtain a predicted label value, and obtain the corresponding geographic coordinates of the multi-view reference image through the predicted label value; The UAV geographic coordinate acquisition unit is used to calculate the transformation relationship between the geographic coordinates of the reference image and the UAV image, and obtain the geographic coordinates of the UAV through the transformation relationship; The COA module performs the following steps on the input image: A1: Input the input image to the convolution module with a convolution kernel size of 3×3 to generate the feature map X. Then, the feature map X smoothed by the convolution module with a convolution kernel size of 1×1 is mapped to the 64-channel feature space to obtain the feature X′∈F. (C×H×W) , and generate three variables F K =Conv(x),F Q =Conv(x),F V =Conv(x), where Conv represents a convolution with a kernel size of 1×1, and F K represents local static context information, F K Local static context information can be obtained; for F K and F Q Perform a Concat operation to generate the attention matrix F through two convolution operations with a convolution kernel size of 1×1 R , specifically: F R =Conv(Concat(F K ,F Q )); A2, for the attention matrix F R and F V Perform element-by-element matrix multiplication to obtain the global feature F*, specifically: A3, the local static context information F K With the global feature F * Fusion, generate and output F′, specifically: A4, F′ is convolved with a convolution kernel size of 1×1 and 256 channels to obtain the first feature map F U ; The SST module performs the following steps on the input image: B1, divide the image into j blocks and perform linear projection to flatten each block one-dimensional vector to obtain the image encoding vector V j , j∈{1, 2, …, n}, and then create a learnable signature to represent each block and compare it with V j put together to aggregate the global context embedded at all positions and generate the feature embedding V E ; B2, the feature embedding V E Through the normalization module and the multi-head attention module, the corresponding output encoding vector V is obtained C , specifically: V C =Concat(Att1(Norm(V E )),At2(Norm(V E )),...,To n (Norm(V E ))); Among them, Norm means normalization, Att means multi-head attention module; B3, performs residual integration operation, and outputs the encoding vector V C Add to the input encoding vector V E To generate the output feature map V CE , specifically: in, Represents element-by-element addition operation; B4, in the DP module, the feature map V CE Perform group convolution operations, each group is responsible for extracting only one channel feature; then perform point convolution to integrate the features of each channel and concatenate them through the Concat operation; at the same time, the input feature V CE Mapped to the MLP module to preserve V CE Finally, an element-wise addition operation is performed between the outputs of the DP module and the MLP module, which generates the output feature V D , specifically: In D =DP(V CE )+MLP(Norm(V CE )); B5, will output feature V D Add to V CE The output encoding vector V S , specifically: in, Represents element-by-element addition operation; B6, the encoding vector V S The input is sent to the fully connected layer for nonlinear mapping to obtain the feature map F1. In addition, the SST module is designed as a parallel structure, and the final second feature map output is represented as F i , i∈{1,2}; The second feature maps F1 and F2 obtained by the SST module are connected through channel shuffling to obtain the third feature map F3, and the first feature map F obtained by the COA module is U The features are enhanced in the spatial dimension, and then the third feature map F3 and the enhanced first feature map are operated by element-by-element addition operation, and finally F is obtained. O ; F O Input to COA module to obtain F′ U , input F1 and F2 into the SST module again to obtain F′1 and F′2, repeat the above operation twice, and finally obtain the intermediate image feature F corresponding to the input image UAV .
