Cross-view-angle image sequence geographic positioning data set construction method and system

By constructing CVKT and Ziyang datasets, the problem of insufficient geolocation datasets across perspective image sequences in the existing technology is solved, ensuring the applicability of the model in various application scenarios, and improving the accuracy of the task and the universality of the model.

CN118884485APending Publication Date: 2024-11-01Chinese People's Liberation Army Cyberspace Force Information Engineering University
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410914959.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-07-03
Filing Date
2024-07-09
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing geolocation data set of cross-view image sequences is insufficient, resulting in insufficient universality and applicability of the model, and it is impossible to guarantee its effectiveness in various practical application scenarios.

Method used

The CVKT data set and Ziyang data set were constructed, the CVKT data set was used as the test set of the model, and the Ziyang data set was used as the training set and verification set of the model. Through the GPS information extraction module, the video frame data grouping module, the satellite image acquisition module and the text recognition With technical means such as error correction modules, a table containing the mapping relationship between ground video frames and satellite image is generated to ensure the integrity and applicability of the data set.

Benefits of technology

Through the construction of these two data sets, the performance of the model in different situations can be evaluated, the applicability of the model can be improved, the difficulty of constructing geolocation tasks for cross-view image sequences in specific cities can be reduced, and the accuracy rate can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118884485A_ABST
    Figure CN118884485A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of cross-view image sequence geographic positioning, in particular to a cross-view image sequence geographic positioning data set construction method and system, and the method comprises the steps: constructing a CVKT data set and a Ziyang data set; when a CVKT data set is constructed, firstly, a GPS information extraction module is adopted to establish a mapping relation between each ground video frame and GPS information; creating a table containing video frame grouping information and GPS information through a video frame data grouping module; secondly, converting the table obtained by the video frame data grouping module into a txt document by using a satellite image acquisition module, and importing the document into water to perform batch acquisition of satellite images through micrograph software; and finally, generating a table containing mapping relationships between all satellite images and each group of video frames. The construction processes of the Ziyang data set and the CVKT data set are basically the same, and the difference is that the Ziyang data set uses a video recorded by an automobile data recorder as initial data. Through the constructed Ziyang data set and CVKT data set, it is ensured that the model can be suitable for various practical application scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cross-view image sequence geolocation, and in particular to a method and system for constructing a cross-view image sequence geolocation data set. Background Art

[0002] The research on cross-view image sequence geolocation has only started in recent years, and there are not many datasets available. Most researchers still choose to modify traditional cross-view image geolocation datasets such as CVUSA and CVACT, and use the modified data to train the model.

[0003] The SeqGeo dataset is a new cross-view image sequence geolocation dataset collected by Zhang et al. in Vermont, USA, containing 118,549 ground images and 38,863 satellite images. The ground images in this dataset were collected on about 500 kilometers of urban and suburban roads and two-way highways, of which about 70% were from suburban areas and 30% from urban areas. Figure 1 As shown in the figure, each ground sequence contains 7 images, the distance between adjacent image shooting positions is about 8m, and the camera FOV is about 120°. The dataset also provides the GPS coordinates and camera shooting direction of each ground image, which is closer to the real application scenario. If only the SeqGeo dataset is used for model training, the universality and applicability of the model cannot be guaranteed. Summary of the invention

[0004] The purpose of the present invention is to solve the problems existing in the prior art and propose a method and system for constructing a cross-view image sequence geolocation dataset. By using the constructed Ziyang dataset and CVKT dataset, it is ensured that the model can be applied to various practical application scenarios.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A method for constructing a cross-view image sequence geolocation dataset includes two parts: constructing a CVKT dataset and constructing a Ziyang dataset. The CVKT dataset is used as a test set of the model, and the Ziyang dataset is used as a training set and verification set of the model.

[0007] When constructing the CVKT dataset, the GPS information extraction module is first used to establish a mapping relationship between each ground video frame and GPS information; then a table containing video frame grouping information and GPS information is created through the video frame data grouping module; secondly, the satellite image acquisition module is used to convert the table obtained by the video frame data grouping module into a txt document, and then the document is imported into the Shuijing Micro Map software for batch acquisition of satellite images; finally, a table containing the mapping relationship between all satellite images and each group of video frames is generated;

[0008] The construction process of the Ziyang dataset and the CVKT dataset is basically the same. The difference is that the Ziyang dataset uses the video recorded by the dashcam as the initial data, and uses the video frame segmentation module and the text recognition and error correction module to convert the video into segmented video frames, and generates a txt document of GPS information corresponding to these video frames.

[0009] According to the method for constructing a cross-view image sequence geolocation dataset of the present invention, further, a GPS information extraction module extracts latitude and longitude information from a txt document of the KITTI dataset, and establishes a mapping relationship between them and each ground video frame; the txt document contains the segmented driving video frames and the GPS information corresponding to the video frames; and then, through data processing operations, a csv file corresponding to each group of continuous video frames is obtained.

[0010] According to the cross-view image sequence geolocation data set construction method of the present invention, further, when the GPS information extraction module extracts GPS information from the txt document, the following conditional judgment is performed. If the condition is met, the GPS information is extracted, otherwise the txt document is skipped; the formula for conditional judgment is:

[0011] (lat1-lat2) 2 +(lon1-lon2) 2 >x

[0012] Among them, lat1 is the latitude information of the previously extracted txt document, lon1 is the longitude information of the previously extracted txt document, lat2 is the latitude information of the txt document being extracted, lon2 is the longitude information of the txt document being extracted, and x is a constant.

[0013] According to the method for constructing a cross-view image sequence geolocation dataset of the present invention, further, the video frame data grouping module first finds the csv file corresponding to each group of continuous video frames, and then groups the data of the csv file into groups of 6 rows, with three rows of data overlapping between each group. When each csv file is finally grouped, data with less than 6 rows is discarded.

[0014] According to the cross-view image sequence geolocation data set construction method of the present invention, further, the satellite image acquisition module sets the satellite image acquisition boundary, and the txt data calculation formula corresponding to each satellite image acquisition is as follows:

[0015] satellite_name|(ave_lon-max_lon),(ave_lat-max_lat)|(ave_lon+max_lon),(ave_lat+max_lat)|number

[0016] Among them, ave_lon is the average longitude information of each group of ground video frames, ave_lat is the average latitude information of each group of ground video frames, max_lon is the maximum value of the difference between the longitude of a group of video frames and the average longitude of the corresponding group, max_lat is the maximum value of the difference between the latitude of a group of video frames and the average latitude of the corresponding group, number is the Google satellite map level, and satellite_name is the satellite image serial number.

[0017] According to the method for constructing a cross-view image sequence geolocation dataset of the present invention, further, a video frame cutting module cuts the video into frames per second and saves the frames into a folder, and the images in the folder are divided into upper and lower parts in proportion to form two independent images, the upper half of the image is used as a ground video frame, and the lower half of the image is used as input data for a text recognition and error correction module.

[0018] According to the method for constructing a cross-view image sequence geolocation data set of the present invention, further, a text recognition and error correction module is used to extract the text content of the lower half of the image and save it in a txt document; the module specifically includes a text recognition and extraction submodule and a text error correction submodule;

[0019] The text recognition and extraction submodule uses Umi-OCR to perform text recognition and extraction;

[0020] The text error correction submodule marks the error types in the txt document and performs corresponding error correction processing.

[0021] According to the method for constructing a cross-view image sequence geolocation dataset of the present invention, further, when the satellite image acquisition module of the Ziyang dataset sets the satellite image acquisition boundary, a threshold a is set. When the maximum value of the difference between the longitude and latitude of a group of video frames and the average longitude and latitude of the corresponding group exceeds a, the group will be discarded.

[0022] Furthermore, the present invention also provides a system for constructing a cross-view image sequence geolocation dataset, comprising:

[0023] The CVKT dataset construction module first uses the GPS information extraction module to establish a mapping relationship between each ground video frame and GPS information; then the video frame data grouping module is used to create a table containing video frame grouping information and GPS information; secondly, the satellite image acquisition module is used to convert the table obtained by the video frame data grouping module into a txt document, and then the document is imported into the Shuijing Micro Map software for batch acquisition of satellite images; finally, a table containing the mapping relationship between all satellite images and each group of video frames is generated;

[0024] Ziyang dataset construction module,The construction process of Ziyang dataset and CVKT dataset is basically the same. The difference is that Ziyang dataset uses the video recorded by the driving recorder as the initial data, and uses the video frame segmentation module and the text recognition and error correction module to convert the video into segmented video frames, and generates a txt document of GPS information corresponding to these video frames.

[0025] Compared with the prior art, the present invention has the following advantages:

[0026] The present invention constructs two new data sets, one is the CVKT data set and the other is the Ziyang data set. The former contains only more than 2,000 groups of data, with a small amount of data, and is only used as a test set for the model. The latter contains more than 20,000 groups of data, which can be used to train and verify the model. By verifying and testing on these two data sets, the performance of the model in different situations can be evaluated, and the model can be further improved to ensure that it can be applied to various practical application scenarios.

[0027] The construction of the Ziyang dataset mentioned in the present invention is of particular significance. First, it is the first dataset in China and the second in the world specifically used to train cross-view image sequence geolocation models. Secondly, the construction of this dataset provides researchers with new ideas when constructing a cross-view image sequence geolocation dataset for a specific city, reduces the difficulty of construction, and is expected to significantly improve the accuracy of cross-view image sequence geolocation tasks in a specific city. Finally, researchers can collect and process dashcam videos on their own according to their own needs to expand the dataset, thereby achieving the expected training effect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0029] Figure 1 It is a set of correspondences between ground image sequences and satellite images in the SeqGeo dataset;

[0030] Figure 2 It is a schematic diagram of the process of constructing a cross-view image sequence geolocation data set according to an embodiment of the present invention;

[0031] Figure 3 are five types of ground images included in the KITTI dataset of an embodiment of the present invention;

[0032] Figure 4is a flowchart of constructing a CVKT data set according to an embodiment of the present invention;

[0033] Figure 5 It is a storage directory of a set of ground image sequence GPS information of an embodiment of the present invention;

[0034] Figure 6 It is the key code for extracting longitude and latitude information in the embodiment of the present invention;

[0035] Figure 7 The actual ground distance between two points with known longitude and latitude is calculated in the embodiment of the present invention;

[0036] Figure 8 is a conditional judgment formula in the actual code of the embodiment of the present invention;

[0037] Fig. 9 It is a csv file corresponding to a group of continuous video frames in an embodiment of the present invention;

[0038] Fig.10 It is the overlap between SeqGeo video frame groups in an embodiment of the present invention;

[0039] Fig.11 is the data grouping key code 1 of the embodiment of the present invention;

[0040] Fig.12 is the data grouping key code 2 of the embodiment of the present invention;

[0041] Fig.13 is a table containing video frame grouping information and GPS information according to an embodiment of the present invention;

[0042] Fig.14 It is the batch download template data format of the embodiment of the present invention;

[0043] Fig.15 is a satellite image batch download template file obtained by processing in an embodiment of the present invention;

[0044] Fig.16 is a table containing mapping relationships between all satellite images of the CVKT dataset and each group of ground video frames in an embodiment of the present invention;

[0045] Fig.17 is a flowchart of constructing a Ziyang data set according to an embodiment of the present invention;

[0046] Fig.18 It is a real driving video collected on April 14, 2024 using Viofo A119 Mini2 in an embodiment of the present invention;

[0047] Fig.19This is the driving record screen of the Viofo A119 Mini 2 according to an embodiment of the present invention;

[0048] Fig. 20 is a flow chart of a video frame cutting module according to an embodiment of the present invention;

[0049] Fig.21 It is the Umi-OCR software interface of an embodiment of the present invention;

[0050] Fig. 22 is a flow chart of single image text recognition and extraction according to an embodiment of the present invention;

[0051] Fig.23 This is a typical misidentification situation of the embodiment of the present invention;

[0052] Fig.24 Some video frames in the embodiment of the present invention lack GPS information;

[0053] Fig.25 It is the error type judgment result of printing a group of txt documents in an embodiment of the present invention;

[0054] Fig.26 It is the key code judgment part of the embodiment of the present invention;

[0055] Fig. 27 It is the key code deletion part of the embodiment of the present invention;

[0056] Fig.28 is the printing calculation and statistical results of the embodiment of the present invention;

[0057] Fig.29 It is a table containing the mapping relationship between all satellite images of the Ziyang dataset and each group of video frames in an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] like Figure 2 As shown, the method for constructing a cross-view image sequence geolocation dataset of this embodiment includes two parts: constructing a CVKT dataset and constructing a Ziyang dataset. The CVKT dataset is used as a test set of the model, and the Ziyang dataset is used as a training set and verification set of the model.

[0060] Step S101, when constructing the CVKT data set, first use the GPS information extraction module to establish a mapping relationship between each ground video frame and the GPS information; then use the video frame data grouping module to create a table containing the video frame grouping information and the GPS information; secondly, use the satellite image acquisition module to convert the table obtained by the video frame data grouping module into a txt document, and then import the document into the Shuijing Micromap software for batch acquisition of satellite images; finally, generate a table containing the mapping relationship between all satellite images and each group of video frames.

[0061] In step S102, the construction process of the Ziyang dataset and the CVKT dataset is basically the same. The difference is that the Ziyang dataset uses the video recorded by the driving recorder as the initial data, and uses the video frame cutting module and the text recognition and error correction module to convert the video into segmented video frames, and generates a txt document of GPS information corresponding to these video frames.

[0062] (I) Constructing the CVKT dataset

[0063] The CVKT (Cross-View KITTI) dataset is built on the basis of the KITTI dataset. The KITTI dataset mainly contains segmented video frames and txt documents of GPS information corresponding to these video frames. When constructing the CVKT dataset, the GPS information in the KITTI dataset is first extracted and processed, and then the satellite image data corresponding to each set of ground video frames is obtained, and finally the CVKT dataset is constructed.

[0064] ①KITTI dataset

[0065] The KITTI dataset was jointly created by the Karlsruhe Institute of Technology in Germany and the Toyota Technological Research Institute in Chicago in 2012. It is currently one of the most commonly used computer vision algorithm evaluation datasets in the world for autonomous driving scenarios. This dataset is designed to evaluate the performance of various computer vision technologies in vehicle environments, including stereo image analysis, optical flow calculation, visual ranging, 3D object detection, and 3D tracking. Figure 3 As shown in Figure 1, the KITTI dataset contains real image data collected in scenes such as urban areas, rural areas, and highways. It was collected by a mobile vehicle in Karlsruhe, Germany, and contains limited HFoV ground images at different times and trajectories and their corresponding GPS coordinates. The KITTI dataset provides 14,999 images and corresponding point clouds for 3D object detection tasks, of which 7,481 groups are used for training and 7,518 groups are used for testing. The three types of objects in the scene, cars, pedestrians, and bicycles, are annotated, with a total of 80,256 labeled objects.

[0066] ②KITTI dataset construction process

[0067] Converting the KITTI dataset to the CVKT dataset involves three data processing modules: GPS information extraction module, video frame data grouping module, and satellite image acquisition module. After data processing, the satellite images of each group of video frames and a mapping table are obtained, which records the correspondence between each group of video frames and satellite images. By combining satellite images with ground video frames in the KITTI dataset, a new cross-view image sequence geolocation dataset CVKT was successfully constructed. The specific process of CVKT dataset construction is as follows: Figure 4 shown.

[0068] ③GPS information extraction module

[0069] The KITTI dataset contains segmented driving video frames and txt files with GPS location information corresponding to these video frames. The task of the GPS information extraction module is to extract GPS information from the txt files and establish a mapping relationship between them and each ground video frame.

[0070] There is a key function in this module, find_all_oxts_data, which is used to recursively search all directories containing 'oxts / data' starting from a given base path. Each directory containing 'oxts / data' contains txt files corresponding to consecutive video frames. One of the directories is Figure 5 shown.

[0071] Read data from the txt files in these directories, and extract the latitude and longitude information after data manipulation. The key code is as follows Figure 6 shown.

[0072] Generally, a certain distance is maintained between each set of ground images in a cross-view image sequence geolocation dataset, otherwise the ground images will be too similar and the fusion effect will not be obvious. For example, in the SeqGeo dataset, each ground sequence contains 7 images, and the distance between adjacent image shooting locations is about 8m.

[0073] In order to ensure that the video frames in the data set group constructed in this embodiment also maintain a certain interval, in the process of extracting the txt document information in each folder into the csv file in sequence, it is necessary to perform conditional judgment. If the condition is met, the information is extracted, otherwise the txt document is skipped. The specific formula for conditional judgment is:

[0074] (lat1-lat2) 2 +(lon1-lon2) 2 >x

[0075] Among them, lat1 is the latitude information of the previous extracted txt document, lon1 is the longitude information of the previous extracted txt document, lat2 is the latitude information of the txt document being extracted, lon2 is the longitude information of the txt document being extracted, and x is a constant (set by yourself to adjust the interval distance of video frames within the group).

[0076] Since the earth is a sphere, directly estimating the distance using the sum of the squares of the longitude and latitude differences will produce errors, so a more accurate geographic formula (such as the Haversine formula) is needed to calculate the actual distance between two locations on the earth's surface.

[0077] The data of the KITTI dataset is collected near 49°N and 8°E. This example uses the Haversine formula to calculate the actual ground distance between (49.000000°N, 8.000000°E) and (49.000036°N, 8.000036°E). The sum of the squares of the longitude and latitude differences between the two points is about 0.00000000257, and the actual ground distance is about 4.77m. The code calculation results are as follows: Figure 7 As shown. Figure 8 As shown, in this embodiment, x is set to 0.00000000257 in the conditional judgment code, so the interval distance between video frames in each group almost exceeds 4.77m.

[0078] After a series of data processing operations, a csv file corresponding to each set of video frames is obtained, in which the first column is the storage path of the ground video frame, the second column is the latitude information, and the third column is the longitude information. Fig. 9 shown.

[0079] ④Video frame data grouping module

[0080] The SeqGeo dataset divides ground video frames into image sequences. Each image sequence contains 7 images, and there are 4 overlapping images between adjacent sequences. Fig.10 shown.

[0081] Like the SeqGeo dataset, the CVKT dataset also divides ground video frames into image sequences. Each image sequence contains 6 images, and there are 3 overlapping images between adjacent sequences. The specific idea of ​​the video frame data grouping module is: first use the find_all_oxts_data function to traverse and find the csv file corresponding to each group of continuous video frames, and then group the data of the csv file into groups of 6 rows, with three overlapping rows of data between each group. When each csv file is finally grouped, the data with less than 6 rows is discarded. The key code is as follows Fig.11 and Fig.12 shown.

[0082] The video frame data grouping module will eventually get a table containing video frame grouping information and GPS information. The table information is as follows Fig.13 As shown in the figure, it can be seen that between two adjacent groups of video frames, the last three images of group n are the same as the first three images of group n+1, indicating that the video frames are successfully grouped.

[0083] ⑤Satellite image acquisition module

[0084] After the video frames are grouped, it is necessary to collect the satellite images corresponding to each group of video frames to construct the CVKT data set. This embodiment uses the water micro-map to batch download satellite images.

[0085] Shuijing Micro Map is a lightweight GIS product that integrates rich map downloads and professional GIS functions. It can download all online maps published in tile form and perform large-scale map stitching, map reprojection, map annotation, vector download, vector overlay, mini-cartography CAD and data cloud synchronization.

[0086] To use Shuijing Micromap to batch download satellite images, you need to import a txt document, in which the format of each data is as follows: Fig.14 shown.

[0087] The idea of ​​this module is to Fig.13 The corresponding table is converted into a txt document, and then the document is imported into the Shuijing Micrograph software for batch acquisition of satellite images. When collecting satellite images, the included ground range should be neither too large nor too small. If the included range is too large, there will be too much information in the satellite image, and the elements contained in the ground video frame will only occupy a small part of the satellite image, which will lead to poor model training results. If the included range is too small, some edge frames in a group of video frames may not be reflected in their corresponding satellite images, which will also lead to poor model training results.

[0088] This module is based on Fig.13 The corresponding table data calculates the appropriate boundaries for satellite image acquisition, ensuring that the satellite image is not too large and that each satellite image can cover the GPS positions of all corresponding video frames. The corresponding txt data calculation formula for each satellite image acquisition is defined as follows:

[0089] satellite_name|(ave_lon-max_lon),(ave_lat-max_lat)|(ave_lon+max_lon),(ave_lat+max_lat)|number

[0090] Among them, ave_lon is the average longitude information of each group of ground video frames, ave_lat is the average latitude information of each group of ground video frames, max_lon is the maximum value of the difference between the longitude of a group of video frames and the average longitude of the corresponding group, max_lat is the maximum value of the difference between the latitude of a group of video frames and the average latitude of the corresponding group, number is the Google satellite map level, ranging from 1 to 22, satellite_name is the satellite image number, starting from 1.

[0091] Google satellite image levels are divided according to different resolutions. The larger the value, the higher the resolution. Normally, the higher the resolution setting, the clearer the image and the better the training effect. However, since satellite images are downloaded based on tiles, when the number value is 21 or 22, many downloaded satellite images are blank. In actual downloading, the number value of this module is 20.

[0092] Will Fig.13 After the corresponding table data is processed, the resulting txt document is as follows Fig.15 shown.

[0093] ⑥Generate CVKT dataset

[0094] After the satellite images are downloaded, they need to be mapped to each set of ground video frames. When collecting satellite images, the name and group number of each satellite image are the same. Fig.13 It is relatively simple to add the satellite image saving path corresponding to each set of ground video frames to the corresponding table. The specific process will not be repeated here. The generated table containing the mapping relationship between all satellite images and each set of video frames is as follows: Fig.16 shown.

[0095] (II) Constructing the Ziyang dataset

[0096] The Ziyang dataset is constructed by combining the videos recorded by the Viofo A119 Mini 2 dashcam as the initial data, after a series of data processing, with the satellite images corresponding to each set of ground video frames. The dataset contains 66,384 ground images and 21,320 satellite images, of which the ground images were collected from about 400 kilometers of urban and suburban roads in Ziyang City, Sichuan Province.

[0097] ①Ziyang dataset construction process

[0098] The construction process of the Ziyang dataset and the CVKT dataset is basically the same. Both require the use of GPS information extraction modules, video frame data grouping modules, and satellite image acquisition modules. The main difference between the two datasets in the construction process lies in the initial data. The CVKT dataset uses the segmented video frames and the corresponding GPS location information txt documents as initial data, while the Ziyang dataset uses the video recorded by the dashcam as initial data.

[0099] In order to build a data set using existing modules, this embodiment additionally designs two new modules when building the Ziyang data set: a video frame cutting module and a text recognition and error correction module. The functions of these two new modules are to convert the video into segmented video frames and generate a txt document of GPS location information corresponding to these video frames.

[0100] The specific process of constructing the Ziyang dataset is as follows Fig.17 shown.

[0101] ②Video frame cutting module

[0102] This example uses the Viofo A119 Mini 2 dashcam to collect real driving video data for 7 days, and the video data for each day is stored in the same folder. For example, the video collected on April 14, 2024 is stored as follows: Fig.18 One of the video screens is shown in Fig.19 Show.

[0103] It should be clear that not all videos recorded by dashcams are suitable for constructing a dataset. This embodiment uses the Viofo A119 Mini 2 dashcam. The primary reason for its selection is that it can display longitude and latitude information in the video, such as Fig.19 Secondly, the latitude and longitude positioning accuracy of this dashcam is up to six decimal places, and it has the ability to update the positioning once a second.

[0104] The main function of this module is to cut the video into frames per second and save these frames into the "frames" folder. Subsequently, this module divides the images in the "frames" folder into two separate images according to the preset upper and lower ratios. After the division, the upper half of the image will be saved in the "frames_part1" folder, and the lower half of the image will be saved in the "frames_part2" folder. The main reason for dividing the video frames in "frames" into upper and lower parts is that this operation can effectively improve the accuracy of text recognition and reduce the number of error corrections. Secondly, this operation can also remove the text part of the ground video frame, thereby optimizing the training effect of the model.

[0105] By segmentation Fig.19 For example, the specific process of this module is as follows Fig. 20 As shown in the figure, the files saved in the "frames_part1" folder are ground video frames and will be used to construct subsequent datasets. The files saved in the "frames_part2" folder are used as input data for the text recognition and error correction module.

[0106] ③Text recognition and error correction module

[0107] The main function of the text recognition and error correction module is to correctly extract the text content of all images in the frames_part2 folder and save it to a txt document. This module can be divided into two submodules: text recognition and extraction submodule and text error correction submodule.

[0108] a. Text recognition and extraction submodule

[0109] At present, image text recognition technology is very mature. This module uses an excellent open source optical character recognition tool Umi-OCR to perform text recognition and extraction. The software interface is detailed in Fig.21 .

[0110] The software supports batch recognition and extraction of text from images, and allows users to set ignored areas during image recognition. Fig. 22 The detailed process of single image text recognition and extraction is demonstrated.

[0111] b. Text error correction submodule

[0112] Although Umi-OCR is powerful and has excellent recognition results, some errors are still inevitable in the image text recognition process, such as Fig.23 Some typical misidentification situations are shown.

[0113] In the process of extracting GPS information, in addition to the data errors that may be caused by image text recognition, there is also a situation where some video frames do not contain GPS information due to weak GPS signals, such as Fig.24 shown.

[0114] In order to solve the above two practical problems, it is necessary to design and develop a text error correction submodule. The primary task of the text error correction submodule is to accurately mark the error type in the txt document and perform corresponding error correction processing accordingly.

[0115] The specific steps to determine the error type of a txt document are as follows: first, use regular expressions to extract the longitude and latitude information from the txt document and import it into a csv table; then check the longitude and latitude data in the table. If the data is empty, it indicates that the GPS signal was weak when the video frame was shot. Then, use the data in the csv table to perform calculations. If an exception occurs during the calculation process, it indicates that there is a text recognition error. The error type judgment results of one group of txt documents are as follows: Fig.25 shown.

[0116] According to the results of the code execution, the subsequent modifications can be divided into two categories. The first category is to manually check and correct the data with image text recognition errors. The second category is to deal with the situation where GPS data is missing. It is necessary to delete the corresponding txt documents and image files, and split the folder into two at the location where the data is deleted.

[0117] After all data are modified, re-run the code of the text error correction submodule. If no error message is output after the code is run, it means that the data modification is complete and can be directly used in subsequent modules.

[0118] ④Adjust the satellite image acquisition module

[0119] After processing the input data, it was originally expected that the three modules could directly apply the module design of building the CVKT dataset. However, an important problem was discovered during the construction process, that is, the range of the collected satellite images was too large. The large range of collected satellite images will directly affect the model training effect, so the satellite image acquisition module needs to be adjusted and modified.

[0120] First, we need to find the reason why the satellite image range is too large. In the satellite image acquisition module of the CVKT dataset process, the boundary setting is based on the maximum difference between the longitude of a group of video frames and the average longitude and latitude of the corresponding group, and the video frame cutting module cuts frames per second. When the speed of a certain road section is too fast, the distance between video frames increases, which will cause the boundary setting of the satellite image acquisition module to be too large.

[0121] When recording videos during actual driving, in order to ensure that the video frames maintain a certain spacing, the vehicle speed is mostly maintained at 30km / h. However, due to many unexpected road conditions, the vehicle speed will increase on some sections of the road. Since a certain vehicle speed cannot be guaranteed, this embodiment needs to re-examine the boundary design of the satellite image acquisition module.

[0122] If the boundary design method is changed to a fixed boundary, some video frames at the edge of the group will be placed outside the satellite image range, resulting in a decrease in the model training effect. In view of the relatively small number of sections with faster vehicle speeds, this embodiment sets a threshold a without changing the boundary design method. When the maximum value of the difference between the longitude of a group of video frames and the average longitude of the corresponding group exceeds a, the group will be discarded and all information of the group will be deleted from the table. The relevant key codes are as follows: Fig.26 and Fig. 27 shown.

[0123] To verify the modified function, this embodiment counts the maximum difference between the longitude and latitude of all video frames in the table and the average longitude and latitude of the corresponding group, and calculates the number of intervals where the difference lies. The results are as follows: Fig.28 This ensures that the satellite image covers a moderate range and that the shooting location of each set of video frames is covered by the satellite image.

[0124] ⑤Generate Ziyang dataset

[0125] This embodiment first obtains the ground video frames of the Ziyang dataset through the video frame cutting module, and then uses the satellite image acquisition module to capture the satellite images of the Ziyang dataset. After a series of data processing operations, a table containing the mapping relationship between all satellite images and each set of video frames is finally obtained, such as Fig.29 shown.

[0126] The CVKT dataset and Ziyang dataset of the present invention are all new datasets. These datasets can not only be used for subsequent model training, but also help the actual application of the model to solve practical problems.

[0127] Corresponding to the above method, this embodiment also proposes a system for constructing a cross-view image sequence geolocation dataset, comprising:

[0128] The CVKT dataset construction module first uses the GPS information extraction module to establish a mapping relationship between each ground video frame and GPS information; then the video frame data grouping module is used to create a table containing video frame grouping information and GPS information; secondly, the satellite image acquisition module is used to convert the table obtained by the video frame data grouping module into a txt document, and then the document is imported into the Shuijing Micromap software for batch acquisition of satellite images; finally, a table containing the mapping relationship between all satellite images and each group of video frames is generated.

[0129] Ziyang dataset construction module,The construction process of Ziyang dataset and CVKT dataset is basically the same. The difference is that Ziyang dataset uses the video recorded by the driving recorder as the initial data, and uses the video frame segmentation module and the text recognition and error correction module to convert the video into segmented video frames, and generates a txt document of GPS information corresponding to these video frames.

[0130] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present invention.

[0131] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0132] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.

[0133] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.

[0134] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for constructing a cross-view image sequence geolocation dataset, It is characterized in that It includes two parts: building the CVKT dataset and building the Ziyang dataset. The CVKT dataset is used as the test set of the model, and the Ziyang dataset is used as the training set and validation set of the model. When constructing the CVKT dataset, the GPS information extraction module is first used to establish a mapping relationship between each ground video frame and GPS information; then a table containing video frame grouping information and GPS information is created through the video frame data grouping module; secondly, the satellite image acquisition module is used to convert the table obtained by the video frame data grouping module into a txt document, and then the document is imported into the Shuijing Micro Map software for batch acquisition of satellite images; finally, a table containing the mapping relationship between all satellite images and each group of video frames is generated; The construction process of the Ziyang dataset and the CVKT dataset is basically the same. The difference is that the Ziyang dataset uses the video recorded by the dashcam as the initial data, and uses the video frame segmentation module and the text recognition and error correction module to convert the video into segmented video frames, and generates a txt document of GPS information corresponding to these video frames.

2. The method for constructing a cross-view image sequence geolocation dataset according to claim 1, It is characterized in that The GPS information extraction module extracts the latitude and longitude information from the txt document of the KITTI dataset and maps them to each ground video frame; the txt document contains the segmented driving video frames and the GPS information corresponding to the video frames; then, after data processing operations, a csv file corresponding to each group of continuous video frames is obtained.

3. The method for constructing a cross-view image sequence geolocation dataset according to claim 2, It is characterized in that When the GPS information extraction module extracts GPS information from a txt document, it performs the following conditional judgment. If the condition is met, the GPS information is extracted, otherwise the txt document is skipped. The formula for conditional judgment is: (lat1-lat2) 2 +(day1-day2) 2 >x Among them, lat1 is the latitude information of the previously extracted txt document, lon1 is the longitude information of the previously extracted txt document, lat2 is the latitude information of the txt document being extracted, lon2 is the longitude information of the txt document being extracted, and x is a constant.

4. The method for constructing a cross-view image sequence geolocation dataset according to claim 2, It is characterized in that The video frame data grouping module first finds the csv file corresponding to each group of continuous video frames, and then groups the data of the csv file into groups of 6 rows, with three rows of data overlapping between each group. When each csv file is finally grouped, data with less than 6 rows is discarded.

5. The method for constructing a cross-view image sequence geolocation dataset according to claim 1, It is characterized in that The satellite image acquisition module sets the satellite image acquisition boundary. The calculation formula for the txt data corresponding to each satellite image acquisition is as follows: satellite_name|(ave_lon-max_lon),(ave_lat-max_lat)|(ave_lon+max_lon),(ave_lat+max_lat)|number Among them, ave_lon is the average longitude information of each group of ground video frames, ave_lat is the average latitude information of each group of ground video frames, max_lon is the maximum value of the difference between the longitude of a group of video frames and the average longitude of the corresponding group, max_lat is the maximum value of the difference between the latitude of a group of video frames and the average latitude of the corresponding group, number is the Google satellite map level, and satellite_name is the satellite image serial number.

6. The method for constructing a cross-view image sequence geolocation dataset according to claim 1, It is characterized in that The video frame cutting module cuts the video into frames per second and saves these frames into a folder. The images in the folder are divided into upper and lower parts in proportion to form two independent images. The upper half of the image is used as the ground video frame, and the lower half of the image is used as the input data of the text recognition and error correction module.

7. The method for constructing a cross-view image sequence geolocation dataset according to claim 6, It is characterized in that The text recognition and error correction module is used to extract the text content of the lower half of the image and save it in a txt document; this module specifically includes a text recognition and extraction submodule and a text error correction submodule; The text recognition and extraction submodule uses Umi-OCR to perform text recognition and extraction; The text error correction submodule marks the error types in the txt document and performs corresponding error correction processing.

8. The method for constructing a cross-view image sequence geolocation dataset according to claim 5, It is characterized in that When setting the satellite image acquisition boundary, the satellite image acquisition module of the Ziyang dataset sets a threshold a. When the maximum value of the difference between the longitude and latitude of a group of video frames and the average longitude and latitude of the corresponding group exceeds a, the group will be discarded.

9. A system for constructing a cross-view image sequence geolocation dataset, It is characterized in that Include: The CVKT dataset construction module first uses the GPS information extraction module to establish a mapping relationship between each ground video frame and GPS information; then the video frame data grouping module is used to create a table containing video frame grouping information and GPS information; secondly, the satellite image acquisition module is used to convert the table obtained by the video frame data grouping module into a txt document, and then the document is imported into the Shuijing Micro Map software for batch acquisition of satellite images; finally, a table containing the mapping relationship between all satellite images and each group of video frames is generated; Ziyang dataset construction module,The construction process of Ziyang dataset and CVKT dataset is basically the same. The difference is that Ziyang dataset uses the video recorded by the driving recorder as the initial data, and uses the video frame segmentation module and the text recognition and error correction module to convert the video into segmented video frames, and generates a txt document of GPS information corresponding to these video frames.