A method and related device for element point coding

By constructing a three-dimensional feature map and using a traversal algorithm, the coding method of feature points is enriched, which solves the problem of low matching accuracy of feature points of different collection devices and improves the matching accuracy in high-precision maps and three-dimensional modeling.

CN113689512BActive Publication Date: 2024-09-06BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202110968988.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-23
Publication Date
2024-09-06
Estimated Expiration
2041-08-23

AI Technical Summary

Technical Problem

In the existing technology, in high-precision map creation, map updating and three-dimensional modeling scenarios, the matching accuracy of feature points collected by different collection devices is poor, mainly because the feature point encoding vectors are not accurate enough.

Method used

By constructing a three-dimensional feature map of the target feature point, the relative position relationship between other feature points and the target feature point is determined, and combined with the relative position relationship in the three views and the preset traversal algorithm, the marking and encoding method of the feature point is enriched, and the encoding vector is expanded to Improve matching accuracy.

Benefits of technology

It improves the accuracy of feature point matching, making the encoding vector more accurate, and is suitable for scenarios such as high-precision map creation and three-dimensional modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113689512B
    Figure CN113689512B
Patent Text Reader

Abstract

The present application discloses a method for encoding feature points and a related device, the method comprising: taking any feature point among the feature points collected by the collection device as the target feature point, obtaining a three-dimensional feature map of the target feature point, the distance between other feature points and the target feature point in the three-dimensional feature map is less than or equal to a first preset distance, and the distance between two other feature points connected by an edge and the distance between other feature points and the target feature point are less than or equal to a second preset distance; determining the relative position relationship between other feature points and the target feature point in the three views of the three-dimensional feature map; calculating the encoding vector of the target feature point based on the three views, the relative position relationship, the first feature point marking encoding method corresponding to the relative position relationship and the preset traversal algorithm. From three different angles of the three views, the marking encoding method of the target feature point is enriched, the encoding vector of the target feature point is expanded, the encoding vector is made more accurate, and the accuracy of feature point matching is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method for encoding feature points and related devices. Background Art

[0002] In the same area, different acquisition devices can be used to collect various feature points. Due to the different acquisition parameters of different acquisition devices, in some scenarios, such as high-precision map creation scenarios, high-precision map update scenarios, or 3D modeling scenarios, it is necessary to match the various feature points collected by different acquisition devices. Among them, feature points refer to the image points corresponding to the acquisition objects in the acquisition space on the acquisition image. For example, feature points in the high-precision map creation scenario refer to the image points corresponding to traffic lights, traffic signs, etc. on the acquisition image.

[0003] At present, matching of each feature point collected by different collection devices in the same area generally refers to calculating the coding vector of each feature point through a common feature point matching algorithm in an image, and determining whether each feature point collected by different collection devices in the same area matches based on the coding vector of each feature point. However, the coding vector of the feature point obtained by the above method is not accurate enough, resulting in poor accuracy of feature point matching. Summary of the invention

[0004] In view of this, the present application provides a method and related apparatus for encoding feature points, which expands the encoding vector of the feature points so that the obtained encoding vector of the feature points is more accurate, thereby improving the accuracy of feature point matching.

[0005] In a first aspect, an embodiment of the present application provides a method for encoding feature points, the method comprising:

[0006] For a target feature point, a three-dimensional feature map of the target feature point is obtained; wherein the target feature point is any feature point among the feature points collected by the collection device, the distance between the target feature point and other feature points in the three-dimensional feature map is less than or equal to a first preset distance, the distance between two feature points connected by an edge in the three-dimensional feature map is less than or equal to a second preset distance, and the second preset distance is less than or equal to the first preset distance;

[0007] Determine the relative position relationship between the other element points and the target element point in the three-dimensional element map;

[0008] Based on the three views of the three-dimensional element map, the relative position relationship, the first element point marking encoding method corresponding to the relative position relationship and a preset traversal algorithm, the encoding vector of the target element point is obtained.

[0009] Optionally, determining the relative position relationship between the other element points and the target element point in the three views of the three-dimensional element map includes:

[0010] For each of the three views, divide the view from left to right according to a first interval threshold corresponding to the view, and divide the view from top to bottom according to a second interval threshold corresponding to the view, to obtain various regions of the view;

[0011] Based on the area where the element point is located and the area where the other element points are located, a relative position relationship between the other element points and the target element point in the view is determined.

[0012] Optionally, the obtaining the encoding vector of the target feature point based on the three views of the three-dimensional feature map, the relative position relationship, the first feature point marking encoding method corresponding to the relative position relationship, and a preset traversal algorithm includes:

[0013] Determine the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship and the first feature point mark encoding method corresponding to the relative position relationship;

[0014] Based on the three views of the three-dimensional feature graph, the preset number of traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, determine each traversal path corresponding to the target feature point, and count the number of each traversal path;

[0015] According to each traversal path corresponding to the target feature point and the number of each traversal path, the encoding vector of the target feature point is obtained.

[0016] Optionally, the obtaining the encoding vector of the target feature point based on the three views of the three-dimensional feature map, the relative position relationship, the first feature point marking encoding method corresponding to the relative position relationship, and a preset traversal algorithm includes:

[0017] Determine other attributes of the target feature point and other attributes of the other feature points;

[0018] Determine the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship, the first feature point mark encoding method corresponding to the relative position relationship, the other attributes, and the second feature point mark encoding method corresponding to the other attributes;

[0019] Based on the three views of the three-dimensional feature graph, the preset number of traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, determine each traversal path corresponding to the target feature point, and count the number of each traversal path;

[0020] According to each traversal path corresponding to the target feature point and the number of each traversal path, the encoding vector of the target feature point is obtained.

[0021] Optionally, the other attributes include one or more of the following:

[0022] Feature type, spatial coordinates, feature color, feature shape, and feature content.

[0023] Optionally, the preset traversal algorithm includes an exhaustive traversal algorithm or a random walk algorithm.

[0024] Optionally, obtaining the three-dimensional feature map of the target feature point includes:

[0025] According to the three-dimensional coordinates of each element point collected by the collection device, each element point whose distance from the target element point is less than or equal to the first preset distance is determined as each other element point;

[0026] According to the three-dimensional coordinates of the target element point and each of the other element points, edges are constructed between two of the other element points whose distance is less than or equal to the second preset distance and between the other element point and the target element point to obtain a three-dimensional element graph of the target element point.

[0027] In a second aspect, an embodiment of the present application provides a device for encoding feature points, the device comprising:

[0028] A first obtaining unit is used to obtain a three-dimensional element map of a target element point, wherein the target element point is any element point among the element points collected by the collection device, the distance between other element points in the three-dimensional element map and the target element point is less than or equal to a first preset distance, the distance between two element points connected by an edge in the three-dimensional element map is less than or equal to a second preset distance, and the second preset distance is less than or equal to the first preset distance;

[0029] A first determining unit, configured to determine a relative position relationship between the other element points and the target element point in the three views of the three-dimensional element map;

[0030] The second obtaining unit is used to obtain the encoding vector of the target feature point based on the three views of the three-dimensional feature map, the relative position relationship, the first feature point marking encoding method corresponding to the relative position relationship, and a preset traversal algorithm.

[0031] Optionally, the first determining unit includes a dividing subunit and a first determining subunit:

[0032] The division subunit is configured to divide each view of the three views from left to right according to a first interval threshold corresponding to the view, and divide the view from top to bottom according to a second interval threshold corresponding to the view, so as to obtain each region of the view;

[0033] The first determining subunit is used to determine the relative position relationship between the other element points and the target element point in the view based on the area where the element point is located and the area where the other element points are located.

[0034] Optionally, the second obtaining unit includes a second determining subunit, a third determining subunit and a first obtaining subunit:

[0035] The second determining subunit is used to determine the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship and the first feature point mark encoding method corresponding to the relative position relationship;

[0036] The third determination subunit is used to determine each traversal path corresponding to the target feature point based on the three views of the three-dimensional feature map, the preset traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, and count the number of each traversal path;

[0037] The first obtaining subunit is used to obtain the encoding vector of the target feature point according to each traversal path corresponding to the target feature point and the number of each traversal path.

[0038] Optionally, the second obtaining unit includes a fourth determining subunit, a fifth determining subunit, a sixth determining subunit, and a second obtaining subunit:

[0039] The fourth determining subunit is used to determine other attributes of the target feature point and other attributes of the other feature points;

[0040] The fifth determining subunit is used to determine the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship, the first feature point mark coding method corresponding to the relative position relationship, the other attributes, and the second feature point mark coding method corresponding to the other attributes;

[0041] The sixth determination subunit is used to determine each traversal path corresponding to the target feature point based on the three views of the three-dimensional feature map, the preset traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, and count the number of each traversal path;

[0042] The second obtaining subunit is used to obtain the encoding vector of the target feature point according to each traversal path corresponding to the target feature point and the number of each traversal path.

[0043] Optionally, the other attributes include one or more of the following:

[0044] Feature type, spatial coordinates, feature color, feature shape, and feature content.

[0045] Optionally, the preset traversal algorithm includes an exhaustive traversal algorithm or a random walk algorithm.

[0046] Optionally, the first obtaining unit includes a seventh determining subunit and a third obtaining subunit:

[0047] The seventh determining subunit is used to determine, according to the three-dimensional coordinates of each feature point collected by the collection device, each feature point that is less than or equal to the first preset distance from the target feature point as each other feature point;

[0048] The third acquisition subunit is used to construct edges between two of the other element points whose distance is less than or equal to the second preset distance and between the other element points and the target element point according to the three-dimensional coordinates of the target element point and each of the other element points, so as to obtain a three-dimensional element graph of the target element point.

[0049] In a third aspect, an embodiment of the present application provides a device for encoding feature points, the device comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to perform the feature point encoding method as described in the first aspect.

[0050] In a fourth aspect, an embodiment of the present application provides a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to perform the method for feature point coding as described in the first aspect.

[0051] Compared with the prior art, this application has at least the following advantages:

[0052] Adopting the technical solution of the embodiment of the present application, first, any one of the element points collected by the collection device is used as the target element point to obtain a three-dimensional element map of the target element point, in which the distance between other element points and the target element point in the three-dimensional element map is less than or equal to the first preset distance, the distance between two other element points connected by an edge, and the distance between other element points and the target element point are less than or equal to the second preset distance, and the second preset distance is less than or equal to the first preset distance; then, in the three views of the three-dimensional element map, the relative position relationship between other element points and the target element point is determined; finally, based on the three views, the relative position relationship, the first element point marking encoding method corresponding to the relative position relationship, and the preset traversal algorithm, the encoding vector of the target element point is calculated. It can be seen that when calculating the encoding vector of the target element point, by observing the relative position relationship between other element points and the target element point in the three views of the three-dimensional element map, and combining the first element point marking encoding method corresponding to the relative position relationship, the marking encoding method of the target element point is enriched from the three different angles of the three views to expand the encoding vector of the target element point, so that the obtained encoding vector of the target element point is more accurate, which can improve the accuracy of element point matching. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0054] Figure 1 A schematic diagram of a system framework involved in an application scenario in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of a flow chart of a method for encoding element points provided in an embodiment of the present application;

[0056] Figure 3 A three-dimensional element map of a target element point A provided in an embodiment of the present application;

[0057] Figure 4 A method provided in the embodiment of the present application Figure 3 The relative position relationship between other feature points and the target feature point A in the front view;

[0058] Figure 5 A method provided in the embodiment of the present application Figure 3 The relative position relationship between other feature points and the target feature point A in the side view;

[0059] Figure 6 A method provided in the embodiment of the present application Figure 3The relative position relationship between other feature points and the target feature point A in the top view;

[0060] Figure 7 A schematic diagram of a first element point marking encoding method corresponding to a relative position relationship provided in an embodiment of the present application;

[0061] Figure 8 A schematic diagram of the structure of a device for encoding element points provided in an embodiment of the present application;

[0062] Fig. 9 A schematic diagram of the structure of a device for encoding element points provided in an embodiment of the present application;

[0063] Fig.10 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0065] In scenarios such as high-precision map creation, high-precision map update or three-dimensional modeling, it is necessary to match the various feature points collected by different acquisition devices in the same area. At present, a common feature point matching algorithm in an image is usually used to calculate the encoding vector of each feature point, and based on the encoding vector of each feature point, it is determined whether the various feature points collected by different acquisition devices in the same area match. However, after research, the inventors found that the calculation method of the encoding vector of the feature point in the above method is relatively simple, and the encoding vector of the feature point obtained is not accurate enough, resulting in poor accuracy of feature point matching.

[0066] In order to solve this problem, any one of the element points collected by the acquisition device is used as the target element point to obtain a three-dimensional element map of the target element point, in which the distance between other element points and the target element point in the three-dimensional element map is less than or equal to the first preset distance, the distance between two other element points connected by an edge and the distance between other element points and the target element point are less than or equal to the second preset distance, and the second preset distance is less than or equal to the first preset distance; in the three views of the three-dimensional element map, the relative position relationship between other element points and the target element point is determined; based on the three views, the relative position relationship, the first element point marking encoding method corresponding to the relative position relationship and the preset traversal algorithm, the encoding vector of the target element point is calculated. It can be seen that when calculating the encoding vector of the target element point, by observing the relative position relationship between other element points and the target element point in the three views of the three-dimensional element map, and combining the first element point marking encoding method corresponding to the relative position relationship, the marking encoding method of the target element point is enriched from the three different angles of the three views to expand the encoding vector of the target element point, so that the obtained encoding vector of the target element point is more accurate, which can improve the accuracy of element point matching.

[0067] For example, one of the scenarios of the embodiments of the present application may be applied to Figure 1 In the illustrated scenario, the scenario includes a collection device 101 and a server 102. The collection device 101 collects various feature points in a certain position range, and the server 102 encodes the feature points collected by the collection device 101 using the implementation method provided in the embodiment of the present application.

[0068] First, in the above application scenario, although the action description of the implementation mode of the present application is executed by the server 102, the present application is not limited in terms of the execution subject, as long as the actions disclosed in the implementation mode of the present application are executed.

[0069] Secondly, the above scenario is only an example scenario provided by the embodiment of the present application, and the embodiment of the present application is not limited to this scenario.

[0070] The specific implementation of the method for encoding feature points and related devices in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0071] Exemplary Methods

[0072] See also Figure 2 , shows a schematic flow chart of a method for feature point coding in an embodiment of the present application. In this embodiment, the method may include the following steps:

[0073] Step 201: For a target feature point, obtain a three-dimensional feature map of the target feature point; wherein the target feature point is any feature point among the feature points collected by a collection device, the distance between other feature points in the three-dimensional feature map and the target feature point is less than or equal to a first preset distance, the distance between two feature points connected by an edge in the three-dimensional feature map is less than or equal to a second preset distance, and the second preset distance is less than or equal to the first preset distance.

[0074] In the embodiment of the present application, any one of the element points collected by the collection device is used as the target element point. For the target element point, it is first necessary to obtain a three-dimensional element map of the target element point, which includes the target element point and all other element points suspected to be related to the target element point, and all two other element points with a correlation relationship and other element points and the target element point are connected by edges. Among them, the suspected correlation between other element points and the target element point is represented by the distance between the other element points and the target element point being less than or equal to the first preset distance, the correlation between two other element points is represented by the distance between the two other element points being less than or equal to the second preset distance, and the correlation between other element points and the target element point is represented by the distance between the other element points and the target element point being less than or equal to the second preset distance, and the second preset distance is less than the first preset distance. That is, two element points connected by an edge may include two other element points connected by an edge, or may include other element points and a target element point connected by an edge.

[0075] The specific process of obtaining the three-dimensional element map of the target element point is: based on the three-dimensional coordinates of each element point collected by the known collection device, the distance between any two element points can be calculated, and a first preset distance is first pre-set, which represents the upper limit of the distance between other element points and the target element point in the three-dimensional element map, and all other element points that meet the first preset distance are screened, and the target element point is used to construct the three-dimensional element map, that is, all other element points suspected to be related to the target element point are determined. Then a second preset distance is pre-set, which represents the upper limit of the distance between two other element points connected by an edge in the three-dimensional element map and the distance between other element points and the target element point, and two other element points that meet the second preset distance are screened and the edge is constructed. That is, two other element points with a correlation are determined; other element points and the target element point that meet the second preset distance are screened and the edge is constructed. That is, other element points and the target element point with a correlation are determined; thereby realizing the construction of the three-dimensional element map of the target element point.

[0076] In practical applications, the above-mentioned screening of all other element points that meet the first preset distance and combining the target element point to construct a three-dimensional element map is actually to collect the three-dimensional coordinates of each element point collected by the collection device of the target element point, draw a circle with the target element point as the center and the first preset distance as the radius, and determine each element point within a distance less than or equal to the first preset distance from the target element point as each other element point. The above-mentioned screening of two other element points that meet the second preset distance and constructing edges, screening other element points that meet the second preset distance and the target element point and constructing edges, is actually to calculate the distance between each two other element points through the three-dimensional coordinates of the target element point and the three-dimensional coordinates of each other element point, calculate the distance between each other element point and the target element point, construct an edge between two other element points whose distance is less than or equal to the second preset distance, and construct an edge between other element points whose distance is less than or equal to the second preset distance and the target element point.

[0077] Therefore, in an optional implementation of the embodiment of the present application, the step of obtaining the three-dimensional element map may, for example, include the following steps: according to the three-dimensional coordinates of each element point collected by the acquisition device, determining each element point whose distance from the target element point is less than or equal to the first preset distance as each other element point; according to the three-dimensional coordinates of the target element point and each of the other element points, constructing edges between two of the other element points whose distance is less than or equal to the second preset distance and between the other element point and the target element point, to obtain the three-dimensional element map of the target element point.

[0078] As an example, Figure 3 A three-dimensional element graph of a target element point A is shown. Among them, the distances between other element points B, C, and D and the target element point A are less than or equal to the first preset distance, indicating that other element points B, C, and D are suspected to be related to the target element point A. The distance between the target element point A and any other element point among the other element points B, C, and D is less than or equal to the second preset distance, and they are connected by an edge, indicating that the target element point A and any other element point among the other element points B, C, and D have a correlation relationship; the distance between any two other element points among the other element points B, C, and D is less than or equal to the second preset distance, and they are connected by an edge, indicating that any two other element points among the other element points B, C, and D have a correlation relationship.

[0079] Step 202: Determine the relative position relationship between the other element points and the target element point in the three views of the three-dimensional element map.

[0080] In the embodiment of the present application, based on the three-dimensional element map of the target element point obtained in step 201, the relative position relationship between other element points and the target element point can be determined from three different angles of the three-dimensional element map, namely, the front view, the side view and the top view of the three-dimensional element map. In order to enrich the marking and encoding method of the element point in the subsequent combination with the first element point marking and encoding method corresponding to the relative position relationship, thereby expanding the encoding vector of the element point.

[0081] When step 202 is specifically implemented, for each view in the three views, the absolute spatial position relationship between other element points in the view and the target element point can be removed, and only the relative position relationship between other element points in the view and the target element point can be retained. Then, the view can be divided from left to right and from top to bottom at reasonable intervals to divide the view into multiple areas; then the relative position relationship between other element points in the view and the target element point is determined by the area where the target element point is located and the area where the other element points are located. Therefore, in an optional implementation of the embodiment of the present application, step 202 can, for example, include the following steps A-B:

[0082] Step A: For each of the three views, the view is divided from left to right according to a first interval threshold corresponding to the view, and the view is divided from top to bottom according to a second interval threshold corresponding to the view to obtain various regions of the view.

[0083] Step B: Based on the area where the element point is located and the area where the other element points are located, determine the relative position relationship between the other element points and the target element point in the view.

[0084] As an example, based on the above example, Figure 4 The relative position relationship between other element points and target element point A in a front view shown in the figure. Among them, relative to target element point A, other element point B is at its right position, other element point C is at its upper right position, and other element point D is at its upper position.

[0085] As another example, based on the above example, Figure 5 The relative position relationship between other element points and target element point A in a side view shown in the figure. Among them, relative to target element point A, other element point B is at its right position, other element point C is at its upper left position, and other element point D is at its upper position.

[0086] As another example, based on the above example, Figure 6 The relative position relationship between other element points and target element point A in a top view shown in FIG. Among them, relative to target element point A, other element point B is at its right position, other element point C is at its lower right position, and other element point D is at its lower position.

[0087] Step 203: Based on the three views of the three-dimensional element map, the relative position relationship, the first element point marking encoding method corresponding to the relative position relationship, and a preset traversal algorithm, obtain the encoding vector of the target element point.

[0088] In the embodiment of the present application, based on the relative position relationship between other feature points and the target feature point in the three views obtained in step 202, the encoding vector of the target feature point can be obtained by using a preset traversal algorithm in the three views of the three-dimensional feature map through the relative position relationship combined with its corresponding first feature point marking encoding method.

[0089] In the specific implementation, first, the mark of the target element point and the marks of other element points are determined in the three views of the three-dimensional element map through the relative position relationship combined with the corresponding first element point mark encoding method; then, in the three views, take the target element point as the starting point, and traverse other element points according to the preset number of traversal steps of the preset traversal algorithm, and determine the various traversal paths corresponding to the target element point based on the mark of the target element point and the marks of other element points. If the number of one or some traversal paths is not 1, it is also necessary to count the number of each traversal path. Finally, the encoding vector of the target element point is obtained through the traversal paths corresponding to the target element point and the number of each traversal path. Therefore, in an optional implementation of the embodiment of the present application, step 203 may, for example, include the following steps C-E:

[0090] Step C: Based on the relative position relationship and the first feature point marking encoding method corresponding to the relative position relationship, determine the mark of the target feature point and the marks of the other feature points in the three views.

[0091] As an example, Figure 7 A schematic diagram of a first element point marking encoding method corresponding to a relative position relationship is shown. Based on the relative position relationship between other element points and target element point A, the first element point marking encoding method represents the uppercase and lowercase of the mark of target element point A and the marks of other element points.

[0092] Step D: Based on the three views of the three-dimensional feature map, the preset number of traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, determine the traversal paths corresponding to the target feature point, and count the number of each traversal path.

[0093] Among them, the preset traversal algorithm can be an exhaustive traversal algorithm; that is, for each view in the three views, taking the target feature point as the starting point, exhaustively traverse according to the preset traversal steps to obtain all traversal paths corresponding to the target feature point; this method makes the traversal paths corresponding to the target feature point more complete, and is suitable for the situation where the number of feature points in the three-dimensional feature map is small. The preset traversal algorithm can also be a random walk algorithm; that is, for each view in the three views, taking the target feature point as the starting point, randomly walk according to the preset traversal steps to obtain the partial traversal path corresponding to the target feature point. This method makes the traversal paths corresponding to the target feature point more random, and is more suitable for the situation where the number of feature points in the three-dimensional feature map is large. In an optional implementation of the embodiment of the present application, the preset traversal algorithm includes an exhaustive traversal algorithm or a random walk algorithm.

[0094] Step E: Obtain the encoding vector of the target feature point according to each traversal path corresponding to the target feature point and the number of each traversal path.

[0095] As an example, in Figure 4 Based on the relative position relationship between other feature points and the target feature point A in the front view shown in FIG. 1 , it is assumed that the preset traversal algorithm is an exhaustive traversal algorithm, and the preset traversal step number is 2. Figure 7 The first feature point marking encoding method corresponding to the relative position relationship shown is that the target feature point A is marked as "A", the other feature point B is marked as "B", the other feature point C is marked as "C", and the other feature point D is marked as "D". Taking the target feature point A as the starting point, exhaustively traverse according to the preset traversal step number 2, the traversal paths corresponding to the target feature point A are ABC, ABD, ACB, ACD, ADC and ADB, and the corresponding numbers are 1, 1, 1, 1, 1 and 1.

[0096] As another example, in Figure 5 Based on the relative position relationship between other feature points and the target feature point A in the side view shown in FIG. 1 , it is assumed that the preset traversal algorithm is an exhaustive traversal algorithm, and the preset traversal step number is 2. Figure 7 The first feature point marking encoding method corresponding to the relative position relationship shown is that the target feature point A is marked as "A", the other feature point B is marked as "B", the other feature point C is marked as "c", and the other feature point D is marked as "D". Taking the target feature point A as the starting point, exhaustively traverse according to the preset traversal step number 2, the traversal paths corresponding to the target feature point A are ABc, ABD, AcB, AcD, ADc and ADB, and the corresponding numbers are 1, 1, 1, 1, 1 and 1.

[0097] As another example, in Figure 6Based on the relative position relationship between other feature points and the target feature point A in the top view shown in FIG. 1 , it is assumed that the preset traversal algorithm is an exhaustive traversal algorithm, and the preset traversal step number is 2. Figure 7 The first feature point marking encoding method corresponding to the relative position relationship shown is that the target feature point A is marked as "A", the other feature point B is marked as "B", the other feature point C is marked as "C", and the other feature point D is marked as "d". Taking the target feature point A as the starting point, exhaustively traverse according to the preset traversal step number 2, the traversal paths corresponding to the target feature point A are ABC, ABd, ACB, ACd, AdC and AdB, and the corresponding quantities are 1, 1, 1, 1, 1 and 1.

[0098] Based on the above example, the traversal paths corresponding to the target feature point A are determined to be ABC, ABD, ACB, ACD, ADC, ADB, ABc, AcB, AcD, ADc, ABd, ACd, AdC and AdB, and the corresponding numbers are 2, 2, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1 and 1. Based on this, the encoding vector of the target feature point A is formed, and the encoding vector of the target feature point A is obtained by enriching the marking encoding method of the feature point through the three different angles of the three-dimensional feature map of the target element point A, namely the front view, the side view and the top view, so that the encoding vector of the target feature point A is more accurate.

[0099] In addition, the marking encoding method of the feature points can be further enriched to increase the variability, diversity or specificity of each traversal path corresponding to the feature point, thereby expanding the encoding vector of the feature point and making the encoding vector of the feature point more accurate. In addition to the relative position relationship between other feature points and the target feature point in the three views, other attributes of the target feature point and other attributes of the other feature points can also be determined. When determining the marking of the target feature point and other feature points in the three views, by adding other attributes of the target feature point and other attributes of the other feature points, combined with the second feature point marking encoding method corresponding to the other attributes, the marking of the target feature point and the marking of the other feature points in the three views are changed, which causes the various traversal paths corresponding to the target feature point to change, and correspondingly, the encoding vector of the target feature point changes.

[0100] Therefore. In an optional implementation of the embodiment of the present application, the method may further include step F: determining other attributes of the target feature point and other attributes of the other feature points; then step C may include, for example: determining the mark of the target feature point and the mark of the other feature points in the three views based on the relative position relationship, the first feature point mark encoding method corresponding to the relative position relationship, the other attributes, and the second feature point mark encoding method corresponding to the other attributes.

[0101] Among them, considering whether the element type, spatial coordinates, element color, element shape or element content are the same, whether the mark of the element point is the same, the corresponding second element point mark coding method can be set. Therefore, in an optional implementation of the embodiment of the present application, other attributes may include one or more of the following: element type, spatial coordinates, element color, element shape and element content. For example, in a high-precision traffic map scene, element types may include traffic lights, signs, ground arrows, stop lines and driving lanes, etc. The second element point mark coding method corresponding to the element type can use different marks for element points of different element types. Of course, the specific situation is analyzed specifically, and the embodiment of the present application does not make specific limitations. By analogy, the spatial coordinates, element colors, element shapes and element contents will not be introduced in detail here.

[0102] Through various implementation methods provided in this embodiment, first, any one of the element points collected by the collection device is used as the target element point to obtain a three-dimensional element map of the target element point, in which the distance between other element points and the target element point in the three-dimensional element map is less than or equal to the first preset distance, the distance between two other element points connected by an edge and the distance between other element points and the target element point are less than or equal to the second preset distance, and the second preset distance is less than or equal to the first preset distance; then, in the three views of the three-dimensional element map, the relative position relationship between other element points and the target element point is determined; finally, based on the three views, the relative position relationship, the first element point marking encoding method corresponding to the relative position relationship and the preset traversal algorithm, the encoding vector of the target element point is calculated. It can be seen that when calculating the encoding vector of the target element point, by observing the relative position relationship between other element points and the target element point in the three views of the three-dimensional element map, and combining the first element point marking encoding method corresponding to the relative position relationship, the marking encoding method of the target element point is enriched from the three different angles of the three views to expand the encoding vector of the target element point, so that the obtained encoding vector of the target element point is more accurate, which can improve the accuracy of element point matching.

[0103] Exemplary Devices

[0104] See also Figure 8 , shows a schematic diagram of the structure of a device for feature point coding in an embodiment of the present application. In this embodiment, the device may specifically include:

[0105] A first obtaining unit 801 is used to obtain a three-dimensional element map of a target element point, wherein the target element point is any element point among the element points collected by the collection device, the distance between the target element point and other element points in the three-dimensional element map is less than or equal to a first preset distance, the distance between two element points connected by an edge in the three-dimensional element map is less than or equal to a second preset distance, and the second preset distance is less than or equal to the first preset distance;

[0106] A first determining unit 802 is used to determine the relative position relationship between the other element points and the target element point in the three views of the three-dimensional element map;

[0107] The second obtaining unit 803 is used to obtain the encoding vector of the target feature point based on the three views of the three-dimensional feature map, the relative position relationship, the first feature point marking encoding method corresponding to the relative position relationship, and a preset traversal algorithm.

[0108] In an optional implementation of the embodiment of the present application, the first determining unit 802 includes a dividing subunit and a first determining subunit:

[0109] The division subunit is configured to divide each view of the three views from left to right according to a first interval threshold corresponding to the view, and divide the view from top to bottom according to a second interval threshold corresponding to the view, so as to obtain each region of the view;

[0110] The first determining subunit is used to determine the relative position relationship between the other element points and the target element point in the view based on the area where the element point is located and the area where the other element points are located.

[0111] In an optional implementation of the embodiment of the present application, the second obtaining unit 803 includes a second determining subunit, a third determining subunit and a first obtaining subunit:

[0112] The second determining subunit is used to determine the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship and the first feature point mark encoding method corresponding to the relative position relationship;

[0113] The third determination subunit is used to determine each traversal path corresponding to the target feature point based on the three views of the three-dimensional feature map, the preset traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, and count the number of each traversal path;

[0114] The first obtaining subunit is used to obtain the encoding vector of the target feature point according to each traversal path corresponding to the target feature point and the number of each traversal path.

[0115] In an optional implementation of the embodiment of the present application, the second obtaining unit 803 of the device includes a fourth determining subunit, a fifth determining subunit, a sixth determining subunit and a second obtaining subunit:

[0116] The fourth determining subunit is used to determine other attributes of the target feature point and other attributes of the other feature points;

[0117] The fifth determining subunit is used to determine the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship, the first feature point mark coding method corresponding to the relative position relationship, the other attributes, and the second feature point mark coding method corresponding to the other attributes;

[0118] The sixth determination subunit is used to determine each traversal path corresponding to the target feature point based on the three views of the three-dimensional feature map, the preset traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, and count the number of each traversal path;

[0119] The second obtaining subunit is used to obtain the encoding vector of the target feature point according to each traversal path corresponding to the target feature point and the number of each traversal path.

[0120] In an optional implementation of the embodiment of the present application, the other attributes include one or more of the following:

[0121] Feature type, spatial coordinates, feature color, feature shape, and feature content.

[0122] In an optional implementation of the embodiment of the present application, the preset traversal algorithm includes an exhaustive traversal algorithm or a random walk algorithm.

[0123] In an optional implementation of the embodiment of the present application, the first obtaining unit 801 includes a seventh determining subunit and a third obtaining subunit:

[0124] The seventh determining subunit is used to determine, according to the three-dimensional coordinates of each feature point collected by the collection device, each feature point that is less than or equal to the first preset distance from the target feature point as each other feature point;

[0125] The third acquisition subunit is used to construct edges between two of the other element points whose distance is less than or equal to the second preset distance and between the other element points and the target element point according to the three-dimensional coordinates of the target element point and each of the other element points, so as to obtain a three-dimensional element graph of the target element point.

[0126] Through various implementation methods provided in this embodiment, first, any one of the element points collected by the collection device is used as the target element point to obtain a three-dimensional element map of the target element point, in which the distance between other element points and the target element point in the three-dimensional element map is less than or equal to the first preset distance, the distance between two other element points connected by an edge and the distance between other element points and the target element point are less than or equal to the second preset distance, and the second preset distance is less than or equal to the first preset distance; then, in the three views of the three-dimensional element map, the relative position relationship between other element points and the target element point is determined; finally, based on the three views, the relative position relationship, the first element point marking encoding method corresponding to the relative position relationship and the preset traversal algorithm, the encoding vector of the target element point is calculated. It can be seen that when calculating the encoding vector of the target element point, by observing the relative position relationship between other element points and the target element point in the three views of the three-dimensional element map, and combining the first element point marking encoding method corresponding to the relative position relationship, the marking encoding method of the target element point is enriched from the three different angles of the three views to expand the encoding vector of the target element point, so that the obtained encoding vector of the target element point is more accurate, which can improve the accuracy of element point matching.

[0127] Fig. 9 1 is a block diagram of a device 900 for encoding feature points according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0128] Reference Fig. 9 , the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0129] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0130] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0131] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.

[0132] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0133] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0134] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0135] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0136] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0137] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0138] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0139] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute the method for feature point coding described in the above method embodiment.

[0140] Fig.10 1 is a schematic diagram of the structure of the server in the embodiment of the present application. The server 1000 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1022 (for example, one or more processors) and memory 1032, and one or more storage media 1030 (for example, one or more mass storage devices) storing application programs 1042 or data 1044. Among them, the memory 1032 and the storage medium 1030 can be short-term storage or permanent storage. The program stored in the storage medium 1030 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1022 can be configured to communicate with the storage medium 1030 and execute a series of instruction operations in the storage medium 1030 on the server 1000.

[0141] The server 1000 may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input and output interfaces 1058, one or more keyboards 1056, and / or one or more operating systems 1041, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0142] 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 device 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.

[0143] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in 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. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0144] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0145] The above is only a preferred embodiment of the present application and does not constitute any formal limitation to the present application. Although the present application has been disclosed as above with a preferred embodiment, it is not intended to limit the present application. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present application using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still fall within the scope of protection of the technical solution of the present application.

Claims

1. A method for feature point coding, characterized in that: include: For a target feature point, a three-dimensional feature map of the target feature point is obtained; wherein the target feature point is any feature point among the feature points collected by the collection device, the distance between the target feature point and other feature points in the three-dimensional feature map is less than or equal to a first preset distance, the distance between two feature points connected by an edge in the three-dimensional feature map is less than or equal to a second preset distance, and the second preset distance is less than or equal to the first preset distance; For each view of the three views of the three-dimensional element map, divide the view from left to right according to a first interval threshold corresponding to the view, and divide the view from top to bottom according to a second interval threshold corresponding to the view, to obtain respective regions of the view; Determine, based on the area where the target element point is located and the area where the other element points are located, a relative position relationship between the other element points and the target element point in the view; Determine the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship and the first feature point mark encoding method corresponding to the relative position relationship; Based on the three views of the three-dimensional feature graph, the preset number of traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, determine each traversal path corresponding to the target feature point, and count the number of each traversal path; According to each traversal path corresponding to the target feature point and the number of each traversal path, the encoding vector of the target feature point is obtained.

2. The method according to claim 1, characterized in that The method further comprises: Determine other attributes of the target feature point and other attributes of the other feature points; The determining the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship and the first feature point mark encoding method corresponding to the relative position relationship includes: Based on the relative position relationship, the first feature point marking encoding method corresponding to the relative position relationship, the other attributes, and the second feature point marking encoding method corresponding to the other attributes, the marking of the target feature point and the marking of the other feature points in the three views are determined.

3. The method according to claim 2, characterized in that The other attributes include one or more of the following: Feature type, spatial coordinates, feature color, feature shape, and feature content.

4. The method according to claim 1, characterized in that: The step of obtaining the three-dimensional element map of the target element point comprises: According to the three-dimensional coordinates of each element point collected by the collection device, each element point whose distance from the target element point is less than or equal to the first preset distance is determined as each other element point; According to the three-dimensional coordinates of the target element point and each of the other element points, edges are constructed between two of the other element points whose distance is less than or equal to the second preset distance and between the other element point and the target element point to obtain a three-dimensional element graph of the target element point.

5. A device for encoding feature points, characterized in that: include: A first obtaining unit is used to obtain a three-dimensional element map of a target element point, wherein the target element point is any element point among the element points collected by the collection device, the distance between other element points in the three-dimensional element map and the target element point is less than or equal to a first preset distance, the distance between two element points connected by an edge in the three-dimensional element map is less than or equal to a second preset distance, and the second preset distance is less than or equal to the first preset distance; a first determining unit, configured to divide each view of the three views of the three-dimensional element map from left to right according to a first interval threshold corresponding to the view, and divide the view from top to bottom according to a second interval threshold corresponding to the view, to obtain respective regions of the view; and determine a relative positional relationship between the other element points and the target element point in the view based on the region where the target element point is located and the region where the other element points are located; A second obtaining unit is used to determine the mark of the target feature point and the marks of the other feature points in the three-view drawing based on the relative position relationship and the first feature point mark encoding method corresponding to the relative position relationship; determine the traversal paths corresponding to the target feature point based on the three-view drawing of the three-dimensional feature map, the preset traversal steps of the preset traversal algorithm, the mark of the target feature point and the marks of the other feature points, and count the number of each traversal path; obtain the encoding vector of the target feature point according to the traversal paths corresponding to the target feature point and the number of each traversal path.

6. The device according to claim 5, characterized in that The second obtaining unit is also used for: Determine other attributes of the target feature point and other attributes of the other feature points; The second acquisition unit is specifically used to determine the mark of the target feature point and the marks of the other feature points in the three views based on the relative position relationship, the first feature point mark encoding method corresponding to the relative position relationship, the other attributes, and the second feature point mark encoding method corresponding to the other attributes.

7. The device according to claim 6, characterized in that The other attributes include one or more of the following: Feature type, spatial coordinates, feature color, feature shape, and feature content.

8. The device according to claim 5, characterized in that The first obtaining unit includes a seventh determining subunit and a third obtaining subunit: The seventh determining subunit is used to determine, according to the three-dimensional coordinates of each feature point collected by the collection device, each feature point that is less than or equal to the first preset distance from the target feature point as each other feature point; The third acquisition subunit is used to construct edges between two of the other element points whose distance is less than or equal to the second preset distance and between the other element points and the target element point according to the three-dimensional coordinates of the target element point and each of the other element points, so as to obtain a three-dimensional element graph of the target element point.

9. A device for encoding feature points, characterized in that: The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to perform the feature point coding method according to any one of claims 1 to 4.

10. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes a device to perform the method for feature point coding according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Load prediction method and device based on auto-encoder and meta-learning strategy

    CN110084406A

  • Projection augmented reality method and device and electronic equipment

    CN111275776A

  • Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment

    CN112233240A

  • Data search method and device, electronic equipment and storage medium

    CN112699223A

  • Road line determination method and device, readable storage medium and map updating system

    CN112747755A