CN109995749A - A kind of user's head portrait processing method, apparatus and system - Google Patents

A kind of user's head portrait processing method, apparatus and system Download PDF

Info

Publication number
CN109995749A
CN109995749A CN201910024208.XA CN201910024208A CN109995749A CN 109995749 A CN109995749 A CN 109995749A CN 201910024208 A CN201910024208 A CN 201910024208A CN 109995749 A CN109995749 A CN 109995749A
Authority
CN
China
Prior art keywords
user
account
target account
head portrait
type
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.)
Granted
Application number
CN201910024208.XA
Other languages
Chinese (zh)
Other versions
CN109995749B (en
Inventor
刘高峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910024208.XA priority Critical patent/CN109995749B/en
Publication of CN109995749A publication Critical patent/CN109995749A/en
Application granted granted Critical
Publication of CN109995749B publication Critical patent/CN109995749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/104Grouping of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of user's head portrait processing methods, apparatus and system, which comprises stores the user data of multiple users, the user data of each user includes multiple accounts of the user and first user's head portrait of the user;When receiving the acquisition request for obtaining user's head portrait, the target account for including in the acquisition request is obtained;Determine the account type of the target account;The corresponding user's head portrait of the target account is not obtained or obtained according to the account type of the target account.The implementation of this method; it realizes and does not provide user's head portrait according to the account type of target account or corresponding user's head portrait is provided; prevent malicious persons are from going out the different account informations of same user according to user's head portrait association analysis, to play the purpose of protection userspersonal information.

Description

User head portrait processing method, device and system
Technical Field
The invention relates to the technical field of internet, in particular to a user head portrait processing method, device and system.
Background
With the development of internet applications, network applications such as instant messaging, microblog, social contact, payment, live broadcast and the like are widely applied.
In the using process of the network application, the user identifies the user identity through the user head portrait, the account number, the nickname, the remark information and the like, and because the user head portrait is displayed in the form of an image, the display of the user head portrait provides very high identification degree for the user identity in the network application compared with the account number, the nickname and the remark information displayed in the form of text, so that the identity of the user can be obviously distinguished in various displays of the network application, and the use experience of the user in the network application is enhanced.
Meanwhile, in the use process of the network application, a user usually provides accounts such as social accounts, mobile phone numbers or electronic mailboxes, so that other users can search the user, and the other users can add the user as a friend or perform interaction through the accounts; meanwhile, the network application system also generates corresponding associated accounts when generating the two-dimensional code and making friends at the geographic position for the user, so that other users can add the user as a friend or perform interaction and the like according to the associated accounts.
However, due to the characteristic of high recognition degree of the user head portrait, a person with malicious intent can perform correlation analysis of different accounts of the user according to the user head portrait, so that the personal information of the user can be acquired to a certain extent.
For example, malicious people collect a large amount of owner information of a certain residential community in advance, wherein the owner information comprises a mobile phone number or an email of an owner; malicious personnel search the user head portrait of the user in the network application according to the mobile phone number or the electronic mailbox included in the owner information, for example, add a friend by the mobile phone number or the electronic mailbox, enter the personal page of the user, do not actually send a request for adding the friend, and only obtain the user head portrait displayed in the personal page; malicious personnel establish a user head database, and associate and store the acquired user head portrait and owner information such as a mobile phone number or an electronic mailbox corresponding to the user head portrait in the user head database; then malicious persons obtain the user head portraits of stranger users in the network application in a mode of making friends in the geographical position (for example, similar to a person nearby in WeChat) in or near the residential district; comparing the obtained user head portraits of the strange users in the network application in a user head database, and if the same or similar user head portraits are compared, determining the personal information of the strange users in the network application, namely determining the identity information of the strange users in the network application, which is a real owner in the residential community; thus, malicious persons can promote, harass, even cheat, etc. the user.
For another example, malicious personnel join a group of a certain residential community in network application, and acquire a user avatar of each group member in a mode of viewing group member information; then malicious personnel obtain the user head portrait of the strange user in the network application in a mode of making friends in the geographical position in or near the residential district; comparing the obtained user head portrait of the strange user in the network application with the user head portraits of the members of the residential community group, and if the same or similar user head portraits are compared, determining the personal information of the strange user in the network application, namely determining that the strange user in the network application is a member of the residential community group; thus, malicious persons can promote, harass, even cheat, etc. the user.
Further, the personal information obtained by the malicious person may not be limited to a certain residential district, for example, the malicious person may also know the mobile phone number segment range of a certain city in advance through a public way; then all mobile phone numbers in the mobile phone number segment range are used for acquiring corresponding user head portraits in network application, and the user head portraits and the corresponding mobile phone numbers are stored in a user head database in a correlated mode; then, when a malicious person acquires an account such as a two-dimensional code account, a subscription user account, a geographic position account, an electronic business card account or a group user account, searching a user head portrait corresponding to the account in network application; then, comparing the user head portrait corresponding to the account in a user head portrait database of the city, so that the mobile phone number of the account can be compared; if the mobile phone number is compared, malicious personnel can promote, harass or even cheat the user of the account number through the compared mobile phone number.
Disclosure of Invention
The invention aims to provide a user head portrait processing method, a user head portrait processing device and a user head portrait processing system, so that malicious personnel cannot analyze different account information of the same user according to the head portrait association of the user by not providing a user head portrait or providing a corresponding user head portrait according to the account type of a target account, and the purpose of protecting personal information of the user is achieved.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, a method for processing a user avatar is provided, the method including:
storing user data for a plurality of users, the user data for each user including a plurality of accounts for the user and a first user avatar for the user;
when an acquisition request for acquiring a head portrait of a user is received, acquiring a target account included in the acquisition request;
determining the account type of the target account;
and according to the account type of the target account, not obtaining or obtaining the user head portrait corresponding to the target account.
Preferably, the determining the account type of the target account includes:
identifying the format of the target account according to a preset account format rule so as to determine the account type of the target account; or,
the acquisition request also comprises account type information of the target account, and the account type of the target account is determined according to the account type information; or,
and searching an account type identifier corresponding to the target account, and determining the account type of the target account according to the account type identifier.
Preferably, the identifying the format of the target account according to the preset account format rule includes:
and identifying the target account according to the length of the account, or/and the character type contained in the account, or/and the specific identification contained in the account.
Preferably, the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account includes:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
and if the account type of the target account is any one of another preset account type or another preset account types, not acquiring the head portrait of the first user of the user to which the target account belongs.
Preferably, the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account further includes:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
otherwise, the head portrait of the first user of the user to which the target account belongs is not acquired.
Preferably, the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account further includes:
if the account type of the target account is any one of one or more preset account types, not acquiring a first user head portrait of a user to which the target account belongs;
otherwise, acquiring the head portrait of the first user of the user to which the target account belongs.
Preferably, the step of not acquiring the first user avatar of the user to which the target account belongs includes:
not acquiring a user head portrait of a user to which the target account belongs; or,
and acquiring a second user head portrait corresponding to the target account.
Preferably, the acquiring the second user avatar corresponding to the target account includes:
selecting a user head portrait from user head portraits pre-stored in a system as a second user head portrait corresponding to the target account; or,
acquiring a second user head portrait pre-generated by the system for the user to which the target account belongs; or,
and acquiring a second user head portrait preset by the user to which the target account belongs.
Preferably, the selecting a user avatar from user avatars pre-stored in the system as the second user avatar corresponding to the target account includes:
a user head portrait is pre-stored in the system, and is selected as a second user head portrait corresponding to the target account; or,
a plurality of user head portraits are pre-stored in the system, and one of the user head portraits is selected as a second user head portrait corresponding to the target account in sequence or randomly; or,
a plurality of user head portraits are stored in the system in advance, and corresponding user head portraits are selected as second user head portraits corresponding to the target account according to the basic user information of the user to which the target account belongs.
Preferably, the second user avatar pre-generated by the system for the user to which the target account belongs includes:
generating a second user head portrait based on the first user head portrait of the user to which the target account belongs; or,
generating a second user head portrait according to the basic user information of the user to which the target account belongs; or,
and the second user head portrait is synthesized according to a plurality of materials selected by the user in the head portrait material library.
Preferably, the generating the second user avatar based on the first user avatar of the user to which the target account belongs includes:
and the second user head portrait is generated after the first user head portrait of the user to which the target account belongs is operated by executing one or more of deformation operation, change operation, transformation operation, special effect operation and color adjustment operation.
In a second aspect, a user avatar processing system is provided, the system comprising:
a user database: storing user data for a plurality of users, the user data for each user including a plurality of accounts for the user and a first user avatar for the user;
the user head portrait acquisition module: the method comprises the steps that when an acquisition request for acquiring a head portrait of a user is received, a target account included in the acquisition request is acquired; determining the account type of the target account; and according to the account type of the target account, not obtaining or obtaining the user head portrait corresponding to the target account.
Preferably, the user head portrait acquiring module includes:
an acquisition request receiving submodule: the system comprises a server and a server, wherein the server is used for receiving an acquisition request for acquiring a head portrait of a user and acquiring a target account included in the acquisition request;
an account type determining submodule: the account type of the target account is determined;
the head portrait acquisition execution submodule: and the method is used for not acquiring or acquiring the user head portrait corresponding to the target account according to the account type of the target account.
Preferably, the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account includes:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
and if the account type of the target account is any one of another preset account type or another preset account types, not acquiring the head portrait of the first user of the user to which the target account belongs.
Preferably, the user head portrait acquiring module further includes:
a first processing submodule: the system comprises a server, a server and a server, wherein the server is used for presetting one or more account types and presetting a first user head portrait type; when a first acquisition request for acquiring a head portrait of a user is received, acquiring a first target account in the first acquisition request; determining an account type of the first target account; judging whether the account number type of the first target account number is any one of one or more account number types preset by the first processing submodule; if so, acquiring a first user head portrait of the user to which the first target account belongs;
a second processing submodule: the method comprises the steps of presetting another or other account types and presetting a type of not acquiring a first user head portrait; when a second acquisition request for acquiring the head portrait of the user is received, acquiring a second target account in the second acquisition request; determining the account type of the second target account; judging whether the account type of the second target account is any one of another or another account types preset by the second processing submodule; and if so, not acquiring the head portrait of the first user of the user to which the second target account belongs.
Preferably, the first processing sub-module includes a first receiving unit, a first determining unit, and a first executing unit, and the second processing sub-module includes a second receiving unit, a second determining unit, and a second executing unit, and specifically includes:
the first receiving unit: the system comprises a first acquisition request used for receiving the head portrait of the user and acquiring the first target account included in the first acquisition request;
the first determination unit: the account type of the first target account is determined;
the first execution unit: the first processing submodule is used for processing the first target account number according to the account number type of the first target account number; if so, acquiring a first user head portrait of the user to which the first target account belongs;
the second receiving unit: the second acquisition request is used for receiving the second acquisition request for acquiring the head portrait of the user, and the second target account included in the second acquisition request is acquired;
the second determination unit: the account type of the second target account is determined;
the second execution unit: the second processing submodule is used for judging whether the account type of the second target account is any one of another or another account types preset by the second processing submodule; and if so, not acquiring the head portrait of the first user of the user to which the second target account belongs.
In a third aspect, a user avatar processing apparatus, device or server is provided, which includes: the device comprises a memory and a processor, wherein the processor is used for operating a program stored in the memory, and the program executes the user head portrait processing method during operation.
There is provided a storage medium having a program stored therein for implementing the user avatar processing method.
Compared with the prior art, the user head portrait processing method, the device and the system provided by the invention have the advantages that the user head portrait is not provided or the corresponding user head portrait is provided according to the account number type of the target account number, so that malicious personnel cannot analyze different account number information of the same user according to the user head portrait association, and the purpose of protecting the personal information of the user is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic flow chart of a first embodiment of a user avatar processing method according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for processing a user avatar according to the present invention;
FIG. 3 is a block diagram of a first embodiment of a user avatar processing system according to the present invention;
FIG. 4 is a block diagram of a second embodiment of a user avatar processing system according to the present invention;
FIG. 5 is a block diagram of a third embodiment of a user avatar processing system according to the present invention;
fig. 6 is a block diagram of a fourth embodiment of a user avatar processing system according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Embodiment one of user head portrait processing method
Referring to fig. 1, fig. 1 is a schematic flow chart of a user avatar processing method according to a first embodiment of the present invention. The method comprises the following steps:
s101, storing user data of a plurality of users, wherein the user data of each user comprises a plurality of accounts of the user and a first user head portrait of the user.
Storing user data of a plurality of users in the system may also be understood as storing user data of a large number of users, each user's user data comprising a plurality of accounts of the user and a first user avatar of the user.
The multiple accounts of the user in the system may include a primary account of the user and one or more associated accounts of the user, the primary account refers to an account associated with user information such as a first user avatar of the user, and the associated account refers to an account associated with the primary account of the user.
Further, the associated account may include one or more of a social account, a mobile phone number, an email, a two-dimensional account, a subscription user account, a geographic location account, an electronic business card account, or a group user account. The two-dimension code account number refers to an account number which is generated for the user in the two-dimension code information and is associated with the primary account number of the user when the user generates the two-dimension code; the subscription user account refers to an account which is generated when a user pays attention to or subscribes to services in a system and is associated with a primary account of the user; the geographic position account refers to an account which is generated when a user makes friends through a geographic position or releases geographic position information and is associated with a primary account of the user; the electronic business card account refers to an account which is generated when a user shares information through an electronic business card and is associated with a primary account of the user; the group user account refers to an account which is generated when a user joins a group and is associated with a primary account of the user.
And establishing an association relation between each associated account of the user and the primary account of the user, so that the primary account of the user can be acquired in the system according to the associated account of the user. For example, if the associated account number of the user is a mobile phone number, establishing an association relationship between the mobile phone number and the primary account number of the user, and acquiring the primary account number of the user according to the mobile phone number; if the associated account of the user is the two-dimensional code account, establishing an association relationship between the two-dimensional code account and the primary account of the user, and acquiring the primary account of the user according to the two-dimensional code account.
And establishing an incidence relation between the primary account number of the user and the first user head portrait of the user, so that the first user head portrait of the user can be acquired in the system according to the primary account number of the user. And because the primary account of the user can be obtained according to the associated account of the user, the first user head portrait of the user can be obtained according to the associated account of the user. Meanwhile, the association relationship between the associated account of the user and the first user avatar of the user can be directly established, so that the first user avatar of the user can be directly acquired according to the associated account of the user.
The embodiments of the relationship between the primary account number and the associated account number, and the first user avatar, may include various embodiments, for example:
table 1 shows an embodiment of user data, in which each line of data is user data of one user, so that a primary account number, an associated account number and a first user icon in the user data are all associated with each other. If the first user icon of the user to which one account belongs is to be acquired, no matter whether the account is a primary account or a related account, the corresponding first user icon can be directly acquired in table 1 according to the account, that is, the first user icon of the user to which the account belongs is acquired.
Table 1: user data table
Primary account number Associated account First user head portrait
User1 User1a Img1
User2 User2a Img2
User3 User3a Img3
Tables 2 and 3 show another embodiment of user data, where in table 2, each row of data associates a primary account number of a user with a first user avatar of the user; in table 3, each row of data associates a primary account number of a user with an associated account number of the user. If a first user head portrait of a user to which an account belongs is to be acquired, if the account is a primary account, a corresponding first user head portrait can be directly acquired in table 2 according to the account, that is, the first user head portrait of the user to which the account belongs is acquired; if the account is a related account, a corresponding primary account may be obtained in table 3 according to the account, and a corresponding first user avatar may be obtained in table 2 according to the corresponding primary account, where the obtained first user avatar is a first user avatar of a user to which the account belongs.
Table 2: another user data table (1)
Primary account number First user head portrait
User1 Img1
User2 Img2
User3 Img3
Table 3: another user data table (2)
Associated account Primary account number
User1b User1
User2b User2
User3b User3
S102, when an obtaining request for obtaining the head portrait of the user is received, a target account included in the obtaining request is obtained.
The request for acquiring the user avatar may be an acquisition request for acquiring only the user avatar, or an acquisition request for acquiring user information including the user avatar and the like.
The method comprises the steps that a received acquisition request for acquiring the head portrait of the user comprises a target account, and a system acquires the target account included in the acquisition request.
The target account included in the acquisition request can also be a mapping relation between a unique character string and the target account pre-established in the system, the unique character string is included in the acquisition request, and when the system receives the acquisition request including the unique character string, the target account is acquired in the mapping relation according to the unique character string.
And S103, determining the account type of the target account.
In the system, the accounts can be pre-divided into different account types.
For example, the account number may be divided into a primary account number type and an associated account number type, and the primary account number and the associated account number included in the above system belong to the primary account number type and the associated account number type, respectively.
For another example, the account may be divided into a mobile phone number type, an email type, other account types, and the like, and the account conforming to the corresponding account format is determined to be the corresponding account type.
For example, the account may be divided into a first account type, a second account type, and the like, the primary account and/or one or more associated accounts may belong to the first account type, and the other one or more associated accounts may belong to the second account type.
And according to the division rule of the account number type, after receiving the acquisition request, determining the account number type of the target account number according to the division rule. The method specifically comprises a plurality of embodiments, and at least comprises the following steps:
in a first implementation manner, the format of the target account is identified according to a preset account format rule, so as to determine the account type of the target account.
Specifically, the account type of the target account may be identified according to account format rules, such as account length, or/and character type included in the account, or/and specific identifier included in the account.
For example, taking the case that the account is divided into a mobile phone number type, an email box type and other account types, if the target account is identified to conform to the mobile phone number format, the target account is determined to be the mobile phone number type; if the target account number is identified to conform to the e-mail box format, determining that the target account number is of the e-mail box type; otherwise, the target account is determined to be of another account type.
For another example, when an account is created for a user in the system, a specific identifier for identifying an account type is set at a prefix or a corresponding position of the account, and then, if a preset specific identifier is identified at the prefix or the corresponding position of a target account, the account type of the target account is determined to be the account type corresponding to the specific identifier. Taking the example of dividing the account into a first account type and a second account type, if a preset specific identifier corresponding to the first account type is identified at a corresponding position of the target account, determining that the target account is the first account type; and if a preset specific identifier corresponding to the second account type is recognized at the corresponding position of the target account, determining that the target account is the second account type.
Further, for example, taking the case that the account is divided into a first account type and a second account type, if it is recognized that the target account conforms to the mobile phone number format, it is determined that the target account is the first account type; and if the target account is identified to conform to the e-mail box format, determining that the target account is of a second account type.
In a second implementation manner, the acquisition request further includes account type information of the target account, and the account type of the target account is determined according to the account type information.
When the sender sends the acquisition request, the acquisition request also comprises account type information of the target account, and the system determines the account type of the target account according to the account type information.
For example, the client of the sender recognizes the account type of the target account in advance before sending the acquisition request, the recognition method may refer to the recognition method in the first embodiment, after the client of the sender recognizes the account type of the target account, the sent acquisition request includes account type information corresponding to the recognized account type, and after receiving the acquisition request, the system determines the account type of the target account according to the account type information.
For another example, a two-dimensional code business card is generated for a user, the generated two-dimensional code includes the target account and account type information of the target account, a client of a sender scans the two-dimensional code and sends the acquisition request according to information analyzed from the two-dimensional code, the acquisition request includes the target account and account type information of the target account, and after receiving the acquisition request, a system determines the account type of the target account according to the account type information.
In a third implementation manner, an account type identifier corresponding to the target account is searched, and the account type of the target account is determined according to the account type identifier.
When the account such as the target account is created, a corresponding account type identifier is set for the account in the system, after the system receives an acquisition request, the account type identifier corresponding to the target account is searched, and the account type of the target account is determined according to the searched account type identifier.
For example, taking the account type as an example, the account type is divided to include a first account type and a second account type, and when an account is created and stored for a user, a corresponding account type identifier is stored for the account. Table 4 provides an example of storing corresponding account Type identifiers for User accounts, where the account Type identifiers corresponding to the associated accounts User1c and User2c are Type1, and indicate that the associated accounts User1c and User2c are the first account Type; the account Type identifier corresponding to the associated account User3c is Type2, which indicates that the associated account User3c is the second account Type.
Table 4: still another user data table
Primary account number Associated account Account type
User1 User1c Type1
User2 User2c Type1
User3 User3c Type2
And S104, according to the account type of the target account, not obtaining or obtaining the user head portrait corresponding to the target account.
Specifically, not acquiring or acquiring the user avatar corresponding to the target account according to the account type of the target account may include:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
and if the account type of the target account is any one of another preset account type or another preset account types, not acquiring the head portrait of the first user of the user to which the target account belongs.
It is to be understood that the above-mentioned another preset account type or types refers to all or part of account types other than the above-mentioned preset account type or types among all account types divided by the system. In addition, if the another or another preset account type is a part of account types other than the one or more preset account types among all account types divided by the system, a corresponding user avatar may also be acquired according to the one or more account types and other account types other than the another or another account type, which is not limited in the embodiment of the present invention.
Further, as an optional implementation manner, the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account may further include:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
otherwise, the head portrait of the first user of the user to which the target account belongs is not acquired.
Further, as an optional implementation manner, the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account may further include:
if the account type of the target account is any one of one or more preset account types, not acquiring a first user head portrait of a user to which the target account belongs;
otherwise, acquiring the head portrait of the first user of the user to which the target account belongs.
It can be understood that, as described in step S101 above, an implementation of acquiring the first user avatar of the user to which the target account belongs may include: if the target account is a primary account, acquiring a first user head portrait corresponding to the target account; if the target account is a related account, acquiring a primary account related to the target account according to the target account, and acquiring a first user head portrait corresponding to the primary account; if the target account is a related account and the relationship between the target account and the first user avatar is established, the related first user avatar can be directly acquired according to the target account.
It is understood that after the first user avatar of the user to which the target account belongs is obtained, the first user avatar is returned to the sender, so that the first user avatar is displayed on the client of the sender.
Further, the step of not acquiring the first user avatar of the user to which the target account belongs may further include various embodiments, which specifically include:
in the first implementation mode, the head portrait of the user to which the target account belongs is not acquired.
After determining that the user head portrait of the user to which the target account belongs is not acquired, information indicating that the user head portrait is not acquired may be returned, or if the acquisition request is an acquisition request for acquiring user information including the user head portrait and the like, other user information may be acquired and returned to the sender without acquiring the user head portrait according to the acquisition request.
In a second implementation manner, a second user avatar corresponding to the target account is acquired.
And after the second user head portrait corresponding to the target account is obtained, returning the second user head portrait to the sender so as to display the second user head portrait on the client of the sender.
Acquiring a second user avatar corresponding to the target account, which may also include various embodiments, and at least may include:
firstly, one user head portrait is selected from user head portraits stored in advance in the system as a second user head portrait corresponding to the target account.
For example, if a user avatar is pre-stored in the system, the user avatar is selected as the second user avatar; for another example, if a plurality of user avatars are pre-stored in the system, one of the user avatars is selected as the second user avatar in sequence, randomly, or according to a certain rule.
Further, one of the user avatars is selected as the second user avatar according to a certain rule, which may be implemented by first obtaining basic user information of a user to which the target account belongs, and then selecting a corresponding user avatar from a plurality of pre-stored user avatars according to the basic user information, for example, if the gender in the basic user information is male, selecting a user avatar representing male; for another example, if the age in the basic user information is a child, a user avatar indicating the child is selected.
The system can also pre-store or load one or more user head portraits in the client, the system returns corresponding file information (such as file names or numbers of the user head portraits) to the sender, and the client of the sender selects and displays the corresponding user head portraits according to the file information.
And secondly, acquiring a second user head portrait pre-generated by the system for the target account.
The system generates a corresponding second user head portrait for account numbers such as the target account number in the system in advance, and the system acquires the corresponding second user head portrait for the target account number in advance according to the target account number.
The system generates a corresponding second user avatar in advance for an account such as the target account in the system, which may include various embodiments, and at least may include:
for example, the system generates a second user avatar based on a first user avatar of a user to which the target account belongs. The system generates the second user avatar by performing one or more of morphing operations (such as squeezing, stretching, shifting, warping, etc.), changing operations (such as flipping, shifting, cropping, rotating, etc.), transforming operations (such as color dithering, adding noise, etc.), special effect operations (such as rendering, pixelating, blurring, stylizing, pixelating, adding texture, etc.), and color adjustment operations on the first user avatar, such that the generated second user avatar has a certain similarity to the first user avatar, but is not completely or highly similar to the first user avatar. The time for generating the second user avatar may be generated when the user sets the first user avatar, or may be executed by a timing task in the system, which is not limited in this embodiment.
For another example, the system generates a corresponding second user avatar according to the basic user information of the user to which the target account belongs. The system selects a plurality of corresponding head portrait materials in the material library to synthesize and generate a second user head portrait according to the user information such as gender, age, occupation, hobbies or regions of the user account, so that the generated second user head portrait can represent the typical characteristics of the user and is different from or highly similar to the first user head portrait. The time for generating the second user avatar may be generated when the user sets the basic user information, or may be executed by a timing task in the system, which is not limited in this embodiment.
For example, the system may provide an avatar material library for the user to select a plurality of materials from the avatar material library, and the system may synthesize a second user avatar based on the user-selected avatar materials such that the generated second user avatar may represent the user's preferences or characteristics, but may be different or highly similar to the first user avatar.
After the system generates a corresponding second user head portrait for the target account in advance, an association relationship between the second user head portrait and the target account is established in the system, or the association relationship between the second user head portrait and a primary account of the target account is established, so that the second user head portrait corresponding to the target account can be acquired according to the target account.
And thirdly, acquiring a second user head portrait preset by the user to which the target account belongs.
The method includes the steps that a user of an account such as a target account presets a corresponding second user avatar for the user account of the user, for example, a system provides an interface for the user to self-define and set the second user avatar, the user uploads the second user avatar in the setting interface, and after receiving the second user avatar, the system establishes an association relationship between the second user avatar and a main account of the user so that the second user avatar can be obtained according to the account of the user. Therefore, the system can acquire a second user avatar preset by the user to which the target account belongs according to the target account.
It should be noted that the corresponding user avatar may be the file content of the user avatar or the network file address of the user avatar; if the corresponding network file address of the user head portrait is the network file address of the user head portrait, when the system returns the network file address of the user head portrait to the sender, the sender obtains the corresponding user head portrait according to the network file address after receiving the network file address.
Compared with the prior art, according to the implementation process, the embodiment of the invention, the user head portrait is not provided or the corresponding user head portrait is provided according to the account type of the target account, so that malicious persons cannot analyze different account information of the same user according to the user head portrait association, and the purpose of protecting personal information of the user is achieved.
Second, a second embodiment of a user avatar processing system
Referring to fig. 2, fig. 2 is a flowchart illustrating a second embodiment of a method for processing a user avatar according to the present invention. The method provided by this embodiment is a process that provides a plurality of processing sub-modules to respectively obtain the user avatar according to the account type, on the basis of the method provided by the first embodiment of the user avatar processing method. The present embodiment can also be regarded as an equivalent flow transformation of the first embodiment of the user avatar processing method, where the method includes:
s201, storing user data of a plurality of users, wherein the user data of each user comprises a plurality of accounts of the user and a first user head portrait of the user.
This step can refer to step S101, which is not described herein.
S202, providing a plurality of processing sub-modules, wherein each processing sub-module is preset with one or more account types and is preset with a corresponding user head portrait type; when each processing submodule receives an acquisition request for acquiring a user head portrait, the processing submodule acquires a target account in the acquisition request, determines the account type of the target account, judges whether the account type of the target account is any one of one or more preset account types of the processing submodule, and acquires the user head portrait corresponding to the target account and corresponding to the user head portrait type preset by the processing submodule if the account type of the target account is any one of the one or more preset account types of the processing submodule.
Providing a plurality of processing sub-modules, wherein each processing sub-module is preset with one or more account types and is preset with a corresponding user head portrait type, and the processing sub-modules comprise:
at least one processing sub-module is preset with one or more account types, and is preset with a first user head portrait type, so as to obtain a first user head portrait of a user to which a target account with the account type same as any one of the one or more account types preset by the processing sub-module belongs;
and at least one processing submodule is preset with another or other account types, and is preset with a first user head portrait not-acquiring type, so that the first user head portrait of a user to which a target account with the same account type as any one of the another or other account types preset by the processing submodule belongs is not acquired.
Further, the preset type of not acquiring the first user avatar may also be determined as the type of not acquiring the user avatar, that is, the user avatar corresponding to the target account is not acquired; or determining the type of the second user head portrait, namely acquiring the second user head portrait corresponding to the target account.
For example, a first processing sub-module and a second processing sub-module are provided in the system, wherein the first processing sub-module is preset with a first account type, and the preset user avatar type is a first user avatar type, that is, the first processing sub-module is used for acquiring a first user avatar of a user to which a target account with the first account type belongs; the second processing sub-module is preset with a second account type, and the preset user avatar type is a second user avatar type or the preset user avatar type is a non-acquisition user avatar type, that is, the second processing sub-module is used for acquiring a second user avatar corresponding to a target account with the second account type, or the second processing sub-module is used for not acquiring the user avatar of the target account with the second account type.
When each processing submodule receives an acquisition request for acquiring a head portrait of a user, the processing submodule executes the following steps:
and S202a, acquiring the target account in the acquisition request.
This step can refer to step S102, which is not described herein.
And S202b, determining the account type of the target account.
This step can refer to step S103, which is not described herein.
S202c, judging whether the account number type of the target account number is any one of one or more preset account number types of the processing submodule; if yes, the following step S202d is executed.
Comparing the account type of the target account with account types preset by the processing submodule, and if the account type of the target account is consistent with any one of the account types preset by the processing submodule, executing the following step S202 d; if not, step S202d described below is not performed, and information indicating that an error is performed or that the acquisition request is not performed may be returned to the sender.
For example, the processing sub-module is taken as a first processing sub-module, and the first processing sub-module is preset with a first account type, and the preset user avatar type is a first user avatar type. If the account type of the target account is the first account type, determining that the account type of the target account is any one of one or more account types preset by the first processing sub-module, and then performing the following step S202 d; if the account type of the target account is not the first account type, it is determined that the account type of the target account is not any one of the one or more account types preset by the first processing sub-module, and then the following step S202d is not executed.
And S202d, acquiring the user head portrait corresponding to the target account and corresponding to the user head portrait type preset by the processing submodule or not acquiring the user head portrait.
For example, if the processing sub-module is a first processing sub-module and the user avatar type preset by the first processing sub-module is a first user avatar type, the first processing sub-module obtains a first user avatar of the user to which the target account belongs; if the processing sub-module is a second processing sub-module and the user head portrait type preset by the second processing sub-module is a second user head portrait type, the second processing sub-module acquires a second user head portrait corresponding to the target account; and if the processing sub-module is a second processing sub-module and the user head portrait type preset by the second processing sub-module is a user head portrait non-acquisition type, the second processing sub-module does not acquire the user head portrait of the target account.
It can be understood that if the user avatar of the target account is not obtained, information indicating that the user avatar is not obtained may be returned to the sender, or if the obtaining request is an obtaining request for obtaining user information including the user avatar and the like, other user information may be obtained without obtaining the user avatar and returned to the sender.
Compared with the prior art, according to the implementation process, the embodiment of the invention, the user head portrait is not provided or the corresponding user head portrait is provided according to the account type of the target account, so that malicious persons cannot analyze different account information of the same user according to the user head portrait association, and the purpose of protecting personal information of the user is achieved.
Third, a user head portrait processing system embodiment one
Referring to fig. 3, fig. 3 is a block diagram of a first embodiment of a user avatar processing system according to the present invention. The system comprises:
a user database: user data for a plurality of users is stored, the user data for each user including a plurality of accounts for the user and a first user avatar for the user.
The user head portrait acquisition module: the method comprises the steps that when an acquisition request for acquiring a head portrait of a user is received, a target account included in the acquisition request is acquired; determining the account type of the target account; and according to the account type of the target account, not obtaining or obtaining the user head portrait corresponding to the target account.
Fourth, a second embodiment of a user avatar processing system
Referring to fig. 4, fig. 4 is a block diagram of a second embodiment of a user avatar processing system according to the present invention. The system provided by the embodiment is a more preferable embodiment on the system provided by the first embodiment of the user avatar processing system. The user head portrait acquisition module in the system comprises:
an acquisition request receiving submodule: the method and the device are used for receiving an obtaining request for obtaining the head portrait of the user and obtaining a target account included in the obtaining request.
An account type determining submodule: the method is used for determining the account type of the target account.
The head portrait acquisition execution submodule: the method comprises the steps of obtaining or not obtaining a user head portrait corresponding to the target account according to the account type of the target account; which comprises the following steps:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
and if the account type of the target account is any one of another preset account type or another preset account types, not acquiring the head portrait of the first user of the user to which the target account belongs.
Further, the step of not acquiring the first user avatar of the user to which the target account belongs includes: and not acquiring the head portrait of the user to which the target account belongs, or acquiring the head portrait of a second user corresponding to the target account.
Fifth, embodiment III of a user avatar processing system
Referring to fig. 5, fig. 5 is a block diagram of a third embodiment of a user avatar processing system according to the present invention. The system provided by the embodiment is a more preferable embodiment on the system provided by the first embodiment of the user avatar processing system. The user head portrait acquisition module in the system comprises:
a first processing submodule: the system comprises a server, a server and a server, wherein the server is used for presetting one or more account types and presetting a first user head portrait type; when a first acquisition request for acquiring a head portrait of a user is received, acquiring a first target account in the first acquisition request; determining an account type of the first target account; judging whether the account number type of the first target account number is any one of one or more account number types preset by the first processing submodule; and if so, acquiring a first user head portrait of the user to which the first target account belongs. It will be appreciated that if not, an error indicating execution or information indicating that the acquisition request is not to be executed may be returned to the sender.
A second processing submodule: the method comprises the steps of presetting another or other account types and presetting a type of not acquiring a first user head portrait; when a second acquisition request for acquiring the head portrait of the user is received, acquiring a second target account in the second acquisition request; determining the account type of the second target account; judging whether the account type of the second target account is any one of another or another account types preset by the second processing submodule; and if so, not acquiring the head portrait of the first user of the user to which the second target account belongs. It will be appreciated that if not, an error indicating execution or information indicating that the acquisition request is not to be executed may be returned to the sender.
Further, the step of not acquiring the first user avatar of the user to which the target account belongs includes: and not acquiring the head portrait of the user to which the target account belongs, or acquiring the head portrait of a second user corresponding to the target account.
Sixthly, a user head portrait processing system embodiment IV
Referring to fig. 6, fig. 6 is a block diagram of a fourth embodiment of a user avatar processing system according to the present invention. The system provided by the embodiment is a more preferable embodiment on the system provided by the first embodiment of the user avatar processing system. The first processing submodule in the system includes a first receiving unit, a first determining unit and a first executing unit, and the second processing submodule includes a second receiving unit, a second determining unit and a second executing unit, and specifically includes:
the first receiving unit: and the server is used for receiving the first acquisition request for acquiring the head portrait of the user and acquiring the first target account included in the first acquisition request.
The first determination unit: the method is used for determining the account type of the first target account.
The first execution unit: the first processing submodule is used for processing the first target account number according to the account number type of the first target account number; and if so, acquiring a first user head portrait of the user to which the first target account belongs.
The second receiving unit: and the second acquisition request is used for receiving the second acquisition request for acquiring the head portrait of the user and acquiring the second target account included in the second acquisition request.
The second determination unit: the account type of the second target account is determined.
The second execution unit: the second processing submodule is used for judging whether the account type of the second target account is any one of another or another account types preset by the second processing submodule; and if so, not acquiring the head portrait of the first user of the user to which the second target account belongs.
The user avatar processing system and the user avatar processing method provided by the above embodiments belong to the same concept, and specific implementation principles and effects thereof are detailed in the method embodiments and are not described herein again.
In addition, in order to achieve the above object, the present invention further provides a user avatar processing apparatus, device or server, including a memory and a processor, where the processor is configured to execute a program stored in the memory, and the program executes to perform the steps of the user avatar processing method.
In order to achieve the above object, the present invention further provides a storage medium, wherein a program is stored in the storage medium, the program being for implementing the steps of the above method for processing a user avatar.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in an article or device that comprises the element.
The above description of the disclosed embodiments is provided to enable persons skilled in the art to make or use the present invention, and not to limit the present invention, and any modifications, equivalent structures, or equivalent flow changes, modifications, etc., which are made by using the contents of the present specification and drawings, or which are directly or indirectly applied to other related technical fields, shall be included in the protection scope of the present invention.

Claims (10)

1. A method for processing a user avatar, the method comprising:
storing user data for a plurality of users, the user data for each user including a plurality of accounts for the user and a first user avatar for the user;
when an acquisition request for acquiring a head portrait of a user is received, acquiring a target account included in the acquisition request;
determining the account type of the target account;
and according to the account type of the target account, not obtaining or obtaining the user head portrait corresponding to the target account.
2. The method of claim 1, wherein the determining the account type of the target account comprises:
identifying the format of the target account according to a preset account format rule so as to determine the account type of the target account; or,
the acquisition request also comprises account type information of the target account, and the account type of the target account is determined according to the account type information; or,
and searching an account type identifier corresponding to the target account, and determining the account type of the target account according to the account type identifier.
3. The method of claim 2, wherein the identifying the format of the target account according to the preset account format rule comprises:
and identifying the target account according to the length of the account, or/and the character type contained in the account, or/and the specific identification contained in the account.
4. The method of claim 1, wherein the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account comprises:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
and if the account type of the target account is any one of another preset account type or another preset account types, not acquiring the head portrait of the first user of the user to which the target account belongs.
5. The method of claim 1, wherein the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account further comprises:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
otherwise, the head portrait of the first user of the user to which the target account belongs is not acquired.
6. The method of claim 1, wherein the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account further comprises:
if the account type of the target account is any one of one or more preset account types, not acquiring a first user head portrait of a user to which the target account belongs;
otherwise, acquiring the head portrait of the first user of the user to which the target account belongs.
7. The method of claim 4, 5 or 6, wherein the step of not acquiring the first user avatar of the user to which the target account belongs comprises:
not acquiring a user head portrait of a user to which the target account belongs; or,
and acquiring a second user head portrait corresponding to the target account.
8. A user avatar processing system, said system comprising:
a user database: storing user data for a plurality of users, the user data for each user including a plurality of accounts for the user and a first user avatar for the user;
the user head portrait acquisition module: the method comprises the steps that when an acquisition request for acquiring a head portrait of a user is received, a target account included in the acquisition request is acquired; determining the account type of the target account; and according to the account type of the target account, not obtaining or obtaining the user head portrait corresponding to the target account.
9. The system of claim 8, wherein the user avatar acquisition module comprises:
an acquisition request receiving submodule: the system comprises a server and a server, wherein the server is used for receiving an acquisition request for acquiring a head portrait of a user and acquiring a target account included in the acquisition request;
an account type determining submodule: the account type of the target account is determined;
the head portrait acquisition execution submodule: and the method is used for not acquiring or acquiring the user head portrait corresponding to the target account according to the account type of the target account.
10. The system of claim 8, wherein the not obtaining or obtaining the user avatar corresponding to the target account according to the account type of the target account comprises:
if the account type of the target account is any one of one or more preset account types, acquiring a first user head portrait of a user to which the target account belongs;
and if the account type of the target account is any one of another preset account type or another preset account types, not acquiring the head portrait of the first user of the user to which the target account belongs.
CN201910024208.XA 2019-01-11 2019-01-11 User head portrait processing method, device and system Active CN109995749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910024208.XA CN109995749B (en) 2019-01-11 2019-01-11 User head portrait processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910024208.XA CN109995749B (en) 2019-01-11 2019-01-11 User head portrait processing method, device and system

Publications (2)

Publication Number Publication Date
CN109995749A true CN109995749A (en) 2019-07-09
CN109995749B CN109995749B (en) 2021-08-17

Family

ID=67129892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910024208.XA Active CN109995749B (en) 2019-01-11 2019-01-11 User head portrait processing method, device and system

Country Status (1)

Country Link
CN (1) CN109995749B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618472A (en) * 2015-01-26 2015-05-13 上海华豚科技有限公司 Mobile communication device contact information maintenance method and system
CN105490913A (en) * 2014-09-16 2016-04-13 腾讯科技(深圳)有限公司 Instant message processing method and device
CN106407436A (en) * 2016-09-27 2017-02-15 维沃移动通信有限公司 Communication account number head portrait processing method and mobile terminal
CN106559558A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of method and device of the acquisition and activation communication modes based on image recognition
US9917962B1 (en) * 2016-10-20 2018-03-13 Kabushiki Kaisha Toshiba Multifunction peripheral with avatar based login
CN107959757A (en) * 2017-12-11 2018-04-24 北京小米移动软件有限公司 User information processing method, device, APP servers and terminal device
CN108494938A (en) * 2018-03-08 2018-09-04 广东欧珀移动通信有限公司 Head image information processing method, device, server and computer-readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105490913A (en) * 2014-09-16 2016-04-13 腾讯科技(深圳)有限公司 Instant message processing method and device
CN104618472A (en) * 2015-01-26 2015-05-13 上海华豚科技有限公司 Mobile communication device contact information maintenance method and system
CN106559558A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of method and device of the acquisition and activation communication modes based on image recognition
CN106407436A (en) * 2016-09-27 2017-02-15 维沃移动通信有限公司 Communication account number head portrait processing method and mobile terminal
US9917962B1 (en) * 2016-10-20 2018-03-13 Kabushiki Kaisha Toshiba Multifunction peripheral with avatar based login
CN107959757A (en) * 2017-12-11 2018-04-24 北京小米移动软件有限公司 User information processing method, device, APP servers and terminal device
CN108494938A (en) * 2018-03-08 2018-09-04 广东欧珀移动通信有限公司 Head image information processing method, device, server and computer-readable medium

Also Published As

Publication number Publication date
CN109995749B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US10554601B2 (en) Spam detection and prevention in a social networking system
KR102094065B1 (en) Prioritization of messages
TWI312472B (en) System and method for social interaction
TWI393013B (en) Identifying and employing social network relationships
US20080208956A1 (en) Content aggregation and sharing system
US10069768B2 (en) System and method for facilitating the growth of a mobile community
US9098584B1 (en) Image search privacy protection techniques
EP3163471B1 (en) Data information transaction method and system
US20180367629A1 (en) Platform and Related Process for Providing Push Notifications Via Unique Subscriber Applications
CN110489663B (en) Social content control method and device and computer equipment
CN109274575B (en) Message sending method and device and electronic equipment
CN102959539B (en) Item recommendation method during a kind of repeat in work and system
CN107659611B (en) Big data-based user head portrait generation method, device and system
CN109992990B (en) User head portrait processing method, device and system
CN109635213B (en) Method and device for realizing multi-person ordering and electronic equipment
US20140089403A1 (en) System and Method for Qualifying and Targeting Communications using Social Relationships
CN109995749B (en) User head portrait processing method, device and system
CN109754328A (en) A kind of user's head portrait processing method, apparatus and system
CN110232267B (en) Business card display method and device, electronic equipment and storage medium
US11856490B2 (en) Automatic formation of social networking groups based on threads
CN108306812B (en) Data processing method and server
Hosio et al. Leveraging social networking services to encourage interaction in public spaces
CN112231588B (en) Game friend recommending method and device based on game application program
CN113746648A (en) Information processing method, device and storage medium
CN109992991A (en) A kind of user's head portrait processing method, device and public platform

Legal Events

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