[go: up one dir, main page]

CN108494938A - Avatar information processing method, device, server and computer readable medium - Google Patents

Avatar information processing method, device, server and computer readable medium Download PDF

Info

Publication number
CN108494938A
CN108494938A CN201810189567.6A CN201810189567A CN108494938A CN 108494938 A CN108494938 A CN 108494938A CN 201810189567 A CN201810189567 A CN 201810189567A CN 108494938 A CN108494938 A CN 108494938A
Authority
CN
China
Prior art keywords
target
information
avatar
contact
avatar information
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.)
Pending
Application number
CN201810189567.6A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810189567.6A priority Critical patent/CN108494938A/en
Publication of CN108494938A publication Critical patent/CN108494938A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content
    • H04M1/2757Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content by data transmission, e.g. downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4555Directories for electronic mail or instant messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4594Address books, i.e. directories containing contact information about correspondents
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27467Methods of retrieving data
    • H04M1/27475Methods of retrieving data using interactive graphical means or pictorial representations

Landscapes

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

Abstract

The embodiment of the application discloses a method and a device for processing head portrait information, a server and a computer readable medium, and belongs to the technical field of information processing. The method comprises the following steps: acquiring head portrait information corresponding to contact person identification in a client; taking the contact person identification corresponding to the head portrait information meeting the preset condition in all the head portrait information as a target contact person identification; determining target head portrait information corresponding to the target contact person identification; and sending the target head portrait information to the client, and indicating the client to update the head portrait information corresponding to the target contact person identification into the target head portrait information. Therefore, the head portrait corresponding to the contact person identification of the client can be set, and even if the user sets the head portrait information of the contact person identification, the head portrait information meeting the preset condition contact person identification can be updated, so that the user experience degree is improved.

Description

头像信息处理方法、装置、服务器及计算机可读介质Avatar information processing method, device, server and computer readable medium

技术领域technical field

本申请涉及信息处理技术领域,更具体地,涉及一种头像信息处理方法、装置、服务器及计算机可读介质。The present application relates to the technical field of information processing, and more specifically, to a method, device, server, and computer-readable medium for processing avatar information.

背景技术Background technique

现在移动终端内的一些客户端,例如,通讯录或者邮箱,设有联系人列表。而虽然该联系人列表内的联系人有设置头像的功能,但是大多用户不会对联系人的头像进行设置,或者,即使设置头像,也仅仅使用系统默认头像图片,所以联系人列表内的联系人头像很不美观,降低了用户体验度。Now some clients in the mobile terminal, for example, an address book or a mailbox, have a contact list. And although the contacts in the contact list have the function of setting avatars, most users will not set the avatars of the contacts, or even if they set the avatars, they only use the system default avatar picture, so the contacts in the contact list The avatar is very ugly and reduces the user experience.

发明内容Contents of the invention

本申请提出了一种头像信息处理方法、装置、服务器及计算机可读介质,以改善上述缺陷。The present application proposes a method, device, server, and computer-readable medium for processing avatar information, so as to improve the above defects.

第一方面,本申请实施例提供了一种头像信息处理方法,包括:获取客户端中联系人标识对应的头像信息;将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识;确定与所述目标联系人标识对应的目标头像信息;将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。In the first aspect, the embodiment of the present application provides a method for processing avatar information, including: obtaining the avatar information corresponding to the contact identification in the client; identify as the target contact ID; determine the target avatar information corresponding to the target contact ID; send the target avatar information to the client, and instruct the client to store the target avatar information corresponding to the target contact ID It is updated with the target avatar information.

第二方面,本申请实施例还提供了一种头像信息处理装置,包括:获取单元、查找单元、确定单元和更新单元。获取单元,用于获取客户端内联系人标识对应的头像信息。查找单元,用于将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识。确定单元,用于确定与所述目标联系人标识对应的目标头像信息。更新单元,用于将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。In the second aspect, the embodiment of the present application further provides an avatar information processing device, including: an acquisition unit, a search unit, a determination unit, and an update unit. The acquiring unit is configured to acquire the avatar information corresponding to the contact ID in the client. The search unit is configured to use, among all the avatar information, the contact ID corresponding to the avatar information that satisfies a preset condition as the target contact ID. A determining unit, configured to determine target avatar information corresponding to the target contact identifier. An updating unit, configured to send the target avatar information to the client, and instruct the client to update the avatar information corresponding to the target contact identifier to the target avatar information.

第三方面,本申请实施例还提供了一种服务器,包括存储器和处理器,所述存储器与所述处理器耦合;所述存储器存储指令,当所述指令由所述处理器执行时以使所述处理器执行以下操作:获取客户端内联系人标识对应的头像信息;将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识;确定与所述目标联系人标识对应的目标头像信息;将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。In a third aspect, the embodiment of the present application also provides a server, including a memory and a processor, the memory is coupled to the processor; the memory stores instructions, and when the instructions are executed by the processor, the The processor performs the following operations: acquire the avatar information corresponding to the contact ID in the client; use the contact ID corresponding to the avatar information that satisfies a preset condition among all the avatar information as the target contact ID; target avatar information corresponding to the target contact identifier; sending the target avatar information to the client, instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information.

第四方面,本申请实施例还提供了一种具有处理器可执行的程序代码的计算机可读介质,所述程序代码使所述处理器执行上述方法。In a fourth aspect, the embodiment of the present application further provides a computer-readable medium having a program code executable by a processor, and the program code causes the processor to execute the above method.

本申请实施例提供的头像信息处理方法、装置、服务器及计算机可读介质,首先获取客户端中联系人标识对应的头像信息,并对所有的头像信息做一个筛选,即将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识。则该目标联系人标识就为需要对其对应的头像信息设置的联系人标识,具体地,确定与所述目标联系人标识对应的目标头像信息,将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。因此,能够对客户端的联系人标识对应的头像进行设置,即使用户为对联系人标识的头像信息进行设置,本申请实施例也能够将满足预设条件联系人标识的头像信息更新,从而提高用户体验度。The avatar information processing method, device, server, and computer-readable medium provided in the embodiments of the present application first obtain the avatar information corresponding to the contact ID in the client, and perform a screening on all the avatar information, that is, all the avatar information in the avatar information , and the contact ID corresponding to the avatar information that satisfies the preset condition is used as the target contact ID. Then the target contact identifier is the contact identifier that needs to be set for its corresponding avatar information, specifically, determine the target avatar information corresponding to the target contact identifier, and send the target avatar information to the client , instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information. Therefore, the avatar corresponding to the contact ID of the client can be set. Even if the user does not set the avatar information of the contact ID, the embodiment of the present application can also update the avatar information of the contact ID that meets the preset condition, thereby improving user experience.

本申请实施例的其他特征和优点将在随后的说明书阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请实施例而了解。本申请实施例的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the embodiments of the present application will be set forth in the following description, and partly become obvious from the description, or can be understood by implementing the embodiments of the present application. The objectives and other advantages of the embodiments of the application will be realized and attained by the structure particularly pointed out in the written description, claims hereof as well as the appended drawings.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1示出了本申请实施例提供的头像信息处理方法及装置的应用场景图;FIG. 1 shows an application scene diagram of the avatar information processing method and device provided by the embodiment of the present application;

图2示出了本申请一实施例提供的联系人列表的示意图;Fig. 2 shows a schematic diagram of a contact list provided by an embodiment of the present application;

图3示出了本申请实施例提供的联系人详情界面的示意图;Fig. 3 shows a schematic diagram of a contact details interface provided by an embodiment of the present application;

图4示出了本申请一实施例提供的一种头像信息处理方法的方法流程图;Fig. 4 shows a method flowchart of a method for processing avatar information provided by an embodiment of the present application;

图5示出了本申请另一实施例提供的一种头像信息处理方法的方法流程图;Fig. 5 shows a method flowchart of a method for processing avatar information provided by another embodiment of the present application;

图6示出了本申请又一实施例提供的一种头像信息处理方法的方法流程图;Fig. 6 shows a method flowchart of a method for processing avatar information provided by another embodiment of the present application;

图7示出了本申请实施例提供的联系人编辑页面的示意图;FIG. 7 shows a schematic diagram of a contact editing page provided by an embodiment of the present application;

图8示出了本申请实施例提供的提示信息的示意图;Fig. 8 shows a schematic diagram of the prompt information provided by the embodiment of the present application;

图9示出了本申请另一实施例提供的联系人列表的示意图;Fig. 9 shows a schematic diagram of a contact list provided by another embodiment of the present application;

图10示出了本申请实施例提供的询问窗口的示意图;FIG. 10 shows a schematic diagram of an inquiry window provided by an embodiment of the present application;

图11示出了本申请又一实施例提供的联系人列表的示意图;Fig. 11 shows a schematic diagram of a contact list provided by another embodiment of the present application;

图12示出了本申请实施例提供的头像信息处理装置的模块框图;Fig. 12 shows a module block diagram of an avatar information processing device provided by an embodiment of the present application;

图13示出了本申请实施例提供的服务器的模块框图。FIG. 13 shows a block diagram of a server provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of the present application.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

请参阅图1,示出了本申请实施例提供的信息推送方法及装置的应用场景图。如图1中所示,用户终端1和服务器3位于无线网络或有线网络中,用户终端1和服务器3进行数据交互。Please refer to FIG. 1 , which shows an application scenario diagram of the information push method and device provided by the embodiment of the present application. As shown in FIG. 1 , a user terminal 1 and a server 3 are located in a wireless network or a wired network, and the user terminal 1 and the server 3 perform data interaction.

于本申请实施例中,用户终端1可以为移动终端设备,例如可以包括智能手机、平板电脑、电子书阅读器、膝上型便携计算机、车载电脑、穿戴式移动终端等等。In the embodiment of the present application, the user terminal 1 may be a mobile terminal device, such as a smart phone, a tablet computer, an e-book reader, a laptop computer, a vehicle computer, a wearable mobile terminal, and the like.

在一些实施例中,客户端安装在用户终端1内,例如,可以是安装在用户终端1的应用程序。具体地,客户端对应有联系人列表,则客户端可以是通讯录或者邮箱。如图2所示的联系人列表界面,该界面内显示有联系人标识202和所对应的头像信息201,其中,联系人标识202由数字、文本或符号中的至少一个组成,用户在存储联系方式时,为该联系方式设置一个标识,即联系人标识,如果只输入了联系方式而未输入姓名,则将该联系方式作为联系人标识,如图2中所示的“88156642”,88156642为用户输入的联系方式,即电话号码,而用户未输入对应该电话号码的联系人姓名,则客户端将该电话号码“88156642”,作为该电话号码对应的联系人标识。如果用户输入了对应某个联系方式的姓名,则将该姓名作为该联系方式的联系人标识,例如,图2中所示的陈乾为一种联系人标识,用户点击“陈乾”,进入联系人详情界面,如图3所示,在该界面内,包括联系人方式,具体地,该联系人方式包括电话号码、电子邮件地址、应用程序的用户账号等,其中,应用程序的用户账号可以是微信、微博或QQ等。In some embodiments, the client is installed in the user terminal 1 , for example, it may be an application program installed in the user terminal 1 . Specifically, the client corresponds to a contact list, and the client may be an address book or a mailbox. Contact list interface as shown in Figure 2, in this interface, display contact person identification 202 and corresponding avatar information 201, wherein, contact identification 202 is made up of at least one in number, text or symbol, and user stores contact When using the method, set an identifier for the contact method, that is, the contact person identifier. If only the contact method is entered but no name is entered, the contact method is used as the contact person identifier, as shown in Figure 2. "88156642", 88156642 is The contact information entered by the user is a phone number, but the user does not input the contact name corresponding to the phone number, the client will use the phone number "88156642" as the contact ID corresponding to the phone number. If the user has entered a name corresponding to a certain contact method, the name will be used as the contact identifier of the contact method. For example, Chen Gan shown in Figure 2 is a contact identifier. The user clicks "Chen Gan" to enter The contact details interface, as shown in Figure 3, includes a contact method in this interface, specifically, the contact method includes a phone number, an email address, an application user account, etc., wherein the application user account It can be WeChat, Weibo or QQ, etc.

其中,联系人标识不仅可以包括姓名,还可以包括称谓关键字,例如,图2中的“阿姨”、“蔡老师”、“聪妹子”和“大龙叔叔”,其中,“蔡老师”、“聪妹子”和“大龙叔叔”不仅包括姓名还包括称谓关键字。Wherein, the contact identifier can include not only a name, but also a title keyword, for example, "Auntie", "Teacher Cai", "Sister Cong" and "Uncle Dalong" in Figure 2, where "Teacher Cai", "Sister Cong" and "Uncle Dalong" include not only names but also title keywords.

其中,头像信息包括头像状态和头像图片,头像状态包括有头像状态和无头像状态,头像图片为联系人列表中每个联系人标识对应的头像图片。在一些客户端中,在用户未为联系人标识设置对应的头像信息时,系统会为联系人标识设置系统默认头像信息,系统默认头像信息可以是不设置任何头像,也可以是设置系统默认头像图片。当然,在一些实施例中,用户手动为联系人标识设置系统默认头像图片作为该联系人标识的头像图片。The avatar information includes avatar status and avatar picture, the avatar status includes avatar status and no avatar status, and the avatar picture is the avatar picture corresponding to each contact ID in the contact list. In some clients, when the user does not set the corresponding avatar information for the contact ID, the system will set the system default avatar information for the contact ID. The system default avatar information can be not to set any avatar, or to set the system default avatar picture. Of course, in some embodiments, the user manually sets a system default avatar picture for the contact ID as the avatar picture of the contact ID.

服务器内存储有联系人列表对应的所有数据,具体包括联系人标识、所对应的头像信息、联系人方式等联系人详情信息。服务器3可以是单独的服务器,也可以是服务器集群,可以是本地服务器,也可以是云端服务器。All data corresponding to the contact list is stored in the server, specifically including contact details such as a contact ID, corresponding avatar information, and a contact method. The server 3 can be a single server, or a server cluster, a local server, or a cloud server.

现有的联系人列表,虽然具有为每个联系人标识对应的头像的功能,但是,大部分用户要么不设置头像,要么设置系统默认头像,导致联系人列表内的联系人标识对应的头像过于单一,用户体验度不高。Although the existing contact list has the function of identifying the corresponding avatar for each contact, most users either do not set the avatar or set the system default avatar, resulting in the avatar corresponding to the contact identification in the contact list being too large. Single, the user experience is not high.

因此,为了解决上述缺陷,本申请实施例提供了一种头像信息处理方法,如图4所示,该方法用于解决现有的联系人列表的头像过于单一的问题,本实施例中,以服务器为执行主体,描述该方法的实施过程,具体地,该方法包括:S401至S404。Therefore, in order to solve the above-mentioned defects, the embodiment of the present application provides a method for processing avatar information, as shown in FIG. The server is the execution body, and describes the implementation process of the method. Specifically, the method includes: S401 to S404.

S401:获取客户端中联系人标识对应的头像信息。S401: Obtain avatar information corresponding to the contact identifier in the client.

用户使用用户终端新建联系人标识以及所对应的头像信息和联系人详情信息时,以及每次更新新建联系人标识以及所对应的头像信息和联系人详情信息时,都会将联系人标识以及所对应的头像信息和联系人详情信息发送至服务器,以进行存储。When the user uses the user terminal to create a new contact ID and the corresponding avatar information and contact details, and each time the new contact ID and the corresponding avatar information and contact details are updated, the contact ID and the corresponding The avatar information and contact details of the user are sent to the server for storage.

当然,也可以是服务器间隔一定时间,发送一个获取请求至客户端,指示客户端将当前的联系人标识以及所对应的头像信息和联系人详情信息发送至服务器,从而服务器将所获取的联系人标识及对应的头像信息和联系人详情信息存储。Of course, it is also possible for the server to send an acquisition request to the client at intervals of a certain period of time, instructing the client to send the current contact ID and the corresponding avatar information and contact detail information to the server, so that the server sends the acquired contact The logo and the corresponding avatar information and contact details are stored.

S402:将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识。S402: Use the contact identifier corresponding to the avatar information that satisfies the preset condition among all the avatar information as the target contact identifier.

其中,预设条件为用户根据实际使用需求而设定的,其中,头像信息包括头像状态和头像图片,作为一种实施方式,可以是判断头像状态是否为无头像状态,如果是,则判定该头像信息满足预设条件,否则,则判定该头像信息不满足预设条件。作为另一种实施方式,可以是判断头像图片是否为预设类型头像图片,该预设类型头像图片可以是灰度图片,也可以是系统默认的头像图片,则如果头像图片为预设类型头像图片,则判定该头像信息满足预设条件,否则,则判定该头像信息不满足预设条件。Wherein, the preset condition is set by the user according to the actual use requirements, wherein the avatar information includes the avatar state and the avatar picture, as an implementation, it may be to judge whether the avatar state is a no-avatar state, and if so, determine the The avatar information satisfies the preset condition; otherwise, it is determined that the avatar information does not meet the preset condition. As another implementation, it may be to judge whether the avatar picture is a preset type avatar picture, and the preset type avatar picture may be a grayscale picture, or a system default avatar picture, then if the avatar picture is a preset type avatar picture picture, it is determined that the avatar information meets the preset conditions; otherwise, it is determined that the avatar information does not meet the preset conditions.

作为又一种实施方式,可以是判断头像信息是否属于系统默认头像信息,则将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识的实施方式为,将所有所述头像信息中,属于系统默认头像信息的头像信息对应的联系人标识作为目标联系人标识。As yet another embodiment, it may be determined whether the avatar information belongs to the default avatar information of the system, and then the contact identifier corresponding to the avatar information that satisfies the preset condition among all the avatar information may be used as the target contact identifier, as follows: Among all the avatar information, the contact identifier corresponding to the avatar information belonging to the system default avatar information is used as the target contact identifier.

具体地,在一些实施例中,系统默认头像信息为无头像状态,也就是在用户未设置头像的情况下,联系人标识不会对应有头像图片,且该联系人标识对应的头像状态为无头像状态。则具体地,判断头像信息是否满足预设条件的方式为,判断头像状态是否为无头像状态,如果是,判定该头像信息满足预设条件,否则,判定该头像信息不满足预设条件。Specifically, in some embodiments, the default avatar information of the system is no avatar status, that is, if the user does not set an avatar, the contact ID does not correspond to an avatar picture, and the avatar status corresponding to the contact ID is no Avatar status. Specifically, the method of judging whether the avatar information satisfies the preset condition is to judge whether the avatar status is no avatar state, if so, determine that the avatar information meets the preset condition, otherwise, determine that the avatar information does not meet the preset condition.

在另一些实施例中,系统默认头像信息为系统默认头像图片,也就是在用户未设置头像的情况下,系统为自动为联系人标识设置一个系统默认头像图片,并设置一个头像标记值,该头像标记值用于表示该头像图片为系统默认头像图片。当读取到该头像标记值,就能够判断该头像图片为系统默认头像图片。当判定某个头像图片为系统默认头像图片,判定该头像信息满足预设条件,否则,判定该头像信息不满足预设条件。In other embodiments, the system default avatar information is the system default avatar picture, that is, when the user does not set an avatar, the system automatically sets a system default avatar picture for the contact identification, and sets an avatar tag value, the The avatar tag value is used to indicate that the avatar picture is the system default avatar picture. When the avatar tag value is read, it can be determined that the avatar picture is the system default avatar picture. When it is determined that a certain avatar picture is the default avatar picture of the system, it is determined that the avatar information satisfies the preset condition; otherwise, it is determined that the avatar information does not meet the preset condition.

S403:确定与所述目标联系人标识对应的目标头像信息。S403: Determine target avatar information corresponding to the target contact identifier.

在将满足预设条件的头像信息对应的联系人标识作为目标联系人标识之后,根据目标联系人标识确定所对应的目标头像信息。于本申请实施例中,目标头像信息为目标头像图片。After the contact ID corresponding to the avatar information meeting the preset condition is used as the target contact ID, the corresponding target avatar information is determined according to the target contact ID. In the embodiment of the present application, the target avatar information is the target avatar picture.

作为一种实施方式,可以是按照一定规则为所有的目标联系人标识推荐不全相同的目标头像图片,具体地,假设服务器内存储多张不同的头像图片,按照一定顺序为每个目标联系人标识设置一个对应的目标头像图片。例如,服务器内存储有5张不同的头像图片,分别为fig1、fig2、fig3、fig4、fig5。而服务器最终确定的目标联系人标识为8个,分别为id1、id2、id3、id4、id5、id6、id7和id8。则这8个目标联系人标识所对应的目标头像图片的方式为:id1对应fig1,id2对应fig2,id3对应fig3,id4对应fig4,id5对应fig5,id6对应fig1,id7对应fig2,id8对应fig3。由此,能够使得各个联系人标识所对应的头像图片不全相同,使得头像不再单一。As an implementation, it may recommend different target avatar pictures for all target contact IDs according to certain rules. Specifically, assuming that the server stores multiple different avatar pictures, each target contact ID is Set a corresponding target avatar picture. For example, there are five different avatar pictures stored in the server, namely fig1, fig2, fig3, fig4, and fig5. And the target contact identifier finally determined by the server is 8, namely id1, id2, id3, id4, id5, id6, id7 and id8. Then the way of the target avatar pictures corresponding to these 8 target contact identifiers is: id1 corresponds to fig1, id2 corresponds to fig2, id3 corresponds to fig3, id4 corresponds to fig4, id5 corresponds to fig5, id6 corresponds to fig1, id7 corresponds to fig2, and id8 corresponds to fig3. As a result, the avatar pictures corresponding to the respective contact identifiers can be different, so that the avatars are no longer single.

作为另一种实施方式,还可以根据联系人标识对应的联系人详情中的应用程序的用户账号或者电话号码等信息,确定与该联系人标识对应的目标头像图片,还可以根据联系人标识对应的联系人姓名确定与该联系人标识对应的目标头像图片,具体地,在后续实施例中详细说明。As another implementation, the target avatar picture corresponding to the contact ID can also be determined according to information such as the user account or phone number of the application program in the contact details corresponding to the contact ID, or the target avatar picture corresponding to the contact ID. The name of the contact person determines the target avatar picture corresponding to the contact ID. Specifically, it will be described in detail in subsequent embodiments.

S404:将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。S404: Send the target avatar information to the client, instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information.

具体地,将所确定的与目标联系人标识对应的目标头像图片发送至客户端,作为一种实施方式,服务器发送更新请求至客户端,其中,该更新请求包括目标联系人标识及其所对应的目标头像图片。客户端在获取到该更新请求之后,解析获得目标头像图片以及所对应的目标联系人标识,将目标联系人标识对应的头像图片更新为所述目标头像图片,由此就完成了目标联系人标识对应的头像图片的重新设置。Specifically, the determined target avatar picture corresponding to the target contact ID is sent to the client. As an implementation, the server sends an update request to the client, wherein the update request includes the target contact ID and its corresponding target avatar image for . After obtaining the update request, the client parses and obtains the target avatar picture and the corresponding target contact ID, and updates the avatar picture corresponding to the target contact ID to the target avatar picture, thus completing the target contact ID Resetting of the corresponding avatar picture.

因此,能够对客户端的联系人标识对应的头像进行设置,即使用户为对联系人标识的头像信息进行设置,本申请实施例也能够将满足预设条件联系人标识的头像信息更新,从而提高用户体验度。Therefore, the avatar corresponding to the contact ID of the client can be set. Even if the user does not set the avatar information of the contact ID, the embodiment of the present application can also update the avatar information of the contact ID that meets the preset condition, thereby improving user experience.

另外,在确定与所述目标联系人标识对应的目标头像信息时,可以考虑联系人标识可能还对应有微信、微博或QQ等应用程序的用户账号,该用户账号的头像图片可以作为联系人标识的头像图片。具体地,请参阅图5,示出了一种头像信息处理方法,该方法用于解决现有的联系人列表的头像过于单一的问题,本实施例中,以服务器为执行主体,描述该方法的实施过程,具体地,该方法包括:S501至S505。In addition, when determining the target avatar information corresponding to the target contact identifier, it may be considered that the contact identifier may also correspond to a user account of an application program such as WeChat, Weibo, or QQ, and the avatar picture of the user account can be used as a contact The logo's avatar image. Specifically, please refer to FIG. 5 , which shows a method for processing avatar information, which is used to solve the problem that the avatar of the existing contact list is too single. In this embodiment, the server is used as the execution subject to describe the method The implementation process of the method, specifically, the method includes: S501 to S505.

S501:获取客户端中联系人标识对应的头像信息。S501: Obtain avatar information corresponding to a contact identifier in the client.

S502:将所有所述头像信息中,属于系统默认头像信息的头像信息对应的联系人标识作为目标联系人标识。S502: Use the contact identifier corresponding to the avatar information belonging to the system default avatar information among all the avatar information as the target contact identifier.

S503:判断所述目标联系人标识是否对应有应用程序的用户账号。S503: Determine whether the target contact identifier corresponds to a user account of an application program.

查找预先存储的目标联系人标识对应的联系人详情信息,获取该联系人详情信息内的联系方式中的应用程序的用户账号。如果能够获取到应用程序的用户账号,则执行步骤S504,否则,可以采用其他方式确定与所述目标联系人标识对应的目标头像信息,也可以结束本次方法,使得目标联系人标识继续使用系统默认头像图片。Find the contact detail information corresponding to the pre-stored target contact identifier, and obtain the user account of the application program in the contact information in the contact detail information. If the user account of the application program can be obtained, then perform step S504; otherwise, other methods can be used to determine the target avatar information corresponding to the target contact ID, or this method can be ended so that the target contact ID continues to use the system The default avatar image.

如果能够获取到与电话号码绑定的应用程序的用户账号,则执行步骤S504。If the user account of the application program bound to the phone number can be obtained, step S504 is performed.

S504:获取所述用户账号对应的头像信息。S504: Obtain avatar information corresponding to the user account.

将所查找到的所有应用程序的用户账号中,获取设置有头像图片的应用程序的用户账号。具体地,如果用户终端内安装了该应用程序,则通过特定的API接口获取该应用程序对应的本地存储内的该用户账号对应的头像图片,如果本地为存储该用户账号对应的头像图片,则发送头像获取请求至该应用程序所对应的服务器,以获取与该用户账号对应的头像图片。From the user accounts of all the found applications, the user accounts of the applications with avatar pictures are obtained. Specifically, if the application program is installed in the user terminal, the avatar picture corresponding to the user account in the local storage corresponding to the application program is obtained through a specific API interface; if the avatar picture corresponding to the user account is stored locally, then Send an avatar acquisition request to the server corresponding to the application program, so as to acquire the avatar picture corresponding to the user account.

S505:将所述用户账号对应的头像信息作为与所述目标联系人标识对应的目标头像信息。S505: Use the avatar information corresponding to the user account as the target avatar information corresponding to the target contact identifier.

另外,考虑到虽然联系方式中未记载有应用程序的用户账号,但是,联系人标识对应的电话号码可能绑定有应用程序,则在目标联系人标识对应的联系人详情信息内未查找到应用程序的用户账号时,获取该目标联系人标识对应的电话号码,判断该电话号码是否对应有应用程序的用户账号。具体地,获取用户终端内存储的与电话号码绑定的所有应用程序的用户账号,再将所绑定的所有应用程序的用户账号中设置有头像图片的用户账号作为目标用户账号,将所述目标用户账号作为目标联系人标识对应的目标头像图片。In addition, considering that although the user account of the application program is not recorded in the contact information, the phone number corresponding to the contact ID may be bound to the application program, and the application program cannot be found in the contact detail information corresponding to the target contact ID. When using the user account of the program, the phone number corresponding to the target contact identifier is obtained, and it is judged whether the phone number corresponds to the user account of the application program. Specifically, obtain the user accounts of all the application programs bound to the phone number stored in the user terminal, and then set the user accounts with avatar pictures among the user accounts of all the bound application programs as the target user accounts, and set the The target user account is used as the target avatar picture corresponding to the target contact identifier.

S506:将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。S506: Send the target avatar information to the client, instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information.

上述步骤所对应的操作内容可以参考前述实施例的描述,在此不再赘述。For the operation content corresponding to the above steps, reference may be made to the description of the foregoing embodiments, and details are not repeated here.

请参阅图6,示出了一种头像信息处理方法,该方法用于解决现有的联系人列表的头像过于单一的问题,本实施例中,以服务器为执行主体,描述该方法的实施过程,具体地,该方法包括:S601至S609。Please refer to FIG. 6, which shows a method for processing avatar information, which is used to solve the problem that the avatar of the existing contact list is too single. In this embodiment, the server is used as the execution subject to describe the implementation process of the method , specifically, the method includes: S601 to S609.

S601:获取客户端中联系人标识对应的头像信息。S601: Obtain avatar information corresponding to the contact identifier in the client.

于本申请实施例中,以头像信息为头像图片为例,则系统默认头像信息为系统默认头像图片。In the embodiment of the present application, taking the avatar information as the avatar picture as an example, the system default avatar information is the system default avatar picture.

S602:将所有所述头像信息中,属于系统默认头像信息的头像信息对应的联系人标识作为目标联系人标识。S602: Use the contact identifier corresponding to the avatar information belonging to the system default avatar information among all the avatar information as the target contact identifier.

S603:判断所述目标联系人标识是否对应有应用程序的用户账号。S603: Determine whether the target contact identifier corresponds to a user account of an application program.

具体地,获取目标联系人标识对应的联系人方式,查找该联系人方式中是否有应用程序的用户账号,其中,应用程序可以是预设类别的应用程序,其中,预设类别可以是社交类或者游戏类应用程序,例如王者荣耀、阴阳师等游戏类应用程序,也可以是微信或者QQ等社交类应用程序。Specifically, obtain the contact method corresponding to the target contact identifier, and find out whether there is a user account of an application program in the contact method, wherein the application program can be an application program of a preset category, and the preset category can be a social Or game applications, such as game applications such as King of Glory and Onmyoji, or social applications such as WeChat or QQ.

如果目标联系人标识对应有应用程序的用户账号,则执行S604,如果目标联系人标识未对应有应用程序的用户账号,则执行S606。If the target contact identifier corresponds to the user account with the application program, execute S604, and if the target contact identifier does not correspond to the user account with the application program, execute S606.

S604:获取所述用户账号对应的头像信息。S604: Obtain avatar information corresponding to the user account.

S605:将所述用户账号对应的头像信息作为与所述目标联系人标识对应的目标头像信息。S605: Use the avatar information corresponding to the user account as the target avatar information corresponding to the target contact identifier.

具体地,假设在查找目标联系人标识id1对应的应用程序的用户账号时,查找到id1对应的应用程序的用户账号包括qq号码和微信号码,则选择其中一个用户账号对应的头像图片作为目标头像图片,例如,选择qq号码对应的头像图片作为目标头像图片。Specifically, assuming that when searching for the user account of the application program corresponding to the target contact identifier id1, the user account of the application program corresponding to id1 is found to include a QQ number and a WeChat account number, then select the avatar picture corresponding to one of the user accounts as the target avatar Picture, for example, select the avatar picture corresponding to the qq number as the target avatar picture.

另外,也可以通过查找联系人标识对应的电话号码是否绑定有应用程序的用户帐号,来获取用户账号对应的头像图片,具体地,可参考前述实施例,在此不再赘述。In addition, the avatar picture corresponding to the user account may also be acquired by checking whether the phone number corresponding to the contact identifier is bound to the user account of the application program. Specifically, reference may be made to the foregoing embodiments, and details are not repeated here.

S606:判断所述目标联系人标识是否对应有名字信息。S606: Determine whether the target contact identifier corresponds to name information.

如果目标联系人标识未对应有应用程序的用户账号,则判断所述目标联系人标识是否对应有名字信息。If the target contact identifier does not correspond to the user account of the application program, it is determined whether the target contact identifier corresponds to name information.

具体地,作为一种实施方式,用户在新建或编辑联系人信息时,会输入名字信息作为联系人标识,如果未输入名字信息,则将联系人方式作为联系人标识,具体地,可以将电话号码作为联系人标识。则判断联系人标识是否对应有名字信息的方式可以是,获取联系人标识,并获取联系人标识的文本信息,根据该文本信息确定该联系人标识是否属于名字信息。具体地,判断该文本信息是否全部由数字构成,如果该文本信息全部由数字构成,则判定该文本信息不属于名字信息,即目标联系人标识未对应有名字信息,则执行S608。如果该文本信息不是全部由数字构成,则判定该文本信息属于名字信息,即目标联系人标识对应有名字信息,则执行S607。Specifically, as an implementation, when creating or editing contact information, the user will input name information as the contact ID, if no name information is entered, the contact mode will be used as the contact ID, specifically, the phone The number acts as a contact ID. Then, the manner of judging whether the contact identifier corresponds to name information may be to obtain the contact identifier and the text information of the contact identifier, and determine whether the contact identifier belongs to the name information according to the text information. Specifically, it is determined whether the text information is all composed of numbers. If the text information is all composed of numbers, it is determined that the text information does not belong to name information, that is, the target contact identifier does not correspond to name information, and then execute S608. If the text information is not all composed of numbers, it is determined that the text information belongs to name information, that is, the target contact identifier corresponds to name information, and then S607 is executed.

作为另一种实施方式,可以在用户新建或编辑联系人信息时,判断是否在联系人编辑页面的姓名输入框内输入信息,如果有,则为该联系人标识设置一个有姓名状态,如果没有,则为该联系人标识设置一个无姓名状态。具体地,如图7所示,示出了一种联系人编辑页面,在该界面内设有姓名输入框,包括姓氏输入框K1和名字输入框K2,则在系统内为两个输入框分配不同的参数,分别为xs和mz,如果用户在姓氏输入框K1输入了文本wb1,则相当于给xs赋值wb1,如果在名字输入框K2输入了文本wb2,则相当于给mz赋值wb2。而如果未输入姓氏和名字,则xs和mz的值均为一个特定数值,可以是null。因此,可以读取目标联系人标识对应的xs和mz的两个参数值,如果两个都是null,则判定目标联系人标识未对应有名字信息,否则,判定目标联系人标识未对应有名字信息。As another implementation, when the user creates or edits contact information, it is possible to determine whether information is entered in the name input box on the contact edit page, if yes, then set a status with a name for the contact ID, if not , set an unnamed status for the contact ID. Specifically, as shown in Figure 7, a contact editing page is shown, in which a name input box is provided, including a surname input box K1 and a first name input box K2, and the two input boxes are allocated in the system The different parameters are xs and mz. If the user enters the text wb1 in the surname input box K1, it is equivalent to assigning wb1 to xs. If the user enters the text wb2 in the name input box K2, it is equivalent to assigning wb2 to mz. And if the last name and first name are not entered, the values of xs and mz are both a specific value, which can be null. Therefore, the two parameter values of xs and mz corresponding to the target contact ID can be read. If both are null, it is determined that the target contact ID does not correspond to name information; otherwise, it is determined that the target contact ID does not correspond to a name information.

S607:获取所述名字信息的身份属性,根据所述身份属性确定与所述目标联系人标识对应的目标头像信息。S607: Obtain the identity attribute of the name information, and determine target avatar information corresponding to the target contact identifier according to the identity attribute.

其中,身份属性包括性别信息。作为一种实施方式,服务器内存储有名字信息与性别信息的对应关系,具体地,可以是服务器从各个数据服务器内获取的名字信息与性别信息的对应关系,其中,该数据服务器包括百度、谷歌等搜索引擎对应的数据服务器,比如百度和谷歌网站中搜索披露出的全中国或者全世界姓名大全。比如中文的百家姓,常用名;外国人的常用姓名大全。具体地,服务器遍历各个数据服务器,获取该名字信息对应的用户信息,其中,该用户信息可以是用户的简历或者用户资料等,统计该名字信息对应的用户的性别,分析出该名字信息对应的用户为男性和女性之间的比例,根据该比例确定该名字信息对应的性别信息,如果男性和女性的比值大于第一阈值,则确定该名字信息对应的性别信息为男性,如果男性和女性的比值小于第二阈值,则确定该名字信息对应的性别信息为女性。其中,第一阈值为大于1的数值,例如,可以是1.3,而第二阈值为小于1的数值,例如,可以是0.8。Wherein, the identity attribute includes gender information. As an implementation, the corresponding relationship between name information and gender information is stored in the server. Specifically, it may be the corresponding relationship between name information and gender information obtained by the server from various data servers, wherein the data servers include Baidu, Google Data servers corresponding to search engines, such as the complete list of names in China or around the world revealed by searches on Baidu and Google websites. For example, Chinese surnames and common names; a complete list of common names for foreigners. Specifically, the server traverses each data server to obtain the user information corresponding to the name information, where the user information may be the user's resume or user profile, etc., counts the gender of the user corresponding to the name information, and analyzes the user information corresponding to the name information. The user is the ratio between male and female, and the gender information corresponding to the name information is determined according to the ratio. If the ratio of male to female is greater than the first threshold, it is determined that the gender information corresponding to the name information is male. If the male and female If the ratio is smaller than the second threshold, it is determined that the gender information corresponding to the name information is female. Wherein, the first threshold is a value greater than 1, for example, 1.3, and the second threshold is a value less than 1, for example, 0.8.

如果未能查找到该名字信息对应的性别信息,例如,未查找到该名字信息对应的用户信息,或者,所确定的男性和女性的比值大于或等于第二阈值,且小于或等于第一阈值,则判定该名字信息为中性词,则此时,判定未获取到所述目标联系人的名字信息对应的目标性别信息,发送提示信息至所述客户端,以提醒客户端的用户未找到与所述目标联系人对应的目标性别信息。If the gender information corresponding to the name information cannot be found, for example, the user information corresponding to the name information cannot be found, or the determined ratio of male to female is greater than or equal to the second threshold and less than or equal to the first threshold , then it is determined that the name information is a neutral word, then at this time, it is determined that the target gender information corresponding to the name information of the target contact has not been obtained, and a prompt message is sent to the client to remind the client. Target gender information corresponding to the target contact.

如图8所示,假设目标联系人标识为蔡老师,则目标联系人标识对应有名字信息,即该名字信息为“蔡老师”,但是服务器未能确定“蔡老师”对应的性别信息,即无法确定“蔡老师”为男性还是女性。则发送一个提示信息至客户端,在联系人列表界面弹出一个提示信息,该提示信息内显示有“无法确定蔡老师性别信息”,用户在观察到提示信息之后,能够得知找到与蔡老师对应的目标性别信息。As shown in Figure 8, assuming that the target contact ID is Teacher Cai, the target contact ID corresponds to name information, that is, the name information is "Teacher Cai", but the server fails to determine the gender information corresponding to "Teacher Cai", that is It is not possible to determine whether "Teacher Cai" is male or female. Then send a prompt message to the client, and a prompt message pops up on the contact list interface. The prompt message displays "Unable to determine the gender information of Teacher Cai". target gender information.

在另一些实施例中,用户可以操作客户端输入与“蔡老师”对应的身份信息,将该身份信息发送至服务器,即服务器获取所述客户端发送的身份确认请求,所述身份确认请求包括用户基于所述提醒信息输入的与所述目标联系人的名字信息对应的目标性别信息。In other embodiments, the user can operate the client to input the identity information corresponding to "Teacher Cai", and send the identity information to the server, that is, the server obtains the identity confirmation request sent by the client, and the identity confirmation request includes Target gender information corresponding to the name information of the target contact entered by the user based on the reminder information.

当然,也可以是用户在接收到提示信息之后,向网络服务器发送咨询请求,该网络服务器可以是某些中介公司的数据分析服务器,也可以是某些社交平台的服务器,其中,社交平台可以是知乎或者百度知道等平台。在获取到网络服务器基于该咨询请求反馈的分析结果之后,解析该分析结果以获得该目标联系人的名字信息对应的目标性别信息,则将该目标联系人的名字信息对应的目标性别信息通过身份确认请求的方式发送至服务器。Of course, it can also be that the user sends a consultation request to the network server after receiving the prompt information, and the network server can be a data analysis server of some intermediary company, or a server of some social platform, wherein the social platform can be Platforms such as Zhihu or Baidu Zhizhi. After obtaining the analysis result fed back by the network server based on the consultation request, analyze the analysis result to obtain the target gender information corresponding to the name information of the target contact, then pass the target gender information corresponding to the name information of the target contact through the identity The way to confirm the request is sent to the server.

在又一些实施例中,客户端在接收到提示信息之后,不展示出来,而是由客户端在后台直接发送一个咨询请求至网络服务器,在获取到网络服务器基于该咨询请求反馈的分析结果之后,解析该分析结果以获得该目标联系人的名字信息对应的目标性别信息,则将该目标联系人的名字信息对应的目标性别信息通过身份确认请求的方式发送至服务器。In some other embodiments, after receiving the prompt information, the client does not display it, but the client directly sends a consulting request to the web server in the background, and after obtaining the analysis result fed back by the web server based on the consulting request , analyzing the analysis result to obtain the target gender information corresponding to the name information of the target contact, and sending the target gender information corresponding to the name information of the target contact to the server through an identity confirmation request.

作为另一种实施例,获取所述名字信息的身份属性,根据所述身份属性确定所述目标联系人标识对应的目标头像信息的具体实施方式还可以是,获取所述名字信息内用于表示称谓的称谓关键字;根据所述称谓关键字确定所述目标联系人的名字信息对应的目标性别信息;根据预设的性别信息与推荐头像信息的对应关系,获取所述目标性别信息对应的推荐头像信息;将所获取的所述推荐头像信息作为所述目标联系人标识对应的目标头像信息。As another embodiment, the specific implementation manner of obtaining the identity attribute of the name information, and determining the target avatar information corresponding to the target contact identifier according to the identity attribute may also be to obtain the information used in the name information to represent The title keyword of the title; determine the target gender information corresponding to the name information of the target contact according to the title keyword; obtain the recommendation corresponding to the target gender information according to the correspondence between the preset gender information and the recommended avatar information Avatar information: using the acquired recommended avatar information as the target avatar information corresponding to the target contact identifier.

具体地,有些联系人标识中包含有称谓关键字,例如,图2中所示的“阿姨、大龙叔叔”。在一些实施例中,预先建立称谓数据库,该称谓数据库内包括多个称谓关键字,该称谓关键字为用户或者开发者输入的,也可以是根据网络数据库,例如,百度或者谷歌等数据库的分析而获得的,该称谓数据库内的每个称谓关键字都对应一个性别,例如,叔叔对应男性,阿姨对应女性。则根据预先建立的称谓数据库,查找目标联系人标识中的文本信息是否对应有称谓关键字,如果有,在称谓数据库确定目标联系人标识中的称谓关键字所对应的性别信息。如果未查找到称谓关键字,则可以通过上述名字信息的方式查找性别信息,即执行上述的根据预先获取的名字信息与性别信息的对应关系,获取所述目标联系人的名字信息对应的目标性别信息。Specifically, some contact identifiers contain title keywords, for example, "auntie, uncle Dalong" shown in FIG. 2 . In some embodiments, the appellation database is pre-established, and the appellation database includes a plurality of appellation keywords. The appellation keywords are input by users or developers, and can also be based on the analysis of network databases, such as databases such as Baidu or Google. And obtained, each title keyword in the title database corresponds to a gender, for example, uncle corresponds to male, and aunt corresponds to female. Then, according to the pre-established appellation database, it is searched whether the text information in the target contact identifier corresponds to an appellation keyword, and if so, the gender information corresponding to the appellation keyword in the target contact identifier is determined in the appellation database. If the title keyword is not found, the gender information can be searched through the above-mentioned name information, that is, the above-mentioned corresponding relationship between the name information and gender information obtained in advance is performed to obtain the target gender corresponding to the name information of the target contact information.

作为又一种实施方式,还可以根据名字信息的阴阳属性来确定性别信息。服务器内预先设有阴阳数据库,在该阴阳数据库设置有多个阴阳关键字和每个阴阳关键字对应的阴阳属性,例如,马为乾,为阳属性;云为巽,为阴属性,则阳属性对应的性别信息为男性,阴属性对应的性别信息为女性。则获取目标联系人标识的阴阳属性,具体地,将目标联系人标识与阴阳数据库内的阴阳关键字比对,查找到目标联系人标识内的阴阳关键字,再根据阴阳关键字与阴阳属性的对应关系,确定目标联系人标识对应的阴阳属性,进而确定目标联系人标识对应的性别信息。如果,未查找到目标联系人标识内的阴阳关键字,可以查找目标联系人标识中的文本信息是否对应有称谓关键字,也可以执行上述的根据预先获取的名字信息与性别信息的对应关系,获取所述目标联系人的名字信息对应的目标性别信息的操作。As yet another implementation manner, the gender information may also be determined according to the Yin and Yang attributes of the name information. A Yin-Yang database is pre-set in the server, and multiple Yin-Yang keywords and Yin-Yang attributes corresponding to each Yin-Yang keyword are set in the Yin-Yang database. For example, if a horse is dry, it is a Yang attribute; The gender information corresponding to the attribute is male, and the gender information corresponding to the negative attribute is female. Then obtain the yin-yang attribute of the target contact identifier, specifically, compare the target contact identifier with the yin-yang keyword in the yin-yang database, find the yin-yang keyword in the target contact identifier, and then according to the relationship between the yin-yang keyword and the yin-yang attribute The corresponding relationship is to determine the yin and yang attributes corresponding to the target contact identifier, and then determine the gender information corresponding to the target contact identifier. If the yin and yang keywords in the target contact ID are not found, you can check whether the text information in the target contact ID corresponds to a title keyword, or you can perform the above-mentioned corresponding relationship between name information and gender information obtained in advance, An operation of acquiring target gender information corresponding to the name information of the target contact.

在根据上述方式确定目标联系人的名字信息对应的目标性别信息之后,再根据预设的性别信息与推荐头像图片的对应关系,获取所述目标性别信息对应的推荐头像图片,将所获取的所述推荐头像图片作为所述目标联系人标识对应的目标头像图片。After determining the target gender information corresponding to the name information of the target contact according to the above method, according to the preset correspondence between the gender information and the recommended avatar picture, the recommended avatar picture corresponding to the target gender information is obtained, and the acquired The recommended avatar picture is used as the target avatar picture corresponding to the target contact identifier.

具体地,推荐头像图片包括与男性对应的男性头像图片以及与女性对应的女性头像图片。如果目标性别信息为男性,则将与男性对应的男性头像图片作为目标头像图片,如果目标性别信息为女性,则将与女性对应的女性头像图片作为目标头像图片。Specifically, the recommended avatar pictures include male avatar pictures corresponding to men and female avatar pictures corresponding to women. If the target gender information is male, the male avatar picture corresponding to the male is used as the target avatar picture, and if the target gender information is female, the female avatar picture corresponding to the female is used as the target avatar picture.

另外,在确定目标性别信息之后,还可以进一步确定该目标联系人标识对应的地域信息,具体地,可以是发送地域请求至数据服务器,其中,该数据服务器包括各数据中介的服务器或者百度、谷歌等数据服务器,该地域请求内包括目标联系人标识。数据服务器在获取到该地域请求之后,分析出该目标联系人标识对应的所有用户的地域分布,从而获取该地域分布最密集的地区,作为该目标联系人标识对应的地域信息,则确定目标联系人标识对应的目标头像图片时,可以根据性别信息和地域信息确定目标头像图片。也就是说,服务器内存储有性别信息以及地域信息与推荐头像信息的对应关系。例如,图2中所示的,陈乾的性别信息为男性,地域信息为中国,则推荐的头像图片为中国的男性头像,而阿克蒙德的性别信息为男性,地域信息为美国,则推荐的头像图片为美国的男性头像,如图9所示,另外,“阿姨”、“聪妹子”、“蔡老师”的性别信息为女性,则所对应的头像图片为女性头像图片。In addition, after the target gender information is determined, the region information corresponding to the target contact identifier can be further determined, specifically, a region request can be sent to a data server, wherein the data server includes servers of various data intermediaries or Baidu, Google and other data servers, the region request includes the target contact identifier. After obtaining the regional request, the data server analyzes the geographical distribution of all users corresponding to the target contact identifier, thereby obtaining the area with the densest geographical distribution, as the regional information corresponding to the target contact identifier, and then determining the target contact When identifying a target avatar picture corresponding to a person, the target avatar picture may be determined according to gender information and region information. That is to say, the server stores gender information and a corresponding relationship between region information and recommended avatar information. For example, as shown in Figure 2, Chen Qian’s gender information is male, and the region information is China, then the recommended avatar picture is a Chinese male avatar, while Archimonde’s gender information is male, and the region information is the United States, then The recommended avatar pictures are male avatars in the United States, as shown in Figure 9. In addition, if the gender information of "Auntie", "Sister Cong" and "Mr. Cai" is female, the corresponding avatar pictures are female avatar pictures.

S608:将预设头像信息作为与所述目标联系人标识对应的目标头像信息。S608: Use preset avatar information as target avatar information corresponding to the target contact identifier.

如果目标联系人标识未对应有名字信息,将预设头像图片作为与所述目标联系人标识对应的目标头像图片。其中,预设头像图片为区别于系统默认头像图片的图片,作为一种实施方式,该预设头像图片可以是风景类图片。如图9中“88156642”对应的风景类图片。If there is no name information corresponding to the target contact ID, the preset avatar picture is used as the target avatar picture corresponding to the target contact ID. Wherein, the preset avatar picture is a picture different from the system default avatar picture, and as an implementation manner, the preset avatar picture may be a landscape picture. The landscape picture corresponding to "88156642" in Figure 9.

S609:将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。S609: Send the target avatar information to the client, instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information.

具体地,在客户端将所述目标联系人标识对应的头像图片更新为所述目标头像图片之前,会在目标联系人标识的附近显示询问窗口,如图10所示,目标联系人标识为“88156642”,则在“88156642”的附近显示询问窗口,用户点击确认或者用户在预设时间内不对询问窗口不做任何操作的情况下,客户端将88156642对应的头像图片更新为目标头像图片,即图中的风景类图片。Specifically, before the client updates the avatar picture corresponding to the target contact ID to the target avatar picture, an inquiry window will be displayed near the target contact ID, as shown in Figure 10, the target contact ID is " 88156642", the query window will be displayed near "88156642". If the user clicks OK or does not perform any operation on the query window within the preset time, the client will update the avatar picture corresponding to 88156642 to the target avatar picture, that is Landscape pictures in the picture.

另外,客户端在更新目标联系人标识对应的头像图片之后,还会在定时再次更新目标联系人标识对应的头像图片,并且更新的时候,读取预先获取的目标联系人标识对应的性别信息,根据该性别信息推送不同的头像图片至客户端,以更新目标联系人标识对应的头像图片。如图9中的“聪妹子”,请称谓关键字为“妹子”,对应的性别信息为女性,所对应的头像图片为第一女性头像图片,则在一定时间之后,客户端自动将“聪妹子”对应的头像图片更新为第二女性头像图片,如图11所示。In addition, after updating the avatar picture corresponding to the target contact ID, the client will update the avatar picture corresponding to the target contact ID again at regular intervals, and when updating, read the pre-acquired gender information corresponding to the target contact ID, Push different avatar pictures to the client according to the gender information, so as to update the avatar picture corresponding to the target contact ID. As shown in Figure 9, "Sister Cong", please call the keyword "Sister", the corresponding gender information is female, and the corresponding avatar picture is the first female avatar picture, then after a certain period of time, the client will automatically add "Cong The avatar picture corresponding to "Sister" is updated to the second female avatar picture, as shown in Figure 11.

另外,用户还能够更改联系人标识对应的性别信息,例如,客户端将“蔡老师”的性别信息设置为女性,并将“蔡老师”的头像图片设置为男性头像图片,用户发觉蔡老师的性别信息不对,明明是男性却被设置为女性,则用户发送更改请求,其中,更改请求包括“蔡老师”,即待修改联系人标识,以及,女性,即所对应的性别信息,服务器将“蔡老师”对应的男性修改为女性,即修改了待修改联系人标识对应的性别信息,并且,根据修改后的性别信息重新确认了所对应的头像图片,即女性头像图片,发送至客户端,以使客户端将“蔡老师”的头像图片更新为女性头像图片。In addition, the user can also change the gender information corresponding to the contact identifier. For example, the client sets the gender information of "Teacher Cai" to female, and sets the avatar picture of "Teacher Cai" to a male avatar picture. If the gender information is incorrect, and it is set as female despite being male, the user sends a change request, where the change request includes "Ms. Cai", the contact ID to be modified, and female, the corresponding gender information, the server will " The male corresponding to Teacher Cai" is changed to female, that is, the gender information corresponding to the contact ID to be modified is modified, and the corresponding avatar picture is reconfirmed according to the modified gender information, that is, the female avatar picture, and sent to the client. In order for the client to update the avatar picture of "Teacher Cai" to a female avatar picture.

请参阅图12,本申请实施例提供了一种头像信息处理装置1200,该装置用于解决现有的联系人列表的头像过于单一的问题。本实施例中,该装置为服务器内的功能模块,具体地,该装置包括:获取单元1201、查找单元1202、确定单元1203和更新单元1204。Referring to FIG. 12 , the embodiment of the present application provides an avatar information processing apparatus 1200 , which is used to solve the problem that the avatars in the existing contact list are too single. In this embodiment, the device is a functional module in the server. Specifically, the device includes: an acquiring unit 1201 , a searching unit 1202 , a determining unit 1203 and an updating unit 1204 .

获取单元1201,用于获取客户端内联系人标识对应的头像信息。The obtaining unit 1201 is configured to obtain the avatar information corresponding to the contact ID in the client.

查找单元1202,用于将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识。The search unit 1202 is configured to use, among all the avatar information, the contact ID corresponding to the avatar information that satisfies a preset condition as the target contact ID.

确定单元1203,用于确定与所述目标联系人标识对应的目标头像信息。A determining unit 1203, configured to determine target avatar information corresponding to the target contact identifier.

更新单元1204,用于将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。An updating unit 1204, configured to send the target avatar information to the client, instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and units can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.

请参阅图13,基于上述方法和装置,提供给了一种服务器。该服务器1300包括存储器1302和处理器1301,所述存储器1302与所述处理器1301耦合;所述存储器1302存储指令,当所述指令由所述处理器1301执行时以使所述处理器1301执行上述方法。Please refer to FIG. 13 , based on the above method and device, a server is provided. The server 1300 includes a memory 1302 and a processor 1301, the memory 1302 is coupled with the processor 1301; the memory 1302 stores instructions, and when the instructions are executed by the processor 1301, the processor 1301 is executed the above method.

所述存储器1302可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器1302内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器1302可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,所述存储器1302可进一步包括相对于所述处理器1301远程设置的存储器,这些远程存储器可以通过网络连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 1302 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302 . The memory 1302 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1302 may further include memory that is remotely located relative to the processor 1301, and these remote memories may be connected to the processor through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

综上所述,本申请实施例提供的头像信息处理方法、装置、服务器及计算机可读介质,首先获取客户端中联系人标识对应的头像信息,并对所有的头像信息做一个筛选,即将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识。则该目标联系人标识就为需要对其对应的头像信息设置的联系人标识,具体地,确定与所述目标联系人标识对应的目标头像信息,将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。因此,能够对客户端的联系人标识对应的头像进行设置,即使用户为对联系人标识的头像信息进行设置,本申请实施例也能够将满足预设条件联系人标识的头像信息更新,从而提高用户体验度。To sum up, the avatar information processing method, device, server, and computer-readable medium provided by the embodiments of the present application first obtain the avatar information corresponding to the contact ID in the client, and perform a screening on all avatar information, that is, all In the avatar information, the contact identifier corresponding to the avatar information that meets the preset condition is used as the target contact identifier. Then the target contact identifier is the contact identifier that needs to be set for its corresponding avatar information, specifically, determine the target avatar information corresponding to the target contact identifier, and send the target avatar information to the client , instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information. Therefore, the avatar corresponding to the contact ID of the client can be set. Even if the user does not set the avatar information of the contact ID, the embodiment of the present application can also update the avatar information of the contact ID that meets the preset condition, thereby improving user experience.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.

在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(移动终端),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment for use. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connection with one or more wires (mobile terminal), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.

应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included. In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (10)

1.一种头像信息处理方法,其特征在于,包括:1. A method for processing profile picture information, comprising: 获取客户端中联系人标识对应的头像信息;Obtain the avatar information corresponding to the contact ID in the client; 将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识;Taking the contact identifier corresponding to the avatar information that satisfies the preset condition among all the avatar information as the target contact identifier; 确定与所述目标联系人标识对应的目标头像信息;Determining target avatar information corresponding to the target contact identifier; 将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。Sending the target avatar information to the client, instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information. 2.根据权利要求1所述的方法,其特征在于,所述确定与所述目标联系人标识对应的目标头像信息,包括:2. The method according to claim 1, wherein the determining the target avatar information corresponding to the target contact identifier comprises: 判断所述目标联系人标识是否对应有应用程序的用户账号;Judging whether the target contact identifier corresponds to a user account with an application program; 若对应有应用程序的用户账号,获取所述用户账号对应的头像信息;If there is a user account corresponding to the application program, obtain the avatar information corresponding to the user account; 将所述用户账号对应的头像信息作为与所述目标联系人标识对应的目标头像信息。The avatar information corresponding to the user account is used as the target avatar information corresponding to the target contact identifier. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 若未对应有应用程序的用户账号,判断所述目标联系人标识是否对应有名字信息;If there is no user account corresponding to the application program, determine whether the target contact identifier corresponds to name information; 若对应有名字信息,获取所述名字信息的身份属性,根据所述身份属性确定与所述目标联系人标识对应的目标头像信息;If there is name information correspondingly, the identity attribute of the name information is obtained, and the target avatar information corresponding to the target contact identifier is determined according to the identity attribute; 若未对应有名字信息,将预设头像信息作为与所述目标联系人标识对应的目标头像信息。If there is no corresponding name information, the preset avatar information is used as the target avatar information corresponding to the target contact identifier. 4.根据权利要求3所述的方法,其特征在于,所述身份属性包括性别信息,所述获取所述名字信息的身份属性,根据所述身份属性确定所述目标联系人标识对应的目标头像信息,包括:4. The method according to claim 3, wherein the identity attribute includes gender information, the acquiring the identity attribute of the name information, and determining the target avatar corresponding to the target contact identifier according to the identity attribute information, including: 根据预先获取的名字信息与性别信息的对应关系,获取所述目标联系人的名字信息对应的目标性别信息;Acquire target gender information corresponding to the name information of the target contact according to the pre-acquired correspondence between name information and gender information; 根据预设的性别信息与推荐头像信息的对应关系,获取所述目标性别信息对应的推荐头像信息;Acquiring recommended avatar information corresponding to the target gender information according to the preset correspondence between gender information and recommended avatar information; 将所获取的所述推荐头像信息作为所述目标联系人标识对应的目标头像信息。The acquired recommended avatar information is used as the target avatar information corresponding to the target contact identifier. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. method according to claim 4, is characterized in that, described method also comprises: 若未获取到所述目标联系人的名字信息对应的目标性别信息,发送提示信息至所述客户端,以提醒客户端的用户未找到与所述目标联系人对应的目标性别信息;If the target gender information corresponding to the name information of the target contact is not obtained, send a prompt message to the client to remind the user of the client that the target gender information corresponding to the target contact is not found; 获取所述客户端发送的身份确认请求,所述身份确认请求包括用户基于所述提醒信息输入的与所述目标联系人的名字信息对应的目标性别信息。Obtain an identity confirmation request sent by the client, where the identity confirmation request includes target gender information corresponding to the name information of the target contact entered by the user based on the reminder information. 6.根据权利要求3所述的方法,其特征在于,所述身份属性包括性别信息,所述获取所述名字信息的身份属性,根据所述身份属性确定所述目标联系人标识对应的目标头像信息,包括:6. The method according to claim 3, wherein the identity attribute includes gender information, the acquiring the identity attribute of the name information, and determining the target avatar corresponding to the target contact identification according to the identity attribute information, including: 获取所述名字信息内用于表示称谓的称谓关键字;Obtaining the title keyword used to represent the title in the name information; 根据所述称谓关键字确定所述目标联系人的名字信息对应的目标性别信息;determining the target gender information corresponding to the name information of the target contact according to the title keyword; 根据预设的性别信息与推荐头像信息的对应关系,获取所述目标性别信息对应的推荐头像信息;Acquiring recommended avatar information corresponding to the target gender information according to the preset correspondence between gender information and recommended avatar information; 将所获取的所述推荐头像信息作为所述目标联系人标识对应的目标头像信息。The acquired recommended avatar information is used as the target avatar information corresponding to the target contact identifier. 7.根据权利要求1-6任一项所述的方法,其特征在于,所述将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识,包括:7. The method according to any one of claims 1-6, wherein the use of the contact ID corresponding to the avatar information that satisfies preset conditions among all the avatar information as the target contact ID includes: 将所有所述头像信息中,属于系统默认头像信息的头像信息对应的联系人标识作为目标联系人标识。Among all the avatar information, the contact identifier corresponding to the avatar information belonging to the system default avatar information is used as the target contact identifier. 8.一种头像信息处理装置,其特征在于,包括:8. An avatar information processing device, characterized in that it comprises: 获取单元,用于获取客户端内联系人标识对应的头像信息;An acquisition unit, configured to acquire the avatar information corresponding to the contact ID in the client; 查找单元,用于将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识;A search unit, configured to use the contact identifier corresponding to the avatar information that satisfies the preset condition among all the avatar information as the target contact identifier; 确定单元,用于确定与所述目标联系人标识对应的目标头像信息;A determining unit, configured to determine target avatar information corresponding to the target contact identifier; 更新单元,用于将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。An updating unit, configured to send the target avatar information to the client, and instruct the client to update the avatar information corresponding to the target contact identifier to the target avatar information. 9.一种服务器,其特征在于,包括存储器和处理器,所述存储器与所述处理器耦合;所述存储器存储指令,当所述指令由所述处理器执行时以使所述处理器执行以下操作:9. A server, characterized in that it includes a memory and a processor, the memory is coupled to the processor; the memory stores instructions, and when the instructions are executed by the processor, the processor executes Do the following: 获取客户端内联系人标识对应的头像信息;Obtain the avatar information corresponding to the contact ID in the client; 将所有所述头像信息中,满足预设条件的头像信息对应的联系人标识作为目标联系人标识;Taking the contact identifier corresponding to the avatar information that satisfies the preset condition among all the avatar information as the target contact identifier; 确定与所述目标联系人标识对应的目标头像信息;Determining target avatar information corresponding to the target contact identifier; 将所述目标头像信息发送至所述客户端,指示所述客户端将所述目标联系人标识对应的头像信息更新为所述目标头像信息。Sending the target avatar information to the client, instructing the client to update the avatar information corresponding to the target contact identifier to the target avatar information. 10.一种具有处理器可执行的程序代码的计算机可读介质,其特征在于,所述程序代码使所述处理器执行所述权利要求1-7任一项所述方法。10. A computer-readable medium having a program code executable by a processor, wherein the program code causes the processor to execute the method according to any one of claims 1-7.
CN201810189567.6A 2018-03-08 2018-03-08 Avatar information processing method, device, server and computer readable medium Pending CN108494938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810189567.6A CN108494938A (en) 2018-03-08 2018-03-08 Avatar information processing method, device, server and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810189567.6A CN108494938A (en) 2018-03-08 2018-03-08 Avatar information processing method, device, server and computer readable medium

Publications (1)

Publication Number Publication Date
CN108494938A true CN108494938A (en) 2018-09-04

Family

ID=63337976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810189567.6A Pending CN108494938A (en) 2018-03-08 2018-03-08 Avatar information processing method, device, server and computer readable medium

Country Status (1)

Country Link
CN (1) CN108494938A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618018A (en) * 2018-12-17 2019-04-12 北京达佳互联信息技术有限公司 User's method for displaying head portrait, device, terminal, server and storage medium
CN109995749A (en) * 2019-01-11 2019-07-09 刘高峰 A kind of user's head portrait processing method, apparatus and system
CN110086638A (en) * 2019-04-29 2019-08-02 上海掌门科技有限公司 For updating method, electronic equipment and the computer-readable medium of buddy list
CN112995927A (en) * 2021-02-09 2021-06-18 广州启生信息技术有限公司 Method and device for processing 5G message user head portrait display
CN114285814A (en) * 2021-12-27 2022-04-05 维沃移动通信有限公司 Chat parameter setting method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104650A (en) * 2011-01-12 2011-06-22 宇龙计算机通信科技(深圳)有限公司 Contact photo setting method, device and mobile communication terminal
CN102143485A (en) * 2011-03-22 2011-08-03 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for associating contact in address book thereof with user in social networking site
CN103369100A (en) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for generating head portrait of contact person
CN104158895A (en) * 2014-08-22 2014-11-19 深圳市中兴移动通信有限公司 Mobile terminal, contact photo management method thereof and remote server
CN105512186A (en) * 2015-11-25 2016-04-20 用友网络科技股份有限公司 Contact photo generation method and generation device
US9332101B1 (en) * 2007-11-12 2016-05-03 Google Inc. Contact cropping from images

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9332101B1 (en) * 2007-11-12 2016-05-03 Google Inc. Contact cropping from images
CN102104650A (en) * 2011-01-12 2011-06-22 宇龙计算机通信科技(深圳)有限公司 Contact photo setting method, device and mobile communication terminal
CN102143485A (en) * 2011-03-22 2011-08-03 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for associating contact in address book thereof with user in social networking site
CN103369100A (en) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for generating head portrait of contact person
CN104158895A (en) * 2014-08-22 2014-11-19 深圳市中兴移动通信有限公司 Mobile terminal, contact photo management method thereof and remote server
CN105512186A (en) * 2015-11-25 2016-04-20 用友网络科技股份有限公司 Contact photo generation method and generation device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618018A (en) * 2018-12-17 2019-04-12 北京达佳互联信息技术有限公司 User's method for displaying head portrait, device, terminal, server and storage medium
CN109618018B (en) * 2018-12-17 2022-05-03 北京达佳互联信息技术有限公司 User head portrait display method, device, terminal, server and storage medium
CN109995749A (en) * 2019-01-11 2019-07-09 刘高峰 A kind of user's head portrait processing method, apparatus and system
CN110086638A (en) * 2019-04-29 2019-08-02 上海掌门科技有限公司 For updating method, electronic equipment and the computer-readable medium of buddy list
CN112995927A (en) * 2021-02-09 2021-06-18 广州启生信息技术有限公司 Method and device for processing 5G message user head portrait display
CN112995927B (en) * 2021-02-09 2024-02-02 广州启生信息技术有限公司 Method and device for processing 5G message user head portrait display
CN114285814A (en) * 2021-12-27 2022-04-05 维沃移动通信有限公司 Chat parameter setting method and device, electronic equipment and storage medium
CN114285814B (en) * 2021-12-27 2024-05-31 维沃移动通信有限公司 Chat parameter setting method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108494938A (en) Avatar information processing method, device, server and computer readable medium
US9230257B2 (en) Systems and methods for customer relationship management
US10353969B2 (en) Identifying relationships in an online social network
US10326715B2 (en) System and method for updating information in an instant messaging application
CN107872534B (en) Information push method, device, server and readable storage medium
CN108306956A (en) Information pushing method and device, server and computer readable medium
US20130282835A1 (en) Filtering Message Posts in a Social Network
US20130097124A1 (en) Automatically aggregating contact information
JP2019511775A (en) Techniques for messaging bot rich communication
CN109492152B (en) Method, device, computer equipment and storage medium for pushing custom content
US20140280005A1 (en) System and method for tag-based social networking
WO2020228030A1 (en) Device recommendation method and apparatus, electronic device, and storage medium
CN106981029A (en) System and method for developing deep interpersonal social network based on supply and demand candidate recommendation
US20140229539A1 (en) System and method for tag-based social networking
CN111557014B (en) Method and system for providing multiple personal data
CN107908686A (en) Information-pushing method, device, server and readable storage medium storing program for executing
CN109377401A (en) A kind of data processing method, device, system, server and storage medium
CN112204527A (en) Method and system for processing engineering data in a multi-engineering system environment
US7865842B2 (en) Instant messaging real-time buddy list lookup
US11436292B2 (en) Geographic location based feed
CN113505265A (en) Data query method and device, electronic equipment, storage medium and program product
US20190012601A1 (en) Information visualization method for user group decision making, and user terminal using said method, operation method of server providing information for user group decision making, and server apparatus using said method
CN107948047B (en) User recommendation method and terminal
CN112513829B (en) Customizing content presentation based on surface type application templates
CN113313196A (en) Annotation data processing method, related device and computer program product

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180904

RJ01 Rejection of invention patent application after publication