CN106778627A - Detect method, device and the mobile terminal of face face value - Google Patents
Detect method, device and the mobile terminal of face face value Download PDFInfo
- Publication number
- CN106778627A CN106778627A CN201611188089.4A CN201611188089A CN106778627A CN 106778627 A CN106778627 A CN 106778627A CN 201611188089 A CN201611188089 A CN 201611188089A CN 106778627 A CN106778627 A CN 106778627A
- Authority
- CN
- China
- Prior art keywords
- face
- image
- information
- displaying
- color 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 129
- 238000001514 detection method Methods 0.000 claims abstract description 31
- 238000012545 processing Methods 0.000 claims description 13
- 210000000887 face Anatomy 0.000 description 125
- 210000003128 head Anatomy 0.000 description 107
- 230000006870 function Effects 0.000 description 11
- 238000011156 evaluation Methods 0.000 description 10
- 230000007246 mechanism Effects 0.000 description 8
- 230000003796 beauty Effects 0.000 description 7
- 238000013528 artificial neural network Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 239000002537 cosmetic Substances 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 210000000697 sensory organ Anatomy 0.000 description 3
- 241001417519 Priacanthidae Species 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 229920001690 polydopamine Polymers 0.000 description 2
- 230000002087 whitening effect Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
- G06V40/169—Holistic features and representations, i.e. based on the facial image taken as a whole
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/178—Human faces, e.g. facial parts, sketches or expressions estimating age from face image; using age information for improving recognition
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the invention discloses a kind of method for detecting face face value, device and mobile terminal.Wherein, method includes:Detection image, obtains the positional information of face in described image;According to the positional 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 positional information of face in described image, the region beyond face head in described image shows the face value information of the face.The embodiment of the present invention can obtain the photo of the face value information for showing face, increase interest and experience sense that user uses.
Description
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a method and a device for detecting a face value and a mobile terminal.
Background
With the increasing degree of intelligence of terminal devices, such as mobile phones, tablet computers, PDAs, and the like, intelligent terminals have become necessities in people's lives, and the intelligent terminals are changing people's life styles deeply through continuous innovation of software and hardware.
The height of the face value is reflected as the visual beauty degree of the face, and is specifically reflected as whether the five sense organs of the face coordinate or not. People often hope to know the face value of the person who shoots when using intelligent terminal to shoot to the function of shooing through intelligent terminal obtains the photo that shows the face value information of the person who shoots, with interest and the experience that increases intelligent terminal and use. However, the existing intelligent terminal does not have the function of detecting the color value when taking a picture.
Disclosure of Invention
The embodiment of the invention aims to solve the technical problem that: the method, the device and the mobile terminal for detecting the face value are provided, so that interestingness and experience of use of people are improved.
To solve the above technical problem, according to an aspect of an embodiment of the present invention, there is provided a method for detecting a face value, including:
detecting an image to obtain position information of a human face in the image;
acquiring feature data of the face in the image according to the position information of the face in the image;
acquiring the face value information of the face in the image according to the feature data of the face in the image;
and displaying the face color value information in the area except the head of the face in the image according to the position information of the face in the image.
In another embodiment of the foregoing method according to the present invention, the detecting an image and obtaining location information of a face in the image includes:
detecting whether the number of human faces in the image is greater than or equal to 1;
if the number of the faces in the image is less than 1, displaying prompt information in the image to prompt a user to align a lens with the faces; and if the number of the faces in the image is more than or equal to 1, obtaining the position information of the faces according to the faces detected in the image.
In another embodiment based on the foregoing method of the present invention, the detecting an image to obtain position information of a face in the image further includes:
judging whether the number of the faces in the image is more than 1; and if the number of the faces in the image is more than 1, marking the positions of the faces in the image by boxes according to the position information of the faces in the image.
In another embodiment based on the foregoing method of the present invention, the detecting an image to obtain position information of a face in the image further includes:
if the number of the faces in the image is equal to 1, judging whether the lowest end of the faces in the image reaches or exceeds a preset critical line or not according to the position information of the faces in the image; the preset critical line is determined according to preset size information of characters displayed in the image;
and if the lowest end of the face in the image reaches or exceeds a preset critical line, displaying the preset critical line in the image to prompt a user to adjust the position of the face in the image.
In another embodiment of the foregoing method according to the present invention, the obtaining the color value information of the face in the image according to the feature data of the face in the image includes:
acquiring gender and age information of the face in the image according to the feature data of the face in the image;
obtaining the face value information of the face in the image according to the gender and age information of the face in the image and a preset rule; the preset rules comprise: different color value evaluation mechanisms are adopted for different sexes and age groups.
In another embodiment of the above method according to the present invention, the displaying, according to position information of a human face in the image, color value information of the human face in a region other than a head of the human face in the image includes:
judging whether the number of the faces in the image is more than 1 or not according to the position information of the faces in the image;
if the number of the faces in the image is equal to 1, displaying the face value information in the area below the head of the face in the image; and if the number of the human faces in the image is more than 1, displaying the face value information in the area above the head of the human face in the image.
In another embodiment of the above method according to the present invention, the color value information includes: a color score; the displaying of the face color value information in the region above the head of the face in the image comprises:
comparing the face value scores of the faces in the images;
according to the comparison result of the face color value scores in the image, displaying crown in the area above the face head with the highest face color value score in the image, and displaying the corresponding face color value information in the area above all the face heads except the face with the highest face color value score in the image.
In another embodiment of the above method according to the present invention, the image includes at least one face with the highest color value score.
In another embodiment of the above method according to the present invention, the color value information includes: a color score; the displaying of the face color value information in the region above the head of the face in the image comprises:
judging whether the face value score in the image is lower than a preset threshold value or not;
if the face score in the image is lower than a preset threshold value, displaying the excited words in the area above the corresponding face head in the image; and if the face value score of the face in the image is equal to or higher than a preset threshold value, displaying the corresponding face value information in the area above the corresponding face head in the image.
In another embodiment of the above method according to the invention, the color value information of different faces corresponds to the same stimulated utterance or to different stimulated utterances.
In another embodiment of the above method according to the present invention, if the face information of different faces corresponds to different excited words, each excited word corresponds to a predetermined color value score interval.
In another embodiment of the above method according to the present invention, the displaying the color value information of the human face in the region above the head of the human face in the image includes:
acquiring gender information of the face in the image;
and displaying a dialog box with a preset color corresponding to the gender information in an area above the head of the human face in the image according to the gender information of the human face in the image, and displaying the color value information of the human face in the dialog box.
In another embodiment of the foregoing method according to the present invention, the method further includes:
uploading the sex and age information of the face and the face value information to a server;
acquiring the position of the face value information of the face in the image in the face value information of the face prestored in the server from the server;
the gender information corresponding to the face color value information prestored in the server is consistent with the gender information corresponding to the face color value information in the image, and the difference value between the age information corresponding to the face color value information prestored in the server and the age information corresponding to the face color value information in the image is in the range of a preset value;
the displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image comprises the following steps: and displaying the face color value information in the area below the head of the face in the image and the position of the face color value information in the image, which is acquired from the server, in the face color value information prestored in the server.
In another embodiment of the foregoing method according to the present invention, the method further includes:
receiving a beautifying instruction;
performing beautifying processing on the image according to the beautifying instruction;
the detecting the image and obtaining the position information of the face in the image comprises: detecting the image after the face beautifying, and obtaining the position information of the face in the image after the face beautifying;
the obtaining of the feature data of the face in the image according to the position information of the face in the image includes: acquiring feature data of the face in the beautified image according to the position information of the face in the beautified image;
the obtaining of the color value information of the face in the image according to the feature data of the face in the image includes: obtaining the face value information of the face in the beautified image according to the feature data of the face in the beautified image;
the displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image comprises: and displaying the face value information of the face in the area except the head of the face in the image according to the position information of the face in the image after the face is beautified.
In another embodiment of the above method according to the invention, the cosmetic treatment comprises at least one cosmetic treatment.
In another embodiment of the foregoing method according to the present invention, after displaying, according to the position information of the human face in the image, the color value information of the human face in a region other than the head of the human face in the image, the method further includes:
receiving a photographing instruction;
and obtaining a photo with the face value information of the face according to the photographing instruction.
In another embodiment of the foregoing method according to the present invention, the method further includes:
receiving a saving instruction;
and storing the photo with the face value information according to the storage instruction.
In another embodiment of the foregoing method according to the present invention, the method further includes:
receiving a sharing instruction;
and sending the photo with the face value information to a preset address according to the sharing instruction.
According to another aspect of the embodiments of the present invention, there is provided an apparatus for detecting a face value, including:
the image detection unit is used for detecting an image and obtaining the position information of a human face in the image;
the data acquisition unit is used for acquiring the feature data of the face in the image according to the position information of the face in the image;
the face value obtaining unit is used for obtaining the face value information of the face in the image according to the feature data of the face in the image;
and the image display unit is used for displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image.
In another embodiment of the above apparatus according to the present invention, the image detection unit includes:
the image detection module is used for detecting whether the number of the human faces in the image is more than or equal to 1;
the prompt information display module is used for responding to the number of the human faces in the image being less than 1 according to the detection result of the image detection module, displaying prompt information in the image and prompting a user to align a lens to the human faces;
and the position information obtaining module is used for responding to the number of the human faces in the image which is greater than or equal to 1 according to the detection result of the image detection module and obtaining the position information of the human faces according to the human faces detected in the image.
In another embodiment of the above apparatus according to the present invention, the image detection unit further includes:
the first judgment module is used for judging whether the number of the faces in the image is more than 1;
and the face position marking module is used for responding to the situation that the number of the faces in the image is more than 1 according to the judgment result of the first judgment module, and marking the position of the face in the image by a frame according to the position information of the face in the image.
In another embodiment of the above apparatus according to the present invention, the image detection unit further includes:
the second judgment module is used for responding to the situation that the number of the human faces in the image is equal to 1 according to the judgment result of the first judgment module, and judging whether the lowest end of the human faces in the image reaches or exceeds a preset critical line or not according to the position information of the human faces in the image; the preset critical line is determined according to preset size information of characters displayed in the image;
and the prompt information display module is used for responding to the fact that the lowest end of the face in the image reaches or exceeds a preset critical line according to the judgment result of the second judgment module, and displaying the preset critical line in the image so as to prompt a user to adjust the position of the face in the image.
In another embodiment of the above apparatus according to the present invention, the color value obtaining unit includes:
the first obtaining module is used for obtaining the sex and age information of the face in the image according to the feature data of the face in the image;
the second obtaining module is used for obtaining the face value information of the face in the image according to the gender and age information of the face in the image and a preset rule; the preset rules comprise: different color value evaluation mechanisms are adopted for different sexes and age groups.
In another embodiment of the above apparatus according to the present invention, the image display unit includes:
the third judging module is used for judging whether the number of the human faces in the image is more than 1 according to the position information of the human faces in the image;
the face value display module is used for responding to the situation that the number of the faces in the image is equal to 1 according to the judgment result of the third judgment module, and displaying the face value information of the faces in the area below the heads of the faces in the image; and in response to the number of faces in the image being greater than 1, displaying color value information of the faces in an area above the heads of the faces in the image.
In another embodiment of the above apparatus according to the present invention, the color value information includes: a color score; the color value display module is specifically configured to:
comparing the face value scores of the faces in the images;
according to the comparison result of the face color value scores in the image, displaying crown in the area above the face head with the highest face color value score in the image, and displaying the corresponding face color value information in the area above all the face heads except the face with the highest face color value score in the image.
In another embodiment of the above apparatus according to the present invention, the image includes at least one face having the highest color value score.
In another embodiment of the above apparatus according to the present invention, the color value information includes: a color score; the color value display module is specifically configured to:
judging whether the face value score in the image is lower than a preset threshold value or not;
if the face score in the image is lower than a preset threshold value, displaying the excited words in the area above the corresponding face head in the image; and if the face value score of the face in the image is equal to or higher than a preset threshold value, displaying the corresponding face value information in the area above the corresponding face head in the image.
In another embodiment of the above apparatus according to the present invention, the color value information of different faces corresponds to the same stimulated utterance or different stimulated utterances.
In another embodiment of the above apparatus according to the present invention, if the color value information of different faces corresponds to different excited words, each excited word corresponds to a predetermined color value score interval.
In another embodiment of the above apparatus according to the present invention, the color value display module is specifically configured to:
acquiring gender information of the face in the image;
and displaying a dialog box with preset colors corresponding to the gender information in real time in an area above the head of the face in the image according to the gender information of the face in the image, and displaying the color value information of the face in the dialog box.
In another embodiment of the above apparatus according to the present invention, further comprising:
the communication unit is used for uploading the sex and age information of the face and the face value information to a server; acquiring the position of the face value information of the face in the image in the face value information of the face prestored in the server from the server;
the gender information corresponding to the face color value information prestored in the server is consistent with the gender information corresponding to the face color value information in the image, and the difference value between the age information corresponding to the face color value information prestored in the server and the age information corresponding to the face color value information in the image is in the range of a preset value;
the color value display module is specifically configured to: and displaying the face color value information in the area below the head of the face in the image and the position of the face color value information in the image, which is acquired from the server, in the face color value information prestored in the server.
In another embodiment of the above apparatus according to the present invention, further comprising:
the receiving unit is used for receiving a beautifying instruction;
the beautifying unit is used for performing beautifying processing on the image according to the beautifying instruction;
the image detection unit is specifically configured to: detecting the image after the face beautifying, and obtaining the position information of the face in the image after the face beautifying;
the data acquisition unit is specifically configured to: acquiring feature data of the face in the beautified image according to the position information of the face in the beautified image;
the color value obtaining unit is specifically configured to: and obtaining the face value information of the face in the beautified image according to the feature data of the face in the beautified image.
The image display unit is specifically configured to: and displaying the face value information of the face in the area except the head of the face in the image according to the position information of the face in the image after the face is beautified.
In another embodiment of the above apparatus according to the present invention, the beautifying unit comprises at least one beautifying process.
In another embodiment of the above apparatus according to the present invention, further comprising:
the receiving unit is used for receiving a photographing instruction;
and the photographing unit is used for obtaining a photo with the face value information of the face according to the photographing instruction.
In another embodiment of the above apparatus according to the present invention, the receiving unit is further configured to receive a save instruction;
the apparatus for detecting a face value further includes:
and the storage unit is used for storing the photo on which the face color value information is displayed according to the storage instruction.
In another embodiment of the above apparatus according to the present invention, the receiving unit is further configured to receive a sharing instruction;
the apparatus for detecting a face value further includes:
and the execution unit is used for sending the photo with the face value information to a preset address according to the sharing instruction.
According to still another aspect of the embodiments of the present invention, there is provided a mobile terminal including: a processor and a memory; wherein,
the memory is used for storing a program of the method for detecting the face value of the person in any embodiment;
the processor is used for executing the program of the method for detecting the face value stored in the memory.
Based on the method, the device and the mobile terminal for detecting the face value provided by the embodiments of the present invention, the position information of the face in the image is obtained by detecting the image, the feature data of the face in the image is obtained according to the position information of the face in the image, the face value information of the face in the image is further obtained according to the feature data of the face in the image, and the obtained face value information is displayed in the region other than the head of the face in the image, so that a photo with the face value information displayed thereon can be obtained, and the interestingness and the experience of the user can be increased.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
The invention will be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of one embodiment of a method of detecting a face value of a person in accordance with embodiments of the present invention.
Fig. 2 is a flowchart of another embodiment of a method for detecting a face value according to an embodiment of the present invention.
Fig. 3 is a flowchart of another embodiment of a method for detecting a face value according to an embodiment of the present invention.
Fig. 4 is a block diagram of an embodiment of an apparatus for detecting a face value according to an embodiment of the present invention.
Fig. 5 is a block diagram of another embodiment of an apparatus for detecting a face value according to an embodiment of the present invention.
Fig. 6 is a block diagram of still another embodiment of an apparatus for detecting a face value according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
FIG. 1 is a flow chart of one embodiment of a method of detecting a face value of a person in accordance with embodiments of the present invention. As shown in fig. 1, the method for detecting a face value of a person of the embodiment includes:
s102, detecting the image and obtaining the position information of the face in the image.
In a specific implementation, a method for obtaining the position information of the face from the image may adopt a face recognition method commonly used in the prior art, such as a method based on a reference template, a method based on a neural network, and the like.
And S104, acquiring feature data of the face in the image according to the position information of the face in the image.
In a specific implementation, the feature data of the face may be a feature vector of the face obtained by extracting features of the face in the image, where the features of the face include, but are not limited to, the shape and position of the face and five sense organs. The specific method for obtaining the feature data of the face from the image may adopt a face feature extraction method commonly used in the prior art, such as a statistical-based method, a neural network-based method, and the like.
And S106, acquiring the face value information of the face in the image according to the feature data of the face in the image.
The face value information of the face may include: the color value score can also comprise: age group information of the face, etc.
In a specific implementation, since the color value of a person is affected by gender and age, in order to obtain more accurate evaluation of the color value in an image, there should be a difference between evaluation mechanisms adopted when evaluating the color value for faces of different genders and ages.
In one specific example, operation S106 may include: acquiring gender and age information of the face in the image according to the feature data of the face in the image; and obtaining the information of the face value in the image according to the gender and age information of the face in the image and a preset rule. Wherein the preset rules include: different color value evaluation mechanisms are adopted for different sexes and age groups.
And S108, displaying the face color value information in the area except the head of the face in the image according to the position information of the face in the image.
In specific implementation, the face value information of the face can be displayed in an area above the head of the face and can also be displayed in an area below the head of the face, but not limited to this, so as to ensure that the face is not shielded.
In one specific example, operation S108 may include: judging whether the number of the faces in the image is more than 1 or not according to the position information of the faces in the image; if the number of the human faces in the image is equal to 1, displaying the face value information in the area below the head of the human faces in the image; and if the number of the human faces in the image is more than 1, displaying the face value information in the area above the head of the human face in the image. That is, in the case of having more than one face in the image, the color value information of the face is displayed in the area above the head of the face in the image; in the case where there is only one face in the image, the face color value information is displayed in the area under the head of the face in the image.
Based on the method for detecting the face value provided by the above embodiment of the present invention, the position information of the face in the image is obtained by detecting the image, the feature data of the face in the image is obtained according to the position information of the face in the image, the face value information of the face in the image is further obtained according to the feature data of the face in the image, and the obtained face value information is displayed in the region other than the head of the face in the image, so that a photo showing the face value information can be obtained, and the interestingness and the experience of the user are increased.
Fig. 2 is a flowchart of another embodiment of a method for detecting a face value according to an embodiment of the present invention. As shown in fig. 2, compared with the embodiment shown in fig. 1, in the method for detecting a face value of a person of this embodiment, in operation S102, an image is detected, and position information of the face in the image is obtained, including:
s202, detecting whether the number of the human faces in the image is larger than or equal to 1.
If the number of faces in the image is less than 1, executing operation S204; otherwise, if the number of faces in the image is greater than or equal to 1, operation S206 is performed.
And S204, displaying prompt information in the image to prompt a user to aim the lens at the face.
And S206, obtaining the position information of the human face according to the human face detected in the image.
Further, when the method of detecting a face value of an embodiment of the present invention displays face value information, when distinguishing between a case where there is only one face in an image and a case where there is more than one face in an image, for example, in a case where there is only one face in an image, the face value information of the face is displayed in an area below the head of the face in the image; in the case of an image having more than one face, the area above the head of the face in the image displays the face's color value information. Operation S102, detecting an image, and obtaining position information of a face in the image, may further include:
and S208, judging whether the number of the human faces in the image is more than 1.
If the number of faces in the image is greater than 1, performing operation S210; otherwise, if the number of faces in the image is equal to 1, operation S212 is performed.
And S210, marking the position of the face in the image by a frame according to the position information of the face in the image.
S212, judging whether the lowest end of the face in the image reaches or exceeds a preset critical line according to the position information of the face in the image.
The preset critical line is determined according to the preset size information of characters displayed in the image, namely, the face is not shielded when the face color value information is displayed below the image.
If the lowest end of the face in the image reaches or exceeds the preset critical line, executing operation S214; otherwise, if the lowest end of the face in the image does not reach the preset critical line, the subsequent operations of the embodiment are continuously executed.
And S214, displaying a preset critical line in the image to prompt a user to adjust the position of the face in the image.
In a specific implementation, in operation S214, the preset critical line may be displayed in the image, and meanwhile, the prompt information may be displayed, so as to remind the user to perform adjustment in a more striking manner.
In a specific example of the method of detecting a face value according to the above embodiments of the present invention, for a case where there is more than one face in an image, the face value information includes: a color score; according to the position information of the human face in the image, the method for displaying the face value information of the human face in the area except the head of the human face in the image comprises the following steps: comparing the face value scores of the faces in the images; according to the comparison result of the face color value scores in the images, a crown is displayed in the area above the face head with the highest face color value score in the images, and the corresponding face color value information is displayed in the area above all the face heads except the face with the highest face color value score in the images.
In a specific implementation, at least one face with the highest color score may be included in the image, for example, more than two faces in the image have the same highest color score, in this case, the crown is displayed in the area above all the faces with the highest color score in the image, and the corresponding face color information is displayed in the area above all the faces except the face with the highest color score in the image.
In another specific example of the method of detecting a face value according to the above embodiments of the present invention, for a case where there is more than one face in an image, the face value information includes: a color score; according to the position information of the human face in the image, the method for displaying the face value information of the human face in the area except the head of the human face in the image comprises the following steps: judging whether the face value score in the image is lower than a preset threshold value or not; if the face score in the image is lower than a preset threshold value, displaying the excited words in the area above the corresponding face head in the image; if the face value score of the face in the image is equal to or higher than the preset threshold, displaying the corresponding face color value information in the region other than the corresponding face head in the image, for example, displaying the corresponding face color value information in the region above the corresponding face head in the image.
In particular implementations, the stimulated utterance can include: "potential strand", "sprouting tertiary", and the like. The different face color value scores may correspond to the same stimulated utterance, or to different stimulated utterances. Specifically, if the face score of different faces corresponds to different excited words, each excited word may correspond to a predetermined face score interval. For example, an utterance corresponding to an incentive with a face score between 40 and 50 points may be a "potential stock".
In another specific example of the method of detecting a face value according to the above embodiments of the present invention, for a case where there is more than one face in an image, the displaying the face value information of the face in a region other than the head of the face in the image according to the position information of the face in the image includes: acquiring gender information of a face in an image; and displaying a dialog box with preset colors corresponding to the gender information in the area above the head of the human face in the image according to the gender information of the human face in the image, and displaying the color value information of the human face in the dialog box.
In a specific implementation, the gender information of the face in the image can be obtained by identifying the face in the image according to the feature data of the face in the image. Specifically, the recognition method may adopt a face recognition method commonly used in the prior art, such as a neural network-based method.
Specifically, in practical applications, a blue dialog box may represent a male, and a pink dialog box represents a female, so that when displaying the color value information of a face, the gender of the face in an image may be distinguished according to the color of the dialog box.
The three specific examples for increasing the interest of the display effect may be used alone, or may be used in combination with each other, for example, any two of them may be combined, or the three may be combined.
In another specific example of the method of detecting a face value according to the above embodiments of the present invention, for a case where there is more than one face in an image, the face value information includes: a color score; according to the position information of the human face in the image, the method for displaying the face value information of the human face in the area except the head of the human face in the image comprises the following steps: judging whether the face value score in the image is lower than a preset threshold value or not; if the face score in the image is lower than a preset threshold value, displaying the excited words in the area above the corresponding face head in the image; if the face value score of the face in the image is equal to or higher than the preset threshold, displaying the corresponding face color value information in the region other than the corresponding face head in the image, for example, displaying the corresponding face color value information in the region above the corresponding face head in the image.
For the case that there is only one face in the image, the method for detecting a face value according to the above embodiments of the present invention may further provide a function for the user to upload the gender and age information of the face and the face value information to the server by setting a corresponding operation interface, and obtain a position of the face value information in the image in the face value information of the face pre-stored in the server from the server, for example, a percentage of the face value in the image in the face value of the face stored in the server, so as to obtain an overall status of the face value in the image.
The gender information corresponding to the face color value information prestored in the server is consistent with the gender information corresponding to the face color value information in the image, and the difference value between the age information corresponding to the face color value information prestored in the server and the age information corresponding to the face color value information in the image is in the range of a preset value.
At this time, when the face color value information is displayed in the region other than the head of the face in the image based on the position information of the face in the image, the position of the face color value information of the face in the image acquired from the server in the face color value information of the face prestored in the server is also displayed in the region other than the head of the face in the image. For example, when the area under the head of the face in the image displays the color value information of the face, the area under the head of the face in the image also displays the position of the color value information of the face in the image acquired from the server in the color value information of the face prestored in the server.
Fig. 3 is a flowchart of another embodiment of a method for detecting a face value according to an embodiment of the present invention. As shown in fig. 3, the method for detecting a face value of a person of the embodiment includes:
s302, receiving a beautifying instruction.
And S304, performing beautifying processing on the image according to the beautifying instruction.
In a specific implementation, the beautifying process may include: the common beauty treatment methods of whitening, filtering, peeling, big eyes, face thinning and the like can also be set with a plurality of levels for each beauty treatment method, and the users can select the method by setting corresponding operation interfaces. The beautifying processing of operation S304 may include at least one item of beautifying operation, that is, only one kind of beautifying processing may be used alone for operation S304, or multiple kinds of beautifying processing may be used in a superimposed manner, so as to beautify the display effect of the picture by setting the function of beautifying, obtain a higher color value, and further increase the interest and interest of the user.
S306, detecting the beautified image to obtain the position information of the face in the beautified image.
And S308, acquiring feature data of the face in the beautified image according to the position information of the face in the beautified image.
And S310, acquiring the face value information of the face in the beautified image according to the feature data of the face in the beautified image.
And S312, displaying the face value information of the face in the area except the head of the face in the image according to the position information of the face in the beautified image.
The method for detecting the face value of the user according to the embodiments of the present invention may further provide a function for the user to take a picture showing face value information by setting a corresponding operation interface. Specifically, the method further comprises the following steps of, after displaying the face color value information in the region except the head of the face in the image according to the position information of the face in the image: receiving a photographing instruction; and according to the photographing instruction, obtaining a photo with the face value information of the face.
The method for detecting the face value of the user according to the embodiments of the present invention may further provide a function of storing a photo showing face value information by the user through setting a corresponding operation interface. Specifically, the method may include: receiving a saving instruction; and saving the photo with the face value information according to the saving instruction, wherein the photo with the face value information is saved in the photo album.
The method for detecting the face value of the user according to the embodiments of the present invention may further provide a function of sharing a photo showing face value information by the user through setting a corresponding operation interface. Specifically, the method may include: receiving a sharing instruction; and sending the picture with the face value information to a preset address according to the sharing instruction, and sharing the picture with friends.
Fig. 4 is a block diagram of an embodiment of an apparatus for detecting a face value according to an embodiment of the present invention. As shown in fig. 4, the apparatus for detecting a face value of a person according to this embodiment includes: the device comprises an image detection unit, a data acquisition unit, a color value acquisition unit and an image display unit. Wherein,
and the image detection unit is used for detecting the image and obtaining the position information of the face in the image.
In a specific implementation, a method for obtaining the position information of the face from the image may adopt a face recognition method commonly used in the prior art, such as a method based on a reference template, a method based on a neural network, and the like.
And the data acquisition unit is used for acquiring the characteristic data of the face in the image according to the position information of the face in the image.
In a specific implementation, the feature data of the face may be a feature vector of the face obtained by extracting features of the face in the image, where the features of the face include, but are not limited to, the shape and position of the face and five sense organs. The specific method for obtaining the feature data of the face from the image may adopt a face feature extraction method commonly used in the prior art, such as a statistical-based method, a neural network-based method, and the like.
And the color value obtaining unit is used for obtaining the color value information of the face in the image according to the feature data of the face in the image.
The face value information of the face may include: the color value score can also comprise: age group information of the face, etc.
In a specific implementation, since the color value of a person is influenced by gender and age, in order to obtain more accurate evaluation of the color value, there should be a difference in the evaluation mechanism adopted when evaluating the color value for persons of different genders and ages.
In a specific example, the color value obtaining unit may include: the first obtaining module is used for obtaining the sex and age information of the face in the image according to the feature data of the face in the image; the second obtaining module is used for obtaining the face value information of the face in the image according to the gender and age information of the face in the image and a preset rule; wherein the preset rules include: different color value evaluation mechanisms are adopted for different sexes and age groups.
And the image display unit is used for displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image.
In specific implementation, the face value information of the face can be displayed in an area above the head of the face and can also be displayed in an area below the head of the face, but not limited to this, so as to ensure that the face is not shielded.
In one specific example, the image display unit includes: the third judging module is used for judging whether the number of the faces in the image is more than 1 according to the position information of the faces in the image; the face value display module is used for responding to the fact that the number of the human faces in the image is equal to 1 according to the judgment result of the third judgment module, and displaying face value information of the human faces in the area below the heads of the human faces in the image; and in response to the number of faces in the image being greater than 1, displaying color value information of the faces in the image in an area above the heads of the faces. That is, in the case of having more than one face in the image, the color value information of the face is displayed in the area above the head of the face in the image; in the case where there is only one face in the image, the face color value information is displayed in the area under the head of the face in the image.
Based on the apparatus for detecting a face value provided in the above embodiment of the present invention, the position information of the face in the image is obtained by detecting the image, the feature data of the face in the image is obtained according to the position information of the face in the image, the face value information of the face in the image is further obtained according to the feature data of the face in the image, and the obtained face value information is displayed in the region other than the head of the face in the image, so that a photo showing the face value information can be obtained, and the interestingness and the experience of the user can be increased.
Fig. 5 is a block diagram of another embodiment of an apparatus for detecting a face value according to an embodiment of the present invention. As shown in fig. 5, in the apparatus for detecting a face value of a person of this embodiment, compared with the embodiment shown in fig. 4, the image detecting unit includes:
and the image detection module is used for detecting whether the number of the human faces in the image is more than or equal to 1.
And the prompt information display module is used for responding to the number of the human faces in the image less than 1 according to the detection result of the image detection module, displaying prompt information in the image and prompting a user to aim the lens at the human faces.
And the position information obtaining module is used for responding to the number of the human faces in the image being more than or equal to 1 according to the detection result of the image detection module and obtaining the position information of the human faces according to the human faces detected in the image.
Further, when the method of detecting a face value of an embodiment of the present invention displays face value information, when distinguishing between a case where there is only one face in an image and a case where there is more than one face in an image, for example, in a case where there is only one face in an image, the face value information of the face is displayed in an area below the head of the face in the image; in the case of an image having more than one face, the area above the head of the face in the image displays the face's color value information. The image detection unit may further include:
the first judging module is used for judging whether the number of the faces in the image is larger than 1.
And the face position marking module is used for responding to the situation that the number of the faces in the image is more than 1 according to the judgment result of the first judgment module, and marking the position of the face in the image by a frame according to the position information of the face in the image.
And the second judging module is used for responding to the number of the human faces in the image being equal to 1 according to the judging result of the first judging module, and judging whether the lowest end of the human faces in the image reaches or exceeds a preset critical line or not according to the position information of the human faces in the image.
The preset critical line is determined according to the preset size information of characters displayed in the image, namely, the face is not shielded when the face color value information is displayed below the image.
And the prompt information display module is further used for responding to the fact that the lowest end of the face in the image reaches or exceeds a preset critical line according to the judgment result of the second judgment module, and displaying the preset critical line in the image so as to prompt a user to adjust the position of the face in the image.
In specific implementation, the prompt information display module can also display the prompt information while displaying the preset critical line in the image, so as to remind the user of adjustment in a more striking manner.
In a specific example of the apparatus for detecting a face value according to the above embodiments of the present invention, for a case where there is more than one face in an image, the face value information includes: a color score; the color value display module is specifically configured to: comparing the face value scores of the faces in the images; according to the comparison result of the face color value scores in the images, a crown is displayed in the area above the face head with the highest face color value score in the images, and the corresponding face color value information is displayed in the area above all the face heads except the face with the highest face color value score in the images.
In a specific implementation, at least one face with the highest color score may be included in the image, for example, more than two faces in the image have the same highest color score, in this case, the crown is displayed in the area above all the faces with the highest color score in the image, and the corresponding face color information is displayed in the area above all the faces except the face with the highest color score in the image.
In another specific example of the apparatus for detecting a face value of a person according to the above embodiments of the present invention, for a case where there is more than one face in an image, the face value information includes: a color score; the color value display module is specifically configured to: judging whether the face value score in the image is lower than a preset threshold value or not; if the face score in the image is lower than a preset threshold value, displaying the excited words in the area above the corresponding face head in the image; if the face value score of the face in the image is equal to or higher than the preset threshold, displaying the corresponding face color value information in the region other than the corresponding face head in the image, for example, displaying the corresponding face color value information in the region above the corresponding face head in the image.
In particular implementations, the stimulated utterance can include: "potential strand", "sprouting tertiary", and the like. The different face color value scores may correspond to the same stimulated utterance, or to different stimulated utterances. Specifically, if the face score of different faces corresponds to different excited words, each excited word may correspond to a predetermined face score interval. For example, an utterance corresponding to an incentive with a face score between 40 and 50 points may be a "potential stock".
In another specific example of the apparatus for detecting a face color value according to the above embodiments of the present invention, the color value display module is specifically configured to: acquiring gender information of a face in an image; displaying a dialog box with a preset color corresponding to the gender information in the region except the head of the face in the image according to the gender information of the face in the image, and displaying the color value information of the face in the dialog box, for example, displaying the dialog box with the preset color corresponding to the gender information in the region above the head of the face in the image in real time, and displaying the color value information of the face in the dialog box.
In a specific implementation, the gender information of the face in the image can be obtained by identifying the face in the image according to the feature data of the face in the image. Specifically, the recognition method may adopt a face recognition method commonly used in the prior art, such as a neural network-based method.
Specifically, in practical applications, a blue dialog box may represent a male, and a pink dialog box represents a female, so that when displaying the color value information of a face, the gender of the face in an image may be distinguished according to the color of the dialog box.
For the case that there is only one face in the image, the apparatus for detecting a face value according to the above embodiments of the present invention may further include a communication unit for uploading the sex and age information of the face and the face value information to the server, and obtaining the position of the face value information in the image in the face value information of the face pre-stored in the server from the server, for example, the percentage of the face value in the image in the face value of the face stored in the server, so as to obtain the overall status of the face value in the image.
The gender information corresponding to the face color value information prestored in the server is consistent with the gender information corresponding to the face color value information in the image, and the difference value between the age information corresponding to the face color value information prestored in the server and the age information corresponding to the face color value information in the image is in the range of a preset value.
At this time, the color value display module is specifically configured to: when the area outside the head of the face in the image displays the face color value information, the area outside the head of the face in the image also displays the position of the face color value information of the face in the image acquired from the server in the face color value information of the face prestored in the server. For example, when the area under the head of the face in the image displays the color value information of the face, the area under the head of the face in the image also displays the position of the color value information of the face in the image acquired from the server in the color value information of the face prestored in the server.
Fig. 6 is a block diagram of still another embodiment of an apparatus for detecting a face value according to an embodiment of the present invention. As shown in fig. 6, the apparatus for detecting a face value in this embodiment includes:
and the receiving unit is used for receiving the beautifying instruction.
And the beautifying unit is used for performing beautifying processing on the image according to the beautifying instruction.
In a specific implementation, the beautifying process may include: the common beauty treatment methods of whitening, filtering, peeling, big eyes, face thinning and the like can also be set with a plurality of levels for each beauty treatment method, and the users can select the method by setting corresponding operation interfaces. The beautifying processing of the beautifying unit can comprise at least one item of beautifying operation, namely, the beautifying unit can only use one kind of beautifying processing independently, and also can use a plurality of kinds of beautifying processing in a superposed manner, so that the display effect of the picture is beautified by setting the function of beautifying, a higher color value is obtained, and the interest and interest of the user are further increased.
And the image detection unit is used for detecting the beautified image and obtaining the position information of the face in the beautified image.
And the data acquisition unit is used for acquiring the feature data of the face in the beautified image according to the position information of the face in the beautified image.
And the face value obtaining unit is used for obtaining the face value information of the face in the beautified image according to the feature data of the face in the beautified image.
And the image display unit is used for displaying the face value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the beautified image.
The device for detecting the face value of the user according to the above embodiments of the present invention may further provide a function for the user to take a photo showing face value information by setting a corresponding operation interface. Specifically, the apparatus for detecting a face value according to the above embodiments of the present invention may be provided with a receiving unit for receiving a photographing instruction; and the photographing unit can be further provided for obtaining a photo with the face value information of the human face according to the photographing instruction.
The device for detecting the face value of the user according to the above embodiments of the present invention may further provide a function for the user to save the photo on which the face value information is displayed by setting the corresponding operation interface. Specifically, the receiving unit of the apparatus for detecting a face value according to the above embodiments of the present invention is further configured to receive a save instruction; the apparatus for detecting a face value according to the above embodiments of the present invention further includes a storage unit configured to store a photo showing face value information of a person's face according to a storage instruction, wherein the photo showing face value information of the person's face is stored in a photo album.
The device for detecting the face value of the user according to the embodiments of the present invention may further provide a function of allowing the user to share the photo with the face value information displayed by setting the corresponding operation interface. Specifically, the receiving unit of the apparatus for detecting a face value according to the above embodiments of the present invention is further configured to receive a sharing instruction; the device for detecting the face value of the person according to the embodiments of the present invention further includes an execution unit, configured to send a picture showing face value information to a predetermined address according to the sharing instruction, and share the picture with a friend.
In addition, an embodiment of the present invention further provides a mobile terminal, which may be a mobile phone, a notebook computer, a PDA, a tablet computer, or the like, and the mobile terminal has a processor and a memory, where the memory is used for storing a program of the method for detecting a face value according to any of the above embodiments of the present invention, and the processor is used for executing the program of the method for detecting a face value stored in the memory.
Based on the mobile terminal provided by the above embodiment of the present invention, the position information of the face in the image is obtained by detecting the image, the feature data of the face in the image is obtained according to the position information of the face in the image, the color value information of the face in the image is further obtained according to the feature data of the face in the image, and the obtained color value information of the face is displayed in the region other than the head of the face in the image, so that a photo with the color value information of the face is obtained, and the interest and experience of the user are increased.
The embodiment of the invention provides the following technical scheme:
1. a method of detecting a face value, comprising:
detecting an image to obtain position information of a human face in the image;
acquiring feature data of the face in the image according to the position information of the face in the image;
acquiring the face value information of the face in the image according to the feature data of the face in the image;
and displaying the face color value information in the area except the head of the face in the image according to the position information of the face in the image.
2. The method according to 1, wherein the detecting the image and obtaining the position information of the face in the image comprises:
detecting whether the number of human faces in the image is greater than or equal to 1;
if the number of the faces in the image is less than 1, displaying prompt information in the image to prompt a user to align a lens with the faces; and if the number of the faces in the image is more than or equal to 1, obtaining the position information of the faces according to the faces detected in the image.
3. The method according to 2, wherein the detecting the image and obtaining the position information of the face in the image further comprises:
judging whether the number of the faces in the image is more than 1; and if the number of the faces in the image is more than 1, marking the positions of the faces in the image by boxes according to the position information of the faces in the image.
4. The method according to 3, wherein the detecting the image and obtaining the position information of the face in the image further comprises:
if the number of the faces in the image is equal to 1, judging whether the lowest end of the faces in the image reaches or exceeds a preset critical line or not according to the position information of the faces in the image; the preset critical line is determined according to preset size information of characters displayed in the image;
and if the lowest end of the face in the image reaches or exceeds a preset critical line, displaying the preset critical line in the image to prompt a user to adjust the position of the face in the image.
5. The method according to any one of claims 1 to 4, wherein obtaining the color value information of the face in the image according to the feature data of the face in the image includes:
acquiring gender and age information of the face in the image according to the feature data of the face in the image;
obtaining the face value information of the face in the image according to the gender and age information of the face in the image and a preset rule; the preset rules comprise: different color value evaluation mechanisms are adopted for different sexes and age groups.
6. The method according to claim 5, wherein displaying, according to the position information of the face in the image, the color value information of the face in the region other than the head of the face in the image, comprises:
judging whether the number of the faces in the image is more than 1 or not according to the position information of the faces in the image;
if the number of the faces in the image is equal to 1, displaying the face value information in the area below the head of the face in the image; and if the number of the human faces in the image is more than 1, displaying the face value information in the area above the head of the human face in the image.
7. The method of claim 6, the color value information comprising: a color score; the displaying of the face color value information in the region above the head of the face in the image comprises:
comparing the face value scores of the faces in the images;
according to the comparison result of the face color value scores in the image, displaying crown in the area above the face head with the highest face color value score in the image, and displaying the corresponding face color value information in the area above all the face heads except the face with the highest face color value score in the image.
8. The method of 7, wherein the image comprises at least one face with the highest color value score.
9. The method of claim 6, the color value information comprising: a color score; the displaying of the face color value information in the region above the head of the face in the image comprises:
judging whether the face value score in the image is lower than a preset threshold value or not;
if the face score in the image is lower than a preset threshold value, displaying the excited words in the area above the corresponding face head in the image; and if the face value score of the face in the image is equal to or higher than a preset threshold value, displaying the corresponding face value information in the area above the corresponding face head in the image.
10. According to the method of 9, the color value information of different faces corresponds to the same stimulated utterance, or different stimulated utterances.
11. According to the method of 9, if the color value information of different faces corresponds to different excited words, each excited word corresponds to a preset color value score interval.
12. The method of 6, wherein displaying the face color value information in the region of the image above the head of the face, comprises:
acquiring gender information of the face in the image;
and displaying a dialog box with a preset color corresponding to the gender information in an area above the head of the human face in the image according to the gender information of the human face in the image, and displaying the color value information of the human face in the dialog box.
13. The method of claim 6, further comprising:
uploading the sex and age information of the face and the face value information to a server;
acquiring the position of the face value information of the face in the image in the face value information of the face prestored in the server from the server;
the gender information corresponding to the face color value information prestored in the server is consistent with the gender information corresponding to the face color value information in the image, and the difference value between the age information corresponding to the face color value information prestored in the server and the age information corresponding to the face color value information in the image is in the range of a preset value;
the displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image comprises the following steps: and displaying the face color value information in the area below the head of the face in the image and the position of the face color value information in the image, which is acquired from the server, in the face color value information prestored in the server.
14. The method of any of claims 1 to 13, further comprising:
receiving a beautifying instruction;
performing beautifying processing on the image according to the beautifying instruction;
the detecting the image and obtaining the position information of the face in the image comprises: detecting the image after the face beautifying, and obtaining the position information of the face in the image after the face beautifying;
the obtaining of the feature data of the face in the image according to the position information of the face in the image includes: acquiring feature data of the face in the beautified image according to the position information of the face in the beautified image;
the obtaining of the color value information of the face in the image according to the feature data of the face in the image includes: obtaining the face value information of the face in the beautified image according to the feature data of the face in the beautified image;
the displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image comprises: and displaying the face value information of the face in the area except the head of the face in the image according to the position information of the face in the image after the face is beautified.
15. The method of 14, the cosmetic treatment comprising at least one cosmetic treatment.
16. The method according to any one of claims 1 to 15, further comprising, after displaying, according to position information of a human face in the image, color value information of the human face in a region other than a head of the human face in the image:
receiving a photographing instruction;
and obtaining a photo with the face value information of the face according to the photographing instruction.
17. The method of claim 16, further comprising:
receiving a saving instruction;
and storing the photo with the face value information according to the storage instruction.
18. The method of claim 16 or 17, further comprising:
receiving a sharing instruction;
and sending the photo with the face value information to a preset address according to the sharing instruction.
19. An apparatus for detecting a face value, comprising:
the image detection unit is used for detecting an image and obtaining the position information of a human face in the image;
the data acquisition unit is used for acquiring the feature data of the face in the image according to the position information of the face in the image;
the face value obtaining unit is used for obtaining the face value information of the face in the image according to the feature data of the face in the image;
and the image display unit is used for displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image.
20. The apparatus of 19, the image detection unit comprising:
the image detection module is used for detecting whether the number of the human faces in the image is more than or equal to 1;
the prompt information display module is used for responding to the number of the human faces in the image being less than 1 according to the detection result of the image detection module, displaying prompt information in the image and prompting a user to align a lens to the human faces;
and the position information obtaining module is used for responding to the number of the human faces in the image which is greater than or equal to 1 according to the detection result of the image detection module and obtaining the position information of the human faces according to the human faces detected in the image.
21. The apparatus of 20, the image detection unit further comprising:
the first judgment module is used for judging whether the number of the faces in the image is more than 1;
and the face position marking module is used for responding to the situation that the number of the faces in the image is more than 1 according to the judgment result of the first judgment module, and marking the position of the face in the image by a frame according to the position information of the face in the image.
22. The apparatus of claim 21, the image detection unit further comprising:
the second judgment module is used for responding to the situation that the number of the human faces in the image is equal to 1 according to the judgment result of the first judgment module, and judging whether the lowest end of the human faces in the image reaches or exceeds a preset critical line or not according to the position information of the human faces in the image; the preset critical line is determined according to preset size information of characters displayed in the image;
and the prompt information display module is used for responding to the fact that the lowest end of the face in the image reaches or exceeds a preset critical line according to the judgment result of the second judgment module, and displaying the preset critical line in the image so as to prompt a user to adjust the position of the face in the image.
23. The apparatus of any of claims 19 to 22, the color value obtaining unit comprising:
the first obtaining module is used for obtaining the sex and age information of the face in the image according to the feature data of the face in the image;
the second obtaining module is used for obtaining the face value information of the face in the image according to the gender and age information of the face in the image and a preset rule; the preset rules comprise: different color value evaluation mechanisms are adopted for different sexes and age groups.
24. The apparatus of 23, the image display unit comprising:
the third judging module is used for judging whether the number of the human faces in the image is more than 1 according to the position information of the human faces in the image;
the face value display module is used for responding to the situation that the number of the faces in the image is equal to 1 according to the judgment result of the third judgment module, and displaying the face value information of the faces in the area below the heads of the faces in the image; and in response to the number of faces in the image being greater than 1, displaying color value information of the faces in an area above the heads of the faces in the image.
25. The apparatus of 24, the color value information comprising: a color score; the color value display module is specifically configured to:
comparing the face value scores of the faces in the images;
according to the comparison result of the face color value scores in the image, displaying crown in the area above the face head with the highest face color value score in the image, and displaying the corresponding face color value information in the area above all the face heads except the face with the highest face color value score in the image.
26. The apparatus of claim 25, the image comprising at least one face with a highest color score.
27. The apparatus of 24, the color value information comprising: a color score; the color value display module is specifically configured to:
judging whether the face value score in the image is lower than a preset threshold value or not;
if the face score in the image is lower than a preset threshold value, displaying the excited words in the area above the corresponding face head in the image; and if the face value score of the face in the image is equal to or higher than a preset threshold value, displaying the corresponding face value information in the area above the corresponding face head in the image.
28. According to the apparatus of 27, the color value information of different faces corresponds to the same stimulated utterance, or different stimulated utterances.
29. According to the apparatus of 27, if the face information of different faces corresponds to different excited words, each excited word corresponds to a predetermined color value score interval.
30. According to the apparatus of claim 24, the color value display module is specifically configured to:
acquiring gender information of the face in the image;
and displaying a dialog box with preset colors corresponding to the gender information in real time in an area above the head of the face in the image according to the gender information of the face in the image, and displaying the color value information of the face in the dialog box.
31. The apparatus of 24, further comprising:
the communication unit is used for uploading the sex and age information of the face and the face value information to a server; acquiring the position of the face value information of the face in the image in the face value information of the face prestored in the server from the server;
the gender information corresponding to the face color value information prestored in the server is consistent with the gender information corresponding to the face color value information in the image, and the difference value between the age information corresponding to the face color value information prestored in the server and the age information corresponding to the face color value information in the image is in the range of a preset value;
the color value display module is specifically configured to: and displaying the face color value information in the area below the head of the face in the image and the position of the face color value information in the image, which is acquired from the server, in the face color value information prestored in the server.
32. The apparatus of any of claims 19 to 31, further comprising:
the receiving unit is used for receiving a beautifying instruction;
the beautifying unit is used for performing beautifying processing on the image according to the beautifying instruction;
the image detection unit is specifically configured to: detecting the image after the face beautifying, and obtaining the position information of the face in the image after the face beautifying;
the data acquisition unit is specifically configured to: acquiring feature data of the face in the beautified image according to the position information of the face in the beautified image;
the color value obtaining unit is specifically configured to: and obtaining the face value information of the face in the beautified image according to the feature data of the face in the beautified image.
The image display unit is specifically configured to: and displaying the face value information of the face in the area except the head of the face in the image according to the position information of the face in the image after the face is beautified.
33. The apparatus of 32, the beauty unit comprising at least one beauty treatment.
34. The apparatus of any of claims 19 to 33, further comprising:
the receiving unit is used for receiving a photographing instruction;
and the photographing unit is used for obtaining a photo with the face value information of the face according to the photographing instruction.
35. The apparatus of 34, the receiving unit, further configured to receive a save instruction;
the apparatus for detecting a face value further includes:
and the storage unit is used for storing the photo on which the face color value information is displayed according to the storage instruction.
36. The apparatus according to 34 or 35, wherein the receiving unit is further configured to receive a sharing instruction;
the apparatus for detecting a face value further includes:
and the execution unit is used for sending the photo with the face value information to a preset address according to the sharing instruction.
37. A mobile terminal, comprising: a processor and a memory; wherein,
the memory is used for storing a program of the method for detecting the face value of the person in any one of 1 to 18;
the processor is used for executing the program of the method for detecting the face value stored in the memory.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the device embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The method and apparatus of the present invention may be implemented in a number of ways. For example, the methods and apparatus of the present invention may be implemented in software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustrative purposes only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically indicated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as a program recorded in a recording medium, the program including machine-readable instructions for implementing a method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Claims (10)
1. A method of detecting a face value, comprising:
detecting an image to obtain position information of a human face in the image;
acquiring feature data of the face in the image according to the position information of the face in the image;
acquiring the face value information of the face in the image according to the feature data of the face in the image;
and displaying the face color value information in the area except the head of the face in the image according to the position information of the face in the image.
2. The method of claim 1, wherein the detecting the image and obtaining the position information of the face in the image further comprises:
judging whether the number of the faces in the image is more than 1;
and if the number of the faces in the image is more than 1, marking the positions of the faces in the image by boxes according to the position information of the faces in the image.
3. The method of claim 2, wherein the detecting the image and obtaining the position information of the face in the image further comprises:
if the number of the faces in the image is equal to 1, judging whether the lowest end of the faces in the image reaches or exceeds a preset critical line or not according to the position information of the faces in the image; the preset critical line is determined according to preset size information of characters displayed in the image;
and if the lowest end of the face in the image reaches or exceeds a preset critical line, displaying the preset critical line in the image to prompt a user to adjust the position of the face in the image.
4. The method according to any one of claims 1 to 3, wherein the displaying the color value information of the human face in the image in the area except the head of the human face according to the position information of the human face in the image comprises:
judging whether the number of the faces in the image is more than 1 or not according to the position information of the faces in the image;
if the number of the faces in the image is equal to 1, displaying the face value information in the area below the head of the face in the image; and if the number of the human faces in the image is more than 1, displaying the face value information in the area above the head of the human face in the image.
5. The method of claim 4, wherein the color value information comprises: a color score; the displaying of the face color value information in the region above the head of the face in the image comprises:
comparing the face value scores of the faces in the images;
according to the comparison result of the face color value scores in the image, displaying crown in the area above the face head with the highest face color value score in the image, and displaying the corresponding face color value information in the area above all the face heads except the face with the highest face color value score in the image.
6. The method of claim 4, wherein the color value information comprises: a color score; the displaying of the face color value information in the region above the head of the face in the image comprises:
judging whether the face value score in the image is lower than a preset threshold value or not;
if the face score in the image is lower than a preset threshold value, displaying the excited words in the area above the corresponding face head in the image; and if the face value score of the face in the image is equal to or higher than a preset threshold value, displaying the corresponding face value information in the area above the corresponding face head in the image.
7. The method of claim 4, wherein displaying the face color value information in the region of the image above the head of the face comprises:
acquiring gender information of the face in the image;
and displaying a dialog box with a preset color corresponding to the gender information in an area above the head of the human face in the image according to the gender information of the human face in the image, and displaying the color value information of the human face in the dialog box.
8. The method of any one of claims 1 to 7, further comprising:
receiving a beautifying instruction;
performing beautifying processing on the image according to the beautifying instruction;
the detecting the image and obtaining the position information of the face in the image comprises: detecting the image after the face beautifying, and obtaining the position information of the face in the image after the face beautifying;
the obtaining of the feature data of the face in the image according to the position information of the face in the image includes: acquiring feature data of the face in the beautified image according to the position information of the face in the beautified image;
the obtaining of the color value information of the face in the image according to the feature data of the face in the image includes: obtaining the face value information of the face in the beautified image according to the feature data of the face in the beautified image;
the displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image comprises: and displaying the face value information of the face in the area except the head of the face in the image according to the position information of the face in the image after the face is beautified.
9. An apparatus for detecting a face value, comprising:
the image detection unit is used for detecting an image and obtaining the position information of a human face in the image;
the data acquisition unit is used for acquiring the feature data of the face in the image according to the position information of the face in the image;
the face value obtaining unit is used for obtaining the face value information of the face in the image according to the feature data of the face in the image;
and the image display unit is used for displaying the color value information of the human face in the area except the head of the human face in the image according to the position information of the human face in the image.
10. A mobile terminal, comprising: a processor and a memory; wherein,
the memory is used for storing a program of the method for detecting the face value of the human face according to any one of claims 1 to 8;
the processor is used for executing the program of the method for detecting the face value stored in the memory.
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 true CN106778627A (en) | 2017-05-31 |
CN106778627B 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) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107424130A (en) * | 2017-07-10 | 2017-12-01 | 北京小米移动软件有限公司 | Picture U.S. face method and apparatus |
CN107463943A (en) * | 2017-07-10 | 2017-12-12 | 北京小米移动软件有限公司 | Face value scoring method, training method and device with people's face value difference value grader |
WO2019061203A1 (en) * | 2017-09-28 | 2019-04-04 | 深圳传音通讯有限公司 | Method for acquiring change in facial attractiveness score, and terminal |
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 |
CN112989890A (en) * | 2019-12-17 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Image detection method, device and storage medium |
Citations (7)
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 |
-
2016
- 2016-12-20 CN CN201611188089.4A patent/CN106778627B/en active Active
Patent Citations (7)
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 |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107424130A (en) * | 2017-07-10 | 2017-12-01 | 北京小米移动软件有限公司 | Picture U.S. face method and apparatus |
CN107463943A (en) * | 2017-07-10 | 2017-12-12 | 北京小米移动软件有限公司 | Face value scoring method, training method and device with people's face value difference value grader |
CN107463943B (en) * | 2017-07-10 | 2020-07-21 | 北京小米移动软件有限公司 | Color value scoring method, training method and device of same-person color value difference classifier |
CN107424130B (en) * | 2017-07-10 | 2020-09-11 | 北京小米移动软件有限公司 | Picture beautifying method and device |
WO2019061203A1 (en) * | 2017-09-28 | 2019-04-04 | 深圳传音通讯有限公司 | Method for acquiring change in facial attractiveness score, and terminal |
CN111373409A (en) * | 2017-09-28 | 2020-07-03 | 深圳传音通讯有限公司 | Method and terminal for acquiring color value change |
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 |
CN112989890A (en) * | 2019-12-17 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Image detection method, device and storage medium |
CN112989890B (en) * | 2019-12-17 | 2024-08-02 | 腾讯科技(深圳)有限公司 | Image detection method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106778627B (en) | 2019-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106778627B (en) | Detect the method, apparatus and mobile terminal of face face value | |
EP3454250B1 (en) | Facial image processing method and apparatus and storage medium | |
US9922239B2 (en) | System, method, and program for identifying person in portrait | |
EP2902941B1 (en) | System and method for visually distinguishing faces in a digital image | |
US9852510B2 (en) | Method and apparatus for dividing image area | |
CN111814520A (en) | Skin type detection method, skin type grade classification method, and skin type detection device | |
US20170140210A1 (en) | Image processing apparatus and image processing method | |
KR20190018483A (en) | Internet-based facial beautification system | |
CN105426810B (en) | Information processing apparatus and image modification method | |
JP2017211970A (en) | Care information acquisition method, care information sharing method, and electronic device for those methods | |
CN111240482B (en) | Special effect display method and device | |
US20150002690A1 (en) | Image processing method and apparatus, and electronic device | |
US10255487B2 (en) | Emotion estimation apparatus using facial images of target individual, emotion estimation method, and non-transitory computer readable medium | |
KR102455966B1 (en) | Mediating Apparatus, Method and Computer Readable Recording Medium Thereof | |
CN110334746B (en) | Image detection method and device | |
CN108416235A (en) | The anti-peeping method, apparatus of display interface, storage medium and terminal device | |
CN107220614B (en) | Image recognition method, image recognition device and computer-readable storage medium | |
CN109670385B (en) | Method and device for updating expression in application program | |
US20130216136A1 (en) | Image processing apparatus, image processing method, storage medium and image processing system | |
CN110177205A (en) | Terminal device, photographic method and computer readable storage medium based on micro- expression | |
CN112149732A (en) | Image protection method and device, electronic equipment and storage medium | |
CN106791091B (en) | Image generation method and device and mobile terminal | |
CN110363111A (en) | Human face in-vivo detection method, device and storage medium based on lens distortions principle | |
CN110321009B (en) | AR expression processing method, device, equipment and storage medium | |
CN111626254B (en) | Method and device for triggering display animation |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |