CN110349202B - Hairstyle design method based on face analysis - Google Patents
Hairstyle design method based on face analysis Download PDFInfo
- Publication number
- CN110349202B CN110349202B CN201910605576.3A CN201910605576A CN110349202B CN 110349202 B CN110349202 B CN 110349202B CN 201910605576 A CN201910605576 A CN 201910605576A CN 110349202 B CN110349202 B CN 110349202B
- Authority
- CN
- China
- Prior art keywords
- face
- user
- hair style
- image
- court
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 210000001061 forehead Anatomy 0.000 claims abstract description 17
- 210000004209 hair Anatomy 0.000 claims description 40
- 230000001815 facial effect Effects 0.000 claims description 6
- 210000002837 heart atrium Anatomy 0.000 claims description 6
- 238000012216 screening Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 4
- 230000001953 sensory effect Effects 0.000 abstract description 2
- 210000001847 jaw Anatomy 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000000887 face Anatomy 0.000 description 1
- 210000003128 head Anatomy 0.000 description 1
- 210000004373 mandible Anatomy 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A45—HAND OR TRAVELLING ARTICLES
- A45D—HAIRDRESSING OR SHAVING EQUIPMENT; EQUIPMENT FOR COSMETICS OR COSMETIC TREATMENTS, e.g. FOR MANICURING OR PEDICURING
- A45D44/00—Other cosmetic or toiletry articles, e.g. for hairdressers' rooms
- A45D44/005—Other cosmetic or toiletry articles, e.g. for hairdressers' rooms for selecting or displaying personal cosmetic colours or hairstyle
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/68—Analysis of geometric attributes of symmetry
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Geometry (AREA)
- Library & Information Science (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Processing Or Creating Images (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The invention relates to a hairstyle design method based on face analysis, which belongs to the technical field of hairstyle design, wherein the method analyzes the face of a person to obtain the face characteristic value of each person, and screens a plurality of hairstyle graphs which are the same as the face of the user and have the closest face characteristic value through the face characteristic value of a picture in a face library to form a picture set for the user to select; the invention adopts the proportion of the upper court, the middle court and the lower court in the whole face as the weight for the first time, and quantifies the face by analyzing the forehead characteristic, the cheek characteristic and the lower jaw characteristic, thereby overcoming the deviation caused by sensory judgment; the hairstyle picture screened by the invention is matched with the face of the user, so that the matching degree is higher and the matching effect is better.
Description
Technical Field
The invention belongs to the technical field of hairstyle design, and particularly relates to a hairstyle design method based on facial analysis.
Background
Hair styling is a comprehensive art that takes advantage of hair length, angle, color matching, and the designer's preferences and habits. At present, the work of designing the hair style is mainly completed by a hairdresser, the designed hair style is different due to different preferences and habits of different hairdressers, and if the preferences and habits of the hairdresser are inconsistent with the habits of a user, the designed hair style obviously cannot meet the requirements of the user.
At present, when a user selects to change his own hair style, the user often visually judges and selects by looking at an atlas, but the atlas is of a model face shape, and the hair styles are beautiful on the atlas, but only can be explained to be suitable for the model on the atlas, but not for himself. This is why the user often fails to cut the hair style after selecting his/her favorite hair style through the album, and the user can not get around the strange circle of 'cutting the head three days ugly'.
In addition, some hair stylists can perform hair style design according to the atlas and the conditions of the user, in this case, the final effect of the cut-out can be generally appreciated by the user, but when introducing the design concept of the hair stylists, the user is in a blank state, cannot imagine how the final effect is, and cannot give the hair stylists their hair with complete confidence.
In order to enable a user to visually understand a hairstyle to be trimmed, a plurality of hairstyle design software has been developed, and the software has a respective hairstyle library and can match the hairstyle drawings with the face images.
Disclosure of Invention
The present invention has been made to solve the above problems, and an object of the present invention is to provide a hairstyle designing method based on a face analysis.
The invention realizes the purpose through the following technical scheme:
a hair style design method based on face analysis comprises the following steps:
s1, acquiring a face image of a user with an exposed forehead on the front side, and judging the face shape of the user;
s2, carrying out face feature analysis on the face image of the user, and calculating a face feature value;
and S3, screening from a preset hair style library according to the face characteristic value, selecting a plurality of hair style graphs which have the same face shape as the user and are closest to the face characteristic value, and forming a picture set for the user to select.
Further preferably, the method for performing facial feature analysis on the user face image and calculating a facial feature value in step S2 includes the steps of:
s2.1, extracting the face in the face image of the user, correcting the face in the current image by taking the center line of the right middle part above the upper lip as a Y-axis baseline of the image to ensure that the left face and the right face are symmetrical to obtain a right face image, carrying out contour recognition on the right face image, and displaying the recognized face contour line on the right face image;
s2.2, extracting characteristic points of the frontal face image, including a midpoint a of a connecting line of the left and right eyebrow center points1With a1Intersection a of the X-axis line as the base point and the face contour line2、a3Upper end point b of human midline1In b with1Intersection b of X-axis line as base point and face contour line2、b3,a1And b1Midpoint c of connecting line1In addition to c1Intersection c of the X-axis line as the base point and the face contour line2、c3And the intersection d of the face contour line and the Y-axis base line1、d2(ii) a Wherein, with b1、c1Dividing the frontal face image into an upper court, an atrium and a lower court from top to bottom by an X-axis line serving as a base point;
step S2.3, calculating the areas S of an upper court, an atrium and a lower court1、S2、S3And its ratio omega in the whole facex:
S2.4, calculating face characteristic parameter values including forehead characteristic parameter value Z1Cheek feature parameter value Z2Value Z of characteristic parameter of lower jaw3。
S2.5, the ratio omega of the upper court, the middle court and the lower court in the whole face shapexCalculating the face characteristic value W omega by combining the face characteristic parameter value for weighting1Z1+ω2Z2+ω3Z3。
Further preferably, the forehead characteristic parameter Z1Cheek characteristic parameter Z2Characteristic of the lower jaw Z3And satisfies the following conditions:
wherein L represents a length.
Further preferably, the data information in the preset hair style library of step S3 includes: the face image and the hair style chart of the user or the model exposed out of the forehead, the face shape and the face characteristic value of the user or the model are collected in the front.
Further preferably, the step S3 further includes integrating the face image of the user and the selected photo album image to form a hair style album for the user to select.
The invention has the beneficial effects that:
1) according to the method, the face shape of each person is analyzed, the face shape characteristic value of each person is obtained, and a hairstyle graph closest to the face shape of the user is screened for the user to select through the face shape characteristic value of the picture in the face shape library, so that the method is more specific;
2) the invention adopts the proportion of the upper court, the middle court and the lower court in the whole face as the weight for the first time, and quantifies the face by analyzing the forehead characteristic, the cheek characteristic and the lower jaw characteristic, thereby overcoming the deviation caused by sensory judgment;
3) when the hairstyle atlas screened by the method is matched with the face of the user, the matching degree is high, and the matching effect is good;
4) by incorporating the hairstyle of the user into the hairstyle library, the data of the hairstyle library can be updated adaptively, compared with the hairstyle library constructed only for standard faces such as models, the user can see more unmodified real images, and compared with an atlas shot by the models, the hairstyle library has more impression of corners.
Drawings
FIG. 1 is a flow chart of a design method of the present invention;
FIG. 2 is a schematic diagram of feature points of a face image
Detailed Description
The present application will now be described in further detail with reference to the drawings, it should be noted that the following detailed description is given for illustrative purposes only and is not to be construed as limiting the scope of the present application, as those skilled in the art will be able to make numerous insubstantial modifications and adaptations to the present application based on the above disclosure.
Example 1
The embodiment provides an intelligent hair style design method based on face analysis, as shown in fig. 1, including the following steps:
s1, acquiring a face image of a user with an exposed forehead on the front side, and judging the face shape of the user;
s2, carrying out face feature analysis on the face image of the user, and calculating a face feature value, wherein the face feature value comprises the following steps:
s2.1, extracting the face in the face image of the user, correcting the face in the current image by taking the center line of the right middle part above the upper lip as a Y-axis baseline of the image to ensure that the left face and the right face are symmetrical to obtain a right face image, carrying out contour recognition on the right face image, and displaying the recognized face contour line on the right face image; under the condition that the identification is not accurate enough, manual adjustment can be carried out;
s2.2, extracting the feature points of the frontal face image, as shown in FIG. 2, including the midpoint a of the connecting line of the left and right eyebrow center points1With a1Intersection a of the X-axis line as the base point and the face contour line2、a3Upper end point b of human midline1In b with1Intersection b of X-axis line as base point and face contour line2、b3,a1And b1Midpoint c of connecting line1In addition to c1Intersection c of the X-axis line as the base point and the face contour line2、c3And the intersection d of the face contour line and the Y-axis base line1、d2(ii) a Wherein, with b1、c1Dividing the frontal face image into an upper court, an atrium and a lower court from top to bottom by an X-axis line serving as a base point;
step S2.3, calculating the areas S of an upper court, an atrium and a lower court1、S2、S3And its occupation in the whole faceRatio omegax:
S2.4, calculating a face characteristic parameter value, comprising the following steps:
(1) characteristic parameter value Z of forehead1And satisfies the following conditions:
the forehead characteristic parameter reflects the length of the forehead occupying the whole face and the forehead width, Z1The larger the value, the forehead is pointed and elongated, Z1The smaller the value is, the forehead is in a wide and short type;
(2) cheek feature parameter value Z2And satisfies the following conditions:
cheek feature parameter reflects cheek width, Z2The larger the value, the wider the cheek, Z2The smaller the value, the sharp cheek is indicated;
(3) value of characteristic parameter of jaw Z3And satisfies the following conditions:
the characteristic parameters of the lower jaw reflect the sharpness, Z, of the lower jaw3The larger the value, the longer the mandible is, Z3The smaller the value, the shorter the jaw is;
wherein L represents a length.
S2.5, calculating a face characteristic value W:
W=ω1Z1+ω2Z2+ω3Z3
s3, screening from a preset hairstyle library according to the face characteristic value, and selecting a plurality of hairstyle graphs which are the same as the face of the user and have the closest face characteristic value to form a picture set; the preset hair style library comprises a face image of the frontal exposed forehead of a user or a model, a hair style graph of the user or the model, the face of the user or the model and a face characteristic value of the user or the model; and finally, integrating the face image of the user and the selected picture set image to form a hair style atlas for the user to select.
S4, a hairdresser trims and shapes the hair style according to the hair style selected by the user; if the user satisfaction of the shaped hair style is high, the facial image of the user and the related parameters (including the face shape and the facial feature values) thereof acquired in steps S1 and S2 and the shaped hair style map obtained in step S3 may be included in the hair style library for other users to refer to and select.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.
Claims (3)
1. A hair style design method based on face analysis is characterized by comprising the following steps:
s1, acquiring a face image of a user with an exposed forehead on the front side, and judging the face shape of the user;
s2, carrying out face feature analysis on the face image of the user, and calculating a face feature value;
s3, screening from a preset hairstyle library according to the face characteristic value, selecting a plurality of hairstyle graphs which are the same as the face of the user and have the closest face characteristic value to form a picture set for the user to select;
s4, a hairdresser trims and shapes the hair style according to the hair style selected by the user; if the user satisfaction of the shaped hair style is high, the facial image of the user and the related parameters thereof acquired in steps S1 and S2 and the shaped hair style diagram can be included in the hair style library of step S3 for other users to refer to and select under the condition that the user agrees;
the method for performing face feature analysis on the user face image and calculating the face feature value in step S2 includes the steps of:
s2.1, extracting the face in the face image of the user, correcting the face in the current image by taking the center line of the right middle part above the upper lip as a Y-axis baseline of the image to ensure that the left face and the right face are symmetrical to obtain a right face image, carrying out contour recognition on the right face image, and displaying the recognized face contour line on the right face image;
s2.2, extracting characteristic points of the frontal face image, including a midpoint a of a connecting line of the left and right eyebrow center points1With a1Intersection a of the X-axis line as the base point and the face contour line2、a3Upper end point b of human midline1In b with1Intersection b of X-axis line as base point and face contour line2、b3,a1And b1Midpoint c of connecting line1In addition to c1Intersection c of the X-axis line as the base point and the face contour line2、c3And the intersection d of the face contour line and the Y-axis base line1、d2(ii) a Wherein, with b1、c1Dividing the frontal face image into an upper court, an atrium and a lower court from top to bottom by an X-axis line serving as a base point;
step S2.3, calculating the areas S of an upper court, an atrium and a lower court1、S2、S3And its ratio omega in the whole facex:
S2.4, calculating face characteristic parameter values including forehead characteristic parameter value Z1Cheek feature parameter value Z2Value Z of characteristic parameter of lower jaw3;
S2.5, the ratio omega of the upper court, the middle court and the lower court in the whole face shapexIs a weight, knotCalculating the face characteristic value W-omega by combining the face characteristic parameter values1Z1+ω2Z2+ω3Z3;
Characteristic parameter of forehead Z1Cheek characteristic parameter Z2Characteristic of the lower jaw Z3And satisfies the following conditions:
wherein L represents a length.
2. The method for designing a hair style based on the face analysis as claimed in claim 1, wherein the data information in the preset hair style library of step S3 comprises: the face image of the frontal exposed forehead of the user or the model, the hair style chart of the user or the model, the face shape of the user or the model and the face characteristic value of the user or the model.
3. The method for designing a hair style based on the face analysis of claim 1, wherein the step S3 further comprises integrating the face image of the user and the selected photo set image to form a hair style album for the user to select.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910605576.3A CN110349202B (en) | 2019-07-05 | 2019-07-05 | Hairstyle design method based on face analysis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910605576.3A CN110349202B (en) | 2019-07-05 | 2019-07-05 | Hairstyle design method based on face analysis |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110349202A CN110349202A (en) | 2019-10-18 |
CN110349202B true CN110349202B (en) | 2021-07-20 |
Family
ID=68177685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910605576.3A Expired - Fee Related CN110349202B (en) | 2019-07-05 | 2019-07-05 | Hairstyle design method based on face analysis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110349202B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101339612A (en) * | 2008-08-19 | 2009-01-07 | 陈建峰 | Face contour checking and classification method |
CN102622613A (en) * | 2011-12-16 | 2012-08-01 | 彭强 | Hair style design method based on eyes location and face recognition |
CN102708575A (en) * | 2012-05-17 | 2012-10-03 | 彭强 | Daily makeup design method and system based on face feature region recognition |
CN104794275A (en) * | 2015-04-16 | 2015-07-22 | 北京联合大学 | Face and hair style matching model for mobile terminal |
CN105045968A (en) * | 2015-06-30 | 2015-11-11 | 青岛理工大学 | Hairstyle design method and system |
CN105069180A (en) * | 2015-06-19 | 2015-11-18 | 上海卓易科技股份有限公司 | Hair style design method and system |
CN107545051A (en) * | 2017-08-23 | 2018-01-05 | 武汉理工大学 | Hair style design system and method based on image procossing |
CN108255998A (en) * | 2017-12-29 | 2018-07-06 | 武汉璞华大数据技术有限公司 | A kind of hair style recommends method, apparatus and equipment |
CN108664569A (en) * | 2018-04-24 | 2018-10-16 | 杭州数为科技有限公司 | A kind of hair style recommends method, system, terminal and medium |
CN109190574A (en) * | 2018-09-13 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of hair style recommended method, device, terminal and storage medium based on big data |
CN109410315A (en) * | 2018-08-31 | 2019-03-01 | 南昌理工学院 | Hair styling method, device, readable storage medium storing program for executing and intelligent terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017223530A1 (en) * | 2016-06-23 | 2017-12-28 | LoomAi, Inc. | Systems and methods for generating computer ready animation models of a human head from captured data images |
-
2019
- 2019-07-05 CN CN201910605576.3A patent/CN110349202B/en not_active Expired - Fee Related
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101339612A (en) * | 2008-08-19 | 2009-01-07 | 陈建峰 | Face contour checking and classification method |
CN102622613A (en) * | 2011-12-16 | 2012-08-01 | 彭强 | Hair style design method based on eyes location and face recognition |
CN102708575A (en) * | 2012-05-17 | 2012-10-03 | 彭强 | Daily makeup design method and system based on face feature region recognition |
CN104794275A (en) * | 2015-04-16 | 2015-07-22 | 北京联合大学 | Face and hair style matching model for mobile terminal |
CN105069180A (en) * | 2015-06-19 | 2015-11-18 | 上海卓易科技股份有限公司 | Hair style design method and system |
CN105045968A (en) * | 2015-06-30 | 2015-11-11 | 青岛理工大学 | Hairstyle design method and system |
CN107545051A (en) * | 2017-08-23 | 2018-01-05 | 武汉理工大学 | Hair style design system and method based on image procossing |
CN108255998A (en) * | 2017-12-29 | 2018-07-06 | 武汉璞华大数据技术有限公司 | A kind of hair style recommends method, apparatus and equipment |
CN108664569A (en) * | 2018-04-24 | 2018-10-16 | 杭州数为科技有限公司 | A kind of hair style recommends method, system, terminal and medium |
CN109410315A (en) * | 2018-08-31 | 2019-03-01 | 南昌理工学院 | Hair styling method, device, readable storage medium storing program for executing and intelligent terminal |
CN109190574A (en) * | 2018-09-13 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of hair style recommended method, device, terminal and storage medium based on big data |
Non-Patent Citations (1)
Title |
---|
基于人脸识别技术的脸型发型搭配系统实现与分析;胡在林;《电脑知识与技术》;20161031;第12卷(第28期);第174-175页 * |
Also Published As
Publication number | Publication date |
---|---|
CN110349202A (en) | 2019-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3582458B2 (en) | Makeup advice system | |
US10849408B2 (en) | Virtual hair consultation | |
CN110390632B (en) | Image processing method and device based on dressing template, storage medium and terminal | |
KR101259662B1 (en) | Face classifying method face classifying device classification map face classifying program recording medium where this program is recorded | |
KR101363097B1 (en) | Lip categorizing method, makeup method, categorizing map, and makeup tool | |
EP1639940A1 (en) | Eye form classifying method, form classification map, and eye cosmetic treatment method | |
US20080240489A1 (en) | Feature Change Image Creation Method, Feature Change Image Creation Device, and Feature Change Image Creation Program | |
US8055011B2 (en) | Hair style simulation image creating method | |
JP3611007B2 (en) | Hair style image map | |
US20070052726A1 (en) | Method and system for likeness reconstruction | |
KR20090000635A (en) | 3d face modeling system and method considering the individual's preferences for beauty | |
JP6604644B1 (en) | Fashion type diagnosis system, fashion type diagnosis method | |
JP2000151985A (en) | Picture processing method and recording medium | |
JP2004102359A (en) | Image processing device, method and program | |
CN110349202B (en) | Hairstyle design method based on face analysis | |
CN111179411A (en) | Visual facial cosmetology plastic simulation method, system and equipment based on social platform | |
CN112906585B (en) | Intelligent hairdressing auxiliary system, method and readable medium based on machine learning | |
JP6212226B1 (en) | Wig manufacturing method, wig sales method and program | |
CN113344837A (en) | Face image processing method and device, computer readable storage medium and terminal | |
TWI462030B (en) | An intelligent system and algorithms of facial analysis and hairstyle fitting | |
CN115761124A (en) | Head type three-dimensional modeling method | |
JP5043323B2 (en) | Makeup information provision system | |
JP4893968B2 (en) | How to compose face images | |
CN111178560A (en) | AR technology-based hairdressing recommendation reservation system | |
JP4822017B2 (en) | Hair style advice method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210720 |