Semantic segmentation-based unmanned aerial vehicle image georeferencing method, and related device

Through the UAV image geo-referencing method based on semantic segmentation, the semantic segmentation model is used to extract road feature points and combined with the semantic constraints of the reference map, which solves the problems of long feature matching time and waste of computing resources in UAV image geo-referencing. , achieving efficient and high-precision registration effects.

WO2024221946A1PCT designated stage expired Publication Date: 2024-10-31SHENZHEN INST OF ADVANCED TECH

Patent Information

Application Number
PCT/CN2023/137204
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2023-12-07
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing UAV image georeferencing methods have limitations, long feature matching time, and waste of computing resources.

Method used

A UAV image geo-referencing method based on semantic segmentation is used to calculate the attitude by obtaining the POS information of the UAV image. The trained semantic segmentation model is used to extract road feature points, and combined with the road semantic constraint results of the benchmark map. Feature point matching reduces redundant features, improves feature matching efficiency, eliminates mismatches, and achieves high-precision UAV image geo-referencing.

Benefits of technology

It effectively reduces the feature matching time, improves the registration accuracy, overcomes the problem of waste of computing resources in feature matching methods, and achieves efficient and high-precision geo-registration of UAV images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023137204_31102024_PF_FP_ABST
    Figure CN2023137204_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a semantic segmentation-based unmanned aerial vehicle image georeferencing method, and a related device. In the present invention, adding road semantic constraints to focus areas of concern for feature extraction on a road area can effectively reduce redundant features and improve feature matching efficiency, screening matched feature point pairs in a feature matching stage can effectively eliminate mismatching, so as to improve image registration precision, and a pixel corresponding relationship between an unmanned aerial vehicle image and a reference image, which is obtained by means of feature matching, and a mapping relationship between pixel coordinates of the reference image and geographic coordinates can be combined to finally solve geographic coordinates of the unmanned aerial vehicle image, thus achieving high-precision unmanned aerial vehicle image georeferencing.
Need to check novelty before this filing date? Find Prior Art

Description

A UAV image georegistration method based on semantic segmentation and related equipment Technical Field

[0001] The present invention relates to the field of computer software application technology, and in particular to a method, system, terminal and computer-readable storage medium for geo-registration of unmanned aerial vehicle (UAV) images based on semantic segmentation. Background Art

[0002] Currently, public space security monitoring is primarily achieved through the deployment of numerous surveillance devices, most of which have limited height and limited viewing angles. Despite widespread deployment, many blind spots remain, potentially posing numerous dangers. With the advancement of drone manufacturing technology, drones, with their efficiency, flexibility, and wide coverage, have offset the shortcomings of fixed surveillance equipment and are now playing a vital role in public safety.

[0003] Drone image georeferencing technology compares and calibrates drone images with existing reference maps (such as remote sensing maps and drone remote sensing images) to obtain a mapping relationship between drone image pixel coordinates and geographic coordinates. This technology is commonly used in fields such as topographic mapping and mapping, environmental monitoring, urban planning and management, and search and rescue, all of which require high-precision, high-resolution remote sensing data to support decision-making and management. At the same time, drone image georeferencing technology can also be used in the field of public safety, playing a role in locating the geographic location of emergencies and reflecting the location distribution of on-site personnel. This facilitates commanders' analysis of the incident scene, thereby improving the efficiency of incident handling and protecting people's lives and property.

[0004] With the advancement of computer vision technology, feature matching-based georegistration of UAV images has gradually become a mainstream approach. This method mitigates the impact of UAV parameter errors on registration accuracy, significantly improving the accuracy of UAV image georegistration. The basic idea behind this method is to first extract useful information from the two images to form feature descriptions. Based on these feature descriptions, a similarity metric and various constraints are then used to calculate the transformation relationship between the two images, thereby aligning them. Because some feature descriptions can incorporate multiple types of information, feature-based image georegistration methods are robust to interference such as noise, deformation, and occlusion.

[0005] Common feature-based image georegistration methods are categorized as line-based and point-based. Line features include roads, building edges, and target contours. Edge detection algorithms are a fundamental technique in image processing, used to extract edge information from images. For example, multi-sensor image registration methods are implemented by iteratively minimizing the objective function by updating the transformation parameters of the deformation. Based on a 3D joint histogram that contains both intensity and edge direction information, a new entropy-based objective function is proposed. To complement the entropy-based objective function, a weighting function is also introduced using a measure of edge direction overlap.

[0006] Point feature-based methods are widely used in image georegistration due to their fast computational speed and strong adaptability to grayscale, local occlusion, and noise. Feature point detection, feature point matching, and image transformation are the three main steps in point feature-based image georegistration. In recent years, numerous researchers have conducted research on point feature-based image georegistration methods and achieved fruitful results. For example, to address the low accuracy and efficiency of multi-source remote sensing image registration, the SIFT feature matching algorithm was improved by introducing a similarity metric based on matched feature vectors. By controlling the number and distribution of feature points, using affine transformation for coarse matching, and eliminating mismatched points, matching efficiency and performance were improved, resulting in superior registration accuracy. For example, a multi-scale DoG operator was used to extract and match local features in an image, followed by a mutual information-based optimization algorithm for image registration. To account for nonlinear differences, this algorithm also introduced local feature descriptors and a new distance metric function, thereby improving its robustness and accuracy. For example, a framework based on deep convolutional neural networks was proposed to improve the registration accuracy of aerial imagery. This framework uses the ORB algorithm to coarsely register aerial images and a U-Net semantic segmentation algorithm to extract and match meaningful shape information from the coarsely registered images. This framework can adaptively learn image features, providing more accurate registration results in different environments and scenarios. For example, the proposed deep learning-based remote sensing image registration framework uses a deep residual network to extract image features, effectively extracting feature information from the input image. The registration network then achieves accurate registration of the input image by applying a spatial transformation module to the feature map. For example, the SIFT algorithm is improved by re-dividing pixel regions and incorporating vector correlation coefficients. A random sample consistency algorithm is introduced to eliminate mismatched feature points. Finally, the improved image registration algorithm, a convolutional neural network-based homography matrix estimation model, and the video sensor's conformation equation are combined to complete drone video registration.

[0007] It can be seen from the above implementation scheme that since many edge detection algorithms need to be calculated based on the image itself, it cannot be guaranteed that relatively ideal edges can be extracted for all types of images, which limits the extraction of line features. In addition, if the resolution of the reference image and the image to be registered is very different, it may cause the edges and contours that appear in one image to not exist in the other image. Therefore, the image georegistration method based on line features has certain limitations. The UAV image georegistration method based on feature matching avoids the influence of UAV parameter errors on the registration accuracy, and improves the accuracy of UAV image georegistration to a certain extent. However, the area covered by the UAV image is usually only a small part of the reference map, and the number of features extracted from the reference map can be thousands of times the number of UAV image features. When performing feature matching, redundant features in the reference map can easily lead to feature mismatching, while increasing feature matching time and causing a waste of computing resources.

[0008] Therefore, the existing technology still needs to be improved and developed.

[0009] Summary of the Invention

[0010] The main purpose of the present invention is to provide a method, system, terminal and computer-readable storage medium for UAV image geo-registration based on semantic segmentation, aiming to solve the problems in the existing technology of large limitations of image geo-registration methods, long feature matching time and waste of computing resources.

[0011] To achieve the above object, the present invention provides a UAV image geo-registration method based on semantic segmentation, which comprises the following steps:

[0012] Obtaining POS information of the drone image, and performing attitude calculation based on the POS information to obtain an orthophoto image;

[0013] Inputting the orthophoto image into a trained semantic segmentation model, and outputting a road segmentation result according to the orthophoto image based on the semantic segmentation model;

[0014] Extracting feature points from the road segmentation result to obtain road feature points;

[0015] Acquire a reference map, crop and annotate the reference map to obtain a road semantic constraint result, extract feature points from the road semantic constraint result, and store the extracted feature points in a feature point database;

[0016] Perform feature point matching on the road feature points and the feature point database, and output a feature matching result between the drone image and the reference image;

[0017] According to the feature matching results, the matching relationship between the coordinates of the feature points of the drone image and the coordinates of the feature points of the reference image is obtained. The geographic coordinates corresponding to the coordinates of the feature points of the drone image-the coordinates of the feature points of the reference image-the coordinates of the feature points of the reference image are calculated to obtain the geographic coordinates of the drone image, so as to obtain a drone registered image with geographic coordinates.

[0018] In addition, to achieve the above-mentioned purpose, the present invention further provides a UAV image geo-referencing system based on semantic segmentation, wherein the UAV image geo-referencing system based on semantic segmentation includes:

[0019] An attitude calculation module is used to obtain the POS information of the drone image and perform attitude calculation based on the POS information to obtain an orthophoto image;

[0020] a semantic segmentation module, configured to input the orthophoto image into a trained semantic segmentation model and output a road segmentation result based on the orthophoto image based on the semantic segmentation model;

[0021] A feature extraction module is used to extract feature points from the road segmentation result to obtain road feature points;

[0022] a semantic constraint module, configured to obtain a reference image, crop and annotate the reference image to obtain a road semantic constraint result, extract feature points from the road semantic constraint result, and store the extracted feature points in a feature point database;

[0023] a feature matching module, configured to perform feature point matching between the road feature points and the feature point database, and output a feature matching result between the drone image and the reference image;

[0024] The coordinate calculation module is used to obtain the matching relationship between the coordinates of the feature points of the drone image and the coordinates of the feature points of the reference image based on the feature matching results, and to obtain the geographic coordinates of the drone image based on the geographic coordinates corresponding to the coordinates of the feature points of the drone image-the coordinates of the feature points of the reference image-the coordinates of the feature points of the reference image, so as to obtain a drone registration image with geographic coordinates.

[0025] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a semantic segmentation-based drone image geo-registration program stored on the memory and runnable on the processor, and when the semantic segmentation-based drone image geo-registration program is executed by the processor, the steps of the semantic segmentation-based drone image geo-registration method as described above are implemented.

[0026] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a drone image geo-registration program based on semantic segmentation, and when the drone image geo-registration program based on semantic segmentation is executed by a processor, the steps of the drone image geo-registration method based on semantic segmentation as described above are implemented.

[0027] In the present invention, POS information of a drone image is obtained, and posture calculation is performed according to the POS information to obtain an orthophoto image; the orthophoto image is input into a trained semantic segmentation model, and a road segmentation result is output according to the orthophoto image based on the semantic segmentation model; feature points are extracted from the road segmentation result to obtain road feature points; a reference map is obtained, the reference map is cropped and annotated to obtain a road semantic constraint result, feature points are extracted from the road semantic constraint result, and the extracted feature points are stored in a feature point database; feature point matching is performed on the road feature points and the feature point database, and a feature matching result of the drone image and the reference map is output; a matching relationship between the coordinates of the feature points of the drone image and the coordinates of the feature points of the reference map is obtained according to the feature matching result, and the geographic coordinates of the drone image are calculated according to the geographic coordinates corresponding to the coordinates of the feature points of the drone image-the coordinates of the feature points of the reference map-the coordinates of the feature points of the reference map, so as to obtain a drone registration image with geographic coordinates. The present invention focuses the feature extraction focus area on the road area by adding road semantic constraints, which can effectively reduce redundant features and improve feature matching efficiency. The matched feature point pairs are screened in the feature matching stage, which can effectively eliminate false matches and help improve the image registration accuracy. The pixel correspondence between the drone image and the reference map is obtained by feature matching. Combined with the mapping relationship between the pixel coordinates of the reference map and the geographic coordinates, the geographic coordinates of the drone image can be finally solved, thereby realizing high-precision drone image geographic registration. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] FIG1 is a flow chart of a preferred embodiment of a method for geo-registration of UAV images based on semantic segmentation according to the present invention;

[0029] FIG2 is a schematic diagram of a process for geo-registration of drone images in a preferred embodiment of the method for geo-registration of drone images based on semantic segmentation of the present invention;

[0030] FIG3 is a schematic diagram of an imaging model of a drone image in a preferred embodiment of the drone image georegistration method based on semantic segmentation of the present invention;

[0031] FIG4 is a schematic diagram of the structure of a semantic segmentation model (UNet network) currently used in a preferred embodiment of the semantic segmentation-based UAV image georegistration method of the present invention;

[0032] FIG5 is a schematic diagram of the structure of an improved semantic segmentation model (UNet network) in a preferred embodiment of the semantic segmentation-based UAV image georegistration method of the present invention;

[0033] FIG6 is a schematic diagram of detecting local scale space extreme points in a preferred embodiment of the UAV image georegistration method based on semantic segmentation of the present invention;

[0034] FIG7 is a schematic diagram of the main gradient direction in a preferred embodiment of the UAV image georegistration method based on semantic segmentation of the present invention;

[0035] FIG8 is a schematic diagram of key point descriptor generation in a preferred embodiment of the UAV image georegistration method based on semantic segmentation of the present invention;

[0036] FIG9 is a schematic diagram showing the principle of a preferred embodiment of a UAV image geo-registration system based on semantic segmentation according to the present invention;

[0037] FIG10 is a schematic diagram of an operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the present invention more clear and distinct, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0039] In order to more efficiently implement the image registration method based on feature matching, considering the differences between UAV images and reference images in imaging equipment and shooting time, road areas with small feature changes, wide area coverage and connectivity are selected as the key focus areas for feature matching. This paper proposes a UAV image geo-registration method based on semantic segmentation, which combines POS information with feature matching. By improving the UNet semantic segmentation network and adding road semantic constraints, high-precision UAV image geo-registration is achieved.

[0040] The UAV image geo-registration method based on semantic segmentation according to a preferred embodiment of the present invention is shown in FIG1 and FIG2 . The UAV image geo-registration method based on semantic segmentation comprises the following steps:

[0041] Step S10: Obtain POS information of the drone image, and perform attitude calculation based on the POS information to obtain an orthophoto image.

[0042] Specifically, in the image georegistration process, establishing a spatial correspondence between image points (pixels) and ground points is crucial. At the moment of aerial image acquisition, since the image point, the photographic center, and the corresponding ground point are coplanar, satisfying the spatial collinearity condition, the spatial mapping relationship between the image point and the corresponding ground point can be constructed using the collinearity condition equation. The imaging model of drone imagery is shown in Figure 3. The conversion process from image point pixel coordinates to geographic coordinates typically involves conversions between the image plane coordinate system, the image space coordinate system, the image space auxiliary coordinate system, and the ground measurement coordinate system.

[0043] If we assume that the coordinates of the image point a in the two-dimensional image plane coordinate system are (x, y), with the photographic center S as the origin, the x' and y' axes are parallel to the x and y axes of the image plane coordinate system respectively, and the z' axis coincides with the optical axis, and establish an image space coordinate system, then the image space coordinates of the image point a in the image space coordinate system are (x, y, -f), where f represents the focal length.

[0044] With the photography center S as the origin, establish an image space auxiliary coordinate system parallel to the ground measurement coordinate system. If the image space auxiliary coordinates of the image point a in the image space auxiliary coordinate system are (u, v, w), then the coordinate transformation relationship of the image point a from the image space coordinates (x, y, -f) to the image space auxiliary coordinates (u, v, w) is expressed as:

[0045] Among them, R is the rotation matrix, which is composed of direction cosine a i 、b i 、c i (i=1,2,3), a i 、b i 、c i (i=1,2,3) is the pitch angle in the image exterior orientation element The sine and cosine of the roll angle ω and the yaw angle κ are calculated as follows:

[0046] Or if the image space auxiliary coordinates (u, v, w) of the image point a are known, the image space coordinates (x, y, -f) can be obtained by inverse calculation:

[0047] Usually, the image space coordinates (x, y, -f) are known and the image space auxiliary coordinates (u, v, w) are calculated.

[0048] The ground survey coordinate system is a left-hand rectangular coordinate system. Its XY plane is the same as the plane rectangular coordinate of the Gauss-Krüger projection in geodetic surveying. The elevation is based on the Yellow Sea elevation system of my country. In the ground survey coordinate system, the coordinates of the image point a corresponding to the ground point A are (X A , Y A , Z A), the coordinates of the photography center S are (X S , Y S , Z S ), according to the principle of similar triangles, the image space auxiliary coordinates (u, v, w) of the image point a and the ground measurement coordinates (X A , Y A , Z A ) is:

[0049] Where λ is the proportional factor, satisfying

[0050] According to formulas (3) and (4), the collinearity condition equations of the image point, the photographic center and the corresponding ground point are obtained as follows:

[0051] According to formulas (3) and (4), the inverse formula of the collinearity condition equation is:

[0052] If the focal length f of the camera and the coordinates of the photography center S (X S , Y S , Z S ), pitch angle The roll angle ω and the yaw angle κ are calculated by solving the collinearity condition equation (5) to obtain the pixel coordinates x and y of the ground point in the UAV image. If the length and width of the UAV image are known, the inverse equation of the collinearity condition equation (6) is used to calculate the spatial coordinates of the four corner points of the UAV image corresponding to the ground point. This can preliminarily determine the rough positioning of the image coverage area and lay the foundation for further accurate image registration.

[0053] Step S20: input the orthophoto image into a trained semantic segmentation model, and output a road segmentation result based on the orthophoto image based on the semantic segmentation model.

[0054] Specifically, the present invention implements semantic segmentation of road areas based on the UNet network. The UNet network was proposed in 2015. It is a convolutional neural network architecture that is commonly used for image segmentation tasks in computer vision. It is a variant of FCN. It is simple, efficient, and can be trained from small data sets. The network structure is shown in Figure 4. It can be seen from the UNet network structure that UNet is an encoder-decoder structure. In the encoder, each downsampling module consists of two 3*3 convolutional layers (ReLU) and a 2*2 maximum pooling layer. Multiple downsampling modules are connected to form an encoder; in the decoder, each upsampling module consists of an upsampling convolutional layer, feature splicing, and two 3*3 convolutional layers (ReLU). Multiple upsampling modules are connected to form a decoder. The uniqueness of UNet is that the corresponding layer features are skipped during the encoding and decoding process, so that the network can combine low-order features with high-order features, enabling it to capture detailed information and overall context.

[0055] The present invention adds the ASPP module and the CA module to the UNet network feature extraction module, i.e., the encoder. The ASPP module can help the network better handle scale changes and the segmentation of objects of different scales. The CA module can help the network better focus on and utilize features that are meaningful to the segmentation task, thereby improving the performance of the network in practical applications and making the segmentation results more accurate and reliable.

[0056] The Atrous Spatial Pyramid Pooling (ASPP) module was first introduced in the DeepLabv2 network and is widely used in many advanced semantic segmentation models. This module is usually used as a feature extractor. It aims to extract multi-scale contextual information from the input image (i.e., orthophoto) by using parallel atrous convolution and global pooling layers with different rates. It is then used to generate dense pixel-level predictions of object classes in the image. Dense pixel-level prediction refers to a technique in computer vision that aims to segment the input image into different regions at the pixel level and predict the corresponding label or category for each pixel. This technique is often used in tasks such as image segmentation, semantic segmentation, and instance segmentation.

[0057] CoordAttention (CA) is an attention mechanism designed for lightweight networks, which further considers the input feature map (taking Figure 5 as an example, the input feature map is X 4,0Specifically, CoordAttention decomposes channel attention into two one-dimensional feature encoding processes with different directions: one-dimensional feature encoding process can capture long-range dependencies, and the other-dimensional feature encoding process can preserve position information. Therefore, the two feature maps generated by CoordAttention encode direction-aware and position-sensitive information respectively, which can be complementary applied to the input feature map to enhance the representation of the object of interest.

[0058] The structure of the improved UNet model (i.e., the semantic segmentation model used in the present invention) is shown in FIG5 , where A represents the ASPP module and C represents the CA module.

[0059] Step S30: extracting feature points from the road segmentation result to obtain road feature points.

[0060] Step S40: Acquire a reference map, crop and annotate the reference map to obtain a road semantic constraint result, extract feature points from the road semantic constraint result, and store the extracted feature points in a feature point database.

[0061] Specifically, the benchmark image is usually existing data, and preprocessing it can effectively improve the efficiency of the algorithm. The benchmark image preprocessing is divided into the following two steps:

[0062] (1) Road semantic constraints

[0063] Since most of the benchmark maps are satellite remote sensing images or drone low-altitude remote sensing images with high resolution and wide coverage, the present invention crops the benchmark map for the key focus area, and uses an image annotation tool (such as labelme) to annotate the cropped regional benchmark map to obtain the road semantic constraint result of the benchmark map.

[0064] (2) Pre-extraction of road feature points

[0065] Based on the road semantic constraint results obtained in the previous step, the SIFT algorithm is used to extract feature points from the road semantic constraint area of ​​the benchmark image, and the extracted feature points are stored in the feature point database. The advantage of this is that feature point extraction only needs to be performed once on the benchmark image. Through the rough positioning of the image coverage area obtained in step S10, the feature points of the benchmark image within the area can be quickly found in the feature point database, which is conducive to improving the efficiency of feature matching in the next step.

[0066] Step S50: performing feature point matching on the road feature points and the feature point database, and outputting a feature matching result between the UAV image and the reference image.

[0067] Specifically, the key focus areas of the benchmark image and the drone image are first selected. Since the road area in the image has small feature changes, wide area coverage and connectivity, the present invention selects the road area as the key focus area for feature matching, and uses semantic constraints to perform road semantic segmentation on the benchmark image and the drone image. Then, the road segmentation results are output based on the SIFT feature matching algorithm to obtain the feature matching results of the drone image and the benchmark image.

[0068] The scale-invariant feature transform (SIFT) algorithm is an algorithm used for key point detection and description in computer vision. The algorithm can extract local features of an image and is invariant to scale, rotation, and illumination. Therefore, it has been widely used in the field of computer vision.

[0069] The main implementation steps of the SIFT algorithm are as follows:

[0070] (1) Scale space extreme value detection

[0071] The SIFT algorithm uses a Gaussian difference pyramid to detect extreme points in an image at different scales. A Gaussian difference pyramid is formed by subtracting two adjacent layers of a Gaussian pyramid. Because the Gaussian function has different standard deviations at different scales, it can be used to represent image features at different scales. Within each scale space, the image is filtered using a Gaussian kernel function to generate a Gaussian pyramid. Next, the differences between adjacent Gaussian pyramids within each scale space are processed to generate a Gaussian difference pyramid. Next, local extreme points—local maxima or local minima—are found within the Gaussian difference pyramid. These extreme points typically correspond to edges and corners. As shown in Figure 6, the grayscale values ​​of a specific pixel and its surrounding pixels are detected and compared at different scale levels to determine whether a local extreme point exists.

[0072] (2) Key point positioning

[0073] For the detected local extreme points, the Gaussian difference response curve in scale space is used for more accurate positioning to determine their exact position and scale. Generally speaking, the pixels around the candidate feature points have relatively obvious gradient changes. Therefore, the accuracy of the key points can be improved by performing certain interpolation operations on the pixels around the candidate points. The expression for fitting the Gaussian difference response curve is:

[0074] Derivative formula (7) and set it equal to zero to find the local extreme point X:

[0075] The equation value D(X) corresponding to the local extreme point X is:

[0076] The D(X) value is calculated according to formula (8) and formula (9). This value plays an important role in removing key points with low contrast and instability. In practical applications, key points with low contrast and instability of |D(X)<0.03| are usually deleted.

[0077] (3) Direction allocation

[0078] A dominant direction is assigned to each keypoint to ensure that its descriptor is rotationally invariant. To achieve this, a gradient direction histogram is calculated within the region surrounding the keypoint, and its peak direction is found. Specifically, the pixels surrounding the keypoint are divided into several subregions. The direction and magnitude of the gradient are calculated within each subregion and projected into a 36-dimensional gradient direction histogram. The peak direction is then found from this histogram and used as the dominant direction of the keypoint, as shown in Figure 7.

[0079] Among them, the calculation of the gradient and direction of the key point is:

[0080] Auxiliary directions are set to enhance feature point matching. Auxiliary directions are selected based on their peak values ​​being 80% greater than the peak value of the primary direction. This means that in a gradient with multiple peaks, multiple keypoints with different directions may appear at the same location and scale. This improves the robustness and diversity of feature points, facilitating better image matching.

[0081] (4) Key point description

[0082] The descriptor of a keypoint is generated using the main direction of the keypoint and the gradient information of the surrounding pixels. The area surrounding the keypoint is divided into several subregions, and the gradient direction histogram is calculated within each subregion. These histograms are then concatenated to form the descriptor of the keypoint. Specifically, the pixels surrounding the keypoint are divided into several subregions, and the direction and magnitude of the gradient are calculated within each subregion and projected into a 128-dimensional vector. This vector is the descriptor of the keypoint, as shown in Figure 8. The generated keypoint descriptors are thresholded to remove values ​​exceeding a certain threshold, and then normalized to unit length to reduce the impact of illumination changes and increase the robustness of the algorithm.

[0083] (5) Feature point matching

[0084] By comparing the keypoint descriptors in the two images, the best match is found. Distance metrics, such as Euclidean distance or Hamming distance, can be used to measure the similarity between the two feature point descriptors. After finding the best match for each feature point in the other image, more robust methods, such as RANSAC (Random Sample Consensus), can be used to further select the correct matching point pairs.

[0085] Step S60: Obtain a matching relationship between the coordinates of the feature points of the drone image and the coordinates of the feature points of the reference image based on the feature matching results; and obtain the geographic coordinates of the drone image based on the geographic coordinates corresponding to the coordinates of the feature points of the drone image - the coordinates of the feature points of the reference image - the coordinates of the feature points of the reference image, so as to obtain a drone registered image with geographic coordinates.

[0086] Specifically, in the present invention, the reference map is a remote sensing image with known geographic coordinates, that is, the correspondence between the pixel coordinates of the reference map and the geographic coordinates is known. The feature matching results can be used to know the matching relationship between the coordinates of the feature points of the drone image and the coordinates of the feature points of the reference map. The geographic coordinates corresponding to the coordinates of the feature points of the drone image-the coordinates of the feature points of the reference map-the coordinates of the feature points of the reference map can be further calculated to realize the geographic registration of the drone image.

[0087] Since existing drone image geo-registration technology cannot meet the application needs of the public safety field, the present invention proposes a drone image geo-registration method based on semantic segmentation. This method uses drone POS information, image semantic segmentation, feature matching and other technical means. By adding road semantic constraints, the registration efficiency of the present invention method is faster and the registration accuracy is higher, which is conducive to the drone image geo-registration technology playing a greater role in the public safety field. In order to address the problem that the UNet network has poor segmentation performance in drone images with large differences in image clarity and quality, the present invention adds an ASPP module and a CA module to the UNet network feature extraction module, i.e., the encoder. The ASPP module can help the network better handle scale changes and the segmentation of objects of different scales. The CA module can help the network better focus on and utilize features that are meaningful to the segmentation task, thereby improving the performance of the network in practical applications and making the segmentation results more accurate and reliable.

[0088] The advantage of this invention lies in resolving the low registration accuracy and efficiency issues of existing drone image georegistration techniques. By combining drone POS information, image semantic segmentation, and feature matching, this approach overcomes the low registration accuracy caused by measurement and computational errors in drone POS information. Furthermore, to account for differences in imaging equipment and shooting time between drone images and reference images, this approach selects road areas with minimal feature variation, extensive regional coverage, and connectivity as key areas of focus for feature matching. By incorporating road semantic constraints, this approach overcomes the computational overhead and low registration efficiency inherent in feature matching methods, often caused by redundant feature points.

[0089] The semantic segmentation-based UAV image geo-registration method proposed in the present invention is composed of an improved UNet semantic segmentation network and a feature matching algorithm based on road semantic constraints. The improved UNet semantic segmentation network makes feature extraction more effective by adding the ASPP module and the CA module, thereby improving the model segmentation accuracy. By adding road semantic constraints to focus the area of ​​interest for feature extraction on the road area, this strategy can effectively reduce redundant features and improve feature matching efficiency. In the feature matching stage, the matched feature point pairs are screened by the RANSAC algorithm, which can effectively eliminate mismatches and help improve image registration accuracy. The pixel correspondence between the UAV image and the reference map is obtained by feature matching. Combined with the mapping relationship between the pixel coordinates of the reference map and the geographic coordinates, the geographic coordinates of the UAV image can finally be solved to achieve geo-registration of the UAV image.

[0090] Furthermore, as shown in FIG9 , based on the above-mentioned semantic segmentation-based UAV image geo-registration method, the present invention also provides a semantic segmentation-based UAV image geo-registration system, wherein the semantic segmentation-based UAV image geo-registration system includes:

[0091] The attitude calculation module 51 is used to obtain the POS information of the drone image and perform attitude calculation based on the POS information to obtain an orthophoto image;

[0092] A semantic segmentation module 52 is configured to input the orthoimage into a trained semantic segmentation model and output a road segmentation result based on the orthoimage based on the semantic segmentation model;

[0093] A feature extraction module 53 is used to extract feature points from the road segmentation result to obtain road feature points;

[0094] The semantic constraint module 54 is used to obtain a reference image, crop and annotate the reference image to obtain a road semantic constraint result, extract feature points from the road semantic constraint result, and store the extracted feature points in a feature point database;

[0095] A feature matching module 55 is configured to perform feature point matching between the road feature points and the feature point database, and output a feature matching result between the drone image and the reference image;

[0096] The coordinate calculation module 56 is used to obtain the matching relationship between the coordinates of the feature points of the drone image and the coordinates of the feature points of the reference image based on the feature matching results, and to obtain the geographic coordinates of the drone image based on the geographic coordinates corresponding to the coordinates of the feature points of the drone image-the coordinates of the feature points of the reference image-the coordinates of the feature points of the reference image, so as to obtain a drone registered image with geographic coordinates.

[0097] Furthermore, as shown in FIG10 , based on the semantic segmentation-based UAV image georegistration method and system, the present invention also provides a terminal, which includes a processor 10, a memory 20, and a display 30. FIG10 only shows some components of the terminal, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0098] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Furthermore, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a semantic segmentation-based drone image geo-registration program 40 is stored on the memory 20, and the semantic segmentation-based drone image geo-registration program 40 can be executed by the processor 10, thereby realizing the semantic segmentation-based drone image geo-registration method in the present application.

[0099] In some embodiments, the processor 10 can be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the semantic segmentation-based drone image geo-registration method.

[0100] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0101] In one embodiment, when the processor 10 executes the semantic segmentation-based UAV image geo-registration program 40 in the memory 20 , the steps of the semantic segmentation-based UAV image geo-registration method are implemented.

[0102] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a semantic segmentation-based drone image geo-registration program, and when the semantic segmentation-based drone image geo-registration program is executed by a processor, the steps of the semantic segmentation-based drone image geo-registration method as described above are implemented.

[0103] In summary, the present invention provides a method for geo-registration of drone images based on semantic segmentation and related equipment, the method comprising: obtaining POS information of a drone image, performing posture calculation based on the POS information to obtain an orthophoto image; inputting the orthophoto image into a trained semantic segmentation model, and outputting a road segmentation result based on the orthophoto image based on the semantic segmentation model; extracting feature points from the road segmentation result to obtain road feature points; obtaining a reference map, cropping and annotating the reference map to obtain a road semantic constraint result, extracting feature points from the road semantic constraint result, and storing the extracted feature points in a feature point database; performing feature point matching on the road feature points with the feature point database, and outputting a feature matching result between the drone image and the reference map; obtaining a matching relationship between the coordinates of the drone image feature points and the coordinates of the reference map feature points based on the feature matching result, and obtaining the geographic coordinates of the drone image based on the geographic coordinates corresponding to the drone image feature point coordinates-the reference map feature point coordinates-the reference map feature point coordinates, so as to obtain a drone registered image with geographic coordinates. The present invention focuses the feature extraction focus area on the road area by adding road semantic constraints, which can effectively reduce redundant features and improve feature matching efficiency. The matched feature point pairs are screened in the feature matching stage, which can effectively eliminate false matches and help improve the image registration accuracy. The pixel correspondence between the drone image and the reference map is obtained by feature matching. Combined with the mapping relationship between the pixel coordinates of the reference map and the geographic coordinates, the geographic coordinates of the drone image can be finally solved, thereby realizing high-precision drone image geographic registration.

[0104] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or terminal comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or terminal comprising the element.

[0105] Of course, those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware (such as a processor, controller, etc.) through a computer program. The program can be stored in a computer-readable storage medium that can be read by a computer. When the program is executed, it can include the processes in the above-described method embodiments. The computer-readable storage medium can be a memory, a magnetic disk, an optical disk, etc.

[0106] It should be understood that the application of the present invention is not limited to the above examples. For those skilled in the art, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for georeferencing of UAV images based on semantic segmentation, characterized in that: The UAV image geo-registration method based on semantic segmentation includes: Obtaining POS information of the drone image, and performing attitude calculation according to the POS information to obtain an orthophoto image; Inputting the orthophoto image into a trained semantic segmentation model, and outputting a road segmentation result according to the orthophoto image based on the semantic segmentation model; Extracting feature points from the road segmentation result to obtain road feature points; Acquire a reference image, crop and annotate the reference image to obtain a road semantic constraint result, extract feature points from the road semantic constraint result, and store the extracted feature points in a feature point database; Perform feature point matching on the road feature points and the feature point database, and output feature matching results between the drone image and the reference image; The matching relationship between the coordinates of the feature points of the drone image and the coordinates of the feature points of the reference image is obtained according to the feature matching results. The geographic coordinates of the drone image are calculated according to the geographic coordinates corresponding to the coordinates of the feature points of the drone image-the coordinates of the feature points of the reference image-the coordinates of the feature points of the reference image, so as to obtain a drone registration image with geographic coordinates.

2. The method for geo-registration of UAV images based on semantic segmentation according to claim 1, characterized in that: The obtaining of POS information of the drone image and performing attitude calculation according to the POS information to obtain the orthophoto image specifically includes: If the coordinates of the image point a in the two-dimensional image plane coordinate system are (x, y), the photography center S is taken as the origin, the x' and y' axes are parallel to the x and y axes of the image plane coordinate system respectively, and the z' axis coincides with the optical axis, the image space coordinate system is established, then the image space coordinates of the image point a in the image space coordinate system are (x, y, -f), where f represents the focal length; With the photography center S as the origin, establish an image space auxiliary coordinate system parallel to the ground measurement coordinate system. If the image space auxiliary coordinates of the image point a in the image space auxiliary coordinate system are (u, v, w), then the coordinate transformation relationship of the image point a from the image space coordinates (x, y, -f) to the image space auxiliary coordinates (u, v, w) is expressed as: Among them, R is the rotation matrix, which is composed of direction cosine a i , b i 、c i (i=1,2,3) composition, a i , b i 、c i (i=1,2,3) is the pitch angle in the image exterior orientation element The sine and cosine of the roll angle ω and the yaw angle κ are calculated as follows: Or if the image space auxiliary coordinates (u, v, w) of the image point a are known, the image space coordinates (x, y, -f): In the ground measurement coordinate system, the coordinates of image point a corresponding to ground point A are (X A , Y A , Z A ), the coordinates of the photography center S are (X S , Y S , Z S ), according to the principle of similar triangles, the image space auxiliary coordinates (u, v, w) of image point a and the ground measurement coordinates (X A , Y A , Z A ) is: Among them, λ is the proportional factor, satisfying According to formulas (3) and (4), the collinearity condition equation of the image point, the photographic center and the corresponding ground point is: According to formulas (3) and (4), the inverse formula of the collinearity condition equation is: If the focal length f of the camera and the coordinates of the photography center S (X S , Y S , Z S ), pitch angle Roll angle ω and yaw angle κ are obtained by solving the collinearity condition equation (5) to obtain the pixel coordinates x and y of the ground point in the UAV image. If the length and width of the UAV image are known, the inverse equation (6) of the collinearity condition equation is used to calculate the spatial coordinates of the four corner points of the UAV image corresponding to the ground point, so as to preliminarily determine the rough positioning of the image coverage area.

3. The method for geo-registration of UAV images based on semantic segmentation according to claim 1, characterized in that: The semantic segmentation model includes an encoder and a decoder; Each downsampling module in the encoder is composed of two 3*3 convolutional layers and one 2*2 maximum pooling layer, and multiple downsampling modules are connected to form an encoder; Each upsampling module in the decoder is composed of an upsampling convolution layer, feature splicing and two 3*3 convolution layers, and multiple upsampling modules are connected to form a decoder.

4. The method for geo-registration of UAV images based on semantic segmentation according to claim 3, characterized in that: The semantic segmentation-based UAV image geo-registration method further includes: Adding an ASPP module and a CA module to the encoder; The ASPP module is used to extract multi-scale context information from the orthoimage by using parallel dilated convolutions and global pooling layers with different rates, and to generate dense pixel-level predictions of object classes in the image; The CA module is used to generate two feature maps, which are used to encode direction perception and position sensitive information respectively.

5. The method for geo-registration of UAV images based on semantic segmentation according to claim 1, characterized in that: The obtaining of the reference image, cropping and labeling the reference image to obtain a road semantic constraint result, extracting feature points from the road semantic constraint result, and storing the extracted feature points in a feature point database specifically includes: Acquire a reference image, crop the reference image for a key focus area, and annotate the cropped reference image using an image annotation tool to obtain a road semantic constraint result; Based on the road semantic constraint result, a SIFT algorithm is used to extract feature points from the road semantic constraint result, and the extracted feature points are stored in a feature point database.

6. The method for geo-registration of UAV images based on semantic segmentation according to claim 1, characterized in that: The matching of the road feature points with the feature point database and outputting the feature matching result of the drone image and the reference image specifically includes: In each scale space, a Gaussian kernel function is used to filter the image to generate a Gaussian pyramid, adjacent Gaussian pyramid differences in each scale space are operated to generate a Gaussian difference pyramid, and local extreme value points are found in the Gaussian difference pyramid, where the local extreme value points include local maximum value points or local minimum value points; For the detected local extreme points, the Gaussian difference response curve in the scale space is used for positioning to determine the precise position and scale. A certain interpolation operation is performed on the pixels around the candidate feature points. The expression of the fitted Gaussian difference response curve is: Derivative formula (7) and set it equal to zero to find the local extreme point X: The equation value D(X) corresponding to the local extreme point X is: Calculate the D(X) value according to formula (8) and formula (9), and delete the key points with low contrast and unstable |D(X)<0.03|; The pixels around the key point are divided into several sub-regions. The direction and magnitude of the gradient are calculated in each sub-region and projected into a 36-dimensional gradient direction histogram. The peak direction is found from the histogram and used as the main direction of the key point. The gradient and direction of the key point are calculated as follows: Divide the surrounding area of ​​the key point into several sub-areas, calculate the gradient direction histogram in each sub-area, connect all the histograms to form the descriptor of the key point, perform threshold processing on the generated descriptor of the key point, remove the value exceeding the preset threshold, and normalize it to unit length; The similarity between the two feature point descriptors is measured based on the distance measurement method. After finding the best match of each feature point in the other image, the correct matching point pairs are screened out.

7. The method for geo-registration of UAV images based on semantic segmentation according to claim 6, characterized in that: The RANSAC algorithm is used to screen the matching feature point pairs.

8. A UAV image geo-referencing system based on semantic segmentation, characterized in that: The UAV image geo-referencing system based on semantic segmentation includes: An attitude calculation module is used to obtain the POS information of the drone image and perform attitude calculation according to the POS information to obtain an orthophoto image; A semantic segmentation module, used for inputting the orthophoto image into a trained semantic segmentation model, and outputting a road segmentation result according to the orthophoto image based on the semantic segmentation model; A feature extraction module, used to extract feature points from the road segmentation result to obtain road feature points; A semantic constraint module is used to obtain a reference image, crop and annotate the reference image to obtain a road semantic constraint result, extract feature points from the road semantic constraint result, and store the extracted feature points in a feature point database; A feature matching module, used to perform feature point matching between the road feature points and the feature point database, and output a feature matching result between the drone image and the reference image; The coordinate solution module is used to obtain the matching relationship between the coordinates of the feature points of the drone image and the coordinates of the feature points of the reference image according to the feature matching results, and to obtain the geographic coordinates of the drone image according to the geographic coordinates corresponding to the coordinates of the feature points of the drone image-the coordinates of the feature points of the reference image-the coordinates of the feature points of the reference image, so as to obtain a drone registration image with geographic coordinates.

9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a semantic segmentation-based UAV image geo-registration program stored in the memory and executable on the processor. When the semantic segmentation-based UAV image geo-registration program is executed by the processor, the steps of the semantic segmentation-based UAV image geo-registration method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a drone image geo-referencing program based on semantic segmentation, and when the drone image geo-referencing program based on semantic segmentation is executed by a processor, the steps of the drone image geo-referencing method based on semantic segmentation are implemented as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Unmanned plane image geometric processing method giving consideration to precision and speed

    CN107527328A

  • Cross-domain road navigation mark registration algorithm fused with attention mechanism

    CN111832399A

  • Unmanned aerial vehicle positioning method based on image registration

    CN112419374A

  • Feature point matching method and system based on semantic information

    CN113159043A

  • Unmanned aerial vehicle image geographical registration method based on semantic segmentation and related equipment

    CN116485856A

Cited By

  • Risk-grading unmanned aerial vehicle railway foreign matter invasion open detection method

    CN119693831A

  • Field route extraction method and system based on seedling strip segmentation

    CN119723110A

  • A cooking equipment temperature control system based on machine vision

    CN119741702A

  • Unmanned aerial vehicle visual positioning method based on twin network

    CN119810193A

  • Unmanned aerial vehicle relative pose estimation method and device based on multi-task image matching

    CN119810200A