METHOD FOR PROVIDING CONTACT AVATAR, PLATFORM FOR MANAGING CONTACT AVATAR, AND USER TERMINAL

Abstract
Example embodiments of the present invention provide for a contact avatar selection mechanism that allows a user terminal to receive contact avatars thru a selection process of a contact avatar management system or platform. The system or platform can receive from a user terminal a request message that includes text attribute information of a contact for obtaining a contact avatar. Based on the text attribute information received, a contact avatar picture tag is extracted and used to determine an appropriate contact avatar picture. The selected or determined contact avatar picture is then sent to the user terminal for storage with the contact information and/or display.
Description
FIELD OF THE INVENTION

The present invention relates to the field of communications technologies, and in particular, to a method for providing a contact avatar, a platform for managing a contact avatar, and a user terminal.


BACKGROUND OF THE INVENTION

With the popularization of smart phones, more and more smart phones support a display of a contact avatar for convenience of displaying an avatar to identify a user when a contact makes a call. User experience of this picture display manner or a picture plus text display manner is far better than user experience of a conventional name text display, for convenience of a user to identify a caller.


Usually, the user needs to preset a contact avatar picture, and obtains the avatar picture of the contact by using a locally stored picture or by taking a photo. In an application, the avatar picture needs to be stored in advance, or the avatar picture is able to be stored only when the contact is onsite for photo-taking. Actually, in many circumstances, such a scenario is non-universal, so that the function of displaying a contact avatar of a mobile phone becomes a decoration with low usage frequency and bad user experience.


SUMMARY OF THE INVENTION

Accordingly, what is needed is an automated way to manage contact avatars for a user terminal's phonebook.


Thus, several example embodiments herein allow for managing the construction of a contact avatar based on text attribute information for a contact. In these embodiments, a contact avatar platform receives, from a user terminal, a request message that includes text attribute information of the contact for obtaining a contact avatar. Based on the text attribute information, the platform extracts a contact avatar picture tag from the text attribute information, determines a contact avatar picture according to the extracted tag and then sends the contact avatar picture to the user terminal. In related embodiments, after receiving the contact avatar picture which has a tag attribute from the platform, the user terminal stores the contact avatar picture to the memory where the contact avatar picture has a tag attribute. Thereafter, and in accordance with the text attribute information of the contact, the user terminal may extract a tag, and matches the tag with a tag of the avatar picture to obtain a recommended avatar picture for a contact.


Another example embodiment allows for constructing a contact avatar at a platform for managing a contact avatar based on the non-existence of contact avatar picture bound to a contact. In this embodiment, the platform receives from a user terminal a request message for obtaining a contact avatar, which includes text attribute information of the contact and contact information of the contact. According to the contact information, the platform judges whether an avatar picture bound to the contact exists. If there is no avatar picture bounded to the contact, the platform extracts a contact avatar picture tag according to the text attribute information in the request message. Based on the extracted tag, the platform then determines a contact avatar picture, and sends the contact avatar picture to the user terminal.


One example embodiment allows a user terminal to obtain a contact avatar. The user terminal sends a request message that includes text attribute information of the contact for obtaining a contact avatar to a platform for managing a contact avatar. The user terminal then receives a contact avatar picture that is determined according to tag extracted from the text attribute information by the platform. After receiving the contact avatar picture, the user terminal utilize the contact avatar picture to update a local contact avatar.





BRIEF DESCRIPTION OF THE DRAWINGS

To illustrate the technical solutions according to the embodiments of the present invention or in the prior art more clearly, the accompanying drawings for describing the embodiments or the prior art are given below. Apparently, the accompanying drawings in the following description are only some embodiments of the present invention, and persons of ordinary skill in the art can derive other drawings from the accompanying drawings without creative efforts.



FIG. 1 is a flowchart of a method for providing a contact avatar according to an embodiment of the present invention;



FIG. 2 is a signaling diagram of a method for providing a contact avatar according to an embodiment of the present invention;



FIG. 3 is a flowchart of a method for providing a contact avatar according to an embodiment of the present invention;



FIG. 4 is a structural diagram of a system for providing a contact avatar according to an embodiment of the present invention;



FIG. 5 is a schematic structural diagram of a platform for managing a contact avatar according to an embodiment of the present invention;



FIG. 6 is a schematic structural diagram of a user terminal according to an embodiment of the present invention; and



FIG. 7 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.





DETAILED DESCRIPTION OF THE EMBODIMENTS

The technical solutions are introduced in the following with reference to detailed embodiments. A platform for managing a contact avatar may be set at the network side. As a logical device at the network side, the platform for managing a contact avatar may exist in dependence on another entity device at the network side or exist as an independent network device. The platform for managing a contact avatar may also be multiple devices in cloud storage, a storage server, or a data center of pictures. For example, the platform for managing a contact avatar is integrated on an application server AS on the network. The platform for managing a contact avatar is configured to store a contact avatar picture, or access, according to a user request, a server that stores the contact avatar picture and provide a user with the contact avatar picture, where the contact avatar picture has a tag attribute.


As shown in FIG. 1, a method for providing a contact avatar according to an embodiment of the present invention includes the following steps:


Step 102: A platform for managing a contact avatar receives a request message for obtaining a contact avatar, where the request message is sent by a user terminal and includes text attribute information of the contact. The request message may be a request message based on the Internet Protocol IP protocol or a request message based on the Session Initiation Protocol SIP sent by the user terminal in online state through a network server to the platform for managing a contact avatar. The text attribute information of the contact included in the request message is one or more pieces of information such as a name, a company, an address and an occupation of the contact. The user terminal mentioned in this embodiment may be a smart phone, for example, a mobile phone with an Android system, an iOS system or a Windows system. A user may request downloading a contact avatar from the network side through an application in the smart phone, where the application may be downloaded and installed through an application store App Store. The user terminal may also be an electronic device such as a tablet computer (for example, an iPad2), an e-book (for example, a Kindle3), a personal computer PC, and a notebook computer NB. The user terminal may access the platform for managing a contact avatar at the network side through a manner such as a wireless local area network WIFI, a third-generation communications technology 3G, long term evolution LTE, an enhanced data rate for GSM evolution EDGE, and a general packet radio service GPRS, and request downloading a contact avatar picture.


Step 104: The platform for managing a contact avatar extracts a contact avatar picture tag according to the text attribute information in the request message. The platform for managing a contact avatar uses a character included in the text attribute information as a tag for picture retrieval. The text attribute information includes one or more pieces of information such as a name, an occupation, a company and a terminal type of the contact. If the text attribute information includes a name, the platform for managing a contact avatar uses a surname or a first name of the contact as the contact avatar picture tag. The platform for managing a contact avatar matches one or more pictures according to the surname of the contact. The platform for managing a contact avatar may store the contact avatar picture in advance, or access a server that stores a picture, where the picture stored by the picture server have a tag attribute.


The platform for managing a contact avatar may send a contact avatar picture with a large gender probability to the user terminal, or send avatars of both genders for a user to select, where the avatar corresponding to a large gender probability is displayed preferentially, and is used as a default selection. By providing recommended gender information for the user, a personalized requirement for a service is better fulfilled, so that service popularity is greatly improved.


If the text attribute information includes occupation information about the contact, the occupation information may also be used as the contact avatar picture tag. The platform for managing a contact avatar determines a contact avatar picture according to the tag obtained through matching. For example, the occupation information of Xiaoli is a nurse. In this case, “nurse” is used as the picture tag, and a recommended picture is obtained through matching and is recommended to the user.


If the text attribute information includes company information about the contact, the company information may also be used as the contact avatar picture tag. The platform for managing a contact avatar determines according to the tag obtained through matching that, the contact avatar picture is a company trademark picture obtained through matching by using the company name as the picture tag. For example, the company information of Xiaowang is HUAWEI. The platform for managing a contact avatar may use “HUAWEI” as the picture tag, and obtains HUAWEI's trademark LOGO picture through matching and use the HUAWEI's trademark LOGO picture as the contact avatar picture of Xiaowang.


Step 106: The platform for managing a contact avatar determines a contact avatar picture according to the extracted tag, and sends the contact avatar picture to the user terminal. After obtaining a picture through matching, the platform for managing a contact avatar sends one or more pictures obtained through matching to the user terminal, or sends avatar pictures of multiple contacts in batch according to a user request. These avatar pictures are displayed in group according to contact types, where each contact has default avatar picture recommendation. The platform for managing a contact avatar may also specify a file format of the picture according to the user request, such as PNG, JPEG, BMP and GIF. The request message for obtaining the contact avatar received by the platform for managing a contact avatar includes an avatar picture format parameter. The platform for managing a contact avatar sends a contact avatar picture of a corresponding format to the user terminal. For example, for a contact Piao Ning, “Piao” may be used to match a celebrity with the surname Piao, for example, a picture of Piao Zhixing is used as the contact avatar; for a contact Sun Qian, “Sun” may be used to match an avatar picture, and a cartoon picture of Sun Wukong is used as the contact avatar picture. The platform for managing a contact avatar may also calculate a gender probability according to the first name “Ning”, selects a gender with a large probability and sends the gender to the user terminal.


Multiple algorithms may be adopted to calculate the gender probability. In this embodiment, a Bayesian algorithm is taken as an example for illustration. A major premise of assumption is: First names of males and females are significantly different. A Bayesian statistical method is adopted as follows:


1. Select training data: XX males and XX females.


2. Calculate a prior probability: P(m) indicates a male probability of a person in a training set, and P(f) indicates a female probability of a person in the training set, where


P(m)=|male|/n, |male| is the number of males in the training set, and n is the total number of persons in the training set; and


P(f)=|female|/n, |female| is the number of females in the training set, and n is the total number of persons in the training set.


3. Calculate a conditional probability: P(w1w2|m) indicates a male probability of a name with a first name of w1w2, where w1 and w2 each represent a Chinese character or a letter in the name, P(w1w2|f) indicates a female probability of the name with the first name of w1w2, P(w2|m) indicates a male probability of a name with a first name of w2, and P(w2|f) indicates a female probability of the name with the first name of w2, where


P(w1w2|m)=(|{w1w2 & male}|+1)/(|male|+M), |{w1w2 & male}| is the number of males in the training set whose first names are w1w2, and M is the number of males with different names in the training set;


P(w1w2|f)=(|{w1w2 & female}|+1)/(|female|+F), |{w1w2 & female}| is the number of females in the training set whose first names are w1w2, and F is the number of females with different names in the training set;


P(w2|m)=(|{w2 & male}|+1)/(|male|+M̂′), |{w2 & male}| is the number of males in the training set whose first names are w2, and M̂′ is the number of males with different names in the training set; and


P(w2|f)=(|{w2 & female}|+1)/(|female|+F̂′), |{w2 & female}| is the number of females in the training set whose first names are w2, and F̂′ is the number of females with different names in the training set.


4. For an unknown name, use a Bayesian formula to determine the gender:






gender
=




arg





max


gender


{

m
,
f

}





P


(

gender
|
name

)



=




arg





max


gender


{

m
,
f

}







P


(

name
|
gender

)




P


(
gender
)




P


(
name
)




=



arg





max


gender


{

m
,
f

}





P


(

name
|
gender

)




P


(
gender
)





arg











max


gender


{

m
,
f

}





P


(



w
1



w
2


|
gender

)




P


(
gender
)









where,







arg





max


gender


{

m
,
f

}






indicates whether the gender (gender) is male (m) or female (f) when a value of a formula behind is maximized.


The platform for managing a contact avatar may also query whether the contact defines an avatar according to the contact information included in the request message, where the contact information includes an E-mail address, a mobile phone number, a service number, a domain name, and so on. The platform for managing a contact avatar receives in advance an avatar picture set by the contact, stores a mapping relationship between the avatar picture and the contact information, and queries the stored mapping relationship according to the contact information when the received request message includes the contact information. The avatar picture corresponding to the contact information takes priority over the contact avatar picture determined according to the extracted tag by the platform for managing a contact avatar. In this way, a contact avatar picture set by a user is better and preferentially applied, thereby achieving precise location of an avatar picture and good user experience.


A platform for managing a contact avatar receives a request message for obtaining a contact avatar, where the request message is sent by a user terminal and includes text attribute information of the contact, extracts a contact avatar picture tag according to the text attribute information, determines a contact avatar picture according to the extracted tag, and sends the contact avatar picture to the user terminal. A user may obtain an avatar picture related to a contact according to the text attribute information of the contact, so that the avatar of the contact is displayed in a contact directory. In this way, the application is more personalized with good user experience, which facilitates promotion of a network address book service. Besides, by matching a format of the picture that the user terminal requests downloading with a format supported by the terminal, and then providing the picture for the user, the user does not need to perform picture conversion, and a case of a file format that fails to be supported by the terminal is avoided.


As shown in FIG. 2, a method for providing a contact avatar according to an embodiment of the present invention includes:


Step 202: A platform for managing a contact avatar receives an avatar picture set by a contact. The platform for managing a contact avatar opens an interface for the contact and allows the contact to set a mapping relationship between contact information of the contact and an avatar picture, allows the contact to set a contact avatar picture by uploading a local picture or taking a photo online, and allows the contact to cut part of a large picture into a small picture to be used as an avatar picture.


Step 204: The platform for managing a contact avatar stores the mapping relationship between the contact information and the avatar picture. The platform for managing a contact avatar may also store the avatar picture set by the contact in a general picture file format, such as PNG, JPEG, BMP and GIF. The platform for managing a contact avatar stores these obtained avatar pictures set by contacts to a contact avatar database. In a setting process, the contact avatar database may also be queried according to contact information provided by a contact. if a contact avatar picture is set, the contact may be prompted and the set contact avatar picture is displayed to the contact who performs the setting. If multiple avatars are set by the contact, the contact is prompted to select one of the avatars as a default avatar picture. Persons of ordinary skills in the art may know by reading the present application that, the method may include step 202 and step 204 or may not include step 202 or step 204. The contact may preset the avatar picture or may not preset the avatar picture.


Step 206: The platform for managing a contact avatar receives a request message for obtaining a contact avatar, where the request message is sent by a user terminal and includes text attribute information of a contact and contact information of the contact. The text attribute information includes one or more pieces of information such as a name, an occupation, a company and an address of the contact. The contact information includes such as an E-mail address, a mobile phone number, a service number and a domain name of the contact. The platform for managing a contact avatar receives a request for access of the user terminal through a wireless access manner. The user terminal may log in to the platform for managing a contact avatar through a vehicle-mounted wireless system, a user may log in to the platform for managing a contact avatar through a vehicle-mounted wireless system connected to a mobile phone, or a vehicle-mounted terminal device accesses the platform for managing a contact avatar through a manner, such as 3G, WIFI and LTE, of a mobile phone. The user terminal device is not limited to a vehicle-mounted system, that is, the vehicle-mounted system is merely used as an example herein. The user terminal may also be a PC, an NB, a smart phone or another handheld electronic device. The platform for managing a contact avatar opens a login interface for the user terminal, and therefore a login user name and a login user password may be set. When a user terminal accesses the platform for managing a contact avatar, the user name and password are authenticated. The user name of a contact may be set to an E-mail address or a combination of a digit and a letter. The platform for managing a contact avatar may also be provided for an anonymous user to use. The user terminal may be an unregistered user, and a skip registration button on a touch screen of a smart phone may be directly clicked so that an interface for obtaining a contact avatar is entered.


Step 208: The platform for managing a contact avatar judges whether the contact requested by the user terminal has an avatar picture that is preset by the contact and is bound to the contact information of the contact; if the avatar picture bound to contact information of the contact exists, step 210 is performed; if no avatar picture bound to contact information of the contact exists, step 212 is performed.


The platform for managing a contact avatar accesses the stored contact avatar picture database, where the database stores the binding relationship between the contact information of the contact and the avatar picture, and performs searching according to the contact information. If a corresponding avatar picture is found, the avatar picture is returned; if no corresponding avatar picture is found, a return result is blank.


Step 210: The platform for managing a contact avatar preferentially provides the avatar picture bound to the contact information to the user terminal.


Step 212: The platform for managing a contact avatar extracts a contact avatar picture tag according to the text attribute information in the request message, and may also calculate a gender probability according to a name of the contact, where the Bayesian algorithm may be adopted to calculate the gender probability.


Step 214: The platform for managing a contact avatar sends a contact avatar picture obtained through matching to the user terminal.


Step 216: After calculating the gender probability, the platform for managing a contact avatar recommends a gender with a large gender probability to the user terminal. The calculation method is described in the foregoing and is not described in detail herein.


In this embodiment of the present invention, the avatar picture bound to the contact information is preferentially provided to the user terminal, so that location for a contact avatar picture by a user is more precise, which facilitates precise obtaining of an avatar picture. In addition, when no avatar picture is preset by the contact, a proper avatar picture may be found according to text attribute information of the contact, so that the service for obtaining an avatar picture is more personalized.



FIG. 3 illustrates a method for providing a contact avatar according to an embodiment of the present invention. In this embodiment, a user terminal is provided with functions of downloading and matching a picture tag; if a contact has an avatar picture that is bound to contact information, the bound avatar picture is provided; if a contact has no avatar picture that is bound to contact information, the user terminal performs matching with a contact avatar picture. The method includes the following steps:


Step 302: A user terminal sends a request message for obtaining a contact avatar to a platform for managing a contact avatar, where the request message includes contact information of the contact. The request message sent by a user to a platform for managing a contact avatar may not include the contact information.


Step 304: The platform for managing a contact avatar determines whether an avatar picture bound to the contact information exists according to the contact information. If the avatar picture bound to the contact information exists, step 306 is performed; if no avatar picture bound to the contact information exists, step 308 is performed.


Step 306: The platform for managing a contact avatar sends the avatar picture bound to the contact information to the user terminal.


Step 308: The platform for managing a contact avatar sends multiple contact avatar pictures to the user terminal. The platform for managing a contact avatar may extract multiple contact avatar pictures according to personalized information of the user, or randomly extract, for example, 30 to 50 avatar pictures and send the avatar pictures to the user terminal, where an avatar picture may include a tag or multiple tags. The personalized information of the user may be pre-stored in the platform for managing a contact avatar or a network storage device that the platform for managing a contact avatar may access, including information about preference, position and social interaction of the user, and so on. If the user terminal requests avatar pictures of multiple contacts, for a contact whose user contact information is bound, a bound avatar picture is sent, and for a contact without an avatar picture bound to contact information, multiple avatar pictures are sent. The user terminal may also display a status of a contact avatar, where the status includes a used identifier or an unused identifier, the used identifier indicates that the contact uses a public avatar picture service, and the unused identifier indicates that the contact does not use the public avatar picture service.


Step 310: The user terminal extracts a contact avatar picture tag according to text attribute information of the contact. The user may obtain the text attribute information of the contact and the contact information of the contact by shooting Quick Response Code information of a contact card using a camera on the user terminal, and a Quick Response Code resolution application of the user terminal resolves the shot Quick Response Code to obtain the text attribute information and the contact information.


Step 312: The user terminal determines a contact avatar picture according to the tag. When a result of matching performed by the user terminal shows that the tag extracted from the text attribute information and the tag of a picture are the same or semantically similar, the picture is recommended for use.


Step 314: The user terminal calculates a gender probability of the contact and displays a gender with a large probability.


In this embodiment of the present invention, the avatar picture of the contact is matched through the user terminal, which reduces a calculation requirement of a server, fully utilizes a processing capability of the terminal and reduces a network load.


As shown in FIG. 4, a system for providing a contact avatar picture according to an embodiment of the present invention includes: a user terminal 402 and a platform for managing a contact avatar 404. The user terminal 402 is configured to send a request message for obtaining a contact avatar to the platform for managing a contact avatar 404. The platform for managing a contact avatar 404 is configured to provide a contact avatar picture for the user terminal 402, where the contact avatar picture has a tag attribute.


As shown in FIG. 5, a platform for managing a contact avatar according to an embodiment of the present invention includes: a receiving unit 502, a tag extracting unit 504, an avatar selecting unit 516 and a sending unit 520.


The receiving unit 502 is configured to receive a request message for obtaining a contact avatar, where the request message is sent by a user terminal and includes text attribute information of the contact. The tag extracting unit 504 is configured to extract a contact avatar picture tag according to the text attribute information in the request message. The avatar selecting unit 516 is configured to determine a contact avatar picture according to the extracted tag. The sending unit 520 is configured to send the extracted contact avatar picture to the user terminal.


Optionally, the platform for managing a contact avatar may further optionally include: a Quick Response Code identification and processing unit 514 and an avatar storage unit 518. The Quick Response Code identification and processing unit 514 is configured to identify a Quick Response Code of the text attribute information to obtain literal text attribute information when the text attribute information is received in a Quick Response Code mode. The storage unit 518 is configured to store a contact avatar picture database and a tag corresponding to a contact avatar picture.


The tag extracting unit 504 may further include one or more of the following units: a surname extracting subunit 506, a gender extracting subunit 508, an occupation extracting subunit 510 and a company extracting subunit 512. The surname extracting subunit 506 is configured to extract, when the text attribute information includes a surname of the contact, the contact avatar picture tag according to the text attribute information in the request message, including: using the surname of the contact as the contact avatar picture tag to match a contact avatar picture. The gender extracting subunit 508 is configured to calculate a gender probability according to a first name of the contact, select a gender with a large probability and recommend the gender to the user terminal, when the text attribute information includes the first name of the contact. The occupation extracting subunit 510 is configured to use an occupation as a tag and use an occupation recommendation picture as the contact avatar picture, when the text attribute information includes the occupation of the contact. The company extracting subunit 512 is configured to use a company as a tag and use a company trademark picture as the contact avatar picture, when the text attribute information includes information about the company of the contact.


The platform for managing a contact avatar may further include a presetting judgment unit 522, configured to judge, when the request message includes the contact information, whether the contact presets an avatar picture corresponding to the contact information; if the contact presets an avatar picture corresponding to the contact information, the avatar selecting unit 516 is further configured to select the avatar picture corresponding to the contact information of the contact.


As shown in FIG. 6, a user terminal according to an embodiment of the present invention includes: a sending unit 602, a receiving unit 604, a Quick Response Code processing unit 606, a storage unit 608, an update unit 610, a status processing unit 612 and an avatar selecting unit 614.


The sending unit 602 is configured to send a request message for obtaining a contact avatar to a platform for managing a contact avatar, where the request message optionally includes contact information of the contact and text attribute information of the contact, or may not include any parameter. The receiving unit 604 is configured to receive a contact avatar picture returned by the platform for managing a contact avatar, where the avatar picture may be obtained by the platform for managing a contact avatar by queried a related avatar picture according to the contact information of the contact, or the picture may be obtained by extracting a picture tag according to the text attribute information of the contact and performing matching. The receiving unit 604 may also receive multiple avatar pictures returned by the platform for managing a contact avatar, where no association is established between the multiple avatar pictures and the contact information of the contact or the text attribute information of the contact. The Quick Response Code processing unit 606 is configured to identify a Quick Response Code to obtain literal text attribute information, when the contact information of the contact and the text attribute information of the contact are received in a Quick Response Code mode.


The storage unit 608 is configured to store the contact avatar picture and the avatar picture tag received by the receiving unit 604. The update unit 610 is configured to utilize the avatar picture received by the receiving unit 604 to update a local contact avatar. The status processing unit 612 is configured to display a status of the contact avatar, where the status includes a used identifier or an unused identifier, the used identifier indicates that the contact uses a public avatar picture service, and the unused identifier indicates that the contact does not use the public avatar picture service. The avatar selecting unit 614 is configured to determine a contact avatar picture according to the extracted tag. The avatar selecting unit 614 extracts a tag according to the text attribute information and obtains a received avatar picture through matching according to the tag, when the platform for managing a contact avatar does not provide an avatar picture related to the contact.


As shown in FIG. 7, a user terminal according to an embodiment of the present invention includes: a sending unit 702, a receiving unit 704, an avatar selecting unit 706, a gender recommendation unit 708, a memory 710 and a display 712.


The sending unit 702 is configured to send a request message for obtaining a contact avatar to a platform for managing a contact avatar. The receiving unit 704 is configured to receive a contact avatar picture returned by the platform for managing a contact avatar and store the contact avatar picture to the memory 710, where the contact avatar picture has a tag attribute. The avatar selecting unit 706 is configured to extract a tag according to text attribute information of the contact, and match the tag with a tag of an avatar picture to obtain a recommended avatar picture.


The gender recommendation unit 708 is an optional unit, configured to calculate a gender probability of the contact according to a name of the contact, and use the display to display a gender with a large gender probability.


Multiple algorithms may be adopted to calculate the gender probability. In this embodiment, a Bayesian algorithm is taken as an example for illustration. A major premise of assumption is: First names of males and females are significantly different. Adopt a Bayesian statistical method as follows:


1. Select training data: XX males and XX females.


2. Calculate a prior probability: P(m) indicates a male probability of a person in a training set, and P(f) indicates a female probability of a person in the training set, where


P(m)=|male|/n, |male| is the number of males in the training set, and n is the total number of persons in the training set; and


P(f)=|female|/n, |female| is the number of females in the training set, and n is the total number of persons in the training set.


3. Calculate a conditional probability: P(w1w2|m) indicates a male probability of a name with a first name of w1w2, P(w1w2|f) indicates a female probability of the name with the first name of w1w2, P(w2|m) indicates a male probability of a name with a first name of w2, and P(w2|f) indicates a female probability of the name with the first name of w2, where


P(w1w2|m)=(|{w1w2 & male}|+1)/(|male|+M), |{w1w2 & male}| is the number of males in the training set whose first names are w1w2, and M is the number of males with different names in the training set;


P(w1w2|f)=(|1{w1w2 & female}|+1)/(|female|+F), |{w1w2 & female}| is the number of females in the training set whose first names are w1w2, and F is the number of females with different names in the training set;


P(w2|m)=(|{w2 & male}|+1)/(|male|+M̂′), |{w2 & male}| is the number of males in the training set whose first names are w2, and M̂′ is the number of males with different names in the training set; and


P(w2|f)=(|{w2 & female}|+1)/(|female|+F̂′), |{w2 & female}| is the number of females in the training set whose first names are w2, and F̂′ is the number of females with different names in the training set.


4. For an unknown name, use a Bayesian formula to determine the gender:






gender
=




arg





max


gender


{

m
,
f

}





P


(

gender
|
name

)



=




arg





max


gender


{

m
,
f

}







P


(

name
|
gender

)




P


(
gender
)




P


(
name
)




=



arg





max


gender


{

m
,
f

}





P


(

name
|
gender

)




P


(
gender
)





arg











max


gender


{

m
,
f

}





P


(



w
1



w
2


|
gender

)




P


(
gender
)









where,







arg





max


gender


{

m
,
f

}






indicates whether the gender (gender) is male (m) or female (f) when a value of a formula behind is maximized.


The memory 710 is configured to store the contact avatar picture and tag information, and also store information such as the text attribute information of the contact and contact information of the contact. The memory may be a memory integrated with the user terminal, an external storage card, and so on.


The display 712 is configured to display the contact avatar picture, the text attribute information of the contact, the contact information of the contact, and so on. The display 712 may be a liquid crystal display, a touch screen, and so on.


In this embodiment of the present invention, the contact avatar picture is matched through a user terminal, which reduces a calculation requirement of a server, fully utilizes a processing capability of the terminal and reduces a network load.


Persons of ordinary skill in the art may understand that all or part of the steps of the methods according to the embodiments of the present invention may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. The storage medium may be, for example, a ROM, a RAM, and an optical disk.


In conclusion, it should be noted that the foregoing is merely exemplary embodiments of the present invention, but not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the present invention should fall within the protection scope of the present invention.

Claims
  • 1. In a contact avatar management server, a method for providing a contact avatar, comprising: receiving, from a user terminal, a request message for obtaining a contact avatar, which comprises text attribute information of a contact;extracting a contact avatar picture tag from the text attribute information in the request message;determining a contact avatar picture according to the extracted tag; andsending the contact avatar picture to the user terminal.
  • 2. The method according to claim 1, wherein the text attribute information comprises a name of the contact and the extracting a contact avatar picture tag from the text attribute information in the request message comprises: using a surname or a first name of the contact as the contact avatar picture tag.
  • 3. The method according to claim 2, further comprising: calculating a gender probability according to the first name of the contact;based on said gender probability calculation, selecting a gender with a probability higher than a predetermined threshold; andsending the selected gender to the user terminal.
  • 4. The method according to claim 3, wherein the contact avatar picture comprises a gender attribute, and the method further comprises: sending a contact avatar picture that corresponds to the selected gender to the user terminal for display either alone or with preferential display relative to an opposite gender for selection at the user terminal.
  • 5. The method according to claim 1, wherein the text attribute information comprises occupation information of the contact, and the method further comprises: using the occupation information as the contact avatar picture tag; anddetermining, according to the extracted tag, that a picture corresponding to the occupation tag is used as the contact avatar picture.
  • 6. The method according to claim 1, wherein the text attribute information comprises company information of the contact, and the method further comprises: using the company information as the contact avatar picture tag; anddetermining, according to the extracted tag, that a company trademark picture is used as the contact avatar picture.
  • 7. The method according to claim 1, wherein the request message further comprises contact information including one or more of an email address, a mobile phone number, a service number or a domain name, and the method further comprises: receiving an avatar picture set by the contact;storing a mapping relationship between the set avatar picture and the contact information; andproviding, according to the mapping relationship, the user terminal with a stored avatar picture corresponding to the contact information.
  • 8. The method according to claim 7, wherein the avatar picture corresponding to the contact information takes priority over the contact avatar picture determined according to the extracted tag.
  • 9. The method according to claim 1, wherein the request message for obtaining a contact avatar comprises a preferred avatar picture format parameter, and wherein the contact avatar picture sent to the user terminal corresponds to the preferred avatar picture format.
  • 10. The method according to claim 1, wherein the text attribute information is received in a Quick Response Code mode, and the method further comprises: identifying a Quick Response Code of the text attribute information to obtain the text attribute information.
  • 11. A platform for managing a contact avatar, comprising: a receiving unit, configured to receive a request message from a user terminal for obtaining a contact avatar, wherein the request message includes text attribute information of a contact;a tag extracting unit, configured to extract a contact avatar picture tag according to the text attribute information in the request message;an avatar selecting unit, configured to determine a contact avatar picture according to the extracted tag; anda sending unit, configured to send the extracted contact avatar picture to the user terminal.
  • 12. The platform for managing a contact avatar according to claim 11, wherein the tag extracting unit further comprises: a surname extracting subunit, configured to extract the contact avatar picture tag according to the text attribute information in the request message by using the surname of the contact as the contact avatar picture tag to extract a contact avatar picture.
  • 13. The platform for managing a contact avatar according to claim 11, wherein the tag extracting unit further comprises: a gender extracting subunit, configured to extract a first name of the contact from the text attribute information and calculate a gender probability according to the first name of the contact;select a gender with a probability higher than a predetermined threshold based on the first name; andrecommend the selected gender to the user terminal.
  • 14. The platform for managing a contact avatar according to claim 11, wherein the tag extracting unit further comprises: an occupation extracting subunit, configured to extract an occupation of the contact from the text attribute information and use an occupation recommendation picture as the contact avatar picture.
  • 15. The platform for managing a contact avatar according to claim 14, wherein the tag extracting unit further comprises: a company extracting subunit, configured to extract a company of the contact from the text attribute information and use a company trademark picture as the contact avatar picture.
  • 16. The platform for managing a contact avatar according to claim 11, further comprising: an avatar storage unit, configured to store a contact avatar picture database and a tag corresponding to a contact avatar picture.
  • 17. A user terminal comprising: a sending unit, configured to send a request message for obtaining a contact avatar to a platform for managing a contact avatar;a receiving unit, configured to receive a contact avatar picture from the platform for managing a contact avatar, wherein the contact avatar picture has a tag attribute;a storage unit for storing the contact avatar picture with the tag attribute;an avatar selecting unit, configured to extract a tag according to text attribute information of a contact and match the tag with a tag of the avatar picture to obtain a recommended avatar picture; anda display for displaying the recommended avatar picture.
  • 18. The user terminal according to claim 17, further comprising: a gender recommendation unit, configured to calculate a gender probability of the contact according to a name of the contact recommend a gender for display with a gender probability higher than a predetermined threshold.
Priority Claims (1)
Number Date Country Kind
201110140772.1 May 2011 CN national
CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No. PCT/CN2011/081991, filed on Nov. 9, 2011, which claims priority to Chinese Patent Application No. 201110140772.1, filed on May 28, 2011, both of which are hereby incorporated by reference in their entireties.

Continuations (1)
Number Date Country
Parent PCT/CN2011/081991 Nov 2011 US
Child 13909677 US