CN115687726B - Map drawing display method, display device, computer device and storage medium - Google Patents

Map drawing display method, display device, computer device and storage medium Download PDF

Info

Publication number
CN115687726B
CN115687726B CN202211693011.3A CN202211693011A CN115687726B CN 115687726 B CN115687726 B CN 115687726B CN 202211693011 A CN202211693011 A CN 202211693011A CN 115687726 B CN115687726 B CN 115687726B
Authority
CN
China
Prior art keywords
real
map
time
parameter
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211693011.3A
Other languages
Chinese (zh)
Other versions
CN115687726A (en
Inventor
于志杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bailong Mayun Technology Co ltd
Original Assignee
Beijing Bailong Mayun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bailong Mayun Technology Co ltd filed Critical Beijing Bailong Mayun Technology Co ltd
Priority to CN202211693011.3A priority Critical patent/CN115687726B/en
Publication of CN115687726A publication Critical patent/CN115687726A/en
Application granted granted Critical
Publication of CN115687726B publication Critical patent/CN115687726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Navigation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present application relates to a map drawing display method, a display device, a computer apparatus, and a storage medium. The map drawing display method comprises the following steps: periodically acquiring a real-time parameter combination of the movable target at intervals of a preset duration, wherein the real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target; comparing the map position parameter of the target mark in the map with the real-time position parameter, wherein the target mark is used for marking the movable target in the map; and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane. The method can reduce the risk of jumping of the target mark on the map drawing, is beneficial to improving the display effect of the map drawing, and is further beneficial to improving the use experience of users.

Description

Map drawing display method, display device, computer device and storage medium
Technical Field
The present invention relates to the technical field of electronic maps, and in particular, to a map display method, a map display device, a computer device, and a computer readable storage medium.
Background
At present, electronic maps are widely used, and functions such as navigation and network vehicle restraint are formed on the basis of the electronic maps. When the position of the target mark in the actual environment corresponding to the position of the target mark is detected to be different from the position of the movable target in the actual environment, the position of the target mark on the map drawing is updated to be matched with the actual position of the movable target. The object identification is displayed on a map drawing and used for identifying a movable object, and the movable object can be a user or a monitored vehicle.
However, the method is limited by the influences of positioning accuracy, road surface information acquisition, signal strength and the like, and the situation that the target mark continuously jumps often occurs when an electronic map is used. Then, under the conditions of monitoring the vehicle condition at the Web site, navigating by the user using the electronic map, and the like, if the condition that the target mark continuously jumps occurs, the map display effect is poor, the judgment of the user on the vehicle position/self position is interfered, the uncertainty of the user on the vehicle position/self position is possibly increased, and the use experience of the user is seriously affected.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a map display method, a map display device, a computer device and a computer readable storage medium, which can reduce the risk of jumping of a target mark on a map, and is beneficial to improving the display effect of the map and further improving the use experience of a user.
In one aspect, a method for displaying a map image is provided, including: periodically acquiring a real-time parameter combination of the movable target at intervals of a preset duration, wherein the real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target; comparing the map position parameter of the target mark in the map with the real-time position parameter, wherein the target mark is used for marking the movable target in the map; and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane.
In an embodiment of the present application, in response to the distance between the two being less than the first distance threshold, maintaining the target mark to stay at the current location in the map plane further includes: acquiring a plurality of real-time parameter combinations; taking the real-time position parameters acquired at the latest moment as planning end points, taking a plurality of previous real-time position parameters as reference positions, planning a moving path from the current position of the target mark to the path grasping of the planning end points on the map surface, and taking the moving path according to each reference position of the path; the control target mark moves along the moving path on the map surface.
In an embodiment of the present application, the control target identifier further includes, before the map surface moves along the movement path: judging whether the movement rule of the target mark is met or not; in response to the movement rule not being met, keeping the target mark to stay at the current position in the map plane; in response to the movement rule being satisfied, the target identity is allowed to move on the map surface.
In an embodiment of the present application, the movement rule includes: the length of the movement path is greater than the second distance threshold.
In an embodiment of the present application, the movement rule further includes: the linear distance between the planning endpoint and the drawing position parameter of the target mark is larger than a third distance threshold value, and the third distance threshold value is smaller than a second distance threshold value; and/or calculating the moving speed of the movable target based on the real-time position parameters and the real-time parameters acquired for a plurality of times, wherein the moving speed is greater than a speed threshold.
In an embodiment of the present application, obtaining a real-time parameter combination of a movable object includes: judging whether the acquired real-time position parameter is positioned on a past path of the movable target; in response to the real-time position parameter being located in the past path, temporarily storing the real-time position parameter, and keeping the target mark in the current position in the map plane; sequentially acquiring a plurality of real-time parameter combinations, and judging whether each real-time position parameter is positioned on a past path or not; in response to the plurality of real-time parameter combinations being located in the past path, the control target identifier moves on the map surface in accordance with the real-time position parameters.
In an embodiment of the present application, the display method further includes: the obtained real-time parameter combination is stored in the tail of a data storage queue; sequentially calling real-time parameter combinations of the head of the data storage queue, and comparing the real-time parameter combinations with the map position parameters; in response to the distance between the real-time location parameter and the drawing location parameter being less than a first distance threshold, a real-time parameter combination is stored.
In another aspect, there is provided a display device of a map drawing, the display device including: the display module and the processing module; the display module is used for displaying the map drawing and the target mark; the processing module is used for periodically acquiring real-time parameter combinations of the movable target at intervals of preset duration; the real-time parameter combination comprises real-time position parameters of the movable target; comparing the map position parameter of the target mark in the map with the real-time position parameter; the object identifier is used for marking a movable object in the map plane; and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane.
In yet another aspect, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: periodically acquiring a real-time parameter combination of the movable target at intervals of a preset duration, wherein the real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target; comparing the map position parameter of the target mark in the map with the real-time position parameter, wherein the target mark is used for marking the movable target in the map; and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane.
In yet another aspect, a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: periodically acquiring a real-time parameter combination of the movable target at intervals of a preset duration, wherein the real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target; comparing the map position parameter of the target mark in the map with the real-time position parameter, wherein the target mark is used for marking the movable target in the map; and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane.
In contrast to the prior art, the map image display method, the display device, the computer device and the computer readable storage medium detect whether the position of the object identifier matches with the actual position of the movable object by using the image position parameter of the object identifier in the map image and the real-time position parameter of the movable object. Meanwhile, considering the influence of factors such as positioning precision, signal intensity, road surface information acquisition and the like, when the acquired real-time position parameters possibly have errors and the moving distance of the target mark is small, the conditions that the target mark jumps and the position of the updated target mark is inconsistent with the actual position of the movable target easily occur due to the fact that the map precision and the performance of a computer can not ensure that the target mark can smoothly move to a designated position and the like. Therefore, when the distance between the map position parameter of the target mark and the real-time position parameter of the movable target is smaller than the distance threshold value, the position of the current target mark on the map is not changed, namely the target mark is kept to stay at the current position in the map. According to the method and the device, the risk that the target mark jumps on the map drawing can be reduced, the display effect of the map drawing is improved, and further the use experience of a user is improved.
Drawings
FIG. 1 is an application environment diagram of an embodiment of a method of displaying map views of the present application;
FIG. 2 is a flow chart of an embodiment of a method for displaying a map of the present application;
FIG. 3 is a schematic view of a scene of an embodiment of the map of the present application;
FIG. 4 is a flow chart of another embodiment of a method for displaying a map of the present application;
FIG. 5 is a schematic view of a scenario in which the subject matter of the present application is moving an embodiment;
FIG. 6 is a flow chart of one embodiment of a method of acquiring real-time parameter combinations of a movable object according to the present application;
FIG. 7 is a flow chart of an embodiment of a data storage method of the present application;
FIG. 8 is a schematic view of an embodiment of a display device of the map of the present application;
fig. 9 is a schematic structural view of an embodiment of the computer device of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, fig. 1 is an application environment diagram of an embodiment of a display method of a map image of the present application.
In an embodiment, the map drawing display method provided by the application can be applied to an application environment as shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network.
The server 104 is configured to process the electronic map, generate a target identifier for identifying a location of the movable target, and display the target identifier on a map surface of the electronic map. The movable object may be the user or the vehicle, and is not limited herein. Through the processing of the server 104, the user can use the electronic map at the terminal 102.
For example, the network about car can be used as a movable target, the server 104 processes the received data, and the target mark is displayed on the map surface, so that the user can monitor the position of the network about car at the terminal 102, thereby being beneficial to ensuring the security of driver and passenger. In addition, the map image is displayed by using the map image display method, the risk that the target mark jumps on the map image can be reduced, the display effect of the map image can be improved, and further the use experience of a user can be improved. Specific embodiments of the display method for map drawings of the present application will be described later.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, displays and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
Referring to fig. 2 and 3, fig. 2 is a flow chart of an embodiment of a display method of a map of the present application, and fig. 3 is a schematic view of a scene of an embodiment of a map of the present application. Note that, the display method of the map image illustrated in the present embodiment is not limited to the following steps:
s201: and periodically acquiring a real-time parameter combination of the movable target at intervals of a preset duration, wherein the real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target.
In this embodiment, the real-time parameter combination of the movable target is obtained once every preset time interval, so that the real-time position information of the movable target is obtained. The real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target.
The movable object may be a user or a vehicle or the like as set forth in the foregoing. The real-time position parameter represents the current position of the movable target, which can be represented by longitude and latitude, custom coordinates and the like, and is not limited herein. The real-time parameter refers to a time when the real-time position parameter is acquired, and the real-time parameter may be represented by a time stamp, a time of a designated time zone, or the like, which is not limited herein. This means that the real-time parameter combination is used to represent the position of the movable object at the moment represented by the real-time parameter.
The preset time period may be 5s, 10s, 15s, 30s, 45s, etc., which is not limited herein.
It should be noted that, the acquiring described in the present application may refer to actively capturing the real-time parameter combination from the movable target, or may be passively receiving the real-time parameter combination by sending the real-time parameter combination from the movable target at each preset time interval, which is not limited herein.
S202: and comparing the map position parameters of the target marks in the map with the real-time position parameters, wherein the target marks are used for marking the movable targets in the map.
In this embodiment, after the real-time parameter combination of the movable target is obtained, whether the position of the target identifier in the map is matched with the current position of the movable target, that is, whether positioning offset occurs, can be determined according to the real-time parameter combination of the movable target and the map position parameter of the target identifier, so that the position of the target identifier can be corrected in time when the positioning offset occurs.
The map position parameter is used for representing the position of the target mark in the map at the current moment. When the target mark changes along with the real-time position of the movable target, the picture position parameter also changes. It is easy to understand that the map location parameter and the real-time location parameter are respectively used to represent a geographic location, and may be both for a real geographic environment and a map of an electronic map, which are not limited herein.
As illustrated in fig. 3, the map plane 300 is a map plane of a resulting electronic map drawn from road surface information of a real geographical environment or the like, and the object identification a is illustrated in the map plane 300 so that a user can observe the position of a movable object. In some cases, the real-time position parameter of the movable object may correspond to the position B of the map 300, which may be a case of a positioning offset, or may be that the acquired real-time position parameter has an error, so in order to facilitate the user to observe the position of the movable object and determine the position where the object identifier should exist, a judgment needs to be made in this case, that is, the map position parameter and the real-time position parameter are compared.
S203: and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane.
In this embodiment, if the drawing position parameter of the target identifier and the real-time position parameter of the movable target are calculated, it is determined whether the distance between the drawing position parameter and the real-time position parameter is smaller than the first distance threshold. And judging whether the distance between the position of the target mark and the position represented by the real-time position parameter is smaller than a first distance threshold value.
The distance between the position of the target identifier and the position represented by the real-time position parameter may be the distance on the map surface, or may refer to the distance corresponding to the real geographic environment. If so, the risk that the position represented by the real-time position parameter is an error position can be reduced, and the method is also beneficial to planning the path of the target mark moving on the map surface.
If the distance between the two is smaller than the first distance threshold, the acquired real-time position parameter is considered to have errors possibly due to positioning precision and other reasons; or, due to reasons such as current path planning precision and algorithm precision, when the distance between the two is too small, the path for accurately moving the target mark cannot be planned, which is usually represented by continuous jump of the target mark, so that the user cannot be assisted in determining the position of the movable target, even the judgment of the user is interfered, and the display effect of the map is poor.
Therefore, in the map image display method in the implementation, when the distance between the position of the target mark and the position represented by the real-time position parameter is smaller than the first distance threshold value, the target mark is kept to stay at the current position in the map image, so that the risk of jumping of the target mark on the map image can be reduced, the display effect of the map image can be improved, and the use experience of a user can be improved.
It should be noted that, in an embodiment, completing steps S201 to S203 may consider that the current flow is completed and wait for the next real-time parameter combination. In an alternative embodiment, further policy decisions may be continued to determine whether to plan the location of the path of movement update target identity, as will be illustrated below.
Referring to fig. 3 to 5 in combination, fig. 4 is a flowchart illustrating another embodiment of a display method of a map of the present application, and fig. 5 is a schematic view of a scene of an embodiment of moving an object identifier of the present application. Note that, the display method of the map image illustrated in the present embodiment is not limited to the following steps:
s401: and periodically acquiring the real-time parameter combination of the movable target at intervals of a preset duration.
In this embodiment, the real-time parameter combination of the movable target is actively/passively acquired once every preset time period, so that the real-time position of the movable target is known. The real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target.
S402: comparing the map location parameters with the real-time location parameters.
In this embodiment, after the real-time parameter combination of the movable object is obtained, the map position parameter of the object identifier in the map may be compared with the real-time position parameter. And judging whether the position of the target mark in the map image is matched with the current position of the movable target or not according to the real-time parameter combination of the movable target and the image position parameter of the target mark, namely whether positioning offset occurs or not, so that the position of the target mark can be corrected in time when the positioning offset occurs.
As illustrated in fig. 3, map plane 300, target identification a, and location B represented by the real-time location parameters; in this embodiment, the position B is shown for the sake of understanding, and the identifier of the position B is not displayed on the map surface.
S403: and judging whether the distance between the picture position parameter and the real-time position parameter is smaller than a first distance threshold value.
In this embodiment, the distance between the map position parameter and the real-time position parameter can be regarded as the distance between the positions respectively represented by these two parameters.
In response to the distance between the position of the target mark and the position represented by the real-time position parameter being smaller than the first distance threshold, the position represented by the real-time position parameter is considered to be the position where the error is likely to be obtained/the target mark cannot be controlled to move smoothly and on the road, and step S404 is executed; in response to the distance between the location of the target identity and the location represented by the real-time location parameter being not less than the first distance threshold, it is considered that the location represented by the real-time location parameter is not the location where the error is derived, step S408 is performed.
When the first distance threshold refers to a distance corresponding to the real geographic environment, the first distance threshold may be 10m, 15m, 20m, 25m, 30m, etc., which will not be described herein.
In an alternative embodiment, step S404 may also be performed when the distance between the location of the target identifier and the location indicated by the real-time location parameter is equal to the first distance threshold, which is not strictly limited herein.
S404: the target mark is kept to stay at the current position in the map plane.
In this embodiment, in response to the distance between the two being smaller than the first distance threshold, the target identifier is kept to stay at the current position in the map plane, so as to further determine whether the real-time position parameter is likely to be caused by an error, and/or facilitate accurate, smooth and road-grabbing of the planned moving path of the target identifier.
S405: a number of real-time parameter combinations are acquired.
In this embodiment, when the distance between the real-time position parameter and the map position parameter is smaller than the first distance threshold, the real-time parameter combination may be waited for again, and it is determined whether the position of the target identifier needs to be matched with the real-time position of the movable target by combining at least two real-time parameter combinations.
Optionally, when the distance between the real-time position parameter and the map position parameter is detected to be smaller than the first distance threshold for the first time, the real-time parameter combination may still be acquired in a preset duration, or the frequency of acquiring the real-time parameter combination may be increased, which is not limited herein.
The number of real-time parameter combinations acquired in this step may be one, two, three, four, five, etc., and is not limited herein.
S406: and taking the real-time position parameters acquired at the latest moment as planning end points, taking a plurality of previous real-time position parameters as reference positions, planning a moving path from the current position of the target mark to the position of the planning end point on the map surface, and taking the path according to each reference position of the path.
In this embodiment, after having at least two real-time parameter combinations, the real-time position parameter acquired at the latest time may be determined based on the real-time parameter included in the real-time parameter combinations, and the real-time position parameter acquired at the latest time may be used as a planning destination to plan a movement path from the position represented by the map position parameter to the planning destination.
When planning a moving path for road-holding on a map, it is necessary to use a real-time position parameter, which is not used as a planning destination, as a reference position. In other words, at least one real-time position parameter other than the real-time position parameter as the key point of planning is taken as the reference position, the moving path of the road-holding on the map surface is planned, and the moving path should be routed to each reference position. If so, at least one reference position is added between the starting point and the end point of the moving path, which is beneficial to improving the reliability and the accuracy of planning the moving path.
Alternatively, all real-time position parameters except the real-time position parameters serving as the key points of planning can be used as reference positions, so that the reliability and accuracy of planning the moving path can be improved.
As illustrated in fig. 5, the target identifier a identifies a position represented by the drawing position parameter, the real-time position parameter K is a real-time position parameter in which the distance between the real-time position parameter K and the drawing position parameter is detected for the first time to be smaller than the first distance threshold, and the real-time position parameter a' is a real-time position parameter acquired again. And taking the real-time position parameter K as a reference position, taking the real-time position parameter A 'as a planning end point, and planning a moving path from the drawing position parameter A to the real-time position parameter A' through the real-time position parameter K, wherein the moving path can be shown as a dash-dot line in the drawing.
S407: and judging whether the movement rule of the target mark is satisfied.
In this embodiment, in response to the movement rule of the target identifier being satisfied, the movement path is considered to be feasible, and the target identifier may be allowed to move on the map surface, step S409 is performed; in response to the movement rule of the target mark not being satisfied, it is considered that the discrepancy between the acquired real-time position parameter and the map position parameter may be caused by an error, and step S404 is performed.
Specifically, the movement rule of the target mark is that the length of the movement path is greater than the second distance threshold, if the real-time position parameter is considered to be possibly truly inconsistent with the map position parameter, the real-time position parameter is not caused by error, and therefore the reliability and the accuracy of planning the movement path are improved. For example, the second distance threshold may be 5m, 7.5m, 10m, 15m, 20m, etc.
Further, the movement rule may further include that a linear distance between the planned endpoint and the map location parameter of the target identifier is greater than a third distance threshold, the third distance threshold being less than the second distance threshold; and/or calculating the moving speed of the movable target based on the real-time position parameters and the real-time parameters acquired for a plurality of times, wherein the moving speed is greater than a speed threshold. That is, the above condition needs to be satisfied while the length of the moving path is greater than the second distance threshold.
Specifically, the movement plan may be: and when the length of the moving path is larger than the second distance threshold, the linear distance between the planning endpoint and the drawing position parameter of the target mark is larger than the third distance threshold. Alternatively, the moving speed of the movable target is greater than the speed threshold while the length of the moving path is greater than the second distance threshold. Or when the length of the moving path is larger than the second distance threshold, the linear distance between the planning endpoint and the drawing position parameter of the target mark is larger than the third distance threshold, and the moving speed of the movable target is larger than the speed threshold.
S408: the planning target marks a moving path from the current position to the real-time position parameter on the map surface for road capturing.
In this embodiment, when the distance between the map location parameter and the real-time location parameter is not less than the first distance threshold, a moving path from the map location parameter to the real-time location parameter may be planned, i.e. a moving path from the current location of the planning target identifier to the real-time location parameter for capturing a path on the map.
S409: the control target mark moves along the moving path on the map surface.
In the present embodiment, the control target mark moves along the movement path on the map surface. The movement path may be the movement path determined in the completion step S407 to satisfy the movement rule, or may be the movement path directly planned in the completion step S408, which is not limited herein.
As illustrated in fig. 5, the control target identity is moved from the map position parameter a to the real-time position parameter a 'along the movement path, taking the real-time position parameter a' as the new map position parameter a.
In an alternative embodiment, the movement path movement may be the movement path planned by the movement path in step S406, without performing the determination in step S407.
Therefore, the planned moving path in this embodiment can reduce the risk of lower reliability and accuracy of path planning as much as possible, and can also consider whether the path is an error condition, so as to reduce the risk of jumping the target mark on the map, thereby being beneficial to improving the display effect of the map and further improving the use experience of the user. And after each time a new point location of the movable target is acquired, the position of the movable target is checked first. Meanwhile, after each time of monitoring the change of the heartbeat data (real-time parameter combination), the position of the target mark is not directly refreshed, and the position of the current target mark on the map is combined and processed through layer-by-layer calculation, so that the reliability of the map display is provided.
In some embodiments, the "periodically acquiring the real-time parameter combination of the movable object at intervals of the preset duration" described in step S201 and step S401 in the above embodiments may have a position represented in the acquired real-time parameter combination, which is located on a path (i.e., a past path) where the movable object has moved, and for this reason, the following determination method is described in this application, to distinguish whether the real-time position parameter is caused by an error or is a real movement path of the movable object.
Referring to fig. 6, fig. 6 is a flowchart illustrating an embodiment of a method for acquiring real-time parameter combinations of a movable object according to the present application. It should be noted that, the method for acquiring the real-time parameter combination of the movable object described in the present embodiment is not limited to the following steps:
s601: it is determined whether the acquired real-time location parameter is located in a past path of the movable object.
In the present embodiment, in response to the acquired real-time position parameter being located in the past path of the movable target, it is considered that it may be caused by the error cause, step S602 is performed; in response to the acquired real-time position parameter being located in the past path of the movable object, the foregoing embodiment is performed to determine whether the distance between the real-time position parameter and the map position parameter is smaller than the first distance threshold, or is used as the reference position/planning endpoint, which is not limited herein.
The past path refers to a path through which the movable target has moved before, and since the target mark is used for marking the position of the movable target on the map surface, the target mark can be considered to follow the movement of the movable target, and then it can also be determined whether the real-time position parameter is located in the past movement path of the target mark.
S602: and in response to the real-time position parameter being located in the past path, temporarily storing the real-time position parameter, and keeping the target mark in the current position in the map plane.
In this embodiment, when the real-time position parameter is detected to be located on the past path for the first time, the real-time position parameter is temporarily stored, so that the target mark is kept at the current position in the map drawing, and the condition that the target mark jumps in the map drawing due to errors is reduced.
S603: sequentially acquiring a plurality of real-time parameter combinations, and judging whether each real-time position parameter is positioned on a past path or not and whether the number of the real-time position parameters positioned on the past path exceeds a preset value or not.
In this embodiment, if the number of paths in the past exceeds the preset value, it is considered that the movable object may be turning around, step S604 is performed; if the number of the paths in the past exceeds the preset value, the current flow is completed if the number is considered to be possibly caused by error reasons.
And continuously acquiring a plurality of real-time parameter combinations, and sequentially judging whether each real-time position parameter is positioned on a past path. For example, the number of real-time parameter combinations acquired in this step may be one, two, three, four, five, etc.; the frequency of acquiring the real-time parameter combination may be at intervals of a preset duration, or may be at intervals of a time shorter than the preset duration.
And judging whether the number of the paths in which the real-time position parameters are located exceeds a preset value. Alternatively, the preset value may be a number value less than the number of acquired real-time parameter combinations, may be a number value equal to the number of acquired real-time parameter combinations, or may be a certain percentage of the number value of the number of acquired real-time parameter combinations.
For example, from the first detection that the real-time location parameter is located in the past path, five real-time parameter combinations are acquired again, and then the total number of acquired real-time parameter combinations is six. If the preset value is set to be four, if no less than four real-time position parameters exist in the six real-time position parameters and are located on the past path, the movable target is considered to possibly turn around.
S604: in response to the plurality of real-time parameter combinations being located in the past path, the control target identifier moves on the map surface in accordance with the real-time position parameters.
In this embodiment, in response to the plurality of real-time parameter combinations being located on the past path, it is considered that the movable object may be turning around, and the control object identifier is moved on the map surface according to the real-time position parameters. The target mark can be directly controlled to move along with the real-time position parameter, or the target mark can be controlled to move by using the display method of the map surface in the embodiment so as to reduce the risk of jumping of the target mark.
The data storage method of the present application is exemplified below. Referring to fig. 7, fig. 7 is a flowchart illustrating an embodiment of a data storage method according to the present application. It should be noted that the data storage method described in this embodiment is not limited to the following steps:
s701: and combining the acquired real-time parameters and storing the combination into the tail of the data storage queue.
In this embodiment, the queue is a special linear table, and is characterized in that it allows only deletion operations at the front (front) of the table, and insertion operations at the back (rear) of the table, as well as stacks, the queue is a linear table whose operations are limited. The end performing the insert operation is referred to as the tail end, and the end performing the delete operation is referred to as the head end (i.e., head end).
S702: and sequentially calling the real-time parameter combination of the head of the data storage queue, and judging whether the distance between the real-time position parameter and the drawing position parameter is smaller than a first distance threshold value.
In this embodiment, in response to the distance between the real-time position parameter and the map position parameter being less than the first distance threshold, step S703 is performed; in response to the distance between the real-time position parameter and the map position parameter being not less than the first distance threshold, the movement path of the target identification is planned using the real-time position parameters in the real-time parameter combination, as set forth in step S408.
And calling the real-time parameter combination at the head of the queue in the data storage queue for realizing the display method of the map drawing in the previous embodiment and/or the method for acquiring the real-time parameter combination of the movable target.
S703: and a real-time parameter combination is stored.
In response to the distance between the real-time position parameter and the map position parameter being less than the first distance threshold, the real-time parameter combination is stored and can be used for taking the real-time position parameter as a reference position and/or calculating the moving speed of the movable target by utilizing the real-time position parameter and the real-time parameter.
It should be noted that, after the first time of calling the real-time parameter combination to detect that the distance between the real-time position parameter and the drawing position parameter is smaller than the first distance threshold, a plurality of real-time parameter combinations can be directly called for path planning; and if the distance between the real-time position parameter and the drawing position parameter is larger than the first distance threshold, the moving path is directly planned, or the moving path is planned by taking the previous real-time position parameter as a reference position, which is not described herein.
In the present application, the map image display method may further include an initial map image instance, an initial target instance, an initial data storage queue instance, an initial track instance, and the like.
The initial map drawing instance is formed by drawing creation, drawing destruction, drawing attribute updating, drawing instance acquisition and other methods. The initial target instance is composed of methods such as target creation, target walking, target stopping, target instance acquisition, target position refreshing and the like. The initial data storage queue example is formed by methods of newly building a queue, enqueuing, dequeuing, restoring last dequeued data, taking last dequeued data and the like. The initial track example is composed of route planning, route rule checking, distance checking and other methods.
It should be understood that, although the steps in the flowcharts of fig. 2, 4, 6, and 7 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of fig. 2, 4, 6, and 7 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or phases are performed necessarily occur in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or phases of other steps.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a display device of the present application.
In one embodiment, a display device includes: a display module 801 and a processing module 803.
The display module 801 is used for displaying map drawings and target identifiers. The display module 801 may be provided in the terminal 102 as shown in fig. 1.
The processing module 803 is configured to periodically obtain a real-time parameter combination of the movable target at intervals of a preset duration; the real-time parameter combination comprises real-time position parameters of the movable target; comparing the map position parameter of the target mark in the map with the real-time position parameter; the object identifier is used for marking a movable object in the map plane; and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane. Wherein the display module 801 may be provided to the server 104 as shown in fig. 1.
Alternatively, the communication manner of the display module 801 and the processing module 803 may be a socket communication manner or the like.
For specific limitations of the display device, reference may be made to the above limitation of the display method for the map drawing, and no further description is given here. The respective modules in the above-described display device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an embodiment of a computer device of the present application.
In this embodiment, the computer device may be a server, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing relevant data of the display method of the map drawing. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of displaying a map drawing.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
s201: and periodically acquiring a real-time parameter combination of the movable target at intervals of a preset duration, wherein the real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target.
S202: and comparing the map position parameters of the target marks in the map with the real-time position parameters, wherein the target marks are used for marking the movable targets in the map.
S203: and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
s201: and periodically acquiring a real-time parameter combination of the movable target at intervals of a preset duration, wherein the real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target.
S202: and comparing the map position parameters of the target marks in the map with the real-time position parameters, wherein the target marks are used for marking the movable targets in the map.
S203: and in response to the distance between the two being smaller than the first distance threshold value, keeping the target mark to stay at the current position in the map plane.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the claims. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (9)

1. A method of displaying a map drawing, comprising:
periodically acquiring a real-time parameter combination of a movable target at intervals of a preset duration, wherein the real-time parameter combination comprises a real-time position parameter and a real-time parameter of the movable target;
comparing a map location parameter of a target identifier in a map with the real-time location parameter, wherein the target identifier is used for marking the movable target in the map;
In response to the distance between the two being smaller than a first distance threshold, keeping the target mark stay at the current position in the map plane;
the acquiring the real-time parameter combination of the movable target comprises the following steps:
judging whether the acquired real-time position parameter is positioned on a past path of the movable target;
in response to the real-time location parameter being located in the past path, temporarily storing the real-time location parameter, and keeping the target mark in a current location in a map plane;
sequentially acquiring a plurality of real-time parameter combinations, and judging whether each real-time position parameter is positioned on the past path or not;
and controlling the target mark to move on the map surface according to the real-time position parameters in response to the fact that a plurality of real-time parameter combinations are positioned on the past path.
2. The display method as recited in claim 1, wherein maintaining the target mark after staying at the current location in the map plane in response to the distance therebetween being less than the first distance threshold further comprises:
acquiring a plurality of real-time parameter combinations;
taking the real-time position parameters acquired at the latest moment as planning terminal points and taking a plurality of previous real-time position parameters as reference positions, planning a moving path from the current position of the target mark to the road capturing position of the planning terminal points on a map, wherein the moving path is in accordance with each reference position of the path;
And controlling the target mark to move along the moving path on the map surface.
3. The display method according to claim 2, wherein the controlling the target mark before the map surface moves along the movement path further comprises:
judging whether the movement rule of the target mark is met or not;
in response to the movement rule not being met, keeping the target mark stay at the current position in the map drawing; the target mark is allowed to move on the map surface in response to the movement rule being satisfied.
4. A display method according to claim 3, wherein the movement rule comprises:
the length of the movement path is greater than a second distance threshold.
5. The display method according to claim 4, wherein the movement rule further comprises:
the linear distance between the planning endpoint and the drawing position parameter of the target mark is larger than a third distance threshold value, and the third distance threshold value is smaller than the second distance threshold value;
and/or calculating a moving speed of the movable target based on the real-time position parameter and the real-time parameter acquired multiple times, wherein the moving speed is greater than a speed threshold.
6. The display method according to claim 1, characterized in that the display method further comprises:
storing the acquired real-time parameter combination into the tail of a data storage queue;
sequentially calling the real-time parameter combination of the head of the data storage queue, and comparing the real-time parameter combination with the drawing position parameter;
and in response to the distance between the real-time position parameter and the drawing position parameter being less than the first distance threshold, saving the real-time parameter combination.
7. A display device for map drawings, the display device comprising:
the display module is used for displaying the map drawing and the target mark;
the processing module is used for periodically acquiring real-time parameter combinations of the movable targets at intervals of preset duration; the real-time parameter combination comprises real-time position parameters of the movable target; comparing the map position parameter of the target mark in the map with the real-time position parameter; the object identifier is used for marking the movable object in the map drawing; and in response to the distance between the two is smaller than a first distance threshold value, keeping the target mark stay at the current position in the map plane, wherein the acquiring the real-time parameter combination of the movable target comprises the following steps: judging whether the acquired real-time position parameter is positioned on a past path of the movable target; in response to the real-time location parameter being located in the past path, temporarily storing the real-time location parameter, and keeping the target mark in a current location in a map plane; sequentially acquiring a plurality of real-time parameter combinations, and judging whether each real-time position parameter is positioned on the past path or not; and controlling the target mark to move on the map surface according to the real-time position parameters in response to the fact that a plurality of real-time parameter combinations are positioned on the past path.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the map drawing display method according to any one of claims 1 to 6 when the computer program is executed.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method for displaying map drawings according to any one of claims 1 to 6.
CN202211693011.3A 2022-12-28 2022-12-28 Map drawing display method, display device, computer device and storage medium Active CN115687726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211693011.3A CN115687726B (en) 2022-12-28 2022-12-28 Map drawing display method, display device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211693011.3A CN115687726B (en) 2022-12-28 2022-12-28 Map drawing display method, display device, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN115687726A CN115687726A (en) 2023-02-03
CN115687726B true CN115687726B (en) 2023-05-05

Family

ID=85055062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211693011.3A Active CN115687726B (en) 2022-12-28 2022-12-28 Map drawing display method, display device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN115687726B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105890586A (en) * 2016-03-30 2016-08-24 上海河广信息科技有限公司 User location marking system and method
CN109429507A (en) * 2017-06-19 2019-03-05 北京嘀嘀无限科技发展有限公司 System and method for showing vehicle movement on map
CN115470244A (en) * 2021-06-11 2022-12-13 腾讯科技(深圳)有限公司 Interaction method and device based on electronic map, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105890586A (en) * 2016-03-30 2016-08-24 上海河广信息科技有限公司 User location marking system and method
CN109429507A (en) * 2017-06-19 2019-03-05 北京嘀嘀无限科技发展有限公司 System and method for showing vehicle movement on map
CN115470244A (en) * 2021-06-11 2022-12-13 腾讯科技(深圳)有限公司 Interaction method and device based on electronic map, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115687726A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN110221600B (en) Path planning method and device, computer equipment and storage medium
CN113498474B (en) High-precision map updating method, device, computer equipment and storage medium
CN113587945B (en) Vehicle driving route correction method and system under condition of road network data loss
CN111339802A (en) Method and device for generating real-time relative map, electronic equipment and storage medium
CN111197993B (en) Map rendering method and device, computer equipment and storage medium
CN111241224B (en) Method, system, computer device and storage medium for target distance estimation
CN111207761B (en) Vehicle positioning method and device, computer equipment and storage medium
CN112356027B (en) Obstacle avoidance method and device for agriculture and forestry robot, computer equipment and storage medium
CN111353510B (en) Multi-sensor target detection method, multi-sensor target detection device, computer equipment and storage medium
CN111414804B (en) Identification frame determining method, identification frame determining device, computer equipment, vehicle and storage medium
CN115687726B (en) Map drawing display method, display device, computer device and storage medium
CN111178126A (en) Target detection method, target detection device, computer equipment and storage medium
CN113609947A (en) Motion trajectory prediction method, motion trajectory prediction device, computer equipment and storage medium
CN113932825A (en) Robot navigation path width acquisition system, method, robot and storage medium
CN115184919A (en) Target tracking method, device, base station and storage medium
CN111882494A (en) Pose graph processing method and device, computer equipment and storage medium
CN115297437B (en) Positioning sign-in method, system, equipment and medium applied to positioning watch
CN111060127B (en) Vehicle starting point positioning method and device, computer equipment and storage medium
CN114355903A (en) Robot automatic charging method and device, computer equipment and storage medium
CN113503883B (en) Method for collecting data for constructing map, storage medium and electronic equipment
CN115616642A (en) Correction processing method, device, equipment and storage medium for position data
CN115393816A (en) Lane line generation method, lane line generation device, computer device, and storage medium
CN114415698A (en) Robot, positioning method and device of robot and computer equipment
CN114022868A (en) Road steering angle calculation method and device, computer equipment and storage medium
CN114358329A (en) Substation inspection management method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant