Patent Description:
The present disclosure relates to the technical field of image processing, and, in particular, to an image display method, apparatus, and device, and a medium.

With the popularity of social media, people are no longer satisfied with simple communication through text, voice or the like, a more interesting medium is needed to enrich their social activities, and therefore a variety of emoji images have been created. As a result, users are more inclined to use custom emoji images for social activities.

At present, when a user wants to send a custom emoji image, the user needs to perform a series of tedious operations to find a custom emoji image, resulting in a cumbersome operation for the user to find the custom emoji image and degrading the user experience.

<CIT> discloses entering an emoticon input panel on a chat page; detecting whether a video shooting event is triggered in the emoticon input panel; acquiring video data in response to detecting the video shooting event; obtaining an edit operation for the video data; processing video frames in the video data according to the edit operation to synthesize an animated emoticon; and adding an emoticon thumbnail corresponding to the animated emoticon to the emoticon input panel, the emoticon thumbnail displaying the animated emoticon to be used as a chat message on the chat page based on a user selecting the emoticon thumbnail in the emoticon input panel. <CIT> discloses obtaining at least two images acquired by at least two terminals through shooting equipment previewing; synthesizing the set patterns in the at least two images; the composite image is distributed to each terminal for preview display; and when a shooting instruction is acquired, recording the synthetic image. <CIT> discloses a method for transmitting a custom emoticon, including selecting an expanded emoticon item from among a plurality of emoticon items included in an emoticon library; displaying a picture part of an emoticon on the basis of emoticon picture data corresponding to the selected expanded emoticon item; displaying a text part on the basis of emoticon expansion data corresponding to the selected expanded emoticon item; in response to the case of receiving an emoticon setting operation from a user, changing the emoticon expansion data of the emoticon item; in response to the case of receiving an emoticon transmission operation from the user, creating a custom emoticon image consisting of the picture part and the text part according to the changed emoticon expansion data; and transmitting the created custom emoticon image to other user terminals. <CIT> discloses a method for identifying and suggesting emoticons, including receiving a set of segments from a text field, analyzing the set of segments to determine at least one of a target subtext or a target meaning associated with the set of segments, and identifying a set of candidate emoticons where each candidate emoticon in the set of candidate emoticons has an association between the candidate emoticon and at least one of the target subtext or the target meaning.

In order to solve or at least partially solve the above technical problems, an image display method, device and a medium are provided according to the present disclosure.

In a first aspect, an image display method is provided according to the present disclosure. The image display method includes:.

In a second aspect, an image display device is provided according to the present disclosure. The image display device includes:.

In a third aspect, a computer-readable storage medium having a computer program stored thereon is provided according to the present disclosure, where the computer program, when being executed by a processor, causes the processor to implement the image display method according to the first aspect.

Technical solutions according to embodiments of the present disclosure have the following advantages over conventional technology.

With the image display method, device and the medium according to embodiments of the present disclosure, once the input text displayed in the chat interface triggers the emoji recommendation event, the emoji recommendation panel is displayed in the chat interface. The emoji recommendation panel includes the target entry icon for triggering the display of the custom target emoji image. The display of the emoji recommendation panel is stopped in response to detecting the first trigger operation on the target entry icon. In addition, the target emoji presentation panel corresponding to the target entry icon is displayed in the chat interface, where a preview image of the target emoji image is displayed in the target emoji presentation panel. Therefore, once the input text triggers the emoji recommendation event, the user can quickly access, directly through the target entry icon displayed in the emoji recommendation panel, the target emoji presentation panel in which the preview image of the target emoji image is displayed, thereby improving the convenience of finding the custom emoji image by the user, simplifying the operation for the user to find the custom emoji image, and thus enhancing the user experience.

The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent when taken in conjunction with the accompanying drawings and with reference to the following detailed description. Throughout the drawings, the same or similar reference numerals refer to the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

The embodiments of the present disclosure are described in detail below with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments described herein. The embodiments are provided for thoroughly and completely understanding the present disclosure. It should be understood that the drawings and the embodiments of the present disclosure are exemplary and are not intended to limit the protection scope of the present disclosure.

It should be understood that the steps in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the method embodiments may include an additional step and/or a step shown herein may be omitted. The scope of the present disclosure is not limited in this aspect.

The term "include" and its variations in the present disclosure means open-ended inclusion, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment". The term "another embodiment" means "at least one additional embodiment". The term "some embodiments" means "at least some embodiments". The definitions of other terms are provided in the following descriptions.

It should be noted that the wordings such as "first" and "second" used in the present disclosure are used to distinguish different apparatuses, modules or units, and are not used to limit a sequential order or interdependence of the functions performed by the apparatuses, modules or units.

It should be noted that the wordings such as "one" and "multiple" used in the present disclosure are illustrative and not restrictive. Those skilled in the art should understand that the wordings should be understood as "one or more" unless otherwise expressly indicated in the context.

The names of messages or information exchanged between multiple apparatuses in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.

The image display method according to the present disclosure may be applied in the architectures shown in <FIG>, specifically described in detail in conjunction with <FIG>.

<FIG> illustrates an architectural diagram for displaying an image according to an embodiment of the present disclosure.

As shown in <FIG>, the image display architecture may include at least one first electronic device <NUM> and at least one second electronic device <NUM> at client end. The first electronic device <NUM> may establish a connection and perform information exchange with the second electronic device <NUM> via a network protocol such as Hyper Text Transfer Protocol over Secure Socket Layer (HTTPS). The first electronic device <NUM> and the second electronic device <NUM> may each include a mobile phone, a tablet computer, a desktop computer, a laptop computer, a vehicle-mounted terminal, a wearable electronic device, an all-in-one machine, a smart home device, and other devices with communication functions, or a device that is simulated by a virtual machine or an emulator.

Based on the above architecture, a first user using the first electronic device <NUM> and a second user using the second electronic device <NUM> may perform a chat in respective chat interfaces, belonging to a predetermined platform, displayed by the first electronic device <NUM> and the at least one second electronic device <NUM>. The predetermined platform may have an instant messaging function. Optionally, the predetermined platform may be a predetermined website or a predetermined application.

When the first user enters, in the chat interface, input text to be sent to the second user, once the input text displayed in the chat interface triggers an emoji recommendation event, an emoji recommendation panel is displayed in the chat interface. A target entry icon for triggering displaying of custom target emoji images is displayed in the emoji recommendation panel; the display of the emoji recommendation panel is stopped, in response to detecting a first trigger operation performed by the first user on the target entry icon; and the target emoji presentation panel corresponding to the target entry icon is displayed in the chat interface. The target emoji presentation panel displays a first preview image, where the first preview image is a preview image of the target emoji image.

Therefore, once the input text triggers the emoji recommendation event, the user can quickly access, directly through the target entry icon displayed in the emoji recommendation panel, the target emoji presentation panel in which the preview image of the target emoji image is displayed, and the custom target emoji image can be found without cumbersome operation of the user, thereby improving the convenience of finding the custom target emoji image by the user, simplifying the operation for the user to find the custom target emoji image, and thus enhancing the user experience.

Further, the image display method according to the embodiments of the present disclosure may be applied in an architecture including an electronic device and a server, in addition to the above architecture including multiple electronic devices, as illustrated specifically in conjunction with <FIG>.

<FIG> illustrates an architectural diagram for displaying an image according to another embodiment of the present disclosure.

As shown in <FIG>, the image display architecture may include at least one first electronic device <NUM> and at least one second electronic device <NUM> at client end, and at least one server <NUM> at server end. The first electronic device <NUM> and the second electronic device <NUM> may establish a connection and perform information interaction with the server <NUM> via a network protocol such as HTTPS, and the first electronic device <NUM> and the second electronic device <NUM> may communicate with each other via the server <NUM>. The first electronic device <NUM> and the second electronic device <NUM> may each include a mobile phone, a tablet computer, a desktop computer, a laptop computer, a vehicle-mounted terminal, a wearable electronic device, an all-in-one machine, a smart home device, and other devices with communication functions, or a device that is simulated by a virtual machine or an emulator. The server <NUM> may be a device with storage and computing functions such as a cloud server or a server cluster.

Based on the above architecture, a first user using the first electronic device <NUM> and a second user using the second electronic device <NUM> may perform a chat in respective chat interfaces, belonging to a predetermined platform provided by the server <NUM>, displayed by the first electronic device <NUM> and the at least one second electronic device <NUM>. The predetermined platform may have an instant messaging function. Optionally, the predetermined platform may be a predetermined website or a predetermined application.

Before the first user enters, in the chat interface, the input text to be sent to the second user, the first electronic device <NUM> may obtain the custom target emoji image sent by the server <NUM>.

When the first user enters, in the chat interface, input text to be sent to the second user, once the input text displayed in the chat interface triggers an emoji recommendation event, an emoji recommendation panel is displayed in the chat interface. A target entry icon for triggering displaying of custom target emoji images is displayed in the emoji recommendation panel; the display of the emoji recommendation panel is stopped, in response to detecting the first trigger operation performed by the first user on the target entry icon; and the target emoji presentation panel corresponding to the target entry icon is displayed in the chat interface. The target emoji presentation panel displays a first preview image, where the first preview image is a preview image of the target emoji image.

Therefore, the user may firstly obtain the target emoji image before entering the input text. After obtaining the target emoji image, once the input text triggers the emoji recommendation event, the user can quickly access, directly through the target entry icon displayed in the emoji recommendation panel, the target emoji presentation panel in which the preview image of the target emoji image is displayed, and the custom target emoji image can be found without cumbersome operation of the user, thereby improving the convenience of finding the custom target emoji image by the user, simplifying the operation for the user to find the custom target emoji image, and thus enhancing the user experience.

Based on the above architecture, the image display method according to the embodiments of the present disclosure is described below in conjunction with <FIG>.

According to the invention, the image display method is performed by an electronic device. In some embodiments, the electronic device may be the first electronic device <NUM> at client end, as shown in <FIG>. The electronic device may include a mobile phone, a tablet computer, a desktop computer, a laptop computer, a vehicle-mounted terminal, a wearable device, an all-in-one computer, a smart home device, and other devices with communication functions, or a device that is simulated by a virtual machine or an emulator.

<FIG> illustrates a schematic flowchart of an image display method according to an embodiment of the present disclosure.

As shown in <FIG>, the image display method may include the following steps S310 to S330.

In S310, an emoji recommendation panel is displayed in a chat interface once an input text displayed in the chat interface triggers an emoji recommendation event, where a target entry icon is displayed in the emoji recommendation panel.

In an embodiment of the present disclosure, once the chat interface is displayed on the electronic device, the user may enter the input text in an input box of the chat interface. During the process of the user entering the input text, the electronic device may detect the input text in real time, and once it is detected that the input text triggers the emoji recommendation event, the emoji recommendation panel in which the target entry icon is presented may be displayed in the chat interface.

In some embodiments, the electronic device may obtain the input text in real time and input the input text into a pre-trained sentiment classification model to figure out the sentiment type corresponding to the input text. The sentiment type is used to indicate the sentiment to be expressed by the input text. The electronic device may then detect locally stored non-custom emoji images. Once an emoji image with the sentiment type corresponding to the input text is detected, the electronic device may determine that the input text triggers the emoji recommendation event, and display, in the chat interface, the emoji recommendation panel in which the target entry icon is presented.

In other embodiments, the electronic device may obtain the input text in real time and extract a sentiment keyword from the input text. The electronic device may then detect among locally stored image tags of non-custom emoji images. Once an emoji image with an image tag matching the sentiment keyword is detected, the electronic device may determine that the input text triggers the emoji recommendation event, and display, in the chat interface, the emoji recommendation panel in which the target entry icon is presented.

In an embodiment of the present disclosure, the emoji recommendation panel may be a container for storing the target entry icon, such that the emoji recommendation panel may display the target entry icon.

In some embodiments, the emoji recommendation panel may be displayed in an information display area of the chat interface. The information display area may be an area for displaying chat history. The chat history may include at least one of instant chat messages and historical chat messages.

Optionally, the emoji recommendation panel may be displayed in the information display area with being right-aligned and located on top of the input box.

<FIG> illustrates a schematic diagram of an emoji recommendation panel according to an embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which Xiaohong performs a chat with Xiaolan. An information display area <NUM>, an input box <NUM>, and a virtual keyboard control <NUM> are displayed in the chat interface <NUM>. When Xiaohong enters the input text "hahahaha" in the input box <NUM>, the electronic device determines that the input text "hahahaha" triggers an emoji recommendation event, and displays an emoji recommendation panel <NUM> in the information display area <NUM> above the input box <NUM> in right-aligned form. A target entry icon <NUM> corresponding to a custom emoji image may be displayed in the emoji recommendation panel <NUM>.

In other embodiments, alternatively, the emoji recommendation panel may be displayed between an input box and a virtual keyboard control of the chat interface. The virtual keyboard control may be used for the user to enter the input text into the input box.

Specifically, the electronic device may additionally display an emoji recommendation panel display area between the input box and the virtual keyboard control, and display the emoji recommendation panel in the emoji recommendation panel display area.

Optionally, the emoji recommendation panel may be displayed between the input box and the virtual keyboard control with being aligned at both ends.

In an embodiment of the present disclosure, the target entry icon may be used to trigger the display of a custom target emoji image. Thus, the user may cause the electronic device to display a preview image of the target emoji image directly by triggering the target entry icon.

The emoji image is an image having a meaning expressing function that may reflect the inner activity, mood, emotion, or specific semantics of the user sending the emoji image.

The custom target emoji image may be a custom emoji image. Specifically, the target emoji image may be an emoji image that needs to be generated in combination with the user's own facial feature.

Optionally, the target emoji image may include at least one of static emoji image and dynamic emoji image.

Generally, the static emoji image may be a static picture, for example, the static emoji image may be an image in Portable Network Graphics (PNG) file format. The dynamic emoji image is an animated picture that is a composite of multiple static pictures, for example, a dynamic emoji image may be an image in Graphics Interchange Format (GIF) file format.

Step S320 is described hereinafter continually with reference to <FIG>.

In S320, the display of the emoji recommendation panel is stopped, in response to detecting a first trigger operation on the target entry icon.

In an embodiment of the present disclosure, in a case that the emoji recommendation panel in which the target entry icon is presented is displayed in the chat interface, the user may perform a first trigger operation on the target entry icon. The electronic device may detect the operation of the user on the chat interface in real time and stop displaying the emoji recommendation panel in response to detecting the first trigger operation on the target entry icon.

Optionally, the first trigger operation may be an operation such as a click, long press, double click on the target entry icon, which is not limited herein.

In some embodiments, in a case that the emoji recommendation panel is displayed in the information display area of the chat interface, the electronic device may simply stop displaying the emoji recommendation panel.

In other embodiments, in a case that the emoji recommendation panel is displayed between the input box and the virtual keyboard control of the chat interface, the electronic device may cancel the display of the emoji recommendation panel display area, thereby stopping displaying the emoji recommendation panel.

In step S330, a target emoji presentation panel corresponding to the target entry icon is displayed in the chat interface, where a first preview image is displayed in the target emoji presentation panel, and the first preview image is a preview image of the target emoji image.

In an embodiment of the present disclosure, after stopping displaying the emoji recommendation panel, the electronic device may display, in the chat interface, the target emoji presentation panel corresponding to the target entry icon.

Since the target entry icon is used to trigger the display of a custom target emoji image, the target emoji presentation panel may be a container for storing the target emoji image, such that the target emoji presentation panel may display the first preview image corresponding to the target emoji image.

In some embodiments, the target emoji presentation panel may be displayed on top of the virtual keyboard control and overlay the virtual keyboard control.

In other embodiments, alternatively, the target emoji presentation panel may be displayed in place of the virtual keyboard control.

It should be noted that there may be one or more target emoji images, which is not limited herein.

In an embodiment of the present disclosure, once the input text displayed in the chat interface triggers the emoji recommendation event, the emoji recommendation panel may be displayed in the chat interface. The emoji recommendation panel may include the target entry icon for triggering the display of the custom target emoji image. The display of the emoji recommendation panel may be stopped in response to detecting the first trigger operation on the target entry icon. The target emoji presentation panel corresponding to the target entry icon may be displayed in the chat interface, and a preview image of the target emoji image may be displayed in the target emoji presentation panel. Therefore, once the input text triggers the emoji recommendation event, the user can quickly access, directly through the target entry icon displayed in the emoji recommendation panel, the target emoji presentation panel in which the preview image of the target emoji image is displayed, thereby improving the convenience of finding the custom target emoji image by the user, simplifying the operation for the user to find the custom target emoji image, and thus enhancing the user experience.

In an embodiment of the present disclosure, upon detecting that the input text triggers the emoji recommendation event, the electronic device may, based on the emoji type of the custom emoji image stored locally by the electronic device, determine the target emoji image that may be displayed by the user directly triggering through the emoji recommendation panel, and then presents the target entry icon in the emoji recommendation panel, for triggering displaying of the custom target emoji images.

In some embodiments of the present disclosure, the chat interface may be an interface in which the first user performs a chat with the second user.

Accordingly, once a first emoji image is detected, the target emoji image may include the first emoji image. The first emoji image is generated based on a first face image of the first user and a second face image of the second user. That is, the first emoji image may be a custom emoji image of group photo including the first face image and the second face image, and the emoji type of the first emoji image is a group photo type.

Further, the target entry icon may be a first emoji entry icon, i.e. an entry icon to the custom emoji of group photo including the first face image and the second face image.

Further, the target emoji presentation panel may be a first emoji presentation panel, i.e. an emoji presentation panel for displaying the custom emoji image of group photo including the first face image and the second face image.

In some embodiments, the chat interface may be an interface in which the first user performs a chat with the second user.

In this case, the first emoji image may be a custom emoji image of group photo generated based on the first face image of the first user and the second face image of the second user.

In other embodiments, the chat interface may be an interface in which the first user performs a chat with multiple second users.

In this case, the first emoji image may be a custom emoji image of group photo generated based on the first face image of the first user and the second face images of all of the second users.

<FIG> illustrates a schematic diagram of an entry triggering process according to an embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which Xiaohong performs a chat with Xiaolan. An information display area <NUM>, an input box <NUM>, and a virtual keyboard control <NUM> are displayed in the chat interface <NUM>. When Xiaohong enters the input text "hahahaha" in the input box <NUM>, the electronic device determines that the input text "hahahaha" triggers an emoji recommendation event, and displays an emoji recommendation panel <NUM> in the information display area <NUM> above the input box <NUM> in right-aligned form. If the electronic device <NUM> detects the presence of a local custom emoji image of group photo of Xiaohong and Xiaolan, the emoji recommendation panel <NUM> may display an entry icon <NUM> corresponding to the custom emoji image of group photo. Xiaohong may click on the entry icon <NUM> to the custom emoji image of group photo. The electronic device, upon detecting a click operation on the entry icon <NUM>, may replace the virtual keyboard control <NUM> with the emoji presentation panel <NUM> for the custom emoji image of group photo, and a preview image <NUM> for the custom emoji image of group photo may be displayed in the emoji presentation panel <NUM>.

Thus, in an embodiment of the present disclosure, when a custom emoji image of group photo including chatting users in the current chat interface is stored in the electronic device, the entry icon to the custom emoji of group photo may be directly displayed to help the user quickly access the emoji presentation panel for the custom emoji image of group photo including chatting users in the current chat interface. And in a case that the user has many custom emoji images, usable custom emoji images are intelligently recommended for the user, further enhancing the user experience.

In an embodiment of the present disclosure, optionally, the electronic device generates a first emoji image before determining that the input text displayed in the chat interface triggers the emoji recommendation event.

<FIG> illustrates a schematic flowchart of a method for generating a first emoji image according to an embodiment of the present disclosure.

As shown in <FIG>, the method for generating a first emoji image includes the following steps S610 to S630.

In step S610, target invitation information sent from the second user to the first user is displayed.

The second user sends, via the electronic device used by the second user such as the second electronic device <NUM> as shown in <FIG>, a target group photo request to the electronic device used by the first user, such that the electronic device may display target invitation information corresponding to the target group photo request sent from the second user to the first user. The target invitation information may be used to prompt the first user that the second user has sent the group photo invitation.

Optionally, the target invitation information may include any one of first invitation information and second invitation formation.

In some embodiments, the first invitation information may be invitation information sent to the first user from the second user by triggering first invitation prompt information displayed in the chat interface. The first invitation prompt information is used to promote to the second user that he may send group photo invitation to the first user.

In one example, the electronic device used by the second user may display the first invitation prompt information in the chat interface in the event that both the first user and the second user have generated a custom selfie emoji image. If the second user wants to take an emoji shot with the first user, the first invitation prompt information may be triggered, to cause the electronic device used by the second user to send a first group photo request to the first user, which in turn causes the electronic device used by the first user to display first invitation information corresponding to the first group photo request.

In another example, the electronic device used by the second user may display the first invitation prompt information in the chat interface regardless of whether the first user and the second user have generated a custom selfie emoji image. If the second user wants to take an emoji shot with the first user, the second user may trigger the first invitation prompt information, to cause the electronic device used by the second user to send a first group photo request to the first user, which in turn causes the electronic device used by the first user to display first invitation information corresponding to the first group photo request.

In other embodiments, the second invitation information may be invitation information sent to the first user from the second user by triggering second invitation prompt information displayed in the emoji presentation panel for presenting a second emoji image. The second emoji image is generated based on the second face image, i.e. the second emoji image is a custom selfie emoji image of the second user.

The second invitation prompt information is used to prompt the second user that he or she may send a group photo invitation to other users in the address book.

Further, the second invitation prompt information may further be used to prompt the second user that he or she may send a group photo invitation to other users in the address book who have generated the custom selfie emoji image.

In the above embodiment, the second user may access, via the used electronic device, the emoji presentation panel for presenting the second user's custom selfie emoji image, and the second invitation prompt information may be displayed in the emoji presentation panel. If the second user wants to take an emoji shot with other users who have generated custom selfie emoji images, the second user may trigger the second invitation prompt information to cause the electronic device used by the second user to display user information such as user avatars and/or user names of other users who have generated custom selfie emoji images. The second user may select the user information of at least one user from the displayed user information by performing an operation such as clicking on the user information of at least one user. In a case that the at least one user selected by the second user includes the first user, the electronic device used by the second user may send a second group photo request to the first user, which in turn causes the electronic device used by the first user to display second invitation information corresponding to the second group photo request.

In an embodiments of the present disclosure, optionally, step S610 may specifically include: displaying, in the chat interface, target invitation information sent from the second user to the first user.

Optionally, the electronic device may display the target invitation information in an information display area of the chat interface. <FIG> illustrates a schematic diagram of invitation information according to an embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which Xiaohong performs a chat with Xiaolan. An information display area <NUM>, an input box <NUM>, and a virtual keyboard control <NUM> are displayed in the chat interface <NUM>. In a case that the electronic device <NUM> receives a group photo invitation from Xiaolan to Xiaohong, the information display area <NUM> may display invitation information "Xiaolan invites you to generate a group photo emoji.

In an embodiment of the present disclosure, optionally, after the second user triggers the invitation prompt information, the electronic device used by the second user may display multiple group photo emoji template images. The second user may select at least one from the multiple group photo emoji template images, and the electronic device used by the second user may obtain a target template identifier of the group photo emoji template image selected by the second user and send to the first user target invitation information corresponding to the target group photo request, where the target invitation information carries the target template identifier.

Step S620 is described continually with reference to <FIG>.

In S620, a first generation request carrying a first user identifier of the first user and a second user identifier of the second user is sent to a server, in response to detecting a second triggering operation on the target invitation information.

In an embodiment of the present disclosure, if the user accepts the group photo invitation after the electronic device displays the target invitation information, the user may perform a second trigger operation on the target invitation information. The electronic device may detect the user's operation on the chat interface in real time. In response to detecting the second trigger operation of the user performed on the target invitation information, the server may send a first generation request carrying the first user identifier of the first user and the second user identifier of the second user.

Optionally, the second trigger operation may be an operation such as a click, long press, double click on the target invitation information, which is not limited herein.

Continuing to refer to <FIG>, in view of the invitation information, Xiaohong may click on the words "group photo emoji" in the invitation information, to cause the electronic device to send to the server a group photo emoji generation request carrying a user identifier of Xiaohong and a user identifier of Xiaolan.

In some embodiments, in a case that the first user has generated a custom selfie emoji image, the electronic device may directly send to the server a first generation request carrying the first user identifier of the first user and the second user identifier of the second user.

In other embodiments, in a case that the first user has not generated a custom selfie emoji image, before sending the first generation request to the server, the image display method may further includes: displaying a face capture interface; and upon capturing the first face image on the face capture interface, sending the first face image to the server.

Specifically, in a case that the first user has not generated a custom selfie emoji image, upon detecting the second trigger operation on the target invitation information, the electronic device may firstly display the face capture interface. Upon capturing the first face image on the face capture interface, the electronic device may send the first face image to the server, and then send to the server the first generation request carrying the first user identifier of the first user and the second user identifier of the second user.

In some embodiments, in a case that the second user has not generated a custom selfie emoji image, the server, after receiving the first generation request, may send an image acquisition request to the electronic device used by the second user, causing the electronic device used by the second user to display image upload prompt information corresponding to the image acquisition request, so as to prompt the second user to send the second face image of the second user to the server via the image upload prompt information, thereby enabling the server to obtain the second face image of the second user.

In embodiments of the present disclosure, the first generation request may be used to instruct the server to generate the first emoji image based on the first face image stored in association with the first user identifier, the second face image stored in association with the second user identifier, and a first emoji template image, and send back the first emoji image.

Specifically, the server may firstly perform face segmentation processing on the first face image and the second face image separately to cut out a first user face in the first face image and a second user face in the second face image, then may separately perform edge optimization such as blurring and feathering on the cut out first user face and the second user face, and then may perform head following and emoji migration on the first face image and the second face image to obtain a dynamic face picture. One face image corresponds to one face region in the first emoji template image, and one face region corresponds to one head position and one emoji. Finally, each frame of each first emoji template image is composed with a corresponding frame of the dynamic face picture, to generate a first emoji image corresponding to each first emoji template image.

In some embodiments, in a case that the second user selects to generate a custom emoji image of group photo with multiple users, the target invitation information may carry user identifiers of all users. The first generation request may carry the user identifiers of all users, and the server may generate the first emoji image based on face images of all users after receiving generation requests sent by the users corresponding to all user identifiers.

In an embodiment of the present disclosure, optionally, the target invitation information may carry a target template identifier, and the target template identifier may be a template identifier of an emoji template, such as a group photo emoji template, selected by the second user.

Accordingly, the first generation request may further carry a target template identifier, and the first emoji template image may be an emoji template image corresponding to the target template identifier.

Specifically, the server may generate the first emoji image based on the first face image stored in association with the first user identifier, the second face image stored in association with the second user identifier, and the first emoji template image corresponding to the target template identifier, and send back the first emoji image, which is not repeated herein.

As a result, the server generates a custom emoji image of group photo including the first user and the second user based on the emoji template selected by the second user, thereby increasing the flexibility of generating the custom emoji image of group photo.

In step S630, the first emoji image sent fed-back by the server is received.

Specifically, the electronic device may pull the first emoji image from the server to receive the first emoji image fed-back by the server.

In some embodiments, the electronic device may pull the first emoji image in real time after sending the first generation request.

In other embodiments, after sending the first generation request, the electronic device may wait for a predetermined waiting time before pull the first emoji image.

Thus, in embodiments of the present disclosure, the material for the first emoji image is collected in a simple manner and the user does not need to design the emoji image with text, stickers, or the like, which can reduce the time for creating the emoji image and enhance the user experience.

In other embodiments of the present disclosure, the chat interface may be an interface in which the first user performs a chat with the second user.

Accordingly, in a case that no first emoji image is detected and a third emoji image is detected, the target emoji image may include the third emoji image. The third emoji image is generated based on the first face image, that is, the third emoji image may be a custom selfie emoji image of the first user, and the emoji type of the third emoji image is a selfie type.

Further, the target entry icon may be a third emoji entry icon, i.e. an entry icon to the custom selfie emoji of the first user.

Further, the target emoji presentation panel may be a third emoji presentation panel, i.e. an emoji presentation panel for presenting the custom selfie emoji image of the first user.

<FIG> illustrates a schematic diagram of an entry triggering process according to another embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which Xiaohong performs a chat with Xiaolan. An information display area <NUM>, an input box <NUM>, and a virtual keyboard control <NUM> are displayed in the chat interface <NUM>. When Xiaohong enters the input text "hahahaha" in the input box <NUM>, the electronic device determines that the input text "hahahaha" triggers an emoji recommendation event and displays an emoji recommendation panel <NUM> in the information display area <NUM> above the input box <NUM> in right-aligned form. If the electronic device <NUM> detects that there is no local custom emoji image of group photo of Xiaohong and Xiaolan but there is a local custom selfie emoji image of Xiaohong, an entry icon <NUM> corresponding to the custom selfie emoji image may be displayed in the emoji recommendation panel <NUM>. Xiaohong may click on the entry icon <NUM> to the custom selfie emoji image. The electronic device, upon detecting the click operation on the entry icon <NUM>, may replace the virtual keyboard control <NUM> with an emoji presentation panel <NUM> of the custom selfie emoji image. A preview image <NUM> of the custom selfie emoji image may be displayed in the emoji presentation panel <NUM>.

Thus, in the embodiments of the present disclosure, in a case that the electronic device does not have a custom emoji image of group photo including the chatting users in the current chat interface but has the custom selfie emoji image of the first user, the entry icon corresponding to the custom selfie emoji image may be displayed directly to help the user quickly access the emoji presentation panel of the custom selfie emoji image. In a case that in the user's electronic device there is a custom emoji image of group photo with other users, the usable custom emoji images can be intelligently recommended to the user, to avoid infringing on others' portrait rights and further enhance the user experience.

In some further embodiments of the present disclosure, the chat interface may be an interface in which the first user performs a chat with the second user.

Accordingly, the target emoji image may include a second emoji template image in a case that no third emoji image is detected. The third emoji image is generated based on the first face image of the first user and the second emoji template image. That is, the third emoji image may be a custom selfie emoji image of the first user generated by using the second emoji template image.

In some embodiments, the second user, after generating a custom selfie emoji image, may send a group photo invitation to the first user who has generated his custom selfie emoji image. In this case, it can be determined that the first user has not generated any custom emoji image as long as the electronic device detects no local third emoji image, i.e. no local custom selfie emoji image of the first user. Therefore, the second emoji template image may be used as the target emoji image such that the target emoji image may include the second emoji template image.

In other embodiments, the second user may send a group photo invitation to the first user regardless of whether the first user and the second user have generated a custom selfie emoji image. In this case, if the electronic device detects neither local third emoji image nor local first emoji image, i.e., neither local custom selfie emoji image of the first user nor local custom emoji image of group photo of the first user and the second usery, the electronic device may determine that the first user does not have a custom emoji image. Therefore the second emoji template image may be used as the target emoji image, such that the target emoji image may include the second emoji template image.

Further, the target entry icon may be a second emoji template entry icon, i.e. an entry icon of an emoji template used to generate the custom selfie emoji of the first user.

Further, the target emoji presentation panel may be a second emoji template display panel, i.e. an emoji presentation panel for presenting the second emoji template image.

<FIG> illustrates a schematic diagram of an entry triggering process according to yet another embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which Xiaohong performs a chat with Xiaolan. An information display area <NUM>, an input box <NUM>, and a virtual keyboard control <NUM> are displayed in the chat interface <NUM>. When Xiaohong enters the input text "hahahaha" in the input box <NUM>, the electronic device determines that the input text "hahahaha" triggers an emoji recommendation event and displays the emoji recommendation panel <NUM> in the information display area <NUM> above the input box <NUM> in right-aligned form. In a case that the electronic device <NUM> detects that there is no local custom emoji image of group photo of Xiaohong and Xiaolan and there is no custom selfie emoji image of Xiaohong, an entry icon <NUM> to an emoji template for generating the custom selfie emoji of Xiaohong may be displayed in the emoji recommendation panel <NUM>. Xiaohong may click on the emoji template entry icon <NUM>. The electronic device, upon detecting the click operation on the emoji template entry icon <NUM>, may replace the virtual keyboard control <NUM> with an emoji presentation panel <NUM> of emoji template image for generating the custom selfie emoji of Xiaohong. A preview image <NUM> of the emoji template image for generating the custom selfie emoji of Xiaohong may be displayed in the emoji presentation panel <NUM>.

In an embodiment of the present disclosure, optionally, both the second emoji template image and the face region in the preview image of the second emoji template image may be displayed as blank, as shown in the preview image <NUM> in <FIG>.

In an embodiment of the present disclosure, optionally, the target emoji presentation panel may further display an emoji generation trigger control, such as the "Generate Now" button <NUM> in <FIG>. The emoji generation trigger control may be used to trigger the generation of the custom selfie emoji image of the first user. Thus, the user may cause the electronic device to generate the custom selfie emoji image of the first user by triggering the emoji generation trigger control.

Further, the electronic device may further generate a third emoji image after displaying the target emoji presentation panel corresponding to the target entry icon.

<FIG> illustrates a schematic flowchart of a method for generating a third image according to an embodiment of the present disclosure.

As shown in <FIG>, the method for generating a third emoji image may include the following steps S1010 to S1040.

In step S1010, a face capture interface is displayed in response to detecting a third trigger operation on the emoji generation trigger control.

Specifically, once the emoji generation trigger control is displayed in the target emoji presentation panel, the user may perform the third trigger operation on the emoji generation trigger control. The electronic device may detect the user's operation performed on the target emoji presentation panel in real time, and display the face capture interface in response to detecting the third trigger operation on the emoji generation trigger control.

Optionally, the third trigger operation may be an operation such as a click, long press, double click on the emoji generation trigger control, which is not limited herein.

Optionally, the electronic device may jump from the chat interface to the face capture interface, in response to detecting the third trigger operation on the emoji generation trigger control.

Further, the face capture interface may include a face capture box. Optionally, the face capture box may have a predetermined face capture angle.

In step S1020, once the first face image is captured by the face capture interface, a second generation request carrying the first face image is sent to a server.

Specifically, the user may capture the first face image through the face capture interface, and the electronic device may send the second generation request carrying the captured first face image to the server once the first face image is captured by the face capture interface.

In some embodiments, the electronic device may capture the first face image displayed in the face capture box once a full face is displayed in the face capture box of the face capture interface, and may send the second generation request carrying the first face image to the server once the first face image is captured by the face capture interface.

In other embodiments, the electronic device may, once a full face is displayed in the face capture box of the face capture interface, illuminate a photo control in the face capture interface. The user may click on the photo control, to cause the electronic device to capture the first face image displayed in the face capture box in response to the user clicking on the photo control. Once the first face image is captured by the face capture interface, the electronic device sends, to the server, the second generation request carrying the first face image.

A full face being displayed in the face capture box means that the whole of the face is in the face capture box and the height of the face is not less than half the height of the face capture box.

In an embodiment of the present disclosure, the second generation request may be used to instruct the server to generate a third emoji image based on the first face image and the second emoji template image and feed-back the third emoji image.

The specific process of generating the third emoji image by the server is similar to the specific process of generating the first emoji image and is not repeated herein.

In step S1030, the third emoji image fed-back by the server is received.

Specifically, the electronic device may pull the third emoji image from the server to receive the third emoji image fed-back by the server.

In some embodiments, the electronic device may pull the third emoji image in real time after sending the second generation request.

In other embodiments, the electronic device may further pull the third emoji image after sending the second generation request and after waiting a predetermined waiting time.

In step S1040, the first preview image is replaced with a second preview image, where the second preview image is a preview image of the third emoji image.

Specifically, the electronic device may replace the first preview image with the second preview image corresponding to the third emoji image in the target emoji presentation panel after the third emoji image is pulled, allowing the electronic device to display the third emoji image to the user after the third emoji image is created.

Optionally, in a case that the electronic device jumps from the chat interface to the face capture interface, the electronic device may jump back from the face capture interface to the chat interface after receiving the third emoji image fed-back by the server.

Thus, in the embodiments of the present disclosure, the material of the third emoji image is captured in a simple manner, and there is no need for the user to design the emoji image with text, stickers, or the like, which can reduce the production time of the emoji image and enhance the user experience.

In another embodiment of the present disclosure, the target emoji image may include a first target text displayed in a predetermined text style, and the first preview image may include a first target text displayed in a predetermined text style.

In an embodiment of the present disclosure, each target emoji image may correspond to a predetermined text style.

In some embodiments, the predetermined text style may include at least one of a font style, a color style, a stroke style, a position style, and an angle style, which is not limited herein.

Optionally, the first target text may include the input text in a case that the quantity of words in the input text is less than or equal to a predetermined quantity threshold; the first target text may include a predetermined text in a case that the quantity of words in the input text is greater than the predetermined quantity threshold.

The predetermined quantity threshold may be any value set as desired, which is not limited herein. For example, the predetermined quantity threshold may be <NUM>, <NUM>, <NUM>, <NUM>, or the like.

Specifically, after determining the target emoji image, the electronic device may first determine whether the quantity of words of the input text is less than or equal to the predetermined quantity threshold. In a case that the quantity is less than or equal to the predetermined quantity threshold, the electronic device adds the input text to the target emoji image in the predetermined text style, such that the target emoji image includes the input text in the predetermined text style. Otherwise, the electronic device adds the predetermined text to the target emoji image in the predetermined text style such that the target emoji image includes the predetermined text in the predetermined text style.

Optionally, each target emoji image may correspond to a predetermined text.

<FIG> illustrates a schematic diagram of an emoji presentation panel according to an embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which Xiaohong performs a chat with Xiaolan. An information display area <NUM>, an input box <NUM>, and an emoji presentation panel <NUM> of a custom selfie emoji image are displayed in the chat interface <NUM>. When the input box <NUM> is displayed with the input text "hahahaha", since the quantity of words of the input text is <NUM>, in a case that the predetermined quantity threshold is <NUM>, the quantity of words is less than the predetermined quantity threshold, a preview image <NUM> of the custom selfie emoji image displayed in the emoji presentation panel <NUM> may include the input text "hahahaha" displayed in the predetermined text style.

Optionally, the custom selfie emoji image corresponding to the preview image <NUM> may also include the input text "hahahaha" displayed in the predetermined text style.

<FIG> illustrates a schematic diagram of an emoji presentation panel according to another embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which XiaoHong performs a chat with XiaoLan. An information display area <NUM>, an input box <NUM>, and an emoji presentation panel <NUM> of a custom selfie emoji image are displayed in the chat interface <NUM>. When the input box <NUM> is displayed with the input text "hahahaha", since the quantity of words of the input text is <NUM>, in a case that the predetermined quantity threshold is <NUM>, the quantity of words is greater than the predetermined quantity threshold, an preview image <NUM> of the custom selfie emoji image displayed in the emoji presentation panel <NUM> may include a predetermined text displayed in a predetermined text style. One preview image <NUM> corresponds to one predetermined text.

Optionally, the custom selfie emoji image corresponding to the preview image <NUM> may also include the predetermined text displayed in a predetermined text style.

Thus, in the embodiments of the present disclosure, the text displayed in the first preview image can be flexibly adjusted based on the input text, further enhancing the user experience.

In an embodiment of the present disclosure, optionally, after displaying the target emoji presentation panel corresponding to the target entry icon, the image display method may further include:.

in response to detecting a fourth trigger operation on a target preview image in the first preview image, displaying a target emoji image corresponding to the target preview image in an information display area of the chat interface, where the target emoji image corresponding to the target preview image includes the first target text.

Specifically, once an emoji recommendation panel in which a target entry icon is presented is displayed in the chat interface, the user may perform the first trigger operation on the target entry icon. The electronic device may detect the user's operation on the chat interface in real time. Upon detecting the first trigger operation on the target entry icon, the electronic device may stop displaying the emoji recommendation panel, and display, in the chat interface, the target emoji presentation panel corresponding to the target entry icon. After displaying the target emoji presentation panel, the user may perform the fourth trigger operation on the target preview image in the first preview image. The electronic device may detect the user's fourth trigger operation on the target preview image in real time. Upon detecting the fourth trigger operation on the target preview image, the electronic device may send the target emoji image corresponding to the target preview image to the electronic device used by the second user via the server, and display, in the information display area of the chat interface, the target emoji image corresponding to the target preview image. The first target text may be displayed in the target emoji image corresponding to the target preview image.

Optionally, the fourth trigger operation may be an operation such as a click, a long press, a double click on the target preview image, which is not limited herein.

As a result, in the chat of users, the electronic device is enabled to automatically adjust the text displayed in the custom emoji image based on the input text entered by the user, increasing the flexibility for the user to use the custom target emoji image.

In a further embodiment of the present disclosure, to further enhance the user experience, the target entry icon may include a target entry image.

Optionally, the target entry image may include any one of a first entry image and a second entry image.

In some embodiments, the first entry image is an image randomly selected from the first preview images.

Specifically, after determining the target emoji images, the electronic device may randomly select an image from the first preview images corresponding to the target emoji images and use the selected image as the first entry image.

In other embodiments, the second entry image is a preview image of a target emoji image which is of the same sentiment type as the input text.

In one example, after determining the target emoji images, the electronic device may detect the target emoji images, and use the preview image of the target emoji image having sentiment type corresponding to the input text as the second entry image.

In another example, after determining the target emoji images, the electronic device may detect image tags of the target emoji images, and use the preview image of a target emoji image with the image tag being a sentiment keyword in the input text as the second entry image.

Thus, in the embodiments of the present disclosure, the target entry image can be flexibly adjusted based on the input text, further enhancing the user experience.

In some embodiments of the present disclosure, no text is displayed in the target entry icon.

In other embodiments of the present disclosure, the target entry icon may further include a second target text displayed in a predetermined text style.

Optionally, the second target text may include first predetermined quantity of words of the input text.

The predetermined quantity may be any value set as desired, which is not limited herein. For example, the predetermined quantity may be <NUM>, <NUM>, <NUM>, or the like.

<FIG> illustrates a schematic diagram of an emoji recommendation panel according to another embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which Xiaohong performs a chat with Xiaolan. An information display area <NUM>, an input box <NUM>, and a virtual keyboard control <NUM> are displayed in the chat interface <NUM>. When Xiaohong enters the input text "hahahaha" in the input box <NUM>, the electronic device determines that the input text "hahahaha" triggers an emoji recommendation event, and displays an emoji recommendation panel <NUM> in the information display area <NUM> above the input box <NUM> in right-aligned form. Once the electronic device <NUM> detects that there is no local custom emoji image of group photo of Xiaohong and Xiaolan but there is a local custom selfie emoji image of Xiaohong, an entry icon <NUM> corresponding to the custom selfie emoji image may be displayed in the emoji recommendation panel <NUM>. The entry icon <NUM> to the custom selfie emoji may include a preview image of an emoji image randomly selected from custom selfie emoji images and the first word "ha" in the input text "hahahaha".

In some embodiments, no text is displayed in the target entry icon in a case that the quantity of words of the input text is greater than a predetermined quantity threshold; and the target entry icon may include the first predetermined quantity of words of the input text in a case that the quantity of words of the input text is less than or equal to the predetermined quantity threshold.

In other embodiments, the second target text may include an ellipsis, for example ". ", in a case that the quantity of words in the input text is greater than the predetermined quantity.

Thus, the second target text may be a text including the first predetermined quantity of words in the input text and the ellipsis.

Thus, in the embodiments of the present disclosure, the text displayed in the target entry icon can be flexibly adjusted based on the input text, further enhancing the user experience.

In a further embodiment of the present disclosure, the emoji recommendation panel may display a third preview image, and the third preview image may include the target entry icon and a preview image of a fourth emoji image. That is, the emoji recommendation panel may display the preview image of the fourth emoji image in addition to the target entry icon.

The fourth emoji image may be a non-custom emoji image of a sentiment type same as that of the input text.

In one example, the fourth emoji image may be a non-custom emoji image of a sentiment type corresponding to the input text.

In another example, alternatively, the fourth emoji image may be a non-custom emoji image with the image tag being a sentiment keyword in the input text.

Optionally, the target entry icon may be displayed preceding the preview image of the fourth emoji image. As shown in <FIG>, the target entry icon <NUM> may be located at left side of the preview images <NUM> of all the fourth emoji images.

In some embodiments, the target entry icon may be displayed fixedly in the emoji recommendation panel, and the display position of the target entry icon remains unchanged even if the user performs a swipe operation in the emoji recommendation panel.

In other embodiments, the target entry icon may be displayed non-fixedly in the emoji recommendation panel, and the display position of the target entry icon may change with a swipe direction of a swipe operation when the user performs the swipe operation in the emoji recommendation panel.

In an embodiment of the present disclosure, optionally, after displaying the emoji recommendation panel, the image display method may further include:.

Specifically, in a case that the electronic device is displaying the chat interface, the user may enter input text in an input box of the chat interface, and while the user is entering the input text, the electronic device may detect the input text in real time. Once it is detected that the input text triggers an emoji recommendation event, the electric device may display, in the chat interface, an emoji recommendation panel in which a target entry icon is presented. After displaying the emoji recommendation panel, the electronic device may obtain the display duration of the emoji recommendation panel, and in a case that the display duration reaches the predetermined duration and the third preview image is not triggered, the electric device stops displaying the emoji recommendation panel and display the target entry icon in the chat interface.

In some embodiments, after stopping displaying the emoji recommendation panel, the target entry icon may be displayed in the information display area of the chat interface.

Optionally, the target entry icon may be displayed in the information display area with being right-aligned and located above the input box.

In one example, the size of the target entry icon may remain unchanged after the display of the emoji recommendation panel is stopped. In another example, the size of the target entry icon may be reduced by a predetermined proportion after the display of the emoji recommendation panel is stopped, which is not limited herein.

The predetermined proportion may be set as desired, which is not limited herein.

Continuing referring to <FIG>, the emoji recommendation panel <NUM> may display a target entry icon <NUM> corresponding to the custom emoji image and may display preview images <NUM> of non-custom emoji images recommended based on the input text "hahahaha". The electronic device may, after displaying the emoji recommendation panel <NUM>, obtain the display duration of the emoji recommendation panel <NUM>. In a case that the display duration reaches a predetermined duration and it is not detected that the user triggers the target entry icon <NUM> or any of the preview images <NUM>, the display of the emoji recommendation panel <NUM> is stopped and the display proceeds as shown in <FIG>.

<FIG> illustrates a schematic diagram of the manner for displaying an entry icon according to an embodiment of the present disclosure.

As shown in <FIG>, the electronic device <NUM> may display a chat interface <NUM> in which XiaoHong performs a chat with XiaoLan. An information display area <NUM>, an input box <NUM>, and a virtual keyboard control <NUM> are displayed in the chat interface <NUM>. The input text "hahahaha" is displayed in the input box <NUM>, and a target entry icon <NUM> is displayed in the information display area <NUM> above the input box <NUM> with being right-aligned.

In alternative embodiments, the target entry icon may be displayed between the input box and the virtual keyboard control of the chat interface, after the display of the emoji recommendation panel is stopped.

Specifically, the electronic device may continue to display the target entry icon in an emoji recommendation panel display area additionally displayed between the input box and the virtual keyboard control.

Optionally, the target entry icon may be displayed between the input box and the virtual keyboard control with being right-aligned.

In one example, the size of the target entry icon may remain unchanged after the display of the emoji recommendation panel is stopped. In another example, the size of the target entry icon may be reduced by a predetermined proportion after the display of the emoji recommendation panel is stopped, and in this case, the size of the emoji recommendation panel display area may also be reduced by a predetermined proportion, which is not limited herein.

Therefore, in the embodiments of the present disclosure, the display of the target entry icon can still be maintained even if the display of the emoji recommendation panel is stopped, further enhancing the convenience of the user in finding a custom target emoji image and improving the user experience.

In an embodiment of the present disclosure, optionally, after displaying the target entry icon, the image display method may further include:
stopping displaying the target entry icon in a case that no input text is displayed in the chat interface.

Specifically, after displaying the emoji recommendation panel, the electronic device may obtain the display duration of the emoji recommendation panel. If the display duration reaches the predetermined duration and the third preview image is not triggered, the electric device stops displaying the emoji recommendation panel and display the target entry icon in the chat interface. After the target entry icon is displayed, the electronic device may detect the input text displayed in the input box in real time, and stop displaying the target entry icon in response to detecting no input text being displayed in the input box, which means that the user has deleted all the input text in the input box.

Thus, in the embodiments of the present disclosure, the display of the target entry icon can be stopped in a case that no input text is displayed in the chat interface, avoiding the problem of continuingly displaying the target entry icon even when the user stops editing the chat content, and further enhancing the user experience.

Further, after obtaining the display duration of the emoji recommendation panel, in a case that the display duration does not reach a predetermined duration and a first trigger operation on the target entry icon is detected, the display of the emoji recommendation panel is stopped and the target emoji presentation panel corresponding to the target entry icon is displayed in the chat interface.

An image display apparatus for implementing the above image display method is further provided according to an embodiment of the present disclosure.

In an embodiment of the present disclosure, the image display apparatus may be an electronic device. In some embodiments, the electronic device may be the first electronic device <NUM> at client end as shown in <FIG>. The electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a vehicle-mounted terminal, a wearable device, an all-in-one computer, a smart home device, and other devices having communication functions, or a device simulated by a virtual machine or an emulator.

The image display apparatus according to embodiments of the present disclosure will be described below with reference to <FIG>.

<FIG> illustrates a schematic structural diagram of an image display apparatus according to an embodiment of the present disclosure.

As shown in <FIG>, the image display apparatus <NUM> may include a first display unit <NUM>, a second display unit <NUM>, and a third display unit <NUM>.

The first display unit <NUM> may be configured to display an emoji recommendation panel in a chat interface once an input text displayed in the chat interface triggers an emoji recommendation event, where a target entry icon is displayed in the emoji recommendation panel, and the target entry icon is used to trigger the display of a custom target emoji image.

The second display unit <NUM> may be configured to stop displaying the emoji recommendation panel in response to detecting a first trigger operation on the target entry icon.

The third display unit <NUM> may be configured to display, in the chat interface, a target emoji presentation panel corresponding to the target entry icon, where a first preview image is displayed in the target emoji presentation panel, and the first preview image is a preview image of the target emoji image.

In an embodiment of the present disclosure, once the input text displayed in the chat interface triggers the emoji recommendation event, the emoji recommendation panel may be displayed in the chat interface. The emoji recommendation panel may include the target entry icon for triggering the display of the custom target emoji image. The display of the emoji recommendation panel may be stopped in response to detecting the first trigger operation on the target entry icon. In addition, the target emoji presentation panel corresponding to the target entry icon may be displayed in the chat interface, where a preview image of the target emoji image may be displayed in the target emoji presentation panel. Therefore, once the input text triggers the emoji recommendation event, the user can quickly access, directly through the target entry icon displayed in the emoji recommendation panel, the target emoji presentation panel in which the preview image of the target emoji image is displayed, thereby improving the convenience of finding the custom target emoji image by the user, simplifying the operation for the user to find the custom target emoji image, and thus enhancing the user experience.

In some embodiments of the present disclosure, the chat interface may be an interface in which a first user performs a chat with a second user.

Accordingly, once a first emoji image is detected, the target emoji image may include the first emoji image, and the first emoji image may be generated based on a first face image of the first user and a second face image of the second user.

In some embodiments of the present disclosure, the image display apparatus <NUM> may further include a fourth display unit, a first sending unit and a first receiving unit.

The fourth display unit may be configured to display target invitation information sent from the second user to the first user.

The first sending unit may be configured to send, to a server, a first generation request carrying a first user identifier of the first user and a second user identifier of the second user, in response to detecting a second triggering operation on the target invitation information, where the first generation request may be used to instruct the server to generate the first emoji image based on the first face image stored in association with the first user identifier, the second face image stored in association with the second user identifier, and a first emoji template image, and send back the first emoji image.

The first receiving unit may be configured to receive the first emoji image fed-back by the server.

In some embodiments of the present disclosure, the target invitation information may include any one of:.

In some embodiments of the present disclosure, the target invitation information may carry a target template identifier, and the target template identifier may be a template identifier of an emoji template selected by the second user.

Accordingly, the first generation request may further carry the target template identifier, and the first emoji template image may be an emoji template image corresponding to the target template identifier.

Accordingly, in a case that no first emoji image is detected and a third emoji image is detected, the target emoji image may include the third emoji image, where the first emoji image may be generated based on a first face image of the first user and a second face image of the second user, and the third emoji image may be generated based on the first face image.

Accordingly, in a case that no third emoji image is detected, the target emoji image may include a second emoji template image, where the third emoji image may be generated based on a first face image of the first user and the second emoji template image.

In some embodiments of the present disclosure, an emoji generation trigger control may be displayed in the target emoji presentation panel.

Accordingly, the image display apparatus <NUM> may further include a fifth display unit, a second sending unit, a second receiving unit, and a sixth display unit.

The fifth display unit may be configured to display a face capture interface, in response to detecting a third trigger operation on the emoji generation trigger control.

The second sending unit may be configured to send a second generation request carrying the first face image to the server once the first face image is captured by the face capture interface, where the second generation request may be used to instruct the server to generate the third emoji image based on the first face image and the second emoji template image and send back the third emoji image.

The second receiving unit may be configured to receive the third emoji image fed-back by the server.

The sixth display unit may be configured to replace the first preview image with a second preview image, where the second preview image may be a preview image of the third emoji image.

In some embodiments of the present disclosure, the first preview image may include a first target text displayed in a predetermined text style;.

Accordingly, in a case that the quantity of words of the input text is less than or equal to a predetermined quantity threshold, the first target text may include the input text; and in a case that the quantity of words of the input text is greater than the predetermined quantity threshold, the first target text may include a predetermined text.

In some embodiments of the present disclosure, the target entry icon may include any one of:.

In some embodiments of the present disclosure, the target entry icon may include a second target text displayed in a predetermined text style, and the second target text may include first predetermined quantity of words of the input text.

In some embodiments of the present disclosure, a third preview image may be displayed in the emoji recommendation panel, the third preview image may include the target entry icon and a preview image of a fourth emoji image, and the fourth emoji image may be a non-custom emoji image which is of the same sentiment type as the input text.

Accordingly, the image display apparatus <NUM> may further include a display duration obtaining unit, a seventh display unit and an eighth display unit.

The display duration obtaining unit may be configured to obtain a display duration of the emoji recommendation panel.

The seventh display unit may be configured to stop displaying the emoji recommendation panel in a case that the display duration reaches a predetermined duration and the third preview image is not triggered.

The eighth display unit may be configured to display the target entry icon in the chat interface.

In some embodiments of the present disclosure, the image display apparatus <NUM> may further include a ninth display unit, and the ninth display unit may be configured to stop displaying the target entry icon, in a case that the input text is not displayed in the chat interface.

It should be noted that the image display apparatus <NUM> shown in <FIG> may perform the steps in the method embodiments shown in <FIG> and implement the processes and effects in the method embodiments shown in <FIG>, which is not repeated herein.

An image display device is further provided according to an embodiment of the present disclosure. The image display device may include a processor and a memory, where the memory may be configured to store executable instructions. The processor may be configured to read the executable instructions from the memory and execute the executable instructions to implement the image display method in the above embodiments.

<FIG> illustrates a schematic structural diagram of an image display device according to an embodiment of the present disclosure. Specific reference is made to <FIG> hereinafter, which illustrates a schematic diagram of a structure suitable for implementing the image display device <NUM> in the embodiments of the present disclosure.

The image display device <NUM> in the embodiments of the present disclosure may be an electronic device. The electronic device may include, but is not limited to, mobile terminals such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a vehicle-mounted navigation terminal), and a wearable device, and stationary terminals such as a digital TV, a desktop computer, and a smart home device.

In some embodiments, the electronic device may be the first electronic device <NUM> at client end as shown in <FIG>.

It should be noted that the image display device <NUM> illustrated in <FIG> is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.

As shown in <FIG>, the image display device <NUM> may include a processing apparatus (such as a central processor and a graphic processor) <NUM>. The processing apparatus may perform various appropriate actions and processing based on programs stored in a read-only memory (ROM) <NUM> or programs uploaded from a storage apparatus <NUM> to a random access memory (RAM) <NUM>. Various programs and data required for operations of the image display device <NUM> are also stored in the RAM <NUM>. The processing apparatus <NUM>, the ROM <NUM> and the RAM <NUM> are connected to each other through the bus <NUM>. An input/output (I/O) interface <NUM> is also connected to the bus <NUM>.

Generally, the following apparatuses may be connected to the I/O interface <NUM>: an input apparatus <NUM> such as a touch screen, a touch panel, a keyboard, a mouse, a camera, a microphone, an accelerometer, and gyroscope; an output apparatus <NUM> such as a liquid crystal display (LCD), a loudspeaker and a vibrator; a storage apparatus <NUM> such as a magnetic tape and a hard disk; and a communication apparatus <NUM>. The communication apparatus <NUM> may allow the image display device <NUM> to communicate with other device in a wired or wireless manner to exchange data. Although <FIG> shows the image display device <NUM> provided with various apparatuses, it should be understood that not all shown apparatuses are required to be implemented or included. Alternatively, more or less apparatuses may be implemented or included.

A computer readable storage medium having a computer program stored thereon is further provided according to an embodiment of the present disclosure. The computer program, when being executed by a processor, causes the processor to implement the image display method according to the foregoing embodiments.

Particularly, according to the embodiments of the present disclosure, the process described above in conjunction with flowcharts may be implemented as a computer software program.

A computer program product is further provided according to an embodiment of the present disclosure. The computer program product may include a computer program, the computer program, when being executed by a processor, causes the processor to implement the image display method according to the foregoing embodiments.

For example, a computer program product is further provided according to an embodiment of the present disclosure, including a computer program carried on a non-transitory computer readable medium. The computer program includes program code for performing the method shown in the flowchart. In the embodiment, the computer program may be downloaded and installed from the network via the communication apparatus <NUM>, or installed from the storage apparatus <NUM>, or installed from the ROM <NUM>. When the computer program is executed by the processing apparatus <NUM>, the functions defined in the image display method according to the embodiment of the present disclosure are performed.

It should be noted that, the computer readable medium described in the present disclosure may be a computer readable signal medium, a computer readable storage medium or any combination thereof. The computer readable storage medium may include but not limited to a system, an apparatus or a device in an electric, magnetic, optical, electromagnetic, infrared or a semiconductor form, or any combination thereof. The computer readable storage medium may include but not limited to electric connection of one or more wires, a portable computer magnetic disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM or a flash memory), an optical fiber, a portable compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device or any appropriate combination thereof. In the present disclosure, the computer readable storage medium may be any tangible medium including or storing programs. The programs may be used by an instruction execution system, apparatus or device, or may be used in combination with the instruction execution system, apparatus or device. In the present disclosure, a computer readable signal medium may include a data signal in a baseband or propagated as a part of carrier. The computer readable signal medium carries computer readable program codes. The propagated data signal may be in a variety of forms, and include but not limited to an electromagnetic signal, an optical signal or any appropriate combination thereof. The computer readable signal medium may further be any computer readable medium other than the computer readable storage medium. The computer readable signal medium may send, propagate or transmit programs used by the instruction execution system, apparatus or device or the programs used in combination with the instruction execution system, apparatus or device. The program code embodied in the computer readable medium may be transmitted via any appropriate medium, including but not limited to an electric wire, an optical fiber, radio frequency (RF) or any appropriate combination thereof.

In some embodiments, the client and the server may perform communication by using any currently known network protocol such as Hyper Text Transfer Protocol (HTTP) or any network protocol to be developed in the further, and may connect with digital data communication (for example, a communication network) in any form or carried in any medium. Examples of the communication network include a local area network (LAN), a wide area network (WAN), Internet, and an end-to-end network (such as, ad hoc end-to-end network), and any currently known or future developed network.

The computer readable storage medium may be included in the image display device, or may stand alone without being assembled into the image display device.

The computer readable medium carries one or more programs. The one or more programs, when executed by the image display device, enable the image display device to perform the following operations:
displaying an emoji recommendation panel in a chat interface, once an input text displayed in the chat interface triggers an emoji recommendation event, where a target entry icon is displayed in the emoji recommendation panel, and the target entry icon is used to trigger the display of a custom target emoji image; stopping displaying the emoji recommendation panel, in response to detecting a first trigger operation on the target entry icon; and displaying, in the chat interface, a target emoji presentation panel corresponding to the target entry icon, where a first preview image is displayed in the target emoji presentation panel, and the first preview image is a preview image of the target emoji image.

In an embodiment of the present disclosure, computer program codes for performing operations of the present disclosure may be written by using one or more program design language or any combination. The program design language includes but not limited to object oriented program design language such as Java, Smalltalk and C++, and further includes conventional process-type program design language such as "C" or similar program design language. The program codes may be completely or partially executed on a user computer, performed as an independent software packet, partially executed on the user computer and partially executed on a remote computer, or completely executed on the remote computer or a server. In a case of involving the remote computer, the remote computer may connect to the user computer via any type of network such as a local area network (LAN) and a wide area network (WAN). Alternatively, the remote computer may connect to an external computer (such as achieving internet connection by services provided by the internet network service provider).

The flowcharts and block diagrams in the drawings illustrate architecture, function and operation which may be implemented by the system, method and computer program product according to the embodiments of the present disclosure. Each block in the flowcharts or the block diagram may represent a module, a program segment or part of codes including executable instruction(s) for implementing specified logic functions. It should be noted that, in some alternative implementations, the functions marked in blocks may be performed in an order different from the order shown in the drawings. For example, two blocks shown in succession may actually be executed in parallel, or sometimes may be executed in a reverse order, which depends on the functions involved. It should also be noted that each block in the block diagram and/or flow chart and a combination of the blocks in the block diagram and/or flow chart may be implemented by a dedicated hardware-based system that performs specified functions or operations, or may be realized by a combination of dedicated hardware and computer instructions.

The units mentioned in the description of the embodiments of the present disclosure may be implemented by means of software or otherwise by means of hardware. A name of the units does not constitute a limitation to the units in some case.

The functions described above herein may be at least partially performed by one or more hardware logic components. For example, the hardware logic components may include but not limited to: a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), an application specific standard product (ASSP), a system on chip (SOC), a complex programmable logic device (CPLD) and so on.

Claim 1:
An image display method, comprising:
displaying (S310) an emoji recommendation panel in a chat interface once an input text displayed in the chat interface triggers an emoji recommendation event, wherein a target entry icon is displayed in the emoji recommendation panel, and the target entry icon is configured to trigger display of a custom target emoji image;
stopping (S320) displaying the emoji recommendation panel in response to detecting a first trigger operation on the target entry icon; and
displaying (S330), in the chat interface, a target emoji presentation panel corresponding to the target entry icon, wherein a first preview image is displayed in the target emoji presentation panel, and the first preview image is a preview image of the custom target emoji image,
wherein the chat interface is an interface in which a first user performs a chat with a second user; wherein
the custom target emoji image comprises a first emoji image, and the first emoji image is generated based on a first face image of the first user and a second face image of the second user,
wherein before the input text displayed in the chat interface triggers the emoji recommendation event, the image display method further comprises:
displaying (S610) target invitation information sent from the second user to the first user;
sending (S620), to a server, a first generation request carrying a first user identifier of the first user and a second user identifier of the second user, in response to detecting a second triggering operation on the target invitation information, wherein the first generation request is used to instruct the server to generate the first emoji image based on the first face image stored in association with the first user identifier, the second face image stored in association with the second user identifier, and a first emoji template image; and
receiving (S630) the first emoji image fed-back by the server.