CN109766506B - Picture processing method, device, terminal, server and storage medium - Google Patents

Picture processing method, device, terminal, server and storage medium Download PDF

Info

Publication number
CN109766506B
CN109766506B CN201811447255.7A CN201811447255A CN109766506B CN 109766506 B CN109766506 B CN 109766506B CN 201811447255 A CN201811447255 A CN 201811447255A CN 109766506 B CN109766506 B CN 109766506B
Authority
CN
China
Prior art keywords
picture
user
avatar
identifier
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811447255.7A
Other languages
Chinese (zh)
Other versions
CN109766506A (en
Inventor
肖战勇
王雪皎
田建伟
任亚鹏
叶邦宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201811447255.7A priority Critical patent/CN109766506B/en
Publication of CN109766506A publication Critical patent/CN109766506A/en
Application granted granted Critical
Publication of CN109766506B publication Critical patent/CN109766506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a picture processing method, a picture processing device, a terminal, a server and a storage medium. The method comprises the steps that a terminal obtains a picture identifier of a first picture shared by a first user, the first picture comprises a user head portrait of the first user, a user head portrait of a second user is obtained, a head portrait adding request comprising the picture identifier and the user head portrait of the second user is generated, and the head portrait adding request is sent to a server. And the server acquires a first picture according to the picture identification, adds a user head portrait of a second user in the first picture to obtain a second picture, and sends the second picture to the terminal. And the terminal shares the second picture with a third user. Through the method and the device, after each user adds the user head portrait in the picture, the picture added with the user head portrait can be shared by other users, and then the users can respectively add the user head portraits in the same picture in sequence, so that the users can simultaneously include the user head portraits of the users in the same picture, and social interaction is improved.

Description

Picture processing method, device, terminal, server and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, a server, and a storage medium for processing an image.
Background
With the rapid development of technology, various social platforms are endlessly layered, and many mobile applications are propagated through social platform fission to increase brand exposure.
The user may upload a photo including his or her head portrait to the mobile application, and the mobile application may add a particular effect to the photo, such as wearing military gear, bachelor, wedding or chinese clothing, or treating the face to make it beautiful, or to change the style, etc. And then, the photo added with the specific effect is returned to the user, and after the user obtains the photo added with the specific effect fed back by the mobile application, if the photo added with the specific effect is satisfied, the user can share the mobile application with other users, so that the other users can upload a photo including the head portrait of the user to the mobile application and obtain the photo added with the specific effect. The image processing method has poor interactivity and is not beneficial to the transmission and sharing of images.
Disclosure of Invention
In order to improve interactivity of a picture processing mode and facilitate spreading and sharing of pictures, the application provides a picture processing method, a device, a terminal, a server and a storage medium.
According to a first aspect of the present application, there is provided a picture processing method, the method comprising:
acquiring a picture identifier of a first picture shared by a first user, wherein the first picture comprises a user head portrait of the first user;
acquiring a user head portrait of a second user;
generating an avatar adding request comprising the picture identifier and the user avatar of the second user, wherein the avatar adding request is used for requesting to add the user avatar of the second user in the first picture according to the picture identifier;
sending the head portrait adding request;
receiving a second picture returned according to the avatar adding request, wherein the second picture is obtained after the user avatar of the second user is added in the first picture;
and sharing the second picture to a third user.
In an optional implementation manner, the obtaining a user avatar of a second user includes:
receiving an uploaded user picture comprising a user avatar of a second user;
and carrying out face recognition on the user picture to obtain a user head portrait of the second user in the user picture.
In an optional implementation manner, the obtaining of the picture identifier of the first picture shared by the first user includes:
acquiring a third picture shared by a first user, wherein the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture;
displaying the third picture;
receiving sharing operation input on the third picture;
and identifying the picture identifier of the first picture included in the graphic code according to the sharing operation.
In an optional implementation, the method further includes:
receiving a picture identifier of the second picture;
the sharing the second picture to a third user includes:
generating a fourth picture, wherein the fourth picture comprises the second picture and a second graphic code, and the second graphic code comprises a picture identifier of the second picture;
sharing the fourth picture with the third user.
In an optional implementation, the first picture further includes an alternative avatar.
In an alternative implementation, the replaceable head portrait is multiple; the avatar addition request also carries an avatar identifier of the replaceable avatar to be replaced by the user avatar of the second user.
According to a second aspect of the present application, there is provided a picture processing method, the method comprising:
receiving an avatar adding request comprising a picture identifier of a first picture and an avatar of a user of a second user, wherein the avatar adding request is used for requesting to add the avatar of the user of the second user in the first picture according to the picture identifier;
acquiring the first picture according to the picture identification;
adding a user head portrait of the second user in the first picture to obtain a second picture;
and sending the second picture.
In an optional implementation, the first picture further comprises a replaceable avatar;
the adding of the user avatar of the second user in the first picture includes:
replacing the replaceable avatar in the first picture with a user avatar of the second user.
In an alternative implementation, the replaceable head portrait is multiple;
the method further comprises the following steps:
determining an alternative avatar specified in the plurality of alternative avatars;
said replacing in said first picture said replaceable avatar with said second user's avatar, comprising:
replacing the designated replaceable avatar with the second user's avatar in the first picture.
In an optional implementation manner, the avatar addition request further carries an avatar identifier of a replaceable avatar to be replaced by the user avatar of the second user;
the determining an alternative avatar specified in the plurality of alternative avatars includes:
and determining the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
In an optional implementation, the method further includes:
acquiring a picture identifier of the second picture;
and sending the picture identification of the second picture.
According to a third aspect of the present application, there is provided a picture processing apparatus, the apparatus comprising:
the first obtaining module is configured to obtain a picture identifier of a first picture shared by a first user, wherein the first picture comprises a user head portrait of the first user;
a second obtaining module configured to obtain a user avatar of a second user;
a generating module configured to generate an avatar addition request including the picture identifier and a user avatar of the second user, the avatar addition request being used to request addition of the user avatar of the second user in the first picture according to the picture identifier;
a first sending module configured to send the avatar addition request;
a first receiving module, configured to receive a second picture returned according to the avatar addition request, where the second picture is obtained after a user avatar of the second user is added to the first picture;
a sharing module configured to share the second picture to a third user.
In an optional implementation manner, the second obtaining module includes:
a first receiving unit configured to receive an uploaded user picture including a user avatar of a second user;
the first identification unit is configured to perform face identification on the user picture to obtain a user head portrait of the second user in the user picture.
In an optional implementation manner, the first obtaining module includes:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is configured to acquire a third picture shared by a first user, the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture;
a display unit configured to display the third picture;
a second receiving unit configured to receive a sharing operation input on the third picture;
the second identification unit is configured to identify the picture identifier of the first picture included in the graphic code according to the sharing operation.
In an optional implementation, the apparatus further comprises:
a second receiving module configured to receive a picture identification of the second picture;
the sharing module comprises:
the generating unit is configured to generate a fourth picture, the fourth picture comprises the second picture and a second graphic code, and the second graphic code comprises a picture identifier of the second picture;
a sharing unit configured to share the fourth picture with the third user.
In an optional implementation, the first picture further includes an alternative avatar.
In an alternative implementation, the replaceable head portrait is multiple; the avatar addition request also carries an avatar identifier of the replaceable avatar to be replaced by the user avatar of the second user.
According to a fourth aspect of the present application, there is provided a picture processing apparatus, the apparatus comprising:
a third receiving module, configured to receive an avatar addition request including a picture identifier of a first picture and a user avatar of a second user, where the avatar addition request is used to request that a user avatar of the second user is added in the first picture according to the picture identifier;
a third obtaining module configured to obtain the first picture according to the picture identifier;
the adding module is configured to add the user head portrait of the second user in the first picture to obtain a second picture;
a second sending module configured to send the second picture.
In an optional implementation, the first picture further comprises a replaceable avatar;
the adding module is specifically configured to: replacing the replaceable avatar in the first picture with a user avatar of the second user.
In an alternative implementation, the replaceable head portrait is multiple;
the device further comprises:
a determination module configured to determine an alternative avatar specified in the plurality of alternative avatars;
the adding module is specifically configured to: replacing the designated replaceable avatar with the second user's avatar in the first picture.
In an optional implementation manner, the avatar addition request further carries an avatar identifier of a replaceable avatar to be replaced by the user avatar of the second user;
the determination module is specifically configured to: and determining the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
In an optional implementation, the apparatus further comprises:
a fourth obtaining module configured to obtain a picture identifier of the second picture;
a third sending module configured to send a picture identification of the second picture.
According to a fifth aspect of the present application, there is provided a terminal comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the picture processing method according to the first aspect.
According to a sixth aspect of the present application, there is provided a server comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the picture processing method according to the second aspect.
According to a seventh aspect of the present application, there is provided a non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a terminal, enable the terminal to perform the picture processing method according to the first aspect.
According to an eighth aspect of the present application, there is provided a non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a server, enable the server to perform the picture processing method according to the second aspect.
According to a ninth aspect of the present application, there is provided a computer program product, wherein the instructions of the computer program product, when executed by a processor of a terminal, enable the terminal to perform the picture processing method according to the second aspect.
According to a tenth aspect of the present application, there is provided a computer program product, wherein the instructions of the computer program product, when executed by a processor of a server, enable the server to perform the picture processing method according to the second aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
in the method, a terminal obtains a picture identifier of a first picture shared by a first user, the first picture comprises a user head portrait of the first user, obtains a user head portrait of a second user, generates a head portrait adding request comprising the picture identifier and the user head portrait of the second user, and the head portrait adding request is used for requesting to add the user head portrait of the second user in the first picture according to the picture identifier and sends the head portrait adding request to a server. And the server receives the head portrait adding request, acquires a first picture according to the picture identification, adds a user head portrait of a second user in the first picture to obtain a second picture, and sends the second picture to the terminal. And the terminal receives the second picture sent by the server and shares the second picture with a third user. Through the method and the device, after each user adds the user head portrait in the picture, the picture added with the user head portrait can be shared by other users, and then the users can sequentially add the user head portraits in the same picture respectively, so that the users can simultaneously include the user head portraits of the users in the same picture, and social interaction is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a block diagram illustrating a picture processing system according to the present application.
Fig. 2 is a flowchart of a picture processing method shown in the present application.
Fig. 3 is a flowchart of a picture processing method shown in the present application.
Fig. 4 is a flowchart of a picture processing method shown in the present application.
Fig. 5 is a block diagram of a picture processing apparatus shown in the present application.
Fig. 6 is a block diagram of a picture processing apparatus shown in the present application.
Fig. 7 is a block diagram of a terminal shown in the present application.
Fig. 8 is a block diagram of a server according to the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a block diagram of a structure of a picture processing system shown in the present application, and as shown in fig. 1, the system includes a terminal 01 and a server 02, data interaction can be performed between the terminal 01 and the server 02, and the terminal 01 includes a mobile phone, a tablet computer, a notebook computer, or the like.
Fig. 2 is a flowchart of a picture processing method shown in the present application, and as shown in fig. 2, the method is applied to the system shown in fig. 1, and the method includes the following steps.
In step S101, the terminal obtains a picture identifier of a first picture shared by the first user, where the first picture includes a user avatar of the first user.
In the application, after the first user adds the user avatar of the first user to the original picture, the user avatar of the first user may be added to the original picture to obtain a first picture, the first picture may then be shared with the second user to increase social interaction, for example, the first picture may be sent to a terminal used by the second user through a social network, and after the terminal receives the first picture sent by the first user through the social network, a first picture may be displayed on the screen of the terminal, after which a second user may view the first picture on the screen of the terminal, and view the user's avatar of the first user on the first picture, in order to increase the social interaction, the second user may add a user avatar of the second user to the first picture, so that the obtained picture simultaneously contains the user head portrait of the first user and the user head portrait of the second user. The second user may input a sharing operation on the terminal, and after the terminal receives the sharing operation, the terminal may obtain the picture identifier of the first picture, and then execute step S102.
In an embodiment of the application, when a first user shares a first picture with a second user, the first user often shares a third picture including the first picture with the second user, and the third picture further includes a first graphic code, and the first graphic code includes a picture identifier of the first picture. The terminal can generate a third picture according to the first picture and the picture identifier of the first picture, and then shares the first picture with the second user by sharing the third picture with the second user, so that the terminal receives the third picture shared by the first user.
Therefore, in the application, the terminal obtains a third picture shared by the first user, the third picture comprises the first picture and the first graphic code, the first graphic code comprises a picture identifier of the first picture, the third picture is displayed on a screen, the second user can input a sharing operation on the third picture on the terminal, the terminal receives the sharing operation input by the second user on the third picture, and then the picture identifier of the first picture in the first graphic code is identified according to the sharing operation.
In step S102, the terminal acquires a user avatar of the second user.
In the present application, the user of the terminal is the second user, and in order to add the user avatar of the second user to the first picture,
the second user can upload a user picture comprising a user avatar of the second user to the terminal; and the terminal receives the uploaded user picture, and then performs face recognition on the user picture to obtain a user head portrait of a second user in the user picture.
Or the terminal may take a user picture including a user avatar of the second user in real time, and then perform face recognition on the user picture to obtain the user avatar of the second user in the user picture.
Or, the terminal may select a user picture including a user avatar of the second user from an album of the terminal, and then perform face recognition on the user picture to obtain the user avatar of the second user in the user picture.
The user image may be subjected to face recognition by using any face recognition algorithm in the prior art, which is not limited in the present application.
Because the space occupied by the user picture including the user avatar of the second user is larger than the space occupied by the user avatar of the second user in the user picture, if the user picture including the user avatar of the second user is directly sent to the server to enable the server to perform face recognition on the user picture, more network resources are occupied, and only the user avatar of the second user in the user picture is sent to the server, so that the network resources can be saved.
In the present application, the sequence between step S101 and step S102 may be exchanged.
For example, when the second user needs to add the user avatar of the second user to the first picture, the sharing operation may be input on the terminal, and after the terminal receives the sharing operation, step S101 may be executed first and then step S102 may be executed, or step S102 may be executed first and then step S101 may be executed.
In step S103, the terminal generates an avatar addition request including the picture identifier and a user avatar of the second user, where the avatar addition request is used to request that the user avatar of the second user is added to the first picture according to the picture identifier.
In step S104, the terminal transmits the avatar addition request to the server.
In this application, the first graphic code may further include a URL (Uniform Resource Locator) of the server, so that when the terminal identifies the first graphic code, the terminal may identify the URL of the server in addition to the picture identifier of the first picture, and in this step, the terminal may send the avatar addition request to the server according to the URL of the server.
In step S105, the server receives the avatar addition request.
In step S106, the server obtains a first picture according to the picture identifier.
In the application, a plurality of pictures are stored in the server in advance, each picture has a picture identifier, the picture identifiers of different pictures are different, for any picture stored in the server, the server can enable the picture identifier of the picture and the picture to form a corresponding table entry and store the corresponding table entry in the corresponding relation between the picture identifier and the picture, and the same is true for each other picture stored in the server.
Therefore, in this step, the server may search for the picture corresponding to the picture identifier in the correspondence between the picture identifier and the picture, and use the picture as the first picture.
In step S107, the server adds the user avatar of the second user to the first picture to obtain a second picture.
In one embodiment of the present application, the first picture further includes an alternative avatar therein. The replaceable avatar may be different from the user avatar of the first user, and in this step, the replaceable avatar may be replaced with the user avatar of the second user in the first picture to obtain the second picture, so that the user avatar of the first user and the user avatar of the second user may be simultaneously included in the second picture.
The original picture used by the first user to add the user avatar of the first user may be a picture containing the user avatars of multiple people, which is prepared in advance by the server, and the background of the picture is more specific, such as beautiful landscape, or historical architecture, or the contained people are more specific, such as star.
The server can recognize the character avatar of each character in the original picture in advance and take the avatar of each character as the replaceable avatar.
In another embodiment of the present application, the number of replaceable avatars included in the first picture is plural, and therefore, the server needs to determine a replaceable avatar specified in the plural replaceable avatars and then replace the specified replaceable avatar with the user avatar of the second user in the first picture.
The avatar addition request also carries an avatar identifier of a replaceable avatar to be replaced by the avatar of the second user, and different avatar identifiers of different replaceable avatars are different.
For example, when the terminal displays the first picture, each replaceable avatar may be marked in the first picture, for example, each replaceable avatar is respectively indicated by using a dotted line, the user may view each indicated replaceable avatar in the displayed first picture, and select one replaceable avatar as a replaceable avatar to be replaced by the user avatar of the second user, that is, the specified replaceable avatar, so that when the terminal generates the avatar addition request, the avatar identification of the specified replaceable avatar may be added in the avatar addition request.
Therefore, the server can determine the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
In step S108, the server transmits the second picture to the terminal.
In step S109, the terminal receives the second picture sent by the server.
In step S110, the terminal shares the second picture with the third user.
In the application, after the terminal receives the second picture sent by the server, the second picture can be displayed on a screen of the terminal, the second user can watch the second picture displayed on the screen of the terminal, and the user head portrait of the first user and the user head portrait of the second user can be watched in the second picture, so that the social interaction can be improved.
Furthermore, the second user can also input a sharing operation on the terminal, the sharing operation is used for sharing the second picture to the third user through the social platform, so that the third user controls the terminal to add the user head portrait of the third user to the second picture according to the process to obtain a fourth picture, then the fourth picture is shared to the fourth user, and so on, so that more users can sequentially add the user head portraits to the same picture, and the social interaction is further improved.
The social platform comprises a QQ, a WeChat or a fast hand, and the like, a third user can be different from the first user and the second user, and the third user can be a friend of the second user, and the like. The fourth user may be different from the first user, the second user, and the third user, the fourth user may be a friend of the third user, and so on.
Further, in another embodiment, after obtaining the second picture in step S107, the server may further obtain a picture identifier of the second picture, and then send the picture identifier of the second picture to the terminal. (ii) a And sending the picture identification of the second picture to the terminal when the second picture is sent to the terminal.
Therefore, the terminal can receive the second picture sent by the server and also can receive the picture identifier of the second picture, so that a fifth picture can be generated when the third user shares the second picture, the fifth picture comprises the second picture and a second graphic code, and the second graphic code comprises the picture identifier of the second picture. And then share the fifth picture with a third user.
In the method, a terminal obtains a picture identifier of a first picture shared by a first user, the first picture comprises a user head portrait of the first user, obtains a user head portrait of a second user, generates a head portrait adding request comprising the picture identifier and the user head portrait of the second user, and the head portrait adding request is used for requesting to add the user head portrait of the second user in the first picture according to the picture identifier and sends the head portrait adding request to a server. And the server receives the head portrait adding request, acquires a first picture according to the picture identification, adds a user head portrait of a second user in the first picture to obtain a second picture, and sends the second picture to the terminal. And the terminal receives the second picture sent by the server and shares the second picture with a third user. Through the method and the device, after each user adds the user head portrait in the picture, the picture added with the user head portrait can be shared by other users, and then the users can sequentially add the user head portraits in the same picture respectively, so that the users can simultaneously include the user head portraits of the users in the same picture, and social interaction is improved.
Fig. 3 is a flowchart of a picture processing method shown in the present application, and as shown in fig. 3, the method is applied to the terminal 01 shown in fig. 1, and the method includes the following steps.
In step S201, a picture identifier of a first picture shared by a first user is obtained, where the first picture includes a user avatar of the first user;
in step S202, a user avatar of a second user is acquired;
in step S203, an avatar adding request including the picture identifier and a user avatar of the second user is generated, where the avatar adding request is used to request to add the user avatar of the second user in the first picture according to the picture identifier;
in step S204, an avatar addition request is sent;
in step S205, receiving a second picture returned according to the avatar addition request, where the second picture is obtained by adding the avatar of the second user to the first picture;
in step S206, the second picture is shared with the third user.
In an alternative implementation, obtaining a user avatar of a second user includes:
receiving an uploaded user picture comprising a user avatar of a second user;
and carrying out face recognition on the user picture to obtain a user head portrait of a second user in the user picture.
In an optional implementation manner, obtaining a picture identifier of a first picture shared by a first user includes:
acquiring a third picture shared by the first user, wherein the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture;
displaying the third picture;
receiving sharing operation input on a third picture;
and identifying the picture identifier of the first picture included in the picture code according to the sharing operation.
In an optional implementation, the method further includes:
receiving a picture identifier of a second picture;
sharing the second picture to a third user, comprising:
generating a fourth picture, wherein the fourth picture comprises a second picture and a second graphic code, and the second graphic code comprises a picture identifier of the second picture;
and sharing the fourth picture with a third user.
In an alternative implementation, the first picture also includes an alternative avatar.
In an alternative implementation, the replaceable avatar is multiple; the avatar addition request also carries an avatar identification of the replaceable avatar to be replaced by the user avatar of the second user.
In the method, a picture identifier of a first picture shared by a first user is obtained, wherein the first picture comprises a user head portrait of the first user; acquiring a user head portrait of a second user; generating an avatar adding request comprising the picture identifier and a user avatar of the second user, wherein the avatar adding request is used for requesting to add the user avatar of the second user in the first picture according to the picture identifier; sending a head portrait adding request; receiving a second picture returned according to the avatar adding request, wherein the second picture is obtained after a user avatar of a second user is added in the first picture; and sharing the second picture to a third user. Through the method and the device, after each user adds the user head portrait in the picture, the picture added with the user head portrait can be shared by other users, and then the users can sequentially add the user head portraits in the same picture respectively, so that the users can simultaneously include the user head portraits of the users in the same picture, and social interaction is improved.
Fig. 4 is a flowchart of a picture processing method shown in the present application, and as shown in fig. 4, the method is applied to the server 02 shown in fig. 1, and the method includes the following steps.
In step S301, an avatar adding request including a picture identifier of a first picture and a user avatar of a second user is received, where the avatar adding request is used to request to add the user avatar of the second user in the first picture according to the picture identifier;
in step S302, a first picture is obtained according to the picture identifier;
in step S303, adding a user avatar of a second user to the first picture to obtain a second picture;
in step S304, a second picture is transmitted.
In an optional implementation, the first picture further comprises an alternative avatar;
adding a user head portrait of a second user in the first picture, comprising:
the replaceable avatar is replaced in the first picture with the user avatar of the second user.
In an alternative implementation, the replaceable avatar is multiple;
the method further comprises the following steps:
determining an alternative avatar specified in the plurality of alternative avatars;
replacing the replaceable avatar in the first picture with a user avatar of a second user, comprising:
the specified replaceable avatar is replaced in the first picture with the user avatar of the second user.
In an optional implementation manner, the avatar addition request further carries an avatar identifier of a replaceable avatar to be replaced by the user avatar of the second user;
determining an alternative avatar specified in the plurality of alternative avatars, comprising:
and determining the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
In an optional implementation, the method further includes:
acquiring a picture identifier of a second picture;
and sending the picture identification of the second picture.
In the method, an avatar adding request comprising a picture identifier of a first picture and a user avatar of a second user is received, wherein the avatar adding request is used for requesting to add the user avatar of the second user in the first picture according to the picture identifier; acquiring a first picture according to the picture identifier; adding a user head portrait of a second user in the first picture to obtain a second picture; and sending the second picture. Through the method and the device, after each user adds the user head portrait in the picture, the picture added with the user head portrait can be shared by other users, and then the users can sequentially add the user head portraits in the same picture respectively, so that the users can simultaneously include the user head portraits of the users in the same picture, and social interaction is improved.
Fig. 5 is a block diagram of a picture processing apparatus according to the present application. Referring to fig. 5, the apparatus includes:
the first obtaining module 11 is configured to obtain a picture identifier of a first picture shared by a first user, where the first picture includes a user avatar of the first user;
a second obtaining module 12 configured to obtain a user avatar of a second user;
a generating module 13 configured to generate an avatar adding request including the picture identifier and a user avatar of the second user, where the avatar adding request is used to request to add the user avatar of the second user in the first picture according to the picture identifier;
a first sending module 14 configured to send the avatar addition request;
a first receiving module 15, configured to receive a second picture returned according to the avatar addition request, where the second picture is obtained after the avatar of the second user is added to the first picture;
a sharing module 16 configured to share the second picture to a third user.
In an optional implementation manner, the second obtaining module 12 includes:
a first receiving unit configured to receive an uploaded user picture including a user avatar of a second user;
the first identification unit is configured to perform face identification on the user picture to obtain a user head portrait of the second user in the user picture.
In an optional implementation manner, the first obtaining module 11 includes:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is configured to acquire a third picture shared by a first user, the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture;
a display unit configured to display the third picture;
a second receiving unit configured to receive a sharing operation input on the third picture;
the second identification unit is configured to identify the picture identifier of the first picture included in the graphic code according to the sharing operation.
In an optional implementation, the apparatus further comprises:
a second receiving module configured to receive a picture identification of the second picture;
the sharing module 16 includes:
the generating unit is configured to generate a fourth picture, the fourth picture comprises the second picture and a second graphic code, and the second graphic code comprises a picture identifier of the second picture;
a sharing unit configured to share the fourth picture with the third user.
In an optional implementation, the first picture further includes an alternative avatar.
In an alternative implementation, the replaceable head portrait is multiple; the avatar addition request also carries an avatar identifier of the replaceable avatar to be replaced by the user avatar of the second user.
In the method, a picture identifier of a first picture shared by a first user is obtained, wherein the first picture comprises a user head portrait of the first user; acquiring a user head portrait of a second user; generating an avatar adding request comprising the picture identifier and a user avatar of the second user, wherein the avatar adding request is used for requesting to add the user avatar of the second user in the first picture according to the picture identifier; sending a head portrait adding request; receiving a second picture returned according to the avatar adding request, wherein the second picture is obtained after a user avatar of a second user is added in the first picture; and sharing the second picture to a third user. Through the method and the device, after each user adds the user head portrait in the picture, the picture added with the user head portrait can be shared by other users, and then the users can sequentially add the user head portraits in the same picture respectively, so that the users can simultaneously include the user head portraits of the users in the same picture, and social interaction is improved.
Fig. 6 is a block diagram of a picture processing apparatus according to the present application. Referring to fig. 6, the apparatus includes:
a third receiving module 21, configured to receive an avatar addition request including a picture identifier of a first picture and a user avatar of a second user, where the avatar addition request is used to request that a user avatar of the second user is added to the first picture according to the picture identifier;
a third obtaining module 22 configured to obtain the first picture according to the picture identifier;
an adding module 23, configured to add the user avatar of the second user to the first picture to obtain a second picture;
a second sending module 24 configured to send the second picture.
In an optional implementation, the first picture further comprises a replaceable avatar;
the adding module 23 is specifically configured to: replacing the replaceable avatar in the first picture with a user avatar of the second user.
In an alternative implementation, the replaceable head portrait is multiple;
the device further comprises:
a determination module configured to determine an alternative avatar specified in the plurality of alternative avatars;
the adding module is specifically configured to: replacing the designated replaceable avatar with the second user's avatar in the first picture.
In an optional implementation manner, the avatar addition request further carries an avatar identifier of a replaceable avatar to be replaced by the user avatar of the second user;
the determination module is specifically configured to: and determining the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
In an optional implementation, the apparatus further comprises:
a fourth obtaining module configured to obtain a picture identifier of the second picture;
a third sending module configured to send a picture identification of the second picture.
In the method, an avatar adding request comprising a picture identifier of a first picture and a user avatar of a second user is received, wherein the avatar adding request is used for requesting to add the user avatar of the second user in the first picture according to the picture identifier; acquiring a first picture according to the picture identifier; adding a user head portrait of a second user in the first picture to obtain a second picture; and sending the second picture. Through the method and the device, after each user adds the user head portrait in the picture, the picture added with the user head portrait can be shared by other users, and then the users can sequentially add the user head portraits in the same picture respectively, so that the users can simultaneously include the user head portraits of the users in the same picture, and social interaction is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram of a terminal 800 shown in the present application. For example, the terminal 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 7, terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on terminal 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of terminal 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 800.
The multimedia component 808 includes a screen providing an output interface between the terminal 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the terminal 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for terminal 800. For example, sensor assembly 814 can detect the open/closed state of device 800, the relative positioning of components, such as a display and keypad of terminal 800, sensor assembly 814 can also detect a change in position of terminal 800 or a component of terminal 800, the presence or absence of user contact with terminal 800, orientation or acceleration/deceleration of terminal 800, and a change in temperature of terminal 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal 800 and other devices in a wired or wireless manner. The terminal 800 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 8 is a block diagram of a server 1900 shown in the present application. For example, server 1900 may be provided as a server.
Referring to FIG. 8, the server 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The server 1900 may further include a power component 1926 configured to perform power management of the server 1900, a wired or wireless network interface 1950 configured to connect the server 1900 to a network, and an input/output (I/O) interface 1958. The server 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
1. A method of picture processing, the method comprising:
acquiring a picture identifier of a first picture shared by a first user, wherein the first picture comprises a user head portrait of the first user;
acquiring a user head portrait of a second user;
generating an avatar adding request comprising the picture identifier and the user avatar of the second user, wherein the avatar adding request is used for requesting to add the user avatar of the second user in the first picture according to the picture identifier;
sending the head portrait adding request;
receiving a second picture returned according to the avatar adding request, wherein the second picture is obtained after the user avatar of the second user is added in the first picture;
and sharing the second picture to a third user.
2. The method of 1, wherein the obtaining of the user avatar of the second user, comprises:
receiving an uploaded user picture comprising a user avatar of a second user;
and carrying out face recognition on the user picture to obtain a user head portrait of the second user in the user picture.
3. The method according to 1, wherein the obtaining of the picture identifier of the first picture shared by the first user includes:
acquiring a third picture shared by a first user, wherein the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture;
displaying the third picture;
receiving sharing operation input on the third picture;
and identifying the picture identifier of the first picture included in the graphic code according to the sharing operation.
4. The method of 1, further comprising:
receiving a picture identifier of the second picture;
the sharing the second picture to a third user includes:
generating a fourth picture, wherein the fourth picture comprises the second picture and a second graphic code, and the second graphic code comprises a picture identifier of the second picture;
sharing the fourth picture with the third user.
5. The method of 1, the first picture further comprising an alternative avatar therein.
6. The method of 5, wherein the replaceable avatar is plural; the avatar addition request also carries an avatar identifier of the replaceable avatar to be replaced by the user avatar of the second user.
7. A method of picture processing, the method comprising:
receiving an avatar adding request comprising a picture identifier of a first picture and an avatar of a user of a second user, wherein the avatar adding request is used for requesting to add the avatar of the user of the second user in the first picture according to the picture identifier;
acquiring the first picture according to the picture identification;
adding a user head portrait of the second user in the first picture to obtain a second picture;
and sending the second picture.
8. The method of 7, the first picture further comprising an alternative avatar therein;
the adding of the user avatar of the second user in the first picture includes:
replacing the replaceable avatar in the first picture with a user avatar of the second user.
9. The method of 8, wherein the replaceable avatar is plural;
the method further comprises the following steps:
determining an alternative avatar specified in the plurality of alternative avatars;
said replacing in said first picture said replaceable avatar with said second user's avatar, comprising:
replacing the designated replaceable avatar with the second user's avatar in the first picture.
10. According to the method of 9, the avatar addition request further carries an avatar identifier of a replaceable avatar to be replaced by the user avatar of the second user;
the determining an alternative avatar specified in the plurality of alternative avatars includes:
and determining the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
11. The method of 7, further comprising:
acquiring a picture identifier of the second picture;
and sending the picture identification of the second picture.
12. A picture processing apparatus, the apparatus comprising:
the first obtaining module is configured to obtain a picture identifier of a first picture shared by a first user, wherein the first picture comprises a user head portrait of the first user;
a second obtaining module configured to obtain a user avatar of a second user;
a generating module configured to generate an avatar addition request including the picture identifier and a user avatar of the second user, the avatar addition request being used to request addition of the user avatar of the second user in the first picture according to the picture identifier;
a first sending module configured to send the avatar addition request;
a first receiving module, configured to receive a second picture returned according to the avatar addition request, where the second picture is obtained after a user avatar of the second user is added to the first picture;
a sharing module configured to share the second picture to a third user.
13. The apparatus of claim 12, the second obtaining means comprising:
a first receiving unit configured to receive an uploaded user picture including a user avatar of a second user;
the first identification unit is configured to perform face identification on the user picture to obtain a user head portrait of the second user in the user picture.
14. The apparatus of claim 12, the first obtaining module comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is configured to acquire a third picture shared by a first user, the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture;
a display unit configured to display the third picture;
a second receiving unit configured to receive a sharing operation input on the third picture;
the second identification unit is configured to identify the picture identifier of the first picture included in the graphic code according to the sharing operation.
15. The apparatus of 12, further comprising:
a second receiving module configured to receive a picture identification of the second picture;
the sharing module comprises:
the generating unit is configured to generate a fourth picture, the fourth picture comprises the second picture and a second graphic code, and the second graphic code comprises a picture identifier of the second picture;
a sharing unit configured to share the fourth picture with the third user.
16. The apparatus of claim 12, the first picture further comprising an alternate avatar therein.
17. The apparatus of claim 16, wherein the replaceable avatar is plural; the avatar addition request also carries an avatar identifier of the replaceable avatar to be replaced by the user avatar of the second user.
18. A picture processing apparatus, the apparatus comprising:
a third receiving module, configured to receive an avatar addition request including a picture identifier of a first picture and a user avatar of a second user, where the avatar addition request is used to request that a user avatar of the second user is added in the first picture according to the picture identifier;
a third obtaining module configured to obtain the first picture according to the picture identifier;
the adding module is configured to add the user head portrait of the second user in the first picture to obtain a second picture;
a second sending module configured to send the second picture.
19. The apparatus of 18, the first picture further comprising an alternate avatar therein;
the adding module is specifically configured to: replacing the replaceable avatar in the first picture with a user avatar of the second user.
20. The apparatus of claim 19, wherein the replaceable avatar is plural;
the device further comprises:
a determination module configured to determine an alternative avatar specified in the plurality of alternative avatars;
the adding module is specifically configured to: replacing the designated replaceable avatar with the second user's avatar in the first picture.
21. According to the apparatus 20, the avatar addition request further carries an avatar identifier of a replaceable avatar to be replaced by the user avatar of the second user;
the determination module is specifically configured to: and determining the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
22. The apparatus of 18, further comprising:
a fourth obtaining module configured to obtain a picture identifier of the second picture;
a third sending module configured to send a picture identification of the second picture.

Claims (26)

1. A picture processing method is applied to a terminal of a second user, and comprises the following steps:
acquiring a third picture shared by a first user, wherein the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture and a URL (uniform resource locator) of a server; according to the sharing operation input by a second user, identifying a first graphic code in a third picture sent to the second user by the first user, and acquiring a picture identifier of the first picture shared by the first user and a URL (uniform resource locator) of a server, wherein the first picture comprises a user head portrait of the first user;
acquiring a user head portrait of the second user;
generating an avatar adding request comprising the picture identifier and the user avatar of the second user, wherein the avatar adding request is used for requesting to add the user avatar of the second user in the first picture according to the picture identifier;
sending the head portrait adding request to a server according to the URL of the server;
receiving a second picture returned according to the avatar adding request, wherein the second picture is obtained after the user avatar of the second user is added in the first picture stored in the server;
and sharing the second picture to a third user.
2. The method of claim 1, wherein the obtaining a user avatar of a second user comprises:
receiving an uploaded user picture comprising a user avatar of a second user;
and carrying out face recognition on the user picture to obtain a user head portrait of the second user in the user picture.
3. The method of claim 1, wherein obtaining the picture identifier of the first picture shared by the first user comprises:
displaying the third picture;
receiving sharing operation input on the third picture;
and identifying the picture identifier of the first picture included in the graphic code according to the sharing operation.
4. The method of claim 1, further comprising:
receiving a picture identifier of the second picture;
the sharing the second picture to a third user includes:
generating a fourth picture, wherein the fourth picture comprises the second picture and a second graphic code, and the second graphic code comprises a picture identifier of the second picture;
sharing the fourth picture with the third user.
5. The method of claim 1, wherein the first picture further comprises an alternate avatar therein.
6. The method of claim 5, wherein the replaceable avatar is plural; the avatar addition request also carries an avatar identifier of the replaceable avatar to be replaced by the user avatar of the second user.
7. A picture processing method is applied to a server and comprises the following steps:
receiving an avatar adding request comprising a picture identifier of a first picture and an avatar of a user of a second user, wherein the avatar adding request is a request sent by a terminal of the second user to the server according to a URL (uniform resource locator) of the server and used for adding the avatar of the user of the second user in the first picture according to the picture identifier, and the picture identifier of the first picture and the URL of the server are obtained by identifying a first graphic code in a third picture sent by the first user to the second user by the terminal of the second user according to a sharing operation input by the second user; the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture and a URL (uniform resource locator) of the server;
acquiring the first picture stored in a server according to the picture identifier;
adding a user head portrait of the second user in the first picture to obtain a second picture;
and sending the second picture.
8. The method of claim 7, wherein the first picture further comprises an alternate avatar;
the adding of the user avatar of the second user in the first picture includes:
replacing the replaceable avatar in the first picture with a user avatar of the second user.
9. The method of claim 8, wherein the replaceable avatar is plural;
the method further comprises the following steps:
determining an alternative avatar specified in the plurality of alternative avatars;
said replacing in said first picture said replaceable avatar with said second user's avatar, comprising:
replacing the designated replaceable avatar with the second user's avatar in the first picture.
10. The method according to claim 9, wherein the avatar addition request further carries an avatar identifier of an alternative avatar to be replaced by the user avatar of the second user;
the determining an alternative avatar specified in the plurality of alternative avatars includes:
and determining the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
11. The method of claim 7, further comprising:
acquiring a picture identifier of the second picture;
and sending the picture identification of the second picture.
12. A picture processing device, applied to a terminal of a second user, includes:
the first obtaining module is configured to obtain a third picture shared by a first user, the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture and a URL (uniform resource locator) of a server; according to the sharing operation input by a second user, identifying a first graphic code in a third picture sent to the second user by the first user, and acquiring a picture identifier of the first picture shared by the first user and a URL (uniform resource locator) of a server, wherein the first picture comprises a user head portrait of the first user;
a second obtaining module configured to obtain a user avatar of the second user;
a generating module configured to generate an avatar addition request including the picture identifier and a user avatar of the second user, the avatar addition request being used to request addition of the user avatar of the second user in the first picture according to the picture identifier;
a first sending module configured to send the avatar addition request to a server according to the URL of the server;
a first receiving module configured to receive a second picture returned according to the avatar addition request, where the second picture is obtained after a user avatar of the second user is added to the first picture stored in the server;
a sharing module configured to share the second picture to a third user.
13. The apparatus of claim 12, wherein the second obtaining module comprises:
a first receiving unit configured to receive an uploaded user picture including a user avatar of a second user;
the first identification unit is configured to perform face identification on the user picture to obtain a user head portrait of the second user in the user picture.
14. The apparatus of claim 12, wherein the first obtaining module comprises:
a display unit configured to display the third picture;
a second receiving unit configured to receive a sharing operation input on the third picture;
the second identification unit is configured to identify the picture identifier of the first picture included in the graphic code according to the sharing operation.
15. The apparatus of claim 12, further comprising:
a second receiving module configured to receive a picture identification of the second picture;
the sharing module comprises:
the generating unit is configured to generate a fourth picture, the fourth picture comprises the second picture and a second graphic code, and the second graphic code comprises a picture identifier of the second picture;
a sharing unit configured to share the fourth picture with the third user.
16. The apparatus of claim 12, wherein the first picture further comprises an alternate avatar therein.
17. The apparatus of claim 16, wherein the replaceable avatar is plural; the avatar addition request also carries an avatar identifier of the replaceable avatar to be replaced by the user avatar of the second user.
18. A picture processing device, applied to a server, includes:
the third receiving module is configured to receive an avatar adding request comprising a picture identifier of a first picture and a user avatar of a second user, wherein the avatar adding request is a request sent by a terminal of the second user to the server according to a URL (uniform resource locator) of the server and used for adding the user avatar of the second user in the first picture according to the picture identifier, and the picture identifier of the first picture and the URL of the server are obtained by the terminal of the second user through identifying a first graphic code in a third picture sent by the first user to the second user according to a sharing operation input by the second user; the third picture comprises a first picture and a first graphic code, and the first graphic code comprises a picture identifier of the first picture and a URL (uniform resource locator) of the server;
the third acquisition module is configured to acquire the first picture stored in a server according to the picture identification;
the adding module is configured to add the user head portrait of the second user in the first picture to obtain a second picture;
a second sending module configured to send the second picture.
19. The apparatus of claim 18, wherein the first picture further comprises an alternate avatar;
the adding module is specifically configured to: replacing the replaceable avatar in the first picture with a user avatar of the second user.
20. The apparatus of claim 19, wherein the replaceable avatar is plural;
the device further comprises:
a determination module configured to determine an alternative avatar specified in the plurality of alternative avatars;
the adding module is specifically configured to: replacing the designated replaceable avatar with the second user's avatar in the first picture.
21. The apparatus according to claim 20, wherein the avatar addition request further carries an avatar identifier of an alternative avatar to be replaced by the user avatar of the second user;
the determination module is specifically configured to: and determining the replaceable head portrait corresponding to the head portrait identification carried by the head portrait adding request as the specified replaceable head portrait.
22. The apparatus of claim 18, further comprising:
a fourth obtaining module configured to obtain a picture identifier of the second picture;
a third sending module configured to send a picture identification of the second picture.
23. A terminal, characterized in that the terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the picture processing method according to any one of claims 1 to 6.
24. A server, characterized in that the server comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the picture processing method according to any one of claims 7 to 11.
25. A non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a terminal, enable the terminal to perform the picture processing method according to any one of claims 1 to 6.
26. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of a server, enable the server to perform the picture processing method of any one of claims 7-11.
CN201811447255.7A 2018-11-29 2018-11-29 Picture processing method, device, terminal, server and storage medium Active CN109766506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811447255.7A CN109766506B (en) 2018-11-29 2018-11-29 Picture processing method, device, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811447255.7A CN109766506B (en) 2018-11-29 2018-11-29 Picture processing method, device, terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN109766506A CN109766506A (en) 2019-05-17
CN109766506B true CN109766506B (en) 2021-04-16

Family

ID=66450347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811447255.7A Active CN109766506B (en) 2018-11-29 2018-11-29 Picture processing method, device, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN109766506B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843463A (en) * 2012-08-02 2012-12-26 广东欧珀移动通信有限公司 New photographing interaction method and mobile intelligent terminal
CN103258316A (en) * 2013-03-29 2013-08-21 东莞宇龙通信科技有限公司 Method and device for picture processing
CN104580930A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 Group photo taking method and system
CN104809000A (en) * 2015-05-20 2015-07-29 联想(北京)有限公司 Information processing method and electronic equipment
CN107481318A (en) * 2017-08-09 2017-12-15 广东欧珀移动通信有限公司 Replacement method, device and the terminal device of user's head portrait
CN108053494A (en) * 2017-11-28 2018-05-18 珠海格力电器股份有限公司 A kind of group photo photograph generation method and its device, mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821253B (en) * 2012-07-18 2016-10-19 上海量明科技发展有限公司 JICQ realizes the method and system of group photo function
CN105608715B (en) * 2015-12-17 2019-12-10 广州华多网络科技有限公司 online group photo method and system
CN106604147A (en) * 2016-12-08 2017-04-26 天脉聚源(北京)传媒科技有限公司 Video processing method and apparatus
CN108153425A (en) * 2018-01-25 2018-06-12 余方 A kind of interactive delight system and method based on line holographic projections

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843463A (en) * 2012-08-02 2012-12-26 广东欧珀移动通信有限公司 New photographing interaction method and mobile intelligent terminal
CN103258316A (en) * 2013-03-29 2013-08-21 东莞宇龙通信科技有限公司 Method and device for picture processing
CN104580930A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 Group photo taking method and system
CN104809000A (en) * 2015-05-20 2015-07-29 联想(北京)有限公司 Information processing method and electronic equipment
CN107481318A (en) * 2017-08-09 2017-12-15 广东欧珀移动通信有限公司 Replacement method, device and the terminal device of user's head portrait
CN108053494A (en) * 2017-11-28 2018-05-18 珠海格力电器股份有限公司 A kind of group photo photograph generation method and its device, mobile terminal

Also Published As

Publication number Publication date
CN109766506A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN106028166B (en) Live broadcast room switching method and device in live broadcast process
CN105069073B (en) Contact information recommendation method and device
US20170304735A1 (en) Method and Apparatus for Performing Live Broadcast on Game
CN109360261B (en) Image processing method, image processing device, electronic equipment and storage medium
EP3125547A1 (en) Method and device for switching color gamut mode
EP2978234A1 (en) Method and apparatus for sharing video information
EP2988205A1 (en) Method and device for transmitting image
CN107423386B (en) Method and device for generating electronic card
US20180144546A1 (en) Method, device and terminal for processing live shows
EP3026876A1 (en) Method for acquiring recommending information, terminal and server
CN104850643B (en) Picture comparison method and device
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN114025180A (en) Game operation synchronization system, method, device, equipment and storage medium
CN106447747B (en) Image processing method and device
CN108027821B (en) Method and device for processing picture
CN110690979B (en) Group message processing method, device, server, client and storage medium
CN112256380A (en) Interactive page display method and device, electronic equipment and storage medium
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
US9832342B2 (en) Method and device for transmitting image
CN107239490B (en) Method and device for naming face image and computer readable storage medium
CN107885464B (en) Data storage method, device and computer readable storage medium
CN107169042B (en) Method and device for sharing pictures and computer readable storage medium
CN109766506B (en) Picture processing method, device, terminal, server and storage medium
CN110769282A (en) Short video generation method, terminal and server
CN113901353A (en) Information display method, device and system, electronic equipment and server

Legal Events

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