Extraction of arrow tip and its device

Through style transfer and super-resolution technology, the accuracy and stability problems of arrow tip extraction in satellite images are solved, and efficient arrow tip positioning and extraction are achieved, which is suitable for large-scale image processing.

CN113920439BActive Publication Date: 2024-09-06QIANXUN SPATIAL INTELLIGENCE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010663505.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-10
Publication Date
2024-09-06
Estimated Expiration
2040-07-10

AI Technical Summary

Technical Problem

The existing technology has difficulties in accurately locating and extracting road arrow points in satellite images, mainly due to the instability caused by low image pixel accuracy, large brightness changes and reliance on manual selection, as well as the accuracy caused by traditional computer vision methods relying on source image features. Unstable.

Method used

Build a style conversion model to convert satellite image style into aerial image style, and build a super-resolution model to convert low-resolution aerial images into high-resolution images. Combined with contour extraction, area filtering and center point calculation, through style conversion and super-resolution Rate technology improves the extraction accuracy of arrow tip points.

Benefits of technology

It improves the extraction accuracy and stability of arrow tip points, ensures the accurate positioning of arrow tip points at different angles and areas, reduces the dependence and cost of manual selection, and achieves efficient large-scale image processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113920439B
    Figure CN113920439B
Patent Text Reader

Abstract

The present application relates to the field of satellite navigation technology, and discloses a method and device for extracting arrow tip points, the method comprising: constructing a style conversion model, the style conversion model being used to convert the style of a satellite image into the style of an aerial image; constructing a super-resolution model, the super-resolution model being used to convert a low-resolution aerial image into a high-resolution aerial image; acquiring a satellite image to be identified and converting the satellite image into a grayscale image, extracting arrows in the grayscale image and determining the type of arrows; importing the grayscale image into the style conversion model and the super-resolution model to generate a grayscale image in the style of a high-resolution aerial image; converting the grayscale image into a binary image and extracting the contour of the binary image, calculating the vertices and the center of the contour, and determining the position of the arrow tip according to the positions of the vertices and the center.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of satellite navigation technology, and in particular to satellite image processing technology. Background Art

[0002] In the processing of remote sensing images, accurate positioning and identification of objects is a major application direction. One of the more typical application scenarios is the identification and accurate positioning of printed materials on the road, especially arrows. When locating the tip of a road arrow in a satellite image, the recognition result is relatively poor due to the low pixel accuracy of the satellite image. In addition, since the brightness of the satellite image is affected by the angle of the acquisition satellite and meteorological conditions, the brightness of the printed arrows on roads in different areas and the contrast with the surrounding road colors will vary greatly, which further increases the difficulty of accurately identifying and locating the tip of the arrow on the road in the image.

[0003] At present, in applications involving ground prints in satellite images, manual methods are often used for selection. Since the manual selection process is extremely dependent on the subjective judgment of the selector, it is difficult to obtain a unified standard, resulting in different selection accuracies among different selectors. In addition, due to the low speed and high labor cost of manual selection, it is difficult to perform large-scale arrow tip extraction. Based on the above two reasons, the image positioning accuracy of ground prints, especially arrow tip points, cannot be stably output. Moreover, large-scale operation extraction is impossible.

[0004] On the other hand, the extraction scheme based on traditional computer vision methods relies more on the source image features of satellite images, which makes the image unstable when extracting arrows from different satellite shooting angles and different areas. Moreover, due to the limitation of the pixels of the image itself, the output value accuracy of the final arrow tip is also relatively low. For the latter problem, a traditional solution is to use an interpolation-based solution to process the image super-resolution, and then perform a cusp extraction operation based on the processed image. However, since this super-resolution processing solution is a solution that sacrifices the clarity of the image, it actually cannot improve the accuracy of arrow tip positioning. On the contrary, due to the use of interpolation, the pixel changes of the edge of the arrow are smoother, and the edge features are not obvious, which is more likely to lead to the failure of edge extraction or the instability of the extraction process, affecting the final arrow tip positioning effect.

[0005] Therefore, in practical applications, a high-precision method for extracting arrow tips from satellite images is urgently needed to extract as many ground arrow tip positions in the image as possible while ensuring the extraction accuracy, and provide better image positioning output for other applications based on arrow positions. Summary of the invention

[0006] The purpose of the present application is to provide a method and device for extracting arrow tip points from satellite images, which can identify road arrow tip points with higher efficiency and accuracy.

[0007] One embodiment of the present application discloses a method for extracting the tip of an arrow, comprising:

[0008] Constructing a style transfer model, wherein the style transfer model is used to transfer the style of the satellite image to the style of the aerial image;

[0009] Constructing a super-resolution model, wherein the super-resolution model is used to convert a low-resolution aerial image into a high-resolution aerial image;

[0010] Acquire a satellite image to be identified and convert the satellite image into a grayscale image, extract arrows from the grayscale image and determine the type of the arrows;

[0011] Importing the grayscale image into the style conversion model and the super-resolution model to generate a high-resolution grayscale image of the aerial image style;

[0012] The grayscale image is converted into a binary image and the contour of the binary image is extracted, the vertices and the center of the contour are calculated, and the position of the arrow tip is determined according to the positions of the vertices and the center.

[0013] In a preferred embodiment, the step of converting the grayscale image into a binary image and extracting the contour of the binary image, calculating the vertices and the center of the contour, and determining the position of the arrow tip according to the positions of the vertices and the center further comprises:

[0014] Cut out a central image from the grayscale image of the high-resolution aerial image style, where the central image is one quarter of the grayscale image;

[0015] Extracting the OTSU threshold of the central image as a set threshold, and converting the grayscale image of the high-resolution aerial image style into a binary image according to the set threshold;

[0016] Extracting the outline of the binary image;

[0017] Calculate the top, bottom, leftmost and rightmost vertices of the contour;

[0018] Calculate the center of the contour according to the four vertices;

[0019] Take two vertices that are farther from the center and recalculate the center of the contour using the center points of the two vertices, and draw circles using the two center points between the two farther vertices and the recalculated center as the centers of the circles;

[0020] If the arrow is a straight arrow, one of the two farther vertices corresponding to the one with more pixel points in the two circles is taken as the tip of the arrow. If the arrow is a straight arrow with a turn, one of the two farther vertices corresponding to the one with fewer pixel points in the two circles is taken as the tip of the arrow.

[0021] In a preferred example, the step of extracting the contour of the binary image further includes: calculating the area of ​​the contour, and when the area is greater than a first threshold or less than a second threshold, determining that the central image does not include an arrow.

[0022] In a preferred example, the arrow types include straight arrows and straight arrows with turns.

[0023] In a preferred embodiment, the step of constructing a style transfer model further includes:

[0024] Get satellite-style imagery and aerial-style imagery;

[0025] The same number of samples are captured on the satellite style image and the aerial style image respectively, and the ratio of the size of the captured satellite style image to the size of the captured aerial style image is equal to the ratio of the resolution of the satellite style image to the resolution of the aerial style image;

[0026] The CycleGAN algorithm, the Neural Style algorithm or the PixtoPix algorithm is used to perform model training on the sample.

[0027] In a preferred embodiment, the step of constructing a super-resolution model further comprises:

[0028] Adjusting the size of the intercepted aerial style image to be the same as the size of the intercepted satellite style image;

[0029] Using the captured aviation style image and the adjusted captured aviation style image as a training pair;

[0030] Use bidirectional LSTM or adversarial network method for model training.

[0031] In a preferred example, the ratio of the resolution of the satellite style image to the resolution of the aerial style image ranges from 2 to 5.

[0032] In a preferred embodiment, the steps of obtaining a satellite image to be identified and converting the satellite image into a grayscale image, extracting arrows in the grayscale image and determining the type of the arrows further include:

[0033] Cropping the satellite image to be marked and converting it into a grayscale image;

[0034] Using a positioning model to identify and classify arrows in the grayscale image;

[0035] Computer vision methods are used to verify the arrows.

[0036] In a preferred example, the step of cropping the satellite image to be identified and converting it into a grayscale image further includes: cropping the satellite image to be identified to the same size as the intercepted satellite style image.

[0037] Another embodiment of the present application further discloses a device for extracting the tip of an arrow, comprising:

[0038] A style conversion model construction unit, wherein the style conversion model is used to convert the style of the satellite image into the style of the aerial image;

[0039] A super-resolution model construction unit, wherein the super-resolution model is used to convert a low-resolution aerial image into a high-resolution aerial image;

[0040] an arrow type recognition unit, configured to obtain a satellite image to be recognized and convert the satellite image into a grayscale image, extract arrows from the grayscale image and determine the type of arrows;

[0041] a conversion unit configured to import the grayscale image into the style conversion model and the super-resolution model to generate a high-resolution grayscale image of the style of the aerial image;

[0042] The cusp extraction unit is configured to convert the grayscale image into a binary image and extract the contour of the binary image, calculate the vertices and the center of the contour, and determine the position of the arrow tip according to the positions of the vertices and the center.

[0043] This patent proposes a solution for high-precision calculation of arrow tips of road prints in satellite images, which has the following beneficial effects:

[0044] 1) Depending on the available training examples, paired or unpaired aerial photographs and satellite images are used to train the style transfer model to convert satellite images into a clearer aerial photograph style. The style transfer model obtained under the paired training set condition has higher clarity and is less prone to boundary distortions that are common in style transfer, solving the problem that objects the size of an arrow are difficult to identify due to the low resolution of satellite images.

[0045] 2) Performing super-resolution operations on satellite images converted into aerial photo style can further improve the accuracy of the cusp extraction algorithm while improving the processing accuracy of the original images.

[0046] 3) Through the contour extraction, area filtering, boundary point extraction and center point secondary extraction scheme designed by arrow characteristics, the arrow tip for different arrow properties is obtained, so as to obtain the arrow tip with the highest accuracy while ensuring the confidence.

[0047] A large number of technical features are recorded in the specification of this application, which are distributed in various technical solutions. If all possible combinations of technical features of this application (i.e., technical solutions) are to be listed, the specification will be too long. In order to avoid this problem, the various technical features disclosed in the above-mentioned invention content of this application, the various technical features disclosed in the various embodiments and examples below, and the various technical features disclosed in the accompanying drawings can be freely combined with each other to form various new technical solutions (these technical solutions are all deemed to have been recorded in this specification), unless the combination of such technical features is technically infeasible. For example, in one example, feature A+B+C is disclosed, and in another example, feature A+B+D+E is disclosed, and features C and D are equivalent technical means that play the same role. Technically, only one can be used, and it is impossible to use them at the same time. Feature E can be combined with feature C technically. Then, the solution of A+B+C+D should not be deemed to have been recorded because it is technically infeasible, and the solution of A+B+C+E should be deemed to have been recorded. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a schematic diagram of the process of extracting the tip of an arrow according to the first embodiment of the present application;

[0049] Figure 2 It is a schematic structural diagram of an arrow tip extraction device according to the second embodiment of the present application. DETAILED DESCRIPTION

[0050] In the following description, many technical details are provided to help readers better understand the present application. However, those skilled in the art can understand that the technical solution claimed in the present application can be implemented even without these technical details and various changes and modifications based on the following embodiments.

[0051] Description of some concepts:

[0052] Style transfer: The main style (i.e., characteristic features) of an image changes or switches.

[0053] Super-resolution: Super-resolution is the process of improving the resolution of the original image through hardware or software methods. The process of obtaining a high-resolution image through a series of low-resolution images is super-resolution reconstruction.

[0054] OTSU: The maximum inter-class variance method was proposed by Japanese scholar Otsu in 1979. It is an adaptive threshold determination method, also known as the Otsu method, or OTSU for short. It is a global binarization algorithm that divides the image into two parts, the foreground and the background, based on the grayscale characteristics of the image. When the optimal threshold is taken, the difference between the two parts should be the largest. The standard used to measure the difference in the OTSU algorithm is the more common maximum inter-class variance. The larger the inter-class variance between the foreground and the background, the greater the difference between the two parts that make up the image. When part of the target is misclassified as the background or part of the background is misclassified as the target, the difference between the two parts will become smaller. When the segmentation of the threshold takes the maximum inter-class variance, it means that the probability of misclassification is the smallest.

[0055] Adversarial Network: A deep learning model that produces the desired output through a game of learning between (at least) two modules in the framework: a generative model and a discriminative model.

[0056] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0057] The first embodiment of the present application relates to a method for extracting the tip of an arrow, and the process is as follows: Figure 1 As shown, the method comprises the following steps:

[0058] Step 110: construct a style transfer model, where the style transfer model is used to transfer the style of the satellite image to the style of the aerial image.

[0059] In one embodiment, the step of constructing the style transfer model 110 further includes:

[0060] Get satellite-style imagery and aerial-style imagery;

[0061] The same number of samples are captured on the satellite style image and the aerial style image respectively, and the ratio of the size of the captured satellite style image to the size of the captured aerial style image is equal to the ratio of the resolution of the satellite style image to the resolution of the aerial style image;

[0062] The CycleGAN algorithm, the Neural Style algorithm or the PixtoPix algorithm is used to perform model training on the sample.

[0063] In one embodiment, the ratio of the resolution of the satellite style image to the resolution of the aerial style image ranges from 2 to 5, for example, 3 or 4.

[0064] Step 120: construct a super-resolution model, where the super-resolution model is used to convert the low-resolution aerial image into a high-resolution aerial image.

[0065] In one embodiment, the step of constructing the super-resolution model 120 further includes:

[0066] Adjusting the size of the intercepted aerial style image to be the same as the size of the intercepted satellite style image;

[0067] Using the captured aviation style image and the adjusted captured aviation style image as a training pair;

[0068] The model is trained using a bidirectional LSTM (Long Short-Term Memory) method or an adversarial network method.

[0069] It should be understood that in one embodiment, the style transfer model may be constructed first and then the super-resolution model may be constructed. In another embodiment, the super-resolution model may be constructed first and then the style transfer model may be constructed. In another embodiment, the style transfer model and the super-resolution model may be constructed at the same time.

[0070] Step 130, obtain a satellite image to be identified and convert the satellite image into a grayscale image, extract arrows in the grayscale image and determine the type of arrows. In one embodiment, the arrow types include straight arrows and straight arrows with turns. The straight arrows with turns may include straight and left turns, straight and right turns.

[0071] Step 140: import the grayscale image into the style conversion model and the super-resolution model to generate a high-resolution grayscale image in the style of the aerial image.

[0072] In one embodiment, the steps of obtaining a satellite image to be identified and converting the satellite image into a grayscale image, extracting arrows in the grayscale image and determining the type of the arrows further include:

[0073] Cropping the satellite image to be marked and converting it into a grayscale image;

[0074] Using a positioning model to identify and classify arrows in the grayscale image;

[0075] Computer vision methods are used to verify the arrows.

[0076] In one embodiment, the step of cropping the satellite image to be identified and converting it into a grayscale image further includes: cropping the satellite image to be identified to the same size as the intercepted satellite style image.

[0077] Step 150, converting the grayscale image into a binary image and extracting the contour of the binary image, calculating the vertices and the center of the contour, and determining the position of the arrow tip according to the positions of the vertices and the center.

[0078] In one embodiment, the step of converting the grayscale image into a binary image and extracting the contour of the binary image, calculating the vertices and the center of the contour, and determining the position of the arrow tip according to the positions of the vertices and the center further comprises:

[0079] A central image is intercepted from the grayscale image of the high-resolution aerial image style, where the central image is one quarter of the grayscale image. For example, each side is intercepted at 1 / 4 and 3 / 4, and then the middle square is intercepted as the central image;

[0080] Extracting the OTSU threshold of the central image as a set threshold, and converting the grayscale image of the high-resolution aerial image style into a binary image according to the set threshold;

[0081] Extracting the outline of the binary image;

[0082] Calculate the top, bottom, leftmost and rightmost vertices of the contour;

[0083] Calculate the center of the contour according to the four vertices;

[0084] Take two vertices farther from the center and recalculate the center of the contour with the center points of the two vertices, and draw circles with the two center points between the two farther vertices and the recalculated center as the centers. In one embodiment, the radius of the circle may be the distance between the center of the circle and the recalculated center.

[0085] If the arrow is a straight arrow, one of the two farther vertices corresponding to the one with more pixel points in the two circles is taken as the tip of the arrow. If the arrow is a straight arrow with a turn, one of the two farther vertices corresponding to the one with fewer pixel points in the two circles is taken as the tip of the arrow.

[0086] In one embodiment, the step of extracting the contour of the binary image further includes: calculating the area of ​​the contour, and when the area is greater than a first threshold or less than a second threshold, determining that the central image does not include an arrow.

[0087] In order to better understand the technical solution of this specification, a specific example is used for illustration below. The details listed in this example are mainly for ease of understanding and are not intended to limit the scope of protection of this application.

[0088] In this example, the method for extracting arrow tip points is divided into a model training stage and an application stage.

[0089] (I) Model training stage

[0090] Since the size of the road arrow is already small, the higher the resolution of the satellite image, the better the positioning accuracy that can be obtained. When the satellite image resolution is greater than 30 cm, the arrow will be invisible or too low to be identified. Therefore, the required resolution of the satellite image is 30 cm, and the resolution of the aerial photo (aerial image) must be less than half of the satellite image resolution, so as to ensure the best edge output effect in the super-resolution algorithm. The smaller the resolution of the aerial photo, the better the edge clarity of the output image that can be obtained.

[0091] First, capture a large number of square images on the satellite image, and then capture the same number of square images on the aerial photograph accordingly. It should be noted that the size ratio of the aerial photograph image to the satellite image is inversely proportional to their resolution (for example, if the satellite image resolution is 30 cm and the aerial photograph resolution is 7.5 cm, the size of the aerial photograph should be 30 / 7.5 = 4 times the size of the satellite image). In addition, in order to ensure the integrity of the arrow and surrounding features, the size of the captured satellite image should not be less than 64*64. In order to ensure the speed and normal operation of the training process, the captured image should not be too large. The specific image size may depend on the size of the computer video memory used for training, the training speed requirements, and the complexity of the model of the style transfer and super-resolution algorithm.

[0092] Use the intercepted aerial photos to build training pairs, adjust each intercepted aerial photo to the same size as the satellite image, and use the adjusted aerial photos as the model input and the unadjusted aerial photos as the model output to build the model training pairs, train the super-resolution model, and obtain the super-resolution model. Typical super-resolution implementation methods include constructing the image into a sequence structure from top to bottom and from left to right, and then using a bidirectional LSTM to learn and estimate the sequence, or using LSTM combined with an attention method to build a model of the sequence. Another method is to train the super-resolution network as a generator in a generative adversarial network, and then obtain a higher-precision super-resolution network through training the adversarial network.

[0093] Different types of training pairs need to be built for different types of style transfer models. Under normal circumstances, it is impossible to obtain accurate corresponding images for satellite images and aerial photographs. In this case, only style transfer models based on unpaired sample training can be obtained. Several typical style transfer model options include CycleGAN and Neural Style algorithms. When paired training pairs of satellite images and aerial photographs or other high-precision image sources can be provided (that is, the images of the training pair show the same area at the same resolution, and the only difference is the clarity of the image), style transfer models based on paired training pairs are used. Usually, these models can obtain better output image clarity. Typical algorithms include the PixtoPix style transfer algorithm.

[0094] (II) Application stage

[0095] First, it is necessary to determine the approximate location of the arrow, and capture an image of the same size as that used in the training set with this location as the center, and convert the image into a grayscale image. The rough positioning model trained to obtain the approximate location of the arrow can use a deep learning model. At the same time, in order to ensure that there is an arrow at this location, the extracted arrow and arrow type can be verified based on traditional computer vision methods to obtain a higher confidence level. This processing method can also prevent the output of the captured image from being partially blocked by the vehicle, resulting in subsequent misjudgment of the location of the arrow tip.

[0096] The obtained grayscale image is input into the style transfer model, and after conversion, the aerial photograph style model is obtained. After this process, it can be found that the clarity of the image has been improved, and the ideal effect can be obtained when the clarity of the arrows in the original satellite image is not very poor. If the clarity of the original satellite image is very poor and the contrast with the surrounding ground is very small, the arrows generated after style conversion will still be relatively blurry, and can be filtered out by the rule-based positioning algorithm in the end. A potential side effect of style conversion is that it may cause distortion of straight lines on the image. However, since these distortions rarely occur on arrows, and even if they occur, they will basically not change the position of the arrow tip, so if a reasonable post-processing solution is adopted, it will not affect the final arrow tip extraction result.

[0097] After converting the satellite image to the style of an aerial photograph, the image can be super-resolution based on the image. The resolution of the generated image is increased by a factor equal to the satellite image resolution used for training / the aerial photograph resolution. Since a deep learning solution is used to extract high-level features in super-resolution, the problem of image blurring caused by traditional super-resolution based on interpolation can be effectively avoided. At the same time, due to the increase in resolution, the subsequent cusp extraction can achieve higher accuracy.

[0098] The arrow tip is extracted from the super-resolution image using a traditional computer vision-based solution. There are slight differences in the specific processing for different arrow types.

[0099] 1) First, cut off a quarter of the image on each side to get a central image. The size of the image is one-fourth of the original image. Specifically, cut off 1 / 4 and 3 / 4 of each side, and then cut off the middle square as the central image. Then, based on the threshold, the image that has not been cut off is binarized as the output. Then, based on the central image, the OTSU threshold is extracted as the set threshold. In order to limit the threshold value range, this method will take values ​​according to the arrow and the area around the arrow, otherwise it will interfere with the threshold value. Afterwards, based on the OTSU threshold, the original image without the central image cut off is binarized as the output;

[0100] 2) Extract contours from the generated binary image and filter the contours based on the contour area to remove contours that are too large or too small to ensure the effectiveness of the output;

[0101] 3) Select candidate contours based on the relative relationship between the position of the midpoint of the image. When a contour contains the midpoint, select the contour. If none of the contours meet this condition, select the contour closest to the midpoint as the candidate contour. When the distance between all contours and the center point is greater than a certain threshold (the threshold is determined by the size of the super-resolution image), no valid cusp is output;

[0102] 4) Calculate the four boundary points (vertices) of the contour at the top, bottom, leftmost and rightmost;

[0103] 5) The center of the arrow outline is obtained by calculating the arithmetic average of the four boundary points, and the distance between each boundary point and the center is calculated respectively, and the two boundary points with the largest distance are retained;

[0104] 6) Recalculate the center of the arrow based on the remaining two boundary points. For example, the center point of the two boundary points is the recalculated center, and the quarter-point and three-quarter-point of the arrow contour are calculated with the center and the two boundary points as endpoints, respectively. Make circles with the quarter-point and three-quarter-point as the center, and calculate the number of points of the contour within the two circles. If the arrow is a straight arrow, the boundary point corresponding to the circle with more contour points is the arrow tip; conversely, if the arrow is a straight arrow with a turn, the boundary point corresponding to the circle with fewer contour points is the arrow tip. This tip solution can output the arrow tip position with the greatest accuracy while ensuring no misjudgment.

[0105] The second embodiment of the present application relates to a device for extracting the tip of an arrow, the structure of which is as follows: Figure 2As shown, the arrow tip extraction device includes: a style conversion model construction unit, a super-resolution model construction unit, an arrow type recognition unit, a conversion unit and a tip extraction unit, wherein:

[0106] A style conversion model construction unit, wherein the style conversion model is used to convert the style of the satellite image into the style of the aerial image;

[0107] A super-resolution model construction unit, wherein the super-resolution model is used to convert a low-resolution aerial image into a high-resolution aerial image;

[0108] an arrow type recognition unit, configured to obtain a satellite image to be recognized and convert the satellite image into a grayscale image, extract arrows from the grayscale image and determine the type of arrows;

[0109] a conversion unit configured to import the grayscale image into the style conversion model and the super-resolution model to generate a high-resolution grayscale image of the style of the aerial image;

[0110] The cusp extraction unit is configured to convert the grayscale image into a binary image and extract the contour of the binary image, calculate the vertices and the center of the contour, and determine the position of the arrow tip according to the positions of the vertices and the center.

[0111] The first implementation manner is a method implementation manner corresponding to the present implementation manner. The technical details in the first implementation manner can be applied to the present implementation manner, and the technical details in the present implementation manner can also be applied to the first implementation manner.

[0112] It should be noted that those skilled in the art should understand that the implementation functions of each module shown in the above-mentioned embodiment of the arrow tip extraction device can be understood by referring to the relevant description of the above-mentioned arrow tip method. The functions of each module shown in the above-mentioned embodiment of the arrow tip extraction device can be realized by a program (executable instruction) running on a processor, or by a specific logic circuit. If the arrow tip extraction device of the embodiment of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM, Read Only Memory), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0113] It should be noted that in the application documents of this patent, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements. In the application documents of this patent, if it is mentioned that an action is performed according to an element, it means that the action is performed at least according to the element, which includes two situations: performing the action only according to the element, and performing the action according to the element and other elements. Expressions such as multiple, multiple, and multiple include 2, 2 times, 2 kinds, and more than 2, more than 2 times, and more than 2 kinds.

[0114] All documents mentioned in this application are considered to be included in the disclosure of this application as a whole, so that they can be used as the basis for modification when necessary. In addition, it should be understood that after reading the above disclosure of this application, those skilled in the art can make various changes or modifications to this application, and these equivalent forms also fall within the scope of protection claimed in this application.

Claims

1. A method for extracting arrowhead points, characterized in that: include: Constructing a style transfer model, wherein the style transfer model is used to transfer the style of the satellite image to the style of the aerial image; Constructing a super-resolution model, wherein the super-resolution model is used to convert a low-resolution aerial image into a high-resolution aerial image; Acquire a satellite image to be identified and convert the satellite image into a grayscale image, extract an arrow in the grayscale image and determine the type of the arrow, wherein the arrow is a road indication arrow set on the ground; Importing the grayscale image into the style conversion model and the super-resolution model to generate a high-resolution grayscale image of the aerial image style; Converting the grayscale image into a binary image and extracting the contour of the binary image, calculating the vertices and the center of the contour, and determining the position of the arrow tip according to the positions of the vertices and the center, further comprising: intercepting a central image in the grayscale image of the high-resolution aerial image style, wherein the central image is one quarter of the grayscale image; Extract the OTSU threshold of the central image as a set threshold, and convert the grayscale image of the high-resolution aerial image style into a binary image according to the set threshold; extract the contour of the binary image; calculate the four vertices of the top, bottom, leftmost and rightmost of the contour; calculate the center of the contour according to the four vertices; take two vertices farther from the center and recalculate the center of the contour with the center points of the two vertices, and draw circles with the two center points between the two farther vertices and the recalculated center as the center of the circle; if the arrow is a straight arrow, take one of the two farther vertices corresponding to the one with more pixels in the two circles as the tip of the arrow, and if the arrow is a straight arrow with a turn, take one of the two farther vertices corresponding to the one with fewer pixels in the two circles as the tip of the arrow.

2. The method for extracting the tip of an arrow according to claim 1, characterized in that: The step of extracting the contour of the binary image further includes: calculating the area of ​​the contour, and when the area is greater than a first threshold or less than a second threshold, determining that the central image does not include an arrow.

3. The method for extracting the tip of an arrow according to claim 1, characterized in that: The arrow types include straight arrows and straight arrows with turns.

4. The method for extracting the tip of an arrow according to claim 1, characterized in that: The steps of building a style transfer model further include: Get satellite-style imagery and aerial-style imagery; The same number of samples are captured on the satellite style image and the aerial style image respectively, and the ratio of the size of the captured satellite style image to the size of the captured aerial style image is equal to the ratio of the resolution of the satellite style image to the resolution of the aerial style image; The CycleGAN algorithm, the Neural Style algorithm or the PixtoPix algorithm is used to perform model training on the sample.

5. The method for extracting the tip of an arrow according to claim 4, characterized in that: The steps of constructing a super-resolution model further include: Adjusting the size of the intercepted aerial style image to be the same as the size of the intercepted satellite style image; Using the captured aviation style image and the adjusted captured aviation style image as a training pair; Use bidirectional LSTM or adversarial network method for model training.

6. The method for extracting the tip of an arrow according to claim 5, characterized in that: The ratio of the resolution of the satellite style image to the resolution of the aerial style image ranges from 2 to 5.

7. The method for extracting the tip of an arrow according to claim 4, characterized in that: The steps of obtaining a satellite image to be identified and converting the satellite image into a grayscale image, extracting arrows in the grayscale image and determining the type of the arrows further include: Cropping the satellite image to be identified and converting it into a grayscale image; Using a positioning model to identify and classify arrows in the grayscale image; Computer vision methods are used to verify the arrows.

8. The method for extracting the tip of an arrow according to claim 7, characterized in that: The step of cropping the satellite image to be identified and converting it into a grayscale image further includes: cropping the satellite image to be identified to the same size as the intercepted satellite style image.

9. A device for extracting the tip of an arrow, characterized in that: The device is used to execute the arrow tip extraction method as claimed in claim 1, and the device comprises: A style conversion model construction unit, wherein the style conversion model is used to convert the style of the satellite image into the style of the aerial image; A super-resolution model construction unit, wherein the super-resolution model is used to convert a low-resolution aerial image into a high-resolution aerial image; an arrow type recognition unit, configured to obtain a satellite image to be recognized and convert the satellite image into a grayscale image, extract arrows from the grayscale image and determine the type of arrows; a conversion unit configured to import the grayscale image into the style conversion model and the super-resolution model to generate a high-resolution grayscale image of the style of the aerial image; The cusp extraction unit is configured to convert the grayscale image into a binary image and extract the contour of the binary image, calculate the vertices and the center of the contour, and determine the position of the arrow tip according to the positions of the vertices and the center.