CN106778627B - Detect the method, apparatus and mobile terminal of face face value - Google Patents

Detect the method, apparatus and mobile terminal of face face value Download PDF

Info

Publication number
CN106778627B
CN106778627B CN201611188089.4A CN201611188089A CN106778627B CN 106778627 B CN106778627 B CN 106778627B CN 201611188089 A CN201611188089 A CN 201611188089A CN 106778627 B CN106778627 B CN 106778627B
Authority
CN
China
Prior art keywords
face
described image
image
information
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.)
Active
Application number
CN201611188089.4A
Other languages
Chinese (zh)
Other versions
CN106778627A (en
Inventor
王兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201611188089.4A priority Critical patent/CN106778627B/en
Publication of CN106778627A publication Critical patent/CN106778627A/en
Application granted granted Critical
Publication of CN106778627B publication Critical patent/CN106778627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/169Holistic features and representations, i.e. based on the facial image taken as a whole
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/178Human faces, e.g. facial parts, sketches or expressions estimating age from face image; using age information for improving recognition

Abstract

The embodiment of the invention discloses a kind of method, apparatus and mobile terminal for detecting face face value.Wherein, method includes: detection image, obtains the location information of face in described image;According to the location information of face in described image, the characteristic of face in described image is obtained;According to the characteristic of face in described image, the face value information of face in described image is obtained;According to the location information of face in described image, the region in described image other than face head shows the face value information of the face.The embodiment of the present invention can obtain the photo for showing the face value information of face, increase interest and experience sense that user uses.

Description

Detect the method, apparatus and mobile terminal of face face value
Technical field
The invention belongs to field of computer technology, more particularly to a kind of method, apparatus and movement for detecting face face value Terminal.
Background technique
As the intelligence degree of terminal device is higher and higher, such as mobile phone, tablet computer, PDA, intelligent terminal by Gradually at the necessity in for people's lives, intelligent terminal passes through the continuous innovation of its soft and hardware, profoundly changes people's Life style.
The height of face face value is reflected as the beautiful degree of face visually, and whether the face for being embodied as face assist It adjusts.People are often desirable to that the face value of photographer can be understood simultaneously when taking pictures using intelligent terminal, to pass through intelligent terminal Camera function obtain and show the photo of photographer's face value information, to increase the interest and experience sense that intelligent terminal uses. However existing intelligent terminal does not have the function of this face value detection when taking pictures at present.
Summary of the invention
The technical problem to be solved of the embodiment of the present invention is: provide it is a kind of detect face face value method, apparatus and Mobile terminal, to increase the interest and experience sense that people use.
In order to solve the above technical problems, according to an aspect of an embodiment of the present invention, a kind of detection face face value is provided Method, comprising:
Detection image obtains the location information of face in described image;
According to the location information of face in described image, the characteristic of face in described image is obtained;
According to the characteristic of face in described image, the face value information of face in described image is obtained;
According to the location information of face in described image, the region in described image other than face head shows the people The face value information of face.
In another embodiment based on the above method of the present invention, the detection image obtains face in described image Location information, comprising:
Whether the number of face is greater than or equal to 1 in detection image;
If the number of face is less than 1 in image, the display reminding information in described image, prompt user by alignment lens people Face;If the number of face is greater than or equal to 1 in image, believed according to the position that the face detected in described image obtains face Breath.
In another embodiment based on the above method of the present invention, the detection image obtains face in described image Location information, further includes:
Judge whether the number of face in image is greater than 1;If the number of face is greater than 1 in image, according in described image The location information of face indicates the position of face in described image with box.
In another embodiment based on the above method of the present invention, the detection image obtains face in described image Location information, further includes:
If the number of face is equal to 1 in image, according to the location information of face in image, the most lower of face in image is judged Whether end reaches or is more than preset critical line;The preset critical line is according to the ruler of the preset text shown in the picture Very little information determines;
If the bottom of face arrived or more than preset critical line, preset face is shown in described image in image Boundary line, to prompt user to adjust the position of face in image.
In another embodiment based on the above method of the present invention, the characteristic according to face in described image According to the face value information of face in acquisition described image, comprising:
According to the characteristic of face in described image, the gender and age information of face in described image are obtained;
According to the gender and age information of face in described image, face in described image is obtained according to default rule Face value information;The default rule includes: to evaluate mechanism using different face values for different gender and age bracket.
In another embodiment based on the above method of the present invention, the position according to face in described image is believed Breath, the region in described image other than face head show the face value information of the face, comprising:
According to the location information of face in described image, judge whether the number of face in image is greater than 1;
If the number of face is equal to 1 in image, the region of face lower head shows the face in described image Face value information;If the number of face is greater than 1 in image, the region of face above-head shows the face in described image Face value information.
In another embodiment based on the above method of the present invention, the face value information includes: face value score;It is described The region of face above-head shows the face value information of the face in described image, comprising:
Compare the face value score of face in described image;
According to the comparison result of the face value score of face in described image, there is highest face value score in described image Face above-head region show imperial crown, the owner in described image in addition to the face with highest face value score The region of face above-head shows the face value information of corresponding face.
It include at least one in another embodiment based on the above method of the present invention, in described image with highest The face of face value score.
In another embodiment based on the above method of the present invention, the face value information includes: face value score;It is described The region of face above-head shows the face value information of the face in described image, comprising:
Judge whether the face value score of face in image is lower than preset threshold value;
If the face value score of face is lower than preset threshold value, the corresponding face above-head in described image in image The language of region display excitation;If the face value score of face is equal to or higher than preset threshold value in image, right in described image The region for the face above-head answered shows the face value information of corresponding face.
In another embodiment based on the above method of the present invention, the face value information of different faces corresponds to identical The language of excitation or the language of different excitations.
In another embodiment based on the above method of the present invention, if the face value information of different faces corresponds to difference Excitation language, the language of each sentence excitation corresponds to a preset face value score section.
In another embodiment based on the above method of the present invention, the area of the face above-head in described image Domain shows the face value information of the face, comprising:
Obtain the gender information of face in described image;
According to the gender information of face in described image, in described image the region of face above-head show with it is described The dialog box of the corresponding pre-set color of gender information shows the face value information of the face in the dialog box.
In another embodiment based on the above method of the present invention, further includes:
By the face value information upload server of the gender of the face and age information and the face;
The face for the face that the face value information for obtaining face in described image from the server prestores in the server Position in value information;
Wherein, the corresponding gender information of face value information of the face prestored in the server and face in described image The corresponding gender information of face value information is consistent, and the corresponding age information of face value information of the face prestored in the server The difference of age information corresponding with the face value information of face in described image is in the range of preset value;
The location information according to face in described image, the region in described image other than face head show institute State the face value information of face, comprising: the region of face lower head shows the face value information of the face in described image, and The face value information for the face that the face value information of face prestores in the server from the described image that the server obtains In position.
In another embodiment based on the above method of the present invention, further includes:
Receive beauty Yan Zhiling;
According to the beauty Yan Zhiling, U.S. face processing is carried out to described image;
The detection image obtains the location information of face in image, comprising: the described image after detecting U.S. face obtains The location information of face in described image after U.S. face;
The location information according to face in described image obtains the characteristic of face in described image, comprising: root According to the location information of face in the described image after U.S. face, the characteristic of face in the described image after obtaining U.S. face;
The characteristic according to face in described image, the face value information for obtaining face in described image includes: root According to the characteristic of face in the described image after U.S. face, the face value information of face in the described image after obtaining U.S. face;
The location information according to face in described image, the region in described image other than face head show institute The face value information for stating face includes: the face head in described image according to the location information of face in the described image after U.S. face Region other than portion shows the face value information of the face.
In another embodiment based on the above method of the present invention, at least one of the U.S. face processing includes U.S. face Reason.
In another embodiment based on the above method of the present invention, the position according to face in described image is believed Breath, the region in described image other than face head are shown after the face value information of the face, further includes:
Receive photographing instruction;
According to the photographing instruction, the photo for showing the face value information of the face is obtained.
In another embodiment based on the above method of the present invention, further includes:
It receives and saves instruction;
It is instructed according to the preservation, saves the photo for showing the face value information of the face.
In another embodiment based on the above method of the present invention, further includes:
It receives and shares instruction;
It is instructed according to the sharing, sends the photo for showing the face value information of the face to scheduled address.
Other side according to an embodiment of the present invention provides a kind of device for detecting face face value, comprising:
Image detecting element is used for detection image, obtains the location information of face in described image;
Data capture unit obtains the spy of face in described image for the location information according to face in described image Levy data;
Face value obtaining unit obtains the face of face in described image for the characteristic according to face in described image Value information;
Image-display units, for the location information according to face in described image, in described image face head with Outer region shows the face value information of the face.
In another embodiment based on above-mentioned apparatus of the present invention, described image detection unit includes:
Whether image detection module, the number for face in detection image are greater than or equal to 1;
Prompt information display module, for the testing result according to described image detection module, in response to face in image Number less than 1, the display reminding information in described image prompts user by alignment lens face;
Location information obtains module, for the testing result according to described image detection module, in response to face in image Number be greater than or equal to 1, the location information of face is obtained according to the face that detects in described image.
In another embodiment based on above-mentioned apparatus of the present invention, described image detection unit further include:
First judgment module, for judging whether the number of face in image is greater than 1;
Face location indicates module, for the judging result according to the first judgment module, in response to face in image Number be greater than 1, according to the location information of face in described image, the position of face is indicated with box in described image.
In another embodiment based on above-mentioned apparatus of the present invention, described image detection unit further include:
Second judgment module, for the judging result according to the first judgment module, in response to the number of face in image Mesh is equal to 1, according to the location information of face in image, judges whether the bottom of face in image reaches or face more than preset Boundary line;The preset critical line is determined according to the dimension information of the preset text shown in the picture;
The prompt information display module, for the judging result according to second judgment module, in response in image The bottom of face reaches or is more than preset critical line, shows preset critical line, in described image to prompt user's tune The position of face in whole image.
In another embodiment based on above-mentioned apparatus of the present invention, the face value obtaining unit includes:
First obtains module, for the characteristic according to face in described image, obtains the property of face in described image Other and age information;
Second acquisition module is obtained for the gender and age information according to face in described image according to default rule Obtain the face value information of face in described image;The default rule includes: for different genders and age bracket using different Face value evaluate mechanism.
In another embodiment based on above-mentioned apparatus of the present invention, described image display unit includes:
Third judgment module judges that the number of face in image is for the location information according to face in described image It is no to be greater than 1;
Face value display module, for the judging result according to the third judgment module, in response to the number of face in image Mesh is equal to 1, and the region of face lower head shows the face value information of the face in described image;And in response in image The number of face is greater than 1, and the region of face above-head shows the face value information of the face in described image.
In another embodiment based on above-mentioned apparatus of the present invention, the face value information includes: face value score;The face Value display module is specifically used for:
Compare the face value score of face in described image;
According to the comparison result of the face value score of face in described image, there is highest face value score in described image Face above-head region show imperial crown, the owner in described image in addition to the face with highest face value score The region of face above-head shows the face value information of corresponding face.
It include at least one in another embodiment based on above-mentioned apparatus of the present invention, in described image with highest The face of face value score.
In another embodiment based on above-mentioned apparatus of the present invention, the face value information includes: face value score;The face Value display module is specifically used for:
Judge whether the face value score of face in image is lower than preset threshold value;
If the face value score of face is lower than preset threshold value, the corresponding face above-head in described image in image The language of region display excitation;If the face value score of face is equal to or higher than preset threshold value in image, right in described image The region for the face above-head answered shows the face value information of corresponding face.
In another embodiment based on above-mentioned apparatus of the present invention, the face value information of different faces corresponds to identical The language of excitation or the language of different excitations.
In another embodiment based on above-mentioned apparatus of the present invention, if the face value information of different faces corresponds to difference Excitation language, the language of each sentence excitation corresponds to a preset face value score section.
In another embodiment based on above-mentioned apparatus of the present invention, the face value display module is specifically used for:
Obtain the gender information of face in described image;
According to the gender information of face in described image, in described image the region real-time display of face above-head with The dialog box of the corresponding pre-set color of the gender information, shows the face value information of the face in the dialog box.
In another embodiment based on above-mentioned apparatus of the present invention, further includes:
Communication unit, for by the face value information upload service of the gender of the face and age information and the face Device;The face value information for the face that the face value information for obtaining face in described image from the server prestores in the server In position;
Wherein, the corresponding gender information of face value information of the face prestored in the server and face in described image The corresponding gender information of face value information is consistent, and the corresponding age information of face value information of the face prestored in the server The difference of age information corresponding with the face value information of face in described image is in the range of preset value;
The face value display module is specifically used for: the region of face lower head shows the face in described image Face value information, and the face that the face value information of face prestores in the server from the described image that the server obtains Face value information in position.
In another embodiment based on above-mentioned apparatus of the present invention, further includes:
Receiving unit, for receiving beautiful Yan Zhiling;
Beautiful Yan Danyuan, for carrying out U.S. face processing to described image according to the beauty Yan Zhiling;
Described image detection unit is specifically used for: the described image after detecting U.S. face, in the described image after obtaining U.S. face The location information of face;
The data capture unit is specifically used for: according to the location information of face in the described image after U.S. face, obtaining beauty The characteristic of face in described image after face;
The face value obtaining unit is specifically used for: according to the characteristic of face in the described image after U.S. face, obtaining beauty The face value information of face in described image after face.
Described image display unit is specifically used for: according to the location information of face in the described image after U.S. face, described Region in image other than face head shows the face value information of the face.
In another embodiment based on above-mentioned apparatus of the present invention, at least one of the U.S. face unit includes U.S. face Reason.
In another embodiment based on above-mentioned apparatus of the present invention, further includes:
Receiving unit, for receiving photographing instruction;
Camera unit, for obtaining the photo for showing the face value information of the face according to the photographing instruction.
In another embodiment based on above-mentioned apparatus of the present invention, the receiving unit is also used to receive preservation instruction;
The device of the detection face face value further include:
Storage unit saves the photo for showing the face value information of the face for instructing according to the preservation.
In another embodiment based on above-mentioned apparatus of the present invention, the receiving unit is also used to receive sharing instruction;
The device of the detection face face value further include:
Execution unit, for being instructed according to sharings, transmission shows the photo of the face value information of the face to pre- Fixed address.
Another aspect according to an embodiment of the present invention, a kind of mobile terminal provided, comprising: processor and memory; Wherein,
The memory is used to store the program that the method for face face value is detected described in any of the above-described embodiment;
The processor is used to execute the program of the method for the detection face face value stored in the memory.
Method, apparatus and mobile terminal based on the detection face face value that the above embodiment of the present invention provides, pass through detection Image obtains the location information of face in image, and the characteristic of face in image is obtained further according to the location information of face in image According to further obtaining the face value information of face in image, and face head in the picture according to the characteristic of face in image Region in addition shows the face value information of face obtained, it is hereby achieved that the photo of the face value information of face is shown, Increase interest and experience sense that user uses.
Detailed description of the invention
The attached drawing for constituting part of specification describes the embodiment of the present invention, and together with description for explaining The principle of the present invention.
The present invention can be more clearly understood according to following detailed description referring to attached drawing, in which:
Fig. 1 is the flow chart of one embodiment of the method for detection face face value of the embodiment of the present invention.
Fig. 2 is the flow chart of another embodiment of the method for detection face face value of the embodiment of the present invention.
Fig. 3 is the flow chart of another embodiment of the method for detection face face value of the embodiment of the present invention.
Fig. 4 is the structure chart of one embodiment of the device of detection face face value of the embodiment of the present invention.
Fig. 5 is the structure chart of another embodiment of the device of detection face face value of the embodiment of the present invention.
Fig. 6 is the structure chart of another embodiment of the device of detection face face value of the embodiment of the present invention.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having Body explanation, the positioned opposite of the component otherwise illustrated in these embodiments, numerical expression and the unlimited system of numerical value are of the invention Range.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality Proportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as part of specification.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
Fig. 1 is the flow chart of one embodiment of the method for detection face face value of the embodiment of the present invention.As shown in Figure 1, should The method of embodiment detection face face value, comprising:
S102, detection image obtain the location information of face in image.
In the specific implementation, the method for obtaining the location information of face from image can use people commonly used in the prior art Face recognition method, such as the method based on reference template, method neural network based etc..
S104 obtains the characteristic of face in image according to the location information of face in image.
In the specific implementation, the characteristic of face can be the people for extracting acquisition by the feature to face in image The feature vector of face, wherein the feature of face includes but is not limited to the shape of shape of face and face, position etc..Specifically from image The method for obtaining the characteristic of face can use face feature extraction method commonly used in the prior art, such as based on statistics Method, method neural network based etc..
S106 obtains the face value information of face in image according to the characteristic of face in image.
Wherein, the face value information of face may include: face value score, can also include: age segment information of face etc..
In the specific implementation, the face value due to people is influenced by gender and age, it is more quasi- to face value in image in order to obtain True evaluation, for different sexes and age bracket face when evaluating the height of face value used evaluation mechanism should also be as depositing In difference.
In a specific example, operation S106 may include: to be obtained in image according to the characteristic of face in image The gender and age information of face;According to the gender and age information of face in image, obtained in image according to default rule The face value information of face.Wherein default rule includes: to evaluate machine using different face values for different gender and age bracket System.
S108, according to the location information of face in image, the region other than face head shows the face of face in the picture Value information.
In the specific implementation, the face value information of face can be shown in the region of face above-head, people can also be shown in The region of face lower head, but not limited to this, guarantee of being subject to does not cause to block to face.
In a specific example, operation S108 may include: to be judged in image according to the location information of face in image Whether the number of face is greater than 1;If the number of face is equal to 1 in image, the region of face lower head shows people in the picture The face value information of face;If the number of face is greater than 1 in image, the region of face above-head shows the face value of face in the picture Information.I.e. for having the case where more than one face in image, the region of face above-head shows face in the picture Face value information;For the case where only one face, the region of face lower head shows the face of face in the picture in image Value information.
Method based on the detection face face value that the above embodiment of the present invention provides, obtains people in image by detection image The location information of face obtains the characteristic of face in image further according to the location information of face in image, further according to figure The characteristic of face obtains the face value information of face in image as in, and the region other than face head shows institute in the picture The face value information of the face of acquisition increases the interest that user uses it is hereby achieved that showing the photo of the face value information of face Taste and experience sense.
Fig. 2 is the flow chart of another embodiment of the method for detection face face value of the embodiment of the present invention.As shown in Fig. 2, Compared with embodiment shown in FIG. 1, in the method for the detection face face value of the embodiment, S102 is operated, detection image obtains The location information of face in image, comprising:
S202, whether the number of face is greater than or equal to 1 in detection image.
If the number of face is less than 1 in image, operation S204 is executed;Otherwise, if the number of face is greater than or waits in image In 1, operation S206 is executed.
S204, display reminding information, prompts user by alignment lens face in the picture.
S206 obtains the location information of face according to the face detected in the picture.
Further, right when showing the face value information of face when the method for the detection face face value of the embodiment of the present invention When the case where only one face and in image there is the case where more than one face to distinguish in image, for example, for In image the case where only one face, the region of face lower head shows the face value information of face in the picture;For figure There is the case where more than one face as in, the region of face above-head shows the face value information of face in the picture.Operation S102, detection image obtain the location information of face in image, can also include:
S208, judges whether the number of face in image is greater than 1.
If the number of face is greater than 1 in image, operation S210 is executed;Otherwise, it if the number of face is equal to 1 in image, holds Row operation S212.
S210 indicates the position of face according to the location information of face in image with box in the picture.
S212 judges whether the bottom of face in image reaches or more than pre- according to the location information of face in image If critical line.
Wherein, preset critical line is determined according to the dimension information of the preset text shown in the picture, that is, guarantees figure The lower section of picture will not cause to block when showing the face value information of face to face.
If the bottom of face reaches or more than preset critical line, executes operation S214 in image;Otherwise, if in image The bottom of face does not reach preset critical line, continues to execute the subsequent operation of the present embodiment.
S214 shows preset critical line in the picture, to prompt user to adjust the position of face in image.
In the specific implementation, while operation S214 can also show preset critical line in the picture, display reminding information, User is reminded to be adjusted in more eye-catching mode.
For there is the case where more than one face in image, in the detection face face value of the various embodiments described above of the present invention In one specific example of method, face value information includes: face value score;According to the location information of face in image, in the picture Region other than face head shows the face value information of face, comprising: the face value score of face in movement images;According in image The comparison result of the face value score of face, the region of the face above-head with highest face value score shows emperor in the picture Hat, the region of all face above-heads in addition to the face with highest face value score shows corresponding face in the picture Face value information.
In the specific implementation, in the picture may include at least one face with highest face value score, such as image In there are two above face highest face value score having the same, it is all in the picture at this time that there is highest face value score The region of face above-head show imperial crown, and in the picture in addition to the face with highest face value score it is all its The region of remaining face above-head shows the face value information of corresponding face.
For there is the case where more than one face in image, in the detection face face value of the various embodiments described above of the present invention In another specific example of method, face value information includes: face value score;According to the location information of face in image, in image Region other than middle face head shows the face value information of face, comprising: judges whether the face value score of face in image is lower than Preset threshold value;If the face value score of face is lower than preset threshold value in image, corresponding face above-head in the picture The language of region display excitation;If the face value score of face is equal to or higher than preset threshold value in image, corresponding in the picture Region other than face head shows the face value information of corresponding face, such as the area of corresponding face above-head in the picture Domain shows the face value information of corresponding face.
In the specific implementation, the language of excitation may include: " potential stocks ", " sprouting uncle " etc..The face value score of different faces It can correspond to the language of identical excitation, or the language corresponding to different excitations.Specifically, if the face of different faces It is worth the language that score corresponds to different excitations, the language of each excitation can correspond to a preset face value score section. Such as face value score assign to 50 40/when corresponding excitation language can be " potential stocks ".
For there is the case where more than one face in image, in the detection face face value of the various embodiments described above of the present invention In another specific example of method, according to the location information of face in image, the region other than face head is aobvious in the picture It lets others have a look at the face value information of face, comprising: obtain the gender information of face in image;According to the gender information of face in image, scheming The region of face above-head shows the dialog box of pre-set color corresponding with gender information as in, and face is shown in dialog box Face value information.
In the specific implementation, the gender information of face can be and be passed through according to the characteristic of face in image to figure in image Face carries out identification acquisition as in.Specifically recognition methods can use face identification method commonly used in the prior art, such as Method neural network based etc..
Specifically, in practical applications, male can be represented with the dialog box of blue, female is represented with the dialog box of pink colour Property, to can realize the area to the gender of face in image according to the color of dialog box when showing the face value information of face Not.
The interest specific example that above three increases display effect can be used alone, and can also be combined with each other, Such as in conjunction with any two of them or by triplicity.
For there is the case where more than one face in image, in the detection face face value of the various embodiments described above of the present invention In another specific example of method, face value information includes: face value score;According to the location information of face in image, in image Region other than middle face head shows the face value information of face, comprising: judges whether the face value score of face in image is lower than Preset threshold value;If the face value score of face is lower than preset threshold value in image, corresponding face above-head in the picture The language of region display excitation;If the face value score of face is equal to or higher than preset threshold value in image, corresponding in the picture Region other than face head shows the face value information of corresponding face, such as the area of corresponding face above-head in the picture Domain shows the face value information of corresponding face.
For in image the case where only one face, the method for the detection face face value of the various embodiments described above of the present invention, It can also be provided for user by setting corresponding operation interface by the face value information of the gender of face and age information and face Upload server, and from the face value information for the face that the face value information that server obtains face in image prestores in the server Position function, such as the percentage in the face value of the face value of face is stored in the server in image face, thus Obtain the integral status of face face value in image.
Wherein, the face value information of the corresponding gender information of face value information of the face prestored in server and face in image Corresponding gender information is consistent, and face in the corresponding age information of face value information of the face prestored in server and image The corresponding age information of face value information difference in the range of preset value.
At this point, the region other than face head shows face in the picture in the location information according to face in image When face value information, the region other than face head also shows the face value information of the face from the image that server obtains in the picture Position in the face value information of the face prestored in the server.Such as when the region of face lower head in the picture shows people When the face value information of face, the region of face lower head also shows the face value of the face from the image that server obtains in the picture Position in the face value information for the face that information prestores in the server.
Fig. 3 is the flow chart of another embodiment of the method for detection face face value of the embodiment of the present invention.As shown in figure 3, The method of the detection face face value of the embodiment, comprising:
S302 receives beauty Yan Zhiling.
S304 carries out U.S. face processing to image according to beautiful Yan Zhiling.
In the specific implementation, U.S. face processing may include: the common U.S. face processing such as whitening, filter, mill skin, big eye and thin face Method can also be arranged multiple ranks to each U.S. face processing method, and be selected by setting corresponding operation interface for user It selects.Wherein, the U.S. face processing for operating S304 may include at least one beauty operation, i.e., operation S304 only can individually be made It is handled, a variety of U.S. face processing superpositions can also be used, with the display by the function that U.S. face is arranged to picture with a kind of U.S. face Effect is beautified, and higher face value is obtained, and further increases interest and interest that user uses.
S306, the image after detecting U.S. face, the location information of face in the image after obtaining U.S. face.
S308, according to the location information of face in the image after U.S. face, the characteristic of face in the image after obtaining U.S. face According to.
S310, according to the characteristic of face in the image after U.S. face, the face value letter of face in the image after obtaining U.S. face Breath.
S312, according to the location information of face in the image after U.S. face, the region other than face head is shown in the picture The face value information of face.
The method of the detection face face value of the various embodiments described above of the present invention can also be mentioned by the way that corresponding operation interface is arranged For showing the function of the photo of the face value information of face for user's shooting.Specifically, according to the location information of face in image, In the picture after the face value information of the region display face other than face head, further includes: receive photographing instruction;And according to Photographing instruction obtains the photo for showing the face value information of face.
The method of the detection face face value of the various embodiments described above of the present invention can also be mentioned by the way that corresponding operation interface is arranged The function of the photo of face value information of face is shown for saving for user.It specifically, may include: to receive to save instruction;With And instructed according to saving, the photo for showing the face value information of face is saved, wherein showing the photo of the face value information of face It is stored in photo album.
The method of the detection face face value of the various embodiments described above of the present invention can also be mentioned by the way that corresponding operation interface is arranged The function of the photo of face value information of face is shown for sharing for user.It specifically, may include: to receive to share instruction;With And instructed according to sharing, the photo for showing the face value information of face is sent to scheduled address, is shared with friend.
Fig. 4 is the structure chart of one embodiment of the device of detection face face value of the embodiment of the present invention.As shown in figure 4, should The device of embodiment detection face face value, comprising: image detecting element, data capture unit, face value obtaining unit and image are aobvious Show unit.Wherein,
Image detecting element is used for detection image, obtains the location information of face in image.
In the specific implementation, the method for obtaining the location information of face from image can use people commonly used in the prior art Face recognition method, such as the method based on reference template, method neural network based etc..
Data capture unit obtains the characteristic of face in image for the location information according to face in image.
In the specific implementation, the characteristic of face can be the people for extracting acquisition by the feature to face in image The feature vector of face, wherein the feature of face includes but is not limited to the shape of shape of face and face, position etc..Specifically from image The method for obtaining the characteristic of face can use face feature extraction method commonly used in the prior art, such as based on statistics Method, method neural network based etc..
Face value obtaining unit obtains the face value information of face in image for the characteristic according to face in image.
Wherein, the face value information of face may include: face value score, can also include: age segment information of face etc..
In the specific implementation, the face value due to people is influenced by gender and age, face value is more accurately commented in order to obtain Valence, for different sexes and age bracket people when evaluating the height of face value used evaluation mechanism should also be as having differences.
In a specific example, face value obtaining unit may include: the first acquisition module, for according to face in image Characteristic, obtain image in face gender and age information;Second obtains module, for the property according to face in image Other and age information obtains the face value information of face in image according to default rule;Wherein default rule includes: for not Same gender and age bracket evaluates mechanism using different face values.
Image-display units, for the location information according to face in image, the region other than face head in the picture Show the face value information of face.
In the specific implementation, the face value information of face can be shown in the region of face above-head, people can also be shown in The region of face lower head, but not limited to this, guarantee of being subject to does not cause to block to face.
In a specific example, image-display units include: third judgment module, for the position according to face in image Confidence breath, judges whether the number of face in image is greater than 1;Face value display module, for the judgement according to third judgment module As a result, the number in response to face in image is equal to 1, the region of face lower head shows the face value letter of face in the picture Breath;And it is greater than 1 in response to the number of face in image, the region of face above-head shows the face value letter of face in the picture Breath.I.e. for having the case where more than one face in image, the region of face above-head shows the face of face in the picture Value information;For the case where only one face, the region of face lower head shows the face value of face in the picture in image Information.
Device based on the detection face face value that the above embodiment of the present invention provides, obtains people in image by detection image The location information of face obtains the characteristic of face in image further according to the location information of face in image, further according to figure The characteristic of face obtains the face value information of face in image as in, and the region other than face head shows institute in the picture The face value information of the face of acquisition increases the interest that user uses it is hereby achieved that showing the photo of the face value information of face Taste and experience sense.
Fig. 5 is the structure chart of another embodiment of the device of detection face face value of the embodiment of the present invention.As shown in figure 5, Compared with embodiment shown in Fig. 4, in the device of the detection face face value of the embodiment, image detecting element includes:
Whether image detection module, the number for face in detection image are greater than or equal to 1.
Prompt information display module, for the testing result according to image detection module, in response to the number of face in image Mesh is less than 1, and display reminding information, prompts user by alignment lens face in the picture.
Location information obtains module, for the testing result according to image detection module, in response to the number of face in image Mesh is greater than or equal to 1, and the location information of face is obtained according to the face detected in the picture.
Further, right when showing the face value information of face when the method for the detection face face value of the embodiment of the present invention When the case where only one face and in image there is the case where more than one face to distinguish in image, for example, for In image the case where only one face, the region of face lower head shows the face value information of face in the picture;For figure There is the case where more than one face as in, the region of face above-head shows the face value information of face in the picture.Image Detection unit can also include:
First judgment module, for judging whether the number of face in image is greater than 1.
Face location indicates module, for the judging result according to first judgment module, in response to the number of face in image Mesh is greater than 1, according to the location information of face in image, indicates the position of face with box in the picture.
Second judgment module, for the judging result according to first judgment module, in response to the number etc. of face in image In 1, according to the location information of face in image, judge whether the bottom of face in image reaches or more than preset critical Line.
Wherein, preset critical line is determined according to the dimension information of the preset text shown in the picture, that is, guarantees figure The lower section of picture will not cause to block when showing the face value information of face to face.
Prompt information display module is also used to the judging result according to the second judgment module, in response to face in image Bottom reaches or is more than preset critical line, shows preset critical line in the picture, to prompt user to adjust people in image The position of face.
In the specific implementation, while prompt information display module can also show preset critical line in the picture, display Prompt information reminds user to be adjusted in more eye-catching mode.
For there is the case where more than one face in image, in the detection face face value of the various embodiments described above of the present invention In one specific example of device, face value information includes: face value score;Face value display module is specifically used for: people in movement images The face value score of face;According to the comparison result of the face value score of face in image, in the picture with highest face value score The region of face above-head shows imperial crown, in the picture all face heads in addition to the face with highest face value score The region of top shows the face value information of corresponding face.
In the specific implementation, in the picture may include at least one face with highest face value score, such as image In there are two above face highest face value score having the same, it is all in the picture at this time that there is highest face value score The region of face above-head show imperial crown, and in the picture in addition to the face with highest face value score it is all its The region of remaining face above-head shows the face value information of corresponding face.
For there is the case where more than one face in image, in the detection face face value of the various embodiments described above of the present invention In another specific example of device, face value information includes: face value score;Face value display module is specifically used for: judging in image Whether the face value score of face is lower than preset threshold value;If the face value score of face is lower than preset threshold value in image, in image In corresponding face above-head region display excitation language;If the face value score of face is equal to or higher than default in image Threshold value, the region other than corresponding face head shows the face value information of corresponding face in the picture, such as in the picture The region of corresponding face above-head shows the face value information of corresponding face.
In the specific implementation, the language of excitation may include: " potential stocks ", " sprouting uncle " etc..The face value score of different faces It can correspond to the language of identical excitation, or the language corresponding to different excitations.Specifically, if the face of different faces It is worth the language that score corresponds to different excitations, the language of each excitation can correspond to a preset face value score section. Such as face value score assign to 50 40/when corresponding excitation language can be " potential stocks ".
For there is the case where more than one face in image, in the detection face face value of the various embodiments described above of the present invention In another specific example of device, face value display module is specifically used for: obtaining the gender information of face in image;According to image The gender information of middle face, the region other than face head shows the dialogue of pre-set color corresponding with gender information in the picture Frame shows the face value information of the face in dialog box, for example, in the picture the region real-time display of face above-head with The dialog box of the corresponding pre-set color of gender information shows the face value information of the face in dialog box.
In the specific implementation, the gender information of face can be and be passed through according to the characteristic of face in image to figure in image Face carries out identification acquisition as in.Specifically recognition methods can use face identification method commonly used in the prior art, such as Method neural network based etc..
Specifically, in practical applications, male can be represented with the dialog box of blue, female is represented with the dialog box of pink colour Property, to can realize the area to the gender of face in image according to the color of dialog box when showing the face value information of face Not.
For the case where only one face, the device of the detection face face value of the various embodiments described above of the present invention is also in image It can be equipped with communication unit, for by the face value information upload server of the gender of face and age information and face, and from clothes Position in the face value information for the face that the face value information that business device obtains face in image prestores in the server, such as in image Percentage in the face value for the face that the face value of face is stored in the server, to obtain the entirety of face face value in image Situation.
Wherein, the face value information of the corresponding gender information of face value information of the face prestored in server and face in image Corresponding gender information is consistent, and face in the corresponding age information of face value information of the face prestored in server and image The corresponding age information of face value information difference in the range of preset value.
At this point, face value display module is specifically used for: the region other than face head shows the face value letter of face in the picture When breath, the region other than face head also shows that the face value information of the face from the image that server obtains is servicing in the picture Position in the face value information of the face prestored in device.Such as when the region of face lower head in the picture shows the face of face When value information, the region of face lower head also shows that the face value information of the face from the image that server obtains exists in the picture Position in the face value information of the face prestored in server.
Fig. 6 is the structure chart of another embodiment of the device of detection face face value of the embodiment of the present invention.As shown in fig. 6, Include: in the device of the detection face face value of the embodiment
Receiving unit, for receiving beautiful Yan Zhiling.
Beautiful Yan Danyuan, for carrying out U.S. face processing to image according to beautiful Yan Zhiling.
In the specific implementation, U.S. face processing may include: the common U.S. face processing such as whitening, filter, mill skin, big eye and thin face Method can also be arranged multiple ranks to each U.S. face processing method, and be selected by setting corresponding operation interface for user It selects.Wherein, the U.S. face processing of U.S. face unit may include at least one beauty operation, i.e., U.S. face unit only can individually be made It is handled, a variety of U.S. face processing superpositions can also be used, with the display by the function that U.S. face is arranged to picture with a kind of U.S. face Effect is beautified, and higher face value is obtained, and further increases interest and interest that user uses.
Image detecting element, for detecting the image after U.S. face, the location information of face in the image after obtaining U.S. face.
Data capture unit, for the location information according to face in the image after U.S. face, in the image after obtaining U.S. face The characteristic of face.
Face value obtaining unit, for the characteristic according to face in the image after U.S. face, in the image after obtaining U.S. face The face value information of face.
Image-display units, for the location information according to face in the image after U.S. face, in the picture face head with Outer region shows the face value information of the face.
The device of the detection face face value of the various embodiments described above of the present invention can also be mentioned by the way that corresponding operation interface is arranged The function of the photo of face value information of face is shown for taking pictures for user.Specifically, the detection of the various embodiments described above of the present invention The device of face face value can be equipped with receiving unit, for receiving photographing instruction;It is also provided with camera unit, for according to bat According to instruction, the photo for showing the face value information of face is obtained.
The device of the detection face face value of the various embodiments described above of the present invention can also be mentioned by the way that corresponding operation interface is arranged The function of the photo of face value information of face is shown for saving for user.Specifically, the detection of the various embodiments described above of the present invention The receiving unit of the device setting of face face value, is also used to receive preservation instruction;The detection face of the various embodiments described above of the present invention The device of face value is additionally provided with storage unit, for saving the photo for showing the face value information of face according to instruction is saved, wherein The photo for showing the face value information of face is stored in photo album.
The device of the detection face face value of the various embodiments described above of the present invention can also be mentioned by the way that corresponding operation interface is arranged The function of the photo of face value information of face is shown for sharing for user.Specifically, the detection of the various embodiments described above of the present invention The receiving unit of the device setting of face face value, is also used to receive sharing instruction;The detection face of the various embodiments described above of the present invention The device of face value is additionally provided with execution unit, for instructing according to sharing, sends the photo of the face value information of display face to predetermined Address, share with friend.
In addition, the embodiment of the invention also provides a kind of mobile terminals, for example, can be mobile phone, laptop, PDA, Tablet computer etc., the mobile terminal have processor and memory, wherein memory is for storing any of the above-described implementation of the present invention The program of the method for the detection face face value of example, processor are used to execute the method for the detection face face value stored in memory Program.
Based on the mobile terminal that the above embodiment of the present invention provides, believed by the position that detection image obtains face in image Breath obtains the characteristic of face in image further according to the location information of face in image, further according to face in image Characteristic obtains the face value information of face in image, and the region other than face head shows face obtained in the picture Face value information increase interest and experience that user uses it is hereby achieved that show the photo of the face value information of face Sense.
The embodiment of the invention provides following technical schemes:
1, a kind of method for detecting face face value, comprising:
Detection image obtains the location information of face in described image;
According to the location information of face in described image, the characteristic of face in described image is obtained;
According to the characteristic of face in described image, the face value information of face in described image is obtained;
According to the location information of face in described image, the region in described image other than face head shows the people The face value information of face.
2, the method according to 1, the detection image obtain the location information of face in described image, comprising:
Whether the number of face is greater than or equal to 1 in detection image;
If the number of face is less than 1 in image, the display reminding information in described image, prompt user by alignment lens people Face;If the number of face is greater than or equal to 1 in image, believed according to the position that the face detected in described image obtains face Breath.
3, the method according to 2, the detection image obtain the location information of face in described image, further includes:
Judge whether the number of face in image is greater than 1;If the number of face is greater than 1 in image, according in described image The location information of face indicates the position of face in described image with box.
4, the method according to 3, the detection image obtain the location information of face in described image, further includes:
If the number of face is equal to 1 in image, according to the location information of face in image, the most lower of face in image is judged Whether end reaches or is more than preset critical line;The preset critical line is according to the ruler of the preset text shown in the picture Very little information determines;
If the bottom of face arrived or more than preset critical line, preset face is shown in described image in image Boundary line, to prompt user to adjust the position of face in image.
5, the method according to 1 to 4 any one, the characteristic according to face in described image obtain institute State the face value information of face in image, comprising:
According to the characteristic of face in described image, the gender and age information of face in described image are obtained;
According to the gender and age information of face in described image, face in described image is obtained according to default rule Face value information;The default rule includes: to evaluate mechanism using different face values for different gender and age bracket.
6, the method according to 5, the location information according to face in described image, the face head in described image Region other than portion shows the face value information of the face, comprising:
According to the location information of face in described image, judge whether the number of face in image is greater than 1;
If the number of face is equal to 1 in image, the region of face lower head shows the face in described image Face value information;If the number of face is greater than 1 in image, the region of face above-head shows the face in described image Face value information.
7, the method according to 6, the face value information include: face value score;The face head in described image The region of top shows the face value information of the face, comprising:
Compare the face value score of face in described image;
According to the comparison result of the face value score of face in described image, there is highest face value score in described image Face above-head region show imperial crown, the owner in described image in addition to the face with highest face value score The region of face above-head shows the face value information of corresponding face.
8, the method according to 7 includes at least one face with highest face value score in described image.
9, the method according to 6, the face value information include: face value score;The face head in described image The region of top shows the face value information of the face, comprising:
Judge whether the face value score of face in image is lower than preset threshold value;
If the face value score of face is lower than preset threshold value, the corresponding face above-head in described image in image The language of region display excitation;If the face value score of face is equal to or higher than preset threshold value in image, right in described image The region for the face above-head answered shows the face value information of corresponding face.
10, the method according to 9, the face value information of different faces correspond to the language of identical excitation, or not The language of same excitation.
11, the method according to 9, it is each if the face value information of different faces corresponds to the language of different excitations The language of the sentence excitation corresponds to a preset face value score section.
12, the region of the method according to 6, the face above-head in described image shows the face of the face Value information, comprising:
Obtain the gender information of face in described image;
According to the gender information of face in described image, in described image the region of face above-head show with it is described The dialog box of the corresponding pre-set color of gender information shows the face value information of the face in the dialog box.
13, the method according to 6, further includes:
By the face value information upload server of the gender of the face and age information and the face;
The face for the face that the face value information for obtaining face in described image from the server prestores in the server Position in value information;
Wherein, the corresponding gender information of face value information of the face prestored in the server and face in described image The corresponding gender information of face value information is consistent, and the corresponding age information of face value information of the face prestored in the server The difference of age information corresponding with the face value information of face in described image is in the range of preset value;
The location information according to face in described image, the region in described image other than face head show institute State the face value information of face, comprising: the region of face lower head shows the face value information of the face in described image, and The face value information for the face that the face value information of face prestores in the server from the described image that the server obtains In position.
14, the method according to 1 to 13 any one, further includes:
Receive beauty Yan Zhiling;
According to the beauty Yan Zhiling, U.S. face processing is carried out to described image;
The detection image obtains the location information of face in image, comprising: the described image after detecting U.S. face obtains The location information of face in described image after U.S. face;
The location information according to face in described image obtains the characteristic of face in described image, comprising: root According to the location information of face in the described image after U.S. face, the characteristic of face in the described image after obtaining U.S. face;
The characteristic according to face in described image, the face value information for obtaining face in described image includes: root According to the characteristic of face in the described image after U.S. face, the face value information of face in the described image after obtaining U.S. face;
The location information according to face in described image, the region in described image other than face head show institute The face value information for stating face includes: the face head in described image according to the location information of face in the described image after U.S. face Region other than portion shows the face value information of the face.
15, the method according to 14, the U.S. face processing include at least one U.S. face processing.
16, the method according to 1 to 15 any one, the location information according to face in described image, in institute It states after the region in image other than face head shows the face value information of the face, further includes:
Receive photographing instruction;
According to the photographing instruction, the photo for showing the face value information of the face is obtained.
17, the method according to 16, further includes:
It receives and saves instruction;
It is instructed according to the preservation, saves the photo for showing the face value information of the face.
18, the method according to 16 or 17, further includes:
It receives and shares instruction;
It is instructed according to the sharing, sends the photo for showing the face value information of the face to scheduled address.
19, a kind of device for detecting face face value, comprising:
Image detecting element is used for detection image, obtains the location information of face in described image;
Data capture unit obtains the spy of face in described image for the location information according to face in described image Levy data;
Face value obtaining unit obtains the face of face in described image for the characteristic according to face in described image Value information;
Image-display units, for the location information according to face in described image, in described image face head with Outer region shows the face value information of the face.
20, the device according to 19, described image detection unit include:
Whether image detection module, the number for face in detection image are greater than or equal to 1;
Prompt information display module, for the testing result according to described image detection module, in response to face in image Number less than 1, the display reminding information in described image prompts user by alignment lens face;
Location information obtains module, for the testing result according to described image detection module, in response to face in image Number be greater than or equal to 1, the location information of face is obtained according to the face that detects in described image.
21, the device according to 20, described image detection unit further include:
First judgment module, for judging whether the number of face in image is greater than 1;
Face location indicates module, for the judging result according to the first judgment module, in response to face in image Number be greater than 1, according to the location information of face in described image, the position of face is indicated with box in described image.
22, the device according to 21, described image detection unit further include:
Second judgment module, for the judging result according to the first judgment module, in response to the number of face in image Mesh is equal to 1, according to the location information of face in image, judges whether the bottom of face in image reaches or face more than preset Boundary line;The preset critical line is determined according to the dimension information of the preset text shown in the picture;
The prompt information display module, for the judging result according to second judgment module, in response in image The bottom of face reaches or is more than preset critical line, shows preset critical line, in described image to prompt user's tune The position of face in whole image.
23, the device according to 19 to 22 any one, the face value obtaining unit include:
First obtains module, for the characteristic according to face in described image, obtains the property of face in described image Other and age information;
Second acquisition module is obtained for the gender and age information according to face in described image according to default rule Obtain the face value information of face in described image;The default rule includes: for different genders and age bracket using different Face value evaluate mechanism.
24, the device according to 23, described image display unit include:
Third judgment module judges that the number of face in image is for the location information according to face in described image It is no to be greater than 1;
Face value display module, for the judging result according to the third judgment module, in response to the number of face in image Mesh is equal to 1, and the region of face lower head shows the face value information of the face in described image;And in response in image The number of face is greater than 1, and the region of face above-head shows the face value information of the face in described image.
25, the device according to 24, the face value information include: face value score;The face value display module is specifically used In:
Compare the face value score of face in described image;
According to the comparison result of the face value score of face in described image, there is highest face value score in described image Face above-head region show imperial crown, the owner in described image in addition to the face with highest face value score The region of face above-head shows the face value information of corresponding face.
26, the device according to 25 includes at least one face with highest face value score in described image.
27, the device according to 24, the face value information include: face value score;The face value display module is specifically used In:
Judge whether the face value score of face in image is lower than preset threshold value;
If the face value score of face is lower than preset threshold value, the corresponding face above-head in described image in image The language of region display excitation;If the face value score of face is equal to or higher than preset threshold value in image, right in described image The region for the face above-head answered shows the face value information of corresponding face.
28, the device according to 27, the face value information of different faces correspond to the language of identical excitation, or not The language of same excitation.
29, the device according to 27, it is each if the face value information of different faces corresponds to the language of different excitations The language of the sentence excitation corresponds to a preset face value score section.
30, the device according to 24, the face value display module are specifically used for:
Obtain the gender information of face in described image;
According to the gender information of face in described image, in described image the region real-time display of face above-head with The dialog box of the corresponding pre-set color of the gender information, shows the face value information of the face in the dialog box.
31, the device according to 24, further includes:
Communication unit, for by the face value information upload service of the gender of the face and age information and the face Device;The face value information for the face that the face value information for obtaining face in described image from the server prestores in the server In position;
Wherein, the corresponding gender information of face value information of the face prestored in the server and face in described image The corresponding gender information of face value information is consistent, and the corresponding age information of face value information of the face prestored in the server The difference of age information corresponding with the face value information of face in described image is in the range of preset value;
The face value display module is specifically used for: the region of face lower head shows the face in described image Face value information, and the face that the face value information of face prestores in the server from the described image that the server obtains Face value information in position.
32, the device according to 19 to 31 any one, further includes:
Receiving unit, for receiving beautiful Yan Zhiling;
Beautiful Yan Danyuan, for carrying out U.S. face processing to described image according to the beauty Yan Zhiling;
Described image detection unit is specifically used for: the described image after detecting U.S. face, in the described image after obtaining U.S. face The location information of face;
The data capture unit is specifically used for: according to the location information of face in the described image after U.S. face, obtaining beauty The characteristic of face in described image after face;
The face value obtaining unit is specifically used for: according to the characteristic of face in the described image after U.S. face, obtaining beauty The face value information of face in described image after face.
Described image display unit is specifically used for: according to the location information of face in the described image after U.S. face, described Region in image other than face head shows the face value information of the face.
33, the device according to 32, the U.S. face unit include at least one U.S. face processing.
34, the device according to 19 to 33 any one, further includes:
Receiving unit, for receiving photographing instruction;
Camera unit, for obtaining the photo for showing the face value information of the face according to the photographing instruction.
35, the device according to 34, the receiving unit are also used to receive preservation instruction;
The device of the detection face face value further include:
Storage unit saves the photo for showing the face value information of the face for instructing according to the preservation.
36, the device according to 34 or 35, the receiving unit are also used to receive sharing instruction;
The device of the detection face face value further include:
Execution unit, for being instructed according to sharings, transmission shows the photo of the face value information of the face to pre- Fixed address.
37, a kind of mobile terminal, comprising: processor and memory;Wherein,
The memory is used to store the program that the method for face face value is detected described in 1 to 18 any one;
The processor is used to execute the program of the method for the detection face face value stored in the memory.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with its The difference of its embodiment, the same or similar part cross-reference between each embodiment.For Installation practice For, since it is substantially corresponding with embodiment of the method, so being described relatively simple, referring to the portion of embodiment of the method in place of correlation It defends oneself bright.
Methods and apparatus of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or Software, hardware, firmware any combination realize methods and apparatus of the present invention.The said sequence of the step of for the method Merely to be illustrated, the step of method of the invention, is not limited to sequence described in detail above, special unless otherwise It does not mentionlet alone bright.In addition, in some embodiments, also the present invention can be embodied as to record program in the recording medium, these programs Including for realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing basis The recording medium of the program of method of the invention.
Description of the invention is given for the purpose of illustration and description, and is not exhaustively or will be of the invention It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage The solution present invention is to design various embodiments suitable for specific applications with various modifications.

Claims (35)

1. a kind of method for detecting face face value characterized by comprising
Detection image obtains the location information of face in described image;
According to the location information of face in described image, the characteristic of face in described image is obtained;
According to the characteristic of face in described image, the face value information of face in described image is obtained;It is described according to the figure The characteristic of face as in, obtains the face value information of face in described image, comprising: according to the feature of face in described image Data obtain the gender and age information of face in described image;According to the gender and age information of face in described image, press The face value information of face in described image is obtained according to default rule;
According to the location information of face in described image, the region in described image other than face head shows the face Face value information;The location information according to face in described image, the region in described image other than face head are shown The face value information of the face, comprising:
According to the location information of face in described image, judge whether the number of face in image is greater than 1;
If the number of face is equal to 1 in image, the region of face lower head shows the face value of the face in described image Information;By the face value information upload server of the gender of the face and age information and the face;It is obtained from the server Position in the face value information for the face for taking the face value information of face in described image to prestore in the server;In the figure The region of face lower head shows the face value information of the face, and the people from the described image that the server obtains as in Position in the face value information for the face that the face value information of face prestores in the server;
If the number of face is greater than 1 in image, the region of face above-head shows the face value of the face in described image Information.
2. the method according to claim 1, wherein the detection image, obtains the position of face in described image Confidence breath, comprising:
Whether the number of face is greater than or equal to 1 in detection image;
If the number of face is less than 1 in image, the display reminding information in described image, prompt user by alignment lens face; If the number of face is greater than or equal to 1 in image, the location information of face is obtained according to the face detected in described image.
3. according to the method described in claim 2, it is characterized in that, the detection image, obtains the position of face in described image Confidence breath, further includes:
Judge whether the number of face in image is greater than 1;
If the number of face is greater than 1 in image, according to the location information of face in described image, with box mark in described image The position of face is shown.
4. according to the method described in claim 3, it is characterized in that, the detection image, obtains the position of face in described image Confidence breath, further includes:
If the number of face is equal to 1 in image, according to the location information of face in image, judge that the bottom of face in image is No arrival is more than preset critical line;The preset critical line is believed according to the size of the preset text shown in the picture Breath determines;
If the bottom of face arrived or more than preset critical line, show in described image preset critical in image Line, to prompt user to adjust the position of face in image.
5. the method according to claim 1, which is characterized in that the default rule includes: for not Same gender and age bracket evaluates mechanism using different face values.
6. according to the method described in claim 5, it is characterized in that, the face value information includes: face value score;It is described described The region of face above-head shows the face value information of the face in image, comprising:
Compare the face value score of face in described image;
According to the comparison result of the face value score of face in described image, with the people of highest face value score in described image The region of face above-head shows imperial crown, all face heads in described image in addition to the face with highest face value score Region above portion shows the face value information of corresponding face.
7. according to the method described in claim 6, it is characterized in that, including at least one in described image with highest face value The face of score.
8. according to the method described in claim 5, it is characterized in that, the face value information includes: face value score;It is described described The region of face above-head shows the face value information of the face in image, comprising:
Judge whether the face value score of face in image is lower than preset threshold value;
If the face value score of face is lower than preset threshold value, the region of corresponding face above-head in described image in image Show the language of excitation;If the face value score of face is equal to or higher than preset threshold value in image, corresponding in described image The region of face above-head shows the face value information of corresponding face.
9. according to the method described in claim 8, it is characterized in that, the face value information of different faces corresponds to identical excitation Language or different excitations language.
10. according to the method described in claim 8, it is characterized in that, if the face value information of different faces is corresponding to different The language of the language of excitation, each sentence excitation corresponds to a preset face value score section.
11. according to the method described in claim 5, it is characterized in that, the region of the face above-head in described image Show the face value information of the face, comprising:
Obtain the gender information of face in described image;
According to the gender information of face in described image, the region of face above-head is shown and the gender in described image The dialog box of the corresponding pre-set color of information shows the face value information of the face in the dialog box.
12. according to the method described in claim 5, it is characterized in that, the face value information pair of the face prestored in the server The gender information answered gender information corresponding with the face value information of face in described image is consistent, and prestores in the server Face the corresponding age information of face value information age information corresponding with the face value information of face in described image difference In the range of preset value.
13. the method according to claim 1, wherein further include:
Receive beauty Yan Zhiling;
According to the beauty Yan Zhiling, U.S. face processing is carried out to described image;
The detection image obtains the location information of face in image, comprising: the described image after detecting U.S. face obtains U.S. face The location information of face in described image afterwards;
The location information according to face in described image obtains the characteristic of face in described image, comprising: according to beauty The location information of face in described image after face, the characteristic of face in the described image after obtaining U.S. face;
The characteristic according to face in described image, the face value information for obtaining face in described image includes: according to beauty The characteristic of face in described image after face, the face value information of face in the described image after obtaining U.S. face;
The location information according to face in described image, the region in described image other than face head show the people The face value information of face include: according to the location information of face in the described image after U.S. face, in described image face head with Outer region shows the face value information of the face.
14. according to the method for claim 13, which is characterized in that the U.S. face processing includes at least one U.S. face processing.
15. the method according to claim 1, wherein the location information according to face in described image, Region in described image other than face head is shown after the face value information of the face, further includes:
Receive photographing instruction;
According to the photographing instruction, the photo for showing the face value information of the face is obtained.
16. according to the method for claim 15, which is characterized in that further include:
It receives and saves instruction;
It is instructed according to the preservation, saves the photo for showing the face value information of the face.
17. method according to claim 15 or 16, which is characterized in that further include:
It receives and shares instruction;
It is instructed according to the sharing, sends the photo for showing the face value information of the face to scheduled address.
18. a kind of device for detecting face face value characterized by comprising
Image detecting element is used for detection image, obtains the location information of face in described image;
Data capture unit obtains the characteristic of face in described image for the location information according to face in described image According to;
Face value obtaining unit obtains the face value letter of face in described image for the characteristic according to face in described image Breath;The face value obtaining unit includes: the first acquisition module, for the characteristic according to face in described image, obtains institute State the gender and age information of face in image;Second obtain module, for according to face in described image gender and the age Information obtains the face value information of face in described image according to default rule;
Image-display units, for the location information according to face in described image, in described image other than face head Region shows the face value information of the face;Described image display unit includes: third judgment module, for according to described image The location information of middle face, judges whether the number of face in image is greater than 1;
Communication unit is equal to 1 in response to the number of face in image for the judging result according to the third judgment module, By the face value information upload server of the gender of the face and age information and the face;Described in server acquisition Position in the face value information for the face that the face value information of face prestores in the server in image;
Face value display module is used for: the region of face lower head shows the face value information of the face in described image, and The face value information for the face that the face value information of face prestores in the server from the described image that the server obtains In position;And it is greater than 1 in response to the number of face in image, the region of face above-head shows institute in described image State the face value information of face.
19. device according to claim 18, which is characterized in that described image detection unit includes:
Whether image detection module, the number for face in detection image are greater than or equal to 1;
Prompt information display module, for the testing result according to described image detection module, in response to the number of face in image Mesh is less than 1, the display reminding information in described image, prompts user by alignment lens face;
Location information obtains module, for the testing result according to described image detection module, in response to the number of face in image Mesh is greater than or equal to 1, and the location information of face is obtained according to the face detected in described image.
20. device according to claim 19, which is characterized in that described image detection unit further include:
First judgment module, for judging whether the number of face in image is greater than 1;
Face location indicates module, for the judging result according to the first judgment module, in response to the number of face in image Mesh is greater than 1, according to the location information of face in described image, indicates the position of face with box in described image.
21. device according to claim 20, which is characterized in that described image detection unit further include:
Second judgment module, for the judging result according to the first judgment module, in response to the number etc. of face in image In 1, according to the location information of face in image, judge whether the bottom of face in image reaches or more than preset critical Line;The preset critical line is determined according to the dimension information of the preset text shown in the picture;
The prompt information display module, for the judging result according to second judgment module, in response to face in image Bottom reach or be more than preset critical line, show preset critical line, in described image to prompt user's adjustment figure The position of face as in.
22. device described in 8 to 21 any one according to claim 1, which is characterized in that the default rule includes: needle Mechanism is evaluated using different face values to different gender and age bracket.
23. device according to claim 22, which is characterized in that the face value information includes: face value score;The face value Display module is specifically used for:
Compare the face value score of face in described image;
According to the comparison result of the face value score of face in described image, with the people of highest face value score in described image The region of face above-head shows imperial crown, all face heads in described image in addition to the face with highest face value score Region above portion shows the face value information of corresponding face.
24. device according to claim 23, which is characterized in that include at least one in described image with highest face It is worth the face of score.
25. device according to claim 22, which is characterized in that the face value information includes: face value score;The face value Display module is specifically used for:
Judge whether the face value score of face in image is lower than preset threshold value;
If the face value score of face is lower than preset threshold value, the region of corresponding face above-head in described image in image Show the language of excitation;If the face value score of face is equal to or higher than preset threshold value in image, corresponding in described image The region of face above-head shows the face value information of corresponding face.
26. device according to claim 25, which is characterized in that the face value information of different faces corresponds to identical sharp The language of the language or different excitations encouraged.
27. device according to claim 25, which is characterized in that if the face value information of different faces is corresponding to different The language of the language of excitation, each sentence excitation corresponds to a preset face value score section.
28. device according to claim 22, which is characterized in that the face value display module is specifically used for:
Obtain the gender information of face in described image;
According to the gender information of face in described image, in described image the region real-time display of face above-head with it is described The dialog box of the corresponding pre-set color of gender information shows the face value information of the face in the dialog box.
29. device according to claim 22, which is characterized in that the face value information pair of the face prestored in the server The gender information answered gender information corresponding with the face value information of face in described image is consistent, and prestores in the server Face the corresponding age information of face value information age information corresponding with the face value information of face in described image difference In the range of preset value.
30. device according to claim 18, which is characterized in that further include:
Receiving unit, for receiving beautiful Yan Zhiling;
Beautiful Yan Danyuan, for carrying out U.S. face processing to described image according to the beauty Yan Zhiling;
Described image detection unit is specifically used for: the described image after detecting U.S. face, face in the described image after obtaining U.S. face Location information;
The data capture unit is specifically used for: according to the location information of face in the described image after U.S. face, after obtaining U.S. face Described image in face characteristic;
The face value obtaining unit is specifically used for: according to the characteristic of face in the described image after U.S. face, after obtaining U.S. face Described image in face face value information;
Described image display unit is specifically used for: according to the location information of face in the described image after U.S. face, in described image Region other than middle face head shows the face value information of the face.
31. device according to claim 30, which is characterized in that the U.S. face unit includes at least one U.S. face processing.
32. device according to claim 18, which is characterized in that further include:
Receiving unit, for receiving photographing instruction;
Camera unit, for obtaining the photo for showing the face value information of the face according to the photographing instruction.
33. device according to claim 32, which is characterized in that the receiving unit is also used to receive preservation instruction;
The device of the detection face face value further include:
Storage unit saves the photo for showing the face value information of the face for instructing according to the preservation.
34. the device according to claim 32 or 33, which is characterized in that the receiving unit is also used to receive sharing and refers to It enables;
The device of the detection face face value further include:
Execution unit, for being instructed according to sharings, transmission shows the photo of the face value information of the face to scheduled Address.
35. a kind of mobile terminal characterized by comprising processor and memory;Wherein,
The memory is used to store the program that the method for face face value is detected described in claim 1 to 17 any one;
The processor is used to execute the program of the method for the detection face face value stored in the memory.
CN201611188089.4A 2016-12-20 2016-12-20 Detect the method, apparatus and mobile terminal of face face value Active CN106778627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611188089.4A CN106778627B (en) 2016-12-20 2016-12-20 Detect the method, apparatus and mobile terminal of face face value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611188089.4A CN106778627B (en) 2016-12-20 2016-12-20 Detect the method, apparatus and mobile terminal of face face value

Publications (2)

Publication Number Publication Date
CN106778627A CN106778627A (en) 2017-05-31
CN106778627B true CN106778627B (en) 2019-09-03

Family

ID=58896628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611188089.4A Active CN106778627B (en) 2016-12-20 2016-12-20 Detect the method, apparatus and mobile terminal of face face value

Country Status (1)

Country Link
CN (1) CN106778627B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107424130B (en) * 2017-07-10 2020-09-11 北京小米移动软件有限公司 Picture beautifying method and device
CN107463943B (en) * 2017-07-10 2020-07-21 北京小米移动软件有限公司 Color value scoring method, training method and device of same-person color value difference classifier
CN111373409B (en) * 2017-09-28 2023-08-25 深圳传音通讯有限公司 Method and terminal for obtaining color value change
CN109684978A (en) * 2018-12-18 2019-04-26 深圳壹账通智能科技有限公司 Employees'Emotions monitoring method, device, computer equipment and storage medium
CN109977781A (en) * 2019-02-26 2019-07-05 上海上湖信息技术有限公司 Method for detecting human face and device, readable storage medium storing program for executing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859369A (en) * 2009-04-08 2010-10-13 华晶科技股份有限公司 Face partition method
CN103533226A (en) * 2013-06-07 2014-01-22 Tcl集团股份有限公司 Shooting method and system with voice prompt function
CN104850825A (en) * 2015-04-18 2015-08-19 中国计量学院 Facial image face score calculating method based on convolutional neural network
CN105205479A (en) * 2015-10-28 2015-12-30 小米科技有限责任公司 Human face value evaluation method, device and terminal device
CN105574006A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Method and device for establishing photographing template database and providing photographing recommendation information
CN105718869A (en) * 2016-01-15 2016-06-29 网易(杭州)网络有限公司 Method and device for estimating face score in picture
CN106156762A (en) * 2016-08-12 2016-11-23 乐视控股(北京)有限公司 Take pictures processing method and processing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859369A (en) * 2009-04-08 2010-10-13 华晶科技股份有限公司 Face partition method
CN103533226A (en) * 2013-06-07 2014-01-22 Tcl集团股份有限公司 Shooting method and system with voice prompt function
CN105574006A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Method and device for establishing photographing template database and providing photographing recommendation information
CN104850825A (en) * 2015-04-18 2015-08-19 中国计量学院 Facial image face score calculating method based on convolutional neural network
CN105205479A (en) * 2015-10-28 2015-12-30 小米科技有限责任公司 Human face value evaluation method, device and terminal device
CN105718869A (en) * 2016-01-15 2016-06-29 网易(杭州)网络有限公司 Method and device for estimating face score in picture
CN106156762A (en) * 2016-08-12 2016-11-23 乐视控股(北京)有限公司 Take pictures processing method and processing device

Also Published As

Publication number Publication date
CN106778627A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106778627B (en) Detect the method, apparatus and mobile terminal of face face value
US11482040B2 (en) Face anti-counterfeiting detection methods and systems, electronic devices, programs and media
US10372226B2 (en) Visual language for human computer interfaces
US10318797B2 (en) Image processing apparatus and image processing method
CN106897659B (en) The recognition methods of blink movement and device
CN104364798B (en) System and method for face verification
KR101494301B1 (en) Smart mirror device
CN105892685B (en) A kind of the topic searching method and device of smart machine
CN111240482B (en) Special effect display method and device
KR102092931B1 (en) Method for eye-tracking and user terminal for executing the same
CN108875452A (en) Face identification method, device, system and computer-readable medium
CN106713811B (en) Video call method and device
CN107391062A (en) A kind of method, apparatus and its mobile terminal for adjusting screen display
CN110119719A (en) Biopsy method, device, equipment and computer readable storage medium
CN108833359A (en) Auth method, device, equipment, storage medium and program
US11232584B2 (en) Line-of-sight estimation device, line-of-sight estimation method, and program recording medium
CN108416235A (en) The anti-peeping method, apparatus of display interface, storage medium and terminal device
CN108875582A (en) Auth method, device, equipment, storage medium and program
CN111008971B (en) Aesthetic quality evaluation method of group photo image and real-time shooting guidance system
CN110221897A (en) Adjusting method, device, terminal device and the medium of character boundary
CN102135852A (en) Image display apparatus and image display method
CN111639582A (en) Living body detection method and apparatus
CN110363111A (en) Human face in-vivo detection method, device and storage medium based on lens distortions principle
CN109063644A (en) Based on recognition of face expression scribble method, apparatus, storage medium and electronic equipment
Azhaguraj et al. Smart attendance marking system using face recognition

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
TA01 Transfer of patent application right

Effective date of registration: 20170721

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant