Map matching method, control device, readable storage medium and vehicle
By segmenting the path and obtaining alternative path segments, the matching difficulty problem caused by differences in different map specifications is solved, efficient and real-time map matching is achieved, and the versatility of the matching algorithm is improved.
Patent Information
- Application Number
- CN202210988018.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-08-17
AI Technical Summary
Differences in map specifications and data interfaces between different map manufacturers result in a large amount of calculation for the map matching and correction algorithm, making it difficult to achieve matching across map specifications.
By segmenting the path to be matched, alternative path segments are obtained for each path segment, and the final matching result is obtained based on the trajectory points and topology information, which reduces the amount of calculation and uses common map specification information to improve matching efficiency.
It achieves efficient matching between different map specifications, reduces the amount of calculation, improves the real-time and versatility of matching, and avoids the problem of missing input information caused by map switching.
Smart Images

Figure CN115326085B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and specifically provides a map matching method, a control device, a readable storage medium and a vehicle. Background Art
[0002] In the field of intelligent driving, map matching is the process of associating a series of ordered trajectory points to the road network of the target map. The ordered trajectory points can be vehicle trajectories or road shape points of another map. In the process of map matching, due to differences in positioning accuracy, map production errors, map accuracy, map timeliness, etc., the source trajectory points cannot be accurately matched to the road network of the target map, and further correction is required through the map matching algorithm.
[0003] In addition to the coordinates of the source trajectory points, common map matching algorithms usually require some additional information as input, such as the road network attributes of the source / target map, including road level, number of lanes, etc., to achieve map matching correction. However, due to the large differences in map specifications and data interfaces between different map manufacturers, the road network attribute information of different map manufacturers cannot be effectively matched and needs to be converted through algorithms. Therefore, the more information the matching correction algorithm uses during map matching, the greater its calculation amount, and the more difficult it is to use the same set of algorithms to achieve matching between different map specification data.
[0004] Accordingly, a new map matching solution is needed in the art to solve the above problems. Summary of the invention
[0005] In order to overcome the above-mentioned defects, the present invention is proposed to provide a solution or at least partially solve the problem of how to achieve accurate and efficient matching of data between maps of different specifications.
[0006] In a first aspect, the present invention provides a map matching method, the method comprising:
[0007] Acquire a path to be matched, and segment the path to be matched to obtain multiple path segments to be matched;
[0008] According to the trajectory points of each to-be-matched path segment and the topological information of the target map, obtaining a plurality of candidate path segments of each to-be-matched path segment in the target map;
[0009] Acquire multiple candidate paths according to the multiple candidate path fragments;
[0010] A final matching result of the path to be matched is obtained according to the trajectory points of the path to be matched and the multiple candidate paths.
[0011] In a technical solution of the above map matching method, the step of "obtaining multiple candidate path segments for each path segment to be matched in the target map according to the trajectory points of each path segment to be matched and the topological information of the target map" includes:
[0012] For each to-be-matched path segment, according to the trajectory points of the to-be-matched path segment and the topological information of the target map, a plurality of recalled path segments of each to-be-matched path segment in the target map are obtained, wherein the recalled path segments are path segments within a preset distance around each to-be-matched path segment in the target map;
[0013] According to the to-be-matched path segment and the topological information of the recalled path segment in the target map, a plurality of candidate path segments of the to-be-matched path segment are acquired.
[0014] In a technical solution of the above map matching method, the topology information includes shape points and road curves, and the step of "obtaining multiple recalled path segments of the path segment to be matched in the target map according to the trajectory points of the path segment to be matched and the topology information of the target map" includes:
[0015] Acquire a plurality of shape points within a first preset distance range of each trajectory point of the to-be-matched path segment in the target map;
[0016] According to multiple shape points, multiple road curves are obtained;
[0017] Comparing the projection distances from the trajectory points of the path segment to be matched to the plurality of road curves with a preset distance threshold;
[0018] A plurality of recalled path segments of the to-be-matched path segment are acquired from a plurality of road curves based on the comparison result.
[0019] In a technical solution of the above map matching method, the step of "obtaining multiple candidate path segments of the path segment to be matched according to the path segment to be matched and the topological information of the recalled path segment in the target map" includes:
[0020] According to the topological information of the current path segment to be matched and the recalled path segment, the path score of each recalled path segment is obtained;
[0021] According to the path score of the recalled path segment and the topological information of the recalled path segment, a plurality of candidate path segments of the to-be-matched path segment are acquired.
[0022] In a technical solution of the above map matching method, the topological information of the recalled path segment includes road network connectivity, and the step of “obtaining multiple candidate path segments of the path segment to be matched according to the path score of the recalled path segment and the topological information of the recalled path segment” includes:
[0023] sorting the path scores of the recalled path segments, and obtaining a preset number of first path segments according to the sorting results;
[0024] According to the road network connectivity of the first path segment, obtaining a subsequent road segment having road network connectivity of the first path segment within a second preset distance range;
[0025] The candidate path segment is acquired based on the first path segment and the subsequent road segment.
[0026] In a technical solution of the above map matching method, the step of "obtaining the candidate path segment based on the first path segment and the subsequent road segment" includes:
[0027] Determining the number of the acquired subsequent road segments;
[0028] When the number of the acquired subsequent road segments is greater than zero, each of the subsequent road segments is sequentially used as the current recalled path segment, and the step of "acquiring multiple candidate path segments of the path segment to be matched according to the path score of the recalled path segment and the topological information of the recalled path segment" is cyclically executed until the number of the acquired subsequent road segments is zero.
[0029] In a technical solution of the above map matching method, the step of "obtaining multiple candidate path segments for each path segment to be matched in the target map according to the trajectory points of each path segment to be matched and the topological information of the target map" further includes:
[0030] Determine whether the current path segment to be matched is the last path segment to be matched;
[0031] If yes, execute the step of "obtaining multiple candidate paths according to multiple candidate path fragments";
[0032] If not, the next path segment to be matched is obtained as the current path segment to be matched and the step of "obtaining multiple candidate path segments of the path segment to be matched according to the path segment to be matched and the topological information of the recalled path segment in the target map" is performed.
[0033] In a technical solution of the above map matching method, the topological information includes the path direction and curvature, and the step of "obtaining the path score of each recalled path segment according to the topological information of the current path segment to be matched and the recalled path segment" includes:
[0034] For each recalled path segment, obtaining the overlap degree between the recalled path segment and the to-be-matched path segment according to the projection distances from all trajectory points on the to-be-matched path segment to the recalled path segment;
[0035] According to the path directions of the to-be-matched path segment and the recalled path segment, obtaining a degree of consistency in direction between the recalled path segment and the to-be-matched path segment;
[0036] According to the curvatures of the to-be-matched path segment and the recalled path segment, obtaining a degree of consistency of the curvatures of the recalled path segment and the to-be-matched path segment;
[0037] A path score of the recalled path segment is obtained according to the overlap degree, the direction consistency degree and the curvature consistency degree.
[0038] In a technical solution of the above map matching method, the step of "obtaining a final matching result of the path to be matched according to the trajectory points of the path to be matched and the multiple candidate paths" includes:
[0039] For each candidate path, obtain the starting point offset and the ending point offset of each candidate path and the path to be matched;
[0040] Obtaining an average matching score of the candidate paths according to the path score of each candidate path segment in the candidate paths;
[0041] According to the projection distance from each trajectory point in the path to be matched to the candidate path, obtaining the average projection distance between the path to be matched and the candidate path;
[0042] Obtaining a full-segment score of each candidate path according to the starting point offset, the end point offset, the average matching score, and the average projection distance;
[0043] Sort the obtained alternative paths according to the full-segment score of each alternative path;
[0044] According to the sorting result, the final matching result of the path to be matched is obtained.
[0045] In a technical solution of the above map matching method, before the step of "segmenting the path to be matched to obtain multiple path segments to be matched", the method further includes:
[0046] When the density of the trajectory points of the path to be matched is greater than a preset density threshold, downsampling is performed on the trajectory points of the path to be matched.
[0047] In a second aspect, a control device is provided, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the map matching method described in any one of the technical solutions of the above-mentioned map matching method.
[0048] In a third aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored therein, wherein the program codes are suitable for being loaded and run by a processor to execute the map matching method described in any one of the technical solutions of the above-mentioned map matching method.
[0049] In a fourth aspect, a vehicle is provided, comprising the control device of the above-mentioned control device technical solution.
[0050] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0051] In the technical solution of the present invention, the present invention divides the path to be matched into segments, and obtains multiple candidate path segments according to the trajectory points of the path segments to be matched and the topological information of the target map, and obtains multiple candidate paths according to the multiple candidate path segments, and then obtains the final matching result of the path to be matched. Through the above configuration, the present invention can effectively reduce the amount of calculation in the process of obtaining the alternative paths by dividing the path to be matched into multiple path segments to be matched and obtaining multiple candidate path segments according to the trajectory points of the path segments to be matched. At the same time, since the present invention only uses the general map specification information of the map such as the trajectory points of the path to be matched and the topological information of the target map in the process of map matching, the map matching method of the present invention will not cause the input information to be missing due to reasons such as switching maps, and the need for re-adaptation, etc., and has high versatility and can achieve real-time and efficient map matching.
[0052] Solution 1. A map matching method, characterized in that the method comprises:
[0053] Acquire a path to be matched, and segment the path to be matched to obtain multiple path segments to be matched;
[0054] According to the trajectory points of each to-be-matched path segment and the topological information of the target map, obtaining a plurality of candidate path segments of each to-be-matched path segment in the target map;
[0055] Acquire multiple candidate paths according to the multiple candidate path fragments;
[0056] A final matching result of the path to be matched is obtained according to the trajectory points of the path to be matched and the multiple candidate paths.
[0057] Solution 2. The map matching method according to Solution 1 is characterized in that the step of "obtaining multiple candidate path segments for each path segment to be matched in the target map according to the trajectory points of each path segment to be matched and the topological information of the target map" comprises:
[0058] For each to-be-matched path segment, according to the trajectory points of the to-be-matched path segment and the topological information of the target map, a plurality of recalled path segments of each to-be-matched path segment in the target map are obtained, wherein the recalled path segments are path segments within a preset distance around each to-be-matched path segment in the target map;
[0059] According to the to-be-matched path segment and the topological information of the recalled path segment in the target map, a plurality of candidate path segments of the to-be-matched path segment are acquired.
[0060] Solution 3. The map matching method according to Solution 2 is characterized in that the topology information includes shape points and road curves, and the step of "obtaining multiple recalled path segments of the path segment to be matched in the target map according to the trajectory points of the path segment to be matched and the topology information of the target map" includes:
[0061] Acquire a plurality of shape points within a first preset distance range of each trajectory point of the to-be-matched path segment in the target map;
[0062] According to multiple shape points, multiple road curves are obtained;
[0063] Comparing the projection distances from the trajectory points of the path segment to be matched to the plurality of road curves with a preset distance threshold;
[0064] A plurality of recalled path segments of the to-be-matched path segment are acquired from a plurality of road curves based on the comparison result.
[0065] Solution 4. The map matching method according to Solution 2 is characterized in that the step of "obtaining multiple candidate path segments of the path segment to be matched according to the topological information of the path segment to be matched and the recalled path segment in the target map" comprises:
[0066] According to the topological information of the current path segment to be matched and the recalled path segment, the path score of each recalled path segment is obtained;
[0067] According to the path score of the recalled path segment and the topological information of the recalled path segment, a plurality of candidate path segments of the to-be-matched path segment are acquired.
[0068] Solution 5. The map matching method according to Solution 4 is characterized in that the topological information of the recalled path segment includes road network connectivity, and the step of "obtaining multiple candidate path segments of the path segment to be matched according to the path score of the recalled path segment and the topological information of the recalled path segment" comprises:
[0069] sorting the path scores of the recalled path segments, and obtaining a preset number of first path segments according to the sorting results;
[0070] According to the road network connectivity of the first path segment, obtaining a subsequent road segment having road network connectivity of the first path segment within a second preset distance range;
[0071] The candidate path segment is acquired based on the first path segment and the subsequent road segment.
[0072] Solution 6. The map matching method according to Solution 5 is characterized in that "obtaining the candidate path segment based on the first path segment and the subsequent road segment" comprises:
[0073] Determining the number of the acquired subsequent road segments;
[0074] When the number of the acquired successor road segments is greater than zero, each of the acquired successor road segments is sequentially used as the current recalled path segment, and the step of "acquiring multiple candidate path segments of the path segment to be matched according to the path score of the recalled path segment and the topological information of the recalled path segment" is executed cyclically until the number of the acquired successor road segments is zero.
[0075] Solution 7. The map matching method according to Solution 6 is characterized in that the step of "obtaining multiple candidate path segments for each path segment to be matched in the target map according to the trajectory points of each path segment to be matched and the topological information of the target map" further includes:
[0076] Determine whether the current path segment to be matched is the last path segment to be matched;
[0077] If yes, execute the step of "obtaining multiple candidate paths according to multiple candidate path fragments";
[0078] If not, the next path segment to be matched is obtained as the current path segment to be matched and the step of "obtaining multiple candidate path segments of the path segment to be matched according to the path segment to be matched and the topological information of the recalled path segment in the target map" is performed.
[0079] Solution 8. The map matching method according to Solution 4 or 6 is characterized in that the topological information includes the path direction and curvature, and the step of "obtaining the path score of each recalled path segment according to the topological information of the current path segment to be matched and the recalled path segment" includes:
[0080] For each recalled path segment, obtaining the overlap degree between the recalled path segment and the to-be-matched path segment according to the projection distances from all trajectory points on the to-be-matched path segment to the recalled path segment;
[0081] According to the path directions of the to-be-matched path segment and the recalled path segment, obtaining a degree of consistency in direction between the recalled path segment and the to-be-matched path segment;
[0082] According to the curvatures of the to-be-matched path segment and the recalled path segment, obtaining a degree of consistency of the curvatures of the recalled path segment and the to-be-matched path segment;
[0083] A path score of the recalled path segment is obtained according to the overlap degree, the direction consistency degree and the curvature consistency degree.
[0084] Solution 9. The map matching method according to Solution 8 is characterized in that the step of "obtaining a final matching result of the path to be matched according to the trajectory points of the path to be matched and multiple alternative paths" comprises:
[0085] For each candidate path, obtain the starting point offset and the ending point offset of each candidate path and the path to be matched;
[0086] Obtaining an average matching score of the candidate paths according to the path score of each candidate path segment in the candidate paths;
[0087] According to the projection distance from each trajectory point in the path to be matched to the candidate path, obtaining the average projection distance between the path to be matched and the candidate path;
[0088] Obtaining a full-segment score of each candidate path according to the starting point offset, the end point offset, the average matching score, and the average projection distance;
[0089] Sort the obtained alternative paths according to the full-segment score of each alternative path;
[0090] According to the sorting result, the final matching result of the path to be matched is obtained.
[0091] Solution 10. The map matching method according to any one of Solutions 1 to 9 is characterized in that before the step of "segmenting the path to be matched to obtain a plurality of path segments to be matched", the method further comprises:
[0092] When the density of the trajectory points of the path to be matched is greater than a preset density threshold, downsampling is performed on the trajectory points of the path to be matched.
[0093] Solution 11. A control device, comprising a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and is characterized in that the program codes are suitable for being loaded and run by the processor to execute the map matching method described in any one of Solutions 1 to 10.
[0094] Solution 12. A computer-readable storage medium storing a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the map matching method described in any one of Solutions 1 to 10.
[0095] Solution 13. A vehicle, characterized in that the vehicle includes the control device described in Solution 11. BRIEF DESCRIPTION OF THE DRAWINGS
[0096] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. Among them:
[0097] Figure 1 is a schematic flow chart of main steps of a map matching method according to an embodiment of the present invention;
[0098] Figure 2 It is a flowchart diagram of main steps of a map matching method according to an implementation of an embodiment of the present invention. DETAILED DESCRIPTION
[0099] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0100] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.
[0101] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart showing the main steps of a map matching method according to an embodiment of the present invention. Figure 1 As shown, the map matching method in the embodiment of the present invention mainly includes the following steps S101 to S104.
[0102] Step S101: Acquire a path to be matched, segment the path to be matched, and obtain a plurality of path segments to be matched.
[0103] In this embodiment, the path segment to be matched may be segmented to obtain multiple path segments to be matched.
[0104] In one implementation, the segmented path length may be a fixed value, or may be selected according to actual application requirements.
[0105] Step S102: acquiring a plurality of candidate path segments in the target map for each path segment to be matched according to the trajectory points of each path segment to be matched and the topological information of the target map.
[0106] In this embodiment, for each to-be-matched path segment, multiple candidate path segments of each to-be-matched path segment in the target map may be obtained according to the trajectory points of the to-be-matched path segment and the topological information of the target map.
[0107] In one embodiment, the path to be matched may be a series of ordered track points, which may be vehicle tracks or road shape points of the source map. When the path to be matched is a road in the source map, the track points of the path to be matched are road shape points.
[0108] In one embodiment, when the density of the trajectory points of the path to be matched is greater than a preset density threshold, the trajectory points of the path to be matched can be downsampled to select trajectory points of different data amounts according to different path segments to be matched. It should be noted that in the process of downsampling the trajectory points, the road shape of the path to be matched cannot be changed. By downsampling the trajectory points, the amount of calculation in the map matching process can be reduced while ensuring the matching accuracy.
[0109] In one implementation, the topological information of the target map may include general map specification information such as shape points, road curves, road network connectivity, path direction and curvature of roads in the target map.
[0110] Step S103: Acquire multiple candidate paths according to the multiple candidate path segments.
[0111] In this embodiment, multiple candidate paths may be acquired according to the road network connectivity between multiple candidate path segments.
[0112] Step S104: obtaining a final matching result of the path to be matched according to the trajectory points of the path to be matched and a plurality of candidate paths.
[0113] In this embodiment, the final matching result of the path to be matched may be selected from a plurality of candidate paths according to the trajectory points of the path to be matched.
[0114] Based on the above steps S101 to S104, the embodiment of the present invention segments the path to be matched, and obtains multiple candidate path segments according to the trajectory points of the path segments to be matched and the topological information of the target map, and obtains multiple candidate paths according to the multiple candidate path segments, and then obtains the final matching result of the path to be matched. Through the above configuration, the embodiment of the present invention can effectively reduce the amount of calculation in the process of obtaining the alternative paths by dividing the path to be matched into multiple path segments to be matched and obtaining multiple candidate path segments according to the trajectory points of the path segments to be matched. At the same time, since the present invention only uses the general map specification information of the map such as the trajectory points of the path to be matched and the topological information of the target map during the map matching process, the map matching method of the present invention will not cause the input information to be missing due to reasons such as switching maps, and the need for re-adaptation, etc., and has high versatility and can achieve real-time and efficient map matching.
[0115] Step S102 and step S104 are further described below.
[0116] In one implementation of the embodiment of the present invention, step S102 may include the following steps S1021 and S1022:
[0117] Step S1021: for each path segment to be matched, according to the trajectory points of the path segment to be matched and the topological information of the target map, a plurality of recalled path segments of each path segment to be matched in the target map are obtained, wherein the recalled path segments are path segments within a preset distance around each path segment to be matched in the target map.
[0118] In this embodiment, step S1021 may further include the following steps S10211 to S10214:
[0119] Step S10211: Acquire a plurality of shape points within a first preset distance range of each trajectory point of the to-be-matched path segment in the target map.
[0120] In this embodiment, each track point of the path segment to be matched may be based on a plurality of shape points within a first preset distance range in the target map.
[0121] In one implementation, the distance between the track point and the shape point may be calculated based on the coordinates or longitude and latitude information of the track point and the shape point in the target map.
[0122] For example, the shape points within 500m around the trajectory point in the target map are obtained according to the coordinates or longitude and latitude information of the trajectory point.
[0123] Step S10212: Acquire multiple road curves based on multiple shape points.
[0124] In this embodiment, a road curve composed of multiple shape points can be obtained based on the road network connectivity between the multiple shape points obtained in step S10211.
[0125] Step S10213: comparing the projection distance from the trajectory point of the path segment to be matched to the multiple road curves with a preset distance threshold.
[0126] In this embodiment, the projection distance between the trajectory point of the path segment to be matched and the multiple road curves can be calculated and compared with the preset distance threshold. The projection distance refers to the shortest distance from the trajectory point to the road curve, that is, the shortest connection length is selected from the trajectory point to all the points constituting the road curve as the projection distance. Simplifying the distance from the point to the curve into the projection distance can effectively reduce the amount of calculation and improve the efficiency of the calculation.
[0127] Step S10214: acquiring a plurality of recalled path segments of the to-be-matched path segments from the plurality of road curves based on the comparison result.
[0128] In this embodiment, multiple recall path segments may be selected from multiple road curves according to the comparison result. That is, when the projection distance of a road curve is less than a preset projection distance threshold, the road curve is used as a recall path segment.
[0129] Step S1022: acquiring a plurality of candidate path segments of the path segment to be matched according to the path segment to be matched and the topological information of the recalled path segments in the target map.
[0130] In this implementation, step S1022 may include the following steps S10221 and S10222:
[0131] Step S10221: Obtain the path score of each recalled path segment according to the topological information of the current path segment to be matched and the recalled path segment.
[0132] In this implementation, step S10221 may further include the following steps S102211 to S102214:
[0133] Step S102211: for each recalled path segment, the overlap degree between the recalled path segment and the path segment to be matched is obtained according to the projection distance from all trajectory points on the path segment to be matched to the recalled path segment.
[0134] In this embodiment, the average projection distance of all trajectory points can be obtained according to the projection distance from all trajectory points on the path segment to be matched to the recalled path segment, and the average projection distance is used to represent the overlap degree between the recalled path segment and the path segment to be matched.
[0135] Step S102212: according to the path directions of the to-be-matched path segment and the recalled path segment, obtain the degree of consistency of the directions of the recalled path segment and the to-be-matched path segment.
[0136] In this embodiment, the degree of consistency of the directions of the recalled path segment and the path segment to be matched may be determined according to the path directions of the path segment to be matched and the recalled path segment.
[0137] Step S102213: According to the curvatures of the path segment to be matched and the recalled path segment, the degree of consistency of the curvature of the recalled path segment and the path segment to be matched is obtained.
[0138] In this embodiment, the degree of consistency of the curvature of the recalled path segment and the path segment to be matched may be determined according to the curvatures of the path segment to be matched and the recalled path segment.
[0139] Step S102214: Obtain the path score of the recalled path segment according to the overlap degree, the direction consistency degree and the curvature consistency degree.
[0140] In this embodiment, the path score of the recalled path segment may be determined by comprehensively considering the overlap degree, direction consistency degree and curvature consistency degree between the path segment to be matched and the recalled path segment.
[0141] In one implementation, weights may be set for the overlap degree, directional consistency degree, and curvature consistency degree respectively according to actual application needs, and weighted calculations may be performed on the overlap degree, directional consistency degree, and curvature consistency degree to obtain the path score of the recalled path segment.
[0142] Step S10222: acquiring a plurality of candidate path segments of the path segment to be matched according to the path score of the recalled path segment and the topological information of the recalled path segment.
[0143] In this implementation, step S10222 may further include the following steps S102221 to S102223:
[0144] Step S102221: sorting the path scores of the recalled path segments, and obtaining a preset number of first path segments according to the sorting results.
[0145] In this embodiment, the path scores of the recalled path segments may be sorted, and a preset number of first path segments may be obtained according to the sorting result. Those skilled in the art may set the value of the preset number according to the needs of the actual application.
[0146] In one implementation, the recalled path segments may be sorted from high to low according to their path scores, and the top N recalled path segments may be selected as the first path segment according to the sorting result. Those skilled in the art may select the value of N according to actual application requirements.
[0147] Step S102222: According to the road network connectivity of the first path segment, a subsequent road segment having road network connectivity within the second preset distance range of the first path segment is obtained.
[0148] In this embodiment, after obtaining the first path segment, the subsequent road segment of the first path segment can be obtained according to the road network connectivity of the first path segment. That is, if the first path segment has a subsequent road segment within the second preset distance range, the subsequent road segment is also recalled. The subsequent road segment can be a road segment connected to the first path segment, or can be a plurality of bifurcated road segments connected to the first road segment.
[0149] Step S102223: Based on the first path segment and the subsequent road segment, obtain the candidate path segment.
[0150] In this implementation, step S102223 may further include the following steps S102231 to S102232:
[0151] Step S102231: Determine the number of subsequent road segments obtained.
[0152] Step S102232: when the number of acquired subsequent road segments is greater than zero, each subsequent road segment is sequentially used as a current recalled path segment, and step S1022 is executed repeatedly until the number of acquired subsequent road segments is zero.
[0153] In this embodiment, the number of subsequent road segments can be determined. If the number of subsequent road segments is greater than zero, each subsequent road segment can be used as a recalled path segment in turn, and the process jumps to step S1022 until the number of subsequent road segments obtained is zero.
[0154] In one implementation, step S102 may include, in addition to the above steps S1021 and S1022, the following steps S1023 to S1024 may also be included:
[0155] Step S1023: determine whether the current path segment to be matched is the last path segment to be matched; if so, jump to step S103; if not, jump to step S1024;
[0156] Step S1024: Obtain the next path segment to be matched as the current path segment to be matched, and jump to step S10222.
[0157] In this embodiment, when the current path segment to be matched is the last path segment to be matched, the process can jump to step S103; when the current path segment to be matched is not the last path segment to be matched, the process can jump to step S10222 with the next path segment to be matched as the current path segment.
[0158] In one implementation of the embodiment of the present invention, step S103 may further include the following steps S1031 to S1036:
[0159] Step S1031: for each candidate path, obtain the starting point offset and the ending point offset of each candidate path and the path to be matched.
[0160] In this embodiment, the starting point offset and the ending point offset between the path to be matched and the candidate path may be calculated according to the starting point and the ending point of the path to be matched and the candidate path.
[0161] Step S1032: according to the path score of each candidate path segment in the candidate path, obtain the average matching score of the candidate paths.
[0162] In this embodiment, the average value of the path scores of all candidate path segments in the candidate path may be calculated as the average matching score of the candidate path.
[0163] Step S1033: according to the projection distance from each trajectory point in the path to be matched to the candidate path, the average projection distance between the path to be matched and the candidate path is obtained.
[0164] In this embodiment, the average projection distance may be calculated according to the projection distance from each trajectory point in the path to be matched to the candidate path, and used as the average projection distance between the path to be matched and the candidate path.
[0165] Step S1034: Obtain the full-segment score of each candidate path according to the starting point offset, the ending point offset, the average matching score, and the average projection distance.
[0166] In this embodiment, weights can be set for the starting point offset, end point offset, average matching score, and average projection distance, respectively, and weighted calculations can be performed on the starting point offset, end point offset, average matching score, and average projection distance, and the result of the weighted calculation is used as the full section score of each alternative path.
[0167] Step S1035: Sort the acquired candidate paths according to the full-segment score of each candidate path.
[0168] In this embodiment, the candidate paths may be sorted according to the full-segment score of each candidate path.
[0169] Step S1036: According to the sorting result, the final matching result of the path to be matched is obtained.
[0170] In this embodiment, the top N candidate paths may be selected as the final matching results of the paths to be matched according to the ranking results of the candidate paths. Those skilled in the art may set the value of N according to the needs of the actual application.
[0171] In one embodiment, please refer to the attached Figure 2 , Figure 2 FIG. 1 is a flow chart showing the main steps of a map matching method according to an implementation of an embodiment of the present invention. Figure 2 As shown, the map matching method of this embodiment may include the following steps S201 to S209:
[0172] Step S201: input the coordinates of the trajectory points of the path to be matched and the topological information of the target map.
[0173] In this embodiment, the coordinates of the track points of the path to be matched and the topological information of the target map may be input first.
[0174] Step S202: segment the path to be matched.
[0175] In this embodiment, step S202 is similar to the method described in the aforementioned step S101, and for the sake of simplicity, it will not be repeated here.
[0176] Step S203: in the target map, obtaining the recalled path segment of the current path segment to be matched.
[0177] In this embodiment, step S203 is similar to the method described in the aforementioned step S1021, and for the sake of simplicity, it will not be repeated here.
[0178] Step S204: scoring and sorting the recalled path segments.
[0179] In this embodiment, step S204 is similar to the method described in the aforementioned step S10221, and for the sake of simplicity, it will not be repeated here.
[0180] Step S205: retaining the Top N recalled path segments and the path scores of the recalled path segments.
[0181] In this embodiment, step S205 is similar to the method described in the aforementioned step S102221, and for the sake of simplicity, it will not be repeated here.
[0182] Step S206: According to the road network connectivity, determine whether the retained recalled path segment has a subsequent road segment; if so, take the subsequent road segment as the recalled path segment and jump to step S204; if not, jump to step S207.
[0183] In this embodiment, step S206 is similar to the method described in the aforementioned step S102222, and for the sake of simplicity, it will not be repeated here.
[0184] Step S207: Have all the path segments to be matched been processed? If so, jump to step S208; if not, jump to step S203.
[0185] In this embodiment, step S207 is similar to the method described in the aforementioned step S1023, and for the sake of simplicity, it will not be repeated here.
[0186] Step S208: scoring the candidate path segments.
[0187] In this embodiment, step S208 is similar to the method described in the aforementioned steps S1031 to S1035, and will not be repeated here for the sake of simplicity.
[0188] Step S209: Output the final matching result.
[0189] In this embodiment, step S209 is similar to the method described in the aforementioned step S1036, and for the sake of simplicity, it will not be repeated here.
[0190] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
[0191] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0192] Furthermore, the present invention also provides a control device. In one embodiment of the control device according to the present invention, the control device includes a processor and a storage device. The storage device can be configured to store a program for executing the map matching method of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the map matching method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The control device can be a control device device formed by various electronic devices.
[0193] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the map matching method of the above method embodiment, and the program can be loaded and run by the processor to implement the above map matching method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
[0194] Furthermore, the present invention also provides a vehicle. In one embodiment of a vehicle according to the present invention, the vehicle includes the control device in the above control device embodiment.
[0195] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
[0196] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.
[0197] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A map matching method, characterized in that: The method comprises: Acquire a path to be matched, and segment the path to be matched to obtain multiple path segments to be matched; For each to-be-matched path segment, according to the trajectory points of the to-be-matched path segment and the topological information of the target map, a plurality of recalled path segments of each to-be-matched path segment in the target map are obtained, wherein the recalled path segments are path segments within a preset distance around each to-be-matched path segment in the target map; For each recalled path segment, obtaining the overlap degree between the recalled path segment and the to-be-matched path segment according to the projection distances from all trajectory points on the to-be-matched path segment to the recalled path segment; According to the path directions of the to-be-matched path segment and the recalled path segment, obtaining a degree of consistency in direction between the recalled path segment and the to-be-matched path segment; According to the curvatures of the to-be-matched path segment and the recalled path segment, obtaining a degree of consistency of the curvatures of the recalled path segment and the to-be-matched path segment; Obtaining a path score of the recalled path segment according to the overlap degree, the direction consistency degree, and the curvature consistency degree; Acquire multiple candidate path segments of the to-be-matched path segment according to the path score of the recalled path segment and the topological information of the recalled path segment; Acquire multiple candidate paths according to the multiple candidate path fragments; For each candidate path, obtain the starting point offset and the ending point offset of each candidate path and the path to be matched; Obtaining an average matching score of the candidate paths according to the path score of each candidate path segment in the candidate paths; According to the projection distance from each trajectory point in the path to be matched to the candidate path, obtaining the average projection distance between the path to be matched and the candidate path; Obtaining a full-segment score of each candidate path according to the starting point offset, the end point offset, the average matching score, and the average projection distance; Sort the obtained alternative paths according to the full-segment score of each alternative path; According to the sorting result, the final matching result of the path to be matched is obtained.
2. The map matching method according to claim 1, characterized in that: The topological information of the target map includes shape points and road curves, and the step of "obtaining a plurality of recalled path segments of the path segment to be matched in the target map according to the trajectory points of the path segment to be matched and the topological information of the target map" includes: Acquire a plurality of shape points within a first preset distance range of each trajectory point of the to-be-matched path segment in the target map; According to multiple shape points, multiple road curves are obtained; Comparing the projection distances from the trajectory points of the path segment to be matched to the plurality of road curves with a preset distance threshold; A plurality of recalled path segments of the to-be-matched path segment are acquired from a plurality of road curves based on the comparison result.
3. The map matching method according to claim 1, characterized in that: The topological information of the recalled path segment includes road network connectivity. The step of "obtaining multiple candidate path segments of the path segment to be matched according to the path score of the recalled path segment and the topological information of the recalled path segment" includes: sorting the path scores of the recalled path segments, and obtaining a preset number of first path segments according to the sorting results; According to the road network connectivity of the first path segment, obtaining a subsequent road segment having road network connectivity of the first path segment within a second preset distance range; The candidate path segment is acquired based on the first path segment and the subsequent road segment.
4. The map matching method according to claim 3, characterized in that: “Acquiring the candidate path segment based on the first path segment and the subsequent road segment” includes: Determining the number of the acquired subsequent road segments; When the number of the acquired successor road segments is greater than zero, each of the acquired successor road segments is sequentially used as the current recalled path segment, and the step of "acquiring multiple candidate path segments for the path segment to be matched according to the path score of the recalled path segment and the topological information of the recalled path segment" is executed cyclically until the number of the acquired successor road segments is zero.
5. The map matching method according to claim 4, characterized in that: The step of "obtaining a plurality of candidate path segments for each to-be-matched path segment in the target map according to the trajectory points of each to-be-matched path segment and the topological information of the target map" also includes: Determine whether the current path segment to be matched is the last path segment to be matched; If yes, execute the step of "obtaining multiple candidate paths according to multiple candidate path fragments"; If not, the next path segment to be matched is obtained as the current path segment to be matched and the step of "obtaining multiple candidate path segments of the path segment to be matched according to the path segment to be matched and the topological information of the recalled path segment in the target map" is performed.
6. The map matching method according to any one of claims 1 to 5, characterized in that: Before the step of "segmenting the path to be matched to obtain multiple path segments to be matched", the method further includes: When the density of the trajectory points of the path to be matched is greater than a preset density threshold, downsampling is performed on the trajectory points of the path to be matched.
7. A control device, comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and executed by the processor to execute the map matching method according to any one of claims 1 to 6.
8. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the map matching method according to any one of claims 1 to 6.
9. A vehicle, characterized in that: The vehicle comprises the control device according to claim 7.
Citation Information
Patent Citations
Method and system for map matching
CN104121916A
Road matching method based on matching degree feedback
CN105910611A
Method and device for determining vehicle driving path
CN110232470A
Offline map matching method and device based on turning point and terminal equipment
CN112067005A
Vehicle path matching method and device, computer equipment and storage medium
CN113029163A
