[go: up one dir, main page]

CN109409979A - Virtual cosmetic method, device and equipment - Google Patents

Virtual cosmetic method, device and equipment Download PDF

Info

Publication number
CN109409979A
CN109409979A CN201811026627.9A CN201811026627A CN109409979A CN 109409979 A CN109409979 A CN 109409979A CN 201811026627 A CN201811026627 A CN 201811026627A CN 109409979 A CN109409979 A CN 109409979A
Authority
CN
China
Prior art keywords
picture
model
adornment
image
cosmetics
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
CN201811026627.9A
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811026627.9A priority Critical patent/CN109409979A/en
Publication of CN109409979A publication Critical patent/CN109409979A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Electronic shopping [e-shopping] by investigating goods or services
    • G06Q30/0625Electronic shopping [e-shopping] by investigating goods or services by formulating product or service queries, e.g. using keywords or predefined options
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Electronic shopping [e-shopping] utilising user interfaces specially adapted for shopping
    • G06Q30/0643Electronic shopping [e-shopping] utilising user interfaces specially adapted for shopping graphically representing goods, e.g. 3D product representation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal

Landscapes

  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Image Analysis (AREA)

Abstract

This specification embodiment provides virtual cosmetic method, device and equipment, comprising: based on the destination virtual makeup model cosmetics data application that selects user in the adornment front face image of user, predicts the corresponding dressing effect image of adornment front face image.

Description

Virtual cosmetic method, device and equipment
Technical field
This specification embodiment is related to Internet technical field more particularly to a kind of virtual cosmetic method, device and equipment.
Background technique
Cosmetic Market is huge, and objective group is extensive, and there are many time of the every smallpox of people seeking beauty on it, and always enjoy it. Solid shop/brick and mortar store goes to experience the effect oneself liked that could arrange in pairs or groups out under needing at present to line, and different solid shop/brick and mortar store needs to prepare many samples Product can just allow a user knowledge of different brands, applied to the cosmetic effect of different facials for user experience.
Summary of the invention
This specification embodiment provides and a kind of virtual cosmetic method, device and equipment.
In a first aspect, this specification embodiment provides a kind of virtual cosmetic method, comprising:
Obtain the cosmetics data of user's selection;
Obtain the adornment front face image of the user;
The cosmetics data application is predicted described in the adornment front face image based on destination virtual makeup model The corresponding dressing effect image of adornment front face image.
Second aspect, this specification embodiment provide a kind of virtual cosmetic device, comprising:
Data capture unit, for obtaining the cosmetics data of user's selection;
Image acquisition unit, for obtaining the adornment front face image of the user;
Makeup predicting unit is used for the cosmetics data application based on destination virtual makeup model before the adornment Portion's image predicts the corresponding dressing effect image of the adornment front face image.
The third aspect, this specification embodiment provide a kind of computer equipment, including memory, processor and are stored in On reservoir and the computer program that can run on a processor, the processor are realized described in first aspect when executing described program The step of method.
Fourth aspect, this specification embodiment provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence, when which is executed by processor the step of first aspect the method.
This specification embodiment has the beneficial effect that:
Obtain the cosmetics data of user's selection and the adornment front face image of user;It will be used based on destination virtual makeup model The cosmetics data application of family selection predicts the corresponding dressing effect image of adornment front face image in adornment front face image, from And the cosmetic applications of user's selection can be predicted in the effect of the adornment front face image of active user, and then user is instructed to choose Select oneself favorite cosmetics.
Detailed description of the invention
Figure 1A~Figure 1B is the application scenarios schematic diagram of the virtual cosmetic method of this specification embodiment;
Fig. 2 is the flow chart of the virtual cosmetic method of this specification embodiment first aspect;
Fig. 3 is the structural schematic diagram of the virtual cosmetic device of this specification embodiment second aspect;
Fig. 4 is the structural schematic diagram of this specification embodiment third aspect computer equipment.
Specific embodiment
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to this specification embodiment Technical solution be described in detail, it should be understood that the specific features in this specification embodiment and embodiment are to this explanation The detailed description of book embodiment technical solution, rather than the restriction to this specification technical solution, in the absence of conflict, Technical characteristic in this specification embodiment and embodiment can be combined with each other.
With reference to shown in Figure 1A, Figure 1A is a kind of application scenarios of the virtual cosmetic method of this specification embodiment, user side Terminal device 30, virtual client 10 of making up are applied to the terminal device 30 of user side.It is provided in virtual makeup client 10 More than one virtual makeup model 20.For example, terminal device 30 may is that VR equipment, mobile phone, tablet computer.If this is virtual Client 10 of making up is applied to terminal device 30, and cosmetics data and the user of user's selection are directly acquired by terminal device 30 Adornment front face image;Terminal device 30 is based on virtual makeup model 20, by the cosmetics data application of user's selection before adornment Portion's image predicts the corresponding dressing effect image of adornment front face image and presents to user.
With reference to shown in Figure 1B, Figure 1B is another application scenarios of the virtual cosmetic method of this specification embodiment, the scene Under, the terminal device 30 including being located at user side, and the service positioned at network side being connected to the network between terminal device 30 Device 40 is provided with virtual make up system 50 on server 40, transmits the makeup that user selects from terminal device 30 to server 40 The adornment front face image of product data and user, the cosmetics data for being selected user based on virtual makeup model 20 by server 40 Applied to adornment front face image, the corresponding dressing effect image of adornment front face image is predicted, then by dressing effect image feedback To terminal device 30, presented from terminal device 30 to user.
Specifically, virtually makeup client 10, virtual make up system 50 can be applied to the scene of online purchase cosmetics Lower auxiliary user selects cosmetics, also can be applied to experience of making up on the line of various cosmetics companies.
In a first aspect, this illustrates a kind of virtual cosmetic method that embodiment provides, it is applied to virtual makeup shown in figure 1A In virtual make up system shown in client or Figure 1B.Refering to what is shown in Fig. 2, the virtual makeup that this specification embodiment provides Method includes the following steps:
S202, the cosmetics data for obtaining user's selection.
Specifically, user can choose the cosmetics data of single class or multiclass cosmetics.In an optional embodiment In, the cosmetics data of user's selection, comprising: cosmetics brand and cosmetic property.More specifically, cosmetic property can be with Including following type information: cosmetics type, cosmetics model, cosmetic color.Cosmetics type is signified are as follows: lipstick, informer Pen, mascara etc., difference of the cosmetics model based on cosmetics brand, model setting is different, is not limited herein.
S204, the adornment front face image for obtaining user.
Specifically, obtaining before the adornment of user's current shooting photo before photo or pre-stored adornment.Based on photo before adornment Determine adornment front face image.Specifically, if photo does not meet preset picture specification before adornment, by photo before adornment It is handled to obtain adornment front face image;Otherwise, using photo before adornment as adornment front face image.
It should be noted that preset picture specification may include dimensions, it is one or more kinds of in borders.Such as Photo does not meet preset dimensions before fruit adornment, then corresponding to reduce or amplify photo before the adornment, to meet preset size Specification.If photo does not meet borders before adornment, the borderline region of photo before adornment is cut, to obtain with face in photo before adornment Contouring is the adornment front face image on boundary.
S206, model of being made up based on destination virtual in adornment front face image, are predicted cosmetics data application before adornment The corresponding dressing effect image of portion's image.
Desired cosmetic information is determined based on the cosmetics data of user's selection.Determining desired cosmetic information includes: The facial characteristics of colouring information and instruction.It should be noted that colouring information can be indicated with rgb color mode, the face of instruction Portion's feature is signified are as follows: the facial characteristics such as eyes, lip, eyelashes.
In an optional embodiment, user selects cosmetics data, can be with are as follows: based on preset cosmetics inventory into The selection of row cosmetics data receives the cosmetics data that user selects from preset cosmetics inventory.In cosmetics inventory There are many cosmetics brands and cosmetic property for user's selection for setting.
In the specific implementation process, the corresponding pass having between cosmetics data and cosmetics information is established in cosmetics inventory System.Based on corresponding relationship, the corresponding desired cosmetic information of cosmetics data of user's selection is determined.
In an optional embodiment, using universal virtual makeup model as destination virtual makeup model, Huo Zhecong It is virtually made up in the model basin of model including multiple single-items, determines single-item virtualization corresponding with the cosmetics data that user selects Adornment model is made up model as destination virtual, and the single-item in model basin makes up model virtually with cosmetics brand and/or cosmetics Type is to distinguish.
Specifically, the cosmetics data based on user's selection select universal virtual makeup model or single-item virtually to make up Model is destination virtual makeup model.Optionally, user selects a variety of cosmetics types or choosing under same cosmetics brand Select a variety of cosmetics types under a variety of cosmetic brands, it is determined that universal virtual makeup model is destination virtual makeup model. If user selects a kind of cosmetics type, it is determined that single-item corresponding with the cosmetics type that user selects virtually make up model for Destination virtual makeup model.
In S206, facial characteristics is applied based on what is indicated in the determining desired cosmetic information of cosmetics data, by mesh The colouring information marked in cosmetics information is applied to corresponding facial characteristics in adornment front face image, predicts adornment front face image Corresponding dressing effect image.
Specifically, destination virtual makeup model can be obtained based on following steps:
Step 10: by picture after picture before the original adornment of collection preset quantity user and original adornment, obtaining original image Collection.
By picture after picture before the original adornment of collection preset quantity user and original adornment, various skin properties are obtained, respectively A age of user, it is original after picture and the user are made up using cosmetics before the original shape of the user of the various colours of skin Picture after adornment.Picture corresponds to same user with picture after original adornment before original adornment.
In this specification embodiment, corresponding between picture and picture degree after original adornment at least refers to before original adornment: figure Face angle in piece is consistent.It is, of course, also possible to limit harsher correspondence index, such as: dimension of picture, brightness, saturation degree, Contrast etc. is consistent.
Step 20: by handling original image collection, obtaining the picture sample collection comprising multiple trained pictures pair, training picture To comprising for picture after picture before the adornment of same user and adornment.
Specifically, the processing of original image collection can be completed as follows:
Step 20A: it is concentrated from original image and washes out the multiple original images pair for meeting default sample index, original image To comprising for picture after picture before the original adornment of same user and original adornment.
Preset sample index is for measuring whether retain reservation.Specifically, preset sample index may include as follows It is one or more kinds of: luminance index, resolution ratio index, size index.From original image concentration wash out before original adornment picture and Picture meets the picture pair of preset sample index simultaneously after corresponding original adornment, and is determined as original image pair.It needs to illustrate If picture does not meet preset sample index with any of picture after corresponding original adornment picture before original adornment, None are retained with picture after corresponding original adornment for picture before original adornment.
It should be understood that the specific value range of luminance index, resolution ratio index, size index can be according to reality Demand setting, this specification embodiment is without specifically limiting.
Step 20B: to each original image to unitized processing is carried out, to obtain the picture sample for including multiple trained pictures pair This collection, training picture is to comprising for picture after picture before the adornment of same user and adornment.
Unitized processing to original image pair, is specifically as follows: to scheming after picture before original adornment and corresponding original adornment Piece carries out face capture, determines facial image region;The image-region except facial image region is cut, face figure is obtained Picture;Facial image is amplified to specific image size, picture after picture and new adornment is obtained before new adornment, to obtain training figure Piece pair.
In this specification embodiment, by being amplified to specific image size, the training that can concentrate picture sample is schemed The size adjusting of piece pair is to consistent, thus effect when guaranteeing for training pattern.
In the specific implementation process, the original image of collection is concentrated comprising a variety of skin properties, a variety of age of user, a variety of Picture after picture and original adornment before the original adornment of skin color.It includes a variety of skin properties that the picture sample then obtained, which is concentrated, more Kind of age of user, a variety of skin colors adornment before picture after picture and corresponding adornment.To ensure that training picture sample used Diversity.
It should be noted that since training process needs a large amount of picture samples, by picture sample possible after step 20B Lazy weight can then extend the picture sample quantity of picture sample set by step 20C.If after step 20B Picture sample quantity is enough, then can be omitted step 20C.
Step 2C: the training picture pair concentrated based on picture sample extends the picture sample quantity of picture sample set.Having In body implementation process, sample size can be extended in the following way:
Mode one: training picture pair is replicated, picture after picture before adornment in the training picture sample of duplication and/or adornment is carried out Increase brightness, generate new training picture to and be added to picture sample collection.
Mode two: training picture pair is replicated, picture after picture before the training picture centering adornment of duplication and/or adornment is increased Add shade, generate new training picture to and be added to picture sample concentrate.
Mode three: replicating training picture pair, schemes to picture before the training picture centering training adornment of duplication and/or after training adornment Piece carry out increase brightness and increase shade, generate new training picture to and be added to picture sample collection.
In the specific implementation process, can to different training pictures to use mode different in three kinds of modes as above into Row processing, to extend sample size, so that sample size to the satisfaction for supplementing picture sample collection presets sample size.
Step 30: target virtualization adornment model is trained based on picture sample collection.
Specifically, initial convolutional neural networks model is trained based on picture sample collection, obtains destination virtual Makeup model.One in model or be general specifically, destination virtual makeup model can virtually make up for multiple single-items Type is virtually made up model.Multiple single-items model of virtually making up is set in model basin.
In this specification embodiment, universal virtual makeup model can be applied to the effect of the makeup to any facial characteristics Fruit is predicted that versatility is stronger.Also, it can predict to use a variety of cosmetics pair simultaneously based on universal virtual makeup model The dressing effect that facial characteristics is made up is corresponded in the adornment front face image of user.
In order to train universal virtual makeup model, each face presented in picture after the adornment that picture sample used is concentrated is special Sign is made up;It is to be appreciated that the picture sample of the universal virtual makeup model of training is concentrated, scheme after not distinguishing adornment The cosmetics brand to be applied some make up in piece.
In this specification embodiment, model of virtually being made up based on single-item can carry out makeup effect to specific facial characteristics Fruit prediction, prediction result are more acurrate.Training has multiple single-items virtually to make up and model and is set in model basin in advance.Based on this, The single-item that belongs in model basin of destination virtual makeup model is virtually made up model.Specifically, in order to train single-item virtually to make up Model, picture sample concentrate adornment after picture present each facial characteristics in, by corresponding cosmetics brand and/or toiletries The cosmetic makeup of type.
Specifically, the single-item in model basin virtually make up model can be with cosmetics type for distinguish.For example, " mascara " corresponding single-item is virtually made up model, and " lipstick " corresponding another single-item is virtually made up model.Then it is directed to M type M virtual make up system of cosmetics corresponding training are placed in model basin.The type of cosmetics is more, needs trained single-item empty Quasi- makeup mould is more.
Single-item in model basin model of virtually making up can be with cosmetics brand and cosmetics type to distinguish.Citing comes It says, the X of A brand1Money mascara corresponds to single-item and virtually makes up model m1, the Y of A brand1Money lipstick corresponds to single-item and virtually makes up model m2, the X of B brand2Money mascara corresponds to single-item and virtually makes up model m3, the Y of B brand2Money lipstick corresponds to single-item and virtually makes up model m4.To M*N single-item be trained virtually to make up model altogether for the cosmetics of N number of type of M brand.
In this specification embodiment, the adornment concentrated of picture sample after corresponding the applied some make up cosmetics brand of picture It is different with cosmetics type, train come single-item virtually make up model difference.
For example, for the X of A brand1Money mascara is needed based on picture before adornment and using the X of A brand1Money mascara Picture constitutes the picture sample collection of multiple trained pictures pair after the adornment of makeup, instructs to initial convolutional neural networks model Practice, to obtain the X for A brand1The single-item of money mascara is virtually made up model;For the X of A brand2Money mascara, needs base Picture and the X using B brand before comprising adornment2Picture constitutes the picture sample of multiple trained pictures pair after the adornment of money mascara makeup This collection is trained initial convolutional neural networks model, to obtain the X for A brand2The single-item of money mascara virtualizes Adornment model.
Certainly, in the specific implementation process, the model of virtually making up of the single-item in model basin can also be with cosmetics brand To distinguish, details are not described herein.
In an optional embodiment, destination virtual makeup model specifically: determined from model basin and user selects The brand message and the matched single-item of cosmetics type selected virtually make up model as destination virtual makeup model.Embodiment party herein In formula, step S206 specifically: determine the cosmetics type and/or cosmetics brand of user's selection;Change based on user's selection Cosmetic type and/or cosmetics brand determine destination virtual makeup model from model basin.Specifically, if user selects Cosmetics type is selected, determines that single-item corresponding with the cosmetics type that user selects virtually makes up model as destination virtual makeup Model;If user selects cosmetics brand, determine that corresponding with the cosmetics brand that user selects single-item is virtually made up model As destination virtual makeup model;If user's simultaneous selection cosmetics brand and cosmetics type, determining and user selection Cosmetics brand and the corresponding single-item of cosmetics type virtually make up model as destination virtual makeup model.
In the following, to being trained to obtain destination virtual makeup to initial convolutional neural networks model based on picture sample collection The process of model is described:
Step 30A, picture sample collection is inputted, the image array for the training picture pair that picture sample is concentrated is generated;
Step 30B, it is carried out at convolution between the image array and initial convolutional neural networks model based on picture before adornment Reason operation obtains the analog image matrix of picture before corresponding adornment;
Step 30C, the image array of comparative simulation image array and picture after adornment adjusts convolutional Neural based on comparing result The model parameter of network model;
Step 30D, it is re-started between the image array based on picture before model and adornment comprising model parameter after adjustment Process of convolution operation, circulation step 30C and step 30D obtain destination virtual makeup model until when meeting preset termination condition.
Specifically, maximum frequency of training can be set, the image of picture before the model and adornment of model parameter after adjusting is compared Similarity between matrix, the similarity after meeting adjustment before the model and adornment of model parameter between the image array of picture reach Training is terminated when reaching maximum frequency of training to default similarity or frequency of training, obtains destination virtual makeup model.Certainly In the specific implementation process, other termination conditions be may be arranged as.
Second aspect is based on inventive concept same as cosmetic method virtual in previous embodiment, this specification embodiment A kind of virtual cosmetic device is provided, refering to what is shown in Fig. 3, including:
Data capture unit 301, for obtaining the cosmetics data of user's selection;
Image acquisition unit 302, for obtaining the adornment front face image of user;
Makeup predicting unit 303, for being based on destination virtual makeup model for cosmetics data application in adornment front face figure Picture predicts the corresponding dressing effect image of adornment front face image.
In a kind of optional mode, virtual cosmetic device, further includes: model determination unit 304 is used for universal void Intend makeup model as destination virtual makeup model, or;From the model basin for virtually making up model including multiple single-items, determine Single-item corresponding with cosmetics data virtually makes up model as destination virtual makeup model, and single-item makes up model virtually to make up Product brand and/or cosmetics type are to distinguish.
In a kind of optional mode, virtual cosmetic device, further includes: picture collector unit 305, for pre- by collecting If picture after picture and original adornment, obtains original image collection before the original adornment of number of users;Picture processing unit 306, for leading to Processing original image collection is crossed, obtains the picture sample collection comprising multiple trained pictures pair, training picture is to comprising being directed to same use Picture after picture and adornment before the adornment at family;Training unit 307, for training target virtualization adornment model based on picture sample collection.
Picture processing unit 306, is specifically used for: concentrating from original image and washes out the multiple originals for meeting default sample index Beginning picture pair, original image is to comprising for picture after picture before the original adornment of same user and original adornment;To multiple original graphs Piece is to unitized processing is carried out, to obtain the picture sample collection for including multiple trained pictures pair.
Picture processing unit 306, is also used to: the training picture pair concentrated based on picture sample, extension picture sample set Picture sample quantity.
Training unit 307, is specifically used for: initial convolutional neural networks model is trained based on picture sample collection, Obtain destination virtual makeup model.
Training unit 307, is specifically used for: input picture sample collection generates the image of picture sample concentration training picture pair Matrix;Process of convolution operation is carried out between image array and initial convolutional neural networks model based on picture before adornment, is obtained The analog image matrix of picture before corresponding adornment;The image array of picture after comparative simulation image array and adornment, is based on comparing result Adjust the model parameter of convolutional neural networks model;Image moment based on picture before model and adornment comprising model parameter after adjustment The step of re-starting process of convolution operation between battle array, recycling adjustment model parameter and re-start process of convolution operation is until completely When sufficient preset termination condition, destination virtual makeup model is obtained.
The third aspect, is based on inventive concept same as cosmetic method virtual in previous embodiment, and this specification also provides A kind of computer equipment, computer equipment are specifically as follows terminal device or server, as shown in figure 4, the computer equipment Including memory 404, processor 402 and it is stored in the computer program that can be run on memory 404 and on the processor 402, Processor 402 realizes step described in any embodiment of virtual cosmetic method above when executing program.
Wherein, in Fig. 4, bus architecture (is represented) with bus 400, and bus 400 may include any number of interconnection Bus and bridge, bus 400 will include the one or more processors represented by processor 402 and what memory 404 represented deposits The various circuits of reservoir link together.Bus 400 can also will peripheral equipment, voltage-stablizer and management circuit etc. it Various other circuits of class link together, and these are all it is known in the art, therefore, no longer carry out further to it herein Description.Bus interface 406 provides interface between bus 400 and receiver 401 and transmitter 403.Receiver 401 and transmitter 403 can be the same element, i.e. transceiver, provide the unit for communicating over a transmission medium with various other devices.Place It manages device 402 and is responsible for management bus 400 and common processing, and memory 404 can be used for storage processor 402 and execute behaviour Used data when making.
Fourth aspect, is based on inventive concept same as cosmetic method virtual in previous embodiment, and this specification also provides A kind of computer readable storage medium, is stored thereon with computer program, realizes when which is executed by processor virtual above Step described in any embodiment of cosmetic method.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute In setting for the function that realization is specified in one or more flows of the flowchart and/or one or more blocks of the block diagram It is standby.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of equipment, the commander equipment realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of this specification has been described, once a person skilled in the art knows basic wounds The property made concept, then additional changes and modifications may be made to these embodiments.So the following claims are intended to be interpreted as includes Preferred embodiment and all change and modification for falling into this specification range.
Obviously, those skilled in the art can carry out various modification and variations without departing from this specification to this specification Spirit and scope.In this way, if these modifications and variations of this specification belong to this specification claim and its equivalent skill Within the scope of art, then this specification is also intended to include these modifications and variations.

Claims (18)

1. a kind of virtual cosmetic method, comprising:
Obtain the cosmetics data of user's selection;
Obtain the adornment front face image of the user;
Based on destination virtual makeup model by the cosmetics data application in the adornment front face image, before predicting the adornment The corresponding dressing effect image of face-image.
2. virtual cosmetic method as described in claim 1 is answered the cosmetics data are based on destination virtual makeup model Before the adornment front face image, further includes:
Using universal virtual makeup model as destination virtual makeup model, or
From the model basin for virtually making up model including multiple single-items, single-item virtualization corresponding with the cosmetics data is determined Adornment model makes up model virtually as destination virtual makeup model, the single-item with cosmetics brand and/or toiletries Type is to distinguish.
3. virtual cosmetic method as described in claim 1, the destination virtual makeup model is obtained based on following steps:
By picture after picture before the original adornment of collection preset quantity user and original adornment, original image collection is obtained;
By handling the original image collection, the picture sample collection comprising multiple trained pictures pair, the trained picture pair are obtained Comprising for picture after picture before the adornment of same user and adornment;
The destination virtual makeup model is trained based on the picture sample collection.
4. virtual cosmetic method as claimed in claim 3, the step of handling the original image collection, comprising:
It is concentrated from the original image and washes out the multiple original images pair for meeting default sample index, the original image is to packet Containing for picture after picture before the original adornment of same user and original adornment;
To the multiple original image to unitized processing is carried out, to obtain the picture sample comprising multiple trained pictures pair Collection.
5. virtual cosmetic method as described in claim 3 or 4, after obtaining the picture sample collection, further includes:
Based on the training picture pair that the picture sample is concentrated, the picture sample quantity of the picture sample collection is extended.
6. virtual cosmetic method as claimed in claim 3, described to train the destination virtual based on the picture sample collection Makeup model, comprising:
Initial convolutional neural networks model is trained based on the picture sample collection, obtains destination virtual makeup model.
7. virtual cosmetic method as claimed in claim 6, it is described based on the picture sample collection to initial convolutional Neural net Network model is trained, and obtains destination virtual makeup model, comprising:
The picture sample collection is inputted, the image array of the picture sample concentration training picture pair is generated;
Process of convolution operation is carried out between image array and initial convolutional neural networks model based on picture before the adornment, is obtained The analog image matrix of picture before to the correspondence adornment;
The image array for comparing the analog image matrix with picture after the adornment adjusts the convolutional Neural based on comparing result The model parameter of network model;
Process of convolution is re-started between image array based on picture before model and the adornment comprising model parameter after adjustment The step of operation, circulation adjusts model parameter and re-starts process of convolution operation, until when meeting preset termination condition, obtains The destination virtual makeup model.
8. virtual cosmetic method as claimed in claim 3, it includes a variety of skin properties that the picture sample of acquisition, which is concentrated, more Kind of age of user, a variety of skin colors adornment before picture after picture and corresponding adornment;
Wherein, in obtaining the destination virtual makeup model step for being universal virtual makeup model, it is in picture after the adornment Existing each facial characteristics is made up;In the step of destination virtual for obtaining model of virtually making up for single-item makes up model, institute It states in each facial characteristics that picture is presented after adornment, by the cosmetic makeup of corresponding cosmetics brand and/or cosmetics type.
9. a kind of virtual cosmetic device, comprising:
Data capture unit, for obtaining the cosmetics data of user's selection;
Image acquisition unit, for obtaining the adornment front face image of the user;
Makeup predicting unit, for being based on destination virtual makeup model for the cosmetics data application in the adornment front face figure Picture predicts the corresponding dressing effect image of the adornment front face image.
10. virtual cosmetic device as claimed in claim 9, further includes:
Model determination unit is used for using universal virtual makeup model as destination virtual makeup model, or;From including Multiple single-items virtually make up model model basin in, determine that corresponding with cosmetics data single-item is virtually made up model conduct The destination virtual is made up model, the single-item virtually make up model with cosmetics brand and/or cosmetics type to distinguish.
11. virtual cosmetic device as claimed in claim 9, further includes:
Picture collector unit obtains former for picture after picture before the original adornment by collecting preset quantity user and original adornment Beginning pictures;
Picture processing unit, for obtaining the picture sample comprising multiple trained pictures pair by handling the original image collection Collection, the trained picture is to comprising for picture after picture before the adornment of same user and adornment;
Training unit, for training the destination virtual makeup model based on the picture sample collection.
12. virtual cosmetic device as claimed in claim 11, the picture processing unit are specifically used for:
It is concentrated from the original image and washes out the multiple original images pair for meeting default sample index, the original image is to packet Containing for picture after picture before the original adornment of same user and original adornment;
To the multiple original image to unitized processing is carried out, to obtain the picture sample comprising multiple trained pictures pair Collection.
13. the virtual cosmetic device as described in claim 11 or 12, the picture processing unit, are also used to:
Based on the training picture pair that the picture sample is concentrated, the picture sample quantity of the picture sample collection is extended.
14. virtual cosmetic device as claimed in claim 11, the training unit are specifically used for:
Initial convolutional neural networks model is trained based on the picture sample collection, obtains destination virtual makeup model.
15. virtual cosmetic device as claimed in claim 14, the training unit are specifically used for:
The picture sample collection is inputted, the image array of the picture sample concentration training picture pair is generated;
Process of convolution operation is carried out between image array and initial convolutional neural networks model based on picture before the adornment, is obtained The analog image matrix of picture before to the correspondence adornment;
The image array for comparing the analog image matrix with picture after the adornment adjusts the convolutional Neural based on comparing result The model parameter of network model;
Process of convolution is re-started between image array based on picture before model and the adornment comprising model parameter after adjustment The step of operation, circulation adjusts model parameter and re-starts process of convolution operation, until when meeting preset termination condition, obtains The destination virtual makeup model.
16. virtual cosmetic device as claimed in claim 11, it includes a variety of skin properties, Duo Zhongyong that the picture sample, which is concentrated, The family age, a variety of skin colors adornment before picture after picture and corresponding adornment;It wherein, is universal virtual makeup model obtaining Destination virtual makeup model step in, each facial characteristics presented in picture after the adornment is made up;It is single-item obtaining In the step of destination virtual makeup model of virtual makeup model, in each facial characteristics that picture is presented after the adornment, corresponded to Cosmetics brand and/or cosmetics type cosmetic makeup.
17. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor The step of calculation machine program, the processor realizes any one of claim 1-8 the method when executing described program.
18. a kind of computer readable storage medium, is stored thereon with computer program, power is realized when which is executed by processor Benefit requires the step of any one of 1-8 the method.
CN201811026627.9A 2018-09-04 2018-09-04 Virtual cosmetic method, device and equipment Pending CN109409979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811026627.9A CN109409979A (en) 2018-09-04 2018-09-04 Virtual cosmetic method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811026627.9A CN109409979A (en) 2018-09-04 2018-09-04 Virtual cosmetic method, device and equipment

Publications (1)

Publication Number Publication Date
CN109409979A true CN109409979A (en) 2019-03-01

Family

ID=65463939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811026627.9A Pending CN109409979A (en) 2018-09-04 2018-09-04 Virtual cosmetic method, device and equipment

Country Status (1)

Country Link
CN (1) CN109409979A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223149A (en) * 2019-06-18 2019-09-10 Oppo广东移动通信有限公司 Output method, device, terminal and the computer readable storage medium of information
CN110427144A (en) * 2019-07-31 2019-11-08 秒针信息技术有限公司 Virtual examination cosmetic method and device
CN111586424A (en) * 2020-04-28 2020-08-25 永康精信软件开发有限公司 Video live broadcast method and device for realizing multi-dimensional dynamic display of cosmetics
CN111586428A (en) * 2020-04-30 2020-08-25 永康精信软件开发有限公司 Cosmetic live broadcast system and method with virtual character makeup function
CN117036187A (en) * 2023-07-21 2023-11-10 小米科技(武汉)有限公司 Cosmetic treatment method and device and electronic equipment
CN119068533A (en) * 2024-09-13 2024-12-03 北京工商大学 Method, device and equipment for simulating makeup effect of base makeup products

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184108A (en) * 2011-05-26 2011-09-14 成都江天网络科技有限公司 Method for performing virtual makeup by using computer program and makeup simulation program
CN106682958A (en) * 2016-11-21 2017-05-17 汕头市智美科技有限公司 Method and device for trying on makeup virtually
CN107123083A (en) * 2017-05-02 2017-09-01 中国科学技术大学 Face Editing Method
US20180075523A1 (en) * 2016-09-15 2018-03-15 GlamST LLC Generating virtual makeup products
CN108090465A (en) * 2017-12-29 2018-05-29 国信优易数据有限公司 A kind of dressing effect process model training method and dressing effect processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184108A (en) * 2011-05-26 2011-09-14 成都江天网络科技有限公司 Method for performing virtual makeup by using computer program and makeup simulation program
US20180075523A1 (en) * 2016-09-15 2018-03-15 GlamST LLC Generating virtual makeup products
CN106682958A (en) * 2016-11-21 2017-05-17 汕头市智美科技有限公司 Method and device for trying on makeup virtually
CN107123083A (en) * 2017-05-02 2017-09-01 中国科学技术大学 Face Editing Method
CN108090465A (en) * 2017-12-29 2018-05-29 国信优易数据有限公司 A kind of dressing effect process model training method and dressing effect processing method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223149A (en) * 2019-06-18 2019-09-10 Oppo广东移动通信有限公司 Output method, device, terminal and the computer readable storage medium of information
CN110427144A (en) * 2019-07-31 2019-11-08 秒针信息技术有限公司 Virtual examination cosmetic method and device
CN111586424A (en) * 2020-04-28 2020-08-25 永康精信软件开发有限公司 Video live broadcast method and device for realizing multi-dimensional dynamic display of cosmetics
CN111586424B (en) * 2020-04-28 2022-05-31 永康精信软件开发有限公司 Video live broadcast method and device for realizing multi-dimensional dynamic display of cosmetics
CN111586428A (en) * 2020-04-30 2020-08-25 永康精信软件开发有限公司 Cosmetic live broadcast system and method with virtual character makeup function
CN117036187A (en) * 2023-07-21 2023-11-10 小米科技(武汉)有限公司 Cosmetic treatment method and device and electronic equipment
CN119068533A (en) * 2024-09-13 2024-12-03 北京工商大学 Method, device and equipment for simulating makeup effect of base makeup products

Similar Documents

Publication Publication Date Title
CN109409979A (en) Virtual cosmetic method, device and equipment
US9396560B2 (en) Image-based color palette generation
US9245350B1 (en) Image-based color palette generation
CN106898026B (en) A kind of the dominant hue extracting method and device of picture
JP7247587B2 (en) Image style conversion device, image style conversion method, and program
CN108305256B (en) Video keying processing method, processing unit and computer readable storage medium
US9098534B2 (en) Image display system, image display method, social network service system, and computer-readable medium
CN104076928B (en) A kind of method for adjusting text importing image
US20140314315A1 (en) Systems and Methods for Recommending Cosmetic Products for Users with Mobile Devices
CN114170472B (en) Image processing methods, readable storage media, and computer terminals
CN114360018A (en) Rendering method and device of three-dimensional facial expression, storage medium and electronic device
CN110780598B (en) Intelligent device control method and device, electronic device and readable storage medium
CN106649465A (en) Method and device for recommending and acquiring makeup information
CN106303354A (en) A kind of face specially good effect recommends method and electronic equipment
CN106855798A (en) A kind of method to set up of interface element property value, device and smart machine
CN109712082A (en) The method and device of figure is repaired in cooperation
CN117252777A (en) Image processing method, device and equipment
CN106855800A (en) A kind of display methods of interface element background picture, device and smart machine
KR20180042359A (en) Method and apparatus for distinguishing objects
CN109597912A (en) Method for handling picture
CN109064431A (en) A kind of picture luminance adjusting method, equipment and its storage medium
CN105912549A (en) Content recommendation method and device thereof
CN112083863A (en) Image processing method, apparatus, electronic device and readable storage medium
CN109445569A (en) Information processing method, device, equipment and readable storage medium storing program for executing based on AR
CN109529349A (en) Image drawing method, calculates equipment and storage medium at 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301