WO2022083257A1 - 多媒体资源的生成方法及终端 - Google Patents

多媒体资源的生成方法及终端 Download PDF

Info

Publication number
WO2022083257A1
WO2022083257A1 PCT/CN2021/113106 CN2021113106W WO2022083257A1 WO 2022083257 A1 WO2022083257 A1 WO 2022083257A1 CN 2021113106 W CN2021113106 W CN 2021113106W WO 2022083257 A1 WO2022083257 A1 WO 2022083257A1
Authority
WO
WIPO (PCT)
Prior art keywords
makeup
target
interface
virtual
product
Prior art date
Application number
PCT/CN2021/113106
Other languages
English (en)
French (fr)
Inventor
霍继伟
胡柳婷
孙映雪
Original Assignee
北京达佳互联信息技术有限公司
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 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022083257A1 publication Critical patent/WO2022083257A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to a method and a terminal for generating multimedia resources.
  • Makeup products are products that are often used in daily life. Users often need to use make-up products for makeup when shooting videos or images. However, when using makeup products for makeup, it may be inconvenient to try makeup due to the user's unfamiliarity with the makeup process or the influence of the environment where the user is located.
  • the present disclosure provides a method and terminal for generating multimedia resources.
  • a method for generating multimedia resources comprising:
  • the virtual makeup trial interface includes makeup products and currently collected face images
  • a multimedia resource is generated, and the multimedia resource includes the face image after adding the virtual makeup.
  • an apparatus for generating multimedia resources comprising:
  • an interface display unit configured to display a virtual makeup try-on interface, where the virtual makeup-test interface includes currently collected face images and makeup products;
  • a makeup adding unit configured to add virtual makeup to the face image based on the makeup products in the virtual makeup trial interface
  • the resource generation unit is configured to, in response to receiving the photographing instruction, generate a multimedia resource, where the multimedia resource includes the face image after adding the virtual makeup.
  • a terminal comprising:
  • processors one or more processors
  • volatile or nonvolatile memory for storing the one or more processor-executable instructions
  • the one or more processors are configured to execute the above-mentioned method for generating multimedia resources.
  • a non-transitory computer-readable storage medium when instructions in the storage medium are executed by a processor of a terminal, the terminal can execute the foregoing method for generating multimedia resources.
  • a computer program product when instructions in the computer program product are executed by a processor of a terminal, the terminal can execute the above-mentioned method for generating multimedia resources.
  • a makeup product is used to add virtual makeup to a human face image, so as to realize a virtual makeup test, thereby showing the user the top quality of the makeup product. makeup effect.
  • the multimedia resources can also be photographed directly in the virtual makeup-testing interface, thereby improving the efficiency of generating the multimedia resources.
  • Fig. 1 is a flowchart of a method for generating multimedia resources according to an exemplary embodiment.
  • Fig. 2 is a flowchart of another method for generating multimedia resources according to an exemplary embodiment.
  • Fig. 3 is a schematic diagram of an information display interface according to an exemplary embodiment.
  • Fig. 4 is a schematic diagram of a virtual makeup try-on interface according to an exemplary embodiment.
  • Fig. 5 is a schematic diagram of a publishing interface according to an exemplary embodiment.
  • Fig. 6 is a block diagram of an apparatus for generating multimedia resources according to an exemplary embodiment.
  • Fig. 7 is a block diagram of another apparatus for generating multimedia resources according to an exemplary embodiment.
  • Fig. 8 is a block diagram of a terminal according to an exemplary embodiment.
  • user information including but not limited to user equipment information, user personal information, etc.
  • data involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
  • the method for generating multimedia resources provided by the embodiments of the present disclosure is applied in various scenarios.
  • the multimedia resources provided by the embodiments of the present disclosure can be used.
  • the resource generation method allows more users to perform virtual makeup try-ons, so that more users can shoot and publish multimedia resources to improve the publicity effect.
  • FIG. 1 is a flowchart of a method for generating multimedia resources according to an exemplary embodiment. Referring to FIG. 1 , the method is executed by a terminal and includes the following steps:
  • the terminal displays a virtual makeup test interface, where the virtual makeup test interface includes makeup products and currently collected face images.
  • the terminal adds virtual makeup to the face image based on the makeup product in the virtual makeup trial interface.
  • the terminal generates a multimedia resource in response to receiving the photographing instruction, where the multimedia resource includes a face image after adding virtual makeup.
  • a makeup product is used to add a virtual makeup look to a face image, and a virtual makeup test is performed, thereby displaying the makeup effect of the makeup product to the user.
  • the multimedia resources can also be photographed directly in the virtual makeup-testing interface, thereby improving the efficiency of generating the multimedia resources.
  • the multimedia resource includes a video
  • the virtual makeup try-on interface includes a video shooting control, and in response to receiving the shooting instruction, the multimedia resource is generated, including:
  • a target video is generated, and the target video includes a face image after adding virtual makeup.
  • generating a target video in response to a triggering operation on a video capture control includes:
  • a target video is generated based on the plurality of video frames.
  • the face image includes a face area and a background area, and based on the makeup products in the virtual makeup try-on interface, adding virtual makeup to the face image includes:
  • the virtual makeup corresponding to the target makeup product is added to the face area in the face image.
  • the face area includes a plurality of makeup trial areas
  • the target cosmetic product includes a plurality of makeup products. Based on the target makeup product, a virtual makeup look corresponding to the target makeup product is added to the face image, including:
  • a virtual makeup look corresponding to the target makeup product is added to the makeup trial area that matches each target makeup product.
  • the generating method further includes:
  • the target cosmetic product is updated to another cosmetic product belonging to the same category as the target cosmetic product in response to the first target part in the face image performing the target action.
  • the generating method further includes:
  • the target cosmetic product includes multiple, and virtual elements corresponding to the target cosmetic product are added to the face image, including:
  • the generating method further includes:
  • the virtual element In response to the movement operation of the second target part in the face image, the virtual element is moved synchronously based on the movement operation.
  • the multimedia resource includes an image
  • the virtual makeup try-on interface includes an image capture control, and in response to receiving the capture instruction, the multimedia resource is generated, including:
  • a target image is generated, and the target image is a face image after adding virtual makeup.
  • a virtual makeup trial interface is displayed, including:
  • the information display interface includes product information corresponding to cosmetic products and makeup trial controls;
  • the virtual try-on interface is displayed.
  • the generating method further includes:
  • Multimedia resources corresponding to makeup products are displayed in the information display interface, and the multimedia resources include face images obtained by adding virtual makeup based on the corresponding makeup products.
  • the generating method further includes:
  • the information display interface has a corresponding active label
  • the information display interface is used to display multimedia resources with active labels
  • the multimedia resources are published in the information display interface, including:
  • the generating method further includes:
  • a publishing interface is displayed, and the multimedia resource is published in response to a publishing operation in the publishing interface.
  • the publishing interface includes an editing area
  • the generating method further includes:
  • publish multimedia resources including:
  • the multimedia resource and the textual content are published.
  • Fig. 2 is a flow chart of another method for generating multimedia resources according to an exemplary embodiment.
  • the method is executed by a terminal, and the terminal is a portable, pocket, hand-held and other various types of terminals, such as Mobile phones, computers, tablet computers, etc., the method includes the following steps:
  • the terminal displays a virtual makeup trial interface.
  • the virtual makeup trial interface includes makeup products and currently collected face images, and the makeup product includes at least one makeup product. Products belong to the same brand or different brands.
  • the face image includes a face area and a background area
  • the background area refers to the area other than the face area in the face image.
  • the background area is the background wall behind the user, other than the face area of the user body parts.
  • a target application is installed on the terminal, and the terminal displays a virtual makeup trial interface through the target application.
  • the target applications are e-commerce platform applications, short video applications, etc.
  • the terminal displays an information display interface; in response to a trigger operation on a makeup trial control in the information display interface, a virtual makeup trial interface is displayed.
  • the information display interface is an H5 interface or other types of pages.
  • the information display interface includes product information corresponding to cosmetic products, and product information is used to introduce cosmetic products.
  • product information is the category, color, brand and other information of cosmetic products.
  • the information includes information in the form of text content, multimedia resources, etc., and the multimedia resources include pictures, audio or video, etc., the multimedia resources are taken by the user after applying makeup with makeup products and published on the information display interface, or are provided by this disclosure.
  • the generation method of the multimedia resources is generated and published on the information display interface.
  • the virtual makeup test interface includes the makeup products introduced in the information display interface, which is convenient for the user to test makeup on the makeup products.
  • the makeup trial control is located at any position in the information display interface, for example, at the bottom and top of the information display interface.
  • the user triggers an activity icon
  • the terminal displays an information display interface corresponding to the activity icon in response to the triggering operation on the activity icon
  • the user searches for the activity name in the target application, and the terminal responds to the search operation for the activity name , displays the information display interface corresponding to the activity name
  • the user clicks the activity link and the terminal displays the corresponding information display interface in response to the click operation on the activity link
  • the terminal scans the graphic code and displays the information display interface corresponding to the graphic code
  • the terminal can also display the information display interface in other ways.
  • the information display interface displays cosmetic products of a certain brand and “promotional works”, and the “promotional works” include the introduction of cosmetic products or videos of using cosmetic products taken by the user. Be able to learn about product information by watching videos.
  • the “promotional works” include the introduction of cosmetic products or videos of using cosmetic products taken by the user. Be able to learn about product information by watching videos.
  • At the bottom of the information display interface there is an option of "Try Color Now". The user clicks the "Test Color Now" option to enter the virtual makeup test interface.
  • the virtual makeup trial interface includes multiple category options, and in response to a triggering operation for any category option, the terminal displays multiple makeup products corresponding to the triggered category option in the virtual makeup trial interface, that is, belonging to the category option.
  • Category options correspond to multiple makeup products of the category.
  • category options include options for lipstick, liquid foundation, eye shadow, brow pencil, blush, highlighter, and more.
  • each category option further includes a plurality of subcategory options
  • each subcategory option includes a plurality of cosmetic products belonging to the corresponding subcategory.
  • lipsticks include lipsticks, lip glosses, lip glosses, and the like.
  • the virtual makeup trial interface includes a product icon and a product name corresponding to the makeup product, where the product icon is the color of the makeup product.
  • the virtual makeup trial interface includes four categories: lipstick, liquid foundation, eye shadow, and eyebrow pencil.
  • the lipstick category includes two subcategories of lipstick and lip glaze, and the lipstick category includes "no ” and four color products, “None” means no makeup product is selected for trial makeup.
  • only lipsticks of "none" and four colors are displayed, and the user can slide the product icon to display other products.
  • the terminal determines the target makeup product selected from the virtual makeup trial interface.
  • the user Before applying makeup using the makeup products in the virtual makeup trial interface, the user selects the target makeup product to be used, and the user can select one or more target makeup products.
  • the user clicks on any cosmetic product displayed in the virtual makeup trial interface, and the terminal determines the cosmetic product as the target cosmetic product in response to the click operation on the cosmetic product. After that, when the user has selected the target cosmetic product, if he wants to try makeup on other cosmetic products of the same category, the user clicks on the other cosmetic product, and the terminal determines the other cosmetic product clicked by the user as the updated target cosmetic product .
  • the terminal updates the target cosmetic product to another cosmetic product belonging to the same category as the target cosmetic product in response to the first target part in the face image performing the target action Product, that is, the switch to the target cosmetic product is realized through the target action.
  • the target action is a nodding operation or a shaking head operation; or if the first target part is a human eye in the face image, then the target action is a blinking operation; or, the first target part If it is a hand, the target actions are waving hands, bending fingers and other operations.
  • the target cosmetic product and another cosmetic product are products under the same category option, for example, the target cosmetic product and the other cosmetic product are both lipsticks and belong to the lipstick category; or the target cosmetic product and the other cosmetic product are in the same subcategory Products under the options, for example, Target Makeup Product and Another Makeup Product are lipstick subcategories.
  • the other cosmetic product is any cosmetic product among the plurality of cosmetic products except the target cosmetic product; or the other cosmetic product is the next cosmetic product of the target cosmetic product, if the target cosmetic product is the last cosmetic product among the plurality of cosmetic products cosmetic product, the other cosmetic product is the first cosmetic product.
  • the user can also cancel the selection of the target cosmetic product.
  • the user performs a click operation on the target cosmetic product again, and the terminal cancels the selection of the target cosmetic product in response to the click operation; ”, the terminal cancels the selection of the target cosmetic product in response to the click operation of the icon.
  • the virtual makeup try-on interface includes multiple categories of makeup products.
  • the terminal selects a target cosmetic product from a plurality of cosmetic products in any category, then switches to a cosmetic product of another category, and then selects a target cosmetic product from a plurality of cosmetic products in another category, thereby selecting a plurality of target cosmetic products products, and multiple target makeup products belong to different categories, so that users can experience the makeup effects of makeup products of multiple categories at the same time, check the effect of the combination of multiple virtual makeup looks, and improve the efficiency of virtual makeup trial.
  • the user switches the category by clicking the category option.
  • the user can select multiple target makeup products in the category, and when adding virtual makeup to the face image later, the multiple target makeup products can be superimposed together, or added to the different face regions of the face image.
  • the terminal displays the virtual makeup trial interface for the first time, and when the user has not selected the target makeup product, the default target makeup product selected by the terminal is none, or the first makeup product under the first category option.
  • the terminal Based on the target makeup product, the terminal adds a virtual makeup look corresponding to the target makeup product to the face region in the face image.
  • the terminal After selecting the target makeup product, the terminal applies makeup to the face area in the face image according to the selected target makeup product.
  • the terminal determines a makeup trial area in the face image that matches the target makeup product; according to the target makeup product, a virtual makeup look corresponding to the target makeup product is added to the trial makeup area.
  • the makeup trial area is an area where makeup can be added and determined by the terminal by recognizing the face image after detecting the appearance of the face image in the virtual makeup trial interface.
  • the makeup trial area includes areas such as lips, eyes, and eyebrows.
  • the virtual makeup refers to the virtual makeup effect after applying makeup with a makeup product. That is, based on the area corresponding to the makeup test area and the makeup test parameters corresponding to the target makeup product (such as the color of the target makeup product), the corresponding makeup effect is added to the makeup test area to achieve a virtual makeup test effect. .
  • the terminal adds virtual makeup according to the identified makeup test area and the color corresponding to the target makeup product. For example, if the target makeup product selected by the user is a lipstick, the terminal adds a lipstick of the corresponding color to the lips in the face image based on the lipstick color selected by the user to achieve a makeup effect.
  • the terminal pre-sets multiple makeup templates corresponding to each category of makeup products, the terminal identifies the makeup trial area in the face image and the current state of each area, and selects the target matching the current state.
  • Makeup template add the target makeup template in the makeup test area to achieve the makeup effect.
  • each makeup look template corresponds to a different state, for example, a lipstick has a makeup look template corresponding to a closed mouth state, a makeup look template corresponding to an open mouth state, a makeup look template corresponding to a smiling state, and the like.
  • a lipstick template corresponding to the open mouth state is selected and added to the lips to achieve a makeup effect.
  • the above-mentioned method of using makeup template for virtual makeup test can select a suitable makeup template according to the state of the face image, which improves the flexibility of virtual makeup test.
  • the face image is more realistic and natural.
  • the terminal after the terminal adds virtual makeup to the face image, if the face moves, the terminal will re-detect the makeup trial area in the face image, so that the virtual makeup moves with the movement of the face image, or if the face moves
  • the shape of the virtual makeup will also change, ensuring that the virtual makeup is in the corresponding makeup test area.
  • the face area includes a plurality of makeup test areas, each makeup test area can add a corresponding virtual makeup, the selected target makeup products include multiple, and the multiple target makeup products belong to different categories
  • the terminal determines a makeup test area that matches each target makeup product from multiple makeup test areas in the face area, and adds the target makeup product to the test makeup areas that match each target makeup product. Corresponding virtual makeup, so as to realize the combined makeup application of multiple target makeup products, so that the user can experience the makeup effect of multiple makeup products at the same time.
  • the multiple target cosmetic products are superimposed together, and the color corresponding to the first selected target cosmetic product is set on the bottom layer, and then based on the color, add The color of the target makeup product selected later; or the color of one target makeup product is displayed in the left area of the face image, and the color of another target makeup product is displayed in the right area to form a contrast; or different makeup products are preset
  • the combined color of the products, or other methods are used to display the virtual makeup corresponding to multiple target makeup products in the face image.
  • the virtual makeup try-on interface further includes a link display area for displaying product links of makeup products.
  • the product link of the target cosmetic product will be displayed in the virtual makeup trial interface.
  • the product interface is used to display product information. and purchase links, users can learn product information or purchase cosmetic products through the product interface.
  • the link display area has a corresponding hide button. Clicking the hide button can hide the link display area.
  • the terminal displays the product interface through the target application, or jumps to another application to display the product interface through another application.
  • each cosmetic product has a corresponding virtual element
  • the virtual elements corresponding to different cosmetic products are the same or different.
  • the terminal After determining the selected target cosmetic product, the terminal adds virtual elements corresponding to the target cosmetic product to the face image.
  • virtual elements include stickers, special effects, magic expressions, etc.
  • the terminal determines the last selected target makeup product among the multiple target makeup products; and adds a virtual element corresponding to the last selected target makeup product to the face image. That is, after the terminal selects a target cosmetic product, the virtual element corresponding to the target cosmetic product is added, and after the terminal selects another target cosmetic product, the virtual element corresponding to another target cosmetic product is used to replace the original virtual element to And so on, so that the virtual element displayed on the terminal is the virtual element corresponding to the last selected target cosmetic product.
  • the terminal moves the virtual element synchronously according to the movement operation in response to the movement operation of the second target part in the face image.
  • the second target part and the first target part may be the same or different.
  • the process of adding the virtual makeup corresponding to the target makeup product to the face area involved in the above step 203 is used to provide a preview function, that is, after the terminal adds the virtual makeup to the face area, it is displayed on the virtual makeup test interface.
  • the face image after the virtual makeup is added, so that the user can judge whether the currently selected target makeup product meets his needs, and then adjust according to the makeup trial effect, so that after finally determining his satisfactory makeup, go through the following steps 204 , to capture multimedia resources.
  • the terminal generates a multimedia resource in response to receiving the photographing instruction.
  • the terminal After receiving the shooting instruction, the terminal performs shooting in the virtual makeup trial interface, wherein the shooting instruction instructs the terminal to shoot the face image in the virtual makeup trial interface, and the purpose of shooting is to generate multimedia resources, and the multimedia resources include adding virtual makeup. post face image.
  • the multimedia resource includes a video
  • the virtual makeup try-on interface includes a video shooting control
  • the terminal generates a target video in response to a triggering operation on the video shooting control
  • the target video includes a face image after adding virtual makeup
  • the generation process of the target video includes: the terminal, in response to the click operation on the video shooting control, shoots multiple face images, adds virtual makeup to the multiple face images obtained by shooting, and obtains multiple video frames; in response to the video shooting A second click of the control generates a target video based on multiple video frames.
  • the terminal responds to the click operation on the video capture control, captures a human face image, and adds a target makeup product corresponding to the captured face image. to generate a video frame, and then continue to shoot the next face image, and then add the virtual makeup corresponding to the target makeup product in the next face image to generate the next video frame, and execute the above process of generating video frames in turn.
  • the terminal ends the recording, and generates a target video including multiple video frames.
  • the photographing time interval between any two adjacent face images is the same, and the photographing time interval is any length of time, for example, 0.02 seconds, 0.1 seconds, and the like.
  • the terminal shoots multiple face images in response to a click operation on the video shooting control;
  • the multiple face images obtained by shooting are respectively added with virtual makeup to obtain multiple video frames, so as to generate a target video based on the multiple video frames.
  • the terminal continuously shoots multiple face images, and after shooting multiple face images, adds virtual makeup to the multiple face images to generate a target video.
  • the multimedia resources include images
  • the virtual makeup try-on interface includes image capture controls.
  • the target image, the target image is the face image after adding virtual makeup.
  • the terminal captures a face image through a camera, adds virtual makeup to the captured face image, and generates a target image.
  • the terminal to generate the target video or the target image in response to the click operation on the controls in the virtual makeup try-on interface as an example.
  • the terminal generates the target video in response to detecting the target operation. or target image.
  • the target operation is a shaking operation on the terminal, or a sliding operation, a single-click operation, a double-click operation and other operations of the user's finger on the virtual makeup trial interface.
  • the terminal generates a target video or a target image in response to detecting the target voice. For example, if the terminal detects that the target voice is "take a video", it generates a target video, or the terminal detects that the target voice is "take a photo", and then generates a target image.
  • the terminal saves the multimedia resource after generating the multimedia resource.
  • the generated multimedia resource in the case of adding a virtual element as described above, when a multimedia resource is generated, the generated multimedia resource also includes a virtual element.
  • the terminal displays the multimedia resources corresponding to the cosmetic product in the information display interface.
  • the multimedia resource includes a face image obtained by adding virtual makeup based on a corresponding makeup product.
  • the information display interface includes promotion works and color test works.
  • Promotion works are multimedia resources released by brands or event parties and used to promote makeup products, such as videos shot by Internet celebrities; color test works
  • the multimedia resources released by the user in addition to being generated by the above-mentioned embodiments, can also be photographed and released by the user after applying makeup using a cosmetic product.
  • promotion works and color test works are combined, which enriches the multimedia resources in the information display interface, and enables users to browse more multimedia resources, thereby expanding publicity.
  • the terminal after generating the multimedia resource, publishes the generated multimedia resource in the information display interface for other users to browse the published multimedia resource.
  • the publishing process of the multimedia resource includes: after the terminal generates the multimedia resource, jumping from the virtual makeup trial interface to the publishing interface, so as to realize the display of the publishing interface, and the terminal publishes the multimedia resource in response to the publishing operation in the publishing interface.
  • the publishing interface includes an editing area
  • the terminal acquires the text content input in the editing area; and in response to a publishing operation in the publishing interface, publishes the multimedia resource and the text content.
  • the text content is used to describe the multimedia resource or a label related to the multimedia resource. For example, referring to the publishing interface shown in FIG. 5 , the user inputs "#xx e-commerce section#" in the editing area, and the user clicks the publishing control to publish multimedia resources and "#xx e-commerce section#".
  • the publishing interface further includes a label selection area, the label selection area includes a plurality of alternative labels for the user to choose freely; the publishing interface further includes a location selection area, the location selection area includes the alternative labels
  • the multiple locations are the user's current location and nearby locations; the publishing interface also includes a personalized setting area, which can set the visible objects of the published multimedia resources, including "public (everyone)" Visible)", “Friends (visible only by friends)” and “Private (visible only by oneself)”; the publishing interface also includes a save control, the user triggers the save control, and the terminal saves the generated multimedia resources to the album.
  • the multimedia resource is released according to the set content.
  • the publishing interface includes publishing controls.
  • the terminal publishes multimedia resources in response to a publishing operation in the publishing interface, which may be implemented as: the terminal publishes multimedia resources in response to a triggering operation on the publishing controls.
  • the terminal can display the multimedia resources published by the user on the information display interface.
  • the information display interface has a corresponding activity label
  • the information display interface is used to display multimedia resources with the activity label
  • the terminal adds activity labels to the multimedia resources; in the information display interface, the multimedia resources with the activity labels added are published.
  • the virtual makeup test interface is entered through the makeup test control in the information display interface, after generating the multimedia resource, the terminal determines the corresponding activity label according to the information display interface, and adds the activity label to the multimedia resource. For example, if the activity is "XX E-commerce Festival", add the activity label "XX E-commerce Festival" to the multimedia resource.
  • the terminal adds a cosmetic product label corresponding to the cosmetic product to the multimedia resource based on the selected target cosmetic product.
  • the cosmetic product label is the category, brand, product name, etc. of the cosmetic product.
  • the user inputs a resource label
  • the terminal adds the resource label input by the user to the multimedia resource, wherein the resource label is the same as or different from the above-mentioned activity label, and in addition, the resource label is the same as or different from the above-mentioned cosmetic product label.
  • the above method of adding corresponding activity tags, cosmetic product tags or resource tags to multimedia resources can aggregate the multimedia resources belonging to the same tag, and facilitate the user to search for the corresponding multimedia resources by using the tags.
  • a makeup product is used to add a virtual makeup look to a face image, and a virtual makeup test is performed, thereby displaying the makeup effect of the makeup product to the user.
  • the multimedia resources can also be photographed directly in the virtual makeup-testing interface, thereby improving the efficiency of generating the multimedia resources.
  • more users can use this method to generate multimedia resources, publish more multimedia resources, and realize UGC (User Generated Content, user-generated content) aggregation, thereby expanding the promotion of activities or cosmetic products, and enriching information display.
  • UGC User Generated Content, user-generated content
  • the content of the interface also promotes the creation of original content.
  • multiple categories of target cosmetic products can be selected, so that the user can experience multiple cosmetic products at the same time, and can also view the combined effect of multiple virtual makeup looks.
  • by adopting the method of executing the target action it is more convenient to switch the selected target cosmetic product, and the selection efficiency can be improved.
  • Fig. 6 is a block diagram of an apparatus for generating multimedia resources according to an exemplary embodiment.
  • the apparatus includes an interface display unit 601 , a makeup adding unit 602 and a resource generating unit 603 .
  • the interface display unit 601 is configured to display a virtual makeup test interface, and the virtual makeup test interface includes makeup products and currently collected face images;
  • makeup adding unit 602 configured to add virtual makeup to the face image based on the makeup products in the virtual makeup trial interface
  • the resource generating unit 603 is configured to, in response to receiving the photographing instruction, generate a multimedia resource, where the multimedia resource includes a face image after adding virtual makeup.
  • a makeup product is used to add a virtual makeup look to a face image, and a virtual makeup test is performed, thereby displaying the makeup effect of the makeup product to the user.
  • the multimedia resources can also be photographed directly in the virtual makeup-testing interface, thereby improving the efficiency of generating the multimedia resources.
  • the multimedia resource includes video
  • the virtual makeup trial interface includes video capture controls
  • the resource generating unit 603 is configured to generate a target video in response to a triggering operation of the video shooting control, where the target video includes a face image after adding virtual makeup.
  • generating a target video in response to a triggering operation on a video capture control includes:
  • a target video is generated based on the plurality of video frames.
  • the face image includes a face area and a background area.
  • the makeup adding unit 602 includes:
  • the product selection subunit 6021 is configured to determine the target makeup product selected from the virtual makeup trial interface
  • the makeup adding subunit 6022 is configured to add virtual makeup corresponding to the target makeup product to the face region in the face image based on the target makeup product.
  • the face area includes a plurality of makeup test areas
  • the target cosmetic product includes a plurality of target cosmetics.
  • the makeup adding subunit 6022 is configured as:
  • a virtual makeup look corresponding to the target makeup product is added to the makeup trial area that matches each target makeup product.
  • the product selection subunit 6021 is further configured to, when the target cosmetic product has been selected, perform the target action in response to the first target part in the face image, and update the target cosmetic product is another cosmetic product in the same category as the target cosmetic product.
  • the generating apparatus further includes:
  • the element adding unit 604 is configured to perform adding virtual elements corresponding to the target cosmetic product to the face image.
  • the element adding unit 604 is configured to:
  • the generating apparatus further includes:
  • the element moving unit 605 is configured to move the virtual element synchronously based on the moving operation in response to the moving operation of the second target part in the face image.
  • the multimedia resource includes an image
  • the virtual makeup try-on interface includes an image capture control
  • the resource generating unit 603 is configured to generate a target image in response to a triggering operation of the image capturing control, where the target image is a face image after adding virtual makeup.
  • the interface display unit 601 is configured to:
  • the information display interface includes product information corresponding to cosmetic products and makeup trial controls;
  • the virtual try-on interface is displayed.
  • the generating apparatus further includes:
  • the resource display unit 606 is configured to display multimedia resources corresponding to makeup products in the information display interface, where the multimedia resources include face images obtained by adding virtual makeup based on the corresponding makeup products.
  • the generating apparatus further includes:
  • the resource publishing unit 607 is configured to publish multimedia resources in the information display interface.
  • the information display interface has a corresponding active label, and the information display interface is used to display multimedia resources with active labels.
  • the resource publishing unit 606 is configured as:
  • the generating apparatus further includes:
  • the label adding unit 608 is configured to add cosmetic product labels corresponding to cosmetic products to the multimedia resource.
  • the resource publishing unit 607 is further configured to display a publishing interface, and publish multimedia resources in response to a publishing operation in the publishing interface.
  • the publishing interface includes an editing area.
  • the generating apparatus further includes:
  • the editing unit 609 is configured to obtain the text content input in the editing area
  • the resource publishing unit 606 is further configured to publish multimedia resources and text content in response to a publishing operation in the publishing interface.
  • FIG. 8 is a structural block diagram of a terminal 800 according to an exemplary embodiment.
  • the terminal 800 is a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, moving picture expert compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, moving picture Expert Compression Standard Audio Layer 4) Player, Laptop or Desktop.
  • Terminal 800 may also be called user equipment, portable terminal, laptop terminal, desktop terminal, and the like by other names.
  • the terminal 800 includes: a processor 801 and a memory 802 .
  • the processor 801 includes one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 801 is implemented by at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array).
  • the processor 801 also includes a main processor and a coprocessor.
  • the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); A low-power processor for processing data in a standby state.
  • the processor 801 is integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen.
  • the processor 801 further includes an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • Memory 802 includes one or more computer-readable storage media that are non-transitory. Memory 802 also includes high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, a non-transitory computer-readable storage medium in the memory 802 is used to store at least one piece of program code, and the at least one piece of program code is used to be executed by the processor 801 to implement the methods provided by the method embodiments of the present disclosure. A method for generating multimedia resources.
  • the terminal 800 further includes: a peripheral device interface 803 and at least one peripheral device.
  • the processor 801, the memory 802 and the peripheral device interface 803 are connected through a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 803 through a bus, a signal line or a circuit board.
  • the peripheral device includes at least one of: a radio frequency circuit 804 , a display screen 805 , a camera assembly 806 , an audio circuit 807 , a positioning assembly 808 , and a power supply 809 .
  • the peripheral device interface 803 can be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 801 and the memory 802 .
  • processor 801, memory 802, and peripherals interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one of processor 801, memory 802, and peripherals interface 803 or The two are implemented on a separate chip or circuit board, which is not limited by the embodiments of the present disclosure.
  • the radio frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals.
  • the radio frequency circuit 804 communicates with the communication network and other communication devices via electromagnetic signals.
  • the radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • radio frequency circuitry 804 includes an antenna system, an RF transceiver, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and the like.
  • the radio frequency circuit 804 communicates with other terminals through at least one wireless communication protocol.
  • the wireless communication protocol includes but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area network and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.
  • the radio frequency circuit 804 further includes a circuit related to NFC (Near Field Communication, short-range wireless communication), which is not limited in the present disclosure.
  • the display screen 805 is used to display UI (User Interface, user interface).
  • the UI includes graphics, text, icons, video, and any combination thereof.
  • display screen 805 is a touch display screen, display screen 805 also has the ability to acquire touch signals on or above the surface of display screen 805 .
  • the touch signal can be input to the processor 801 as a control signal for processing.
  • the display screen 805 can also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards.
  • the display screen 805 there is one display screen 805, which is arranged on the front panel of the terminal 800; in other embodiments, there are at least two display screens 805, which are respectively arranged on different surfaces of the terminal 800 or in a folded design;
  • the display screen 805 is a flexible display screen disposed on a curved or folded surface of the terminal 800 .
  • the display screen 805 is set as a non-rectangular irregular figure, that is, a special-shaped screen.
  • the display screen 805 is made of materials such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
  • the camera assembly 806 is used to capture images or video.
  • camera assembly 806 includes a front-facing camera and a rear-facing camera.
  • the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal.
  • there are at least two rear cameras which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function, the main camera It is integrated with the wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other integrated shooting functions.
  • camera assembly 806 also includes a flash.
  • the flash is a single color temperature flash, or alternatively, the flash is a dual color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
  • Audio circuit 807 includes a microphone and a speaker.
  • the microphone is used to collect the sound waves of the user and the environment, convert the sound waves into electrical signals, and input them to the processor 801 for processing, or to the radio frequency circuit 804 to realize voice communication.
  • the processor 801 for processing or to the radio frequency circuit 804 to realize voice communication.
  • the microphones are array microphones or omnidirectional acquisition microphones.
  • the speaker is used to convert the electrical signal from the processor 801 or the radio frequency circuit 804 into sound waves.
  • the loudspeaker is a conventional thin-film loudspeaker, or alternatively, the loudspeaker is a piezoelectric ceramic loudspeaker.
  • the loudspeaker When the loudspeaker is a piezoelectric ceramic loudspeaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as distance measurement.
  • the audio circuit 807 also includes a headphone jack.
  • the positioning component 808 is used to locate the current geographic location of the terminal 800 to implement navigation or LBS (Location Based Service, location-based service).
  • the positioning component 808 is a positioning component based on the GPS (Global Positioning System, global positioning system) of the United States, the Beidou system of China, the Grenas positioning system of Russia, or the Galileo positioning system of the European Union.
  • the power supply 809 is used to power various components in the terminal 800 .
  • the power source 809 is alternating current, direct current, a primary battery or a rechargeable battery.
  • the rechargeable battery is a wired rechargeable battery or a wireless rechargeable battery.
  • Wired rechargeable batteries are batteries that are charged through wired lines
  • wireless rechargeable batteries are batteries that are charged through wireless coils.
  • the rechargeable battery can also be used to support fast charging technology.
  • terminal 800 also includes one or more sensors 810 .
  • the one or more sensors 810 include, but are not limited to, an acceleration sensor 811 , a gyro sensor 812 , a pressure sensor 813 , a fingerprint sensor 814 , an optical sensor 815 , and a proximity sensor 816 .
  • the acceleration sensor 811 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 800 .
  • the acceleration sensor 811 can be used to detect the components of the gravitational acceleration on the three coordinate axes.
  • the processor 801 can control the display screen 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811 .
  • the acceleration sensor 811 can also be used for game or user movement data collection.
  • the gyroscope sensor 812 can detect the body direction and rotation angle of the terminal 800 , and the gyroscope sensor 812 can cooperate with the acceleration sensor 811 to collect 3D actions of the user on the terminal 800 .
  • the processor 801 can implement the following functions according to the data collected by the gyro sensor 812 : motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 813 is disposed on the side frame of the terminal 800 and/or the lower layer of the display screen 805 .
  • the processor 801 can perform left and right hand identification or shortcut operations according to the holding signal collected by the pressure sensor 813 .
  • the processor 801 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 805 .
  • the operability controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
  • the fingerprint sensor 814 is used to collect the user's fingerprint, and the processor 801 identifies the user's identity according to the fingerprint collected by the fingerprint sensor 814 , or the fingerprint sensor 814 identifies the user's identity according to the collected fingerprint. In the case that the identity of the user is identified as a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings.
  • the fingerprint sensor 814 is disposed on the front, back or side of the terminal 800 . In the case where the terminal 800 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 814 is integrated with the physical button or the manufacturer's logo.
  • Optical sensor 815 is used to collect ambient light intensity.
  • the processor 801 can control the display brightness of the display screen 805 according to the ambient light intensity collected by the optical sensor 815 . In some embodiments, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display screen 805 is decreased. In another embodiment, the processor 801 can also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 815 .
  • a proximity sensor 816 also called a distance sensor, is provided on the front panel of the terminal 800 .
  • the proximity sensor 816 is used to collect the distance between the user and the front of the terminal 800 .
  • the processor 801 controls the display screen 805 to switch from the bright screen state to the off screen state; 816 detects that the distance between the user and the front of the terminal 800 gradually increases, the processor 801 controls the display screen 805 to switch from the screen-off state to the screen-on state.
  • the structure shown in FIG. 8 does not constitute a limitation on the terminal 800.
  • the terminal 800 includes more or less components than the one shown, or some components are combined, or Use different component arrangements.
  • a non-transitory computer-readable storage medium is also provided.
  • the terminal can execute the above-mentioned method for generating multimedia resources.
  • the storage medium is a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium is ROM (Read Only Memory), RAM (Random Access Memory, Random Access Memory) ), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk and optical data storage devices, etc.
  • a computer program product is also provided, when the program code in the computer program product is executed by the processor of the terminal, the terminal can execute the steps performed by the terminal in the above-mentioned method for generating multimedia resources.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种多媒体资源的生成方法、装置、终端及存储介质,属于计算机技术领域。方法包括:显示虚拟试妆界面,虚拟试妆界面包括化妆产品和当前采集的人脸图像(101);基于虚拟试妆界面中的化妆产品,为人脸图像添加虚拟妆容(102);终端响应于接收到拍摄指令,生成多媒体资源,多媒体资源包括添加虚拟妆容后的人脸图像 (103)。

Description

多媒体资源的生成方法及终端
本公开要求于2020年10月21日提交的申请号为202011133858.7的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及计算机技术领域,尤其涉及一种多媒体资源的生成方法及终端。
背景技术
化妆产品是日常生活中经常使用的一种产品,用户在拍摄视频或者图像时,常需要使用化妆产品进行化妆。但是,在使用化妆产品进行化妆时,由于用户对化妆过程不熟悉或用户所处环境的影响,会导致试妆不方便。
发明内容
本公开提供了一种多媒体资源的生成方法及终端。
根据本公开的实施例的一方面,提供一种多媒体资源的生成方法,该方法包括:
显示虚拟试妆界面,该虚拟试妆界面包括化妆产品和当前采集的人脸图像;
基于该虚拟试妆界面中的化妆产品,为该人脸图像添加虚拟妆容;
响应于接收到拍摄指令,生成多媒体资源,该多媒体资源包括添加该虚拟妆容后的该人脸图像。
根据本公开的实施例的再一方面,提供一种多媒体资源的生成装置,该装置包括:
界面显示单元,被配置为显示虚拟试妆界面,该虚拟试妆界面包括当前采集的人脸图像和化妆产品;
妆容添加单元,被配置为基于该虚拟试妆界面中的化妆产品,为该人脸图像添加虚拟妆容;
资源生成单元,被配置为响应于接收到拍摄指令,生成多媒体资源,该多媒体资源包括添加该虚拟妆容后的该人脸图像。
根据本公开的实施例的再一方面,提供了一种终端,该终端包括:
一个或多个处理器;
用于存储该一个或多个处理器可执行指令的易失性或非易失性存储器;
其中,该一个或多个处理器被配置为执行上述多媒体资源的生成方法。
根据本公开的实施例的再一方面,提供一种非临时性计算机可读存储介质,当该存储介质中的指令由终端的处理器执行时,使得终端能够执行上述多媒体资源的生成方法。
根据本公开的实施例的再一方面,提供一种计算机程序产品,当该计算机程序产品中的指令由终端的处理器执行时,使得终端能够执行上述多媒体资源的生成方法。
本公开的实施例提供的多媒体资源的生成方法、装置、终端及存储介质,在虚拟试妆界面,利用化妆产品为人脸图像添加虚拟妆容,以实现虚拟试妆,从而向用户展示化妆产品的上妆效果。并且,在实现虚拟试妆的同时,还能够直接在虚拟试妆界面中拍摄多媒体资源,提高生成多媒体资源的效率。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种多媒体资源的生成方法的流程图。
图2是根据一示例性实施例示出的另一种多媒体资源的生成方法的流程图。
图3是根据一示例性实施例示出的一种信息展示界面的示意图。
图4是根据一示例性实施例示出的一种虚拟试妆界面的示意图。
图5是根据一示例性实施例示出的一种发布界面的示意图。
图6是根据一示例性实施例示出的一种多媒体资源的生成装置的框图。
图7是根据一示例性实施例示出的另一种多媒体资源的生成装置的框图。
图8是根据一示例性实施例示出的一种终端的框图。
具体实施方式
需要说明的是,本公开所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据,均为经用户授权或者经过各方充分授权的信息和数据。
本公开的实施例提供的多媒体资源的生成方法,应用于多种场景下。
例如,应用于虚拟试妆场景下。用户在电商平台上购买化妆产品之前,无法试色,不能够确定想要购买的化妆产品是否合适,此时,能够采用本公开的实施例提供的多媒体资源的生成方法,选取想要购买的化妆产品进行虚拟试妆,从而能够方便地进行试妆,查看化妆效果。
例如,应用于拍摄视频或图像的场景下。用户在拍摄视频或图像时,为了使拍摄得到的视频或图像更加好看,会在拍摄之前使用化妆产品进行化妆,在没有化妆产品的情况下,能够采用本公开的实施例提供的多媒体资源的生成方法,在拍摄的人脸图像中添加虚拟妆容,然后生成视频或图像。
例如,应用于产品宣传场景下。生产商为了宣传化妆产品,会找一些用户拍摄推广多媒体资源,从而实现化妆产品的宣传,但是这种宣传方式,拍摄多媒体资源的用户较少,此时,能够采用本公开的实施例提供的多媒体资源的生成方法,由更多的用户进行虚拟试妆,从而 使更多的用户拍摄并发布多媒体资源,以提高宣传效果。
图1是根据一示例性实施例示出的一种多媒体资源的生成方法的流程图,参见图1,该方法由终端执行,包括以下步骤:
101、终端显示虚拟试妆界面,虚拟试妆界面包括化妆产品和当前采集的人脸图像。
102、终端基于虚拟试妆界面中的化妆产品,为人脸图像添加虚拟妆容。
103、终端响应于接收到拍摄指令,生成多媒体资源,多媒体资源包括添加虚拟妆容后的人脸图像。
本公开的实施例提供的方法,在虚拟试妆界面,利用化妆产品为人脸图像添加虚拟妆容,进行虚拟试妆,从而向用户展示化妆产品的上妆效果。并且,在实现虚拟试妆的同时,还能够直接在虚拟试妆界面中拍摄多媒体资源,提高生成多媒体资源的效率。
在一些实施例中,多媒体资源包括视频,虚拟试妆界面包括视频拍摄控件,响应于接收到拍摄指令,生成多媒体资源,包括:
响应于对视频拍摄控件的触发操作,生成目标视频,目标视频包括添加虚拟妆容后的人脸图像。
在一些实施例中,响应于对视频拍摄控件的触发操作,生成目标视频,包括:
响应于对视频拍摄控件的点击操作,拍摄多个人脸图像,为拍摄得到的多个人脸图像分别添加虚拟妆容,得到多个视频帧;
响应于对视频拍摄控件的再次点击,基于多个视频帧,生成目标视频。
在一些实施例中,人脸图像包括人脸区域和背景区域,基于虚拟试妆界面中的化妆产品,为人脸图像添加虚拟妆容,包括:
确定从虚拟试妆界面中选取的目标化妆产品;
基于目标化妆产品,为人脸图像中的人脸区域添加目标化妆产品对应的虚拟妆容。
在一些实施例中,人脸区域包括多个试妆区域,目标化妆品包括多个,基于目标化妆产品,为人脸图像添加目标化妆产品对应的虚拟妆容,包括:
从人脸区域的多个试妆区域中,确定与每个目标化妆产品匹配的试妆区域;
分别在与每个目标化妆产品匹配的试妆区域中,添加目标化妆产品对应的虚拟妆容。
在一些实施例中,生成方法还包括:
在已选取目标化妆产品的情况下,响应于人脸图像中的第一目标部位执行目标动作,将目标化妆产品更新为与目标化妆产品属于相同类别的另一化妆产品。
在一些实施例中,生成方法还包括:
为人脸图像添加目标化妆产品对应的虚拟元素。
在一些实施例中,目标化妆产品包括多个,为人脸图像添加目标化妆产品对应的虚拟元素,包括:
确定多个目标化妆产品中,最后一个选取的目标化妆产品;
为人脸图像添加最后一个选取的目标化妆产品对应的虚拟元素。
在一些实施例中,生成方法还包括:
响应于人脸图像中的第二目标部位的移动操作,基于移动操作,同步移动虚拟元素。
在一些实施例中,多媒体资源包括图像,虚拟试妆界面包括图像拍摄控件,响应于接收到拍摄指令,生成多媒体资源,包括:
响应于对图像拍摄控件的触发操作,生成目标图像,目标图像为添加虚拟妆容后的人脸图像。
在一些实施例中,显示虚拟试妆界面,包括:
显示信息展示界面,信息展示界面包括化妆产品对应的产品信息以及试妆控件;
响应于对试妆控件的触发操作,显示虚拟试妆界面。
在一些实施例中,生成方法还包括:
在信息展示界面中展示化妆产品对应的多媒体资源,多媒体资源包括基于对应的化妆产品添加虚拟妆容后得到的人脸图像。
在一些实施例中,生成方法还包括:
在信息展示界面中发布多媒体资源。
在一些实施例中,信息展示界面具有对应的活动标签,信息展示界面用于展示具有活动标签的多媒体资源,在信息展示界面中发布多媒体资源,包括:
为多媒体资源添加活动标签;
在信息展示界面中,发布添加活动标签后的多媒体资源。
在一些实施例中,生成方法还包括:
显示发布界面,响应于在发布界面中的发布操作,发布多媒体资源。
在一些实施例中,发布界面包括编辑区域,生成方法还包括:
获取编辑区域中输入的文本内容;
响应于在发布界面中的发布操作,发布多媒体资源,包括:
响应于在发布界面中的发布操作,发布多媒体资源和文本内容。
图2是根据一示例性实施例示出的另一种多媒体资源的生成方法的流程图,参见图2,该方法由终端执行,终端为便携式、袖珍式、手持式等多种类型的终端,如手机、计算机、平板电脑等,该方法包括以下步骤:
201、终端显示虚拟试妆界面。
其中,虚拟试妆界面包括化妆产品和当前采集的人脸图像,化妆产品包括至少一个,化妆产品为口红、粉底液、眼影、眉笔、腮红、高光等多种类别的产品,不同的化妆产品属于同一品牌或不同品牌。其中,人脸图像包括人脸区域和背景区域,背景区域是指人脸图像中除人脸区域之外的区域,例如,背景区域为用户身后的背景墙、除人脸区域之外用户的其他身体部位。
下面提供两种触发虚拟试妆界面显示的示例性方式:
在一些实施例中,终端安装有目标应用,终端通过目标应用显示虚拟试妆界面。其中,目标应用为电商平台应用、短视频应用等。
在另一些实施例中,终端显示信息展示界面;响应于对信息展示界面中的试妆控件的触发操作,显示虚拟试妆界面。其中,信息展示界面为H5界面或其他类型的页面,信息展示界面包括化妆产品对应的产品信息,产品信息用于介绍化妆产品,例如,产品信息为化妆产品的类别、颜色、品牌等信息,产品信息包括文字内容、多媒体资源等形式的信息,多媒体资源包括图片、音频或视频等形式,该多媒体资源为用户使用化妆产品上妆后拍摄并发布在信息展示界面的,或者是采用本公开所提供的多媒体资源的生成方式生成并发布在信息展示界面的。
在通过信息展示界面跳转到虚拟试妆界面的情况下,虚拟试妆界面包括信息展示界面中介绍的化妆产品,便于用户对化妆产品进行试妆。
其中,试妆控件位于信息展示界面中的任一位置,例如,位于信息展示界面的底部、顶部等位置。
上述过程涉及到了通过信息显示界面,跳转至虚拟试妆界面的显示过程,而对于信息显示界面的显示过程,有如下几种示例性的显示方式。在一些实施例中,用户触发活动图标,终端响应于对活动图标的触发操作,显示活动图标对应的信息展示界面;或者,用户在目标应用中搜索活动名称,终端响应于对活动名称的搜索操作,显示活动名称对应的信息展示界面;或者,用户点击活动链接,终端响应于对活动链接的点击操作,显示对应的信息展示界面;或者,终端扫描图形码,显示图形码对应的信息展示界面;或者,终端还能够通过其他方式显示信息展示界面。
例如,参见图3所示的信息展示界面,该信息展示界面展示某一品牌的化妆产品和“推广作品”,“推广作品”包括用户拍摄的对化妆产品的介绍或使用化妆产品的视频,用户能够通过观看视频了解产品信息。在信息展示界面的底部有“马上试色”的选项,用户点击该“马上试色”选项,进入虚拟试妆界面。
在一些实施例中,虚拟试妆界面包括多个类别选项,终端响应于对任一类别选项的触发操作,在虚拟试妆界面中显示被触发的类别选项对应的多个化妆产品,即属于该类别选项对应类别的多个化妆产品。例如,类别选项包括口红、粉底液、眼影、眉笔、腮红、高光等选项。
在一些实施例中,每个类别选项还包括多个子类别选项,每个子类别选项下包括属于对应子类别的多个化妆产品。例如,口红包括唇膏、唇釉、唇蜜等。
在一些实施例中,虚拟试妆界面包括化妆产品对应的产品图标和产品名称,该产品图标为化妆产品的颜色。例如,参见图4所示的虚拟试妆界面,该虚拟试妆界面包括口红、粉底液、眼影、眉笔四个类别,口红类别又包括唇膏和唇釉这两个子类别,唇膏又包括“无”和四 种颜色的产品,“无”表示不选择化妆产品进行试妆。其中,由于虚拟试妆界面的限制,仅是显示了“无”和四种颜色的唇膏,用户能够通过滑动产品图标,以显示其他产品。
202、终端确定从虚拟试妆界面中选取的目标化妆产品。
用户在使用虚拟试妆界面中的化妆产品进行上妆之前,先选取使用的目标化妆产品,用户能够选取一个或多个目标化妆产品。
在一些实施例中,用户点击虚拟试妆界面中显示的任一化妆产品,终端响应于对该化妆产品的点击操作,将该化妆产品确定为目标化妆产品。之后,用户在已选取目标化妆产品的情况下,如果想要对同一类别的其他化妆产品进行试妆,则用户点击其他化妆产品,终端将用户点击的其他化妆产品确定为更新后的目标化妆产品。
在另一些实施例中,终端在已选取目标化妆产品的情况下,响应于人脸图像中的第一目标部位执行目标动作,将目标化妆产品更新为与目标化妆产品属于相同类别的另一化妆产品,也就是通过目标动作实现对目标化妆产品的切换。其中,第一目标部位为人脸图像中的头部,则目标动作为点头操作或摇头操作;或者第一目标部位为人脸图像中的人眼,则目标动作为眨眼操作;或者,第一目标部分为手,则目标动作为挥手、手指弯曲等操作。
其中,目标化妆产品和另一化妆产品为同一类别选项下的产品,例如,目标化妆产品和另一化妆产品都是口红,都属于口红类别;或者目标化妆产品和另一化妆产品为同一子类别选项下的产品,例如,目标化妆产品和另一化妆产品都是唇膏子类别。另一化妆产品为多个化妆产品中除目标化妆产品之外的任一化妆产品;或者另一化妆产品为目标化妆产品的下一个化妆产品,如果目标化妆产品为多个化妆产品中的最后一个化妆产品,则另一化妆产品为第一个化妆产品。
用户在选取目标化妆产品之后,还能够取消对目标化妆产品的选取。在一些实施例中,对于已选取的目标化妆产品,用户再次对该目标化妆产品执行点击操作,终端响应于该点击操作,取消对该目标化妆产品的选取;或者,虚拟试妆界面包括“无”对应的图标,终端响应于该图标的点击操作,取消对目标化妆产品的选取。
在一些实施例中,虚拟试妆界面包括多个类别的化妆产品。终端从其中任一类别的多个化妆产品中选取目标化妆产品,然后切换到另一类别的化妆产品,再从另一类别的多个化妆产品中选取目标化妆产品,从而选取出多个目标化妆产品,且多个目标化妆产品属于不同类别,使用户能够同时体验多个类别的化妆产品的上妆效果,查看多个虚拟妆容组合后的效果,且提高了进行虚拟试妆的效率。其中,用户通过点击类别选项来切换类别。
在另一些实施例中,对于任一类别的化妆产品,用户能够选取该类别中的多个目标化妆产品,后续在为人脸图像添加虚拟妆容时,该多个目标化妆产品能够叠加在一起,或者添加到人脸图像的不同的人脸区域中。
在一些实施例中,终端第一次显示虚拟试妆界面,用户还未选取目标化妆产品时,终端默认选取的目标化妆产品为无,或者为第一个类别选项下的第一个化妆产品。
203、终端基于目标化妆产品,为人脸图像中的人脸区域添加目标化妆产品对应的虚拟妆容。
在选取目标化妆产品之后,终端根据选取的目标化妆产品,对人脸图像中的人脸区域进行上妆。
在一种可能实现方式中,终端确定人脸图像中与目标化妆产品匹配的试妆区域;根据目标化妆产品,为试妆区域添加目标化妆产品对应的虚拟妆容。试妆区域是终端在检测到虚拟试妆界面中出现人脸图像后,通过识别人脸图像所确定出的能够添加妆容的区域,例如,试妆区域包括唇部、眼部、眉毛等区域。
其中,虚拟妆容是指使用化妆产品化妆后的虚拟上妆效果。也即是,基于试妆区域对应的区域范围,以及目标化妆产品对应的试妆参数(如目标化妆产品的颜色),在试妆区域添加相应的妆容效果,以达到一种虚拟的试妆效果。
在一些实施例中,终端按照识别出的试妆区域和目标化妆产品对应的颜色,来添加虚拟妆容。例如,用户选取的目标化妆产品为口红,则终端基于用户所选择的口红颜色,在人脸图像中的唇部添加相应颜色的口红,实现上妆效果。
在另一些实施例中,终端预先设置好每个类别的化妆产品对应的多个妆容模板,终端识别人脸图像中的试妆区域和每个区域当前的状态,选取与当前的状态匹配的目标妆容模板,在试妆区域添加该目标妆容模板,实现上妆效果。其中,每个妆容模板对应的状态不同,例如,口红有闭口状态对应的妆容模板、张口状态对应的妆容模板、微笑状态对应的妆容模板等。例如,用户选取的目标化妆产品为口红,且当前用户为张口状态,则选取张口状态对应的口红模板添加在唇部,实现上妆效果。
上述采用妆容模板进行虚拟试妆的方式,能够根据人脸图像的状态,选取合适的妆容模板,提高了虚拟试妆的灵活性,且在实现上妆效果的同时,使添加妆容模板后的人脸图像更加真实自然。
在一些实施例中,终端为人脸图像添加虚拟妆容之后,如果人脸发生移动,则终端会重新检测人脸图像中的试妆区域,使虚拟妆容随着人脸图像的移动而移动,或者如果试妆区域的状态发生变化,则虚拟妆容的形状也会变化,保证虚拟妆容在对应的试妆区域。
另外,在一些实施例中,人脸区域包括多个试妆区域,每个试妆区域能够添加对应的虚拟妆容,在选取的目标化妆产品包括多个,且该多个目标化妆产品属于不同类别的情况下,终端从人脸区域的多个试妆区域中,确定与每个目标化妆产品匹配的试妆区域,分别在与每个目标化妆产品匹配的试妆区域中,添加该目标化妆产品对应的虚拟妆容,从而实现多个目标化妆产品的组合上妆,使用户能够同时体验多个化妆产品的上妆效果。
另外,如果选取的多个目标化妆产品为同一类别的,则将多个目标化妆产品叠加在一起,将先选择的目标化妆产品对应的颜色设置在底层,然后再在该颜色的基础上,添加后选择的目标化妆产品的颜色;或者在人脸图像中的左侧区域显示一个目标化妆产品的颜色,在右侧 区域显示另一个目标化妆产品的颜色,从而形成对比;或者预先设置好不同化妆产品组合后的颜色,或者采用其他方式在人脸图像中显示多个目标化妆产品对应的虚拟妆容。
在一些实施例中,虚拟试妆界面还包括链接显示区域,用于显示化妆产品的产品链接。终端选取目标化妆产品之后,在虚拟试妆界面中会显示该目标化妆产品的产品链接,用户点击该产品链接,终端响应于对产品链接的点击操作,显示产品界面,产品界面用于展示产品信息及购买链接,用户能够通过该产品界面了解产品信息或者购买化妆产品。其中,链接显示区域有对应的隐藏按钮,点击隐藏按钮,能够隐藏该链接显示区域。
在一些实施例中,终端通过目标应用显示产品界面,或者跳转至另一应用,通过另一应用显示产品界面。
另外,在一些实施例中,化妆产品与虚拟元素之间存在对应关系,每个化妆产品有对应的虚拟元素,不同的化妆产品对应的虚拟元素相同或不同。终端确定选取的目标化妆产品之后,为人脸图像添加目标化妆产品对应的虚拟元素。其中,虚拟元素包括贴纸、特效、魔法表情等。
在一些实施例中,在目标化妆产品包括多个的情况下,终端确定多个目标化妆产品中,最后一个选取的目标化妆产品;为人脸图像添加最后一个选取的目标化妆产品对应的虚拟元素。也即是,终端选取一个目标化妆产品之后,添加该目标化妆产品对应的虚拟元素,终端又选取了另一个目标化妆产品之后,采用另一个目标化妆产品对应的虚拟元素替换原来的虚拟元素,以此类推,从而使得终端上所显示的虚拟元素,为最后一个选取的目标化妆产品对应的虚拟元素。
在一些实施例中,终端响应于人脸图像中的第二目标部位的移动操作,根据移动操作,同步移动虚拟元素。其中,第二目标部位头顶、额头、脸部等部位,该第二目标部位与第一目标部位可以相同,也可以不同。
上述步骤203中所涉及到的为人脸区域添加目标化妆产品对应的虚拟妆容的过程,用于提供一种预览功能,也即是,终端为人脸区域添加虚拟妆容后,即在虚拟试妆界面显示添加虚拟妆容后的人脸图像,以便用户能够判断当前所选取的目标化妆产品是否符合自己的需求,进而根据试妆效果进行调整,从而在最终确定出自己满意的妆容后,通过下述步骤204,来拍摄多媒体资源。
204、终端响应于接收到拍摄指令,生成多媒体资源。
终端在接收到拍摄指令后,在虚拟试妆界面中进行拍摄,其中,拍摄指令指示终端对虚拟试妆界面中的人脸图像进行拍摄,拍摄的目的是生成多媒体资源,多媒体资源包括添加虚拟妆容后的人脸图像。
在一些实施例中,多媒体资源包括视频,虚拟试妆界面包括视频拍摄控件,终端响应于对视频拍摄控件的触发操作,生成目标视频,目标视频包括添加虚拟妆容后的人脸图像。
其中,目标视频的生成过程包括:终端响应于对视频拍摄控件的点击操作,拍摄多个人 脸图像,为拍摄得到的多个人脸图像分别添加虚拟妆容,得到多个视频帧;响应于对视频拍摄控件的再次点击,基于多个视频帧,生成目标视频。
例如,参见图4中所示的视频拍摄控件,用户点击该视频拍摄控件,终端响应于对视频拍摄控件的点击操作,拍摄一个人脸图像,在拍摄得到的人脸图像中添加目标化妆产品对应的虚拟妆容,生成一个视频帧,然后继续拍摄下一个人脸图像,再在该下一个人脸图像中添加目标化妆产品对应的虚拟妆容,生成下一个视频帧,依次执行上述生成视频帧的过程,得到多个视频帧,直至用户再次点击该视频拍摄控件,终端结束录制,生成包括多个视频帧的目标视频。其中,相邻的任两个人脸图像之间的拍摄时间间隔相同,该拍摄时间间隔为任一时长,例如为0.02秒、0.1秒等。
上述拍摄目标视频的过程仅为一种示例性的方式,在另一些实施例中,终端响应于对视频拍摄控件的点击操作,拍摄多个人脸图像;响应于对视频拍摄控件的再次点击,为拍摄得到的多个人脸图像分别添加虚拟妆容,得到多个视频帧,从而基于多个视频帧,生成目标视频。
也即是,终端连续拍摄多个人脸图像,在拍摄完多个人脸图像之后,再在多个人脸图像上添加虚拟妆容,生成目标视频。
上述生成多媒体资源的过程以多媒体资源为视频为例来进行说明,在另一些实施例中,多媒体资源包括图像,虚拟试妆界面包括图像拍摄控件,终端响应于对图像拍摄控件的触发操作,生成目标图像,目标图像为添加虚拟妆容后的人脸图像。终端通过摄像头拍摄人脸图像,在拍摄的人脸图像中添加虚拟妆容,生成目标图像。
上述过程以终端响应于对虚拟试妆界面中的控件的点击操作,来生成目标视频或者目标图像为例,来进行说明,在另一些实施例中,终端响应于检测到目标操作,生成目标视频或者目标图像。例如,目标操作为对终端的摇一摇操作,或者为用户手指在虚拟试妆界面的滑动操作、单击操作、双击操作等操作。
或者,在另一些实施例中,终端响应于检测到目标语音,生成目标视频或者目标图像。例如,终端检测到目标语音为“拍视频”,则生成目标视频,或者终端检测到目标语音为“拍照片”,则生成目标图像。
采用上述几种拍摄方式,使用户在进行虚拟试妆时,能够直接在虚拟试妆界面进行拍摄,无需跳转至其他界面再进行拍摄,从而使生成多媒体资源的过程更加简单、便捷,提高了生成多媒体资源的效率。
在一些实施例中,终端生成多媒体资源之后,保存该多媒体资源。
另外,在一些实施例中,在上述添加虚拟元素的情况下,在生成多媒体资源时,生成的多媒体资源中也包括虚拟元素。
205、终端在信息展示界面中展示化妆产品对应的多媒体资源。
其中,多媒体资源包括基于对应的化妆产品添加虚拟妆容后得到的人脸图像。
例如,参见图3,信息展示界面包括推广作品和试色作品,推广作品为品牌方或活动方发布的、用于推广化妆产品的多媒体资源,例如,网红达人拍摄的视频;试色作品为用户发布的多媒体资源,用户发布的多媒体资源除了采用上述实施方式生成之外,还能够由用户自行使用化妆产品上妆之后拍摄并发布。在信息展示界面中结合了推广作品和试色作品,丰富了信息展示界面中的多媒体资源,使用户能够浏览更多的多媒体资源,从而扩大宣传。
在一些实施例中,终端生成多媒体资源之后,在信息展示界面中发布生成的多媒体资源,供其他用户浏览发布的多媒体资源。
其中,该多媒体资源的发布过程包括:终端在生成多媒体资源之后,从虚拟试妆界面跳转至发布界面,从而实现发布界面的显示,终端响应于在发布界面中的发布操作,发布多媒体资源。
在另一些实施例中,发布界面包括编辑区域,终端获取编辑区域中输入的文本内容;响应于在发布界面中的发布操作,发布多媒体资源和文本内容。其中,文本内容用于描述多媒体资源或者是与多媒体资源相关的标签。例如,参见图5所示的发布界面,用户在编辑区域中输入“#××电商节#”,用户点击发布控件,发布多媒体资源和“#××电商节#”。
在一些实施例中,参见图5,发布界面还包括标签选择区域,该标签选择区域包括备选的多个标签,供用户自由选择;发布界面还包括位置选择区域,该位置选择区域包括备选的多个位置,该多个位置为用户当前所在的位置及附近的位置;发布界面还包括个性化设置区域,该个性化设置区域能够设置发布的多媒体资源的可见对象,包括“公开(所有人可见)”、“好友(仅好友可见)”和“私密(仅自己可见)”;发布界面还包括保存控件,用户对该保存控件进行触发操作,终端将生成的多媒体资源保存至相册。另外,对于上述几种设置,如果发布多媒体资源之前,对上述几种情况进行了设置,则按照设置的内容发布多媒体资源。
其中,发布界面包括发布控件,相应地,终端响应于在发布界面中的发布操作,发布多媒体资源,可实现为:终端响应于对发布控件的触发操作,发布多媒体资源。
用户通过发布界面发布多媒体资源后,终端即能在信息展示界面中显示用户所发布的多媒体资源。在一些实施例中,信息展示界面具有对应的活动标签,信息展示界面用于展示具有活动标签的多媒体资源,终端为多媒体资源添加活动标签;在信息展示界面中,发布添加活动标签后的多媒体资源。由于是通过信息展示界面中的试妆控件进入虚拟试妆界面的,因此,终端在生成多媒体资源后,根据信息展示界面,确定对应的活动标签,并为多媒体资源添加该活动标签。例如,活动为“××电商节”,则为多媒体资源添加活动标签“××电商节”。
在另一些实施例中,终端基于选取的目标化妆产品,为多媒体资源添加化妆产品对应的化妆产品标签。其中,化妆产品标签为化妆产品的类别、品牌、产品名称等。
在另一些实施例中,用户输入资源标签,终端为多媒体资源添加用户输入的资源标签,其中,该资源标签与上述活动标签相同或不同,此外,该资源标签与上述化妆产品标签相同或不同。
上述为多媒体资源添加对应的活动标签、化妆产品标签或资源标签的方式,能够使属于同一标签的多媒体资源聚合在一起,且便于用户利用标签查找对应的多媒体资源。
本公开的实施例提供的方法,在虚拟试妆界面,利用化妆产品为人脸图像添加虚拟妆容,进行虚拟试妆,从而向用户展示化妆产品的上妆效果。并且,在实现虚拟试妆的同时,还能够直接在虚拟试妆界面中拍摄多媒体资源,提高生成多媒体资源的效率。
并且,使更多的用户能够采用这种方式来生成多媒体资源,发布更多的多媒体资源,实现UGC(User Generated Content,用户生成内容)聚合,从而扩大对活动或化妆产品的宣传,丰富信息展示界面的内容,同时也促进了原创内容的创作。
并且,在选取目标化妆产品时,能够选取多个类别的目标化妆产品,从而使用户同时体验多个化妆产品,还能够查看多个虚拟妆容组合后的效果。且采用执行目标动作的方式,切换选取的目标化妆产品更加方便,能够提高选取的效率。
图6是根据一示例性实施例示出的一种多媒体资源的生成装置的框图。参见图6,该装置包括界面显示单元601、妆容添加单元602和资源生成单元603。
界面显示单元601,被配置为显示虚拟试妆界面,虚拟试妆界面包括化妆产品和当前采集的人脸图像;
妆容添加单元602,被配置为基于虚拟试妆界面中的化妆产品,为人脸图像添加虚拟妆容;
资源生成单元603,被配置为响应于接收到拍摄指令,生成多媒体资源,多媒体资源包括添加虚拟妆容后的人脸图像。
本公开的实施例提供的装置,在虚拟试妆界面,利用化妆产品为人脸图像添加虚拟妆容,进行虚拟试妆,从而向用户展示化妆产品的上妆效果。并且,在实现虚拟试妆的同时,还能够直接在虚拟试妆界面中拍摄多媒体资源,提高生成多媒体资源的效率。
在一些实施例中,多媒体资源包括视频,虚拟试妆界面包括视频拍摄控件;
资源生成单元603,被配置为响应于对视频拍摄控件的触发操作,生成目标视频,目标视频包括添加虚拟妆容后的人脸图像。
在一些实施例中,响应于对视频拍摄控件的触发操作,生成目标视频,包括:
响应于对视频拍摄控件的点击操作,拍摄多个人脸图像,为拍摄得到的多个人脸图像分别添加虚拟妆容,得到多个视频帧;
响应于对视频拍摄控件的再次点击,基于多个视频帧,生成目标视频。
在一些实施例中,人脸图像包括人脸区域和背景区域,参见图7,妆容添加单元602,包括:
产品选取子单元6021,被配置为确定从虚拟试妆界面中选取的目标化妆产品;
妆容添加子单元6022,被配置为基于目标化妆产品,为人脸图像中的人脸区域添加目标化妆产品对应的虚拟妆容。
在一些实施例中,人脸区域包括多个试妆区域,目标化妆品包括多个,参见图7,妆容添加子单元6022,被配置为:
从人脸区域的多个试妆区域中,确定与每个目标化妆产品匹配的试妆区域;
分别在与每个目标化妆产品匹配的试妆区域中,添加目标化妆产品对应的虚拟妆容。
在一些实施例中,参见图7,产品选取子单元6021,还被配置为在已选取目标化妆产品的情况下,响应于人脸图像中的第一目标部位执行目标动作,将目标化妆产品更新为与目标化妆产品属于相同类别的另一化妆产品。
在一些实施例中,参见图7,该生成装置还包括:
元素添加单元604,被配置为执行为人脸图像添加目标化妆产品对应的虚拟元素。
在一些实施例中,参见图7,元素添加单元604,被配置为:
确定多个目标化妆产品中,最后一个选取的目标化妆产品;
为人脸图像添加最后一个选取的目标化妆产品对应的虚拟元素。
在一些实施例中,参见图7,该生成装置还包括:
元素移动单元605,被配置为响应于人脸图像中的第二目标部位的移动操作,基于移动操作,同步移动虚拟元素。
在一些实施例中,多媒体资源包括图像,虚拟试妆界面包括图像拍摄控件;
参见图7,资源生成单元603,被配置为响应于对图像拍摄控件的触发操作,生成目标图像,目标图像为添加虚拟妆容后的人脸图像。
在一些实施例中,参见图7,界面显示单元601,被配置为:
显示信息展示界面,信息展示界面包括化妆产品对应的产品信息以及试妆控件;
响应于对试妆控件的触发操作,显示虚拟试妆界面。
在一些实施例中,参见图7,生成装置还包括:
资源展示单元606,被配置为在信息展示界面中展示化妆产品对应的多媒体资源,多媒体资源包括基于对应的化妆产品添加虚拟妆容后得到的人脸图像。
在一些实施例中,参见图7,生成装置还包括:
资源发布单元607,被配置为在信息展示界面中发布多媒体资源。
在一些实施例中,信息展示界面具有对应的活动标签,信息展示界面用于展示具有活动标签的多媒体资源,参见图7,资源发布单元606,被配置为:
为多媒体资源添加活动标签;
在信息展示界面中,发布添加活动标签后的多媒体资源。
在一些实施例中,参见图7,该生成装置还包括:
标签添加单元608,被配置为为多媒体资源添加化妆产品对应的化妆产品标签。
在一些实施例中,参见图7,资源发布单元607,还被配置为显示发布界面,响应于在发布界面中的发布操作,发布多媒体资源。
在一些实施例中,发布界面包括编辑区域,参见图7,该生成装置还包括:
编辑单元609,被配置为获取编辑区域中输入的文本内容;
资源发布单元606,还被配置为响应于在发布界面中的发布操作,发布多媒体资源和文本内容。
关于上述实施例中的装置,其中各个单元执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图8是根据一示例性实施例示出的一种终端800的结构框图。该终端800是便携式移动终端,比如:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端800还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。
终端800包括有:处理器801和存储器802。
处理器801包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器801采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器801还包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器801集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器801还包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器802包括一个或多个计算机可读存储介质,该计算机可读存储介质是非暂态的。存储器802还包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器802中的非暂态的计算机可读存储介质用于存储至少一条程序代码,该至少一条程序代码用于被处理器801所执行以实现本公开中方法实施例提供的多媒体资源的生成方法。
在一些实施例中,终端800还包括有:外围设备接口803和至少一个外围设备。处理器801、存储器802和外围设备接口803之间通过总线或信号线相连。各个外围设备能够通过总线、信号线或电路板与外围设备接口803相连。在一些实施例中,外围设备包括:射频电路804、显示屏805、摄像头组件806、音频电路807、定位组件808和电源809中的至少一种。
外围设备接口803能够被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器801和存储器802。在一些实施例中,处理器801、存储器802和外围设备接口803被集成在同一芯片或电路板上;在一些其他实施例中,处理器801、存储器802和外围设备接口803中的任意一个或两个在单独的芯片或电路板上实现,本公开的实施例对此不 加以限定。
射频电路804用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路804通过电磁信号与通信网络以及其他通信设备进行通信。射频电路804将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。在一些实施例中,射频电路804包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路804通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路804还包括NFC(Near Field Communication,近距离无线通信)有关的电路,本公开对此不加以限定。
显示屏805用于显示UI(User Interface,用户界面)。该UI包括图形、文本、图标、视频及其它们的任意组合。在显示屏805是触摸显示屏的情况下,显示屏805还具有采集在显示屏805的表面或表面上方的触摸信号的能力。该触摸信号能够作为控制信号输入至处理器801进行处理。此时,显示屏805还能够用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏805为一个,设置在终端800的前面板;在另一些实施例中,显示屏805为至少两个,分别设置在终端800的不同表面或呈折叠设计;在另一些实施例中,显示屏805是柔性显示屏,设置在终端800的弯曲表面上或折叠面上。或者,显示屏805被设置成非矩形的不规则图形,也即异形屏。显示屏805采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
摄像头组件806用于采集图像或视频。在一些实施例中,摄像头组件806包括前置摄像头和后置摄像头。前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件806还包括闪光灯。闪光灯是单色温闪光灯,或者,闪光灯是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,能够用于不同色温下的光线补偿。
音频电路807包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器801进行处理,或者输入至射频电路804以实现语音通信。出于立体声采集或降噪的目的,麦克风为多个,分别设置在终端800的不同部位。或者,麦克风是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器801或射频电路804的电信号转换为声波。扬声器是传统的薄膜扬声器,或者,扬声器是压电陶瓷扬声器。在扬声器是压电陶瓷扬声器的情况下,不仅能够将电信号转换为人类可听见的声波,还能够将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路807还包括耳机插孔。
定位组件808用于定位终端800的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件808是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统、俄罗斯的格雷纳斯定位系统或欧盟的伽利略定位系统的定位组件。
电源809用于为终端800中的各个组件进行供电。电源809是交流电、直流电、一次性电池或可充电电池。在电源809包括可充电电池的情况下,该可充电电池是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还能够用于支持快充技术。
在一些实施例中,终端800还包括有一个或多个传感器810。该一个或多个传感器810包括但不限于:加速度传感器811、陀螺仪传感器812、压力传感器813、指纹传感器814、光学传感器815以及接近传感器816。
加速度传感器811能够检测以终端800建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器811能够用于检测重力加速度在三个坐标轴上的分量。处理器801能够根据加速度传感器811采集的重力加速度信号,控制显示屏805以横向视图或纵向视图进行用户界面的显示。加速度传感器811还能够用于游戏或者用户的运动数据的采集。
陀螺仪传感器812能够检测终端800的机体方向及转动角度,陀螺仪传感器812能够与加速度传感器811协同采集用户对终端800的3D动作。处理器801根据陀螺仪传感器812采集的数据,能够实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。
压力传感器813设置在终端800的侧边框和/或显示屏805的下层。在压力传感器813设置在终端800的侧边框的情况下,能够检测用户对终端800的握持信号,由处理器801根据压力传感器813采集的握持信号进行左右手识别或快捷操作。在压力传感器813设置在显示屏805的下层的情况下,由处理器801根据用户对显示屏805的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。
指纹传感器814用于采集用户的指纹,由处理器801根据指纹传感器814采集到的指纹识别用户的身份,或者,由指纹传感器814根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份的情况下,由处理器801授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器814被设置在终端800的正面、背面或侧面。在终端800上设置有物理按键或厂商Logo的情况下,指纹传感器814与物理按键或厂商Logo集成在一起。
光学传感器815用于采集环境光强度。在一个实施例中,处理器801能够根据光学传感器815采集的环境光强度,控制显示屏805的显示亮度。在一些实施例中,在环境光强度较高的情况下,调高显示屏805的显示亮度;在环境光强度较低的情况下,调低显示屏805的 显示亮度。在另一个实施例中,处理器801还能够根据光学传感器815采集的环境光强度,动态调整摄像头组件806的拍摄参数。
接近传感器816,也称距离传感器,设置在终端800的前面板。接近传感器816用于采集用户与终端800的正面之间的距离。在一个实施例中,在接近传感器816检测到用户与终端800的正面之间的距离逐渐变小的情况下,由处理器801控制显示屏805从亮屏状态切换为息屏状态;在接近传感器816检测到用户与终端800的正面之间的距离逐渐变大的情况下,由处理器801控制显示屏805从息屏状态切换为亮屏状态。
本领域技术人员能够理解,图8中示出的结构并不构成对终端800的限定,在一些实施例中,终端800包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
在示例性实施例中,还提供了一种非临时性计算机可读存储介质,当存储介质中的程序代码由终端的处理器执行时,使得终端能够执行上述多媒体资源的生成方法中终端所执行的步骤。在一些实施例中,存储介质以是非临时性计算机可读存储介质,例如,非临时性计算机可读存储介质是ROM(只读存储器,Read Only Memory)、RAM(随机存取存储器,Random Access Memory)、CD-ROM(只读光盘,Compact Disc Read-Only Memory)、磁带、软盘和光数据存储设备等。
在示例性实施例中,还提供了一种计算机程序产品,当计算机程序产品中的程序代码由终端的处理器执行时,使得终端能够执行上述多媒体资源的生成方法中终端所执行的步骤。
本公开所有实施例均能够单独被执行,还能够与其他实施例相结合被执行,均视为本公开要求的保护范围。

Claims (50)

  1. 一种多媒体资源的生成方法,包括:
    显示虚拟试妆界面,所述虚拟试妆界面包括化妆产品和当前采集的人脸图像;
    基于所述虚拟试妆界面中的化妆产品,为所述人脸图像添加虚拟妆容;
    响应于接收到拍摄指令,生成多媒体资源,所述多媒体资源包括添加所述虚拟妆容后的所述人脸图像。
  2. 根据权利要求1所述的生成方法,其中,所述多媒体资源包括视频,所述虚拟试妆界面包括视频拍摄控件,所述响应于接收到拍摄指令,生成多媒体资源,包括:
    响应于对所述视频拍摄控件的触发操作,生成目标视频,所述目标视频包括添加所述虚拟妆容后的所述人脸图像。
  3. 根据权利要求2所述的生成方法,其中,所述响应于对所述视频拍摄控件的触发操作,生成目标视频,包括:
    响应于对所述视频拍摄控件的点击操作,拍摄多个人脸图像,为拍摄得到的多个人脸图像分别添加所述虚拟妆容,得到多个视频帧;
    响应于对所述视频拍摄控件的再次点击,基于所述多个视频帧,生成所述目标视频。
  4. 根据权利要求1所述的生成方法,其中,所述人脸图像包括人脸区域和背景区域,所述基于所述虚拟试妆界面中的化妆产品,为所述人脸图像添加虚拟妆容,包括:
    确定从所述虚拟试妆界面中选取的目标化妆产品;
    基于所述目标化妆产品,为所述人脸图像中的人脸区域添加所述目标化妆产品对应的虚拟妆容。
  5. 根据权利要求4所述的生成方法,其中,所述人脸区域包括多个试妆区域,所述目标化妆品包括多个,所述基于所述目标化妆产品,为所述人脸图像添加所述目标化妆产品对应的虚拟妆容,包括:
    从所述人脸区域的多个试妆区域中,确定与每个目标化妆产品匹配的试妆区域;
    分别在与每个所述目标化妆产品匹配的试妆区域中,添加所述目标化妆产品对应的虚拟妆容。
  6. 根据权利要求4所述的生成方法,其中,还包括:
    在已选取所述目标化妆产品的情况下,响应于所述人脸图像中的第一目标部位执行目标动作,将所述目标化妆产品更新为与所述目标化妆产品属于相同类别的另一化妆产品。
  7. 根据权利要求4所述的生成方法,其中,还包括:
    为所述人脸图像添加所述目标化妆产品对应的虚拟元素。
  8. 根据权利要求7所述的生成方法,其中,所述目标化妆产品包括多个,所述为所述人 脸图像添加所述目标化妆产品对应的虚拟元素,包括:
    确定多个目标化妆产品中,最后一个选取的目标化妆产品;
    为所述人脸图像添加所述最后一个选取的目标化妆产品对应的虚拟元素。
  9. 根据权利要求7或8所述的生成方法,其中,还包括:
    响应于所述人脸图像中的第二目标部位的移动操作,基于所述移动操作,同步移动所述虚拟元素。
  10. 根据权利要求1所述的生成方法,其中,所述多媒体资源包括图像,所述虚拟试妆界面包括图像拍摄控件,所述响应于接收到拍摄指令,生成多媒体资源,包括:
    响应于对所述图像拍摄控件的触发操作,生成目标图像,所述目标图像为添加所述虚拟妆容后的所述人脸图像。
  11. 根据权利要求1所述的生成方法,其中,所述显示虚拟试妆界面,包括:
    显示信息展示界面,所述信息展示界面包括化妆产品对应的产品信息以及试妆控件;
    响应于对所述试妆控件的触发操作,显示所述虚拟试妆界面。
  12. 根据权利要求1所述的生成方法,其中,还包括:
    在信息展示界面中展示化妆产品对应的多媒体资源,所述多媒体资源包括基于对应的化妆产品添加虚拟妆容后得到的人脸图像。
  13. 根据权利要求12所述的生成方法,其中,还包括:
    在所述信息展示界面中发布所述多媒体资源。
  14. 根据权利要求13所述的生成方法,其中,所述信息展示界面具有对应的活动标签,所述信息展示界面用于展示具有所述活动标签的多媒体资源,所述在所述信息展示界面中发布所述多媒体资源,包括:
    为所述多媒体资源添加活动标签;
    在所述信息展示界面中,发布添加所述活动标签后的所述多媒体资源。
  15. 根据权利要求1所述的生成方法,其中,还包括:
    显示发布界面,响应于在所述发布界面中的发布操作,发布所述多媒体资源。
  16. 根据权利要求15所述的生成方法,其中,所述发布界面包括编辑区域,所述方法还包括:
    获取所述编辑区域中输入的文本内容;
    所述响应于在所述发布界面中的发布操作,发布所述多媒体资源,包括:
    响应于在所述发布界面中的发布操作,发布所述多媒体资源和所述文本内容。
  17. 一种多媒体资源的生成装置,包括:
    界面显示单元,被配置为显示虚拟试妆界面,所述虚拟试妆界面包括化妆产品和当前采集的人脸图像;
    妆容添加单元,被配置为基于所述虚拟试妆界面中的化妆产品,为所述人脸图像添加虚拟妆容;
    资源生成单元,被配置为响应于接收到拍摄指令,生成多媒体资源,所述多媒体资源包括添加所述虚拟妆容后的所述人脸图像。
  18. 根据权利要求17所述的生成装置,其中,所述多媒体资源包括视频,所述虚拟试妆界面包括视频拍摄控件;
    所述资源生成单元,被配置为响应于对所述视频拍摄控件的触发操作,生成目标视频,所述目标视频包括添加所述虚拟妆容后的所述人脸图像。
  19. 根据权利要求18所述的生成装置,其中,所述资源生成单元,被配置为:
    响应于对所述视频拍摄控件的点击操作,拍摄多个人脸图像,为拍摄得到的多个人脸图像分别添加所述虚拟妆容,得到多个视频帧;
    响应于对所述视频拍摄控件的再次点击,基于所述多个视频帧,生成所述目标视频。
  20. 根据权利要求17所述的生成装置,其中,所述人脸图像包括人脸区域和背景区域,所述妆容添加单元,包括:
    产品选取子单元,被配置为确定从所述虚拟试妆界面中选取的目标化妆产品;
    妆容添加子单元,被配置为基于所述目标化妆产品,为所述人脸图像中的人脸区域添加所述目标化妆产品对应的虚拟妆容。
  21. 根据权利要求20所述的生成装置,其中,所述人脸区域包括多个试妆区域,所述目标化妆品包括多个,所述妆容添加子单元,被配置为:
    从所述人脸区域的多个试妆区域中,确定与每个目标化妆产品匹配的试妆区域;
    分别在与每个所述目标化妆产品匹配的试妆区域中,添加所述目标化妆产品对应的虚拟妆容。
  22. 根据权利要求20所述的生成装置,其中,所述产品选取子单元,还被配置为在已选取所述目标化妆产品的情况下,响应于所述人脸图像中的第一目标部位执行目标动作,将所述目标化妆产品更新为与所述目标化妆产品属于相同类别的另一化妆产品。
  23. 根据权利要求20所述的生成装置,其中,还包括:
    元素添加单元,被配置为为所述人脸图像添加所述目标化妆产品对应的虚拟元素。
  24. 根据权利要求23所述的生成装置,其中,所述元素添加单元,被配置为:
    确定多个目标化妆产品中,最后一个选取的目标化妆产品;
    为所述人脸图像添加所述最后一个选取的目标化妆产品对应的虚拟元素。
  25. 根据权利要求23或24所述的生成装置,其中,还包括:
    元素移动单元,被配置为响应于所述人脸图像中的第二目标部位的移动操作,基于所述移动操作,同步移动所述虚拟元素。
  26. 根据权利要求17所述的生成装置,其中,所述多媒体资源包括图像,所述虚拟试妆界面包括图像拍摄控件;
    所述资源生成单元,被配置为响应于对所述图像拍摄控件的触发操作,生成目标图像,所述目标图像为添加所述虚拟妆容后的所述人脸图像。
  27. 根据权利要求17所述的生成装置,其中,所述界面显示单元,被配置为:
    显示信息展示界面,所述信息展示界面包括化妆产品对应的产品信息以及试妆控件;
    响应于对所述试妆控件的触发操作,显示所述虚拟试妆界面。
  28. 根据权利要求17所述的生成装置,其中,还包括:
    资源展示单元,被配置为在信息展示界面中展示化妆产品对应的多媒体资源,所述多媒体资源包括基于对应的化妆产品添加虚拟妆容后得到的人脸图像。
  29. 根据权利要求28所述的生成装置,其中,还包括:
    资源发布单元,被配置为在所述信息展示界面中发布所述多媒体资源。
  30. 根据权利要求29所述的生成装置,其中,所述信息展示界面具有对应的活动标签,所述信息展示界面用于展示具有所述活动标签的多媒体资源,所述资源发布单元,被配置为:
    为所述多媒体资源添加活动标签;
    在所述信息展示界面中,发布添加所述活动标签后的所述多媒体资源。
  31. 根据权利要求17所述的生成装置,其中,资源发布单元,还被配置为显示发布界面,响应于在所述发布界面中的发布操作,发布所述多媒体资源。
  32. 根据权利要求31所述的生成装置,其中,所述发布界面包括编辑区域,所述装置还包括:
    编辑单元,被配置为获取所述编辑区域中输入的文本内容;
    所述资源发布单元,还被配置为响应于在所述发布界面中的发布操作,发布所述多媒体资源和所述文本内容。
  33. 一种终端,其中,包括:
    一个或多个处理器;
    用于存储所述一个或多个处理器可执行指令的易失性或非易失性存储器;
    其中,所述一个或多个处理器被配置为:
    显示虚拟试妆界面,所述虚拟试妆界面包括化妆产品和当前采集的人脸图像;
    基于所述虚拟试妆界面中的化妆产品,为所述人脸图像添加虚拟妆容;
    响应于接收到拍摄指令,生成多媒体资源,所述多媒体资源包括添加所述虚拟妆容后的所述人脸图像。
  34. 根据权利要求33所述的终端,其中,所述多媒体资源包括视频,所述虚拟试妆界面包括视频拍摄控件,所述一个或多个处理器还被配置为响应于对所述视频拍摄控件的触发操 作,生成目标视频,所述目标视频包括添加所述虚拟妆容后的所述人脸图像。
  35. 根据权利要求34所述的终端,其中,所述一个或多个处理器还被配置为:
    响应于对所述视频拍摄控件的点击操作,拍摄多个人脸图像,为拍摄得到的多个人脸图像分别添加所述虚拟妆容,得到多个视频帧;
    响应于对所述视频拍摄控件的再次点击,基于所述多个视频帧,生成所述目标视频。
  36. 根据权利要求33所述的终端,其中,所述人脸图像包括人脸区域和背景区域,所述一个或多个处理器还被配置为:
    确定从所述虚拟试妆界面中选取的目标化妆产品;
    基于所述目标化妆产品,为所述人脸图像中的人脸区域添加所述目标化妆产品对应的虚拟妆容。
  37. 根据权利要求36所述的终端,其中,所述人脸区域包括多个试妆区域,所述目标化妆品包括多个,所述一个或多个处理器还被配置为:
    从所述人脸区域的多个试妆区域中,确定与每个目标化妆产品匹配的试妆区域;
    分别在与每个所述目标化妆产品匹配的试妆区域中,添加所述目标化妆产品对应的虚拟妆容。
  38. 根据权利要求36所述的终端,其中,所述一个或多个处理器还被配置为:
    在已选取所述目标化妆产品的情况下,响应于所述人脸图像中的第一目标部位执行目标动作,将所述目标化妆产品更新为与所述目标化妆产品属于相同类别的另一化妆产品。
  39. 根据权利要求36所述的终端,其中,所述一个或多个处理器还被配置为:
    为所述人脸图像添加所述目标化妆产品对应的虚拟元素。
  40. 根据权利要求39所述的终端,其中,所述目标化妆产品包括多个,所述一个或多个处理器还被配置为:
    确定多个目标化妆产品中,最后一个选取的目标化妆产品;
    为所述人脸图像添加所述最后一个选取的目标化妆产品对应的虚拟元素。
  41. 根据权利要求39或40所述的终端,其中,所述一个或多个处理器还被配置为:
    响应于所述人脸图像中的第二目标部位的移动操作,基于所述移动操作,同步移动所述虚拟元素。
  42. 根据权利要求33所述的终端,其中,所述多媒体资源包括图像,所述虚拟试妆界面包括图像拍摄控件,所述一个或多个处理器还被配置为:
    响应于对所述图像拍摄控件的触发操作,生成目标图像,所述目标图像为添加所述虚拟妆容后的所述人脸图像。
  43. 根据权利要求33所述的终端,其中,所述一个或多个处理器还被配置为:
    显示信息展示界面,所述信息展示界面包括化妆产品对应的产品信息以及试妆控件;
    响应于对所述试妆控件的触发操作,显示所述虚拟试妆界面。
  44. 根据权利要求33所述的终端,其中,所述一个或多个处理器还被配置为:
    在信息展示界面中展示化妆产品对应的多媒体资源,所述多媒体资源包括基于对应的化妆产品添加虚拟妆容后得到的人脸图像。
  45. 根据权利要求44所述的终端,其中,所述一个或多个处理器还被配置为:
    在所述信息展示界面中发布所述多媒体资源。
  46. 根据权利要求45所述的终端,其中,所述信息展示界面具有对应的活动标签,所述信息展示界面用于展示具有所述活动标签的多媒体资源,所述一个或多个处理器还被配置为:
    为所述多媒体资源添加活动标签;
    在所述信息展示界面中,发布添加所述活动标签后的所述多媒体资源。
  47. 根据权利要求33所述的终端,其中,所述一个或多个处理器还被配置为:
    显示发布界面,响应于在所述发布界面中的发布操作,发布所述多媒体资源。
  48. 根据权利要求47所述的终端,其中,所述发布界面包括编辑区域,所述一个或多个处理器还被配置为:
    获取所述编辑区域中输入的文本内容;
    响应于在所述发布界面中的发布操作,发布所述多媒体资源和所述文本内容。
  49. 一种非临时性计算机可读存储介质,其中,当所述存储介质中的指令由终端的处理器执行时,使得所述终端能够执行以下步骤:
    显示虚拟试妆界面,所述虚拟试妆界面包括化妆产品和当前采集的人脸图像;
    基于所述虚拟试妆界面中的化妆产品,为所述人脸图像添加虚拟妆容;
    响应于接收到拍摄指令,生成多媒体资源,所述多媒体资源包括添加所述虚拟妆容后的所述人脸图像。
  50. 一种计算机程序产品,其中,当所述计算机程序产品中的程序代码由终端的处理器执行时,使得终端能够执行以下步骤:
    显示虚拟试妆界面,所述虚拟试妆界面包括化妆产品和当前采集的人脸图像;
    基于所述虚拟试妆界面中的化妆产品,为所述人脸图像添加虚拟妆容;
    响应于接收到拍摄指令,生成多媒体资源,所述多媒体资源包括添加所述虚拟妆容后的所述人脸图像。
PCT/CN2021/113106 2020-10-21 2021-08-17 多媒体资源的生成方法及终端 WO2022083257A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011133858.7 2020-10-21
CN202011133858.7A CN112258385B (zh) 2020-10-21 2020-10-21 多媒体资源的生成方法、装置、终端及存储介质

Publications (1)

Publication Number Publication Date
WO2022083257A1 true WO2022083257A1 (zh) 2022-04-28

Family

ID=74263047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/113106 WO2022083257A1 (zh) 2020-10-21 2021-08-17 多媒体资源的生成方法及终端

Country Status (2)

Country Link
CN (1) CN112258385B (zh)
WO (1) WO2022083257A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258385B (zh) * 2020-10-21 2024-05-31 北京达佳互联信息技术有限公司 多媒体资源的生成方法、装置、终端及存储介质
CN112819767A (zh) * 2021-01-26 2021-05-18 北京百度网讯科技有限公司 图像处理方法、装置、设备、存储介质以及程序产品

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130050194A1 (en) * 2011-08-31 2013-02-28 Nintendo Co., Ltd. Information processing program, information processing system, information processing apparatus, and information processing method, utilizing augmented reality technique
CN111461837A (zh) * 2020-04-03 2020-07-28 北京爱笔科技有限公司 一种虚拟试妆系统
CN111539882A (zh) * 2020-04-17 2020-08-14 华为技术有限公司 辅助化妆的交互方法、终端、计算机存储介质
CN112258385A (zh) * 2020-10-21 2021-01-22 北京达佳互联信息技术有限公司 多媒体资源的生成方法、装置、终端及存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874145B (zh) * 2018-07-04 2022-03-18 深圳美图创新科技有限公司 一种图像处理方法、计算设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130050194A1 (en) * 2011-08-31 2013-02-28 Nintendo Co., Ltd. Information processing program, information processing system, information processing apparatus, and information processing method, utilizing augmented reality technique
CN111461837A (zh) * 2020-04-03 2020-07-28 北京爱笔科技有限公司 一种虚拟试妆系统
CN111539882A (zh) * 2020-04-17 2020-08-14 华为技术有限公司 辅助化妆的交互方法、终端、计算机存储介质
CN112258385A (zh) * 2020-10-21 2021-01-22 北京达佳互联信息技术有限公司 多媒体资源的生成方法、装置、终端及存储介质

Also Published As

Publication number Publication date
CN112258385A (zh) 2021-01-22
CN112258385B (zh) 2024-05-31

Similar Documents

Publication Publication Date Title
US11678734B2 (en) Method for processing images and electronic device
CN112162671B (zh) 直播数据处理方法、装置、电子设备及存储介质
WO2020019873A1 (zh) 图像处理方法、装置、终端及计算机可读存储介质
CN110865754B (zh) 信息展示方法、装置及终端
WO2022033227A1 (zh) 信息显示方法及装置
WO2022048398A1 (zh) 多媒体数据拍摄方法及终端
CN109922356B (zh) 视频推荐方法、装置和计算机可读存储介质
WO2022028241A1 (zh) 预览封面生成方法及电子设备
WO2021073293A1 (zh) 动画文件的生成方法、装置及存储介质
WO2022134632A1 (zh) 作品处理方法及装置
CN111368114B (zh) 信息展示方法、装置、设备及存储介质
WO2022083257A1 (zh) 多媒体资源的生成方法及终端
CN110868636B (zh) 视频素材的截取方法、装置、存储介质及终端
CN111339938A (zh) 信息交互方法、装置、设备及存储介质
CN113407291A (zh) 内容项显示方法、装置、终端及计算机可读存储介质
CN113763228A (zh) 图像处理方法、装置、电子设备及存储介质
CN110796083A (zh) 图像显示方法、装置、终端及存储介质
CN112131422A (zh) 表情图片生成方法、装置、设备及介质
WO2022252563A1 (zh) 信息显示方法及电子设备
CN110209316B (zh) 类别标签显示方法、装置、终端及存储介质
CN111539795A (zh) 图像处理方法、装置、电子设备及计算机可读存储介质
CN111437600A (zh) 剧情展示方法、装置、设备及存储介质
WO2022199102A1 (zh) 图像处理方法及装置
CN113469779A (zh) 信息显示方法及装置
CN110891181B (zh) 直播画面显示方法、装置、存储介质及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21881676

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.09.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21881676

Country of ref document: EP

Kind code of ref document: A1