CN108257200A - A kind of method, apparatus and computer readable storage medium for handling photo moulding - Google Patents
A kind of method, apparatus and computer readable storage medium for handling photo moulding Download PDFInfo
- Publication number
- CN108257200A CN108257200A CN201810102292.8A CN201810102292A CN108257200A CN 108257200 A CN108257200 A CN 108257200A CN 201810102292 A CN201810102292 A CN 201810102292A CN 108257200 A CN108257200 A CN 108257200A
- Authority
- CN
- China
- Prior art keywords
- moulding
- photo
- human face
- expression
- image data
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the invention discloses a kind of method, apparatus and computer readable storage medium for handling photo moulding, with moulding automatically satisfied for the addition of the photo of user.The method includes:Acquire image data;Judge image data whether comprising human face photo;If image data includes human face photo, for the corresponding moulding of expression information matches of face in human face photo, expression information includes expression and/or age;Moulding corresponding with expression information matches is superimposed to human face photo.Technical solution provided by the invention realizes the automatic addition of moulding, can not only reduce manpower, but also can be current expression information matches to suitable moulding so that the expection of effect and user are more nearly.
Description
Technical field
It can the present invention relates to image processing field more particularly to a kind of method, apparatus for handling photo moulding and computer
Read storage medium.
Background technology
Widely available with mobile intelligent terminals such as smart mobile phone, tablet computers, user's custom moves intelligence by these
Can terminal take pictures, the especially stronger and stronger self-timer of function, when taking pictures in order to embody effect, many users like by
It is various sprout, the lovely or moulding such as make fun are added on the photo of self-timer, then, preview area again preview these be added to and make
The photo of type.
However, existing moulding adding method is required for user to preselect manually, it is then superimposed upon user's human face photo
On, and if preview area there are can only be one by one superimposed one by one using same moulding during multiple human face photos.This hand
The mode of dynamic overlying and molding is not only time-consuming and laborious, but also moulding is added on photo and is likely difficult to get a desired effect.
The above problem, at present industry there is no preferable solution.
Invention content
The main purpose of the embodiment of the present invention is to provide a kind of method, apparatus for handling photo moulding and computer-readable
Storage medium, with moulding automatically satisfied for the addition of the photo of user.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of method for handling photo moulding, the side
Method includes:
Acquire image data;
Judge described image data whether comprising human face photo;
If described image data include human face photo, the expression information matches for face in the human face photo are corresponding
Moulding, the expression information include expression and/or age;
The moulding corresponding with expression information matches is superimposed to the human face photo.
It is described to judge the figure with reference to the embodiment of the present invention in a first aspect, in the first embodiment of first aspect
Whether picture data include human face photo, including:
Extract the face characteristic information in described image data;
If the face characteristic information is more than predetermined threshold value, it is determined that human face photo is included in described image data.
With reference to the embodiment of the present invention in a first aspect, in second of embodiment of first aspect, if described described
Image data include human face photo, then the corresponding moulding of expression information matches for face in the human face photo, including:
The human face photo is inputted into expression identification model to export expression information;
According to the expression information that the expression identification model exports, selected from moulding database and the expression information
The moulding matched.
With reference to the embodiment of the present invention in a first aspect, in the third embodiment of first aspect, if the described image
Data include human face photo, then the corresponding moulding of expression information matches for face in the human face photo, including:
The human face photo is inputted into expression identification model to export expression information and export expression information pair with described
The moulding answered.
With reference to the first embodiment of first aspect of the embodiment of the present invention, first aspect, second of embodiment or
Three kinds of embodiments, in the 4th kind of embodiment of first aspect, the method further includes:
Training expression identification model.
To achieve the above object, second aspect of the embodiment of the present invention provides a kind of device for handling photo moulding, the dress
Put including:
Acquisition module, for acquiring image data;
Judgment module, for judging described image data whether comprising human face photo;
Matching module, if including human face photo, the expression for face in the human face photo for described image data
The corresponding moulding of information matches, the expression information include expression and/or age;
Laminating module, for the moulding corresponding with expression information matches to be superimposed to the human face photo.
With reference to second aspect of the embodiment of the present invention, in the first embodiment of second aspect, the judgment module packet
It includes:
Feature extraction unit, for extracting the face characteristic information in described image data;
Determination unit, if being more than predetermined threshold value for the face characteristic information, it is determined that included in described image data
Human face photo.
With reference to second aspect of the embodiment of the present invention, in second of embodiment of second aspect, the matching module packet
It includes:
First output unit, for human face photo input expression identification model to be exported expression information;
Selecting unit, for the expression information exported according to the expression identification model, selected from moulding database with
The moulding of the expression information matches.
With reference to second aspect of the embodiment of the present invention, in the third embodiment of second aspect, the matching module packet
It includes:
Second output unit, for by the human face photo input expression identification model with export expression information and with institute
State the corresponding moulding of output expression information.
To achieve the above object, the third aspect of the embodiment of the present invention provides a kind of mobile terminal, including memory, processor
And the computer program that can be run in the memory and on the processor is stored in, the processor performs the meter
The step of following method being realized during calculation machine program:
Acquire image data;
Judge described image data whether comprising human face photo;
If described image data include human face photo, the expression information matches for face in the human face photo are corresponding
Moulding, the expression information include expression and/or age;
The moulding corresponding with expression information matches is superimposed to the human face photo.
It is described to judge the figure in the first embodiment of the third aspect with reference to the third aspect of the embodiment of the present invention
Whether picture data include human face photo, including:
Extract the face characteristic information in described image data;
If the face characteristic information is more than predetermined threshold value, it is determined that human face photo is included in described image data.
With reference to the third aspect of the embodiment of the present invention, in second of embodiment of the third aspect, if described described
Image data include human face photo, then the corresponding moulding of expression information matches for face in the human face photo, including:
The human face photo is inputted into expression identification model to export expression information;
According to the expression information that the expression identification model exports, selected from moulding database and the expression information
The moulding matched.
With reference to the third aspect of the embodiment of the present invention, in the third embodiment of the third aspect, if the described image
Data include human face photo, then the corresponding moulding of expression information matches for face in the human face photo, including:
The human face photo is inputted into expression identification model to export expression information and export expression information pair with described
The moulding answered.
With reference to the first embodiment of the third aspect of the embodiment of the present invention, the third aspect, second of embodiment or
Three kinds of embodiments, in the 4th kind of embodiment of the third aspect, the method further includes:
Training expression identification model.
To achieve the above object, fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the meter
Calculation machine readable storage medium storing program for executing is stored with computer program, and the computer program realizes the step of following method when being executed by processor
Suddenly:
Acquire image data;
Judge described image data whether comprising human face photo;
If described image data include human face photo, the expression information matches for face in the human face photo are corresponding
Moulding, the expression information include expression and/or age;
The moulding corresponding with expression information matches is superimposed to the human face photo.
It is described to judge the figure in the first embodiment of fourth aspect with reference to fourth aspect of the embodiment of the present invention
Whether picture data include human face photo, including:
Extract the face characteristic information in described image data;
If the face characteristic information is more than predetermined threshold value, it is determined that human face photo is included in described image data.
With reference to fourth aspect of the embodiment of the present invention, in second of embodiment of fourth aspect, if described described
Image data include human face photo, then the corresponding moulding of expression information matches for face in the human face photo, including:
The human face photo is inputted into expression identification model to export expression information;
According to the expression information that the expression identification model exports, selected from moulding database and the expression information
The moulding matched.
With reference to fourth aspect of the embodiment of the present invention, in the third embodiment of fourth aspect, if the described image
Data include human face photo, then the corresponding moulding of expression information matches for face in the human face photo, including:
The human face photo is inputted into expression identification model to export expression information and export expression information pair with described
The moulding answered.
With reference to the first embodiment of fourth aspect of the embodiment of the present invention, fourth aspect, second of embodiment or
Three kinds of embodiments, in the 4th kind of embodiment of fourth aspect, the method further includes:
Training expression identification model.
From the embodiments of the present invention provide technical solution it is found that judge image data be contain human face photo after, be
The corresponding moulding of expression information matches of face in the human face photo.Due to the expression information matches for face in human face photo
The process of corresponding moulding is carried out based on algorithm, therefore, is manually added moulding with the prior art and is added to compared with human face photo,
Technical solution provided by the invention realizes the automatic addition of moulding, can not only reduce manpower, but also can be current god
State information matches are to suitable moulding so that the expection of effect and user are more nearly.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those skilled in the art, without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is the structure diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for processing photo moulding provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the method for processing photo moulding that another embodiment of the present invention provides;
Fig. 4 is the flow chart of the method for processing photo moulding that another embodiment of the present invention provides;
Fig. 5 is the structure diagram of the device of processing photo moulding provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of the device of processing photo moulding that another embodiment of the present invention provides;
Fig. 7 is the structure diagram of the device of processing photo moulding that another embodiment of the present invention provides;
Fig. 8 is the structure diagram of the device of processing photo moulding that another embodiment of the present invention provides.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing in embodiment, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art
Member's all other embodiments obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 shows a kind of structure diagram of mobile terminal.The method of processing photo moulding provided in an embodiment of the present invention
It can be applied in mobile terminal 10 as shown in Figure 1, mobile terminal 10 can be, but not limited to include:Battery need to be relied on to remain normal
Operation and support network and the smart mobile phone of download function, notebook, tablet computer, wearing smart machine etc..
As shown in Figure 1, mobile terminal 10 includes memory 101, storage control 102, one or more (is only shown in figure
One) processor 103, Peripheral Interface 104, radio-frequency module 105, key-press module 106, audio-frequency module 107 and Touch Screen
108.These components are mutually communicated by one or more communication bus/signal wire 109.
It is appreciated that structure shown in FIG. 1 is only to illustrate, the structure of mobile terminal is not caused to limit.It is mobile whole
End 10 may also include than shown in Fig. 1 more either less components or with the configuration different from shown in Fig. 1.It is shown in FIG. 1
Hardware may be used in each component, software or combination is realized.
Memory 101 can be used for storage software program and module, such as the processing photo moulding in the embodiment of the present invention
Method and the corresponding program instruction/module of mobile terminal, processor 103 are stored in the software journey in memory 101 by operation
Sequence and module so as to perform various functions application and data processing, that is, realize the above-mentioned method for handling photo moulding.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 101 can further comprise
Relative to the remotely located memory of processor 103, these remote memories can pass through network connection to mobile terminal 10.On
The example for stating network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 103
And other possible components can carry out the access of memory 101 under the control of storage control 102.
Various input/output devices are coupled to CPU and memory 101 by Peripheral Interface 104.The operation of processor 103 is deposited
Various softwares in reservoir 101, instruction are to perform the various functions of mobile terminal 10 and carry out data processing.
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chips
It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with
Communication network or other equipment are communicated.Radio-frequency module 105 may include the various existing electricity for being used to perform these functions
Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card,
Memory etc..Radio-frequency module 105 can be with the wireless network progress of various networks such as internet, intranet, preset type
Communication is communicated by the wireless network of preset type with other equipment.The wireless network of above-mentioned preset type can wrap
Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).The wireless network of above-mentioned preset type can use various communications
Standard, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile
Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE) is wide
Band Code Division Multiple Access (Wideband Code Division Multiple Access, W-CDMA), Code Division Multiple Access
(Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA),
Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE
802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over
Internet Protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for
Microwave Access, Wi-Max), other for mail, instant messaging and short message agreement and any other is suitable
Communications protocol.
Key-press module 106 provides the interface that is inputted to mobile terminal of user, user can by press it is different by
Key is so that mobile terminal 10 performs different functions.
Audio-frequency module 107 provides a user audio interface, may include that one or more microphones, one or more raises
Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 104, and voice data is converted to power information,
Power information is transmitted to loud speaker.Power information is converted to the sound wave that human ear can hear by loud speaker.Voicefrequency circuit is also from microphone
Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 104 with into advancing one
The processing of step.Audio data can obtain at memory 101 or by radio-frequency module 105.In addition, audio data can also
It stores into memory 101 or is sent by radio-frequency module 105.In some instances, audio-frequency module 107 may also include
One earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Touch Screen 108 provides an output and input interface simultaneously between mobile terminal and user.Specifically, touch-control
Screen 108 shows video output to user, and the content of these videos output may include word, figure, video and its arbitrary group
It closes.Some outputs are the result is that corresponding to some user interface objects.Touch Screen 108 also receives the input of user, such as user
The gesture operations such as click, slip, so that user interface object responds the input of these users.It detects input by user
Technology can be based on resistance-type, condenser type or any other possible touch control detection technology.108 display unit of Touch Screen
Specific example include but is not limited to liquid crystal display or light emitting polymer displays.
Based on above-mentioned mobile terminal, the flow chart such as attached drawing 2 of the method for processing photo moulding in the embodiment of the present invention is described
Shown, executive agent can be mobile terminal, mainly include the following steps S201 to S204, detailed description are as follows:
S201 acquires image data.
In embodiments of the present invention, acquisition image data can use the intelligent mobile terminals such as smart mobile phone, tablet computer
Camera or the image capture devices such as video camera carry out.
Whether S202 judges the image data acquired through step S201 comprising human face photo.
In embodiments of the present invention, due to being that moulding is added on face, therefore, it is necessary to judge whether image data wraps
Containing human face photo.As one embodiment of the invention, judge whether image data can be as follows comprising human face photo
S2021 and S2022 is realized:
S2021 extracts the face characteristic information in image data.
Face characteristic information is generally divided into visual signature, pixels statistics feature, facial image transformation coefficient feature and face
Image algebra feature etc..The extraction of face characteristic information is carried out aiming at certain features of face, and face characteristic information carries
Two major class of method taken:One kind is Knowledge based engineering characterizing method, another is the table based on algebraic characteristic or statistical learning
Sign method.Knowledge based engineering characterizing method mainly according to the shape description of human face and they the distance between characteristic come
Obtaining contributes to the characteristic of face classification, and characteristic component generally includes Euclidean distance, curvature and the angle between characteristic point
Deng.Face by eyes, nose, mouth, chin etc. locally form, to these part and between them structural relation geometric description,
It can be referred to as geometric properties as the important feature of identification face, these features.Knowledge based engineering face characterization mainly includes base
In the method and template matching method of geometric properties.
S2022, if face characteristic information is more than predetermined threshold value, it is determined that include human face photo in image data.
Specifically, the face characteristic information of extraction can be scanned for matching with the feature templates stored in database,
By presetting a threshold value, when the similarity between the feature templates stored in the face characteristic information of extraction and database is more than
This predetermined threshold value will then match obtained result output.
S203, if image data includes human face photo, the expression information matches for face in human face photo are corresponding to be made
Type, wherein, expression information includes expression and/or age.
In embodiments of the present invention, expression information can include expression and/or age of face etc., for example, happiness, anger, grief and joy
Etc. expressions, and moulding can be stay sprout, lovely animal, can also be the exaggeration expression of indignation for example, little white rabbit or cat etc.
Deng.
Moulding corresponding with expression information matches is superimposed to human face photo by S204.
It should be noted that will moulding corresponding with expression information matches be superimposed to human face photo when, due to moulding
Size, position, angle etc. are not necessarily suitable for, therefore, when moulding is superimposed to human face photo, may undergo to moulding scaling,
The processes such as mobile and rotation.
From above-mentioned attached drawing 2 it is exemplary processing photo moulding method it is found that judge image data be contain human face photo after,
The corresponding moulding of expression information matches for face in the human face photo.Due to the expression information for face in human face photo
Process with corresponding moulding is carried out based on algorithm, therefore, moulding is manually added with the prior art and is added to human face photo phase
Than technical solution provided by the invention realizes the automatic addition of moulding, can not only reduce manpower, but also can be current
Expression information matches are to suitable moulding so that the expection of effect and user are more nearly.
The flow chart for describing to handle the method for photo moulding based on above-mentioned mobile terminal in another embodiment of the present invention is for example attached
Shown in Fig. 3, mainly include the following steps S301 to S305, detailed description are as follows:
S301 acquires image data.
The technical solution of step S301 is identical with the technical solution of previous embodiment step S201, the art being related to
Language, concept etc. can refer to the description of previous embodiment, be not repeated herein.
Whether S302 judges the image data acquired through step S301 comprising human face photo.
The technical solution of step S302 is identical with the technical solution of previous embodiment step S202, the art being related to
Language, concept etc. can refer to the description of previous embodiment, be not repeated herein.
S303, if whether human face photo is inputted expression identification model to export god comprising human face photo by image data
State information.
In embodiments of the present invention, expression identification model can be using machine learning method train come model, example
Such as, pass through supervised learning or unsupervised learning method, training expression identification model, to export corresponding god according to human face photo
The expressions such as state information, the happiness, anger, grief and joy including personage.Therefore, after the expression identification model for having trained human face photo input,
The expression identification model trained can export expression information corresponding with human face photo.
S304 according to the expression information that expression identification model exports, is selected and expression information matches from moulding database
Moulding.
In embodiments of the present invention, it is preserved in a manner that expression information and moulding are formed mapping in moulding database a large amount of
Moulding, for example, the moulding such as cartoon figure's moulding, lovely animal, it, can be with expression when selecting the moulding with expression information matches
Information is index, and the moulding with expression information matches is selected in a manner of traversal.
Moulding corresponding with expression information matches is superimposed to human face photo by S305.
The technical solution of step S305 is identical with the technical solution of previous embodiment step S204, the art being related to
Language, concept etc. can refer to the description of previous embodiment, be not repeated herein.
The flow chart for describing to handle the method for photo moulding based on above-mentioned mobile terminal in another embodiment of the present invention is for example attached
Shown in Fig. 4, mainly include the following steps S401 to S404, detailed description are as follows:
S401 acquires image data.
The technical solution of step S301 is identical with the technical solution of previous embodiment step S201 or step S301,
Term, concept for being related to etc. can refer to the description of previous embodiment, be not repeated herein.
Whether S402 judges the image data acquired through step S401 comprising human face photo.
The technical solution of step S402 is identical with the technical solution of previous embodiment step S202 or S302, is related to
Term, concept etc. can refer to the description of previous embodiment, be not repeated herein.
Human face photo if image data includes human face photo, is inputted expression identification model to export expression letter by S403
Breath and moulding corresponding with output expression information.
It is different from previous embodiment, machine learning method is used, for example, supervised learning or the training of unsupervised learning method
Expression identification model, so that it can export corresponding expression information and corresponding with output expression information according to human face photo
Moulding.Therefore, when human face photo input has been trained expression identification model, expression information can be exported and with exporting expression
The corresponding moulding of information.
Moulding corresponding with expression information matches is superimposed to human face photo by S404.
The technical solution of step S404 is identical with the technical solution of previous embodiment step S204 or step S305,
Term, concept for being related to etc. can refer to the description of previous embodiment, be not repeated herein.
It should be noted that the method for processing photo moulding that the embodiments of the present invention provide can also include training god
State identification model, specific training method can be machine learning method, for example, supervised learning or/and unsupervised learning side
Method etc..
Referring to Fig. 5, the device for processing photo moulding provided in an embodiment of the present invention.For convenience of description, it only shows
With relevant part of the embodiment of the present invention.The device for the processing photo moulding that Fig. 5 is provided mainly includes acquisition module 501, sentences
Disconnected module 502, matching module 503 and laminating module 504, detailed description are as follows:
Acquisition module 501, for acquiring image data;
Judgment module 502, for judging image data whether comprising human face photo;
Matching module 503, if including human face photo, the expression information for face in human face photo for image data
With corresponding moulding, wherein, expression information includes expression and/or age;
Laminating module 504, for moulding corresponding with expression information matches to be superimposed to human face photo.
It should be noted that device provided in an embodiment of the present invention, due to being based on same structure with the method for the present invention embodiment
Think, the technique effect brought is identical with the method for the present invention embodiment, and particular content can be found in the method for the present invention embodiment
Narration, details are not described herein again.
5 exemplary judgment module 502 of attached drawing can include feature extraction unit 601 and determination unit 602, as attached drawing 6 shows
The device of example processing photo moulding, wherein:
Feature extraction unit 601, for extracting the face characteristic information in image data;
Determination unit 602, if being more than predetermined threshold value for face characteristic information, it is determined that shone in image data comprising face
Piece.
5 exemplary matching module 503 of attached drawing can include the first output unit 701 and selecting unit 702, as attached drawing 7 shows
The device of example processing photo moulding, wherein:
First output unit 701, for human face photo input expression identification model to be exported expression information;
Selecting unit 702 for the expression information exported according to expression identification model, is selected and god from moulding database
The moulding of state information matches.
5 exemplary matching module 503 of attached drawing can include the second output unit 801, such as 8 example process photo moulding of attached drawing
Device.Second output unit 801 be used for by human face photo input expression identification model with export expression information and with output
The corresponding moulding of expression information.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple module or components can be tied
It closes or is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module
Letter connection can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module
The component shown may or may not be physical module, you can be located at a place or can also be distributed to multiple
On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also
That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is independent product sale or uses
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention
Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
It should be noted that for aforementioned each method embodiment, describe, therefore it is all expressed as a series of for simplicity
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
It is to the processing method, apparatus of photo moulding provided by the present invention, mobile terminal above and computer-readable deposits
The description of storage media, for the thought of those skilled in the art, according to the present invention embodiment, in specific embodiment and application
There will be changes in range, to sum up, the content of the present specification should not be construed as limiting the invention.
Claims (11)
- A kind of 1. method for handling photo moulding, which is characterized in that the method includes:Acquire image data;Judge described image data whether comprising human face photo;If described image data include human face photo, the expression information matches for face in the human face photo are corresponding to be made Type, the expression information include expression and/or age;The moulding corresponding with expression information matches is superimposed to the human face photo.
- 2. the method for processing photo moulding as described in claim 1, which is characterized in that described to judge whether described image data wrap Containing human face photo, including:Extract the face characteristic information in described image data;If the face characteristic information is more than predetermined threshold value, it is determined that human face photo is included in described image data.
- 3. the method for processing photo moulding as described in claim 1, which is characterized in that if the described image data include face Photo, then the corresponding moulding of expression information matches for face in the human face photo, including:The human face photo is inputted into expression identification model to export expression information;According to the expression information that the expression identification model exports, selected from moulding database and the expression information matches Moulding.
- 4. the method for processing photo moulding as described in claim 1, which is characterized in that if the described image data include face Photo, then the corresponding moulding of expression information matches for face in the human face photo, including:By the human face photo input expression identification model with export expression information and with it is described output expression information it is corresponding Moulding.
- 5. the method for photo moulding is handled as described in Claims 1-4 any one, which is characterized in that the method further includes:Training expression identification model.
- 6. a kind of device for handling photo moulding, which is characterized in that described device includes:Acquisition module, for acquiring image data;Judgment module, for judging described image data whether comprising human face photo;Matching module, if including human face photo, the expression information for face in the human face photo for described image data Corresponding moulding is matched, the expression information includes expression and/or age;Laminating module, for the moulding corresponding with expression information matches to be superimposed to the human face photo.
- 7. the device of processing photo moulding as claimed in claim 6, which is characterized in that the judgment module includes:Feature extraction unit, for extracting the face characteristic information in described image data;Determination unit, if being more than predetermined threshold value for the face characteristic information, it is determined that include face in described image data Photo.
- 8. the device of processing photo moulding as claimed in claim 6, which is characterized in that the matching module includes:First output unit, for human face photo input expression identification model to be exported expression information;Selecting unit, for the expression information exported according to the expression identification model, selected from moulding database with it is described The moulding of expression information matches.
- 9. the device of processing photo moulding as claimed in claim 6, which is characterized in that the matching module includes:Second output unit, for by the human face photo input expression identification model with export expression information and with it is described defeated Go out the corresponding moulding of expression information.
- 10. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when performing the computer program The step of any one the method.
- 11. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization is such as the step of claim 1 to 5 any one the method when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810102292.8A CN108257200A (en) | 2018-02-01 | 2018-02-01 | A kind of method, apparatus and computer readable storage medium for handling photo moulding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810102292.8A CN108257200A (en) | 2018-02-01 | 2018-02-01 | A kind of method, apparatus and computer readable storage medium for handling photo moulding |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108257200A true CN108257200A (en) | 2018-07-06 |
Family
ID=62741988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810102292.8A Pending CN108257200A (en) | 2018-02-01 | 2018-02-01 | A kind of method, apparatus and computer readable storage medium for handling photo moulding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108257200A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086680A (en) * | 2018-07-10 | 2018-12-25 | Oppo广东移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6215506B1 (en) * | 1993-06-01 | 2001-04-10 | Brother Kogyo Kabushiki Kaisha | Portrait drawing apparatus |
CN105096241A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Face image beautifying device and method |
CN105512931A (en) * | 2015-12-09 | 2016-04-20 | 北京镜联视界科技有限公司 | Method and device for intelligently fitting glasses online |
CN105787974A (en) * | 2014-12-24 | 2016-07-20 | 中国科学院苏州纳米技术与纳米仿生研究所 | Establishment method for establishing bionic human facial aging model |
CN106204691A (en) * | 2016-07-19 | 2016-12-07 | 马志凌 | Virtual make up system |
CN206533478U (en) * | 2017-03-06 | 2017-09-29 | 柳州智视科技有限公司 | A kind of virtual device for becoming color of changing one's clothes |
-
2018
- 2018-02-01 CN CN201810102292.8A patent/CN108257200A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6215506B1 (en) * | 1993-06-01 | 2001-04-10 | Brother Kogyo Kabushiki Kaisha | Portrait drawing apparatus |
CN105787974A (en) * | 2014-12-24 | 2016-07-20 | 中国科学院苏州纳米技术与纳米仿生研究所 | Establishment method for establishing bionic human facial aging model |
CN105096241A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Face image beautifying device and method |
CN105512931A (en) * | 2015-12-09 | 2016-04-20 | 北京镜联视界科技有限公司 | Method and device for intelligently fitting glasses online |
CN106204691A (en) * | 2016-07-19 | 2016-12-07 | 马志凌 | Virtual make up system |
CN206533478U (en) * | 2017-03-06 | 2017-09-29 | 柳州智视科技有限公司 | A kind of virtual device for becoming color of changing one's clothes |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086680A (en) * | 2018-07-10 | 2018-12-25 | Oppo广东移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105391965B (en) | Video recording method based on multi-cam and device | |
CN111985265A (en) | Image processing method and device | |
CN107172256A (en) | Earphone call self-adapting regulation method, device, mobile terminal and storage medium | |
WO2019024717A1 (en) | Anti-counterfeiting processing method and related product | |
CN107172255A (en) | Voice signal self-adapting regulation method, device, mobile terminal and storage medium | |
CN107341006A (en) | Screen locking wallpaper recommends method and Related product | |
KR20100062207A (en) | Method and apparatus for providing animation effect on video telephony call | |
CN105653029A (en) | Method and system for obtaining immersion feel in virtual reality system as well as intelligent glove | |
CN106657528A (en) | Incoming call management method and device | |
CN107872555A (en) | Call recording method, device, terminal device and computer-readable recording medium | |
CN104574299A (en) | Face picture processing method and device | |
CN106611402B (en) | Image processing method and device | |
CN107786709A (en) | Call noise-reduction method, device, terminal device and computer-readable recording medium | |
WO2017088434A1 (en) | Human face model matrix training method and apparatus, and storage medium | |
CN106951521A (en) | The reading/writing method of journal file, apparatus and system | |
CN107734255A (en) | Method, apparatus, mobile terminal and the readable storage medium storing program for executing that shooting is taken pictures certainly | |
CN109951400A (en) | Instruction sending method, device, electronic equipment and the readable storage medium storing program for executing of terminal | |
CN105872980B (en) | A kind of method and device scanning wireless network signal | |
CN108764051A (en) | Image processing method, device and mobile terminal | |
CN108766416B (en) | Speech recognition method and related product | |
CN110909695A (en) | Anti-counterfeiting processing method and related product | |
CN107545163B (en) | Unlocking control method and related product | |
CN107172313A (en) | Improve method, device, mobile terminal and the storage medium of hand-free call quality | |
CN112528266A (en) | Visiting registration method and related device | |
CN107682553A (en) | Speech signal sending method, device, mobile terminal and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180706 |