CN111835617B - User head portrait adjusting method and device and electronic equipment - Google Patents

User head portrait adjusting method and device and electronic equipment Download PDF

Info

Publication number
CN111835617B
CN111835617B CN201910328184.7A CN201910328184A CN111835617B CN 111835617 B CN111835617 B CN 111835617B CN 201910328184 A CN201910328184 A CN 201910328184A CN 111835617 B CN111835617 B CN 111835617B
Authority
CN
China
Prior art keywords
target
user
session
picture
instant messaging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910328184.7A
Other languages
Chinese (zh)
Other versions
CN111835617A (en
Inventor
陆忠芳
姜赟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910328184.7A priority Critical patent/CN111835617B/en
Publication of CN111835617A publication Critical patent/CN111835617A/en
Application granted granted Critical
Publication of CN111835617B publication Critical patent/CN111835617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method and a device for adjusting a user head portrait and electronic equipment. The method comprises the following steps: the instant messaging server side obtains a plurality of alternative pictures which can be used as the first user head portrait for displaying and emotion category information of each alternative picture; in the process of instant messaging between a first user and at least one second user, a temporary storage area is created for a corresponding session; obtaining communication content information input by a first user in a session; determining target emotion category information of a first user according to the communication content information, and determining a target picture from alternative pictures with the target emotion category information; and storing the information of the target picture in a temporary storage area corresponding to the conversation so that an instant messaging client associated with a participant user of the conversation can adjust the avatar of the first user into the target picture by accessing the temporary storage area. According to the scheme, all the participant users of the conversation can know the emotion change of the first user in time through the avatar change of the first user.

Description

User head portrait adjusting method and device and electronic equipment
Technical Field
The present application relates to the field of instant messaging technologies, and in particular, to a method and an apparatus for adjusting a user avatar, and an electronic device.
Background
Instant Messaging (IM) is a system for real-time communication over a network, allowing two or more people to communicate text messages, files, voice and video over the network in real time, providing efficient and convenient communication for users.
Generally, an instant messaging system may include an instant messaging client and an instant messaging server. When the user logs in the instant messaging client through the associated terminal device, personalized setting can be performed, for example, the head portrait of the user is changed. Specifically, the user may select a target picture from pictures locally stored in the terminal device, or a picture is taken in real time through the terminal device as the target picture, and the target picture is submitted to the instant messaging server, so that the instant messaging server stores the target picture, and the target picture is used as a personalized avatar of the user to be statically displayed at the instant messaging client.
Disclosure of Invention
The application provides a user avatar adjusting method, a user avatar adjusting device and electronic equipment, which can determine target emotion category information of a user according to communication content information input by the user in a session process, and further dynamically adjust the avatar of the user to be matched with the target emotion type information.
The application provides the following scheme:
a user head portrait adjusting method comprises the following steps:
the instant messaging server side obtains a plurality of alternative pictures which can be used as the first user head portrait for displaying and emotion category information of each alternative picture;
in the process of instant messaging between the first user and at least one second user, a temporary storage area is created for the corresponding session;
obtaining communication content information input by the first user in the session;
determining target emotion category information of the first user according to the communication content information, and determining a target picture from alternative pictures with the target emotion category information;
and storing the information of the target picture in a temporary storage area corresponding to the conversation so that an instant messaging client associated with a participant user of the conversation can adjust the head portrait of the first user into the target picture by accessing the temporary storage area.
A user head portrait adjusting method comprises the following steps:
after receiving an operation instruction for establishing a session between a first user and at least one second user, an instant messaging client associated with the first user submits the operation instruction to an instant messaging server so that the instant messaging server can establish a temporary storage area for the session;
submitting the communication content information input by the first user in the session process to the instant communication server, so that the instant communication server determines target emotion category information of the first user according to the obtained communication content information, determines a target picture from alternative pictures with the target emotion category information, and stores the information of the target picture in a temporary storage area corresponding to the session;
and accessing a temporary storage area corresponding to the session, and adjusting the head portrait of the first user to the target picture.
A user head portrait adjusting method comprises the following steps:
obtaining communication content information input by a first user in an instant communication session;
determining target emotion category information of the first user according to the communication content information;
determining a target picture corresponding to the target emotion category information, wherein the emotion category information of the target picture corresponds to the target emotion category;
and adjusting the head portrait of the first user into the target picture.
A user head portrait adjusting device is applied to an instant messaging server and comprises:
the alternative picture obtaining unit is used for obtaining a plurality of alternative pictures which can be displayed as the first user head portrait;
the emotion category information obtaining unit is used for obtaining emotion category information of each alternative picture;
a temporary storage area creating unit, configured to create a temporary storage area for a corresponding session in an instant messaging process between the first user and at least one second user;
a communication content information obtaining unit, configured to obtain communication content information input by the first user in the session;
the target emotion category information determining unit is used for determining target emotion category information of the first user according to the communication content information;
the target picture determining unit is used for determining a target picture from the alternative pictures with the target emotion category information;
and the target picture information storage unit is used for storing the information of the target picture into a temporary storage area corresponding to the conversation, so that an instant messaging client associated with the participant user of the conversation can adjust the head portrait of the first user into the target picture by accessing the temporary storage area.
A user avatar adjustment apparatus applied to an instant messaging client associated with a first user, comprising:
the operation instruction receiving unit is used for submitting the operation instruction for establishing the session between the first user and at least one second user to an instant messaging service end after receiving the operation instruction for establishing the session between the first user and at least one second user so that the instant messaging service end can establish a temporary storage area for the session;
a communication content information submitting unit, configured to submit the communication content information input by the first user in the session process to the instant messaging service end, so that the instant messaging service end determines the target emotion category information of the first user according to the obtained communication content information, determines a target picture from the candidate pictures having the target emotion category information, and stores the information of the target picture in a temporary storage area corresponding to the session;
and the head portrait modifying unit is used for accessing the temporary storage area corresponding to the session and adjusting the head portrait of the first user into the target picture.
A user head portrait adjusting device is applied to an instant messaging server and comprises:
the communication content information acquisition unit is used for acquiring communication content information input by a first user in the session of instant messaging;
the target emotion category information determining unit is used for determining target emotion category information of the first user according to the communication content information;
a target picture determining unit, configured to determine a target picture corresponding to the target emotion category information, where the emotion category information of the target picture corresponds to the target emotion category;
and the head portrait adjusting unit is used for adjusting the head portrait of the first user into the target picture.
An electronic device, comprising:
one or more processors; and
memory associated with the one or more processors, the memory for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
obtaining a plurality of alternative pictures which can be displayed as the first user head portrait and emotion category information of each alternative picture;
in the process of instant messaging between the first user and at least one second user, a temporary storage area is created for the corresponding session;
obtaining communication content information input by the first user in the session;
determining target emotion category information of the first user according to the communication content information, and determining a target picture from alternative pictures with the target emotion category information;
and storing the information of the target picture in a temporary storage area corresponding to the conversation so that an instant messaging client associated with a participant user of the conversation can adjust the head portrait of the first user into the target picture by accessing the temporary storage area.
An electronic device, comprising:
one or more processors; and
memory associated with the one or more processors, the memory for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
after receiving an operation instruction for establishing a session between a first user and at least one second user, submitting the operation instruction to an instant messaging service end so that the instant messaging service end can establish a temporary storage area for the session;
submitting the communication content information input by the first user in the session process to the instant communication server, so that the instant communication server determines target emotion category information of the first user according to the obtained communication content information, determines a target picture from alternative pictures with the target emotion category information, and stores the information of the target picture in a temporary storage area corresponding to the session;
and accessing a temporary storage area corresponding to the session, and adjusting the head portrait of the first user to the target picture.
An electronic device, comprising:
one or more processors; and
memory associated with the one or more processors, the memory for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
obtaining communication content information input by a first user in a session of instant messaging;
determining target emotion category information of the first user according to the communication content information;
determining a target picture corresponding to the target emotion category information, wherein the emotion category information of the target picture corresponds to the target emotion category;
and adjusting the head portrait of the first user into the target picture.
According to the specific embodiments provided herein, the present application discloses the following technical effects:
according to the embodiment of the application, the instant messaging server can establish a temporary storage area for a corresponding conversation when a first user communicates with at least one second user, further determine the target emotion category information of the first user according to the communication content information input by the first user in the conversation, and store the information of the target picture in the temporary storage area corresponding to the conversation after determining the target picture from the alternative pictures with the target emotion category information, so that an instant messaging client associated with a participant user of the conversation can dynamically modify the avatar of the first user into the target picture in a mode of accessing the temporary storage area. According to the scheme, all the participant users of the conversation can know the emotion change of the first user by checking the avatar change of the first user, and the chat content can be properly adjusted according to the emotion change, so that the user experience is improved.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for the practice of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of a system provided by an embodiment of the present application;
FIG. 2 is a flow chart of a first method provided by an embodiment of the present application;
FIG. 3 is a flow chart of a second method provided by an embodiment of the present application;
FIG. 4 is a flow chart of a third method provided by embodiments of the present application;
FIG. 5 is a flow chart of a fourth method provided by embodiments of the present application;
FIG. 6 is a schematic diagram of a first apparatus provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a second apparatus provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of an architecture of a computer system provided by an embodiment of the present application;
fig. 9 is a schematic diagram of an architecture of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived from the embodiments given herein by a person of ordinary skill in the art are intended to be within the scope of the present disclosure.
In order to improve the flexibility and interest of user configuration in the instant messaging system and further improve user experience, the instant messaging system provided by the embodiment of the application can dynamically adjust the head portrait of the user in real time according to the communication content information input in the user session process. Referring to the example shown in fig. 1, the instant messaging system may include an instant messaging server and an instant messaging client installed on a terminal device associated with a user. The instant messaging service end can obtain communication content information input by a first user in an instant messaging session during the instant messaging process between the first user and at least one second user, determine the current target emotion category information of the first user according to the communication content information, further determine a target picture corresponding to the target emotion category information (the emotion category information of the target picture corresponds to the target emotion category), and dynamically adjust the head portrait of the first user into the target picture. The target picture may be a static picture or a dynamic picture, which is not specifically limited in the embodiment of the present application.
In the embodiment of the application, the target picture corresponding to the target emotion category information is determined, and various implementation manners can be provided. For example, in an implementation manner, the target emotion category information may be added to a picture adopted by the current avatar of the first user, that is, a target picture with the target emotion category information is synthesized on the basis of an original picture and is displayed as the avatar of the first user.
Or, in another implementation, a plurality of alternative pictures which can be displayed as the first user head portrait can be provided, and the emotion category information is marked in the alternative pictures. After the target emotion type information is determined, an alternative picture with emotion category information corresponding to the target emotion category can be determined from the multiple alternative pictures to serve as the target picture. The following explains the user avatar adjustment process in this implementation with reference to the flowchart shown in fig. 2.
Example 1
S101: the instant messaging server side obtains a plurality of alternative pictures which can be used as the first user head portrait for displaying and the emotion category information of each alternative picture.
In order to achieve the purpose of dynamically adjusting the avatar of the user according to the emotion of the user, the instant messaging server can obtain the following two information:
1. and the picture can be used as an alternative picture displayed by the head portrait of the user.
The instant messaging server can obtain the alternative pictures in various ways. For example, in one approach, multiple alternative pictures submitted by an instant messaging client associated with a first user may be received. Specifically, when the first user authorizes the instant messaging server to dynamically adjust the avatar of the user, the process of submitting the alternative pictures can be entered through an entry provided by an instant messaging client associated with the first user. For example, a "dynamic head portrait" option may be provided in a "setting" option of the instant messaging client, and used as an entry for submitting the candidate pictures, after the first user clicks the "dynamic head portrait" option, the instant messaging client may provide a first operation option for submitting a plurality of candidate pictures, and then submit the plurality of candidate pictures to the instant messaging server after receiving the plurality of candidate pictures through the first operation option, and the instant messaging server stores the plurality of candidate pictures as personalized information of the first user.
Or, in another mode, the instant messaging service provider may collect a plurality of general candidate pictures in advance and store the pictures in the instant messaging service end, that is, for a user using the instant messaging client, if the user does not submit a candidate picture that can be used as personalized information, after the instant messaging service end is authorized to dynamically adjust the user's avatar, the instant messaging service end may dynamically adjust the user's avatar using the stored general candidate pictures.
2. And emotion category information corresponding to each alternative picture.
Whether the first user submits the personalized alternative pictures or the pre-collected general alternative pictures, the instant messaging server can determine the emotion category information corresponding to each alternative picture through an image recognition technology. As an example, if the candidate picture includes face information, the face expression in the candidate picture may be identified by an OpenCV image processing technique, so as to obtain emotion category information corresponding to the candidate picture. The implementation process of obtaining the emotion category information by image recognition in the embodiment of the application is not particularly limited, and can be implemented by referring to the related technology.
In addition, emotion category information of each alternative picture can be obtained in a manual labeling mode. Taking a universal alternative picture as an example, manual labeling can be performed when the alternative pictures are collected to obtain emotion category information of each alternative picture, and then the alternative pictures and the corresponding emotion category information are stored by the instant messaging service end. The emotion category information of the personalized alternative pictures submitted by the first user can also be manually marked by the first user. Specifically, after receiving a plurality of candidate pictures through the first operation option, the instant messaging client associated with the first user may provide a second operation option for submitting emotion category information of each candidate picture, and further, after receiving the emotion category information of each candidate picture through the second operation option, submit the candidate pictures and corresponding emotion category information to the instant messaging server for storage.
As an example, the emotion categories in the embodiment of the present application may be classified into positive emotion categories and negative emotion categories at a coarse granularity; or, the emotion categories such as happy feeling, angry feeling, feeble feeling and the like can be classified in a fine-grained manner, and the emotion categories can be specifically classified by combining with practical application requirements, which is not limited in the embodiment of the application.
In the actual application process, there may be emotion categories without corresponding alternative pictures. For example, the first user 1 may submit the alternative pictures corresponding to the emotion category of "angry" through the associated instant messaging client 1, and the instant messaging server may return a prompt message to the instant messaging client 1, so that the first user 1 submits the alternative pictures corresponding to "angry" through the instant messaging client 1. Or, the instant messaging service end may supplement the alternative pictures corresponding to the emotion category of "angry" in the general alternative pictures to the alternative pictures of the first user 1, that is, may dynamically adjust the avatar of the first user 1 by using the personalized alternative pictures corresponding to the emotion categories other than the emotion category of "angry" and the general alternative pictures corresponding to the emotion categories of "angry".
In addition, in an actual application process, some emotion categories may correspond to multiple different alternative pictures, that is, at least two alternative pictures have the same first emotion category information. For example, the emotion category of "happy" in the candidate pictures submitted by the first user 1 through the associated instant messaging client 1 corresponds to 3 candidate pictures, if the "happy" is determined as the target emotion category information of the first user 1 in the subsequent processing process, the instant messaging server may randomly select one of the 3 candidate pictures as the target picture when determining the target picture corresponding to the target emotion category; or, all the 3 candidate pictures can be determined as target pictures, and the 3 target pictures are sequentially displayed in a picture carousel mode; alternatively, the following processing may be performed: the instant messaging service end sends the 3 optional pictures to the instant messaging client 1, and the first user 1 determines the display priority information of the 3 optional pictures; correspondingly, after receiving the 3 candidate pictures returned by the instant messaging service end, the instant messaging client 1 may provide a third operation option for determining the display priority information of the 3 candidate pictures, and submit the display priority information of the 3 candidate pictures to the instant messaging service end after receiving the display priority information of the 3 candidate pictures through the third operation option. Therefore, the instant messaging server can determine the target picture from the 3 candidate pictures according to the determined display priority information. For example, the candidate picture with the highest display priority may be determined as the target picture, or all of the 3 candidate pictures may be determined as the target picture, and carousel is performed according to the display priority from high to low, which may not be specifically limited in the embodiment of the present application.
S102: and in the process of instant messaging between the first user and at least one second user, creating a temporary storage area for the corresponding session.
In an actual application process, if the avatar of the first user 1 is adjusted according to the emotion category information "angry" determined in the conversation process between the first user 1 and the second user 1, after the second user 2 not participating in the conversation clicks and refreshes the avatar of the first user 1, the adjusted avatar representing "angry" may also be displayed to the second user 2, in order to avoid misunderstanding of the second user 2 caused by such a situation and further influence the use experience of the second user 2, the instant messaging service end may create a temporary storage area for the conversation between the first user 1 and the second user 1, and store the avatar adjusted by the first user 1 in the conversation process through the temporary storage area. That is, for the second user 1 participating in the conversation, the dynamically adjusted avatar representing "angry" may be presented to the second user 1 through the information stored in the temporary storage area corresponding to the conversation; for the second user 2 not participating in the conversation, the default avatar set by the first user 1 can be saved through the avatar configuration option of the configuration center, and when the second user 2 refreshes the avatar of the first user 1, the default avatar is presented to the second user 2.
In addition, the first user may have conversations with multiple second users, and different chat contents may be involved in the conversation with different second users, corresponding to different emotion category information. For example, the emotion category information when the first user 1 and the second user 1 have a conversation is "angry", and the emotion category information when a multi-person conversation is performed with the second user 3 and the second user 4 is "happy", that is, the first user 1 needs to show different avatars for different second users. For this reason, the instant messaging service end may create different temporary storage areas for different sessions of the first user 1, and store the avatar of the first user 1 adjusted in different sessions through the different temporary storage areas. In the above example, the following two temporary storage areas may be created: a temporary storage area 1 corresponding to a session between a first user 1 and a second user 1; a temporary storage area 2 corresponding to a session between a first user 1, a second user 3 and a second user 4.
Taking the temporary storage area 1 as an example, after receiving an operation instruction for creating a session between the first user 1 and the second user 1, an instant messaging client associated with the first user 1 may submit the operation instruction to an instant messaging server, and the instant messaging server creates the corresponding temporary storage area 1 for the session. The operation instruction for creating the session in the embodiment of the present application may be embodied in many different forms. For example, after the first user 1 finds the second user 1 through the friend list provided by the instant messaging client 1 or searches the second user 1 in the search bar, the first user 1 may click the avatar of the second user 1 to create a session with the second user 1, and after the instant messaging client 1 obtains the action of the first user 1 clicking the avatar of the second user 1, the action may be submitted to the instant messaging server as an operation instruction; or, after the first user 1 clicks the avatar of the second user 1, the instant messaging client 1 may provide an operation option for creating the session, for example, the operation option may be embodied as a "send message" key, and after the instant messaging client 1 obtains an action that the first user 1 clicks the "send message" key, the operation option may be submitted to the instant messaging server as an operation instruction.
S103: and obtaining communication content information input by the first user in the conversation process, determining target emotion category information of the first user according to the communication content information, and determining a target picture from alternative pictures with the target emotion category information.
Taking the conversation between the first user 1 and the second user 1 as an example, the instant messaging client 1 associated with the first user 1 may submit the communication content information input by the first user 1 in the conversation process to the instant messaging server, and the instant messaging server determines the target emotion category information of the first user 1 according to the obtained communication content information. As an example, the communication content information of the first user 1 may be embodied as text information, voice information, and the like, which may not be specifically limited in this embodiment of the present application.
The instant messaging service end can determine whether to dynamically adjust the avatar of the first user 1 in various ways. For example, in one mode, the instant messaging service end may perform avatar adjustment at regular time, that is, every preset time period T, it may determine whether to perform avatar adjustment according to the obtained communication content information.
For example, the timing may be started when the first user 1 establishes a session with the second user 1 (the timing time may be denoted as 0), and if the duration of the session between the first user 1 and the second user 1 reaches the preset time length T (the timing time may be denoted as T), the target emotion category information of the first user 1 may be determined according to the communication content information input by the first user 1 obtained within the time period from the timing time 0 to T, and then the first avatar adjustment may be completed. It can be understood that, the instant messaging service end may determine the target emotion category information of the first user 1 by using all the communication content information input by the first user 1 within the preset time length T; or, the target emotion category information of the first user 1 may also be determined by using part of the communication content information input by the first user 1 within the preset time duration T, which may not be specifically limited in the embodiment of the present application.
After the first avatar adjustment is completed, the instant messaging service end can continue to obtain the communication content information newly input by the first user 1 in the session, and if the emotion classification information of the first user 1 is determined to be changed according to the newly input communication content information, the second avatar update adjustment can be performed according to the changed emotion classification information. Correspondingly, the instant messaging server can count again after the first avatar adjustment is completed, and determine whether to perform the second avatar adjustment when the session duration reaches T again, and so on, so as to dynamically adjust the avatar of the first user 1 in real time. Or, the instant messaging service end may also continue to perform cumulative timing after the first avatar adjustment is completed, and when the session duration reaches 2T (the timing time at this time may be recorded as 2T), determine whether to perform the second avatar adjustment according to the communication content information input by the first user 1 within the time period of the timing time T-2T.
Or, in another mode, the instant messaging service end can determine whether to adjust the avatar according to the obtained messaging content information every time a preset number of messaging content information are obtained. Taking the preset number of 100 as an example, the counting can be started when the first user 1 establishes a session with the second user 1, 1 can be added each time a count value of one piece of communication content information input by the first user 1 is obtained, and if the number of the obtained communication content information reaches 100, the target emotion category information of the first user 1 can be determined according to the 100 pieces of communication content information, so as to complete the first avatar adjustment. It can be understood that, the instant messaging service end can determine the target emotion category information of the first user 1 by using the 100 pieces of communication content information input by the first user 1; alternatively, partial information in the 100 pieces of communication content information may also be used to determine the target emotion category information of the first user 1, which is not specifically limited in the embodiment of the present application.
Similarly, after the first avatar adjustment is completed, the instant messaging service end can continue to obtain the communication content information newly input by the first user 1 in the session, and recount the number of the newly input communication content information to determine whether to perform the second avatar adjustment; or, the instant messaging service end can also continuously accumulate and count the number of the newly input communication content information, and when the number of the obtained communication content information reaches 200, determine whether to perform the second avatar adjustment according to the 100 newly obtained communication content information.
In this embodiment of the application, the preset number may also be set to 1, that is, the instant messaging service end may perform emotion analysis on the communication content information input by the first user 1 in real time, and perform avatar adjustment in time when it is determined that the emotion category information of the first user 1 changes.
As an example, if the communication content information is Text information, the instant messaging service end may determine the target emotion category information of the first user 1 through a Text emotion analysis (Text emotion analysis) technology. If the communication content information is voice information, the instant messaging service end may determine the target emotion category information of the first user 1 through a voice recognition (automatic speech recognition) technology, or may determine the target emotion category information of the first user 1 through a text emotion analysis technology after the voice information is converted into text information, which is not specifically limited in the embodiment of the present application. The specific process of emotion analysis can be implemented by referring to the related art, and is not described in detail here.
In addition, if the obtained communication content information comprises the emoticons, the target emotion category information can be determined according to the emotion category information represented by the emoticons. Specifically, the emotion category information represented by each emoticon in the communication content information can be obtained, the number of the emoticons corresponding to different emotion category information is counted, and the emotion category information with the largest number of corresponding emoticons is determined as the target emotion category information. For example, if the communication content information includes 4 emoticons, and the emotion category information represented by 1 emoticon is "casualty" and the emotion category information represented by 3 emoticons is "angry", the emotion category information "angry" with the largest number of corresponding emoticons can be determined as the target emotion category information.
After the target emotion category information is obtained, the instant messaging service terminal can determine a target picture from the alternative pictures with the target emotion category information. As illustrated above, the target emotion category information determined when the first user 1 has a conversation with the second user 1 is "angry", and the instant messaging service end may determine at least one target picture from the alternative pictures representing "angry" for modifying the avatar of the first user 1.
S104: and the instant messaging server stores the information of the target picture in a temporary storage area corresponding to the session.
As an example, the instant messaging server may store the target picture in a temporary storage area corresponding to the session, so that the instant messaging client accesses the temporary storage area to obtain the target picture; or the storage address information of the target picture can be stored in a temporary storage area corresponding to the session, so that the instant messaging client accesses the temporary storage area to obtain the storage address of the target picture, and then the target picture is obtained according to the storage address. The information of the target picture stored in the temporary storage area may not be specifically limited in the embodiment of the present application, as long as the instant messaging client can obtain the target picture.
S105: and the instant messaging client associated with the participant user of the conversation adjusts the head portrait of the first user into the target picture by accessing the temporary storage area.
In the instant messaging process, messages input by users participating in a conversation, or system messages generated by an instant messaging service end and the like can be forwarded to an instant messaging client associated with the users participating in the conversation by a 'message center', and the instant messaging client can passively receive specific message contents in real time. However, the user avatar belongs to a kind of user configuration information, the information related to the avatar may be stored in a "user configuration center", and the related information may be pulled from the user configuration center by the instant messaging client at the start time of the session or at the time when the user manually clicks to refresh the avatar, and the configuration information may not be actively refreshed in the specific session process, so that the change of the avatar cannot be displayed in time on the side of the instant messaging client associated with the second user when the avatar of the first user is updated. Therefore, in the embodiment of the application, the instant messaging client associated with the participant user of the session can access the temporary storage area corresponding to the session, and the avatar of the first user is modified into the target picture.
In the embodiment of the application, the instant messaging client can update the head portrait of the first user in time in a plurality of modes. For example, in one mode, the instant messaging server may send a refresh command to the instant messaging clients associated with the participant users of the session, and notify each instant messaging client to update the avatar of the first user in time. In the above example, the refresh instruction may be sent to the instant messaging clients associated with the first user 1 and the second user 1, so that both the two parties of communication can view the avatar change of the first user 1 in time, and thus, the second user 1 can know the emotion change of the first user 1 in time according to the avatar change, and can adjust the chat content according to the situation, which is helpful to improve the user experience.
Or, in another mode, a thread for refreshing the head portraits of the participant users can be run in the instant messaging client associated with the participant users of the conversation, and the temporary storage area corresponding to the conversation can be actively accessed, so that the head portraits of the users can be timely and synchronously updated to the instant messaging clients for displaying when the head portraits change.
As an example, when the session between the first user 1 and the second user 1 is ended, the instant messaging server may recycle the temporary storage area created for the session, so that the information about the change of the avatar of the first user 1 is also cleared, and when the first user 1 establishes instant messaging with the second user 1 again, the default avatar of the first user 1 may be presented to the second user 1.
In conclusion, the purpose of dynamically adjusting the head portrait of the user in real time according to the chat context of the user can be achieved. It can be understood that different types of emotions may occur during the session between the first user 1 and the second user 1, and the instant messaging service end can dynamically adjust the avatar of the first user 1 during the session with the second user 1 according to the different types of emotions. Or, when the first user 1 respectively converses with different second users, different types of emotions may appear due to different chat contents even at the same time, so that the instant messaging server can dynamically adjust the avatar of the first user 1 during conversation with different second users according to the different types of emotions, so as to display different avatars in the chat window interfaces of the first user 1 and the different second users.
Example 2
The embodiment 2 is corresponding to the embodiment 1, and provides a method for adjusting a user avatar from the perspective of an instant messaging service end, and referring to fig. 3, the method may specifically include:
s201: the instant messaging server side obtains a plurality of alternative pictures which can be used as the first user head portrait for displaying and emotion category information of each alternative picture;
s202: in the process of instant messaging between the first user and at least one second user, a temporary storage area is created for the corresponding session;
s203: obtaining communication content information input by the first user in the session;
s204: determining target emotion category information of the first user according to the communication content information, and determining a target picture from alternative pictures with the target emotion category information;
s205: and storing the information of the target picture in a temporary storage area corresponding to the conversation so that an instant messaging client associated with a participant user of the conversation can adjust the head portrait of the first user into the target picture by accessing the temporary storage area.
Example 3
Embodiment 3 is a method corresponding to embodiment 1, and provides a method for adjusting a user avatar from the perspective of an instant messaging client associated with a first user, and with reference to fig. 4, the method may specifically include:
s301: after receiving an operation instruction for establishing a session between a first user and at least one second user, an instant messaging client associated with the first user submits the operation instruction to an instant messaging server so that the instant messaging server can establish a temporary storage area for the session;
s302: submitting the communication content information input by the first user in the session process to the instant communication server so that the instant communication server determines target emotion category information of the first user according to the obtained communication content information, determines a target picture from alternative pictures with the target emotion category information, and stores the information of the target picture in a temporary storage area corresponding to the session;
s303: and accessing a temporary storage area corresponding to the session, and adjusting the head portrait of the first user to the target picture.
Example 4
Embodiment 4 is a method corresponding to embodiment 1, and provides a method for adjusting a user avatar from the perspective of an instant messaging client associated with a second user, and with reference to fig. 5, the method may specifically include:
s401: an instant messaging client associated with a second user receives communication content information input by a first user and sent by an instant messaging server, wherein the communication content information is input by the first user in a conversation process with the second user;
s402: and accessing a temporary storage area created by the instant messaging service end for the session, and adjusting the head portrait of the first user into a target picture, wherein the target picture is determined by the instant messaging service end from an alternative picture with the target emotion category information after the target emotion category information of the first user is determined by the instant messaging service end according to the communication content information input by the first user.
For the parts not described in detail in embodiments 2 to 4, reference may be made to the descriptions in the embodiments, which are not repeated herein.
Corresponding to embodiment 1, an embodiment of the present application further provides a user avatar adjusting apparatus, referring to fig. 6, where the apparatus is applied to an instant messaging service end, and includes:
an alternative picture obtaining unit 501, configured to obtain multiple alternative pictures that can be displayed as a first user avatar;
an emotion category information obtaining unit 502, configured to obtain emotion category information of each candidate picture;
a temporary storage area creating unit 503, configured to create a temporary storage area for a corresponding session in an instant messaging process between the first user and at least one second user;
a communication content information obtaining unit 504, configured to obtain communication content information input by the first user in the session;
a target emotion category information determination unit 505, configured to determine target emotion category information of the first user according to the communication content information;
a target picture determining unit 506, configured to determine a target picture from the candidate pictures with the target emotion category information;
a target picture information storage unit 507, configured to store the information of the target picture in a temporary storage area corresponding to the session, so that an instant messaging client associated with a participant user of the session accesses the temporary storage area to adjust the avatar of the first user to the target picture.
Wherein the apparatus further comprises:
and the refreshing instruction sending unit is used for sending a refreshing instruction to an instant messaging client associated with the participant user of the conversation so that the instant messaging client can obtain the information of the target picture from a temporary storage area corresponding to the conversation and adjust the avatar of the first user to the target picture.
Wherein the apparatus further comprises:
the user head portrait updating unit is used for obtaining communication content information newly input by the first user in the conversation after the head portrait of the first user is adjusted to the target picture; and if the emotion category information of the first user is determined to be changed according to the newly input communication content information, updating the head portrait of the first user according to the changed emotion category information.
After obtaining the plurality of candidate pictures and the emotion category information of each candidate picture, the apparatus further includes:
the alternative picture sending unit is used for sending the at least two alternative pictures to an instant messaging client associated with the first user when the at least two alternative pictures have the same first emotion category information, and the first user determines the display priority information of the at least two alternative pictures;
a display priority information receiving unit, configured to receive display priority information of the at least two candidate pictures submitted by an instant messaging client associated with the first user, so that when the first emotion category information is determined to be the target emotion category information, the target picture is determined from the at least two candidate pictures according to the display priority information.
Wherein, the alternative picture obtaining unit is specifically configured to:
and receiving the multiple alternative pictures submitted by the instant messaging client associated with the first user.
If the communication content information includes an emoticon,
the target emotion category information determination unit is specifically configured to:
obtaining the emotion category information represented by each emoticon, counting the number of the emoticons corresponding to different emotion category information, and determining the emotion category information with the largest number of corresponding emoticons as target emotion category information.
The target picture information storage unit is specifically configured to:
and storing the storage address information of the target picture in a temporary storage area corresponding to the session so that the instant messaging client can obtain the target picture according to the storage address for displaying.
Corresponding to embodiment 1, an embodiment of the present application further provides a user avatar adjusting apparatus, referring to fig. 7, the apparatus is applied to an instant messaging client associated with a first user, and includes:
an operation instruction receiving unit 601, configured to submit an operation instruction for creating a session between the first user and at least one second user to an instant messaging service end after receiving the operation instruction, so that the instant messaging service end creates a temporary storage area for the session;
a communication content information submitting unit 602, configured to submit the communication content information input by the first user in the session process to the instant messaging service end, so that the instant messaging service end determines the target emotion category information of the first user according to the obtained communication content information, determines a target picture from the candidate pictures having the target emotion category information, and stores the information of the target picture in a temporary storage area corresponding to the session;
an avatar modification unit 603, configured to access the temporary storage area corresponding to the session, and adjust the avatar of the first user to the target picture.
Wherein, the avatar modification unit is specifically configured to:
and after a refreshing instruction sent by the instant messaging server is received, accessing a temporary storage area corresponding to the conversation to obtain the information of the target picture, and adjusting the head portrait of the first user to the target picture.
Wherein the apparatus further comprises:
the alternative picture submitting unit is used for providing a first operation option for submitting a plurality of alternative pictures which can be displayed as the first user head portrait;
and after receiving the multiple candidate pictures through the first operation option, submitting the multiple candidate pictures to the instant messaging service end so that the instant messaging service end can determine the target picture from the multiple candidate pictures according to the target emotion category information.
Wherein the apparatus further comprises:
the emotion category information submitting unit is used for providing a second operation option for submitting the emotion category information of each candidate picture after receiving the candidate pictures through the first operation option;
and after receiving the emotion category information of each alternative picture through the second operation option, submitting the emotion category information to the instant messaging server.
If at least two alternative pictures have the same first emotion category information, the apparatus further comprises:
the standby picture receiving unit is used for providing a third operation option for determining the display priority information of the at least two standby pictures after receiving the at least two standby pictures returned by the instant messaging server;
and the display priority information submitting unit is used for submitting the display priority information of the at least two alternative pictures to the instant messaging service end after receiving the display priority information of the at least two alternative pictures through the third operation option, so that when the instant messaging service end determines the first emotion category information as the target emotion category information, the target picture is determined from the at least two alternative pictures according to the display priority information.
In addition, an embodiment of the present application further provides a device for adjusting a user avatar, where the device is applied to an instant messaging server, and includes:
the communication content information acquisition unit is used for acquiring communication content information input by a first user in the session of instant messaging;
the target emotion category information determining unit is used for determining target emotion category information of the first user according to the communication content information;
a target picture determining unit, configured to determine a target picture corresponding to the target emotion category information, where the emotion category information of the target picture corresponds to the target emotion category;
and the head portrait adjusting unit is used for adjusting the head portrait of the first user into the target picture.
Wherein the apparatus further comprises:
the alternative picture providing unit is used for providing a plurality of alternative pictures which can be used as the head portraits of the first user, and the alternative pictures are marked with emotion category information;
the target picture determining unit is specifically configured to:
and determining a candidate picture with emotion category information corresponding to the target emotion category as a target picture from the multiple candidate pictures.
Wherein the apparatus further comprises:
a temporary storage area creating unit configured to create a temporary storage area for the session;
and the information storage unit is used for storing the information of the target picture into a temporary storage area corresponding to the conversation so that an instant messaging client associated with a participant user of the conversation can adjust the head portrait of the first user into the target picture by accessing the temporary storage area.
In addition, an embodiment of the present application further provides an electronic device, including:
one or more processors; and
memory associated with the one or more processors, the memory for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
obtaining a plurality of alternative pictures which can be displayed as the first user head portrait and emotion category information of each alternative picture;
in the process of instant messaging between the first user and at least one second user, a temporary storage area is created for the corresponding session;
obtaining communication content information input by the first user in the session;
determining target emotion category information of the first user according to the communication content information, and determining a target picture from alternative pictures with the target emotion category information;
and storing the information of the target picture in a temporary storage area corresponding to the conversation so that an instant messaging client associated with a participant user of the conversation can adjust the head portrait of the first user into the target picture by accessing the temporary storage area.
And an electronic device comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
after receiving an operation instruction for establishing a session between a first user and at least one second user, submitting the operation instruction to an instant messaging service end so that the instant messaging service end can establish a temporary storage area for the session;
submitting the communication content information input by the first user in the session process to the instant communication server, so that the instant communication server determines target emotion category information of the first user according to the obtained communication content information, determines a target picture from alternative pictures with the target emotion category information, and stores the information of the target picture in a temporary storage area corresponding to the session;
and accessing a temporary storage area corresponding to the session, and adjusting the head portrait of the first user to the target picture.
And an electronic device comprising:
one or more processors; and
memory associated with the one or more processors, the memory for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
obtaining communication content information input by a first user in an instant communication session;
determining target emotion category information of the first user according to the communication content information;
determining a target picture corresponding to the target emotion category information, wherein the emotion category information of the target picture corresponds to the target emotion category;
and adjusting the head portrait of the first user into the target picture.
Fig. 8 illustrates an architecture of a computer system that may include, in particular, a processor 710, a video display adapter 711, a disk drive 712, an input/output interface 713, a network interface 714, and a memory 720. The processor 710, the video display adapter 711, the disk drive 712, the input/output interface 713, the network interface 714, and the memory 720 may be communicatively coupled via a communication bus 730.
The processor 710 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided by the present Application.
The Memory 720 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static Memory device, a dynamic Memory device, or the like. The memory 720 may store an operating system 721 for controlling the operation of the computer system 700, a Basic Input Output System (BIOS) for controlling low-level operations of the computer system 700. In addition, a web browser 723, a data store management system 724, a user avatar adjustment system 725, and the like may also be stored. The user avatar adjustment system 725 may be an instant messaging server for implementing the operations of the foregoing steps in this embodiment. In summary, when the technical solution provided by the present application is implemented by software or firmware, the relevant program codes are stored in the memory 720 and called for execution by the processor 710.
The input/output interface 713 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component within the device (not shown) or may be external to the device to provide corresponding functionality. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The network interface 714 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, bluetooth and the like).
Bus 730 includes a path that transfers information between the various components of the device, such as processor 710, video display adapter 711, disk drive 712, input/output interface 713, network interface 714, and memory 720.
In addition, the computer system 700 may also obtain information of specific extraction conditions from the virtual resource object extraction condition information database 741, so as to perform condition judgment, and the like.
It should be noted that although the above-mentioned devices only show the processor 710, the video display adapter 711, the disk drive 712, the input/output interface 713, the network interface 714, the memory 720, the bus 730, etc., in a specific implementation, the devices may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above-described apparatus may also include only the components necessary to implement the embodiments of the present application, and need not include all of the components shown in the figures.
Where fig. 9 exemplarily illustrates the architecture of an electronic device, the device 800 may be, for example, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, an aircraft, etc.
Referring to fig. 9, device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods provided by the disclosed solution. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 806 provides power to the various components of the device 800. Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 can detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 can also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communications component 816 is configured to facilitate communications between device 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the methods provided by the present disclosure is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method, the device and the electronic device for adjusting the user avatar provided by the present application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation and the application range may be changed. In view of the above, the description should not be taken as limiting the application.

Claims (21)

1. A method for adjusting a user avatar, comprising:
the instant messaging server side obtains a plurality of alternative pictures which can be used as the first user head portrait for displaying and emotion category information of each alternative picture;
creating at least one temporary storage area respectively corresponding to at least one session in the process of instant messaging between the first user and at least one second user through the at least one session;
acquiring communication content information input by the first user in one target session;
determining target emotion category information of the first user according to the communication content information, and determining a target picture from alternative pictures with the target emotion category information;
and storing the information of the target picture in a target temporary storage area corresponding to the target session, so that an instant messaging client associated with a participant user of the target session can adjust the head portrait of the first user in the target session into the target picture by accessing the target temporary storage area, and for other users who do not participate in the target session, the head portrait of the first user can be displayed through the target picture stored in the temporary storage area corresponding to other sessions participated by the other users or a default head portrait picture related to the first user in a configuration center.
2. The method of claim 1, further comprising:
and sending a refreshing instruction to an instant messaging client associated with the participant user of the target session so that the instant messaging client can obtain the information of the target picture from a target temporary storage area corresponding to the target session and adjust the head portrait of the first user into the target picture.
3. The method of claim 1, further comprising:
after the head portrait of the first user in the target session is adjusted to be the target picture, communication content information newly input by the first user in the target session is obtained;
and if the emotion category information of the first user is determined to be changed according to the newly input communication content information, updating the head portrait of the first user in the target session according to the changed emotion category information.
4. The method of claim 1,
after obtaining the plurality of candidate pictures and the emotion category information of each candidate picture, the method further comprises the following steps:
if the at least two alternative pictures have the same first emotion category information, the at least two alternative pictures are sent to an instant messaging client associated with the first user, and the first user determines the display priority information of the at least two alternative pictures;
receiving display priority information of the at least two alternative pictures submitted by an instant messaging client associated with the first user, so that when the first emotion category information is determined to be the target emotion category information, the target picture is determined from the at least two alternative pictures according to the display priority information.
5. The method according to any one of claims 1 to 4,
the obtaining of the multiple candidate pictures that can be displayed as the first user avatar includes:
and receiving the plurality of alternative pictures submitted by the instant messaging client associated with the first user.
6. The method according to any one of claims 1 to 4,
if the emoticon is included in the communication content information,
the determining the target emotion category information of the first user according to the communication content information comprises the following steps:
obtaining the emotion category information represented by each emoticon, counting the number of the emoticons corresponding to different emotion category information, and determining the emotion category information with the largest number of corresponding emoticons as target emotion category information.
7. The method according to any one of claims 1 to 4,
the storing the information of the target picture to a temporary storage area corresponding to the target session includes:
and storing the storage address information of the target picture in a temporary storage area corresponding to the target session so that the instant messaging client can obtain the target picture according to the storage address for displaying.
8. A method for adjusting a user avatar, comprising:
after receiving an operation instruction for creating at least one session between a first user and at least one second user, an instant messaging client associated with the first user submits the operation instruction to an instant messaging service end so that the instant messaging service end creates at least one temporary storage area for the at least one session;
submitting communication content information input by the first user in a target session process to the instant communication server, so that the instant communication server determines target emotion category information of the first user according to the obtained communication content information, determines a target picture from alternative pictures with the target emotion category information, and stores the information of the target picture in a target temporary storage area corresponding to the target session;
accessing a target temporary storage area corresponding to the target session, and adjusting the head portrait of the first user in the target session into the target picture; the instant messaging client associated with the participant user of the target session adjusts the head portrait of the first user in the target session into the target picture by accessing the target temporary storage area; and for other users who do not participate in the target conversation, displaying the head portrait of the first user through the target picture stored in the temporary storage area corresponding to other conversations participated in by the other users or the default head portrait picture related to the first user in the configuration center.
9. The method of claim 8,
the accessing a target temporary storage area corresponding to the target session and adjusting the avatar of the first user in the target session to the target picture includes:
and after a refreshing instruction sent by the instant messaging server is received, accessing a target temporary storage area corresponding to the target session to obtain the information of the target picture, and adjusting the head portrait of the first user in the target session to the target picture.
10. The method of claim 8 or 9, further comprising:
providing a first operation option for submitting a plurality of alternative pictures which can be displayed as the first user icon;
and after receiving the multiple candidate pictures through the first operation option, submitting the multiple candidate pictures to the instant messaging service end so that the instant messaging service end can determine the target picture from the multiple candidate pictures according to the target emotion category information.
11. The method of claim 8 or 9, further comprising:
after a plurality of alternative pictures are received through the first operation option, providing a second operation option for submitting emotion category information of each alternative picture;
and after receiving the emotion category information of each alternative picture through the second operation option, submitting the emotion category information to the instant messaging server.
12. The method according to claim 8 or 9,
if the at least two alternative pictures have the same first emotion category information, the method further comprises the following steps:
after receiving the at least two alternative pictures returned by the instant messaging server, providing a third operation option for determining the display priority information of the at least two alternative pictures;
and after receiving the display priority information of the at least two alternative pictures through the third operation option, submitting the display priority information to the instant messaging service end so that when the instant messaging service end determines the first emotion category information as the target emotion category information, the target picture is determined from the at least two alternative pictures according to the display priority information.
13. A method for adjusting a user avatar, comprising:
in the process of instant messaging between a first user and at least one second user through at least one session, obtaining communication content information input by the first user in one target session; wherein, the at least one session respectively corresponds to at least one temporary storage area;
determining target emotion category information of the first user according to the communication content information;
determining a target picture corresponding to the target emotion category information, wherein the emotion category information of the target picture corresponds to the target emotion category;
adjusting the avatar of the first user in the target session to the target picture, and storing the information of the target picture in a target temporary storage area corresponding to the target session, so that an instant messaging client associated with a participant user of the target session can adjust the avatar of the first user in the target session to the target picture by accessing the target temporary storage area; and for other users who do not participate in the target session, displaying the head portrait of the first user through the target pictures stored in the temporary storage areas corresponding to other sessions participated by the other users or the default head portrait picture of the first user in the configuration center.
14. The method of claim 13, further comprising:
providing a plurality of alternative pictures capable of being used as the head portraits of the first user, wherein the alternative pictures are marked with emotion category information;
determining a target picture corresponding to the target emotion category information, including:
and determining a candidate picture with emotion category information corresponding to the target emotion category as a target picture from the plurality of candidate pictures.
15. The method of claim 13, further comprising:
creating a temporary storage area for the target session;
and storing the information of the target picture in a temporary storage area corresponding to the target session, so that an instant messaging client associated with a participant user of the target session can adjust the head portrait of the first user in the target session into the target picture by accessing the temporary storage area.
16. A user head portrait adjusting device is applied to an instant messaging server, and comprises:
the alternative picture obtaining unit is used for obtaining a plurality of alternative pictures which can be displayed as the first user head portrait;
the emotion category information obtaining unit is used for obtaining emotion category information of each alternative picture;
a temporary storage area creating unit, configured to create at least one temporary storage area corresponding to at least one session during an instant messaging process between the first user and at least one second user through the at least one session;
a communication content information obtaining unit, configured to obtain communication content information input by the first user in one of the target sessions;
the target emotion category information determining unit is used for determining target emotion category information of the first user according to the communication content information;
the target picture determining unit is used for determining a target picture from the alternative pictures with the target emotion category information;
and the target picture information storage unit is used for storing the information of the target picture in a target temporary storage area corresponding to the target session, so that an instant messaging client associated with a participant user of the target session can adjust the avatar of the first user in the target session into the target picture by accessing the target temporary storage area, and for other users who do not participate in the target session, the avatar of the first user can be displayed through the target picture stored in the temporary storage area corresponding to other sessions participated by the other users or a default avatar picture related to the first user in a configuration center.
17. A user avatar adjusting apparatus applied to an instant messaging client associated with a first user, comprising:
an operation instruction receiving unit, configured to submit an operation instruction for creating at least one session between the first user and at least one second user to an instant messaging service end after receiving the operation instruction, so that the instant messaging service end creates at least one temporary storage area for the at least one session;
a communication content information submitting unit, configured to submit communication content information input by the first user in a target session process to the instant messaging service end, so that the instant messaging service end determines target emotion category information of the first user according to the obtained communication content information, determines a target picture from alternative pictures having the target emotion category information, and stores information of the target picture in a target temporary storage area corresponding to the target session;
and the head portrait modifying unit is used for accessing a target temporary storage area corresponding to the target session and adjusting the head portrait of the first user in the target session into the target picture.
18. A user head portrait adjusting device is characterized in that the user head portrait adjusting device is applied to an instant messaging service end and comprises:
the communication content information obtaining unit is used for obtaining communication content information input by a first user in one target session in the process of carrying out instant communication between the first user and at least one second user through at least one session; wherein, the at least one session respectively corresponds to at least one temporary storage area;
the target emotion category information determining unit is used for determining target emotion category information of the first user according to the communication content information;
a target picture determining unit, configured to determine a target picture corresponding to the target emotion category information, where the emotion category information of the target picture corresponds to the target emotion category;
the head portrait adjusting unit is used for adjusting the head portrait of the first user in the target session into the target picture, and storing the information of the target picture into a target temporary storage area corresponding to the target session, so that an instant messaging client associated with a participant user of the target session can adjust the head portrait of the first user in the target session into the target picture by accessing the target temporary storage area; and for other users who do not participate in the target conversation, displaying the head portrait of the first user through the target picture stored in the temporary storage area corresponding to other conversations participated in by the other users or the default head portrait picture related to the first user in the configuration center.
19. An electronic device, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
obtaining a plurality of alternative pictures which can be displayed as the first user head portrait and emotion category information of each alternative picture;
creating at least one temporary storage area respectively corresponding to at least one session in the process of instant messaging between the first user and at least one second user through the at least one session;
obtaining communication content information input by the first user in one target session;
determining target emotion category information of the first user according to the communication content information, and determining a target picture from alternative pictures with the target emotion category information;
and storing the information of the target picture in a target temporary storage area corresponding to the target session, so that an instant messaging client associated with a participant user of the target session can adjust the head portrait of the first user in the target session into the target picture by accessing the target temporary storage area, and for other users who do not participate in the target session, the head portrait of the first user can be displayed through the target picture stored in the temporary storage area corresponding to other sessions participated by the other users or a default head portrait picture related to the first user in a configuration center.
20. An electronic device, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
after receiving an operation instruction for creating at least one session between a first user and at least one second user, submitting the operation instruction to an instant messaging server so that the instant messaging server creates at least one temporary storage area for the at least one session;
submitting communication content information input by the first user in a target session process to the instant communication server, so that the instant communication server determines target emotion category information of the first user according to the obtained communication content information, determines a target picture from alternative pictures with the target emotion category information, and stores the information of the target picture in a target temporary storage area corresponding to the target session;
accessing a target temporary storage area corresponding to the target session, and adjusting the head portrait of the first user in the target session into the target picture; the instant messaging client associated with the participant user of the target session adjusts the head portrait of the first user in the target session into the target picture by accessing the target temporary storage area; and for other users who do not participate in the target conversation, displaying the head portrait of the first user through the target picture stored in the temporary storage area corresponding to other conversations participated in by the other users or the default head portrait picture related to the first user in the configuration center.
21. An electronic device, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
the method comprises the steps that in the process that a first user and at least one second user carry out instant messaging through at least one session, communication content information input by the first user in one target session is obtained; wherein, the at least one session respectively corresponds to at least one temporary storage area;
determining target emotion category information of the first user according to the communication content information;
determining a target picture corresponding to the target emotion category information, wherein the emotion category information of the target picture corresponds to the target emotion category;
adjusting the head portrait of the first user in the target session to the target picture, and storing the information of the target picture in a target temporary storage area corresponding to the target session, so that an instant messaging client associated with a participant user of the target session can adjust the head portrait of the first user in the target session to the target picture by accessing the target temporary storage area; and for other users who do not participate in the target session, displaying the head portrait of the first user through the target pictures stored in the temporary storage areas corresponding to other sessions participated by the other users or the default head portrait picture of the first user in the configuration center.
CN201910328184.7A 2019-04-23 2019-04-23 User head portrait adjusting method and device and electronic equipment Active CN111835617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910328184.7A CN111835617B (en) 2019-04-23 2019-04-23 User head portrait adjusting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910328184.7A CN111835617B (en) 2019-04-23 2019-04-23 User head portrait adjusting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111835617A CN111835617A (en) 2020-10-27
CN111835617B true CN111835617B (en) 2022-12-27

Family

ID=72912468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910328184.7A Active CN111835617B (en) 2019-04-23 2019-04-23 User head portrait adjusting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111835617B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910761B (en) * 2021-01-29 2023-04-21 北京百度网讯科技有限公司 Instant messaging method, device, equipment, storage medium and program product
CN113946403B (en) * 2021-11-16 2023-08-22 网易(杭州)网络有限公司 Data display method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9684430B1 (en) * 2016-07-27 2017-06-20 Strip Messenger Linguistic and icon based message conversion for virtual environments and objects

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050223328A1 (en) * 2004-01-30 2005-10-06 Ashish Ashtekar Method and apparatus for providing dynamic moods for avatars
US20100257457A1 (en) * 2009-04-07 2010-10-07 De Goes John A Real-time content collaboration
US8694899B2 (en) * 2010-06-01 2014-04-08 Apple Inc. Avatars reflecting user states
US10319249B2 (en) * 2012-11-21 2019-06-11 Laureate Education, Inc. Facial expression recognition in educational learning systems
US20140157153A1 (en) * 2012-12-05 2014-06-05 Jenny Yuen Select User Avatar on Detected Emotion
CN106687183A (en) * 2014-07-03 2017-05-17 克鲁斯技术有限责任公司 Electronically mediated reaction game
US20160330258A1 (en) * 2015-05-08 2016-11-10 Charanjit Singh Sandhu Broadcasts among electronic devices of registered users via internet protocol
US10386996B2 (en) * 2015-06-11 2019-08-20 Microsoft Technology Licensing, Llc Communicating emotional information via avatar animation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9684430B1 (en) * 2016-07-27 2017-06-20 Strip Messenger Linguistic and icon based message conversion for virtual environments and objects

Also Published As

Publication number Publication date
CN111835617A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN106791893B (en) Video live broadcasting method and device
CN111970533B (en) Interaction method and device for live broadcast room and electronic equipment
US9602516B2 (en) Method, server and terminal device for establishing communication session
CN107908351B (en) Application interface display method and device and storage medium
CN112039929B (en) File editing method and device and electronic equipment
US10334282B2 (en) Methods and devices for live broadcasting based on live broadcasting application
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
CN109660873B (en) Video-based interaction method, interaction device and computer-readable storage medium
CN110769189B (en) Video conference switching method and device and readable storage medium
CN109451341B (en) Video playing method, video playing device, electronic equipment and storage medium
US20220150598A1 (en) Method for message interaction, and electronic device
CN110674343A (en) Account information processing method and device, server and terminal
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN111835617B (en) User head portrait adjusting method and device and electronic equipment
CN113259226A (en) Information synchronization method and device, electronic equipment and storage medium
CN112631435A (en) Input method, device, equipment and storage medium
CN107247794B (en) Topic guiding method in live broadcast, live broadcast device and terminal equipment
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN110162366B (en) Information display method and device, electronic equipment and storage medium
CN112685599A (en) Video recommendation method and device
CN112256380A (en) Interactive page display method and device, electronic equipment and storage medium
CN105656639B (en) Group message display method and device
CN111211963A (en) Chat group joining method and device, electronic equipment and storage medium
CN107330016B (en) Method, apparatus and storage medium for setting user information
CN112148183B (en) Processing method, device and medium of associated object

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant