Map color matching method, device and storage medium

By determining the color matching parameters based on the existence time and adjacent relationship of the regime in the historical map, the convenient perception of the regime is achieved, and the problem of poor efficiency and accuracy in users' perception of regime change status in the historical map is solved.

CN113190610BActive Publication Date: 2024-09-27BEIJING PERFECT KNOWLEDGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110384896.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-09
Publication Date
2024-09-27
Estimated Expiration
2041-04-09

AI Technical Summary

Technical Problem

In historical maps, users need to use text annotations to perceive the changing status of the regime, resulting in poor efficiency, accuracy, and convenience. Especially when there are many regimes, the text annotations may be hidden, and users need to manually zoom in and out of the map to find the regime of concern. .

Method used

By responding to color matching instructions, multiple regimes contained in multiple historical maps in chronological order are determined, and with the goal that the color matching of the same regime remains unchanged and the color matching of adjacent regimes is different, the color matching parameters of each regime are determined, and then multiple historical maps are The map is color-coded to reflect the continuity and uniqueness of the regime.

Benefits of technology

The color matching accurately reflects the changing status of the political power in the historical map, allowing users to perceive the changing status of the political power more conveniently, improving efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113190610B
    Figure CN113190610B
Patent Text Reader

Abstract

The embodiment of the present application provides a map color matching method, device and storage medium. In the embodiment of the present application, in response to the color matching instruction, multiple regimes contained in multiple historical maps in a time sequence can be determined; with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, the color matching parameters corresponding to each of the multiple regimes are determined; according to the color matching parameters corresponding to each of the multiple regimes, multiple historical maps are color matched. Accordingly, the continuity and uniqueness of the regimes in the historical maps can be accurately reflected through color matching, so that users can more conveniently perceive the state of regime change.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a map color matching method, device and storage medium. Background Art

[0002] Historical maps are maps that reflect the geographical conditions of a historical period. Different historical maps can reflect the geographical conditions of different historical periods.

[0003] At present, historical maps usually use text to mark regimes. Users need to look for the text logo of the regime they are interested in in the historical maps corresponding to different historical periods in order to find the corresponding regime and then perceive the change status of the regime they are interested in. In the case of a large number of regimes, the text corresponding to some regimes may be hidden, and users need to manually zoom in and out of the map to find the regime they are interested in, which results in poor efficiency, accuracy, and convenience in users' perception of the change status of regimes. Summary of the invention

[0004] Various aspects of the present application provide a map color matching method, device and storage medium for more quickly, accurately and conveniently displaying the status of regime change in historical maps.

[0005] The present application embodiment provides a map color matching method, including:

[0006] In response to the color matching instruction, it is determined that there are multiple regimes included in multiple historical maps in a chronological order;

[0007] With the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, the color matching parameters corresponding to each of the multiple regimes are determined;

[0008] The multiple historical maps are colored according to the color matching parameters corresponding to the multiple political regimes.

[0009] The embodiment of the present application also provides a computing device, including a memory and a processor;

[0010] The memory is used to store one or more computer instructions;

[0011] The processor is coupled to the memory and configured to execute the one or more computer instructions for:

[0012] In response to the color matching instruction, it is determined that there are multiple regimes included in multiple historical maps in a chronological order;

[0013] With the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, the color matching parameters corresponding to each of the multiple regimes are determined;

[0014] The multiple historical maps are colored according to the color matching parameters corresponding to the multiple political regimes.

[0015] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the aforementioned map color matching method.

[0016] In the embodiment of the present application, in response to the color matching instruction, multiple regimes included in multiple historical maps in a time sequence can be determined; with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, the color matching parameters corresponding to each of the multiple regimes can be determined; and the multiple historical maps can be colored according to the color matching parameters corresponding to each of the multiple regimes. Accordingly, the continuity and uniqueness of the regimes in the historical maps can be accurately reflected through color matching, so that users can more conveniently perceive the state of regime change. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 A flowchart of a map color matching method provided by an exemplary embodiment of the present application;

[0019] Figure 2 A logical diagram of an optional implementation method provided for an exemplary embodiment of the present application;

[0020] Figure 3 A schematic diagram of a map interface provided for an exemplary embodiment of the present application;

[0021] Figure 4 A schematic diagram of the structure of a computing device provided for another exemplary embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0023] At present, users need to perceive the state of regime change through the text marked for regimes in historical maps, which is not efficient, accurate, and convenient. To this end, in some embodiments of the present application: in response to a color matching instruction, multiple regimes contained in multiple historical maps in a time sequence can be determined; with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, the color matching parameters corresponding to each of the multiple regimes are determined; and multiple historical maps are color matched according to the color matching parameters corresponding to each of the multiple regimes. Accordingly, the continuity and uniqueness of the regimes in the historical maps can be accurately reflected through color matching, so that users can more conveniently perceive the state of regime change.

[0024] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0025] Figure 1 The present invention provides a flowchart of a map color matching method according to an exemplary embodiment of the present invention. The method can be executed by a map color matching device. The map color matching device can be implemented as a combination of software and / or hardware. The map color matching device can be integrated in a computing device. Figure 1 , the method comprising:

[0026] Step 100, in response to a color matching instruction, determining a plurality of regimes included in a plurality of historical maps in a time sequence;

[0027] Step 101, with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, determine the color matching parameters corresponding to each of the multiple regimes;

[0028] Step 102: Color multiple historical maps according to the color matching parameters corresponding to the multiple political regimes.

[0029] The map color matching method provided in this embodiment can be applied to the scene of color matching of historical maps. The inventor found in the research process that historical maps have time attributes, and the same regime exists in multiple consecutive historical maps from its birth to its demise. Therefore, historical maps can reflect the state of change of regimes.

[0030] This embodiment proposes the idea of ​​reflecting the state of political power change in historical maps through color matching.

[0031] To this end, in step 100, in response to the color matching instruction, multiple regimes included in multiple historical maps with a time sequence can be determined. In this embodiment, the time length covered by a single historical map is not limited. For example, a single historical map can cover 0.5 years, 1 year, or 10 years, etc., and the time lengths covered by different historical maps may not be exactly the same. Therefore, historical maps have a time attribute. In this embodiment, there is a time sequence between multiple historical maps.

[0032] It should be understood that, here, the multiple regimes included in the multiple historical maps may refer to all the regimes that have appeared in the multiple historical maps. Due to regime changes, some regimes may only appear in some historical maps.

[0033] Based on this, in step 101, the color matching parameters corresponding to the multiple regimes can be determined with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different. The color matching parameters may include but are not limited to the fill color value of the surface, the color value of the edge, or the width of the edge.

[0034] In practical applications, the neighboring relationships between multiple regimes included in multiple historical maps can be counted. Due to regime changes, for a single regime, its corresponding neighboring relationship may be one or more. For example, for regime A, its neighboring regimes at its birth were B, C, and D, but with the regime changes, regime B disappeared, resulting in regime A's neighboring regimes becoming C, D, and E. Then B, C, D, and E all have neighboring relationships with regime A. For this reason, in step 101, in the process of determining the color matching parameters corresponding to each of the multiple regimes, the global neighboring relationship should be used as the basis. In this way, it can be ensured that multiple historical maps all meet the goal of different color matching for adjacent regimes.

[0035] In addition, in this embodiment, another goal is configured, that is, the color scheme of the same regime remains unchanged. For example, in all historical maps involving regime A from its birth to its demise, the color scheme of regime A remains unchanged.

[0036] Based on this, in this embodiment, the color matching parameters corresponding to the multiple regimes included in the multiple historical maps can be determined respectively. The obtained color matching parameters meet the goal of keeping the color matching of the same regime unchanged and keeping the color matching of adjacent regimes different. Among them, the color matching parameters can be determined in various ways, which will be described in detail later.

[0037] In practical applications, multiple regimes can be assigned respective identifiers, such as regime IDs, to uniquely identify the regimes. After the color matching parameters of the multiple regimes are determined, the color matching parameters can be associated with the identifiers of the corresponding regimes. In this way, an association relationship between the regimes and the color matching parameters can be established.

[0038] In step 102, multiple historical maps are color matched according to the color matching parameters corresponding to the multiple political regimes. In the historical maps, the association between the political regime's logo and the land parcel can be established, and the corresponding relationship between the land parcel and the color matching parameters can be determined in combination with the association between the political regime's logo and the color matching parameters. Based on this, the color matching parameters corresponding to each land parcel can be determined in the multiple historical maps, thereby realizing color matching for the multiple historical maps.

[0039] In this embodiment, in response to the color matching instruction, multiple regimes included in multiple historical maps in a time sequence can be determined; with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, the color matching parameters corresponding to each of the multiple regimes can be determined; and the multiple historical maps can be colored according to the color matching parameters corresponding to each of the multiple regimes. In this way, the continuity and uniqueness of the regimes in the historical maps can be accurately reflected through color matching, so that users can more conveniently perceive the state of regime change.

[0040] In the above or below embodiments, various implementation methods may be used to determine the color matching parameters corresponding to each of the multiple regimes.

[0041] In this embodiment, a first color matching table and a second color matching table may be pre-constructed, wherein there are no repeated color matching parameters between the first color matching table and the second color matching table. Here, the first color matching table and the second color matching table each contain a limited number of color matching parameters, and usually there is no duplication. For example, the first color matching table may contain 18 color matching parameters, and the second color matching table may contain 25 color matching parameters. Of course, the number of color matching parameters in the two color matching tables here is only exemplary, and in this embodiment, it can be set according to actual needs.

[0042] Based on this, in this embodiment, color matching parameters can be determined for a specific regime among multiple regimes from the first color matching table, and the color matching remains unchanged during the existence of the specific regime; color matching parameters can be determined for other regimes among multiple regimes except the specific regime from the second color matching table, and the color matching remains unchanged during the existence of other regimes. Among them, the specific regime may include a regime that meets one or more of the following conditions: the duration of existence meets the preset time requirement, the geographical area meets the preset area requirement, and the historical influence meets the preset conditions. It should be understood that these conditions are also only exemplary, and in this embodiment, these conditions can be adjusted according to actual needs.

[0043] It is worth noting that in this embodiment, in the process of determining the color matching parameters for the corresponding regime from the first color matching table and the second color matching table, the goal is still to keep the color matching of the same regime unchanged and the color matching of adjacent regimes different. When selecting color matching parameters for a single regime, a random selection method can be used. Of course, more optimization conditions can also be added. For example, for a regime to be color matched, the color matching parameters closest to the maternal regime of the regime to be color matched can be selected from the candidate color matching parameters that meet the goal of different color matching of adjacent regimes to reflect the correlation between regimes, etc., wherein the regime to be color matched is split from its maternal regime. This embodiment is not limited to this.

[0044] In practical applications, due to the excessive number of regimes, there may be redundant regimes that cannot be matched with colors. Redundant regimes refer to some regimes that may exist in other regimes, and it is impossible to find suitable color matching parameters from the second color matching table so that these regimes can meet the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different. For redundant regimes, in this embodiment, a third color matching table can be constructed. If there are redundant regimes that cannot be matched with colors in other regimes, color matching parameters are determined for the redundant regimes from the third color matching table, and the color matching remains unchanged during the existence of the redundant regime; similarly, in the process of determining color matching parameters for the redundant regime, the goal of keeping the color matching of adjacent regimes different is still maintained. Among them, there is no repeated color matching between the third color matching table and the first color matching table and the second color matching table.

[0045] In this way, based on the different pre-constructed color tables, appropriate color matching parameters can be gradually determined for multiple regimes to meet the goal of keeping the color matching of the same regime unchanged and having different color matchings for adjacent regimes.

[0046] Figure 2 A logical diagram of an optional implementation method provided for an exemplary embodiment of the present application. Figure 2 In this implementation, considering that there are many historical maps and the time span is large, multiple historical maps can be colored in batches, and each batch of historical maps corresponds to a time period. There can be at least one historical map in a single time period, and at least one historical map in a single time period can contain at least one regime. The spans of time periods in different batches can be the same or different. For example, the span of the time period can be uniformly configured to be 400 years, that is, the historical maps within every 400 years are colored in the same batch. For another example, the span of the time period can be indirectly determined by the number of historical maps, and every 300 consecutive historical maps are colored in the same batch. In this case, since different historical maps cover different time lengths, the spans of time periods corresponding to different batches may be different. This embodiment does not limit the span of the time period. In actual applications, the historical maps contained in each time period can be colored in batches according to the order between the time periods. Of course, this embodiment is not limited to this, and can also be executed in other orders.

[0047] Based on this, in this implementation method, for at least one target historical map within the time period to be processed, if at least one target historical map contains a target regime that has completed color matching within the processed time period, the color matching parameters corresponding to the target regime within the processed time period will be used; using the color matching parameters used by the target regime as reference information, with the goal of keeping the color matching of the same regime unchanged and having different color matching for adjacent regimes, determine the color matching parameters corresponding to each of the remaining regimes in at least one target historical map.

[0048] Among them, if the time period to be processed is not the first time period in the batch color matching, there are one or more processed time periods before the time period to be processed, and the historical map within the processed time period has completed the color matching, that is, the various regimes contained in the historical map within the processed time period have obtained the color matching parameters. Therefore, for the time period to be processed, the target regime that has completed the color matching within the processed time period can be first determined among the multiple regimes it contains, and the color matching parameters that have been configured for the target regime can be used in the time period to be processed. In other words, the color matching parameters of the target regime in the processed time period can continue to be associated with the target regime in the time period to be processed, so as to ensure that the color matching of the target regime remains unchanged in different time periods.

[0049] In this way, the color matching of the target regime included in the time period to be processed can be determined. For the remaining regimes in the time period to be processed, the color matching parameters used by the target regime can be used as reference information, and the color matching parameters can be determined with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different.

[0050] Based on the first color matching table and the second color matching table mentioned above, in this implementation method, if the remaining regimes in the time period to be processed include a specific regime, color matching parameters are specified for the specific regime from the unused color matching in the first color matching table; using the color matching parameters used by the target regime and the color matching parameters specified for the specific regime as reference information, with the goal of keeping the color matching of the same regime unchanged and having different color matchings for adjacent regimes, the color matching parameters corresponding to each of the remaining regimes except the specific regime are determined from the second color matching table.

[0051] In this implementation, the unused distribution parameters in the first color matching table can be assigned to specific regimes included in the remaining regimes. To this end, the status of each color matching parameter can be identified in the first color matching table, and the status may include used, unused, etc., which is not limited here. Accordingly, if the target distribution parameter in the first color matching table has been associated with a certain regime, the target color matching parameter can be identified as a used state; if the specific regime associated with the target distribution parameter in the first color matching table disappears, the target color matching parameter is identified as an unused state. This can ensure that different specific regimes in the same historical map have different colors, so as to better distinguish different specific regimes.

[0052] In this way, in addition to the target regime in the waiting period, color matching parameters are determined for specific regimes included in the remaining regimes in the waiting period. Similarly, the color matching parameters determined for a specific regime can be associated with the logo of the specific regime to establish an association relationship between the logo of the specific regime and the color matching parameters.

[0053] In this implementation, for the remaining regimes except for the specific regime, the color matching parameters can be determined from the second color matching table with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different. For example, the color matching parameters can be determined by random assignment and verification using the four-color theorem. It should be understood that in this process, among the remaining regimes except for the specific regime, different regimes can be configured with the same color matching parameters, and it is only necessary to meet the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, which can effectively save the number of color matching parameters in the second color matching table.

[0054] In this process, if there are redundant regimes that cannot be colored among the remaining regimes except the specific regime, color matching parameters are assigned to the redundant regimes from the third color matching table; wherein, there is no duplicate color matching between the third color matching table and the first color matching table and the second color matching table. Because, in the process of determining color matching parameters for the remaining regimes except the specific regime, time and space factors need to be considered at the same time. When there are a large number of historical maps and regimes, the color matching parameters in the second color matching table may not be enough. For this reason, a third color matching table is provided in the determination scheme. If there are redundant regimes, color matching parameters can be directly assigned to the redundant regimes from the second color matching table. Obviously, the color matching parameters assigned to the redundant regimes can meet the goal that the color matching of the same regime remains unchanged and the color matching of adjacent regimes is different.

[0055] In summary, in the above implementation, the color matching results in the processed time period can be used in the unprocessed time period to maintain the continuity of the color matching of the same regime, which can support the goal of keeping the color matching of the same regime unchanged; the color matching parameters can also be directly specified for a specific regime without the need for overall color matching, thus saving a lot of computing resources; and for other regimes, the color matching parameters can be determined with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, and a solution for handling redundant regimes is proposed. Therefore, in this implementation, the number of color matching parameters can be effectively saved and the amount of calculation can be reduced.

[0056] Of course, in addition to the above implementations, in this embodiment, other implementations may be used to determine the color matching parameters corresponding to the multiple regimes included in the multiple historical maps. For example, instead of performing color matching in batches, the above scheme of directly specifying color matching parameters for a specific regime and randomly specifying color matching parameters for the remaining regimes from the color matching table is applied to multiple historical maps with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different. For another example, color matching parameters may be directly randomly specified from the color matching table for the included regimes within a single time period, and the four-color theorem and the unchanged color matching of the same regime are used for constraints. This embodiment is not limited to this.

[0057] In the above or following embodiments, in the process of determining color matching parameters for other regimes among multiple regimes except a specific regime from the second color matching table, the neighboring regimes of the specific regime can be determined among the other regimes; based on the separation and combination status between the specific regime and its neighboring regimes, the fusion indexes corresponding to the neighboring regimes of the specific regime are calculated respectively; and color matching parameters adapted to the fusion indexes corresponding to the neighboring regimes of the specific regime are determined from the second color matching table.

[0058] During the research process, the inventor discovered that there may be a merger or split between a specific regime and its neighboring regimes, and the number of mergers or splits may be one or more. For this reason, in this embodiment, the merger and split status between the specific regime and its neighboring regimes can be collected, and based on the merger and split status between the specific regime and its neighboring regimes, the fusion index corresponding to the neighboring regimes of the specific regime is calculated respectively.

[0059] Taking a specific regime A as an example, during the existence of the specific regime A, it may have 10 neighboring regimes. Of course, these 10 neighboring regimes may appear in different historical maps. For example, in historical map a, the neighboring regimes of the specific regime A are [1, 2, 3, 4], while in historical map b, the neighboring regimes of the specific regime A become [2, 4, 6, 8], where 1 and 3 have been merged into the specific regime A, while 6 and 8 are split from the specific regime A. Based on this example, the fusion index corresponding to each of the 10 neighboring regimes can be calculated respectively. An exemplary calculation scheme may be that the higher the frequency of splitting and merging of the neighboring regime, the higher the corresponding fusion index, which indicates that the historical relationship between the neighboring regime and the specific regime A is closer. Of course, this is only exemplary, and the present embodiment is not limited to this.

[0060] In this way, the integration index corresponding to each neighboring regime of each specific regime among multiple regimes can be calculated.

[0061] Taking the target neighboring regime of a specific regime as an example, in the process of determining the color matching parameters for the target neighboring regime, it can be determined whether the corresponding fusion index of the target neighboring regime exceeds the preset index threshold. If so, the color matching parameters closest to the color matching parameters of the corresponding specific regime are selected for the target neighboring regime from the second color matching table.

[0062] Among them, if the corresponding fusion index of the target adjacent regime exceeds the preset index threshold, it can be indicated that the historical relationship between the target adjacent regime and its corresponding specific regime is close enough, and the color matching parameters close to the color matching parameters of the corresponding specific regime can be configured for the target adjacent regime as much as possible. To this end, the color matching parameters closest to the color matching parameters of the corresponding specific regime can be selected for the target adjacent regime from the optional color matching parameters in the second color matching table.

[0063] Accordingly, in this embodiment, the neighboring regimes with closer historical relations to a specific regime will obtain color matching parameters that are closer to the specific regime, thereby achieving the effect of reflecting the historical relations between neighboring regimes through map color matching.

[0064] In the above or following embodiments, a map interface may also be displayed, which includes a time selection control and a historical map display area; in response to a time point selection operation occurring on the time selection control, a selected target time point is determined; in the historical map display area, the plots where each regime is located are rendered according to the color matching parameters of each regime contained in the historical map corresponding to the target time point to display the historical map.

[0065] As mentioned above, the historical map has a time attribute, so a single historical map can be associated with a time point. It should be understood that the time point here is not limited to a moment, but is determined according to the duration covered by the historical map. For example, the time point can be a year. Of course, this embodiment is not limited to this.

[0066] Figure 3 A schematic diagram of a map interface provided by an exemplary embodiment of the present application. Figure 3 , the user can perform time point selection operations on the time selection control, such as clicking operations, sliding time axis operations, etc. In the historical map display area, the historical map corresponding to the target time point selected by the user can be displayed. Here, the displayed historical map is a historical map colored according to the map color scheme provided in the above embodiment, that is, a historical map after color rendering.

[0067] In addition, in response to a time range selection operation occurring on a time selection control, multiple historical maps included in the selected time range can be determined; in the historical map display area, based on the color matching parameters of each regime contained in the multiple historical maps, the plots where each regime is located are rendered, and multiple historical maps are displayed in sequence.

[0068] By selecting a time range, multiple historical maps within the selected time range can be circled, and these multiple historical maps can be displayed in sequence, so that users can visually perceive the state of regime change through color matching. This automatic sequential display method can present animation effects to users, thereby improving the convenience and accuracy of users' perception of the state of regime change.

[0069] Of course, other methods can be used to display colored historical maps to users, providing a basis for users to perceive the state of regime change through color matching.

[0070] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 100 to 101 can be device A; for another example, the execution subject of steps 100 and 101 can be device A, and the execution subject of step 102 can be device B; and so on.

[0071] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different application terminals, messages, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0072] Figure 4 A schematic diagram of a computing device provided by another exemplary embodiment of the present application is shown in FIG. Figure 4 As shown, the computing device includes: a memory 40 , a processor 41 and a communication component 42 .

[0073] The processor 41 is coupled to the memory 40 and is used to execute the computer program in the memory 40 to:

[0074] In response to the color matching instruction, it is determined that there are multiple regimes included in multiple historical maps in a chronological order;

[0075] With the goal of keeping the color scheme of the same regime unchanged and the color schemes of adjacent regimes different, the color scheme parameters corresponding to multiple regimes are determined;

[0076] Multiple historical maps are colored according to the color matching parameters corresponding to multiple regimes.

[0077] In an optional embodiment, the processor 41 is used to determine the color matching parameters corresponding to the multiple regimes with the goal of keeping the color matching of the same regime unchanged and the color matching of adjacent regimes different, by:

[0078] From the first color table, color parameters are determined for a specific regime among multiple regimes, and the color parameters are kept unchanged during the existence of the specific regime;

[0079] From the second color matching table, color matching parameters are determined for other regimes among multiple regimes except for a specific regime, and the color matching is kept unchanged during the existence of other regimes;

[0080] Among them, the color matching of any adjacent regimes among the multiple regimes is different, and there is no repeated color matching parameter between the first color matching table and the second color matching table.

[0081] In an optional embodiment, when the processor 41 determines the color matching parameters for other regimes in the plurality of regimes except the specific regime from the second color matching table, it is configured to:

[0082] Identify the neighboring regimes of a particular regime among other regimes;

[0083] Based on the state of separation and integration between a specific regime and its neighboring regimes, the integration index corresponding to the neighboring regimes of the specific regime is calculated respectively;

[0084] From the second color matching table, color matching parameters adapted to the corresponding fusion index of the neighboring regimes of the specific regime are determined.

[0085] In an optional embodiment, when the processor 41 determines the color matching parameters adapted to the corresponding fusion index for the neighboring regime of the specific regime from the second color matching table, it is configured to:

[0086] If the corresponding fusion index of the target adjacent regime of a specific regime exceeds a preset index threshold, a color matching parameter closest to the color matching parameter of the specific regime is selected for the target adjacent regime from the second color matching table.

[0087] In an optional embodiment, the specific regime includes a regime that meets one or more of the following conditions: the duration of existence meets a preset time requirement, the geographical area meets a preset area requirement, and the historical influence meets a preset condition.

[0088] In an optional embodiment, the processor 41 is further configured to:

[0089] If there is a redundant regime that cannot be matched with other colors among other regimes, the color matching parameters for the redundant regime will be determined from the third color matching table, and the color matching will remain unchanged during the existence of the redundant regime;

[0090] There is no repeated color matching between the third color matching table and the first color matching table and the second color matching table.

[0091] In an optional embodiment, when the processor 41 determines the color matching parameters for a specific regime among the multiple regimes from the first color matching table and determines the color matching parameters for other regimes among the multiple regimes except the specific regime from the second color matching table, it is configured to:

[0092] For at least one target historical map within the time period to be processed, if at least one target historical map contains a target regime that has been color matched within the processed time period, the color matching parameters corresponding to the target regime within the processed time period are used;

[0093] If the remaining regimes in at least one target historical map include a specific regime, determining color matching parameters for the specific regime from unused colors in the first color matching table;

[0094] From the second color matching table, the color matching parameters corresponding to each of the remaining regimes except the specific regime are determined.

[0095] In an optional embodiment, the processor 41 is further configured to:

[0096] If the specific regime associated with the target delivery parameter in the first color matching table disappears, the target color matching parameter is marked as unused.

[0097] In an optional embodiment, the processor 41 is further configured to:

[0098] Display the map interface, which includes time selection controls and a historical map display area;

[0099] In response to a time point selection operation occurring on a time selection control, determining a selected target time point;

[0100] In the historical map display area, the plots where each regime is located are rendered according to the color matching parameters of each regime contained in the historical map corresponding to the target time point to display the historical map.

[0101] In an optional embodiment, the processor 41 is further configured to:

[0102] In response to a time range selection operation occurring on a time selection control, determining a plurality of historical maps included in the selected time range;

[0103] In the historical map display area, the plots where each regime is located are rendered based on the color parameters of each regime contained in multiple historical maps, and multiple historical maps are displayed in sequence.

[0104] Further, if Figure 4 As shown, the computing device also includes: a power supply component 43 and other components. Figure 4 Only some components are shown schematically, and it does not mean that the computing device only includes Figure 4 Components shown.

[0105] It is worth noting that the technical details in the above-mentioned embodiments of the computing device can be referred to the relevant description in the aforementioned method embodiment. In order to save space, they will not be repeated here, but this should not cause a loss in the scope of protection of this application.

[0106] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement the steps that can be executed by a computing device in the above method embodiment.

[0107] Above Figure 4 The memory in the computer is used to store computer programs and can be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, pictures, videos, etc. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0108] Above Figure 4 The communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0109] Above Figure 4 The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.

[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0112] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0114] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0115] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0116] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0117] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0118] The above is only the embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims

1. A map color matching method, It is characterized in that include: In response to the color matching instruction, it is determined that there are multiple regimes included in multiple historical maps in a chronological order; Determine color matching parameters for a specific regime among the multiple regimes from the first color matching table, and keep the color matching unchanged during the existence of the specific regime; Among the multiple regimes other than the specific regime, determine the neighboring regimes of the specific regime; Based on the state of separation and integration between the specific regime and its neighboring regimes, the corresponding integration index of the neighboring regimes of the specific regime is calculated respectively; From the second color matching table, color matching parameters that match the corresponding fusion index are determined for the neighboring regimes of the specific regime, and the color matching remains unchanged during the existence of the other regimes; Coloring the multiple historical maps according to the color matching parameters corresponding to the multiple political regimes; Among them, the color matching of any adjacent regimes among the multiple regimes is different, and there are no repeated color matching parameters between the first color matching table and the second color matching table.

2. The method according to claim 1, It is characterized in that Determining color matching parameters that match the corresponding fusion index for the neighboring regime of the specific regime from the second color matching table includes: If the corresponding fusion index of the target adjacent regime of the specific regime exceeds a preset index threshold, a color matching parameter closest to the color matching parameter of the specific regime is selected for the target adjacent regime from the second color matching table.

3. The method according to claim 1, It is characterized in that The specific regimes include regimes that meet one or more of the following conditions: the duration of existence meets the preset time requirements, the geographical area meets the preset area requirements, and the historical influence meets the preset conditions.

4. The method according to claim 1, It is characterized in that Also includes: If there is a redundant regime that cannot be matched with colors among the other regimes, then determine the color matching parameters for the redundant regime from the third color matching table, and keep the color matching unchanged during the existence of the redundant regime; There is no repeated color matching between the third color matching table and the first color matching table and the second color matching table.

5. The method according to claim 1, It is characterized in that Determining color matching parameters for a specific regime among the multiple regimes from the first color matching table, and determining color matching parameters for other regimes among the multiple regimes except the specific regime from the second color matching table, includes: For at least one target history map within the time period to be processed, if the at least one target history map contains a target regime that has been color matched within the processed time period, the color matching parameters corresponding to the target regime within the processed time period are used; If a specific regime is included in the remaining regimes in the at least one target historical map, a color matching parameter is determined for the specific regime from unused colors in the first color matching table; From the second color matching table, the color matching parameters corresponding to each of the remaining regimes except the specific regime are determined.

6. The method according to claim 5, It is characterized in that Also includes: If the specific regime associated with the target delivery parameter in the first color matching table disappears, the target color matching parameter is marked as unused.

7. The method according to claim 1, It is characterized in that Also includes: Displaying a map interface, wherein the map interface includes a time selection control and a historical map display area; In response to a time point selection operation occurring on the time selection control, determining a selected target time point; In the historical map display area, the plots where the various political powers are located are rendered according to the color matching parameters of the various political powers contained in the historical map corresponding to the target time point to display the historical map.

8. The method according to claim 7, It is characterized in that Also includes: In response to a time range selection operation occurring on the time selection control, determining a plurality of historical maps included in the selected time range; In the historical map display area, based on the color matching parameters of each regime contained in the multiple historical maps, the plots where the various regimes are located are rendered, and the multiple historical maps are displayed in sequence.

9. A computing device, It is characterized in that including memory and processor; The memory is used to store one or more computer instructions; The processor is coupled to the memory and configured to execute the one or more computer instructions for: In response to the color matching instruction, it is determined that there are multiple regimes included in multiple historical maps in a chronological order; Determine color matching parameters for a specific regime among the multiple regimes from the first color matching table, and keep the color matching unchanged during the existence of the specific regime; Among the multiple regimes other than the specific regime, determine the neighboring regimes of the specific regime; Based on the separation and integration status between the specific regime and its neighboring regimes, the integration index corresponding to the neighboring regimes of the specific regime is calculated respectively; From the second color matching table, color matching parameters that match the corresponding fusion index are determined for the neighboring regimes of the specific regime, and the color matching remains unchanged during the existence of the other regimes; Coloring the multiple historical maps according to the color matching parameters corresponding to the multiple political regimes; Among them, the color matching of any adjacent regimes among the multiple regimes is different, and there are no repeated color matching parameters between the first color matching table and the second color matching table.

10. A computer-readable storage medium storing computer instructions, It is characterized in that When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the map color matching method according to any one of claims 1 to 8.