Virtual image processing method, device, terminal and storage medium
Through the virtual image processing method, the user can customize and set the virtual image so that the terminal can display the message in a floating manner when receiving communication messages, which solves the problem of a single prompt method in the existing technology and realizes personalized and flexible message prompts.
Patent Information
- Application Number
- CN202110736829.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-06-30
AI Technical Summary
In the existing technology, the terminal's prompting method for received communication messages is too single, lacks flexibility, and cannot meet the personalized needs of users.
Provides a virtual image processing method that allows users to display and edit virtual images in the selection interface, including main elements, decorative elements and sound elements, customize them through a variety of editing controls, set them as the target virtual image, and receive Hovering display when communication message is received.
It implements a flexible and interesting message prompt method, enhances the prompt effect, meets the personalized needs of users, and provides the function of customizing avatars to facilitate user selection and editing.
Smart Images

Figure CN113325983B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a virtual image processing method, device, terminal and storage medium. Background Art
[0002] With the widespread development of computer technology, terminals will receive various communication messages, such as text messages, instant messaging messages, call requests, etc. When the terminal receives a communication message, it will prompt the user. The commonly used prompt method is to play the prompt audio set by the user. However, the above information prompt method is too single and not flexible enough. Summary of the invention
[0003] The embodiments of the present application provide a method, device, terminal and storage medium for processing a virtual image, which can provide information prompts to users in a more flexible manner. The technical solution is as follows:
[0004] In one aspect, a method for processing a virtual image is provided, the method comprising:
[0005] Displaying at least one candidate virtual image in a selection interface, wherein the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received;
[0006] Based on the editing operation on the displayed first virtual image, a second virtual image is obtained;
[0007] In the selection interface, displaying the second virtual image;
[0008] In response to the setting operation on the second virtual image, the second virtual image is set as the target virtual image.
[0009] In a possible implementation, the first virtual image includes a first main element, a first decorative element, and a first sound element, and the second virtual image is obtained based on the editing operation on the displayed first virtual image, including at least one of the following:
[0010] In response to the main body editing operation on the first virtual image, the first main body element is edited to obtain the second virtual image;
[0011] In response to the decoration editing operation on the first virtual image, the first decoration element is edited to obtain the second virtual image;
[0012] In response to the sound editing operation on the first virtual image, the first sound element is edited to obtain the second virtual image.
[0013] In a possible implementation, the first virtual image includes multiple elements, and the second virtual image is obtained based on the editing operation on the displayed first virtual image, including:
[0014] In response to an editing instruction operation on the first virtual image, an editing interface is displayed, wherein the editing interface includes a plurality of editing controls, each of which is used to edit an element in the first virtual image;
[0015] Based on at least one editing control among the multiple editing controls, at least one element in the first virtual image is edited to obtain the second virtual image.
[0016] In a possible implementation, the first virtual image includes a first main element, and the editing of at least one element of the first virtual image based on at least one editing control among the multiple editing controls to obtain the second virtual image includes:
[0017] In response to a trigger operation on the body edit control, obtaining a second body element;
[0018] The first main element in the first virtual image is replaced with the second main element to obtain the second virtual image.
[0019] In a possible implementation, in response to a triggering operation on a body editing control, obtaining a second body element includes:
[0020] In response to a triggering operation on the body editing control, an image library is displayed, the image library includes at least one image, and the second body element is acquired based on the image selected from the image library; or,
[0021] In response to a triggering operation on the body editing control, a video library is displayed, the video library includes at least one video, and the second body element is obtained based on a video selected from the video library.
[0022] In a possible implementation manner, acquiring the second main element based on the image selected from the image library includes:
[0023] Displaying an image editing interface, wherein the image editing interface includes a mask, wherein the mask includes a transparent area and an opaque area, wherein the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the top of the image;
[0024] Based on the transparent area, intercepting a target image, wherein the target image is composed of an image area in the image located in the transparent area;
[0025] The target image is determined as the second main element.
[0026] In a possible implementation, the acquiring the second main element based on the video selected from the video library includes:
[0027] Displaying a video editing interface, the video editing interface including a capture control and a mask, the mask including a transparent area and an opaque area, the shape and size of the transparent area being the same as the shape and size of the first main element in the first virtual image, and the mask covering the top of the video;
[0028] Based on the time period indicated by the capture control and the transparent area, capture a video segment, wherein the video segment is composed of an image area in the video that is within the time period and located in the transparent area;
[0029] The video clip is determined as the second main element.
[0030] In a possible implementation, before capturing the video segment based on the time period indicated by the capture control and the transparent area, the method further includes:
[0031] Based on the touch operation on the interception control, a time period indicated by the interception control is determined.
[0032] In a possible implementation, the first virtual image includes a first sound element, and the editing of at least one element of the first virtual image based on at least one editing control among the multiple editing controls to obtain the second virtual image includes:
[0033] In response to a triggering operation on the sound editing control, obtaining a second sound element;
[0034] The first sound element in the first virtual image is replaced by the second sound element to obtain the second virtual image.
[0035] In a possible implementation, the acquiring the second sound element in response to a triggering operation on a sound editing control includes:
[0036] In response to a trigger operation on the sound editing control, displaying an audio library, the audio library including at least one audio;
[0037] Based on the audio selected from the audio library, the second sound element is obtained.
[0038] In a possible implementation, the acquiring the second sound element based on the audio selected from the audio library includes:
[0039] Displaying a capture control in the editing interface;
[0040] Based on the touch operation on the interception control, intercepting the audio segment indicated by the interception control from the audio;
[0041] The audio segment is determined as the second sound element.
[0042] In a possible implementation, after acquiring the second main element based on the video selected from the video library, the method further includes:
[0043] In the case where the video has corresponding background audio, an audio enabling option is displayed in the editing interface, and the audio enabling option is used to determine the background audio corresponding to the video as the sound element of the second virtual image.
[0044] In a possible implementation, after editing at least one element of the first virtual image based on at least one editing control among the multiple editing controls to obtain the second virtual image, the method further includes:
[0045] Displayed in the editing interface: the display effect of the second virtual image when a communication message is received.
[0046] In a possible implementation, the selection interface includes a first display area and a second display area, the first display area displays the at least one alternative virtual image, and the second display area displays an effect of floating the selected virtual image on the desktop.
[0047] In a possible implementation, displaying the second virtual image in the selection interface includes:
[0048] Displaying the second virtual image in the first display area in a selected state;
[0049] The step of setting the second virtual image as the target virtual image in response to the setting operation on the second virtual image includes:
[0050] In response to a confirmation operation on the second virtual image selected in the first display area, the second virtual image is set as the target virtual image.
[0051] In a possible implementation, the selected avatar includes a sound element, and the method further includes:
[0052] During the process of displaying the effect of the selected virtual image in the second display area, the sound element of the selected virtual image is played.
[0053] In a possible implementation, after the second virtual image is set as the target virtual image in response to the setting operation on the second virtual image, the method further includes:
[0054] In response to receiving the communication message, the second virtual image is displayed in a floating manner in the current interface.
[0055] In a possible implementation, the selection interface includes an option corresponding to the first prompt type and an option corresponding to the second prompt type, and the method further includes:
[0056] In response to a trigger operation on an option corresponding to the first prompt type, determining that the message prompt type is a first prompt type, wherein the first prompt type refers to: suspending and displaying the target virtual image when a communication message is received, but not playing a sound element in the target virtual image; or
[0057] In response to a trigger operation on an option corresponding to the second prompt type, the message prompt type is determined to be the second prompt type, and the second prompt type refers to: floating display of the target virtual image when a communication message is received, and playing sound elements in the target virtual image.
[0058] In a possible implementation, the selection interface includes a do not disturb option, and the method further includes:
[0059] In response to the triggering operation of the do not disturb option, the do not disturb function is turned on, and the do not disturb function means that: in the silent mode, when a communication message is received, the target virtual image is suspended and displayed, but the sound elements in the target virtual image are not played.
[0060] In a possible implementation, before displaying at least one candidate virtual image in the selection interface, the method further includes:
[0061] Displaying a virtual image setting interface, wherein the virtual image setting interface includes a plurality of application identifiers;
[0062] In response to a selection operation on a target application identifier corresponding to a target application, the selection interface corresponding to the target application identifier is displayed, and the selection interface is used to select a target virtual image that is displayed in suspension when a communication message of the target application is received.
[0063] In another aspect, a virtual image processing device is provided, the device comprising:
[0064] A first display module is configured to display at least one candidate virtual image in a selection interface, wherein the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received;
[0065] An image editing module, configured to obtain a second virtual image based on an editing operation on the displayed first virtual image;
[0066] A second display module is configured to display the second virtual image in the selection interface;
[0067] The image setting module is configured to set the second virtual image as the target virtual image in response to a setting operation on the second virtual image.
[0068] In a possible implementation, the first virtual image includes a first main element, a first decorative element, and a first sound element, and the image editing module is configured to perform at least one of the following:
[0069] In response to the main body editing operation on the first virtual image, the first main body element is edited to obtain the second virtual image;
[0070] In response to the decoration editing operation on the first virtual image, the first decoration element is edited to obtain the second virtual image;
[0071] In response to the sound editing operation on the first virtual image, the first sound element is edited to obtain the second virtual image.
[0072] In a possible implementation, the first virtual image includes multiple elements, and the image editing module includes:
[0073] A control display submodule, configured to display an editing interface in response to an editing instruction operation on the first virtual image, wherein the editing interface includes a plurality of editing controls, each of which is used to edit an element in the first virtual image;
[0074] The image editing submodule is configured to edit at least one element of the first virtual image based on at least one editing control among the multiple editing controls to obtain the second virtual image.
[0075] In a possible implementation, the first virtual image includes a first main element, and the image editing submodule includes:
[0076] A body element acquisition unit, configured to acquire a second body element in response to a trigger operation on the body edit control;
[0077] The main element replacement unit is configured to replace the first main element in the first virtual image with the second main element to obtain the second virtual image.
[0078] In a possible implementation, the main element acquisition unit includes:
[0079] a first acquisition subunit configured to display an image library in response to a trigger operation on the body editing control, the image library including at least one image, and acquire the second body element based on the image selected from the image library; or
[0080] The second acquisition subunit is configured to display a video library in response to a trigger operation on the body editing control, the video library including at least one video, and acquire the second body element based on a video selected from the video library.
[0081] In a possible implementation, the first acquisition subunit is configured to display an image editing interface, the image editing interface includes a mask, the mask includes a transparent area and an opaque area, the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the top of the image; based on the transparent area, a target image is captured, and the target image is composed of an image area in the image located in the transparent area; and the target image is determined as the second main element.
[0082] In a possible implementation, the second acquisition sub-unit is configured to display a video editing interface, the video editing interface including a capture control and a mask, the mask including a transparent area and an opaque area, the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the top of the video; based on the time period indicated by the capture control and the transparent area, a video clip is captured, the video clip is composed of an image area in the video that is within the time period and located in the transparent area; the video clip is determined as the second main element.
[0083] In a possible implementation manner, the second acquisition subunit is further configured to determine the time period indicated by the interception control based on a touch operation on the interception control.
[0084] In a possible implementation, the first virtual image includes a first sound element, and the image editing submodule includes:
[0085] A sound element acquisition unit, configured to acquire a second sound element in response to a trigger operation on the sound editing control;
[0086] The sound element replacement unit is configured to replace the first sound element in the first virtual image with the second sound element to obtain the second virtual image.
[0087] In a possible implementation, the sound element acquisition unit includes:
[0088] A display subunit, configured to display an audio library in response to a trigger operation on the sound editing control, wherein the audio library includes at least one audio;
[0089] The third acquisition subunit is configured to acquire the second sound element based on the audio selected from the audio library.
[0090] In a possible implementation, the third acquisition subunit is configured to display an interception control in the editing interface; based on a touch operation on the interception control, intercept an audio segment indicated by the interception control from the audio; and determine the audio segment as the second sound element.
[0091] In one possible implementation, the control display submodule is also configured to display an audio enable option in the editing interface when the video has corresponding background audio, and the audio enable option is used to determine the background audio corresponding to the video as the sound element of the second virtual image.
[0092] In a possible implementation, the image editing module further includes:
[0093] The effect display submodule is configured to display in the editing interface: the display effect of the second virtual image when a communication message is received.
[0094] In a possible implementation, the selection interface includes a first display area and a second display area, the first display area displays the at least one alternative virtual image, and the second display area displays an effect of floating the selected virtual image on the desktop.
[0095] In a possible implementation, the second display module is configured to display the second virtual image in a selected state in the first display area;
[0096] The image setting module is configured to set the second virtual image as the target virtual image in response to a confirmation operation on the second virtual image selected in the first display area.
[0097] In a possible implementation, the selected virtual image includes a sound element, and the device further includes:
[0098] The audio playing module is configured to play the sound elements of the selected virtual image during the process of displaying the effect of the selected virtual image in the second display area.
[0099] In a possible implementation manner, the device further includes:
[0100] The third display module is configured to display the second virtual image in suspension in the current interface in response to receiving the communication message.
[0101] In a possible implementation, the selection interface includes an option corresponding to the first prompt type and an option corresponding to the second prompt type, and the device further includes:
[0102] a first determining module configured to, in response to a triggering operation on an option corresponding to the first prompt type, determine that the message prompt type is a first prompt type, wherein the first prompt type refers to: suspending and displaying the target virtual image when a communication message is received, but not playing a sound element in the target virtual image; or
[0103] The second determination module is configured to determine that the message prompt type is a second prompt type in response to a trigger operation on an option corresponding to the second prompt type, wherein the second prompt type refers to: floating display of the target virtual image when a communication message is received, and playing sound elements in the target virtual image.
[0104] In a possible implementation, the selection interface includes a do not disturb option, and the device further includes:
[0105] The function activation module is configured to activate the do not disturb function in response to a trigger operation on the do not disturb option. The do not disturb function means that when the device is in silent mode, the target virtual image is displayed in suspension when a communication message is received, but the sound elements in the target virtual image are not played.
[0106] In one possible implementation, the first display module is also configured to display a virtual image setting interface, which includes multiple application identifiers; in response to a selection operation on a target application identifier corresponding to a target application, the selection interface corresponding to the target application identifier is displayed, and the selection interface is used to select a target virtual image to be displayed in suspension when a communication message from the target application is received.
[0107] On the other hand, a terminal is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operations performed in the virtual image processing method in any possible implementation manner described above.
[0108] On the other hand, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operations performed in the virtual image processing method in any possible implementation manner described above.
[0109] In another aspect, a computer program product or a computer program is provided, wherein the computer program product or the computer program comprises computer instructions stored in a computer-readable storage medium, wherein the computer instructions are loaded and executed by a processor to implement the operations performed in the virtual image processing method in any possible implementation manner.
[0110] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0111] The embodiment of the present application provides a new message prompting method, which can use the method of floating display of virtual images for message prompting, so that the user can know that the terminal has received the communication message through the floating displayed virtual image. This message prompting method is flexible and interesting, and enhances the prompting effect. In addition, the embodiment of the present application allows the user to customize the virtual image, and can provide the user with alternative virtual images, so that the user can select the alternative virtual image, and then edit the virtual image to obtain a customized virtual image, which fully meets the personalized needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0112] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0113] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0114] Figure 2 is a flow chart of a virtual image processing method provided by an embodiment of the present application;
[0115] Figure 3 is a flow chart of a virtual image processing method provided by an embodiment of the present application;
[0116] Figure 4 is a schematic diagram of a selection interface provided in an embodiment of the present application;
[0117] Figure 5 is a schematic diagram of an editing interface provided in an embodiment of the present application;
[0118] Figure 6is a schematic diagram of a video library display interface provided in an embodiment of the present application;
[0119] Figure 7 is a schematic diagram of a video editing interface provided in an embodiment of the present application;
[0120] Figure 8 is a schematic diagram of a video editing interface provided in an embodiment of the present application;
[0121] Fig. 9 is a schematic diagram of an editing interface provided in an embodiment of the present application;
[0122] Fig.10 is a flow chart of a virtual image processing method provided by an embodiment of the present application;
[0123] Fig.11 is a flow chart of a virtual image processing method provided by an embodiment of the present application;
[0124] Fig.12 is a block diagram of a virtual image processing device provided in an embodiment of the present application;
[0125] Fig.13 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0126] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0127] It is understood that the terms "each", "multiple", and "any" used in this application include two or more than two, each refers to each of the corresponding multiple, and any refers to any one of the corresponding multiple. For example, the multiple virtual images include 10 virtual images, and each virtual image refers to each virtual image of the 10 virtual images, and any virtual image refers to any virtual image of the 10 virtual images.
[0128] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1, the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are connected via a wireless or wired network. A prompt application provided by the server 102 is installed on the terminal 101, and the terminal 101 can implement functions such as data transmission and message interaction through the target application. Optionally, the terminal 101 is a computer, a mobile phone, a tablet computer or other terminals. Optionally, the target application is a target application in the operating system of the terminal 101, or a target application provided by a third party. The target application has a message prompt function. Optionally, in addition to the message prompt function, the target application also has other functions, such as interface decoration function, image and video editing function, audio editing function, etc., which are not limited in this application. Optionally, the server 102 is a background server of the target application or a cloud server that provides cloud computing and cloud storage services.
[0129] The server 102 is used to provide at least one alternative virtual image for the terminal 101, and the terminal 101 is used to display the alternative virtual image in the selection interface of the target application so that the user can select a favorite virtual image from it. The user can also edit the favorite virtual image to obtain a customized virtual image. Correspondingly, the terminal 101 is also used to edit the displayed first virtual image to obtain a second virtual image based on the user's editing operation. The user can also set the second virtual image as the target virtual image. After that, when the terminal 101 receives a communication message, it can prompt the user to receive the communication message by suspending the second virtual image. The virtual image processing method in the embodiment of the present application can be applied to the scene of prompting any type of communication message. For example, the target virtual image corresponding to the text message, instant messaging message, call request or other communication message is set in the manner provided in the present application, and when any communication message is received, the corresponding target virtual image is displayed by suspending to prompt.
[0130] Figure 2 is a flowchart of a virtual image processing method provided by an embodiment of the present application. Figure 2 , the embodiment comprises:
[0131] 201. The terminal displays at least one candidate virtual image in a selection interface, where the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received.
[0132] In terms of the type of virtual image, the virtual image includes a cartoon image and an image of an actual image. For example, the cartoon image is a cartoon image of a cat, a cartoon image of a person, or other cartoon images, and the image of the actual image is an image of an actual cat, an image of an actual person, or an image of other actual images. In terms of the display effect of the virtual image, the virtual image includes a dynamic virtual image and a static virtual image. In terms of the source of the virtual image, the virtual image includes a virtual image obtained from a server and a virtual image obtained locally from a terminal. In terms of whether the virtual image has been edited by a user, the virtual image includes an original virtual image that has not been edited by a user and a virtual image that has been edited by a user. In terms of the function of the virtual image, the virtual image is used for message prompts. Any virtual image can be set as a target virtual image. After being set as a target virtual image, when the terminal receives a communication message, it prompts the user to receive the communication message by suspending and displaying the virtual image. In terms of the composition of the virtual image, the virtual image includes at least one of a main element, a decorative element, and a sound element, wherein the decorative element is used to decorate the main element, and the main element and the decorative element constitute the picture of the virtual image. The main element and the decorative element include any of the above virtual images. The sound element is used to play synchronously as background audio when the virtual image is displayed in suspension on the terminal, thereby enhancing the message prompt effect of the virtual image.
[0133] Optionally, the selection interface also displays introduction information of the virtual image, such as the name of the virtual image, the number of resources required to obtain the virtual image, the effect of message prompts through the virtual image, the popularity value of the virtual image, labels of the virtual image, etc., where labels include dynamic virtual images, static virtual images, cartoon images, etc., and the embodiments of the present application do not limit this.
[0134] Optionally, at least one alternative virtual image is displayed in a classified manner in the selection interface. For example, the selection interface includes multiple categories. When the terminal detects a trigger operation on any category, at least one virtual image corresponding to the category is displayed in the selection interface. For example, the selection interface includes two categories, the first category is dynamic virtual images, and the second category is static virtual images. When the terminal detects a trigger operation on the first category, at least one dynamic virtual image is displayed on the selection interface. When a trigger operation on the second category is detected, at least one static virtual image is displayed on the selection interface. Optionally, the selection interface also includes other categories, for example, including celebrity characters, pets, cartoon characters, etc., which are not limited in the embodiments of the present application. By displaying virtual images in a classified manner in the selection interface, it is convenient for users to quickly find their favorite virtual images.
[0135] Optionally, the selection interface is a selection interface of a target application installed on the terminal. The function of the target application is to suspend and display a target virtual image set by the user when it is determined that a communication message has been received, so as to prompt that the communication message has been received. The terminal can log in to the target application based on the user identifier, and then set the target virtual image based on the selection interface. Among them, the user identifier is used to indicate the identity of the user. Optionally, the user identifier is an account registered by the user or a mobile phone number of the user.
[0136] 202. The terminal obtains a second virtual image based on an editing operation on the displayed first virtual image.
[0137] The first virtual image is any virtual image among the candidate virtual images. Optionally, the editing operation includes cutting the first virtual image, adding materials to the first virtual image, replacing elements in the first virtual image, etc., which is not limited in the embodiment of the present application.
[0138] In one possible implementation, the first virtual image includes a first main element, a first decorative element and a first sound element. Accordingly, the terminal obtains the second virtual image based on an editing operation on the displayed first virtual image, including at least one of the following: the terminal edits the first main element in response to the main editing operation on the first virtual image to obtain the second virtual image; the terminal edits the first decorative element in response to the decorative editing operation on the first virtual image to obtain the second virtual image; the terminal edits the first sound element in response to the sound editing operation on the first virtual image to obtain the second virtual image.
[0139] In the embodiment of the present application, the first virtual image includes multiple elements such as main elements, decorative elements and sound elements. The user can choose to edit any one or more elements in the first virtual image. The editing method is rich and flexible, which makes it more convenient for users to customize the virtual image and meet their personalized needs.
[0140] 203. The terminal displays the second virtual image in the selection interface.
[0141] 204. In response to the setting operation on the second virtual image, the terminal sets the second virtual image as a target virtual image.
[0142] After the terminal sets the second virtual image as the target virtual image, when receiving a communication message, the terminal prompts the user that the communication message has been received by suspending and displaying the second virtual image.
[0143] It should be noted that the user can also select a favorite virtual image from the displayed virtual images and directly set the virtual image as the target virtual image without editing the virtual image.
[0144] The embodiment of the present application provides a new message prompting method, which can use the method of floating display of virtual images for message prompting, so that the user can know that the terminal has received the communication message through the floating displayed virtual image. This message prompting method is flexible and interesting, and enhances the prompting effect. In addition, the embodiment of the present application allows the user to customize the virtual image, and can provide the user with alternative virtual images, so that the user can select the alternative virtual image, and then edit the virtual image to obtain a customized virtual image, which fully meets the personalized needs of the user.
[0145] Figure 3 is a flow chart of a method for processing a virtual image provided by an embodiment of the present application. In this embodiment, the main elements in the virtual image can be customized. Figure 3 , the embodiment comprises:
[0146] 301. The terminal displays at least one candidate virtual image in a selection interface, where the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received.
[0147] Optionally, before the terminal displays at least one alternative virtual image, the terminal obtains at least one alternative virtual image from the server. That is, after the terminal logs in to the target application based on the user identifier, the terminal sends the user identifier to the server, the server obtains at least one alternative virtual image recommended for the user based on the user identifier, sends the at least one alternative virtual image to the terminal, and the terminal receives the at least one alternative virtual image.
[0148] In a possible implementation, the selection interface includes a first display area and a second display area, the first display area displays at least one alternative virtual image, and the second display area displays: an effect of floating the selected virtual image on the desktop. Optionally, the second display area is located above the first display area. Optionally, a virtual desktop is displayed in the second display area, and the currently selected virtual image is displayed floating on the desktop. When the user switches the selected virtual image, the virtual image displayed in the second display area will also switch, so that the user can browse the display effect of any alternative virtual image in the second display area.
[0149] In an embodiment of the present application, after the currently selected virtual image is set as the target virtual image, the second display area simulates the effect of the virtual image being displayed in suspension on the desktop when a communication message is received. In this way, the user can know the display effect of the currently selected virtual image before setting the virtual image as the target virtual image, which makes it easier for the user to select his or her favorite virtual image and also ensures that the display effect of the target virtual image set by the user is in line with his or her preferences.
[0150] In one possible implementation, the selected virtual image includes a sound element. Accordingly, the terminal plays the sound element of the selected virtual image while displaying the effect of the selected virtual image in the second display area. This is more conducive to the user experience of the message prompt effect of the virtual image when receiving a communication message after setting the virtual image as the target virtual image, thereby making it easier for users to select their favorite virtual image.
[0151] Figure 4 This is a schematic diagram of the selection interface. Figure 4 In the first display area 401 of the selection interface, a plurality of virtual images are displayed, for example, a virtual image of a bell, a virtual image of a sika deer, etc. Among them, a selection box is provided above the second virtual image in the category of custom virtual images, and the word "custom" is also displayed in the selection box, indicating that the virtual image is the currently selected virtual image. In the second display area 402, the effect of the selected virtual image 404 being suspended and displayed on the desktop 403 is displayed.
[0152] 302. In response to the editing instruction operation on the first virtual image, the terminal displays an editing interface, where the editing interface includes a plurality of editing controls, each of which is used to edit an element in the first virtual image.
[0153] Optionally, the editing instruction operation on the first virtual image is an arbitrary operation, for example, a triggering operation on the editing instruction option corresponding to the first virtual image in the selection interface, and the embodiment of the present application does not impose any limitation on this.
[0154] The first virtual image includes multiple elements, for example, a first main body element, and accordingly, the editing interface includes a main body editing control for editing the first main body element. For another example, the first virtual image includes a first decorative element, and accordingly, the editing interface includes a decorative editing control for editing the first decorative element. For another example, the first virtual image includes a first sound element, and accordingly, the editing interface includes a sound editing control for editing the first sound element. Among them, the first decorative element is used to decorate the first main body element, and the first main body element and the first decorative element constitute the picture of the first virtual image. The first sound element is used to play synchronously as background audio when the terminal displays the first virtual image in suspension, so as to enhance the message prompt effect of the first virtual image.
[0155] One thing that needs to be explained is that the editing controls included in the above-mentioned editing interface are only exemplary. In fact, the editing interface can display any one or more editing controls, and the embodiments of the present application do not limit this.
[0156] Optionally, in the editing interface, above the editing control is displayed: the display effect of the first virtual image when the communication message is received. Optionally, when the first virtual image is a dynamic virtual image, a pause control is also displayed around the first virtual image. During the dynamic display of the first virtual image, the terminal responds to the triggering operation of the pause control and freezes the first virtual image in the current display state.
[0157] Figure 5 This is a schematic diagram of the editing interface. Figure 5 The editing interface includes a subject editing control 501 and a sound editing control 502. The subject editing control 501 displays a prompt message "Select subject element" and the first subject element in the first virtual image, so as to prompt the user to edit the first subject element. The sound editing control 502 displays a prompt message "Default sound element", indicating that the first sound element in the current first virtual image is the default sound element and has not been edited by the user. The sound editing control also displays a prompt message "Select sound element" to prompt the user to edit the first sound element. Continue to refer to Figure 5 , the display effect of the first virtual image when receiving the communication message is displayed above the main body editing control 501. A pause control is also displayed below the first virtual image, and a prompt message "Effect Preview" is displayed in the pause control.
[0158] 303. The terminal obtains a second body element in response to a triggering operation on the body editing control.
[0159] In one possible implementation, the terminal obtains the second body element in response to a trigger operation on the body editing control, including: the terminal displays an image library in response to the trigger operation on the body editing control, the image library includes at least one image, and the terminal obtains the second body element based on the image selected from the image library; or, the terminal displays a video library in response to the trigger operation on the body editing control, the video library includes at least one video, and obtains the second body element based on the video selected from the video library.
[0160] The image library includes at least one of the local images of the terminal or the images obtained by the terminal from the server, and the video library includes at least one of the local videos of the terminal or the videos obtained by the terminal from the server. Optionally, the images in the image library are static images, GIF (Graphics Interchange Format) images or other types of images, which are not limited in the embodiments of the present application.
[0161] In a possible implementation, the terminal obtains the second main element based on the image selected from the image library, including: the terminal displays an image editing interface, the image editing interface includes a mask, the mask includes a transparent area and an opaque area, wherein the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the top of the image; the terminal captures the target image based on the transparent area, the target image is composed of the image area in the image located in the transparent area, and the terminal determines the target image as the second main element.
[0162] In an embodiment of the present application, a mask is displayed above the image selected by the user, and the target image in the image located in the transparent area of the mask is captured. On the one hand, the mask can be used to capture the target image with the same shape and size as the first main element in the first virtual image. On the other hand, it is convenient for the user to understand the shape, size and image content of the target image to be used as the second main element.
[0163] Optionally, before capturing the target image based on the transparent area, the terminal adjusts the image area exposed from the transparent area of the mask based on the touch operation on the transparent area. Since the image area is used to constitute the target image, this method enables the user to capture his or her favorite image area from the selected image to constitute the second main element, thereby improving the flexibility of the user in customizing the virtual image.
[0164] In a possible implementation, the terminal obtains the second main element based on the video selected from the video library, including: the terminal displays a video editing interface, the video editing interface includes a capture control and a mask, the mask includes a transparent area and an opaque area, wherein the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the top of the video; the terminal captures a video clip based on the time period and transparent area indicated by the capture control, the video clip is composed of an image area in the video within the time period and located in the transparent area; the terminal determines the video clip as the second main element. Optionally, the duration of the time period indicated by the capture control is not greater than the target duration, and optionally, the target duration is the duration of the dynamic effect of the first virtual image.
[0165] Optionally, the terminal captures a video clip based on the time period and transparent area indicated by the capture control, including: the terminal captures the image area of the transparent area from each frame image indicated by the time period in the video, and the image area captured from each frame image constitutes the video clip.
[0166] In an embodiment of the present application, a mask is displayed above the video selected by the user, and the image area in the video within the time period indicated by the capture control and located in the transparent area of the mask is captured. On the one hand, the capture control and the mask can be used to ensure that the shape and size of each frame image in the video clip captured from the video are the same as the shape and size of the first main element. On the other hand, it is convenient for the user to understand the shape, size and content of the image in the video clip that will serve as the second main element.
[0167] In a possible implementation, the terminal determines the time period indicated by the capture control based on a touch operation on the capture control before capturing the video clip, based on the time period indicated by the capture control and the transparent area.
[0168] Optionally, the interception control is located on the video track corresponding to the video, and the terminal uses the video track to determine the time period indicated by the interception control. That is, the terminal determines the video track between the two ends of the interception control based on the touch operation on the interception control, and determines the time period corresponding to the video track between the two ends of the interception control as the time period indicated by the interception control. This method allows the user to freely determine the video track between the two ends of the interception control, so as to select the video clips they like from the video for interception, thereby improving the flexibility of the user to customize the virtual image. Optionally, the touch operation includes sliding operations on the two ends of the interception control.
[0169] Optionally, the time period indicated by the capture control is a default time period, for example, the first 2 seconds of the video. This eliminates the need for the user to manually capture video clips, which can improve the efficiency of capturing video clips, thereby improving the efficiency of customizing the avatar.
[0170] Optionally, when the playback time of the video selected from the video library is shorter than the target time, the interception control is not displayed in the video editing interface. Since the length of the video selected by the user already meets the requirement, there is no need to intercept the video length. In this case, not displaying the interception control in the video editing interface can simplify the interface.
[0171] Optionally, the video editing interface includes a confirmation capture control, and the terminal captures the video segment based on the time period and transparent area indicated by the capture control in response to a triggering operation on the confirmation capture control.
[0172] Optionally, in the process of intercepting a video clip based on the time period and transparent area indicated by the interception control, the terminal displays the interception progress information in a floating manner in the video editing interface. Since it may take a long time to intercept a video clip, the interception progress information is displayed in a floating manner in the video editing interface, which can help users estimate the time required to wait for the video to be intercepted, relieve the user's anxiety caused by waiting, and thus improve the user experience. Optionally, in the process of intercepting a video clip based on the time period and transparent area indicated by the interception control, a cancel interception control is also displayed in a floating manner in the video editing interface, so that the user can cancel the video interception operation at any time.
[0173] Figure 6 This is a diagram of the video library display interface. Figure 6 , the interface displays multiple videos, and the duration of each video is displayed in the lower right corner. Users can select videos based on their duration. Figure 6 The interface also includes an image display control, which displays a prompt message "image". In response to a trigger operation on the image display control, the terminal switches the video displayed in the interface to an image, and the user can select an image from the interface.
[0174] Figure 7 This is a schematic diagram of the video editing interface. Figure 7 , a mask 701 is displayed above the video editing interface, and the mask 701 covers the top of the video. The transparent area in the mask 701 is circular. A video track 702 is displayed below the video editing interface, and a capture control 703 is displayed on the video track 702, wherein the time period indicated by the capture control 703 is the first 0.7 seconds of the video. The user can slide the two ends of the capture control 703 (the shaded area in the figure) to adjust the time period indicated by the capture control.
[0175] Figure 8 This is a schematic diagram of the video editing interface. Figure 8 The video editing interface includes a confirmation interception control, which displays a prompt message "Complete". In response to the triggering operation of the confirmation interception control, the terminal intercepts the video clip based on the time period indicated by the interception control 802 and the transparent area of the mask 801. During the process of intercepting the video clip, the terminal displays the interception progress of the video clip and a cancel interception control in the video editing interface, and the cancel interception control displays a prompt message "Cancel" to facilitate the user to cancel the video interception operation at any time.
[0176] 304. The terminal replaces the first main element in the first virtual image with the second main element to obtain the second virtual image.
[0177] After the terminal obtains the second main element, the terminal replaces the first main element in the first virtual image with the second main element while keeping other elements in the first virtual image unchanged, thereby obtaining the second virtual image.
[0178] In a possible implementation, in the above step 303, after the terminal obtains the second main element based on the video selected from the video library, if the video has corresponding background audio, an audio enable option is displayed in the editing interface. The audio enable option is used to determine the background audio corresponding to the video as the sound element of the second virtual image, and accordingly, the terminal determines the background audio corresponding to the video as the sound element of the second virtual image in response to the triggering operation of the audio enable option. Optionally, the terminal determines the background audio corresponding to the video as the sound element of the second virtual image, including: the terminal determines the background audio as the second sound element, and replaces the first sound element in the second virtual image with the second sound element. In this way, the user can not only use the selected video to customize the main element in the virtual image, but also use the background audio of the video to customize the sound element in the virtual image, which can fully meet the user's personalized needs.
[0179] In a possible implementation, after the terminal obtains the second virtual image, it displays in the editing interface: the display effect of the second virtual image when a communication message is received. This makes it convenient for users to browse the display effect of the customized second virtual image. Optionally, in the process of displaying the display effect of the second virtual image in the editing interface, the terminal plays the sound element of the second virtual image, so that the user can experience the message prompt effect of the second virtual image from multiple aspects of vision and hearing. Optionally, under the target condition, the terminal displays in the editing interface: the display effect of the second virtual image when a communication message is received, and plays the sound element of the second virtual image. In other cases, only the last frame of the dynamic effect of the second virtual image is displayed, and the sound element of the second virtual image is not played. Optionally, the target condition includes that the terminal detects a preview operation, or the terminal has just jumped to the editing interface from other interfaces, or the second virtual image is edited, etc., and the embodiment of the present application does not limit this.
[0180] Fig. 9 This is a schematic diagram of the editing interface. Fig. 9 , the top of the editing interface displays: the display effect of the second virtual image when receiving a communication message. The editing interface also includes an audio enable option 901, and a prompt message "Use video sound" is displayed on the left of the audio enable option 901 to prompt the user to trigger the audio enable option 901 and determine the background audio corresponding to the main element in the second virtual image as the sound element of the second virtual image.
[0181] In an embodiment of the present application, users can not only customize the main elements of the virtual image based on their favorite images, but also customize the main elements of the virtual image based on their favorite videos, thereby enriching the style of the customized virtual image and fully meeting the user's personalized needs.
[0182] 305. The terminal displays the second virtual image in the selection interface.
[0183] In a possible implementation, the terminal displays the second virtual image in the selection interface, including: the terminal displays the second virtual image in a selected state in the first display area of the selection interface, and displays the effect of the second virtual image being displayed in a suspended state on the desktop in the second display area of the selection interface. Since the second virtual image is a virtual image that the user has just created, the user is very likely to want to set the second virtual image as the target virtual image. Therefore, the second virtual image is displayed in a selected state in the first display area of the selection interface, and the effect of the second virtual image being displayed in a suspended state on the desktop is displayed in the second display area of the selection interface, which saves the user the step of selecting the second virtual image, simplifies the user's operation of setting the target virtual image, and improves the operation efficiency.
[0184] In a possible implementation, the terminal plays the sound element of the second virtual image while displaying the effect of the second virtual image floating on the desktop in the second display area, which is more conducive to the user understanding the message prompt effect of the second virtual image.
[0185] Optionally, when the first virtual image is a user-defined virtual image, after the second virtual image is displayed in the selection interface, the first virtual image is no longer displayed in the selection interface. When the first virtual image is a virtual image provided by the target application, after the second virtual image is displayed in the selection interface, the first virtual image is also displayed in the selection interface. That is, when the user edits the first virtual image provided by the target application, the resulting second virtual image will be saved as a new virtual image and then displayed in the selection interface without affecting the display of the original first virtual image, which remains unchanged. When the user edits the customized first virtual image, the resulting second virtual image will be saved as the updated first virtual image and then displayed in the selection interface, and the selection interface will no longer include the first virtual image before editing.
[0186] Optionally, the virtual image provided by the target application in the selection interface has no corresponding deletion control, while the virtual image customized by the user in the selection interface has a corresponding deletion control, and the user can delete the customized virtual image through the deletion control.
[0187] 306. In response to the setting operation on the second virtual image, the terminal sets the second virtual image as the target virtual image.
[0188] Optionally, the selection interface includes setting options corresponding to the second virtual image, and accordingly, the terminal sets the second virtual image as the target virtual image in response to the setting operation on the second virtual image, including: the terminal sets the second virtual image as the target virtual image in response to the triggering operation on the setting option.
[0189] In one possible implementation, the second virtual image is displayed in a selected state in the first display area of the selection interface, and accordingly, the terminal sets the second virtual image as the target virtual image in response to the setting operation of the second virtual image, including: the terminal sets the second virtual image as the target virtual image in response to the confirmation operation of the second virtual image selected in the first display area.
[0190] Optionally, the selection interface includes a confirmation option, and accordingly, the terminal sets the second virtual image as the target virtual image in response to the confirmation operation on the second virtual image selected in the first display area, including: the terminal sets the second virtual image selected in the second display area as the target virtual image in response to the triggering operation on the confirmation option.
[0191] It should be noted that the above steps 303-304 are only one implementation method of obtaining the second virtual image by editing at least one element in the first virtual image based on at least one editing control among multiple editing controls. In other embodiments, the second virtual image can also be obtained by other methods.
[0192] 307. In response to receiving the communication message, the terminal displays the second virtual image in suspension in the current interface.
[0193] Optionally, in response to receiving a communication message, the terminal displays a second virtual image floating in the current interface, including: when the terminal is in an unlocked state, in response to receiving a communication message, the second virtual image is displayed floating on the upper layer of the desktop; when the terminal is in a locked screen state, in response to receiving a communication message, the screen is turned on and the second virtual image is displayed floating on the upper layer of the lock screen interface.
[0194] Optionally, the terminal, in response to receiving the communication message, suspends and displays the second virtual image in the current interface, including: in response to receiving the communication message, the terminal suspends and displays the second virtual image in the current interface until the dynamic effect of the second virtual image is displayed. That is, after the dynamic effect of the second virtual image is displayed, the second virtual image is no longer displayed on the interface to avoid long-term occupation of the screen, thereby avoiding interference with user operations.
[0195] In one possible implementation, the selection interface includes options corresponding to the first prompt type and options corresponding to the second prompt type, and the terminal can also set the message prompt type based on the options corresponding to the first prompt type and the options corresponding to the second prompt type. That is, the terminal determines that the message prompt type is the first prompt type in response to the trigger operation of the option corresponding to the first prompt type. Among them, the first prompt type refers to: when a communication message is received, the target virtual image is displayed in suspension, but the sound elements in the target virtual image are not played. Alternatively, the terminal determines that the message prompt type is the second prompt type in response to the trigger operation of the option corresponding to the second prompt type. Among them, the second prompt type refers to: when a communication message is received, the target virtual image is displayed in suspension, and the sound elements in the target virtual image are played.
[0196] In the embodiment of the present application, when the message prompt type is the first prompt type and the second virtual image is the target virtual image, the terminal responds to receiving the communication message by suspending and displaying the second virtual image on the current interface, but does not play the sound element of the second virtual image. When the message prompt type is the second prompt type and the second virtual image is the target virtual image, the terminal responds to receiving the communication message by suspending and displaying the second virtual image on the current interface and playing the sound element of the second virtual image.
[0197] In an embodiment of the present application, by displaying options corresponding to the first prompt type and options corresponding to the second prompt type in the selection interface, a variety of message prompt types are provided to the user, allowing the user to freely set the prompt method of the communication message as needed, thereby improving user stickiness.
[0198] In a possible implementation, the selection interface includes a do not disturb option, and the terminal can also turn on the do not disturb function based on the do not disturb option. Accordingly, the terminal responds to the triggering operation of the do not disturb option and turns on the do not disturb function. Wherein, the do not disturb function refers to: in the case of being in silent mode, the target virtual image is suspended and displayed when a communication message is received, but the sound elements in the target virtual image are not played. Therefore, in the embodiment of the present application, whether the terminal plays the sound elements in the target virtual image when receiving a communication message is not only related to the message prompt type set by the user, but also related to whether the user turns on the do not disturb function. In fact, when the message prompt type set by the user is the first prompt type, regardless of whether the user turns on the do not disturb function, the terminal will not play the sound elements in the target virtual image when receiving the communication message. In the case where the message prompt type set by the user is the second prompt type, when the do not disturb function is not turned on, the terminal will play the sound elements in the target virtual image when receiving the communication message, and when the do not disturb function is turned on, when the terminal receives the communication message, it will first determine whether the terminal is in silent mode. If it is in silent mode, the sound element will not be played. If it is in non-silent mode, the sound element will be played.
[0199] In an embodiment of the present application, when the message prompt type is the second prompt type, the second virtual image is the target virtual image, and the do not disturb function is turned on, the terminal responds to receiving a communication message and is in a non-silent mode, and displays the second virtual image in suspension on the current interface, and plays the sound elements in the second virtual image.
[0200] In an embodiment of the present application, by setting the do not disturb option, the user can turn on the do not disturb function as needed, thereby ensuring that when in silent mode, when receiving a communication message, the terminal will not play the sound elements of the virtual image, thereby improving the user experience.
[0201] Optionally, before the terminal displays the second virtual image in suspension in the current interface in response to receiving the communication message, the terminal enables the display permission of the second virtual image in response to the permission enabling operation. After the user enables the display permission of the second virtual image, the terminal can display the second virtual image in suspension in the current interface only when it receives the communication message.
[0202] Continue to refer Figure 4, the selection interface also includes option 405 corresponding to the first prompt type, option 406 corresponding to the second prompt type, and do not disturb option 407. Among them, the right side of option 405 corresponding to the first prompt type displays the prompt information "only set the virtual image", so as to prompt the user that if this option is selected, the terminal will only display the virtual image but not play the sound elements of the virtual image when receiving a communication message. The right side of option 406 corresponding to the second prompt type displays the prompt information "Set virtual image and sound", so as to prompt the user that if this option is selected, the terminal will not only display the virtual image but also play the sound elements of the virtual image when receiving a communication message. The left side of the do not disturb option 407 displays the prompt information "turn off animation sound when silent", so as to prompt the user that if this option is selected, when the terminal receives a communication message, if it is in silent mode, no matter what the message prompt type is set, the sound elements in the virtual image will not be played.
[0203] In one possible implementation, before displaying at least one alternative virtual image in the selection interface, the terminal displays a virtual image setting interface, and the virtual image setting interface includes multiple application identifiers; in response to a selection operation on a target application identifier corresponding to a target application, the terminal displays a selection interface corresponding to the target application identifier, and the selection interface is used to select a target virtual image to be displayed in suspension when a communication message from the target application is received.
[0204] In an embodiment of the present application, multiple application identifiers are displayed in the virtual image setting interface. When a user triggers an application identifier, the user will enter the selection interface corresponding to the application identifier, and set a virtual image for the application corresponding to the application identifier in the selection interface. Optionally, the user sets different virtual images for different applications. When the terminal receives a communication message from a certain application, the virtual image corresponding to the application will be displayed. In this case, the user can know which application the currently received communication message belongs to through the suspended virtual image, which improves the effect of the message prompt.
[0205] The embodiment of the present application provides a new message prompting method, which can use the method of floating display of virtual images for message prompting, so that the user can know that the terminal has received the communication message through the floating displayed virtual image. This message prompting method is flexible and interesting, and enhances the prompting effect. In addition, the embodiment of the present application allows the user to customize the virtual image, and can provide the user with alternative virtual images, so that the user can select the alternative virtual image, and then edit the virtual image to obtain a customized virtual image, which fully meets the personalized needs of the user.
[0206] Fig.10is a flow chart of a method for processing a virtual image provided by an embodiment of the present application. In this embodiment, the sound elements in the virtual image can be customized. Fig.10 , the embodiment comprises:
[0207] 1001. The terminal displays at least one candidate virtual image in a selection interface, where the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received.
[0208] 1002. In response to an editing instruction operation on the first virtual image, the terminal displays an editing interface, where the editing interface includes a plurality of editing controls, each of which is used to edit an element in the first virtual image.
[0209] Steps 1001-1002 are the same as the above steps 301-302 and will not be repeated here.
[0210] 1003. The terminal obtains a second sound element in response to a triggering operation on the sound editing control.
[0211] The terminal obtains the second sound element in response to the triggering operation of the sound editing control, including: the terminal displays an audio library in response to the triggering operation of the sound editing control, and the audio library includes at least one audio; the terminal obtains the second sound element based on the audio selected from the audio library. The audio library includes: at least one of the local audio of the terminal or the audio obtained by the terminal from the server, which is not limited in the embodiment of the present application.
[0212] The terminal obtains the second sound element based on the audio selected from the audio library, including: the terminal displays an interception control in the editing interface; the terminal intercepts the audio segment indicated by the interception control from the audio based on the touch operation of the interception control; and determines the audio segment as the second sound element. Optionally, the duration of the audio segment is not greater than the target duration. Optionally, the target duration is the duration of the dynamic effect of the first virtual image.
[0213] Optionally, the interception control is displayed on the audio track corresponding to the audio, and the terminal uses the audio track to intercept the audio clip. That is, the terminal determines the audio track between the two ends of the interception control based on the touch operation of the interception control, and intercepts the audio clip corresponding to the audio track between the two ends of the interception control from the audio.
[0214] Wherein, the two ends of the interception control can slide, and the user can slide the two ends of the interception control to adjust the audio track between the two ends of the interception control. Accordingly, the terminal determines the audio track between the two ends of the interception control based on the touch operation of the interception control, including: the terminal determines the audio track between the two ends of the interception control based on the sliding operation of the two ends of the interception control. This method allows users to select their favorite audio clips from the audio for interception, which improves the flexibility of users to customize virtual images.
[0215] Optionally, the audio segment indicated by the interception control is by default a target segment in the audio, for example, the target segment is the first 2 seconds of the audio segment. In this way, the user does not need to manually intercept the audio segment, which can improve the efficiency of intercepting the audio segment, thereby improving the efficiency of customizing the virtual image.
[0216] Optionally, when the playback duration of the audio selected from the audio library is shorter than the target duration, the interception control is not displayed in the audio editing interface. Since the length of the audio selected by the user already meets the requirement, there is no need to intercept the audio length. In this case, not displaying the interception control in the editing interface can simplify the editing interface.
[0217] 1004. The terminal replaces the first sound element in the first virtual image with the second sound element to obtain a second virtual image.
[0218] After the terminal obtains the second sound element, the terminal replaces the first sound element in the first virtual image with the second sound element while keeping other elements in the first virtual image unchanged, thereby obtaining the second virtual image.
[0219] It should be noted that the above steps 1003-1004 are only one implementation method of obtaining the second virtual image by editing at least one element in the first virtual image based on at least one editing control among multiple editing controls. In other embodiments, the second virtual image can also be obtained by other methods.
[0220] 1005. The terminal displays the second virtual image in the selection interface.
[0221] 1006. In response to the setting operation on the second virtual image, the terminal sets the second virtual image as the target virtual image.
[0222] 1007. In response to receiving the communication message, the terminal displays the second virtual image in suspension in the current interface.
[0223] The implementation method of steps 1004-1007 is the same as the implementation method of the above steps 304-307, which will not be repeated here.
[0224] In an embodiment of the present application, a user can customize the sound elements in a virtual image based on his or her favorite audio, obtain a virtual image that meets the user's preferences, and set the virtual image as the target virtual image for message prompts, fully meeting the user's personalized needs.
[0225] Fig.11 is a flow chart of a virtual image processing method provided by an embodiment of the present application. In this embodiment, the decorative elements in the virtual image can be customized. Fig.11 , the embodiment comprises:
[0226] 1101. The terminal displays at least one candidate virtual image in a selection interface, where the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received.
[0227] 1102. In response to an editing instruction operation on the first virtual image, the terminal displays an editing interface, where the editing interface includes a plurality of editing controls, each of which is used to edit an element in the first virtual image.
[0228] Steps 1101-1102 are the same as the above steps 301-302 and will not be repeated here.
[0229] 1103. The terminal obtains a second decoration element in response to a triggering operation on the decoration editing control.
[0230] In a possible implementation, the terminal obtains the second decorative element in response to a trigger operation on the decorative editing control, including: the terminal displays a decorative library in response to the trigger operation on the decorative editing control, the decorative library including at least one decorative element; the terminal determines the decorative element selected from the decorative library as the second decorative element. The decorative library includes: at least one of the decorative elements local to the terminal or the decorative elements obtained by the terminal from the server, which is not limited in the embodiment of the present application.
[0231] 1104. The terminal replaces the first decorative element in the first virtual image with the second decorative element to obtain a second virtual image.
[0232] After the terminal acquires the second decorative element, the terminal replaces the first decorative element in the first virtual image with the second decorative element while keeping other elements in the first virtual image unchanged, thereby obtaining the second virtual image.
[0233] It should be noted that the above steps 1103-1104 are only one implementation method of obtaining the second virtual image by editing at least one element in the first virtual image based on at least one editing control among multiple editing controls. In other embodiments, the second virtual image can also be obtained by other methods.
[0234] 1105. The terminal displays the second virtual image in the selection interface.
[0235] 1106. In response to the setting operation on the second virtual image, the terminal sets the second virtual image as the target virtual image.
[0236] 1107. In response to receiving the communication message, the terminal displays the second virtual image in suspension in the current interface.
[0237] The implementation method of steps 1104-1107 is the same as the implementation method of the above steps 304-307, which will not be repeated here.
[0238] In an embodiment of the present application, a user can customize the decorative elements in a virtual image based on his or her favorite decorative elements, obtain a virtual image that meets the user's preferences, and set the virtual image as the target virtual image for message prompts, thereby fully meeting the user's personalized needs.
[0239] It should be noted that the above embodiments can be combined in any manner. For example, when the terminal edits the first virtual image, it not only edits the first main element in the first virtual image, but also edits the first sound element in the first virtual image. Of course, the above embodiments can also be combined in other ways, and this application does not limit this.
[0240] Fig.12 is a block diagram of a virtual image processing device provided by an embodiment of the present application. Fig.12 , the device comprises:
[0241] The first display module 1201 is configured to display at least one candidate virtual image in a selection interface, and the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received;
[0242] The image editing module 1202 is configured to obtain a second virtual image based on an editing operation on the displayed first virtual image;
[0243] The second display module 1203 is configured to display a second virtual image in the selection interface;
[0244] The image setting module 1204 is configured to set the second virtual image as the target virtual image in response to the setting operation on the second virtual image.
[0245] In a possible implementation, the first virtual image includes a first main element, a first decorative element, and a first sound element, and the image editing module 1202 is configured to perform at least one of the following:
[0246] In response to the subject editing operation on the first virtual image, the first subject element is edited to obtain a second virtual image;
[0247] In response to the decoration editing operation on the first virtual image, the first decoration element is edited to obtain a second virtual image;
[0248] In response to the sound editing operation on the first virtual image, the first sound element is edited to obtain the second virtual image.
[0249] In a possible implementation, the first virtual image includes multiple elements, and the image editing module 1202 includes:
[0250] A control display submodule is configured to display an editing interface in response to an editing instruction operation on the first virtual image, wherein the editing interface includes a plurality of editing controls, each of which is used to edit an element in the first virtual image;
[0251] The image editing submodule is configured to edit at least one element of the first virtual image based on at least one editing control among a plurality of editing controls to obtain a second virtual image.
[0252] In a possible implementation, the first virtual image includes a first main body element, and an image editing submodule includes:
[0253] A body element acquisition unit, configured to acquire a second body element in response to a trigger operation on the body edit control;
[0254] The main element replacement unit is configured to replace the first main element in the first virtual image with the second main element to obtain the second virtual image.
[0255] In a possible implementation, the main element acquisition unit includes:
[0256] The first acquisition subunit is configured to display an image library in response to a trigger operation on the subject editing control, the image library including at least one image, and acquire a second subject element based on the image selected from the image library; or
[0257] The second acquisition subunit is configured to display a video library in response to a trigger operation on the main body editing control, the video library including at least one video, and acquire a second main body element based on a video selected from the video library.
[0258] In one possible implementation, the first acquisition subunit is configured to display an image editing interface, the image editing interface includes a mask, the mask includes a transparent area and an opaque area, the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the top of the image; based on the transparent area, the target image is captured, and the target image is composed of the image area located in the transparent area of the image; the target image is determined as the second main element.
[0259] In one possible implementation, the second acquisition sub-unit is configured to display a video editing interface, the video editing interface includes a capture control and a mask, the mask includes a transparent area and an opaque area, the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the top of the video; based on the time period and transparent area indicated by the capture control, a video clip is captured, and the video clip is composed of an image area in the video that is within the time period and located in the transparent area; the video clip is determined as the second main element.
[0260] In a possible implementation, the second acquisition subunit is further configured to determine a time period indicated by the interception control based on a touch operation on the interception control.
[0261] In a possible implementation, the first virtual image includes a first sound element, and the image editing submodule includes:
[0262] A sound element acquisition unit, configured to acquire a second sound element in response to a trigger operation on the sound editing control;
[0263] The sound element replacement unit is configured to replace the first sound element in the first virtual image with the second sound element to obtain the second virtual image.
[0264] In a possible implementation, the sound element acquisition unit includes:
[0265] A display subunit, configured to display an audio library in response to a trigger operation on the sound editing control, the audio library including at least one audio;
[0266] The third acquisition subunit is configured to acquire the second sound element based on the audio selected from the audio library.
[0267] In a possible implementation, the third acquisition subunit is configured to display an interception control in the editing interface; based on a touch operation on the interception control, intercept an audio segment indicated by the interception control from the audio; and determine the audio segment as a second sound element.
[0268] In one possible implementation, the control display submodule is also configured to display an audio enable option in the editing interface when the video has corresponding background audio, and the audio enable option is used to determine the background audio corresponding to the video as the sound element of the second virtual image.
[0269] In a possible implementation, the image editing module 1202 further includes:
[0270] The effect display submodule is configured to display in the editing interface: the display effect of the second virtual image when a communication message is received.
[0271] In a possible implementation, the selection interface includes a first display area and a second display area, the first display area displays at least one alternative virtual image, and the second display area displays: an effect of floatingly displaying the selected virtual image on the desktop.
[0272] In a possible implementation, the second display module 1203 is configured to display the second virtual image in a selected state in the first display area;
[0273] The image setting module 1204 is configured to set the second virtual image as the target virtual image in response to a confirmation operation on the second virtual image selected in the first display area.
[0274] In a possible implementation, the selected virtual image includes a sound element, and the device further includes:
[0275] The audio playing module is configured to play the sound elements of the selected virtual image during the process of displaying the effect of the selected virtual image in the second display area.
[0276] In a possible implementation, the device further includes:
[0277] The third display module is configured to display the second virtual image in suspension in the current interface in response to receiving the communication message.
[0278] In a possible implementation, the selection interface includes an option corresponding to the first prompt type and an option corresponding to the second prompt type, and the device further includes:
[0279] The first determination module is configured to determine the message prompt type as the first prompt type in response to a trigger operation on an option corresponding to the first prompt type, wherein the first prompt type refers to: when a communication message is received, a target virtual image is displayed in a suspended manner, but a sound element in the target virtual image is not played; or
[0280] The second determination module is configured to determine the message prompt type as the second prompt type in response to a trigger operation on an option corresponding to the second prompt type, wherein the second prompt type refers to: floating display of a target virtual image when a communication message is received, and playing sound elements in the target virtual image.
[0281] In one possible implementation, the selection interface includes a do not disturb option, and the device also includes: a function activation module, configured to activate the do not disturb function in response to a trigger operation on the do not disturb option, and the do not disturb function means that when the device is in silent mode, a target virtual image is displayed in suspension when a communication message is received, but the sound elements in the target virtual image are not played.
[0282] In one possible implementation, the first display module 1201 is also configured to display a virtual image setting interface, which includes multiple application identifiers; in response to a selection operation on a target application identifier corresponding to a target application, a selection interface corresponding to the target application identifier is displayed, and the selection interface is used to select a target virtual image to be displayed in suspension when a communication message from the target application is received.
[0283] The embodiment of the present application provides a new message prompting method, which can use the method of floating display of virtual images for message prompting, so that the user can know that the terminal has received the communication message through the floating displayed virtual image. This message prompting method is flexible and interesting, and enhances the prompting effect. In addition, the embodiment of the present application allows the user to customize the virtual image, and can provide the user with alternative virtual images, so that the user can select the alternative virtual image, and then edit the virtual image to obtain a customized virtual image, which fully meets the personalized needs of the user.
[0284] It should be noted that: the virtual image processing device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when processing the virtual image. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the virtual image processing device provided in the above embodiment and the virtual image processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0285] Fig.13The structure block diagram of a terminal 1300 provided by an exemplary embodiment of the present application is shown. The terminal 1300 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a laptop computer or a desktop computer. The terminal 1300 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0286] Typically, the terminal 1300 includes a processor 1301 and a memory 1302 .
[0287] The processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1301 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0288] The memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one program code, which is used to be executed by the processor 1301 to implement the virtual image processing method provided in the method embodiment of the present application.
[0289] In some embodiments, the terminal 1300 may also optionally include: a peripheral device interface 1303 and at least one peripheral device. The processor 1301, the memory 1302 and the peripheral device interface 1303 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1303 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1304, a display screen 1305, a camera assembly 1306, an audio circuit 1307, a positioning assembly 1308 and a power supply 1309.
[0290] The peripheral device interface 1303 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1301 and the memory 1302. In some embodiments, the processor 1301, the memory 1302, and the peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0291] The radio frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1304 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1304 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1304 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0292] The display screen 1305 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1305 is a touch display screen, the display screen 1305 also has the ability to collect touch signals on the surface or above the surface of the display screen 1305. The touch signal can be input to the processor 1301 as a control signal for processing. At this time, the display screen 1305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1305 can be one, and the front panel of the terminal 1300 is set; in other embodiments, the display screen 1305 can be at least two, which are respectively set on different surfaces of the terminal 1300 or are folded; in other embodiments, the display screen 1305 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1300. Even, the display screen 1305 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1305 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0293] The camera assembly 1306 is used to capture images or videos. Optionally, the camera assembly 1306 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1306 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0294] The audio circuit 1307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1301 for processing, or input them into the radio frequency circuit 1304 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1300. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1301 or the radio frequency circuit 1304 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1307 may also include a headphone jack.
[0295] The positioning component 1308 is used to locate the current geographical location of the terminal 1300 to implement navigation or LBS (Location Based Service). The positioning component 1308 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.
[0296] The power supply 1309 is used to power various components in the terminal 1300. The power supply 1309 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1309 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0297] In some embodiments, the terminal 1300 further includes one or more sensors 1310 , including but not limited to: an acceleration sensor 1311 , a gyroscope sensor 1312 , a pressure sensor 1313 , a fingerprint sensor 1314 , an optical sensor 1315 , and a proximity sensor 1316 .
[0298] The acceleration sensor 1311 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1300. For example, the acceleration sensor 1311 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1301 can control the display screen 1305 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1311. The acceleration sensor 1311 can also be used to collect motion data of games or users.
[0299] The gyro sensor 1312 can detect the body direction and rotation angle of the terminal 1300, and the gyro sensor 1312 can cooperate with the acceleration sensor 1311 to collect the user's 3D actions on the terminal 1300. The processor 1301 can implement the following functions based on the data collected by the gyro sensor 1312: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0300] The pressure sensor 1313 can be set on the side frame of the terminal 1300 and / or the lower layer of the display screen 1305. When the pressure sensor 1313 is set on the side frame of the terminal 1300, it can detect the user's holding signal of the terminal 1300, and the processor 1301 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1313. When the pressure sensor 1313 is set on the lower layer of the display screen 1305, the processor 1301 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1305. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0301] The fingerprint sensor 1314 is used to collect the user's fingerprint, and the processor 1301 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1314, or the fingerprint sensor 1314 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1301 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1314 can be set on the front, back, or side of the terminal 1300. When a physical button or a manufacturer logo is set on the terminal 1300, the fingerprint sensor 1314 can be integrated with the physical button or the manufacturer logo.
[0302] The optical sensor 1315 is used to collect the ambient light intensity. In one embodiment, the processor 1301 can control the display brightness of the display screen 1305 according to the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the display screen 1305 is reduced. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 according to the ambient light intensity collected by the optical sensor 1315.
[0303] The proximity sensor 1316, also called a distance sensor, is usually arranged on the front panel of the terminal 1300. The proximity sensor 1316 is used to collect the distance between the user and the front of the terminal 1300. In one embodiment, when the proximity sensor 1316 detects that the distance between the user and the front of the terminal 1300 is gradually decreasing, the processor 1301 controls the display screen 1305 to switch from the screen-on state to the screen-off state; when the proximity sensor 1316 detects that the distance between the user and the front of the terminal 1300 is gradually increasing, the processor 1301 controls the display screen 1305 to switch from the screen-off state to the screen-on state.
[0304] Those skilled in the art will understand that Fig.13 The structure shown in the figure does not constitute a limitation on the terminal 1300, and the terminal 1300 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0305] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the operations performed in the virtual image processing method of the above embodiment.
[0306] The present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The computer instructions are loaded and executed by a processor to implement the operations performed in the virtual image processing method of the above embodiment.
[0307] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0308] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing a virtual image, characterized in that: The method comprises: Displaying at least one candidate virtual image in a selection interface, wherein the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received; In response to an editing instruction operation on the displayed first virtual image, an editing interface is displayed; the first virtual image includes a first main element, and the editing interface includes a plurality of editing controls, each of which is used to edit an element in the first virtual image; In response to a triggering operation on a subject editing control in the editing interface, displaying a video library, the video library including at least one video; In response to a selection operation of a video from the video library, a video editing interface is displayed; the video editing interface includes a capture control and a mask, the mask includes a transparent area and an opaque area, the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the selected video; Based on the time period indicated by the capture control and the transparent area, a video segment of the selected video is captured; the video segment is composed of an image area in the selected video that is within the time period indicated by the capture control and is located in the transparent area; wherein the image area located in the transparent area is adjusted by performing a touch operation on the transparent area; Determine the video clip as a second main element; In the case where the video has corresponding background audio, displaying an audio enabling option in the video editing interface, the audio enabling option being used to determine the background audio corresponding to the video as a sound element of the second virtual image; Replacing the first main element in the first virtual image with the second main element to obtain the second virtual image; In the selection interface, displaying the second virtual image; In response to the setting operation on the second virtual image, the second virtual image is set as the target virtual image.
2. The method according to claim 1, characterized in that The method for obtaining the second main element also includes: In response to a triggering operation on the body editing control, an image library is displayed, the image library includes at least one image, and the second body element is acquired based on the image selected from the image library.
3. The method according to claim 1, characterized in that The method further comprises: Displayed in the editing interface: the display effect of the second virtual image when a communication message is received.
4. The method according to claim 1, characterized in that: The selection interface includes a first display area and a second display area, the first display area displays the at least one candidate virtual image, and the second display area displays an effect of floatingly displaying the selected virtual image on the desktop.
5. The method according to claim 4, characterized in that The step of displaying the second virtual image in the selection interface includes: Displaying the second virtual image in the first display area in a selected state; The step of setting the second virtual image as the target virtual image in response to the setting operation on the second virtual image includes: In response to a confirmation operation on the second virtual image selected in the first display area, the second virtual image is set as the target virtual image.
6. The method according to claim 4, characterized in that The selected virtual image includes a sound element, and the method further includes: During the process of displaying the effect of the selected virtual image in the second display area, the sound element of the selected virtual image is played.
7. The method according to any one of claims 1 to 6, characterized in that: After the second virtual image is set as the target virtual image in response to the setting operation on the second virtual image, the method further includes: In response to receiving the communication message, the second virtual image is displayed in a floating manner in the current interface.
8. The method according to any one of claims 1 to 6, characterized in that: Before displaying at least one candidate virtual image in the selection interface, the method further includes: Displaying a virtual image setting interface, wherein the virtual image setting interface includes a plurality of application identifiers; In response to a selection operation on a target application identifier corresponding to a target application, the selection interface corresponding to the target application identifier is displayed, and the selection interface is used to select a target virtual image that is displayed in suspension when a communication message of the target application is received.
9. A virtual image processing device, characterized in that: The device comprises: A first display module is configured to display at least one candidate virtual image in a selection interface, wherein the selection interface is used to select a target virtual image to be displayed in suspension when a communication message is received; The image editing module is configured to display an editing interface in response to an editing instruction operation on a displayed first virtual image; the first virtual image includes a first main element, and the editing interface includes a plurality of editing controls, each editing control is used to edit an element in the first virtual image; in response to a triggering operation on a main editing control in the editing interface, a video library is displayed, the video library includes at least one video; in response to a selection operation of a video from the video library, a video editing interface is displayed; the video editing interface includes a capture control and a mask, the mask includes a transparent area and an opaque area, the shape and size of the transparent area are the same as the shape and size of the first main element in the first virtual image, and the mask covers the selected video Above; based on the time period indicated by the capture control and the transparent area, a video clip of the selected video is captured; the video clip is composed of an image area in the selected video that is within the time period indicated by the capture control and is located in the transparent area; wherein the image area located in the transparent area is adjusted by performing a touch operation on the transparent area; the video clip is determined as a second main element; if the video has corresponding background audio, an audio enable option is displayed in the video editing interface, and the audio enable option is used to determine the background audio corresponding to the video as a sound element of the second virtual image; the first main element in the first virtual image is replaced with the second main element to obtain the second virtual image; A second display module is configured to display the second virtual image in the selection interface; The image setting module is configured to set the second virtual image as the target virtual image in response to a setting operation on the second virtual image.
10. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operation performed by the virtual image processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the operation performed by the virtual image processing method according to any one of claims 1 to 8.
