Map light column diagram display method and device, electronic equipment and vehicle

By generating and correcting the display ratio of map bar charts, the problem of inaccurate road condition information caused by vehicle logo obstruction was solved, resulting in a more intuitive navigation experience.

CN115979291BActive Publication Date: 2026-08-04GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREAT WALL MOTOR CO LTD
Filing Date
2023-01-05
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

The existing map bar charts are obscured by car logos, preventing users from obtaining the true road conditions and resulting in incorrect navigation information.

Method used

Generate an initial map bar chart. Calculate the display scale based on the traffic status of the target road segment and the length and color of the sub-road segments. Correct the displayed images of the target and non-target sub-road segments and adjust the display scale to improve the visible range.

Benefits of technology

By dynamically adjusting the map's bar chart, the visibility and accuracy of current road segment information for users are improved, avoiding incorrect navigation judgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115979291B_ABST
    Figure CN115979291B_ABST
Patent Text Reader

Abstract

The application provides a map light column diagram display method and device, electronic equipment and vehicle, and relates to the technical field of vehicles. First, according to the traffic state of a target section, an initial map light column diagram is generated, and a corrected display image of a target sub-section and a corrected display image of a non-target sub-section are generated. Then, according to the corrected display image of the target sub-section and the corrected display image of the non-target sub-section, the initial map light column diagram is corrected to obtain a corrected map light column diagram. Finally, the corrected map light column diagram is displayed as a target map light column diagram. In this application, the display image of the target sub-section where the vehicle is located is dynamically adjusted, thereby improving the visible range of the target sub-section in the map light column diagram, helping the user to more intuitively and accurately obtain the information of the current section, and avoiding the situation that the user makes a wrong judgment due to the wrong information obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle technology, and in particular to a method, apparatus, electronic device, and vehicle for displaying map bar charts. Background Technology

[0002] A map bar chart uses a single bar to display traffic congestion along a route, with different colors indicating different levels of congestion. This allows users to quickly obtain navigation information and provides an intelligent and personalized navigation experience, while also enabling them to understand road conditions more intuitively.

[0003] In related technologies, existing map bar graphs often obscure the actual vehicle positions by having vehicle icons cover the graph, preventing users from obtaining accurate road conditions and leading to incorrect guidance. Summary of the Invention

[0004] This invention provides a method, apparatus, electronic device, and vehicle for displaying map bar charts, aiming to solve or partially solve the problems existing in the background art.

[0005] To solve the above-mentioned technical problems, the present invention is implemented as follows:

[0006] In a first aspect, embodiments of the present invention provide a method for displaying a map bar chart, the method comprising:

[0007] Based on the traffic status of the target road segment, an initial map bar chart is generated, wherein the target road segment is composed of multiple sub-segments with different traffic statuses;

[0008] Generate corrected display images of the target sub-segment and non-target sub-segments, where the target sub-segment is the sub-segment where the vehicle is currently located, and there are multiple non-target sub-segments;

[0009] Based on the corrected display images of the target sub-segment and the non-target sub-segment, the initial map bar chart is corrected to obtain the corrected map bar chart.

[0010] The corrected map bar chart will be displayed as the target map bar chart.

[0011] Optionally, the steps for generating an initial map bar chart based on the traffic status of the target road segment include:

[0012] Obtain the length of each sub-segment and the total length of the target segment;

[0013] The initial display ratio of each sub-segment is calculated based on the ratio of the length of each sub-segment to the total length of the target segment.

[0014] The display color of each sub-segment is determined based on the traffic status of each sub-segment;

[0015] Based on the initial display scale and display color of each sub-segment, generate the initial display image of each sub-segment;

[0016] Based on the corresponding road segment number of each sub-road segment, the initial display images of each sub-road segment are stitched together to generate an initial map bar chart.

[0017] Optionally, the step of generating corrected display images of the target sub-segment and non-target sub-segments includes:

[0018] Based on the initial display ratio of the target sub-segment, determine whether the initial map bar chart meets the first-level correction display conditions;

[0019] If the initial map bar chart meets the first level of correction display conditions, calculate the correction display ratio of the target sub-segment. Based on the correction display ratio of the target sub-segment and the initial display ratio of the target sub-segment, calculate the adjustment ratio of the target sub-segment. Based on the relationship between the adjustment ratio of the target sub-segment and the sum of the initial display ratios of all non-target sub-segments, determine whether the initial map bar chart meets the second level of correction display conditions.

[0020] If the initial map bar chart meets the second-level correction display conditions, the correction display ratio of non-target sub-segments is calculated based on the correction display ratio of the target sub-segment;

[0021] Based on the corrected display ratio of the target sub-segment and the corrected display ratio of the non-target sub-segment, generate corrected display images of the target sub-segment and the non-target sub-segment.

[0022] Optionally, the step of determining whether the initial map bar chart meets the first-level correction display conditions based on the initial display scale of the target sub-segment includes:

[0023] Determine the relationship between the initial display ratio and the preset threshold;

[0024] If the initial display ratio is less than the preset threshold, the initial map bar chart is determined to meet the first level of correction display conditions;

[0025] If the initial display ratio is greater than or equal to a preset threshold, it is determined that the initial map bar chart does not meet the first-level correction display conditions, and the initial map bar chart is displayed as the target map bar chart.

[0026] Optionally, the step of calculating the corrected display ratio of non-target sub-segments based on the corrected display ratio of the target sub-segment includes:

[0027] Obtain the general compensation display ratio and the vehicle logo occupancy compensation display ratio. Based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the initial display ratio, determine the corrected display ratio for the target sub-segment.

[0028] Obtain the total number of non-target sub-segments, and determine the average clipping ratio of non-target sub-segments based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the total number of non-target sub-segments.

[0029] The corrected display ratio for each non-target sub-segment is determined based on the average clipping ratio and the initial display ratio for each non-target sub-segment.

[0030] Optionally, the step of determining the corrected display ratio for each non-target sub-segment based on the average cropping ratio and the initial display ratio for each non-target sub-segment includes:

[0031] Determine the relationship between the initial display ratio and the average clipping ratio of each non-target sub-segment;

[0032] When the initial display ratio of all non-target sub-segments is greater than the average clipping ratio, the corrected display ratio of each non-target sub-segment is obtained based on the initial display ratio and the average clipping ratio of the non-target sub-segments.

[0033] If the initial display ratio of a non-target sub-segment is less than or equal to the average clipping ratio, the weight clipping ratio of the non-target sub-segment is calculated based on the preset weight ratio of the non-target sub-segment. Based on the initial display ratio and weight clipping ratio of the non-target sub-segment, the corrected display ratio of each non-target sub-segment is obtained.

[0034] Optionally, the steps of correcting the initial map bar chart to obtain a corrected map bar chart include:

[0035] According to the road segment number, replace the initial display images of the target sub-segment and non-target sub-segment in the initial map bar chart with the corresponding corrected display images.

[0036] Secondly, embodiments of the present invention provide a map bar chart display device, the device comprising:

[0037] The first image module is used to generate an initial map bar chart based on the traffic status of the target road segment, wherein the target road segment is composed of multiple sub-road segments with different traffic statuses;

[0038] The second image module is used to generate corrected display images of the target sub-segment and non-target sub-segments, wherein the target sub-segment is the sub-segment where the vehicle is currently located, and there are multiple non-target sub-segments.

[0039] The correction module is used to correct the initial map bar chart based on the corrected display images of the target sub-segment and the non-target sub-segment to obtain the corrected map bar chart.

[0040] The display module is used to display the corrected map bar chart as the target map bar chart.

[0041] Optionally, the first image module includes:

[0042] The acquisition submodule is used to obtain the length of each sub-segment and the total length of the target segment;

[0043] The first calculation submodule is used to calculate the initial display ratio of each sub-segment based on the ratio of the segment length of each sub-segment to the total length of the target segment.

[0044] The determination submodule is used to determine the display color of each sub-road segment based on the traffic status of each sub-road segment;

[0045] The first image generation submodule is used to generate the initial display image of each sub-segment based on the initial display ratio and display color of each sub-segment;

[0046] The image combination submodule is used to stitch together the initial display images of each sub-segment according to the corresponding segment number of each sub-segment to generate an initial map bar chart.

[0047] Optionally, the second image module includes:

[0048] The first judgment submodule is used to determine whether the initial map bar chart meets the first level of correction display conditions based on the initial display ratio of the target sub-road segment.

[0049] The second judgment submodule is used to calculate the correction display ratio of the target sub-segment when the initial map bar chart meets the first level of correction display conditions, calculate the adjustment ratio of the target sub-segment based on the correction display ratio of the target sub-segment and the initial display ratio of the target sub-segment, and determine whether the initial map bar chart meets the second level of correction display conditions based on the relationship between the adjustment ratio of the target sub-segment and the sum of the initial display ratios of all non-target sub-segments.

[0050] The second calculation submodule is used to calculate the correction display ratio of non-target sub-segments based on the correction display ratio of the target sub-segments, provided that the initial map bar chart meets the second level of correction display conditions.

[0051] The second image generation submodule is used to generate corrected display images of the target sub-segment and the non-target sub-segment based on the corrected display ratio of the target sub-segment and the non-target sub-segment.

[0052] Optionally, the first judgment submodule includes:

[0053] The comparison unit is used to determine the relationship between the initial display ratio and the preset threshold.

[0054] The determining unit is used to determine whether the initial map bar chart meets the first level of correction display conditions when the initial display ratio is less than a preset threshold.

[0055] The display unit is used to determine that the initial map bar chart does not meet the first-level correction display conditions when the initial display ratio is greater than or equal to a preset threshold, and to display the initial map bar chart as the target map bar chart.

[0056] Optionally, the second calculation submodule includes:

[0057] The first acquisition unit is used to acquire the general compensation display ratio and the vehicle logo occupancy compensation display ratio, and determine the corrected display ratio of the target sub-road segment based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio and the initial display ratio.

[0058] The second acquisition unit is used to acquire the total number of non-target sub-segments and determine the average clipping ratio of non-target sub-segments based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the total number of non-target sub-segments.

[0059] The correction unit is used to determine the corrected display ratio of each non-target sub-segment based on the average clipping ratio and the initial display ratio of each non-target sub-segment.

[0060] Optionally, the correction unit includes:

[0061] The judgment sub-unit is used to determine the relationship between the initial display ratio and the average clipping ratio of each non-target sub-segment;

[0062] The first correction subunit is used to obtain the corrected display ratio of each non-target sub-segment based on the initial display ratio and the average clipping ratio of the non-target sub-segments when the initial display ratio of all non-target sub-segments is greater than the average clipping ratio.

[0063] The second correction subunit is used to calculate the weighted clipping ratio of non-target sub-segments based on the preset weight ratio of non-target sub-segments when the initial display ratio of non-target sub-segments is less than or equal to the average clipping ratio, and to obtain the corrected display ratio of each non-target sub-segment based on the initial display ratio and the weighted clipping ratio of the non-target sub-segments.

[0064] Optionally, the correction module includes:

[0065] The Replacement submodule is used to replace the initial display images of target and non-target sub-segments in the initial map bar chart with the corresponding corrected display images, according to the road segment number.

[0066] A third aspect of this invention provides an electronic device, which includes:

[0067] At least one processor; and a memory communicatively connected to the at least one processor; wherein,

[0068] The memory stores instructions that can be executed by at least one processor, which enables the at least one processor to perform the method steps proposed in the first aspect of the present invention.

[0069] A fourth aspect of the present invention provides a vehicle, the vehicle including a processor, the processor being used to execute the method steps as provided in the first aspect of the present invention.

[0070] The embodiments of this invention include the following advantages: First, based on the traffic status of the target road segment, an initial map bar chart is generated, along with corrected display images of the target sub-road segment and non-target sub-road segments. Then, based on the corrected display images of the target and non-target sub-road segments, the initial map bar chart is corrected to obtain a corrected map bar chart. Finally, the corrected map bar chart is displayed as the target map bar chart. In this application, by dynamically adjusting the display image of the target sub-road segment where the vehicle is located, the visible range of the target sub-road segment in the map bar chart is improved, thereby helping users to obtain information about the current road segment more intuitively and accurately, thus avoiding incorrect judgments due to erroneous information acquisition. Attached Figure Description

[0071] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0072] Figure 1 This is a flowchart illustrating the steps of a map bar chart display method according to an embodiment of the present invention;

[0073] Figure 2 This is a schematic diagram of the initial map bar graph generated in an embodiment of the present invention;

[0074] Figure 3 This is a schematic diagram of the corrected map bar chart generated in an embodiment of the present invention;

[0075] Figure 4 This is a schematic diagram of a map bar chart display device according to an embodiment of the present invention. Detailed Implementation

[0076] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0077] In existing technologies that utilize map bar charts for display, when a certain road segment represents a relatively small percentage of the total road segment, the car logo, due to its different display ratio compared to other road segments in the map bar chart, will obscure the image of that road segment in the map bar chart. This results in the map bar chart failing to accurately represent the actual road conditions.

[0078] As an example, if road segment A accounts for 5% of the total road segments, then the corresponding display length in the map bar chart will be 5%. When the vehicle reaches the middle of road segment A, there is actually still half of road segment A remaining. However, due to the vehicle icon obscuring road segment A in the map bar chart, users may think that road segment A has been completed, thus creating a false impression and preventing users from obtaining the true road conditions.

[0079] Based on this, the inventor proposed the inventive concept of this application: to increase the visibility range of the current road segment in the map bar chart and adjust the visibility range of non-current segments accordingly, thereby helping users to obtain road condition information of the current road segment more intuitively.

[0080] This invention provides a method for displaying map bar charts, see [link to relevant documentation]. Figure 1 , Figure 1 This illustration shows a flowchart of a map bar chart display method according to an embodiment of this application, applied to a vehicle's infotainment system. The method includes:

[0081] S101: Generate an initial map bar chart based on the traffic status of the target road segment.

[0082] In this implementation, the target road segment refers to the driving route pre-set by the user according to their itinerary. The user can input the corresponding starting point and ending point of the trip on the vehicle navigation interface to generate the target road segment. Traffic status refers to the congestion level of the current road segment, which can be set according to the user's needs. For example, traffic status can be free-flowing, slow-moving, or congested. The target road segment can be divided into multiple sub-segments, and the traffic status of each sub-segment is different from that of its adjacent sub-segments. The steps for generating the initial map bar chart based on the traffic status of the target road segment can be as follows:

[0083] S101-1: Obtain the length of each sub-segment and the total length of the target segment.

[0084] In this embodiment, firstly, each sub-segment can be numbered in order from the starting point to the end point, either alphabetically or numerically. Then, the length of each sub-segment and the total length of the target segment are obtained.

[0085] S101-2: Calculate the initial display ratio of each sub-segment based on the ratio of the length of each sub-segment to the total length of the target segment.

[0086] In this implementation, the length of each sub-segment in the map bar chart is calculated based on the ratio of its length to the total length of the target road segment. Let the length of the map bar chart be A. If the ratio of a sub-segment's length to the total length of the target road segment is 0.2, then the length of that sub-segment in the map bar chart is 20% of the total length of the map bar chart. The initial display ratio of a sub-segment can be understood as the ratio of its displayed length to the initial displayed length of the map bar chart. Therefore, the initial display ratio of a sub-segment can be dynamically adjusted based on changes in the initial displayed length of the map bar chart.

[0087] S101-3: Determine the display color of each sub-segment based on the traffic status of each sub-segment.

[0088] In this embodiment, different display colors are used to represent different traffic conditions. For example, green represents a smooth flow, yellow represents a slow flow, and red represents a congested flow.

[0089] S101-4: Generate the initial display image for each sub-segment based on its initial display ratio and display color;

[0090] S101-5: Based on the corresponding road segment number of each sub-road segment, stitch together the initial display images of each sub-road segment to generate an initial map bar chart.

[0091] In the embodiments S101-4 to S101-5, after obtaining the initial image display length and corresponding display color of each sub-segment, the corresponding display image can be generated. Then, according to the ascending order of the corresponding segment numbers, the display images are sequentially stitched together to obtain the image shown below. Figure 2 The initial map bar chart shown can be understood as a map bar chart drawn according to the actual scale of the road segment, but it cannot improve the visibility range of the current road segment. Therefore, it needs to be corrected while meeting the display conditions.

[0092] S102: Generate corrected display images of the target sub-segment and non-target sub-segment.

[0093] In this embodiment, the target sub-segment refers to the sub-segment where the vehicle is currently located, while the non-target sub-segment refers to a sub-segment with a segment number greater than the target sub-segment that the vehicle has not yet completed its journey. Improving the visibility of the target sub-segment is essentially a process of correcting the initial display images of both the sub-segment and the non-target sub-segment. The specific steps can be as follows:

[0094] S102-1: Based on the initial display ratio of the target sub-segment, determine whether the initial map bar chart meets the first-level correction display conditions.

[0095] In this implementation, the first level of display correction is determined when the user cannot see the current road conditions clearly or has difficulty seeing them. In this case, we need to zoom in on the current display to allow the user to better view the current road conditions and improve the user experience. The specific steps are as follows:

[0096] S102-1-1: Determine the relationship between the initial display ratio and the preset threshold;

[0097] S102-1-2: If the initial display ratio is less than the preset threshold, determine that the initial map bar chart meets the first level of correction display conditions;

[0098] In the implementations of S102-1-1 to S102-1-2, firstly, the initial display scale needs to be compared with a preset threshold display scale, because only when the initial display scale is less than a threshold will the user be unable to see clearly. If the initial display scale is greater than or equal to the preset threshold, it indicates that the initial image corresponding to the current target sub-segment meets the user's needs and no correction is required; therefore, the initial map bar chart is directly displayed as the target map bar chart. If the initial display scale is greater than or equal to the preset threshold, it is determined that the initial map bar chart does not meet the first-level correction display conditions, and the initial map bar chart is displayed as the target map bar chart.

[0099] S102-2: If the initial map bar chart meets the first level of correction display conditions, calculate the correction display ratio of the target sub-segment, calculate the adjustment ratio of the target sub-segment based on the correction display ratio of the target sub-segment and the initial display ratio of the target sub-segment, and determine whether the initial map bar chart meets the second level of correction display conditions based on the relationship between the adjustment ratio of the target sub-segment and the sum of the initial display ratios of all non-target sub-segments.

[0100] In this embodiment, if the initial map bar chart meets the first-level correction display conditions, it is necessary to determine whether the display ratio that can be cropped from the non-target sub-road segment is greater than the increased display ratio of the target sub-road segment. The corrected display ratio of the target sub-road segment can be calculated in the following way: the corrected display ratio of the target sub-road segment consists of three parts. The first part is the initial display ratio of the target sub-road segment; the second part is the ratio by which the small car icon covers the initial display portion of the target sub-road segment, i.e., the car icon occupancy compensation display ratio; and the third part is the general compensation display ratio. The general compensation display ratio is added because simply increasing the car icon occupancy compensation display ratio cannot solve this problem well. Therefore, a certain coefficient needs to be added to this road segment to magnify it so that users can see the current road better and more intuitively. The general compensation display ratio can be set differently according to different vehicle models, and this application does not limit this. If users can see the current road better and more intuitively without increasing the general compensation display ratio, the compensation display ratio is set to 0, i.e., only the car icon occupancy compensation display ratio is increased. As an example, if the corrected display ratio of the target sub-segment is n, the initial display ratio of the target sub-segment is x, the vehicle logo occupancy compensation display ratio is y, and the general compensation display ratio is z, then the corrected display ratio of the target sub-segment n = the initial display ratio x + the vehicle logo occupancy compensation display ratio y + the general compensation display ratio z.

[0101] After obtaining the corrected display ratio of the target sub-segment, it is equivalent to adding two parts to the original display ratio: the vehicle logo occupancy compensation display ratio and the general compensation display ratio. Therefore, it is necessary to determine whether the non-target sub-segments can reduce their corresponding display ratio. Only when the increase in the corrected display ratio of the target sub-segment compared to the initial display ratio of the target sub-segment, i.e., the adjustment ratio, is less than the sum of the initial display ratios of all non-target sub-segments, can it be said that the non-target sub-segments can reduce their corresponding display ratio, i.e., the initial map bar chart meets the second-level corrected display conditions.

[0102] S102-3: If the initial map bar chart meets the second-level correction display conditions, calculate the correction display ratio of non-target sub-segments based on the correction display ratio of the target sub-segments.

[0103] In this embodiment, if the initial map bar chart meets the second-level correction display conditions, it is necessary to calculate the correction display ratio of non-target sub-road segments. The specific steps are as follows:

[0104] S102-3-1: Obtain the general compensation display ratio and the vehicle logo occupancy compensation display ratio. Based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the initial display ratio, determine the corrected display ratio for the target sub-segment.

[0105] S102-3-2: Obtain the total number of non-target sub-segments, and determine the average clipping ratio of non-target sub-segments based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the total number of non-target sub-segments.

[0106] In the implementations of S102-3-1 to S102-3-2, the corrected display ratio of the target sub-segment is first calculated, the total number of non-target sub-segments is the sum of the number of target sub-segments, and then the average clipping ratio of the non-target sub-segments is calculated according to the following formula.

[0107] Average clipping ratio j for non-target sub-segments = (General compensation display ratio z + Vehicle logo occupancy compensation display ratio y) / Total number of non-target sub-segments m

[0108] S102-3-3: Determine the corrected display ratio for each non-target sub-segment based on the average clipping ratio and the initial display ratio for each non-target sub-segment.

[0109] After obtaining the average clipping ratio of non-target sub-segments, the corrected display ratio of each non-target sub-segment can be calculated based on the initial display ratio and the average clipping ratio of the non-target sub-segments. The specific steps are as follows:

[0110] S102-3-3-1: Determine the relationship between the initial display ratio and the average clipping ratio of each non-target sub-segment.

[0111] In this embodiment, since the initial display ratio of each non-target sub-segment is different, it is necessary to determine the relationship between the initial display ratio of the non-target sub-segment and the average clipping ratio in order to eliminate the situation where the initial display ratio is less than the average clipping ratio.

[0112] S102-3-3-2: When the initial display ratio of all non-target sub-segments is greater than the average clipping ratio, the corrected display ratio of each non-target sub-segment is obtained based on the initial display ratio and the average clipping ratio of the non-target sub-segments.

[0113] In this embodiment, if the initial display ratio of non-target sub-segments is greater than the average clipping ratio, the average clipping ratio can be directly subtracted from the initial display ratio of the target sub-segments to obtain the corrected display ratio of the non-target sub-segments.

[0114] S102-3-3-3: When the initial display ratio of non-target sub-segments is less than or equal to the average clipping ratio, calculate the weight clipping ratio of non-target sub-segments based on the preset weight ratio of non-target sub-segments, and obtain the corrected display ratio of each non-target sub-segment based on the initial display ratio and weight clipping ratio of non-target sub-segments.

[0115] In this embodiment, if the initial display ratios of all non-target sub-segments are less than or equal to the average clipping ratio, the initial display ratio will be less than or equal to zero. Therefore, the method of embodiment S102-3-3-2 cannot be used. In this case, the weighted clipping ratio of the non-target sub-segments can be calculated based on the preset weight ratio. The weight ratio can be understood as the ratio of the display ratio of any non-target sub-segment to all remaining non-target sub-segments, i.e., weight ratio a = display ratio of non-target sub-segments b / sum of display ratios of all non-target sub-segments c. After obtaining the sum of weight ratios corresponding to each non-target sub-segment, the weighted clipping ratio of each non-target sub-segment is calculated based on the weight ratio, i.e., weighted clipping ratio d of the non-target sub-segment d = (general compensation display ratio z + vehicle logo occupancy compensation display ratio y) * weight ratio a. Then, the weighted clipping ratio is directly subtracted from the initial display ratio of the non-target sub-segments to obtain the corrected display ratio of the non-target sub-segments.

[0116] S102-4: Generate corrected display images of the target sub-segment and the non-target sub-segment based on the corrected display ratio of the target sub-segment and the non-target sub-segment.

[0117] In this embodiment, after obtaining the corrected display ratio of the target sub-segment and the corrected display ratio of the non-target sub-segment, the corrected display images of the target sub-segment and the non-target sub-segment can be generated according to the corrected display ratio. The corrected display image of the target sub-segment has a larger viewing range than the initial display image of the target sub-segment, while the corrected display image of the non-target sub-segment has a smaller viewing range than the initial display image because it has less impact on the user's current road condition judgment. This achieves dynamic adjustment of the target sub-segment display image.

[0118] S103: Based on the corrected display images of the target sub-segment and the non-target sub-segment, correct the initial map bar chart to obtain the corrected map bar chart.

[0119] In this embodiment, the initial map bar chart is corrected to obtain a corrected map bar chart after dynamically adjusting the display images of the target sub-segment and non-target sub-segments. The corrected map bar chart can more intuitively reflect the road condition information and distance information of the target sub-segment where the vehicle is currently located, helping the user to make correct vehicle control judgments.

[0120] The steps to correct the initial map bar chart and obtain the corrected map bar chart are as follows:

[0121] According to the road segment number, replace the initial display images of the target sub-segment and non-target sub-segment in the initial map bar chart with the corresponding corrected display images.

[0122] In this embodiment, according to the road segment number, the sub-road segments of the initial map bar chart are sequentially replaced from the initial display image to the corrected display image. After the replacement is completed, the corrected map bar chart can be generated. Figure 3 As shown, Figure 3 This is the corrected map bar chart after modification.

[0123] S104: Display the corrected map bar chart as the target map bar chart.

[0124] In this embodiment, after generating the corrected map bar chart, it is used as the target map bar chart and displayed to the user through the vehicle's multimedia display device, thereby helping the user to obtain road condition information correctly and intuitively.

[0125] This invention also provides a map bar chart display device, referring to... Figure 4 The diagram illustrates a functional block diagram of a map bar chart display device according to the present invention. The device may include the following modules:

[0126] The first image module 401 is used to generate an initial map bar chart based on the traffic status of the target road segment, wherein the target road segment is composed of multiple sub-road segments with different traffic statuses;

[0127] The second image module 402 is used to generate corrected display images of the target sub-segment and non-target sub-segments, wherein the target sub-segment is the sub-segment where the vehicle is currently located, and there are multiple non-target sub-segments;

[0128] The correction module is used to correct the initial map bar chart based on the corrected display images of the target sub-segment and the non-target sub-segment to obtain the corrected map bar chart.

[0129] The display module is used to display the corrected map bar chart as the target map bar chart.

[0130] In one feasible implementation, the first image module 401 includes:

[0131] The acquisition submodule is used to obtain the length of each sub-segment and the total length of the target segment;

[0132] The first calculation submodule is used to calculate the initial display ratio of each sub-segment based on the ratio of the segment length of each sub-segment to the total length of the target segment.

[0133] The determination submodule is used to determine the display color of each sub-road segment based on the traffic status of each sub-road segment;

[0134] The first image generation submodule is used to generate the initial display image of each sub-segment based on the initial display ratio and display color of each sub-segment;

[0135] The image combination submodule is used to stitch together the initial display images of each sub-segment according to the corresponding segment number of each sub-segment to generate an initial map bar chart.

[0136] In one feasible implementation, the second image module 402 includes:

[0137] The first judgment submodule is used to determine whether the initial map bar chart meets the first level of correction display conditions based on the initial display ratio of the target sub-road segment.

[0138] The second judgment submodule calculates the correction display ratio of the target sub-segment if the initial map bar chart meets the first level of correction display conditions. Based on the correction display ratio of the target sub-segment and the initial display ratio of the target sub-segment, it calculates the adjustment ratio of the target sub-segment and determines whether the initial map bar chart meets the second level of correction display conditions based on the relationship between the adjustment ratio of the target sub-segment and the sum of the initial display ratios of all non-target sub-segments.

[0139] The second calculation submodule is used to calculate the correction display ratio of non-target sub-segments based on the correction display ratio of the target sub-segments, provided that the initial map bar chart meets the second level of correction display conditions.

[0140] The second image generation submodule is used to generate corrected display images of the target sub-segment and the non-target sub-segment based on the corrected display ratio of the target sub-segment and the non-target sub-segment.

[0141] In one feasible implementation, the first determination submodule includes:

[0142] The comparison unit is used to determine the relationship between the initial display ratio and the preset threshold.

[0143] The determining unit is used to determine whether the initial map bar chart meets the first level of correction display conditions when the initial display ratio is less than a preset threshold.

[0144] The display unit is used to determine that the initial map bar chart does not meet the first-level correction display conditions when the initial display ratio is greater than or equal to a preset threshold, and to display the initial map bar chart as the target map bar chart.

[0145] In one feasible implementation, the second computing submodule includes:

[0146] The first acquisition unit is used to acquire the general compensation display ratio and the vehicle logo occupancy compensation display ratio, and determine the corrected display ratio of the target sub-road segment based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio and the initial display ratio.

[0147] The second acquisition unit is used to acquire the total number of non-target sub-segments and determine the average clipping ratio of non-target sub-segments based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the total number of non-target sub-segments.

[0148] The correction unit is used to determine the corrected display ratio of each non-target sub-segment based on the average clipping ratio and the initial display ratio of each non-target sub-segment.

[0149] In one feasible implementation, the correction unit includes:

[0150] The judgment sub-unit is used to determine the relationship between the initial display ratio and the average clipping ratio of each non-target sub-segment;

[0151] The first correction subunit is used to obtain the corrected display ratio of each non-target sub-segment based on the initial display ratio and the average clipping ratio of the non-target sub-segments when the initial display ratio of all non-target sub-segments is greater than the average clipping ratio.

[0152] The second correction subunit is used to calculate the weighted clipping ratio of non-target sub-segments based on the preset weight ratio of non-target sub-segments when the initial display ratio of non-target sub-segments is less than or equal to the average clipping ratio, and to obtain the corrected display ratio of each non-target sub-segment based on the initial display ratio and the weighted clipping ratio of the non-target sub-segments.

[0153] In one feasible implementation, the correction module includes:

[0154] The Replacement submodule is used to replace the initial display images of target and non-target sub-segments in the initial map bar chart with the corresponding corrected display images, according to the road segment number.

[0155] In yet another embodiment of the present invention, a vehicle is also provided, the vehicle including a processor, the processor being configured to implement the method as proposed in the first aspect of the embodiments of the present invention when executing.

[0156] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus.

[0157] Memory, used to store computer programs;

[0158] The processor, when executing a program stored in memory, implements the map bar chart display method of the present invention.

[0159] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus. The communication interface is used for communication between the aforementioned terminal and other devices. The memory can include Random Access Memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory can also be at least one storage system located remotely from the aforementioned processor.

[0160] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0161] In addition, to achieve the above objectives, embodiments of this application also propose a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the map bar chart display method of embodiments of this application.

[0162] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable vehicles (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0163] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A system that specifies functions in one or more boxes.

[0164] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction set implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0166] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. "And / or" indicates that either one or both can be chosen. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0167] The above provides a detailed description of the map bar chart display method, device, electronic device, and vehicle provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for displaying a map bar chart, characterized in that, The method includes: An initial map bar chart is generated based on the traffic status of the target road segment, wherein the target road segment is composed of multiple sub-segments with different traffic statuses; Generate corrected display images of target sub-segments and non-target sub-segments, wherein the target sub-segment is the sub-segment where the vehicle is currently located, and there are multiple non-target sub-segments; the non-target sub-segments are sub-segments with a segment number greater than the target sub-segment and for which the vehicle has not completed its journey. Based on the corrected display images of the target sub-road segment and the non-target sub-road segment, the initial map bar chart is corrected to obtain a corrected map bar chart. The corrected map bar chart is displayed as the target map bar chart; The steps of generating the corrected display image of the target sub-segment and the corrected display image of the non-target sub-segment include: Based on the initial display ratio of the target sub-road segment, determine whether the initial map bar chart meets the first level of correction display conditions; If the initial map bar chart meets the first level of correction display conditions, calculate the correction display ratio of the target sub-segment, calculate the adjustment ratio of the target sub-segment based on the correction display ratio of the target sub-segment and the initial display ratio of the target sub-segment, and determine whether the initial map bar chart meets the second level of correction display conditions based on the relationship between the adjustment ratio of the target sub-segment and the sum of the initial display ratios of all non-target sub-segments. If the initial map bar chart meets the second-level correction display conditions, the correction display ratio of the non-target sub-road segment is calculated based on the correction display ratio of the target sub-road segment; Based on the corrected display ratio of the target sub-segment and the corrected display ratio of the non-target sub-segment, a corrected display image of the target sub-segment and a corrected display image of the non-target sub-segment are generated. The step of calculating the corrected display ratio of non-target sub-road segments based on the corrected display ratio of the target sub-road segment includes: Obtain the general compensation display ratio and the vehicle logo occupancy compensation display ratio, and determine the corrected display ratio of the target sub-road segment based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the initial display ratio; the general compensation display ratio is determined based on the vehicle model. Obtain the total number of non-target sub-segments, and determine the average clipping ratio of the non-target sub-segments based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the total number of non-target sub-segments. Based on the average cropping ratio and the initial display ratio of each non-target sub-segment, the corrected display ratio of each non-target sub-segment is determined.

2. The map bar chart display method according to claim 1, characterized in that, The step of generating an initial map bar chart based on the traffic status of the target road segment includes: Obtain the length of each of the sub-segments and the total length of the target segment; The initial display ratio of each sub-segment is calculated based on the ratio of the segment length of each sub-segment to the total length of the target segment; The display color of each sub-road segment is determined based on the traffic status of each sub-road segment; An initial display image for each sub-segment is generated based on the initial display scale and display color of each sub-segment; Based on the corresponding road segment number of each sub-road segment, the initial display images of each sub-road segment are stitched together to generate the initial map bar chart.

3. The map bar chart display method according to claim 1, characterized in that, The step of determining whether the initial map bar chart meets the first-level correction display conditions based on the initial display ratio of the target sub-road segment includes: Determine the relationship between the initial display ratio and the preset threshold; If the initial display ratio is less than a preset threshold, the initial map bar graph is determined to meet the first level of corrected display conditions.

4. The map bar chart display method according to claim 1, characterized in that, The step of determining the corrected display ratio of each non-target sub-segment based on the average cropping ratio and the initial display ratio of each non-target sub-segment includes: Determine the relationship between the initial display ratio and the average clipping ratio for each of the non-target sub-segments; When the initial display ratio of the non-target sub-segments is greater than the average cropping ratio, the corrected display ratio of each non-target sub-segment is obtained based on the initial display ratio of the non-target sub-segments and the average cropping ratio. If the initial display ratio of a non-target sub-segment is less than or equal to the average clipping ratio, the weight clipping ratio of the non-target sub-segment is calculated based on the preset weight ratio of the non-target sub-segment, and the corrected display ratio of each non-target sub-segment is obtained based on the initial display ratio of the non-target sub-segment and the weight clipping ratio.

5. The map bar chart display method according to claim 1, wherein the step of correcting the initial map bar chart to obtain a corrected map bar chart includes: According to the road segment number, the initial display images of the target sub-road segment and the non-target sub-road segment in the initial map bar graph are replaced with the corresponding corrected display images.

6. A map bar chart display device, characterized in that, The device includes: The first image module is used to generate an initial map bar chart based on the traffic status of the target road segment, wherein the target road segment is composed of multiple sub-road segments with different traffic statuses; The second image module is used to generate corrected display images of the target sub-segment and non-target sub-segments, wherein the target sub-segment is the sub-segment where the vehicle is currently located, and there are multiple non-target sub-segments; the non-target sub-segments are sub-segments with a segment number greater than the target sub-segment and for which the vehicle has not completed its journey. The correction module is used to correct the initial map bar chart based on the corrected display image of the target sub-road segment and the corrected display image of the non-target sub-road segment to obtain a corrected map bar chart. The display module is used to display the corrected map bar chart as the target map bar chart; The second image module includes: The first judgment submodule is used to determine whether the initial map bar chart meets the first level of correction display conditions based on the initial display ratio of the target sub-road segment. The second judgment submodule calculates the correction display ratio of the target sub-segment if the initial map bar chart meets the first level of correction display conditions. Based on the correction display ratio of the target sub-segment and the initial display ratio of the target sub-segment, it calculates the adjustment ratio of the target sub-segment and determines whether the initial map bar chart meets the second level of correction display conditions based on the relationship between the adjustment ratio of the target sub-segment and the sum of the initial display ratios of all non-target sub-segments. The second calculation submodule is used to calculate the correction display ratio of non-target sub-segments based on the correction display ratio of the target sub-segments, provided that the initial map bar chart meets the second level of correction display conditions. The second image generation submodule is used to generate corrected display images of the target sub-segment and the non-target sub-segment based on the corrected display ratio of the target sub-segment and the non-target sub-segment. The second calculation submodule includes: The first acquisition unit is used to acquire the general compensation display ratio and the vehicle logo occupancy compensation display ratio, and determine the corrected display ratio of the target sub-road segment based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio and the initial display ratio; the general compensation display ratio is determined based on the vehicle model. The second acquisition unit is used to acquire the total number of non-target sub-segments and determine the average clipping ratio of non-target sub-segments based on the general compensation display ratio, the vehicle logo occupancy compensation display ratio, and the total number of non-target sub-segments. The correction unit is used to determine the corrected display ratio of each non-target sub-segment based on the average clipping ratio and the initial display ratio of each non-target sub-segment.

7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in a memory, it implements the map bar chart display method according to any one of claims 1-5.

8. A vehicle, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the map bar chart display method as described in any one of claims 1-5.