CN108062404A - Processing method, device, readable storage medium storing program for executing and the terminal of facial image - Google Patents
Processing method, device, readable storage medium storing program for executing and the terminal of facial image Download PDFInfo
- Publication number
- CN108062404A CN108062404A CN201711459856.5A CN201711459856A CN108062404A CN 108062404 A CN108062404 A CN 108062404A CN 201711459856 A CN201711459856 A CN 201711459856A CN 108062404 A CN108062404 A CN 108062404A
- Authority
- CN
- China
- Prior art keywords
- face
- information
- facial image
- data group
- facial
- 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.)
- Withdrawn
Links
- 230000001815 facial effect Effects 0.000 title claims abstract description 219
- 238000003672 processing method Methods 0.000 title claims abstract description 34
- 230000014509 gene expression Effects 0.000 claims abstract description 53
- 238000000034 method Methods 0.000 claims abstract description 27
- 238000012545 processing Methods 0.000 claims description 30
- 241001465754 Metazoa Species 0.000 claims description 11
- 230000006870 function Effects 0.000 description 17
- 238000005516 engineering process Methods 0.000 description 7
- 238000000605 extraction Methods 0.000 description 7
- 241000894007 species Species 0.000 description 5
- 230000006854 communication Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000002708 enhancing effect Effects 0.000 description 2
- 230000008921 facial expression Effects 0.000 description 2
- 238000012905 input function Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000018199 S phase Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 210000000887 face Anatomy 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000007935 neutral effect Effects 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000009452 underexpressoin Effects 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G06T3/04—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- 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
- G06V40/166—Detection; Localisation; Normalisation using acquisition arrangements
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
-
- 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
Abstract
A kind of processing method of facial image, device, readable storage medium storing program for executing and terminal, this method, including:Facial image is captured by camera, and parses the first face information in the facial image, the first face information includes age information and gender information;A face data group with the first face information matches is chosen in the face database to prestore as current face's data group;Facial image is captured according to the camera in real time and parses the second face information, second face information includes expression information and facial angle information;Matched target facial image is chosen in current face's data group according to second face information in real time, is replaced with the facial image currently grabbed to the camera in the display page in real time.Method in the present embodiment can improve character image and choose efficiency and accuracy, make replaced facial image more natural, true, improve user experience.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of processing method of facial image, device, readable storage
Medium and terminal.
Background technology
With the continuous development of electronic technology, intelligent terminal, such as mobile phone, tablet computer etc. be increasingly becoming people with
The external world is linked up and the important tool of personal resource management, and many facilities are brought for people’s lives.
With the functional diversities of intelligent terminal, more and more application installations are applied in intelligent terminal.Wherein, take a picture
Machine is the important application on intelligent terminal, and most of intelligent terminals all possess camera function, is brought greatly for people’s lives
Facility and enjoyment.
In order to which the function of enhancing the interesting camera taken pictures is continuously increased, for example U.S. face of common function, addition word or
Pattern, face replacement etc..Wherein, face replacement function of the prior art is relatively simple, only by the people in the image taken pictures
Face replaces with a fixed facial image, no matter which kind of posture image of taking pictures is, the fixed facial image is all replaced with, with reality
Border is taken pictures, and scene is seriously indisposed, and it is poor that image replaces effect.
The content of the invention
In view of above-mentioned condition, it is necessary to carry out face for image of taking pictures in the prior art and replace the problem of effect is poor, carry
For a kind of processing method of facial image, device, readable storage medium storing program for executing and terminal.
A kind of processing method of facial image, including:
Facial image is captured by camera, and parses the first face information in the facial image, it is described the first
Face information includes age information and gender information;
It chooses to be used as with a face data group of the first face information matches in the face database to prestore and work as
Preceding face data group;
Facial image is captured according to the camera in real time and parses the second face information, second face information includes
Expression information and facial angle information;
Matched target face figure is chosen in current face's data group according to second face information in real time
Picture is replaced with the facial image currently grabbed to the camera in the display page in real time.
Further, the processing method of above-mentioned facial image, wherein, the selection and the first face information matches
Before the step of one face data group, the method further includes:
The age of acquisition user setting adds information and gender adds information, and the age, which adds information, to be included to age value
Increment or depreciation information, the gender add information and include whether to choose opposite gender;
Information is added according to the age and gender adds information and first face information is adjusted.
Further, the processing method of above-mentioned facial image, wherein, selection and the institute in the face database to prestore
The step of face data group for stating the first face information matches, includes:
In the face database to prestore choose simultaneously be consistent with the gender information in first face information and with
The equal one or more human face data groups of age information in first face information;
The selection returned according to user is instructed chooses a face data group in one or more of human face data groups
As current face's data group.
Further, the processing method of above-mentioned facial image, wherein, selection and the institute in the face database to prestore
State a face data group of the first face information matches includes as the step of current face's data group:
Current people's classification information is obtained, personage's classification information includes star's classification, animal category, cartoon character species
Other and self-defined classification;
Corresponding face classification number is chosen in the face database to prestore according to current people's classification information
According to storehouse;
It chooses in the face category database and makees with a face data group of the first face information match
For current face's data group.
Further, the processing method of above-mentioned facial image, wherein, the method further includes:
Acquisition corresponds to the human face data group of a personage under the face information drainage pattern of the camera, and stores to institute
It states in face database, the human face data group of the personage includes the age information of the personage, gender information and corresponds to
The specified expression of the personage and the human face image information of specified shooting angle.
Further, the processing method of above-mentioned facial image, wherein, the face information drainage pattern in the camera
The step of lower acquisition corresponds to the human face data group of a personage includes:
Face typing image is captured by the camera under the face information drainage pattern, and identifies the face record
Enter gender information and the age information of image;
Acquisition corresponds to multiple tables respectively under multiple expression acquisition interfaces of the camera and multiple angle acquisition interfaces
Multiple face typing images of feelings and multiple shooting angle, using the human face data group as the personage.
Further, the processing method of above-mentioned facial image, wherein, it is described to be existed in real time according to second face information
The step of choosing matched target facial image in current face's data group includes:
In current face's data group choose it is consistent with the expression information and with the facial angle information matches
Target facial image, it is described to refer to the facial angle information matches:The face angle for the target facial image chosen
Facial angle value of the angle value compared to other facial images in current face's data group and the people in the second face information
Face angle information is the most close.
The embodiment of the present invention additionally provides a kind of processing unit of facial image, including:
First parsing module for capturing facial image by camera, and parses the first in the facial image
Face information, the first face information include age information and gender information;
Module is chosen, for choosing a face with the first face information matches in the face database to prestore
Data group is as current face's data group;
Second parsing module, for capturing facial image in real time according to the camera and parsing the second face information, institute
Stating the second face information includes expression information and facial angle information;
Replacement module, for choosing matching in current face's data group according to second face information in real time
Target facial image, to be replaced in real time in the facial image that is currently grabbed to the camera of the display page.
Further, the processing unit of above-mentioned facial image, further includes:
Acquisition module, the age for obtaining user setting adds information and gender adds information, and the age adds letter
Breath is included to the increment of age value or depreciation information, and the gender adds information and includes whether to choose opposite gender;
Module is adjusted, for adding information according to the age and gender adds information and first face information is carried out
Adjustment.
Further, the processing unit of above-mentioned facial image, wherein, the selection module is specifically used for:
In the face database to prestore choose simultaneously be consistent with the gender information in first face information and with
The equal one or more human face data groups of age information in first face information;
The selection returned according to user is instructed chooses a face data group in one or more of human face data groups
As current face's data group.
Further, the processing unit of above-mentioned facial image, wherein, the selection module is specifically used for:
Current people's classification information is obtained, personage's classification information includes star's classification, animal category, cartoon character species
Other and self-defined classification;
Corresponding face classification number is chosen in the face database to prestore according to current people's classification information
According to storehouse;
It chooses in the face category database and makees with a face data group of the first face information match
For current face's data group.
Further, the processing unit of above-mentioned facial image, further includes:
Information acquisition module, for gathering the face corresponding to a personage under the face information drainage pattern of the camera
Data group, and store into the face database, the human face data group of the personage includes age information, the property of the personage
Other information and corresponding to the specified expression of the personage and the human face image information of specified shooting angle.
Further, the processing unit of above-mentioned facial image, wherein, described information acquisition module is specifically used for:
Face typing image is captured by the camera under the face information drainage pattern, and identifies the face record
Enter gender information and the age information of image;
Acquisition corresponds to multiple tables respectively under multiple expression acquisition interfaces of the camera and multiple angle acquisition interfaces
Multiple face typing images of feelings and multiple shooting angle, using the human face data group as the personage.
Further, the processing unit of above-mentioned facial image, wherein, the replacement module is specifically used for:
In current face's data group choose it is consistent with the expression information and with the facial angle information matches
Target facial image, it is described to refer to the facial angle information matches:The face angle for the target facial image chosen
Facial angle value of the angle value compared to other facial images in current face's data group and the people in the second face information
Face angle information is the most close.
The embodiment of the present invention additionally provides a kind of readable storage medium storing program for executing, is stored thereon with program, described program is by processor
The step of above-mentioned any one method is realized during execution.
The embodiment of the present invention additionally provides a kind of terminal, including memory, processor and storage on a memory and can
The step of program run on a processor, the processor realizes above-mentioned any one method when performing described program.
In the embodiment of the present invention, determined according to age information and gender information in current face's data group with currently taking pictures
The matched personage of facial image lineup's face data, improve character image and choose efficiency, and according to expression information and
Angle information is determined in lineup's face data of the personage, with the immediate target face figure of facial image currently taken pictures
Picture, and be replaced, make replaced facial image more natural, true, improve user experience.
Description of the drawings
Fig. 1 is the flow chart of the processing method of the facial image in first embodiment of the invention;
Fig. 2 is the flow chart of the processing method of the facial image in second embodiment of the invention;
Fig. 3 is the flow chart of the processing method of the facial image in third embodiment of the invention;
Fig. 4 is the flow chart of the processing unit of the facial image in fourth embodiment of the invention;
Fig. 5 is the structure diagram of terminal in the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.
With reference to following description and attached drawing, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions
In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to represent to implement the implementation of the present invention
Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, the present invention
Embodiment includes falling into all changes, modification and the equivalent in the range of the spirit and intension of attached claims.
Referring to Fig. 1, be a kind of processing method of facial image in the first real-time example of the invention, including step S11~
S14。
Step S11 captures facial image by camera, and parses the first face information in the facial image, institute
Stating the first face information includes age information and gender information.
The processing method of facial image in the present embodiment is applied in terminal, which possesses camera function, is equipped with
Camera.The terminal is, for example, mobile phone, tablet computer, wearable device etc., is handled in real time for the image to shooting.
When taking pictures, by the facial image taken pictures on interface of camera capture, and facial image is parsed, to obtain the
One face information, i.e. age information and gender information.Wherein, the first face information can be carried out according to existing face recognition technology
It obtains.
When it is implemented, face characteristic extraction can be carried out to the facial image of capture, face feature vector is obtained.Wherein,
Any one face characteristic extraction algorithm of the prior art can be used in the extraction of face characteristic, such as based on statistical method or base
In the method for neutral net.Corresponding age information and gender information are determined according to the face characteristic data of extraction, can specifically be led to
Cross establish training pattern or with come determine or by the face characteristic data of extraction and include all ages and classes (or age bracket),
Data in the database of the face characteristic of different sexes are compared, to determine the first face information in facial image.
It should be understood that the first face information is not limited to age information and gender information, can also be set according to actual conditions
Other information, herein without limiting.
Step S12 chooses a human face data with the first face information matches in the face database to prestore
Group is as current face's data group.Current face's data group include multiple expressions corresponding with first face information and
The facial image of angle.
The terminal prestores face database, which includes multiple human face data groups.Each face data group
Include multiple human face image informations of a default personage, specifically include the facial image of all angles and each expression.For example,
The human face data of multiple stars can be stored in face database, the plurality of star can be distributed in each different age bracket, difference
Gender.
According to the first face information of the facial image obtained in step S11, i.e. age information and gender information.In face
In database, lookup and the first face information face data group the most matched, and as current face's data group.
For example, the first obtained face information is the age 25, gender female at this point, in face database, searches the age as 25 or close
25, and gender is one face data group of woman.
It should be understood that in order to improve matching accuracy, same personage's all ages and classes (or year can be stored in the database
Age section) human face data.
Step S13 captures facial image according to the camera and parses the second face information in real time, second face
Information includes expression information and facial angle information.
Step S14 chooses matched mesh according to second face information in current face's data group in real time
Facial image is marked, is replaced with the facial image currently grabbed to the camera in the display page in real time.
The facial image of crawl is parsed to obtain the second face information, the i.e. expression information of facial image and face angle
Information is spent, can equally be obtained by the method for the face characteristic data of extraction.Wherein, the expression information parsed be, for example, like,
One kind in anger, sorrow, pleasure, can determine according to the face characteristic of extraction.The facial angle information parsed is to work as forefathers
The deflection angle of face.
In face database, each face data group includes each expression of default personage, the face figure of all angles
Picture, specifically, such as including respectively in pleasure, anger, sorrow, happiness multiple angles under expression facial image.Wherein, multiple angles
Including facing the angle with predetermined interval on 4 directions (to the left, to the right, upwards, downwards), it may for example comprise 0 degree (is faced shape
State), to the right deflect 5 degree, 10 degree ... ..., 90 degree, to the left deflection 5 degree, 10 degree ... ..., 90 degree, upward deflect 5 degree, 10
Degree ... ..., and deflects down 5 degree, 10 degree ... ..., 45 degree by 45 degree.
It should be understood that the human face data stored in face database is not limited to the human face data of people, can also be
Object or the human face data of cartoon figure, herein without limiting.Facial angle interval in each face data group can be according to reality
Border situation is configured, and herein also without limiting, and expression information mentioned above is only as an example, according to actual conditions also
Other expressions can be set or the image of pleasure, anger, sorrow, happiness expression is finely divided, obtain more facial expression images.
It is described to be chosen in real time according to second face information in current face's data group in above-mentioned steps
The step of target facial image matched somebody with somebody, includes:
In current face's data group choose it is consistent with the expression information and with the facial angle information matches
Target facial image, it is described to refer to the facial angle information matches:The face angle for the target facial image chosen
Facial angle value of the angle value compared to other facial images in current face's data group and the people in the second face information
Face angle information is the most close.
In expression information and facial angle information inquiry current face's data group in current face's image of crawl
Matching target facial image is chosen, and will show that the facial image on the page is replaced as target face figure in real time
Picture.
Under normal circumstances, the angled facial image of institute, the face of each facial image will not be stored in face database
Angle is angled interval.Therefore, the immediate facial image of angle is chosen.For example, the second face obtained
Information:For facial angle information to deflect 32 degree to the right, expression information is happiness.In the current face determined according to the first face information
In data group, it is the target face that face deflects to the right 30 degree, facial expression is happiness to search most matched target facial image
Image will show that current face's image on the page replaces with the target facial image.
It should be understood that when more people take pictures, the facial image of multiple personages is grabbed by camera, it can be to each face
Image is according to the replacement for carrying out facial image the step of above-mentioned S11~S14 respectively, realization principle and single facial image
It is identical.
It should be understood that the face image processing process in the embodiment of the present invention is not limited to use on intelligent terminal,
Also can be applied individually to any in a photographing device, such as digital camera.
The present embodiment obtains the age information and gender of facial image by being parsed to the facial image that camera is taken pictures
Information, and choose a matched human face data group in face database according to age information and gender information and be used as and work as forefathers
Face data group;Facial image is parsed again to obtain expression information and angle information, and according to expression information and angle information
A matched target facial image is chosen in current face's data group, and the facial image taken pictures is replaced with into target face
Image.In the present embodiment, the face in current face's data group with currently taking pictures is determined according to age information and gender information
Lineup's face image of one personage of images match improves task image and chooses efficiency, and believed according to expression information and angle
Breath determined in lineup's face image of the personage, and the immediate target facial image of facial image currently taken pictures, and
It is replaced, makes replaced facial image more natural, true, improve user experience.
Referring to Fig. 2, it is the processing method of the facial image in second embodiment of the invention, including step S21~S27.
Step S21 captures facial image by camera, and parses the first face information in the facial image, institute
Stating the first face information includes age information and gender information.
Step S22, the age for obtaining user setting add information and gender adds information, and the age, which adds information, to be included
Increment or depreciation information to age value, the gender add information and include whether to choose opposite gender.
Step S23 adds information according to the age and gender adds information and first face information is adjusted.
When user is taken pictures in many cases, it is not desired to reveal age or gender or in order to enhance interest, it is desirable to pass through
Facial image that the replacement of default character image is taken pictures, and age or gender are hidden with this.In consideration of it, the bat in the present embodiment
According to terminal, by setting, the age adds option and gender adds option and hides the real age of user and gender.Wherein, the age
The age information that option is convenient for user setting facial image is added, including the increment to age value or depreciation information.Gender is added
Option is used to change the gender information of facial image.It should be understood that when need not change age and gender, the age rises in value and is
0, gender adds information as sky.
Step S24, in the face database to prestore choose simultaneously with gender information's phase in first face information
Symbol and the one or more human face data groups equal with the age information in first face information.
Wherein, the first face information is adds information and gender adds the amended information of information according to the age.This implementation
The acquisition of the first face information in example and selection and the side of the human face data of the first face information matches in face database
Method can refer to the method and step in first embodiment, and it will not go into details herein.
It is illustrated below with a specific embodiment, 30 years old when being photographed the real age of personnel, gender is female.User
The age of setting adds information and reduces 12 years old for the age, and gender adds information as opposite gender.At this point, obtain the people of the personnel
First face information of face image is 18 years old age, and gender is male.According to current face's data group of the first face validation of information
It it is 18 years old for the age, gender is male's one or more human face data group.
Step S25, the selection returned according to user is instructed chooses a people in one or more of human face data groups
Face data group is as current face's data group.
When chosen in face database arrive with information is added according to the age and gender add it is the first after information adjusts
During one or more human face data groups of face information match, a prompt message is sent, user to be prompted to choose a face number
According to group.When terminal receives the selection instruction of user feedback, the face data group that user is selected is as current face
Data.
In actual scene, the human face data searched according to the first face information in face database may be one group,
It may be multigroup, can be instructed by the selection of user and determine one group of matched human face data, as current face's data group.
It should be understood that in other embodiments of the invention, when the matched face determined according to the first face information
When data are one group, this group of data are directly chosen as current face's data group, are determined without user;Believe when according to the first face
When the definite matched human face data of breath is multigroup, prompt message is sent, and one is determined according to the selection of user feedback instruction
Human face data group can improve the selection efficiency of current face's data group as current face's data group, this kind of mode.
Further, as an optional embodiment, step S24 is specifically included:
Step S241, obtain current people's classification information, personage's classification information include star's classification, animal category,
Cartoon figure's classification and self-defined classification;
Step S242 chooses corresponding people according to current people's classification information in the face database to prestore
Face category database;
Step S243, in the face category database choose simultaneously with the gender information in first face information
It is consistent and the one or more human face data groups equal with the age information in first face information.
The human face data of face database sets plurality of classes according to personage's classification, specifically includes star's classification, animal class
Not, cartoon figure's classification and self-defined classification.Wherein, star's classification includes the human face data group of multiple star personages;Animal class
The human face data group of many animals Ji not included, cartoon figure's classification includes the human face data group of multiple cartoon figures;It is self-defined
Classification includes multiple personages or the human face data group of animal or cartoon figure that user is voluntarily set.Face in face database
Data can be stored by lineup's face data of taking pictures to face of all categories, also can directly be downloaded and obtained by network.
When being taken pictures, user chooses a kind of human face data group of classification as the facial image sample replaced.Terminal root
According to personage's classification information that user selects, the face category database for corresponding to classification is chosen.And in the face categorical data of selection
In storehouse, one or more human face data groups with the first face information matches are chosen.The other setting of logical figure kind, can facilitate user
Facial image is targetedly replaced, enhances user experience.
Step S26 captures facial image according to the camera and parses the second face information in real time, second face
Information includes expression information and facial angle information.
Step S27 chooses matched mesh according to second face information in current face's data group in real time
Facial image is marked, is replaced with the facial image currently grabbed to the camera in the display page in real time.
When it is implemented, in current face's data group choose it is consistent with the expression information and with the face angle
The target facial image of information matches is spent, it is described to refer to the facial angle information matches:The target face figure chosen
The facial angle value of picture is compared to the facial angle value and the second face of other facial images in current face's data group
The facial angle information in information is the most close.
The present embodiment adds information by the age of user setting and gender is added information and adjusted compared with first embodiment
The age information of the facial image of camera crawl and gender information for hiding the real age and gender of the personnel that are photographed, are
User provides more selections, enhancing interest and user experience.
Referring to Fig. 3, the processing method of the facial image of position third embodiment of the invention extremely, in first embodiment or
Step S31~S32 is further included on the basis of two embodiments.
Step S31, captures the face typing image of a personage under face information drainage pattern by camera, and identifies institute
State gender information and the age information of face typing image;
Step S32, acquisition corresponds to respectively under multiple expression acquisition interfaces of the camera and multiple angle acquisition interfaces
In multiple face typing images of multiple expressions and multiple shooting angle, using the human face data group as the personage, and by the people
The human face data group of object is stored in face database.
In the present embodiment, user can voluntarily typing human face data group, when it is implemented, opening the face typing work(of camera
Can, gather the face data group of an at least personage under the face information drainage pattern of camera, and by the face number of acquisition
It is stored according to group in face database.The age information of the face data group including personage, gender information and corresponding to the people
The specified expression of object and the human face image information of specified shooting angle.
Wherein, the gender information of face typing image and age information can be obtained by face recognition technology.Carry out one group
When face information gathers, expression information and facial angle information can be carried out at the same time acquisition, can gather pleasure, anger, sorrow, happiness respectively, often
The facial image of all angles under one expression.For example, expression information is happiness, angle is respectively that 0 degree of facial image (faces shape
State) and 5 degree, 10 degree ... ... are deflected to the right, 90 degree of facial image deflects 5 degree, 10 degree ... ... to the left, 90 degree of face figure
As, upward deflect 5 degree, 10 degree ... ..., 45 degree of facial image and deflect down 5 degree, 10 degree ... ..., 45 degree of face
Image.And so on, all angles face information under other expressions of typing successively.
The human face data group that user is voluntarily set can be classified as in self-defined classification, when user is needed face when taking pictures
When image replaces with the facial image of oneself typing, self-defined classification is selected.
In the present embodiment, user can be according to the hobby typing personage's human face data group of oneself, such as can be friend at one's side
Friend, the human face data group of relatives enrich the information of face database, increase playability.
Referring to Fig. 4, be the processing unit of the facial image in fourth embodiment of the invention, including:
First parsing module 100 for capturing facial image by camera, and parses first in the facial image
Face information, the first face information include age information and gender information;
Module 200 is chosen, for choosing one with the first face information matches in the face database to prestore
Human face data group is as current face's data group;
Second parsing module 300, for capturing facial image in real time according to the camera and parsing the second face information,
Second face information includes expression information and facial angle information;
Replacement module 400, for being chosen in real time according to second face information in current face's data group
Matched target facial image is replaced with the facial image currently grabbed to the camera in the display page in real time.
Further, the processing unit of above-mentioned facial image, further includes:
Acquisition module 500, the age for obtaining user setting adds information and gender adds information, and the age adds
Information is included to the increment of age value or depreciation information, and the gender adds information and includes whether to choose opposite gender;
Module 600 is adjusted, for adding information according to the age and gender adds information to first face information
It is adjusted.
Further, the processing unit of above-mentioned facial image, the selection module 200 are specifically used for:
In the face database to prestore choose simultaneously be consistent with the gender information in first face information and with
The equal one or more human face data groups of age information in first face information;
The selection returned according to user is instructed chooses a face data group in one or more of human face data groups
As current face's data group.
Further, the processing unit of above-mentioned facial image, the selection module 200 are specifically used for:
Current people's classification information is obtained, personage's classification information includes star's classification, animal category, cartoon character species
Other and self-defined classification;
Corresponding face classification number is chosen in the face database to prestore according to current people's classification information
According to storehouse;
It chooses in the face category database and makees with a face data group of the first face information match
For current face's data group.
Further, the processing unit of upper facial image, further includes:
Information acquisition module 700, for being gathered under the face information drainage pattern of the camera corresponding to a personage's
Human face data group, and store into the face database, the human face data group of the personage includes the age letter of the personage
Breath, gender information and corresponding to the specified expression of the personage and the human face image information of specified shooting angle.
Further, the processing unit of above-mentioned facial image, described information acquisition module 700 are specifically used for:
Face typing image is captured by the camera under the face information drainage pattern, and identifies the face record
Enter gender information and the age information of image;
Acquisition corresponds to multiple tables respectively under multiple expression acquisition interfaces of the camera and multiple angle acquisition interfaces
Multiple face typing images of feelings and multiple shooting angle, using the human face data group as the personage.
Further, the processing unit of above-mentioned facial image, the replacement module 400 are specifically used for:
In current face's data group choose it is consistent with the expression information and with the facial angle information matches
Target facial image, it is described to refer to the facial angle information matches:The face angle for the target facial image chosen
Facial angle value of the angle value compared to other facial images in current face's data group and the people in the second face information
Face angle information is the most close.
The technique effect of the processing unit for the facial image that the embodiment of the present invention is provided, realization principle and generation is with before
It is identical to state embodiment of the method, to briefly describe, device embodiment part does not refer to part, can refer to phase in preceding method embodiment
Answer content.
The present invention also proposes a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is executed by processor
The processing method of facial image above-mentioned Shi Shixian.
The embodiment of the present invention additionally provides a kind of terminal, as shown in figure 5, for convenience of description, illustrating only and the present invention
The relevant part of embodiment, particular technique details do not disclose, refer to present invention method part.The mobile terminal
Can be to include mobile phone, tablet computer, PDA (Personal DigitalAssistant, personal digital assistant), POS (Point
Of Sales, point-of-sale terminal), the arbitrary terminal device such as vehicle-mounted computer, by terminal for exemplified by mobile phone:
Fig. 5 is illustrated that the block diagram with the part-structure of the relevant mobile phone of terminal provided in an embodiment of the present invention.Reference chart
5, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 40, memory 41, input unit 42, display unit 43, sensing
Device 144, voicefrequency circuit 45, Wireless Fidelity (wireless fidelity, WiFi) module 46, processor 47 and power supply 48 etc.
Component.It will be understood by those skilled in the art that the handset structure shown in Fig. 5 does not form the restriction to mobile phone, can include
Some components or different components arrangement are either combined than illustrating more or fewer components.
Each component parts of mobile phone is specifically introduced with reference to Fig. 5:
RF circuits 40 can be used for receive and send messages or communication process in, signal sends and receivees, particularly, will be under base station
After row information receives, handled to processor 47;In addition, the data sending of uplink will be designed to base station.In general, RF circuits 40 include
But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier,
LNA), duplexer etc..In addition, RF circuits 40 can also be communicated by wireless communication with network and other equipment.Above-mentioned channel radio
Letter can use any communication standard or agreement, include but not limited to global system for mobile communications (Global System of
Mobile communication, GSM), general packet radio service (General Packet Radio Service,
GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code
Division Multiple Access, WCDMA), it is Long Term Evolution (Long Term Evolution, LTE), Email, short
Messenger service (Short Messaging Service, SMS) etc..
Memory 41 can be used for storage software program and module, and processor 47 is stored in the soft of memory 41 by operation
Part program and module, so as to perform the various function application of mobile phone and data processing.Memory 41 can mainly include storage
Program area and storage data field, wherein, storing program area can storage program area, the application program needed at least one function
(such as sound-playing function, image player function etc.) etc.;Storage data field can be stored uses created number according to mobile phone
According to (such as voice data, phone directory etc.) etc..In addition, memory 41 can include high-speed random access memory, can also wrap
Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Input unit 42 can be used for the number for receiving input or character information and generate with the user setting of mobile phone and
The related key signals input of function control.Specifically, input unit 42 may include touch panel 421 and other input equipments
422.Touch panel 421, also referred to as touch-screen, collect user on it or neighbouring touch operation (such as user use hand
The operation of any suitable object such as finger, stylus or attachment on touch panel 421 or near touch panel 421), and according to
Preset formula drives corresponding attachment device.Optionally, touch panel 421 may include touch detecting apparatus and touch to control
Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, it will
Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact
Coordinate, then processor 47 is given, and the order that processor 47 is sent can be received and performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize touch panel 421.Except touch panel 421, input unit 42
It can also include other input equipments 422.Specifically, other input equipments 422 can include but is not limited to physical keyboard, function
One or more in key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc..
Display unit 43 is various available for the information and mobile phone for showing by information input by user or being supplied to user
Menu.Display unit 43 may include display panel 431, optionally, liquid crystal display (Liquid Crystal may be employed
Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure
Show panel 431.Further, touch panel 421 can cover display panel 431, when touch panel 421 detect it is on it or attached
After near touch operation, processor 47 is sent to determine the type of touch event, is followed by subsequent processing device 47 according to touch event
Type provides corresponding visual output on display panel 431.Although in Figure 5, touch panel 421 is with display panel 431
The component independent as two realizes the input of mobile phone and input function, but in some embodiments it is possible to by touch surface
Plate 421 and display panel 431 are integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 44, such as optical sensor, motion sensor and other sensors.Tool
Body, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ambient light
Light and shade adjusts the brightness of display panel 431, proximity sensor can when mobile phone is moved in one's ear, close display panel 431 and/
Or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) acceleration
Size can detect that size and the direction of gravity when static, available for identification mobile phone posture application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as mobile phone
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, details are not described herein.
Voicefrequency circuit 45, loud speaker 451, microphone 452 can provide the audio interface between user and mobile phone.Voicefrequency circuit
The transformed electric signal of the voice data received can be transferred to loud speaker 451 by 45, and sound letter is converted to by loud speaker 451
Number output;On the other hand, the voice signal of collection is converted to electric signal by microphone 452, is converted after being received by voicefrequency circuit 45
For voice data, then after voice data output processor 47 is handled, through RF circuits 40 be sent to such as another mobile phone or
Voice data is exported to memory 41 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 46
Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 5 is shown
WiFi module 46, but it is understood that, and must be configured into for mobile phone is not belonging to, it can not change as needed completely
It is omitted in the scope of the essence of invention.
Processor 47 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to
It crosses operation or performs the software program being stored in memory 41 and/or module and call the number being stored in memory 41
According to, perform mobile phone various functions and processing data, so as to mobile phone carry out integral monitoring.Optionally, processor 47 may include
One or more processing units;Preferably, processor 47 can integrate application processor and modem processor, wherein, application
The main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.It can
With understanding, above-mentioned modem processor can not also be integrated into processor 47.
Mobile phone is further included to the power supply 48 (such as battery) of all parts power supply, it is preferred that power supply can pass through power supply pipe
Reason system and processor 47 are logically contiguous, so as to realize management charging, electric discharge and power managed etc. by power-supply management system
Function.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, the processor 47 included by the mobile terminal also has following functions:For performing
One program, the processor 47 realize Dialing Method described above when performing described program.
The present invention also proposes a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is executed by processor
Shi Shixian Dialing Methods described above.
It will be understood by those skilled in the art that in flow charts represent or logic described otherwise above herein and/or
Step for example, being considered the order list for the executable instruction for being used to implement logic function, may be embodied in and appoint
In what readable storage medium storing program for executing, for instruction execution system, device or equipment (such as computer based system, including processor
System or other can be from instruction execution system, device or equipment instruction fetch and the system executed instruction) use or with reference to these
Instruction execution system, device or equipment and use.For the purpose of this specification, " readable storage medium storing program for executing " can any can be wrapped
Contain, store, communicate, propagate or transmit program for instruction execution system, device or equipment or combine these instruction execution systems,
Device or equipment and the device used.
The more specific example (non-exhaustive list) of readable storage medium storing program for executing includes following:With one or more wiring
Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, readable storage medium storing program for executing can even is that the paper that can print described program on it or other suitable Jie
Matter, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with other
Suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art
Any one of row technology or combination thereof are realized:With for the logic gates to data-signal realization logic function
Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiments or example in combine in an appropriate manner.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
The embodiment of the present invention further discloses:
A1. a kind of processing method of facial image, including:
Facial image is captured by camera, and parses the first face information in the facial image, it is described the first
Face information includes age information and gender information;
It chooses to be used as with a face data group of the first face information matches in the face database to prestore and work as
Preceding face data group;
Facial image is captured according to the camera in real time and parses the second face information, second face information includes
Expression information and facial angle information;
Matched target face figure is chosen in current face's data group according to second face information in real time
Picture is replaced with the facial image currently grabbed to the camera in the display page in real time.
A2. the processing method of the facial image according to A1, the selection and the one of the first face information matches
Before the step of a face data group, the method further includes:
The age of acquisition user setting adds information and gender adds information, and the age, which adds information, to be included to age value
Increment or depreciation information, the gender add information and include whether to choose opposite gender;
Information is added according to the age and gender adds information and first face information is adjusted.
A3. the processing method of the facial image according to A1 or A2, it is described in the face database to prestore choose with
The step of one face data group of the first face information matches, includes:
In the face database to prestore choose simultaneously be consistent with the gender information in first face information and with
The equal one or more human face data groups of age information in first face information;
The selection returned according to user is instructed chooses a face data group in one or more of human face data groups
As current face's data group.
A4. the processing method of the facial image according to A1, it is described in the face database to prestore choose with it is described
One face data group of the first face information matches includes as the step of current face's data group:
Current people's classification information is obtained, personage's classification information includes star's classification, animal category, cartoon character species
Other and self-defined classification;
Corresponding face classification number is chosen in the face database to prestore according to current people's classification information
According to storehouse;
It chooses in the face category database and makees with a face data group of the first face information match
For current face's data group.
A5. the processing method of the facial image according to A1, the method further include:
Acquisition corresponds to the human face data group of a personage under the face information drainage pattern of the camera, and stores to institute
It states in face database, the human face data group of the personage includes the age information of the personage, gender information and corresponds to
The specified expression of the personage and the human face image information of specified shooting angle.
A6. the processing method of the facial image according to A5, it is described under the face information drainage pattern of the camera
The step of gathering the human face data group corresponding to a personage includes:
Face typing image is captured by the camera under the face information drainage pattern, and identifies the face record
Enter gender information and the age information of image;
Acquisition corresponds to multiple tables respectively under multiple expression acquisition interfaces of the camera and multiple angle acquisition interfaces
Multiple face typing images of feelings and multiple shooting angle, using the human face data group as the personage.
A7. the processing method of the facial image according to A1, it is described in real time according to second face information in institute
Stating the step of matched target facial image is chosen in current face's data group includes:
In current face's data group choose it is consistent with the expression information and with the facial angle information matches
Target facial image, it is described to refer to the facial angle information matches:The face angle for the target facial image chosen
Facial angle value of the angle value compared to other facial images in current face's data group and the people in the second face information
Face angle information is the most close.
B8. a kind of processing unit of facial image, including:
First parsing module for capturing facial image by camera, and parses the first in the facial image
Face information, the first face information include age information and gender information;
Module is chosen, for choosing a face with the first face information matches in the face database to prestore
Data group is as current face's data group;
Second parsing module, for capturing facial image in real time according to the camera and parsing the second face information, institute
Stating the second face information includes expression information and facial angle information;
Replacement module, for choosing matching in current face's data group according to second face information in real time
Target facial image, to be replaced in real time in the facial image that is currently grabbed to the camera of the display page.
B9. according to B8 facial image processing unit, further include:
Acquisition module, the age for obtaining user setting adds information and gender adds information, and the age adds letter
Breath is included to the increment of age value or depreciation information, and the gender adds information and includes whether to choose opposite gender;
Module is adjusted, for adding information according to the age and gender adds information and first face information is carried out
Adjustment.
B10. according to B8 or B9 facial image processing unit, it is described selection module be specifically used for:
In the face database to prestore choose simultaneously be consistent with the gender information in first face information and with
The equal one or more human face data groups of age information in first face information;
The selection returned according to user is instructed chooses a face data group in one or more of human face data groups
As current face's data group.
B11. according to B8 facial image processing unit, it is described selection module be specifically used for:
Current people's classification information is obtained, personage's classification information includes star's classification, animal category, cartoon character species
Other and self-defined classification;
Corresponding face classification number is chosen in the face database to prestore according to current people's classification information
According to storehouse;
It chooses in the face category database and makees with a face data group of the first face information match
For current face's data group.
B12. according to B8 facial image processing unit, further include:
Information acquisition module, for gathering the face corresponding to a personage under the face information drainage pattern of the camera
Data group, and store into the face database, the human face data group of the personage includes age information, the property of the personage
Other information and corresponding to the specified expression of the personage and the human face image information of specified shooting angle.
B13. according to B12 facial image processing unit, described information acquisition module is specifically used for:
Face typing image is captured by the camera under the face information drainage pattern, and identifies the face record
Enter gender information and the age information of image;
Acquisition corresponds to multiple tables respectively under multiple expression acquisition interfaces of the camera and multiple angle acquisition interfaces
Multiple face typing images of feelings and multiple shooting angle, using the human face data group as the personage.
B14. according to B8 facial image processing unit, the replacement module is specifically used for:
In current face's data group choose it is consistent with the expression information and with the facial angle information matches
Target facial image, it is described to refer to the facial angle information matches:The face angle for the target facial image chosen
Facial angle value of the angle value compared to other facial images in current face's data group and the people in the second face information
Face angle information is the most close.
C15. a kind of terminal, including memory and processor, the memory supports processor to perform A1 for storing
To the program of any one of A7 the method, the processor is configurable for performing the program stored in the memory.
D16. a kind of computer storage media is soft for saving as computer used in any one of B7 to B14 described device
Part instructs.
Claims (10)
1. a kind of processing method of facial image, which is characterized in that including:
Facial image is captured by camera, and parses the first face information in the facial image, the first face letter
Breath includes age information and gender information;
It chooses to be used as with a face data group of the first face information matches in the face database to prestore and works as forefathers
Face data group;
Facial image is captured according to the camera in real time and parses the second face information, second face information includes expression
Information and facial angle information;
Matched target facial image is chosen in current face's data group according to second face information in real time, with
The facial image currently grabbed to the camera in the display page in real time is replaced.
2. the processing method of facial image according to claim 1, which is characterized in that the selection and first face
Before the step of one face data group of information matches, the method further includes:
The age of acquisition user setting adds information and gender adds information, and the age, which adds information, includes the increasing to age value
Value or depreciation information, the gender add information and include whether to choose opposite gender;
Information is added according to the age and gender adds information and first face information is adjusted.
3. the processing method of facial image according to claim 1 or 2, which is characterized in that described in the face number to prestore
Include according to the step of choosing a face data group with the first face information matches in storehouse:
In the face database to prestore choose simultaneously be consistent with the gender information in first face information and with it is described
The equal one or more human face data groups of age information in first face information;
The selection returned according to user is instructed chooses a face data group conduct in one or more of human face data groups
Current face's data group.
4. the processing method of facial image according to claim 1, which is characterized in that described in the face database to prestore
Middle selection and a face data group of the first face information matches include as the step of current face's data group:
Obtain current people's classification information, personage's classification information include star's classification, animal category, cartoon figure's classification and
Self-defined classification;
Corresponding face category database is chosen in the face database to prestore according to current people's classification information;
A face data group with the first face information match is chosen in the face category database as institute
State current face's data group.
5. the processing method of facial image according to claim 1, which is characterized in that the method further includes:
Acquisition corresponds to the human face data group of a personage under the face information drainage pattern of the camera, and stores to the people
In face database, the human face data group of the personage includes the age information of the personage, gender information and corresponding to described
The specified expression of personage and the human face image information of specified shooting angle.
6. the processing method of facial image according to claim 5, which is characterized in that the face in the camera is believed
The step of acquisition corresponds to the human face data group of a personage under breath drainage pattern includes:
Face typing image is captured by the camera under the face information drainage pattern, and identifies the face typing figure
The gender information of picture and age information;
Under multiple expression acquisition interfaces of the camera and multiple angle acquisition interfaces respectively acquisition corresponding to multiple expressions and
Multiple face typing images of multiple shooting angle, using the human face data group as the personage.
7. the processing method of facial image according to claim 1, which is characterized in that described in real time according to described second
The step of face information chooses matched target facial image in current face's data group includes:
Mesh consistent with the expression information and with the facial angle information matches is chosen in current face's data group
Facial image is marked, it is described to refer to the facial angle information matches:The facial angle value for the target facial image chosen
Facial angle value compared to other facial images in current face's data group and the face angle in the second face information
It is the most close to spend information.
8. a kind of processing unit of facial image, which is characterized in that including:
First parsing module for capturing facial image by camera, and parses the letter of the first face in the facial image
Breath, the first face information include age information and gender information;
Module is chosen, for choosing a human face data with the first face information matches in the face database to prestore
Group is as current face's data group;
Second parsing module, for capturing facial image in real time according to the camera and parsing the second face information, described
Two face informations include expression information and facial angle information;
Replacement module, for choosing matched mesh in current face's data group according to second face information in real time
Facial image is marked, is replaced with the facial image currently grabbed to the camera in the display page in real time.
9. a kind of readable storage medium storing program for executing, is stored thereon with program, which is characterized in that is realized such as when described program is executed by processor
Any methods of claim 1-7.
10. a kind of terminal including memory, processor and stores the program that can be run on a memory and on a processor,
It is characterized in that, the processor realizes the method as described in claim 1-7 any one when performing described program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711459856.5A CN108062404A (en) | 2017-12-28 | 2017-12-28 | Processing method, device, readable storage medium storing program for executing and the terminal of facial image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711459856.5A CN108062404A (en) | 2017-12-28 | 2017-12-28 | Processing method, device, readable storage medium storing program for executing and the terminal of facial image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108062404A true CN108062404A (en) | 2018-05-22 |
Family
ID=62140590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711459856.5A Withdrawn CN108062404A (en) | 2017-12-28 | 2017-12-28 | Processing method, device, readable storage medium storing program for executing and the terminal of facial image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108062404A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109345447A (en) * | 2018-09-20 | 2019-02-15 | 广州酷狗计算机科技有限公司 | The method and apparatus of face replacement processing |
CN109858364A (en) * | 2018-12-28 | 2019-06-07 | 维沃移动通信有限公司 | A kind of processing method and mobile terminal of facial image |
CN110298229A (en) * | 2019-04-29 | 2019-10-01 | 星河视效文化传播(北京)有限公司 | Method of video image processing and device |
CN110868554A (en) * | 2019-11-18 | 2020-03-06 | 广州华多网络科技有限公司 | Method, device and equipment for changing faces in real time in live broadcast and storage medium |
CN111444799A (en) * | 2020-03-16 | 2020-07-24 | 深圳市合信达控制系统有限公司 | Output display method and device of temperature control function interface |
CN111488768A (en) * | 2019-01-28 | 2020-08-04 | 百度在线网络技术(北京)有限公司 | Face image style conversion method and device, electronic equipment and storage medium |
CN112101215A (en) * | 2020-09-15 | 2020-12-18 | Oppo广东移动通信有限公司 | Face input method, terminal equipment and computer readable storage medium |
CN112449098A (en) * | 2019-08-29 | 2021-03-05 | 腾讯科技(深圳)有限公司 | Shooting method, device, terminal and storage medium |
CN112685588A (en) * | 2020-11-09 | 2021-04-20 | 北京达佳互联信息技术有限公司 | Resource recommendation method, device, equipment and storage medium |
CN112702564A (en) * | 2019-10-23 | 2021-04-23 | 成都鼎桥通信技术有限公司 | Image monitoring method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1731416A (en) * | 2005-08-04 | 2006-02-08 | 上海交通大学 | Method of quick and accurate human face feature point positioning |
US20120005766A1 (en) * | 2006-02-17 | 2012-01-05 | Kristi Rae Bollinger | Methods of identifying agents that modulate phenotypes related to disruptions, of a gene encoding PRO235 polypeptide |
CN102945366A (en) * | 2012-11-23 | 2013-02-27 | 海信集团有限公司 | Method and device for face recognition |
CN104376589A (en) * | 2014-12-04 | 2015-02-25 | 青岛华通国有资本运营(集团)有限责任公司 | Method for replacing movie and TV play figures |
CN104794459A (en) * | 2015-05-07 | 2015-07-22 | 北京丰华联合科技有限公司 | Video personnel identification method |
CN106101541A (en) * | 2016-06-29 | 2016-11-09 | 捷开通讯(深圳)有限公司 | A kind of terminal, photographing device and image pickup method based on personage's emotion thereof |
CN106599817A (en) * | 2016-12-07 | 2017-04-26 | 腾讯科技(深圳)有限公司 | Face replacement method and device |
CN106815309A (en) * | 2016-12-20 | 2017-06-09 | 北京奇虎科技有限公司 | A kind of image method for pushing, device and mobile terminal |
-
2017
- 2017-12-28 CN CN201711459856.5A patent/CN108062404A/en not_active Withdrawn
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1731416A (en) * | 2005-08-04 | 2006-02-08 | 上海交通大学 | Method of quick and accurate human face feature point positioning |
US20120005766A1 (en) * | 2006-02-17 | 2012-01-05 | Kristi Rae Bollinger | Methods of identifying agents that modulate phenotypes related to disruptions, of a gene encoding PRO235 polypeptide |
CN102945366A (en) * | 2012-11-23 | 2013-02-27 | 海信集团有限公司 | Method and device for face recognition |
CN104376589A (en) * | 2014-12-04 | 2015-02-25 | 青岛华通国有资本运营(集团)有限责任公司 | Method for replacing movie and TV play figures |
CN104794459A (en) * | 2015-05-07 | 2015-07-22 | 北京丰华联合科技有限公司 | Video personnel identification method |
CN106101541A (en) * | 2016-06-29 | 2016-11-09 | 捷开通讯(深圳)有限公司 | A kind of terminal, photographing device and image pickup method based on personage's emotion thereof |
CN106599817A (en) * | 2016-12-07 | 2017-04-26 | 腾讯科技(深圳)有限公司 | Face replacement method and device |
CN106815309A (en) * | 2016-12-20 | 2017-06-09 | 北京奇虎科技有限公司 | A kind of image method for pushing, device and mobile terminal |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109345447A (en) * | 2018-09-20 | 2019-02-15 | 广州酷狗计算机科技有限公司 | The method and apparatus of face replacement processing |
CN109858364A (en) * | 2018-12-28 | 2019-06-07 | 维沃移动通信有限公司 | A kind of processing method and mobile terminal of facial image |
CN111488768B (en) * | 2019-01-28 | 2023-09-05 | 百度在线网络技术(北京)有限公司 | Style conversion method and device for face image, electronic equipment and storage medium |
CN111488768A (en) * | 2019-01-28 | 2020-08-04 | 百度在线网络技术(北京)有限公司 | Face image style conversion method and device, electronic equipment and storage medium |
CN110298229A (en) * | 2019-04-29 | 2019-10-01 | 星河视效文化传播(北京)有限公司 | Method of video image processing and device |
CN112449098B (en) * | 2019-08-29 | 2023-04-07 | 腾讯科技(深圳)有限公司 | Shooting method, device, terminal and storage medium |
CN112449098A (en) * | 2019-08-29 | 2021-03-05 | 腾讯科技(深圳)有限公司 | Shooting method, device, terminal and storage medium |
CN112702564A (en) * | 2019-10-23 | 2021-04-23 | 成都鼎桥通信技术有限公司 | Image monitoring method and device |
CN110868554A (en) * | 2019-11-18 | 2020-03-06 | 广州华多网络科技有限公司 | Method, device and equipment for changing faces in real time in live broadcast and storage medium |
CN110868554B (en) * | 2019-11-18 | 2022-03-08 | 广州方硅信息技术有限公司 | Method, device and equipment for changing faces in real time in live broadcast and storage medium |
CN111444799A (en) * | 2020-03-16 | 2020-07-24 | 深圳市合信达控制系统有限公司 | Output display method and device of temperature control function interface |
CN112101215A (en) * | 2020-09-15 | 2020-12-18 | Oppo广东移动通信有限公司 | Face input method, terminal equipment and computer readable storage medium |
CN112685588A (en) * | 2020-11-09 | 2021-04-20 | 北京达佳互联信息技术有限公司 | Resource recommendation method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108062404A (en) | Processing method, device, readable storage medium storing program for executing and the terminal of facial image | |
CN107809598B (en) | A kind of image pickup method, mobile terminal and server | |
CN108255970A (en) | A kind of video retrieval method, terminal and computer readable storage medium | |
CN108347704A (en) | Information recommendation method and mobile terminal | |
CN108090126A (en) | Image processing method, device and mobile terminal, image-recognizing method and server | |
CN110248254A (en) | Display control method and Related product | |
CN108920119A (en) | A kind of sharing method and mobile terminal | |
CN107155066A (en) | A kind of image pickup method, equipment and computer-readable storage medium | |
CN107635110A (en) | A kind of video interception method and terminal | |
CN107801106A (en) | A kind of video segment intercept method and electronic equipment | |
CN108174236A (en) | A kind of media file processing method, server and mobile terminal | |
CN107835366A (en) | Multi-medium play method, device, storage medium and electronic equipment | |
CN109194874A (en) | Photographic method, device, terminal and computer readable storage medium | |
CN109947650A (en) | Script step process methods, devices and systems | |
CN109508399A (en) | A kind of facial expression image processing method, mobile terminal | |
CN108683850A (en) | A kind of shooting reminding method and mobile terminal | |
CN109862266A (en) | A kind of image sharing method and terminal | |
CN108616448A (en) | A kind of the path recommendation method and mobile terminal of Information Sharing | |
CN107908770A (en) | A kind of photo searching method and mobile terminal | |
CN108123999A (en) | A kind of information push method and mobile terminal | |
CN110209332A (en) | A kind of information processing method and terminal device | |
CN107707760A (en) | A kind of sending out notice processing method and mobile terminal | |
CN110162653A (en) | A kind of picture and text sort recommendations method and terminal device | |
CN108718389A (en) | A kind of screening-mode selection method and mobile terminal | |
CN108984143A (en) | A kind of display control method and terminal device |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180522 |
|
WW01 | Invention patent application withdrawn after publication |