Virtual image display method and device, terminal and storage medium
By displaying animations associated with the target application on a virtual desktop, the problem of insufficient expressiveness of virtual electronic pet avatars is solved, resulting in a better user experience.
Patent Information
- Application Number
- CN202310885860.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-18
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-07-18
AI Technical Summary
The existing virtual pets have poor avatar performance, resulting in a poor user experience.
The expressiveness of virtual avatars is enhanced by displaying them on virtual desktops and showing application-related animations when the target application is opened or returned.
It improved the relevance between virtual avatars and target applications, enhanced the expressiveness of virtual avatars, and improved the user experience.
Smart Images

Figure CN119336218B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, terminal and storage medium for displaying virtual images. Background Technology
[0002] With the continuous development of terminal technology, electronic pets, as virtual pet avatars, are increasingly popular among users. Electronic pets allow users to experience the joys of pet ownership without having to deal with the troubles or disputes associated with owning a real pet, such as the noise problems caused by cats and dogs barking, or the environmental mess caused by shedding and feces.
[0003] Currently, virtual pets are typically displayed on the user's desktop, allowing users to interact with them by clicking on their virtual avatar. However, this approach only responds to simple clicks, with the terminal displaying the corresponding animation. The virtual avatar's expressiveness is poor, resulting in a lack of user experience. Therefore, enhancing the expressiveness of virtual avatars is a pressing technical challenge. Summary of the Invention
[0004] This application provides a method, apparatus, terminal, and storage medium for displaying virtual avatars, which can improve the relevance of virtual avatars to target applications, enhance the expressiveness of virtual avatars, and improve user experience. The technical solution is as follows:
[0005] According to one aspect of the embodiments of this application, a method for displaying a virtual avatar is provided, the method comprising:
[0006] Display a first desktop wallpaper on the virtual desktop, and the first desktop wallpaper displays a first virtual avatar;
[0007] In response to the operation of opening the target application, the application interface of the target application is displayed, wherein the target application is any application in the terminal, and the application interface displays the application information of the target application;
[0008] In response to a return to the desktop operation, the first desktop wallpaper is switched to a second desktop wallpaper, the second desktop wallpaper displays a first animation of the first virtual avatar, and the first animation displays an action of the first virtual avatar associated with the target application.
[0009] According to another aspect of the embodiments of this application, a display device for a virtual image is provided, the device comprising:
[0010] The first display module is used to display a first desktop wallpaper on a virtual desktop, wherein the first desktop wallpaper displays a first virtual avatar;
[0011] The second display module is used to display the application interface of the target application in response to the opening operation of the target application. The target application is any application in the terminal, and the application interface displays the application information of the target application.
[0012] The first display module is further configured to, in response to a return to desktop operation, switch the first desktop wallpaper to a second desktop wallpaper, the second desktop wallpaper displaying a first animation of the first virtual avatar, and the first animation displaying an action of the first virtual avatar associated with the target application.
[0013] In some embodiments, the first display module includes:
[0014] A determining unit is configured to, in response to the return to desktop operation, determine the first animation based on the application type of the target application, wherein the first animation displays actions of the first virtual avatar associated with the application type;
[0015] The display unit is configured to, in response to the end of the return to desktop operation, display the virtual desktop and switch the currently displayed first desktop wallpaper to the second desktop wallpaper.
[0016] In some embodiments, the apparatus further includes:
[0017] The first determining module is used to determine the application state of the target application in response to the end of the return to desktop operation. The application state includes a closed state and a background running state. The closed state is used to indicate that the application process of the target application is closed, and the background running state is used to indicate that the application process of the target application is running in the background.
[0018] The first display module is further configured to, when the application state is the closed state, switch the display of the second desktop wallpaper to the first desktop wallpaper in response to the display duration of the second desktop wallpaper being greater than a duration threshold;
[0019] The first display module is further configured to continuously display the second desktop wallpaper on the virtual desktop when the application is in the background running state.
[0020] In some embodiments, the apparatus further includes:
[0021] The second determining module is configured to, in response to detecting an update in the system state of the terminal, determine a second animation of the first virtual avatar based on the updated system state, wherein the second animation displays actions of the first virtual avatar associated with the system state;
[0022] The first display module is further configured to switch the first desktop wallpaper to a third desktop wallpaper, wherein the third desktop wallpaper displays the second animation.
[0023] In some embodiments, the apparatus further includes:
[0024] The second determining module is further configured to, in response to detecting an update in weather information, determine a third animation of the first virtual avatar based on the updated weather information, wherein the weather information is used to indicate the weather conditions associated with the geographical location of the terminal, and the third animation displays actions of the first virtual avatar associated with the weather information;
[0025] The first display module is further configured to switch the first desktop wallpaper to a fourth desktop wallpaper, wherein the fourth desktop wallpaper displays the third animation.
[0026] In some embodiments, the apparatus further includes:
[0027] The third determining module is used to determine the real-time distance between the eyes of the user and the screen of the terminal based on the facial key points of the user of the terminal when the first virtual image is in a static state.
[0028] The first display module is further configured to, in response to a decrease in the real-time distance, switch the first desktop wallpaper to a fifth desktop wallpaper when the real-time distance is not less than a first distance and not greater than a second distance, wherein the fifth desktop wallpaper displays a fourth animation of the first virtual image and the fourth animation displays the action of the first virtual image approaching the screen;
[0029] The first display module is further configured to switch the first desktop wallpaper to a sixth desktop wallpaper in response to the increase in real-time distance. The sixth desktop wallpaper displays a fifth animation of the first virtual character, and the fifth animation displays the action of the first virtual character moving away from the screen.
[0030] In some embodiments, the first display module is further configured to, in response to the decrease in real-time distance, determine the difference between the initial distance between the eye and the screen and the real-time distance as the decrease in real-time distance; and to switch the first desktop wallpaper to the fifth desktop wallpaper when the decrease in real-time distance is greater than a third distance and the real-time distance is not less than the first distance.
[0031] In some embodiments, the first display module is further configured to, in response to the increase in real-time distance, determine the difference between the real-time distance and the initial distance between the eye and the screen as the increase in real-time distance; and, if the increase in real-time distance is greater than a third distance and the real-time distance is not greater than the second distance, switch the first desktop wallpaper to the sixth desktop wallpaper.
[0032] In some embodiments, the apparatus further includes:
[0033] The fourth determining module is used to determine the state of the first virtual image in response to a triggering operation on the first virtual image;
[0034] The first display module is further configured to switch the first desktop wallpaper to a seventh desktop wallpaper when the first virtual image is in a static state. The seventh desktop wallpaper displays a sixth animation of the first virtual image, and the sixth animation displays the action of the first virtual image in real time related to the terminal.
[0035] The first display module is further configured to switch the first desktop wallpaper to an eighth desktop wallpaper when the first virtual image is not in the static state, the eighth desktop wallpaper displaying a seventh animation of the first virtual image, the seventh animation displaying an action associated with the current action of the first virtual image.
[0036] In some embodiments, the apparatus further includes:
[0037] The fourth determining module is further configured to respond to continuous click operations on the first virtual image, and if the number of continuous clicks on the first virtual image is greater than a threshold, determine an eighth animation of the first virtual image based on the real-time of the terminal, wherein the eighth animation displays actions of the first virtual image associated with the real-time.
[0038] The first display module is further configured to switch the first desktop wallpaper to a ninth desktop wallpaper in response to the end of the continuous clicking operation, wherein the ninth desktop wallpaper displays the eighth animation.
[0039] In some embodiments, the apparatus further includes:
[0040] The fourth determining module is further configured to determine a second virtual image from the virtual image set if the total number of clicks on the first virtual image within the time threshold is greater than the number threshold. The virtual image set includes multiple different virtual images, and the second virtual image is any virtual image in the virtual image set other than the first virtual image.
[0041] The first display module is further configured to switch the first desktop wallpaper to a tenth desktop wallpaper, the tenth desktop wallpaper displaying a ninth interactive animation, the ninth interactive animation displaying the actions of the first virtual image and the second virtual image interacting.
[0042] According to another aspect of the embodiments of this application, a terminal is provided, the terminal including a processor and a memory; the memory stores at least one piece of program code, the at least one piece of program code being executed by the processor to implement the virtual image display method as described above.
[0043] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, the storage medium storing at least one piece of program code, the at least one piece of program code being executed by a processor to implement the virtual image display method as described above.
[0044] According to another aspect of the embodiments of this application, a chip is provided, the chip including programmable logic circuits and / or program instructions, which, when the chip is run on a computer device, is used to implement the virtual image display method described above.
[0045] According to another aspect of the embodiments of this application, a computer program product is provided, the computer program product storing at least one piece of program code, the at least one piece of program code being executed by a processor to implement the virtual image display method described above.
[0046] This application provides a method for displaying a virtual avatar. When an operation to open a target application is detected, the terminal can display the application interface of the target application. Furthermore, when an operation to return to the desktop from the application interface is detected, the terminal switches the currently displayed first desktop wallpaper to a second desktop wallpaper displaying a first interactive animation of the first virtual avatar. This allows the first virtual avatar to display actions associated with the target application based on the user's current target application, thereby improving the relevance between the virtual avatar and the target application, enhancing the expressiveness of the virtual avatar, and improving the user experience. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This is a schematic diagram illustrating the implementation environment of a virtual avatar display method provided in an embodiment of this application;
[0049] Figure 2 This is a flowchart illustrating a method for displaying a virtual avatar provided in an embodiment of this application;
[0050] Figure 3 This is a flowchart of another method for displaying a virtual image provided in an embodiment of this application;
[0051] Figure 4 This is a schematic diagram of a first desktop wallpaper provided in an embodiment of this application;
[0052] Figure 5 This is a schematic diagram of a second desktop wallpaper provided in an embodiment of this application;
[0053] Figure 6 This is a schematic diagram of a third desktop wallpaper provided in an embodiment of this application;
[0054] Figure 7 This is a schematic diagram of a fourth desktop wallpaper provided in an embodiment of this application;
[0055] Figure 8 This is a schematic diagram of a seventh desktop wallpaper provided in an embodiment of this application;
[0056] Figure 9 This is a schematic diagram of an eighth desktop wallpaper provided in an embodiment of this application;
[0057] Figure 10 This is a schematic diagram of the structure of a virtual image display device provided in an embodiment of this application;
[0058] Figure 11 This is a schematic diagram of the structure of another virtual image display device provided in an embodiment of this application;
[0059] Figure 12 This is a structural block diagram of a terminal provided in an embodiment of this application. Detailed Implementation
[0060] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0061] In this article, "at least one" refers to one or more, and "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0062] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the desktop wallpaper, application information, weather information, and facial key points of the user involved in this application were all obtained with full authorization.
[0063] The virtual image display method provided in this application embodiment can be executed by a terminal. Figure 1 This is a schematic diagram illustrating the implementation environment of a virtual avatar display method provided in this application. See also... Figure 1 The implementation environment includes a terminal 101 and a server 102. The terminal 101 can be directly or indirectly connected to the server 102 via wired or wireless communication, which is not limited herein.
[0064] In some embodiments, terminal 101 may be a smartphone, tablet computer, laptop computer, desktop computer, smartwatch, smart voice interaction device, in-vehicle terminal, etc., but is not limited to these. A client application supporting electronic pets is installed and runs on terminal 101. Illustratively, terminal 101 is a user-used terminal, and the user can select the virtual avatar of the electronic pet through the client on terminal 101. Based on the scheme disclosed in this application, terminal 101 can also display the virtual avatar on the desktop wallpaper, and the animation of the virtual avatar is associated with the application the user is using.
[0065] In some embodiments, server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server 102 is used to provide backend services for clients that support electronic pets.
[0066] In some embodiments, server 102 undertakes the main computing work and terminal 101 undertakes the secondary computing work; or, server 102 undertakes the secondary computing work and terminal 101 undertakes the main computing work; or, server 102 and terminal 101 collaborate on computing using a distributed computing architecture.
[0067] Figure 2 This is a flowchart illustrating a method for displaying a virtual avatar according to an embodiment of this application. The method is executed by a terminal; see [link to relevant documentation]. Figure 2 The method includes:
[0068] 201. Display the first desktop wallpaper on the virtual desktop, and the first desktop wallpaper displays the first virtual avatar.
[0069] In this embodiment, a first desktop wallpaper is displayed on the terminal's virtual desktop, and the first desktop wallpaper displays a first virtual avatar. The first virtual avatar can be any virtual avatar, such as a cat, dog, or bird. Users can choose the corresponding virtual avatar according to their preferences. The first desktop wallpaper can display a static first virtual avatar or a dynamic first virtual avatar; this embodiment does not impose any limitations on this. For example, when the terminal first displays the first desktop wallpaper, the first virtual avatar displayed by the first desktop wallpaper can perform corresponding actions, such as waving a welcome gesture. When the first desktop wallpaper is not displayed for the first time, if no user trigger operation on the first virtual avatar is detected, the first virtual avatar remains static, that is, the first desktop wallpaper displays a static first virtual avatar.
[0070] 202. In response to the opening operation of the target application, display the application interface of the target application. The target application can be any application in the terminal, and the application interface displays the application information of the target application.
[0071] In this embodiment, the target application can be any application on the terminal, such as an audio application, video application, camera application, image application, etc. This embodiment does not impose any limitations on this. Optionally, a shortcut to the target application is displayed on the virtual desktop. By triggering this shortcut, the terminal can open the target application and display its application interface. This application interface displays the application information of the target application. For example, if the target application is a gallery application, the application information includes the type of gallery and the number of multimedia resources in each gallery.
[0072] 203. In response to the return to desktop operation, the first desktop wallpaper is switched to the second desktop wallpaper. The second desktop wallpaper displays the first animation of the first virtual avatar. The first animation displays the action of the first virtual avatar associated with the target application.
[0073] In this embodiment, after the target application is launched, the terminal can acquire a first animation of the first virtual avatar, which displays actions associated with the first virtual avatar and the target application. For example, if the target application is a music application, the first animation displays the action of the first virtual avatar wearing headphones and listening to music. If the target application is a camera application, the first animation displays the action of the first virtual avatar taking a picture with its back to the screen. Therefore, when the user returns to the virtual desktop from the application interface of the target application, the terminal can display the virtual desktop and switch the currently displayed first desktop wallpaper to a second desktop wallpaper used to display the first animation of the first virtual avatar.
[0074] This application provides a method for displaying a virtual avatar. When an operation to open a target application is detected, the terminal can display the application interface of the target application. Furthermore, when an operation to return to the desktop from the application interface is detected, the terminal switches the currently displayed first desktop wallpaper to a second desktop wallpaper displaying a first interactive animation of the first virtual avatar. This allows the first virtual avatar to display actions associated with the target application based on the user's current target application, thereby improving the relevance between the virtual avatar and the target application, enhancing the expressiveness of the virtual avatar, and improving the user experience.
[0075] Figure 3 This is a flowchart of another method for displaying a virtual avatar provided in an embodiment of this application. This method is executed by a terminal; see [link to relevant documentation]. Figure 3 The method includes:
[0076] 301. Display the first desktop wallpaper on the virtual desktop, and the first desktop wallpaper displays the first virtual avatar.
[0077] In this embodiment, a first desktop wallpaper is displayed on the terminal's virtual desktop, and the first desktop wallpaper displays a first virtual avatar. The first virtual avatar can be any virtual avatar, such as a cat, dog, or bird. Users can choose the corresponding virtual avatar according to their preferences. The first desktop wallpaper can display a static first virtual avatar or a dynamic first virtual avatar; this embodiment does not impose any limitations on this. For example, when the terminal first displays the first desktop wallpaper, the first virtual avatar displayed by the first desktop wallpaper can perform corresponding actions, such as waving a welcome gesture. When the first desktop wallpaper is not displayed for the first time, if no user trigger operation on the first virtual avatar is detected, the first virtual avatar remains static, that is, the first desktop wallpaper displays a static first virtual avatar.
[0078] For example, Figure 4 This is a schematic diagram of a first desktop wallpaper provided in an embodiment of this application. For example... Figure 4As shown, the first virtual image displayed on the first desktop wallpaper is a virtual bird image, and at this time the first virtual image is in a static state.
[0079] It should be noted that the terminal can switch the first desktop wallpaper to other desktop wallpapers through multiple methods. For details of Method 1, please refer to steps 302-304 below; for details of Method 2, please refer to steps 305-306 below; for details of Method 3, please refer to steps 307-308 below; and for details of Method 4, please refer to steps 309-311 below.
[0080] 302. In response to the opening operation of the target application, display the application interface of the target application. The target application can be any application in the terminal, and the application interface displays the application information of the target application.
[0081] In this embodiment, the target application can be any application on the terminal, such as an audio application, video application, camera application, image application, etc. This embodiment does not impose any limitations on this. Optionally, a shortcut to the target application is displayed on the virtual desktop. By triggering this shortcut, the terminal can open the target application and display its application interface. This application interface displays the application information of the target application. For example, if the target application is a gallery application, the application information includes the type of gallery and the number of multimedia resources in each gallery.
[0082] 303. In response to the return to desktop operation, based on the application type of the target application, determine the first animation of the first virtual avatar. The first animation displays an action that is associated with the first virtual avatar and the application type.
[0083] In this embodiment, when the terminal responds to a return-to-desktop operation and returns to the virtual desktop from the application interface of the target application, the terminal can determine a first animation of the first virtual avatar based on the application type of the target application. This first animation displays actions of the first virtual avatar associated with the application type. For example, for a music application, the first animation displays the action of the first virtual avatar wearing headphones and listening to music. For a video application, the first animation displays the action of the first virtual avatar facing the computer screen and watching a video. For a camera application, the first animation displays the action of the first virtual avatar with its back to the screen taking a picture.
[0084] 304. In response to the end of the return to desktop operation, the virtual desktop is displayed, and the currently displayed first desktop wallpaper is switched to the second desktop wallpaper. The second desktop wallpaper displays the first animation.
[0085] In this embodiment, when the return to desktop operation ends, the terminal can display a virtual desktop and switch the currently displayed first desktop wallpaper to a second desktop wallpaper used to display the first animation.
[0086] For example, Figure 5 This is a schematic diagram of a second desktop wallpaper provided in an embodiment of this application. For example... Figure 5 As shown, the first virtual avatar is a bird. When the target application is a communication application, upon returning to the virtual desktop from the application's interface, the terminal can display a second desktop wallpaper 501. The first animation displayed on the second desktop wallpaper 501 is the first virtual avatar holding a phone and making a call. When the target application is a music or video application, upon returning to the virtual desktop from the application's interface, the terminal can display a second desktop wallpaper 502. The first animation displayed on the second desktop wallpaper 502 is the first virtual avatar wearing headphones and listening to music or watching videos. When the target application is a photo album or image application, upon returning to the virtual desktop from the application's interface, the terminal can display a second desktop wallpaper 503. The first animation displayed on the second desktop wallpaper 503 is the first virtual avatar facing away from the screen and taking a picture.
[0087] In some embodiments, after returning to the virtual desktop, the terminal can display the corresponding desktop wallpaper based on the application status of the target application. Accordingly, in response to the end of the return-to-desktop operation, the application status of the target application is determined. The application status includes a closed state and a background running state. The closed state indicates that the application process of the target application is closed, and the background running state indicates that the application process of the target application is running in the background. When the application status is closed, in response to the display duration of the second desktop wallpaper exceeding a duration threshold, the second desktop wallpaper is switched to the first desktop wallpaper. When the application status is in the background running state, the second desktop wallpaper is continuously displayed on the virtual desktop. After the terminal returns to the virtual desktop from the application interface, the target application can be in a closed state or a background running state. Since the second desktop wallpaper is displayed on the virtual desktop at this time, the first animation displayed by the second desktop wallpaper shows the action of the first virtual image associated with the target application. Therefore, when the application status of the target application is closed, it indicates that the user has ended using the target application. Therefore, when the display duration of the second desktop wallpaper exceeds the duration threshold, the terminal can switch the second desktop wallpaper to the first desktop wallpaper. When the application status of the target application is in the background running state, it indicates that the user has not yet ended using the target application. Therefore, the terminal can continuously display the second desktop wallpaper on the virtual desktop. After the target application is closed, the terminal does not immediately stop displaying the second desktop wallpaper; instead, it switches to displaying the first desktop wallpaper only after the second wallpaper has been displayed for a short time. This prevents users from missing the actions associated with the previously used target application displayed by the first virtual avatar when returning to the desktop, enhancing the expressiveness of the virtual avatar and improving the user experience.
[0088] 305. In response to detecting an update in the system state of the terminal, based on the updated system state, determine a second animation for the first virtual avatar, wherein the second animation displays actions of the first virtual avatar that are associated with the system state.
[0089] In this embodiment, when the terminal detects a system state update, the terminal can determine a second animation displaying actions of the first virtual avatar associated with that system state, based on the updated system state. The terminal's system state includes low battery, charging, and restarting. When the updated system state is low battery, the second animation displays the first virtual avatar lying down tiredly. When the updated system state is charging, the second animation displays the first virtual avatar exercising. When the updated system state is restarting, the second animation displays the first virtual avatar standing and waving.
[0090] 306. Switch the first desktop wallpaper to the third desktop wallpaper, and the third desktop wallpaper displays the second animation.
[0091] In this embodiment, after obtaining the second animation of the first virtual avatar, the terminal can switch the currently displayed first desktop wallpaper on the virtual desktop to a third desktop wallpaper for displaying the second animation. When the terminal's system state changes, displaying the third desktop wallpaper on the virtual desktop allows the user to see the actions of the first virtual avatar related to the system state, thereby enhancing the expressiveness of the virtual avatar and improving the user experience.
[0092] For example, Figure 6 This is a schematic diagram of a third desktop wallpaper provided in an embodiment of this application. For example... Figure 6 As shown, the first virtual avatar is a bird. The updated system status is "Terminal is charging," and the terminal displays a third desktop wallpaper on the virtual desktop. The second animation displayed on the third desktop wallpaper shows the first virtual avatar exercising.
[0093] 307. In response to detecting an update in weather information, based on the updated weather information, determine a third animation for the first virtual avatar, wherein the weather information is used to indicate the weather conditions associated with the terminal's geographical location, and the third animation displays actions of the first virtual avatar associated with the weather information.
[0094] In this embodiment, when the terminal detects an update in weather information, the terminal can determine a third animation that displays an action of the first virtual avatar associated with that weather information, based on the updated weather information. The terminal's weather information indicates the weather conditions associated with the terminal's geographical location, such as sunny, rainy, snowy, windy, or dusty. For example, if the updated weather information indicates rain, the third animation displays the first virtual avatar holding an umbrella or wiping windows. If the updated weather information indicates snow, the third animation displays the first virtual avatar building a snowman.
[0095] 308. Switch the first desktop wallpaper to the fourth desktop wallpaper. The fourth desktop wallpaper displays the third animation.
[0096] In this embodiment, after obtaining the third animation of the first virtual avatar, the terminal can switch the currently displayed first desktop wallpaper on the virtual desktop to a fourth desktop wallpaper for displaying the third animation. When the weather information changes, by displaying the fourth desktop wallpaper on the virtual desktop, the user can see the actions of the first virtual avatar related to the weather information, thereby enhancing the expressiveness of the virtual avatar and improving the user experience.
[0097] For example, Figure 7 This is a schematic diagram of a fourth desktop wallpaper provided in an embodiment of this application. For example... Figure 7 As shown, the first virtual avatar is a bird. The updated weather information indicates it is raining, and the terminal displays either the fourth desktop wallpaper 701 or 702 on the virtual desktop. The third animation displayed on the fourth desktop wallpaper shows the first virtual avatar holding an umbrella or wiping windows.
[0098] 309. When the first virtual image is stationary, determine the real-time distance between the user's eyes and the terminal screen based on the facial key points of the user on the terminal.
[0099] In this embodiment, when the first virtual image displayed on the first desktop wallpaper is stationary, the terminal can activate its front-facing camera to detect the user. The front-facing camera is a motion-sensing camera capable of detecting and analyzing the user's posture and movement. The user is the user of the terminal. While the user is viewing the terminal screen, the front-facing camera can capture the user's facial information in real time to determine multiple facial key points. These key points include eyebrows, eyes, pupils, nose, and mouth. Based on these facial key points, the terminal can determine the user's eye key points, and thus determine the distance between the user's eyes and the screen. This distance is real-time and changes as the user moves or the screen moves.
[0100] 310. When the real-time distance is not less than the first distance and not greater than the second distance, in response to the decrease in real-time distance, the first desktop wallpaper is switched to the fifth desktop wallpaper, the fifth desktop wallpaper displays the fourth animation of the first virtual image, and the fourth animation displays the action of the first virtual image approaching the screen.
[0101] In this embodiment, the first distance is the closest distance at which the front-facing camera can detect the user, and the second distance is the farthest distance at which the front-facing camera can detect the user. The first distance can be 15 cm, and the second distance can be 60 cm. When the real-time distance between the user's eyes and the screen is not less than the first distance and not greater than the second distance, it indicates that the front-facing camera can detect the user's face and determine the real-time distance between the eyes and the screen based on the collected facial information. Therefore, when a decrease in real-time distance is detected, it indicates that the user's eyes are approaching the screen, and the terminal can acquire a fourth animation of the first virtual avatar, which shows the first virtual avatar approaching the screen. Correspondingly, the terminal can switch the currently displayed first desktop wallpaper to a fifth desktop wallpaper displaying the fourth animation. When the terminal detects that the user's eyes are approaching the screen, by displaying the fifth desktop wallpaper on the virtual desktop, the user can see the first virtual avatar also approaching the screen while approaching it. Interaction between the user and the virtual avatar can be achieved without the user clicking on the first virtual avatar, enhancing the expressiveness of the virtual avatar and improving the user experience.
[0102] In some embodiments, the terminal switches the desktop wallpaper only when the decrease in real-time distance exceeds a certain distance. Accordingly, in response to the decrease in real-time distance, the difference between the initial distance and the real-time distance between the eye and the screen is determined as the decrease in real-time distance; if the decrease is greater than a third distance and the real-time distance is not less than a first distance, the first desktop wallpaper is switched to a fifth desktop wallpaper. Here, the initial distance is the initial distance between the user's eye and the terminal's screen before any change. The third distance is the minimum distance required to trigger the switch of desktop wallpaper display, and can be 5cm. Therefore, if the difference between the initial distance and the current real-time distance is greater than the third distance and the current real-time distance is not less than the first distance, it indicates that the decrease in real-time distance is greater than the third distance and the decreased real-time distance is not less than the closest distance that the front-facing camera can detect for the user. Therefore, the terminal can switch the currently displayed first desktop wallpaper on the virtual desktop to a fifth desktop wallpaper displaying a fourth animation.
[0103] 311. In response to the increase in real-time distance, the first desktop wallpaper is switched to the sixth desktop wallpaper. The sixth desktop wallpaper displays the fifth animation of the first virtual image, and the fifth animation displays the action of the first virtual image moving away from the screen.
[0104] In this embodiment, when an increase in real-time distance is detected, indicating that the user's eyes are moving away from the screen, the terminal can acquire a fifth animation of the first virtual avatar, which shows the first virtual avatar moving away from the screen. Correspondingly, the terminal can switch the currently displayed first desktop wallpaper to a sixth desktop wallpaper displaying the fifth animation. When the terminal detects that the user's eyes are moving away from the screen, by displaying the sixth desktop wallpaper on the virtual desktop, the user can see the first virtual avatar also moving away from the screen while simultaneously moving away from it. This allows for interaction between the user and the virtual avatar without the user needing to click on the first virtual avatar, enhancing the expressiveness of the virtual avatar and improving the user experience.
[0105] In some embodiments, the terminal switches the desktop wallpaper only when the increase in real-time distance exceeds a certain distance. In response to the increase in real-time distance, the difference between the real-time distance and the initial distance between the user's eyes and the screen is determined as the increase in real-time distance. If the increase is greater than a third distance and the real-time distance is not greater than a second distance, the first desktop wallpaper is switched to a sixth desktop wallpaper. The initial distance is the initial distance between the user's eyes and the terminal's screen before any change. The third distance is the minimum distance required to trigger the switch in desktop wallpaper display, and can be 5cm. Therefore, if the difference between the initial distance and the current real-time distance is greater than the third distance and the current real-time distance is not greater than the second distance, it indicates that the increase in real-time distance is greater than the third distance and the increased real-time distance is not greater than the furthest distance that the front-facing camera can detect. Therefore, the terminal can switch the currently displayed first desktop wallpaper to a sixth desktop wallpaper displaying a fifth animation.
[0106] In some embodiments, the terminal can switch between different desktop wallpapers based on the state of the virtual avatar when it is triggered. Accordingly, in response to a triggering operation on the first virtual avatar, the state of the first virtual avatar is determined; if the first virtual avatar is in a static state, the first desktop wallpaper is switched to a seventh desktop wallpaper, which displays a sixth animation of the first virtual avatar, showing an action of the first virtual avatar associated with the terminal's real-time; if the first virtual avatar is not in a static state, the first desktop wallpaper is switched to an eighth desktop wallpaper, which displays a seventh animation of the first virtual avatar, showing an action associated with the current action of the first virtual avatar. Wherein, if the first virtual avatar displayed on the first desktop wallpaper is in a static state, it indicates that the first virtual object remains static and is not displaying any action. At this time, the terminal can determine the sixth animation of the first virtual avatar based on the terminal's real-time, which displays an action of the first virtual avatar associated with the real-time. Accordingly, in response to the user's triggering operation on the static first virtual avatar, the terminal can switch the currently displayed first desktop wallpaper on the virtual desktop to the seventh desktop wallpaper displaying the sixth animation.
[0107] Conversely, when the first virtual avatar displayed on the first desktop wallpaper is not static, it indicates that the first virtual object is displaying an action. At this time, the terminal can acquire the seventh animation of the first virtual avatar, which displays an action associated with the currently displayed action of the first virtual avatar. Accordingly, in response to the user's trigger operation on the static first virtual avatar, the terminal can switch the currently displayed first desktop wallpaper to an eighth desktop wallpaper displaying the seventh animation. When the user clicks on the first virtual avatar, the terminal can enhance the expressiveness of the virtual avatar and improve the user's interactive experience with the virtual avatar by having the first virtual avatar display an action associated with the real-time context when the first virtual avatar is static. Alternatively, it can enhance the expressiveness of the virtual avatar by having the first virtual avatar display other actions associated with the currently displayed action while it is displaying an action, thereby improving the efficiency of human-computer interaction.
[0108] For example, Figure 8 This is a schematic diagram of a seventh desktop wallpaper provided in an embodiment of this application. For example... Figure 8 As shown, the first virtual avatar is a bird. From 7:30 AM to 11:00 AM, the sixth animation displayed in the seventh desktop wallpaper 801 shows the first virtual avatar happily hopping around. From 11:00 AM to 1:30 PM or from 5:30 PM to 7:00 PM, the sixth animation displayed in the seventh desktop wallpaper 802 shows the first virtual avatar eating. From 1:30 PM to 2:30 PM or from 10:00 PM to 7:30 AM the next day, the sixth animation displayed in the seventh desktop wallpaper 803 shows the first virtual avatar sleeping. From 2:30 PM to 5:30 PM, the sixth animation displayed in the seventh desktop wallpaper 804 shows the first virtual avatar reading a book. From 7:00 PM to 10:00 PM, the sixth animation displayed in the seventh desktop wallpaper 805 shows the first virtual avatar playing with toys.
[0109] For example, Figure 9 This is a schematic diagram of an eighth desktop wallpaper provided in an embodiment of this application. For example... Figure 9 As shown, the first virtual avatar is a bird. The current action displayed by the first virtual avatar is reading a book. Clicking on the first virtual avatar in the first desktop wallpaper 901 will switch the display of the first desktop wallpaper 901 to the eighth desktop wallpaper 902. The eighth desktop wallpaper 902 displays actions related to the first virtual avatar's reading action, namely, the first virtual avatar playing with toys.
[0110] In some embodiments, the terminal can trigger a special action of the virtual avatar by continuously clicking on it. Accordingly, in response to continuous clicking on the first virtual avatar, if the number of consecutive clicks exceeds a threshold, an eighth animation of the first virtual avatar is determined based on the terminal's real-time. This eighth animation displays an action of the first virtual avatar associated with the real-time. Upon completion of the continuous clicking operation, the first desktop wallpaper is switched to a ninth desktop wallpaper, which displays the eighth animation. Specifically, when the user continuously clicks on the first virtual avatar displayed on the first desktop wallpaper, the terminal can determine whether it is day or night based on the terminal's current time if the number of consecutive clicks exceeds the threshold, and then obtain the eighth animation associated with day or night. During the day, continuous clicking on the first virtual avatar displays the first virtual avatar in an excited state, with virtual fireworks blooming around it. At night, continuous clicking on the first virtual avatar displays the first virtual avatar in an angry state, with the first virtual avatar angrily leaving the screen. After the continuous clicking operation ends, the terminal can switch the currently displayed first desktop wallpaper to the ninth desktop wallpaper displaying the eighth animation. When a user clicks on the first virtual avatar repeatedly, the avatar can display special actions related to real-time events, which can enhance the avatar's expressiveness and improve the user's interactive experience with the avatar.
[0111] In some embodiments, the terminal, in addition to displaying a first virtual avatar, can also display the interaction between the first virtual avatar and other virtual avatars. Accordingly, if the total number of clicks on the first virtual avatar within a time threshold exceeds a certain threshold, a second virtual avatar is determined from the set of virtual avatars. The set of virtual avatars includes multiple distinct virtual avatars, and the second virtual avatar is any virtual avatar in the set other than the first virtual avatar. The first desktop wallpaper is switched to a tenth desktop wallpaper, which displays a ninth interactive animation. The ninth interactive animation displays the actions of the first and second virtual avatars interacting. The fact that the total number of clicks on the first virtual avatar within the time threshold exceeds the threshold indicates a high frequency of user interaction with the first virtual avatar within that time threshold. This triggers a "cross-platform mechanism," meaning the terminal can select another virtual avatar from the set, allowing the second virtual avatar to interact with the first virtual avatar. Accordingly, the terminal switches the currently displayed first desktop wallpaper to the tenth desktop wallpaper displaying the ninth animation. The ninth animation displays the actions of the first and second virtual avatars interacting. When the total number of times a user clicks on the first virtual avatar exceeds a threshold within a certain period, displaying the actions of the first virtual avatar interacting with other virtual avatars can enhance the expressiveness of the virtual avatars and improve the user's interactive experience with them.
[0112] In some implementations, when the terminal displays an animation of the first virtual avatar on the desktop wallpaper, the terminal also plays audio data associated with the actions of the first virtual avatar. For example, when displaying the action of the first virtual avatar holding an umbrella, the sound of rain can be played. When displaying the action of the first virtual avatar wearing headphones and listening to music, the sound of humming music can be played.
[0113] In some implementations, the terminal can vibrate simultaneously when the user clicks on the first virtual avatar.
[0114] It should be noted that the animation of the first virtual character displayed on the desktop wallpaper in this application can be an animation composed of multiple static images played in succession; it can also be a two-dimensional animation generated by photographing the first virtual character in three-dimensional space, in which case the terminal plays the two-dimensional animation through the desktop wallpaper; or, the desktop wallpaper is a three-dimensional space wallpaper, and the first virtual character can move in three-dimensional space, and the desktop wallpaper is used to display the first virtual character's movement in three-dimensional space. This application does not impose any restrictions on this.
[0115] This application provides a method for displaying a virtual avatar. When an operation to open a target application is detected, the terminal can display the application interface of the target application. Furthermore, when an operation to return to the desktop from the application interface is detected, the terminal switches the currently displayed first desktop wallpaper to a second desktop wallpaper displaying a first interactive animation of the first virtual avatar. This allows the first virtual avatar to display actions associated with the target application based on the user's current target application, thereby improving the relevance between the virtual avatar and the target application, enhancing the expressiveness of the virtual avatar, and improving the user experience.
[0116] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
[0117] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0118] Figure 10 This is a schematic diagram of the structure of a virtual avatar display device provided in an embodiment of this application. See also... Figure 10 The device includes:
[0119] The first display module 1001 is used to display a first desktop wallpaper on a virtual desktop, and the first desktop wallpaper displays a first virtual image;
[0120] The second display module 1002 is used to respond to the opening operation of the target application and display the application interface of the target application. The target application is any application in the terminal, and the application interface displays the application information of the target application.
[0121] The first display module 1001 is also used to switch the first desktop wallpaper to a second desktop wallpaper in response to a return to desktop operation. The second desktop wallpaper displays a first animation of the first virtual image, and the first animation displays an action of the first virtual image associated with the target application.
[0122] In some embodiments, Figure 11 This is a schematic diagram of another virtual avatar display device provided in an embodiment of this application. See also... Figure 11 The first display module 1001 includes:
[0123] The determining unit 1101 is configured to, in response to a return to desktop operation, determine a first animation based on the application type of the target application. The first animation displays an action that associates the first virtual image with the application type.
[0124] Display unit 1102 is used to display the virtual desktop in response to the end of the return to desktop operation, and to switch the currently displayed first desktop wallpaper to the second desktop wallpaper.
[0125] In some embodiments, see continue to see Figure 11 The device also includes:
[0126] The first determining module 1003 is used to determine the application status of the target application in response to the end of the return to desktop operation. The application status includes a closed state and a background running state. The closed state is used to indicate that the application process of the target application is closed, and the background running state is used to indicate that the application process of the target application is running in the background.
[0127] The first display module 1001 is also used to switch the display of the second desktop wallpaper to the first desktop wallpaper when the application state is closed, in response to the display duration of the second desktop wallpaper being greater than the duration threshold.
[0128] The first display module 1001 is also used to continuously display the second desktop wallpaper on the virtual desktop when the application is running in the background.
[0129] In some embodiments, see continue to see Figure 11 The device also includes:
[0130] The second determining module 1004 is used to determine the second animation of the first virtual image based on the updated system state in response to detecting an update of the system state of the terminal. The second animation displays actions of the first virtual image that are associated with the system state.
[0131] The first display module 1001 is also used to switch the first desktop wallpaper to a third desktop wallpaper, and the third desktop wallpaper displays a second animation.
[0132] In some embodiments, the apparatus further includes:
[0133] The second determining module 1004 is further configured to respond to the detection of an update in weather information, and determine a third animation of the first virtual avatar based on the updated weather information. The weather information is used to indicate the weather conditions associated with the geographical location of the terminal, and the third animation displays actions of the first virtual avatar associated with the weather information.
[0134] The first display module 1001 is also used to switch the first desktop wallpaper to the fourth desktop wallpaper, and the fourth desktop wallpaper displays the third animation.
[0135] In some embodiments, see continue to see Figure 11 The device also includes:
[0136] The third determining module 1005 is used to determine the real-time distance between the user's eyes and the terminal screen based on the facial key points of the user when the first virtual image is in a static state.
[0137] The first display module 1001 is also used to switch the display of the first desktop wallpaper to the fifth desktop wallpaper in response to the decrease of the real-time distance when the real-time distance is not less than the first distance and not greater than the second distance. The fifth desktop wallpaper displays a fourth animation of the first virtual image, and the fourth animation displays the action of the first virtual image approaching the screen.
[0138] The first display module 1001 is also used to switch the first desktop wallpaper to a sixth desktop wallpaper in response to an increase in real-time distance. The sixth desktop wallpaper displays a fifth animation of the first virtual image, and the fifth animation displays the action of the first virtual image moving away from the screen.
[0139] In some embodiments, the first display module 1001 is further configured to, in response to a decrease in real-time distance, determine the difference between the initial distance between the eye and the screen and the real-time distance as a decrease in real-time distance; and to switch the display of the first desktop wallpaper to the fifth desktop wallpaper when the decrease in real-time distance is greater than the third distance and the real-time distance is not less than the first distance.
[0140] In some embodiments, the first display module 1001 is further configured to, in response to an increase in real-time distance, determine the difference between the real-time distance and the initial distance between the eye and the screen as the increase in real-time distance; and, if the increase in real-time distance is greater than the third distance and the real-time distance is not greater than the second distance, switch the first desktop wallpaper to the sixth desktop wallpaper.
[0141] In some embodiments, see continue to see Figure 11 The device also includes:
[0142] The fourth determining module 1006 is used to determine the state of the first virtual image in response to the triggering operation of the first virtual image;
[0143] The first display module 1001 is also used to switch the first desktop wallpaper to a seventh desktop wallpaper when the first virtual image is in a static state. The seventh desktop wallpaper displays a sixth animation of the first virtual image, and the sixth animation displays the action of the first virtual image in real time related to the terminal.
[0144] The first display module 1001 is also used to switch the first desktop wallpaper to an eighth desktop wallpaper when the first virtual image is not in a static state. The eighth desktop wallpaper displays a seventh animation of the first virtual image, and the seventh animation displays an action related to the current action of the first virtual image.
[0145] In some embodiments, the apparatus further includes:
[0146] The fourth determining module 1006 is also used to respond to the continuous click operation on the first virtual image. If the number of continuous clicks on the first virtual image is greater than the number of clicks threshold, the eighth animation of the first virtual image is determined based on the real-time of the terminal. The eighth animation displays the action of the first virtual image associated with the real-time.
[0147] The first display module 1001 is also used to switch the display of the first desktop wallpaper to the ninth desktop wallpaper in response to the end of the continuous click operation, and the ninth desktop wallpaper displays the eighth animation.
[0148] In some embodiments, the apparatus further includes:
[0149] The fourth determining module 1006 is also used to determine a second virtual image from the virtual image set when the total number of clicks on the first virtual image within the time threshold is greater than the number threshold. The virtual image set includes multiple different virtual images, and the second virtual image is any virtual image in the virtual image set other than the first virtual image.
[0150] The first display module 1001 is also used to switch the first desktop wallpaper to the tenth desktop wallpaper, the tenth desktop wallpaper displays the ninth interactive animation, and the ninth interactive animation displays the actions of the first virtual image and the second virtual image interacting.
[0151] This application provides a virtual avatar display device. When an operation to open a target application is detected, the terminal can display the application interface of the target application. Furthermore, when an operation to return to the desktop from the application interface is detected, the terminal switches the currently displayed first desktop wallpaper to a second desktop wallpaper displaying a first interactive animation of the first virtual avatar. This allows the first virtual avatar to display actions associated with the target application currently being used by the user, thereby improving the relevance between the virtual avatar and the target application, enhancing the expressiveness of the virtual avatar, and improving the user experience.
[0152] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the server can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0153] This application provides a terminal, which includes a processor and a memory; the memory stores at least one piece of program code, which is executed by the processor to implement the virtual image display method provided in the above-described method embodiments.
[0154] Figure 12 This is a structural block diagram of a terminal 1200 according to an embodiment of this application. In some embodiments, the terminal 1200 is a smartphone, tablet computer, computer with wireless communication capabilities, or wearable device, etc. The terminal 1200 in this application includes at least one or more of the following components: a processor 1210, a memory 1220, and at least two wireless links 1230.
[0155] In some embodiments, the processor 1210 includes one or more processing cores. The processor 1210 connects to various parts within the terminal 1200 using various interfaces and lines, and performs various functions and processes data of the terminal 1200 by running or executing program code stored in the memory 1220 and calling data stored in the memory 1220. In some embodiments, the processor 1210 is implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1210 can integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), Neural-network Processing Unit (NPU), and modem. Specifically, the CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display on the screen; the NPU is used to implement Artificial Intelligence (AI) functions; and the modem is used for wireless communication. It is understandable that the aforementioned modem could also be implemented as a separate chip without being integrated into the processor 1210.
[0156] In some embodiments, the processor 1210 is used to control the operating status of at least two wireless links 1230. Accordingly, the processor 1210 is a processor integrating a Wireless Fidelity (Wi-Fi) chip. This Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a dual-band dual-concurrent (DBDC) chip, or a dual-band simultaneous (DBS) chip, etc.
[0157] In some embodiments, memory 1220 includes random access memory (RAM), and in some embodiments, memory 1220 includes read-only memory (ROM). In some embodiments, memory 1220 includes non-transitory computer-readable storage medium. Memory 1220 can be used to store program code. Memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described below, etc.; the data storage area may store data created based on the use of terminal 1200 (such as audio data, phonebook, etc.).
[0158] In some embodiments, the memory 1220 stores reception schemes for different wireless links 1230 receiving beacon frames, as well as identifiers of access nodes connected to different wireless links 1230, identifiers of wireless links 1230, etc.
[0159] The at least two wireless links 1230 are used to connect different access points (APs). They receive downlink data from the APs. These different access points can be access points within the same router or access points within different routers.
[0160] In some embodiments, the terminal 1200 further includes a display screen. The display screen is a display component that displays a user interface. In some embodiments, the display screen is a touch-enabled display screen, allowing users to perform touch operations on the display screen using fingers, styluses, or any suitable object. In some embodiments, the display screen is typically located on the front panel of the terminal 1200. In some embodiments, the display screen is designed as a full-screen, curved screen, irregularly shaped screen, dual-sided screen, or foldable screen. In some embodiments, the display screen is also designed as a combination of a full-screen and a curved screen, or a combination of an irregularly shaped screen and a curved screen, etc., which are not limited in this embodiment.
[0161] In addition, those skilled in the art will understand that the structure of the terminal 1200 shown in the above figures does not constitute a limitation on the terminal 1200. The terminal 1200 may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, the terminal 1200 may also include components such as a microphone, speaker, input unit, sensor, audio circuit, module, power supply, and Bluetooth module, which will not be described in detail here.
[0162] This application also provides a computer-readable storage medium storing at least one piece of program code, which is loaded and executed by the processor to implement the virtual image display method shown in the above embodiments.
[0163] This application also provides a chip that includes programmable logic circuitry and / or program instructions, which, when running on a terminal, are used to implement the virtual image display method shown in the above embodiments.
[0164] This application also provides a computer program product that stores at least one piece of program code, which is executed by a processor to implement the virtual image display method shown in the above embodiments.
[0165] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0166] Those skilled in the art will understand that all or part of the steps in the method for displaying virtual images in the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk. The above descriptions are merely optional embodiments of this application and are not intended to limit the application. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for displaying a virtual image, characterized in that, The method includes: Display a first desktop wallpaper on the virtual desktop, and the first desktop wallpaper displays a first virtual avatar; In response to the operation of opening the target application, the application interface of the target application is displayed, wherein the target application is any application in the terminal, and the application interface displays the application information of the target application; In response to a return to the desktop operation, the first desktop wallpaper is switched to a second desktop wallpaper, the second desktop wallpaper displays a first animation of the first virtual avatar, and the first animation displays an action of the first virtual avatar associated with the target application.
2. The method according to claim 1, characterized in that, The step of switching the first desktop wallpaper to the second desktop wallpaper in response to a return to the desktop operation includes: In response to the return to desktop operation, the first animation is determined based on the application type of the target application, and the first animation displays the action of the first virtual image associated with the application type; In response to the end of the return to desktop operation, the virtual desktop is displayed, and the first desktop wallpaper currently displayed on the virtual desktop is switched to the second desktop wallpaper.
3. The method according to claim 1, characterized in that, The method further includes: In response to the end of the return to desktop operation, the application state of the target application is determined. The application state includes a closed state and a background running state. The closed state is used to indicate that the application process of the target application is closed, and the background running state is used to indicate that the application process of the target application is running in the background. When the application is in the closed state, in response to the display duration of the second desktop wallpaper being greater than the duration threshold, the second desktop wallpaper is switched to the first desktop wallpaper; When the application is in the background running state, the second desktop wallpaper is continuously displayed on the virtual desktop.
4. The method according to claim 1, characterized in that, The method further includes: In response to detecting an update in the system state of the terminal, a second animation of the first virtual avatar is determined based on the updated system state, the second animation displaying actions of the first virtual avatar associated with the system state; The first desktop wallpaper is switched to a third desktop wallpaper, and the third desktop wallpaper displays the second animation.
5. The method according to claim 1, characterized in that, The method further includes: In response to the detection of an updated weather information, a third animation of the first virtual avatar is determined based on the updated weather information, wherein the weather information is used to indicate the weather conditions associated with the geographical location of the terminal, and the third animation displays the actions of the first virtual avatar associated with the weather information; The first desktop wallpaper is switched to the fourth desktop wallpaper, and the fourth desktop wallpaper displays the third animation.
6. The method according to claim 1, characterized in that, The method further includes: When the first virtual image is stationary, the real-time distance between the user's eyes and the screen of the terminal is determined based on the facial key points of the user of the terminal. When the real-time distance is not less than the first distance and not greater than the second distance, in response to the decrease of the real-time distance, the first desktop wallpaper is switched to the fifth desktop wallpaper, the fifth desktop wallpaper displays the fourth animation of the first virtual image, and the fourth animation displays the action of the first virtual image approaching the screen; In response to the increase in real-time distance, the first desktop wallpaper is switched to a sixth desktop wallpaper, which displays a fifth animation of the first virtual avatar, showing the first virtual avatar moving away from the screen.
7. The method according to claim 6, characterized in that, The step of switching the first desktop wallpaper to the fifth desktop wallpaper in response to the decrease in real-time distance includes: In response to the decrease in real-time distance, the difference between the initial distance between the eye and the screen and the real-time distance is determined as the decrease in real-time distance; If the decrease value is greater than the third distance and the real-time distance is not less than the first distance, the first desktop wallpaper will be switched to the fifth desktop wallpaper.
8. The method according to claim 6, characterized in that, The response to the increase in real-time distance, switching the display of the first desktop wallpaper to the sixth desktop wallpaper, includes: In response to the increase in real-time distance, the difference between the real-time distance and the initial distance between the eye and the screen is determined as the increase in real-time distance; If the increase value is greater than the third distance and the real-time distance is not greater than the second distance, the first desktop wallpaper will be switched to the sixth desktop wallpaper.
9. The method according to claim 1, characterized in that, The method further includes: In response to a trigger operation on the first virtual avatar, determine the state of the first virtual avatar; When the first virtual avatar is in a static state, the first desktop wallpaper is switched to the seventh desktop wallpaper, which displays the sixth animation of the first virtual avatar. The sixth animation displays the action of the first virtual avatar in real time related to the terminal. When the first virtual avatar is not in the static state, the first desktop wallpaper is switched to the eighth desktop wallpaper, which displays the seventh animation of the first virtual avatar, and the seventh animation displays an action related to the current action of the first virtual avatar.
10. The method according to claim 1, characterized in that, The method further includes: In response to continuous clicks on the first virtual avatar, if the number of consecutive clicks on the first virtual avatar exceeds a threshold, an eighth animation of the first virtual avatar is determined based on the real-time of the terminal. The eighth animation displays actions of the first virtual avatar associated with the real-time. In response to the end of the continuous clicking operation, the first desktop wallpaper is switched to the ninth desktop wallpaper, which displays the eighth animation.
11. The method according to claim 1, characterized in that, The method further includes: If the total number of clicks on the first virtual image within the time threshold exceeds the number threshold, a second virtual image is determined from the set of virtual images. The set of virtual images includes multiple distinct virtual images, and the second virtual image is any virtual image in the set of virtual images other than the first virtual image. The first desktop wallpaper is switched to the tenth desktop wallpaper, which displays a ninth interactive animation. The ninth interactive animation displays the actions of the first virtual character and the second virtual character interacting.
12. A display device for a virtual image, characterized in that, The device includes: The first display module is used to display a first desktop wallpaper on a virtual desktop, wherein the first desktop wallpaper displays a first virtual avatar; The second display module is used to display the application interface of the target application in response to the opening operation of the target application. The target application is any application in the terminal, and the application interface displays the application information of the target application. The first display module is further configured to, in response to a return to desktop operation, switch the first desktop wallpaper to a second desktop wallpaper, the second desktop wallpaper displaying a first animation of the first virtual avatar, and the first animation displaying an action of the first virtual avatar associated with the target application.
13. A terminal, characterized in that, The terminal includes a processor and a memory; the memory stores at least one piece of program code, which is executed by the processor to implement the virtual image display method as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The storage medium stores at least one piece of program code, which is executed by a processor to implement the method for displaying a virtual image as described in any one of claims 1 to 11.
15. A chip, characterized in that, The chip includes programmable logic circuits and / or program instructions, which, when running on a terminal, are used to implement the virtual image display method as described in any one of claims 1 to 11.
16. A computer program product, comprising a computer program, characterized in that, The computer program product stores at least one piece of program code, which is executed by a processor to implement the method for displaying a virtual image as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Dynamic desktop control method and device, storage medium and electronic device
CN114116105A
Dynamic desktop control method and device, storage medium and electronic device
CN114296853A