CN105045968A - Hairstyle design method and system - Google Patents

Hairstyle design method and system Download PDF

Info

Publication number
CN105045968A
CN105045968A CN201510373441.0A CN201510373441A CN105045968A CN 105045968 A CN105045968 A CN 105045968A CN 201510373441 A CN201510373441 A CN 201510373441A CN 105045968 A CN105045968 A CN 105045968A
Authority
CN
China
Prior art keywords
hair style
face
picture
style picture
face image
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.)
Granted
Application number
CN201510373441.0A
Other languages
Chinese (zh)
Other versions
CN105045968B (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.)
Qingdao University of Technology
Original Assignee
Qingdao University of Technology
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 Qingdao University of Technology filed Critical Qingdao University of Technology
Priority to CN201510373441.0A priority Critical patent/CN105045968B/en
Publication of CN105045968A publication Critical patent/CN105045968A/en
Application granted granted Critical
Publication of CN105045968B publication Critical patent/CN105045968B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a hairstyle design method. Each type of hairstyle picture in a hairstyle library is subjected to image processing in advance to generate corresponding hairstyle picture groups and the hairstyle picture groups are stored in the hairstyle library, wherein each hairstyle picture group contains hairstyle pictures corresponding to different standard face shapes. Therefore, in the hairstyle design process, according to the standard face shape to which a face image of a hairstyle to be designed belongs, the hairstyle picture corresponding to the standard face shape to which the face image of the hairstyle to be designed belongs is rapidly extracted from the hairstyle library and is used as a final hairstyle picture for being matched with the face picture, so that on the premise of ensuring the efficiency of hairstyle design, the effect of hairstyle design is further improved and great use experience is brought to a user. The present invention further discloses a hairstyle design system.

Description

A kind of hair styling method and system
Technical field
The present invention relates to hair style design technical field, in particular, relate to a kind of hair styling method and system.
Background technology
Before haircut, select oneself hair style applicable more intuitively to meet user, various hair style design software emerges in an endless stream.
Hair style design software in the market all has respective hair style storehouse, but, hair style picture in the hair style storehouse of most hair style design software is fairly simple, or is a sheet by a sheet without the hair style picture of any process, or marks one or two anchor point by hand on essential picture.User is when using such hair style design software to carry out hair style design, can only when selecting hair style picture and facial image to arrange in pairs or groups, constantly carry out manual setting, cause hair style design efficiency low, even if rely on one or two anchor point, selection hair style picture has been overlapped automatic collocation with facial image, arranging effect is also often poor.
Therefore, existing hair style design software due to hair style picture pre-service hair style design weak effect, the efficiency of causing not in place low, the use sense that greatly have impact on user is subject to.
Summary of the invention
In view of this, the invention provides a kind of hair styling method and system, cause hair style design weak effect, inefficient problem to overcome hair style design software of the prior art because the pre-service of hair style picture is not in place.
For achieving the above object, the invention provides following technical scheme:
A kind of hair styling method, comprising:
In advance image procossing is carried out to the hair style picture of type every in hair style storehouse, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group;
Then described hair styling method comprises:
Process is positioned to the face image of current hair style to be designed, obtains the characteristic information of the face image of described current hair style to be designed;
The standard shape of face belonging to face image of described current hair style to be designed is determined according to the characteristic information of described face image;
Determine the type of target hair style picture;
The target hair style picture group corresponding with the type of described target hair style picture is transferred from hair style storehouse;
From described target hair style picture group, extract the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image.
Optionally, describedly in advance image procossing is carried out to the hair style picture of type every in hair style storehouse, generates corresponding hair style picture group and be also stored in hair style storehouse, specifically comprise:
The hair style picture of a type is chosen as pending hair style picture from hair style storehouse;
Following process is performed, until all types of hair style picture is all disposed in hair style storehouse to pending hair style picture;
The face image of the model of pre-prepd various criterion shape of face is detected respectively, determines the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position;
Determine the hair style center of described pending hair style picture;
According to the hair style center of the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position and described pending hair style picture, the face image adjusting the model of each standard shape of face respectively makes the face mask line on the face image of the model of each standard shape of face overlap with the left and right temples inner outline on described pending hair style picture;
Face mask line on the face image of the model of the standard shape of face after each adjustment, eyes position, nose position, eyebrow position and Hp position are marked respectively on described pending hair style picture, generates the hair style picture corresponding with this standard shape of face;
By the standard shape of face different from each one to one hair style picture combine, generate the hair style picture group of corresponding described pending hair style picture and be stored in hair style storehouse.
Optionally, described standard shape of face comprises:
Long shape of face, square face, brachyfacial, inverted triangle face, foreign pears face, egg type face and rhombus face.
Optionally, extracting after the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image from described target hair style picture group, described method also comprises:
The hair style that preview matches.
A kind of hair style design system, comprising:
Hair style pretreatment module, for carrying out image procossing to the hair style picture of type every in hair style storehouse in advance, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group;
Face image localization process module, for positioning process to the face image of current hair style to be designed, obtains the characteristic information of the face image of described current hair style to be designed; And the standard shape of face belonging to face image of described current hair style to be designed is determined according to the characteristic information of described face image;
Hair style is selected and collocation module, for determining the type of target hair style picture; The target hair style picture group corresponding with the type of described target hair style picture is transferred from hair style storehouse; From described target hair style picture group, extract the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image.
Optionally, described hair style pretreatment module specifically for:
The hair style picture of a type is chosen as pending hair style picture from hair style storehouse;
Following process is performed, until all types of hair style picture is all disposed in hair style storehouse to pending hair style picture;
The face image of the model of pre-prepd various criterion shape of face is detected respectively, determines the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position;
Determine the hair style center of described pending hair style picture;
According to the hair style center of the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position and described pending hair style picture, the face image adjusting the model of each standard shape of face respectively makes the face mask line on the face image of the model of each standard shape of face overlap with the left and right temples inner outline on described pending hair style picture;
Face mask line on the face image of the model of the standard shape of face after each adjustment, eyes position, nose position, eyebrow position and Hp position are marked respectively on described pending hair style picture, generates the hair style picture corresponding with this standard shape of face;
By the standard shape of face different from each one to one hair style picture combine, generate the hair style picture group of corresponding described pending hair style picture and be stored in hair style storehouse.
Optionally, described standard shape of face comprises:
Long shape of face, square face, brachyfacial, inverted triangle face, foreign pears face, egg type face and rhombus face.
Optionally, described system also comprises:
Hair style previewing module, for extracting after the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image from described target hair style picture group, the hair style that preview matches.
Known via above-mentioned technical scheme, compared with prior art, the invention discloses a kind of hair styling method, in advance image procossing is carried out to the hair style picture of type every in hair style storehouse, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group; Like this when carrying out hair style design, the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed can be taken out arrange in pairs or groups as final hair style picture and described face image by standard shape of face belonging to the face image of hair style to be designed Quick from hair style storehouse, under the prerequisite ensureing hair style design efficiency, the also perfect further effect of hair style design, brings fabulous use sense to user and is subject to.The invention also discloses a kind of hair style design system.
Term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the term used like this can exchange in the appropriate case, this is only describe in embodiments of the invention the differentiation mode that the object of same alike result adopts when describing.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, to comprise the process of a series of unit, method, system, product or equipment being not necessarily limited to those unit, but can comprise clearly do not list or for intrinsic other unit of these processes, method, product or equipment.
From background technology, existing hair style design software due to hair style picture pre-service hair style design weak effect, the efficiency of causing not in place low, the use sense that greatly have impact on user is subject to.
For this reason, the invention discloses a kind of hair styling method, in advance image procossing is carried out to the hair style picture of type every in hair style storehouse, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group; Like this when carrying out hair style design, the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed can be taken out arrange in pairs or groups as final hair style picture and described face image by standard shape of face belonging to the face image of hair style to be designed Quick from hair style storehouse, under the prerequisite ensureing hair style design efficiency, the also perfect further effect of hair style design, brings fabulous use sense to user and is subject to.The invention also discloses a kind of hair style design system.
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Refer to accompanying drawing 1, for the schematic flow sheet of a kind of hair styling method embodiment 1 disclosed by the invention, in advance image procossing is carried out to the hair style picture of type every in hair style storehouse, generate corresponding hair style picture group and be stored in hair style storehouse, include and different standard shapes of face hair style picture one to one in each described hair style picture group, such as, hair style storehouse comprises the hair style of following several types: neat bang pear flower scalds, neat bang corn scalds, neat bang spiral scalds, bob texture scalds, the large wave of neat bang, wave-wave head, aircraft nose, plank inch, then through carrying out image procossing to various types of hair style picture above-mentioned in hair style storehouse, then can generate corresponding hair style picture group and be stored in hair style storehouse, include and different standard shapes of face hair style picture one to one in each described hair style picture group, for plank inch, then comprise 7 corresponding long shapes of face of difference in plank inch hair style picture group, square face, brachyfacial, inverted triangle face, ocean pears face, the hair style picture of egg type face and rhombus face.It should be noted that, if during the corresponding plurality of pictures of the hair style of certain type, need the every pictures corresponding to this type to carry out image procossing, generate corresponding hair style picture group.Such as, in some hair style storehouse, the hair style picture of wave-wave head may have multiple, suppose the hair style picture having wave-wave head 1, wave-wave head 2 and wave-wave head 3 correspondence, then need to carry out image procossing to the hair style picture of wave-wave head 1, wave-wave head 2 and wave-wave head 3 correspondence respectively, generate corresponding three hair style picture groups.
Described hair styling method comprises the steps:
S101, positions process to the face image of current hair style to be designed, obtains the characteristic information of the face image of described current hair style to be designed.
The face image of current hair style to be designed preferably front and the face image that do not covered face by hair.
S102, determines the standard shape of face belonging to face image of described current hair style to be designed according to the characteristic information of described face image.
It should be noted that, in the present embodiment, standard shape of face comprises: long shape of face, square face, brachyfacial, inverted triangle face, foreign pears face, egg type face and rhombus face these 7 kinds.But because the judgment criteria of shape of face is different, the title of standard shape of face and the quantity of standard shape of face also may be different, and the standard shape of face of other titles and quantity is equally in protection scope of the present invention.
S103, determines the type of target hair style picture.
Target hair style picture can be chosen in hair style storehouse by user, and each hair style picture in hair style storehouse has the type of its correspondence, after user chooses target hair style picture, needs the type determining target hair style picture.
Such as, hair style storehouse comprises the hair style of following several types: neat bang pear flower scalds, neat bang corn scalds, neat bang spiral scalds, bob texture scalds, the neat large wave of bang, wave-wave head, aircraft nose, plank inch, user can choose the hair style admiring type in hair style storehouse, such as user wants to make a wave-wave hair type, then its hair style picture can choosing wave-wave head in hair style storehouse is as target hair style picture, then the type of target hair style picture is wave-wave head.It should be noted that, in some hair style storehouse, the hair style picture of wave-wave head may have multiple, suppose have wave-wave head 1, wave-wave head 2 and wave-wave head 3, user is when choosing, first can choose wave-wave head from hair style storehouse, the hair style picture of wave-wave head 1, wave-wave head 2 and wave-wave head 3 correspondence shows immediately, user chooses one as target hair style picture from the hair style picture of above-mentioned wave-wave head 1, wave-wave head 2 and wave-wave head 3 correspondence, if the hair style picture for wave-wave head 3 correspondence that user chooses, then the type of target hair style picture is wave-wave head 3.
S104, transfers the target hair style picture group corresponding with the type of described target hair style picture from hair style storehouse.
S105, extracts the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed and arranges in pairs or groups as final hair style picture and described face image from described target hair style picture group.
Present embodiment discloses a kind of hair styling method, in advance image procossing is carried out to the hair style picture of type every in hair style storehouse, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group; Like this when carrying out hair style design, the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed can be taken out arrange in pairs or groups as final hair style picture and described face image by standard shape of face belonging to the face image of hair style to be designed Quick from hair style storehouse, under the prerequisite ensureing hair style design efficiency, the also perfect further effect of hair style design, brings fabulous use sense to user and is subject to.
On the basis of above-described embodiment, the present invention is also described in detail the process of " carrying out image procossing to the hair style picture of type every in hair style storehouse in advance; generate corresponding hair style picture group and be stored in hair style storehouse ", concrete, the hair style picture of a type is chosen as pending hair style picture from hair style storehouse, treatment scheme shown in Fig. 2 is performed to pending hair style picture, until all types of hair style picture is all disposed in hair style storehouse.
Refer to Fig. 2, Fig. 2 carries out the schematic flow sheet of image procossing for the hair style picture to certain hair style a kind of disclosed in the present embodiment, and this treatment scheme specifically comprises the steps:
S201, detects respectively to the face image of the model of pre-prepd various criterion shape of face, determines the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position.
S202, determines the hair style center of described pending hair style picture.
S203, according to the hair style center of the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position and described pending hair style picture, the face image adjusting the model of each standard shape of face respectively makes the face mask line on the face image of the model of each standard shape of face overlap with the left and right temples inner outline on described pending hair style picture.
S204, face mask line on the face image of the model of the standard shape of face after each adjustment, eyes position, nose position, eyebrow position and Hp position are marked respectively on described pending hair style picture, generates the hair style picture corresponding with this standard shape of face.
S205, by the standard shape of face different from each one to one hair style picture combine, generate the hair style picture group of corresponding described pending hair style picture and be stored in hair style storehouse.
It should be noted that, extracting after the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image from described target hair style picture group, can also the hair style that matches of preview.
Based on above-described embodiment, the invention provides a kind of example of hair style picture being carried out to image procossing, as follows:
1) complete image (face does not have hair to block) of the model that the 7 kinds of standard shapes of face that are prepared in advance are classified, comprises long shape of face, square face, brachyfacial, inverted triangle face, foreign pears face, egg type face, rhombus face 7 kinds.
2) choose model's face image, automatically locate face image eyes, face image shows the eyes anchor point detected, if identify inaccurate, then operator makes eyes anchor point more accurate by manual operations;
3) the left eye centre of form (E is calculated according to anchor point 1f) to the right eye centre of form (E 2f) distance (C f), the left eye centre of form is to the distance (A in image Far Left sideline f), the distance (B in left eye centre of form distance character facial picture topmost sideline f);
4) profile of face image and face's eyebrow, lip coordinate are detected automatically, identify the face mask line of face image, and face's nose coordinate position in face image, face's eyebrow coordinate position in face image, face's lip coordinate position in face image, and be presented on face image; If identify inaccurate, operator carries out the face mask line manually adjusting the character facial image identified, and allows face mask line mate the face mask of character facial image more exactly; In like manner, face's nose position coordinates of the character facial image identified, eyebrow position coordinates and Hp position coordinate can also be adjusted as required;
5) through certain transverse axis (any transverse axis of hair style central region of hair style image, only however depart from middle part too much can) on get its mid point, and this point is marked, be designated as A, using hair style image as upper layer images, model's face image mates as bottom layer image, in matching process, hair style dimension of picture is constant, regulates the size of model's face image.The vertical line of model face picture nose summit O will be crossed through hair style A point, complete tentatively aliging of shape of face and hair style; Regulate face image size that the object for appreciation outline line of face image is overlapped substantially with the inner outline of hair style image by overall convergent-divergent, namely the collocation completing first hair style due to the size of hair style storehouse image substantially identical with position coordinates, therefore after first hair style completes coupling, record hair style picture lower left corner coordinate, hair style picture afterwards all with this coordinate and central point position for reference point carries out Primary Location, what there is little deviation passes through adjustment face picture right position, and the left and right temples outline line of hair style and shape of face outer contour are coincided.
Mark A is to the distance c between the horizontal stroke of model's face image nose, ordinate segment length AB, BO and two f.
6) according to original model's face image two interocular distance C fwith mate after two eye distances that obtain from c fratio identical proportional zoom is carried out to all parameters obtained after model's face recognition.
7) the some O under corresponding with hair style picture for the nose coordinate in the model's facial parameter after convergent-divergent horizontal stroke, ordinate section AB, BO is overlapped, and be that basic point correspondence markings is on this hair style picture with O by model's facial parameters all after proportional zoom.
8) successively the hair style picture containing 7 kinds of standard shape of face locating information of all hair styles in other 6 kinds of 6 hair style pictures containing standard shape of face locating information of this hair style and hair style storehouse is completed the mark location of characteristic information according to said process.
Based on above-mentioned example of hair style picture being carried out to image procossing, the invention provides a kind of specific implementation example of hair style design, as follows:
1) automatically locate the eyes of face image, face image shows the eyes anchor point detected, if identify inaccurate, then operator makes eyes anchor point more accurate by manual operations;
2) the left eye centre of form (E is calculated according to anchor point 1f) to the right eye centre of form (E 2f) distance (C f), the left eye centre of form is to the distance (A in image Far Left sideline f), the distance (B in left eye centre of form distance character facial picture topmost sideline f);
3) face mask of computing machine to character facial image detects automatically, the face mask line of the character facial image identified, and face's eyebrow coordinate position in character facial image, face's lip coordinate position in character facial image.If identify inaccurate, operator manually can adjust the face mask line of the character facial image identified, and allows face mask line mate the face mask of character facial image more accurately; In like manner, face's eyebrow position coordinates of the character facial image identified also can be adjusted as required, and face's Hp position coordinate of character facial image.
The human face characteristic positioning method based on active shape model (ASM) can be used, face mask and face feature are detected automatically.
4) according to face's eyebrow coordinate position in character facial image, and the face mask line computation of the character facial image identified goes out the width W of face of face's eyebrow place in character facial image 1f; According to face's lip coordinate position in character facial image, and the face mask line computation of the character facial image identified goes out the width W of face of face's lip place in character facial image 2f; The face mask line of scanning character facial image, calculates the width W of face's the widest part in character facial image f; The forehead peak of the face mask line of the character facial image gone out according to scanning recognition and lower jaw minimum point calculate the face height L of character facial image f.The shape of face belonging to this character facial image is extrapolated according to the outline line of character facial image and the face's width calculated and height parameter.
It should be noted that, 4) in extrapolate the shape of face belonging to this face image method be:
1. the length breadth ratio L of face is calculated f/ W fif, L f/ W fvalue be greater than 3/2, the shape of face of this character facial image is labeled as elongated face by this; If L f/ W fvalue be less than 4/3, enter and 2. walk; If L f/ W fvalue between 4/3 and 3/2, then enter and 3. walk;
2. at L f/ W fvalue when being less than 4/3, calculate the degree of crook of the face mask line in face image near face's the widest part, concrete computing method are horizontal lines that the both ends, face left and right first drawing face's the widest part connect, and are all L in the distance up and down of this horizontal line ftwo parallel lines are drawn in the place of/7, obtain the intersection point of these two parallel lines and face mask line, all get the intersection point on the left side.Finally draw the angle of the tangent line of these two points, if the value of this angle is less than 25 ° just the shape of face of face in hair style image is labeled as square face, if the value of this angle is little unlike 25 ° just the shape of face of this character facial image is labeled as round face;
3. at L f/ W fvalue between 4/3 and 3/2 time, compare W 1f, W 2f, W fbetween value, if W 2f/ W 1fvalue be less than 0.7, the shape of face of this character facial image is labeled as inverted triangle face; If W 1f/ W 2fvalue be less than 0.7, be then labeled as foreign pears face; If 0.7 < W 1f/ W 2f< 1.43, and W 1f/ W f, W 2f/ W fall be more than or equal to 0.9, be just labeled as egg shape face, if W 1f/ W f, W 2f/ W fall be less than 0.9, be just labeled as diamond pattern face.
5) user selects the hair style image liked, and system selects the hair style image of shape of face corresponding to face image automatically in 7 pictures of this hair style, carries out ensuing matching treatment;
6) according to the right and left eyes centre of form co-ordinate position information A of the character facial image calculated f, B f, the width information C between the eyes centre of form f, the width W of face of face's eyebrow place in character facial image 1f, the width W of face of face's lip place in character facial image 2f, face's height L in character facial image f, with in hair image contrast with corresponding information, coupling character facial image and hair image.
Respectively according to width C fand the width C between the eyes centre of form in hair image institute information hbetween ratio, height L fwith the character facial height L in institute's information in hair image hbetween ratio, horizontal and vertical convergent-divergent hair image, makes C f=C h ', L f=L h '.Wherein, C h ', L h 'be respectively C h, L hresult after change.In addition, other parameters of convergent-divergent hair image, obtain new A in proportion h ', B h ', W 1h ', W 2h '.
7) using hair image as upper layer images, face image as bottom layer image, according to the left eye locating information A of two figure f, B fwith A h ', B h ', mobile hair style picture on bottom picture, makes both corresponding C f, C h 'overlap, complete preliminary Auto-matching.If mate not accurate enough, operator adjusts size and the position of hair image, until hair image and face image perfect matching by manual operations.In addition, hair style pruning, dyeing, colour of skin beauty treatment, background collocation can also be carried out to collocation picture.
8) hair style that matches of preview.
Describe method in detail in embodiment disclosed in the invention described above, the system of various ways can be adopted to realize for method of the present invention, therefore the invention also discloses a kind of system, provide specific embodiment below and be described in detail.
Refer to accompanying drawing 3, be the structural representation of a kind of hair style design system embodiment 1 disclosed by the invention, this system comprises:
Hair style pretreatment module 11, for carrying out image procossing to the hair style picture of type every in hair style storehouse in advance, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group;
Face image localization process module 12, for positioning process to the face image of current hair style to be designed, obtains the characteristic information of the face image of described current hair style to be designed; And the standard shape of face belonging to face image of described current hair style to be designed is determined according to the characteristic information of described face image;
Hair style is selected and collocation module 13, for determining the type of target hair style picture; The target hair style picture group corresponding with the type of described target hair style picture is transferred from hair style storehouse; From described target hair style picture group, extract the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image.
Described hair style pretreatment module 11 specifically for:
The hair style picture of a type is chosen as pending hair style picture from hair style storehouse;
Following process is performed, until all types of hair style picture is all disposed in hair style storehouse to pending hair style picture;
The face image of the model of pre-prepd various criterion shape of face is detected respectively, determines the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position;
Determine the hair style center of described pending hair style picture;
According to the hair style center of the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position and described pending hair style picture, the face image adjusting the model of each standard shape of face respectively makes the face mask line on the face image of the model of each standard shape of face overlap with the left and right temples inner outline on described pending hair style picture;
Face mask line on the face image of the model of the standard shape of face after each adjustment, eyes position, nose position, eyebrow position and Hp position are marked respectively on described pending hair style picture, generates the hair style picture corresponding with this standard shape of face;
By the standard shape of face different from each one to one hair style picture combine, generate the hair style picture group of corresponding described pending hair style picture and be stored in hair style storehouse.
It should be noted that, described standard shape of face comprises:
Long shape of face, square face, brachyfacial, inverted triangle face, foreign pears face, egg type face and rhombus face.
Described system also can comprise:
Hair style previewing module, for extracting after the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image from described target hair style picture group, the hair style that preview matches.
It should be noted that, the functional realiey of above-mentioned modules is described in detail in embodiment of the method, and the present embodiment repeats no more.
In sum:
The invention discloses a kind of hair styling method, in advance image procossing is carried out to the hair style picture of type every in hair style storehouse, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group; Like this when carrying out hair style design, the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed can be taken out arrange in pairs or groups as final hair style picture and described face image by standard shape of face belonging to the face image of hair style to be designed Quick from hair style storehouse, under the prerequisite ensureing hair style design efficiency, the also perfect further effect of hair style design, brings fabulous use sense to user and is subject to.The invention also discloses a kind of hair style design system.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
It should be noted that in addition, device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.In addition, in device embodiment accompanying drawing provided by the invention, the annexation between module represents to have communication connection between them, specifically can be implemented as one or more communication bus or signal wire.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly comprise special IC, dedicated cpu, private memory, special components and parts etc. realize by specialized hardware.Generally, all functions completed by computer program can realize with corresponding hardware easily, and the particular hardware structure being used for realizing same function also can be diversified, such as mimic channel, digital circuit or special circuit etc.But under more susceptible for the purpose of the present invention condition, software program realizes is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computing machine, USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in the present invention each embodiment.
In sum, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to above-described embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in the various embodiments described above, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The schematic flow sheet of Fig. 1 a kind of hair styling method embodiment 1 disclosed in the embodiment of the present invention;
Fig. 2 carries out the schematic flow sheet of image procossing for the hair style picture to certain hair style a kind of disclosed in the present embodiment;
The structural representation of Fig. 3 a kind of hair style design system embodiment 1 disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.

Claims (8)

1. a hair styling method, is characterized in that, comprising:
In advance image procossing is carried out to the hair style picture of type every in hair style storehouse, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group;
Then described hair styling method comprises:
Process is positioned to the face image of current hair style to be designed, obtains the characteristic information of the face image of described current hair style to be designed;
The standard shape of face belonging to face image of described current hair style to be designed is determined according to the characteristic information of described face image;
Determine the type of target hair style picture;
The target hair style picture group corresponding with the type of described target hair style picture is transferred from hair style storehouse;
From described target hair style picture group, extract the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image.
2. method according to claim 1, is characterized in that, describedly carries out image procossing to the hair style picture of type every in hair style storehouse in advance, generates corresponding hair style picture group and is also stored in hair style storehouse, specifically comprise:
The hair style picture of a type is chosen as pending hair style picture from hair style storehouse;
Following process is performed, until all types of hair style picture is all disposed in hair style storehouse to pending hair style picture;
The face image of the model of pre-prepd various criterion shape of face is detected respectively, determines the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position;
Determine the hair style center of described pending hair style picture;
According to the hair style center of the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position and described pending hair style picture, the face image adjusting the model of each standard shape of face respectively makes the face mask line on the face image of the model of each standard shape of face overlap with the left and right temples inner outline on described pending hair style picture;
Face mask line on the face image of the model of the standard shape of face after each adjustment, eyes position, nose position, eyebrow position and Hp position are marked respectively on described pending hair style picture, generates the hair style picture corresponding with this standard shape of face;
By the standard shape of face different from each one to one hair style picture combine, generate the hair style picture group of corresponding described pending hair style picture and be stored in hair style storehouse.
3. method according to claim 1, is characterized in that, described standard shape of face comprises:
Long shape of face, square face, brachyfacial, inverted triangle face, foreign pears face, egg type face and rhombus face.
4. according to the method in claims 1 to 3 described in any one, it is characterized in that, extracting after the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image from described target hair style picture group, described method also comprises:
The hair style that preview matches.
5. a hair style design system, is characterized in that, comprising:
Hair style pretreatment module, for carrying out image procossing to the hair style picture of type every in hair style storehouse in advance, generate corresponding hair style picture group and be stored in hair style storehouse, including and different standard shapes of face hair style picture one to one in each described hair style picture group;
Face image localization process module, for positioning process to the face image of current hair style to be designed, obtains the characteristic information of the face image of described current hair style to be designed; And the standard shape of face belonging to face image of described current hair style to be designed is determined according to the characteristic information of described face image;
Hair style is selected and collocation module, for determining the type of target hair style picture; The target hair style picture group corresponding with the type of described target hair style picture is transferred from hair style storehouse; From described target hair style picture group, extract the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image.
6. system according to claim 5, is characterized in that, described hair style pretreatment module specifically for:
The hair style picture of a type is chosen as pending hair style picture from hair style storehouse;
Following process is performed, until all types of hair style picture is all disposed in hair style storehouse to pending hair style picture;
The face image of the model of pre-prepd various criterion shape of face is detected respectively, determines the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position;
Determine the hair style center of described pending hair style picture;
According to the hair style center of the face mask line on the face image of the model of each standard shape of face, eyes position, nose position, eyebrow position and Hp position and described pending hair style picture, the face image adjusting the model of each standard shape of face respectively makes the face mask line on the face image of the model of each standard shape of face overlap with the left and right temples inner outline on described pending hair style picture;
Face mask line on the face image of the model of the standard shape of face after each adjustment, eyes position, nose position, eyebrow position and Hp position are marked respectively on described pending hair style picture, generates the hair style picture corresponding with this standard shape of face;
By the standard shape of face different from each one to one hair style picture combine, generate the hair style picture group of corresponding described pending hair style picture and be stored in hair style storehouse.
7. system according to claim 5, is characterized in that, described standard shape of face comprises:
Long shape of face, square face, brachyfacial, inverted triangle face, foreign pears face, egg type face and rhombus face.
8. according to the system in claim 5 ~ 7 described in any one, it is characterized in that, described system also comprises:
Hair style previewing module, for extracting after the hair style picture corresponding with the standard shape of face belonging to the face image of described current hair style to be designed arrange in pairs or groups as final hair style picture and described face image from described target hair style picture group, the hair style that preview matches.
CN201510373441.0A 2015-06-30 2015-06-30 A kind of hair styling method and system Expired - Fee Related CN105045968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510373441.0A CN105045968B (en) 2015-06-30 2015-06-30 A kind of hair styling method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510373441.0A CN105045968B (en) 2015-06-30 2015-06-30 A kind of hair styling method and system

Publications (2)

Publication Number Publication Date
CN105045968A true CN105045968A (en) 2015-11-11
CN105045968B CN105045968B (en) 2019-02-12

Family

ID=54452511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510373441.0A Expired - Fee Related CN105045968B (en) 2015-06-30 2015-06-30 A kind of hair styling method and system

Country Status (1)

Country Link
CN (1) CN105045968B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274493A (en) * 2017-06-28 2017-10-20 河海大学常州校区 A kind of three-dimensional examination hair style facial reconstruction method based on mobile platform
CN107545051A (en) * 2017-08-23 2018-01-05 武汉理工大学 Hair style design system and method based on image procossing
CN107808136A (en) * 2017-10-31 2018-03-16 广东欧珀移动通信有限公司 Image processing method, device, readable storage medium storing program for executing and computer equipment
CN108255998A (en) * 2017-12-29 2018-07-06 武汉璞华大数据技术有限公司 A kind of hair style recommends method, apparatus and equipment
CN108537126A (en) * 2018-03-13 2018-09-14 东北大学 A kind of face image processing system and method
CN108629303A (en) * 2018-04-24 2018-10-09 杭州数为科技有限公司 A kind of shape of face defect identification method and system
CN109948402A (en) * 2017-12-20 2019-06-28 北京京东尚科信息技术有限公司 Article matching process and device, computer-readable medium
CN110349202A (en) * 2019-07-05 2019-10-18 合肥聚美网络科技有限公司 A kind of hair styling method based on shape of face analysis
CN110826260A (en) * 2019-12-13 2020-02-21 北京数一数科技服务有限公司 Hair style design method
CN111510769A (en) * 2020-05-21 2020-08-07 广州华多网络科技有限公司 Video image processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665686B1 (en) * 1991-03-20 2003-12-16 Hitachi, Ltd. Data processing method and apparatus for supporting analysis/judgement
CN101770574A (en) * 2010-01-22 2010-07-07 黄禹 Method for positioning eyes and identifying facial form
CN102419868A (en) * 2010-09-28 2012-04-18 三星电子株式会社 Device and method for modeling 3D (three-dimensional) hair based on 3D hair template
CN102622613A (en) * 2011-12-16 2012-08-01 彭强 Hair style design method based on eyes location and face recognition

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665686B1 (en) * 1991-03-20 2003-12-16 Hitachi, Ltd. Data processing method and apparatus for supporting analysis/judgement
CN101770574A (en) * 2010-01-22 2010-07-07 黄禹 Method for positioning eyes and identifying facial form
CN102419868A (en) * 2010-09-28 2012-04-18 三星电子株式会社 Device and method for modeling 3D (three-dimensional) hair based on 3D hair template
CN102622613A (en) * 2011-12-16 2012-08-01 彭强 Hair style design method based on eyes location and face recognition

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274493A (en) * 2017-06-28 2017-10-20 河海大学常州校区 A kind of three-dimensional examination hair style facial reconstruction method based on mobile platform
CN107274493B (en) * 2017-06-28 2020-06-19 河海大学常州校区 Three-dimensional virtual trial type face reconstruction method based on mobile platform
CN107545051A (en) * 2017-08-23 2018-01-05 武汉理工大学 Hair style design system and method based on image procossing
CN107808136A (en) * 2017-10-31 2018-03-16 广东欧珀移动通信有限公司 Image processing method, device, readable storage medium storing program for executing and computer equipment
CN107808136B (en) * 2017-10-31 2020-06-12 Oppo广东移动通信有限公司 Image processing method, image processing device, readable storage medium and computer equipment
CN109948402A (en) * 2017-12-20 2019-06-28 北京京东尚科信息技术有限公司 Article matching process and device, computer-readable medium
CN108255998A (en) * 2017-12-29 2018-07-06 武汉璞华大数据技术有限公司 A kind of hair style recommends method, apparatus and equipment
CN108537126A (en) * 2018-03-13 2018-09-14 东北大学 A kind of face image processing system and method
CN108629303A (en) * 2018-04-24 2018-10-09 杭州数为科技有限公司 A kind of shape of face defect identification method and system
CN110349202A (en) * 2019-07-05 2019-10-18 合肥聚美网络科技有限公司 A kind of hair styling method based on shape of face analysis
CN110349202B (en) * 2019-07-05 2021-07-20 合肥聚美网络科技有限公司 Hairstyle design method based on face analysis
CN110826260A (en) * 2019-12-13 2020-02-21 北京数一数科技服务有限公司 Hair style design method
CN111510769A (en) * 2020-05-21 2020-08-07 广州华多网络科技有限公司 Video image processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN105045968B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN105045968A (en) Hairstyle design method and system
CN102622613B (en) Hair style design method based on eyes location and face recognition
CN108564531B (en) Image processing method and device
KR101896137B1 (en) Generation of avatar reflecting player appearance
US11328455B2 (en) Method and apparatus for generating face model, storage medium, and terminal
CA3129174A1 (en) Method and apparatus for acquiring boundary of area to be operated, and operation route planning method
CN103258316B (en) Method and device for picture processing
CN106326823B (en) Method and system for obtaining head portrait in picture
CN106020745B (en) 3D printing path generating method and device based on recognition of face
CN108629339A (en) Image processing method and related product
CN106127181A (en) One is virtual tries manicure method, system on
CN108230425A (en) Image processing method, image processing apparatus and storage medium
CN102004911B (en) Method for improving accuracy of face identification
CN110458811B (en) Automatic extraction method for ultra-long cutting track of flexible material
CN106530361A (en) Color correction method for color face image
CN107153708A (en) A kind of picture inspection method and device, computer installation, computer-readable recording medium
CN104537372A (en) Automatic generation method of face image mask with region perception characteristics
CN110363176A (en) A kind of image analysis method and device
CN106683098A (en) Segmentation method of overlapping leaf images
CN106910180A (en) A kind of image quality measure method and device
US10636223B2 (en) Method and apparatus for placing media file, storage medium, and virtual reality apparatus
CN105979236A (en) Image quality adjustment method and device
US10628984B2 (en) Facial model editing method and apparatus
Sormann et al. Graph cut based multiple view segmentation for 3d reconstruction
CN106360941A (en) Method for locating fingernails and manicure equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190212

Termination date: 20210630

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