Cursor display method and related device
By introducing an evolution method in the cursor display method that can be either direct or through a third form transition, the problem of visual interruption caused by cursor shape changes is solved, thus improving the user's visual experience.
Patent Information
- Application Number
- PCT/CN2025/106594
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-30
- Filing Date
- 2025-07-02
- Publication Date
- 2026-02-05
AI Technical Summary
In existing technologies, cursor changes in shape can easily cause visual interruption for users, resulting in a reduced visual experience.
A cursor display method is provided in which, by receiving a first instruction, an electronic device causes the cursor on the display interface to transition from a first form directly or through a third form to a second form, using different evolution methods to provide a smooth visual effect, including rules such as adding or removing graphic elements, deformation, or splitting.
It improves the user's visual experience by reducing the difficulty of cursor shape changes through flexible selection of evolution methods, and further reduces the abruptness by using a ring as a transition shape, providing a smoother visual effect.
Smart Images

Figure CN2025106594_05022026_PF_FP_ABST
Abstract
Description
A method for displaying a cursor and related equipment
[0001] This application claims priority to Chinese Patent Application No. 202411036546.2, filed with the State Intellectual Property Office of China on July 30, 2024, entitled "A Method for Displaying a Cursor and Related Devices", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of computer technology, and in particular to a method for displaying a cursor and related devices. Background Technology
[0003] Computers are everyday office and entertainment devices. The computer screen displays a cursor. When users use the cursor to perform various tasks on the screen, the cursor is in the center of the user's vision most of the time. Therefore, a better cursor display method is urgently needed. Summary of the Invention
[0004] This application provides a cursor display method and related device, which provides a smoother visual effect to the user when the cursor changes from a first form to a second form, thereby improving the user's visual experience.
[0005] This application provides the following technical solution:
[0006] Firstly, this application provides a cursor display method applicable to the terminal field. This method can be applied to scenarios where the cursor interacts with a display interface. In this method, when the electronic device displays the cursor in a first form, it can acquire a first instruction indicating a second form of the cursor. In one case, the electronic device can, based on the acquired first instruction, directly change the cursor from the first form to the second form on the display interface; in other words, an animation of the cursor directly changing from the first form to the second form can be displayed on the display interface. Alternatively, in another case, the electronic device can, based on the acquired first instruction, change the cursor from the first form to a third form on the display interface, and then back to the second form; in other words, an animation of the cursor changing from the first form to the third form and then back to the second form can be displayed on the display interface. The "first instruction" in this application can also be replaced with a "control instruction."
[0007] For example, the evolution rule for the cursor to directly evolve from the first form to the second form may include at least one of the following: adding or removing graphic elements, deforming graphic elements, splitting graphic elements, or other rules.
[0008] For example, the evolution rules adopted by the cursor from the first form to the third form and the evolution rules adopted by the cursor from the third form to the second form can both include at least one of the following: adding or removing graphic elements, deforming graphic elements, splitting graphic elements, or other rules.
[0009] Since users typically keep their eyes on the cursor, a sudden jump from the first to the second form would be disruptive and degrade the user's visual experience. This implementation, however, shows the cursor evolving from its first to second form, providing a smoother visual experience. Users don't feel interrupted as they watch the cursor change forms, improving the overall visual experience. Furthermore, this application proposes two different evolution methods, allowing for flexible selection of the method used when the first form transforms into the second, increasing the implementation flexibility and enabling the selection of the easier method from at least two options. The evolution method where the cursor first transforms into the first form and then back to the second adds an intermediate state as a transition, further enhancing the smoothness of the transition and improving the user's visual experience.
[0010] In one possible implementation, the aforementioned specific third form is a ring; or, the third form can also be an elliptical ring, a solid circle, or other forms; furthermore, during the process of the user interacting with visible elements on the display interface through the cursor, the third form may be used multiple times as a transitional state when the cursor evolves between different forms. If the third form is a ring, then optionally, when the aforementioned second evolution method is used as a transitional state multiple times, rings of different thicknesses may be used, that is, the third form in different evolution processes can all be rings, but the thickness of the rings used in different evolution processes can be the same or different.
[0011] In this implementation, a specific third form is set as a ring, providing a concrete implementation scheme for the third form, which helps to reduce the implementation difficulty of this scheme; in addition, since the ring is relatively less sharp, users have a high visual acceptance of the ring, so using the ring as the third form for transition helps to further reduce the abruptness of the cursor changing from the first form to the second form, which helps to further improve the user's visual experience.
[0012] In one possible implementation, if the first and second forms of the cursor are similar, the evolution process follows a first evolution pattern; if the first and second forms of the cursor are not similar, the evolution process follows a second evolution pattern. In other words, if the first and second forms of the cursor are similar, the cursor can directly evolve from the first form to the second form; if the first and second forms of the cursor are not similar, the cursor can first evolve from the first form to the third form, and then from the third form to the second form. For example, the method may further include: the electronic device can acquire the second form of the cursor corresponding to the first instruction, and then acquire similarity information corresponding to the first and second forms of the cursor, which indicates whether the first and second forms of the cursor are similar.
[0013] In this implementation, if the first and second forms of the cursor are similar, the evolution process from the first form to the second form is relatively simple and consumes less computer resources, so a direct evolution method can be used. If the first and second forms of the cursor are not similar, the evolution process from the first form to the second form will not only be abrupt but also more complex. Using the third form as a transition not only helps to reduce the difficulty of the entire evolution process but also helps to provide a smoother visual effect, thereby further improving the user's visual experience.
[0014] In one possible implementation, the reference factors for the similarity between the first and second forms of the cursor include at least one of the following: the outline of the cursor, the number of connected regions included by the cursor, the number of graphic elements included by the cursor, the distribution pattern of the graphic elements included by the cursor, or other elements; for example, the electronic device can obtain the similarity information based on the image of the first form of the cursor and the image of the second form of the cursor.
[0015] For example, the electronic device can obtain the outline shape category of the first form of the cursor and the outline shape category of the second form of the cursor. Optionally, the outline shape category of a certain form of the cursor can be any of the following: circular, linear, multi-element, or no category, etc.
[0016] For example, the electronic device may also obtain the number of graphic elements included in the outline of the first form of the cursor, obtain the number of graphic elements included in the outline of the second form of the cursor, that is, obtain the number of graphic elements included in the outermost outline of the first or second form of the cursor.
[0017] For example, a connected region is filled with the same color and any two points within the connected region are connected to each other; the number of connected regions included in a certain shape of the cursor (e.g., the first shape or the second shape) can be the number of connected regions corresponding to the target color. In other words, the number of connected regions included in a certain shape of the cursor can be the number of connected regions included in the first shape of the cursor whose fill color is a certain color (hereinafter referred to as the "target color" for ease of description).
[0018] For example, the distribution pattern of the graphic elements included in a certain form of the cursor (such as the first form or the second form) can be any of the following: nested distribution, symmetrical distribution, discrete distribution, or other types of distribution patterns.
[0019] This implementation provides several dimensions for considering the similarity between the first and second forms of the cursor, reducing the implementation difficulty. Furthermore, since users pay close attention to the cursor's outline, using the cursor's outline to determine the similarity between the first and second forms aligns with the user's visual experience. The number of connected regions included in the cursor, the number of graphic elements included in the cursor, and the distribution pattern of the graphic elements included in the cursor all reflect the cursor's overall information. Therefore, using the number of connected regions included in the cursor, the number of graphic elements included in the cursor, and / or the distribution pattern of the graphic elements included in the cursor to determine the similarity between the two forms of the cursor is beneficial for obtaining a more accurate judgment, which in turn helps to provide the user with an evolution process that adapts to the first and second forms of the cursor.
[0020] In one possible implementation, the similarity between the first and second forms of the cursor (also referred to as "the first and second forms of the cursor satisfying the similarity condition") includes the following situations: the first and second forms of the cursor have the same outline shape category, and the first and second forms of the cursor include the same number of connected regions; or, the first and second forms of the cursor have the same outline shape category, and the first and second forms of the cursor include the same number of graphic elements, and the distribution pattern of the graphic elements in the first form of the cursor is the same as the distribution pattern of the graphic elements in the second form.
[0021] This implementation clarifies two cases where the first and second forms of the cursor are similar, which not only reduces the implementation difficulty of this solution but also improves its implementation flexibility. In addition, when the two forms of the cursor have the same outline shape category and include the same number of connected regions, or when the two forms of the cursor have the same outline shape category, include the same number of graphic elements, and have the same distribution pattern of graphic elements, not only do the two forms of the cursor appear similar from the user's perspective, but the overall structure of the cursor is also similar. Therefore, in the aforementioned two cases, the evolution process of the cursor from the first form to the second form will be relatively simple. In these two cases, the direct evolution method will not only consume less computer resources but also will not feel abrupt to the user, thus providing a smoother visual experience.
[0022] In one possible implementation, the electronic device can input images of a first form of the cursor and a second form of the cursor into a first machine learning model to obtain similarity information generated by the first machine learning model; optionally, the similarity information can also indicate the degree of similarity between the first form and the second form of the cursor.
[0023] In one possible implementation, the similarity between the first and second forms of the cursor includes situations where the first category label and the second category label are the same, the first category label is the category label corresponding to the first form of the cursor, and the second category label is the category label corresponding to the second form of the cursor. Both the first and second category labels are obtained based on first information, which indicates the category label corresponding to each of the multiple forms of the cursor. For example, the electronic device may pre-deploy the first information, which may include identification information for each form of the cursor and the category label corresponding to that identification information. The electronic device can obtain the first identification information corresponding to the first form of the cursor, and based on the first identification information and the first information, obtain the first category label corresponding to the first identification information; obtain the second identification information corresponding to the second form of the cursor, and based on the second identification information and the first information, obtain the second category label corresponding to the second identification information; then, the electronic device determines whether the first and second forms of the cursor are similar based on the first and second category labels, thus obtaining the similarity information. Alternatively,
[0024] The similarity between the first and second forms of the cursor includes situations where the first group and the second group are the same, the first group is the group to which the first form of the cursor belongs, and the second group is the group to which the second form of the cursor belongs. Both the first and second groups are obtained based on second information, which indicates the group to which each of the multiple forms of the cursor belongs. For example, the electronic device may pre-deploy the second information. For instance, the second information may include identification information for each form of the cursor and the group corresponding to that identification information. The electronic device can then obtain the first identification information corresponding to the first form of the cursor, and based on the first identification information and the second information, obtain the first group corresponding to the first identification information; obtain the second identification information corresponding to the second form of the cursor, and based on the second identification information and the second information, obtain the second group corresponding to the second identification information; thus, the electronic device can determine whether the first and second forms of the cursor are similar based on the first and second groups, i.e., obtain the similarity information.
[0025] In this implementation, the category labels or groups corresponding to each of the multiple cursor forms are pre-deployed. Thus, after determining that the second form of the cursor needs to be used to display the cursor, the category labels or groups corresponding to the first and second forms of the cursor can be quickly determined. This allows for a rapid determination of whether there is similarity between the first and second forms of the cursor, thereby quickly obtaining the evolution process that matches the first and second forms of the cursor, which is beneficial to improving the efficiency of this solution.
[0026] In one possible implementation, the method may further include: the application or operating system in the electronic device determines the second shape of the cursor based on the obtained first instruction, and then inputs the third information into the preset API by calling the preset application programming interface (API) to obtain the fourth information.
[0027] The third information includes images of the cursor's first and second forms, or it includes first identifier information corresponding to the cursor's first form and second identifier information corresponding to the cursor's second form. The fourth information indicates that the cursor directly evolves from the first form to the second form, or it indicates that the cursor evolves from the first form to the third form, and then back to the second form. For example, if the fourth information indicates that the cursor evolves from the first form to the third form and then back to the second form, then the fourth information can be represented as an animation of the cursor evolving from the first form to the third form and then back to the second form; or, the fourth information can also be represented as code corresponding to the evolution process of the cursor evolving from the first form to the third form and then back to the second form, etc. The specific form of the fourth information can be determined based on the actual application scenario.
[0028] In this implementation, a fourth piece of information can be obtained by calling a preset API, namely, the evolution process of the cursor from the first form to the second form. In other words, this ability to provide the evolution process of the cursor between different forms is encapsulated. This ability can be invoked by calling the API, so that when the cursor form changes in various applications, the preset API can be called to obtain the evolution process of the cursor between different forms. This is beneficial for using this solution in more application scenarios, and various applications do not need to make too many modifications. Thus, various applications can easily use the capabilities provided by this solution, which not only helps users have a better visual experience when using various applications, but also expands the application scenarios of this solution.
[0029] In one possible implementation, the first instruction indicates a change in the cursor's shape; in other words, the first instruction can be used to request a change in the cursor's shape. Alternatively, the first instruction indicates the provision of a first function, which corresponds to a second shape of the cursor; in other words, the first instruction can be used to request the provision of a first function, and when the electronic device provides the first function to the user, the second shape of the cursor corresponds to that first function.
[0030] Furthermore, regarding the situation where the first instruction indicates a change in cursor shape, optionally, the first instruction can be obtained based on the cursor's position and / or the cursor's hover time. For example, in one application scenario, cursor deformation is triggered when the cursor's position is within the hot zone corresponding to the interactive control; then, the electronic device obtaining the first instruction may include: the electronic device generating the first instruction when the cursor's position enters the hot zone corresponding to the interactive control.
[0031] For example, in another application scenario, when the cursor's position is within the hot zone corresponding to the interactive control and a preset operation is obtained, the cursor's shape will change. In this case, the electronic device can obtain the first instruction by generating the first instruction when the cursor's position enters the hot zone corresponding to the interactive control and the preset operation is obtained.
[0032] For example, in another application scenario, when the cursor's position is within the hot zone corresponding to the interactive control and the cursor's hover time is greater than or equal to a first duration, the cursor's shape will change. In this case, the electronic device can obtain the first instruction by generating the first instruction when the cursor's position enters the hot zone corresponding to the interactive control and the cursor's hover time is greater than or equal to the first duration.
[0033] In the case where the first instruction prompts the provision of the first function, the first instruction may optionally be obtained through an input device. In this case, the electronic device obtaining the first instruction may include: the electronic device obtaining the first instruction through the input device.
[0034] This implementation provides two relationships between the first instruction and the second form of the cursor, expanding the application scenarios of this solution and improving its feasibility.
[0035] Secondly, this application provides a cursor display method that can be used in the terminal field. The method is applied in scenarios where the cursor interacts with the display interface. In this method, third information is obtained through a preset application programming interface (API), wherein the API is called by the application. The third information includes an image of a first form of the cursor and an image of a second form of the cursor, or the third information includes first identification information corresponding to the first form and second identification information corresponding to the second form. Based on the third information, fourth information is obtained. The fourth information indicates that the cursor directly evolves from the first form to the second form, or the fourth information indicates that the cursor evolves from the first form to the third form and then from the third form to the second form.
[0036] In one possible implementation, if there is similarity between the first form and the second form, the fourth information indicator cursor directly evolves from the first form to the second form; or, if there is no similarity between the first form and the second form, the fourth information indicator cursor evolves from the first form to the third form, and then from the third form to the second form.
[0037] In one possible implementation, after acquiring the third information, the electronic device can also input the first-form image and the second-form image of the cursor into the machine learning model to obtain the fourth information generated by the machine learning model.
[0038] In this implementation, images of the cursor's first and second forms are input into a machine learning model. The machine learning model then completes the cursor's evolution from the first to the second form, providing a smoother evolution process. Furthermore, the machine learning model can quickly obtain the cursor's evolution process between various forms, covering more cursor forms and enabling faster acquisition of the cursor's evolution process between different forms. This not only expands the application scenarios of this solution but also improves its efficiency.
[0039] In the second aspect of this application, the electronic device is also used to perform the steps of electronic execution in the first aspect and various possible implementations of the first aspect. The specific implementation process of the steps in the second aspect and various possible implementations of the second aspect, the meaning of the terms, and the beneficial effects brought about by each possible implementation can be referred to the description in the various possible implementations of the first aspect, and will not be repeated here.
[0040] Thirdly, this application provides a cursor display device that can be used in the terminal field. The cursor display device is applied in scenarios where the cursor interacts with a display interface. The device includes: a display module for displaying the cursor in a first form; a demonstration module for directly changing the cursor from the first form to a second form based on a first instruction, wherein the first instruction indicates the second form; or, a demonstration module for changing the cursor from the first form to a third form based on a first instruction, and then changing the cursor from the third form back to the second form, wherein the first instruction indicates the second form.
[0041] In the third aspect of this application, the cursor display device is also used to perform the electronically executed steps in the first aspect and various possible implementations of the first aspect. The specific implementation process of the steps in the third aspect and various possible implementations of the third aspect, the meaning of the terms, and the beneficial effects brought about by each possible implementation can be referred to the description in the various possible implementations of the first aspect, and will not be repeated here.
[0042] Fourthly, this application provides a cursor display device for use in the terminal field. This cursor display device is applied in scenarios where the cursor interacts with a display interface. The device includes: an acquisition module, configured to acquire third information via a preset application programming interface (API), wherein the API is called by an application, and the third information includes an image of a first form of the cursor and an image of a second form of the cursor, or the third information includes first identification information corresponding to the first form and second identification information corresponding to the second form; the acquisition module is further configured to acquire fourth information based on the third information, wherein the fourth information indicates that the cursor directly evolves from the first form to the second form, or the fourth information indicates that the cursor evolves from the first form to the third form, and then from the third form to the second form.
[0043] In the fourth aspect of this application, the cursor display device is also used to perform the electronically executed steps in the second aspect and various possible implementations of the second aspect. The specific implementation process of the steps in the fourth aspect and various possible implementations of the fourth aspect, the meaning of the terms, and the beneficial effects brought about by each possible implementation can be referred to the description in the various possible implementations of the second aspect, and will not be repeated here.
[0044] Fifthly, this application provides an apparatus including a processor and a memory, the processor being coupled to the memory, the memory being used to store a program; and the processor being used to execute the program in the memory, causing the apparatus to perform the method described in the first or second aspect above.
[0045] In a sixth aspect, this application provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the methods described in the first or second aspect above.
[0046] In a seventh aspect, this application provides a computer program product comprising a program that, when run on a computer, causes the computer to perform the methods described in the first or second aspect above.
[0047] Eighthly, this application provides a chip system including a processor and a communication interface. The communication interface is used to communicate with modules outside the chip system, and the processor is used to support the functions involved in the foregoing aspects. In one possible design, the chip system further includes a memory for storing necessary program instructions and data. This chip system may be composed of chips or may include chips and other discrete devices.
[0048] The fifth to eighth aspects of this application correspond to multiple possible ways of the first or second aspect and have corresponding beneficial effects. Attached Figure Description
[0049] Figure 1 is a schematic diagram of a scenario where the cursor interacts with the display interface, as provided in this application.
[0050] Figure 2 is a schematic diagram of an application scenario provided by an embodiment of this application;
[0051] Figure 3 is a flowchart illustrating a cursor display method provided in an embodiment of this application;
[0052] Figure 4 is a schematic diagram of multiple cursor forms provided in the embodiments of this application;
[0053] Figure 5 is another schematic diagram of the application scenario provided by the embodiments of this application;
[0054] Figure 6 is a schematic diagram showing a direct evolution from the first form to the second form according to an embodiment of this application;
[0055] Figure 7 is another schematic diagram showing the direct evolution from the first form to the second form according to an embodiment of this application;
[0056] Figure 8 is another schematic diagram showing the direct evolution from the first form to the second form according to an embodiment of this application;
[0057] Figure 9 is a schematic diagram of a second evolution method provided in an embodiment of this application;
[0058] Figure 10 is a schematic flowchart of another cursor display method provided in an embodiment of this application;
[0059] Figure 11 is a schematic diagram of a connected region provided in an embodiment of this application;
[0060] Figure 12 is a schematic diagram showing the correspondence between multiple cursor shapes and category labels provided in the embodiments of this application;
[0061] Figure 13 is a schematic diagram of a cursor display device provided in an embodiment of this application;
[0062] Figure 14 is a schematic diagram of another structure of the cursor display device provided in the embodiment of this application;
[0063] Figure 15 is a schematic diagram of a device provided in an embodiment of this application. Detailed Implementation
[0064] The embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are merely some, and not all, of the embodiments of this application. Those skilled in the art will recognize that, with the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0065] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the description of embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of units is not necessarily limited to those units, but may include other units not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0066] In the embodiments of this application, "instruction" can include direct and indirect instructions, as well as explicit and implicit instructions. The information indicated by a certain piece of information (hereinafter referred to as instruction information) is called the information to be instructed. In specific implementation, there are many ways to indicate the information to be instructed, such as, but not limited to, directly indicating the information to be instructed, such as the information to be instructed itself or its index. It can also indirectly indicate the information to be instructed by indicating other information, where there is an association between the other information and the information to be instructed; or it can indicate only a part of the information to be instructed, while the other parts are known or pre-agreed upon. For example, the instruction can be implemented by using a pre-agreed (e.g., protocol predefined) arrangement of various information, thereby reducing the instruction overhead to a certain extent. This application does not limit the specific method of instruction. It is understood that for the sender of the instruction information, the instruction information can be used to indicate the information to be instructed; for the receiver of the instruction information, the instruction information can be used to determine the information to be instructed.
[0067] The method provided in this application can be applied to various scenarios where interaction occurs between a cursor and a display interface, also known as a user interface (UI). A user interface is the medium through which an application or operating system interacts and exchanges information with the user; it converts the internal form of information into a form acceptable to the user. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. A graphical user interface can be interface elements such as icons, windows, and controls displayed on the physical display screen of an electronic device or a virtual reality screen. Controls can include visible interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, or navigation bars.
[0068] For example, please refer to Figure 1. Figure 1 is a schematic diagram of a scenario in which the present application provides interaction between a cursor and a display interface. In Figure 1, the electronic device is a laptop computer, and a hand-shaped cursor is displayed on the display interface of the electronic device. In portable document format (PDF) applications, users can interact with visual elements in the display interface using the hand-shaped cursor. It should be understood that the example in Figure 1 is only for the convenience of understanding this solution and is not intended to limit this solution.
[0069] It should be noted that the electronic devices mentioned in this application can specifically be laptops, desktop computers, mobile phones, e-readers, wearable devices, tablets, virtual reality (VR) devices, augmented reality (AR) devices, or other types of electronic devices, and the specifics can be determined based on the actual application scenario.
[0070] Optionally, the method provided in this application can be applied to scenarios where the cursor shape changes. This change in cursor shape can also be referred to as a change in cursor shape, cursor deformation, cursor form, or other names. For example, please refer to Figure 2, which is a schematic diagram of an application scenario provided by an embodiment of this application. Figure 2 shows that the cursor changes from a circular ring (i.e., the first form of the cursor in Figure 2) to two arrows pointing left and right (i.e., the second form of the cursor in Figure 2). It should be understood that the example in Figure 2 is only for the convenience of understanding this solution and is not intended to limit this solution.
[0071] Since the cursor is mostly positioned at the user's visual center when performing various tasks on the display interface, its display method significantly impacts the user's visual experience. This application provides a better cursor display method. Specifically, please refer to Figure 3, which is a flowchart illustrating a cursor display method provided in an embodiment of this application. The cursor display method provided in this application may include:
[0072] 301. Display the cursor in its first form.
[0073] 302. Based on the first instruction, the cursor directly changes from the first form to the second form, and the first instruction indicates the second form.
[0074] For example, when the electronic device displays the cursor in a first form, the electronic device can obtain a first instruction, which indicates a second form of the cursor, i.e., it is considered that a deformation scenario of the cursor has been detected. The electronic device can deploy at least two evolution methods, including a first evolution method and a second evolution method. The first evolution method is that the cursor directly evolves from the first form to the second form, and the second evolution method is that the cursor first evolves from the first form to the third form, and then from the third form to the second form. In one case, the electronic device can directly evolve the cursor from the first form to the second form of the cursor based on the obtained first instruction. It should be noted that the "first instruction" in this application can also be replaced by a "control instruction".
[0075] To understand this solution more intuitively, please refer to Figure 4 first. Figure 4 is a schematic diagram of multiple cursor forms provided in the embodiments of this application. Figure 4 shows 13 cursor forms. The first row shows the default cursor form: a circular ring. The second and third rows of Figure 4 show multiple cursor forms. It should be understood that the examples in Figure 4 are only for the convenience of understanding this solution and are not intended to limit this solution.
[0076] For example, the first instruction indicates a change in the cursor's shape; in other words, the first instruction can be used to request a change in the cursor's shape. Alternatively, the first instruction indicates the provision of a first function, which corresponds to a second shape of the cursor; in other words, the first instruction can be used to request the provision of a first function, and when the electronic device provides the first function to the user, the second shape of the cursor corresponds to that first function.
[0077] Furthermore, regarding the situation where the first instruction indicates a change in cursor shape, optionally, the first instruction can be obtained based on the cursor's position and / or the cursor's hover time. For example, in one application scenario, cursor deformation is triggered when the cursor's position is within the hot zone corresponding to the interactive control; in this scenario, the electronic device obtaining the first instruction may include: the electronic device generating the first instruction when the cursor's position enters the hot zone corresponding to the interactive control.
[0078] For example, in some application scenarios, the default display form of the cursor is a single arrow (an example of the first form). When the cursor moves to the input box (an example of the cursor's position being in the hot zone corresponding to the interactive control), the cursor form needs to be switched to an I-shape (an example of the second form). Alternatively, in some application scenarios, the default display form of the cursor is a circle (another example of the first form). When the cursor moves to the input box, the cursor form needs to be switched to an I-shape, etc. The specific form can be determined based on the actual application scenario.
[0079] Optionally, in another application scenario, when the cursor's position is within the hot zone corresponding to the interactive control and a preset operation is received, the cursor's shape will change. The electronic device obtaining the first instruction can then include: when the cursor's position enters the hot zone corresponding to the interactive control and the preset operation is received, the electronic device generates the first instruction. For example, in some application scenarios, the default cursor display shape is a circle. When the cursor moves onto an image and a click operation is performed on that image (i.e., an example of a preset operation), it is necessary to switch the cursor shape to a four-arrow shape, etc. This example is only for ease of understanding of this solution.
[0080] For example, in another application scenario, when the cursor's position is within the hotspot area corresponding to the interactive control and the cursor's hover time is greater than or equal to a first duration, the cursor's shape will change. In this case, the electronic device obtaining the first instruction may include: when the cursor's position enters the hotspot area corresponding to the interactive control and the cursor's hover time is greater than or equal to the first duration, the electronic device generates the first instruction. For instance, in some application scenarios, the default cursor display shape is a circle. When the cursor moves to the dividing line and the cursor's hover time is greater than or equal to the first duration, it is necessary to switch the cursor's shape to a two-arrow shape, etc. This example is only for ease of understanding of this solution.
[0081] To better understand this solution, let's take Figure 2 as an example. Referring to the left sub-diagram of Figure 2, in email applications, the default cursor shape is a circle. When the cursor is positioned on the dividing line and the cursor hover time is greater than or equal to the first duration, two arrows pointing to the left and right are used to display the cursor, thus indicating to the user that the dividing line is draggable. The cursor display shape can be seen in the right sub-diagram of Figure 2. It should be understood that this example is only for the convenience of understanding this solution.
[0082] For example, in another application scenario, when the cursor hover time is greater than or equal to the second duration, the cursor shape will change. In this case, the electronic device may obtain the first instruction by generating the first instruction when it detects that the cursor hover time is greater than or equal to the second duration.
[0083] Alternatively, the first instruction can also be obtained through an input device. An input device refers to a device that inputs data and information into an electronic device, and is one of the main devices for information exchange between the user and the electronic device. These include, but are not limited to, a mouse, keyboard, camera, writing tablet, stylus, touch panel, voice input device, and remote control. This application does not limit the type of input device. For example, in one application scenario, the default display form of the cursor includes a circular shape and a single arrow. This application scenario defines that the default display form of the cursor can be switched by inputting voice through a voice input device. In this scenario, the electronic device displays the cursor using a single arrow (an example of the first form). When the user inputs the voice command "switch cursor form" through the voice input device, the electronic device can obtain a first instruction corresponding to that voice command. For example, this first instruction can be used to switch the default display form of the cursor, that is, the first instruction indicates a change in the cursor's form, thus requiring the use of a circular shape (an example of the second form) to display the cursor.
[0084] In the case where the first instruction prompts the provision of the first function, optionally, the first instruction can be obtained through an input device, and the electronic device obtaining the first instruction may include: the electronic device obtaining the first instruction through an input device.
[0085] For example, in one application scenario, the current display form of the cursor is an "I" shape. This application scenario defines that when the mouse wheel is pressed, it triggers the entry into page scrolling mode. In page scrolling mode, the page will automatically scroll, and the cursor will be controlled to display as a hand shape. In this scenario, the electronic device uses an "I" shape (i.e., an example of the first form) to display the cursor. When the user performs a pressing operation on the mouse wheel, the electronic device can obtain a first instruction corresponding to the pressing operation. For example, the first instruction can be used to request the page to enter scrolling mode (i.e., an example of the first function), and the cursor is displayed in a hand shape (i.e., an example of the second form) corresponding to the page entering scrolling mode.
[0086] For example, in another application scenario, the current display form of the cursor is a ring. This application scenario defines that when the Alt key and the Z key on the keyboard are pressed simultaneously, it will trigger the screenshot mode, and the cursor will be controlled to be displayed as a colored arrow. In this scenario, the electronic device uses a ring (i.e., an example of the first form) to display the cursor. When the user presses the Alt key and the Z key on the keyboard at the same time, the electronic device can obtain a first instruction corresponding to the press operation. For example, the first instruction can be used to request to enter the screenshot mode (i.e., another example of the first function). The screenshot mode corresponds to the cursor being displayed in the form of a colored arrow (i.e., an example of the second form).
[0087] To understand this solution more intuitively, please refer to Figure 5. Figure 5 is another schematic diagram of the application scenario provided by the embodiment of this application. As shown in the left sub-schematic diagram of Figure 5, in portable document format (PDF) type applications, the default shape of the cursor is a hand shape. When the user presses the Ctrl key on the keyboard, the cursor needs to be displayed in a shape including 4 arrows. The display shape of the cursor can be referred to the right sub-schematic diagram of Figure 5. It should be understood that the example in Figure 5 is only for the convenience of understanding this solution and is not intended to limit this solution.
[0088] It should be understood that the above examples of various application scenarios for electronic devices to obtain the first instruction are only for the convenience of understanding this solution. The specific implementation solution can be determined in combination with the actual product form, and no limitation is made here.
[0089] In this embodiment, two relationships between the first instruction and the second form of the cursor are provided, which expands the application scenarios of this solution and improves its feasibility.
[0090] For example, in one case, the electronic device can directly change the cursor from the first form to the second form of the cursor based on the first instruction. This may include: after the electronic device receives the first instruction, it can determine the second form of the cursor corresponding to the first instruction. That is, after determining that the cursor needs to be displayed in the second form, it can determine the process of the cursor directly changing from the first form to the second form of the cursor, and change the cursor directly from the first form to the second form of the cursor on the display interface.
[0091] In another scenario, the electronic device, based on a first instruction, can directly transform the cursor from its first form to its second form. This transformation may involve the electronic device, upon receiving the first instruction, responding by displaying the cursor's transformation from its first form to its second form on the display interface. For example, in this scenario, the electronic device may pre-deploy a first evolution process corresponding to a portion of the first instruction. This first evolution process is the process of the cursor directly transforming from its first form to its second form. Therefore, after receiving the first instruction, the electronic device no longer needs to determine the second form of the cursor corresponding to the first instruction; instead, it simply invokes and displays the cursor's transformation from its first form to its second form.
[0092] For example, when the cursor's position is within the hot zone corresponding to an interactive control, the electronic device receives a first instruction and displays on the display interface the evolution process of the cursor directly changing from a first form to a second form. Another example is when the cursor's position enters the hot zone corresponding to an interactive control and the cursor's hover time is greater than or equal to a first duration, the electronic device receives a first instruction and displays on the display interface the evolution process of the cursor directly changing from a first form to a second form. Yet another example is when the electronic device receives a first instruction through an input device and displays on the display interface the evolution process of the cursor directly changing from a first form to a second form, and so on. These are not exhaustive examples in this application.
[0093] The first form and the second form of the cursor both include at least one graphic element. For example, the evolution rule for the cursor to directly evolve from the first form to the second form may include at least one of the following: adding or removing graphic elements, deforming graphic elements, splitting graphic elements, or other rules.
[0094] To more intuitively understand this solution, please refer to Figure 6. Figure 6 is a schematic diagram of a direct evolution from a first form to a second form provided by an embodiment of this application. Figure 6 shows two evolution processes using the first evolution method (i.e., evolution process 1 and evolution process 2 in Figure 6). The evolution rules corresponding to evolution process 1 and evolution process 2 are both adding or removing graphic elements. In evolution process 1, the first form of the cursor is a four-arrow shape, and the second form of the cursor is two arrows pointing to the left and right, as shown in Figure 6. Evolution process 1 achieves a direct evolution from the first form to the second form by removing graphic elements.
[0095] In evolution process 2, the first form of the cursor is the shape of four arrows. The second form of the cursor includes four arrows and a solid circle in the middle, as shown in Figure 6. In evolution process 2, the cursor can directly evolve from the first form to the second form by adding graphic elements. It should be understood that the example in Figure 6 is only for the convenience of understanding this scheme and is not intended to limit this scheme.
[0096] Please refer to Figure 7. Figure 7 is another schematic diagram of the direct evolution from the first form to the second form provided by the embodiment of this application. Figure 7 shows three evolution processes using the first evolution method (i.e., evolution process 3, evolution process 4, and evolution process 5 in Figure 7). In evolution process 3, the first form of the cursor is a ring, and the second form of the cursor is a cross-shaped blank space added to the solid circle. In evolution process 4, the first form of the cursor is a solid circle nested in a ring, and the second form of the cursor is a cross shape added to the magnifying glass. In evolution process 5, the first form of the cursor includes four arrows and a solid circle in the middle, and the second form of the cursor includes four line segments and a central dot. The evolution rules corresponding to evolution processes 3, 4, and 5 are all deformation of graphic elements. It should be understood that the examples in Figure 7 are only for the convenience of understanding this solution and are not intended to limit this solution.
[0097] Please refer to Figure 8. Figure 8 is another schematic diagram of the direct evolution from the first form to the second form provided by the embodiment of this application. In Figure 8, the first form of the cursor is a ring, and the second form of the cursor is two arrows pointing to the left and right. The evolution rules adopted in the evolution process 6 include splitting the graphic elements and deforming the graphic elements. It should be understood that the example in Figure 8 is only for the convenience of understanding this solution and is not intended to limit this solution.
[0098] 303. Based on the first instruction, the cursor evolves from the first form to the third form, and then from the third form to the second form of the cursor. The first instruction indicates the second form.
[0099] For example, when an electronic device displays a cursor in a first form, the electronic device can obtain a first instruction that indicates a second form of the cursor. Since at least two evolution methods can be deployed in the electronic device, including a first evolution method and a second evolution method, where the first evolution method is that the cursor directly evolves from the first form to the second form, and the second evolution method is that the cursor first evolves from the first form to the third form and then from the third form to the second form, in another case, the electronic device can, based on the obtained first instruction, evolve the cursor from the first form to the third form and then from the third form to the second form of the cursor.
[0100] For a detailed description of how the electronic device acquires the first instruction, please refer to the description in step 302 above, which will not be repeated here.
[0101] For example, in one scenario, the electronic device, based on a first instruction, causes the cursor to evolve from a first form to a third form, and then from the third form to a second form. This process can include: after receiving the first instruction, the electronic device can determine the second form of the cursor corresponding to the first instruction, that is, after determining that the cursor needs to be displayed in the second form, it can determine the evolution process of the cursor evolving from the first form to the third form, and then from the third form to the second form. On the display interface, the cursor is shown to evolve from the first form to the third form, and then from the third form to the second form.
[0102] In another scenario, the electronic device, based on a first instruction, causes the cursor to evolve from a first form to a third form, and then from the third form to a second form of the cursor. This can include the electronic device, after receiving the first instruction, responding to the first instruction by displaying on the display interface the second form of the cursor, which evolves from the first form to the third form and then from the third form to the second form of the cursor.
[0103] For example, in this case, the electronic device may pre-deploy a second evolution process corresponding to part of the first instruction. The second evolution process is the evolution process of the cursor evolving from the first form to the third form and then from the third form to the second form of the cursor. After the electronic device obtains the first instruction, it no longer needs to determine the second form of the cursor corresponding to the first instruction. Instead, it calls and displays the cursor evolving from the first form to the third form and then from the third form to the second form of the cursor.
[0104] For example, when the cursor's position is within the hot zone corresponding to an interactive control, the electronic device receives a first instruction and displays on the display interface the evolution process of the cursor corresponding to the first instruction, from a first form to a third form and then from the third form to the second form. Another example is when the cursor's position enters the hot zone corresponding to an interactive control and the cursor's hover time is greater than or equal to a first duration, the electronic device receives a first instruction and displays on the display interface the evolution process of the cursor corresponding to the first instruction, from a first form to a third form and then from the third form to the second form. Yet another example is when the electronic device receives a first instruction through an input device and displays on the display interface the evolution process of the cursor corresponding to the first instruction, from a first form to a third form and then from the third form to the second form, and so on. These are not exhaustive examples in this application.
[0105] The second evolution method involves the cursor first evolving from the first form to a specific third form, and then evolving from the aforementioned specific third form back to the second form. In other words, the cursor needs to go through a third form as a transition during the process of evolving from the first form to the second form.
[0106] For example, the evolution rules adopted by the cursor from the first form to the third form and the evolution rules adopted by the cursor from the third form to the second form can both include at least one of the following: adding or removing graphic elements, deforming graphic elements, splitting graphic elements, or other rules.
[0107] Optionally, the third form can be a ring; or, the third form can also be an elliptical ring, a solid circle, or other forms, depending on the specific application scenario. Furthermore, during the user's interaction with visible elements on the display interface using the cursor, step 302 may be executed multiple times using the second evolution method. If the third form is a ring, then optionally, rings of different thicknesses may be used when executing step 302 multiple times using the second evolution method. That is, the third form in different evolution processes can all be rings, but the thickness of the rings used in different evolution processes can be the same or different, depending on the specific application scenario.
[0108] In this embodiment, a specific third form is set as a ring, providing a concrete implementation scheme for the third form, which helps to reduce the implementation difficulty of this scheme; in addition, since the ring is relatively less sharp and users have a high visual acceptance of the ring, using the ring as the third form for transition helps to further reduce the abruptness of the cursor changing from the first form to the second form, which helps to further improve the user's visual experience.
[0109] To understand this solution more intuitively, please refer to Figure 9. Figure 9 is a schematic diagram of a second evolution method provided by an embodiment of this application. Figure 9 shows two evolution processes using the second evolution method (i.e., evolution process 7 and evolution process 8 in Figure 9). In evolution process 7, the first form of the cursor includes four arrows and a solid circle in the middle. The second form of the cursor is a vertical line segment. First, the evolution rules of deforming and reducing graphic elements are used to evolve the cursor from the first form to a ring (i.e., an example of the intermediate form). Then, the evolution rules of deforming graphic elements are used to evolve the cursor from a ring to the second form.
[0110] In evolution process 8, the first form of the cursor includes two arrows pointing to the left and right, and the second form of the cursor includes four arrows and a solid circle in the middle. First, the evolution rule of deforming graphic elements is used to evolve the cursor from the first form to a ring. Then, the evolution rule of deforming graphic elements and adding graphic elements is used to evolve the cursor from a ring to the second form. It should be understood that the example in Figure 9 is only for the convenience of understanding this scheme and is not intended to limit this scheme.
[0111] Since users typically keep their eyes on the cursor, a sudden jump from the first to the second form would be disruptive and degrade the user's visual experience. This application, however, shows a smoother transition from the first to the second form, providing a more seamless visual experience. Users are not interrupted as they observe the cursor's evolution, thus improving the overall visual experience. Furthermore, this application proposes two different evolution methods, allowing for flexible selection of the method used when the first form transforms into the second, increasing the flexibility of the solution and enabling the selection of the easier method from at least two options. The method of first transforming the cursor into the third form and then back to the second form adds an intermediate state as a transition, further enhancing the smoothness of the transition and improving the user's visual experience.
[0112] Optionally, based on the embodiment corresponding to FIG3, please refer to FIG10. FIG10 is another schematic flowchart of the cursor display method provided in the embodiment of this application. The cursor display method provided in this application may include:
[0113] 1001. Display the cursor in its first form.
[0114] The execution subject of step 1001 can be either the operating system in the electronic device or an application (APP) in the electronic device, which can be determined according to the actual application scenario.
[0115] 1002. Based on the first instruction obtained, determine the second shape of the cursor.
[0116] In this embodiment, step 1002 is an optional step. After receiving the first instruction, the application or operating system in the electronic device can determine the second form of the cursor indicated by the first instruction. For example, in one case, the first instruction indicates a change in the form of the cursor; or in another case, the first instruction indicates the provision of a first function, which corresponds to the second form of the cursor. The application scenarios of the above two cases can be referred to the description in the embodiment corresponding to Figure 3 above, and will not be repeated here.
[0117] 1003. Obtain third information, wherein the third information includes an image of the first form of the cursor and an image of the second form of the cursor, or the third information includes first identification information corresponding to the first form of the cursor and second identification information corresponding to the second form of the cursor.
[0118] In this embodiment, step 1003 is an optional step. After determining that the cursor needs to be displayed in the second form, the application or operating system in the electronic device can obtain third information corresponding to the first and second forms of the cursor.
[0119] For example, both the first identification information and the second identification information are identification information that can uniquely identify a certain form of the cursor; the aforementioned identification information can be specifically represented as a sequence of numbers, in which case the first identification information and the second identification information can be two different numerical codes, for example, the first identification information can be 000001 and the second identification information can be 000002; or, the aforementioned identification information can be specifically represented as a sequence of numbers and letters, for example, the first identification information can be A000001 and the second identification information can be A000002, or, the aforementioned identification information can also be represented in other forms, which can be determined in combination with the actual application scenario, and are not limited in the embodiments of this application.
[0120] Optionally, after obtaining the third information, the application program or operating system in the electronic device can also call a preset application programming interface (API) to input the third information into the preset API; correspondingly, the operating system in the electronic device can obtain the third information through the preset API; and then the operating system in the electronic device can determine the fourth information based on the third information, and the fourth information indicates the evolution process of the cursor from the first form to the second form.
[0121] Alternatively, after obtaining the third information, the application or operating system in the electronic device can transmit the third information to another application in the electronic device, which can then determine the fourth information based on the third information.
[0122] 1004. Obtain similarity information corresponding to the first and second forms of the cursor.
[0123] In this embodiment of the application, step 1004 is an optional step. The execution subject of step 1004 can be the operating system in the electronic device or the application in the electronic device, which can be determined according to the actual application scenario.
[0124] For example, if the similarity information can indicate whether there is similarity between the first shape and the second shape of the cursor, then step 1004 may include: the electronic device determining whether there is similarity between the first shape and the second shape of the cursor, thereby obtaining the similarity information.
[0125] Specifically, in one scenario, the factors considered in determining the similarity between the first and second forms of the cursor include at least one of the following: the cursor's outline shape, the number of connected regions included by the cursor, the number of graphic elements included by the cursor, the distribution pattern of the graphic elements included by the cursor, or other elements, which can be determined based on the actual application scenario. For example, an electronic device can acquire images of the first and second forms of the cursor based on third information; then, based on these images, it can determine whether there is similarity between the first and second forms of the cursor, thereby obtaining the similarity information.
[0126] Furthermore, in one implementation, if the third information includes images of the cursor's first and second forms, the electronic device can directly obtain these images from the third information. In another implementation, if the third information includes first and second identification information, the electronic device can pre-store the first information, which includes images corresponding to each identification information of the cursor. The electronic device can then obtain the image corresponding to the first identification information (i.e., the image of the cursor's first form) from the first information based on the first identification information, and obtain the image corresponding to the second identification information (i.e., the image of the cursor's second form) from the first information based on the second identification information.
[0127] For example, the electronic device can obtain the outline shape category of the first form of the cursor and the outline shape category of the second form of the cursor. Optionally, the outline shape category of a certain form of the cursor can be any of the following: circular, linear, multi-element, no category, or other categories. For example, the electronic device can extract the outer outline graphic of the cursor shape based on the image of the first form of the cursor, identify the geometric shape category of the outer outline graphic, and determine the geometric shape category of the outer outline graphic as the outline shape category of the first form of the cursor. The method for determining the outline shape category of the second form of the cursor can refer to the aforementioned method, which will not be repeated in this embodiment. It should be noted that if the outline shape of a certain form of the cursor includes multiple independent graphic elements, the outline shape category can be determined as multi-element or no category. Referring to Figure 4 above, for example, the third row of Figure 4 shows six forms of the cursor from left to right. The outline shapes of the third to sixth forms from the left all include multiple independent graphic elements. Therefore, the outline shape category corresponding to these four forms of the cursor can be determined as multi-element or no category. It should be understood that the example here is only for the convenience of understanding this solution.
[0128] For example, a connected region is filled with the same color, and any two points within the connected region are interconnected. The number of connected regions included in a certain shape of the cursor (e.g., the first shape or the second shape) can be the number of connected regions corresponding to the target color. In other words, the number of connected regions included in a certain shape of the cursor can be the number of connected regions with a certain fill color (hereinafter referred to as the "target color") included in the first shape of the cursor. For example, if the target color is gray, the number of connected regions included in a certain shape of the cursor can be the number of connected regions with gray fill color included in the first shape of the cursor; as another example, if the target color is black, the number of connected regions included in a certain shape of the cursor can be the number of connected regions with black fill color included in the first shape of the cursor; as yet another example, if the target color is white, the number of connected regions included in a certain shape of the cursor can be the number of connected regions with white fill color included in the first shape of the cursor, and so on. The examples here are only for the purpose of understanding this solution.
[0129] Optionally, the target color can be the fill color of the outermost outline of a certain shape of the cursor, or it can be any fill color of a certain shape of the cursor, etc. The specific color can be determined based on the actual application scenario.
[0130] For example, if all regions of the target color included in a certain shape of the cursor can be connected to each other, then the number of connected regions of that shape of the cursor is 1; if there are multiple regions of the target color included in a certain shape of the cursor that cannot be connected to each other, then the number of connected regions of that shape of the cursor is multiple.
[0131] For example, the electronic device can determine the number of connected regions included in the first shape of the cursor based on an image of the first shape of the cursor; and determine the number of connected regions included in the second shape of the cursor based on an image of the second shape of the cursor. For instance, the electronic device can add multiple points and lines connecting any two points within the target color area included in the first shape of the cursor. If any two points among the aforementioned multiple points can be connected by a line between them, and the line between the points does not need to pass through other fill colors, then these multiple points are considered to be located within the same connected region; if the aforementioned conditions are not met, then the number of connected regions included in the first shape of the cursor is at least two.
[0132] To more intuitively understand this solution, please refer to Figure 11. Figure 11 is a schematic diagram of a connected region provided in an embodiment of this application. Figure 11 includes a left sub-schematic diagram and a right sub-schematic diagram. In the left sub-schematic diagram of Figure 11, any two points among the multiple points included in the gray area can be connected by a line, and the line between the points does not need to pass through other fill colors. Therefore, the cursor shape shown in the left sub-schematic diagram of Figure 11 includes 1 connected region, which can also be understood as a single connected region. In the right sub-schematic diagram of Figure 11, when the two inner points are connected to the outer point, they need to pass through the white area. Therefore, the cursor shape shown in the right sub-schematic diagram of Figure 11 includes 2 connected regions. It should be understood that the example in Figure 11 is only for the convenience of understanding this solution and is not intended to limit this solution.
[0133] For example, the electronic device can also obtain the number of graphic elements included in the outline of the first form of the cursor, obtain the number of graphic elements included in the outline of the second form of the cursor, that is, obtain the number of graphic elements included in the outermost outline of the first or second form of the cursor. Optionally, the electronic device can identify the number of independent elements included in the outline of a certain form of the cursor (which can be the first or second form), identify the number of graphic elements contained in each independent element, and thus determine the number of graphic elements included in the outline of a certain form of the cursor; wherein, an independent element refers to a closed outline, and the number of graphic elements contained in each independent element can be determined based on the number of fill colors contained in that independent element. For example, if another fill color is identified in a certain independent element, then that independent element can include two graphic elements, namely: the graphic element of the outer outline and the graphic element of the inner fill.
[0134] To better understand this solution, we will illustrate it using the various cursor forms shown in Figure 4 above. For example, the default cursor form is a ring. The outline of this ring includes a single element. Since this single element contains two fill colors (i.e., gray and white in Figure 4), the ring includes two graphic elements. As another example, counting from left to right in the second row of Figure 4, the first three cursor forms each include two graphic elements. The last three cursor forms each include three graphic elements. Similarly, counting from left to right in the third row of Figure 4, the first two cursor forms each include one graphic element. The third through fifth cursor forms each include four graphic elements. The last cursor form includes two graphic elements. It should be understood that these examples are only for illustrative purposes and are not intended to limit the solution.
[0135] For example, the electronic device can also obtain the number of graphic elements included in the first form of the cursor and the number of graphic elements included in the second form of the cursor. Optionally, the electronic device can identify all the independent elements included in a certain form of the cursor (which can be the first form or the second form), identify the number of graphic elements contained in each independent element, and thus determine the total number of graphic elements included in a certain form of the cursor. The meaning of the number of independent elements and the number of graphic elements can be found in the above description and will not be repeated here.
[0136] To better understand this solution, we will use the various cursor forms shown in Figure 4 above as an example. For instance, counting from left to right in the third row of Figure 4, the third and fourth cursor forms include five graphic elements. It should be understood that this example is only for the convenience of understanding this solution and is not intended to limit this solution.
[0137] For example, the distribution pattern of the graphic elements included in a certain form of the cursor (e.g., the first form or the second form) can be any of the following: nested distribution, symmetrical distribution, discrete distribution or other types of distribution patterns, etc., which are not exhaustively listed in the embodiments of this application.
[0138] Optionally, in one scenario, the similarity between the first and second forms of the cursor (also referred to as "the first and second forms of the cursor satisfying the similarity condition") includes: the first and second forms of the cursor have the same outline shape category, and the first and second forms of the cursor include the same number of connected regions. For example, the electronic device can determine whether the outline shape category of the first form of the cursor and the outline shape category of the second form of the cursor are the same, and whether the number of connected regions included in the first form of the cursor and the number of connected regions included in the second form of the cursor are the same. If the aforementioned determination results are both yes, it is determined that the first and second forms of the cursor are similar. If the outline shape categories of the first and second forms of the cursor are different, or the number of connected regions included in the first and second forms of the cursor are different, it is determined that the first and second forms of the cursor are not similar.
[0139] In another scenario, the similarity between the first and second forms of the cursor includes the following: the first and second forms of the cursor have the same outline shape category, the first and second forms of the cursor include the same number of graphic elements, and the distribution pattern of the graphic elements in the first form of the cursor is the same as the distribution pattern of the graphic elements in the second form. For example, the electronic device can determine whether the outline shape category of the first form of the cursor and the outline shape category of the second form of the cursor are the same, whether the number of graphic elements in the first form of the cursor and the number of graphic elements in the second form of the cursor are the same, and whether the distribution pattern of the graphic elements in the first form of the cursor and the distribution pattern of the graphic elements in the second form of the cursor are the same. If all the aforementioned determinations are true, the first and second forms of the cursor are determined to be similar. If the outline shape categories of the first and second forms of the cursor are different, or the number of graphic elements in the first and second forms of the cursor are different, or the distribution pattern of the graphic elements in the first and second forms of the cursor is different, the first and second forms of the cursor are determined to be dissimilar.
[0140] In another scenario, the similarity between the first and second forms of the cursor includes situations where the first and second forms of the cursor have the same outline shape category, and the number of graphic elements included in the outer outline of the first and second forms of the cursor is the same. For example, the electronic device can determine whether the outline shape category of the first form of the cursor and the outline shape category of the second form of the cursor are the same, and whether the number of graphic elements included in the outer outline of the first form of the cursor and the number of graphic elements included in the outer outline of the second form of the cursor are the same. If the aforementioned determination results are both yes, it is determined that the first and second forms of the cursor are similar. If the outline shape categories of the first and second forms of the cursor are different, or if the number of graphic elements included in the outer outline of the first and second forms of the cursor is different, it is determined that the first and second forms of the cursor are not similar.
[0141] It should be noted that electronic devices can also use other methods to determine whether there is similarity between the first and second forms of the cursor. The specific method can be determined based on the actual application scenario, and no exhaustive list is provided in this application embodiment.
[0142] In this embodiment, several dimensions are provided for considering whether the first and second forms of the cursor are similar, reducing the implementation difficulty of this solution. Furthermore, since users pay close attention to the outline of the cursor, judging whether the first and second forms of the cursor are similar based on the outline of the cursor is consistent with the user's visual experience. The number of connected regions included in the cursor, the number of graphic elements included in the cursor, and the distribution pattern of the graphic elements included in the cursor can all reflect the overall information of the cursor. Therefore, judging whether the two forms of the cursor are similar based on the number of connected regions included in the cursor, the number of graphic elements included in the cursor, and / or the distribution pattern of the graphic elements included in the cursor is conducive to obtaining a more accurate judgment, and thus conducive to providing users with an evolution process that adapts to the first and second forms of the cursor.
[0143] By clarifying the two cases where the first and second forms of the cursor are similar, the implementation difficulty of this solution is reduced, and the implementation flexibility is improved. In addition, when the two forms of the cursor have the same outline shape category and include the same number of connected regions, or when the two forms of the cursor have the same outline shape category, include the same number of graphic elements, and have the same distribution pattern of graphic elements, not only do the two forms of the cursor appear similar from the user's perspective, but the overall structure of the cursor is also similar. Therefore, in the aforementioned two cases, the evolution process of the cursor from the first form to the second form will be relatively simple. In these two cases, the direct evolution method will not only consume less computer resources, but also will not feel abrupt to the user's vision, which is conducive to providing a smoother visual experience.
[0144] In another scenario, the electronic device can input images of the first and second forms of the cursor into a machine learning model (hereinafter referred to as the "first machine learning model" for ease of distinction) to obtain similarity information generated by the first machine learning model. This similarity information indicates whether there is similarity between the first and second forms of the cursor. Optionally, this similarity information can also indicate the degree of similarity between the first and second forms of the cursor.
[0145] In another scenario, the similarity between the first and second forms of the cursor (also known as the satisfying of the similarity condition between the first and second forms of the cursor) includes the following: the first category label and the second category label are the same. That is, if the first category label and the second category label are different, then the first and second forms of the cursor are not similar; if the first category label and the second category label are the same, then the first and second forms of the cursor are similar. Here, the first category label is the category label corresponding to the first form of the cursor, and the second category label is the category label corresponding to the second form of the cursor.
[0146] For example, in one implementation, the electronic device may pre-deploy first information indicating the category label corresponding to each of the multiple forms of the cursor. For example, the first information may include the identification information of each form of the cursor and the category label corresponding to the identification information. Then, the electronic device can obtain the first identification information corresponding to the first form of the cursor from the third information, and obtain the first category label corresponding to the first identification information based on the first identification information and the first information; obtain the second identification information corresponding to the second form of the cursor from the third information, and obtain the second category label corresponding to the second identification information based on the second identification information and the first information; then, the electronic device can determine whether there is similarity between the first form and the second form of the cursor based on the first category label and the second category label, that is, obtain the similarity information.
[0147] Optionally, the first information is updatable. For example, the category labels in the first information can be added or removed. Or, the cursor shape included in the first information can be added or removed. Or, the category label corresponding to a certain cursor shape in the first information can be changed. The specific update method can be determined in combination with the actual application scenario.
[0148] In another implementation, the electronic device can input an image of the first form of the cursor into a second machine learning model to obtain the first category label generated by the second machine learning model; input an image of the second form of the cursor into the second machine learning model to obtain the second category label generated by the second machine learning model; and then the electronic device can determine whether there is similarity between the first form and the second form of the cursor based on the first category label and the second category label, that is, obtain the similarity information.
[0149] For example, the multiple category labels included in the first information include, but are not limited to: simply connected + circle, simply connected + linear, multi-connected + circle, multi-connected + multi-element, or other category labels. To more intuitively understand this solution, please refer to Figure 12, which is a schematic diagram of the correspondence between multiple cursor shapes and category labels provided in the embodiments of this application. In Figure 12, the category labels corresponding to the four cursor shapes shown in the first row are all simply connected + circle, the category labels corresponding to the three cursor shapes shown in the second row are all multi-connected + circle, the category labels corresponding to the two cursor shapes shown in the third row are all simply connected + linear, and the category labels corresponding to the four cursor shapes shown in the fourth row are all multi-connected + multi-element. It should be understood that the examples in Figure 12 are only for the convenience of understanding this solution and are not intended to limit this solution.
[0150] For example, the first information may include multiple category labels, including but not limited to: simply connected + circular, simply connected + linear, multi-connected + circular, multi-connected + symmetric, or other category labels. The specific category labels can be determined based on the actual application scenario.
[0151] In another scenario, the similarity between the first and second forms of the cursor (also known as the satisfying of the similarity condition between the first and second forms of the cursor) includes the following: the first group and the second group are the same, that is, if the first group and the second group are different, then the first and second forms of the cursor are not similar; if the first group and the second group are the same, then the first and second forms of the cursor are similar. Here, the first group is the group to which the first form of the cursor belongs, and the second group is the group to which the second form of the cursor belongs. Both the first group and the second group are obtained based on the second information, which indicates the group to which each of the multiple forms of the cursor belongs. For example, the electronic device may pre-deploy second information. For instance, the second information may include identification information for each form of the cursor and a group corresponding to the identification information. The electronic device can then obtain the first identification information corresponding to the first form of the cursor from the third information, and obtain the first group corresponding to the first identification information based on the first identification information and the second information; obtain the second identification information corresponding to the second form of the cursor from the third information, and obtain the second group corresponding to the second identification information based on the second identification information and the second information; thereby, the electronic device can determine whether there is similarity between the first form and the second form of the cursor based on the first group and the second group, that is, obtain the similarity information.
[0152] In this embodiment, category labels or groups corresponding to each of the multiple cursor forms are pre-deployed. Thus, after determining that the cursor needs to be displayed in the second form, the category labels or groups corresponding to the first and second forms of the cursor can be quickly determined. This allows for a rapid determination of whether there is similarity between the first and second forms of the cursor, thereby quickly obtaining the evolution process that matches the first and second forms of the cursor, which is beneficial to improving the efficiency of this solution.
[0153] 1005. Based on the third information, obtain the fourth information. The fourth information indicates that the cursor directly evolves from the first form to the second form, or the fourth information indicates that the cursor evolves from the first form to the third form, and then from the third form to the second form.
[0154] In this embodiment, step 1005 is an optional step. The executing entity of step 1005 can be the operating system in the electronic device or an application program in the electronic device, which can be determined according to the actual application scenario. For example, if the fourth information indicates that the cursor directly evolves from the first form to the second form, then the fourth information can be represented as an animation of the cursor directly evolving from the first form to the second form; or, the fourth information can also be represented as code corresponding to the evolution process of the cursor directly evolving from the first form to the second form. For example, if the fourth information indicates that the cursor evolves from the first form to the third form and then from the third form to the second form, then the fourth information can be represented as an animation of the cursor evolving from the first form to the third form and then from the third form to the second form; or, the fourth information can also be represented as code corresponding to the evolution process of the cursor evolving from the first form to the third form and then from the third form to the second form, etc. The specific form of the fourth information can be determined according to the actual application scenario.
[0155] Optionally, if the first and second forms of the cursor are similar, the fourth information indicates that the cursor directly evolves from the first form to the second form; if the first and second forms of the cursor are not similar, the fourth information indicates that the cursor evolves from the first form to the third form, and then from the third form to the second form; in other words, if the first and second forms of the cursor are similar, the evolution process indicated by the fourth information is the first evolution method, and if the first and second forms of the cursor are not similar, the evolution process indicated by the fourth information is the second evolution method.
[0156] In this embodiment, if the first and second forms of the cursor are similar, the evolution process of the cursor from the first form to the second form is relatively simple and consumes less computer resources, so a direct evolution method can be used. If the first and second forms of the cursor are not similar, the evolution process of the cursor directly evolving from the first form to the second form will not only be abrupt, but also more complex. After using the third form as a transition, it is not only beneficial to reduce the difficulty of the entire evolution process, but also beneficial to provide a smoother visual effect, so as to further improve the user's visual experience.
[0157] Regarding the specific implementation process of an electronic device obtaining fourth information based on third information, for example, in one implementation, the electronic device may deploy multiple evolution animations that correspond to the cursor evolving between different forms. The electronic device can obtain the evolution animation of the cursor evolving from the first form to the second form from the aforementioned multiple evolution animations based on the third information, that is, obtain the fourth information.
[0158] For example, the above-mentioned multiple evolution animations of the cursor evolving between different forms can be specifically represented as: an evolution animation corresponding to each set of identification information in multiple sets of identification information, each set of identification information including the identification information corresponding to the form before the cursor evolves, and the identification information corresponding to the form after the cursor evolves; the electronic device can obtain the first identification information and the second identification information from the third information, and then obtain an evolution animation corresponding to the first identification information and the second identification information.
[0159] In another implementation, the electronic device can obtain images of the first and second forms of the cursor based on the third information. For details on the implementation, please refer to the description in step 1004 above, which will not be repeated here. The images of the first and second forms of the cursor are then input into the third machine learning model to obtain the fourth information generated by the third machine learning model.
[0160] In this embodiment, images of the first and second forms of the cursor are input into a machine learning model. The machine learning model completes the evolution process of the cursor from the first to the second form, which helps to provide a smoother evolution process by leveraging the capabilities of the machine learning model. Furthermore, the machine learning model can quickly obtain the evolution process of the cursor between various forms, which is beneficial for covering more forms of the cursor and for obtaining the evolution process of the cursor between different forms more quickly. This not only helps to expand the application scenarios of this solution but also helps to improve the efficiency of this solution.
[0161] Optionally, if step 1004 is performed, step 1005 may include: the electronic device obtaining fourth information based on the third information and similarity information. For example, in one implementation, the electronic device may obtain an image of a first form of the cursor and an image of a second form of the cursor based on the third information, and input the images of the first and second forms of the cursor, along with the similarity information, into a fourth machine learning model to obtain the fourth information generated by the fourth machine learning model.
[0162] In another implementation, the electronic device can obtain images of the first and second forms of the cursor based on third information. If the similarity information indicates that the first and second forms of the cursor are similar, then the images of the first and second forms of the cursor are input into a fifth machine learning model to obtain fourth information generated by the fifth machine learning model. The fourth information indicates the evolution process of the cursor directly evolving from the first form to the second form. If the similarity information indicates that the first and second forms of the cursor are not similar, then the images of the first and second forms of the cursor are input into a sixth machine learning model to obtain fourth information generated by the sixth machine learning model. The fourth information indicates the evolution process of the cursor evolving from the first form to the third form, and then from the third form back to the second form.
[0163] In another implementation, multiple evolution animations are deployed in the electronic device. When the similarity information indicates that the first and second forms of the cursor are similar, the evolution animation in which the cursor directly evolves from the first form to the second form can be obtained from the multiple evolution animations based on the first and second identification information to obtain the fourth information. When the similarity information indicates that the first and second forms of the cursor are not similar, the evolution animation in which the cursor evolves from the first form to the third form can be obtained from the multiple evolution animations based on the first identification information, and the evolution animation in which the cursor evolves from the third form to the second form can be obtained based on the second identification information. Thus, the evolution animation in which the cursor evolves from the first form to the third form and then from the third form to the second form can be obtained, thereby obtaining the fourth information.
[0164] Optionally, the execution entity of step 1005 (optionally, also includes step 1004) can also be the operating system in the electronic device. The application or operating system in the electronic device inputs the third information into the preset API by calling the preset API. The operating system in the electronic device can obtain the third information through the API, and obtain the fourth information based on the third information. The fourth information indicates that the cursor directly evolves from the first form to the second form, or the fourth information indicates that the cursor evolves from the first form to the third form, and then from the third form to the second form. Then, the evolution process of the cursor between different forms is displayed in subsequent steps 1006 or 1007.
[0165] In this embodiment, the fourth information, namely the evolution process of the cursor from the first form to the second form, can be obtained by calling a preset API. In other words, the ability to provide the evolution process of the cursor between different forms is encapsulated. This ability can be called by calling the API, so that when the cursor form changes in various applications, the preset API can be called to obtain the evolution process of the cursor between different forms. This is beneficial for using this solution in more application scenarios, and various applications do not need to make too many modifications. Thus, various applications can easily use the capabilities provided by this solution, which not only helps users have a better visual experience when using various applications, but also expands the application scenarios of this solution.
[0166] Alternatively, the execution subject of step 1005 (optionally, also including step 1004) can also be an application in the electronic device. After the application in the electronic device obtains the evolution animation of the cursor from the first form to the second form, the operating system in the electronic device can display the evolution process of the cursor from the first form to the second form, etc. The specific execution subject of the above steps 1001 to 1005 can be determined in combination with the actual application scenario, and is not limited in this application embodiment.
[0167] 1006. Directly change the cursor from its first form to its second form.
[0168] 1007. Evolve the cursor from the first form to the third form, and then from the third form to the second form of the cursor.
[0169] The specific implementation of steps 1006 and 1007 by the electronic device, as well as the meanings of the terms in steps 1006 and 1007, can be found in the descriptions in the embodiments corresponding to Figure 3 above. Repeated parts will not be repeated here.
[0170] It should be noted that steps 1002 to 1005 are optional steps. If steps 1002 to 1005 are not executed, the electronic device can also display the cursor on the display interface directly from the first form to the second form of the cursor based on the first instruction, or display the cursor on the display interface from the first form to the third form, and then from the third form to the second form of the cursor based on the first instruction. The specific implementation of the aforementioned steps can also be referred to the description in the embodiment corresponding to Figure 3 above, and will not be repeated here.
[0171] Based on the embodiments corresponding to Figures 1 to 12, in order to better implement the above-mentioned solutions of the embodiments of this application, related devices for implementing the above-mentioned solutions are also provided below. Specifically, referring to Figure 13, Figure 13 is a structural schematic diagram of a cursor display device provided in the embodiments of this application. The cursor display device 1300 is applied in a scenario where the cursor interacts with the display interface. The cursor display device 1300 includes: a display module 1301, used to display the cursor in a first form; a demonstration module 1302, used to, based on a first instruction, directly evolve the cursor from the first form to a second form of the cursor, with the first instruction indicating the second form; or, the demonstration module 1302, used to, based on a first instruction, evolve the cursor from the first form to a third form, and then from the third form to the second form of the cursor, with the first instruction indicating the second form.
[0172] Alternatively, the third form is a ring.
[0173] Optionally, if there is similarity between the first form and the second form, the cursor directly evolves from the first form to the second form; or, if there is no similarity between the first form and the second form, the cursor evolves from the first form to the third form, and then from the third form to the second form.
[0174] Optionally, the reference factors for the similarity between the first form and the second form include at least one of the following: the outline shape of the cursor, the number of connected regions included by the cursor, the number of graphic elements included by the cursor, and the distribution pattern of the graphic elements included by the cursor, wherein a connected region is filled with the same color and any two points in a connected region are interconnected.
[0175] Optionally, the similarity between the first form and the second form includes situations where the first form and the second form have the same outline shape category, and the first form and the second form include the same number of connected regions; or,
[0176] The first form and the second form have the same outline shape category, and the first form and the second form include the same number of graphic elements, and the distribution pattern of the graphic elements in the first form is the same as the distribution pattern of the graphic elements in the second form.
[0177] Optionally, the similarity between the first form and the second form includes: the first category label and the second category label are the same, wherein the first category label is the category label corresponding to the first form, and the second category label is the category label corresponding to the second form; both the first category label and the second category label are obtained based on the first information, and the first information indicates the category label corresponding to each of the multiple forms of the cursor; or,
[0178] The first group is the same as the second group. The first group is the group to which the first form belongs, and the second group is the group to which the second form belongs. Both the first group and the second group are obtained based on the second information, which indicates the group to which each of the multiple forms of the cursor belongs.
[0179] Optionally, the cursor display device 1300 further includes: a determination module 1303, used to determine a second form based on a first instruction; an input module 1304, used to input third information into a preset application programming interface (API) to obtain fourth information; wherein the third information includes an image of the first form and an image of the second form, or the third information includes first identification information corresponding to the first form and second identification information corresponding to the second form; the fourth information indicates that the cursor directly evolves from the first form to the second form, or the fourth information indicates that the cursor evolves from the first form to the third form, and then from the third form to the second form.
[0180] Optionally, the first instruction indicates a change in the cursor's shape; or, the first instruction indicates the provision of a first function, which corresponds to a second shape.
[0181] It should be noted that the information interaction and execution process between the modules / units in the cursor display device 1300 are based on the same concept as the various method embodiments corresponding to Figures 1 to 12 in this application. For details, please refer to the description in the method embodiments shown above in this application, which will not be repeated here.
[0182] Referring to Figure 14, which is a schematic diagram of another structure of the cursor display device provided in this application embodiment, the cursor display device 1400 is applied in a scenario where the cursor interacts with the display interface. The cursor display device 1400 includes: an acquisition module 1401, used to acquire third information through a preset application programming interface (API), wherein the API is called by the application, and the third information includes an image of a first form of the cursor and an image of a second form of the cursor, or the third information includes first identification information corresponding to the first form and second identification information corresponding to the second form; the acquisition module 1401 is also used to acquire fourth information based on the third information, wherein the fourth information indicates that the cursor directly evolves from the first form to the second form, or the fourth information indicates that the cursor evolves from the first form to the third form and then from the third form to the second form.
[0183] Optionally, if there is similarity between the first form and the second form, the fourth information indicator cursor directly evolves from the first form to the second form; or, if there is no similarity between the first form and the second form, the fourth information indicator cursor evolves from the first form to the third form, and then from the third form to the second form.
[0184] Optionally, the cursor display device 1400 further includes an input module 1402, used to input the first-form image and the second-form image of the cursor into the machine learning model to obtain the fourth information generated by the machine learning model.
[0185] It should be noted that the information interaction and execution process between the modules / units in the cursor display device 1400 are based on the same concept as the various method embodiments corresponding to Figures 1 to 12 in this application. For details, please refer to the description in the method embodiments shown above in this application, which will not be repeated here.
[0186] This application also provides a device, as shown in FIG15, which is a schematic diagram of the structure of the device provided in this application embodiment. Optionally, the device 1500 executes the methods executed by the electronic device in the various method embodiments corresponding to FIG1 to FIG12.
[0187] Device 1500 includes at least one processor 1501, and optionally, device 1500 also includes a memory 1502. The processor 1501 implements the methods in the above embodiments by reading instructions stored in the memory 1502, or the processor 1501 may also implement the methods in the above embodiments using instructions stored internally. When the processor 1501 implements the methods in the above embodiments by reading instructions stored in the memory 1502, the memory 1502 stores instructions for implementing the methods provided in the above embodiments of this application.
[0188] Optionally, at least one processor 1501 is one or more CPUs, either a single-core CPU or a multi-core CPU. The memory 1502 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), flash memory, or optical memory. The memory 1502 stores the instructions of the operating system. After the program instructions stored in the memory 1502 are read by the at least one processor 1501, the device 1500 executes the corresponding operations in the foregoing embodiments.
[0189] After the processor 1501 reads the program instructions from the memory 1502, other functions that the device 1500 can perform are described in the preceding method embodiments.
[0190] Optionally, device 1500 also includes a network interface 1503, which can be a wired interface or a wireless interface. It should be understood that network interface 1503 has the functions of receiving and sending data. The functions of "receiving data" and "sending data" can be integrated into the same transceiver interface, or the functions of "receiving data" and "sending data" can be implemented in different interfaces; this is not limited here. In other words, network interface 1503 can include one or more interfaces for implementing the functions of "receiving data" and "sending data".
[0191] Optionally, the device 1500 also includes a bus 1504, through which the processor 1501 and memory 1502 are typically interconnected, or in other ways.
[0192] The device 1500 provided in this application embodiment is used to execute the methods executed by the electronic devices in the above-described method embodiments and to achieve the corresponding beneficial effects. The specific implementation of the device 1500 shown in FIG15 can be referred to the descriptions in the foregoing method embodiments, and will not be repeated here.
[0193] This application also provides a computer-readable storage medium storing a program that, when run on a computer, causes the computer to perform the steps performed by the electronic device in the methods described in the embodiments shown in Figures 1 to 12.
[0194] This application also provides a computer program product, which includes a program that, when run on a computer, causes the computer to perform the steps performed by the electronic device in the methods described in the embodiments shown in Figures 1 to 12 above.
[0195] This application also provides a circuit system including a processing circuit configured to perform the steps performed by the electronic device in the method described in the embodiments shown in Figures 1 to 12 above.
[0196] This application also provides a chip system including a processor and a communication interface. The communication interface is used to communicate with modules outside the chip system, and the processor is used to support the steps performed by the electronic device in the methods described in the embodiments shown in Figures 1 to 12. In one possible design, the chip system further includes a memory for storing necessary program instructions and data. The chip system may be composed of chips or may include chips and other discrete devices.
[0197] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0198] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CLUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0199] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0200] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
Claims
1. A method of displaying a cursor, characterized by, The method is applied to a scenario of interaction between a cursor and a display interface, and the method comprises: displaying the cursor in a first form; based on a first instruction, the cursor directly evolves from the first form to a second form of the cursor, the first instruction indicating the second form; or, based on a first instruction, the cursor evolves from the first form to a third form, and then evolves from the third form to a second form of the cursor, the first instruction indicating the second form.
2. The method of claim 1, wherein, The third form is a circular ring.
3. The method according to claim 1 or 2, characterized in that, If the first form and the second form have similarity, the cursor directly evolves from the first form to the second form; or, If the first form and the second form do not have similarity, the cursor evolves from the first form to a third form, and then evolves from the third form to the second form.
4. The method of claim 3, wherein, The determining factors of the similarity between the first form and the second form include at least one of the following: the outline shape of the cursor, the number of connected regions included in the cursor, the number of graphic elements included in the cursor, and the distribution rule of the graphic elements included in the cursor, wherein a connected region is filled with the same color and any two points in a connected region are connected to each other.
5. The method of claim 4, wherein, The case that the first form and the second form of the cursor have similarity includes: the outline shape categories of the first form and the second form of the cursor are the same, and the number of connected regions included in the first form and the second form of the cursor is the same; or, The outline shape categories of the first form and the second form of the cursor are the same, and the number of graphic elements included in the first form and the second form of the cursor is the same, and the distribution rule of the graphic elements in the first form is the same as that in the second form.
6. The method of claim 3, wherein, The case that the first form and the second form have similarity includes: a first category label is the same as a second category label, wherein the first category label is a category label of the first form, the second category label is a category label of the second form, the first category label and the second category label are obtained based on first information, and the first information indicates a category label of each form of a plurality of forms of the cursor; or, a first group is the same as a second group, wherein the first group is a group to which the first form belongs, the second group is a group to which the second form belongs, the first group and the second group are obtained based on second information, and the second information indicates a group to which each form of a plurality of forms of the cursor belongs.
7. The method of claim 1 or 2, wherein, The method further comprises: determining the second form based on the first instruction; inputting third information into a preset application programming interface (API) to obtain fourth information; wherein the third information comprises a picture of the first form and a picture of the second form, or the third information comprises first identification information corresponding to the first form and second identification information corresponding to the second form. The fourth information indicates that the cursor directly evolves from the first shape to the second shape, or the fourth information indicates that the cursor evolves from the first shape to a third shape and then evolves from the third shape to the second shape.
8. The method of claim 1 or 2, wherein, The first instruction indicates a change in shape of the cursor, or the first instruction indicates providing a first function corresponding to the second shape.
9. A method of displaying a cursor, characterized by, The method is applied to a scenario of interaction between a cursor and a display interface, and the method comprises: obtaining third information through a preset application programming interface (API), wherein the API is called by an application, and the third information comprises a picture of the first shape of the cursor and a picture of the second shape of the cursor, or the third information comprises first identification information corresponding to the first shape and second identification information corresponding to the second shape; based on the third information, obtaining fourth information, wherein the fourth information indicates that the cursor directly evolves from the first shape to the second shape, or the fourth information indicates that the cursor evolves from the first shape to a third shape and then evolves from the third shape to the second shape.
10. The method of claim 9, wherein, If the first shape and the second shape have similarity, the fourth information indicates that the cursor directly evolves from the first shape to the second shape; or If the first shape and the second shape do not have similarity, the fourth information indicates that the cursor evolves from the first shape to a third shape and then evolves from the third shape to the second shape.
11. The method according to claim 9 or 10, characterized in that, The method further comprises: inputting the picture of the first shape and the picture of the second shape into a machine learning model to obtain the fourth information generated by the machine learning model.
12. A display device of a cursor, characterized by The display device of the cursor is applied to a scenario of interaction between a cursor and a display interface, and the device comprises: a display module configured to display the cursor in a first shape; a demonstration module configured to, based on a first instruction, evolve the cursor from the first shape to a second shape of the cursor, wherein the first instruction indicates the second shape; or the demonstration module is configured to, based on a first instruction, evolve the cursor from the first shape to a third shape and then evolve the cursor from the third shape to a second shape of the cursor, wherein the first instruction indicates the second shape.
13. The apparatus of claim 12, wherein, The third shape is a circular ring.
14. The apparatus of claim 12 or 13, wherein, If the first shape and the second shape have similarity, the cursor directly evolves from the first shape to the second shape; or If the first shape and the second shape do not have similarity, the cursor evolves from the first shape to a third shape and then evolves from the third shape to the second shape.
15. The apparatus of claim 14, wherein, The determining factors of the similarity between the first shape and the second shape comprise at least one of the following: an outline shape of the cursor, a number of connected regions included in the cursor, a number of graphical elements included in the cursor, and a distribution rule of the graphical elements included in the cursor, wherein a same color is filled in one connected region, and any two points in the one connected region are connected to each other.
16. The apparatus of claim 15, wherein, The case that the first shape and the second shape have the similarity includes: the outline shape category of the first shape and the second shape of the cursor is the same, and the number of connected regions included in the first shape and the second shape of the cursor is the same; or, The outline shape category of the first shape and the second shape of the cursor is the same, and the number of graphic elements included in the first shape and the second shape of the cursor is the same, and the distribution rule of the graphic elements in the first shape is the same as the distribution rule of the graphic elements in the second shape.
17. The apparatus of claim 14, wherein, The case that the first shape and the second shape have the similarity includes: the first category label is the same as the second category label, wherein the first category label is a category label of the first shape, the second category label is a category label of the second shape, and the first category label and the second category label are obtained based on first information, and the first information indicates a category label of each shape of a plurality of shapes of the cursor; or, The first group is the same as the second group, wherein the first group is a group to which the first shape belongs, the second group is a group to which the second shape belongs, and the first group and the second group are obtained based on second information, and the second information indicates a group to which each shape of a plurality of shapes of the cursor belongs.
18. The apparatus of claim 12 or 13, wherein, The device further includes: A determination module configured to determine the second shape based on the first instruction; An input module configured to input third information into a preset application programming interface (API) to obtain fourth information; The third information includes a picture of the first shape and a picture of the second shape, or the third information includes first identification information corresponding to the first shape and second identification information corresponding to the second shape; The fourth information indicates that the cursor directly evolves from the first shape to the second shape, or the fourth information indicates that the cursor evolves from the first shape to a third shape and then evolves from the third shape to the second shape.
19. The apparatus of claim 12 or 13, wherein, The first instruction indicates a change in the shape of the cursor, or the first instruction indicates a first function corresponding to the second shape.
20. A display device of a cursor, characterized by The display device of the cursor is applied to a scene of interaction between the cursor and a display interface, and the device includes: An acquisition module configured to acquire third information through a preset application programming interface (API), wherein the API is called by an application, and the third information includes a picture of a first shape of the cursor and a picture of a second shape of the cursor, or the third information includes first identification information corresponding to the first shape and second identification information corresponding to the second shape; The acquisition module is further configured to acquire fourth information based on the third information, wherein the fourth information indicates that the cursor directly evolves from the first shape to the second shape, or the fourth information indicates that the cursor evolves from the first shape to a third shape and then evolves from the third shape to the second shape.
21. The apparatus of claim 20, wherein, if there is similarity between the first form and the second form, the fourth information indicates that the cursor directly evolves from the first form to the second form; or, if there is no similarity between the first form and the second form, the fourth information indicates that the cursor evolves from the first form to a third form, and then evolves from the third form to the second form.
22. The apparatus of claim 20 or 21, wherein, The apparatus further comprises: an input module configured to input a picture of the first form and a picture of the second form into a machine learning model to obtain the fourth information generated by the machine learning model.
23. An apparatus, comprising: The apparatus includes a processor coupled to a memory, the memory storing program instructions that, when executed by the processor, implement the method of any one of claims 1-11.
24. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program, and when the program is executed on a computer, the computer is caused to perform the method of any one of claims 1-11.
25. A computer program product, characterised in that, The computer program product includes a program, and when the program is executed on a computer, the computer is caused to perform the method of any one of claims 1-11.
26. A chip system, characterized by The chip system includes a processor and a communication interface, the communication interface is configured to communicate with a module outside the chip system, and the processor is configured to execute the method of any one of claims 1-11.
Citation Information
Patent Citations
Cursor display method and device, electronic equipment and storage medium
CN113434060A
Display method and device, and electronic equipment
CN113885994A
Cursor display method and related equipment
CN116048329A
Cursor transitions
US20090140978A1