CN108053365A - For generating the method and apparatus of information - Google Patents

For generating the method and apparatus of information Download PDF

Info

Publication number
CN108053365A
CN108053365A CN201711475042.0A CN201711475042A CN108053365A CN 108053365 A CN108053365 A CN 108053365A CN 201711475042 A CN201711475042 A CN 201711475042A CN 108053365 A CN108053365 A CN 108053365A
Authority
CN
China
Prior art keywords
effect image
user
region
image
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711475042.0A
Other languages
Chinese (zh)
Other versions
CN108053365B (en
Inventor
仲召来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201711475042.0A priority Critical patent/CN108053365B/en
Publication of CN108053365A publication Critical patent/CN108053365A/en
Application granted granted Critical
Publication of CN108053365B publication Critical patent/CN108053365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • G06T3/04

Abstract

This application discloses for generating the method and apparatus of information.One specific embodiment of this method includes:It is asked in response to the examination adornment for receiving the facial image including user, identifies at least one characteristic area of facial image;It obtains and is selected with the dressing effect image collection of at least one Character Area Matching for user, wherein, dressing effect image includes at least one region of having made up;In response to detecting that user selects dressing effect image, the cosmetics information of the cosmetics used at least one region of having made up of selected dressing effect image is obtained;For each region of having made up at least one region of having made up of selected dressing effect image, image procossing is carried out to characteristic area corresponding with the region of having made up in facial image according to the cosmetics information of the cosmetics used for the region of having made up to generate the facial image after makeup.The embodiment can save the virtual examination adornment time.

Description

For generating the method and apparatus of information
Technical field
The invention relates to field of computer technology, and in particular to technical field of face recognition, more particularly, to The method and apparatus for generating information.
Background technology
With the development of image processing techniques, people can carry out virtually trying adornment before makeup, select to be suitble to the change of oneself Cosmetic.By " real enhancing technology " (augmented-reality is combined true, abbreviation AR with digital image) by intelligence The front camera of energy mobile phone is converted into a face vanity mirror, can capture multiple critical data points and up to a hundred facial tables on face Feelings allow user virtually to try out a variety of cosmetics, and see in real time using after product in the effect oneself showed on the face.User On request after upload pictures, after selecting corresponding makeup position (bottom adornment, eye make-up, lip adornment), it may appear that corresponding color, dosage, The options such as thickness, gloss, user intuitively can fine adjust dressing effect, can also preserve dressing after satisfied, check very much It is compared before adornment." removing dressing " can also be clicked on, is made a new start.
The content of the invention
The embodiment of the present application proposes the method and apparatus for generating information.
In a first aspect, the embodiment of the present application provides a kind of method for generating information, including:In response to receiving bag The examination adornment request of the facial image of user is included, identifies at least one characteristic area of facial image;It obtains and at least one feature The dressing effect image collection of Region Matching is selected for user, wherein, dressing effect image includes at least one region of having made up; In response to detecting that user selects dressing effect image, acquisition has been changed for selected at least one of dressing effect image The cosmetics information for the cosmetics that adornment region uses;For at least one region of having made up of selected dressing effect image Each region of having made up, according to the cosmetics information of the cosmetics used for the region of having made up in facial image with this The corresponding characteristic area in makeup region carries out image procossing to generate the facial image after makeup.
In some embodiments, cosmetics information includes:Brand message and color information;And this method further includes:It is defeated Go out the brand message of cosmetics and color information used by each region of having made up of selected dressing effect image.
In some embodiments, try adornment request and further include image of clothing;And it obtains and at least one Character Area Matching Dressing effect image collection for user select, including:Identify the feature of clothes in image of clothing;Obtain the with characteristic matching One candidate makeup effect image set;It is determined and at least one Character Area Matching from the first candidate makeup effect image set Dressing effect image collection for user select.
In some embodiments, try adornment request and further include scene information;And it obtains and at least one Character Area Matching Dressing effect image collection for user select, including:Obtain the second candidate makeup effect image collection matched with scene information It closes;It is determined from the second candidate makeup effect image set and the dressing effect image collection of at least one Character Area Matching supplies User selects.
In some embodiments, at least one characteristic area of facial image is identified, including:Identify at least one feature The color in the region of having made up in region and brightness;And the dressing effect image set of acquisition and at least one Character Area Matching It closes and is selected for user, including:It obtains and the color in region of having made up at least one characteristic area and the makeup of brightness matching Effect image set is selected for user.
In some embodiments, try adornment request and further include light information;And it obtains and at least one Character Area Matching Dressing effect image collection for user select, including:It obtains to make up with the 3rd candidate of at least one Character Area Matching and imitate Fruit image collection;Each candidate in 3rd candidate makeup effect image set is adjusted according to light information and makes up effect image simultaneously It is selected for user.
Second aspect, the embodiment of the present application provide a kind of device for being used to generate information, including:Recognition unit, configuration For being asked in response to the examination adornment for receiving the facial image including user, at least one characteristic area of facial image is identified; Acquiring unit is configured to obtain with the dressing effect image collection of at least one Character Area Matching for user's selection, wherein, Dressing effect image includes at least one region of having made up;Selecting unit is configured in response to detecting selecting of user Adornment effect image obtains the makeup of the cosmetics used at least one region of having made up of selected dressing effect image Product information;Image processing unit is configured at least one region of having made up for selected dressing effect image every A region of having made up, according to the cosmetics information of the cosmetics used for the region of having made up to having changed in facial image with this The corresponding characteristic area in adornment region carries out image procossing to generate the facial image after makeup.
In some embodiments, cosmetics information includes:Brand message and color information;And the device further includes output Unit is configured to:Export the brand letter of cosmetics used by each region of having made up of selected dressing effect image Breath and color information.
In some embodiments, try adornment request and further include image of clothing;And acquiring unit is further configured to:Identification The feature of clothes in image of clothing;It obtains and the first candidate of characteristic matching makeup effect image set;It makes up from the first candidate Effect image set is determined to select for user with the dressing effect image collection of at least one Character Area Matching.
In some embodiments, try adornment request and further include scene information;And acquiring unit is further configured to:It obtains The second candidate makeup effect image set matched with scene information;From the second candidate make up effect image set determine with to The dressing effect image collection of a few Character Area Matching is selected for user.
In some embodiments, recognition unit is further configured to:Identify the change at least one characteristic area The color in adornment region and brightness;And acquiring unit is further configured to:It obtains and the change at least one characteristic area The color in adornment region and the dressing effect image collection of brightness matching are selected for user.
In some embodiments, try adornment request and further include light information;And acquiring unit is further configured to:It obtains With the 3rd candidate makeup effect image set of at least one Character Area Matching;3rd candidate makeup is adjusted according to light information Each candidate makeup effect image and confession user in effect image set select.
The third aspect, the embodiment of the present application provide a kind of server, including:One or more processors;Storage device, For storing one or more programs, when one or more programs are executed by one or more processors so that one or more Processor is realized such as method any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence, wherein, it is realized when program is executed by processor such as method any in first aspect.
Method and apparatus provided by the embodiments of the present application for generating information by identifying the characteristic area of face, are looked into It looks for and being selected with the dressing effect figure of Character Area Matching for user, according to the dressing effect figure of the selection of user to the face of user Image is handled, so as to save the time of virtual examination adornment.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart for being used to generate one embodiment of the method for information according to the application;
Fig. 3 is the schematic diagram for being used to generate an application scenarios of the method for information according to the application;
Fig. 4 is the flow chart for being used to generate another embodiment of the method for information according to the application;
Fig. 5 is the structure diagram for being used to generate one embodiment of the device of information according to the application;
Fig. 6 is adapted for the structure diagram of the computer system of the server for realizing the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention rather than the restriction to the invention.It also should be noted that in order to Convenient for description, illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the case where there is no conflict, the feature in embodiment and embodiment in the application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the method for being used to generate information that can apply the application or the implementation for generating the device of information The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 101,102,103 by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed on terminal device 101,102,103, such as virtual examination adornment application, Web browser applications, the application of shopping class, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be the various electronic equipments for having display screen and supporting camera function, bag It includes but is not limited to smart mobile phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable Computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to being shown on terminal device 101,102,103 Dressing effect figure provides the backstage image processing server supported.Backstage image processing server can ask the examination adornment received It the data such as asks to carry out the processing such as analyzing, and handling result (such as facial image after makeup) is fed back into terminal device.
It should be noted that the method for being used to generate information that the embodiment of the present application is provided generally is held by server 105 Row, correspondingly, the device for generating information is generally positioned in server 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realization need Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow for being used to generate one embodiment of the method for information according to the application is shown 200.This is used for the method for generating information, comprises the following steps:
Step 201, asked in response to receiving the examination adornment of the facial image including user, identify at least the one of facial image A characteristic area.
In the present embodiment, for generating electronic equipment (such as the service shown in FIG. 1 of the method for information operation thereon Device) can examination adornment be received using the terminal of the virtual examination adornment of its progress from user by wired connection mode or radio connection Request.It may include the facial image that user uploads in examination adornment request, may also comprise user and directly shot by the camera of terminal Facial image.After server receives facial image, at least one spy of facial image is identified by face recognition algorithms Levy region.For example, eyebrow, eyes, nose, lip, cheek etc. can be used for the position for smearing cosmetics.Characteristic area can also wrap It includes the profile of face and identifies the colour of skin of user.
In some optional realization methods of the present embodiment, at least one characteristic area of facial image is identified, including: Identify color and the brightness in the region of having made up at least one characteristic area;And it obtains and at least one characteristic area The dressing effect image collection matched somebody with somebody is selected for user, including:Obtain the face with the region of having made up at least one characteristic area The dressing effect image collection of color and brightness matching is selected for user.Facial image can be that the image of complete plain face can also be The image of part makeup, for example has changed eye make-up, user want to know need which type of lipstick come when arranging in pairs or groups also can on Pass the photo for having changed part dressing.The color, bright of the lipstick used with user is found from dressing effect image collection Spend the same or similar dressing effect images for user selection.The lipstick color with user is changed in dressing effect image Eye make-up, bottom adornment, blush of collocation etc..
Step 202, obtain and selected with the dressing effect image collection of at least one Character Area Matching for user.
In the present embodiment, dressing effect image includes at least one region of having made up.It can be face whole makeup Image after image or topical cosmetic.For example, the image of lipstick is only applied.Dressing effect image can be cosmetics mould Special or star color make-up photo.According to the shape of the face of the user determined can find the similar cosmetics model of face or The color make-up photo of star.Using similarity calculating method, at least one characteristic area and eachization of the face of user are determined The similarity of the characteristic area of adornment effect image.For example, the similarity between determining eyes.Similarity is similar higher than predetermined The dressing effect image for spending threshold value is recommended to user.In addition to the similarity for considering independent organ, it reference may also be made to whole similar Degree.And matched face more at most overall similarity is higher.Dressing effect image so recommended to the user is more suitable for using Family.For example, user is single-edge eyelid, then recommend the cosmetics model of single-edge eyelid or the color make-up photo of star to the user.Rather than Recommend the cosmetics model of double-edged eyelid or the color make-up photo of star.It will not recommend American-European cosmetics model or bright to Asia user The color make-up photo of star.
In some optional realization methods of the present embodiment, examination adornment request further includes scene information;And obtain with extremely The dressing effect image collection of a few Character Area Matching is selected for user, including:It obtains and scene information matched second Candidate's makeup effect image set;It is determined and at least one Character Area Matching from the second candidate makeup effect image set Dressing effect image collection is selected for user.For example, user, which can input bride, sandy beach etc., can reflect that the keyword of scene comes Scene information is provided.Also scene list can be provided by terminal.Server selects and the occasion to be attended of user matched second Candidate's makeup effect image set, then therefrom determine that the dressing effect image collection similar to the face of user is selected for user. For example, user selects seabeach scene, then the color make-up photo of the cosmetics model or star in sandy beach photographs can be found.They institute The cosmetics used further include the characteristics such as SPF, waterproof in addition to the characteristics such as color, brightness.
In some optional realization methods of the present embodiment, examination adornment request further includes light information;And obtain with extremely The dressing effect image collection of a few Character Area Matching is selected for user, including:It obtains and at least one characteristic area The 3rd candidate makeup effect image set matched somebody with somebody;It is adjusted according to light information each in the 3rd candidate makeup effect image set Candidate's makeup effect image is simultaneously selected for user.Terminal can provide light information relevant options and be selected to user, for example, stage, Dusk, early morning, rainy days etc..Similarly the mode of making up can generate different design sketch under different light conditions, can be for user Select the design sketch that she likes.
Step 203, in response to detecting that user selects dressing effect image, obtain for selected dressing effect figure The cosmetics information for the cosmetics that at least one region of having made up of picture uses.
In the present embodiment, user can select satisfied image from multiple dressing effect images.Dressing effect Cosmetics information used in image can directly be provided by dressing effect image taking person, can also be identified by server by image Method identifies the color and gloss of cosmetics, then matches the cosmetics of same color and gloss from cosmetics storehouse again. Cosmetics information may include brand message and color information.The information such as cosmetic ingredient are may also include, after preventing user's use Allergy.The website for respectively selling the cosmetics can be linked in the form of product links.
Step 204, for each region of having made up at least one region of having made up of selected dressing effect image, According to the cosmetics information of the cosmetics used for the region of having made up to corresponding with the region of having made up in facial image Characteristic area carries out image procossing to generate the facial image after makeup.
In the present embodiment, for the region that can each make up in facial image, according to selected dressing effect image The information such as color, the brightness of involved cosmetics render the region made up in facial image.For example, user is selected Lipstick is the large red glittered with diamond in dressing effect image, then the lip in facial image is glittered using diamond Large red renders.
In some optional realization methods of the present embodiment, cosmetics information includes:Brand message and color information;With And this method further includes:Export the brand letter of cosmetics used by each region of having made up of selected dressing effect image Breath and color information.User is equivalent to and has synthesized outside a photo except can see dressing effect, can also obtain used Cosmetics information, can buy on demand.
With continued reference to Fig. 3, Fig. 3 is to be illustrated according to the present embodiment for generating one of the application scenarios of the method for information Figure.In the application scenarios of Fig. 3, user sends facial image 301 by terminal 300 to server.Server identifies face It finds after the characteristic area of image and is selected with the dressing effect image collection of Character Area Matching for user.Then further according to The dressing effect image 302 of family selection carries out image procossing to facial image 301.
The method that above-described embodiment of the application provides is imitated by the characteristic area of the facial image according to user with makeup Fruit image is associated, so as to save the virtual examination adornment time.
With further reference to Fig. 4, it illustrates for generating the flow 400 of another embodiment of the method for information.The use In the flow 400 of the method for generation information, comprise the following steps:
Step 401, asked in response to receiving the examination adornment of facial image including user and image of clothing, identify face figure At least one characteristic area of picture.
In the present embodiment, for generating electronic equipment (such as the service shown in FIG. 1 of the method for information operation thereon Device) can examination adornment be received using the terminal of the virtual examination adornment of its progress from user by wired connection mode or radio connection Request.It may include the facial image of user's upload/shooting in examination adornment request, may also comprise image of clothing.Image of clothing and face Image can be in same photo.Image of clothing and facial image can also be uploaded respectively.User can be in shooting face figure As when the clothes one of collocation are started auction into.The picture for the clothes for wanting collocation can also be uploaded.Server receives face figure As after, at least one characteristic area of facial image is identified by face recognition algorithms.For example, eyebrow, eyes, nose, mouth Lip, cheek etc. can be used for the position for smearing cosmetics.Characteristic area can also include the profile of face and identify the skin of user Color.
Step 402, the feature of clothes in image of clothing is identified.
In the present embodiment, the feature of clothes may include color, brightness, style etc..It is taken for example, if user wants to dissolve Dressing with red clothes, then the blush in candidate's makeup effect image should not be excessively red, and if be dressed in white, blush Color can be than wearing the red of red clothes.Style can include gym suit, full dress, swimsuit etc..It is selected according to style suitable The clothes for the activity that user will carry out.For example user wears gym suit, then matched candidate makes up effect image to be light make-up, such as Fruit user wears full dress, then matched candidate makes up effect image as heavy make-up.
Step 403, obtain and the first candidate of the characteristic matching of clothes makeup effect image set.
In the present embodiment, the first candidate makeup effect image is the same or similar clothes of clothes that dress is uploaded with user The cosmetics model of dress or the color make-up photo of star.The garment image that the clothes that model or star are worn may be uploaded with user is not It is completely the same, but essential characteristic is consistent, for example, all wearing black full dress.The clothing of user can be determined by similarity calculating method Similarity between clothes and the clothes of model.When similarity is higher than predetermined similarity threshold, then it is assumed that the characteristic matching of clothes.With Family can refer to the similary star for wearing black full dress and fix according to makeup.Server first fixes to the facial image of user according to star Identical processing is complied, user is allowed to see effect, then user is referred to make up or the picture that preserves that treated.It can be advance The entirely different dressing effect image of dress style is filtered out, for example, user wants to wear the dressing effect figure of gym suit, then not The dressing effect figure of evening dress is worn to her recommendation.
Step 404, the makeup at least one Character Area Matching is determined from the first candidate makeup effect image set Effect image set is selected for user.
In the present embodiment, chosen and at least one in making up effect image set from the first candidate that step 403 is determined The dressing effect image collection of a Character Area Matching is selected for user.First candidate make up effect image include it is at least one Makeup region.It can be image after the image of face whole makeup or topical cosmetic.For example, the figure of lipstick is only applied Picture.Dressing effect image can be the color make-up photo of cosmetics model or star.According to the shape of the face of the user determined The color make-up photo of the similar cosmetics model of face or star can be found.Dressing effect image so recommended to the user is more It is suitble to user.For example, user is single-edge eyelid, then recommend the cosmetics model of single-edge eyelid or the color make-up photo of star to the user. Rather than recommend the cosmetics model of double-edged eyelid or the color make-up photo of star.It will not recommend American-European cosmetics mould to Asia user Special or star color make-up photo.
Step 405, in response to detecting that user selects dressing effect image, obtain for selected dressing effect figure The cosmetics information for the cosmetics that at least one region of having made up of picture uses.
In the present embodiment, user can select satisfied image from multiple dressing effect images.Dressing effect Cosmetics information used in image can directly be provided by dressing effect image taking person, can also be identified by server by image Method identifies the color and gloss of cosmetics, then matches the cosmetics of same color and gloss from cosmetics storehouse again. Cosmetics information may include brand message and color information.The information such as cosmetic ingredient are may also include, after preventing user's use Allergy.The website for respectively selling the cosmetics can be linked in the form of product links.
Step 406, for each region of having made up at least one region of having made up of selected dressing effect image, According to the cosmetics information of the cosmetics used for the region of having made up to corresponding with the region of having made up in facial image Characteristic area carries out image procossing to generate the facial image after makeup.
In the present embodiment, for the region that can each make up in facial image, according to selected dressing effect image The information such as color, the brightness of involved cosmetics render the region made up in facial image.For example, user is selected Lipstick is the large red glittered with diamond in dressing effect image, then the lip in facial image is glittered using diamond Large red renders.
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2, in the present embodiment for the method that generates information The clothes that highlight with reference to user of flow 400 carry out the step of makeup is recommended.The scheme of the present embodiment description can draw as a result, Enter more makeup related datas, recommend and saved the makeup time so as to fulfill more effective makeup, user is avoided to put on makeup Just find that dressing is not arranged in pairs or groups with clothes afterwards.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for generating letter One embodiment of the device of breath, the device embodiment is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the present embodiment includes for generating the device 500 of information:Recognition unit 501, acquiring unit 502nd, selecting unit 503 and image processing unit 504.Wherein, recognition unit 501 is configured in response to receiving including user Facial image the request of examination adornment, identify at least one characteristic area of facial image;Acquiring unit 502 be configured to obtain with The dressing effect image collection of at least one Character Area Matching is selected for user, wherein, dressing effect image includes at least one A region of having made up;Selecting unit 503 is configured to, in response to detecting that user selects dressing effect image, obtain for institute The cosmetics information for the cosmetics that at least one region of having made up of the dressing effect image of selection uses;Image processing unit 504 are configured at least one region of having made up for selected dressing effect image region of each having made up, according to The cosmetics information of the cosmetics used for the region of having made up is to feature corresponding with the region of having made up in facial image Region carries out image procossing to generate the facial image after makeup.
In some optional realization methods of the present embodiment, cosmetics information includes:Brand message and color information;With And device 500 further includes output unit (not shown), is configured to:Selected each of dressing effect image is exported to have made up The brand message of cosmetics and color information used by region.
In some optional realization methods of the present embodiment, examination adornment request further includes image of clothing;And acquiring unit 502 are further configured to:Identify the feature of clothes in image of clothing;It obtains and the first candidate of characteristic matching makeup design sketch Image set closes;The dressing effect image set at least one Character Area Matching is determined from the first candidate makeup effect image set It closes and is selected for user.
In some optional realization methods of the present embodiment, examination adornment request further includes scene information;And acquiring unit 502 are further configured to:Obtain the second candidate makeup effect image set matched with scene information;It makes up from the second candidate Effect image set is determined to select for user with the dressing effect image collection of at least one Character Area Matching.
In some optional realization methods of the present embodiment, recognition unit 501 is further configured to:It identifies at least The color in the region of having made up in one characteristic area and brightness;And acquiring unit 502 is further configured to:Obtain with extremely The color in region of having made up and the dressing effect image collection of brightness matching in a few characteristic area are selected for user.
In some optional realization methods of the present embodiment, examination adornment request further includes light information;And acquiring unit 502 are further configured to:It obtains and the 3rd candidate of at least one Character Area Matching makeup effect image set;According to light Line information adjusts each candidate makeup effect image in the 3rd candidate makeup effect image set and is selected for user.
Below with reference to Fig. 6, it illustrates suitable for being used for realizing the computer system 600 of the server of the embodiment of the present application Structure diagram.Server shown in Fig. 6 is only an example, should not be to the function of the embodiment of the present application and use scope band Carry out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into program in random access storage device (RAM) 603 from storage part 608 and Perform various appropriate actions and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage part 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 610, as needed in order to read from it Computer program be mounted into as needed storage part 608.
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, including being carried on computer-readable medium On computer program, which includes for the program code of the method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609 and/or from detachable media 611 are mounted.When the computer program is performed by central processing unit (CPU) 601, perform what is limited in the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but It is not limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor or arbitrary above combination. The more specific example of computer readable storage medium can include but is not limited to:Electrical connection with one or more conducting wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer readable storage medium can any be included or store The tangible medium of program, the program can be commanded the either device use or in connection of execution system, device.And In the application, computer-readable signal media can include the data letter propagated in a base band or as a carrier wave part Number, wherein carrying computer-readable program code.Diversified forms may be employed in the data-signal of this propagation, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by instruction execution system, device either device use or program in connection.It is included on computer-readable medium Program code any appropriate medium can be used to transmit, include but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
It can be with one or more programming languages or its calculating for combining to write to perform the operation of the application Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+ +, further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to perform on the user computer, partly perform, performed as an independent software package on the user computer, Part performs or performs on a remote computer or server completely on the remote computer on the user computer for part. In the situation for being related to remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) Or wide area network (WAN)-be connected to subscriber computer or, it may be connected to outer computer (such as utilizes Internet service Provider passes through Internet connection).
Flow chart and block diagram in attached drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.In this regard, each box in flow chart or block diagram can generation The part of one module of table, program segment or code, the part of the module, program segment or code include one or more use In the executable instruction of logic function as defined in realization.It should also be noted that it is marked at some as in the realization replaced in box The function of note can also be occurred with being different from the order marked in attached drawing.For example, two boxes succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note 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 application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set in the processor, for example, can be described as:A kind of processor bag Include recognition unit, acquiring unit, selecting unit and image processing unit.Wherein, the title of these units is under certain conditions simultaneously The restriction in itself to the unit is not formed, for example, recognition unit is also described as " in response to receiving the people including user The examination adornment request of face image identifies the unit of at least one characteristic area of the facial image ".
As on the other hand, present invention also provides a kind of computer-readable medium, which can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are performed by the device so that should Device:It is asked in response to the examination adornment for receiving the facial image including user, identifies at least one characteristic area of facial image; It obtains and is selected with the dressing effect image collection of at least one Character Area Matching for user, wherein, dressing effect image includes At least one region of having made up;In response to detecting that user selects dressing effect image, obtain and imitated for selected makeup The cosmetics information for the cosmetics that at least one region of having made up of fruit image uses;For selected dressing effect image Each region of having made up, believes according to the cosmetics of the cosmetics used for the region of having made up at least one region of having made up It ceases and image procossing is carried out to characteristic area corresponding with the region of having made up in facial image to generate the facial image after makeup.
The preferred embodiment and the explanation to institute's application technology principle that above description is only the application.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic forms Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature The other technical solutions for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein The technical solution that the technical characteristic of energy is replaced mutually and formed.

Claims (14)

1. a kind of method for generating information, including:
It is asked in response to the examination adornment for receiving the facial image including user, identifies at least one characteristic area of the facial image Domain;
It obtains and is selected with the dressing effect image collection of at least one Character Area Matching for the user, wherein, makeup Effect image includes at least one region of having made up;
In response to detecting that the user selects dressing effect image, obtain for selected dressing effect image at least The cosmetics information for the cosmetics that one region of having made up uses;
For each region of having made up at least one region of having made up of selected dressing effect image, according to for this The cosmetics information for the cosmetics that makeup region uses is to characteristic area corresponding with the region of having made up in the facial image Image procossing is carried out to generate the facial image after makeup.
2. according to the method described in claim 1, wherein, the cosmetics information includes:Brand message and color information;And
The method further includes:
Export the brand message of cosmetics and color number letter used by each region of having made up of selected dressing effect image Breath.
3. according to the method described in claim 1, wherein, the examination adornment request further includes image of clothing;And
The acquisition and the dressing effect image collection of at least one Character Area Matching are selected for the user, including:
Identify the feature of clothes in the image of clothing;
It obtains and the first candidate of characteristic matching makeup effect image set;
The dressing effect at least one Character Area Matching is determined from first candidate makeup effect image set Image collection is selected for the user.
4. according to the method described in claim 1, wherein, the examination adornment request further includes scene information;And
The acquisition and the dressing effect image collection of at least one Character Area Matching are selected for the user, including:
Obtain the second candidate makeup effect image set matched with the scene information;
The dressing effect at least one Character Area Matching is determined from second candidate makeup effect image set Image collection is selected for the user.
5. according to the method described in claim 1, wherein, at least one characteristic area of the identification facial image wraps It includes:
Identify color and the brightness in the region of having made up at least one characteristic area;And
The acquisition and the dressing effect image collection of at least one Character Area Matching are selected for the user, including:
It obtains and the color in region of having made up and the dressing effect image set of brightness matching at least one characteristic area It closes and is selected for the user.
6. according to the method described in claim 1, wherein, the examination adornment request further includes light information;And
The acquisition and the dressing effect image collection of at least one Character Area Matching are selected for the user, including:
It obtains and the 3rd candidate of at least one Character Area Matching makeup effect image set;
Each candidate makeup effect image in the 3rd candidate makeup effect image set is adjusted according to the light information And it is selected for the user.
7. it is a kind of for generating the device of information, including:
Recognition unit is configured to ask in response to the examination adornment for receiving the facial image including user, identifies the face figure At least one characteristic area of picture;
Acquiring unit is configured to obtain the dressing effect image collection at least one Character Area Matching for described Family selects, wherein, dressing effect image includes at least one region of having made up;
Selecting unit is configured to, in response to detecting that the user selects dressing effect image, obtain for selected The cosmetics information for the cosmetics that at least one region of having made up of dressing effect image uses;
Image processing unit is configured at least one region of having made up for selected dressing effect image each Makeup region, according to the cosmetics information of the cosmetics used for the region of having made up to having changed in the facial image with this The corresponding characteristic area in adornment region carries out image procossing to generate the facial image after makeup.
8. device according to claim 7, wherein, the cosmetics information includes:Brand message and color information;And
Described device further includes output unit, is configured to:
Export the brand message of cosmetics and color number letter used by each region of having made up of selected dressing effect image Breath.
9. device according to claim 7, wherein, the examination adornment request further includes image of clothing;And
The acquiring unit is further configured to:
Identify the feature of clothes in the image of clothing;
It obtains and the first candidate of characteristic matching makeup effect image set;
The dressing effect at least one Character Area Matching is determined from first candidate makeup effect image set Image collection is selected for the user.
10. device according to claim 7, wherein, the examination adornment request further includes scene information;And
The acquiring unit is further configured to:
Obtain the second candidate makeup effect image set matched with the scene information;
The dressing effect at least one Character Area Matching is determined from second candidate makeup effect image set Image collection is selected for the user.
11. device according to claim 7, wherein, the recognition unit is further configured to:
Identify color and the brightness in the region of having made up at least one characteristic area;And
The acquiring unit is further configured to:
It obtains and the color in region of having made up and the dressing effect image set of brightness matching at least one characteristic area It closes and is selected for the user.
12. device according to claim 7, wherein, the examination adornment request further includes light information;And
The acquiring unit is further configured to:
It obtains and the 3rd candidate of at least one Character Area Matching makeup effect image set;
Each candidate makeup effect image in the 3rd candidate makeup effect image set is adjusted according to the light information And it is selected for the user.
13. a kind of server, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processors are real The now method as described in any in claim 1-6.
14. a kind of computer readable storage medium, is stored thereon with computer program, wherein, described program is executed by processor Methods of the Shi Shixian as described in any in claim 1-6.
CN201711475042.0A 2017-12-29 2017-12-29 Method and apparatus for generating information Active CN108053365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711475042.0A CN108053365B (en) 2017-12-29 2017-12-29 Method and apparatus for generating information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711475042.0A CN108053365B (en) 2017-12-29 2017-12-29 Method and apparatus for generating information

Publications (2)

Publication Number Publication Date
CN108053365A true CN108053365A (en) 2018-05-18
CN108053365B CN108053365B (en) 2019-11-05

Family

ID=62128967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711475042.0A Active CN108053365B (en) 2017-12-29 2017-12-29 Method and apparatus for generating information

Country Status (1)

Country Link
CN (1) CN108053365B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765268A (en) * 2018-05-28 2018-11-06 京东方科技集团股份有限公司 A kind of auxiliary cosmetic method, device and smart mirror
CN108846792A (en) * 2018-05-23 2018-11-20 腾讯科技(深圳)有限公司 Image processing method, device, electronic equipment and computer-readable medium
CN109063671A (en) * 2018-08-20 2018-12-21 三星电子(中国)研发中心 Method and device for intelligent cosmetic
CN109255674A (en) * 2018-08-08 2019-01-22 颜沿(上海)智能科技有限公司 A kind of examination adornment data processing system and method
CN109285026A (en) * 2018-08-08 2019-01-29 颜沿(上海)智能科技有限公司 A kind of carousel data processing system and method
CN109407912A (en) * 2017-08-16 2019-03-01 丽宝大数据股份有限公司 Electronic device and its offer examination adornment information approach
CN109409992A (en) * 2018-10-12 2019-03-01 百度在线网络技术(北京)有限公司 Cosmetics recommended method, device, equipment and computer-readable medium
CN109934092A (en) * 2019-01-18 2019-06-25 深圳壹账通智能科技有限公司 Identify color method, apparatus, computer equipment and storage medium
CN110728618A (en) * 2018-07-17 2020-01-24 阿里巴巴集团控股有限公司 Virtual makeup trying method, device and equipment and image processing method
CN110766806A (en) * 2019-09-23 2020-02-07 苏州浩哥文化传播有限公司 Cosmetic effect light and shadow projection system based on facial image analysis and working method thereof
CN111047511A (en) * 2019-12-31 2020-04-21 维沃移动通信有限公司 Image processing method and electronic equipment
CN111259696A (en) * 2018-11-30 2020-06-09 百度在线网络技术(北京)有限公司 Method and apparatus for displaying image
CN111259695A (en) * 2018-11-30 2020-06-09 百度在线网络技术(北京)有限公司 Method and device for acquiring information
TWI708183B (en) * 2019-03-29 2020-10-21 麗寶大數據股份有限公司 Personalized makeup information recommendation method
CN112083863A (en) * 2020-09-17 2020-12-15 维沃移动通信有限公司 Image processing method and device, electronic equipment and readable storage medium
CN112819718A (en) * 2021-02-01 2021-05-18 深圳市商汤科技有限公司 Image processing method and device, electronic device and storage medium
CN112997477A (en) * 2018-10-29 2021-06-18 索尼集团公司 Display device and display control method
CN113570674A (en) * 2021-07-30 2021-10-29 精诚工坊电子集成技术(北京)有限公司 Skin-beautifying product recommendation method and system and color matching sheet used by same
WO2023045950A1 (en) * 2021-09-27 2023-03-30 上海商汤智能科技有限公司 Image processing method and apparatus, electronic device, and storage medium
US11882918B2 (en) 2018-05-28 2024-01-30 Boe Technology Group Co., Ltd. Make-up assistance method and apparatus and smart mirror

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4012604B1 (en) 2020-12-09 2024-02-21 Chanel Parfums Beauté A method for identifying a lip-makeup product appearing in an image

Citations (7)

* 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
CN102708575A (en) * 2012-05-17 2012-10-03 彭强 Daily makeup design method and system based on face feature region recognition
CN105427238A (en) * 2015-11-30 2016-03-23 维沃移动通信有限公司 Image processing method and mobile terminal
CN106682958A (en) * 2016-11-21 2017-05-17 汕头市智美科技有限公司 Method and device for trying on makeup virtually
CN106960187A (en) * 2017-03-17 2017-07-18 合肥龙图腾信息技术有限公司 Cosmetic navigation system, apparatus and method
CN107431757A (en) * 2015-03-26 2017-12-01 松下知识产权经营株式会社 Image synthesizer and image combining method
CN107506559A (en) * 2017-09-08 2017-12-22 廖海斌 Star's face shaping based on human face similarity degree analysis, which is made up, recommends method and apparatus

Patent Citations (7)

* 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
CN102708575A (en) * 2012-05-17 2012-10-03 彭强 Daily makeup design method and system based on face feature region recognition
CN107431757A (en) * 2015-03-26 2017-12-01 松下知识产权经营株式会社 Image synthesizer and image combining method
CN105427238A (en) * 2015-11-30 2016-03-23 维沃移动通信有限公司 Image processing method and mobile terminal
CN106682958A (en) * 2016-11-21 2017-05-17 汕头市智美科技有限公司 Method and device for trying on makeup virtually
CN106960187A (en) * 2017-03-17 2017-07-18 合肥龙图腾信息技术有限公司 Cosmetic navigation system, apparatus and method
CN107506559A (en) * 2017-09-08 2017-12-22 廖海斌 Star's face shaping based on human face similarity degree analysis, which is made up, recommends method and apparatus

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407912A (en) * 2017-08-16 2019-03-01 丽宝大数据股份有限公司 Electronic device and its offer examination adornment information approach
CN108846792A (en) * 2018-05-23 2018-11-20 腾讯科技(深圳)有限公司 Image processing method, device, electronic equipment and computer-readable medium
CN108846792B (en) * 2018-05-23 2022-05-06 腾讯科技(深圳)有限公司 Image processing method, image processing device, electronic equipment and computer readable medium
CN108765268A (en) * 2018-05-28 2018-11-06 京东方科技集团股份有限公司 A kind of auxiliary cosmetic method, device and smart mirror
WO2019228167A1 (en) * 2018-05-28 2019-12-05 京东方科技集团股份有限公司 Makeup-assisting method and device and intelligent mirror
US11882918B2 (en) 2018-05-28 2024-01-30 Boe Technology Group Co., Ltd. Make-up assistance method and apparatus and smart mirror
CN110728618A (en) * 2018-07-17 2020-01-24 阿里巴巴集团控股有限公司 Virtual makeup trying method, device and equipment and image processing method
CN110728618B (en) * 2018-07-17 2023-06-27 淘宝(中国)软件有限公司 Virtual makeup testing method, device, equipment and image processing method
CN109285026A (en) * 2018-08-08 2019-01-29 颜沿(上海)智能科技有限公司 A kind of carousel data processing system and method
CN109255674A (en) * 2018-08-08 2019-01-22 颜沿(上海)智能科技有限公司 A kind of examination adornment data processing system and method
CN109285026B (en) * 2018-08-08 2021-10-22 颜沿(上海)智能科技有限公司 Shelf data processing system and method
CN109255674B (en) * 2018-08-08 2022-03-04 颜沿(上海)智能科技有限公司 Trial makeup data processing system and method
CN109063671A (en) * 2018-08-20 2018-12-21 三星电子(中国)研发中心 Method and device for intelligent cosmetic
CN109409992A (en) * 2018-10-12 2019-03-01 百度在线网络技术(北京)有限公司 Cosmetics recommended method, device, equipment and computer-readable medium
CN112997477A (en) * 2018-10-29 2021-06-18 索尼集团公司 Display device and display control method
CN111259696A (en) * 2018-11-30 2020-06-09 百度在线网络技术(北京)有限公司 Method and apparatus for displaying image
CN111259695A (en) * 2018-11-30 2020-06-09 百度在线网络技术(北京)有限公司 Method and device for acquiring information
CN111259695B (en) * 2018-11-30 2023-08-29 百度在线网络技术(北京)有限公司 Method and device for acquiring information
CN111259696B (en) * 2018-11-30 2023-08-29 百度在线网络技术(北京)有限公司 Method and device for displaying image
CN109934092A (en) * 2019-01-18 2019-06-25 深圳壹账通智能科技有限公司 Identify color method, apparatus, computer equipment and storage medium
TWI708183B (en) * 2019-03-29 2020-10-21 麗寶大數據股份有限公司 Personalized makeup information recommendation method
CN110766806A (en) * 2019-09-23 2020-02-07 苏州浩哥文化传播有限公司 Cosmetic effect light and shadow projection system based on facial image analysis and working method thereof
CN111047511A (en) * 2019-12-31 2020-04-21 维沃移动通信有限公司 Image processing method and electronic equipment
CN112083863A (en) * 2020-09-17 2020-12-15 维沃移动通信有限公司 Image processing method and device, electronic equipment and readable storage medium
CN112819718A (en) * 2021-02-01 2021-05-18 深圳市商汤科技有限公司 Image processing method and device, electronic device and storage medium
CN113570674A (en) * 2021-07-30 2021-10-29 精诚工坊电子集成技术(北京)有限公司 Skin-beautifying product recommendation method and system and color matching sheet used by same
WO2023045950A1 (en) * 2021-09-27 2023-03-30 上海商汤智能科技有限公司 Image processing method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN108053365B (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN108053365B (en) Method and apparatus for generating information
CN111787242B (en) Method and apparatus for virtual fitting
US10360710B2 (en) Method of establishing virtual makeup data and electronic device using the same
CN110298283B (en) Image material matching method, device, equipment and storage medium
JP6956389B2 (en) Makeup support device and makeup support method
CN104637035B (en) Generate the method, apparatus and system of cartoon human face picture
WO2019024853A1 (en) Image processing method and device, and storage medium
CN110021061A (en) Collocation model building method, dress ornament recommended method, device, medium and terminal
CN106055710A (en) Video-based commodity recommendation method and device
CN108388878A (en) The method and apparatus of face for identification
CN106202317A (en) Method of Commodity Recommendation based on video and device
KR102316723B1 (en) Body-tailored coordinator system using artificial intelligence
KR102185638B1 (en) System of total coordination proposal with most famous full fashion style by using AI and operating method thereof
CN113362263B (en) Method, apparatus, medium and program product for transforming an image of a virtual idol
CN108846792A (en) Image processing method, device, electronic equipment and computer-readable medium
CN113870133B (en) Multimedia display and matching method, device, equipment and medium
EP3896610A1 (en) Information presentation method and device
CN105657249A (en) Image processing method and user terminal
CN111783511A (en) Beauty treatment method, device, terminal and storage medium
CN112819718A (en) Image processing method and device, electronic device and storage medium
CN111523981A (en) Virtual trial method and device, electronic equipment and storage medium
CN107483636A (en) Method and apparatus for pushed information
KR102599194B1 (en) Hair styling service providing system and hair image extraction apparatus and method for extracting hair image using the same
CN109376661A (en) Method and apparatus for output information
CN112488965A (en) Image processing method and 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
GR01 Patent grant
GR01 Patent grant