A visual map positioning method and system based on key frame correlation

By setting the threshold or weighted screening of key frame correlation coefficients, the problem of a limited number of candidates returned by KNN and too many key frame candidates at the same location is solved, and the success rate and recall rate of visual map positioning are improved.

CN112699266BActive Publication Date: 2024-09-06SHICHEN INFORMATION TECH SHANGHAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011606121.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-09-06
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

In image retrieval, the number of candidate keyframes returned by KNN is limited, resulting in positioning failure, and there are too many keyframe candidates at the same location, and interference items affect the recall rate and positioning success rate.

Method used

By setting the threshold of the key frame correlation coefficient or using the key frame correlation to weight the image retrieval results, filter out the aggregated results, ensure that the number of key frames for subsequent processing remains unchanged, and improve the positioning success rate.

Benefits of technology

Under the condition of limited computing power, the image retrieval recall rate and the success rate of visual map positioning are improved, and the possibility of positioning failure is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112699266B
    Figure CN112699266B
Patent Text Reader

Abstract

A method and system for visual map positioning based on keyframe correlation, which performs image retrieval on a visual map according to a global descriptor of a positioning frame, processes the results of the image retrieval using keyframe correlation, and locates the positioning frame according to the processing results. The method and system for visual map positioning based on keyframe correlation of the present invention sets a threshold value of a keyframe correlation coefficient or performs weighted screening on the results of image retrieval using keyframe correlation, thereby filtering out the clustering of the results of image retrieval, and ensures a higher image retrieval recall rate and improves the success rate of visual map positioning under limited total computing power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the fields of visual maps, visual positioning and image retrieval, and in particular relates to a visual map positioning method and system based on key frame correlation. Background Art

[0002] In image retrieval, the nearest neighbor search (K-Nearest Neighbors, KNN) and other methods are generally used for retrieval, and the retrieval basis is the overall descriptor (global descriptor) of the image. The number of candidates returned by KNN is K. In general, the more candidates KNN returns (the larger K is), the higher its recall rate (the recall rate is the probability that the returned key frame results contain the correct candidate). In practical applications, image retrieval itself is not particularly time-consuming, but the subsequent processing of the retrieved candidate frames, such as sim3 transformation and pose calculation, is relatively time-consuming. Considering the requirements for real-time performance, K is generally limited to a relatively small value. However, when K is relatively small, simply relying on the results of image retrieval and subsequent processing is likely to result in positioning failure.

[0003] Specifically, the results returned by KNN are originally sorted according to the distance between descriptors. The closer the keyframe is to the front, the smaller the distance (Euclidean / hamming / cosine distance, descriptors are generally one-dimensional vectors of fixed length (descriptors of the same type have the same length)) of its global descriptor. In various application scenarios, there are often many interferences, such as similar wall corners, similar corners, etc., which may cause the top K types ranked at the top to contain many such interference items. In addition, the keyframes of the same place may have several keyframe candidates for the same place in the returned top K because the objects they describe are similar and the descriptors are also similar. This candidate may be correct or wrong. For multiple keyframe candidates for the same place, there is no obvious improvement in subsequent positioning (assuming that the candidate is correct, the subsequent processing can go through the process as long as one frame is correct). For example, suppose there are three candidate locations A, B, and C with similar global descriptors, and their corresponding keyframes are A1, A2, A3, A4...B1, B2, B3...C1, C2, C3...Assume that C is the correct candidate. In the first case, the results returned by Top K may be A1, B1, A2, B2, C1...; assuming K is 4, the correct result is excluded; in the second case, the results returned may be A1, A2, A3, A4, A5, C1. A1-A5 actually describe the same candidate location, and it is only necessary to determine whether A1 is the correct candidate. However, since A1-A5 are similar, they are ranked together at the front. As a result, the correct C is ranked outside K, causing positioning failure. If the value of K is increased, the above two failures can be avoided, but the subsequent processing time will increase significantly, which will hinder real-time applications.

[0004] Therefore, a method and system are needed to improve the positioning success rate while keeping the processing time of subsequent processing such as sim3 transformation and posture calculation unchanged, that is, keeping the number of key frames returned to subsequent processing unchanged. Summary of the invention

[0005] In order to overcome the defects of the prior art, the purpose of the present invention is to provide a visual map positioning method and system based on key frame correlation. In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0006] One aspect of the present invention provides a visual map positioning method based on key frame correlation, performing image retrieval on the visual map according to a global descriptor of a positioning frame, and positioning the positioning frame according to the retrieval result. The method also includes processing the result of the image retrieval using key frame correlation, and positioning the positioning frame according to the processing result.

[0007] Preferably, the processing of the image retrieval result by using the key frame correlation is to filter the image retrieval result by setting a threshold of the key frame correlation coefficient.

[0008] Preferably, the processing of the image retrieval result by using key frame correlation comprises the following steps:

[0009] Setting the number of key frames in the processing result; setting the number of key frames returned by the image retrieval to be greater than the set number of key frames in the processing result; setting a threshold value of the key frame correlation coefficient;

[0010] Traverse the key frames returned by the image retrieval, and if the correlation coefficient between the current key frame and any key frame in the processing result is greater than the threshold, skip the current key frame and query the next key frame; otherwise, add the current key frame to the processing result; until the number of key frames in the processing result reaches the set number of key frames in the processing result.

[0011] Preferably, the processing of the image retrieval result by using the key frame correlation performs weighted screening on the image retrieval result by using the key frame correlation.

[0012] Preferably, the processing of the image retrieval result by using key frame correlation comprises:

[0013] Setting the number of key frames in the processing result; setting the number of key frames returned by the image retrieval to be greater than the set number of key frames in the processing result; setting a threshold value of the key frame correlation coefficient;

[0014] Using the key frame correlation coefficient, the key frames returned by the image search are divided into different locations, the locations are sorted from large to small according to the number of key frames contained in the locations, and the weight of each key frame in the location is calculated;

[0015] The key frames in the location are traversed in order, the key frame with the smallest weight is selected from the current location and added to the processing result, and the key frame with the smallest weight is removed from the current location until the number of key frames in the processing result reaches the number of key frames in the set processing result.

[0016] Preferably, the division of the key frames into different locations starts from the key frame with the smallest distance from the global descriptor of the positioning frame, and the key frames returned by the image retrieval are traversed according to the key frame sorting. If the correlation coefficient between the current key frame and the key frame at any position in the location is greater than the key frame correlation coefficient threshold, the current key frame is inserted into the current location; otherwise, a new location is created for the current key frame.

[0017] Preferably, the weight of each key frame in the location is calculated as follows:

[0018] The weight of the current keyframe = the global descriptor distance between the current keyframe and the positioning frame / the average value of the correlation coefficients between the current keyframe and other keyframes in the current location.

[0019] Another aspect of the present invention provides a visual map positioning system based on key frame correlation, including a positioning frame acquisition module, a global description submodule for extracting, an image retrieval module and a positioning module. The system also includes a processing module, which processes the results of the image retrieval module using key frame correlation, and the positioning module locates the positioning frame according to the processing results.

[0020] Preferably, the processing module screens the results of the image retrieval module by setting a threshold value of a key frame correlation coefficient.

[0021] Preferably, the processing module uses the key frame correlation to perform weighted screening on the results of the image retrieval module.

[0022] The key frame correlation-based visual map positioning method and system of the present invention sets a threshold value of the key frame correlation coefficient or uses the key frame correlation to perform weighted screening on the image retrieval results, thereby filtering out the clustering of the returned results of the image retrieval. Under the condition of limited total computing power, a higher image retrieval recall rate is guaranteed, thereby improving the success rate of visual map positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] After reading the specific embodiments of the present invention with reference to the accompanying drawings, readers will have a clearer understanding of various aspects of the present invention.

[0024] Figure 1 is an overall flow chart of a visual map positioning method based on key frame correlation according to an embodiment of the present invention;

[0025] Figure 2 A flowchart of processing the image retrieval result by using key frame correlation according to an embodiment of the present invention;

[0026] Figure 3 The present invention is another flowchart of processing the image retrieval result by using key frame correlation according to another embodiment of the present invention.

[0027] Figure 4 This is a system structure diagram of a visual map positioning system based on key frame correlation according to an embodiment of the present invention.

[0028] Description of reference numerals:

[0029] 10: Visual map positioning system based on key frame correlation; 11: Positioning frame acquisition module; 12: Extraction of global description submodule; 13: Image retrieval module; 14: Processing module; 15: Positioning module. DETAILED DESCRIPTION

[0030] In order to make the technical content disclosed in this application more detailed and complete, reference may be made to the accompanying drawings and the following specific embodiments of the present invention. However, it should be understood by those skilled in the art that the embodiments provided below are not intended to limit the scope of the present invention. In addition, the accompanying drawings are only used for schematic illustration and are not drawn according to their original size.

[0031] The specific implementation modes of various aspects of the present invention are further described in detail below with reference to the accompanying drawings.

[0032] One aspect of the present invention provides a method for positioning a visual map based on key frame correlation, wherein an image is retrieved from the visual map according to a global descriptor of a positioning frame, the result of the image retrieval is processed using key frame correlation, and the positioning frame is positioned according to the processing result. Figure 1 The overall flow chart of a visual map positioning method based on key frame correlation according to an embodiment of the present invention is as follows. Specifically, the method includes positioning frame acquisition S1, global descriptor extraction S2, image retrieval S3, processing the image retrieval result by using key frame correlation S4 and positioning S5, wherein:

[0033] The camera captures a picture, and the positioning frame acquisition S1 acquires the picture of the positioning frame (RGB image or grayscale image) and the camera parameters (focal length, optical center, etc.) used to capture the picture, which are mainly used for subsequent posture calculation;

[0034] The extracting global descriptor S2 calculates the global descriptor of the positioning frame;

[0035] The image retrieval S3 compares the global descriptor of the positioning frame with the descriptor of the key frame in the visual map to find the candidate with the shortest distance to the global descriptor of the current positioning frame; the image retrieval S3 generally uses the KNN (K-Nearest-Neighbor) algorithm to return K results with the closest distance to the positioning frame. The results returned by KNN are generally sorted from small to large in distance, that is, the TOP1 key frame has the shortest distance to the global descriptor of the positioning frame and is most similar to each other;

[0036] The processing of the image retrieval result by using key frame correlation S4 rescreens the result returned by the KNN;

[0037] The positioning S5 calculates the position and posture of the positioning frame according to the result of the re-screening process, and positions the positioning frame.

[0038] Specifically, the correlation of the key frames is constructed in the process of building the visual map, and the processing S4 of the result of the image retrieval using the key frame correlation calls the key frame correlation to process the result of the image retrieval S3.

[0039] See also Figure 2 The present invention is a flowchart of processing the image retrieval result by using key frame correlation according to an embodiment of the present invention.

[0040] In this embodiment, the processing of the image retrieval results by using key frame correlation S4 is to filter the image retrieval results S3 by setting a threshold of key frame correlation coefficients.

[0041] In this embodiment, the processing S4 of the image retrieval result by using key frame correlation includes:

[0042] Setting the number of key frames in the processing result; setting the number of key frames returned by the image retrieval S3 to be greater than the set number of key frames in the processing result; setting a threshold value of the key frame correlation coefficient;

[0043] Traverse the key frames returned by the image retrieval S3, and if the correlation coefficient between the current key frame and any key frame in the processing result is greater than the threshold, skip the current key frame and query the next key frame; otherwise, add the current key frame to the processing result; until the number of key frames in the processing result reaches the set number of key frames in the processing result.

[0044] Specifically, the step of processing the image retrieval result by using key frame correlation S4 is as follows:

[0045] 1) Set initial data S41:

[0046] The number of key frames in the processing result returned after processing the result of the image retrieval S3 is set. Specifically, assuming that the requirement for the positioning S5 processing is k frames, the number of key frames in the processing result is set to k;

[0047] The image retrieval S3 is used to return a group of key frames. The number of key frames returned by the image retrieval S3 is greater than the number of key frames in the set processing result. Specifically, since the results of the image retrieval S3 need to be screened and sorted, if the number of key frames returned by the image retrieval S3 is still k, there will be no improvement on the subsequent results. Therefore, the number of key frames returned by the image retrieval S3 must be greater than k. Assume that the key frames returned by the image retrieval S3 are K1~K l (l>k);

[0048] The initial value of the processing result is preset to be empty. Specifically, it is assumed that the key frame set of the processing result is Q;

[0049] Presetting a threshold of the key frame correlation coefficient, specifically, the correlation coefficient threshold is d;

[0050] 2) Traverse the key frames S42 returned by the image retrieval:

[0051] If the correlation coefficient between the current key frame and any key frame in the processing result is greater than the threshold, skip the current key frame and query the next key frame;

[0052] Otherwise, adding the current key frame to the processing result;

[0053] 3) Determine whether the number of key frames in the processing result reaches the set number of key frames in the processing result S43:

[0054] If the number of key frames in the processing result reaches the number of key frames in the set processing result, the processing result is sent to the positioning S5;

[0055] If the number of key frames in the processing result does not reach the number of key frames in the set processing result, the key frames returned by traversing the image search are returned ( S42 ).

[0056] The specific algorithm of this embodiment is as follows:

[0057] 1) Let Q be empty, i=0;

[0058] 2) Screening K i If the correlation coefficient between Ki and any key frame in Q is greater than d, then K is skipped. i , query K i+1 Otherwise, K i Join Q;

[0059] 3) i=i+1;

[0060] 4) If the number of key frames in Q reaches k or i>l, output Q to the positioning, otherwise return to 2).

[0061] In this embodiment, the correlation of key frames is used to filter out the clustering of key frames returned by the image retrieval S3, thereby improving the recall rate of subsequent positioning.

[0062] In this embodiment, the key frame correlation is calculated by the number of 3D point clouds shared between two key frames. In the process of creating a visual 3D map, the key frame correlation coefficient is calculated and stored. Specifically, the key frame correlation coefficient is represented by a set C, C 12 , C 14 , C 16 ……C 1n is a single element in C, representing the correlation coefficient between the first key frame and the 2nd, 4th, 6th, and nth key frames; the set P represents the number of 3D point clouds contained in the key frame, P1, P2, P3, ... P n is a single element in P, indicating the number of 3D point clouds contained in the 1st, 2nd, 3rd, ... nth key frames; S 12 , S 14 , S 16 ……S 1n is the number of 3D points observed jointly by the first key frame and the 2nd, 4th, 6th, ... nth key frames (S 1n =S n1 ), thereby calculating the correlation coefficient C between the first key frame and the nth key frame 1n =S 1n ⁄P1, and so on.

[0063] In this embodiment, the key frame correlation is calculated by the proportion of the overlapping parts between the two key frames. The key frame correlation coefficient is calculated and stored in the process of creating the visual 3D map. Specifically, the key frame A1 is divided into N grids. If there is a 3D point observed together with the key frame A2 in a single grid, the grid is set to 1, otherwise it is set to zero. Assuming that the number of grids that are finally set to 1 is M, the correlation coefficient C between the key frame A1 and the key frame A2 is 12 =M / N, and so on. Compared with simply counting the number of 3D point clouds, this calculation method better measures the coincidence relationship between key frames.

[0064] In this embodiment, the positioning S5 performs positioning on the positioning frame by solving the position and posture using sim3 or using local feature points.

[0065] See also Figure 3 The present invention is another flowchart of processing the image retrieval result by using key frame correlation according to another embodiment of the present invention.

[0066] In this embodiment, the processing S4 of the image retrieval result by using the key frame correlation performs weighted screening on the image retrieval result S3 by using the key frame correlation.

[0067] In this embodiment, the processing S4 of the image retrieval result by using key frame correlation includes:

[0068] Setting the number of key frames in the processing result; setting the number of key frames returned by the image retrieval S3 to be greater than the set number of key frames in the processing result; setting a threshold value of the key frame correlation coefficient;

[0069] Using the key frame correlation coefficient, the key frames returned by the image search S3 are divided into different locations, the locations are sorted from large to small according to the number of key frames contained in the locations, and the weight of each key frame in the location is calculated;

[0070] The key frames in the location are traversed in order, the key frame with the smallest weight is selected from the current location and added to the processing result, and the key frame with the smallest weight is removed from the current location until the number of key frames in the processing result reaches the number of key frames in the set processing result.

[0071] Specifically, the step of processing the image retrieval result by using key frame correlation S4 is as follows:

[0072] 1) Set initial data S41:

[0073] The number of key frames in the processing result returned after processing the result of the image retrieval S3 is set. Specifically, assuming that the requirement for the positioning S5 processing is k frames, the number of key frames in the processing result is set to k;

[0074] The image retrieval S3 is used to return a group of key frames. The number of key frames returned by the image retrieval S3 is greater than the number of key frames in the set processing result. Specifically, since the results of the image retrieval S3 need to be screened and sorted, if the number of key frames returned by the image retrieval S3 is still k, there will be no improvement on the subsequent results. Therefore, the number of key frames returned by the image retrieval S3 must be greater than k. Assuming that the image retrieval S3 returns K1~K l (l>k);

[0075] The initial value of the processing result is preset to be empty. Specifically, it is assumed that the key frame set of the processing result is Q;

[0076] Presetting a threshold of the key frame correlation coefficient, specifically, the correlation coefficient threshold is d;

[0077] 2) Classify and sort the key frames returned by the image retrieval using the key frame correlation coefficient S44: Divide the key frames returned by the image retrieval into different locations, and sort the locations according to the number of key frames contained in each location. The location with more key frames ranks higher. Specifically, assuming that the location set is P, the key frames are divided into locations P1-P j (j≤l), indicating that the returned l keyframes are divided into j location candidate dimensions;

[0078] 3) Calculate the weight of each key frame in each location respectively S45, assuming that the weight is E;

[0079] 4) Traverse the location S46: Traverse the key frames in the location one by one according to the sorting order of the location, select the key frame with the smallest weight from the current location and add it to the processing result, and remove the key frame with the smallest weight from the current location. Specifically, according to the sorting, first start from P1, traverse the key frames in P1, select the key frame with the smallest weight and add it to the processing result Q, and remove the key frame with the smallest weight from P1; after traversing P1, traverse P2 in the same way, and so on;

[0080] 5) Determine the number of key frames in the processing result S43:

[0081] If the number of key frames in the processing result reaches the number of key frames in the set processing result, the processing result is sent to the positioning S5;

[0082] If the number of key frames in the processing result does not reach the number of key frames in the set processing result, the process returns to traversing the locations S46.

[0083] In this embodiment, the key frames are divided into different locations starting from the key frame with the smallest distance from the global descriptor of the positioning frame, and the key frames returned by the image retrieval S3 are traversed according to the key frame sorting. If the correlation coefficient between the current key frame and the key frame at any position in the location is greater than the key frame correlation coefficient threshold d, the current key frame is inserted into the current location; otherwise, a new location is created for the current key frame.

[0084] Specifically, the step of classifying and sorting the key frames returned by the image retrieval using the key frame correlation coefficients S44 is as follows:

[0085] 1) The current location is preset to be empty;

[0086] 2) sorting the key frames returned by the image retrieval S3 according to the global descriptor distance between the current key frame and the positioning frame;

[0087] 3) Starting from the key frame with the smallest distance to the global descriptor of the positioning frame, traverse the key frames returned by the image retrieval S3 according to the key frame sorting:

[0088] If the correlation coefficient between the current key frame and a key frame at any position in the location is greater than the key frame correlation coefficient threshold d, the current key frame is inserted into the current location; otherwise, a new location is created for the current key frame.

[0089] 4) Sort the locations by the number of key frames in the location. If the number of key frames of two or more locations is equal, sort them according to the average value of the global descriptor distance between the key frames in the location and the positioning frame. The location with a smaller average value of the descriptor distance ranks higher.

[0090] In this embodiment, the weight of each key frame in the location is calculated as follows:

[0091] The weight of the current keyframe = the global descriptor distance between the current keyframe and the positioning frame / the average value of the correlation coefficients between the current keyframe and other keyframes in the current location.

[0092] Specifically, the step of calculating the weight of each key frame in each location S45 is as follows:

[0093] 1) Calculate the average value of the correlation coefficients between the current key frame in the current location and other key frames in the current location. If the current location contains only one key frame, the average value of the correlation coefficients between the current key frame and other key frames in the current location is 1;

[0094] 2) Calculate the weight of the current key frame:

[0095] The weight of the current key frame = the average value of the global descriptor distance / correlation coefficient between the current key frame and the positioning frame.

[0096] The specific algorithm of this embodiment is as follows:

[0097] 1) Let Q be empty, i=0;

[0098] 2) Use the key frame correlation coefficient to classify l key frames and obtain P1~P j (j≤l):

[0099] (1) Let P be empty;

[0100] (2) From K1->K l Order traversal, if the current frame K c If the correlation coefficient with the key frame at any position in P is greater than the threshold d, the current frame K cAdd to the corresponding P, otherwise it is K c Create a new P by sequence number. For example, if the current P is an empty set, create P1 and set K c Insert into P1; if P1 already exists and P2 does not exist, create P2 and insert K c Insert into P2, and so on;

[0101] (3) Sort the locations in P by the number of key frames, so that the number of key frames in P1 is greater than that in P2, P2 is greater than that in P3, and so on. If the number of key frames in the locations to be sorted is equal, sort them according to the average value of the global descriptor distance between the key frames in the locations and the positioning frames. The smaller the average value of the descriptor distance, the higher the ranking.

[0102] 3) Calculate P1-P j The weight E:

[0103] (1) Taking P1 as an example, assume that P1 contains key frames K1~K g ;

[0104] (2) Calculate K1 and K2...K g The average of all correlation coefficients C average1 ;

[0105] (3) Calculate the weight of K1: E1 = K1 / C average1 , where the value of K1 itself represents the global descriptor distance between the key frame and the positioning frame;

[0106] (4) Calculate K2 and K1, K3, ... K g The average of the correlation coefficients of K2 is used to calculate the weight of K2, E2=K2 / C average2 , and so on;

[0107] (5) If the current set P1 contains only one key frame, then C average1 =1;

[0108] 4) From P i Select the key frame K with the smallest weight E m Insert into Q and from P i Remove K m ;

[0109] 5) If i is equal to j, let i=1, otherwise i=i+1;

[0110] 6) If the number in Q reaches k, output Q to the positioning S5, otherwise return to 4).

[0111] The basic idea of ​​the above algorithm is that among all the candidate locations P, P1 has the most frames, which means that it has the most key frame descriptors that are similar to the global descriptors of the positioning frame. Therefore, the probability that P1 is correct is the highest, and P1 is processed first. The smaller the distance between the key frame inside P1 and the global descriptor of the positioning frame, the more similar the key frame is to the positioning frame. The larger the correlation coefficient between the key frame and other key frames, the more representative the key frame is of the current candidate location. According to the weight calculation formula, the smaller the weight E of the key frame calculated in the end, the higher the ranking, so that the key frame can be selected into the key frame set Q of the processing result first.

[0112] In this embodiment, the key frame correlation is calculated by the number of 3D point clouds shared between two key frames. In the process of creating a visual 3D map, the key frame correlation coefficient is calculated and stored. Specifically, the key frame correlation coefficient is represented by a set C, C 12 , C 14 , C 16 ……C 1n is a single element in C, representing the correlation coefficient between the first key frame and the 2nd, 4th, 6th, and nth key frames; the set P represents the number of 3D point clouds contained in the key frame, P1, P2, P3, ... P n is a single element in P, indicating the number of 3D point clouds contained in the 1st, 2nd, 3rd, ... nth key frames; S 12 , S 14 , S 16 ……S 1n is the number of 3D points observed jointly by the first key frame and the 2nd, 4th, 6th, ... nth key frames (S 1n =S n1 ), thereby calculating the correlation coefficient C between the first key frame and the nth key frame 1n =S 1n ⁄P1, and so on.

[0113] In this embodiment, the key frame correlation is calculated by the proportion of the overlapping parts between the two key frames. The key frame correlation coefficient is calculated and stored in the process of creating the visual 3D map. Specifically, the key frame A1 is divided into N grids. If there is a 3D point observed together with the key frame A2 in a single grid, the grid is set to 1, otherwise it is set to zero. Assuming that the number of grids that are finally set to 1 is M, the correlation coefficient C between the key frame A1 and the key frame A2 is 12 =M / N, and so on. Compared with simply counting the number of 3D point clouds, this calculation method better measures the coincidence relationship between key frames.

[0114] In this embodiment, the positioning S5 performs positioning on the positioning frame by solving the position and posture using sim3 or using local feature points.

[0115] See also Figure 4 The system structure diagram of a keyframe correlation-based visual map positioning system of an embodiment of the present invention. Another aspect of the present invention provides a keyframe correlation-based visual map positioning system 10, including a positioning frame acquisition module 11, a global descriptor extraction module 12, an image retrieval module 13 and a positioning module 15. The system also includes a processing module 14, the processing module 14 processes the result of the image retrieval module 13 using keyframe correlation, and the positioning module 15 locates the positioning frame according to the processing result.

[0116] In this embodiment, the processing module 14 filters the results of the image retrieval module 13 by setting a threshold value of a key frame correlation coefficient.

[0117] In this embodiment, the processing module 14 performs weighted screening on the results of the image retrieval module 13 using the key frame correlation.

[0118] The key frame correlation-based visual map positioning method and system of the present invention sets a threshold value of the key frame correlation coefficient or uses the key frame correlation to perform weighted screening on the image retrieval results, thereby filtering out the clustering of the returned results of the image retrieval. Under the condition of limited total computing power, a higher image retrieval recall rate is guaranteed, thereby improving the success rate of visual map positioning.

[0119] Obviously, the above embodiments of the present invention are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. The embodiments of the present invention cannot exhaust all implementation methods. All obvious changes or modifications derived from the technical solutions of the present invention are still within the scope of protection of the present invention. All documents mentioned in the present invention are cited as references in this application, just as if a document is cited as a reference alone.

Claims

1. A method for positioning a visual map based on key frame correlation, performing image retrieval on the visual map according to a global descriptor of a positioning frame, and positioning the positioning frame according to the retrieval result, It is characterized in that The method processes the result of the image retrieval by using the key frame correlation, and locates the positioning frame according to the processing result; wherein the key frame correlation is calculated by the proportion of the overlapping parts between two key frames, including: calculating and storing the key frame correlation coefficient in the process of creating the visual three-dimensional map, dividing the key frame A1 into N grids, if there is a 3D point observed together with the key frame A2 in a single grid, then the grid is set to 1, otherwise it is set to zero, assuming that the number of grids finally set to 1 is M, then the correlation coefficient C between the key frame A1 and the key frame A2 is 12 =M / N, and so on; The processing of the image retrieval results by using the key frame correlation includes: screening the image retrieval results by setting a threshold of the key frame correlation coefficient, or performing weighted screening on the image retrieval results by using the key frame correlation; If the processing of the image retrieval result by using the key frame correlation is to filter the image retrieval result by setting a threshold of the key frame correlation coefficient, then the processing of the image retrieval result by using the key frame correlation includes: Setting the number of key frames in the processing result; setting the number of key frames returned by the image retrieval to be greater than the number of key frames in the set processing result; setting a threshold value of the key frame correlation coefficient; Traversing the key frames returned by the image retrieval, if the correlation coefficient between the current key frame and any key frame in the processing result is greater than the threshold, skipping the current key frame and searching for the next key frame; otherwise, adding the current key frame to the processing result; until the number of key frames in the processing result reaches the set number of key frames in the processing result; If the processing of the image retrieval result by using the key frame correlation is weighted screening of the image retrieval result by using the key frame correlation, then the processing of the image retrieval result by using the key frame correlation includes: Setting the number of key frames in the processing result; setting the number of key frames returned by the image retrieval to be greater than the number of key frames in the set processing result; setting a threshold value of the key frame correlation coefficient; Using the key frame correlation coefficient, the key frames returned by the image search are divided into different locations, the locations are sorted from large to small according to the number of key frames contained in the locations, and the weight of each key frame in the location is calculated; The key frames in the location are traversed one by one in order, the key frame with the smallest weight is selected from the current location to be added to the processing result, and the key frame with the smallest weight is removed from the current location until the number of key frames in the processing result reaches the set number of key frames in the processing result.

2. The method for visual map positioning based on key frame correlation according to claim 1, It is characterized in that Dividing the key frames into different locations includes: sorting the key frames returned by the image retrieval according to the global descriptor distance between the key frames and the positioning frame, starting from the key frame with the smallest global descriptor distance to the positioning frame, traversing the key frames returned by the image retrieval according to the order of the key frames, if the correlation coefficient between the current key frame and the key frame at any position in the location is greater than the key frame correlation coefficient threshold, inserting the current key frame into the current location; otherwise, creating a new location for the current key frame.

3. The method for visual map positioning based on key frame correlation according to claim 1, It is characterized in that The weight of each key frame in the location is calculated as follows: The weight of the current keyframe = the global descriptor distance between the current keyframe and the positioning frame / the average value of the correlation coefficients between the current keyframe and other keyframes in the current location.

4. A visual map positioning system based on key frame correlation, used to implement the visual map positioning method based on key frame correlation as described in any one of claims 1-3.