CN107657584A - A kind of image processing method, terminal and computer-readable recording medium - Google Patents
A kind of image processing method, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107657584A CN107657584A CN201710775944.XA CN201710775944A CN107657584A CN 107657584 A CN107657584 A CN 107657584A CN 201710775944 A CN201710775944 A CN 201710775944A CN 107657584 A CN107657584 A CN 107657584A
- Authority
- CN
- China
- Prior art keywords
- picture
- reference picture
- parameter
- edited
- category 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.)
- Withdrawn
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 36
- 230000001815 facial effect Effects 0.000 claims description 30
- 230000035900 sweating Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 12
- 238000003860 storage Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 abstract description 9
- 230000002087 whitening effect Effects 0.000 description 15
- 241000208340 Araliaceae Species 0.000 description 10
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 10
- 235000003140 Panax quinquefolius Nutrition 0.000 description 10
- 235000008434 ginseng Nutrition 0.000 description 10
- 230000006870 function Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010422 painting Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003255 anti-acne Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 210000004709 eyebrow Anatomy 0.000 description 1
- 210000000720 eyelash Anatomy 0.000 description 1
- 210000004209 hair Anatomy 0.000 description 1
- JEIPFZHSYJVQDO-UHFFFAOYSA-N iron(III) oxide Inorganic materials O=[Fe]O[Fe]=O JEIPFZHSYJVQDO-UHFFFAOYSA-N 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000007670 refining Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the invention discloses a kind of image processing method, terminal and computer-readable recording medium.Wherein, this method includes:Obtain the characteristic parameter of picture to be edited;At least a kind of reference picture is determined according to the characteristic parameter;There is different priority per class reference picture at least a kind of reference picture;According to picture to be edited described in the editing parameter editor of at least a kind of reference picture.Using the present invention, picture editing process can be simplified to a certain extent, save the operating time.
Description
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of image processing method, terminal and computer-readable
Storage medium.
Background technology
At present, with terminal, such as the popularization of intelligent terminal (including but is not limited to smart mobile phone), more and more using journey
Sequence also occurs therewith, and the life to people provides great convenience.For example, user can utilize intelligent terminal self-timer, and profit
Figure or U.S. face are repaiied to the picture of shooting with corresponding application programs, has beautified the picture of the shooting to a certain extent.
As a rule, user can using the application program such as camera with U.S. face function come photo U.S. face to shooting,
Or using repairing figure class application program come the retouching desk figure to shooting.However, when if user is shot under identical situation, such as
Daily, it is necessary to photo U.S. face to the shooting or repair figure daily, operating process is relatively complicated, loses time after makeup removing.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of image processing method, terminal and computer
Readable storage medium storing program for executing, can simplify picture editing process, save the operating time, realize automation of the user for picture editor,
Intelligent demand.
In a first aspect, the embodiments of the invention provide a kind of image processing method, including:
Obtain the characteristic parameter of picture to be edited;
At least a kind of reference picture is determined according to the characteristic parameter;Per class reference chart at least a kind of reference picture
Piece has different priority;
According to picture to be edited described in the editing parameter editor of at least a kind of reference picture.
Second aspect, the embodiments of the invention provide a kind of terminal, the terminal includes being used to perform above-mentioned first aspect
The unit of method.
The third aspect, the embodiments of the invention provide another terminal, including processor, input equipment, output equipment and
Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein, the memory is used to store branch
The computer program that terminal performs the above method is held, the computer program includes programmed instruction, and the processor is configured to use
In calling described program instruction, the method for performing above-mentioned first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage medium
Computer program is stored with, the computer program includes programmed instruction, and described program instruction makes institute when being executed by a processor
The method for stating the above-mentioned first aspect of computing device.
Terminal can obtain the characteristic parameter of picture to be edited, and determine at least a kind of reference chart according to this feature parameter
Piece, so as to the picture to be edited of the editing parameter editor according at least a kind of reference picture, picture editor's process is simplified, saved
The about operating time, user is realized for the automating of picture editor, intelligent demand.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of image processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet for image processing method that yet another embodiment of the invention provides;
Fig. 3 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation for terminal that yet another embodiment of the invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, it is a kind of schematic flow sheet of image processing method provided in an embodiment of the present invention.Wherein, the party
Method may comprise steps of:
S101, the characteristic parameter for obtaining picture to be edited.
In the embodiment of the present invention, this feature parameter comprise at least it is following any one or it is a variety of:First kind characteristic parameter,
Second category feature parameter, the 3rd category feature parameter.
Wherein, the first kind characteristic parameter comprise at least it is following any one or it is a variety of:Facial image photo angle, people
Face image size, facial image are located at position in photo, picture luminance, picture background;When the second category feature parameter includes
Between and place in it is at least one;3rd category feature parameter is including at least at least one in temperature and degree of sweating.
Wherein, the current environmental temperature or need to edit the user location of the picture to be edited that the temperature can refer to
In the range of domain, such as temperature in area.The degree of sweating can use corresponding grade, such as high, medium and low, can also use specific number
Value represents.Alternatively, the degree of sweating can be obtained by extracting the facial characteristics of facial image.Or the degree of sweating can
To be special by the face of the facial image under different motion state in the facial characteristics and database by the facial image of extraction
Sign obtains after being matched.Wherein, different motion state can correspond at least one degree of sweating.
In one embodiment, first kind characteristic parameter includes but is not limited to extract by image processing techniques.Second class
Characteristic parameter includes but is not limited to obtain from terminal or server when user needs to edit the picture to be edited.
It should be noted that above-mentioned first kind characteristic parameter, the second category feature parameter, the 3rd category feature parameter are only this hair
The one of which that bright embodiment is enumerated, can also be by characteristic parameter according to the demand of reality for characteristic parameter mode classification
Parameters carry out other classification to determine the reference picture of respective classes.In addition to this it is possible in respective class another characteristic
Increase in parameter or delete one or more characteristic parameter.
S102, at least a kind of reference picture determined according to the characteristic parameter.
It should be noted that terminal can determine corresponding classification according to characteristic parameter different classes of in characteristic parameter
Reference picture.
In one embodiment, terminal determines that at least a kind of reference picture can include according to this feature parameter:Terminal root
According to the first kind characteristic parameter in characteristic parameter, Similarity Class reference picture is determined.The Similarity Class reference picture can be one
It is or multiple.Wherein, the Similarity Class picture or be other titles.
Specifically, first kind characteristic parameter of the terminal in characteristic parameter, determine that Similarity Class reference picture can wrap
Include:Terminal is according to the first kind characteristic parameter of each picture in picture library and the first kind characteristic parameter of the picture to be edited, from the figure
At least reference picture with the picture match to be edited is determined in storehouse;Terminal is according to every in this at least a reference picture
One reference picture and the matching degree of the picture to be edited, priority is set for each reference picture, and it is preferential according to this
Level is correspondingly arranged weight.
If for example, the picture library includes picture 1, picture 2, picture 3, picture 4 and picture 5, the of the picture to be edited
A kind of characteristic parameter includes:Facial image photo angle, facial image size, facial image are located at position in photo, picture
Brightness.If the terminal determines that the reference picture in picture library with the picture match to be edited includes:Picture 1, picture 2, picture 3.
Then the terminal can be according to the matching degree of picture 1 and picture to be edited, the matching degree of picture 2 and picture to be edited, picture 3 with treating
The matching degree of editing picture sets the priority of picture 1, picture 2, picture 3.If it is determined that the highest priority of picture 1, picture 3
Priority it is minimum, then the weight of maximum, such as weight 6, for the picture 2 can be set in this three pictures for the picture 1
Weight 4 is set, weight 2 is set for picture 3.
It should be noted that since it is determined that an at least reference picture in there may be multiple reference pictures and be in same
One priority, therefore should can possess identical weight in multiple reference pictures of same priority.
In one embodiment, terminal is according to the of the first kind characteristic parameter of each picture in picture library and the picture to be edited
A kind of characteristic parameter, at least reference picture with the picture match to be edited is determined from the picture library, can be included:Eventually
The first kind characteristic parameter of each picture in picture library is compared with the first kind characteristic parameter of the picture to be edited at end, it is determined that should
The quantity of the parameter to match in the first kind characteristic parameter of each reference picture with the first kind characteristic parameter of the picture to be edited,
An at least reference picture with the picture match to be edited is determined so as to the quantity of the parameter according to the matching.It is optional
Ground, the quantity of the parameter of matching can be more than or equal to the picture of preset quantity threshold value as reference picture.
If for example, the picture library includes picture 1, picture 2, picture 3, picture 4 and picture 5, the of the picture to be edited
A kind of characteristic parameter includes:Facial image photo angle, facial image size, facial image are located at position in photo, picture
Brightness.Wherein, if the facial image photo angle of picture 1 matches with the photo angle of the facial image of picture to be edited, picture 1
The size of facial image matched with the size of the facial image of picture to be edited, the picture luminance of picture 1 and picture to be edited
Picture luminance matching, the other parameters of the first kind characteristic parameter of picture 1 and the first kind characteristic parameter of picture to be edited
Other parameters mismatch, then can determine that the first category feature in the first kind characteristic parameter of picture 1 with picture to be edited is joined
The quantity for the parameter that number matches is 5.Similarly, can obtain in the first kind characteristic parameter of picture 2 with picture to be edited
The quantity for the parameter that first kind characteristic parameter matches is 4.With the of picture to be edited in the first kind characteristic parameter of picture 3
The quantity for the parameter that a kind of characteristic parameter matches is 4.In the first kind characteristic parameter of picture 4 with picture to be edited first
The quantity of the parameter of category feature match parameters is 1.The first kind in the first kind characteristic parameter of picture 5 with picture to be edited
The quantity for the parameter that characteristic parameter matches is 2.If preset quantity threshold value is 3, can be by picture 1, picture 2, picture 3
As reference picture.
In one embodiment, terminal can according in the first kind characteristic parameter of each reference picture with the figure to be edited
The quantity for the parameter that the first kind characteristic parameter of piece matches, it is determined that each reference picture is with being somebody's turn to do in an at least reference picture
The matching degree of picture to be edited.The matching degree includes but is not limited to represent in the form of numeral, word etc..
In one embodiment, can with preset quantity and the corresponding relation of matching degree, it is determined that at least reference picture with
The matching degree of the picture to be edited.For example, the Corresponding matching degree of quantity 5 is 100%, the Corresponding matching degree 80% of quantity 4.If it is determined that figure
The quantity of the parameter to match in the first kind characteristic parameter of piece 1 with the first kind characteristic parameter of the picture to be edited is 5, then
It is 100% that matching degree can be determined according to corresponding relation.
Or can also be according to the ratio of the quantity of each parameter in quantity and first kind characteristic parameter, it is determined that at least one
Reference picture treats the matching degree of reference picture with this.Such as, however, it is determined that in the first kind characteristic parameter of picture 1 with the figure to be edited
The quantity for the parameter that the first kind characteristic parameter of piece matches is 5, and the quantity of first kind characteristic parameter is 5, then can be true
It is 100% to make the ratio of the two, and may thereby determine that out matching degree is 100%.
In one embodiment, terminal determines that at least a kind of reference picture can also include according to this feature parameter:Terminal
The second category feature parameter in characteristic parameter, determines life kind reference picture.The life kind reference picture can be one
It is individual or multiple.Wherein, the life kind reference picture or be other titles.
It should be noted that terminal can be included on the use with preset user's Living model, user's Living model
Multiple contextual models corresponding to family.In one embodiment, terminal can be according to place of the record on user and acquisition
The information such as time, to build user's Living model.For example, structure man, company, user's Living model of Fei Jiafei companies.Should
Contextual model can correspond to the living scene of user.For example, contextual model 1, plain face photograph is taken after getting up 7 points of morning at home.
Contextual model 2,8 points of morning is in put on makeup after clap make up photograph.Contextual model 3, clap and make up in company after refining the make-up 10 points of morning
According to.Wherein, the contextual model corresponding to user's Living model, the including but not limited to above-mentioned several contextual models enumerated.Its
In, each contextual model can also correspond to an at least pictures.An at least pictures can be user in corresponding contextual model
Obtained after editing picture.
In one embodiment, terminal can live according to the second category feature parameter of the picture to be edited and the user
Model, at least one contextual model that targeted customer is presently in is determined, so that terminal can be according to the picture to be edited
Second category feature parameter and the degree of association of each contextual model at least one contextual model, for each contextual model
Priority is set.Correspondingly, at least one reference picture under each contextual model has equal priority.The degree of association
Including but not limited to represented with grade, such as high, normal, basic, numerical value, such as 80% form.The targeted customer waits to compile to need to edit this
Collect the user of picture.
For example, the second category feature parameter of the picture to be edited be 7 points ten minutes, at home, then terminal can be according to user
Living model, determine that targeted customer is likely to be at contextual model 1:Plain face photograph is taken after getting up 7 points of morning at home.Due to seven
Point with 7 points ten minutes it is closest with regard to the time, therefore, terminal can be contextual model 1 setting the first priority (this is at least one
Limit priority under contextual model).Each reference picture corresponding to the contextual model 1 also has the first priority.Terminal may be used also
To determine contextual model 2:It is in 8 points of morning after painting adornment and claps photograph of making up.Due in each contextual model, with 7: second
The close time is 8 points, therefore contextual model 2 can be set to the second priority (time height under at least one contextual model
Priority).Reference picture corresponding to the contextual model 2 also has the second priority.
In one embodiment, terminal can be that each contextual model is set according to the priority of each contextual model
Put weight.Specifically, terminal can be every for this according to the priority of at least one reference picture under each contextual model
An at least reference picture under one contextual model sets weight.For example, reference picture corresponding to contextual model 1 sets weight
12, reference picture corresponding to contextual model 2 sets weight 10.Wherein, there is the ginseng of equal priority under same contextual model
The weight for examining picture is identical.
In one embodiment, terminal determines that at least a kind of reference picture can also include according to this feature parameter:Terminal
The 3rd category feature parameter in characteristic parameter, determine to move class reference picture.The motion class reference picture can be one
It is individual or multiple.Wherein, the motion class reference picture or be other titles.
Alternatively, the user movement model can be with preset or customized.Or the user movement model can basis
Different motion state obtains to user's face impact analysis.Still optionally further, can be according to the facial image detected
What the impact analysis to dressing under the factor such as different temperatures and/or exercise intensity obtained.
In one embodiment, each motion state can correspond to and be stored with corresponding picture and the 3rd category feature parameter
Mapping relations, so that terminal is according to the 3rd category feature parameter of picture to be edited, determine at least one matched with targeted customer
Individual motion state, so as to according to the 3rd category feature parameter of picture to be edited and the matching of at least one motion state
Degree, priority is set for reference picture corresponding to each motion state at least one motion state.
For example, if the 3rd category feature parameter of picture to be edited is temperature:27 DEG C, degree of sweating 80%, then terminal can be with
According to the 3rd category feature parameter of each motion state in user movement model, the motion state for determining the targeted customer is motion
State 1, such as temperature:27 DEG C, sport rank:By force, the motion state 1 can be set to the first priority (highest priority).And
And reference picture corresponding to the motion state 1 can have the first priority.Can also be by motion state 2, such as temperature:27℃、
Sport rank:In, it is arranged to the second priority.Also, reference picture corresponding to the motion state 2 can be preferential with second
Level.
In one embodiment, terminal can according at least one motion state each motion state it is preferential
Level, weight is set for each reference picture corresponding to each motion state.
In one embodiment, if the characteristic parameter of picture to be edited includes multiclass feature parameter, what terminal was determined
Multiclass reference picture can be included at least a kind of reference picture.
For example, if this feature parameter includes first kind characteristic parameter and the second category feature parameter, the terminal can be true
Make Similarity Class reference picture and life kind reference picture.
It should be noted that terminal can be set at least a kind of reference picture per class reference picture it is different preferential
Level.For example, the highest priority of life kind reference picture, the preferential level of Similarity Class reference picture is high.
In one embodiment, it is high another can be more than preferential level for the minimal weight of certain high a kind of reference picture of priority
The weight limit of a kind of reference picture.For example, the minimal weight that reference picture in the life kind reference picture be present can be 8,
The weight limit that the Similarity Class reference picture has reference picture can be 6.
In one embodiment, terminal can pass through when it is determined that the characteristic parameter obtained includes a certain category feature parameter
When judging whether the target component of a certain category feature parameter meets some condition, further to be joined according to a certain category feature
Number determines corresponding a kind of reference picture.
If for example, terminal it is determined that obtain characteristic parameter include the 3rd category feature parameter when, can be by judging the 3rd
The degree of sweating of category feature parameter is more than or equal to preset threshold value or preset grade, so as to special according to the 3rd class
Sign parameter is determined to move class reference picture.
Picture to be edited described in S103, the editing parameter editor of at least a kind of reference picture according to.
Wherein, the editing parameter includes but is not limited to some U.S. face parameters, such as grind skin index, whitening index, anti-acne index,
Thin face index, eyes magnification index, lipstick color, rouge index (such as color, region), informer's index (such as color, length, shape
Shape, thickness), eyelashes index (such as length, shape, thickness, volume stick up), eyebrow index (color, length, shape, thickness) on
Facial dressing index, graph parameter can also be repaiied including others, including but not limited to following any one or multinomial:Picture
The brightness of size, picture, virtualization index, picture style (such as bright, warm, black and white), mosaic parameter (such as region, degree,
Size), scribble parameter.
It should be noted that in step s 102, terminal can determine at least a kind of reference picture according to editing parameter.
In step s 103, terminal can be according to the editing parameter editor of at least a kind of reference picture picture to be edited.
In one embodiment, terminal is according to the editing parameter editor of at least a kind of reference picture picture to be edited,
It can include:The editing parameter of each reference picture is to obtain final volume in terminal weighted average at least a kind of reference picture
Volume parameter, and utilize the final editing parameter editor picture to be edited.
In one embodiment, terminal can join according to inhomogeneity another characteristic in the characteristic parameter of the picture to be edited
Number, determine Similarity Class reference picture, life kind reference picture, move class reference picture any one or it is a variety of, and
Each ginseng in weighted average at least a kind of reference picture can be come according to the weight of each picture in the reference picture of corresponding classification
The editing parameter of picture is examined to obtain final editing parameter.
For example, if it is determined that picture be Similarity Class reference picture, the Similarity Class reference picture include picture 1, picture 2,
Picture 3, wherein, the weight of picture 1 is 6, and the weight of picture 2 is 4, and the weight of picture 3 is 2.Assuming that editing parameter refers to for whitening
Number, if the whitening index of picture 1 is 4, the whitening index of picture 2 is 5, and the whitening index of picture 3 is 5, by weighted average this
The whitening index of three pictures, i.e. (6 × 4+4 × 5+5 × 2)/(6+4+2) can obtain final whitening index as 4.5.It is then sharp
Gone to edit the picture to be edited with 4.5 whitening index.
In one embodiment, can be in the different classes of characteristic parameter, such as characteristic parameter of a certain classification, or certain
When target signature parameter in a kind of another characteristic parameter meets preset condition, for corresponding to the characteristic parameter of a certain classification
Reference picture sets limit priority, can preferentially utilize editor's ginseng of reference picture corresponding to the characteristic parameter of a certain classification
Number edits picture to be edited.It is alternatively possible to join merely with the editor of reference picture corresponding to the characteristic parameter of a certain classification
Number edits the picture to be edited.
For example, if picture feature parameter to be edited includes the 3rd category feature parameter, if the target of the 3rd category feature parameter
Characteristic parameter, such as degree of sweating meet preset condition, i.e., more than or equal to preset threshold value, then terminal can utilize the 3rd class
The editing parameter editor of motion class reference picture picture to be edited corresponding to characteristic parameter.
In one embodiment, terminal can export at least a kind of reference picture, receive targeted customer to this at least one
The selection operation of class reference picture, and object reference picture is determined according to the selection operation, so as to according to the object reference picture
The editing parameter editor picture to be edited.
For example, if at least a kind of reference picture of output is picture 1, picture 2, picture 3, picture 4, picture 5, if terminal
Determine that object reference picture is picture 2 according to the selection operation of targeted customer, then terminal can utilize the editing parameter of picture 2
Edit the picture to be edited.
It can be seen that in embodiment shown in Fig. 1, terminal can determine at least a kind of ginseng according to picture feature parameter to be edited
Picture is examined, so as to using the editing parameter editor of at least a kind of reference picture picture to be edited, simplify to a certain extent
Picture editor's process, has saved the operating time, realizes user for the automating of picture editor, intelligent demand.
Referring to Fig. 2, Fig. 2 is a kind of schematic flow sheet for image processing method that yet another embodiment of the invention provides.Its
In, this method may comprise steps of:
S201, the characteristic parameter for obtaining picture to be edited.
It should be noted that terminal can obtain different classes of characteristic parameter, such as following any one or the first kind
Characteristic parameter, the second category feature parameter, the 3rd category feature parameter.
Wherein, the first kind characteristic parameter comprise at least it is following any one or it is a variety of:Facial image photo angle, people
Face image size, facial image are located at position in photo, picture luminance, picture background;When the second category feature parameter includes
Between and place in it is at least one;3rd category feature parameter is including at least one in temperature and degree of sweating.It is optional
Ground, the place can be obtained by the positioner of terminal, can also be terminal obtain targeted customer input or
Selection is pushed by internet.
It should be noted that terminal after execution of step S201, can perform step S202, step S204, step side by side
Rapid S206.
If S202, the characteristic parameter include first kind characteristic parameter, according to the first category feature of each picture in picture library
Parameter and the first kind characteristic parameter of the picture to be edited, are determined and the picture match to be edited from the picture library
An at least reference picture.
It should be noted that terminal can be special by the first kind of the characteristic parameter of each picture in picture library and the picture to be edited
Sign parameter is compared, and determines the first category feature with the picture to be edited in the first kind characteristic parameter of each reference picture
The quantity of the parameter of match parameters, determined and the picture match to be edited so as to the quantity of the parameter according to the matching
An at least reference picture.
In one embodiment, terminal can be more to few suitable according to having by the quantity of the parameter of each picture Corresponding matching
After sequence arrangement, selection order is located at former positions, if the picture of front three is as reference picture.Or terminal can also be by each figure
The quantity of the parameter of piece Corresponding matching, according to after having and arriving more order arrangements less, selection order is located at latter several, such as latter three
Picture is as reference picture.
In one embodiment, the quantity of the parameter of matching can be more than or equal to the figure of preset quantity threshold value by terminal
Piece is as reference picture.
For example, if preset quantity threshold value is 3, and each picture and the quantity of the parameter of picture match to be edited are big in picture library
There are picture 1, picture 2, picture 3 in or equal to the picture of 3, it is determined that picture 1, picture 2, picture 3 are reference picture.
Each reference picture and the matching of the picture to be edited in S203, an at least reference picture according to
Degree, priority is set for each reference picture, and weight is correspondingly arranged according to the priority.
It should be noted that terminal is according to each reference picture in this at least a reference picture and the picture to be edited
Matching degree, priority is set for each reference picture, can be included:According to each in this at least a reference picture
Matching degree between reference picture and the picture to be edited, determine that matching degree is more than or waited from this at least a parameter picture
In the first kind reference picture of first threshold;And/or treated according to each reference picture in this at least a reference picture with this
Matching degree between editing picture, determine that matching degree is more than or equal to the of Second Threshold from this at least a parameter picture
Two class reference pictures;Wherein, the priority of the first kind reference picture is higher than the priority of the second class reference picture.
For example, if at least a reference picture includes picture 1, picture 2, picture 3 for this, if picture 1 and figure to be edited
Matching degree 60% between piece, the matching degree 80% between picture 2 and picture to be edited, between picture 3 and picture to be edited
Matching degree 100%.If first threshold is 85%, Second Threshold 60%, then it is picture 3 that can determine first kind reference picture,
Second class reference picture includes picture 1 and picture 2.Also, the priority of picture 3 is higher than the priority and picture 2 of picture 1
Priority.The picture 2 and picture 3 can have same priority.
It should be noted that the weight of the first kind reference picture is higher than the weight of the second class reference picture.
In one embodiment, terminal can according in the first kind characteristic parameter of each reference picture with the figure to be edited
The quantity for the parameter that the first kind characteristic parameter of piece matches, it is determined that each reference picture is with being somebody's turn to do in an at least reference picture
The matching degree of picture to be edited.The matching degree includes but is not limited to represent in the form of numeral, word etc..
In one embodiment, terminal can be with preset quantity and the corresponding relation of matching degree, it is determined that an at least reference chart
The matching degree of piece and the picture to be edited.Or terminal can also be according to the number of each parameter in quantity and first kind characteristic parameter
The ratio of amount, it is determined that at least a reference picture treats the matching degree of reference picture with this.
Alternatively, if the reference picture is multiple, terminal can also be according to the parameter of each reference picture Corresponding matching
Quantity is that the plurality of reference picture sets priority, and is correspondingly arranged weight according to the priority.
For example, if reference picture includes picture 1, picture 2, picture 3, and the quantity of the parameter of the Corresponding matching of picture 1 is 5
The quantity of individual, the Corresponding matching of picture 2 parameter is 4, the quantity of the parameter of the Corresponding matching of picture 3 is 3, then terminal can root
Data bulk carries out priority arrangement to each reference picture, and as picture 1 has the first priority (limit priority), picture 3 has
Third priority.
It should be noted that terminal after execution of step S203, can perform step S208.
It is special according to the second class of the picture to be edited if S204, the characteristic parameter include the second category feature parameter
The second category feature parameter of each contextual model in parameter and preset user's Living model is levied, determines the current institute of targeted customer
At least one contextual model at place.
For example, the second category feature parameter of the picture to be edited be 7 points ten minutes, at home, then terminal can be according to user
The second category feature parameter of each contextual model, determines that targeted customer is likely to be at contextual model 1 in Living model:7 points of morning
Plain face photograph is taken after getting up at home.Terminal can also determine contextual model 2:It is in 8 points of morning after painting adornment and claps photograph of making up.
In the embodiment of the present invention, the targeted customer is the user for needing to edit the picture to be edited.Each contextual model
Second category feature parameter comprises at least:Place corresponding to each contextual model, time corresponding to each contextual model.
It should be noted that terminal can be included on the mesh with preset user's Living model, user's Living model
Mark multiple contextual models corresponding to user.In one embodiment, terminal can according to the place on targeted customer of record with
And the information such as time obtained, to build user's Living model.For example, structure man, company, user's life mould of Fei Jiafei companies
Type.The contextual model can correspond to the living scene of targeted customer.
S205, treated with described according to the second category feature parameter of each contextual model at least one contextual model
The degree of association of second category feature parameter of editing picture, set at least one reference picture corresponding to each described contextual model
Priority is put, and weight is correspondingly arranged according to the priority.
In the embodiment of the present invention, the degree of association can be treated by the second category feature parameter of each contextual model with described
The degree of agreement of second category feature parameter of editing picture determines, such as the difference on time or place.Wherein, the degree of association
Including but not limited to represented with grade, such as high, normal, basic, numerical value, such as 80% form.
For example, the second category feature parameter of the picture to be edited be 7 points ten minutes, at home, then terminal can be according to user
The second category feature parameter of each contextual model, determines that targeted customer is likely to be at contextual model 1 in Living model:7 points of morning
Plain face photograph is taken after getting up at home.Terminal can also determine contextual model 2:It is in 8 points of morning after painting adornment and claps photograph of making up.
Terminal can determine that the second category feature parameter of contextual model 1 is, at home at 7 points.The second category feature ginseng of contextual model 2
Number is:8 points, at home.Due to 7 points ten minutes with 7 points in time difference it is smaller or less than the first preset difference value,
The degree of association corresponding to contextual model 1 can be determined for height.Taken second place with 8 differences within ten minutes or less than preset due to 7 points
Two difference values, it may be determined that during the degree of association corresponding to contextual model 2 is.
It should be noted that terminal can according to the degree of association be each contextual model corresponding at least one reference chart
Piece sets priority, and is correspondingly arranged weight according to the priority.
For example, if the degree of association of contextual model 1 is high, with the first priority, (priority is in each contextual model
Middle highest).If in the degree of association of contextual model 1, with the second priority, (its priority is in each contextual model time
In the first priority).Terminal can be that the first priority sets weight 12, can be that second priority sets weight 10.
It should be noted that terminal after execution of step S205, can perform step S208.
If S206, the characteristic parameter include the 3rd category feature parameter, and the target ginseng in the 3rd category feature parameter
Number meets preset condition, then according in the 3rd category feature parameter of the picture to be edited and preset user movement model
3rd category feature parameter of each motion state, and determine at least one motion state matched with the targeted customer.
Wherein, the motion state is the sport rank under different temperatures, as it is strong, in, it is weak.Alternatively, under the different temperatures
Each sport rank can be obtained according to the degree of sweating that user is analyzed under different temperatures.The preset condition includes but unlimited
Target component in the 3rd category feature parameter, degree of such as sweating are more than or equal to preset threshold value or preset grade.
For example, if the 3rd category feature parameter of picture to be edited is temperature:27 DEG C, degree of sweating 80%, the degree of sweating
80% is more than or equal to preset threshold value 60%, then terminal can be according to the 3rd class spy of each motion state in user movement model
Parameter and the 3rd category feature parameter of picture to be edited are levied, determines at least one motion shape matched with the targeted customer
State.If at least one motion state can include:Motion state 1, such as temperature:27 DEG C, sport rank:By force, motion state 2,
Such as temperature:27 DEG C, sport rank:In.
S207, treated with described according to the 3rd category feature parameter of each motion state at least one motion state
The matching degree of 3rd category feature parameter of editing picture, set at least one reference picture corresponding to each described motion state
Priority is put, and weight is correspondingly arranged according to the priority.
In one embodiment, terminal can according at least one motion state each motion state it is preferential
Level, weight is set for each reference picture corresponding to each motion state.
For example, if motion state 1 is provided with the first priority, the highest priority of motion state 1, if motion state
2 are provided with the second priority, then the priority of the motion state 2 is less than the priority of motion state 1.Terminal can be motion state
1 sets weight 2, and weight 1 is set for motion state 1.
It should be noted that terminal can be according to the 3rd class spy of each motion state at least one motion state
The matching degree of the 3rd category feature parameter of parameter and the picture to be edited is levied, to be at least one corresponding to each motion state
Reference picture sets priority, and is correspondingly arranged weight according to the priority.
In the embodiment of the present invention, the matching degree can be treated by the 3rd category feature parameter of each motion state with described
The degree of agreement of 3rd category feature parameter of editing picture determines, such as the degree of sweating under temperature difference value and different temperatures
Difference value.Temperature difference value can be used in user movement model determining corresponding temperature.Degree of sweating under different temperatures
Difference value, it can be used for determining corresponding grade based on the temperature in user movement model.Temperature difference value is smaller and different
At a temperature of degree difference value of sweating it is smaller, then it represents that matching degree is higher.
Correspondingly, in matching degree some scope can be in or during more than some preset threshold value, for corresponding motion shape
State sets respective priority.For example, terminal can determine that matching degree is more than or equal to the from least one motion state
The motion state of three threshold values, and the motion state is set to the first priority.Terminal can also determine matching degree be more than or
The second priority is set to equal to the motion state of the 4th threshold value, and by the motion state.
Wherein, the first priority is higher than the second priority.Weight corresponding to first priority is higher than the power of the second priority
Weight.Weight such as the first priority is 2, and the weight of the second priority is 1.
It should be noted that terminal after execution of step S207, can perform step S208.
208th, the editing parameter of each reference picture is final to obtain at least a kind of reference picture described in weighted average
Editing parameter;
S209, utilize picture to be edited described in the final editing parameter editor.
In one embodiment, terminal can join according to inhomogeneity another characteristic in the characteristic parameter of the picture to be edited
Number, determine Similarity Class reference picture, life kind reference picture, move class reference picture any one or it is a variety of, and
Each ginseng in weighted average at least a kind of reference picture can be come according to the weight of each picture in the reference picture of corresponding classification
The editing parameter of picture is examined to obtain final editing parameter.
For example, if it is determined that picture be Similarity Class reference picture, the Similarity Class reference picture include picture 1, picture 2,
Picture 3, wherein, the weight of picture 1 is 6, and the weight of picture 2 is 4, is 2 in the group of picture 3.Assuming that editing parameter refers to for whitening
Number, if the whitening index of picture 1 is 4, the whitening index of picture 2 is 5, and the whitening index of picture 3 is 5, by weighted average this
The whitening index of three pictures, i.e. (6 × 4+4 × 5+5 × 2)/(6+4+2) can obtain final whitening index as 4.5.It is then sharp
Gone to edit the picture to be edited with 4.5 whitening index.
It can be seen that in embodiment shown in Fig. 2, terminal can determine Similarity Class figure according to the characteristic parameter of picture to be edited
Piece, life kind picture and motion class picture, so as to wait to compile using the editing parameter editor of wherein at least a kind of reference picture
Volume picture, simplifies picture editor's process, has saved the operating time to a certain extent, realize user for picture editor from
Dynamicization, intelligent demand.
Referring to Fig. 3, Fig. 3 is a kind of structural representation of terminal provided in an embodiment of the present invention, the terminal includes being used for
Perform the unit of the method described in foregoing any one.Specifically, the terminal of the present embodiment can include:Acquiring unit 10, determine
Unit 20, edit cell 30, output unit 40 can also be included, receive determining unit 50.Wherein:
Acquiring unit 10, for obtaining the characteristic parameter of picture to be edited;
Determining unit 20, for determining at least a kind of reference picture according to the characteristic parameter;At least a kind of reference
There is different priority per class reference picture in picture;
Edit cell 30, according to picture to be edited described in the editing parameter editor of at least a kind of reference picture.
In an optional embodiment, the characteristic parameter comprise at least it is following any one or it is a variety of:First
Category feature parameter, the second category feature parameter, the 3rd category feature parameter;Wherein, the first kind characteristic parameter comprises at least following
Any one is a variety of:Facial image photo angle, facial image size, facial image are located at position in photo, picture
Brightness, picture background;The second category feature parameter is including at least one in time and place;The 3rd category feature ginseng
Number include temperature and degree of sweating in it is at least one.
In an optional embodiment, determining unit 20, including:First determination subelement, if for the feature
Parameter includes first kind characteristic parameter, then determines Similarity Class reference picture according to the first kind characteristic parameter;Second determines
Subelement, if including the second category feature parameter for the characteristic parameter, determine to be born according to the second category feature parameter
Class reference picture living;3rd determination subelement, if including the 3rd category feature parameter, and the 3rd class for the characteristic parameter
Target component in characteristic parameter meets preset condition, then is determined to move class reference chart according to the 3rd category feature parameter
Piece.
In an optional embodiment, first determination subelement, specifically for according to each picture in picture library
The first kind characteristic parameter of first kind characteristic parameter and the picture to be edited, determined from the picture library with it is described to be edited
An at least reference picture for picture match;Wait to compile with described according to each reference picture in an at least reference picture
The matching degree of picture is collected, priority is set for each reference picture, and weight is correspondingly arranged according to the priority.
In an optional embodiment, first determination subelement is according to every in an at least reference picture
One reference picture and the matching degree of the picture to be edited, priority is set for each reference picture, is specially:Root
According to the matching degree in an at least reference picture between each reference picture and the picture to be edited, from it is described at least
Determine that matching degree is more than or equal to the first kind reference picture of first threshold in one parameter picture;And/or according to it is described extremely
Matching degree in a few reference picture between each reference picture and the picture to be edited, from an at least parameter
Determine that matching degree is more than or equal to the second class reference picture of Second Threshold in picture;Wherein, the first kind reference picture
Priority be higher than the second class reference picture priority.
In an optional embodiment, the second determination subelement, specifically for according to the picture to be edited
The second category feature parameter of each contextual model, determines targeted customer in two category feature parameters and preset user's Living model
At least one contextual model being presently in;The targeted customer is the user for needing to edit the picture to be edited;According to institute
The second category feature parameter and the second class of the picture to be edited for stating each contextual model at least one contextual model are special
The degree of association of parameter is levied, priority is set at least one reference picture corresponding to each described contextual model, and according to institute
State priority and be correspondingly arranged weight.
In an optional embodiment, the 3rd determination subelement, specifically for according to the picture to be edited
The 3rd category feature parameter of each motion state, is determined and the mesh in three category feature parameters and preset user movement model
Mark at least one motion state of user's matching;The motion state is the sport rank under different temperatures;According to it is described at least
3rd category feature parameter of each motion state and the 3rd category feature parameter of the picture to be edited in one motion state
Matching degree, priority is set at least one reference picture corresponding to each described motion state, and according to described preferential
Level is correspondingly arranged weight.
In an optional embodiment, the edit cell 30, join specifically at least a kind of described in weighted average
The editing parameter of each reference picture in picture is examined to obtain final editing parameter;Utilize the final editing parameter editor
The picture to be edited.
In an optional embodiment, edit cell 30, if including specifically at least a kind of reference picture
Class reference picture is moved, then the editing parameter that each reference picture in class reference picture is moved described in weighted average is final to obtain
Editing parameter;Utilize picture to be edited described in the final editing parameter editor.
In an optional embodiment, output unit 40, for exporting at least a kind of reference picture.
In an optional embodiment, receive determining unit 50, for receive the targeted customer to it is described at least
The selection operation of a kind of reference picture, and object reference picture is determined according to the selection operation.
In an optional embodiment, the edit cell 30, the volume according to the object reference picture is additionally operable to
Collect picture to be edited described in parameter editor.
It can be seen that in embodiment shown in Fig. 3, terminal can obtain the characteristic parameter of picture to be edited, and according to this feature
Parameter determines at least a kind of reference picture, so as to the figure to be edited of the editing parameter editor according at least a kind of reference picture
Piece, simplify picture editor's process, saved the operating time, realize user for the automating of picture editor, intelligent need
Ask.
Referring to Fig. 4, Fig. 4 is a kind of structural representation for terminal that yet another embodiment of the invention provides.As depicted originally
Terminal in embodiment can include:One or more processors 401, one or more input equipments 402, one or more are defeated
Go out equipment 403 and memory 404.Above-mentioned processor 401, input equipment 402, output equipment 403 and memory 404 pass through bus
405 connections.Memory 404 is used to store computer program, and the computer program includes programmed instruction, and processor 401 is used for
Perform the programmed instruction that memory 404 stores.Wherein, processor 401 is arranged to call described program instruction to perform:
Obtain the characteristic parameter of picture to be edited;
At least a kind of reference picture is determined according to the characteristic parameter;Per class reference chart at least a kind of reference picture
Piece has different priority;
According to picture to be edited described in the editing parameter editor of at least a kind of reference picture.
In an optional embodiment, the characteristic parameter comprise at least it is following any one or it is a variety of:First
Category feature parameter, the second category feature parameter, the 3rd category feature parameter;Wherein, the first kind characteristic parameter comprises at least following
Any one is a variety of:Facial image photo angle, facial image size, facial image are located at position in photo, picture
Brightness, picture background;The second category feature parameter is including at least one in time and place;The 3rd category feature ginseng
Number include temperature and degree of sweating in it is at least one.
In an optional embodiment, processor 401 is arranged to call described program instruction to perform described
At least a kind of reference picture is determined according to the characteristic parameter, specifically for performing:
If the characteristic parameter includes first kind characteristic parameter, Similarity Class is determined according to the first kind characteristic parameter
Reference picture;
If the characteristic parameter includes the second category feature parameter, life kind is determined according to the second category feature parameter
Reference picture;
If the characteristic parameter includes the 3rd category feature parameter, and the target component in the 3rd category feature parameter meets
Preset condition, then determined to move class reference picture according to the 3rd category feature parameter.
In an optional embodiment, processor 401 is arranged to call described program instruction to perform described
Similarity Class reference picture is determined according to the first kind characteristic parameter, specifically for performing:
According to the first kind characteristic parameter of each picture in picture library and the first kind characteristic parameter of the picture to be edited, from institute
State at least reference picture determined in picture library with the picture match to be edited;
According to each reference picture in an at least reference picture and the matching degree of the picture to be edited, for institute
State each reference picture and priority is set, and weight is correspondingly arranged according to the priority.
In an optional embodiment, processor 401 is arranged to call described program instruction to perform described
According to each reference picture in an at least reference picture and the matching degree of the picture to be edited, for described each ginseng
Examine picture and priority is set, specifically for performing:
According to the matching degree in an at least reference picture between each reference picture and the picture to be edited,
Determine that matching degree is more than or equal to the first kind reference picture of first threshold from an at least parameter picture;
And/or according in an at least reference picture between each reference picture and the picture to be edited
Matching degree, determine that matching degree is more than or equal to the second class reference chart of Second Threshold from an at least parameter picture
Piece;Wherein, the priority of the first kind reference picture is higher than the priority of the second class reference picture.
In an optional embodiment, processor 401 is arranged to call described program instruction to perform described
Life kind reference picture is determined according to the second category feature parameter, specifically for performing:
According to each contextual model in the second category feature parameter of the picture to be edited and preset user's Living model
The second category feature parameter, determine at least one contextual model that targeted customer is presently in;The targeted customer is needs
Edit the user of the picture to be edited;
According to the second category feature parameter of each contextual model at least one contextual model with it is described to be edited
The degree of association of second category feature parameter of picture, set at least one reference picture corresponding to each described contextual model excellent
First level, and weight is correspondingly arranged according to the priority.
In an optional embodiment, processor 401 is arranged to call described program instruction to perform according to institute
State the 3rd category feature parameter to determine to move class reference picture, specifically for performing:
According to each motion state in the 3rd category feature parameter of the picture to be edited and preset user movement model
The 3rd category feature parameter, determine at least one motion state matched with the targeted customer;The motion state is not
Sport rank under synthermal;
According to the 3rd category feature parameter of each motion state at least one motion state with it is described to be edited
The matching degree of 3rd category feature parameter of picture, set at least one reference picture corresponding to each described motion state excellent
First level, and weight is correspondingly arranged according to the priority.
In an optional embodiment, processor 401 is arranged to call described program instruction to perform described
According to picture to be edited described in the editing parameter editor of at least a kind of reference picture, specifically for performing:
The editing parameter of each reference picture is to obtain final editor at least a kind of reference picture described in weighted average
Parameter;
Utilize picture to be edited described in the final editing parameter editor.
In an optional embodiment, processor 401 is arranged to call described program instruction to perform described
According to picture to be edited described in the editing parameter editor of at least a kind of reference picture, specifically for performing:
If at least a kind of reference picture includes motion class reference picture, class reference picture is moved described in weighted average
In each reference picture editing parameter to obtain final editing parameter;
Utilize picture to be edited described in the final editing parameter editor.
In an optional embodiment, processor 401 is configured to be additionally operable to call described program instruction to perform:
At least a kind of reference picture described in output;
Selection operation of the targeted customer at least a kind of reference picture is received, and it is true according to the selection operation
Set the goal reference picture;
According to picture to be edited described in the editing parameter editor of the object reference picture.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be CPU (Central
Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 402 can include touch-screen, camera, fingerprint and adopt sensor (for gathering the finger print information of user
With the directional information of fingerprint), microphone etc..Output equipment 403 can include display (LCD etc.), loudspeaker etc..
The memory 404 can include read-only storage and random access memory, and to processor 401 provide instruction and
Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited
Store up the information of device type.
In the specific implementation, processor 401, input equipment 402, the output equipment 403 described in the embodiment of the present invention can
The implementation described in the first embodiment and second embodiment of image processing method provided in an embodiment of the present invention is performed,
Also the implementation of the terminal described by the embodiment of the present invention is can perform, will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the invention
Matter is stored with computer program, and the computer program includes programmed instruction, and described program instruction is realized when being executed by processor:
Obtain the characteristic parameter of picture to be edited;
At least a kind of reference picture is determined according to the characteristic parameter;Per class reference chart at least a kind of reference picture
Piece has different priority;
According to picture to be edited described in the editing parameter editor of at least a kind of reference picture.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example
Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both
Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is described for storing
Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily
When store the data that has exported or will export.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially
Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase
Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit
Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, terminal, or network equipment etc.) performs the whole of each embodiment methods described of the present invention
Or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (13)
1. a kind of image processing method, it is characterised in that methods described includes:
Obtain the characteristic parameter of picture to be edited;
At least a kind of reference picture is determined according to the characteristic parameter;Per class reference picture tool at least a kind of reference picture
There is different priority;
According to picture to be edited described in the editing parameter editor of at least a kind of reference picture.
2. according to the method for claim 1, it is characterised in that the characteristic parameter comprise at least it is following any one or
It is a variety of:First kind characteristic parameter, the second category feature parameter, the 3rd category feature parameter;Wherein, the first kind characteristic parameter is at least
Including it is following any one or it is a variety of:Facial image photo angle, facial image size, facial image are located at the position in photo
Put, picture luminance, picture background;The second category feature parameter is including at least one in time and place;Described 3rd
Category feature parameter is including at least one in temperature and degree of sweating.
3. according to the method for claim 2, it is characterised in that described that at least a kind of refer to is determined according to the characteristic parameter
Picture, including:
If the characteristic parameter includes first kind characteristic parameter, determine that Similarity Class refers to according to the first kind characteristic parameter
Picture;
If the characteristic parameter includes the second category feature parameter, determine that life kind refers to according to the second category feature parameter
Picture;
If the characteristic parameter includes the 3rd category feature parameter, and the target component in the 3rd category feature parameter meet it is preset
Condition, then according to the 3rd category feature parameter determine move class reference picture.
4. according to the method for claim 3, it is characterised in that it is described determined according to the first kind characteristic parameter it is similar
Class reference picture, including:
According to the first kind characteristic parameter of each picture in picture library and the first kind characteristic parameter of the picture to be edited, from the figure
At least reference picture with the picture match to be edited is determined in storehouse;
It is described every according to each reference picture in an at least reference picture and the matching degree of the picture to be edited
One reference picture sets priority, and is correspondingly arranged weight according to the priority.
5. according to the method for claim 4, it is characterised in that each in an at least reference picture described in the basis
Reference picture and the matching degree of the picture to be edited, priority is set for each reference picture, including:
According to the matching degree in an at least reference picture between each reference picture and the picture to be edited, from institute
State the first kind reference picture for determining that matching degree is more than or equal to first threshold in an at least parameter picture;
And/or according to the matching in an at least reference picture between each reference picture and the picture to be edited
Degree, determine that matching degree is more than or equal to the second class reference picture of Second Threshold from an at least parameter picture;Its
In, the priority of the first kind reference picture is higher than the priority of the second class reference picture.
6. according to the method for claim 5, it is characterised in that described to determine to live according to the second category feature parameter
Class reference picture, including:
According to of each contextual model in the second category feature parameter of the picture to be edited and preset user's Living model
Two category feature parameters, determine at least one contextual model that targeted customer is presently in;The targeted customer is to need to edit
The user of the picture to be edited;
According to the second category feature parameter of each contextual model at least one contextual model and the picture to be edited
The second category feature parameter the degree of association, set at least one reference picture corresponding to each described contextual model preferential
Level, and weight is correspondingly arranged according to the priority.
7. according to the method for claim 6, it is characterised in that described to determine to move according to the 3rd category feature parameter
Class reference picture, including:
According to of each motion state in the 3rd category feature parameter of the picture to be edited and preset user movement model
Three category feature parameters, determine at least one motion state matched with the targeted customer;The motion state is not equality of temperature
Sport rank under degree;
According to the 3rd category feature parameter of each motion state at least one motion state and the picture to be edited
The 3rd category feature parameter matching degree, set at least one reference picture corresponding to each described motion state preferential
Level, and weight is correspondingly arranged according to the priority.
8. according to the method described in claim 1-7 any one, it is characterised in that at least a kind of reference chart described in the basis
Picture to be edited described in the editing parameter editor of piece, including:
The editing parameter of each reference picture is to obtain final editing parameter at least a kind of reference picture described in weighted average;
Utilize picture to be edited described in the final editing parameter editor.
9. according to the method described in claim 1-7 any one, it is characterised in that at least a kind of reference chart described in the basis
Picture to be edited described in the editing parameter editor of piece, including:
If at least a kind of reference picture includes motion class reference picture, moved described in weighted average each in class reference picture
The editing parameter of individual reference picture is to obtain final editing parameter;
Utilize picture to be edited described in the final editing parameter editor.
10. according to the method for claim 8, it is characterised in that described that at least a kind of join is determined according to the characteristic parameter
After examining picture, methods described also includes:
At least a kind of reference picture described in output;
Selection operation of the targeted customer at least a kind of reference picture is received, and mesh is determined according to the selection operation
Mark reference picture;
According to picture to be edited described in the editing parameter editor of the object reference picture.
11. a kind of terminal, it is characterised in that including for performing the method as described in claim 1-10 any claims
Unit.
12. a kind of terminal, it is characterised in that the processor, defeated including processor, input equipment, output equipment and memory
Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used to store computer program, the computer
Program includes programmed instruction, and the processor is arranged to call described program instruction, performed as claim 1-10 is any
Method described in.
13. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has computer journey
Sequence, the computer program include programmed instruction, and described program instruction makes the computing device such as when being executed by a processor
Method described in claim any one of 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710775944.XA CN107657584A (en) | 2017-08-31 | 2017-08-31 | A kind of image processing method, terminal and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710775944.XA CN107657584A (en) | 2017-08-31 | 2017-08-31 | A kind of image processing method, terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107657584A true CN107657584A (en) | 2018-02-02 |
Family
ID=61127991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710775944.XA Withdrawn CN107657584A (en) | 2017-08-31 | 2017-08-31 | A kind of image processing method, terminal and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107657584A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108986018A (en) * | 2018-07-02 | 2018-12-11 | 陈超 | Automatic U.S. figure platform based on the beautification of the face cheek |
CN111405191A (en) * | 2020-04-24 | 2020-07-10 | Oppo(重庆)智能科技有限公司 | Image management method, device, terminal and storage medium |
-
2017
- 2017-08-31 CN CN201710775944.XA patent/CN107657584A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108986018A (en) * | 2018-07-02 | 2018-12-11 | 陈超 | Automatic U.S. figure platform based on the beautification of the face cheek |
CN108986018B (en) * | 2018-07-02 | 2019-05-10 | 上海蒙彤文化传播有限公司 | Automatic U.S. figure platform based on the beautification of the face cheek |
CN111405191A (en) * | 2020-04-24 | 2020-07-10 | Oppo(重庆)智能科技有限公司 | Image management method, device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109447895B (en) | Picture generation method and device, storage medium and electronic device | |
CN107995415A (en) | A kind of image processing method, terminal and computer-readable medium | |
US10600171B2 (en) | Image-blending via alignment or photometric adjustments computed by a neural network | |
CN108537292A (en) | Semantic segmentation network training method, image, semantic dividing method and device | |
CN104517265B (en) | Intelligent grinding skin method and apparatus | |
CN107330408A (en) | Video processing method and device, electronic equipment and storage medium | |
CN108012081A (en) | Intelligence U.S. face method, apparatus, terminal and computer-readable recording medium | |
CN108280166A (en) | Production method, device, terminal and the computer readable storage medium of expression | |
CN110348907A (en) | A kind of orientation method and device of advertisement crowd | |
CN110929836B (en) | Neural network training and image processing method and device, electronic equipment and medium | |
CN108037872A (en) | A kind of photo editing method and terminal device | |
CN111191503A (en) | Pedestrian attribute identification method and device, storage medium and terminal | |
CN108961267A (en) | Image processing method, picture processing unit and terminal device | |
CN107577654A (en) | E-book color matching method, electronic equipment and storage medium based on front cover analysis | |
CN112017162B (en) | Pathological image processing method, pathological image processing device, storage medium and processor | |
CN106709431A (en) | Iris recognition method and device | |
CN108174237A (en) | Image combining method and device | |
CN107657584A (en) | A kind of image processing method, terminal and computer-readable recording medium | |
CN111325212A (en) | Model training method and device, electronic equipment and computer readable storage medium | |
CN104793937B (en) | A kind of startup control method and device | |
CN109886781A (en) | Products Show method, apparatus, equipment and storage medium based on drawing behavior | |
CN109583318A (en) | Medicinal plant recognition methods, device and computer equipment | |
CN108805095A (en) | image processing method, device, mobile terminal and computer readable storage medium | |
CN111563161A (en) | Sentence recognition method, sentence recognition device and intelligent equipment | |
CN108932704A (en) | Image processing method, picture processing unit and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180202 |