CN109242767A - A kind of method and terminal device obtaining beauty parameter - Google Patents

A kind of method and terminal device obtaining beauty parameter Download PDF

Info

Publication number
CN109242767A
CN109242767A CN201811142699.XA CN201811142699A CN109242767A CN 109242767 A CN109242767 A CN 109242767A CN 201811142699 A CN201811142699 A CN 201811142699A CN 109242767 A CN109242767 A CN 109242767A
Authority
CN
China
Prior art keywords
image
beauty parameter
expression information
expression
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811142699.XA
Other languages
Chinese (zh)
Other versions
CN109242767B (en
Inventor
陈晓明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN201811142699.XA priority Critical patent/CN109242767B/en
Publication of CN109242767A publication Critical patent/CN109242767A/en
Application granted granted Critical
Publication of CN109242767B publication Critical patent/CN109242767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of methods and terminal device for obtaining beauty parameter, are related to field of communication technology, and the operation to solve the problem of user's adjusting beauty parameter in the prior art is excessively cumbersome and takes a long time.This method comprises: obtaining N number of expression information, which is respectively used to expression of the instruction user when browsing N number of first image;According to N number of expression information, M the second images are determined from N number of first image;According to the beauty parameter of at least one the second image, target beauty parameter is obtained;Wherein, M, N are positive integer.The program is applied particularly in the scene for obtaining beauty parameter.

Description

A kind of method and terminal device obtaining beauty parameter
Technical field
The present embodiments relate to fields of communication technology more particularly to a kind of method for obtaining beauty parameter and terminal to set It is standby.
Background technique
The raising of requirement with people to image display effect and the continuous development of terminal technology, photographing mode are also cured Hair tends to diversification, and Sino-U.S.'s face mode is the highest photographing mode of frequency of use.
Currently, the U.S. face mode of the prior art can provide some adjustable beauty parameters, in order to which user is according to individual Hobby adjusts beauty parameter, obtains satisfied U.S. face effect.
However, user may need repeatedly to adjust beauty parameter during adjusting beauty parameter, it is likely to be expired The U.S. face effect of meaning.Therefore the operation of user's adjusting beauty parameter is excessively cumbersome, and takes a long time.
Summary of the invention
The embodiment of the present invention provides a kind of method and terminal device for obtaining beauty parameter, to solve user in the prior art The operation for adjusting beauty parameter is excessively cumbersome, and the problem of take a long time.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of methods for obtaining beauty parameter, this method comprises:
N number of expression information is obtained, which is respectively used to table of the instruction user when browsing N number of first image Feelings;
According to N number of expression information, M the second images are determined from N number of first image;
According to the beauty parameter of at least one the second image, target beauty parameter is obtained;
Wherein, M, N are positive integer.
Second aspect, the embodiment of the invention provides a kind of terminal device, which includes: to obtain module and determination Module;
The acquisition module, for obtaining N number of expression information, it is N number of in browsing which is respectively used to instruction user Expression when the first image;
The determining module, N number of expression information for being obtained according to the acquisition module, from N number of first image really Determine M the second images;
The acquisition module, the beauty parameter at least one the second image for being also used to be determined according to the determining module obtain Target beauty parameter;
Wherein, M, N are positive integer.
The third aspect the embodiment of the invention provides a kind of terminal device, including processor, memory and is stored in this and deposits On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor The step of method of acquisition beauty parameter in aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, is realized when which is executed by processor such as the acquisition beauty parameter in first aspect The step of method.
In embodiments of the present invention, terminal device obtains N number of expression information, which is respectively used to instruction and uses Expression of the family when browsing N number of first image;According to N number of expression information, M the second figures are determined from N number of first image Picture;According to the beauty parameter of at least one the second image, target beauty parameter is obtained;Wherein, M, N are positive integer.By this Scheme, terminal device determine M by obtaining N number of expression information, and according to N number of expression information from N number of first image Second image, each second image are customer satisfaction system images;According to the beauty of at least one the second image in the M the second images Face parameter obtains customer satisfaction system target beauty parameter.Each second image is customer satisfaction system image, then according at least one A second image, the beauty parameter of acquisition are customer satisfaction system beauty parameters.It is adjusted repeatedly without user at interface of taking pictures Beauty parameter could obtain customer satisfaction system target beauty parameter.Therefore, it can solve user in the prior art and adjust U.S. face ginseng Several operations is excessively cumbersome, and the problem of take a long time.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of Android operation system provided in an embodiment of the present invention;
Fig. 2 is one of the flow chart of method provided in an embodiment of the present invention for obtaining beauty parameter;
Fig. 3 is the two of the flow chart of the method provided in an embodiment of the present invention for obtaining beauty parameter;
Fig. 4 is the three of the flow chart of the method provided in an embodiment of the present invention for obtaining beauty parameter;
Fig. 5 is one of the structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 6 is the second structural representation of terminal device provided in an embodiment of the present invention;
Fig. 7 is the third structural representation of terminal device provided in an embodiment of the present invention;
Fig. 8 is the hardware schematic of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Term " first ", " second ", " third " and " the 4th " in description and claims of this specification etc. are to use In the different object of difference, rather than it is used for the particular order of description object.For example, the first image, the second image, third image It is rather than the particular order for describing image for distinguishing different images with the 4th image etc..
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
In the description of the embodiment of the present invention, unless otherwise indicated, the meaning of " plurality " is refer to two or more, For example, multiple processing units refer to two or more processing unit;Multiple element refers to two or more Element etc..
The embodiment of the present invention provides a kind of method for obtaining beauty parameter, and terminal device obtains N number of expression information, this is N number of Expression information is respectively used to expression of the instruction user when browsing N number of first image;According to N number of expression information, from this N number of M the second images are determined in one image;According to the beauty parameter of at least one the second image, target beauty parameter is obtained;Wherein, M, N is positive integer.With this solution, terminal device, which passes through, obtains N number of expression information, and according to N number of expression information, from this M the second images are determined in N number of first image, each second image is customer satisfaction system image;According in the M the second images The beauty parameter of at least one the second image obtains customer satisfaction system target beauty parameter.Each second image is that user is full The image of meaning, then according at least one the second image, the beauty parameter of acquisition is customer satisfaction system beauty parameter.Without with Family adjusts beauty parameter at interface of taking pictures repeatedly, could obtain customer satisfaction system target beauty parameter.Therefore, it can solve existing In technology user adjust beauty parameter operation it is excessively cumbersome, and the problem of take a long time.
Below by taking Android operation system as an example, the method institute provided in an embodiment of the present invention for obtaining beauty parameter is introduced The software environment of application.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of the method provided in an embodiment of the present invention for obtaining beauty parameter is realized in the system architecture of operating system, exploitation, from And the method for the acquisition beauty parameter is run based on Android operation system as shown in Figure 1.That is processor or end End can realize acquisition beauty parameter provided in an embodiment of the present invention by running the software program in Android operation system Method.
Terminal device in the embodiment of the present invention can be mobile terminal device, or immobile terminal equipment.It moves Dynamic terminal device can be mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, super shifting Dynamic personal computer (ultra-mobilepersonalcomputer, UMPC), net book or personal digital assistant (personaldigital assistant, PDA) etc.;Immobile terminal equipment can be personal computer (personalcomputer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention is not Make specific limit.
The executing subject of the method provided in an embodiment of the present invention for obtaining beauty parameter can be above-mentioned terminal device (packet Include mobile terminal device and immobile terminal equipment), or it can be realized the functional module of this method in the terminal device And/or functional entity, it can specifically be determined according to actual use demand, the embodiment of the present invention is not construed as limiting.Below with terminal For equipment, the method provided in an embodiment of the present invention for obtaining beauty parameter is illustratively illustrated.
Refering to what is shown in Fig. 2, the embodiment of the invention provides a kind of methods for obtaining beauty parameter, under this method may include The step 201- step 203 stated.
Step 201, terminal device obtain N number of expression information.
N number of expression information is respectively used to expression of the instruction user when browsing N number of first image, i.e., each expression information It is used to indicate expression when user browses first image in N number of first image, each second image is to meet user Certain desired image, optional each expression are used to indicate user to the fancy grade of the image of browsing.Wherein, N is positive whole Number.
It should be understood that image in embodiments of the present invention is the image for having U.S. face effect.
N number of first image can be the image in the photograph album of terminal device, be also possible to chatting in the application of terminal device Image in its interface (for example, wechat chat interface), is also possible to other images, the embodiment of the present invention is not construed as limiting.
Terminal device one the first image of every display, obtains an expression information.Each expression information is used to indicate user Expression when first image is browsed, each expression is used to indicate user to the fancy grade of the image of browsing, i.e., each table Feelings information is used to indicate user to the fancy grade of the image of browsing.
Illustratively, one the first image of the every browsing of user inputs the fancy grade to first image.For example, terminal Equipment available user input such as likes, does not like, enjoying a lot at the expressions word;The available user's input of terminal device It is used to indicate and the emoticon such as likes, do not like, enjoying a lot;When the available user of terminal device browses each first image Facial expression image;Terminal device can also obtain the expression information of other way, and the embodiment of the present invention is not construed as limiting.
Illustratively, which can specifically be realized by following step 201a- step 201b.
Step 201a, terminal device acquires N number of facial expression image, N number of facial expression image be respectively user browse this N number of the The image of expression when one image.
Terminal device acquires N number of facial expression image, and each facial expression image is that user browses one in N number of first image the The image of expression when one image.
In the case where terminal device detects that user browses the first image, terminal device is used using front camera acquisition Family browses facial expression image when first image.
Step 201b, terminal device analyzes each facial expression image and obtains an expression information, to obtain N number of expression letter Breath.
Terminal device uses facial expression recognition technology, analyzes each facial expression image and obtains an expression information, to obtain Take N number of expression information.In the embodiment of the present invention, facial expression recognition technology can be the principal component analysis based on eigenface (Principal ComponentAnalysis, PCA) method, encoding facial movement analytic approach Facial movement parametric method in (FacialActionsCodeSystem, FACS), MPEG-4 (FaceAnimationParameterFAP), deep approach of learning etc., can specifically refer to existing the relevant technologies, and the present invention is real Example is applied to be not construed as limiting.
Step 202, terminal device determine M the second images according to N number of expression information from N number of first image.
Optionally, the fancy grade of the corresponding expression information instruction of each second image is in the first numberical range.Wherein, M is positive integer.
Illustratively, which can specifically be realized by following step 202a- step 202b.
Step 202a, N number of first image is divided at least one image according to N number of expression information by terminal device Set.
The fancy grade of the corresponding each expression information instruction of different images set is in different numberical ranges.
For example, N number of first image can be divided into two image collections, a figure liked according to fancy grade Image set closes, an image collection not liked;N number of first image can be divided into three image sets according to fancy grade It closes, an image collection enjoyed a lot, an image collection liked, an image collection not liked;It can also be according to N number of first image is divided into more image collections by fancy grade;The embodiment of the present invention is not construed as limiting.
First numberical range can be any one in different numberical ranges, and preferred first numberical range is different numbers Fancy grade is highest in value range, is specifically set according to actual conditions, the embodiment of the present invention is not construed as limiting.
Terminal device is according to N number of expression information, by N number of first image classification, wherein each second image is corresponding The fancy grade of expression information instruction is in the first numberical range, then the M the second images are one kind.Specific terminal device can With the fancy grade indicated according to expression information, first classify to N number of expression information, determines the hobby of expression information instruction M expression information of the degree in the first numberical range, then according to the M expression information, determine belong to it is a kind of respectively with The corresponding M the second image of each expression information in the M expression information.
Optionally, which may be identical as the M the second images, i.e., N number of first image is the M the Two images.Optionally, N number of first image and the M the second images are not identical, then except the M second in N number of first image Other images except image, are divided into one kind, are also divided into multiclass, specifically may be set according to actual conditions, The embodiment of the present invention is not construed as limiting.
Step 202b, terminal device is by each first image in the target image set at least one image collection It is determined as the M the second images.
The fancy grade of the corresponding each expression information instruction of the target image set is in first numberical range.Its In, the minimum value of first numberical range is greater than the arbitrary value in other numberical ranges, other numberical ranges be this at least one The corresponding numberical range of other image collections in a image collection in addition to the target image set.The then target image set In image corresponding expression information instruction fancy grade be it is highest, then the M the second images are the favorite beauty of user Face image.
Optionally, in conjunction with step 201a- step 201b and step 202a- step 202b, terminal device can be using deep The classification methods such as Study strategies and methods, linear classifier, neural network classifier, support vector machines, hidden Markov model are spent, it is right N number of expression picture is classified, and specific classification method can refer to existing the relevant technologies, and the embodiment of the present invention is not superfluous It states.
Illustratively, can use deep learning disaggregated model, to N number of facial expression image (being denoted as the first facial expression image) into Row classification, the M in the first range the second facial expression images of the fancy grade indicated, which is root It is generated according to history facial expression image, a history facial expression image is used to indicate user to the hobby journey of first image of history Degree.Then terminal device obtains corresponding M the second image of the M the second facial expression images.It is specific to obtain deep learning classification The method of model can refer to existing the relevant technologies, and the embodiment of the present invention is not construed as limiting.
Illustratively, deep learning disaggregated model can be obtained according to following methods (to need to be obtained according to a large amount of data Take), in the case where historical user's (such as collect and be not less than 1000 users) browses U.S. face image (the first image), use is preposition The facial expression image of (this when face against screen) user when camera acquisition user browses every U.S. face image (first image), By profession label worker labels' facial expression image (label different user is generally required not less than 1000, and is not less than 30,000 expressions Image) instruction expression it is corresponding be to like or do not like and (fancy grade is divided into two classes, that is, like and do not like), these Facial expression image and corresponding U.S. face image (the first image) input deep learning basic model, learn the table of facial expression image instruction out It is the deep learning disaggregated model for the U.S. face image (the second image) liked that feelings are corresponding.
Step 203, terminal device obtain target beauty parameter according to the beauty parameter of at least one the second image.
Terminal device obtains target U.S. face ginseng according to the beauty parameter of at least one the second image in the M the second images Number.
Illustratively, which can specifically be realized by following step 203a- step 203b.
Step 203a, terminal device obtains the beauty parameter of each second image at least one second image, with To at least one the first beauty parameter.
Optionally, terminal device can select at least one second figure from the M the second images according to default rule Picture.
Illustratively, it can be and randomly choose at least one second image from the M the second images, being also possible to should M the second image sequences, at least one corresponding second image of selection specific numbers is (for example, odd number from the M the second images At least one corresponding second image of serial number), it can also be and selected by other default rules, the embodiment of the present invention does not limit It is fixed.
Terminal device obtains the beauty parameter of each second image at least one second image, to obtain at least one First beauty parameter.The method that terminal device obtains the beauty parameter of each second image can refer to any one in the prior art The method that kind obtains image beauty parameter, the embodiment of the present invention are not construed as limiting.
Illustratively, such as when shooting U.S. face image, by the corresponding beauty parameter storage of U.S. face image to network share In database, then when terminal device needs to obtain the beauty parameter of U.S. face image, it can go in network share database to obtain Corresponding beauty parameter.
Step 203b, to this, at least one first beauty parameter weights terminal device, obtains the target beauty parameter.
By this, at least one first beauty parameter weights terminal device, as target beauty parameter.I.e. terminal device should At least one first beauty parameter is weighted, and the beauty parameter obtained after weighting is as target beauty parameter.Wherein plus Weight coefficient can be to be obtained according to the rule of certain setting, such as be can be and obtained at random, is also possible to the first U.S. face ginseng (i.e. to this, at least one first beauty parameter is weighted to that at least one first beauty parameter is asked to be averaged the inverse of several numbers Value), the embodiment of the present invention is not construed as limiting.Each weighting coefficient and be 1.
It should be understood that in embodiments of the present invention, beauty parameter is to refer to all beauty parameters, be not refer in particular to it is a certain Kind beauty parameter.For example, if beauty parameter includes that four kinds of mill skin degree, whitening degree, ruddy degree and pale degree (are gone back certainly May include others), then beauty parameter (the first beauty parameter) in embodiments of the present invention is to grind skin degree, whitening journey Degree, ruddy degree and four kinds of pale degree.It is that these four beauty parameters are weighted respectively to beauty parameter weighting.
Preferably, target U.S. face ginseng can be obtained according to the beauty parameter of each second image in the M the second images The beauty parameter of each second image is weighted, obtains target beauty parameter by number, such as can be and ask in M the second images The average value of the beauty parameter of each second image, as target beauty parameter.
The embodiment of the invention provides a kind of method for obtaining beauty parameter, terminal device obtains N number of expression information, the N A expression information is respectively used to expression of the instruction user when browsing N number of first image;It is N number of from this according to N number of expression information M the second images are determined in first image;According to the beauty parameter of at least one the second image, target beauty parameter is obtained;Its In, M, N are positive integer.With this solution, terminal device is by obtaining N number of expression information, and according to N number of expression information, M the second images are determined from N number of first image, each second image is customer satisfaction system image;According to the M the second figures The beauty parameter of at least one the second image, obtains customer satisfaction system target beauty parameter as in.Each second image is to use The satisfied image in family, then according at least one the second image, the beauty parameter of acquisition is customer satisfaction system beauty parameter.To nothing It needs user to adjust beauty parameter repeatedly at interface of taking pictures, customer satisfaction system target beauty parameter could be obtained.Therefore, it can solve In the prior art user adjust beauty parameter operation it is excessively cumbersome, and the problem of take a long time.
Illustratively, in conjunction with Fig. 2, as shown in figure 3, after step 203, the U.S. face ginseng of acquisition provided in an embodiment of the present invention Several methods can also include the steps that following 204.
Step 204, terminal device set the target beauty parameter to the default beauty parameter of the terminal device.
Terminal device is beautiful by the default set the target beauty parameter in all camera applications in the terminal device Face parameter.Camera application for example can be camera applications, Meitu Xiu Xiu application, wechat application etc., and the embodiment of the present invention does not limit It is fixed.
In this way when user is taken pictures using any one camera application, what the shooting preview interface in the application of taking pictures was shown The U.S. face effect of beauty parameter be enable it is customer satisfaction system, thus user can not have to by repeatedly adjustment could be satisfied with Beauty parameter, therefore reduce the adjustment frequency of user, user experience can be improved.
Illustratively, in conjunction with Fig. 2, as shown in figure 4, before step 201, the U.S. face ginseng of acquisition provided in an embodiment of the present invention Several methods can also include the steps that following 205;The step 201 can specifically be realized by following step 201c;? After step 203, the method provided in an embodiment of the present invention for obtaining beauty parameter can also include the steps that following 206.
Step 205, terminal device receive input of the user in shooting preview interface.
Input of the user in shooting preview interface can be the combination input clicked and the inputs such as input, slidably input, tool Determines according to actual conditions, the embodiment of the present invention is not construed as limiting body.
Illustratively, which can open photograph album interface from shooting preview interface for user, and browse N at photograph album interface The input of a first image;The input may be user in shooting preview interface browsing terminal equipment, and to be that user recommends N number of The input of first image;The input can also be other, and the embodiment of the present invention is not construed as limiting.
Step 201c, terminal device obtains N number of expression information in response to the input.
Specific description can refer to the associated description of above-mentioned steps 201, and details are not described herein again.
The beauty parameter of the shooting preview interface is adjusted to the target beauty parameter by step 206, terminal device.
After terminal device obtains target beauty parameter, the beauty parameter of the shooting preview interface is adjusted to the target Beauty parameter, then user can use target beauty parameter (U.S. face effect enables customer satisfaction system) to take pictures.
Since user may be when different, the requirement to U.S. face effect is different, therefore in each shooting, obtains mesh Beauty parameter is marked, current target beauty parameter can be made to meet the current requirement of user.
As shown in figure 5, the embodiment of the present invention provides a kind of terminal device 120, which includes: acquisition module 121 and determining module 122;
The acquisition module 121, for obtaining N number of expression information, which is respectively used to instruction user and is browsing Expression when N number of first image;
The determining module 122, N number of expression information for being obtained according to the acquisition module 121, from N number of first figure M the second images are determined as in;
The acquisition module 121, the U.S. face ginseng at least one the second image for being also used to be determined according to the determining module 122 Number obtains target beauty parameter;
Wherein, M, N are positive integer.
Optionally, each expression is used to indicate user to the fancy grade of the image of browsing, and each second image is corresponding The fancy grade of expression information instruction is in the first numberical range.
Optionally, the acquisition module 121 is specifically used for acquiring N number of facial expression image, which is respectively user The image of expression when browsing N number of first image;It analyzes each facial expression image and obtains an expression information, it is N number of to obtain this Expression information.
Optionally, the determining module 122 will specifically for the N number of expression information obtained according to the acquisition module 121 N number of first image is divided at least one image collection, the hobby of the corresponding each expression information instruction of different images set Degree is in different numberical ranges;Each first image in target image set at least one image collection is determined For the M the second images, the fancy grade of the corresponding each expression information instruction of the target image set is in the first numerical value model In enclosing;Wherein, the minimum value of first numberical range is greater than the arbitrary value in other numberical ranges, which is should The corresponding numberical range of other image collections at least one image collection in addition to the target image set.
Optionally, acquisition module 121, also particularly useful for each second image in acquisition at least one second image Beauty parameter, to obtain at least one first beauty parameter;To this, at least one first beauty parameter is weighted, and obtains target beauty Face parameter.
Optionally, in conjunction with Fig. 5, as shown in fig. 6, the terminal device 120 further include: setup module 123;The setup module 123, for after the acquisition target beauty parameter, the target beauty parameter which is obtained to be set as this The default beauty parameter of terminal device.
Optionally, in conjunction with Fig. 5, as shown in fig. 7, the terminal device 120 further include: receiving module 124 and adjustment module 125;The receiving module 124, for before the N number of expression information of the acquisition, receiving input of the user in shooting preview interface; The acquisition module 121 obtains N number of expression information also particularly useful in response to the received input of the receiving module 124;It should Module 125 is adjusted, for the beauty parameter of the shooting preview interface being adjusted to this and is obtained after the acquisition target beauty parameter The target beauty parameter that modulus block 121 obtains.
Terminal device provided in an embodiment of the present invention can be realized in above method embodiment one of any institute of Fig. 2 to Fig. 4 The each process shown, to avoid repeating, details are not described herein again.
The embodiment of the invention provides a kind of terminal device, terminal device obtains N number of expression information, N number of expression information It is respectively used to expression of the instruction user when browsing N number of first image;According to N number of expression information, from N number of first image Determine M the second images;According to the beauty parameter of at least one the second image, target beauty parameter is obtained;Wherein, M, N are Positive integer.With this solution, terminal device is by obtaining N number of expression information, and according to N number of expression information, from this N number of first M the second images are determined in image, each second image is customer satisfaction system image;According at least one in the M the second images The beauty parameter of a second image obtains customer satisfaction system target beauty parameter.Each second image is customer satisfaction system figure Picture, then according at least one the second image, the beauty parameter of acquisition is customer satisfaction system beauty parameter.It is being clapped without user Beauty parameter is adjusted repeatedly according to interface, could obtain customer satisfaction system target beauty parameter.Therefore, it can solve in the prior art The operation that user adjusts beauty parameter is excessively cumbersome, and the problem of take a long time.
A kind of hardware structural diagram of Fig. 8 terminal device of each embodiment to realize the present invention.As shown in figure 8, should Terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricity The components such as source 111.It will be understood by those skilled in the art that terminal device structure shown in Fig. 8 is not constituted to terminal device Restriction, terminal device may include perhaps combining certain components or different components than illustrating more or fewer components Arrangement.In embodiments of the present invention, terminal device include but is not limited to mobile phone, tablet computer, laptop, palm PC, Vehicle-mounted terminal equipment, wearable device and pedometer etc..
Wherein, processor 110, for obtaining N number of expression information, each expression information is used to indicate user's browsing N number of the Expression when first image in one image, each expression are used to indicate user to the fancy grade of the image of browsing;Root According to N number of expression information, M the second images are determined from N number of first image, the corresponding expression information of each second image refers to The fancy grade shown is in the first numberical range;According to the beauty parameter of at least one the second image in the M the second images, obtain Take target beauty parameter;Wherein, M, N are positive integer.
Terminal device provided in an embodiment of the present invention, terminal device obtain N number of expression information, N number of expression information difference It is used to indicate expression of the user when browsing N number of first image;According to N number of expression information, determined from N number of first image M the second images;According to the beauty parameter of at least one the second image, target beauty parameter is obtained;Wherein, M, N are positive whole Number.With this solution, terminal device, which passes through, obtains N number of expression information, and according to N number of expression information, from N number of first image Middle determining M the second images, each second image is customer satisfaction system image;According at least one in the M the second images the The beauty parameter of two images obtains customer satisfaction system target beauty parameter.Each second image is customer satisfaction system image, then According at least one the second image, the beauty parameter of acquisition is customer satisfaction system beauty parameter.Without user on boundary of taking pictures Face adjusts beauty parameter repeatedly, could obtain customer satisfaction system target beauty parameter.Therefore, it can solve user in the prior art The operation for adjusting beauty parameter is excessively cumbersome, and the problem of take a long time.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Terminal device provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics ProcessingUnit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (LiquidCrystalDisplay, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-EmittingDiode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in fig. 8, touch panel 1071 and display Panel 1061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal device, may include above-mentioned processor as shown in Figure 8 110, memory 109, and it is stored in the computer program that can be run on memory 109 and on the processor 110, the calculating Realize in above method embodiment that Fig. 2 to Fig. 4 obtains beauty parameter shown in one of any when machine program is executed by processor 110 Method each process, and identical technical effect can be reached, to avoid repeating, details are not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, realized when which is executed by processor in above method embodiment Fig. 2 to Fig. 4 it is one of any shown in Each process of the method for beauty parameter is obtained, and identical technical effect can be reached, to avoid repeating, details are not described herein again. Wherein, the computer readable storage medium, such as read-only memory (Read-OnlyMemory, ROM), random access memory Device (RandomAccessMemory, RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of method for obtaining beauty parameter, which is characterized in that the described method includes:
N number of expression information is obtained, N number of expression information is respectively used to expression of the instruction user when browsing N number of first image;
According to N number of expression information, M the second images are determined from N number of first image;
According to the beauty parameter of at least one the second image, target beauty parameter is obtained;
Wherein, M, N are positive integer.
2. the method according to claim 1, wherein each expression is used to indicate happiness of the user to the image of browsing Good degree, the fancy grade of the corresponding expression information instruction of each second image is in the first numberical range.
3. the method according to claim 1, wherein described obtain N number of expression information, comprising:
N number of facial expression image is acquired, N number of facial expression image is respectively expression of the user when browsing N number of first image Image;
It analyzes each facial expression image and obtains an expression information, to obtain N number of expression information.
4. according to the method described in claim 2, it is characterized in that, described according to N number of expression information, from described N number of M the second images are determined in one image, comprising:
According to N number of expression information, N number of first image is divided at least one image collection, different images set The fancy grade of corresponding each expression information instruction is in different numberical ranges;
Each first image in target image set at least one described image collection is determined as the M the second figures Picture, the fancy grade of the corresponding each expression information instruction of the target image set is in first numberical range;
Wherein, the minimum value of first numberical range is greater than the arbitrary value in other numberical ranges, other numberical ranges For the corresponding numberical range of other image collections at least one described image collection in addition to the target image set.
5. the method according to claim 1, wherein the beauty parameter according at least one the second image, Obtain target beauty parameter, comprising:
The beauty parameter of each second image at least one described second image is obtained, to obtain at least one first U.S. face ginseng Number;
At least one described first beauty parameter is weighted, the target beauty parameter is obtained.
6. method according to any one of claims 1 to 5, which is characterized in that after the acquisition target beauty parameter, also Include:
Set the target beauty parameter to the default beauty parameter of the terminal device.
7. method according to any one of claims 1 to 5, which is characterized in that before the N number of expression information of acquisition, institute State method further include:
Receive input of the user in shooting preview interface;
It is described to obtain N number of expression information, comprising:
In response to the input, N number of expression information is obtained;
After the acquisition target beauty parameter, further includes:
The beauty parameter of the shooting preview interface is adjusted to the target beauty parameter.
8. a kind of terminal device, which is characterized in that the terminal device includes: to obtain module and determining module;
The acquisition module, for obtaining N number of expression information, it is N number of in browsing that N number of expression information is respectively used to instruction user Expression when the first image;
The determining module, N number of expression information for being obtained according to the acquisition module, from N number of first image Middle determining M the second images;
The acquisition module, the beauty parameter at least one the second image for being also used to be determined according to the determining module obtain Target beauty parameter;
Wherein, M, N are positive integer.
9. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in claim 1 to 7 The step of described in any item methods for obtaining beauty parameter.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the acquisition beauty parameter as described in any one of claims 1 to 7 is realized when the computer program is executed by processor The step of method.
CN201811142699.XA 2018-09-28 2018-09-28 Method for obtaining beauty parameters and terminal equipment Active CN109242767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811142699.XA CN109242767B (en) 2018-09-28 2018-09-28 Method for obtaining beauty parameters and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811142699.XA CN109242767B (en) 2018-09-28 2018-09-28 Method for obtaining beauty parameters and terminal equipment

Publications (2)

Publication Number Publication Date
CN109242767A true CN109242767A (en) 2019-01-18
CN109242767B CN109242767B (en) 2023-05-05

Family

ID=65054508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811142699.XA Active CN109242767B (en) 2018-09-28 2018-09-28 Method for obtaining beauty parameters and terminal equipment

Country Status (1)

Country Link
CN (1) CN109242767B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112230982A (en) * 2020-10-15 2021-01-15 北京达佳互联信息技术有限公司 Material processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120182447A1 (en) * 2011-01-18 2012-07-19 Chanan Gabay Methods, Circuits, Devices, Apparatuses and Systems for Providing Image Composition Rules, Analysis and Improvement
CN104715236A (en) * 2015-03-06 2015-06-17 广东欧珀移动通信有限公司 Face beautifying photographing method and device
US20160260204A1 (en) * 2013-11-14 2016-09-08 Tencent Technology (Shenzhen) Company Limited Image processing method and apparatus
CN107730442A (en) * 2017-10-16 2018-02-23 郑州云海信息技术有限公司 A kind of face U.S. face method and device
CN107832784A (en) * 2017-10-27 2018-03-23 维沃移动通信有限公司 A kind of method of image beautification and a kind of mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120182447A1 (en) * 2011-01-18 2012-07-19 Chanan Gabay Methods, Circuits, Devices, Apparatuses and Systems for Providing Image Composition Rules, Analysis and Improvement
US20160260204A1 (en) * 2013-11-14 2016-09-08 Tencent Technology (Shenzhen) Company Limited Image processing method and apparatus
CN104715236A (en) * 2015-03-06 2015-06-17 广东欧珀移动通信有限公司 Face beautifying photographing method and device
CN107730442A (en) * 2017-10-16 2018-02-23 郑州云海信息技术有限公司 A kind of face U.S. face method and device
CN107832784A (en) * 2017-10-27 2018-03-23 维沃移动通信有限公司 A kind of method of image beautification and a kind of mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112230982A (en) * 2020-10-15 2021-01-15 北京达佳互联信息技术有限公司 Material processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109242767B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
CN108877741A (en) A kind of screen luminance adjustment method and terminal device
CN109547694A (en) A kind of image display method and terminal device
CN110222212A (en) A kind of display control method and terminal device
CN107817939A (en) A kind of image processing method and mobile terminal
CN107832784A (en) A kind of method of image beautification and a kind of mobile terminal
CN109461117A (en) A kind of image processing method and mobile terminal
CN109461124A (en) A kind of image processing method and terminal device
CN109788204A (en) Shoot processing method and terminal device
CN109215007A (en) A kind of image generating method and terminal device
CN109857494A (en) A kind of message prompt method and terminal device
CN109508399A (en) A kind of facial expression image processing method, mobile terminal
CN110245246A (en) A kind of image display method and terminal device
CN109495616A (en) A kind of photographic method and terminal device
CN110471589A (en) Information display method and terminal device
CN109614182A (en) A kind of display methods and terminal device
CN109104566A (en) A kind of image display method and terminal device
CN109448069A (en) A kind of template generation method and mobile terminal
CN108765522A (en) A kind of dynamic image generation method and mobile terminal
CN110225196A (en) Terminal control method and terminal device
CN109286726A (en) A kind of content display method and terminal device
CN109992228A (en) A kind of interface display parameter method of adjustment and terminal device
CN109639981A (en) A kind of image capturing method and mobile terminal
CN109104573A (en) A kind of method and terminal device of determining focus point
CN108959585A (en) A kind of expression picture acquisition methods and terminal device
CN109327568A (en) A kind of method and mobile terminal switching camera

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
GR01 Patent grant
GR01 Patent grant