Vehicle path matching method, device, computer equipment and storage medium
By obtaining the vehicle's position and angle change values and calculating the path matching degree, it solves the problem of inaccurate navigation in complex road conditions with the existing technology and achieves more accurate vehicle path matching and navigation.
Patent Information
- Application Number
- CN201911357801.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-12-25
AI Technical Summary
In complex road conditions, existing vehicle navigation and positioning technology cannot accurately detect the actual driving trajectory of the vehicle, resulting in inaccurate navigation.
By obtaining the vehicle's position and orientation points, path shape points and angle change values, the path matching degree of the candidate path is calculated, the target path of the vehicle is determined, and the accuracy of path matching is improved by combining sensor and map data.
In complex road conditions, it can accurately determine the vehicle's target path, improve the accuracy and reliability of navigation, and reduce the risk of taking detours or going the wrong way.
Smart Images

Figure CN113029171B
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile navigation technology, and in particular to a vehicle path matching method, device, computer equipment and storage medium. Background Art
[0002] With the development of electronic technology and its extensive application in the field of automobile navigation technology, vehicle navigation and positioning technology has brought great convenience to people's lives. When people drive their own vehicles, they can use vehicle navigation and positioning technology to obtain planned driving routes and detect vehicle driving trajectories, avoiding detours or wrong roads due to unfamiliarity with the roads.
[0003] However, under simple road conditions, current vehicle navigation and positioning technology can accurately detect the actual driving trajectory of the vehicle; under complex road conditions, current navigation and positioning technology cannot accurately detect the actual driving trajectory of the vehicle. Summary of the invention
[0004] Based on this, it is necessary to provide a vehicle path matching method, apparatus, computer equipment and storage medium that can improve the accuracy of vehicle path matching in response to the above technical problems.
[0005] A vehicle path matching method, the method comprising:
[0006] Obtain the location of the vehicle;
[0007] According to the orientation point, the shape points of the path where the vehicle is located and the subsequent path of the path are obtained to obtain a candidate path;
[0008] Acquire a first angle change value of the vehicle within a sampling period through a sensor;
[0009] Obtaining a second angle change value between each of the candidate path shape points;
[0010] Determining a first path matching degree of the candidate path according to the first angle change value and the second angle change value;
[0011] A first target path where the vehicle is located is determined from the candidate paths according to the first path matching degree.
[0012] In one embodiment, determining the first path matching degree of the candidate path according to the first angle change value and the second angle change value includes:
[0013] Obtaining the empirical coefficient of the candidate path;
[0014] A first path matching degree of the candidate path is determined according to the first angle change value, the second angle change value, and the empirical coefficient.
[0015] In one embodiment, determining the first path matching degree of the candidate path according to the first angle change value, the second angle change value, and the empirical coefficient of the candidate path includes:
[0016] Calculating a first path matching degree of the candidate path according to a first target calculation formula based on the first angle change value, the second angle change value and the empirical coefficient;
[0017] The first target calculation formula is:
[0018] Rsws=Radi+(Sma1-Rma1)+(Sma2-Rma2)
[0019] Among them, Rsws is the first path matching degree of the candidate path, Radi is the empirical coefficient of the candidate path, Sma1 is the maximum cumulative angle change corresponding to the first motion trend of the vehicle during the sampling period, Sma2 is the maximum cumulative angle change corresponding to the second motion trend of the vehicle during the sampling period, Rma1 is the maximum cumulative angle change corresponding to the first motion trend of the candidate path, and Rma2 is the maximum cumulative angle change corresponding to the second motion trend of the candidate path.
[0020] In one embodiment, the calculation method of the empirical coefficient Radi of the path includes at least one of the following situations:
[0021] When the movement trend of the vehicle is the same as the movement trend of the candidate path within the sampling period, the empirical coefficient Radi is obtained by dividing the fixed empirical coefficient by the coefficient factor;
[0022] When the movement trend of the vehicle in the sampling period is different from the movement trend of the candidate path, the empirical coefficient Radi is obtained by multiplying the fixed empirical coefficient by the coefficient factor.
[0023] In one embodiment, before determining the first target path where the vehicle is located from the candidate paths according to the first three path matching degrees, the method further includes:
[0024] Calculating the overall movement trend of the vehicle and the movement trend of each candidate path within a sampling period;
[0025] When it is determined that the overall movement trend of the vehicle within the sampling period is the same as the movement trend of each of the candidate paths, the step of determining the first target path where the vehicle is located from the candidate paths according to the first path matching degree is executed.
[0026] In one embodiment, determining the first target path where the vehicle is located from the candidate paths according to the first path matching degree includes:
[0027] Obtaining the first path matching degree with the smallest value from the first path matching degrees;
[0028] The candidate path corresponding to the first path matching degree with the smallest value is used as the first target path where the vehicle is located.
[0029] In one embodiment, before taking the candidate path corresponding to the first path matching degree with the smallest value as the first target path where the vehicle is located, the method further includes:
[0030] Obtaining the corresponding driving distance of the vehicle within a sampling period and the number of corresponding candidate paths;
[0031] When the driving distance is greater than a driving distance threshold and the number of paths is less than a path number threshold, the candidate path corresponding to the first path matching degree with the smallest value is used as the first target path where the vehicle is located.
[0032] In one embodiment, the method further comprises:
[0033] Acquire a second target path where the vehicle is located from the candidate paths by navigation;
[0034] Acquire the first path matching degree corresponding to the second target path from the first path matching degree;
[0035] When the difference between the first path matching degree of the first target path and the first path matching degree corresponding to the second target path reaches a threshold, the product of the distance between the first target path and the second target path and the fixed empirical coefficient is less than the actual vehicle offset distance, and the projection point of the orientation point of the vehicle is on the first target path, the first target path is used as the final target path of the vehicle.
[0036] A vehicle path matching device, the device comprising:
[0037] A first acquisition module is used to acquire the position of the vehicle;
[0038] A path acquisition module, used to acquire shape points of the path where the vehicle is located and the subsequent path of the path according to the orientation point, to obtain a candidate path;
[0039] A second acquisition module, used for acquiring a first angle change value of the vehicle within a sampling period through a sensor;
[0040] A third acquisition module, used to acquire a second angle change value between each of the candidate path shape points;
[0041] A first determination module, configured to determine a first path matching degree of the candidate path according to the first angle change value, the second angle change value and an empirical coefficient of the candidate path;
[0042] A second determination module is configured to determine a first target path where the vehicle is located from the candidate paths according to the first path matching degree.
[0043] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0044] Obtain the location of the vehicle;
[0045] According to the orientation point, the shape points of the path where the vehicle is located and the subsequent path of the path are obtained to obtain a candidate path;
[0046] Acquire a first angle change value of the vehicle within a sampling period through a sensor;
[0047] Obtaining a second angle change value between each of the candidate path shape points;
[0048] Determining a first path matching degree of the candidate path according to the first angle change value, the second angle change value, and an empirical coefficient of the candidate path;
[0049] A first target path where the vehicle is located is determined from the candidate paths according to the first path matching degree.
[0050] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0051] Obtain the location of the vehicle;
[0052] According to the orientation point, the shape points of the path where the vehicle is located and the subsequent path of the path are obtained to obtain a candidate path;
[0053] Acquire a first angle change value of the vehicle within a sampling period through a sensor;
[0054] Obtaining a second angle change value between each of the candidate path shape points;
[0055] Determining a first path matching degree of the candidate path according to the first angle change value, the second angle change value, and an empirical coefficient of the candidate path;
[0056] A first target path where the vehicle is located is determined from the candidate paths according to the first path matching degree.
[0057] The vehicle path matching method, device, computer equipment and storage medium obtain the orientation point of the vehicle's location; obtain the shape points of the vehicle's path and the path's continuation path based on the orientation point to obtain the candidate path; obtain the first angle change value of the vehicle within a sampling period through a sensor; obtain the second angle change value between each candidate path shape point; determine the first path matching degree of the candidate path based on the first angle change value, the second angle change value and the empirical coefficient of the candidate path; and determine the first target path of the vehicle from the candidate path based on the first path matching degree. By obtaining the relevant data of the vehicle's orientation point, the first angle change value of the vehicle within a sampling period, and the second angle change value between the candidate path shape points, the matching degree of the candidate path is determined based on multiple sets of data, and the first target path of the vehicle is accurately determined from the obtained candidate paths, thereby improving the accuracy of vehicle path matching. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A diagram showing an application environment of a vehicle path matching method in an embodiment;
[0059] Figure 2 A schematic diagram of a process flow of a vehicle path matching method in one embodiment;
[0060] Figure 3 A schematic diagram of a movement trend of a vehicle in one embodiment;
[0061] Figure 4 A schematic diagram of a movement trend of a candidate path in one embodiment;
[0062] Figure 5 A schematic diagram of a flow chart of a method for determining a vehicle target path in one embodiment;
[0063] Figure 6 A schematic diagram of a flow chart of a vehicle path matching method in another embodiment;
[0064] Figure 7 A method for determining the overall movement trend of a vehicle within a collection period in one embodiment;
[0065] Figure 8 is a structural block diagram of a vehicle path matching device in one embodiment;
[0066] Fig. 9 is a structural block diagram of a vehicle path matching device in another embodiment;
[0067] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0069] The vehicle path matching method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. By obtaining the compass point of the vehicle's location; obtaining the shape points of the vehicle's path and the continuation path of the path according to the compass point, a candidate path is obtained; the first angle change value of the vehicle within the sampling period is obtained by the sensor; the second angle change value between each candidate path shape point is obtained; according to the first angle change value and the second angle change value, the first path matching degree of the candidate path is determined; from the candidate path, the first target path of the vehicle is determined according to the first path matching degree. Among them, the terminal 102 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0070] In one embodiment, Figure 2 As shown, a vehicle path matching method is provided, which is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:
[0071] Step 202, obtaining the position of the vehicle.
[0072] Among them, the azimuth point is a coordinate point with direction. For example, in the geocentric coordinate system, the intersection of the meridian plane and the equatorial plane is taken as the origin to establish the coordinate system, with the meridian plane as the X-axis, eastward is positive, called east longitude (0-180), westward is negative, called west longitude (0-180); with the equatorial plane as the Y-axis, northward is positive, called north latitude (0-90), southward is negative, called south latitude (0-90).
[0073] The vehicle's position during driving can be calculated by the Global Navigation Satellite System (GNSS) chip after receiving satellite information to obtain the vehicle's current position. The specific position corresponding to the position can be represented by the longitude and latitude of the vehicle; for example, the vehicle's position is (116,39), where 116 represents 116 degrees east longitude and 39 degrees north latitude.
[0074] Specifically, the real-time position of the vehicle during driving is calculated by the GNSS chip by receiving satellite information, and the obtained position can be stored in a queue in chronological order. The GNSS chip can calculate the position of the vehicle according to a matching period, for example, the matching period is 1s, that is, the position of the vehicle during driving is calculated every 1s.
[0075] In one embodiment, obtaining the projection point of the compass point on the candidate path includes: obtaining the road section corresponding to the compass point of the vehicle's location on the candidate path, making a vertical line of the road section through the compass point; and determining the intersection of the vertical line and the road section as the projection point.
[0076] Specifically, by obtaining the road section corresponding to the compass point of the vehicle's location on the candidate path, a vertical line is made through the compass point to the road section, and the intersection of the vertical line and the road section is determined as the projection point; based on the projection point, the shortest distance from the compass point to the candidate path can be calculated to improve the accuracy of the path matching calculation.
[0077] Step 204, obtaining shape points of the path where the vehicle is located and the path connecting the path according to the orientation point, and obtaining a candidate path.
[0078] Specifically, the current path of the vehicle is determined based on the orientation point of the vehicle's location; shape points related to the current path of the vehicle and the path connected to the current path are obtained from the map data based on the orientation point. Each shape point has coordinates and direction. Adjacent shape points are connected and drawn in sequence to obtain the path shape of the candidate path.
[0079] In one embodiment, when it is detected through positioning and navigation technology that there are at least two subsequent paths corresponding to the path corresponding to the current position of the vehicle, the shape points of each subsequent path connected to the current path are obtained from the map data, and the corresponding candidate paths are obtained based on the shape points.
[0080] Step 206: Acquire a first angle change value of the vehicle within a sampling period through a sensor.
[0081] Among them, the sampling period is a fixed sampling period pre-set in the sensor, for example, the sampling period can be set to 1s. The sensor is a positioning and control system based on free space movement and gestures, for example, a gyroscope sensor. The first angle change value is the angle change of the vehicle from the previous position point during driving. The first angle change value obtained may include positive and negative numbers, where the positive and negative signs are used to indicate the direction of the angle change, for example, the left is positive and the right is negative, -2 represents that the current driving angle of the vehicle changes 2 degrees to the right relative to the previous driving angle; it can also be right as positive and left as negative, and the direction of change of the vehicle angle value is not limited here.
[0082] Specifically, the terminal collects the vehicle's driving angle at intervals within a sampling period, calculates adjacent collected angle change values, and stores the collected first angle change value in a sensor angle change sequence.
[0083] Step 208: Obtain second angle change values between each candidate path shape point.
[0084] Among them, the second angle change value is the angle change of adjacent shape points on the candidate path; the candidate path shape point data is obtained from the map data, and the frequency of map data update can be customized, such as the update frequency can be set to 500ms, that is, the map data is updated once 500ms; the obtained second angle change value may include positive and negative numbers, wherein the positive and negative signs are used to indicate the direction of the angle change, for example, the left is positive and the right is negative, and 3 represents that the angle of the current shape point of the candidate path relative to the previous shape point changes by 3 degrees to the left; it can also be that the right is positive and the left is negative, and the direction of the candidate path movement change is not limited here.
[0085] Specifically, the vehicle's position is obtained by positioning through the Global Positioning System (GPS), and the shape points of the path where the vehicle is located and the path that is connected to the path are obtained according to the position to obtain a candidate path; the second angle change value of the adjacent shape points is calculated, and the second angle change value is stored in the divergent road angle change sequence. The second angle change value corresponding to the first angle change value of the vehicle within the sampling period is obtained.
[0086] Step 210: Determine a first path matching degree of the candidate path according to the first angle change value and the second angle change value.
[0087] Specifically, a first angle change value is obtained in positive sequence from the angle change sequence stored in the sensor, and the vehicle movement trend and the corresponding maximum cumulative angle change value are obtained by cumulatively adding and summing the first angle change values; a second angle change value is obtained in positive sequence from the divergent road angle change sequence, and the candidate path shape trend and the corresponding maximum cumulative angle change value are obtained by cumulatively adding and summing the second angle change values; when the maximum cumulative angle change value corresponding to the vehicle movement trend reaches a threshold and the maximum cumulative angle change value corresponding to the candidate path shape trend reaches a threshold, the first path matching degree of the candidate path is determined according to the maximum cumulative angle change value corresponding to the vehicle movement trend and the maximum cumulative angle change value corresponding to the candidate path shape trend.
[0088] The movement trend of the vehicle may include two situations: left and right. The vehicle may include a straight movement trend, a change of direction trend to the left or right, first to the left and then to the right, or first to the right and then to the left during driving. The movement trend of the candidate path may include two situations: left and right.
[0089] Step 212: Determine the first target path where the vehicle is located from the candidate paths according to the first path matching degree.
[0090] Specifically, by comparing the numerical values of the first path matching degrees, the first target path where the vehicle is located is determined from the candidate paths according to the first path matching degree; the candidate path corresponding to the maximum or minimum numerical value of the first path matching degree can be determined as the first target path where the vehicle is located, and the first target path can be the target path determined to be where the vehicle is located.
[0091] In the above vehicle path matching method, the terminal obtains the azimuth point of the vehicle's location through navigation, obtains the shape points of the vehicle's path and the continuation path of the path based on the azimuth point, and obtains the candidate path; obtains the first angle change value of the vehicle within the sampling period through the sensor; obtains the second angle change value between each candidate path shape point; determines the first path matching degree of the candidate path based on the first angle change value and the second angle change value; and determines the first target path of the vehicle from the candidate path based on the first path matching degree. The first path matching degree of the candidate path is accurately calculated based on the first angle change value of the vehicle obtained by the sensor and the second angle change value of the candidate path obtained by the map data, and the first target path of the vehicle is determined based on the first path matching degree. The sensor data has strong anti-interference ability and high data transmission frequency, and the acquired data has high accuracy, which improves the accuracy of vehicle path matching.
[0092] In one embodiment, determining the first path matching degree of the candidate path according to the first angle change value and the second angle change value includes:
[0093] Acquire an empirical coefficient of the candidate path; and determine a first path matching degree of the candidate path according to the first angle change value, the second angle change value, and the empirical coefficient.
[0094] wherein, according to the first angle change value, the second angle change value and the empirical coefficient, the first path matching degree of the candidate path is calculated according to the first target calculation formula;
[0095] The first target calculation formula is:
[0096] Rsws=Radi+(Sma1-Rma1)+(Sma2-Rma2)
[0097] Among them, Rsws is the first path matching degree of the candidate path, Radi is the empirical coefficient of the candidate path, Sma1 is the maximum cumulative angle change corresponding to the first motion trend of the vehicle determined according to the first angle change value during the sampling period, and Rma1 is the maximum cumulative angle change corresponding to the first motion trend of the candidate path determined according to the second angle change value.
[0098] Sma2 is the maximum cumulative angle change value corresponding to the second motion trend determined by the vehicle according to the first angle change value during the sampling period, and Rma2 is the maximum cumulative angle change value corresponding to the second motion trend determined by the candidate path according to the second angle change value.
[0099] The maximum value of the cumulative angle change corresponding to the first motion trend and the maximum value of the cumulative angle change corresponding to the second motion trend of the vehicle within the sampling period can be achieved in the following way:
[0100] The sensor obtains that the current angle of the vehicle is 0 degrees during the sampling period, and becomes 2 degrees after a few seconds. The left is counted as positive and the right is counted as negative, so the cumulative angle changes by 2 degrees, and then the angle change value is 1 degree, and the cumulative angle change value is 3. If the next angle change value is 3 degrees, the maximum cumulative angle change is 6 degrees. If the next angle change value is -2, the cumulative angle change value is 4. If the next angle change value is 4, the maximum cumulative angle change is 8. When the maximum cumulative angle change reaches the threshold (for example, +7 degrees or -7 degrees), and the cumulative number of angle changes to the left or right reaches the number threshold (for example, the number threshold is 5, first changes to the left 3 times, changes to the right 1 time, and changes to the left 3 times, then the cumulative number of angle changes to the left is 3-1+3=5, reaches the number threshold, and is determined to be a leftward movement trend), the same principle can be used to determine the rightward movement trend.
[0101] If the maximum value of the cumulative angle change does not reach the threshold to the left (+7 degrees) or the cumulative number of changes to the left does not reach the threshold (for example, the number threshold is 5), and the maximum value of the cumulative angle change does not reach the threshold to the right (for example, the threshold is -7 degrees) or the cumulative number of changes to the right does not reach the threshold (for example, the number threshold is 5), then the vehicle's running trajectory is determined to be a straight-moving trend, and the change trend before calculation is defined as unrecognized. This motion trend (unrecognized, straight, moving to the left, moving to the right) is saved as the vehicle's first motion trend Ste1 or the second motion trend Ste2, and the current maximum value of the cumulative angle change Sma1 of the first motion trend Ste1 or the maximum value of the cumulative angle change Sma2 of the second motion trend Ste2 is saved. Continue to calculate the angle change. If the current maximum value of the cumulative angle change reaches the threshold and continues to accumulate and increase, continue to update the calculation of the maximum value of the cumulative angle change Sma1 or Sma2; if the current maximum value of the cumulative angle change reaches the threshold, reset the cumulative angle when it decreases. Figure 3 As shown, it is a driving trajectory diagram in which the first movement trend Ste1 is to the right, the second movement trend Ste2 is to the left, the maximum cumulative angle change Sma1 corresponding to the rightward movement, and the maximum cumulative angle change Sma2 corresponding to the leftward movement.
[0102] The maximum value of the cumulative angle change corresponding to the first motion trend of the candidate path and the maximum value of the cumulative angle change corresponding to the second motion trend of the candidate path can be achieved by:
[0103] At the beginning of the sampling period, the starting shape point sampling angle in the candidate path is 0 degrees. For example, when approaching the divergence point, the starting angle of the path at a fixed distance from the divergence point (for example, set to 10m) is 0 degrees; the second shape point becomes 2 degrees, with the left being positive and the right being negative, then the maximum cumulative angle change is 2 degrees. If the next angle change value is 3 degrees, then the maximum cumulative angle change is 5 degrees. If another angle change value is -2, then the cumulative angle change value is 3. If the next angle change value is 4, then the maximum cumulative angle change is 7. When the maximum cumulative angle change reaches a threshold (for example, +7 degrees and -7 degrees) and the cumulative number of angle changes to the left or right reaches a number threshold (such as a number threshold of 5, here if it changes to the left 3 times, changes to the right 1 time, and changes to the left 3 times, then the cumulative number of angle changes to the left is 3-1+3=5, reaching the number threshold of 5, then it is determined to be a leftward movement trend), similarly, a rightward movement trend is obtained.
[0104] If the maximum value of the cumulative angle change does not reach the threshold to the left (for example, +7 degrees) or the cumulative number of changes to the left does not reach the threshold (for example, the number threshold is 5), and the maximum value of the cumulative angle change does not reach the threshold to the right (for example, -7 degrees) or the cumulative number of changes to the right does not reach the threshold (for example, the number threshold is 5), then the candidate path motion trend is determined to be a straight line, and the change trend before calculation is defined as unrecognized. This motion trend (unrecognized, straight, moving to the left, moving to the right) is saved as the first motion trend Rte1 of the candidate path or the second motion trend Rte2 of the candidate path, and the current maximum value of the cumulative angle change is saved as the maximum value Rma1 corresponding to the first motion trend Rte1 or the maximum value Rma2 corresponding to the second motion trend Rte2. Continue to calculate the angle change. If the current maximum value of the cumulative angle change reaches the threshold and continues to accumulate and increase, continue to update the calculation of the maximum value of the cumulative angle change; if the current maximum value of the cumulative angle change reaches the threshold, reset the cumulative angle when it decreases. Figure 4 As shown, it is a candidate path motion trend diagram in which the first motion trend Rte1 is rightward, the second motion trend Rte2 is leftward, the maximum cumulative angle change value Rma1 corresponding to the rightward motion, and the maximum cumulative angle change value Rma2 corresponding to the leftward motion.
[0105] Specifically, based on sensor data and map data, the difference between the maximum angle change corresponding to the first motion trend of the vehicle and the maximum angle change corresponding to the first motion trend of the candidate path is calculated, the difference between the maximum angle change corresponding to the second motion trend of the vehicle and the maximum angle change corresponding to the second motion trend of the candidate path and the empirical coefficient of the candidate path are used to calculate the path matching degree of the candidate path. The sensor data collection frequency is high and the anti-interference ability is high, which improves the accuracy of the path matching degree and can accurately judge the actual driving trajectory of the vehicle.
[0106] In one embodiment, Figure 5 As shown, a vehicle path matching method is provided, which is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:
[0107] Step 502: Obtain a second target path where the vehicle is located from the candidate paths through navigation.
[0108] Specifically, a navigation guidance route is obtained based on the initial position of the vehicle and the target position corresponding to the vehicle. When the terminal detects that the vehicle is at a divergence point, a second target path where the vehicle is located is obtained from candidate paths based on the navigation guidance route. The second target path is obtained before the first target path.
[0109] Step 504: Obtain the first path matching degree corresponding to the second target path from the first path matching degree.
[0110] Specifically, when the terminal obtains the orientation point of the vehicle's position, it obtains the candidate path corresponding to the orientation point, and obtains the first path matching degree of all candidate paths according to the first target calculation formula; the vehicle's candidate path includes a second target path, and when the second target path is obtained, the first path matching degree corresponding to the second target path is obtained. For example, in the candidate path of the vehicle, the matching degree of candidate path A corresponding to the first path is 80%, the matching degree of candidate path B corresponding to the first path is 90%, and the matching degree of candidate path C corresponding to the first path is 85%. The second target path obtained through the navigation guidance route is candidate path A, and the matching degree of the second target path corresponding to the first path can be obtained to be 80%.
[0111] Step 506, when the difference between the first path matching degree of the first target path and the first path matching degree corresponding to the second target path reaches a threshold, the product of the distance between the first target path and the second target path and the fixed empirical coefficient is less than the actual vehicle offset distance, and the projection point of the vehicle's orientation point is on the first target path, the first target path is used as the final target path of the vehicle.
[0112] Among them, the relationship that the product of the distance between the first target path and the second target path and a fixed empirical coefficient is less than the actual vehicle offset distance can be expressed as Rsd×Ksd<Sma, where Rsd is the distance between the two paths, Sma is the actual vehicle offset distance, and Ksd is a fixed empirical value. The larger the distance, the larger the peak value of the required angle change. For example, when Ksd is 1.5 and Rsd is 10 meters, the peak value of the angle change needs to be greater than 7 degrees; when Rsd is 20 meters, the peak value of the angle change needs to be greater than 11 degrees.
[0113] Specifically, obtain the first path matching degree with the smallest value from the first path matching degrees, and use the candidate path corresponding to the first path matching degree with the smallest value as the target path where the vehicle is located; when the difference between the first path matching degree with the smallest value and the first path matching degree corresponding to the second target path reaches the threshold, and the distance between the candidate path corresponding to the first path matching degree with the smallest value and the second target path where the vehicle is currently located satisfies the relationship Rsd×Ksd<Sma, and the projection point of the azimuth point at the vehicle's location is on the first target path corresponding to the first path matching degree with the smallest value, use the candidate path corresponding to the first path matching degree with the smallest value as the first target path where the vehicle is located, that is, the first target path is used as the final target path where the vehicle is located.
[0114] In the above vehicle path matching method, the terminal obtains the second target path where the vehicle is located from the candidate paths according to the navigation guidance route, and obtains the first path matching degree corresponding to the second target path from the first path matching degrees. When the difference between the first path matching degree of the first target path and the first path matching degree corresponding to the second target path reaches the threshold, the product of the distance between the first target path and the second target path and the fixed empirical coefficient is less than the actual vehicle offset distance, and the projection point of the azimuth point of the vehicle is on the first target path, the first target path is used as the final target path where the vehicle is located; to avoid the influence of factors such as speed during the vehicle's driving, by comparing the second target path determined by the navigation and the first target path determined by the sensor, the final target path where the vehicle is located is determined, improving the accuracy of target path detection.
[0115] In another embodiment, as Figure 6 shown, a vehicle path matching method based on sensor data is provided. Taking the method applied to the Figure 1 terminal as an example for illustration, it includes the following steps:
[0116] Step 602, obtain the azimuth point at the vehicle's location.
[0117] Step 604, obtain the shape points of the path where the vehicle is located and the subsequent path according to the azimuth point to obtain candidate paths.
[0118] Step 606: Acquire a first angle change value of the vehicle within a sampling period through a sensor.
[0119] Step 608, obtaining the second angle change value between each candidate path shape point.
[0120] Step 610, obtaining an empirical coefficient of the candidate path, and determining a first path matching degree of the candidate path according to the first angle change value, the second angle change value and the empirical coefficient of the candidate path.
[0121] Step 612, calculating the overall movement trend of the vehicle and the movement trend of each candidate path within the sampling period.
[0122] Step 614, when it is determined that the overall movement trend of the vehicle is the same as the movement trend of each candidate path within the sampling period, the step of determining the first target path where the vehicle is located from the candidate paths according to the first path matching degree is executed.
[0123] Among them, the overall movement trend of the vehicle within the sampling period is calculated and judged based on the position point corresponding to the first angle change value in the sensor angle change sequence. The implementation method can be: take the azimuth point corresponding to the first angle change value in the sensor angle change sequence as the reference point (base), and select the first starting point (stand) of the point with a turning trend (for example, the point where the first angle change value of the vehicle is greater than the threshold value (such as 3 degrees)) in positive order, and take the last data in the sensor angle change sequence, that is, the azimuth point of the current vehicle position as the target point (target), draw a perpendicular line to the x-axis through the target point, and calculate the vertical distance between the target point and the x-axis to determine the actual offset distance of the vehicle. Use the line connecting the base point and the stand point as the x-axis and the base point as the origin to establish a rectangular coordinate system, and calculate the slope of the line connecting the base point and the target point. A positive value indicates overall movement to the left, and a negative value indicates overall movement to the right; such as Figure 7 As shown, the overall movement trend of the vehicle during the sampling period is determined based on the slope.
[0124] Among them, the overall movement trend of the candidate path within the sampling period is determined by calculating the shape point corresponding to the second angle change value in the divergent road angle change sequence. The implementation method can be: take the first data in the divergent road angle change sequence (the shape point data when approaching the divergent point) as the base point, and select the first starting point stand point of the turning trend (the point with a turning trend, that is, the point where the second angle change value of the shape point is greater than the threshold (such as 4 degrees)) in positive order, and take the last data in the divergent road angle change sequence (the shape point at the end of the candidate path) as the target point. Use the line connecting the base point and the stand point as the x-axis and the base point as the origin to establish a rectangular coordinate system, and calculate the slope of the line connecting the base point and the target point. A positive value indicates overall movement to the left, and a negative value indicates overall movement to the right. Judge the overall movement trend of the candidate path within the sampling period based on the slope. Figure 7 The principles shown are similar.
[0125] When the overall motion trend of the vehicle in the sampling period is the same as the motion trend of each candidate path, that is, the slopes corresponding to the overall motion trend of the vehicle in the sampling period and the overall motion trend of the selected path in the sampling period are both positive or negative, the third target path where the vehicle is located is determined from the candidate paths according to the first path matching degree. If the overall motion trend of the vehicle in the sampling period is different from the motion trend of each candidate path, the third target path where the vehicle is located cannot be determined from the candidate paths according to the first path matching degree.
[0126] Step 616: Obtain the first path matching degree with the minimum value from the first path matching degrees.
[0127] Step 618, obtain the corresponding driving distance of the vehicle within the sampling period and the corresponding number of candidate paths. When the driving distance is greater than the driving distance threshold and the number of paths is less than the path number threshold, the candidate path corresponding to the first path matching degree with the smallest value is used as the first target path where the vehicle is located.
[0128] The vehicle's travel distance is obtained by multiplying the vehicle's travel speed collected by the sensor by the sampling period. The number of candidate paths can be obtained from the map data.
[0129] Specifically, when it is determined that the vehicle's driving distance is greater than a driving distance threshold and the number of paths is less than a path number threshold within a sampling period, the candidate path corresponding to the first path matching degree with the smallest value is used as the first target path where the vehicle is located.
[0130] In the above vehicle path matching method, the orientation point of the vehicle's location is obtained through navigation, and the shape points of the vehicle's path and the continuation path of the path are obtained according to the orientation point to obtain a candidate path, and the first angle change value of the vehicle within a sampling period is obtained through a sensor; the second angle change value between each candidate path shape point is obtained; the first path matching degree of the candidate path is determined according to the first angle change value, the second angle change value and the empirical coefficient of the candidate path; the first path matching degree with the smallest value is obtained from the first path matching degree, and the corresponding driving distance of the vehicle within the sampling period and the corresponding number of candidate paths are obtained. When the driving distance is greater than the driving distance threshold and the number of paths is less than the path number threshold, the candidate path corresponding to the first path matching degree with the smallest value is used as the first target path of the vehicle. That is, the first angle change value of the vehicle is obtained by the sensor, the second angle change value of the candidate path is obtained by the map data, and the empirical coefficient of the candidate path is used to accurately calculate the first path matching degree of the candidate path. The first target path where the vehicle is located is determined to be the target path where the vehicle is located by obtaining the first path matching degree with the smallest value and obtaining the corresponding driving distance of the vehicle within a sampling period and the number of corresponding candidate paths. The sensor data has strong anti-interference ability and high data transmission frequency, and the acquired data is accurate, thereby improving the accuracy of vehicle path matching.
[0131] In one embodiment, the calculation method of the empirical coefficient Radi of the path includes at least one of the following cases:
[0132] When the movement trend of the vehicle is the same as that of the candidate path during the sampling period, the empirical coefficient Radi is obtained by dividing the fixed empirical coefficient by the coefficient factor;
[0133] When the movement trend of the vehicle in the sampling period is different from the movement trend of the candidate path, the empirical coefficient Radi is obtained by multiplying the fixed empirical coefficient by the coefficient factor.
[0134] Specifically, when the movement trend of the vehicle within the sampling period is the same as the movement trend of the candidate path, it can be that the vehicle has one movement trend (to the left or to the right), which is the same as the movement trend of the candidate path; or it can be that the vehicle has two movement trends (first to the left and then to the right or first to the right and then to the left), which is the same as the movement trend of the candidate path. The empirical coefficient Radi0 is a fixed empirical coefficient divided by the coefficient factor; it can be expressed as: Radi=Radi0÷tim (reduced by tim times).
[0135] When the vehicle's movement trend is different from the candidate path's movement trend within the sampling period, when the vehicle has one movement trend (for example, moving to the left or moving to the right) that is different from the candidate path's movement trend, or when the vehicle has two movement trends (for example, the vehicle moves first to the left and then to the right or first to the right and then to the left) that are the same as the candidate path's movement trend, the empirical coefficient Radi is a fixed empirical coefficient multiplied by a coefficient factor; it can be expressed as: Radi=Radi0×tim (expanded by tim times).
[0136] By accurately judging whether the movement trend of the vehicle is exactly the same as the movement trend of the candidate path, the empirical coefficient of the candidate path is determined, thereby ensuring the accuracy of the path matching degree of the candidate path, thereby improving the accuracy of vehicle path matching.
[0137] In one embodiment, if the vehicle movement trend and the candidate path movement trend do not have a changing trend within the sampling period, the empirical coefficient Radi is a fixed empirical coefficient. For example, if the vehicle movement trend and the candidate path movement trend are both straight and the turning basic coefficients are the same, the fixed empirical coefficient is 100, and the value of Radi remains unchanged at 100.
[0138] In one embodiment, determining the first target path where the vehicle is located from the candidate paths according to the first path matching degree includes:
[0139] Obtaining the first path matching degree with the smallest value from the first path matching degrees;
[0140] The candidate path corresponding to the first path matching degree with the smallest value is used as the first target path where the vehicle is located.
[0141] It should be understood that although Figure 2 , Figure 5 , Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 5 , Figure 6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0142] In one embodiment, Figure 8As shown, a vehicle path matching device 800 is provided, comprising: a first acquisition module 802, a path acquisition module 804, a second acquisition module 806, a third acquisition module 808, a first determination module 810 and a second determination module 812, wherein:
[0143] The first acquisition module 802 is used to acquire the position of the vehicle.
[0144] The path acquisition module 804 is used to acquire the shape points of the path where the vehicle is located and the path that is connected to the path according to the orientation point to obtain a candidate path.
[0145] The second acquisition module 806 is used to acquire a first angle change value of the vehicle within a sampling period through a sensor.
[0146] The third acquisition module 808 is used to acquire the second angle change value between each candidate path shape point.
[0147] The first determination module 810 is configured to determine a first path matching degree of the candidate path according to the first angle change value and the second angle change value.
[0148] In one embodiment, the first determination module 810 is further configured to obtain an empirical coefficient of the candidate path; and determine the first path matching degree of the candidate path according to the first angle change value, the second angle change value and the empirical coefficient.
[0149] The second determination module 812 is used to determine the first target path where the vehicle is located from the candidate paths according to the first path matching degree.
[0150] The above-mentioned vehicle path matching device obtains the azimuth point of the vehicle's location; obtains the shape points of the vehicle's path and the path's continuation path according to the azimuth point to obtain the candidate path; obtains the first angle change value of the vehicle within a sampling period through a sensor; obtains the second angle change value between each candidate path shape point; determines the first path matching degree of the candidate path according to the first angle change value, the second angle change value and the empirical coefficient of the candidate path; and determines the first target path of the vehicle from the candidate path according to the first path matching degree. By obtaining the relevant data of the vehicle's azimuth point, the first angle change value of the vehicle within a sampling period, and the second angle change value between the candidate path shape points, the matching degree of the candidate path is determined according to multiple sets of data, and the first target path of the vehicle is accurately determined from the obtained candidate paths, thereby improving the accuracy of vehicle path matching.
[0151] In another embodiment, Fig. 9As shown, a vehicle path matching device 800 is provided, which includes a first acquisition module 802, a path acquisition module 804, a second acquisition module 806, a third acquisition module 808, a first determination module 810 and a second determination module 812, and further includes: a first calculation module 814, a second calculation module 816, an acquisition module 818 and a judgment module 820, wherein:
[0152] A first calculation module 814 is used to obtain an empirical coefficient of the candidate path, and calculate a first path matching degree of the candidate path according to a first target calculation formula based on the first angle change value, the second angle change value and the empirical coefficient;
[0153] The first target calculation formula is:
[0154] Rsws=Radi+(Sma1-Rma1)+(Sma2-Rma2)
[0155] Among them, Rsws is the first path matching degree of the candidate path, Radi is the empirical coefficient of the candidate path, Sma1 is the maximum cumulative angle change corresponding to the first motion trend determined by the vehicle according to the first angle change value during the sampling period, and Rma1 is the maximum cumulative angle change corresponding to the first motion trend determined by the candidate path according to the second angle change value; Sma2 is the maximum cumulative angle change corresponding to the second motion trend determined by the vehicle according to the first angle change value during the sampling period, and Rma2 is the maximum cumulative angle change corresponding to the second motion trend determined by the candidate path according to the second angle change value.
[0156] The second calculation module 816 is used to obtain the empirical coefficient Radi by dividing the fixed empirical coefficient by the coefficient factor when the vehicle has one movement trend and remains unchanged within the sampling period; when the vehicle has two movement trends and remains unchanged within the sampling period, the empirical coefficient Radi is obtained by multiplying the fixed empirical coefficient by the coefficient factor.
[0157] In one embodiment, the second calculation module 816 is also used to calculate the overall motion trend of the vehicle and the motion trend of each candidate path during the sampling period; when it is determined that the overall motion trend of the vehicle during the sampling period is the same as the motion trend of each candidate path, the step of determining the first target path of the vehicle from the candidate paths according to the first path matching degree is executed.
[0158] The acquisition module 818 is used to acquire the first path matching degree with the smallest value from the first path matching degrees; and use the candidate path corresponding to the first path matching degree with the smallest value as the first target path where the vehicle is located.
[0159] In one embodiment, the acquisition module 818 is further used to obtain the corresponding driving distance of the vehicle and the number of corresponding candidate paths within the sampling period.
[0160] In one embodiment, the acquisition module 818 is also used to acquire the second target path of the vehicle from the candidate paths through navigation technology; acquire the first path matching degree corresponding to the second target path from the first path matching degree; when the difference between the first path matching degree of the first target path and the first path matching degree corresponding to the second target path reaches a threshold, the product of the distance between the first target path and the second target path and the fixed empirical coefficient is less than the actual vehicle offset distance and the projection point of the orientation point of the vehicle is on the first target path, the first target path is used as the final target path of the vehicle.
[0161] The judgment module 820 is used to select the candidate path corresponding to the first path matching degree with the smallest value as the first target path where the vehicle is located when the driving distance is equal to the driving distance threshold and the number of paths is less than the path number threshold.
[0162] The orientation point of the vehicle's location is obtained through navigation, and the shape points of the path where the vehicle is located and the continuation path of the path are obtained according to the orientation point to obtain the candidate path. The first angle change value of the vehicle in the sampling period is obtained through the sensor; the second angle change value between each candidate path shape point is obtained; the first path matching degree of the candidate path is determined according to the first angle change value, the second angle change value and the empirical coefficient of the candidate path; the first path matching degree with the smallest value is obtained from the first path matching degree, and the corresponding driving distance of the vehicle in the sampling period and the corresponding number of candidate paths are obtained. When the driving distance is greater than the driving distance threshold and the number of paths is less than the path number threshold, the candidate path corresponding to the first path matching degree with the smallest value is used as the first target path where the vehicle is located. The first path matching degree of the candidate path is accurately calculated according to the first angle change value of the vehicle obtained by the sensor, the second angle change value of the candidate path obtained by the map data, and the empirical coefficient of the candidate path. The first target path where the vehicle is located is determined as the target path where the vehicle is located by obtaining the first path matching degree with the smallest value and obtaining the corresponding driving distance of the vehicle in the sampling period and the corresponding number of candidate paths. The sensor data has strong anti-interference ability and high data transmission frequency, and the obtained data has high accuracy, which improves the accuracy of vehicle path matching.
[0163] The specific definition of the vehicle path matching device can be found in the definition of the vehicle path matching method above, which will not be repeated here. Each module in the above-mentioned vehicle path matching device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0164] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a vehicle path matching method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0165] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0166] In one embodiment, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above vehicle path matching method are implemented.
[0167] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the above-mentioned vehicle path matching method is implemented when the processor executes the computer program.
[0168] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0169] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0170] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A vehicle path matching method, characterized in that: The method comprises: Obtain the location of the vehicle; According to the orientation point, the shape points of the path where the vehicle is located and the subsequent path of the path are obtained to obtain a candidate path; Acquire a first angle change value of the vehicle within a sampling period through a sensor; the first angle change value is an angle change of the vehicle from a previous position point during the driving process; Acquire a second angle change value between each of the candidate path shape points; the second angle change value is an angle change between adjacent shape points on each of the candidate paths; Obtaining the empirical coefficient of the candidate path; Calculating a first path matching degree of the candidate path according to a first target calculation formula based on the first angle change value, the second angle change value and the empirical coefficient; The first target calculation formula is: ; in, is the first path matching degree of the candidate path, is the empirical coefficient of the candidate path, is the maximum value of the cumulative angle change corresponding to the first motion trend of the vehicle during the sampling period, is the maximum value of the cumulative angle change corresponding to the second motion trend of the vehicle during the sampling period, is the maximum cumulative angle change corresponding to the first motion trend of the candidate path, is the maximum value of the accumulated angle change corresponding to the second motion trend of the candidate path; A first target path where the vehicle is located is determined from the candidate paths according to the first path matching degree.
2. The method according to claim 1, characterized in that The empirical coefficients of the paths The calculation method includes at least one of the following situations: When the movement trend of the vehicle in the sampling period is the same as the movement trend of the candidate path, the empirical coefficient Obtained by dividing the fixed empirical coefficient by the coefficient factor; When the movement trend of the vehicle in the sampling period is different from the movement trend of the candidate path, the empirical coefficient Obtained by multiplying a fixed empirical coefficient by a coefficient factor.
3. The method according to claim 1, characterized in that Before determining the first target path where the vehicle is located from the candidate paths according to the first path matching degree, the method further includes: Calculating the overall movement trend of the vehicle and the movement trend of each candidate path within a sampling period; When it is determined that the overall movement trend of the vehicle within the sampling period is the same as the movement trend of each of the candidate paths, the step of determining the first target path where the vehicle is located from the candidate paths according to the first path matching degree is executed.
4. The method according to claim 1, characterized in that: The step of determining the first target path where the vehicle is located from the candidate paths according to the first path matching degree includes: Obtaining the first path matching degree with the smallest value from the first path matching degrees; The candidate path corresponding to the first path matching degree with the smallest value is used as the first target path where the vehicle is located.
5. The method according to claim 4, characterized in that Before taking the candidate path corresponding to the first path matching degree with the smallest value as the first target path where the vehicle is located, the method further includes: Obtaining the corresponding driving distance of the vehicle within a sampling period and the number of corresponding candidate paths; When the driving distance is greater than a driving distance threshold and the number of paths is less than a path number threshold, the candidate path corresponding to the first path matching degree with the smallest value is used as the first target path where the vehicle is located.
6. The method according to claim 1, characterized in that The method further comprises: Acquire a second target path where the vehicle is located from the candidate paths by navigation; Acquire the first path matching degree corresponding to the second target path from the first path matching degree; When the difference between the first path matching degree of the first target path and the first path matching degree corresponding to the second target path reaches a threshold, the product of the distance between the first target path and the second target path and the fixed empirical coefficient is less than the actual vehicle offset distance, and the projection point of the orientation point of the vehicle is on the first target path, the first target path is used as the final target path of the vehicle.
7. A vehicle path matching device, characterized in that: The device comprises: A first acquisition module is used to acquire the position of the vehicle; A path acquisition module, used to acquire shape points of the path where the vehicle is located and the subsequent path of the path according to the orientation point, to obtain a candidate path; A second acquisition module is used to acquire a first angle change value of the vehicle within a sampling period through a sensor; the first angle change value is an angle change of the vehicle from a previous position point during the driving process; A third acquisition module is used to acquire a second angle change value between each of the candidate path shape points; the second angle change value is an angle change between adjacent shape points on each of the candidate paths; The first determination module is used to obtain the empirical coefficient of the candidate path; according to the first angle change value, the second angle change value and the empirical coefficient, the first path matching degree of the candidate path is calculated according to the first target calculation formula; the first target calculation formula is: ; in, is the first path matching degree of the candidate path, is the empirical coefficient of the candidate path, is the maximum value of the cumulative angle change corresponding to the first motion trend of the vehicle during the sampling period, is the maximum value of the cumulative angle change corresponding to the second motion trend of the vehicle during the sampling period, is the maximum cumulative angle change corresponding to the first motion trend of the candidate path, is the maximum value of the accumulated angle change corresponding to the second motion trend of the candidate path; A second determination module is configured to determine a first target path where the vehicle is located from the candidate paths according to the first path matching degree.
8. The device according to claim 7, characterized in that The device also includes a second calculation module for calculating the empirical coefficient when the movement trend of the vehicle is the same as the movement trend of the candidate path within the sampling period. It is obtained by dividing the fixed empirical coefficient by the coefficient factor; when the movement trend of the vehicle in the sampling period is different from the movement trend of the candidate path, the empirical coefficient Obtained by multiplying a fixed empirical coefficient by a coefficient factor.
9. The device according to claim 7, characterized in that The device also includes an acquisition module, which is used to acquire a first path matching degree with the smallest value from the first path matching degrees; and use the candidate path corresponding to the first path matching degree with the smallest value as the first target path where the vehicle is located.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
