CN104574299A - Face picture processing method and device - Google Patents

Face picture processing method and device Download PDF

Info

Publication number
CN104574299A
CN104574299A CN201410826537.3A CN201410826537A CN104574299A CN 104574299 A CN104574299 A CN 104574299A CN 201410826537 A CN201410826537 A CN 201410826537A CN 104574299 A CN104574299 A CN 104574299A
Authority
CN
China
Prior art keywords
face picture
face
picture
pending
key feature
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
Application number
CN201410826537.3A
Other languages
Chinese (zh)
Inventor
许斐
王博
陈志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410826537.3A priority Critical patent/CN104574299A/en
Publication of CN104574299A publication Critical patent/CN104574299A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

An embodiment of the invention discloses a face picture processing method and device. The method comprises the following steps: a to-be-processed face picture is acquired, and a target face picture such as a face picture of a star is determined; then facial key features of the target face picture and the to-be-processed face picture are extracted respectively, and the facial key features of the to-be-processed face picture are adjusted correspondingly by taking the facial key features of the target face picture as the target state. According to the method, the target face picture can be selected dynamically, that is, the target state of face picture processing is selected dynamically, so that the face processing result is richer. Further, the target state also refers to the face picture of a real person, so that the processing effect is more real and more natural.

Description

Face picture disposal route and device
Technical field
The disclosure relates to picture Processing Technique field, particularly relates to a kind of face picture disposal route and device.
Background technology
Along with intelligent terminal ground is fast-developing, intelligent terminal has become important one of instrument of taking pictures of people, and a lot of intelligent terminal has U.S. face function, user can utilize U.S. face software to carry out the U.S. face process such as U.S. type, large eye, bright eye, whitening to the photo oneself taken.
But the U.S. face software in correlation technique is all carry out U.S. face for fixing U.S. face parameter, such as, fixing shape of face template, face template, colour of skin template etc., the face after U.S. face is nature not, and the photo that U.S. face obtains is substantially all the same, too dull.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of face picture disposal route and device, and technical scheme is as follows:
According to the first aspect of disclosure embodiment, a kind of face picture disposal route is provided, comprises:
Obtain pending face picture;
Determine target face picture;
Obtain the facial key feature of described pending face picture and described target face picture respectively;
The operation of U.S. face is performed according to the facial key feature of facial key feature to described pending face picture of described target face picture.
In conjunction with first aspect, in the first possible implementation of first aspect, the described facial key feature of facial key feature to described pending face picture according to described target face picture performs the operation of U.S. face, comprising:
With the facial key feature of described target face picture for dbjective state, adjust the facial key feature of described pending face picture.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, describedly determine target face picture, comprising:
Obtain the face characteristic of described pending face picture;
The face characteristic corresponding according to each face picture in the face characteristic of described pending face picture and the face picture storehouse set up in advance, determines that the maximum face picture of similarity between described pending face picture is described target face picture.
In conjunction with first aspect, in the third possible implementation of first aspect, describedly determine target face picture, comprising:
Obtain the face picture that operator chooses from the face picture storehouse set up in advance, as described target face picture;
Or,
Obtain the information of the designated person that operator chooses, face picture corresponding to described designated person is chosen from the face picture storehouse set up in advance, and from the corresponding face picture of described designated person, determine that the maximum face picture of similarity between described pending face picture is described target face picture.
In conjunction with the second or the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described method also comprises:
Obtain the face picture presetting personage;
Obtain the face characteristic of face picture corresponding to described default personage;
Store the described face picture of default personage and the face characteristic of correspondence, obtain face picture storehouse.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, the face picture of personage is preset in described acquisition, comprising:
Obtain the information presetting personage;
The information of described default personage is sent to server, with the face picture making described server preset personage according to the acquisition of information of described default personage;
The face picture that the described default personage that reception server returns is corresponding.
In conjunction with the 4th kind of possible implementation of first aspect, in the 6th kind of possible implementation of first aspect, described method also comprises:
According to the described face picture of default personage and the face characteristic of correspondence, build the inverted index in described face picture storehouse.
In conjunction with first aspect, in the 7th kind of possible implementation of first aspect, described method also comprises:
By described target face picture-storage in mobile terminal.
According to the second aspect of disclosure embodiment, a kind of face picture treating apparatus is provided, comprises:
First acquisition module, for obtaining pending face picture;
Determination module, for determining target face picture;
Second acquisition module, for obtaining the facial key feature of described pending face picture and described target face picture respectively;
U.S. face module, for performing the operation of U.S. face according to the facial key feature of facial key feature to described pending face picture of described target face picture.
In conjunction with second aspect, in the first possible implementation of second aspect, described U.S. face module comprises:
Adjustment submodule, for the facial key feature of described target face picture for dbjective state, adjust the facial key feature of described pending face picture.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described determination module, comprising:
First obtains submodule, for obtaining the face characteristic of described pending face picture;
First determines submodule, for the face characteristic corresponding according to each face picture in the face characteristic of described pending face picture and the face picture storehouse set up in advance, determine that the maximum face picture of similarity between described pending face picture is described target face picture.
In conjunction with second aspect, in the third possible implementation of second aspect, described determination module, comprising:
Second obtains submodule, for obtaining the face picture that operator chooses from the face picture storehouse set up in advance, as described target face picture;
Or,
3rd obtains submodule, for obtaining the information of the designated person that operator chooses; Choose submodule, for choosing face picture corresponding to described designated person from the face picture storehouse set up in advance; Second determines submodule, for from the corresponding face picture of described designated person, determines that the maximum face picture of similarity between described pending face picture is described target face picture.
In conjunction with the second or the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described device also comprises:
3rd acquisition module, for obtaining the face picture of default personage;
4th acquisition module, for obtaining the face characteristic of face picture corresponding to described default personage;
First memory module, for storing the described face picture of default personage and the face characteristic of correspondence, obtains face picture storehouse.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, described 3rd acquisition module, comprising:
4th obtains submodule, for obtaining the information of default personage;
Send submodule, for the information of described default personage is sent to server, with the face picture making described server preset personage according to the acquisition of information of described default personage;
Receive submodule, the face picture that the described default personage returned for reception server is corresponding.
In conjunction with the 4th kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, described device also comprises:
Second memory module, for by described target face picture-storage in mobile terminal.
According to the third aspect of disclosure embodiment, a kind of terminal device is provided, comprises: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to:
Obtain pending face picture;
Determine target face picture;
Obtain the facial key feature of described pending face picture and described target face picture respectively;
The operation of U.S. face is performed according to the facial key feature of facial key feature to described pending face picture of described target face picture.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: obtain pending face picture, determines target face picture, the face picture of such as star personage; Then, extract the facial key feature of target face picture and pending face picture respectively, and with the facial key feature of target face picture for dbjective state, the facial key feature of the pending face picture of corresponding adjustment.The method can Dynamic Selection target face picture, and the dbjective state of also i.e. Dynamic Selection face picture process, face processing result is abundanter.And dbjective state is also the face picture of real person, therefore treatment effect more truly, more natural.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of a kind of face picture disposal route according to an exemplary embodiment;
Fig. 2 is the process flow diagram of the another kind of face picture disposal route according to an exemplary embodiment;
Fig. 3 is the process flow diagram of another the face picture disposal route according to an exemplary embodiment;
Fig. 4 is the block diagram of a kind of face picture treating apparatus according to an exemplary embodiment;
Fig. 5 is the block diagram of the another kind of face picture treating apparatus according to the disclosure one exemplary embodiment;
Fig. 6 is the block diagram of a kind of determination module according to the disclosure one exemplary embodiment;
Fig. 7 is the block diagram of the another kind of determination module according to the disclosure one exemplary embodiment;
Fig. 8 is the block diagram of another the face picture treating apparatus according to the disclosure one exemplary embodiment;
Fig. 9 is the block diagram of the 3rd acquisition module according to an exemplary embodiment;
Figure 10 is the block diagram of the another kind of face picture treating apparatus according to an exemplary embodiment;
Figure 11 is the block diagram of a kind of device 800 for realizing face picture process according to an exemplary embodiment;
Figure 12 is the block diagram of a kind of device 1900 for realizing face picture process according to an exemplary embodiment.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of a kind of face picture disposal route according to an exemplary embodiment, and the method is used in mobile terminal or server, and as shown in Figure 1, described method can comprise the following steps:
In step s 110, pending face picture is obtained.
Pending face picture can be that user utilizes mobile terminal camera to apply the photo of shooting, also can be other photo that mobile terminal receives.
In the step s 120, target face picture is determined.Wherein, target face picture can be the photo of star personage, or, the photo of other personage that user specifies.
In the disclosure one exemplary embodiment, user can specify a certain face picture (such as, the photo of a certain star personage) as target face picture.
In another exemplary embodiment of the disclosure, a star personage can be specified by user, then, in the face picture that this star personage that mobile terminal or server store from face picture storehouse is corresponding, choose a face picture maximum with the similarity of pending face picture as target face picture.This kind determines the method for target face picture, has both met to allow the U.S. face direction of user oneself unrestricted choice, and the immediate U.S. face parameter finally with pending face picture is determined in the U.S. face direction can selected user again automatically.
In another exemplary embodiment of the present disclosure, a face picture the most similar to pending face picture also can be selected from the figure map's valut built in advance as target face picture.
Determine that the process of target face picture can be performed by mobile terminal, also can be performed by server.Under the application scenarios by server determination target face picture, the target face picture that server is determined sends to mobile terminal, mobile terminal can store described target face picture, like this, as long as after when carrying out the operation of U.S. face first, interconnection network obtains target face picture, when carrying out U.S. face again, mobile terminal also can use when disconnecting network later.
In step s 130, which, the facial key feature of described pending face picture and described target face picture is obtained respectively.
Face key feature can comprise the features such as facial contour, eyes, nose, eyebrow, face and the colour of skin.
In step S140, perform the operation of U.S. face according to the facial key feature of facial key feature to described pending face picture of described target face picture.
In the disclosure one exemplary embodiment, step S140 can be with the facial key feature of described target face picture for dbjective state, adjust the facial key feature of described pending face picture.
Using the facial key feature of target face picture as dbjective state, the facial key feature of pending face picture is as original state, then, original state is adjusted to dbjective state, thus realize the portrait photographs of user to adjust to the face feature similarity with target face.
Adjusting in the process of dbjective state from original state, adjusting item by item for every facial key feature, namely adjust wherein one time, need the parameter constant keeping other facial key feature items.Such as, during adjustment facial contour, first keep other (such as, eyes, nose, face etc.) constant.
Wherein, the processes such as the size of adjustment facial contour, adjustment eye shape and size, adjustment nose shape, adjustment face are all U.S. type processes, need being carried out interpolation processing by the variable around adjustment feature, thus ensure the sense of reality of the face after adjustment.Such as, during adjustment facial contour, need the variable around to the colour of skin of face and face to carry out interpolation processing, thus time adjustment after face have more the sense of reality.
Need the adjustment colour of skin rgb value during adjustment colour of skin, the colour of skin rgb value of pending face picture is adjusted to colour of skin rgb value corresponding to target face picture.
The face picture disposal route that the present embodiment provides, first determines target face picture, the face picture of such as star personage; Then, extract the facial key feature of target face picture and pending face picture respectively, and with the facial key feature of target face picture for dbjective state, the facial key feature of the pending face picture of corresponding adjustment.The method can Dynamic Selection target face picture, and the dbjective state of also i.e. Dynamic Selection face picture process, face processing result is abundanter.And dbjective state is also the face picture of real person, therefore treatment effect more truly, more natural.
Fig. 2 is the another kind of face picture process flow figure according to an exemplary embodiment, and the method is applied in mobile terminal or server, and as shown in Figure 2, described method can comprise the following steps:
In step S210, obtain the face picture presetting personage.
A certain class personage can be specified for presetting personage's (such as, star personage) by user, such as, user directly can specify the name (such as, poplar power) of default personage, then, obtains the photo presetting personage from internet.Or, can the face picture in designated pictures storehouse be also the face picture of default personage.
In the disclosure one exemplary embodiment, when executive agent is server, the information of the described default personage that server mobile terminal receive obtains, then obtains the photo of described default personage from internet, and stores in the server.
In another exemplary embodiment of the disclosure, when executive agent is mobile terminal, acquisition for mobile terminal is preset the information of personage and is sent to server, is then obtained the photo presetting personage by server, and the photo of the default personage obtained is sent to mobile terminal.
In step S220, obtain the face characteristic of face picture corresponding to described default personage.
Described face characteristic can be gabor feature or LBP (Local binary patterns, local binary patterns) feature.
All very many owing to often opening the face characteristic that face picture comprises, if during similarity between each face picture that more pending face is corresponding with default personage, extract real-time presets the face characteristic of face picture corresponding to personage again, especially the face picture of personage is preset when having a lot of, the face characteristic extracting face picture needs a large amount of time, reduces the speed of face picture process.
In order to improve the speed of face picture process, shorten period of reservation of number, the present embodiment is after obtaining the face picture presetting personage, just extract the face characteristic of described face picture immediately, namely, when building face picture storehouse, just extracting the face characteristic of face picture corresponding to default personage and being stored in face picture storehouse.
In step S230, store the described face picture of default personage and the face characteristic of correspondence, obtain face picture storehouse.
In step S240, obtain pending face picture.
In step s 250, the face characteristic of pending face picture is obtained.Described face characteristic can be gabor feature or LBP feature.
In step S260, the face characteristic corresponding according to each face picture in the face characteristic of described pending face picture and the face picture storehouse set up in advance, determines that the maximum face picture of similarity between described pending face picture is target face picture.
Determine that face picture the most similar to pending face picture in face picture storehouse is target face picture.Distance between the face characteristic that can calculate each face picture in the face characteristic of pending face picture and face picture storehouse.Described distance can be Euclidean distance or cosine similarity; Wherein, Euclidean distance is less, then two faces are more similar; Euclidean distance is larger, and two face differences are larger.Cosine similarity is less, and the difference of two faces is larger; Cosine similarity is larger, and two faces are more similar.
In step S270, obtain the facial key feature of pending face picture and target face picture respectively.
In step S280, with the facial key feature of described target face picture for dbjective state, adjust the facial key feature of described pending face picture.
The face picture method that the present embodiment provides, before treating process face picture processes, also needs to set up face picture storehouse.Then, the face picture the highest with pending face picture matching degree automatically can be found from face picture storehouse as target face picture by mobile terminal or server, not need user to carry out other operation, easy to operate.And, extracting the face characteristic of each face picture in face picture storehouse in advance and be saved in face picture storehouse, when each face picture in relatively face picture storehouse and pending face picture, only need extract the face characteristic of pending face picture, from face picture storehouse, directly obtain the face characteristic of each face picture.Thus, save the time needed for face characteristic of extracting each face picture in face picture storehouse, shorten the time of face comparison procedure, improve Consumer's Experience.
Fig. 3 is another face picture process flow figure according to an exemplary embodiment, and the method is applied in the system comprising mobile terminal and server, and as shown in Figure 3, described method can comprise the following steps:
In step S310, server obtains the face picture presetting personage.Described default personage can be specified the scope of default personage by user, such as, can be star personage.
In step s 320, server obtains the face characteristic of described face picture.Described face characteristic can comprise gabor feature, LBP feature.
In step S330, the face characteristic of the described face picture that server stores obtains and correspondence, sets up face picture storehouse.
After obtaining the face picture presetting personage, just from face picture, extract corresponding face characteristic immediately, and by face picture and face characteristic corresponding stored, obtain face picture storehouse.
In step S340, server, according to the face characteristic of described face picture and correspondence, builds the inverted index in described face picture storehouse.
Inverted index is the concrete file layout of one realizing " word-document matrix ", by inverted index, can comprise the lists of documents of this word according to word quick obtaining.In the present embodiment, " document " is exactly face picture, and " word " is exactly face characteristic, can be found in face picture storehouse all faces comprising a certain feature very soon, accelerate the search speed of target face by inverted index.
In step S350, the pending face picture of acquisition for mobile terminal, and the face characteristic obtaining described pending face picture.
In step S360, the face characteristic of described pending face picture is sent to server by mobile terminal.
In step S370, server, according to the face characteristic of described inverted index and described pending face picture, chooses the face picture that similarity is maximum between described pending face picture as target face picture from described face picture storehouse.
The face picture the most similar to the face characteristic of pending face is chosen as target face picture from face picture storehouse.Access speed can be accelerated by inverted index mode, first, count the face characteristic that pending face picture comprises; Then, utilize inverted index to find the face picture that the face characteristic matching degree of the face characteristic in face picture storehouse and pending face picture is the highest, and using this face picture as target face picture.
Suppose, pending face picture comprises face characteristic A, B, C, D.From face picture storehouse, then search for the face picture the highest with face characteristic A, B, C, D matching degree as target face picture.
Face picture library storage in the server, needs networking when running this face picture disposal route, therefore, and can also by target face picture-storage in mobile terminal.Like this, when user processes the face picture of shooting next time, directly can obtain target facial image from this locality, do not need networking, save Internet resources, simultaneously, also save the time that server chooses target face picture from face picture storehouse, improve face picture processing speed.
Certainly, also face picture corresponding to the some default personage the most similar with the face in pending face picture and corresponding face characteristic can be stored in mobile terminal.When another photo comprising described face being processed, directly can choose a pictures the most similar to described face as target face picture from face picture corresponding to some default personage that this locality stores next time.
In step S380, server obtains the facial key feature of target face picture and pending face picture respectively.
In step S390, server for dbjective state, adjusts the facial key feature of described pending face picture with the facial key feature of described target face picture.
After server adjusts pending face picture, the face picture after adjustment is sent mobile terminal and shows.
The face picture disposal route that the present embodiment provides, during server construction face picture storehouse, build inverted index, can fast from face picture storehouse fast finding to the highest face picture of the face characteristic matching degree with pending face picture as target face picture.And the follow-up process face picture process of carrying out processing for the treatment of has been come by server, the resource of server is than the aboundresources of mobile terminal, and therefore, the processing speed of face picture is fast, shortens the time that user waits for face picture process, improves Consumer's Experience.
Fig. 4 is the block diagram of a kind of face picture treating apparatus according to an exemplary embodiment.As shown in Figure 4, this device comprises the first acquisition module 110, determination module 120, second acquisition module 130 and U.S. face module 140;
First acquisition module 110 is configured to, and obtains pending face picture.
Determination module 120 is configured to, and determines target face picture.
Second acquisition module 130 is configured to, and obtains the facial key feature of described pending face picture and described target face picture respectively.
U.S. face module 140 is configured to, and performs the operation of U.S. face according to the facial key feature of facial key feature to described pending face picture of described target face picture.
Wherein, described U.S. face module can comprise adjustment submodule; This adjustment submodule is configured to, and with the facial key feature of described target face picture for dbjective state, adjusts the facial key feature of described pending face picture.
The face picture treating apparatus that the present embodiment provides, first determines target face picture, the face picture of such as star personage; Then, extract the facial key feature of target face picture and pending face picture respectively, and with the facial key feature of target face picture for dbjective state, the facial key feature of the pending face picture of corresponding adjustment.This device can Dynamic Selection target face picture, the dbjective state of also i.e. Dynamic Selection face picture process, thus makes the result of face picture abundanter.And dbjective state is also the face picture of real person, therefore treatment effect more truly, more natural.
Fig. 5 is the block diagram of the another kind of face picture treating apparatus according to the disclosure one exemplary embodiment, and as shown in Figure 5, the determination module 120 in Fig. 4 is replaced with the second acquisition submodule 121 by this device, and other module is constant;
Second obtains submodule 121 is configured to, and obtains the face picture that operator chooses from the face picture storehouse set up in advance, as described target face picture.
The face picture treating apparatus that the present embodiment provides, can freely choose target face picture by user, thus meet the individual demand of user from face picture storehouse, avoids obtaining machine-made U.S. face result.
Fig. 6 is the block diagram of a kind of determination module according to the disclosure one exemplary embodiment, as shown in Figure 6, described determination module 120 can comprise: first obtains submodule 122 and first determines submodule 123, wherein, first obtains submodule 122 is connected with the first acquisition module 110, and first determines that submodule 123 is connected with the second acquisition module 130;
First obtains submodule 122 is configured to, and obtains the face characteristic of described pending face picture.
First determines that submodule 123 is configured to, the face characteristic corresponding according to each face picture in the face characteristic of described pending face picture and the face picture storehouse set up in advance, determines that the maximum face picture of similarity between described pending face picture is described target face picture.
The determination module that the present embodiment provides, according to the similarity between the picture in the face picture storehouse set up in advance and pending face picture, determines target face picture.Realize mobile terminal and can automatically determine target face picture according to the pending face picture of user, like this, the similarity between the target face picture determined and pending face picture is maximum, thus makes U.S. face result more natural.
Fig. 7 is the block diagram of the another kind of determination module according to the disclosure one exemplary embodiment, and as shown in Figure 7, described determination module 120 can comprise: the 3rd obtain submodule 124, choose submodule 125 and second and determine submodule 126; Wherein, the 3rd obtains submodule 124 is connected with the first acquisition module 110, and second determines that submodule 126 is connected with the second acquisition module 130.
3rd obtains submodule 124 is configured to, and obtains the information of the designated person that operator chooses.
Choose submodule 125 to be configured to, from the face picture storehouse set up in advance, choose face picture corresponding to described designated person.
Second determines that submodule 126 is configured to, and from the corresponding face picture of described designated person, determines that the maximum face picture of similarity between described pending face picture is described target face picture.
The determination module that the present embodiment provides, according to the similarity between the picture in the face picture storehouse set up in advance and pending face picture, determines target face picture.Realize the information of the designated person that mobile terminal can be selected according to user, automatically target face picture is determined, the individual demand of user can either be met, the face picture simultaneously can determining the designated person that similarity between pending face picture is maximum is voluntarily target face picture, thus makes the U.S. face result treating process face picture not only meet the individual requirement of user but also can ensure that U.S. face result is more natural.
Fig. 8 is the block diagram of another the face picture treating apparatus according to the disclosure one exemplary embodiment, this application of installation is in mobile terminal or server, as shown in Figure 8, this device, on basis embodiment illustrated in fig. 4, can also comprise the 3rd acquisition module 210, the 4th acquisition module 220 and the first memory module 230; Wherein, the first memory module 230 is connected with determination module 120.
3rd acquisition module 210 is configured to, and obtains the face picture presetting personage.
In the disclosure one exemplary embodiment, the 3rd acquisition module is applied in mobile terminal, and as shown in Figure 9, described 3rd acquisition module 210 can comprise: the 4th obtains submodule 211, transmission submodule 212 and receive submodule 213.
4th obtains submodule 211 is configured to, and obtains the information presetting personage.Send submodule 212 to be configured to, the information of described default personage is sent to server, with the face picture making described server preset personage according to the acquisition of information of described default personage.Receive submodule 213 to be configured to, the face picture that the described default personage that reception server returns is corresponding.
4th acquisition module 220 is configured to, and obtains the face characteristic of face picture corresponding to described default personage.
First memory module 230 is configured to, and stores the described face picture of default personage and the face characteristic of correspondence, obtains face picture storehouse.
When building face picture storehouse, according to the described face picture of default personage and the face characteristic of correspondence, build the inverted index in face picture storehouse, all face picture comprising a certain feature can be found in face picture storehouse by inverted index very soon, accelerate the search speed of target face picture.
Described determination module 120 is connected with described first memory module 230, from described face picture storehouse, choose target face picture.
Figure 10 is the block diagram of the another kind of face picture treating apparatus according to an exemplary embodiment, and this application of installation, in mobile terminal, on basis embodiment illustrated in fig. 4, can also comprise the second memory module 310 be connected with determination module 120;
Second memory module 310 is configured to, and the described target face picture-storage determined by server is in described mobile terminal.
In the present embodiment, by server determination target face picture, and send to mobile terminal, mobile terminal stores described target face picture, like this, as long as after when carrying out the operation of U.S. face first, interconnection network obtains target face picture, when carrying out U.S. face again, mobile terminal also can use when disconnecting network later.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 11 is the block diagram of a kind of device 800 for face picture process according to an exemplary embodiment.Such as, device 800 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
As shown in figure 11, device 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing components 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of device 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 806 is device 800 provide electric power.Power supply module 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When device 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensor, for providing the state estimation of various aspects for device 800.Such as, sensor module 814 can detect the opening/closing state of device 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right pick-up unit 800 of sensor module 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the temperature variation of device 800 orientation or acceleration/deceleration and device 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or CCD photo sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make terminal device can perform a kind of face picture disposal route, described method comprises:
Obtain pending face picture;
Determine target face picture;
Obtain the facial key feature of described pending face picture and described target face picture respectively;
The operation of U.S. face is performed according to the facial key feature of facial key feature to described pending face picture of described target face picture.
Figure 12 is the block diagram of a kind of device 1900 for face picture process according to an exemplary embodiment.Such as, device 1900 may be provided in a server.As shown in figure 12, device 1900 comprises processing components 1922, and it comprises one or more processor further, and the memory resource representated by storer 1932, can such as, by the instruction of the execution of processing components 1922, application program for storing.The application program stored in storer 1932 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1922 is configured to perform instruction, the to perform the above method embodiment of the method shown in Fig. 1-Fig. 3.
Device 1900 can also comprise the power management that a power supply module 1926 is configured to actuating unit 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 can operate the operating system based on being stored in storer 1932, such as WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (16)

1. a face picture disposal route, is characterized in that, comprising:
Obtain pending face picture;
Determine target face picture;
Obtain the facial key feature of described pending face picture and described target face picture respectively;
The operation of U.S. face is performed according to the facial key feature of facial key feature to described pending face picture of described target face picture.
2. method according to claim 1, is characterized in that, the described facial key feature of facial key feature to described pending face picture according to described target face picture performs the operation of U.S. face, comprising:
With the facial key feature of described target face picture for dbjective state, adjust the facial key feature of described pending face picture.
3. method according to claim 1, is characterized in that, describedly determines target face picture, comprising:
Obtain the face characteristic of described pending face picture;
The face characteristic corresponding according to each face picture in the face characteristic of described pending face picture and the face picture storehouse set up in advance, determines that the maximum face picture of similarity between described pending face picture is described target face picture.
4. method according to claim 1, is characterized in that, describedly determines target face picture, comprising:
Obtain the face picture that operator chooses from the face picture storehouse set up in advance, as described target face picture;
Or,
Obtain the information of the designated person that operator chooses, face picture corresponding to described designated person is chosen from the face picture storehouse set up in advance, and from the corresponding face picture of described designated person, determine that the maximum face picture of similarity between described pending face picture is described target face picture.
5. the method according to claim 3 or 4, is characterized in that, described method also comprises:
Obtain the face picture presetting personage;
Obtain the face characteristic of face picture corresponding to described default personage;
Store the described face picture of default personage and the face characteristic of correspondence, obtain face picture storehouse.
6. method according to claim 5, is characterized in that, the face picture of personage is preset in described acquisition, comprising:
Obtain the information presetting personage;
The information of described default personage is sent to server, with the face picture making described server preset personage according to the acquisition of information of described default personage;
The face picture that the described default personage that reception server returns is corresponding.
7. method according to claim 5, is characterized in that, described method also comprises:
According to the described face picture of default personage and the face characteristic of correspondence, build the inverted index in described face picture storehouse.
8. method according to claim 1, is characterized in that, described method also comprises:
By described target face picture-storage in mobile terminal.
9. a face picture treating apparatus, is characterized in that, comprising:
First acquisition module, for obtaining pending face picture;
Determination module, for determining target face picture;
Second acquisition module, for obtaining the facial key feature of described pending face picture and described target face picture respectively;
U.S. face module, for performing the operation of U.S. face according to the facial key feature of facial key feature to described pending face picture of described target face picture.
10. device according to claim 9, is characterized in that, described U.S. face module comprises:
Adjustment submodule, for the facial key feature of described target face picture for dbjective state, adjust the facial key feature of described pending face picture.
11. devices according to claim 9, is characterized in that, described determination module, comprising:
First obtains submodule, for obtaining the face characteristic of described pending face picture;
First determines submodule, for the face characteristic corresponding according to each face picture in the face characteristic of described pending face picture and the face picture storehouse set up in advance, determine that the maximum face picture of similarity between described pending face picture is described target face picture.
12. devices according to claim 9, is characterized in that, described determination module, comprising:
Second obtains submodule, for obtaining the face picture that operator chooses from the face picture storehouse set up in advance, as described target face picture;
Or,
3rd obtains submodule, for obtaining the information of the designated person that operator chooses; Choose submodule, for choosing face picture corresponding to described designated person from the face picture storehouse set up in advance; Second determines submodule, for from the corresponding face picture of described designated person, determines that the maximum face picture of similarity between described pending face picture is described target face picture.
13. devices according to claim 11 or 12, it is characterized in that, described device also comprises:
3rd acquisition module, for obtaining the face picture of default personage;
4th acquisition module, for obtaining the face characteristic of face picture corresponding to described default personage;
First memory module, for storing the described face picture of default personage and the face characteristic of correspondence, obtains face picture storehouse.
14. devices according to claim 13, is characterized in that, described 3rd acquisition module, comprising:
4th obtains submodule, for obtaining the information of default personage;
Send submodule, for the information of described default personage is sent to server, with the face picture making described server preset personage according to the acquisition of information of described default personage;
Receive submodule, the face picture that the described default personage returned for reception server is corresponding.
15. devices according to claim 9, is characterized in that, described device also comprises:
Second memory module, for by described target face picture-storage in mobile terminal.
16. 1 kinds of terminal devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain pending face picture;
Determine target face picture;
Obtain the facial key feature of described pending face picture and described target face picture respectively;
The operation of U.S. face is performed according to the facial key feature of facial key feature to described pending face picture of described target face picture.
CN201410826537.3A 2014-12-25 2014-12-25 Face picture processing method and device Pending CN104574299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410826537.3A CN104574299A (en) 2014-12-25 2014-12-25 Face picture processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410826537.3A CN104574299A (en) 2014-12-25 2014-12-25 Face picture processing method and device

Publications (1)

Publication Number Publication Date
CN104574299A true CN104574299A (en) 2015-04-29

Family

ID=53090280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410826537.3A Pending CN104574299A (en) 2014-12-25 2014-12-25 Face picture processing method and device

Country Status (1)

Country Link
CN (1) CN104574299A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405094A (en) * 2015-11-26 2016-03-16 掌赢信息科技(上海)有限公司 Method for processing face in instant video and electronic device
CN105404863A (en) * 2015-11-13 2016-03-16 小米科技有限责任公司 Figure feature recognition method and system
WO2017118250A1 (en) * 2016-01-04 2017-07-13 中兴通讯股份有限公司 Facial beautification method, apparatus, and terminal device
CN108182714A (en) * 2018-01-02 2018-06-19 腾讯科技(深圳)有限公司 Image processing method and device, storage medium
EP3383022A1 (en) * 2017-04-01 2018-10-03 Beijing Xiaomi Mobile Software Co., Ltd. Method and camera device for processing image
CN109166082A (en) * 2018-08-22 2019-01-08 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN109167914A (en) * 2018-09-25 2019-01-08 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN109584151A (en) * 2018-11-30 2019-04-05 腾讯科技(深圳)有限公司 Method for beautifying faces, device, terminal and storage medium
WO2021139706A1 (en) * 2020-01-08 2021-07-15 华为技术有限公司 Image processing method, device, and system
US11404086B2 (en) * 2020-02-14 2022-08-02 Perfect Mobile Corp. Systems and methods for segment-based virtual application of makeup effects to facial regions displayed in video frames
US11922540B2 (en) 2020-02-14 2024-03-05 Perfect Mobile Corp. Systems and methods for segment-based virtual application of facial effects to facial regions displayed in video frames

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040228528A1 (en) * 2003-02-12 2004-11-18 Shihong Lao Image editing apparatus, image editing method and program
CN101777195A (en) * 2010-01-29 2010-07-14 浙江大学 Three-dimensional face model adjusting method
CN102982165A (en) * 2012-12-10 2013-03-20 南京大学 Large-scale human face image searching method
CN103761536A (en) * 2014-01-28 2014-04-30 五邑大学 Human face beautifying method based on non-supervision optimal beauty features and depth evaluation model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040228528A1 (en) * 2003-02-12 2004-11-18 Shihong Lao Image editing apparatus, image editing method and program
CN101777195A (en) * 2010-01-29 2010-07-14 浙江大学 Three-dimensional face model adjusting method
CN102982165A (en) * 2012-12-10 2013-03-20 南京大学 Large-scale human face image searching method
CN103761536A (en) * 2014-01-28 2014-04-30 五邑大学 Human face beautifying method based on non-supervision optimal beauty features and depth evaluation model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩静亮 等: "基于迭代多级中值滤波的人脸美化算法", 《计算机应用与软件》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404863A (en) * 2015-11-13 2016-03-16 小米科技有限责任公司 Figure feature recognition method and system
CN105404863B (en) * 2015-11-13 2018-11-02 小米科技有限责任公司 Character features recognition methods and system
CN105405094A (en) * 2015-11-26 2016-03-16 掌赢信息科技(上海)有限公司 Method for processing face in instant video and electronic device
WO2017118250A1 (en) * 2016-01-04 2017-07-13 中兴通讯股份有限公司 Facial beautification method, apparatus, and terminal device
EP3383022A1 (en) * 2017-04-01 2018-10-03 Beijing Xiaomi Mobile Software Co., Ltd. Method and camera device for processing image
US10565763B2 (en) 2017-04-01 2020-02-18 Beijing Xiaomi Mobile Software Co., Ltd. Method and camera device for processing image
CN108182714B (en) * 2018-01-02 2023-09-15 腾讯科技(深圳)有限公司 Image processing method and device and storage medium
CN108182714A (en) * 2018-01-02 2018-06-19 腾讯科技(深圳)有限公司 Image processing method and device, storage medium
CN109166082A (en) * 2018-08-22 2019-01-08 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN109167914A (en) * 2018-09-25 2019-01-08 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN109584151A (en) * 2018-11-30 2019-04-05 腾讯科技(深圳)有限公司 Method for beautifying faces, device, terminal and storage medium
US11410284B2 (en) * 2018-11-30 2022-08-09 Tencent Technology (Shenzhen) Company Limited Face beautification method and apparatus, computer device, and storage medium
CN109584151B (en) * 2018-11-30 2022-12-13 腾讯科技(深圳)有限公司 Face beautifying method, device, terminal and storage medium
WO2020108291A1 (en) * 2018-11-30 2020-06-04 腾讯科技(深圳)有限公司 Face beautification method and apparatus, and computer device and storage medium
WO2021139706A1 (en) * 2020-01-08 2021-07-15 华为技术有限公司 Image processing method, device, and system
US11404086B2 (en) * 2020-02-14 2022-08-02 Perfect Mobile Corp. Systems and methods for segment-based virtual application of makeup effects to facial regions displayed in video frames
US11922540B2 (en) 2020-02-14 2024-03-05 Perfect Mobile Corp. Systems and methods for segment-based virtual application of facial effects to facial regions displayed in video frames

Similar Documents

Publication Publication Date Title
CN104574299A (en) Face picture processing method and device
US10565763B2 (en) Method and camera device for processing image
CN105119812B (en) In the method, apparatus and terminal device of chat interface change emoticon
CN110662083A (en) Data processing method and device, electronic equipment and storage medium
US20160300101A1 (en) Method and apparatus for album display, and storage medium
CN105302315A (en) Image processing method and device
CN107944447B (en) Image classification method and device
CN104133956B (en) Handle the method and device of picture
CN105095873A (en) Picture sharing method and apparatus
CN105512605A (en) Face image processing method and device
US20170192636A1 (en) Method, apparatus and medium for switching application interfaces
CN104850828A (en) Person identification method and person identification device
CN104700353A (en) Image filter generating method and device
CN105513104A (en) Picture taking method, device and system
CN105468767A (en) Method and device for acquiring calling card information
CN104978200A (en) Application program display method and device
CN104933419A (en) Method and device for obtaining iris images and iris identification equipment
CN105046260A (en) Image pre-processing method and apparatus
CN104484858A (en) Figure image processing method and device
CN106547850B (en) Expression annotation method and device
CN105574512A (en) Method and device for processing image
CN105139033A (en) Classifier construction method and device and image processing method and device
CN105512615A (en) Picture processing method and apparatus
CN105335714A (en) Photograph processing method, device and apparatus
CN104991910A (en) Album creation method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429

RJ01 Rejection of invention patent application after publication