CN111176510A - Method and apparatus for changing head portrait - Google Patents

Method and apparatus for changing head portrait Download PDF

Info

Publication number
CN111176510A
CN111176510A CN201911389130.8A CN201911389130A CN111176510A CN 111176510 A CN111176510 A CN 111176510A CN 201911389130 A CN201911389130 A CN 201911389130A CN 111176510 A CN111176510 A CN 111176510A
Authority
CN
China
Prior art keywords
avatar
user
head portrait
social application
acquisition request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911389130.8A
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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201911389130.8A priority Critical patent/CN111176510A/en
Publication of CN111176510A publication Critical patent/CN111176510A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method and equipment for replacing head portraits. One embodiment of a method for replacing an avatar comprises: responding to the fact that the user triggers the avatar selection operation in the social application, determining a target avatar selected by the user in the social application, wherein the source of the target avatar comprises at least one of an image appearing in a chat session message in the social application, an image which is sent by a first avatar acquisition request to a server and returned by the server after the avatar selection operation is triggered, and an image which is loaded to the local by the user through a network in advance; and replacing the head portrait of the user in the social application with the target head portrait. The embodiment provides a new avatar replacement mode for the social application, and enriches the avatar replacement mode of the social application.

Description

Method and apparatus for changing head portrait
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and equipment for replacing head portraits.
Background
In the existing social application, the user can freely change the avatar according to the requirement. For example, the user may change the avatar by customizing the picture.
At present, the commonly used head portrait replacing method mainly includes the following two methods. First, the user selects a pre-stored avatar locally and uploads it. The method needs a user to store the head portrait in advance and remember the path of the stored head portrait to find the head portrait for replacement. And secondly, the user takes a picture in real time and uploads the picture as a head portrait.
Disclosure of Invention
The embodiment of the application provides a method and equipment for replacing head portraits.
In a first aspect, an embodiment of the present application provides a method for replacing an avatar, which is applied to a terminal, and includes: responding to the fact that the user triggers the avatar selection operation in the social application, determining a target avatar selected by the user in the social application, wherein the source of the target avatar comprises at least one of an image appearing in a chat session message in the social application, an image which is sent by a first avatar acquisition request to a server and returned by the server after the avatar selection operation is triggered, and an image which is loaded to the local by the user through a network in advance; and replacing the head portrait of the user in the social application with the target head portrait.
In a second aspect, an embodiment of the present application provides a method for replacing an avatar, which is applied to a server, and includes: receiving a head portrait acquisition request sent by a terminal of a user; acquiring a head portrait or a head portrait set based on the head portrait acquisition request; and sending the head portrait or the head portrait set to the terminal of the user, so that the social application in the terminal displays the head portraits in the head portrait selection interface.
In a third aspect, an embodiment of the present application provides an apparatus for replacing a head portrait, which is disposed on a terminal, and includes: the determining unit is configured to determine a target avatar selected by a user in the social application in response to detecting that the user triggers avatar selection operation in the social application, wherein the source of the target avatar comprises at least one of an image appearing in a chat session message in the social application, an image which is sent by sending a first avatar acquisition request to the server and returned by the server after the avatar selection operation is triggered, and an image which is loaded to the local by the user through a network in advance; a replacement unit configured to replace the avatar of the user in the social application with the target avatar.
In a fourth aspect, an embodiment of the present application provides an apparatus for replacing a head portrait, which is disposed at a server, and includes: a receiving unit configured to receive a head portrait acquisition request transmitted by a terminal of a user; an acquisition unit configured to acquire a head portrait or a head portrait set based on a head portrait acquisition request; the sending unit is configured to send the head portrait or the head portrait set to a terminal of a user, so that the social application in the terminal displays the plurality of head portraits in the head portrait selection interface.
In a fifth aspect, an embodiment of the present application provides a computer device, including: one or more processors; a storage device on which one or more programs are stored; when executed by one or more processors, cause the one or more processors to implement a method as described in any implementation of the first aspect, or to implement a method as described in any implementation of the second aspect.
In a sixth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which when executed by a processor implements the method described in any of the implementation manners in the first aspect, or implements the method described in any of the implementation manners in the second aspect.
According to the method and the device for replacing the avatar, provided by the embodiment of the application, if the fact that the user triggers the avatar selection operation in the social application is detected, the target avatar selected by the user in the social application is determined; and then replacing the head portrait of the user in the social application with the target head portrait. A new avatar replacement mode is provided for the social application, and the avatar replacement mode of the social application is enriched. Moreover, the process of searching and selecting the head portrait by the user is embedded in the social application, the user can directly complete searching and selecting the head portrait in the social application, the head portrait does not need to be selected outside the social application first and then uploaded in the social application, the operation of replacing the head portrait by the user is simplified, and the user experience is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for replacing an avatar according to the present application;
FIG. 3 is a flow chart of yet another embodiment of a method for replacing an avatar according to the present application;
FIG. 4 is a flow chart of another embodiment of a method for replacing an avatar according to the present application;
FIG. 5 is a flow chart of yet another embodiment of a method for replacing an avatar according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use with the computer device of some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 illustrates an exemplary system architecture 100 to which the method for replacing an avatar of the present application may be applied.
As shown in fig. 1, system architecture 100 may include devices 101, 102, 103, 104 and network 105. The network 105 is the medium by which communication links are provided between the devices 101, 102, 103, 104. Network 105 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The devices 101, 102, 103, 104 may be hardware devices or software that support network connectivity to provide various network services. When the device is hardware, it can be a variety of electronic devices including, but not limited to, smart phones, tablets, laptop portable computers, desktop computers, servers, and the like. In this case, the hardware device may be implemented as a distributed device group including a plurality of devices, or may be implemented as a single device. When the device is software, the software can be installed in the electronic devices listed above. At this time, as software, it may be implemented as a plurality of software or software modules for providing a distributed service, for example, or as a single software or software module. And is not particularly limited herein.
In practice, a device may provide a respective network service by installing a respective client application or server application. After the device has installed the client application, it may be embodied as a client in network communications. Accordingly, after the server application is installed, it may be embodied as a server in network communications.
As an example, in fig. 1, the devices 101, 102 are embodied as clients, while the devices 103, 104 are embodied as servers. For example, the devices 101, 102 may be clients installed with social applications, the device 103 may be a server of a social application, and the device 104 may be a server of a hosted application of a social application.
It should be understood that the number of networks and devices in fig. 1 is merely illustrative. There may be any number of networks and devices, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for replacing an avatar according to the present application is shown. The method for replacing the head portrait is applied to a terminal (such as a device 101 shown in FIG. 1) of a user, and comprises the following steps:
step 201, in response to detecting that the user triggers an avatar selection operation in the social application, determining a target avatar selected by the user in the social application.
In this embodiment, if it is detected that the user triggers the avatar selection operation in the social application, the terminal of the user may determine the target avatar selected by the user in the social application. The source of the target avatar may include, but is not limited to, at least one of an image appearing in a chat session message in the social application, an image returned by a first avatar acquisition request sent to a server of the social application (e.g., the device 103 shown in fig. 1) or a server of a hosted application of the social application (e.g., the device 104 shown in fig. 1) after triggering an avatar selection operation, and an image previously loaded locally by the user through the network.
In some embodiments, the user may trigger the avatar selection operation by operating directly on the avatar in any interface of the social application. The triggering manner of the avatar selection operation may include, but is not limited to, long pressing of the avatar, selection of an avatar replacement option from a plurality of operation options popped up after long pressing of the avatar, selection of an avatar replacement option from a plurality of options popped up after clicking the avatar, clicking an avatar selection interface entry on a user's personal homepage, dragging an image in a chat session to the avatar position, and the like.
And step 202, replacing the head portrait of the user in the social application with a target head portrait.
In this embodiment, the terminal of the user may replace the avatar of the user in the social application with the target avatar. Subsequently, if the user opens an interface including the user's avatar in the social application, the user's terminal will display the user's avatar as the target avatar on the interface.
In some embodiments, the user may edit the target avatar first, followed by an avatar change. In particular, the user's terminal may present an avatar editing interface. And if the fact that the user edits the target avatar on the avatar editing interface is detected, the terminal of the user can edit the target avatar. Wherein, the target head portrait can be displayed on the head portrait editing interface. In addition, various types of editing keys can be arranged on the avatar editing interface, including but not limited to a cutting key, a rotating key, an adjusting key and the like. Generally, when the user clicks any one of the editing keys, the terminal of the user can correspondingly edit the target avatar.
In some embodiments, the user's terminal may also send the target avatar to the server of the social application. The server of the social application may send the target avatar of the user to the associated user of the user. Subsequently, if the associated user opens an interface in the social application that includes the avatar of the user, the terminal of the associated user (e.g., device 102 shown in fig. 1) may display the avatar of the user as the target avatar on the interface. The associated user may be a user that can browse the user's avatar, including but not limited to the user's friends in a social application, the user in the same group chat with the user, and so on.
According to the method and the device for replacing the avatar, provided by the embodiment of the application, if the fact that the user triggers the avatar selection operation in the social application is detected, the target avatar selected by the user in the social application is determined; and then replacing the head portrait of the user in the social application with the target head portrait. A new avatar replacement mode is provided for the social application, and the avatar replacement mode of the social application is enriched. Moreover, the process of searching and selecting the head portrait by the user is embedded in the social application, the user can directly complete searching and selecting the head portrait in the social application, the head portrait does not need to be selected outside the social application first and then uploaded in the social application, the operation of replacing the head portrait by the user is simplified, and the user experience is improved.
With further reference to FIG. 3, a flow 300 of yet another embodiment of a method for replacing an avatar according to the present application is shown. The method for replacing the head portrait is applied to a terminal (such as the device 101 shown in FIG. 1), and comprises the following steps:
step 301, in response to detecting that the user triggers the avatar selection operation in the social application, acquiring and presenting an avatar selection interface.
In this embodiment, if it is detected that the user triggers the avatar selection operation in the social application, the terminal of the user may obtain and present an avatar selection interface. Wherein at least one of an avatar, an avatar set, or an avatar label may be presented on the avatar selection interface. The avatar or the set of avatars presented on the avatar selection interface may be loaded locally by the user in advance through the network, or after triggering the avatar selection operation, the first avatar acquisition request is sent to the service end of the social application (for example, the device 103 shown in fig. 1) or the service end of the hosted application of the social application (for example, the device 104 shown in fig. 1) and returned by the corresponding service end.
In some embodiments, the avatar or set of avatars presented on the avatar selection interface may be pre-loaded locally by the user over the network. For example, if it is detected that the user triggers the avatar selection operation in the social application, the terminal of the user may locally acquire the avatar or the avatar set, and generate an avatar selection interface. And the third application loading the head portrait or the head portrait set can have a cooperation agreement with the social application or not. In the case where the cooperation agreement exists, the terminal of the user may receive an addition notification of the third application. In response to the addition notification, the terminal of the user may add the avatar or the set of avatars downloaded by the user through the third application to the local for presenting the avatar or the set of avatars downloaded by the user through the third application when presenting the avatar selection interface. Wherein the add notification can be used to notify the social application to add an avatar or set of avatars downloaded by the user through the third application. Under the condition that no cooperation protocol exists, if the fact that the user starts the avatar adding interface is detected, the terminal of the user can present the avatar or the avatar set downloaded by the third application on the avatar adding interface. If it is detected that the user selects the avatar or the avatar set on the avatar adding interface, the terminal of the user may add the avatar or the avatar set selected by the user to the local for presenting the avatar or the avatar set selected by the user on the avatar adding interface when presenting the avatar selection interface.
In some embodiments, the avatar or set of avatars presented on the avatar selection interface may be retrieved from a server of the social application. For example, if it is detected that the user triggers avatar selection operation in the social application, the terminal of the user may send a first avatar acquisition request to the server of the social application, receive an avatar or an avatar set returned by the server of the social application, and generate an avatar selection interface.
In some embodiments, the avatar or set of avatars presented on the avatar selection interface may be retrieved from a server hosting the application. For example, if it is detected that the user triggers avatar selection operation in the social application, the terminal of the user may start a hosted application of the social application, send a first avatar acquisition request to a server of the hosted application through the hosted application, receive an avatar or an avatar set returned by the server of the hosted application, and generate an avatar selection interface, where the hosted application operates depending on the social application.
In some embodiments, the avatar may be presented directly on the avatar selection interface for selection by the user.
In some embodiments, a collection of avatars may be presented on the avatar selection interface. If detecting that the user selects the avatar set presented on the avatar selection interface, the terminal of the user can present the avatars in the selected avatar set on the avatar selection interface for the user to select.
In some embodiments, avatar tabs may be presented on the avatar selection interface. If detecting that the user selects the avatar label presented on the avatar selection interface, the terminal of the user can acquire the avatar set corresponding to the selected avatar label and present the avatar in the avatar set corresponding to the selected avatar label on the avatar selection interface for the user to select. The avatar set corresponding to the avatar tag presented on the avatar selection interface may be loaded locally by the user in advance through a network, or may be obtained from a service end of a social application or a hosted application. Under the condition of loading to the local through the network, the terminal of the user can search the corresponding head portrait set locally according to the head portrait label selected by the user. In the case of obtaining from the server of the social application or hosted application, the terminal of the user may send a second avatar obtaining request to the server of the social application or hosted application, and receive an avatar set returned by the server of the social application or hosted application and searched based on the second avatar obtaining request. The second avatar acquisition request may include an avatar tag selected by the user, so that the server of the social application or the hosted application searches for a corresponding avatar set according to the avatar tag selected by the user. In addition, the second avatar acquisition request may further include a search text input by the user, so that the server of the social application or the hosted application searches for a corresponding avatar set according to the avatar tag selected by the user and the search text input by the user. Specifically, when the user selects the avatar tag presented on the avatar selection interface, the user can also input search text at the same time. The terminal of the user may acquire the search text input by the user and generate a second avatar acquisition request based on the search text and the selected avatar tag.
In addition, multi-level avatar tags, such as a primary avatar tag, a secondary avatar tag, a tertiary avatar tag, and the like, may be presented on the avatar selection interface. The multiple secondary avatar labels can be sub-classifications of the primary avatar labels, the multiple tertiary avatar labels can be sub-classifications of the secondary avatar labels, and so on.
Step 302, in response to detecting that the user selects the avatar presented on the avatar selection interface, determining the selected avatar as the target avatar.
In this embodiment, if it is detected that the avatar presented on the avatar selection interface is selected by the user, the terminal of the user may determine the avatar selected by the user as the target avatar. The source of the avatar presented on the avatar selection interface may include, but is not limited to, at least one of an image that is obtained by sending a first avatar acquisition request to a server of the social application or hosted application and returned by the corresponding server after triggering the avatar selection operation, and an image that is previously loaded to the local by the user through the network.
In some embodiments, if it is detected that the user triggers the similar avatar recommendation operation on the avatar selection interface, the terminal of the user may obtain a similar avatar set of the avatar corresponding to the similar avatar recommendation operation, and present the similar avatar in the similar avatar set on the avatar selection interface. If the similar head portrait presented on the head portrait selection interface selected by the user is detected, the terminal of the user can determine the selected similar head portrait as the target head portrait. Generally, a recommendation key is also arranged near the head portrait presented on the head portrait selection interface. If the user directly selects the avatar, the user's terminal may determine the avatar selected by the user as the target avatar. If the user selects a recommendation key near the avatar, the terminal of the user detects that similar avatar recommendation operation is triggered. At this time, similar head portraits in the corresponding similar head portraits set can be presented on the head portraits selection interface for the user to select. The similar head portrait set can comprise head portraits which are the same as or similar to the style, color system, cartoon image or character of the head portraits corresponding to the similar head portrait recommending operation.
The similar head portrait set may be loaded locally by a user in advance through a network, or may be acquired from a service end of a social application or a hosted application. Under the condition of loading to the local through the network, the terminal of the user can search the corresponding similar head portrait set locally according to the head portrait corresponding to the similar head portrait recommending operation. In the case of obtaining from the server of the social application or hosted application, the terminal of the user may send a third avatar obtaining request to the server of the social application or hosted application, and receive a set of similar avatars searched based on the third avatar obtaining request returned by the server of the social application or hosted application. The third avatar obtaining request may include an avatar or an identifier thereof corresponding to the similar avatar recommendation operation, so that the server of the social application or the hosted application searches a corresponding similar avatar set according to the avatar or the identifier thereof.
Step 303, replacing the head portrait of the user in the social application with the target head portrait.
In this embodiment, the specific operation of step 303 has been described in detail in step 202 in the embodiment shown in fig. 2, and is not described herein again.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the flow 300 of the method for replacing the avatar in the present embodiment highlights the step of selecting the avatar on the avatar selection interface. Therefore, the scheme described in the embodiment presents a large number of head portraits for the user to select through the head portraits selection interface, so that the head portraits which can be selected by the user are richer.
With further reference to FIG. 4, a flow 400 of another embodiment of a method for replacing an avatar according to the present application is shown. The method for replacing the head portrait is applied to a terminal (such as a device 101 shown in FIG. 1) of a user, and comprises the following steps:
step 401, in response to detecting that the user drags the image in the chat session to the position of the avatar, determining the dragged image as the target avatar.
In this embodiment, if it is detected that the user drags the image in the chat session to the position of the avatar, the terminal of the user may determine the dragged image as the target avatar.
And step 402, replacing the head portrait of the user in the social application with a target head portrait.
In this embodiment, the specific operation of step 402 has been described in detail in step 202 in the embodiment shown in fig. 2, and is not described herein again.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for replacing the avatar in the present embodiment highlights the step of determining the target avatar by dragging the image. Therefore, according to the scheme described in the embodiment, the image in the chat session is dragged to the position of the head portrait, so that the head portrait of the user in the social application can be replaced by the image, and the operation of replacing the head portrait by the user is greatly simplified.
With further reference to FIG. 5, a flow 500 of yet another embodiment of a method for replacing an avatar according to the present application is shown. The method for changing the avatar is applied to a service end (such as the device 103 shown in fig. 1) of a social application or a service end (such as the device 104 shown in fig. 1) of a hosted application of the social application, and comprises the following steps:
step 501, receiving an avatar acquisition request sent by a terminal of a user.
In this embodiment, a server of the social application or the hosted application may receive an avatar acquisition request sent by a terminal of a user (e.g., the device 101 shown in fig. 1). The avatar acquisition request can be at least one of a first avatar acquisition request sent by the terminal of the user in response to detecting that the user triggers an avatar selection operation in a social application of the terminal, a second avatar acquisition request sent by the terminal of the user, and a third avatar acquisition request sent by the terminal of the user in response to detecting that the user triggers a similar avatar recommendation operation on an avatar selection interface.
Step 502, acquiring a head portrait or a head portrait set based on the head portrait acquisition request.
In this embodiment, the server of the social application or the hosted application may obtain the avatar or the set of avatars based on the avatar obtaining request.
In some embodiments, in the case that the avatar acquisition request is a first avatar acquisition request, the avatar or set of avatars may be searched by a server of the social application or hosted application in response to the first avatar acquisition request. In the case that the first avatar acquisition request is received, the server of the social application or the hosted application may randomly search for the avatar or the avatar set, search for the avatar or the avatar set based on the historical preference information of the user, or search for the avatar or the avatar set based on the big data of the user.
In some embodiments, in the case that the avatar acquisition request is a second avatar acquisition request, the avatar or the set of avatars may be searched by a server of the social application or the hosted application in response to the second avatar acquisition request. The second avatar acquisition request may include an avatar tag selected by the user on the avatar selection interface, so that the server of the social application or the hosted application searches for a corresponding avatar set according to the avatar tag selected by the user. In addition, the second avatar acquisition request may further include a search text input by the user, so that the server of the social application or the hosted application searches for a corresponding avatar set according to the avatar tag selected by the user and the search text input by the user.
In some embodiments, in the case that the avatar acquisition request is a third avatar acquisition request, the avatar or the set of avatars may be searched by a server of the social application or the hosted application in response to the third avatar acquisition request. The third avatar set acquisition request may include an avatar or an identifier thereof corresponding to the similar avatar recommendation operation, so that the server of the social application or the hosted application searches for the corresponding similar avatar set according to the avatar or the identifier selected by the user.
Step 503, sending the avatar or the set of avatars to the terminal of the user, so that the social application in the terminal displays a plurality of avatars in the presented avatar selection interface.
In this embodiment, the server of the social application or hosted application may send the avatar or set of avatars to the user's terminal. The social application of the user's terminal may display a plurality of avatars in the presented avatar selection interface for selection by the user to change avatars.
The method for replacing the head portrait provided by the above embodiment of the application, first receiving a head portrait obtaining request sent by a terminal of a user; then acquiring a head portrait or a head portrait set based on the head portrait acquisition request; and finally, sending the head portrait or the head portrait set to a terminal of the user, so that the social application in the terminal displays a plurality of head portraits in the head portrait selection interface presented by the social application, and the user can select to change the head portraits. A new avatar replacement mode is provided for the social application, and the avatar replacement mode of the social application is enriched. Moreover, the process of searching and selecting the head portrait by the user is embedded in the social application, the user can directly complete searching and selecting the head portrait in the social application, the head portrait does not need to be selected outside the social application first and then uploaded in the social application, the operation of replacing the head portrait by the user is simplified, and the user experience is improved.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use in implementing a computing device (e.g., devices 101, 103, 104 shown in FIG. 1) of an embodiment of the present application is shown. The computer device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a determination unit and a replacement unit. Where the names of these elements do not constitute a limitation on the elements themselves in this case, for example, the determination element may also be described as an "element that determines a target avatar selected by the user in the social application in response to detecting that the user triggered an avatar selection operation in the social application". As another example, it can be described as: a processor includes a receiving unit, an obtaining unit, and a transmitting unit. Here, the names of these units do not constitute a limitation to the unit itself in this case, and for example, the receiving unit may also be described as "a unit that receives an avatar acquisition request transmitted by a terminal of a user".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the computer device described in the above embodiments; or may exist separately and not be incorporated into the computer device. The computer readable medium carries one or more programs which, when executed by the computing device, cause the computing device to: responding to the fact that the user triggers the avatar selection operation in the social application, determining a target avatar selected by the user in the social application, wherein the source of the target avatar comprises at least one of an image appearing in a chat session message in the social application, an image which is sent by a first avatar acquisition request to a server and returned by the server after the avatar selection operation is triggered, and an image which is loaded to the local by the user through a network in advance; and replacing the head portrait of the user in the social application with the target head portrait. Or cause the computer device to: receiving a head portrait acquisition request sent by a terminal of a user; acquiring a head portrait or a head portrait set based on the head portrait acquisition request; and sending the head portrait or the head portrait set to the terminal of the user, so that the social application in the terminal displays the head portraits in the head portrait selection interface.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (23)

1. A method for replacing head portraits is applied to a terminal and comprises the following steps:
in response to detecting that a user triggers an avatar selection operation in a social application, determining a target avatar selected by the user in the social application, wherein a source of the target avatar comprises at least one of an image appearing in a chat session message in the social application, an image which is sent by a first avatar acquisition request to a server and returned by the server after the avatar selection operation is triggered, and an image which is loaded to a local place by the user through a network in advance;
and replacing the head portrait of the user in the social application with the target head portrait.
2. The method of claim 1, wherein the manner in which the avatar selection operation is triggered comprises long pressing the avatar, selecting an avatar change option from a plurality of operational options that pop up after long pressing the avatar, selecting an avatar change option from a plurality of options that pop up after single clicking the avatar, clicking an avatar selection interface entry on the user's personal home page, dragging an image in a chat session to an avatar location.
3. The method of claim 2, wherein the determining a target avatar selected by the user in the social application comprises:
acquiring and presenting a head portrait selection interface;
and in response to detecting that the user selects the avatar presented on the avatar selection interface, determining the selected avatar as the target avatar, wherein the source of the avatar presented on the avatar selection interface comprises at least one of an image which is sent to a server side by sending a first avatar acquisition request and returned by the server side after triggering the avatar selection operation, and an image which is loaded to the local by the user through a network in advance.
4. The method of claim 3, wherein the obtaining an avatar selection interface comprises:
sending a first avatar acquisition request to a server of the social application, receiving an avatar or an avatar set returned by the server of the social application, and generating an avatar selection interface; or
Starting a hosted application of the social application, sending the first avatar acquisition request to a server of the hosted application through the hosted application, receiving an avatar or an avatar set returned by the server of the hosted application, and generating the avatar selection interface, wherein the operation of the hosted application depends on the social application.
5. The method of claim 3, wherein prior to said determining the selected avatar as the target avatar in response to detecting the user selecting the avatar presented on the avatar selection interface, further comprising:
in response to detecting that the user selects the set of avatars presented on the avatar selection interface, presenting avatars in the selected set of avatars on the avatar selection interface.
6. The method of claim 3, wherein the avatar or set of avatars presented on the avatar selection interface is previously loaded locally by the user over a network or received by sending a first avatar acquisition request to a server of the social application or the hosted application after triggering the avatar selection operation.
7. The method of claim 6, wherein the method further comprises:
receiving an addition notification of a third application, wherein the addition notification is used for notifying the social application to add an avatar or an avatar set downloaded by the user through the third application;
and responding to the adding notification, adding the head portrait or the head portrait set downloaded by the user through the third application to the local, so that the head portrait or the head portrait set downloaded by the user through the third application is presented when the head portrait selection interface is presented.
8. The method of claim 3, wherein prior to said determining the selected avatar as the target avatar in response to detecting the user selecting the avatar presented on the avatar selection interface, further comprising:
in response to the fact that the user selects the avatar label presented on the avatar selection interface, acquiring an avatar set corresponding to the selected avatar label, and presenting the avatar in the avatar set corresponding to the selected avatar label on the avatar selection interface.
9. The method of claim 8, wherein the obtaining of the set of avatars corresponding to the selected avatar tag comprises:
sending a second avatar acquisition request to a server of the social application or the hosted application, wherein the second avatar acquisition request includes the selected avatar tag;
and receiving the head portrait set which is returned by the social application or the server side of the hosted application and searched based on the second head portrait acquisition request.
10. The method of claim 9, wherein prior to said sending a second avatar acquisition request to a server of said social application or said hosted application, further comprising:
and acquiring a search text input by the user, and generating the second avatar acquisition request based on the search text and the selected avatar label.
11. The method of claim 3, wherein prior to said determining the selected avatar as the target avatar in response to detecting the user selecting the avatar presented on the avatar selection interface, further comprising:
in response to the fact that the user triggers similar head portrait recommendation operation on the head portrait selection interface, acquiring a similar head portrait set of head portraits corresponding to the similar head portrait recommendation operation, and presenting similar head portraits in the similar head portrait set on the head portrait selection interface; and
the determining the selected avatar as the target avatar in response to detecting the user selecting the avatar presented on the avatar selection interface comprises:
in response to detecting that the user selects a similar avatar presented on the avatar selection interface, determining the selected similar avatar as the target avatar.
12. The method of claim 11, wherein the obtaining of the similar head portrait set of head portraits corresponding to the similar head portrait recommendation operation comprises:
sending a third avatar acquisition request to a server of the social application or the hosted application, wherein the third avatar acquisition request includes an avatar or an identifier thereof corresponding to the similar avatar recommendation operation;
and receiving a similar head portrait set which is returned by the social application or the server side of the hosted application and searched based on the third head portrait acquisition request.
13. The method of claim 2, wherein the determining a target avatar selected by a user in a social application in response to detecting that the user triggered an avatar selection operation in the social application comprises:
in response to detecting that the user drags an image in a chat session to an avatar position, determining the dragged image as the target avatar.
14. The method of any of claims 1-13, wherein prior to the replacing the avatar of the user in the social application with the target avatar, further comprising:
presenting an avatar editing interface, wherein the target avatar is displayed on the avatar editing interface;
and in response to detecting that the user edits the target avatar on the avatar editing interface, editing the target avatar.
15. The method according to one of claims 1 to 13, wherein the method further comprises:
and sending the target head portrait to a service end of the social application so that the service end of the social application sends the target head portrait of the user to an associated user of the user.
16. A method for replacing head portraits is applied to a server and comprises the following steps:
receiving a head portrait acquisition request sent by a terminal of a user;
acquiring an avatar or an avatar set based on the avatar acquisition request;
and sending the head portrait or the head portrait set to the terminal of the user, so that the social application in the terminal can display a plurality of head portraits in the head portrait selection interface.
17. The method of claim 16, wherein the avatar acquisition request is a first avatar acquisition request sent by the user's terminal in response to detecting that the user triggered an avatar selection operation in a social application of the terminal; the head portrait or the head portrait set is obtained by the server side in response to the first head portrait obtaining request.
18. The method of claim 17, wherein searching for an avatar or set of avatars in response to the first avatar acquisition request comprises:
randomly searching for the head portrait or the head portrait set; or
Searching for an avatar or set of avatars based on the user's historical preference information; or
Searching for the avatar or set of avatars based on the user big data.
19. The method according to claim 16, wherein the avatar acquisition request is a second avatar acquisition request sent by the user's terminal, wherein the second avatar acquisition request includes an avatar tag selected by the user on the avatar selection interface; the head portrait or the head portrait set is obtained by the server side in response to the second head portrait obtaining request.
20. The method of claim 19, wherein the second avatar acquisition request further includes search text entered by the user.
21. The method according to claim 16, wherein the avatar acquisition request is a third avatar acquisition request sent by the terminal of the user in response to detecting that the user triggers a similar avatar recommendation operation on the avatar selection interface, wherein the third avatar set acquisition request includes an avatar or an identifier thereof corresponding to the similar avatar recommendation operation; and the head portrait or the head portrait set is obtained by the server side in response to the third head portrait acquisition request.
22. A computer device, comprising:
one or more processors;
a storage device on which one or more programs are stored;
when executed by the one or more processors, cause the one or more processors to implement a method as claimed in any one of claims 1-15, or to implement a method as claimed in any one of claims 16-21.
23. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 15 or carries out the method of any one of claims 16 to 21.
CN201911389130.8A 2019-12-30 2019-12-30 Method and apparatus for changing head portrait Pending CN111176510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911389130.8A CN111176510A (en) 2019-12-30 2019-12-30 Method and apparatus for changing head portrait

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911389130.8A CN111176510A (en) 2019-12-30 2019-12-30 Method and apparatus for changing head portrait

Publications (1)

Publication Number Publication Date
CN111176510A true CN111176510A (en) 2020-05-19

Family

ID=70622352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911389130.8A Pending CN111176510A (en) 2019-12-30 2019-12-30 Method and apparatus for changing head portrait

Country Status (1)

Country Link
CN (1) CN111176510A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599017A (en) * 2009-07-14 2009-12-09 阿里巴巴集团控股有限公司 A kind of generation mthods, systems and devices of head image of network user
CN101795260A (en) * 2009-12-24 2010-08-04 宇龙计算机通信科技(深圳)有限公司 Method for displaying head portrait of contact person and corresponding service system, server and terminals
CN102006568A (en) * 2010-11-25 2011-04-06 北京格致璞科技有限公司 Method, equipment and system for providing portrait service
CN104750349A (en) * 2013-12-30 2015-07-01 北京新媒传信科技有限公司 Setting method and setting device for users' head portraits
US20160062611A1 (en) * 2014-08-28 2016-03-03 Samsung Electronics Co., Ltd. Image display device and method
CN107659611A (en) * 2017-08-14 2018-02-02 北京五八信息技术有限公司 User's head portrait generation method, device and system based on big data
CN109388456A (en) * 2018-09-20 2019-02-26 维沃移动通信有限公司 A kind of head portrait selection method and mobile terminal
CN109408187A (en) * 2018-10-31 2019-03-01 努比亚技术有限公司 Head portrait setting method, device, mobile terminal and readable storage medium storing program for executing
CN109829152A (en) * 2018-12-13 2019-05-31 深圳壹账通智能科技有限公司 Head portrait replacing options, device, computer equipment and storage medium
CN110505072A (en) * 2019-09-27 2019-11-26 连尚(新昌)网络科技有限公司 For backing up method, terminal device and the computer-readable medium of chat record

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599017A (en) * 2009-07-14 2009-12-09 阿里巴巴集团控股有限公司 A kind of generation mthods, systems and devices of head image of network user
CN101795260A (en) * 2009-12-24 2010-08-04 宇龙计算机通信科技(深圳)有限公司 Method for displaying head portrait of contact person and corresponding service system, server and terminals
CN102006568A (en) * 2010-11-25 2011-04-06 北京格致璞科技有限公司 Method, equipment and system for providing portrait service
CN104750349A (en) * 2013-12-30 2015-07-01 北京新媒传信科技有限公司 Setting method and setting device for users' head portraits
US20160062611A1 (en) * 2014-08-28 2016-03-03 Samsung Electronics Co., Ltd. Image display device and method
CN107659611A (en) * 2017-08-14 2018-02-02 北京五八信息技术有限公司 User's head portrait generation method, device and system based on big data
CN109388456A (en) * 2018-09-20 2019-02-26 维沃移动通信有限公司 A kind of head portrait selection method and mobile terminal
CN109408187A (en) * 2018-10-31 2019-03-01 努比亚技术有限公司 Head portrait setting method, device, mobile terminal and readable storage medium storing program for executing
CN109829152A (en) * 2018-12-13 2019-05-31 深圳壹账通智能科技有限公司 Head portrait replacing options, device, computer equipment and storage medium
CN110505072A (en) * 2019-09-27 2019-11-26 连尚(新昌)网络科技有限公司 For backing up method, terminal device and the computer-readable medium of chat record

Similar Documents

Publication Publication Date Title
CN107622135B (en) Method and apparatus for displaying information
CN110708346B (en) Information processing system and method
US11132114B2 (en) Method and apparatus for generating customized visualization component
US8949278B2 (en) Contact information management
CN111756917B (en) Information interaction method, electronic device and computer readable medium
WO2018019139A1 (en) Information pushing method and device
KR20140018276A (en) Push notifications for updating multiple dynamic icon panels
US10496696B2 (en) Search method and apparatus
CN109743245B (en) Method and device for creating group
CN110098998B (en) Method and apparatus for processing information
CN111162993B (en) Information fusion method and device
CN113568699B (en) Content display method, device, equipment and storage medium
CN110673886B (en) Method and device for generating thermodynamic diagrams
CN108768823B (en) Method and equipment for processing message and displaying message
CN114297476A (en) Questionnaire survey method, system, electronic equipment and storage medium based on user tags
CN113779422A (en) Method and device for realizing relation chain label, electronic equipment and storage medium
CN111125503B (en) Method and apparatus for generating information
CN106933449B (en) Icon processing method and device
CN111131359A (en) Method and apparatus for generating information
CN112016280B (en) File editing method and device and computer readable medium
CN112822089B (en) Method and device for adding friends
CN111176510A (en) Method and apparatus for changing head portrait
CN112947918A (en) Data display method and device
US9509772B1 (en) Visualization and control of ongoing ingress actions
CN112346615A (en) Information processing method and device

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