A method, device and medium for processing information jump on user interface
By determining the center coordinates of each area on the user interface and calculating the optimal path, the information jump path and display speed are optimized, and the problem of insufficient information acquisition caused by too long distances in adjacent areas in the display order on the user interface is solved, and the information is improved Show efficiency.
Patent Information
- Application Number
- CN202411078869.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-07
AI Technical Summary
In the prior art, when displaying preset information of multiple areas on the user interface, the distance between adjacent areas in the display order is far away, causing the user to be unable to quickly lock the next display area, which in turn causes the user to obtain in a round of display. Less information.
By obtaining the center coordinates of each area on the user interface, determining the distance between any two areas, and traversing all feasible paths, calculating the target value based on the total path length and the number and average length of the sub-path length exceeding the preset length and the average length, selecting the optimal path. As the information jump path, adjust the display speed to optimize the jump process.
This reduces the distance between adjacent areas in the display order, increases the amount of information users obtain in one round of display, and ensures that users can quickly lock in the next display area.
Smart Images

Figure CN118605782B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method, device and medium for processing information jump on a user interface. Background Art
[0002] When there are multiple areas on the user interface, and the preset information corresponding to each area needs to be displayed to the user, the preset information corresponding to all areas cannot be displayed at the same time due to the size of the user interface. The prior art mostly adopts a method of displaying the preset information corresponding to each area in turn. Specifically, when displaying the preset information of a specified area, the specified area is highlighted, and when the preset information display time of the specified area reaches the preset time, the display jumps to the second area to display the preset information, and the second area is highlighted. When the preset information display time of the second area reaches the preset time, the display jumps to the third area to display the preset information, and so on, until the preset information display of all areas on the user interface is completed, and the round of display is completed; after the round of display is completed, the next round of display is performed in the same way, and so on, for a cyclic display.
[0003] In the prior art, when displaying the preset information corresponding to each area in turn, some use a random method to determine the order of displaying the preset information between areas, which makes the distance between two areas with adjacent display orders far, resulting in the user being unable to quickly lock the next area to display the preset information on the user interface. As a result, the user has not locked or has just locked the area to display the preset information while the area to display the preset information has completed the display of the preset information, resulting in the user obtaining less preset information in one round of display. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device and medium for processing information jump on a user interface to solve the problem that the user obtains less preset information in one round of display due to the long distance between two adjacent areas in many display sequences mentioned above.
[0005] According to a first aspect of the present invention, a method for processing information jump on a user interface is provided, the method comprising the following steps:
[0006] Get the coordinates of the center of each area in the user interface.
[0007] The distance between any two areas on the user interface is determined according to the coordinates of the center of each area on the user interface.
[0008] Get all feasible paths starting from a specified area on the user interface, traversing all areas on the user interface, and then returning to the specified area on the user interface.
[0009] Get the total path length of each feasible path.
[0010] The number of sub-paths whose lengths exceed a first preset length among the sub-paths included in each feasible path is obtained.
[0011] The average length of the sub-paths whose lengths exceed a first preset length among the sub-paths included in each feasible path is obtained.
[0012] The target value of each feasible path is determined according to the total path length of each feasible path, the number of subpaths whose lengths exceed the first preset length in the subpaths included in each feasible path, and the average length of the subpaths whose lengths exceed the first preset length in the subpaths included in each feasible path.
[0013] The feasible path with the smallest target value among all feasible paths is determined as the target path for information jump on the user interface.
[0014] Furthermore, the processing method further comprises the following steps:
[0015] Gets the preset total period for information display on the user interface.
[0016] Gets the preset optimal speed for information jumping on the user interface.
[0017] Gets the length of each sub-path of the target path of information jump on the user interface.
[0018] The target speed of information jumping on the user interface is determined according to the preset total period of information display on the user interface, the preset optimal speed of information jumping and the length of each sub-path of the target path.
[0019] Further, the determining the target speed of information jumping on the user interface according to the preset total period of information display on the user interface, the preset optimal speed of information jumping and the length of each sub-path of the target path includes:
[0020] A target loss function is established, wherein the value of the target loss function is proportional to the speed difference value of the information jump, the value of the target loss function is proportional to the mean of the jump durations corresponding to all areas on the display interface, and the value of the target loss function is proportional to the variance of the jump durations corresponding to all areas on the real interface; the speed difference value of the information jump is the absolute value of the difference between the actual jump speed and the preset optimal speed; the jump duration corresponding to each area is the ratio of the length of the sub-path corresponding to each area to the actual jump speed, and the sub-path corresponding to each area is the sub-path in the target path whose end point is the area.
[0021] The actual jump speed when the target loss function takes the minimum value is determined as the target speed.
[0022] Furthermore, the processing method also includes:
[0023] Within a preset total cycle of information display on the user interface, the information corresponding to the designated area of the target path is first displayed, and the duration of displaying the information corresponding to the designated area is the display duration corresponding to the designated area, and the designated area is the designated area; after the display of the information corresponding to the designated area is completed, a jump is made from the designated area to a second area of the target path and a jump trajectory corresponding to the second area is displayed, the jump duration corresponding to the second area is the ratio of the sub-path corresponding to the second area in the target path to the target speed, the starting point of the jump trajectory corresponding to the second area is the center of the designated area, and the end point of the jump trajectory corresponding to the second area is the center of the second area, and after completing the jump from the designated area to the second area, the information corresponding to the second area is displayed, and the duration of displaying the information corresponding to the second area is the display duration corresponding to the second area.
[0024] Furthermore, the display duration corresponding to the designated area is the difference between the total duration corresponding to each area and the jump duration corresponding to the designated area, and the jump duration corresponding to the designated area is the ratio of the length of the sub-path corresponding to the designated area in the target path to the target speed; the display duration corresponding to the second area is the difference between the total duration corresponding to each area and the jump duration corresponding to the second area, and the total duration corresponding to each area is the ratio of the preset total period of information display on the user interface to the number of areas on the user interface.
[0025] Furthermore, the process of obtaining the first preset length includes:
[0026] Obtain the feedback results of the test user set when the information jump distance on the user interface is the initial test length; the feedback results of any test user are positive feedback results or negative feedback results.
[0027] Obtain the proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is the initial test length.
[0028] If the proportion of positive feedback results corresponding to the initial test length is greater than or equal to a preset proportion threshold, a first test length is obtained; the difference between the first test length and the initial test length is a preset test adjustment step length, and the preset test adjustment step length is greater than 0;
[0029] Obtain feedback results of the test user set when the information jump distance on the user interface is the first test length.
[0030] The proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is the first test length is obtained.
[0031] If the proportion of positive feedback results corresponding to the first test length is less than a preset proportion threshold, the initial test length is determined to be the first preset length.
[0032] Furthermore, the process of obtaining the first preset length further includes:
[0033] If the proportion of positive feedback results corresponding to the first test length is greater than or equal to a preset proportion threshold, a second test length is obtained; the difference between the second test length and the first test length is a preset test adjustment step.
[0034] Obtain feedback results from the test user set when the information jump distance on the user interface is the second test length.
[0035] The proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is the second test length is obtained.
[0036] If the proportion of positive feedback results corresponding to the second test length is less than a preset proportion threshold, the first test length is determined to be the first preset length.
[0037] Furthermore, the process of obtaining the first preset length further includes:
[0038] If the proportion of positive feedback results corresponding to the second test length is greater than or equal to the preset proportion threshold, continue to obtain the updated test length until the proportion of positive feedback results corresponding to the updated test length is less than the preset proportion threshold, and the test length before the last update is determined as the first preset length; the test length after each update increases by a preset test adjustment step compared to the test length before the update.
[0039] Furthermore, obtaining the coordinates of the center of each area on the user interface includes:
[0040] Get the coordinates of each pixel point included in each area on the user interface.
[0041] The average coordinates of the pixels included in each area on the user interface are determined as the coordinates of the center of the corresponding area.
[0042] Furthermore, determining the distance between any two areas on the user interface according to the coordinates of the center of each area on the user interface includes:
[0043] Gets the coordinates of the center of the specified area on the user interface.
[0044] Gets the coordinates of the center of the second area in the user interface.
[0045] The distance between the center of the specified area and the center of the second area is determined according to the coordinates of the center of the specified area on the user interface and the coordinates of the center of the second area.
[0046] The distance between the center of the specified area on the user interface and the center of the second area is determined as the distance between the specified area and the second area.
[0047] According to a second aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for processing information jump on the user interface when executing the computer program.
[0048] According to a third aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the above-mentioned method for processing information jump on the user interface.
[0049] Compared with the prior art, the present invention has at least the following beneficial effects:
[0050] The present invention obtains the coordinates of the center of each area on the user interface, and determines the distance between any two areas based on the coordinates of the center of each area; all feasible paths are obtained by traversing all areas on the user interface from the specified area on the user interface and then returning to the specified area. The starting area and the ending area of any feasible path are both specified areas, and any feasible path passes through all areas on the user interface, and any feasible path passes through each area only once; after all feasible paths are obtained, the present invention determines the target value of each feasible path according to the total path length of each feasible path, the number of sub-paths whose length exceeds a first preset length in the sub-paths included in each feasible path, and the average length of the sub-paths whose length exceeds the first preset length in the sub-paths included in each feasible path, and determines the feasible path with the smallest target value as the target path for information jumping on the user interface. When determining the target path for information jump on the user interface, the present invention refers to the total length of the path, the number of sub-paths whose lengths exceed a first preset length in the sub-paths included in the path, and the average length of these sub-paths, which is conducive to obtaining a path with a shorter total length, a smaller number of sub-paths whose lengths exceed the first preset length in the sub-lengths included in the path, and a smaller average length of sub-paths whose lengths exceed the first preset length in the sub-lengths included in the path, thereby reducing the probability of a situation where the distance between two adjacent areas in the display order is far, and is conducive to users being able to obtain more preset information in one round of display. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0052] Figure 1 A first flow chart of a method for processing information jump on a user interface provided in Embodiment 1 of the present invention;
[0053] Figure 2 A flowchart of the steps of obtaining the coordinates of the center of each area on the user interface provided in the first embodiment of the present invention;
[0054] Figure 3 A flowchart of the steps of determining the distance between any two areas on a user interface provided in the first embodiment of the present invention;
[0055] Figure 4 A first flow chart of the steps of a process for obtaining a first preset length provided in Embodiment 1 of the present invention;
[0056] Figure 5 A second flow chart of the steps of the process of obtaining the first preset length provided in the first embodiment of the present invention;
[0057] Figure 6 A second flow chart of the method for processing information jump on the user interface provided in the first embodiment of the present invention;
[0058] Figure 7 This is a flow chart of the steps of determining a target speed of information jumping on a user interface provided in the first embodiment of the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0060] Embodiment 1:
[0061] According to this embodiment, Figure 1 As shown, a method for processing information jump on a user interface is provided, and the method comprises the following steps:
[0062] S100, obtaining the coordinates of the center of each area on the user interface.
[0063] In this embodiment, a plurality of regions are displayed on the user interface, and the coordinates of the pixel points corresponding to each region are known. Figure 2 As shown, S100 includes:
[0064] S110, obtaining the coordinates of each pixel point included in each area on the user interface.
[0065] S120: Determine the average coordinates of the pixels included in each area on the user interface as the coordinates of the center of the corresponding area.
[0066] Based on S110 - S120 , the coordinates of the center of each area may be determined.
[0067] S200: Determine the distance between any two areas on the user interface according to the coordinates of the center of each area on the user interface.
[0068] In this embodiment, the distance between any two areas on the user interface is the distance between the centers of the two areas. Figure 3 As shown, S200 includes:
[0069] S210: Obtain the coordinates of the center of the first area on the user interface.
[0070] S220: Obtain the coordinates of the center of the second area on the user interface.
[0071] S230: Determine a distance between the center of the first area and the center of the second area according to the coordinates of the center of the first area and the coordinates of the center of the second area on the user interface.
[0072] As a specific implementation, the distance between the center of the first area and the center of the second area is obtained using the Euclidean distance formula.
[0073] S240: Determine the distance between the center of the first area and the center of the second area on the user interface as the distance between the first area and the second area.
[0074] Based on S210 - S240 , the distance between any two areas on the user interface can be obtained.
[0075] S300, obtaining all feasible paths starting from a designated area on the user interface, traversing all areas on the user interface, and then returning to the designated area on the user interface.
[0076] In this embodiment, the starting area and the ending area of any feasible path are both designated areas. Specifically, the starting point and the end point of any feasible path are both the center of the designated area. Any feasible path passes through all areas on the user interface. Specifically, any feasible path passes through the centers of all areas on the user interface, and any feasible path passes through the center of each area only once. Any path includes n sub-paths, each sub-path is a straight line segment, n is the number of areas on the user interface, and any sub-path is used to connect the centers of two areas. The sub-path corresponding to the i-th area on the user interface is a sub-path whose end point is the center of the i-th area, and the value range of i is 1 to n.
[0077] Those skilled in the art know that any method for determining a path in the prior art falls within the protection scope of the present invention. Optionally, an exhaustive method is used to determine all feasible paths.
[0078] S400: Obtain the total path length of each feasible path.
[0079] In this embodiment, the total path length of each feasible path is the sum of the lengths of all sub-paths included in the corresponding feasible path, and the length of each sub-path is the distance between the centers of two regions connected by the corresponding sub-path.
[0080] S500: Obtain the number of sub-paths whose lengths exceed a first preset length in the sub-paths included in each feasible path.
[0081] In this embodiment, if the length of a sub-path exceeds the first preset length, it is determined that there is difficulty for the user to lock the end point of the sub-path from the starting point of the sub-path; if the length of a sub-path does not exceed the first preset length, it is determined that there is no difficulty for the user to lock the end point of the sub-path from the starting point of the sub-path; as an optional specific implementation, the first preset length is an empirical value. As a preferred specific implementation, Figure 4 As shown, the process of obtaining the first preset length includes:
[0082] S510, obtaining feedback results of the test user set when the information jump distance on the user interface is the initial test length; the feedback result of any test user is a positive feedback result or a negative feedback result.
[0083] In this embodiment, the test user set includes several test users. One area is highlighted on the user interface, and then another area is highlighted on the user interface. The distance between the two areas is the initial test length. The feedback results of all test users included in the test user set on whether the area displayed first can be quickly locked from the area displayed later are obtained. If a test user can quickly lock the area displayed later from the area displayed first, the feedback result of the test user is a positive feedback result; if a test user cannot quickly lock the area displayed later from the area displayed first, the feedback result of the test user is a negative feedback result. In this embodiment, quick locking refers to being seen within a preset time length after the area displayed later is highlighted. In this embodiment, the initial test length is an empirical value, which is a relatively small length.
[0084] As a specific implementation, a method of highlighting a certain area is to set an elliptical icon of a preset size at the center of the area, the color of the icon is a highlight color, and the center of the elliptical icon is the center of the area.
[0085] S520, obtaining the proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is the initial test length.
[0086] In this embodiment, the proportion of positive feedback results in the feedback results is the ratio of the number of test users corresponding to the positive feedback results in the feedback results to the total number of test users included in the test user set.
[0087] S530, if the proportion of positive feedback results corresponding to the initial test length is greater than or equal to a preset proportion threshold, a first test length is obtained; the difference between the first test length and the initial test length is a preset test adjustment step, and the preset test adjustment step is greater than 0.
[0088] In this embodiment, the preset proportion threshold and the preset test adjustment step are both empirical values. For example, the preset proportion threshold is 90%, and the preset test adjustment step is 0.1 times the initial test length.
[0089] S540, obtaining feedback results from the test user set when the information jump distance on the user interface is a first test length.
[0090] As a specific implementation, one area is highlighted on the user interface, and then another area is highlighted on the user interface. The distance between the two areas is the first test length. Feedback results from all test users included in the test user set on whether they can quickly lock the later displayed area from the first displayed area. If a test user can quickly lock the later displayed area from the first displayed area, then the feedback result of the test user is a positive feedback result; if a test user cannot quickly lock the later displayed area from the first displayed area, then the feedback result of the test user is a negative feedback result.
[0091] S550, obtaining a proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is a first test length.
[0092] S560: If the proportion of positive feedback results corresponding to the first test length is less than a preset proportion threshold, the initial test length is determined to be the first preset length.
[0093] Based on S510-S560, a more optimal first preset length can be obtained when the proportion of positive feedback results corresponding to the first test length is less than the preset proportion threshold. Based on the more optimal first preset length, it can be more accurately determined whether the length of a sub-path is longer than that of the user, that is, it can be accurately determined whether it is difficult for the user to lock the end area corresponding to the sub-path from the starting area corresponding to the sub-path.
[0094] As a specific implementation, Figure 5As shown, the process of obtaining the first preset length also includes:
[0095] S561, if the proportion of positive feedback results corresponding to the first test length is greater than or equal to a preset proportion threshold, a second test length is obtained; the difference between the second test length and the first test length is a preset test adjustment step.
[0096] S562, obtaining feedback results from the test user set when the information jump distance on the user interface is a second test length.
[0097] As a specific implementation, one area is highlighted on the user interface, and then another area is highlighted on the user interface. The distance between the two areas is the second test length. Feedback results from all test users included in the test user set on whether they can quickly lock the later displayed area from the first displayed area. If a test user can quickly lock the later displayed area from the first displayed area, then the feedback result of the test user is a positive feedback result; if a test user cannot quickly lock the later displayed area from the first displayed area, then the feedback result of the test user is a negative feedback result.
[0098] S563, obtaining the proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is the second test length.
[0099] S564: If the proportion of positive feedback results corresponding to the second test length is less than a preset proportion threshold, the first test length is determined to be the first preset length.
[0100] Based on S561-S564, a better first preset length can be obtained when the proportion of positive feedback results corresponding to the first test length is greater than or equal to the preset proportion threshold. Based on the better first preset length, it can be more accurately determined whether the length of a sub-path is longer than that of the user, that is, it can be accurately determined whether it is difficult for the user to lock the end area corresponding to the sub-path from the starting area corresponding to the sub-path.
[0101] As a specific implementation, the process of obtaining the first preset length also includes: if the proportion of positive feedback results corresponding to the second test length is greater than or equal to the preset proportion threshold, continue to obtain the updated test length until the proportion of positive feedback results corresponding to the updated test length is less than the preset proportion threshold, and determine the test length before the last update as the first preset length; the test length after each update increases by a preset test adjustment step compared to the test length before the update.
[0102] S600: Obtain an average length of sub-paths whose lengths exceed a first preset length among sub-paths included in each feasible path.
[0103] S700, determining a target value for each feasible path according to the total path length of each feasible path, the number of subpaths whose lengths exceed a first preset length in the subpaths included in each feasible path, and the average length of the subpaths whose lengths exceed the first preset length in the subpaths included in each feasible path.
[0104] As a preferred specific implementation, the target value of the jth feasible path is a j , a j =w1×L' j +w2×q' j +w3× l ' j , w1, w2 and w3 are the weights corresponding to the total length of the feasible path, the number of subpaths whose length exceeds the first preset length in the subpaths included in the feasible path and the average length of the subpaths whose length exceeds the first preset length in the subpaths included in the feasible path, respectively. w1, w2 and w3 are all values greater than 0 and less than 1. The sum of w1, w2 and w3 is 1. L' j ,q' j and l ' j are respectively the total length of the normalized feasible path, the number of subpaths whose lengths exceed the first preset length in the subpaths included in the normalized feasible path, and the average length of the subpaths whose lengths exceed the first preset length in the subpaths included in the normalized feasible path, and the value range of j is 1 to m, where m is the number of feasible paths. Those skilled in the art know that any normalization method in the prior art falls within the protection scope of the present invention.
[0105] Based on this preferred specific implementation, the smaller the total length of a feasible path, the smaller the number of subpaths whose lengths exceed the first preset length in the subpaths included in the feasible path, and the smaller the average length of the subpaths whose lengths exceed the first preset length in the subpaths included in the feasible path, the smaller the target value of the feasible path; thus, based on the relative size of the target value of each feasible path, an optimal feasible path can be obtained, and the total length corresponding to the optimal feasible path is relatively short, and the distance between two adjacent areas in the display order corresponding to the optimal feasible path is close, which is conducive to users being able to obtain more preset information in one round of display.
[0106] S800: Determine the feasible path with the smallest target value among all feasible paths as the target path for information jump on the user interface.
[0107] When determining the target path for information jump on the user interface, this embodiment refers to the total length of the path, the number of sub-paths in the path whose length exceeds the first preset length, and the average length of these sub-paths. This is beneficial for obtaining a path with a shorter total length, a smaller number of sub-paths in the path whose length exceeds the first preset length, and a smaller average length of sub-paths in the path whose length exceeds the first preset length. This reduces the probability of a situation where the distance between two adjacent areas in the display order is far, and is beneficial for users to obtain more preset information in one round of display.
[0108] As a preferred embodiment, Figure 6 As shown, the processing method also includes the following steps:
[0109] S900: Obtain a preset total period for information display on the user interface.
[0110] In this embodiment, the preset total period for displaying information on the user interface refers to the time spent on each round of displaying the preset information. In each round of displaying the preset information, the preset information corresponding to each area of the user interface is displayed and only displayed once, but the display time corresponding to each area may not be the same; optionally, the preset total period for displaying information on the user interface is an empirical value.
[0111] In this embodiment, when displaying preset information of a certain area on the user interface, the area is highlighted on the user interface. Optionally, the area is highlighted by setting an elliptical icon of a preset size at the center of the area, the color of the icon is a highlight color, and the center of the elliptical icon is the center of the area. As a specific implementation, the displayed preset information is located near the elliptical icon.
[0112] S910: Obtain a preset optimal speed for information jumping on a user interface.
[0113] As a specific implementation, when an area on the user interface jumps to another area, the preset information of either area is no longer displayed, and the jump trajectory between the centers of the two areas is gradually displayed in the direction of the jump during the jump. The jump trajectory is a straight line segment. For example, when jumping from area B to area C, the starting point of the jump trajectory is the center of area B, and the end point of the jump trajectory is the center of area C. During the jump, the jump trajectory close to area B is displayed first, and then the jump trajectory close to area C is displayed. After completing the jump from area B to area C, the jump trajectory connecting the center of area B and the center of area C is no longer displayed, and the preset information corresponding to area C begins to be displayed.
[0114] In this embodiment, the distance between the centers of any two areas is known. If the speed of information jumping is different, then the time to jump from one area to another area is also different. The preset optimal speed of information jumping on the user interface is an empirical value. When the jumping track on the user interface jumps at the preset optimal speed, the jumping track between the two areas can be gradually displayed at a better speed, and the user can better follow the jumping track, and then quickly lock the next area for displaying preset information; when the jumping track on the user interface jumps at a speed greater than the preset optimal speed, the jumping track between the two areas is gradually displayed at a faster speed, and the user cannot follow the jumping track well, and then cannot quickly lock the next area for displaying preset information; or when the jumping track on the user interface jumps at a speed less than the preset optimal speed, the jumping track between the two areas can be gradually displayed at a slower speed, affecting the efficiency of the user locking the next area for displaying preset information.
[0115] S920: Obtain the length of each sub-path of the target path of information jump on the user interface.
[0116] S930: Determine a target speed of information jumping on the user interface according to a preset total period of information display on the user interface, a preset optimal speed of information jumping, and a length of each sub-path of the target path.
[0117] As a specific implementation, the processing method also includes: within a preset total period for displaying preset information on the user interface, first highlighting the designated area of the target path and displaying the preset information corresponding to the designated area, the duration of displaying the preset information corresponding to the designated area is the display duration corresponding to the designated area; after the display of the preset information corresponding to the designated area is completed, jumping from the designated area to the next area of the target path and displaying the jump trajectory corresponding to the next area, the jump duration corresponding to the next area is the ratio of the sub-path corresponding to the next area to the target speed, the starting point of the jump trajectory corresponding to the next area is the center of the designated area, and the end point of the jump trajectory corresponding to the next area is the center of the next area, after completing the jump from the designated area to the next area, highlighting the next area and displaying the preset information corresponding to the next area, the duration of displaying the preset information corresponding to the next area is the display duration corresponding to the next area.
[0118] In this embodiment, the jump process between other areas is similar to the jump process from the above-mentioned designated area to the next area, and will not be repeated here.
[0119] As a specific implementation, the display duration corresponding to the designated area is the difference between the total duration corresponding to each area and the jump duration corresponding to the designated area, and the jump duration corresponding to the designated area is the ratio of the length of the sub-path corresponding to the designated area in the target path to the target speed; the display duration corresponding to the next area is the difference between the total duration corresponding to each area and the jump duration corresponding to the next area, and the total duration corresponding to each area is the ratio of the preset total period of information display on the user interface to the number of areas on the user interface.
[0120] In this embodiment, the process of obtaining the display duration corresponding to other areas is similar to the process of obtaining the display duration corresponding to the designated area, which will not be described in detail here.
[0121] As a preferred embodiment, Figure 7 As shown, S930 includes:
[0122] S931, establish a target loss function, the value of the target loss function is proportional to the speed difference value of the information jump, the value of the target loss function is proportional to the mean of the jump durations corresponding to all areas on the display interface, and the value of the target loss function is proportional to the variance of the jump durations corresponding to all areas on the display interface; the speed difference value of the information jump is the absolute value of the difference between the actual jump speed and the preset optimal speed; the jump duration corresponding to each area is the ratio of the length of the sub-path corresponding to each area to the actual jump speed, and the sub-path corresponding to each area is the sub-path in the target path whose end point is the area.
[0123] As a specific implementation, the target loss function is loss=β1×|v-v0| / v0+β2×L / (v×T)+β3×f', where loss is the value of the target loss function, β1, β2 and β3 are the weights corresponding to the speed difference value of information jump, the mean of the jump time corresponding to all areas on the display interface and the variance of the jump time corresponding to all areas on the display interface, respectively. β1, β2 and β3 are all values greater than 0 and less than 1, and the sum of β1, β2 and β3 is 1. v0 is the preset optimal speed of information jump on the user interface, T is the preset total period of information display on the user interface, L is the total length of the target path, v is the actual jump speed, f' is the normalized variance of the jump time corresponding to all areas on the display interface, and the variance of the jump time corresponding to all areas on the display interface is r1 / v, r2 / v, ..., r k / v, ..., r n Variance of / v, r k is the length of the subpath corresponding to the kth region on the display interface, the value range of k is 1 to n, and n is the number of regions on the display interface. Those skilled in the art know that any normalization method in the prior art falls within the protection scope of the present invention.
[0124] S932, determining the actual jump speed when the target loss function takes the minimum value as the target speed.
[0125] Based on S931-S932, the optimal actual jump speed, that is, the target speed, can be obtained; based on the target speed, the user can better follow the jump trajectory to lock the next area for displaying preset information, and the jump duration corresponding to different areas is shorter and the jump duration difference corresponding to different areas is smaller, so that the display duration of the preset information corresponding to different areas is longer and the display duration difference of the preset information corresponding to different areas is smaller, avoiding the situation where the user cannot better obtain the preset information of different areas due to the large difference and short display duration of different areas.
[0126] Embodiment 2:
[0127] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0128] Get the coordinates of the center of each area in the user interface.
[0129] The distance between any two areas on the user interface is determined according to the coordinates of the center of each area on the user interface.
[0130] Get all feasible paths starting from a specified area on the user interface, traversing all areas on the user interface, and then returning to the specified area on the user interface.
[0131] Get the total path length of each feasible path.
[0132] The number of sub-paths whose lengths exceed a first preset length among the sub-paths included in each feasible path is obtained.
[0133] The average length of the sub-paths whose lengths exceed a first preset length among the sub-paths included in each feasible path is obtained.
[0134] The target value of each feasible path is determined according to the total path length of each feasible path, the number of subpaths whose lengths exceed the first preset length in the subpaths included in each feasible path, and the average length of the subpaths whose lengths exceed the first preset length in the subpaths included in each feasible path.
[0135] The feasible path with the smallest target value among all feasible paths is determined as the target path for information jump on the user interface.
[0136] Embodiment three:
[0137] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0138] Get the coordinates of the center of each area in the user interface.
[0139] The distance between any two areas on the user interface is determined according to the coordinates of the center of each area on the user interface.
[0140] Get all feasible paths starting from a specified area on the user interface, traversing all areas on the user interface, and then returning to the specified area on the user interface.
[0141] Get the total path length of each feasible path.
[0142] The number of sub-paths whose lengths exceed a first preset length among the sub-paths included in each feasible path is obtained.
[0143] The average length of the sub-paths whose lengths exceed a first preset length among the sub-paths included in each feasible path is obtained.
[0144] The target value of each feasible path is determined according to the total path length of each feasible path, the number of subpaths whose lengths exceed the first preset length in the subpaths included in each feasible path, and the average length of the subpaths whose lengths exceed the first preset length in the subpaths included in each feasible path.
[0145] The feasible path with the smallest target value among all feasible paths is determined as the target path for information jump on the user interface.
[0146] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0147] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A method for processing information jump on a user interface, characterized in that: The processing method comprises the following steps: Get the coordinates of the center of each area on the user interface; Determine the distance between any two areas on the user interface according to the coordinates of the center of each area on the user interface; Obtain all feasible paths starting from a specified area on the user interface, traversing all areas on the user interface, and then returning to the specified area on the user interface; Get the total path length of each feasible path; Obtaining the number of sub-paths whose lengths exceed a first preset length among the sub-paths included in each feasible path; Obtaining an average length of subpaths whose lengths exceed a first preset length among subpaths included in each feasible path; The target value of each feasible path is determined according to the total path length of each feasible path, the number of subpaths whose length exceeds the first preset length in the subpaths included in each feasible path, and the average length of the subpaths whose length exceeds the first preset length in the subpaths included in each feasible path; wherein the target value of the jth feasible path is a j , a j =w1×L' j +w2×q' j +w3× l ' j , w1, w2 and w3 are the weights corresponding to the total length of the feasible path, the number of subpaths whose length exceeds the first preset length in the subpaths included in the feasible path and the average length of the subpaths whose length exceeds the first preset length in the subpaths included in the feasible path, respectively. w1, w2 and w3 are all values greater than 0 and less than 1. The sum of w1, w2 and w3 is 1. L' j ,q' j and l ' j are respectively the total length of the normalized feasible paths, the number of subpaths whose lengths exceed the first preset length in the subpaths included in the normalized feasible paths, and the average length of the subpaths whose lengths exceed the first preset length in the subpaths included in the normalized feasible paths, and the value range of j is 1 to m, where m is the number of feasible paths; The feasible path with the smallest target value among all feasible paths is determined as the target path for information jump on the user interface.
2. The method for processing information jump on a user interface according to claim 1, characterized in that: The processing method further comprises the following steps: Get the preset total period of information display on the user interface; Get the preset optimal speed of information jump on the user interface; Get the length of each sub-path of the target path of information jump on the user interface; The target speed of information jumping on the user interface is determined according to the preset total period of information display on the user interface, the preset optimal speed of information jumping and the length of each sub-path of the target path.
3. The method for processing information jump on a user interface according to claim 2, characterized in that: The step of determining the target speed of information jumping on the user interface according to the preset total period of information display on the user interface, the preset optimal speed of information jumping, and the length of each sub-path of the target path comprises: Establish a target loss function, the value of the target loss function is proportional to the speed difference value of the information jump, the value of the target loss function is proportional to the mean of the jump durations corresponding to all areas on the display interface, and the value of the target loss function is proportional to the variance of the jump durations corresponding to all areas on the display interface; the speed difference value of the information jump is the absolute value of the difference between the actual jump speed and the preset optimal speed; the jump duration corresponding to each area is the ratio of the length of the sub-path corresponding to each area to the actual jump speed, and the sub-path corresponding to each area is the sub-path in the target path whose end point is the area; The actual jump speed when the target loss function takes the minimum value is determined as the target speed.
4. The method for processing information jump on a user interface according to claim 3, characterized in that: The processing method also includes: Within a preset total cycle for displaying preset information on the user interface, the designated area of the target path is first highlighted and the preset information corresponding to the designated area is displayed. The duration of displaying the preset information corresponding to the designated area is the display duration corresponding to the designated area. After the display of the preset information corresponding to the designated area is completed, a jump is made from the designated area to the next area of the target path and a jump trajectory corresponding to the next area is displayed. The jump duration corresponding to the next area is the ratio of the sub-path corresponding to the next area to the target speed. The starting point of the jump trajectory corresponding to the next area is the center of the designated area, and the end point of the jump trajectory corresponding to the next area is the center of the next area. After completing the jump from the designated area to the next area, the next area is highlighted and the preset information corresponding to the next area is displayed. The duration of displaying the preset information corresponding to the next area is the display duration corresponding to the next area.
5. The method for processing information jump on a user interface according to claim 4, characterized in that: The display duration corresponding to the designated area is the difference between the total duration corresponding to each area and the jump duration corresponding to the designated area; the jump duration corresponding to the designated area is the ratio of the length of the sub-path corresponding to the designated area in the target path to the target speed; the display duration corresponding to the next area is the difference between the total duration corresponding to each area and the jump duration corresponding to the next area; the total duration corresponding to each area is the ratio of the preset total period of information display on the user interface to the number of areas on the user interface.
6. The method for processing information jump on a user interface according to claim 1, characterized in that: The process of obtaining the first preset length includes: Obtaining the feedback results of the test user set when the information jump distance on the user interface is the initial test length; the feedback result of any test user is a positive feedback result or a negative feedback result; Obtain the proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is the initial test length; If the proportion of positive feedback results corresponding to the initial test length is greater than or equal to a preset proportion threshold, a first test length is obtained; the difference between the first test length and the initial test length is a preset test adjustment step length, and the preset test adjustment step length is greater than 0; Obtaining feedback results from the test user set when the information jump distance on the user interface is the first test length; Obtaining the proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is the first test length; If the proportion of positive feedback results corresponding to the first test length is less than a preset proportion threshold, the initial test length is determined to be the first preset length.
7. The method for processing information jump on a user interface according to claim 6, characterized in that: The process of obtaining the first preset length further includes: If the proportion of positive feedback results corresponding to the first test length is greater than or equal to a preset proportion threshold, a second test length is obtained; the difference between the second test length and the first test length is a preset test adjustment step length; Obtaining feedback results from the test user set when the information jump distance on the user interface is the second test length; Obtaining the proportion of positive feedback results in the feedback results of the test users when the information jump distance on the user interface is the second test length; If the proportion of positive feedback results corresponding to the second test length is less than a preset proportion threshold, the first test length is determined to be the first preset length.
8. The method for processing information jump on a user interface according to claim 7, characterized in that: The process of obtaining the first preset length further includes: If the proportion of positive feedback results corresponding to the second test length is greater than or equal to the preset proportion threshold, continue to obtain the updated test length until the proportion of positive feedback results corresponding to the updated test length is less than the preset proportion threshold, and the test length before the last update is determined as the first preset length; the test length after each update increases by a preset test adjustment step compared to the test length before the update.
9. The method for processing information jump on a user interface according to claim 1, characterized in that: The obtaining of the coordinates of the center of each area on the user interface includes: Get the coordinates of each pixel point included in each area on the user interface; The average coordinates of the pixels included in each area on the user interface are determined as the coordinates of the center of the corresponding area.
10. The method for processing information jump on a user interface according to claim 1, characterized in that: Determining the distance between any two areas on the user interface according to the coordinates of the center of each area on the user interface includes: Get the coordinates of the center of the first area on the user interface; Get the coordinates of the center of the second area on the user interface; Determine the distance between the center of the first area and the center of the second area according to the coordinates of the center of the first area and the coordinates of the center of the second area on the user interface; The distance between the center of the first area and the center of the second area on the user interface is determined as the distance between the first area and the second area.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for processing information jump on the user interface as described in any one of claims 1 to 10 is implemented.
12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for processing information jump on a user interface as claimed in any one of claims 1 to 10 is implemented.
