CN109992990B - User head portrait processing method, device and system - Google Patents

User head portrait processing method, device and system Download PDF

Info

Publication number
CN109992990B
CN109992990B CN201910022352.XA CN201910022352A CN109992990B CN 109992990 B CN109992990 B CN 109992990B CN 201910022352 A CN201910022352 A CN 201910022352A CN 109992990 B CN109992990 B CN 109992990B
Authority
CN
China
Prior art keywords
account
user
type
head portrait
processing module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910022352.XA
Other languages
Chinese (zh)
Other versions
CN109992990A (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 CN201910022352.XA priority Critical patent/CN109992990B/en
Publication of CN109992990A publication Critical patent/CN109992990A/en
Application granted granted Critical
Publication of CN109992990B publication Critical patent/CN109992990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device and a system for processing a user head portrait, wherein the method comprises the following steps: 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, and a corresponding account type is set for each account; and providing a plurality of processing modules, wherein each processing module is used for determining a user avatar corresponding to the account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account in the received acquisition request and corresponding to the user avatar type preset by the processing module. The implementation of the method realizes that the head portrait of the user is not provided or the corresponding head portrait of the user is provided according to the account type of the target account, so that malicious personnel cannot analyze different account information of the same user according to the head portrait association of the user, thereby achieving the purpose of protecting personal information of the user.

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 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, and a corresponding account type is set for each account;
providing a plurality of processing modules, wherein each processing module is preset with a corresponding account number type and a corresponding user head portrait type;
when each processing module receives an acquisition request for acquiring a user avatar, the processing module acquires a target account in the acquisition request, and determines the user avatar corresponding to the user avatar type preset by the processing module, wherein the account type is the same as the account type preset by the processing module, and the account name is the same as the account name of the target account.
Preferably, the setting of the corresponding account type for each account includes:
establishing a data column for identifying the account type in a user data table, wherein each record in the data column is used for storing an account type identifier corresponding to a user account; alternatively, the first and second electrodes may be,
respectively establishing user data tables for different account types, wherein each user data table is used for storing accounts of the same account type as the corresponding table for a user; alternatively, the first and second electrodes may be,
and respectively establishing corresponding data columns for different account types in the user data table, wherein the data columns are used for storing accounts of the same account type as the account type corresponding to the columns for the user.
Preferably, the providing a plurality of processing modules, each processing module being preset with a corresponding account type and a corresponding user avatar type, includes:
at least one processing module is preset with an account type and a first user head portrait type and is used for acquiring a first user head portrait of a user to which an account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account belongs in a system;
and at least one processing module is preset with another account type and a first user head portrait type, so that the first user head portrait of the user to which the account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account belongs is not acquired in the system.
Preferably, the first user icon of the user to which the non-acquired account has the same type as the preset account type of the processing module and has the same account name as the account name of the target account includes:
not acquiring a user head portrait corresponding to an account with the account type same as the preset account type of the processing module and the account name same as the account name of the target account; alternatively, the first and second electrodes may be,
and acquiring a second user head portrait corresponding to the account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account.
Preferably, the acquiring the second user avatar corresponding to the account with the account type same as the account type preset by the processing module and the account name same as the account name of 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; alternatively, the first and second electrodes may be,
acquiring a second user head portrait pre-generated by the system for the user to which the target account belongs; alternatively, the first and second electrodes may be,
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 the corresponding second user head portrait; alternatively, the first and second electrodes may be,
a plurality of user head portraits are pre-stored in the system, and one of the user head portraits is selected as the corresponding second user head portrait in sequence or randomly; alternatively, the first and second electrodes may be,
and a plurality of user head portraits are pre-stored in the system, and corresponding user head portraits are selected as the corresponding second user head portraits 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; alternatively, the first and second electrodes may be,
generating a second user head portrait according to the basic user information of the user to which the target account belongs; alternatively, the first and second electrodes may be,
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 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, and a corresponding account type is set for each account;
a first processing module: the method comprises the steps of presetting an account type and 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; acquiring a first user head portrait of a user to which an account with the same account type as the one account type and the same account name as the account name of the first target account belongs;
a second processing module: the method comprises the steps of presetting another account type and not acquiring a first user head portrait type; 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; and not acquiring the head portrait of the first user of the user to which the account with the same account type as the other account type and the same account name as the account name of the second target account belongs.
Preferably, the obtaining of the first user avatar of the user to whom the account with the same account type as the another account type and the same account name as the account name of the second target account belongs includes:
not acquiring a user head portrait corresponding to an account with the account type same as the account type preset by the processing module and the account name same as the account name of the second target account; alternatively, the first and second electrodes may be,
and acquiring a second user head portrait corresponding to the account with the account type same as the account type preset by the processing module and the account name same as the account name of the second target account.
Preferably, the first processing module includes a first receiving unit and a first executing unit, and the second processing module includes a second receiving 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 execution unit: the first processing module is used for acquiring a first user head portrait of a user to which an account with the same account type as the account type preset by the first processing module and with the same account name as the account name of the first target account belongs;
the second receiving unit: the second acquisition request for acquiring the head portrait of the user is received, and the second target account included in the first acquisition request is acquired;
the second execution unit: and the processing module is used for not acquiring the head portrait of the first user of the user to which the account with the account type same as the other preset account type of the second processing module and the account name same as the account name of 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 flow chart of an embodiment of a method for processing a user avatar according to the present invention;
FIG. 2 is a block diagram of a first embodiment of a user avatar processing system according to the present invention;
fig. 3 is a block diagram of a second 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 of user head portrait processing method
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for processing a user avatar according to an 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, and setting a corresponding account type for each account.
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
In the system, the account number can be divided into different account number types in advance, for example, the account number can be divided into a primary account number type and an associated account number type; for another example, the account number may be divided into a mobile phone number type, an email type, and other account number types; for example, the account may be divided into a first account type, a second account type, and the like.
And setting a corresponding account type for the account when the account is created and stored in the system. The embodiment of setting the corresponding account type for the account may include multiple embodiments, and at least may include:
in a first embodiment, a data column for identifying an account type is established in a user data table, and each record in the data column is used for storing an account type identifier corresponding to a user account.
For example, taking the case that the account types are divided to include a first account type and a second account type, when account information is stored for a user, a corresponding account type identifier is stored for the account. Table 4 provides an example of setting a corresponding account Type for a User account, where account types corresponding to associated accounts User1c and User2c are Type1, and indicate that the associated accounts User1c and User2c are first account types; 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
Figure GDA0002659866860000091
Figure GDA0002659866860000101
In a second embodiment, user data tables are respectively created for different account types, and each user data table is used for storing accounts of the same account type as the account type corresponding to the table for a user.
For example, taking the account number divided into a primary account number type and an associated account number type as an example, the table 2 is a user data table established for the primary account number type, and the table 3 is a user data table established for the associated account number type.
For another example, taking dividing the account into a first account type and a second account type as an example, establishing a first account type user data table for the account associated with the first account type, and storing the account of the first account type and user data such as primary account information associated with the account in the first account type user data table; and establishing a second account type user data table for the account related to the second account type, and storing user data such as the account of the second account type and primary account information related to the account in the second account type user data table. In addition, the primary account number does not need to be set with a corresponding account number type, namely, the primary account number is not used for acquiring a corresponding user head portrait according to the account number type in the subsequent step; the primary account may also be set with a corresponding account type, for example, the division of the account types further includes the primary account type, the account stored in the user data table where the primary account is located is the primary account, and then in the subsequent steps, a corresponding user avatar may also be obtained according to the primary account type.
In a third embodiment, corresponding data columns are respectively established for different account types in a user data table, and the data columns are used for storing accounts of the same account type as the account type corresponding to the columns for a user.
For example, the account types are divided to include a first account type and a second account type. Table 5 provides an example of setting a corresponding account type for an associated account in a user, where a first account type data column is established for an account of a first account type, a second account type data column is established for an account of a second account type, and data columns such as a first user head portrait and the like are also established in a user data table, and user data of each user is stored in each row of data records in the user data table. In addition, the primary account number does not need to be set with a corresponding account number type, namely, the primary account number is not used for acquiring a corresponding user head portrait according to the account number type in the subsequent step; the primary account number may also be set with a corresponding account number type, for example, the division of the account number types further includes the primary account number type, the account number stored in the data column in which the primary account number is located in the user data table is the primary account number, and then in the subsequent steps, a corresponding user avatar may also be obtained according to the primary account number type.
Table 5: user data table
Primary account number A first account number type Second account number type First user head portrait
User1 User1d User1e Img1
User2 User2d User2e Img2
User3 User3d User3e Img3
It can be understood that each account referred to herein refers to an account related to implement the present embodiment, and if an account is not used to implement the present embodiment, that is, is not used to obtain a corresponding user avatar according to an account type of the account, the account may not be set to have a corresponding account type.
S102, providing a plurality of processing modules, wherein each processing module is preset with a corresponding account number type and a corresponding user head portrait type; when each processing module receives an acquisition request for acquiring a user avatar, the processing module acquires a target account in the acquisition request, and determines the user avatar corresponding to the user avatar type preset by the processing module, wherein the account type is the same as the account type preset by the processing module, and the account name is the same as the account name of the target account.
Providing a plurality of processing modules, wherein each processing module is preset with a corresponding account type and a corresponding user head portrait type, and the processing modules comprise:
at least one processing module is preset with an account type and a first user head portrait type and is used for acquiring a first user head portrait of a user to which an account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account belongs in a system;
and at least one processing module is preset with another account type and a first user head portrait type, so that the first user head portrait of the user to which the account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account belongs is not acquired in the system.
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 module and a second processing module are provided in the system, wherein the preset account type of the first processing module is a first account type, and the preset user avatar type is a first user avatar type, that is, the first processing module is configured to obtain, in the system, a first user avatar of a user to which an account with the first account type and an account name that is the same as the account name of the target account belongs; the preset account type of the second processing module is 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-acquired user avatar type, that is, the second processing module is configured to acquire, in the system, a second user avatar corresponding to an account of which the account type is the second account type and the account name is the same as the account name of the target account, or the second processing module is configured to not acquire the user avatar of an account of which the account type is the second account type and the account name is the same as the account name of the target account.
When each processing module receives an acquisition request for acquiring a head portrait of a user, the processing module executes the following steps:
s102a, acquiring a target account in the acquisition request.
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.
S102b, determining a user head portrait corresponding to the user head portrait type preset by the processing module, wherein the account type is the same as the account type preset by the processing module, and the account name is the same as the account name of the target account.
For example, if the processing module is a first processing module, the account type preset by the first processing module is a first account type, and the preset user avatar type is a first user avatar type, the first processing module obtains, in the system, a first user avatar of a user to which an account with the first account type and an account name the same as the target account name belongs; taking the processing module as a second processing module, the account type preset by the second processing module as a second account type, and the user avatar type preset as a second user avatar type as an example, the second processing module acquires a second user avatar, of which the account type is the second account type and the account name is the same as the account name of the target account, corresponding to an account in the system; taking the processing module as a second processing module, the account type preset by the second processing module is the second account type, and the preset user avatar type is the user avatar non-acquiring type, the second processing module does not acquire the user avatar corresponding to the account with the account type being the second account type and the account name being the same as the account name of the target account in the system.
Specifically, taking the first implementation manner of setting a corresponding account Type for the account in step S101 as an example, correspondingly, the first processing module acquires a first user avatar of a user to which the account with an account Type identifier of a first account Type (Type1) and an account name that is the same as the account name of the target account belongs; the second processing module acquires a second user avatar corresponding to an account with the account Type identifier being a second account Type (Type2) and the account name being the same as the account name of the target account, or does not acquire the user avatar.
Specifically, taking the second implementation manner of setting a corresponding account type for the account in step S101 as an example, correspondingly, the first processing module obtains a first user avatar of a user to which the account with the same account name as the account name of the target account belongs in a first account type user data table; the second processing module acquires a second user head portrait corresponding to an account with the same account name as the target account in a second account type user data table or does not acquire the user head portrait.
In addition, taking the example that the account is divided into a primary account type and an associated account type, the account type preset by the first processing module is the primary account type, and the account type preset by the second processing module is the associated account type, the first processing module acquires a first user head portrait corresponding to an account with the same account name as that of the target account in the primary account data column in the table 2; the second processing module obtains a second user avatar corresponding to an account with the same account name as the target account in the associated account data column in table 3 or does not obtain the user avatar.
Specifically, taking the third implementation manner of setting a corresponding account type for an account in step S101 as an example, correspondingly, the first processing module obtains, in a user data table, a first user avatar of a user to which an account with an account name that is the same as the account name of the target account belongs in a first account type data column; and the second processing module acquires a second user head portrait corresponding to an account with the same account name as the account name of the target account in a second account type data column in a user data table or does not acquire the user head portrait.
In addition, taking the example that the account is divided into a primary account type and an associated account type, the account type preset by the first processing module is the primary account type, and the account type preset by the second processing module is the associated account type, the first processing module acquires a first user head portrait corresponding to an account with the same account name as that of the target account in the primary account data column in the table 1; the second processing module obtains a second user avatar corresponding to an account with the same account name as the target account in the primary account data column in table 1 or does not obtain the user avatar.
It can be understood that, if the first user avatar is obtained or the second user avatar is obtained, the user avatar may be returned to the sender, so that the user avatar is displayed on the client of the sender; if the user avatar is not acquired, information indicating that the user avatar is not acquired may be returned, or if the acquisition request is an acquisition request for acquiring user information including the user avatar and the like, other user information may be acquired without acquiring the user avatar and returned to the sender.
The obtaining of the second user avatar corresponding to the target account may include various embodiments, and at least may include:
firstly, one user head portrait is selected from one or more user head portraits pre-stored 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 target account. 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, embodiment one of a user avatar processing system
Referring to fig. 2, fig. 2 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: the method comprises the steps of 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, and setting a corresponding account type for each account.
A first processing module: the method comprises the steps of presetting an account type and 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; and acquiring a first user avatar of a user to which the account with the same account type as the one account type and the same account name as the account name of the first target account belongs.
A second processing module: the method comprises the steps of presetting another account type and not acquiring a first user head portrait type; 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; and not acquiring the head portrait of the first user of the user to which the account with the same account type as the other account type and the same account name as the account name of the second target account belongs.
Further, the obtaining of the first user avatar of the user to whom the account with the same account type as the another account type and the same account name as the account name of the second target account belongs includes:
not acquiring a user head portrait corresponding to an account with the account type same as the account type preset by the processing module and the account name same as the account name of the second target account; or acquiring a second user avatar corresponding to the account with the account type same as the account type preset by the processing module and the account name same as the account name of the second target account.
Third, a second embodiment of a user avatar processing system
Referring to fig. 3, fig. 3 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 first processing module in the system includes a first receiving unit and a first executing unit, and the second processing module includes a second receiving 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 execution unit: the method is used for acquiring a first user avatar of a user to which an account with the same account type as the account type preset by the first processing module and with the same account name as the account name of 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 first acquisition request.
The second execution unit: and the processing module is used for not acquiring the head portrait of the first user of the user to which the account with the account type same as the other preset account type of the second processing module and the account name same as the account name of 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 (16)

1. A method for processing a user avatar, the method comprising:
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, and a corresponding account type is set for each account;
providing a plurality of processing modules, wherein each processing module is preset with a corresponding account number type and a corresponding user head portrait type;
when each processing module receives an acquisition request for acquiring a user avatar, the processing module acquires a target account in the acquisition request, and determines the user avatar corresponding to the user avatar type preset by the processing module, wherein the account type is the same as the account type preset by the processing module, and the account name is the same as the account name of the target account.
2. The method of claim 1, wherein setting a corresponding account type for each account comprises:
establishing a data column for identifying the account type in a user data table, wherein each record in the data column is used for storing an account type identifier corresponding to a user account; alternatively, the first and second electrodes may be,
respectively establishing user data tables for different account types, wherein each user data table is used for storing accounts of the same account type as the corresponding table for a user; alternatively, the first and second electrodes may be,
and respectively establishing corresponding data columns for different account types in the user data table, wherein the data columns are used for storing accounts of the same account type as the account type corresponding to the columns for the user.
3. The method of claim 1, wherein providing a plurality of processing modules, each processing module being preset with a corresponding account type and a corresponding user avatar type, comprises:
at least one processing module is preset with an account type and a first user head portrait type and is used for acquiring a first user head portrait of a user to which an account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account belongs in a system;
and at least one processing module is preset with another account type and a first user head portrait type, so that the first user head portrait of the user to which the account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account belongs is not acquired in the system.
4. The method of claim 1, wherein the determining the user avatar corresponding to the account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account and corresponding to the user avatar type preset by the processing module comprises:
if the user head portrait type set by the processing module is the first user head portrait type, acquiring a first user head portrait of a user to which an account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account belongs;
and if the user head portrait type set by the processing module is the first user head portrait type which is not acquired, the first user head portrait of the user to which the account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account belongs is not acquired.
5. The method of claim 4, wherein the step of not acquiring the first user icon of the user to which the account with the same account type as the account type preset by the processing module and the same account name as the account name of the target account belongs comprises:
not acquiring a user head portrait corresponding to an account with the account type same as the preset account type of the processing module and the account name same as the account name of the target account; alternatively, the first and second electrodes may be,
and acquiring a second user head portrait corresponding to the account with the account type same as the account type preset by the processing module and the account name same as the account name of the target account.
6. The method according to claim 5, wherein the obtaining of the second user avatar corresponding to the account with the same account type as the account type preset by the processing module and the same account name as the account name of the target account comprises:
selecting a user head portrait from user head portraits pre-stored in a system as the corresponding second user head portrait; alternatively, the first and second electrodes may be,
acquiring a second user head portrait pre-generated by the system for the user to which the target account belongs; alternatively, the first and second electrodes may be,
and acquiring a second user head portrait preset by the user to which the target account belongs.
7. The method of claim 6, wherein the selecting a user avatar from pre-stored user avatars of the system as the second user avatar corresponding to the target account comprises:
a user head portrait is pre-stored in the system, and is selected as the corresponding second user head portrait; alternatively, the first and second electrodes may be,
a plurality of user head portraits are stored in the system in advance, and one of the user head portraits is selected as the corresponding second user head portrait in sequence or randomly or according to a certain rule.
8. The method of claim 7, wherein selecting one of the user avatars according to a rule as the corresponding second user avatar comprises:
and a plurality of user head portraits are pre-stored in the system, and corresponding user head portraits are selected as the corresponding second user head portraits according to the basic user information of the user to which the target account belongs.
9. The method of claim 6, wherein the pre-generating by the system a second user avatar for the user to which the target account belongs comprises:
generating a second user head portrait based on the first user head portrait of the user to which the target account belongs; alternatively, the first and second electrodes may be,
generating a second user head portrait according to the basic user information of the user to which the target account belongs; alternatively, the first and second electrodes may be,
and the second user head portrait is synthesized according to a plurality of materials selected by the user in the head portrait material library.
10. The method of claim 9, wherein generating the second user avatar based on the first user avatar of the user to which the target account belongs comprises:
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.
11. The method of claim 1, wherein the method is applied to applications including instant messaging, microblog, social, payment, or live networking applications.
12. A user avatar processing system, said system comprising:
a user database: 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, and a corresponding account type is set for each account;
a first processing module: the method comprises the steps of presetting an account type and 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; acquiring a first user head portrait of a user to which an account with the same account type as the one account type and the same account name as the account name of the first target account belongs;
a second processing module: the method comprises the steps of presetting another account type and not acquiring a first user head portrait type; 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; and not acquiring the head portrait of the first user of the user to which the account with the same account type as the other account type and the same account name as the account name of the second target account belongs.
13. The system of claim 12, wherein the step of not acquiring the first user avatar of the user to whom the account with the same account type as the another account type and the same account name as the account name of the second target account belongs comprises:
not acquiring a user head portrait corresponding to an account with the account type same as the account type preset by the processing module and the account name same as the account name of the second target account; alternatively, the first and second electrodes may be,
and acquiring a second user head portrait corresponding to the account with the account type same as the account type preset by the processing module and the account name same as the account name of the second target account.
14. The system according to claim 13, wherein the first processing module includes a first receiving unit and a first executing unit, and the second processing module includes a second receiving 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 execution unit: the first processing module is used for acquiring a first user head portrait of a user to which an account with the same account type as the account type preset by the first processing module and with the same account name as the account name of the first target account belongs;
the second receiving unit: the second acquisition request for acquiring the head portrait of the user is received, and the second target account included in the first acquisition request is acquired;
the second execution unit: and the processing module is used for not acquiring the head portrait of the first user of the user to which the account with the account type same as the other preset account type of the second processing module and the account name same as the account name of the second target account belongs.
15. A user avatar processing apparatus, device or server, comprising: memory, a processor for executing a program stored by the memory, the program when executed performing the method of any of claims 1 to 11.
16. A storage medium characterized in that the storage medium has stored therein a program for implementing the method according to any one of claims 1 to 11.
CN201910022352.XA 2019-01-11 2019-01-11 User head portrait processing method, device and system Active CN109992990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910022352.XA CN109992990B (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
CN201910022352.XA CN109992990B (en) 2019-01-11 2019-01-11 User head portrait processing method, device and system

Publications (2)

Publication Number Publication Date
CN109992990A CN109992990A (en) 2019-07-09
CN109992990B true CN109992990B (en) 2020-10-30

Family

ID=67129941

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN109992990B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955910B (en) * 2019-10-17 2022-02-25 北京博睿鑫娱科技有限公司 Anti-disturbance account management method based on object classification
CN111294275B (en) * 2020-02-26 2022-10-14 上海云鱼智能科技有限公司 User information indexing method, device, server and storage medium of IM tool

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391676A (en) * 2014-09-05 2016-03-09 腾讯科技(深圳)有限公司 Instant communication message processing method, device and system
CN105635232A (en) * 2014-11-19 2016-06-01 中兴通讯股份有限公司 Method and device for realizing dynamic head portrait
CN106161406A (en) * 2015-04-22 2016-11-23 深圳市腾讯计算机系统有限公司 The method and apparatus obtaining user account
US9917962B1 (en) * 2016-10-20 2018-03-13 Kabushiki Kaisha Toshiba Multifunction peripheral with avatar based login
CN107885985A (en) * 2017-11-23 2018-04-06 维沃移动通信有限公司 A kind of application program account sharing method and terminal
CN108923908A (en) * 2018-06-25 2018-11-30 百度在线网络技术(北京)有限公司 authorization processing method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391676A (en) * 2014-09-05 2016-03-09 腾讯科技(深圳)有限公司 Instant communication message processing method, device and system
CN105635232A (en) * 2014-11-19 2016-06-01 中兴通讯股份有限公司 Method and device for realizing dynamic head portrait
CN106161406A (en) * 2015-04-22 2016-11-23 深圳市腾讯计算机系统有限公司 The method and apparatus obtaining user account
US9917962B1 (en) * 2016-10-20 2018-03-13 Kabushiki Kaisha Toshiba Multifunction peripheral with avatar based login
CN107885985A (en) * 2017-11-23 2018-04-06 维沃移动通信有限公司 A kind of application program account sharing method and terminal
CN108923908A (en) * 2018-06-25 2018-11-30 百度在线网络技术(北京)有限公司 authorization processing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动社交应用的用户隐私泄露问题研究;程瑶;《计算机学报》;20140307;第27卷(第1期);第87-100页 *

Also Published As

Publication number Publication date
CN109992990A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
US11895206B2 (en) Contextual connection invitations
US20220060549A1 (en) Systems and methods for facilitating discovery of users who share common characteristics within a social networking system
US8547381B2 (en) Controlling communications with proximate avatars in virtual world environment
US8788587B2 (en) System, method, and product for capturing memories
US10296536B2 (en) Tagging digital media
EP3767492B1 (en) Data information transaction method and system
US20080208956A1 (en) Content aggregation and sharing system
US20170011109A1 (en) System and method for dynamic and secure communication and synchronization of personal data records
US20120158935A1 (en) Method and systems for managing social networks
KR20210049993A (en) Prioritization of messages
JP5175404B1 (en) Server apparatus, method, and system
US9800628B2 (en) System and method for tagging images in a social network
WO2010002355A1 (en) System and method for facilitating the growth of a mobile community
TWI713327B (en) Message sending method and device and electronic equipment
CN109992990B (en) User head portrait processing method, device and system
US20120303481A1 (en) System and Method for Dynamic Object Mapping
US20140089403A1 (en) System and Method for Qualifying and Targeting Communications using Social Relationships
TW201435790A (en) Method of combining network data and mobile device using the same
CN110232267B (en) Business card display method and device, electronic equipment and storage medium
CN109995749B (en) User head portrait processing method, device and system
CN111325634A (en) User head portrait processing method, device and system
CN112243144B (en) Input method barrage display method, device, equipment and storage medium
US11109196B1 (en) Automatic formation of social networking group based on thread
Hosio et al. Leveraging social networking services to encourage interaction in public spaces
CN107317746B (en) Album sharing marking method and system

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