CN109543646A - Face image processing process, device, electronic equipment and computer storage medium - Google Patents

Face image processing process, device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN109543646A
CN109543646A CN201811458443.XA CN201811458443A CN109543646A CN 109543646 A CN109543646 A CN 109543646A CN 201811458443 A CN201811458443 A CN 201811458443A CN 109543646 A CN109543646 A CN 109543646A
Authority
CN
China
Prior art keywords
eye
dressing
modification information
parameter modification
facial image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811458443.XA
Other languages
Chinese (zh)
Inventor
梁冰雁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Face Meng Technology Co Ltd
Original Assignee
Shenzhen Face Meng Technology 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 Shenzhen Face Meng Technology Co Ltd filed Critical Shenzhen Face Meng Technology Co Ltd
Priority to CN201811458443.XA priority Critical patent/CN109543646A/en
Publication of CN109543646A publication Critical patent/CN109543646A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/171Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/193Preprocessing; Feature extraction

Abstract

The embodiment of the present disclosure provides a kind of face image processing process, device, electronic equipment and computer storage medium, this method comprises: receiving eye dressing adjustment instruction, according to the eye dressing parameter modification information based on facial image to be processed for including in eye dressing adjustment instruction, eye feature point corresponding with eye dressing parameter modification information in facial image to be processed is detected, and determines target area corresponding with eye dressing parameter modification information in facial image to be processed;Dressing material is superimposed on target area, the facial image to be processed after being adjusted.Scheme through this embodiment, when receiving eye dressing adjustment instruction, facial image to be processed can be handled according to eye dressing adjustment instruction, realize the function of user's eye dressing in key adjustment image, without being edited manually to eye dressing, the time for reducing the processing of eye dressing improves the usage experience of user.

Description

Face image processing process, device, electronic equipment and computer storage medium
Technical field
This disclosure relates to technical field of image processing, specifically, this disclosure relates to a kind of face image processing process, dress It sets, electronic equipment and computer storage medium.
Background technique
In U.S. face class tool, user can carry out dressing special effect processing to image, to promote the aesthetic feeling of image.But When using existing U.S. face class tool, when dressing of the user to eyes in image is dissatisfied to be wanted to be adjusted, user It needs the dressing to human eye position in image to manually adjust, required image just can be obtained.
For example, user just needs to manually adjust corresponding eyes, could obtain when user wants addition informer To image adjusted.Generally for the unskilled user of image is manually adjusted, image is carried out by way of manually adjusting Dressing processing is not only extremely difficult to the purpose of U.S. face, and U.S. face processing short time consumption is long, reduces the usage experience of user.
Summary of the invention
The purpose of the disclosure is intended at least can solve above-mentioned one of technological deficiency, promotes the usage experience of user.This public affairs Open the technical solution adopted is as follows::
In a first aspect, present disclose provides a kind of face image processing process, this method comprises:
Obtain facial image to be processed;
The eye dressing adjustment instruction to the facial image to be processed is received, includes in the eye dressing adjustment instruction Eye dressing parameter modification information based on the facial image to be processed;
According to the eye dressing parameter modification information, detects in the facial image to be processed and join with the eye dressing The corresponding eye feature point of number modification information;
According to the eye feature point, determine in the facial image to be processed with the eye dressing parameter modification information Corresponding target area;
The corresponding dressing material of the eye dressing parameter modification information is superimposed on the target area, is adjusted The facial image to be processed afterwards;
Show the facial image to be processed adjusted.
In embodiment of the disclosure, the eye dressing parameter modification information includes informer's parameter modification information, eyelashes ginseng Number modification information or U.S. pupil parameter modification information.
It is described according to the eye feature point in embodiment of the disclosure, determine in the facial image to be processed with institute State the corresponding target area of eye dressing parameter modification information, comprising:
According to the eye feature point, and the interpolation corresponding with the eye dressing parameter modification information being pre-configured is calculated Method obtains interpolation characteristic point;
According to the interpolation characteristic point, alternatively, according to the eye feature point and the interpolation characteristic point, determine it is described to Handle target area corresponding with the eye dressing parameter modification information in facial image.
It is described that the corresponding dressing material of the eye dressing parameter modification information is superimposed to institute in embodiment of the disclosure Before stating on target area, further includes:
Judge whether the similarity of the profile and the profile of the dressing material of the target area is greater than the set value;
If the similarity be not more than the setting value, according to the profile of the dressing material to the target area into Row adjustment, is greater than the set value the profile of the target area adjusted and the similarity of the profile of the dressing material.
It further include being modified for the eye dressing parameter in embodiment of the disclosure, in the eye dressing adjustment instruction The selection instruction of the adjustment index of information, the adjustment index is for identifying corresponding to the eye dressing parameter modification information The transparency of dressing material;
It is described that the corresponding dressing material of the eye dressing parameter modification information is superimposed on the target area, packet It includes:
According to the adjustment index, and the corresponding relationship of adjustment index and material transparency being pre-configured, described in determination Adjust the transparency of dressing material corresponding to index;
According to the transparency of the dressing material, to the saturating of the corresponding dressing material of the eye dressing parameter modification information Lightness is adjusted, the dressing material after being adjusted;
The dressing material adjusted is superimposed on the target area.
In embodiment of the disclosure, the eye dressing adjustment instruction to the facial image to be processed is received, comprising:
It receives the user and triggering command is adjusted to the eye dressing of the facial image to be processed;
Triggering command is adjusted in response to the eye dressing, display eye dressing adjusts interface, the eye dressing adjustment Interface display has eye dressing parameter modification information option and the facial image to be processed;
Interface is adjusted by the eye dressing, receives the eye dressing adjustment instruction.
In embodiment of the disclosure, the facial image to be processed is the facial image obtained in real time, or from local image The facial image chosen in library;
When the facial image to be processed is the facial image obtained in real time, if the eye dressing parameter is modified Information is eyelashes parameter modification information and the facial image to be processed is the facial image acted comprising blink, it is described will be described The corresponding dressing material of eye dressing parameter modification information is superimposed on the target area, comprising:
Longitudinal compression is carried out to dressing material corresponding to the eyelashes parameter modification information;
Compressed dressing material is superimposed to mesh corresponding to eyelashes parameter modification information described in the user images It marks on region.
Second aspect, present disclose provides a kind of face image processing device, which includes:
Image collection module, for obtaining facial image to be processed;
Command reception module, for receiving the eye dressing adjustment instruction to the facial image to be processed, the eye It include the eye dressing parameter modification information based on the facial image to be processed in dressing adjustment instruction;
Image processing module, for detecting the facial image to be processed according to the eye dressing parameter modification information In eye feature point corresponding with the eye dressing parameter modification information determined described wait locate according to the eye feature point Target area corresponding with the eye dressing parameter modification information in facial image is managed, and the eye dressing parameter is repaired It converts to the corresponding dressing material of breath to be superimposed on the target area, the facial image to be processed after being adjusted;
Image display, for showing the facial image to be processed adjusted.
In embodiment of the disclosure, the eye dressing parameter modification information includes informer's parameter modification information, eyelashes ginseng Number modification information or U.S. pupil parameter modification information.
In embodiment of the disclosure, image processing module determines the face to be processed according to the eye feature point In image when target area corresponding with the eye dressing parameter modification information, it is specifically used for:
According to the eye feature point, and the interpolation corresponding with the eye dressing parameter modification information being pre-configured is calculated Method obtains interpolation characteristic point;
According to the interpolation characteristic point, alternatively, according to the eye feature point and the interpolation characteristic point, determine it is described to Handle target area corresponding with the eye dressing parameter modification information in facial image.
In embodiment of the disclosure, image processing module is also used to:
Before the corresponding dressing material of the eye dressing parameter modification information is superimposed on the target area, sentence Whether the similarity of the profile and the profile of dressing material of disconnected target area is greater than the set value;
If similarity is not more than setting value, target area is adjusted according to the profile of dressing material, after making adjustment The similarity of profile and the profile of dressing material of target area be greater than the set value.
It further include being modified for the eye dressing parameter in embodiment of the disclosure, in the eye dressing adjustment instruction The selection instruction of the adjustment index of information, the adjustment index is for identifying corresponding to the eye dressing parameter modification information The transparency of dressing material;
The corresponding dressing material of the eye dressing parameter modification information is being superimposed to the target by image processing module When on region, it is specifically used for:
According to the adjustment index, and the corresponding relationship of adjustment index and material transparency being pre-configured, described in determination Adjust the transparency of dressing material corresponding to index;
According to the transparency of the dressing material, to the saturating of the corresponding dressing material of the eye dressing parameter modification information Lightness is adjusted, the dressing material after being adjusted;
The dressing material adjusted is superimposed on the target area.
In embodiment of the disclosure, command reception module is receiving the eye dressing adjustment to the facial image to be processed When instruction, it is specifically used for:
It receives the user and triggering command is adjusted to the eye dressing of the facial image to be processed;
Triggering command is adjusted in response to the eye dressing, display eye dressing adjusts interface, the eye dressing adjustment Interface display has eye dressing parameter modification information option and the facial image to be processed;
Interface is adjusted by the eye dressing, receives the eye dressing adjustment instruction.
In embodiment of the disclosure, facial image to be processed is the facial image obtained in real time, or from local image library The facial image of selection;
When facial image to be processed is the facial image obtained in real time, if eye dressing special efficacy is for eyelashes special efficacy and wait locate Managing facial image is the facial image acted comprising blink, by image processing module the corresponding dressing of eye dressing special efficacy is plain When material is superimposed on target area, it is specifically used for:
Longitudinal compression is carried out to dressing material corresponding to the eyelashes parameter modification information;By compressed dressing material It is superimposed on target area corresponding to eyelashes parameter modification information described in the user images.
The third aspect, present disclose provides a kind of electronic equipment, which includes processor and memory;
Memory, for storing operational order;
Processor is executed as shown in any embodiment of the first aspect of the disclosure for being instructed by call operation Method.
Fourth aspect, present disclose provides a kind of computer readable storage medium, on the computer readable storage medium It is stored with computer program instructions, the computer program instructions are used to that the computer to be made to execute to realize the such as the disclosure Method shown in any embodiment of one side.
The technical solution that the embodiment of the present disclosure provides has the benefit that
Scheme in the embodiment of the present disclosure can be adjusted when receiving eye dressing adjustment instruction according to eye dressing Eye dressing parameter modification information in instruction handles facial image to be processed, that is, realizes and use in key adjustment image The function of family eye dressing reduces the time of the processing of eye dressing, mentions without editing manually to eye dressing The usage experience of user is risen.
Detailed description of the invention
In order to illustrate more clearly of technical solution in embodiment of the disclosure, the embodiment of the present disclosure will be described below Needed in attached drawing be briefly described.
Fig. 1 is a kind of flow diagram for image processing method that the embodiment of the present disclosure provides;
Fig. 2 is a kind of schematic diagram for detecting eye feature point in the embodiment of the present disclosure;
Fig. 3 a is a kind of schematic diagram of display interface in the embodiment of the present disclosure;
Fig. 3 b is the schematic diagram of another display interface in the embodiment of the present disclosure;
Fig. 4 a is the schematic diagram of another display interface in the embodiment of the present disclosure;
Fig. 4 b is the schematic diagram of another display interface in the embodiment of the present disclosure;
Fig. 5 is a kind of effect diagram to after face image processing to be processed in the embodiment of the present disclosure;
Fig. 6 is the schematic diagram of another display interface in the embodiment of the present disclosure;
Fig. 7 is a kind of structural schematic diagram of image processing apparatus in the embodiment of the present disclosure;
Fig. 8 is a kind of structural schematic diagram of the electronic equipment of image procossing in the embodiment of the present disclosure.
Specific embodiment
Embodiment of the disclosure is described below in detail, the example of the embodiment is shown in the accompanying drawings, wherein phase from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached drawing The embodiment of description is exemplary, and is only used for explaining the Sense of Technology of the disclosure, and cannot be construed to the limitation to the disclosure.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, "one" It may also comprise plural form with "the".It is to be further understood that wording " comprising " used in the specification of the disclosure is Refer to that there are this feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition it is one or more its His feature, integer, step, operation, element, component and/or their group.It should be understood that when we claim element be " connected " or When " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be intermediary elements.This Outside, " connection " or " coupling " used herein may include being wirelessly connected or wirelessly coupling.Wording "and/or" packet used herein Include one or more associated wholes for listing item or any cell and all combination.
How the technical solution of the disclosure and the technical solution of the disclosure are solved with specifically embodiment below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, embodiment of the disclosure is described.
Embodiment of the disclosure provides a kind of face image processing process, as shown in Figure 1, this method may include:
Step S110 obtains facial image to be processed.
Wherein, facial image to be processed is the facial image obtained in real time, or the face figure chosen from local image library Picture.
Step S120 receives the eye dressing adjustment instruction to the facial image to be processed, the eye dressing adjustment It include the eye dressing parameter modification information based on the facial image to be processed in instruction.
Wherein, eye dressing parameter modification information indicates to carry out eye dressing spy to the ocular in processing facial image The strategy for imitating processing, i.e., specifically need how to handle ocular, that is, need to which parameter or which parameter It modifies, i.e., different eye dressing parameter modification informations can indicate different eye dressing special efficacys, according to different eyes Portion's dressing parameter modification information, which carries out processing to facial image to be processed, can be obtained by the effect of different eye dressing special efficacys Figure.In embodiment of the disclosure, eye dressing parameter modification information may include informer's parameter modification information i.e. informer's special efficacy, eyelash Hair parameter modification information special efficacy, that is, eyelashes special efficacy, or U.S. pupil dressing parameter modification information are U.S. pupil special efficacy etc..Wherein, informer's special efficacy Refer to eye addition informer's effect in facial image, it is the eye increase eyelash in facial image that eyelashes special efficacy, which can refer to, Capillary effect fruit more sticks up so that eyelashes seem longer, and U.S. pupil special efficacy refers to that the eye in facial image adds U.S. pupil effect, such as The U.S. pupil of different colours can be added at the position of user's pupil, change eyeball site color in image to be processed.
In the embodiments of the present disclosure, eye dressing adjustment instruction indicates to send the choosing of eye portion dressing special efficacy by display interface Select the instruction of operation, wherein the eye for being added to facial image to be processed is wanted in the selection of eye dressing special efficacy selection operation, i.e. user The movement of portion's dressing special efficacy, the specific implementation form of the operation configure as needed, for example, the eye dressing special efficacy selection operation User be can be on the display interface of the application program of client to the point of the corresponding specified operating position of eye dressing special efficacy Hit movement.In the program, after detecting the eye dressing special efficacy selection operation, use can be learnt based on the operation of user Think eye dressing special efficacy to be added in family.
In practical applications, the eye dressing special efficacy selection behaviour for receiving user can be identified by the associated trigger of client Make, wherein the concrete form for triggering mark can configure according to actual needs, for example, can be specified on client end interface Trigger button or input frame can also be the phonetic order of user, specifically, for example can be on the display interface of client The virtual push button of eye dressing special efficacy corresponding to various informer's lines of display and/or various U.S. pupil colors, user click it The operation of middle either button is the eye dressing special efficacy selection operation of user, as user clicks void corresponding to U.S. pupil color A The movement of quasi- button is the eye dressing special efficacy selection operation of user, includes the selected eye dressing spy of user in the operation Effect is U.S. pupil special efficacy, and U.S. pupil color is color A, which illustrates that user wants the pupil color in facial image to be processed It is adjusted to color A.
Step S130, according to the eye dressing parameter modification information, detect in the facial image to be processed with it is described The corresponding eye feature point of eye dressing parameter modification information.
Wherein, for different eye dressing parameter modification informations (eye special efficacy), eye feature point one to be detected As be different, in practical applications, which special efficacy needs to detect which eye feature point, and being can be according to the actual application Pre-configured.For example, eye feature point can include but is not limited to pupil feature point, for informer for U.S. pupil special efficacy Special efficacy, eye special efficacy may include specific eye contour feature point.
In one example, as shown in Fig. 2, the eye contour feature point of user may include characteristic point a, b, c, d, e, f, g, H, pupil feature point may include characteristic point k1, k2, k3 and k4.
Step S140 is determined in the facial image to be processed and is joined with the eye dressing according to the eye feature point The corresponding target area of number modification information.
Wherein it is determined that target area corresponding with eye dressing parameter modification information in facial image to be processed, refers to The position that the eye dressing parameter modification information of selection specifically needs to be added in facial image to be processed is determined, for example, when using When the eye dressing parameter modification information that family selects is U.S. pupil parameter modification information, at this point, can be according to the pupil feature detected Point determines the position of pupil in facial image to be processed, and the position of pupil is target area at this time.Further, actual In, detect specific method to the eye feature point of user in facial image, embodiment of the disclosure without limitation, in reality Method in the prior art can be referred in the application of border, details are not described herein again for embodiment of the disclosure.
The corresponding dressing material of the eye dressing parameter modification information is superimposed to the target area by step S150 On, the facial image to be processed after being adjusted.
Correspondingly, in known facial image to be processed behind target area corresponding with eye dressing parameter modification information, The corresponding dressing material of eye dressing parameter modification information can be superimposed on target area, obtain the eye adornment of user's selection Hold the corresponding facial image of parameter modification information.It, can will be beautiful for example, after determining pupil position in facial image to be processed The corresponding dressing material of pupil special efficacy is superimposed in pupil region, obtains the corresponding facial image of U.S. pupil special efficacy.
Wherein it is determined that the concrete mode of the different corresponding dressing materials of eye dressing parameter modification information, and by eye The corresponding dressing material of portion's dressing parameter modification information is superimposed to the specific superposition side on the target area of facial image to be processed Formula can according to need configuration, and embodiment of the disclosure is not specifically limited, such as in practical applications can be in advance fixed The different corresponding dressing materials of eye dressing special efficacy is drawn in figure layer, and the side such as bottom can be folded using sheen, normal or positive Method is overlapped, and details are not described herein again for embodiment of the disclosure.
Step S160 shows the facial image to be processed adjusted.
Scheme in the embodiment of the present disclosure can be adjusted when receiving eye dressing adjustment instruction according to eye dressing Eye dressing parameter modification information in instruction handles facial image to be processed, that is, realizes and use in key adjustment image The function of family eye dressing reduces the time of the processing of eye dressing, mentions without editing manually to eye dressing The usage experience of user is risen.
In embodiment of the disclosure, in step S120, receives the eye dressing adjustment to the facial image to be processed and refer to It enables, comprising:
It receives the user and triggering command is adjusted to the eye dressing of the facial image to be processed;
Triggering command is adjusted in response to the eye dressing, display eye dressing adjusts interface, the eye dressing adjustment Interface display has eye dressing parameter modification information option and the facial image to be processed;
Interface is adjusted by the eye dressing, receives the eye dressing adjustment instruction.
In the embodiments of the present disclosure, eye dressing adjustment triggering command can be expressed as sending eye adornment by display interface Hold the instruction of special efficacy trigger action, wherein eye dressing special efficacy trigger action indicates that user wants to add facial image to be processed Add eye dressing special efficacy, i.e. user is used to trigger the movement for starting to carry out the addition of eye dressing special efficacy, the concrete form of the operation It can according to need configuration, for example, it may be the trigger action of user specific operation position on the display interface of client, It can be the operation etc. for clicking specific virtual push button.In the program, after detecting the eye dressing special efficacy trigger action, i.e., Eye dressing adjustment interface can be shown, allow the user to carry out eye adornment at the interface based on the operation of user Hold special efficacy selection operation.
In practical applications, user can be identified by the associated trigger of client triggers eye dressing special efficacy triggering behaviour Make, for example, specified trigger button or input frame on client display interface, can also be the phonetic order etc. of user.For example, In an optional way, virtually pressing for " the adding U.S. pupil " or " eye dressing " shown on the display interface of client can be Button, the operation that user clicks the button are the eye dressing special efficacy trigger action of user.
Wherein, eye dressing adjustment interface is for use between electronic equipment and user, can be with by interface user Send the dependent instruction of the eye dressing parameter modification information for facial image to be processed.
As an example, a kind of display interface i.e. user that client in a kind of electronic equipment is shown in Fig. 3 a uses The schematic diagram at interface shows pending facial image (facial image shown in figure) in the interface, shows on interface The virtual push button of " eye dressing " is eye dressing special efficacy trigger button, and user clicks the " eye shown on the display interface The movement of the virtual push button of dressing ", as the eye dressing special efficacy trigger action of user can be with after receiving the trigger action Show that eye dressing adjusts interface.
As an example, a kind of schematic diagram at eye dressing adjustment interface is shown in Fig. 3 b, A, B shown in figure, C, D, E are respectively virtual push button corresponding to different eye dressing parameter modification informations, and user can be by clicking wherein one A virtual push button determines eye dressing parameter modification information, for example clicks virtual push button A, it is determined that the modification of eye dressing parameter Information is eye dressing parameter modification information corresponding to virtual push button A, after receiving the instruction, can be based on the instruction The eye dressing parameter modification information of middle determination, performs corresponding processing facial image to be processed.
In order to allow users to definitely know eye dressing parameter modification information corresponding to each virtual push button Effect, in practical application, effect picture corresponding to each eye dressing parameter modification information is can be directly used to show in virtual push button Show, for example, can be using various U.S. pupil effect pictures as the display format of virtual push button.
In practical applications, user can also be virtual by changing its selected special efficacy according to identical mode of operation Button changes it and thinks eye dressing parameter modification information to be added, provides better usage experience for user, every in user After completing an eye dressing special efficacy selection operation, processing result image corresponding to the operation can be shown to user, with Allow users to the selection for determining the need for re-starting eye dressing parameter modification information according to display result.For example, After user selects special efficacy virtual push button A, place is treated according to eye dressing parameter modification information corresponding to special efficacy virtual push button A After managing facial image progress respective handling, processing result is shown to user, if the dissatisfied adjustment of user at this time is as a result, can be again Any one eye dressing parameter modification information in special efficacy virtual push button B, C, D, E is reselected, that is, re-starts primary eye Dressing adjustment instruction in portion's after receiving the new adjustment instruction of user, can carry out respective handling to facial image to be processed again.
In embodiment of the disclosure, eye dressing special efficacy selection interface can also include type selection interface and eye dressing Parameter modification information selection interface includes that type selection command and the selection of parameter modification information refer in eye dressing adjustment instruction It enables;
Interface is adjusted by eye dressing, receives eye dressing adjustment instruction, comprising:
By type selection interface, type selection command is received;
In response to type selection command, eye dressing parameter modification information selection interface corresponding to respective type is shown;
By selection interface, eye dressing parameter modification information selection instruction is received.
Wherein, it in order to realize the division to different eye dressing eye dressing parameter modification informations, realizes to eye dressing Parameter modification information carries out the processing of different mode, eye dressing parameter modification information can be classified, obtain eye adornment Hold parameter modification information type, wherein the specific mode classification of eye dressing parameter modification information can according to actual demand into Row configuration.U.S. face demand based on the different mode to eye dressing, can be in an eye dressing parameter modification information type Including one or more eye dressing parameter modification informations.
In practical applications, eye dressing parameter modification information type can be shown to by use by type selection interface Family, user can first pass through type selection interface, and determining needs eye dressing parameter modification information type to be added, pass through the boundary Face receives the type selection command of user, so that obtaining the selected eye dressing parameter modification information type of user later can Eye dressing eye dressing parameter modification information option under the eye dressing parameter modification information type of user's selection is passed through Eye dressing parameter modification information selection interface is presented to the user, and allows users to join by the eye dressing shown in the interface Number modification information option, determines eye dressing parameter modification information.
As an example, a kind of schematic diagram of type selection interface is shown in Fig. 4 a, is shown in the type selection interface The different corresponding virtual push buttons of eye dressing parameter modification information type being shown with: " Class1 " and " type as illustrated in the drawing 2 ", user can select eye dressing parameter modification information type by click " Class1 " or " type 2 ", for example, clicking " type After 1 ", then eye dressing parameter modification information selection interface corresponding to " Class1 " is shown, show one kind in Fig. 4 b The schematic diagram of eye dressing parameter modification information selection interface is shown corresponding in " type " 1 in interface as shown in fig 4b Eye dressing eye dressing parameter modification information option A1, B1 and C1, user can be any one in B1 and C1 by selecting A1 It is a to select to think eye dressing eye dressing parameter modification information to be added.
It is understood that in practical applications, type selection interface and eye dressing parameter modification information selection interface It can be the same user interface, or different user interfaces, the embodiment of the present disclosure is without limitation.
In actual application, due to being usually discrete point between each eye feature point, and then in image procossing During, the display effect that may result in image is unsmooth.Therefore in the embodiments of the present disclosure, according to the eye feature Point determines target area corresponding with the eye dressing parameter modification information in the facial image to be processed, comprising:
According to the eye feature point, and the interpolation corresponding with the eye dressing parameter modification information being pre-configured is calculated Method obtains interpolation characteristic point;
According to the interpolation characteristic point, alternatively, according to the eye feature point and the interpolation characteristic point, determine it is described to Handle target area corresponding with the eye dressing parameter modification information in facial image.
Wherein, the different corresponding interpolation algorithms of eye dressing parameter modification information is configurable to identical interpolation calculation Method can also configure same interpolation algorithm, when eye dressing parameter modification information is informer's parameter modification information, join with informer The corresponding interpolation algorithm of number modification information is algorithm A, when eye dressing parameter modification information is eyelashes parameter modification information, with The corresponding interpolation algorithm of eyelashes parameter modification information is algorithm B, and certainly in actual application, different eye dressing parameters is repaired Identical interpolation algorithm can also be configured by converting to the corresponding interpolation algorithm of breath, as informer's parameter modification information and eyelashes parameter are modified The corresponding interpolation algorithm of information is algorithm A.
Correspondingly, can determine face figure to be processed according only to obtained interpolation characteristic point after obtaining interpolation characteristic point The target area corresponding with eye dressing parameter modification information as in.It equally, can also be according to eye feature point and interpolation feature Point determines target area corresponding with eye dressing parameter modification information in facial image to be processed.
In one example, as shown in figure 5, if the eye dressing parameter modification information that user selects is repaired for brown U.S. pupil parameter Convert to breath, i.e. brown U.S. pupil special efficacy, detect eye feature point corresponding with brown U.S. pupil special efficacy be pupil feature point k1, k2, K3 and k4, then according to the corresponding interpolation algorithm of brown U.S. pupil special efficacy obtain difference characteristic point be k5, k6, k7 and k8, and according to Difference characteristic point is that k5, k6, k7 and k8 determine the corresponding target area of brown U.S. pupil special efficacy, finally by brown U.S. pupil special efficacy pair The dressing material answered is superimposed to target area, and eyeball site color is brown (such as A institute in figure in image to be processed at this time Show).
Certainly in practical applications, after obtaining interpolation feature point interpolation characteristic point, can also by interpolation characteristic point, or Person determines mask image by eye feature point and interpolation characteristic point, later further according to determining mask image, determines wait locate Target area corresponding with eye dressing parameter modification information in facial image is managed, finally by eye dressing parameter modification information pair The dressing material answered is superimposed on target area, obtains the corresponding facial image of eye dressing parameter modification information of user's selection
Wherein, when the different corresponding dressings of eye dressing parameter modification information is drawn in use in fixed figure layer in advance When the mode of material, different users selects that the same dressing material can be corresponded to when identical eye dressing parameter modification information, But in actual application, since the target area profile in the facial image of different user is usually different, in turn It will the undesirable situation of appearance effect.Therefore in the embodiments of the present disclosure, described by the eye dressing parameter modification information Before corresponding dressing material is superimposed on the target area, further includes:
Judge whether the similarity of the profile and the profile of the dressing material of the target area is greater than the set value;
If the similarity be not more than the setting value, according to the profile of the dressing material to the target area into Row adjustment, is greater than the set value the profile of the target area adjusted and the similarity of the profile of the dressing material.
In actual application, the setting value of the similarity of the profile of target area profile and dressing material can be according to reality Border needs to set, for example is set as 90%.
Further, if target area profile and the similarity of the profile of dressing material are greater than the set value, at this time may not be used Target area is adjusted, is directly superimposed to eye dressing parameter modification information corresponding dressing material on target area i.e. It can.
Further, it if the similarity of the profile of target area profile and dressing material is not more than setting value, needs at this time Target area is adjusted, detects target area characteristic point adjusted later, and according to target area feature adjusted Point determines the profile of target area adjusted, judges the profile of target area adjusted and the profile of dressing material again Whether similarity is greater than the set value, if it is not, being adjusted again, until the profile and dressing material of target area adjusted The similarity of profile be greater than the set value.
Wherein, target area profile target area feature in facial image to be processed is clicked through according to the profile of dressing material The concrete mode of row adjustment, the embodiment of the present disclosure do not do specific restriction.
It further include being modified for the eye dressing parameter in embodiment of the disclosure, in the eye dressing adjustment instruction The selection instruction of the adjustment index of information, the adjustment index is for identifying corresponding to the eye dressing parameter modification information The transparency of dressing material;
It is described that the corresponding dressing material of the eye dressing parameter modification information is superimposed on the target area, packet It includes:
According to the adjustment index, and the corresponding relationship of adjustment index and material transparency being pre-configured, described in determination Adjust the transparency of dressing material corresponding to index;
According to the transparency of the dressing material, to the saturating of the corresponding dressing material of the eye dressing parameter modification information Lightness is adjusted, the dressing material after being adjusted;
The dressing material adjusted is superimposed on the target area.
Wherein, adjustment index can actually adjust the numerical value or numberical range of demand configuration according to, be also possible to other Can be used in identify eye dressing parameter modification information adjustment intensity (i.e. the transparency of dressing material) index, the disclosure In embodiment without limitation to the specific implementation of adjustment index.It is different that different adjustment indexs can correspond to dressing material Transparency, that is to say, that, can be with when user selects different adjustment indexs for same eye dressing parameter modification information Based on the adjustment index, the processing of different adjustment intensity is carried out to facial image to be processed.
In an optinal plan, adjustment index can be presented to the user in the form of numberical range list, numberical range Different numerical value in list can represent different adjustment intensity, and user can be pressed by the sliding on the display interface of client Button adjusts the selection of index, a kind of client display interface as shown in FIG. 6, wherein image preview area can be used for realize Display facial image (can be facial image to be processed, the facial image being also possible in treatment process is also possible to mediate reason Facial image afterwards), the corresponding numberical range list of adjustment index can be 0 to 100, and user can be pressed by sliding adjustment index Button selects different adjustment indexs.
Since numerical value different in adjustment index can correspond to different adjustment intensity, in order to understand user, oneself is selected The corresponding adjustment intensity effect of adjustment index, preview function can also be provided, selected any of 0 to 100 in user When adjusting index, such as when 27, based on adjustment index 27, facial image to be processed is performed corresponding processing, by the index pair Facial image is shown in image preview area after the adjustment answered.
Wherein, it adjusts index and the corresponding relationship of material transparency can according to need configuration, it can basis in configuration Need to be arranged the granulate of corresponding relationship, for example, all eye dressing parameter modification letters can be configured in an optional way The adjustment index and the corresponding relationship of material transparency of breath are all the same, that is to say, that the transparency of material is only and selected by user Adjustment index it is related, it is unrelated with specific eye dressing parameter modification information.For example, in one example, if user selects Special efficacy adjustment index be 15, according to be pre-configured adjustment index and material transparency corresponding relationship, determine special efficacy adjust refer to Marking 15 corresponding dressing material transparencies is 25, at this point, no matter which kind of eye dressing parameter modification letter is special efficacy adjustment index be The adjustment index of breath, corresponding dressing material transparency is 25 at this time.
In another alternative, due in practical applications, eye dressing parameter modification information type or eye dressing Parameter modification information usually all can there are many, different eye dressing parameter modification information types or eye dressing parameter modification information Dressing adjustment index be also possible to from the corresponding relationship of material transparency it is different.That is, different eyes can be directed to Portion's dressing parameter modification information type or eye dressing parameter modification information, it is transparent to be respectively configured different adjustment index and material The corresponding relationship of degree.At this point, index is adjusted in foundation, and the corresponding relationship for the adjustment index and material transparency being pre-configured, When determining the transparency of the corresponding dressing material of eye dressing parameter modification information, it is selected specific to need to be first depending on user Eye dressing parameter modification information, determine tune corresponding to type belonging to the parameter modification information or the parameter modification information The corresponding relationship of whole index and material transparency, then according to the adjustment index and the corresponding relationship of user's selection, determine user The transparency of dressing material corresponding to selected eye dressing parameter modification information.
For example, adjusting index when eye dressing parameter modification information type is informer's parameter modification information and material being saturating The corresponding relationship of lightness is the corresponding relationship 2 in preconfigured correspondence set, when eye dressing parameter modification information class When type is eyelashes parameter modification information, the corresponding relationship of adjustment index and material transparency can be preconfigured corresponding relationship Corresponding relationship 3 in set.When the eye dressing parameter modification information that user selects is informer's parameter modification information, first really The corresponding relationship of foundation required for fixed is above-mentioned corresponding relationship 2, then according to the corresponding relationship 2, determines the selected tune of user The transparency of dressing material corresponding to whole index.
In actual application, in order to make facial image to be processed adjusted more true nature, in the disclosure Facial image to be processed adjusted can be rendered in implementation, obtain effect picture corresponding with eye dressing special efficacy.This public affairs It opens in embodiment to the specific implementation of rendering without limitation.
Wherein, a kind of optional rendering embodiment are as follows: it is corresponding with texture coordinate to preset each eye feature point After obtaining eye feature point interpolation characteristic point can be calculated according to the corresponding texture coordinate of eye feature point in relationship Texture coordinate.The representative points coordinate that ocular is determined according to eye feature point and interpolation characteristic point is then based in advance Each eye feature point of configuration and corresponding relationship and the eye feature point and the corresponding texture of interpolation characteristic point of texture coordinate Coordinate determines texture coordinate corresponding to representative points coordinate, is later attached to the corresponding texture of obtained texture coordinate pair On the position answered, effect picture corresponding with eye dressing parameter modification information is obtained.
Certainly, in actual application, the corresponding relationship of each eye feature point and texture coordinate can not also be preset, After determining representative points coordinate, it is corresponding representative points coordinate can be calculated by the calculation of pre-configuration in real time Then the corresponding texture of the texture coordinate being calculated is attached on corresponding position by texture coordinate, obtain joining with eye dressing The corresponding effect picture of number modification information.
Wherein it is determined that when the corresponding relationship of each eye feature point and texture coordinate, a kind of optional embodiment is benefit It is carried out curve fitting with Lagrangian differential technique to the eye feature point detected, obtains the corresponding texture of each eye feature point Coordinate.
It should be noted that being merely illustrative among the above to the rendering embodiment of facial image to be processed, in reality Application in the mode that implements can set according to the actual needs, disclosure example does not do specific restriction.
In the embodiments of the present disclosure, facial image to be processed is the facial image obtained in real time or user from local image The facial image chosen in library;
When facial image to be processed is the facial image obtained in real time, if eye dressing parameter modification information is eyelashes ginseng It counts modification information and facial image to be processed is the facial image acted comprising blink, eye dressing parameter modification information is corresponding Dressing material be superimposed on target area, comprising:
Longitudinal compression is carried out to dressing material corresponding to eyelashes parameter modification information;
Compressed dressing material is superimposed in user images on target area corresponding to eyelashes parameter modification information.
In actual application, when facial image to be processed is the facial image obtained in real time, and to people to be processed The eye dressing parameter modification information of face image addition is eyelashes parameter modification information, in order to keep the eyelashes of addition more clever It is dynamic, it therefore, can be to dressing material corresponding to eyelashes parameter modification information after getting the user images comprising blink movement Longitudinal compression is carried out, and compressed dressing material is superimposed to target corresponding to eyelashes parameter modification information in user images On region.Wherein, the specific implementation of longitudinal compression, this public affairs are carried out to dressing material corresponding to eyelashes parameter modification information It opens embodiment without limitation, such as longitudinal compression can be carried out according to ratio.
Further, after the facial image to be processed after the adjustment, if the picture for receiving user saves instruction, this When it is empty can be stored in by corresponding storage according to pre-configured store path for the facial image to be processed adjusted Between.For example, pre-configured store path can be the memory space of local picture library, it is also possible to cloud server, this public affairs Embodiment is opened not limit this.
Based on the same principle with method shown in Fig. 1, a kind of face image processing is additionally provided in embodiment of the disclosure Device 20, as shown in fig. 7, the device 20 may include: image collection module 210, special efficacy determining module 220, image procossing mould Block 230 and image display 230, wherein
Image collection module 210, for obtaining facial image to be processed;
Command reception module 220, for receiving the eye dressing adjustment instruction to the facial image to be processed, the eye It include the eye dressing parameter modification information based on the facial image to be processed in portion's dressing adjustment instruction;
Image processing module 230, for detecting the face figure to be processed according to the eye dressing parameter modification information The eye feature point corresponding with the eye dressing parameter modification information as in, according to the eye feature point, determine it is described to Target area corresponding with the eye dressing parameter modification information in facial image is handled, and by the eye dressing parameter The corresponding dressing material of modification information is superimposed on the target area, the facial image to be processed after being adjusted;
Image display 240, for showing the facial image to be processed adjusted.
In embodiment of the disclosure, the eye dressing parameter modification information includes informer's parameter modification information, eyelashes ginseng Number modification information or U.S. pupil parameter modification information.
In embodiment of the disclosure, image processing module determines the face to be processed according to the eye feature point In image when target area corresponding with the eye dressing parameter modification information, it is specifically used for:
According to the eye feature point, and the interpolation corresponding with the eye dressing parameter modification information being pre-configured is calculated Method obtains interpolation characteristic point;
According to the interpolation characteristic point, alternatively, according to the eye feature point and the interpolation characteristic point, determine it is described to Handle target area corresponding with the eye dressing parameter modification information in facial image.
In embodiment of the disclosure, image processing module is also used to:
Before the corresponding dressing material of the eye dressing parameter modification information is superimposed on the target area, sentence Whether the similarity of the profile and the profile of dressing material of disconnected target area is greater than the set value;
If similarity is not more than setting value, target area is adjusted according to the profile of dressing material, after making adjustment The similarity of profile and the profile of dressing material of target area be greater than the set value.
It further include being modified for the eye dressing parameter in embodiment of the disclosure, in the eye dressing adjustment instruction The selection instruction of the adjustment index of information, the adjustment index is for identifying corresponding to the eye dressing parameter modification information The transparency of dressing material;
The corresponding dressing material of the eye dressing parameter modification information is being superimposed to the target by image processing module When on region, it is specifically used for:
According to the adjustment index, and the corresponding relationship of adjustment index and material transparency being pre-configured, described in determination Adjust the transparency of dressing material corresponding to index;
According to the transparency of the dressing material, to the saturating of the corresponding dressing material of the eye dressing parameter modification information Lightness is adjusted, the dressing material after being adjusted;
The dressing material adjusted is superimposed on the target area.
In embodiment of the disclosure, command reception module is receiving the eye dressing adjustment to the facial image to be processed When instruction, it is specifically used for:
It receives the user and triggering command is adjusted to the eye dressing of the facial image to be processed;
Triggering command is adjusted in response to the eye dressing, display eye dressing adjusts interface, the eye dressing adjustment Interface display has eye dressing parameter modification information option and the facial image to be processed;
Interface is adjusted by the eye dressing, receives the eye dressing adjustment instruction.
In embodiment of the disclosure, facial image to be processed is the facial image obtained in real time, or from local image library The facial image of selection;
When facial image to be processed is the facial image obtained in real time, if eye dressing special efficacy is for eyelashes special efficacy and wait locate Managing facial image is the facial image acted comprising blink, by image processing module the corresponding dressing of eye dressing special efficacy is plain When material is superimposed on target area, it is specifically used for:
Longitudinal compression is carried out to dressing material corresponding to the eyelashes parameter modification information;
Compressed dressing material is superimposed to mesh corresponding to eyelashes parameter modification information described in the user images It marks on region.
Scheme through this embodiment can adjust according to eye dressing and refer to when receiving eye dressing adjustment instruction Order handles facial image to be processed, that is, realizes the function of user's eye dressing in key adjustment image, without Eye dressing is edited manually, reduces the time of the processing of eye dressing, improves the usage experience of user.
Based on principle identical with the image processing method in embodiment of the disclosure, also provided in embodiment of the disclosure A kind of electronic equipment, the electronic equipment can include but is not limited to: processor and memory;Memory is calculated for storing Machine operational order;Processor, for by calling computer operation instruction to execute method shown in embodiment.
Based on principle identical with the image processing method in embodiment of the disclosure, also provided in embodiment of the disclosure A kind of computer readable storage medium is stored with computer program instructions, the meter on the computer readable storage medium Calculation machine program instruction is for executing the computer to realize method shown in above-described embodiment, and details are not described herein.
Embodiment of the disclosure compared with prior art,
Scheme through this embodiment can adjust according to eye dressing and refer to when receiving eye dressing adjustment instruction Order handles facial image to be processed, that is, realizes the function of user's eye dressing in key adjustment image, without Eye dressing is edited manually, reduces the time of the processing of eye dressing, improves the usage experience of user.
Below with reference to Fig. 8, it illustrates the structural representations for the electronic equipment 800 for being suitable for being used to realize the embodiment of the present disclosure Figure, which can be terminal device or server.Wherein, terminal device can include but is not limited to such as move Phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable more matchmakers Body player), the mobile terminal of car-mounted terminal (such as vehicle mounted guidance terminal) etc. and number TV, desktop computer etc. Deng fixed terminal.Electronic equipment shown in Fig. 8 is only an example, function to the embodiment of the present disclosure and should not use model Shroud carrys out any restrictions.
As shown in figure 8, electronic equipment 800 may include processing unit (such as central processing unit, graphics processor etc.) 801, random access can be loaded into according to the program being stored in read-only memory (ROM) 802 or from storage device 808 Program in memory (RAM) 803 and execute various movements appropriate and processing.In RAM 803, it is also stored with electronic equipment Various programs and data needed for 800 operations.Processing unit 801, ROM 802 and RAM 803 pass through the phase each other of bus 804 Even.Input/output (I/O) interface 805 is also connected to bus 804.
In general, following device can connect to I/O interface 805: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 806 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 807 of dynamic device etc.;Storage device 808 including such as tape, hard disk etc.;And communication device 809.Communication device 809, which can permit electronic equipment 800, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 8 shows tool There is the electronic equipment 800 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 809, or from storage device 808 It is mounted, or is mounted from ROM 802.When the computer program is executed by processing unit 801, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment realizes method shown in above-described embodiment.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (10)

1. a kind of image processing method characterized by comprising
Obtain facial image to be processed;
The eye dressing adjustment instruction to the facial image to be processed is received, includes being based in the eye dressing adjustment instruction The eye dressing parameter modification information of the facial image to be processed;
According to the eye dressing parameter modification information, detects and repaired in the facial image to be processed with the eye dressing parameter Convert to the corresponding eye feature point of breath;
According to the eye feature point, determine corresponding with the eye dressing parameter modification information in the facial image to be processed Target area;
The corresponding dressing material of the eye dressing parameter modification information is superimposed on the target area, after being adjusted The facial image to be processed;
Show the facial image to be processed adjusted.
2. method according to claim 1, which is characterized in that the eye dressing parameter modification information includes informer's ginseng Number modification information, eyelashes parameter modification information or U.S. pupil parameter modification information.
3. method according to claim 2, which is characterized in that it is described according to the eye feature point, determine it is described to Handle target area corresponding with the eye dressing parameter modification information in facial image, comprising:
According to the eye feature point, and the interpolation algorithm corresponding with the eye dressing parameter modification information being pre-configured, Obtain interpolation characteristic point;
According to the interpolation characteristic point, alternatively, being determined described to be processed according to the eye feature point and the interpolation characteristic point Target area corresponding with the eye dressing parameter modification information in facial image.
4. method according to claim 1, which is characterized in that described that the eye dressing parameter modification information is corresponding Dressing material be superimposed on the target area before, further includes:
Judge whether the similarity of the profile and the profile of the dressing material of the target area is greater than the set value;
If the similarity is not more than the setting value, the target area is adjusted according to the profile of the dressing material It is whole, it is greater than the set value the profile of the target area adjusted and the similarity of the profile of the dressing material.
5. method according to claim 1 to 4, which is characterized in that in the eye dressing adjustment instruction also Selection instruction including the adjustment index for the eye dressing parameter modification information, the adjustment index are described for identifying The transparency of dressing material corresponding to eye dressing parameter modification information;
It is described that the corresponding dressing material of the eye dressing parameter modification information is superimposed on the target area, comprising:
According to the adjustment index, and the corresponding relationship of adjustment index and material transparency being pre-configured, determine the adjustment The transparency of dressing material corresponding to index;
According to the transparency of the dressing material, to the transparency of the corresponding dressing material of the eye dressing parameter modification information It is adjusted, the dressing material after being adjusted;
The dressing material adjusted is superimposed on the target area.
6. the method according to claim 1, wherein receiving the eye dressing tune to the facial image to be processed Whole instruction, comprising:
It receives the user and triggering command is adjusted to the eye dressing of the facial image to be processed;
Triggering command is adjusted in response to the eye dressing, display eye dressing adjusts interface, and the eye dressing adjusts interface Show eye dressing parameter modification information option and the facial image to be processed;
Interface is adjusted by the eye dressing, receives the eye dressing adjustment instruction.
7. method according to any one of claim 1 to 6, which is characterized in that the facial image to be processed is real-time The facial image of acquisition, or the facial image chosen from local image library;
When the facial image to be processed is the facial image obtained in real time, if the eye dressing parameter modification information For eyelashes parameter modification information and the facial image to be processed is the facial image acted comprising blink, described by the eye The corresponding dressing material of dressing parameter modification information is superimposed on the target area, comprising:
Longitudinal compression is carried out to dressing material corresponding to the eyelashes parameter modification information;
Compressed dressing material is superimposed to target area corresponding to eyelashes parameter modification information described in the user images On domain.
8. a kind of image processing apparatus characterized by comprising
Image collection module, for obtaining facial image to be processed;
Command reception module, for receiving user to the eye dressing adjustment instruction of the facial image to be processed, the eye It include the eye dressing parameter modification information based on the facial image to be processed in dressing adjustment instruction;
Image processing module, for according to the eye dressing parameter modification information, detect in the facial image to be processed with The corresponding eye feature point of the eye dressing parameter modification information determines the people to be processed according to the eye feature point Target area corresponding with the eye dressing parameter modification information in face image, and the eye dressing parameter is modified and is believed It ceases corresponding dressing material to be superimposed on the target area, the facial image to be processed after being adjusted;
Image display, for showing the facial image to be processed adjusted.
9. a kind of electronic equipment characterized by comprising
Processor and memory;
The memory, for storing computer behaviour's instruction;
The processor, for executing any one of the claims 1 to 7 institute by calling the computer operation instruction The method stated.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program instruction, the computer program instructions are for executing the computer described in any one of the claims 1 to 7 Method.
CN201811458443.XA 2018-11-30 2018-11-30 Face image processing process, device, electronic equipment and computer storage medium Pending CN109543646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811458443.XA CN109543646A (en) 2018-11-30 2018-11-30 Face image processing process, device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811458443.XA CN109543646A (en) 2018-11-30 2018-11-30 Face image processing process, device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN109543646A true CN109543646A (en) 2019-03-29

Family

ID=65851897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811458443.XA Pending CN109543646A (en) 2018-11-30 2018-11-30 Face image processing process, device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN109543646A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969120A (en) * 2019-11-29 2020-04-07 北京达佳互联信息技术有限公司 Image processing method and device, electronic equipment and readable storage medium
CN111797754A (en) * 2020-06-30 2020-10-20 上海掌门科技有限公司 Image detection method, device, electronic equipment and medium
CN111882673A (en) * 2020-07-29 2020-11-03 北京小米移动软件有限公司 Display control method and device, mirror comprising display screen and storage medium
CN113240777A (en) * 2021-04-25 2021-08-10 北京达佳互联信息技术有限公司 Special effect material processing method and device, electronic equipment and storage medium
CN113535040A (en) * 2020-04-14 2021-10-22 北京达佳互联信息技术有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN113900748A (en) * 2021-09-16 2022-01-07 珠海视熙科技有限公司 Image processing method and device and computer readable storage medium
WO2023045941A1 (en) * 2021-09-27 2023-03-30 上海商汤智能科技有限公司 Image processing method and apparatus, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778712A (en) * 2015-04-27 2015-07-15 厦门美图之家科技有限公司 Method and system for pasting image to human face based on affine transformation
CN104992402A (en) * 2015-07-02 2015-10-21 广东欧珀移动通信有限公司 Facial beautification processing method and device
CN107820591A (en) * 2017-06-12 2018-03-20 美的集团股份有限公司 Control method, controller, Intelligent mirror and computer-readable recording medium
CN108022207A (en) * 2017-11-30 2018-05-11 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN108564531A (en) * 2018-05-08 2018-09-21 麒麟合盛网络技术股份有限公司 A kind of image processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778712A (en) * 2015-04-27 2015-07-15 厦门美图之家科技有限公司 Method and system for pasting image to human face based on affine transformation
CN104992402A (en) * 2015-07-02 2015-10-21 广东欧珀移动通信有限公司 Facial beautification processing method and device
CN107820591A (en) * 2017-06-12 2018-03-20 美的集团股份有限公司 Control method, controller, Intelligent mirror and computer-readable recording medium
CN108022207A (en) * 2017-11-30 2018-05-11 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN108564531A (en) * 2018-05-08 2018-09-21 麒麟合盛网络技术股份有限公司 A kind of image processing method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969120A (en) * 2019-11-29 2020-04-07 北京达佳互联信息技术有限公司 Image processing method and device, electronic equipment and readable storage medium
CN110969120B (en) * 2019-11-29 2024-01-12 北京达佳互联信息技术有限公司 Image processing method and device, electronic equipment and readable storage medium
CN113535040A (en) * 2020-04-14 2021-10-22 北京达佳互联信息技术有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN111797754A (en) * 2020-06-30 2020-10-20 上海掌门科技有限公司 Image detection method, device, electronic equipment and medium
CN111882673A (en) * 2020-07-29 2020-11-03 北京小米移动软件有限公司 Display control method and device, mirror comprising display screen and storage medium
CN113240777A (en) * 2021-04-25 2021-08-10 北京达佳互联信息技术有限公司 Special effect material processing method and device, electronic equipment and storage medium
WO2022227687A1 (en) * 2021-04-25 2022-11-03 北京达佳互联信息技术有限公司 Special effect material processing method and apparatus
CN113900748A (en) * 2021-09-16 2022-01-07 珠海视熙科技有限公司 Image processing method and device and computer readable storage medium
WO2023045941A1 (en) * 2021-09-27 2023-03-30 上海商汤智能科技有限公司 Image processing method and apparatus, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN109543646A (en) Face image processing process, device, electronic equipment and computer storage medium
CN109584180A (en) Face image processing process, device, electronic equipment and computer storage medium
CN109583385A (en) Face image processing process, device, electronic equipment and computer storage medium
CN106156730B (en) A kind of synthetic method and device of facial image
CN105980976B (en) For controlling the electronic device and method of display
CN104769538B (en) Show that analog media content item enhances on the mobile device
US10019779B2 (en) Browsing interface for item counterparts having different scales and lengths
CN111787242B (en) Method and apparatus for virtual fitting
CN109584152A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN108632444A (en) Mobile terminal and its control method
CN109544444A (en) Image processing method, device, electronic equipment and computer storage medium
CN107622472A (en) Face dressing moving method and device
CN109522869A (en) Face image processing process, device, terminal device and computer storage medium
US20230419582A1 (en) Virtual object display method and apparatus, electronic device, and medium
CN110168586A (en) Situation generates and the selection of the media content to customization
CN107818490A (en) Equipment choosing guidance method, device, computer-readable recording medium and terminal
CN106155494A (en) Mobile terminal and control method thereof
WO2023141146A1 (en) Object replacement system
EP3912087A1 (en) Systems and methods for providing personalized videos featuring multiple persons
CN110211030A (en) Image generating method and device
CN116685938A (en) 3D rendering on eyewear device
CN109409979A (en) Virtual cosmetic method, device and equipment
CN117083641A (en) Real-time experience real-size eye wear device
US20210409614A1 (en) Generating augmented reality content based on user-selected product data
CN109559274A (en) Image processing method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination