A method, system, electronic device, vehicle, and storage medium for displaying a scale.

By calculating the number of meters represented per pixel and the difference in scale between the current and previous scale levels, the actual scale is determined and displayed, solving the problems of scale length fluctuation and insufficient accuracy in existing technologies, and improving user experience and screen layout stability.

CN116089428BActive Publication Date: 2026-05-26GREAT 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-05-26

Smart Images

  • Figure CN116089428B_ABST
    Figure CN116089428B_ABST
Patent Text Reader

Abstract

This application provides a method, system, electronic device, vehicle, and storage medium for displaying a scale. The method includes: acquiring the current number of meters represented per pixel, the current scale level, and the current scale scale; acquiring the previous scale level, the number of meters represented per pixel of the previous scale level, and the scale scale of the previous scale level; determining the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of the number of meters represented per pixel; and displaying the current actual scale in a preset scale display area. This application determines the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of the number of meters represented per pixel, thereby improving the accuracy of the scale. Furthermore, by displaying the high-precision current actual scale in a preset area, the user experience is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic maps, and in particular to a method, system, electronic device, vehicle, and storage medium for displaying scales. Background Technology

[0002] Map scale is a measure of how much a map is reduced relative to the outlines of geographic entities on the ground. More precisely, the map scale represents the ratio of the length of a straight line segment on the map to the horizontal projection of the corresponding straight-line distance on the ground. There are 20 map scale levels, with levels 3-20 being commonly used. Although existing map scales can be switched between levels 3-20, the displayed scale fluctuates significantly when users zoom in and out, affecting the user experience.

[0003] To address the aforementioned issues, this application proposes a method for displaying scales. Summary of the Invention

[0004] In view of the above problems, embodiments of this application provide a scale display method, system, electronic device, vehicle, and storage medium to overcome or at least partially solve the above problems.

[0005] A first aspect of this application provides a method for displaying a scale bar, the method comprising:

[0006] Get the current number of meters represented by each pixel, the current scale level, and the current scale size;

[0007] Obtain the previous scale level of the current scale level, the number of meters represented per pixel of the previous scale level, and the scale of the previous scale level;

[0008] The current actual scale is determined based on the scale of the previous scale level, the scale difference, and the rate of change of meters per pixel. The scale difference represents the difference between the current scale and the scale of the previous scale level. The rate of change of meters per pixel represents the rate of change between the current meters per pixel and the meters per pixel of the previous scale level.

[0009] The current actual scale is displayed in the preset scale display area.

[0010] Optionally, obtaining the number of meters per pixel at the current scale level and the previous scale level includes:

[0011] Query the first scale parameter reference table to determine the current scale level corresponding to the current number of meters represented by each pixel. The first scale parameter reference table includes the number of meters represented by each pixel for each of multiple scale levels.

[0012] Based on the current scale level, determine the previous scale level of the current scale level;

[0013] Query the first scale parameter reference table to determine the number of meters represented by each pixel at the previous scale level.

[0014] Optionally, obtaining the current scale and the scale of the previous scale level includes:

[0015] Query the second scale parameter reference table and determine the scale scale corresponding to the current scale level as the current scale scale. The second scale parameter reference table includes the scale scales corresponding to each of multiple scale levels.

[0016] Based on the current scale level, determine the previous scale level of the current scale level;

[0017] Consult the second scale parameter reference table to determine the scale of the previous scale level.

[0018] Optionally, determining the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change in meters represented per pixel includes:

[0019] Based on the scale difference and the rate of change of meters represented per pixel, the actual scale change values ​​of the current scale level and the previous scale level are determined;

[0020] The sum of the actual scale change value and the scale of the previous scale level is determined as the current actual scale.

[0021] Optionally, it also includes:

[0022] The third scale parameter reference table is consulted to determine the reference scale length corresponding to the current scale level as the scale length of the current actual scale. The third scale parameter reference table includes the reference scale lengths corresponding to multiple scale levels.

[0023] Optionally, it also includes:

[0024] If the current scale level changes, the level number corresponding to the previous scale level of the current scale level is updated to the level number of the current scale level before the change, and the reference scale length corresponding to the current scale level is updated to the reference scale length corresponding to the current scale level after the change.

[0025] A second aspect of this application provides a scale display system, the system comprising:

[0026] The first acquisition module is used to acquire the current number of meters represented by each pixel, the current scale level, and the current scale size.

[0027] The second acquisition module is used to acquire the previous scale level of the current scale level, the number of meters represented by each pixel of the previous scale level, and the scale of the previous scale level.

[0028] The determination module is used to determine the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of the number of meters represented per pixel. The scale difference represents the difference between the current scale and the scale of the previous scale level, and the rate of change of the number of meters represented per pixel represents the rate of change between the current number of meters represented per pixel and the number of meters represented per pixel of the previous scale level.

[0029] The display module is used to display the current actual scale in the preset scale display area.

[0030] Optionally, the first acquisition module for obtaining the number of meters per pixel at the current scale level and the previous scale level includes:

[0031] The first determining submodule is used to query the first scale parameter reference table to determine the current scale level corresponding to the current number of meters represented by each pixel. The first scale parameter reference table includes multiple scale levels and their respective numbers of meters represented by each pixel.

[0032] The second determining submodule is used to determine the previous scale level of the current scale level based on the current scale level.

[0033] The third determination submodule is used to query the first scale parameter reference table to determine the number of meters represented by each pixel at the previous scale level.

[0034] Optionally, the second acquisition module for acquiring the current scale and the scale of the previous scale level includes:

[0035] The fourth determination submodule is used to query the second scale parameter reference table and determine the scale scale corresponding to the current scale level as the current scale scale. The second scale parameter reference table includes the scale scale corresponding to each of multiple scale levels.

[0036] The fifth determining submodule is used to determine the previous scale level of the current scale level based on the current scale level.

[0037] The sixth determination submodule is used to query the second scale parameter benchmark table to determine the scale of the previous scale level.

[0038] Optionally, the step of determining the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of meters per pixel, the determining module includes:

[0039] The seventh determination submodule is used to determine the actual scale change value of the current scale level and the previous scale level based on the scale difference and the rate of change of meters represented per pixel.

[0040] The eighth determination submodule is used to determine the current actual scale by summing the actual scale change value with the scale scale of the previous scale level.

[0041] Optionally, it also includes:

[0042] The ninth determination submodule is used to query the third scale parameter benchmark table and determine the benchmark scale length corresponding to the current scale level as the scale length of the current actual scale. The third scale parameter benchmark table includes the benchmark scale lengths corresponding to multiple scale levels.

[0043] Optionally, it also includes:

[0044] The update submodule is used to update the level number corresponding to the previous scale level of the current scale level to the level number of the current scale level before the change when the current scale level changes, and to update the reference scale length corresponding to the current scale level to the reference scale length corresponding to the current scale level after the change.

[0045] A third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the scale display method as described in the first aspect of this application.

[0046] A fourth aspect of this application provides a vehicle that includes electronic equipment as described in a third aspect of this application.

[0047] A fifth aspect of this application provides a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implements the scale display method as described in the first aspect of this application.

[0048] This application has the following advantages:

[0049] This application provides a method for displaying a map scale. The current actual map scale is determined based on the scale of the previous map scale level, the scale difference, and the rate of change of the number of meters represented by each pixel. Before reaching another map scale level, the length of the map scale remains fixed. The scale is displayed in real time as the map is zoomed, that is, the number of meters or kilometers represented by the current map scale length is displayed in real time, which improves the user experience. Attached Figure Description

[0050] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application 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.

[0051] Figure 1 This is a flowchart of a method for displaying a scale bar, provided in an embodiment of this application.

[0052] Figure 2 This is a flowchart of a scale display method provided in an embodiment of this application;

[0053] Figure 3 This is a schematic diagram of a scale display system provided in an embodiment of this application;

[0054] Figure 4 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0055] Exemplary embodiments of this application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.

[0056] Map scale is the ratio of the length of a line segment on the map to the actual length of the corresponding line segment on the ground; the smaller the number, the larger the scale. Map scales are divided into 20 levels, with levels 3-20 being commonly used. Scale scale, scale length, and meters per pixel are commonly used parameters of a map scale, each representing a different meaning. Specifically, the scale scale represents the actual distance corresponding to one unit length on the map; the scale length represents the number of pixels occupied by one unit length on the map; and meters per pixel represents the actual length corresponding to each pixel.

[0057] Table 1 is a table showing the correspondence between the scale level and the number of meters represented per pixel of the reference scale, the scale scale size, and the length of the reference scale, which is obtained by integrating the first scale parameter reference table, the second scale parameter reference table, and the third scale parameter reference table. The correspondence is shown in Table 1 below.

[0058] Scale level Each pixel represents meters. Ruler length (in pixels) Dimensions (unit: meter) 20 0.114517057 104 5 19 0.229034115 104 10 18 0.458068229 131 25 17 0.916136458 131 50 16 1.832272916 131 100 15 3.664545832 131 200 14 7.329091665 163 500 13 14.65818333 163 1000 12 29.31636666 163 2000 11 58.63273332 204 5000 10 117.2654666 204 10000 9 234.5309333 204 20000 8 469.0618665 153 30000 7 938.1237331 128 50000 6 1876.247466 128 100000 5 3752.494932 128 200000 4 7504.989865 160 500000 3 15009.97973 160 1000000

[0059] Table 1

[0060] In existing methods of displaying scales, when users zoom in and out, the length of the scale stretches or shrinks as the scale level changes. This uncontrollable length variation and significant fluctuation range negatively impact the user's visual experience. Furthermore, as the scale level increases, the length becomes so long that it affects the layout of other controls on the screen. On the other hand, the precision of scale changes is insufficient. It fails to display the true scale scale for subtle changes in the scale range between two adjacent scale levels. For example, if the current scale level corresponds to 10km, and the scale is zoomed to 16km instead of 20km, the scale will still display the scale scale corresponding to the 10km level, failing to show the actual scale scale corresponding to the 16km level. In other words, while the length of the scale changes during zooming, the scale displayed on the screen does not change. The scale change precision is poor, and it cannot change in real time according to the zoom operation. Taking Table 1 as an example, assuming the current scale level is 10, and the scale size corresponding to the current scale level 10 is 10 km, when the scale is scaled, if the actual scale size changes to 16 km, since there is currently no set scale level corresponding to the scale size of 16 km, the scale size displayed on the map will still be 10 km, and the corresponding level will be the level corresponding to 10 km, and the actual scale cannot be displayed. At the same time, since there is no limit to the displayed scale length, the actual length of the scale displayed on the map will change continuously with the scale scaling operation.

[0061] A first aspect of this application provides a method for displaying a scale, the method being applied to a vehicle's onboard unit, with reference to... Figure 1 This is a flowchart illustrating a method for displaying a scale bar, as provided in an embodiment of this application. The method includes the following steps:

[0062] Step S101: Obtain the current number of meters represented by each pixel, the current scale level, and the current scale size;

[0063] Specifically, in practical applications, each map scale level corresponds to a number of meters per pixel, a scale size, and a scale length. Therefore, after obtaining the current map scale level from the current map scale, the number of meters per pixel and the scale size corresponding to the current map scale level can be obtained by looking up a table.

[0064] In this embodiment, after scaling the scale, the actual number of meters represented per pixel on the scale changes accordingly. Simultaneously, the scale provides feedback on the changed actual number of meters represented per pixel. The vehicle's onboard unit obtains this feedback and determines the current scale level corresponding to the current actual number of meters represented per pixel by querying the first scale parameter reference table. It then determines the scale size corresponding to the current scale level by querying the second scale parameter reference table and the reference scale length corresponding to the current scale level by querying the third scale parameter reference table.

[0065] In another feasible implementation of this application, Table 1 above shows the correspondence between the scale level and the reference number of meters per pixel, the reference scale size, and the reference scale length, obtained by integrating the first, second, and third scale parameter reference tables. Table 2 below shows the correspondence between the actual number of meters per pixel, the scale length, and the scale size, as determined by the scale parameter reference table in Table 1. Therefore, when the vehicle's onboard unit obtains the actual number of meters per pixel from the map scale feedback, it can determine the scale level, reference scale size, and reference scale length corresponding to the current actual number of meters per pixel by consulting Table 1 and based on the reference number of meters per pixel in Table 1. It should be noted that the scale level obtained at this time is the level corresponding to level 3-20 in Table 1, which corresponds to the number of meters per pixel. For example, if the current actual number of meters per pixel is between the first-level reference number of meters per pixel and the second-level reference number of meters per pixel, that is, the current actual number of meters per pixel is greater than the first-level reference number of meters per pixel and less than the second-level reference number of meters per pixel, then the scale level corresponding to the current actual number of meters per pixel is the second level.

[0066] Step S102: Obtain the previous scale level of the current scale level, the number of meters represented per pixel of the previous scale level, and the scale of the previous scale level.

[0067] Specifically, in this embodiment, the current scale level is the level corresponding to the scale displayed on the current map that has not yet undergone a scaling operation. However, when a scaling operation is performed on the scale of the current map, the current scale level will be updated to the level corresponding to the scale after the scaling operation. The previous scale level corresponding to the current scale level can be either the preceding level adjacent to the current scale level or the following level adjacent to the current scale level. Specifically, the previous scale level corresponding to the current scale level depends on the specific scaling operation. For example, if the current scale level is level 10, after a scaling operation is performed on the current scale level, it can be a zoom-in operation. If the current scale level is updated to level 11, then the previous level of the current scale level will be updated from level 9 to level 10. Alternatively, it can be a zoom-out operation. If the current scale level is updated to level 9, then the previous level of the current scale level will be updated from level 11 to level 10.

[0068] Furthermore, after determining the scale level, the number of meters per pixel and the scale scale corresponding to the scale level can be determined by looking up the table. It should be noted that in this step, the number of meters per pixel and the scale scale obtained are the baseline number of meters per pixel and the baseline scale scale corresponding to the scale level.

[0069] Step S103: Determine the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of meters per pixel. The scale difference represents the difference between the current scale and the scale of the previous scale level. The rate of change of meters per pixel represents the rate of change between the current meters per pixel and the meters per pixel of the previous scale level. It should be noted that the rate of change of meters per pixel in this step is the rate of change between the actual meters per pixel corresponding to the current actual scale and the reference meters per pixel corresponding to the previous scale level determined in step S102. The scale difference is the difference between the reference scale of the scale level corresponding to the current actual meters per pixel and the reference scale of the previous scale level.

[0070] Specifically, in this embodiment, the scale is calculated using the formula: [(meters per pixel at the current scale level - meters per pixel at the previous scale level) / meters per pixel at the previous scale level] * (current scale level - previous scale level) + previous scale level. Specifically, the rate of change of meters per pixel is obtained by dividing the difference between the current actual meters per pixel and the baseline meters per pixel at the previous scale level by the baseline meters per pixel at the previous scale level. Multiplying this by the difference between the baseline scale at the current scale level and the baseline scale at the previous scale level yields the change in scale after the scaling operation. Finally, adding the baseline scale at the previous scale level determines the actual scale after the scaling operation. The determined actual scale level, combined with the actual scale length, constitutes the current actual scale. The specific actual scale length is described in detail below.

[0071] Step S104: Display the current actual scale in the preset scale display area.

[0072] In this embodiment of the application, displaying the current actual scale in the preset scale display area specifically involves displaying a line segment scale corresponding to the length of the current actual scale, as well as displaying the scale scale in the preset area above the line segment scale.

[0073] Specifically, there are currently 20 scale levels, with levels 3-20 being the most commonly used. As the scale level increases, the corresponding scale size decreases. It's important to note that each scale level corresponds to a baseline of meters per pixel, a baseline scale size, and a baseline scale length. This ensures that when scaling within a scale level, the scale length maintains the baseline scale length for that level and does not change with scaling. In other words, when scaling a scale, subsequent scaling at its sub-scale levels will each correspond to different actual meters per pixel and actual scale sizes. It's important to note that scale levels are smaller sub-levels between two adjacent scale levels. For example, as shown in Table 1, 0.114517057 corresponds to scale level 20. The baseline pixel represents meters. When the scale is scaled, the actual pixel representation changes. For example, if the actual pixel representation is updated to 0.121541619, a comparison shows that the current actual pixel representation is greater than the baseline pixel representation in level 20, but less than the baseline pixel representation in level 19 in Table 1. Therefore, the actual scale level corresponding to the current actual pixel representation can be considered a sub-level of scale level 19. That is, after scaling the current scale, the current actual pixel representation is greater than the baseline pixel representation in level A, but less than the baseline pixel representation in level B, where A and B are adjacent scale levels. However, although sub-levels within this scale level may correspond to different actual pixel representations and scales, they still share the same baseline pixel representation and scale as the current scale level.

[0074] In this embodiment, when a scale scaling operation is detected by the vehicle's HUT (Head Unit), the actual number of meters per pixel corresponding to the scale after the scaling operation can be obtained through the vehicle's HUT. It should be noted that after a scaling operation, the current scale level is updated to the actual level corresponding to the scale after the scaling operation, where the actual level can be a sub-level corresponding to the current scale. This application pre-defines a first scale reference table, a second scale reference table, and a third scale reference table. Specifically, the first scale reference table represents the correspondence between each scale level and its corresponding number of meters per pixel, including the number of meters per pixel for each scale level; the second scale reference table represents the correspondence between each scale level and its corresponding scale scale, including the scale scale for each scale level; and the third scale reference table represents the correspondence between each scale level and its corresponding scale length, including the reference scale length for each scale level. In practical applications, existing technologies such as iterators can be used to scan map images, obtain the pixels corresponding to the map scale, and calculate the number of meters represented by each pixel at the current scale level.

[0075] In one specific embodiment of this application, after scaling the scale, the actual number of meters per pixel corresponding to the scaled scale is obtained. It should be noted that the actual number of meters per pixel obtained after scaling is the same as the number of meters per pixel corresponding to the current scale after scaling. By querying the first scale reference table, the actual number of meters per pixel is compared with the reference number of meters per pixel to determine the scale level corresponding to the actual number of meters per pixel. Based on the scale level, the scale size and length of the reference scale corresponding to the scale level are determined. In practical applications, the specific way to query the first scale reference table is to look up the number of meters represented per pixel for each level. For example, the table shows that the number of meters represented per pixel for level 20 is 0.114517057. When the actual number of meters represented per pixel is lower than the number of meters represented per pixel for level 20, the current actual scale level is determined to be level 20. When the actual number of meters represented per pixel is higher than the number of meters represented per pixel for level 20 but does not exceed the number of meters represented per pixel for level 19, the current actual scale level is determined to be level 19.

[0076] Furthermore, after determining the current scale level, the previous scale level adjacent to the current scale level can be found by querying the first scale reference table and according to the current scaling operation.

[0077] Furthermore, by continuing to query the first scale reference table, the number of meters per pixel corresponding to the previous scale level adjacent to the current scale level is determined in the first scale reference table.

[0078] Furthermore, by querying the second scale reference table, the scale corresponding to the current scale level and the scale corresponding to the previous scale level adjacent to the current scale level can be obtained.

[0079] Specifically, by consulting the second scale reference table, the scale corresponding to the current scale level is determined, and the scale is set as the current scale.

[0080] Furthermore, once the current scale level is determined, the previous scale level adjacent to the current scale level can be found by consulting the second scale reference table.

[0081] Furthermore, by consulting the second scale reference table, the scale corresponding to the previous scale level adjacent to the current scale level is determined.

[0082] In another feasible implementation of this application, the current actual scale is determined based on the scale of the previous scale level, the scale difference, and the rate of change of meters represented per pixel.

[0083] Specifically, the scale difference is determined by comparing the scale corresponding to the current scale level with the scale corresponding to the previous scale level. The formula for calculating the scale difference is: Current scale - Previous scale level.

[0084] The rate of change of the number of meters represented per pixel is determined based on the number of meters represented per pixel at the current scale level and the number of meters represented per pixel at the adjacent previous scale level. The formula for calculating the rate of change of the number of meters represented per pixel is: (Number of meters represented per pixel at the current scale level - Number of meters represented per pixel at the previous scale level) / Number of meters represented per pixel at the previous scale level. It should be noted that the current number of meters represented per pixel mentioned in this application refers to the number of meters represented per pixel at the current scale level.

[0085] Furthermore, based on the scale difference between the current scale level and the scale of the previous adjacent scale level, and the rate of change between the number of meters represented per pixel at the current scale level and the number of meters represented per pixel at the previous adjacent scale level, the actual scale change value between the current scale level and the previous scale level is determined. The formula for calculating the actual scale change value is: [number of meters represented per pixel at the current scale level - number of meters represented per pixel at the previous scale level) / number of meters represented per pixel at the previous scale level] * (current scale - previous scale level).

[0086] Finally, the sum of the actual scale change value and the scale of the previous scale level is determined as the current actual scale. In practical applications, the sum of the actual scale change value and the scale of the previous scale level is used to determine the scale of the current actual scale. The formula for calculating the scale of the current actual scale is: [(meters per pixel at the current scale level - meters per pixel at the previous scale level) / meters per pixel at the previous scale level] * (current scale scale - previous scale scale) + previous scale scale. The current actual scale is then displayed in a preset scale display area, and the scale of the corresponding actual scale is displayed above the current actual scale. This allows users to see the actual scale of the current scale more clearly when using the map, improving the user's visual and operational experience.

[0087] In another preferred embodiment of this application, a third scale parameter reference table is queried, and the reference scale length corresponding to the current scale level is determined as the scale length of the current actual scale. The third scale parameter reference table includes the reference scale lengths corresponding to multiple scale levels.

[0088] Displaying the current actual scale in the preset scale display area includes:

[0089] In the preset scale display area, the current actual scale is displayed at the scale length of the current actual scale.

[0090] Specifically, by querying the third scale reference table, the reference scale length corresponding to the current scale level is determined from the third scale reference table, and this reference scale length is set as the scale length of the current actual scale. In practical applications, each scale level corresponds to a reference scale length. The reference scale length corresponding to the current scale level is used as the actual scale length of all scales under the current scale level. This ensures that when scaling the scale at the current scale level, the scale length will not increase or decrease with the scaling, thus making the scale length range controllable, not affecting the layout of other controls, and improving the utilization of the view layer.

[0091] Table 2 shows the correspondence between the actual number of meters per pixel, the scale length, and the scale size, determined based on the scale parameter benchmark table in Table 1. The actual scale size in the table can be calculated based on the parameter data in the first three columns of the table and the benchmark parameter data in Table 1, according to the aforementioned calculation formula for the current actual scale size. Table 2 is shown below.

[0092]

[0093] Table 2

[0094] In a preferred embodiment of this application, when the current scale level changes, the previous scale level of the current scale level is updated to the level corresponding to the changed current scale level, and the reference scale length corresponding to the current scale level is updated to the reference scale length corresponding to the changed current scale level.

[0095] The following calculation formula, based on the correspondence between the actual number of meters represented per pixel, the scale length, and the scale shown in Table 2, combined with the current actual scale, is: [Number of meters represented per pixel at the current scale level - Number of meters represented per pixel at the previous scale level) / Number of meters represented per pixel at the previous scale level] * (Current scale level - Previous scale level) + Previous scale level, and refers to... Figure 2 The flowchart shown below will be used to illustrate this in detail:

[0096] For example, the current pixel represents 0.11767611 meters. By looking up the table, we know that the current scale is at level 19. Therefore, we need to determine the pixel representation in meters corresponding to the next higher scale level, i.e., level 20, which is 0.114517057. By calculation, the rate of change of the pixel representation in meters between the two is (0.11767611-0.114517057) / 0.114517057.

[0097] Furthermore, based on the current scale level and the previous scale level, the corresponding scale scale is determined respectively. Through calculation, the scale difference between the two is 10⁻⁵.

[0098] Based on the rate of change of meters represented by each pixel and the scale difference mentioned above, the actual scale of the current scale can be calculated as: (0.11767611-0.114517057) / 0.114517057*(10-5)+5=5.137929348.

[0099] Furthermore, based on the current scale level, it can be found by looking up the table that the reference scale length corresponding to the current scale level is 104. That is, 104 is taken as the actual scale length of the current scale. Therefore, the current actual scale is a scale with a length of 104 and a scale of 5.137929348. In practical applications, the actual scale value of the scale can be taken to N decimal places according to the actual situation. This application does not limit this.

[0100] It is important to note that as the number of meters represented by each pixel is continuously updated, the scale level corresponding to the number of meters represented by each pixel will also be continuously updated. Therefore, the previous scale level corresponding to the current scale level and the reference scale length corresponding to the current scale level will also be updated accordingly, resulting in a real-time changing and more accurate scale.

[0101] This application provides a method for displaying a scale, comprising: acquiring the current number of meters represented per pixel, the current scale level, and the current scale size; acquiring the previous scale level, the number of meters represented per pixel of the previous scale level, and the scale size of the previous scale level; determining the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of the number of meters represented per pixel, wherein the scale difference represents the difference between the current scale size and the scale size of the previous scale level, and the rate of change of the number of meters represented per pixel represents the rate of change between the current number of meters represented per pixel and the number of meters represented per pixel of the previous scale level; and displaying the current actual scale in a preset scale display area. This application determines the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of the number of meters represented per pixel, thereby improving the accuracy of the scale. Furthermore, by displaying the high-precision current actual scale in a preset area, the user experience is greatly improved.

[0102] Based on the same inventive concept, embodiments of this application also provide a scale display system. (Refer to...) Figure 3 , Figure 3This is a schematic diagram of a scale display system provided in an embodiment of this application. The system includes:

[0103] The first acquisition module 201 is used to acquire the current number of meters represented by each pixel, the current scale level, and the current scale size;

[0104] The second acquisition module 202 is used to acquire the previous scale level of the current scale level, the number of meters represented by each pixel of the previous scale level, and the scale of the previous scale level.

[0105] The determining module 203 is used to determine the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of the number of meters represented per pixel. The scale difference represents the difference between the current scale and the scale of the previous scale level, and the rate of change of the number of meters represented per pixel represents the rate of change between the current number of meters represented per pixel and the number of meters represented per pixel of the previous scale level.

[0106] Display module 204 is used to display the current actual scale in a preset scale display area.

[0107] Optionally, the first acquisition module 201 includes the following for acquiring the current scale level and the number of meters per pixel at the previous scale level:

[0108] The first determining submodule is used to query the first scale parameter reference table to determine the current scale level corresponding to the current number of meters represented by each pixel. The first scale parameter reference table includes multiple scale levels and their respective numbers of meters represented by each pixel.

[0109] The second determining submodule is used to determine the previous scale level of the current scale level based on the current scale level.

[0110] The third determination submodule is used to query the first scale parameter reference table to determine the number of meters represented by each pixel at the previous scale level.

[0111] Optionally, the second acquisition module 202 includes the following components for acquiring the current scale and the scale of the previous scale level:

[0112] The fourth determination submodule is used to query the second scale parameter reference table and determine the scale scale corresponding to the current scale level as the current scale scale. The second scale parameter reference table includes the scale scale corresponding to each of multiple scale levels.

[0113] The fifth determining submodule is used to determine the previous scale level of the current scale level based on the current scale level.

[0114] The sixth determination submodule is used to query the second scale parameter benchmark table to determine the scale of the previous scale level.

[0115] Optionally, the determination module 203, which determines the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of meters represented per pixel, includes:

[0116] The seventh determination submodule is used to determine the actual scale change value of the current scale level and the previous scale level based on the scale difference and the rate of change of meters represented per pixel.

[0117] The eighth determination submodule is used to determine the current actual scale by summing the actual scale change value with the scale scale of the previous scale level.

[0118] Optionally, it also includes:

[0119] The ninth determination submodule is used to query the third scale parameter benchmark table and determine the benchmark scale length corresponding to the current scale level as the scale length of the current actual scale. The third scale parameter benchmark table includes the benchmark scale lengths corresponding to multiple scale levels.

[0120] Optionally, it also includes:

[0121] The update submodule is used to update the level number corresponding to the previous scale level of the current scale level to the level number of the current scale level before the change when the current scale level changes, and to update the reference scale length corresponding to the current scale level to the reference scale length corresponding to the current scale level after the change.

[0122] In another aspect of the embodiments of this application, an electronic device 100 is provided, such as... Figure 4 As shown, it includes a memory 110, a processor 120, and a computer program stored on the memory 110. The processor 120 executes the computer program to implement the scale display method as described in the first aspect of the embodiments of this application.

[0123] In another aspect of this application, a vehicle is provided, the vehicle including the electronic equipment described above.

[0124] In another aspect, this application provides a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implements the scale display method described above.

[0125] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

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

[0127] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should 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. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0128] 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 instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0129] 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.

[0130] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.

[0131] 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. 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.

[0132] The above provides a detailed description of the scale display method, system, electronic device, vehicle, and storage medium. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. 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 this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for displaying a scale, characterized in that, The method includes: Get the current number of meters represented by each pixel, the current scale level, and the current scale size; Obtain the previous scale level of the current scale level, the number of meters represented per pixel of the previous scale level, and the scale of the previous scale level; The current actual scale is determined based on the scale of the previous scale level, the scale difference, and the rate of change of meters per pixel. The scale difference represents the difference between the current scale and the scale of the previous scale level. The rate of change of meters per pixel represents the rate of change between the current meters per pixel and the meters per pixel of the previous scale level. The current actual scale is displayed in the preset scale display area; The step of determining the current actual scale based on the scale and scale difference of the previous scale level, and the rate of change of meters per pixel, includes: Based on the scale difference and the rate of change of meters represented per pixel, the actual scale change values ​​of the current scale level and the previous scale level are determined; The sum of the actual scale change value and the scale of the previous scale level is determined as the current actual scale.

2. The scale display method according to claim 1, characterized in that, The step of obtaining the current scale level and the number of meters represented per pixel at the previous scale level includes: Query the first scale parameter reference table to determine the current scale level corresponding to the current number of meters represented by each pixel. The first scale parameter reference table includes the number of meters represented by each pixel for each of multiple scale levels. Based on the current scale level, determine the previous scale level of the current scale level; Query the first scale parameter reference table to determine the number of meters represented by each pixel at the previous scale level.

3. The method for displaying a scale according to claim 1, characterized in that, The process of obtaining the current scale and the scale of the previous scale level includes: Query the second scale parameter reference table and determine the scale scale corresponding to the current scale level as the current scale scale. The second scale parameter reference table includes the scale scales corresponding to each of multiple scale levels. Based on the current scale level, determine the previous scale level of the current scale level; Consult the second scale parameter reference table to determine the scale of the previous scale level.

4. The scale display method according to claim 1, characterized in that, Also includes: The third scale parameter reference table is consulted to determine the reference scale length corresponding to the current scale level as the scale length of the current actual scale. The third scale parameter reference table includes the reference scale lengths corresponding to multiple scale levels.

5. The method for displaying a scale according to any one of claims 1-4, characterized in that, Also includes: If the current scale level changes, the level number corresponding to the previous scale level of the current scale level is updated to the level number of the current scale level before the change, and the reference scale length corresponding to the current scale level is updated to the reference scale length corresponding to the current scale level after the change.

6. A scale display system, characterized in that, The system includes: The first acquisition module is used to acquire the current number of meters represented by each pixel, the current scale level, and the current scale size. The second acquisition module is used to acquire the previous scale level of the current scale level, the number of meters represented by each pixel of the previous scale level, and the scale of the previous scale level. The determination module is used to determine the current actual scale based on the scale of the previous scale level, the scale difference, and the rate of change of the number of meters represented per pixel. The scale difference represents the difference between the current scale and the scale of the previous scale level, and the rate of change of the number of meters represented per pixel represents the rate of change between the current number of meters represented per pixel and the number of meters represented per pixel of the previous scale level. The display module is used to display the current actual scale in a preset scale display area; The determining module includes: The seventh determination submodule is used to determine the actual scale change value of the current scale level and the previous scale level based on the scale difference and the rate of change of meters represented per pixel. The eighth determination submodule is used to determine the current actual scale by summing the actual scale change value with the scale scale of the previous scale level.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the scale display method according to any one of claims 1 to 5.

8. A vehicle, characterized in that, The vehicle includes the electronic equipment as described in claim 7.

9. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instruction is executed by the processor, it implements the scale display method as described in any one of claims 1 to 5.