CN113784039B - Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium - Google Patents

Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113784039B
CN113784039B CN202110887283.6A CN202110887283A CN113784039B CN 113784039 B CN113784039 B CN 113784039B CN 202110887283 A CN202110887283 A CN 202110887283A CN 113784039 B CN113784039 B CN 113784039B
Authority
CN
China
Prior art keywords
head portrait
photographing
template frame
face
displaying
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
CN202110887283.6A
Other languages
Chinese (zh)
Other versions
CN113784039A (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 CN202110887283.6A priority Critical patent/CN113784039B/en
Publication of CN113784039A publication Critical patent/CN113784039A/en
Application granted granted Critical
Publication of CN113784039B publication Critical patent/CN113784039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The disclosure relates to an avatar processing method, an apparatus, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: displaying a photographing preview area on a head portrait photographing page, wherein the photographing preview area is a template frame with a preset outline; displaying the photographed preview effect image with the preset outline under the condition that the template frame comprises the target object; receiving a photographing instruction sent based on the preview effect image; and responding to the photographing instruction, and photographing to obtain a target head portrait comprising the target object. Through the technical problem that shooting difficulty is high and shooting efficiency is low when head portrait shooting is carried out in the related technology is solved.

Description

Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method and apparatus for processing an avatar, an electronic device, and a computer readable storage medium.
Background
At present, when a user uploads a head portrait or issues a work and starts a camera, the user needs to guess the effect of framing the head portrait and the state of the work after issuing according to the preview effect, namely whether the shooting position is reasonable or not is judged according to the self-impression. After uploading, the user finds out that the shooting is unsuitable and needs to be repeated, and the requirement on the look and feel of the user is high. The head portraits formed, unlike the intended effect, can have an impact on the presentation of the individual, with no way of forming a complete image. Therefore, when the head portrait is shot in the related technology, the problems of high shooting difficulty and low shooting efficiency exist.
Disclosure of Invention
The disclosure provides a head portrait processing method, a head portrait processing device, electronic equipment and a computer readable storage medium, which at least solve the technical problems of high shooting difficulty and low shooting efficiency when shooting head portraits in related technologies. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided an avatar processing method, including: displaying a photographing preview area on a head portrait photographing page, wherein the photographing preview area is a template frame with a preset outline; displaying the photographed preview effect image with the preset outline under the condition that the template frame comprises the target object; receiving a photographing instruction sent based on the preview effect image; and responding to the photographing instruction, and photographing to obtain a target head portrait with the preset outline of the target object.
Optionally, in the case that the target object is included in the template frame, before displaying the photographed preview effect image with the predetermined outline, the method includes: if the target object comprises a human face, identifying whether the template frame comprises the human face or not through a human face identification method; and displaying first prompt information when the recognition result is that the template frame comprises a face, wherein the first prompt information is used for prompting to keep the current state.
Optionally, after the identifying whether the template frame includes a face by the face recognition method, the method further includes: and displaying second prompt information under the condition that the recognition result is that the template frame does not comprise the face, wherein the second prompt information is used for prompting that the face is placed in the template frame.
Optionally, the method further comprises: and displaying third prompt information when the recognition result is that the template frame does not comprise the face and a photographing instruction is received, wherein the third prompt information is used for prompting that the face is not recognized and adjusting the position to re-photograph.
Optionally, the method further comprises: and updating the corresponding homepage head portrait to the target head portrait of the preset outline.
Optionally, the updating the corresponding homepage head image to the target head image with the predetermined outline includes: performing editing processing on the target head portrait with the preset outline to obtain an edited target head portrait, wherein the editing processing comprises processing at least one of the following steps: text, music, stickers, special effects, background pictures; and updating the corresponding homepage head image into the edited target head image.
Optionally, the predetermined profile comprises one of: round, square, fan-shaped, and polygonal.
According to a second aspect of the embodiments of the present disclosure, there is provided an avatar processing device, including: the first display module is used for displaying a photographing preview area on the head portrait photographing page, wherein the photographing preview area is a template frame with a preset outline; the second display module is used for displaying the photographed preview effect image with the preset outline under the condition that the template frame comprises the target object; the receiving module is used for receiving a photographing instruction sent based on the preview effect image; and the shooting module is used for responding to the shooting instruction and shooting to obtain a target head portrait with the preset outline of the target object.
Optionally, the apparatus further comprises: the recognition module is used for recognizing whether the template frame comprises a human face or not through a human face recognition method when the target object comprises the human face before displaying the photographed preview effect image with the preset outline under the condition that the target object is included in the template frame; and the third display module is used for displaying first prompt information when the recognition result is that the template frame comprises a face, wherein the first prompt information is used for prompting to keep the current state.
Optionally, the apparatus further comprises: and the fourth display module is used for displaying second prompt information when the recognition result is that the template frame does not comprise the face, wherein the second prompt information is used for prompting the face to be placed in the template frame.
Optionally, the apparatus further comprises: and the fifth display module is used for displaying third prompt information when the recognition result is that the face is not included in the template frame and a photographing instruction is received, wherein the third prompt information is used for prompting that the face is not recognized and adjusting position re-photographing.
Optionally, the apparatus further comprises: and the updating module is used for updating the corresponding homepage head portrait to the target head portrait with the preset outline.
Optionally, the updating module includes: an editing unit, configured to perform editing processing on a target avatar having the predetermined contour, to obtain an edited target avatar, where the editing processing includes processing at least one of: text, music, stickers, special effects, background pictures; and the updating unit is used for updating the corresponding homepage head image into the target head image after the editing processing.
Optionally, the predetermined profile comprises one of: round, square, fan-shaped, and polygonal.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the avatar processing methods of any of the claims.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform any one of the avatar processing methods.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the avatar processing method of any one of the above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
when photographing the head portrait, displaying a target image with a preset outline, and when photographing based on a photographing instruction, the template frame can prompt the position of the user when photographing the head portrait, so that the photographed target head portrait is positioned in the template frame, the user is not required to have higher look and feel to determine the photographing position, and the follow-up repeated photographing is effectively avoided. The technical problems of high shooting difficulty and low shooting efficiency in the process of shooting the head portrait in the related technology are solved. Meanwhile, the target image with the preset outline can be directly applied to the head portrait of the personal homepage, and specific head portrait is generated by image processing without image processing software, so that the generation efficiency of the head portrait of the personal homepage 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 disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flowchart illustrating a head portrait processing method according to an exemplary embodiment.
Fig. 2 is an interface schematic diagram of a head portrait preview portion when shooting a head portrait according to an alternative embodiment of the present invention.
Fig. 3 is an interface schematic diagram of a clear face in a shooting area identified when shooting an avatar according to an alternative embodiment of the present invention.
Fig. 4 is an interface schematic diagram of a clear face in a shooting area identified when shooting an avatar according to an alternative embodiment of the present invention.
Fig. 5 is an apparatus block diagram of an avatar processing apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram of an apparatus of a terminal according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
According to the embodiment of the disclosure, a method embodiment of an avatar processing method is provided. It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The present disclosure provides a head portrait processing method as shown in fig. 1. Fig. 1 is a flowchart illustrating a head portrait processing method according to an exemplary embodiment, which includes the following steps as shown in fig. 1.
In step S11, a photographing preview area is displayed on the avatar photographing page, wherein the photographing preview area is a template frame with a predetermined outline;
in step S12, in the case where the target object is included in the template frame, displaying the photographed preview effect image having the predetermined contour;
in step S13, a photographing instruction transmitted based on the preview effect image is received;
in step S14, in response to the photographing instruction, a target head portrait having a predetermined contour including the target object is photographed.
By adopting the processing, when the head portrait is photographed, the target image with the preset outline is displayed, and when the head portrait is photographed based on the photographing instruction, the template frame can prompt the position of the user when the head portrait is photographed, so that the photographed target head portrait is positioned in the template frame, the user is not required to have higher look and feel to determine the photographing position, and the follow-up repeated photographing is effectively avoided. The technical problems of high shooting difficulty and low shooting efficiency in the process of shooting the head portrait in the related technology are solved. Meanwhile, the target image with the preset outline can be directly applied to the head portrait of the personal homepage, and specific head portrait is generated by image processing without image processing software, so that the generation efficiency of the head portrait of the personal homepage is improved.
In one or more alternative embodiments, a photo preview area is displayed on the avatar photo page, wherein the photo preview area is a template frame having a predetermined outline. In addition, the photographing preview area can be an area in the head portrait photographing page, and the shape, the position and the size of the photographing preview area can be set according to the actual application requirements. For example, the predetermined outline of the photographing preview area may be circular, located at the very center of the avatar photographing page. The predetermined outline of the photographing preview area may be rectangular and located at the last three-third position of the head portrait photographing page. Of course, the predetermined outline of the photographing preview area may have other shapes (for example, ellipse, fan-shaped, etc.), and may be located at one corner of the head portrait photographing page, or an intermediate area of one side, etc., which will not be described herein. The template frame with the preset outline is displayed on the head portrait photographing page, the position of the target object can be ensured to be positioned in the template frame through prompting of a user in the photographing process, the user can determine the displayed position after photographing in the photographing process, and multiple photographing caused by position deviation is avoided.
The template frame may be selected or set by the user, may be a template frame that is self-matched according to the identification of the photographed target object, or the like.
In one or more alternative embodiments, in the case that the target object is included in the template frame, a preview effect image having a predetermined outline after photographing is displayed. Wherein the target object may be set as a person or object. For example, when the target object is set as the face of a person or an object, the face may be a face of a person, an animal face, a face of a toy, or the like having a certain facial feature. In the case that the photographing preview area includes the target object, a preview effect image having the above-described predetermined outline is displayed, and by previewing the effect after photographing in the photographing process, effective position adjustment can be performed based on the template frame, so that photographing efficiency is improved.
In one or more alternative embodiments, in a case that the target object is included in the template frame, before displaying the photographed preview effect image having the predetermined outline, the method includes: if the target object comprises a human face, identifying whether the template frame comprises the human face or not through a human face identification method; and displaying first prompt information when the recognition result is that the template frame comprises a human face, wherein the first prompt information is used for prompting to keep the current state. I.e. alert the user that the target object is already in the photo preview area, i.e. already in the appropriate position within the template frame, where the photo can be taken. And displaying second prompt information when the recognition result is that the template frame does not comprise the face, wherein the second prompt information is used for prompting that the face is placed in the template frame. The target object is prompted to be placed in the template frame, and the adjustment of the face position is achieved, so that the shooting effect meeting expectations is achieved. The first prompt information and the second prompt information may be default prompt information of the system, or may be manually set. Corresponding prompt information can be displayed according to a proper scene and application, and the display mode can be in a popup window mode or other modes capable of prompting a user on a photographing page. Through setting up corresponding prompt message, can realize in time shining at the in-process of using, not only have the practicality, more have the interest. For example, whether a clear face exists in the template frame is identified, and when no face exists in the template frame, a red mark reminding is generated below a photographing preview area, namely 'please place the face in the photographing frame'; when the clear face can be identified in the judging template frame, the lower part of the photographing preview area is marked with green to remind, the 'perfect, please keep' is displayed, the man-machine interaction is enhanced, and the interestingness is improved.
In one or more alternative embodiments, a photographing instruction sent based on the preview effect image is received, wherein the photographing instruction may be operated based on a variety of ways, such as clicking a photographing button, voice outputting a photographing instruction, operating through other keys on the device, and so forth. In the above various ways, shooting of the preview effect image can be realized. After the preview effect meets the expectation, a photographing instruction is sent to perform photographing, so that the photographed image is ensured to meet the expectation. When photographing based on the preview effect image, the photographing may be automatically performed based on the preview effect image, for example, the target object may be selected to be directly photographed in a countdown manner after being in the template frame.
In one or more optional embodiments, when the recognition result is that the template frame does not include a face, and a photographing instruction is received, third prompt information is displayed, where the third prompt information is used to prompt that the face is not recognized, and position re-shooting is adjusted. When the picture can not recognize the face and receives the photographing instruction, displaying the third prompting information of not recognizing the face and adjusting the position for re-photographing, for example, prompting that the face is placed in the circular frame or the clear face is not recognized, and adjusting the position, namely, at the moment, the operation of clicking the photographing instruction such as photographing is not successful, and the position needs to be adjusted for re-photographing. The third prompting information may be default prompting information of the system, or may be set manually. The corresponding prompt information can be displayed according to the proper scene and application, the display mode can be in a popup window mode, or other modes capable of prompting the user on a photographing page can not be successfully photographed again until the user adjusts the position to the extent that the user can face recognition.
In one or more alternative embodiments, in response to a photographing instruction, a target head portrait having the above-described predetermined outline including a target object is photographed. And in the head portrait photographing page, photographing is carried out according to the template frame, a target head portrait comprising a target object and having a preset outline corresponding to the template frame is obtained, and a user is assisted to photograph more conveniently through the template frame, so that the effect of high-efficiency photographing is achieved. After photographing a target head portrait having the above-described predetermined contour including a target object in response to a photographing instruction, various operations may be further included to perform subsequent processing on the target head portrait, for example: and updating the corresponding homepage head portrait to a target head portrait with a preset outline. When updating the target head portrait with the preset outline into the homepage head portrait, editing processing can be firstly carried out on the target head portrait with the preset outline to obtain an object head portrait after editing processing, wherein the editing processing comprises processing at least one of the following steps: text, music, stickers, special effects, background pictures; and then, updating the corresponding homepage head image into the edited target head image. The editing process can be set by a user, and can also be matched by the system according to the photographed target head portrait. The target head portrait is edited, so that the obtained target head portrait is more interesting, and in addition, the target head portrait can be set by a user, so that the preference of the user can be met, and the satisfaction degree and experience feeling of the user are improved. The target head portrait is updated into the homepage head portrait, so that the effect of efficiently updating the homepage head portrait is achieved, and the quick and clear updating of the homepage head portrait is realized.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present disclosure is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present disclosure. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
Based on the foregoing embodiments and optional embodiments, an optional implementation is provided, and is specifically described below.
The invention provides a method for producing works and head portraits, which provides a position reference for the creator to select head portraits or attacks, and assists a user to take photos at the correct position. By using the client technology and the face recognition technology, the face head portrait is recognized on the photographing page, and according to the preview position, the auxiliary user photographs more conveniently, so that a better photographing effect is achieved, and the method is a great innovation experience in the field of short video creation. Alternative embodiments of the present invention are described in detail below.
1) And (3) an inlet: clicking a photographing entrance to enter a photographing page when a user selects a head portrait page;
2) And (3) position judgment:
fig. 2 is an interface schematic diagram of a preview portion of a head portrait when the head portrait is photographed according to an alternative embodiment of the present invention, as shown in fig. 2, a photographing page directly shows a circular position of the preview portion of the head portrait by a client technology, so that a user directly previews a photographing effect in a circular area during photographing, and position deviation is avoided;
recognizing whether a current shooting area has clear faces or not by utilizing a face recognition technology, and when judging that the circular preview area has no faces, taking a picture that a red mark reminding 'please put the faces in a circular frame' appears below the circular preview area; fig. 3 is an interface schematic diagram of a clear face in a shooting area identified when a head portrait is shot according to an alternative embodiment of the present invention, as shown in fig. 3, when it is judged that the clear face can be identified in a circular preview area, a green reminder is displayed on the lower side of the circular preview area, and "perfect hold" is requested;
when the picture identifies the face and reminds "perfect, please keep", clicking the photographing button can directly photograph successfully, enter the editing page, and save 1:1, selecting photos to album pages; fig. 4 is a schematic diagram of an interface of a shooting area without a clear face when shooting an avatar according to an alternative embodiment of the present invention, as shown in fig. 4, when a picture cannot identify a face and reminds "please put a face in a circular frame", clicking to take a picture cannot be successful, and popup window reminds "no clear face is identified, and the position is adjusted. The user cannot re-photograph successfully until the user adjusts the position to the extent that face recognition can be achieved.
3) Photographing a completion editing page:
after face information is identified and successfully photographed, the face information enters an editing and publishing page, information such as a text, music, a background picture and the like can be quickly selected on the page, and when a user selects to publish, a work is directly published successfully, and a new head portrait is updated to a personal homepage.
Through the above-mentioned optional embodiments, the following beneficial effects can be achieved:
(1) The threshold of the head portrait hair work is reduced;
(2) The authoring experience of the user is optimized;
(3) And providing a position reference for the creator when selecting the head portrait or the episode, and assisting the user in shooting and photographing at the correct position.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present disclosure may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a computer readable storage medium (such as ROM/RAM, magnetic disk, optical disk) including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present disclosure.
There is further provided an apparatus for implementing the above-described avatar processing method according to an embodiment of the present disclosure, and fig. 5 is an apparatus block diagram of the avatar processing apparatus shown according to an exemplary embodiment. Referring to fig. 5, the apparatus includes a first display module 51, a second display module 52, a receiving module 53 and a photographing module 54, and the apparatus will be described below.
The first display module 51 is configured to display a photographing preview area on a head portrait photographing page, where the photographing preview area is a template frame with a predetermined outline; a second display module 52, connected to the first display module 51, for displaying a preview effect image with a predetermined outline after photographing in the case that the template frame includes a target object; a receiving module 53, connected to the second display module 52, for receiving a photographing instruction sent based on the preview effect image; and a shooting module 54, coupled to the receiving module 53, for shooting a target head portrait with a predetermined outline including the target object in response to the shooting instruction.
Here, the first display module 51, the second display module 52, the receiving module 53 and the photographing module 54 correspond to steps S11 to S14 in embodiment 1, and the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in embodiment 1. It should be noted that the above-described module may be operated as a part of the apparatus in the computer terminal 10 provided in embodiment 1.
Optionally, the apparatus further comprises: the recognition module is used for recognizing whether the template frame comprises a human face or not through a human face recognition method when the target object comprises the human face before displaying the photographed preview effect image with the preset outline when the target object is included in the template frame; and the third display module is used for displaying first prompt information when the recognition result is that the template frame comprises a face, wherein the first prompt information is used for prompting to keep the current state.
Optionally, the apparatus further comprises: and the fourth display module is used for displaying second prompt information when the recognition result is that the template frame does not comprise the face, wherein the second prompt information is used for prompting that the face is placed in the template frame.
Optionally, the apparatus further comprises: and the fifth display module is used for displaying third prompt information when the recognition result is that the face is not included in the template frame and a photographing instruction is received, wherein the third prompt information is used for prompting that the face is not recognized and adjusting the position for re-photographing.
Optionally, the apparatus further comprises: and the updating module is used for updating the corresponding homepage head portrait to a target head portrait with a preset outline.
Optionally, the updating module includes: an editing unit configured to perform editing processing on a target avatar having a predetermined contour, to obtain an edited target avatar, wherein the editing processing includes processing of at least one of: text, music, stickers, special effects, background pictures; and the updating unit is used for updating the corresponding homepage head image into the target head image after editing processing.
Optionally, the predetermined profile comprises one of: round, square, fan-shaped, and polygonal.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Embodiments of the present disclosure may provide an electronic device, which may be a terminal or a server. For example, when the electronic device is a terminal, the terminal may be any one of a group of computer terminals. Alternatively, in this embodiment, the terminal may be a terminal device such as a mobile terminal.
Alternatively, in this embodiment, the terminal may be located in at least one network device among a plurality of network devices of the computer network.
Alternatively, fig. 6 is a block diagram of a terminal according to an exemplary embodiment. As shown in fig. 6, the terminal may include: one or more (only one is shown) processors 61, a memory 62 for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the avatar processing method of any one of the above.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the avatar processing method and apparatus in the embodiments of the present disclosure, and the processor executes the software programs and modules stored in the memory, thereby executing various functional applications and data processing, that is, implementing the avatar processing method described above. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located relative to the processor, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: displaying a photographing preview area on a head portrait photographing page, wherein the photographing preview area is a template frame with a preset outline; displaying the photographed preview effect image with the preset outline under the condition that the template frame comprises the target object; receiving a photographing instruction sent based on the preview effect image; and responding to the photographing instruction, photographing to obtain a target head portrait with a preset outline of the target object.
Optionally, the above processor may further execute program code for: in the case that the target object is included in the template frame, before displaying the photographed preview effect image with the predetermined outline, the method includes: if the target object comprises a human face, identifying whether the template frame comprises the human face or not through a human face identification method; and displaying first prompt information when the recognition result is that the template frame comprises a human face, wherein the first prompt information is used for prompting to keep the current state.
Optionally, the above processor may further execute program code for: after recognizing whether the template frame includes a face by the face recognition method, the method further includes: and displaying second prompt information when the recognition result is that the template frame does not comprise the face, wherein the second prompt information is used for prompting that the face is placed in the template frame.
Optionally, the above processor may further execute program code for: and displaying third prompt information under the condition that the recognition result is that the template frame does not comprise the face and a photographing instruction is received, wherein the third prompt information is used for prompting that the face is not recognized and adjusting the position to re-photograph.
Optionally, the above processor may further execute program code for: and updating the corresponding homepage head portrait to a target head portrait with a preset outline.
Optionally, the above processor may further execute program code for: updating the corresponding homepage head image to a target head image with a preset outline, comprising: performing editing processing on the target head portrait with the preset outline to obtain an object head portrait after the editing processing, wherein the editing processing comprises processing at least one of the following steps: text, music, stickers, special effects, background pictures; and updating the corresponding homepage head image into the edited target head image.
Optionally, the above processor may further execute program code for: the predetermined profile includes one of: round, square, fan-shaped, and polygonal.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the computer readable storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
In an exemplary embodiment, there is also provided a computer-readable storage medium including instructions that, when executed by a processor of a terminal, enable the terminal to perform the avatar processing method of any one of the above. Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be used to store program code executed by the head portrait processing method provided in the above-described embodiment 1.
Alternatively, in this embodiment, the above-mentioned computer-readable storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: displaying a photographing preview area on a head portrait photographing page, wherein the photographing preview area is a template frame with a preset outline; displaying the photographed preview effect image with the preset outline under the condition that the template frame comprises the target object; receiving a photographing instruction sent based on the preview effect image; and responding to the photographing instruction, photographing to obtain a target head portrait with a preset outline of the target object.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: in the case that the target object is included in the template frame, before displaying the photographed preview effect image with the predetermined outline, the method includes: if the target object comprises a human face, identifying whether the template frame comprises the human face or not through a human face identification method; and displaying first prompt information when the recognition result is that the template frame comprises a human face, wherein the first prompt information is used for prompting to keep the current state.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: after recognizing whether the template frame includes a face by the face recognition method, the method further includes: and displaying second prompt information when the recognition result is that the template frame does not comprise the face, wherein the second prompt information is used for prompting that the face is placed in the template frame.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: and displaying third prompt information under the condition that the recognition result is that the template frame does not comprise the face and a photographing instruction is received, wherein the third prompt information is used for prompting that the face is not recognized and adjusting the position to re-photograph.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: and updating the corresponding homepage head portrait to a target head portrait with a preset outline.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: updating the corresponding homepage head image to a target head image with a preset outline, comprising: performing editing processing on the target head portrait with the preset outline to obtain an object head portrait after the editing processing, wherein the editing processing comprises processing at least one of the following steps: text, music, stickers, special effects, background pictures; and updating the corresponding homepage head image into the edited target head image.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: the predetermined profile includes one of: round, square, fan-shaped, and polygonal.
In an exemplary embodiment, a computer program product is also provided, which, when executed by a processor of a terminal, enables the terminal to perform the avatar processing method of any one of the above.
The foregoing embodiment numbers of the present disclosure are merely for description and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present disclosure, the descriptions of the various embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and are merely a logical functional division, and there may be other manners of dividing the apparatus in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a computer readable storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of the various embodiments of the present disclosure. And the aforementioned computer-readable storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A head portrait processing method, characterized by comprising:
displaying a photographing preview area on a head portrait photographing page, wherein the photographing preview area is a template frame with a preset outline and a preset size at a preset position on the head portrait photographing page;
displaying the photographed preview effect image with the preset outline under the condition that the template frame comprises the target object;
receiving a photographing instruction sent based on the preview effect image;
responding to the photographing instruction, and photographing to obtain a target head portrait with the preset outline of the target object;
wherein the method further comprises: and updating the corresponding homepage head portrait to the target head portrait of the preset outline.
2. The method according to claim 1, wherein, in a case where a target object is included in the template frame, before displaying the photographed preview effect image having the predetermined outline, comprising:
if the target object comprises a human face, identifying whether the template frame comprises the human face or not through a human face identification method;
and displaying first prompt information when the recognition result is that the template frame comprises a face, wherein the first prompt information is used for prompting to keep the current state.
3. The method according to claim 2, further comprising, after the identifying whether the template frame includes a face by the face recognition method:
and displaying second prompt information under the condition that the recognition result is that the template frame does not comprise the face, wherein the second prompt information is used for prompting that the face is placed in the template frame.
4. A method according to claim 3, characterized in that the method further comprises:
and displaying third prompt information when the recognition result is that the template frame does not comprise the face and a photographing instruction is received, wherein the third prompt information is used for prompting that the face is not recognized and adjusting the position to re-photograph.
5. The method of claim 1, wherein updating the corresponding home page avatar to the target avatar of the predetermined contour comprises:
performing editing processing on the target head portrait with the preset outline to obtain an edited target head portrait, wherein the editing processing comprises processing at least one of the following steps: text, music, stickers, special effects, background pictures;
and updating the edited target head portrait to the homepage head portrait.
6. The method of any one of claims 1 to 5, wherein the predetermined profile comprises one of: round, square, fan-shaped, and polygonal.
7. An avatar processing device, comprising:
the first display module is used for displaying a photographing preview area on a head portrait photographing page, wherein the photographing preview area is a template frame with a preset outline and a preset size at a preset position on the head portrait photographing page;
the second display module is used for displaying the photographed preview effect image with the preset outline under the condition that the template frame comprises the target object;
the first receiving module is used for receiving a photographing instruction sent based on the preview effect image;
the shooting module is used for responding to the shooting instruction and shooting to obtain a target head portrait with the preset outline of the target object;
wherein the apparatus further comprises: and the second receiving module updates the corresponding homepage head image into the target head image with the preset outline.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the recognition module is used for recognizing whether the template frame comprises a human face or not through a human face recognition method when the target object comprises the human face before displaying the photographed preview effect image with the preset outline under the condition that the target object is included in the template frame;
and the third display module is used for displaying first prompt information when the recognition result is that the template frame comprises a face, wherein the first prompt information is used for prompting to keep the current state.
9. The apparatus of claim 8, wherein the apparatus further comprises:
and the fourth display module is used for displaying second prompt information when the recognition result is that the template frame does not comprise the face, wherein the second prompt information is used for prompting the face to be placed in the template frame.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the fifth display module is used for displaying third prompt information when the recognition result is that the face is not included in the template frame and a photographing instruction is received, wherein the third prompt information is used for prompting that the face is not recognized and adjusting position re-photographing.
11. The apparatus of claim 7, wherein the second receiving means comprises:
an editing unit, configured to perform editing processing on a target avatar having the predetermined contour, to obtain an edited target avatar, where the editing processing includes processing at least one of: text, music, stickers, special effects, background pictures;
and the updating unit is used for updating the edited target head portrait into the homepage head portrait.
12. The apparatus according to any one of claims 7 to 11, wherein the predetermined profile comprises one of: round, square, fan-shaped, and polygonal.
13. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the avatar processing method of any one of claims 1 to 6.
14. A computer readable storage medium, wherein instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the avatar processing method of any one of claims 1 to 6.
CN202110887283.6A 2021-08-03 2021-08-03 Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium Active CN113784039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110887283.6A CN113784039B (en) 2021-08-03 2021-08-03 Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110887283.6A CN113784039B (en) 2021-08-03 2021-08-03 Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113784039A CN113784039A (en) 2021-12-10
CN113784039B true CN113784039B (en) 2023-07-11

Family

ID=78836685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110887283.6A Active CN113784039B (en) 2021-08-03 2021-08-03 Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113784039B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135609A (en) * 2014-06-27 2014-11-05 小米科技有限责任公司 A method and a device for assisting in photographing, and a terminal
CN107347136A (en) * 2017-06-20 2017-11-14 北京小米移动软件有限公司 Photographic method, device and terminal device
CN109068055A (en) * 2018-08-10 2018-12-21 维沃移动通信有限公司 A kind of patterning process, terminal and storage medium
CN109348135A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Photographic method, device, storage medium and terminal device
CN111897614A (en) * 2019-05-06 2020-11-06 苹果公司 Integration of head portraits with multiple applications

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100840023B1 (en) * 2007-11-13 2008-06-20 (주)올라웍스 Method and system for adjusting pose at the time of taking photos of himself or herself
CN105450926A (en) * 2015-11-12 2016-03-30 广东欧珀移动通信有限公司 Photo taking method, photo taking device and mobile terminal
US20170161553A1 (en) * 2015-12-08 2017-06-08 Le Holdings (Beijing) Co., Ltd. Method and electronic device for capturing photo
JP6698216B2 (en) * 2016-09-23 2020-05-27 アップル インコーポレイテッドApple Inc. Patent application to the US Patent and Trademark Office for creating and editing avatars
KR102663906B1 (en) * 2019-01-14 2024-05-09 삼성전자주식회사 Electronic device for generating avatar and method thereof
KR20200101014A (en) * 2019-02-19 2020-08-27 삼성전자주식회사 Electronic device supporting recommendation and download of avatar
KR102665643B1 (en) * 2019-02-20 2024-05-20 삼성전자 주식회사 Method for controlling avatar display and electronic device thereof
CN110189348B (en) * 2019-05-29 2020-12-25 北京达佳互联信息技术有限公司 Head portrait processing method and device, computer equipment and storage medium
CN112188074B (en) * 2019-07-01 2022-08-05 北京小米移动软件有限公司 Image processing method and device, electronic equipment and readable storage medium
CN110536044B (en) * 2019-09-11 2022-02-22 恒信东方文化股份有限公司 Automatic certificate photo shooting method and device
CN112653841B (en) * 2020-12-23 2023-01-24 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN112702521B (en) * 2020-12-24 2023-05-02 广州极飞科技股份有限公司 Image shooting method and device, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135609A (en) * 2014-06-27 2014-11-05 小米科技有限责任公司 A method and a device for assisting in photographing, and a terminal
CN107347136A (en) * 2017-06-20 2017-11-14 北京小米移动软件有限公司 Photographic method, device and terminal device
CN109068055A (en) * 2018-08-10 2018-12-21 维沃移动通信有限公司 A kind of patterning process, terminal and storage medium
CN109348135A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Photographic method, device, storage medium and terminal device
CN111897614A (en) * 2019-05-06 2020-11-06 苹果公司 Integration of head portraits with multiple applications

Also Published As

Publication number Publication date
CN113784039A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN108377334B (en) Short video shooting method and device and electronic terminal
EP3383022A1 (en) Method and camera device for processing image
US10165201B2 (en) Image processing method and apparatus and terminal device to obtain a group photo including photographer
WO2016107055A1 (en) Processing method and device for image splicing
CN105373929A (en) Method of providing photographing recommending information and apparatus thereof
US9881086B2 (en) Image shooting device, image shooting method, and recording medium
CN108337471B (en) Video picture processing method and device
US10373361B2 (en) Picture processing method and apparatus
WO2016134666A1 (en) Method and device for discovering friend through image matching
WO2022213974A1 (en) Auxiliary image capture methods and apparatuses for pets
CN106549903B (en) Method and device for setting head portrait of user
CN113784039B (en) Head portrait processing method, head portrait processing device, electronic equipment and computer readable storage medium
CN108337427B (en) Image processing method and electronic equipment
WO2017143846A1 (en) Picture backup method and apparatus, and electronic device
CN112714259B (en) State adjustment method and device for object to be shot
CN116363725A (en) Portrait tracking method and system for display device, display device and storage medium
CN113012040A (en) Image processing method, image processing device, electronic equipment and storage medium
CN110798614A (en) Photo shooting method, device, equipment and storage medium
KR20160038375A (en) Contents creation apparatus and method for operating the contents creation apparatus
CN110913121B (en) Shooting method, electronic equipment and computer storage medium
CN109903249A (en) U.S. face processing method, storage equipment and mobile terminal based on face identification
CN106815236B (en) Search method, search device, user terminal and search server
CN110855875A (en) Method and device for acquiring background information of image
WO2017105082A1 (en) Social-based image setting value sharing system and method therefor
CN114285988B (en) Display method, display device, electronic equipment and storage medium

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