[go: up one dir, main page]

CN109754328A - 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
CN109754328A
CN109754328A CN201910027416.5A CN201910027416A CN109754328A CN 109754328 A CN109754328 A CN 109754328A CN 201910027416 A CN201910027416 A CN 201910027416A CN 109754328 A CN109754328 A CN 109754328A
Authority
CN
China
Prior art keywords
user
head portrait
account
avatar
target account
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.)
Withdrawn
Application number
CN201910027416.5A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910027416.5A priority Critical patent/CN109754328A/en
Publication of CN109754328A publication Critical patent/CN109754328A/en
Priority to CN202010021647.8A priority patent/CN111325634A/en
Withdrawn legal-status Critical Current

Links

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
    • G06F21/6263Protecting personal data, e.g. for financial or medical purposes during internet communication, e.g. revealing personal data from cookies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail

Landscapes

  • Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of user's head portrait processing methods, apparatus and system, which comprises receives the acquisition request for obtaining user's head portrait, the acquisition request includes target account;Obtain the sender's account for sending the acquisition request;Judge the customer relationship between described sender account and the target account;The corresponding user's head portrait of the target account is not obtained or obtained according to the customer relationship.The implementation of this method; compared with prior art; can prevent be not friend relation user from checking user's head portrait or can only check user's head portrait for checking to the user for not being friend relation; prevent malicious persons are from going out the account information of user according to user's head portrait association analysis, so as to protect the personal information of 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.
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; driving in a city to change the geographic position or simulating different geographic positions in the terminal, and continuously acquiring user head portraits of a large number of strange users in the network application in a geographic position friend making mode in the network application; then, the obtained user head portrait is compared in a user head portrait database of the city, so that the mobile phone numbers of some unfamiliar users in the network application can be compared; therefore, malicious persons can promote, harass or even cheat strange users in the network application through the compared mobile phone numbers.
Disclosure of Invention
The invention aims to provide a user head portrait processing method, a device and a system, which are used for providing a corresponding user head portrait according to whether users belong to a friend relationship or not, so that malicious persons cannot analyze account information of users who do not belong to the friend relationship according to the head portrait association of the users, and the purpose of protecting personal information of the users 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:
receiving an acquisition request for acquiring a head portrait of a user, wherein the acquisition request comprises a target account;
acquiring an account number of a sender sending the acquisition request;
judging a user relationship between the sender account and the target account, wherein the user relationship is a friend relationship or not;
and according to the user relationship, not obtaining or obtaining the user head portrait corresponding to the target account.
Preferably, after receiving the obtaining request for obtaining the avatar of the user and before obtaining the account of the sender sending the obtaining request, the method further includes:
acquiring a preset strategy of the target account according to the target account, wherein the strategy is one of strategy sets which allow the head portrait of the first user to be viewed and do not allow the head portrait of the first user to be viewed;
if the strategy is to allow the first user head portrait to be viewed, acquiring the first user head portrait corresponding to the target account, and not executing the step of acquiring the sender account sending the acquisition request;
and if the policy is that the first user avatar is not allowed to be viewed, executing the step of acquiring the account of the sender sending the acquisition request.
Preferably, the not obtaining or obtaining the user avatar corresponding to the target account according to the user relationship includes:
if the user relationship is a friend relationship, acquiring a first user head portrait corresponding to the target account; if the user relationship is not a friend relationship, not acquiring a first user avatar corresponding to the target account; or,
if the user relationship is a friend relationship, acquiring a first user head portrait corresponding to the target account; and if the user relationship is not the friend relationship, not acquiring or acquiring the user head portrait corresponding to the target account according to a preset strategy of the target account.
Preferably, the not obtaining or obtaining the user avatar corresponding to the target account according to the preset policy of the target account includes:
acquiring a preset strategy of the target account according to the target account, wherein the strategy is used for determining that a user who is not in a friend relationship views a user head portrait;
and according to the strategy, not obtaining or obtaining the user head portrait corresponding to the target account.
Preferably, the policy is one of a policy set including two policies of allowing the first user avatar to be viewed and not allowing the first user avatar to be viewed, and the not obtaining or obtaining the user avatar corresponding to the target account according to the policy includes:
if the strategy is to allow the first user head portrait to be viewed, acquiring the first user head portrait corresponding to the target account;
and if the policy is that the first user head portrait is not allowed to be viewed, not acquiring the first user head portrait corresponding to the target account.
Preferably, the step of not acquiring the first user avatar corresponding to the target account includes:
not acquiring a user head portrait corresponding to the target account; 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 target account; or,
and acquiring a second user head portrait preset for the target account by the user of the target account.
In a second aspect, a method for setting a user avatar is provided, the method comprising:
receiving a setting request for setting the head portrait of the user, wherein the setting request comprises a second head portrait of the user to be replaced;
acquiring a requester account sending the setting request, wherein the requester account pre-stores a corresponding first user avatar and a corresponding second user avatar, the first user avatar is a user avatar provided for a user with a friend relationship to view, and the second user avatar is a user avatar provided for a user not in the friend relationship to view;
and replacing the second user head portrait corresponding to the requesting party account with the second user head portrait to be replaced.
Preferably, replacing the second user avatar corresponding to the requesting account with the second user avatar to be replaced includes:
acquiring a first user head portrait corresponding to the account of the requesting party;
comparing the similarity between the head portrait of the second user to be replaced and the head portrait of the first user corresponding to the account of the requesting party, and determining the similarity value of the head portrait of the second user to be replaced and the head portrait of the first user corresponding to the account of the requesting party;
and if the similarity value is smaller than a preset threshold value, replacing the head portrait of the second user corresponding to the account of the requesting party with the head portrait of the second user to be replaced.
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.
Provided is a user avatar setting apparatus, device, or server, comprising: 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 setting method when running.
There is provided a user avatar processing system, comprising: a user avatar processing apparatus, device or server as described above and relating to a second user avatar processing and a user avatar setting apparatus, device or server as described above;
there is provided a storage medium for user avatar processing, characterized in that the storage medium has stored therein a program for implementing the user avatar processing method as described above.
There is provided a storage medium for user avatar setting, characterized in that the storage medium has stored therein a program for implementing the user avatar setting method as described above.
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 which is not viewed by the user with the friend relationship can not be viewed or can only be viewed by the user without the user with the friend relationship, so that the account information which is not viewed by the user with the friend relationship can not be analyzed by malicious personnel according to the head portrait association of the user, 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 flowchart illustrating a third embodiment of a method for processing a user avatar according to the present invention;
FIG. 4 is a flowchart illustrating a first embodiment of a method for setting a user avatar according to the present invention;
fig. 5 is a flowchart illustrating a second embodiment of a method for setting a user avatar 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:
step 101, receiving an acquisition request for acquiring a head portrait of a user, wherein the acquisition request comprises a target account.
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 acquisition request comprises a target account, and the 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 102, acquiring an account of a sender sending the acquisition request.
Acquiring the sender account of the acquisition request may include various embodiments, for example, if the acquisition request includes the sender account, acquiring the sender account included in the acquisition request; for another example, the user account associated with the session state is obtained according to the session state of the obtaining request, and the user account associated with the session state is the sender account.
And 103, judging the user relationship between the sender account and the target account.
And judging the user relationship between the sender account and the target account, wherein the user relationship between the sender account and the target account generally comprises a friend relationship and is not a friend relationship.
If the system establishes a primary account and an associated account for a user in the system and a user relationship is established between the primary accounts, if the sender account or/and the target account is not the primary account, the sender account or/and the primary account associated with the target account are acquired first, and then the user relationship between the sender account and the target account is judged according to the acquired primary account.
In addition, the user relationship between the sender account and the target account may also include a relationship of the sender account and the target account. And if the sender account number is the same as the target account number, or if the sender account number and the target account number belong to the same primary account number, the user relationship is the own relationship.
And 104, not acquiring or acquiring the user head portrait corresponding to the target account according to the user relationship.
And according to the user relationship, not obtaining or obtaining the user head portrait corresponding to the target account, wherein the main purpose is to enable a user with a friend relationship to view the first user head portrait of the target account and to enable a user without the friend relationship not to view the first user head portrait of the target account, so that the user without the friend relationship cannot perform association analysis based on the first user head portrait of the target account.
Specifically, not obtaining or obtaining the user avatar corresponding to the target account according to the user relationship includes:
if the user relationship is a friend relationship, acquiring a first user head portrait corresponding to the target account;
and if the user relationship is not the friend relationship, not acquiring the head portrait of the first user corresponding to the target account.
In addition, when the relationship is the self-relationship, the first user avatar corresponding to the target account may be acquired, the user avatar corresponding to the target account may not be acquired, and an interface for viewing or setting personal information of the user may be returned to the sender. The present invention is not limited to these embodiments.
And after the first user head portrait corresponding to the target account is obtained, returning the first user head portrait to the sender so as to display the first user head portrait on the client of the sender.
It should be noted that, if the system establishes a primary account and a related account for a user in the system, and the primary account is related to user information such as a first user avatar of the user, if the target account is the related account, the primary account related to the target account may be acquired first, and then the corresponding first user avatar may be acquired according to the acquired primary account.
Further, not acquiring the first user avatar corresponding to the target account may further include various embodiments, which specifically may include:
in the first implementation mode, the head portrait of the user corresponding to the target account is not acquired.
After determining that the user avatar corresponding to the target account is not obtained, information indicating that the user avatar is not obtained may be returned, or if the obtaining request is an obtaining request for obtaining user information including the user avatar, other user information may be obtained without obtaining the user avatar according to the obtaining request and returned to the sender.
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 corresponding to the target account, 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 of the target account is male, selecting a user avatar representing male; for another example, if the age of the target account is a child, a user avatar representing the child is selected.
The system can also pre-store or load one or more user head portraits in the client, the system returns the file information (such as the file name or the number of the user head portraits) of the user head portraits to the sender, and then 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 in advance for user accounts such as the target account in the system, establishes a corresponding relation between the user accounts and the second user head portrait, and acquires the pre-generated second user head portrait according to the target account.
The system generates a corresponding second user avatar for the user account in the system in advance, 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 the user account. 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 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 another example, the system provides an avatar material library for the user to select a plurality of materials from the avatar material library, and the system generates a second user avatar from the user-selected avatar materials, such that the generated second user avatar may represent the user's preferences or typical characteristics, but may be different or highly similar to the first user avatar.
And thirdly, acquiring a second user head portrait preset by the user of the target account for the target account.
The user of the target account sets a corresponding second user head portrait for the target account in advance, a corresponding relation between the user account of the user and the second user head portrait of the user is established in the system, and the system acquires the second user head portrait corresponding to the target account and set by the user according to the target account.
It should be noted that, if the system establishes a primary account and an associated account for the user in the system, the second user avatar may establish a corresponding relationship between the primary account and the second user avatar in the system in advance. When the second user avatar corresponding to the target account is acquired, if the target account is a related account, the primary account related to the target account may be acquired first, and then the corresponding second user avatar may be acquired according to the acquired primary account.
It should be noted that the first user avatar and the second user avatar corresponding to the target account may correspond to both the file content of the user avatar and 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, the implementation process has the advantages that the embodiment enables the user who is not in the friend relationship not to view the user avatar or only view the user avatar for the user who is not in the friend relationship, so that malicious personnel can not perform association analysis of account information based on the first user avatar of the user.
Second, a user head portrait processing method embodiment two
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 for acquiring the avatar of the user according to the user relationship and the policy preset by the user, on the basis of the method provided by the first embodiment of the user avatar processing method. The method comprises the following steps:
step 201, receiving an acquisition request for acquiring a head portrait of a user, wherein the acquisition request comprises a target account.
And 202, acquiring a sender account for sending the acquisition request.
And 203, judging the user relationship between the sender account and the target account.
The above steps 201 to 203 can refer to steps 101 to 103, which are not described herein.
Step 204, executing corresponding steps according to the user relationship, wherein the steps comprise: if the user relationship is a friend relationship, acquiring a first user avatar corresponding to the target account, and not executing the following steps 205 to 206; if the user relationship is not a friend relationship, the following steps 205 to 206 are performed.
Step 205, obtaining a preset policy of the target account according to the target account, where the policy is a policy for determining that a user who is not in a friend relationship views a user avatar.
Specifically, the policy is one of a set of policies including two policies that allow the first user avatar to be viewed and that do not allow the first user avatar to be viewed.
Specifically, the target account and other users preset corresponding policies in the system, for example: the system provides a strategy set for a user to select on an interface set by the personal information of the user in advance; after the user selects one of the policies, the system records the policy selected by the user, that is, the policy corresponding to the user account of the user is recorded as the policy selected by the user.
Since the system records the preset policy of the user account such as the target account, the system can acquire the policy corresponding to the target account according to the target account, that is, the system can acquire the preset policy of the target account.
It is to be understood that the system may further provide a default policy, where the default policy is one of a set of policies, and if the target account does not set a corresponding policy in advance, the policy set in advance by the target account is determined to be the default policy provided by the system.
And 206, not acquiring or acquiring the user head portrait corresponding to the target account according to the strategy.
Specifically, not obtaining or obtaining the user avatar corresponding to the target account according to the policy may include:
if the strategy is to allow the first user head portrait to be viewed, acquiring the first user head portrait corresponding to the target account;
and if the policy is that the first user head portrait is not allowed to be viewed, not acquiring the first user head portrait corresponding to the target account.
Further, in order to improve the user experience, the policy that does not allow the first user avatar to be viewed may also be determined as a policy that does not allow the user avatar to be viewed, that is, the policy set provided by the system is a policy set including two policies that allow the first user avatar to be viewed and that do not allow the user avatar to be viewed, and then the policy is one of the policy sets including two policies that allow the first user avatar to be viewed and that do not allow the user avatar to be viewed. Therefore, not obtaining or obtaining the user avatar corresponding to the target account according to the policy includes:
if the strategy is to allow the first user head portrait to be viewed, acquiring the first user head portrait corresponding to the target account;
and if the strategy does not allow the user head portrait to be viewed, not acquiring the user head portrait corresponding to the target account.
Further, in order to improve the user experience, the policy that does not allow the first user avatar to be viewed may also be determined as a policy that allows the second user avatar to be viewed, that is, the set of policies provided by the system is a set of policies that includes two policies that allow the first user avatar to be viewed and allow the second user avatar to be viewed, and then the policy is one of the sets of policies that include two policies that allow the first user avatar to be viewed and allow the second user avatar to be viewed. Therefore, not obtaining or obtaining the user avatar corresponding to the target account according to the policy includes:
if the strategy is to allow the first user head portrait to be viewed, acquiring the first user head portrait corresponding to the target account;
and if the strategy is to allow the second user head portrait to be viewed, acquiring the second user head portrait corresponding to the target account.
It is to be understood that, when the above-mentioned policy that does not allow the viewing of the first user avatar is implemented as the policy that does not allow the viewing of the user avatar, that is, the policy set provided for the user to select does not include the policy for viewing the second user avatar, then the implementation related to the second user avatar may not be implemented in the system, including the implementation of the generation, storage, or setting of the second user avatar and the implementation of the policy related to viewing the second user avatar.
Compared with the prior art, the implementation process has the advantages that the user who is not in friend relationship can view the user avatar according to the strategy preset by the user, so that the protection measures to be taken for the user avatar can be determined according to the personal setting of the user.
Third, a user head portrait processing method embodiment III
Referring to fig. 3, fig. 3 is a flowchart illustrating a third embodiment of a method for processing a user avatar according to the present invention. The method provided by this embodiment is a process for acquiring the avatar of the user according to the user relationship and the policy preset by the user, 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 second embodiment of the user avatar processing method, where the method includes:
step 301, receiving an acquisition request for acquiring a head portrait of a user, wherein the acquisition request comprises a target account.
This step can refer to step 101, which is not described herein.
Step 302, obtaining a preset strategy of the target account according to the target account, wherein the strategy is used for determining that a user who is not in a friend relationship views the head portrait of the user.
Specifically, the policy is one of a set of policies including two policies that allow the first user avatar to be viewed and that do not allow the first user avatar to be viewed.
This step can refer to step 205, which is not described herein.
Step 303, executing corresponding steps according to the strategy, wherein the steps comprise: if the policy is to allow the first user avatar to be viewed, acquiring the first user avatar corresponding to the target account, and not executing the following steps 304 to 306; otherwise, the following steps 304 to 306 are performed.
And 304, acquiring the account of the sender sending the acquisition request.
And 305, judging the user relationship between the sender account and the target account.
The above steps 304 to 305 can refer to steps 102 to 103, which are not described herein.
Step 306, according to the user relationship, not obtaining or obtaining the user head portrait corresponding to the target account, including: if the user relationship is a friend relationship, acquiring a first user head portrait corresponding to the target account; and if the user relationship is not the friend relationship, not acquiring the head portrait of the first user corresponding to the target account.
Further, in order to improve the user experience, the policy that the first user avatar is not allowed to be viewed in step 303 may also be determined as a policy that the user avatar is not allowed to be viewed, that is, the policy set provided by the system is a policy set including two policies that the first user avatar is allowed to be viewed and the user avatar is not allowed to be viewed, and the policy set corresponds to the policy set provided by the system, and if the user relationship is not a friend relationship, the user avatar corresponding to the target account is not acquired.
Further, in order to improve the user experience, the policy that does not allow the first user avatar to be viewed in step 303 may also be determined as a policy that allows the second user avatar to be viewed, that is, the policy set provided by the system includes two policies that allow the first user avatar to be viewed and allow the second user avatar to be viewed, and corresponds to the policy set provided by the system, and if the user relationship is not a friend relationship, the second user avatar corresponding to the target account is obtained.
Compared with the prior art, the implementation process has the advantages that the user who is not in friend relationship can view the user head portrait according to the strategy preset by the user, and accordingly the user head portrait to be provided can be determined according to the personal setting of the user.
Fourth, a user head portrait setting method embodiment one
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a first embodiment of a method for setting a user avatar according to the present invention. The method comprises the following steps:
and step 401, receiving a setting request for setting the head portrait of the user, wherein the setting request comprises the head portrait of the second user to be replaced.
And 402, acquiring a requester account of the setting request, wherein the requester account pre-stores a corresponding first user avatar and a corresponding second user avatar, the first user avatar is used for being provided for a user with a friend relationship to view, and the second user avatar is used for being provided for a user without the friend relationship to view.
In the system, a corresponding first user avatar and a corresponding second user avatar are pre-established in a user account including the requester account and the like, the first user avatar is a user avatar provided for a user with a friend relationship to view, and the second user avatar is a user avatar provided for a user not in the friend relationship to view.
Further, if a corresponding first user avatar or/and a corresponding second user avatar is not established for a certain user account, the first user avatar or/and the corresponding second user avatar corresponding to the user account may be null, or a default first user avatar or/and second user avatar may be provided for the user account in advance by the system.
The obtaining of the requestor account of the acquisition request may include various embodiments, for example, if the setting request includes the requestor account, the requestor account included in the setting request is obtained; for another example, a user account associated with the session state is obtained according to the session state of the setting request, and the associated user account is the requesting account.
And 403, replacing the second user head portrait corresponding to the requesting party account with the second user head portrait to be replaced.
It can be understood that if the account of the requesting party does not have a corresponding second user avatar, establishing a corresponding relationship between the account of the requesting party and the second user avatar, where the second user avatar is the second to-be-replaced user avatar; and if the account of the requesting party already has the corresponding second user head portrait, replacing the existing second user head portrait with the second head portrait of the user to be replaced.
According to the implementation process, the second user avatar can be provided for the user who is not in the friend relationship to view, so that the user who is not in the friend relationship can be prevented from being incapable of performing association analysis on the user account information according to the user avatar, and personal information of the user can be protected.
Fifth, a method for setting user head portrait, embodiment two
Referring to fig. 5, fig. 5 is a flowchart illustrating a second embodiment of a method for setting a user avatar according to the present invention. The method provided by this embodiment is a process for comparing the similarity between the avatar of the second user and the avatar of the first user in the method provided by the first embodiment of the user avatar setting method. The method comprises the following steps:
and 501, receiving a setting request for setting the head portrait of the user, wherein the setting request comprises the head portrait of the second user to be replaced.
Step 502, obtaining a requester account for sending the setting request, wherein the requester account pre-stores a corresponding first user avatar and a corresponding second user avatar, the first user avatar is a user avatar provided for a user with a friend relationship to view, and the second user avatar is a user avatar provided for a user without a friend relationship to view.
And 503, acquiring a first user head portrait corresponding to the requesting party account.
Acquiring a first user head portrait corresponding to the requester account, including:
if the setting request is also used for setting a first user avatar, namely the setting request also comprises a first to-be-replaced user avatar used for replacing the first user avatar, determining the first to-be-replaced user avatar as the first user avatar corresponding to the requesting account;
if the setting request is not used for setting the first user head portrait, acquiring the corresponding first user head portrait pre-established by the requester account in the system;
if the requesting account does not establish a corresponding first user avatar in the system in advance, that is, the first user avatar corresponding to the requesting account is obtained as a null value in the system, step 504 and step 505 may not be executed, and step 506 may be directly executed.
And 504, comparing the similarity between the head portrait of the second user to be replaced and the head portrait of the first user corresponding to the requesting account, and determining the similarity value between the head portrait of the second user and the head portrait of the first user.
For example, the similarity between the second avatar to be replaced and the first avatar of the requesting account corresponding to the requesting account may be compared by using a perceptual hash algorithm, a peak signal-to-noise ratio (PSNR), a Structural Similarity (SSIM), or the like, and a similarity value between the two is obtained by comparing.
It can be understood that if the similarity value is higher, the similarity of the two is higher; the lower the similarity value is, the lower the similarity between the two is.
Step 505, comparing whether the similarity value is smaller than a preset threshold value; if yes, go to step 506.
Comparing whether the similarity value is smaller than a preset threshold value, if so, executing a step 506, and returning information indicating that the setting is successful to the sender; if not, step 506 is not performed, and information indicating that the setting failed may also be returned to the sender.
The preset threshold may be set according to a specific scenario, and the embodiment of the present invention is not particularly limited.
And 506, replacing the second user head portrait corresponding to the requesting party account with the second user head portrait to be replaced.
It should be noted that, if the system establishes a primary account and an associated account for a user in the system, the primary account may establish a corresponding relationship with the first user avatar or/and the second user avatar corresponding to the requesting account. If the requesting account is a related account, when acquiring or setting the first user avatar or/and the second user avatar, the primary account related to the requesting account may be acquired first, and then the corresponding first user avatar or/and the second user avatar may be acquired or set according to the acquired primary account.
As can be seen from the implementation process, the embodiment provides a method for setting a user avatar, based on the method provided in this embodiment, the set second user avatar may be used for being provided for a user who is not in a friend relationship to view, and it may be ensured that the set second user avatar has a certain difference from the first user avatar, so that it may be prevented that the user who is not in a friend relationship cannot perform association analysis of user account information according to the user avatar, and thus personal information of the user may be protected.
Furthermore, to achieve the above object, the present invention also provides a user avatar processing apparatus, device or server, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the user avatar processing method.
Furthermore, to achieve the above object, the present invention also provides a user avatar setting apparatus, device or server, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the user avatar setting method.
In addition, to achieve the above object, the present invention further provides a user avatar processing system, including: a user avatar processing apparatus, device or server as described above and relating to a second user avatar processing and a user avatar setting apparatus, device or server as described above.
In order to achieve the above object, the present invention also provides a storage medium for processing a user avatar, wherein the storage medium stores a program for implementing the user avatar processing method.
In addition, in order to achieve the above object, the present invention also provides a storage medium for user avatar setting, characterized in that the storage medium stores therein a program for implementing the user avatar setting method as described above.
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:
receiving an acquisition request for acquiring a head portrait of a user, wherein the acquisition request comprises a target account;
acquiring an account number of a sender sending the acquisition request;
judging a user relationship between the sender account and the target account, wherein the user relationship is a friend relationship or not;
and according to the user relationship, not obtaining or obtaining the user head portrait corresponding to the target account.
2. The method according to claim 1, wherein after receiving an acquisition request for acquiring the avatar of the user and before acquiring the account of the sender sending the acquisition request, the method further comprises:
acquiring a preset strategy of the target account according to the target account, wherein the strategy is one of strategy sets which allow the head portrait of the first user to be viewed and do not allow the head portrait of the first user to be viewed;
if the strategy is to allow the first user head portrait to be viewed, acquiring the first user head portrait corresponding to the target account, and not executing the step of acquiring the sender account sending the acquisition request;
and if the policy is that the first user avatar is not allowed to be viewed, executing the step of acquiring the account of the sender sending the acquisition request.
3. The method of claim 1, wherein the not obtaining or obtaining the user avatar corresponding to the target account according to the user relationship comprises:
if the user relationship is a friend relationship, acquiring a first user head portrait corresponding to the target account; if the user relationship is not a friend relationship, not acquiring a first user avatar corresponding to the target account; or,
if the user relationship is a friend relationship, acquiring a first user head portrait corresponding to the target account; and if the user relationship is not the friend relationship, not acquiring or acquiring the user head portrait corresponding to the target account according to a preset strategy of the target account.
4. The method according to claim 3, wherein the not obtaining or obtaining the user avatar corresponding to the target account according to the preset policy of the target account comprises:
acquiring a preset strategy of the target account according to the target account, wherein the strategy is used for determining that a user who is not in a friend relationship views a user head portrait;
and according to the strategy, not obtaining or obtaining the user head portrait corresponding to the target account.
5. The method of claim 4, wherein the policy is one of a set of policies including two policies of allowing the first user avatar to be viewed and not allowing the first user avatar to be viewed, and the policy not obtaining or obtaining the user avatar corresponding to the target account according to the policy comprises:
if the strategy is to allow the first user head portrait to be viewed, acquiring the first user head portrait corresponding to the target account;
and if the policy is that the first user head portrait is not allowed to be viewed, not acquiring the first user head portrait corresponding to the target account.
6. The method of claim 3 or 5, wherein the not obtaining the first user avatar corresponding to the target account comprises:
not acquiring a user head portrait corresponding to the target account; or,
and acquiring a second user head portrait corresponding to the target account.
7. The method of claim 6, wherein the obtaining the second user avatar corresponding to the target account comprises:
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 target account; or,
and acquiring a second user head portrait preset for the target account by the user of the target account.
8. A method for setting a user avatar, the method comprising:
receiving a setting request for setting the head portrait of the user, wherein the setting request comprises a second head portrait of the user to be replaced;
acquiring a requester account sending the setting request, wherein the requester account pre-stores a corresponding first user avatar and a corresponding second user avatar, the first user avatar is a user avatar provided for a user with a friend relationship to view, and the second user avatar is a user avatar provided for a user not in the friend relationship to view;
and replacing the second user head portrait corresponding to the requesting party account with the second user head portrait to be replaced.
9. The method of claim 8, wherein replacing the second user avatar corresponding to the requesting account with the second user avatar to be replaced comprises:
acquiring a first user head portrait corresponding to the account of the requesting party;
comparing the similarity between the head portrait of the second user to be replaced and the head portrait of the first user corresponding to the account of the requesting party, and determining the similarity value of the head portrait of the second user to be replaced and the head portrait of the first user corresponding to the account of the requesting party;
and if the similarity value is smaller than a preset threshold value, replacing the head portrait of the second user corresponding to the account of the requesting party with the head portrait of the second user to be replaced.
10. 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 7.
CN201910027416.5A 2019-01-11 2019-01-11 A kind of user's head portrait processing method, apparatus and system Withdrawn CN109754328A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910027416.5A CN109754328A (en) 2019-01-11 2019-01-11 A kind of user's head portrait processing method, apparatus and system
CN202010021647.8A CN111325634A (en) 2019-01-11 2020-01-10 User head portrait processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910027416.5A CN109754328A (en) 2019-01-11 2019-01-11 A kind of user's head portrait processing method, apparatus and system

Publications (1)

Publication Number Publication Date
CN109754328A true CN109754328A (en) 2019-05-14

Family

ID=66405591

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910027416.5A Withdrawn CN109754328A (en) 2019-01-11 2019-01-11 A kind of user's head portrait processing method, apparatus and system
CN202010021647.8A Pending CN111325634A (en) 2019-01-11 2020-01-10 User head portrait processing method, device and system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010021647.8A Pending CN111325634A (en) 2019-01-11 2020-01-10 User head portrait processing method, device and system

Country Status (1)

Country Link
CN (2) CN109754328A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760262A (en) * 2022-04-07 2022-07-15 湖南快乐阳光互动娱乐传媒有限公司 Virtual information processing method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006568A (en) * 2010-11-25 2011-04-06 北京格致璞科技有限公司 Method, equipment and system for providing portrait service
US8522358B2 (en) * 2010-12-28 2013-08-27 Verizon Patent And Licensing Inc. Universal identity service avatar ecosystem
CN104424340B (en) * 2013-09-11 2018-05-22 腾讯科技(深圳)有限公司 Social networking application information processing method, apparatus and system
CN105429847A (en) * 2014-09-22 2016-03-23 中国移动通信集团天津有限公司 Method and device for setting display avatar on client side
CN106209584B (en) * 2016-07-01 2018-10-26 腾讯科技(深圳)有限公司 User information processing method, client and server Internet-based
WO2018094725A1 (en) * 2016-11-28 2018-05-31 华为技术有限公司 Avatar display method and avatar display apparatus
CN107959757B (en) * 2017-12-11 2020-12-15 北京小米移动软件有限公司 User information processing method and device, APP server and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760262A (en) * 2022-04-07 2022-07-15 湖南快乐阳光互动娱乐传媒有限公司 Virtual information processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111325634A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
US10554601B2 (en) Spam detection and prevention in a social networking system
US20200296097A1 (en) Online identity verification platform and process
KR101805937B1 (en) Social browsing
US8126966B2 (en) Separating attachments received from a mobile device
US9798819B2 (en) Selective map marker aggregation
EP3163471B1 (en) Data information transaction method and system
CN106550004B (en) Service object recommendation method and device
CN111177499B (en) Label adding method and device and computer readable storage medium
CN105704005A (en) Malicious user reporting method and device, and reporting information processing method and device
KR20140105478A (en) Using photograph to initiate and perform action
US10810779B2 (en) Methods and systems for identifying target images for a media effect
US8843573B2 (en) Lightweight messaging with location between users of a social networking system
US20100266167A1 (en) Method and Apparatus for Encouraging Social Networking Through Employment of Facial Feature Comparison and Matching
KR20150132266A (en) Method and apparatus for requesting and providing access to information associated with an image
CN109274575B (en) Message sending method and device and electronic equipment
CN104935500B (en) Friend recommendation method and device based on network call
CN106790172A (en) A kind of file sharing method and server, client
CN107659611B (en) Big data-based user head portrait generation method, device and system
CN109787883B (en) Information processing method and device, electronic equipment and computer readable storage medium
CN110737844A (en) Data recommendation method and device, terminal equipment and storage medium
US20130276069A1 (en) Internet identity management
CN109992990B (en) User head portrait processing method, device and system
CN109754328A (en) A kind of user's head portrait processing method, apparatus and system
CN109995749B (en) User head portrait processing method, device and system
US8923574B2 (en) Method and apparatus for encouraging social networking through employment of facial feature comparison and matching

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190514

WW01 Invention patent application withdrawn after publication