Search

CN-114419192-B - Guide line display method, device, equipment, medium and program product

CN114419192BCN 114419192 BCN114419192 BCN 114419192BCN-114419192-B

Abstract

The application discloses a guide line display method, a guide line display device, guide line display equipment, guide line display medium and guide line display program products, and belongs to the field of navigation maps. The method comprises the steps of obtaining a first guide line generated at the ith moment and a second guide line generated at the (i+1) th moment, matching locating points on the first guide line and/or the second guide line to obtain k matching point pairs under the condition that the first guide line and the second guide line belong to different lanes, generating a transition guide line through k middle points of the k matching point pairs in series, wherein the transition guide line is used for transitioning the first guide line displayed at the (i+1) th moment to the second guide line displayed at the (i+2) th moment, and displaying the transition guide line between the (i+1) th moment and the (i+2) th moment. The method smoothly displays the change process of the guide line from the (i+1) th moment to the (i+2) th moment, and improves the display fineness and the animation fluency of the guide line animation.

Inventors

  • HAN CHAO
  • FENG LEI

Assignees

  • 腾讯科技(深圳)有限公司

Dates

Publication Date
20260505
Application Date
20220120

Claims (19)

  1. 1. A method of displaying a guide wire, the method comprising: Acquiring a first guide line generated at the ith moment and a second guide line generated at the (i+1) th moment, wherein the first guide line and the second guide line are used for guiding a vehicle to a destination on a navigation map, and i is a positive integer; the positioning points on the first guide line and/or the second guide line are paired to obtain k matching point pairs, wherein k is a positive integer; generating a transition guide line by concatenating k intermediate points of the k matching point pairs, the transition guide line being a guide line for transitioning the first guide line displayed at the i+1 th time to the second guide line displayed at the i+2 th time; the transition guideline is displayed between the i+1 and i+2 times.
  2. 2. The method according to claim 1, wherein said obtaining k matching point pairs by pairing the anchor points on the first guide line and/or the second guide line comprises: And/or determining n ' second corresponding points which are mutually mapped with n locating points on the second guide line on the first guide line to obtain k matching point pairs in total, wherein each matching point pair comprises the locating point and the corresponding point which are mutually mapped, and m, m ', n and n ' are positive integers.
  3. 3. The method of claim 2, wherein the second guide line is a guide line generated if the vehicle is not off-course; Determining m 'first corresponding points which are mutually mapped with m positioning points on the first guide line on the second guide line, and determining n' second corresponding points which are mutually mapped with n positioning points on the second guide line on the first guide line, so as to obtain k matching point pairs in total, wherein the method comprises the following steps of: On the basis that positioning points belonging to the same road position exist on the first guide line and the second guide line, m 'first corresponding points which are mutually mapped with m positioning points on the first guide line are determined on the second guide line, n' second corresponding points which are mutually mapped with n positioning points on the second guide line are determined on the first guide line, and k matching point pairs are obtained in total.
  4. 4. A method according to claim 3, characterized in that said determining m 'first corresponding points on the second guide line that are mutually mapped with m anchor points on the first guide line, and n' second corresponding points on the first guide line that are mutually mapped with n anchor points on the second guide line, based on the presence of anchor points belonging to the same road position on the first guide line, together yields the k matching point pairs, comprises: The m 1 locating points of the first guide line and the n 1 locating points of the second guide line are paired one by one to obtain k 1 matching point pairs, the values of m 1 、n 1 and k 1 are equal, the positions of roads indicated by the locating points paired by any two of the k 1 matching point pairs are the same, m 1 、n 1 and k 1 are positive integers, and m 1 、n 1 and k 1 are smaller than min (m, n); And (3) pairing the locating points except the m 1 locating points in the m locating points with the starting point of the second guide line to obtain k 2 matching point pairs, and pairing the locating points except the n 1 locating points in the n locating points with the end point of the first guide line to obtain k 3 matching point pairs, wherein k 2 and k 3 are positive integers.
  5. 5. The method according to claim 2, wherein the second guide line is a guide line generated in case the vehicle deviates from a planned route, the first guide line having a first lane-change curve; the determining m' first corresponding points on the second guide line, which are mutually mapped with m locating points on the first guide line, comprises the following steps: and determining m' first corresponding points which are mutually mapped with m positioning points on the first guide line on the second guide line based on the end points of the first lane change curve on the first guide line, and obtaining the k matching point pairs.
  6. 6. The method of claim 5, wherein the determining m' first corresponding points on the second guide line that map with m anchor points on the first guide line based on the end points of the first lane-change curve on the first guide line, to obtain the k matching point pairs, comprises: Projecting two end points of the first lane change curve on the first guide line to the second guide line to obtain two corresponding points, and pairing the two end points of the first lane change curve with the two corresponding points one by one to obtain two matching point pairs; pairing the starting point of the first guide line with the starting point of the second guide line to obtain a matching point pair, and pairing the ending point of the first guide line with the ending point of the second guide line to obtain a matching point pair.
  7. 7. The method of claim 2, wherein the determining on the second guide line m 'first corresponding points that map with m anchor points on the first guide line, and determining on the first guide line n' second corresponding points that map with n anchor points on the second guide line, together, yields k matching point pairs, comprises: And carrying out point-by-point sequential pairing on the m positioning points on the first guide line and the n positioning points on the second guide line to obtain k matching point pairs, wherein k is equal to max (m, n).
  8. 8. The method of claim 7, wherein the sequentially pairing the m anchor points on the first guide line and the n anchor points on the second guide line point by point to obtain k matching point pairs, includes: under the condition that j is smaller than m and j is smaller than n, pairing the j of the m positioning points with the j of the n positioning points, wherein j is a positive integer; Pairing a j-th positioning point of the m positioning points with a first end point of the second guide line under the condition that m is greater than n, j is not less than n and j is not greater than m; pairing a j-th of the n positioning points with a second end point of the first guide wire under the condition that m is smaller than n, j is not smaller than m and j is not larger than n; And determining to obtain the k matching point pairs, wherein the m positioning points and the n positioning points are arranged according to the forward direction sequence of the road, the first end point is the end point and the second end point is the end point at the moment, or the m positioning points and the n positioning points are arranged according to the reverse direction sequence of the forward direction of the road, the first end point is the starting point and the second end point is the starting point at the moment.
  9. 9. The method of claim 2, wherein the determining on the second guide line m 'first corresponding points that map with m anchor points on the first guide line, and determining on the first guide line n' second corresponding points that map with n anchor points on the second guide line, together, yields k matching point pairs, comprises: and projecting m positioning points on the first guide line onto the second guide line to obtain m 'first corresponding points, and projecting n positioning points on the second guide line onto the first guide line to obtain n' second corresponding points, so as to obtain k matching point pairs in total.
  10. 10. The method of claim 9, wherein the projecting m anchor points on the first guide line onto the second guide line to obtain the m 'first corresponding points, and the projecting n anchor points on the second guide line onto the first guide line to obtain the n' second corresponding points, together with the k matching point pairs, comprises: projecting m 2 positioning points on the first guide line onto the second guide line to obtain m 2 'first corresponding points, and performing one-to-one pairing on the m 2 positioning points and the m 2 ' first corresponding points to obtain k 4 matching point pairs; projecting n 2 positioning points on the second guide line onto the first guide line to obtain n 2 'second corresponding points, and performing one-to-one pairing on the n 2 positioning points and the n 2 ' second corresponding points to obtain k 6 matching point pairs; The third end point is the end point, the fourth end point is the start point, or the third end point is the start point, the fourth end point is the end point, and m 2 、m 2 '、n 2 、n 2 '、k 4 、k 5 、k 6 and k 7 are positive integers.
  11. 11. The method according to claim 2, wherein said determining on the second guide line m 'first corresponding points that map with m anchor points on the first guide line and/or determining on the first guide line n' second corresponding points that map with n anchor points on the second guide line, gives k matching point pairs in total, comprises: Determining m' first corresponding points which are mutually mapped with the m locating points on the first guide line on the second guide line based on the positions of the m locating points on the first guide line; determining n' second corresponding points which are mutually mapped with the n locating points on the second guide line on the first guide line based on the positions of the n locating points on the second guide line; And determining and obtaining the k matching point pairs.
  12. 12. The method of claim 11, wherein the anchor points comprise end points of a guide line and turning points, the turning points of the guide line indicating a road position where the vehicle makes a lane change; The method for determining the m locating points on the second guide line comprises the steps of determining m 'first corresponding points which are mutually mapped with the m locating points on the first guide line on the basis of the positions of the m locating points on the first guide line, and determining n' second corresponding points which are mutually mapped with the n locating points on the second guide line on the basis of the positions of the n locating points on the second guide line, wherein the method comprises the following steps: For one turning point in the m positioning points, matching the turning point with a corresponding point on the second guide line to obtain k 8 matching point pairs, wherein the second ratio of the turning point is the same as that of the corresponding point; Pairing the turning point with a corresponding point on the first guide line aiming at one turning point in the n positioning points to obtain k 9 matching point pairs, wherein the second ratio of the turning point is the same as the second ratio of the corresponding point; Pairing the starting point of the first guide line with the starting point of the second guide line to obtain a matching point pair; pairing the end point of the first guide line with the end point of the second guide line to obtain a matched point pair; Wherein the second ratio of the turning point is a ratio of a distance between the turning point and a reference point of the guide line to the total length of the guide line, the second ratio of the corresponding point is a ratio of a distance between the corresponding point and the reference point of the guide line to the total length of the guide line, the reference point is a start point or an end point of the guide line, and k 8 and k 9 are both positive integers.
  13. 13. The method according to any one of claims 1 to 12, wherein a first lane-change curve is present on the first guide line, the first lane-change curve being used for guiding the vehicle lane-change; The acquiring the first guide line generated at the ith moment comprises the following steps: Acquiring a first guide line to be processed, wherein the first guide line to be processed comprises a first line segment, a second line segment and a third line segment which are connected end to end, and the second line segment is used for guiding the vehicle to change lanes; based on a first backspacing distance, backspacing the turning point of the second line segment connected with the first line segment on the first line segment to obtain a first backspacing point; based on a second backspacing distance, backspacing the turning point of the second line segment connected with the third line segment on the third line segment to obtain a second backspacing point; Generating the first lane-change curve based on the first back-off point and the second back-off point; and connecting the first line segment after the back, the first lane change curve and the third line segment after the back end to obtain a first guide line generated at the ith moment.
  14. 14. The method according to any one of claims 1 to 12, wherein a second lane-change curve is present on the second guide line, the second lane-change curve being used for guiding the vehicle lane-change, the acquiring the second guide line generated at the i+1th moment comprising: acquiring a second guide line to be processed, wherein the second guide line to be processed comprises a fourth line segment, a fifth line segment and a sixth line segment which are connected end to end, and the fifth line segment is used for guiding the vehicle to change lanes; based on a third backspacing distance, backspacing the turning point of the fourth line segment connected with the fifth line segment on the fourth line segment to obtain a third backspacing point; Based on a fourth backspacing distance, backspacing the turning point of the fifth line segment connected with the sixth line segment on the sixth line segment to obtain a fourth backspacing point; Generating the second lane-change curve based on the third back-off point and the fourth back-off point; and connecting the forth line segment after the back, the second lane change curve and the sixth line segment after the back end to obtain a second guide line generated at the (i+1) th moment.
  15. 15. The method according to any one of claims 1 to 12, wherein said generating a transition guide line by concatenating k intermediate points of said k matching point pairs comprises: generating a transition guide line through k intermediate points of the k matching point pairs in series; the first ratio of any two intermediate points in the respective matching point pairs is the same, the first ratio is the ratio of a first time length to a second time length, the first time length is the difference between the intermediate time corresponding to the intermediate point and the first time, the second time length is the difference between the i+1th time and the first time, and the intermediate time is obtained by interpolation between the i+1th time and the i+1th time.
  16. 16. A guidewire display device, the device comprising: An acquisition module for acquiring a first guide line generated at an ith moment and a second guide line generated at an (i+1) th moment, wherein the first guide line and the second guide line are used for guiding a vehicle to a destination on a navigation map, and i is a positive integer; The pairing module is used for obtaining k matching point pairs by pairing the positioning points on the first guide line and/or the second guide line, wherein k is a positive integer; A generating module, configured to generate a transition guide line by concatenating k intermediate points of the k matching point pairs, where the transition guide line is a guide line for transitioning the first guide line displayed at the i+1 th time to the second guide line displayed at the i+2 th time; And the display module is used for displaying the transition guide line between the (i+1) th moment and the (i+2) th moment.
  17. 17. A computer device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the method of displaying a guidewire as claimed in any one of claims 1 to 15.
  18. 18. A computer readable storage medium storing a computer program loaded and executed by a processor to implement the method of displaying a guide wire according to any one of claims 1 to 15.
  19. 19. A computer program product, characterized in that it comprises computer instructions stored in a computer-readable storage medium, from which a processor of a computer device reads the computer instructions, which processor executes the computer instructions, so that the computer device executes to implement the method of displaying a guide wire according to any one of claims 1 to 15.

Description

Guide line display method, device, equipment, medium and program product Technical Field The embodiment of the application belongs to the field of navigation maps, and particularly relates to a guide line display method, a guide line display device, guide line display equipment, guide line display medium and program products. Background The guide line is a lane-level guide line displayed on the navigation map interface for guiding the vehicle to a destination, extends along the lane line, and has a certain length. In the related art, the guide lines are automatically refreshed at regular intervals (for example, 1 second), and the guide lines displayed at the front and rear moments have obvious jumps. How to display intermediate pictures at the front and rear time in a transitional manner becomes a technical problem to be solved. Disclosure of Invention The application provides a guide line display method, a device, equipment, a medium and a program product, which promote the display fineness and the animation fluency of guide line animation. The technical scheme is as follows: according to an aspect of the present application, there is provided a method of displaying a guide wire, the method comprising: Acquiring a first guide line generated at the ith moment and a second guide line generated at the (i+1) th moment, wherein the first guide line and the second guide line are used for guiding a vehicle to a destination on a navigation map, and i is a positive integer; the positioning points on the first guide line and/or the second guide line are paired to obtain k matching point pairs, wherein k is a positive integer; generating a transition guide line by connecting k middle points of k matching point pairs in series, wherein the transition guide line is used for transitioning a first guide line displayed at the (i+1) th moment to a second guide line displayed at the (i+2) th moment; A transition guide line is displayed between the i+1 and i+2 times. According to another aspect of the present application, there is provided a display device of a guide wire, the device comprising: An acquisition module for acquiring a first guide line generated at an i-th time and a second guide line generated at an i+1-th time, the first guide line and the second guide line being used for guiding a vehicle to a destination on a navigation map, i being a positive integer; the pairing module is used for obtaining k matching point pairs by pairing positioning points on the first guide line and/or the second guide line, wherein k is a positive integer; The generating module is used for generating a transition guide line through k middle points of k matching point pairs in series, wherein the transition guide line is a guide line for transitioning a first guide line displayed at the (i+1) th moment to a second guide line displayed at the (i+2) th moment; and the display module is used for displaying the transition guide line between the (i+1) th moment and the (i+2) th moment. According to one aspect of the present application there is provided a computer device comprising a processor and a memory storing a computer program loaded and executed by the processor to implement the method of displaying a guide wire as described above. According to another aspect of the present application, there is provided a computer-readable storage medium storing a computer program loaded and executed by a processor to implement the guide wire display method as described above. According to another aspect of the present application, a computer program product is provided, the computer program product comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the method of displaying a guide wire provided in the above aspect. The technical scheme provided by the embodiment of the application has the beneficial effects that at least: The method reduces the display difference of the guide lines between two adjacent frames in the guide line animation, improves the display fineness and the animation smoothness of the guide line animation, and improves the frame-level refreshing effect of the liquid crystal display screen due to the reduction of the difference pixel points between the two adjacent frames, thereby presenting the display effect that the guide lines guide the vehicle to go to the destination more gently and finely. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effor