CN104751408B - The method of adjustment and device of face head portrait - Google Patents

The method of adjustment and device of face head portrait Download PDF

Info

Publication number
CN104751408B
CN104751408B CN201510137000.0A CN201510137000A CN104751408B CN 104751408 B CN104751408 B CN 104751408B CN 201510137000 A CN201510137000 A CN 201510137000A CN 104751408 B CN104751408 B CN 104751408B
Authority
CN
China
Prior art keywords
head portrait
face
adjusted
adjustment
value
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.)
Expired - Fee Related
Application number
CN201510137000.0A
Other languages
Chinese (zh)
Other versions
CN104751408A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510137000.0A priority Critical patent/CN104751408B/en
Publication of CN104751408A publication Critical patent/CN104751408A/en
Application granted granted Critical
Publication of CN104751408B publication Critical patent/CN104751408B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a kind of method of adjustment and device of face head portrait.Methods described includes:The characteristic parameter included according to face head portrait to be adjusted, it is determined that corresponding with the face head portrait to be adjusted with reference to adjustment head portrait;According to described with reference to the head portrait adjustment algorithm for adjusting head portrait and setting, the face head portrait to be adjusted is adjusted, generates target adjustment head portrait.The present invention is no longer only to carry out photo adjustment only for single photo, but according to reference to photo is adjusted, photo to be adjusted is adjusted, optimizes existing photo adjustment technology, meets the growing personalization of people, the photo adjustment demand of interest and appeal.

Description

The method of adjustment and device of face head portrait
Technical field
The present embodiments relate to image processing techniques, more particularly to a kind of method of adjustment and device of face head portrait.
Background technology
As mobile phone, tablet personal computer etc. have the rapid popularization of the mobile terminal device of camera function, photography has become The things of one extremely life-stylize, people can be carried out taking pictures whenever and wherever possible in life, and naturally, self-timer also becomes more Frequently, Self-timer has become a common function, and the experience effect of Self-timer is influenceed to user to mobile terminal product Experience evaluation.
In the prior art, many terminal devices are equipped with photo adjustment class instrument to meet people to taking a picture certainly Self-defined adjustment demand.It is converted into sketch for example, terminal user can will be taken a picture certainly by shirtsleeve operation, misses old times or old friends or black The photo of the form such as white, or carried out by U.S. face instrument from beautification taken a picture etc..
However, the progress of technology causes requirement of the people to photo adjustment technology to become higher, traditional photo adjustment side Formula can not meet the growing personalization of people, the photo adjustment demand of interest and appeal.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method of adjustment and device of face head portrait, to optimize existing photograph Piece adjustment technology, meet the growing personalization of people, the photo adjustment demand of interest and appeal.
In a first aspect, the embodiments of the invention provide a kind of method of adjustment of face head portrait, including:
The characteristic parameter included according to face head portrait to be adjusted, it is determined that corresponding with the face head portrait to be adjusted with reference to tune Whole head portrait;
According to described with reference to the head portrait adjustment algorithm for adjusting head portrait and setting, the face head portrait to be adjusted is adjusted It is whole, generate target adjustment head portrait.
In second aspect, the embodiments of the invention provide a kind of adjusting apparatus of face head portrait, including:
With reference to adjustment head portrait determining module, for the characteristic parameter included according to face head portrait to be adjusted, it is determined that with it is described With reference to adjustment head portrait corresponding to face head portrait to be adjusted;
Target adjustment head portrait generation module, for adjusting the head portrait adjustment algorithm of head portrait and setting according to the reference, The face head portrait to be adjusted is adjusted, generates target adjustment head portrait.
The embodiment of the present invention by the characteristic parameter that is included according to face head portrait to be adjusted, it is determined that with the face to be adjusted With reference to adjustment head portrait corresponding to head portrait;According to described with reference to the head portrait adjustment algorithm for adjusting head portrait and setting, wait to adjust to described Face head portrait of giving sb. a hard time is adjusted, and generates the technological means of target adjustment head portrait, and it is no longer only only for single photo to realize Photo adjustment is carried out, but according to reference to photo is adjusted, photo to be adjusted is adjusted, optimizes existing photo adjustment skill Art, meet the growing personalization of people, the photo adjustment demand of interest and appeal.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for adjustment of face head portrait of first embodiment of the invention;
Fig. 2 is a kind of flow chart of the method for adjustment of face head portrait of second embodiment of the invention;
Fig. 3 is a kind of flow chart of the method for adjustment of face head portrait of third embodiment of the invention;
Fig. 4 is a kind of flow chart of the method for adjustment of face head portrait of fourth embodiment of the invention;
Fig. 5 is a kind of structure chart of the adjusting apparatus of face head portrait of fifth embodiment of the invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings to the specific reality of the present invention Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, Rather than limitation of the invention.It also should be noted that for the ease of describing, illustrate only in accompanying drawing related to the present invention Part rather than full content.
First embodiment
Fig. 1 is a kind of flow chart of the method for adjustment for face head portrait that first embodiment of the invention provides, the present embodiment Method can be performed by the adjusting apparatus of face head portrait, and the device can be realized by way of hardware and/or software, and typically It can be integrated in the mobile terminal device with camera function.
The method of the present embodiment specifically comprises the following steps:
110th, the characteristic parameter included according to face head portrait to be adjusted, it is determined that corresponding with the face head portrait to be adjusted join Examine adjustment head portrait.
In the present embodiment, the face head portrait to be adjusted specifically refers to need the picture for carrying out face head portrait adjustment;Institute State the picture specifically referred to reference to adjustment head portrait for aiding in adjusting the face head portrait to be adjusted.Wherein, mobile terminal device In prestore at least two with reference to adjustment head portraits.
Wherein, it is according to people to be adjusted in the present embodiment in order to realize that final face adjustment result is natural, reasonable The characteristic parameter that face head portrait includes, it is corresponding with the face head portrait to be adjusted with reference to adjustment head portrait to determine.It is described to be adjusted The characteristic parameter that face head portrait includes can specifically include:Face contour characteristic parameter (for example, the length-width ratio of shape of face, face it is long or Person's face is wide), eye feature parameter (for example, eyes opening width, or eye-length), nose characteristic parameter is (for example, the width of nose Degree, the either height of nose), face characteristic parameter (for example, width of the opening width of face or face), ear feature ginseng Number (for example, length-width ratio of ear) and expressive features parameter (for example, happiness, anger, sorrow and pleasure) etc., the present embodiment does not enter to this Row limitation.
Preferably, according to the face contour characteristic parameter of face head portrait to be adjusted, and/or expressive features parameter, it is determined that with With reference to adjustment head portrait corresponding to the face head portrait to be adjusted.
120th, the face head portrait to be adjusted is entered with reference to the head portrait adjustment algorithm for adjusting head portrait and setting according to described Row adjustment, generates target adjustment head portrait.
In the present embodiment, according to described with reference to the head portrait adjustment algorithm for adjusting head portrait and setting, to described to be adjusted Face head portrait is adjusted, and generation target adjustment head portrait can specifically include:
Calculate the value to be adjusted of setup parameter corresponding with the setting adjustment position of the face head portrait to be adjusted;Obtain with The reference adjusted value of the setup parameter corresponding to the setting adjustment position with reference to adjustment head portrait;Wait to adjust according to described Whole value refers to adjusted value with described, determines target adjustment value;Use the target adjustment value pair and the face head portrait to be adjusted Setting adjustment position corresponding to setup parameter be adjusted, generate target adjustment head portrait;Or
The face head portrait to be adjusted is converted into the face picture of sketch effect;Obtain with described with reference to adjustment head portrait pair The picture of the sketch effect at the setting modification position answered;The picture for the sketch effect that the setting is modified into position is covered in described On the face picture of sketch effect, target adjustment head portrait is generated.
The embodiment of the present invention by the characteristic parameter that is included according to face head portrait to be adjusted, it is determined that with the face to be adjusted With reference to adjustment head portrait corresponding to head portrait;According to described with reference to the head portrait adjustment algorithm for adjusting head portrait and setting, wait to adjust to described Face head portrait of giving sb. a hard time is adjusted, and generates the technological means of target adjustment head portrait, is no longer only to be shone only for single photo Piece adjusts, but according to reference to photo is adjusted, photo to be adjusted is adjusted, optimizes existing photo adjustment technology, it is full Foot people growing personalizations, the photo adjustment demand of interest and appeal.
Second embodiment
Fig. 2 is the flow chart of the method for adjustment of the face head portrait of second embodiment of the invention.The present embodiment is with above-mentioned implementation Optimized based on example, in the present embodiment, the characteristic parameter preferably included according to face head portrait to be adjusted, it is determined that with treating It is optimized for corresponding to adjustment face head portrait with reference to adjustment head portrait:
Query template head portrait storehouse, obtain the target adaptable with the face contour characteristic parameter of the face head portrait to be adjusted Types of profiles;In the objective contour type, obtain what is be adapted with the expressive features parameter of the face head portrait to be adjusted Target expression head portrait;The target expression head portrait is defined as corresponding with face head portrait to be adjusted with reference to adjustment head portrait.
Accordingly, the method for the present embodiment comprises the following steps:
210th, query template head portrait storehouse, obtain what is be adapted with the face contour characteristic parameter of the face head portrait to be adjusted Objective contour type.
In the present embodiment, at least two types of profiles are prestored in the template head portrait storehouse, and in every kind of types of profiles Including at least two expression head portraits.
In a specific example, the animal head of at least two types of profiles, example are prestored in the template head portrait storehouse Such as:" dog ", " cat ", " fox ", " racoon ", Tiger, " rabbit " son and " deer " etc., include at least in each types of profiles Two expression head portraits, for example, the head portrait of the expression such as " happiness ", " anger ", " sorrow " and " pleasure ".
In the present embodiment, adaptable mesh is obtained according to the face contour characteristic parameter of face head portrait to be adjusted first Mark types of profiles.
Wherein, the face contour characteristic parameter can include:Shape of face length-width ratio (length of face head portrait and width it Than), face is long or the characteristic parameters such as face is wide.Preferably, the face contour feature of the face head portrait is specially the length and width of shape of face Than.
In the preferred embodiment, the aspect ratio range of a shape of face of the corresponding setting of each types of profiles, leads to The aspect ratio range for crossing the length-width ratio and the shape of face of each types of profiles of the shape of face for the face head portrait to be adjusted that will be calculated enters Row compares, and then obtains adaptable objective contour type.
For example, the length-width ratio of the shape of face for the face head portrait to be adjusted being calculated is 3.5, the shape of face of animal head " dog " Aspect ratio range is 1-1.2;The aspect ratio range of the shape of face of animal head " cat " is 1.2-1.4;…;Animal head " racoon " The aspect ratio range of shape of face is 3.4-3.6.Therefore, obtain animal head " racoon " and be used as objective contour type.
It is, of course, understood that can be overlapped for the face contour characteristic parameter scope set by each types of profiles, Can also be misaligned.When at least two profile classes can be obtained according to the face contour characteristic parameter of a face head portrait to be adjusted During type, above-mentioned at least two objective contours type can be both provided to user, final objective contour type is determined by user, The final objective contour type can also be directly determined by system by randomly selected mode, the present embodiment does not enter to this Row limitation.
220th, in the objective contour type, obtain and be adapted with the expressive features parameter of the face head portrait to be adjusted Target expression head portrait.
In the present embodiment, every kind of types of profiles includes at least two expression head portraits, therefore it is determined that objective contour class , it is necessary to which expressive features parameter further according to face head portrait to be adjusted, obtains in the objective contour type, wait to adjust with described after type Give sb. a hard time the adaptable target expression head portrait of expressive features parameter of face head portrait.
Include happiness, anger, sorrow and happy four in a preferred embodiment of the present embodiment, in each types of profiles Individual expression head portrait.The expression of the face head portrait to be adjusted can be determined according to the expressive features parameter of face head portrait to be adjusted, is entered And target expression head portrait corresponding to obtaining.Wherein it is possible to opened according to corners of the mouth position, eyebrow shape, eyebrow spacing and eyes The expressive features parameters such as degree, determine the expression of the face head portrait to be adjusted.
230th, the target expression head portrait is defined as corresponding with face head portrait to be adjusted with reference to adjustment head portrait.
240th, the face head portrait to be adjusted is entered with reference to the head portrait adjustment algorithm for adjusting head portrait and setting according to described Row adjustment, generates target adjustment head portrait.
In the present embodiment, comprehensive face contour characteristic parameter and expressive features using face head portrait to be adjusted is passed through Parameter, to determine the mode of the reference adjustment head portrait to match with face head portrait to be adjusted, it is possible to achieve it is determined that reference adjust The similarity of head portrait and face head portrait to be adjusted is closest, and then can cause finally according to the mesh adjusted out with reference to adjustment head portrait Mark adjustment head portrait is natural as far as possible, reasonable, not lofty, further optimizes photo adjustment technology.
3rd embodiment
Fig. 3 is a kind of flow chart of the method for adjustment of face head portrait of third embodiment of the invention.The present embodiment is with above-mentioned Optimize based on embodiment, in the present embodiment, will be calculated according to described adjusted with reference to the head portrait for adjusting head portrait and setting Method, the face head portrait to be adjusted is adjusted, generation target adjustment head portrait is optimized for:Calculate and the face head to be adjusted As setting adjustment position corresponding to setup parameter value to be adjusted;Obtain and adjusted with described with reference to the setting for adjusting head portrait The reference adjusted value of the setup parameter corresponding to position;Adjusted value is referred to described according to the value to be adjusted, determines target Adjusted value;Entered using the target adjustment value pair setup parameter corresponding with the setting adjustment position of the face head portrait to be adjusted Row adjustment, generates target adjustment head portrait.
Accordingly, the method for the present embodiment comprises the following steps:
310th, the characteristic parameter included according to face head portrait to be adjusted, it is determined that corresponding with the face head portrait to be adjusted join Examine adjustment head portrait.
320th, the value to be adjusted of setup parameter corresponding with the setting adjustment position of the face head portrait to be adjusted is calculated.
In the present embodiment, the setting adjustment position includes at least one of following:Shape of face, eyes, nose, face and Ear.
Wherein, setup parameter corresponding with the shape of face includes:The length-width ratio of shape of face;Setting ginseng corresponding with the eyes Number includes:Eyes opening width (the most wide degree that eyes open), and/or eye-length;Setup parameter corresponding with the nose Including:The width of nose, and/or the height of nose;Setup parameter corresponding with the face includes:The opening width of face, and/ Or the width of face;Setup parameter corresponding with the ear includes:The length-width ratio of ear.
In a specific example, the face head portrait to be adjusted sets adjustment position as nose, corresponding with nose Setup parameter is the width of nose;The value to be adjusted that the width of nose corresponding with nose is calculated is 1.8cm.
330th, the reference of the setup parameter corresponding with the setting adjustment position with reference to adjustment head portrait is obtained Adjusted value.
In a preferred embodiment of the present embodiment, except prestoring at least two ginsengs in mobile terminal device Examine outside adjustment head portrait, also prestore the reference adjusted value of the setup parameter with reference to corresponding to the setting adjustment position of adjustment head portrait. It is determined that after the head portrait with reference to adjustment corresponding with face head portrait to be adjusted, and then can obtain and described with reference to adjustment head portrait The reference adjusted value of the setup parameter corresponding to the setting adjustment position.
In a specific example, two are prestored with reference to adjustment head portrait (head portrait 1 and head portrait 2), the shape of face pair with head portrait 1 The reference adjusted value of the length-width ratio for the shape of face answered is 2.5, and the reference adjusted value of eyes opening width corresponding with the eyes of head portrait 1 is 0.6cm, the reference adjusted value of eye-length corresponding with the eyes of head portrait 1 is 2cm ..., ear corresponding with the ear of head portrait 1 Length-width ratio reference adjusted value be 2.
340th, adjusted value is referred to described according to the value to be adjusted, determines target adjustment value.
In a preferred embodiment of the present embodiment, the value to be adjusted can be selected to refer to adjusted value with described Between a setting value (for example, intermediate value, apart from value 1/3 to be adjusted be worth or apart from value 2/3 to be adjusted be worth etc.) be used as target Adjusted value.Preferably, by it is described it is to be adjusted value and the intermediate value with reference between adjusted value, as the target adjustment value.
In another preferred embodiment of the present embodiment, between the value to be adjusted and the reference adjusted value Difference when being less than given threshold, can directly using it is described with reference to adjusted value as the target adjustment value;Described to be adjusted When value and the difference with reference between adjusted value are more than the given threshold, the value to be adjusted can be selected with described with reference to tune A setting value between whole value, as the target adjustment value.
350th, using the target adjustment value pair setting corresponding with the setting adjustment position of the face head portrait to be adjusted Parameter is adjusted, and generates target adjustment head portrait.
In the present embodiment, stretching or the compression algorithm of setting can be selected, uses the target adjustment value pair and institute Setup parameter corresponding to stating the setting adjustment position of face head portrait to be adjusted is adjusted, and generates target adjustment head portrait.
In a specific example, the value to be adjusted of the width of nose corresponding with the nose of face head portrait to be adjusted is 1.8cm, the reference adjusted value with the width of the corresponding nose of nose with reference to adjustment head portrait are 1.2cm, target corresponding to setting Adjusted value is (1.8+1.2)/2=1.5cm., will be corresponding with the nose of face head portrait to be adjusted then using the compression algorithm of setting Nose width value boil down to 1.5cm.
The method of the present embodiment, by using the reference of the setup parameter with reference to corresponding to the setting adjustment position for adjusting head portrait Adjusted value come adjust face head portrait to be adjusted setting adjustment position corresponding to setup parameter value to be adjusted, realize no longer only Only it is to carry out photo adjustment only for single photo, but according to the characteristic parameter included with reference to adjustment head portrait, to be adjusted Face head portrait is adjusted so that is contained with reference to some features in adjustment head portrait, is optimized existing in face head portrait to be adjusted Some photo adjustment technologies, meet the growing personalization of people, the photo adjustment demand of interest and appeal.
On the basis of the various embodiments described above, during selection target adjusted value, entering for man-machine interaction can be set Bar is spent to realize user's unrestricted choice target adjustment value, and the target according to corresponding to the target adjustment value generation that user selectes Head portrait preview graph is adjusted, the benefit so set is:So that the face head portrait after adjustment more meets the actual demand of user, enter one Step optimizes the adjustment technology of face head portrait.
Fourth embodiment
Fig. 4 is a kind of flow chart of the method for adjustment of face head portrait of fourth embodiment of the invention.The present embodiment is with above-mentioned Optimize based on embodiment, in the present embodiment, will be calculated according to described adjusted with reference to the head portrait for adjusting head portrait and setting Method, the face head portrait to be adjusted is adjusted, generation target adjustment head portrait is optimized for:The face head portrait to be adjusted is turned Turn to the face picture of sketch effect;Obtain the figure of the sketch effect at setting modification position corresponding with the reference adjustment head portrait Piece;The picture for the sketch effect that the setting is modified into position is covered on the face picture of the sketch effect, generates mesh Mark adjustment head portrait.
Accordingly, the method for the present embodiment comprises the following steps:
410th, the characteristic parameter included according to face head portrait to be adjusted, it is determined that corresponding with the face head portrait to be adjusted join Examine adjustment head portrait.
420th, the face head portrait to be adjusted is converted into the face picture of sketch effect.
In the present embodiment, it is personalized and interesting in order to further improve final face head portrait adjustment result, first will Face head portrait to be adjusted is converted into the face picture of sketch effect.
The method for the face picture that face head portrait to be adjusted is converted into sketch effect has a lot, and one of which is more convenient Method be:Face head portrait to be adjusted is subjected to discoloration processing first, the texture retouched afterwards by filter instrument generation class pigment, Finally change figure layer mixed mode.
430th, the picture of the sketch effect at setting modification position corresponding with the reference adjustment head portrait is obtained.
In the present embodiment, the element at setting modification position corresponding with reference to head portrait is adjusted is prestored in mobile terminal device Retouch the picture of effect.
It is " dog " with reference to adjustment head portrait in a specific example, the figure of the sketch effect at corresponding setting modification position Piece is the picture of " dog nose ";It is " fox " with reference to adjustment head portrait, the picture of the corresponding sketch effect for setting modification position is " fox The picture of leopard cat eye ";It is " rabbit " with reference to adjustment head portrait, figure of the corresponding picture for setting the sketch effect for modifying position as " rabbit ear " Piece;It is " cat " with reference to adjustment head portrait, the picture of the corresponding sketch effect for setting modification position is the picture of " cat's whisker " etc..
Preferably, different type expression head portrait (for example, " happiness " or " sorrow ") corresponds to the different figures at same modification position Piece (for example, " rabbit ear " for erectting or " the rabbit ear " crispaturaed).
440th, by it is described setting modify position sketch effect picture be covered in the sketch effect face picture it On, generate target adjustment head portrait.
In the present embodiment, the setting is modified to the face figure of the picture and the sketch effect of the sketch effect at position After the superposition of piece, target adjustment image is generated.
For example, after " rabbit ear " picture to be superimposed on to the setting position (crown position) of the face picture of the sketch effect, Generate target adjustment image.
The method of the present embodiment, realize no longer be only only for single photo carry out photo adjustment, but pass through by It is superimposed on reference to the characteristic feature that adjustment head portrait includes on face head portrait to be adjusted, realizes the adjustment to face head portrait, make The characteristic feature contained in face head portrait to be adjusted with reference in adjustment head portrait is obtained, optimizes existing photo adjustment technology, it is full Foot people growing personalizations, the photo adjustment demand of interest and appeal.
5th embodiment
Figure 5 illustrates a kind of structure chart of the adjusting apparatus of face head portrait of fifth embodiment of the invention.Such as Fig. 5 institutes Show, described device includes:
With reference to adjustment head portrait determining module 51, for the characteristic parameter included according to face head portrait to be adjusted, it is determined that and institute State corresponding to face head portrait to be adjusted with reference to adjustment head portrait.
Target adjustment head portrait generation module 52, for being calculated according to described adjusted with reference to the head portrait for adjusting head portrait and setting Method, the face head portrait to be adjusted is adjusted, generates target adjustment head portrait.
The embodiment of the present invention by the characteristic parameter that is included according to face head portrait to be adjusted, it is determined that with the face to be adjusted With reference to adjustment head portrait corresponding to head portrait;According to described with reference to the head portrait adjustment algorithm for adjusting head portrait and setting, wait to adjust to described Face head portrait of giving sb. a hard time is adjusted, and generates the technological means of target adjustment head portrait, is no longer only to be shone only for single photo Piece adjusts, but according to reference to photo is adjusted, photo to be adjusted is adjusted, optimizes existing photo adjustment technology, it is full Foot people growing personalizations, the photo adjustment demand of interest and appeal.
It is described specifically to can be used for reference to adjustment head portrait determining module on the basis of the various embodiments described above:
Query template head portrait storehouse, obtain the target adaptable with the face contour characteristic parameter of the face head portrait to be adjusted Types of profiles;
In the objective contour type, the mesh adaptable with the expressive features parameter of the face head portrait to be adjusted is obtained Mark expression head portrait;
The target expression head portrait is defined as corresponding with face head portrait to be adjusted with reference to adjustment head portrait.
Wherein, at least two types of profiles are prestored in the template head portrait storehouse, and every kind of types of profiles is included at least Two expression head portraits.
On the basis of the various embodiments described above, the target adjustment head portrait generation module can specifically include:
Value computing unit to be adjusted, for calculating setting corresponding with the setting adjustment position of the face head portrait to be adjusted The value to be adjusted of parameter;
It is corresponding with the setting adjustment position with reference to adjustment head portrait for obtaining with reference to adjusted value acquiring unit The reference adjusted value of the setup parameter;
Target adjustment value determining unit, for referring to adjusted value with described according to the value to be adjusted, determine target adjustment Value;
Face head portrait adjustment unit to be adjusted, for using the target adjustment value pair and the face head portrait to be adjusted Setup parameter corresponding to setting adjustment position is adjusted, and generates target adjustment head portrait.
On the basis of the various embodiments described above, the setting adjustment position can include at least one of following:Shape of face, eye Eyeball, nose, face and ear;
Setup parameter corresponding with the shape of face can include:The length-width ratio of shape of face;Setting ginseng corresponding with the eyes Number can include:Eyes opening width, and/or eye-length;Setup parameter corresponding with the nose can include:The width of nose Degree, and/or the height of nose;Setup parameter corresponding with the face can include:The opening width of face, and/or face Width;Setup parameter corresponding with the ear can include:The length-width ratio of ear.
On the basis of the various embodiments described above, the target adjustment value determining unit can be further used for:
By it is described it is to be adjusted value and the intermediate value with reference between adjusted value, as the target adjustment value.
On the basis of the various embodiments described above, the target adjustment head portrait generation module specifically can be used for:
The face head portrait to be adjusted is converted into the face picture of sketch effect;
Obtain the picture of the sketch effect at setting modification position corresponding with the reference adjustment head portrait;
The picture for the sketch effect that the setting is modified into position is covered on the face picture of the sketch effect, raw Into target adjustment head portrait.
The adjusting apparatus for the face head portrait that the embodiment of the present invention is provided can be used for performing any embodiment offer of the present invention Face head portrait method of adjustment, possess corresponding functional module, realize identical beneficial effect.
Obviously, it will be understood by those skilled in the art that above-mentioned each module of the invention or each step can be by as above Described mobile terminal device is implemented.Alternatively, the embodiment of the present invention can be realized with the program that computer installation can perform, So as to be stored in storage device by processor to perform, described program can be stored in a kind of computer can Read in storage medium, storage medium mentioned above can be read-only storage, disk or CD etc.;Or they are made respectively Each integrated circuit modules are made, or the multiple modules or step in them are fabricated to single integrated circuit module and come in fact It is existing.So, the present invention is not restricted to the combination of any specific hardware and software.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for those skilled in the art For, the present invention can have various changes and change.All any modifications made within spirit and principles of the present invention, it is equal Replace, improve etc., it should be included in the scope of the protection.

Claims (6)

  1. A kind of 1. method of adjustment of face head portrait, it is characterised in that including:
    Query template head portrait storehouse, obtain the objective contour class adaptable with the face contour characteristic parameter of face head portrait to be adjusted Type;
    In the objective contour type, the object table adaptable with the expressive features parameter of the face head portrait to be adjusted is obtained Feelings head portrait;
    The target expression head portrait is defined as corresponding with face head portrait to be adjusted with reference to adjustment head portrait;
    Wherein, at least two types of profiles are prestored in the template head portrait storehouse, and every kind of types of profiles includes at least two Expression head portrait;The face head portrait to be adjusted refers to need the picture for carrying out face head portrait adjustment;It is described to be with reference to adjustment head portrait Refer to the picture for aiding in adjusting the face head portrait to be adjusted;
    Calculate the value to be adjusted of setup parameter corresponding with the setting adjustment position of the face head portrait to be adjusted;Obtain with it is described The reference adjusted value of the setup parameter with reference to corresponding to the setting adjustment position of adjustment head portrait;According to the value to be adjusted Adjusted value is referred to described, determines target adjustment value;Using the target adjustment value to being set with the face head portrait to be adjusted Setup parameter corresponding to whole position of setting the tone is adjusted, and generates target adjustment head portrait;Or
    The face head portrait to be adjusted is converted into the face picture of sketch effect;Obtain corresponding with the reference adjustment head portrait The picture of the sketch effect at setting modification position;The picture for the sketch effect that the setting is modified into position is covered in the sketch On the face picture of effect, target adjustment head portrait is generated.
  2. 2. according to the method for claim 1, it is characterised in that the setting adjustment position includes at least one of following:
    Shape of face, eyes, nose, face and ear;
    Setup parameter corresponding with the shape of face includes:The length-width ratio of shape of face;
    Setup parameter corresponding with the eyes includes:Eyes opening width, and/or eye-length;
    Setup parameter corresponding with the nose includes:The width of nose, and/or the height of nose;
    Setup parameter corresponding with the face includes:The opening width of face, and/or the width of face;
    Setup parameter corresponding with the ear includes:The length-width ratio of ear.
  3. 3. method according to claim 1 or 2, it is characterised in that adjusted value is referred to described according to the value to be adjusted, Determine that target adjustment value includes:
    By it is described it is to be adjusted value and the intermediate value with reference between adjusted value, as the target adjustment value.
  4. A kind of 4. adjusting apparatus of face head portrait, it is characterised in that including:With reference to adjustment head portrait determining module and target adjustment head As generation module;
    The reference adjustment head portrait determining module, for query template head portrait storehouse, obtains the shape of face wheel with face head portrait to be adjusted The adaptable objective contour type of wide characteristic parameter;
    In the objective contour type, the object table adaptable with the expressive features parameter of the face head portrait to be adjusted is obtained Feelings head portrait;
    The target expression head portrait is defined as corresponding with face head portrait to be adjusted with reference to adjustment head portrait;
    Wherein, at least two types of profiles are prestored in the template head portrait storehouse, and every kind of types of profiles includes at least two Expression head portrait;The face head portrait to be adjusted refers to need the picture for carrying out face head portrait adjustment;It is described to be with reference to adjustment head portrait Refer to the picture for aiding in adjusting the face head portrait to be adjusted;
    The target adjustment head portrait generation module includes:
    Value computing unit to be adjusted, for calculating setup parameter corresponding with the setting adjustment position of the face head portrait to be adjusted Value to be adjusted;
    It is corresponding described with the setting adjustment position with reference to adjustment head portrait for obtaining with reference to adjusted value acquiring unit The reference adjusted value of setup parameter;
    Target adjustment value determining unit, for referring to adjusted value with described according to the value to be adjusted, determine target adjustment value;
    Face head portrait adjustment unit to be adjusted, for using the target adjustment value pair and the setting of the face head portrait to be adjusted Setup parameter corresponding to adjustment position is adjusted, and generates target adjustment head portrait;Or
    The target adjustment head portrait generation module is used for:The face head portrait to be adjusted is converted into the face figure of sketch effect Piece;Obtain the picture of the sketch effect at setting modification position corresponding with the reference adjustment head portrait;By the setting modificationt part The picture of the sketch effect of position is covered on the face picture of the sketch effect, generates target adjustment head portrait.
  5. 5. device according to claim 4, it is characterised in that the setting adjustment position includes at least one of following:
    Shape of face, eyes, nose, face and ear;
    Setup parameter corresponding with the shape of face includes:The length-width ratio of shape of face;
    Setup parameter corresponding with the eyes includes:Eyes opening width, and/or eye-length;
    Setup parameter corresponding with the nose includes:The width of nose, and/or the height of nose;
    Setup parameter corresponding with the face includes:The opening width of face, and/or the width of face;
    Setup parameter corresponding with the ear includes:The length-width ratio of ear.
  6. 6. the device according to claim 4 or 5, it is characterised in that the target adjustment value determining unit is further used for:
    By it is described it is to be adjusted value and the intermediate value with reference between adjusted value, as the target adjustment value.
CN201510137000.0A 2015-03-26 2015-03-26 The method of adjustment and device of face head portrait Expired - Fee Related CN104751408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510137000.0A CN104751408B (en) 2015-03-26 2015-03-26 The method of adjustment and device of face head portrait

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510137000.0A CN104751408B (en) 2015-03-26 2015-03-26 The method of adjustment and device of face head portrait

Publications (2)

Publication Number Publication Date
CN104751408A CN104751408A (en) 2015-07-01
CN104751408B true CN104751408B (en) 2018-01-19

Family

ID=53591031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510137000.0A Expired - Fee Related CN104751408B (en) 2015-03-26 2015-03-26 The method of adjustment and device of face head portrait

Country Status (1)

Country Link
CN (1) CN104751408B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405094A (en) * 2015-11-26 2016-03-16 掌赢信息科技(上海)有限公司 Method for processing face in instant video and electronic device
CN106056533B (en) * 2016-05-26 2019-08-20 维沃移动通信有限公司 A kind of method and terminal taken pictures
CN106204665B (en) * 2016-06-27 2019-04-30 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN106210517A (en) * 2016-07-06 2016-12-07 北京奇虎科技有限公司 The processing method of a kind of view data, device and mobile terminal
CN106303354B (en) * 2016-08-18 2020-04-28 北京奇虎科技有限公司 Face special effect recommendation method and electronic equipment
CN106815803B (en) * 2016-12-30 2020-06-16 Oppo广东移动通信有限公司 Picture processing method and device
CN107833177A (en) * 2017-10-31 2018-03-23 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108446653B (en) * 2018-03-27 2022-08-16 百度在线网络技术(北京)有限公司 Method and apparatus for processing face image
CN108765551B (en) * 2018-05-15 2022-02-01 福建省天奕网络科技有限公司 Method and terminal for realizing face pinching of 3D model
CN109345636B (en) * 2018-07-19 2023-10-24 北京永星互动科技有限公司 Method and device for obtaining virtual face image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308571A (en) * 2007-05-15 2008-11-19 上海中科计算技术研究所 Method for generating novel human face by combining active grid and human face recognition
CN101504774A (en) * 2009-03-06 2009-08-12 暨南大学 Animation design engine based on virtual reality
CN101527049A (en) * 2009-03-31 2009-09-09 西安交通大学 Generating method of multiple-style face cartoon based on sample learning
CN101556699A (en) * 2008-11-07 2009-10-14 浙江大学 Face-based facial aging image synthesis method
CN103327188A (en) * 2013-06-27 2013-09-25 广东欧珀移动通信有限公司 Self-photographing method with mobile terminal and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000064110A (en) * 2000-08-22 2000-11-06 이성환 Device and method for automatic character generation based on a facial image
CN1710551A (en) * 2004-06-16 2005-12-21 甲尚股份有限公司 Network interactive image processing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308571A (en) * 2007-05-15 2008-11-19 上海中科计算技术研究所 Method for generating novel human face by combining active grid and human face recognition
CN101556699A (en) * 2008-11-07 2009-10-14 浙江大学 Face-based facial aging image synthesis method
CN101504774A (en) * 2009-03-06 2009-08-12 暨南大学 Animation design engine based on virtual reality
CN101527049A (en) * 2009-03-31 2009-09-09 西安交通大学 Generating method of multiple-style face cartoon based on sample learning
CN103327188A (en) * 2013-06-27 2013-09-25 广东欧珀移动通信有限公司 Self-photographing method with mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN104751408A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN104751408B (en) The method of adjustment and device of face head portrait
CN107395960A (en) Photographic method and device, computer installation and computer-readable recording medium
CN108364267A (en) Image processing method, device and equipment
CN108197602A (en) A kind of convolutional neural networks generation method and expression recognition method
CN108182714A (en) Image processing method and device, storage medium
CN104811684B (en) A kind of three-dimensional U.S. face method and device of image
CN108198177A (en) Image acquiring method, device, terminal and storage medium
CN108093174A (en) Patterning process, device and the photographing device of photographing device
JP2009015372A (en) Image processor, image processing method, program and storage medium
CN103369238B (en) Image creating device and image creating method
CN110059593B (en) Facial expression recognition method based on feedback convolutional neural network
CN104346136A (en) Method and device for picture processing
CN109087380A (en) A kind of caricature cardon generation method, device and storage medium
JP2005025748A5 (en)
CN107341762A (en) Take pictures processing method, device and terminal device
CN109659006B (en) Facial muscle training method and device and electronic equipment
CN106815803B (en) Picture processing method and device
CN106407424A (en) A music recommendation method and a mobile terminal
CN107194869A (en) A kind of image processing method and terminal, computer-readable storage medium, computer equipment
KR20060104027A (en) Method of virtual face shaping based on automatic face extraction and apparatus thereof
US20140233858A1 (en) Image creating device, image creating method and recording medium storing program
CN110177205A (en) Terminal device, photographic method and computer readable storage medium based on micro- expression
CN108810406A (en) Portrait light efficiency processing method, device, terminal and computer readable storage medium
CN111127309A (en) Portrait style transfer model training method, portrait style transfer method and device
CN111185903B (en) Method and device for controlling mechanical arm to draw portrait and robot system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180119

CF01 Termination of patent right due to non-payment of annual fee