VIRTUAL MAKEUP TRY-ON METHODS AND DEVICES
The system addresses lighting and rendering challenges in virtual try-on by using the sclera to adjust makeup effects and employing pre-generated texture maps and 3D mesh rendering for realistic glitter and facial shaping, ensuring efficient performance on mobile devices.
Patent Information
- Application Number
- FR2023003587
- Authority / Receiving Office
- FR · FR
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-18
AI Technical Summary
Existing image processing techniques for virtual try-on experiences face challenges in accurately simulating complex makeup effects under varying lighting conditions without relying on external references or expensive machine learning models, particularly on mobile devices, and struggle with realistic rendering of glitter effects and facial feature shaping.
The system processes the sclera in a face image to determine a reference hue, adjusts makeup effects based on this hue, and uses deep neural networks for facial feature localization, incorporating lighting adaptation and pre-generated texture maps for glitter effects, along with 3D mesh rendering for shaping, to enhance realism on mobile devices.
The system provides realistic and efficient virtual try-on experiences by accurately adapting makeup effects to lighting conditions and rendering complex effects like glitter and facial shaping, maintaining high frame rates on mobile devices.
Smart Images

Figure 00000036_0000 
Figure 00000036_0001 
Figure 00000037_0000
Abstract
Description
Title of the invention: METHOD AND APPARATUS FOR VIRTUAL MAKE-UP TRY-ON FIELD OF THE INVENTION
[0001] This disclosure relates to image processing such as using neural networks and generating output images to virtually try on a product or service by applying a simulation effect or effects to one or more objects detected in an input image. CONTEXT
[0002] Deep learning techniques are useful for processing images, including a series of video frames, to locate one or more objects within the images. In one example, the objects are facial features comprising portions of a user's face. Image processing techniques are also useful for rendering effects associated with objects such as augmenting reality for the user. An example of such augmented reality is providing a virtual try-on (VTO) that simulates the application of a product (or service) to an object. Product simulation in the beauty industry includes simulating makeup, hair, and nail effects. Other examples may include locating the iris and simulating a change in color thereof, for example, by a colored contact lens. These and other objects and simulations will be apparent.
[0003] In many VTO scenarios, users use their own camera-equipped computing devices, such as a smartphone, tablet, or other camera-equipped computing device (e.g., a webcam) to generate input images under varied and uncontrolled lighting conditions.
[0004] More complex simulated effects are desired, for example, to better simulate real product effects or to augment reality. For example, a real product effect may include a glitter effect or a special lighting effect. An augmented reality simulation may include a shaping effect that simulates a shape change (e.g., deformation) of a facial feature or the application of a beauty filter. The shape change may be the result of a simulation of a professional service (e.g., an esthetician or plastic surgeon) or result from a personal activity such as personal care or entertainment. Examples include eyebrow shaping, nose shaping (nostril thinning, thinning edge), a change in facial contour, a change in eyes or eyelid (for example, vertical or horizontal enlargement of the eye), etc.
[0005] Improved techniques are desired for processing images to facilitate the delivery of augmented realities, including VTO experiences. SUMMARY
[0006] The present invention relates to a system comprising:
[0007] a rendering pipeline configured via circuitry to: process a sclera in a face of an input image to determine a reference hue of the face; adjusting a hue of a makeup effect in response to the reference hue to render an adjusted makeup effect on the input image; and providing an output image defined from the input image and the adjusted makeup effect for presentation via a user interface as a component of a virtual try-on experience.
[0008] According to embodiments of the invention, the system comprises one or more of the following characteristics, taken in isolation, or in all technically possible combinations: - the shade of the makeup effect is pushed towards a warmer shade or a cooler shade in response to the reference shade, - the rendering pipeline processes to adjust a brightness and saturation of the makeup effect in response to an average skin color determined by processing the skin of the face and in response to the brightness of eyes determined by processing one or more eyes of the face, - the rendering pipeline adjusts the hue in response to a detection of a presence of the sclera for hue adjustment, - the system further comprises a face tracking device configured via circuitry to process the image using a deep neural network to locate facial features in the face; and wherein the sclera is processed and the makeup effect is rendered in response to the facial features as located, - the makeup effect is associated with a makeup product and the system comprises a recommendation component configured to provide, via the user interface, a recommendation of a plurality of makeup products to be virtually tried on and to receive a selection input, the user interface selecting the makeup product for the virtual try-on experience, - a selection input selects a plurality of products and the method comprises adjusting the hue of each associated makeup effect in response to the reference hue for rendering a plurality of adjusted makeup effects on the input image, and - the system includes a purchasing component for providing, via the user interface, a purchasing service for conducting a purchasing transaction to purchase one or more makeup products.
[0009] Methods, systems, and techniques are provided (e.g., in embodiments) for rendering effects such as a makeup effect that adjusts a hue of the effect in response to a hue in an environment. The makeup effect is rendered on an input image of a face as a component of a virtual try-on experience. The operations may process the sclera of an eye to determine a reference hue and adjust the color of the effect to a warm color or a cool color in response to the reference hue.
[0010] In one embodiment, there is provided a computer-implemented method comprising performing by one or more processors the steps of: processing a sclera in a face of an input image to determine a reference hue of the face; adjusting a hue of a makeup effect in response to the reference hue to render an adjusted makeup effect on the input image; and presenting an output image defined from the input image and the adjusted makeup effect via a user interface as a component of a virtual try-on experience.
[0011] In one embodiment, there is provided a system comprising: a rendering pipeline configured via circuitry to: process a sclera in a face of an input image to determine a reference hue of the face; adjust a hue of a makeup effect in response to the reference hue to render an adjusted makeup effect on the input image; and provide an output image defined from the input image and the adjusted makeup effect for presentation via a user interface as a component of a virtual try-on experience.
[0012] These and other aspects of the method and system, among others, will be apparent. Brief description of the drawings
[0013] [Fig-1] [Fig.l] is an illustration of an input image showing a scene typical for a VTO experience.
[0014] [Fig.2] [Fig.2] is an illustration of an eye providing a sclera as a re differential in accordance with one embodiment herein.
[0015] [Fig.3] [Fig.3] is an illustration of a computer environment, in accordance with one embodiment, such as for practicing one or more method aspects.
[0016] [Fig.4] [Fig.4] is a screenshot of a user interface (UI) for the adjusting parameters in accordance with one embodiment.
[0017] [Fig.5] [Fig.5] is a flowchart of operations, in accordance with a method of realization, such as for a computer device of [Fig.3].
[0018] [Fig.6] [Fig.6] shows an example of a face image (e.g., an image cropped from a face) annotated with groups of face points.
[0019] [Fig.7A][Fig.7B] Figures 7A and 7B are illustrations of a face deforming construct 700, according to one embodiment, for deforming an eyebrow.
[0020] [Fig.8A][Fig.8B] Figures 8A and 8B are flowcharts of operations according to one embodiment, such as for a computing device of [Fig. 3],
[0021] [Fig.9A][Fig.9B][Fig.9C] Figures 9A, 9B and 9C are illustrations of 3D polygonal meshes including eye meshes and lip meshes for facial features related to the eyes and lips, in accordance with one embodiment.
[0022] [Fig. 10] [Fig. 10] is an illustration of an eye region 1000 having a mask eye 1002 according to one embodiment.
[0023] [Fig. 11] [Fig. 11] is a flowchart of operations in accordance with a mode embodiment, such as for a computer device of [Fig.3]. DETAILED DESCRIPTION Lighting adaptation
[0024] In one embodiment, a VTO application executed by a computing device includes a tracking engine and a rendering engine. An input image provided to a virtual try-on application is considered a scene. Typically, this scene is composed of a face, an environment (such as a background), and some other objects. A scene also includes one or more light sources that modify the colors and brightness of the scene. How these sources modify the scene depends on whether they are natural (such as light directed from the sun) or artificial (such as a light bulb or neon). The modification may be a change in shade (hue) specifically for artificial light, or differences in brightness / darkness, and sometimes certain artifacts such as shadows.In one embodiment, a VTO application may enhance the realism and accuracy of makeup applied to a user's face by taking these light sources into account.
[0025] Lighting correction for the purpose of a makeup or skin effect to be applied to an image is described in US 10892166 B2, granted on January 12, 2021, and entitled “System and Method for Light Filed Correction of Colored Surfaces in an Image” (hereinafter the “166 patent). In one embodiment, a VTO application employs color correction as described in the '166 patent and as subsequently adapted as described herein.
[0026] Being able to infer the shift in hue and brightness of an image without reference to the lighting sources used or without an external reference frame is very difficult. Humans tend to do this naturally when an image is not in normal conditions, and it may seem like a simple problem to solve. However, for a computer, the task may seem very complicated. In one example, [Fig.l] shows an illustration of an input image 100, where cool natural light 102 may come from a source in an upper left side and be directed diagonally towards a central face 104. In the same image, warm artificial light 106 may come from a lower right side source and be directed diagonally upwards towards the face 104. Therefore, a change in hue and a change in brightness as represented by the diagonal dotted line 108 are present in the complexions, etc. of the face.The shift is represented by a straight line (108), but such a shift need not be straight or so abrupt.
[0027] Recoloring algorithms may have difficulty detecting a change in hue and rendering a realistic color; often there is not enough data to infer an overall tone, and using an external reference (such as the background) may result in errors. For example, a background (e.g., regions 110 outside the human subject region) may be clearly shifted toward cool colors, while the face 104 may generally be lit in warm colors.
[0028] While difficult, it is not impossible to infer the change in hue; techniques exist. In a previous example, the technique requires the use of a machine learning model trained using a large database of reference images where the lighting conditions are known. Then, comparing an image to this set of references allows a device to approximate the light in the scene and use the output to adapt the makeup rendering. This approach has similarities to how the human brain works, by comparing the light in a scene to a set of memories and adapting perception. However, these models are expensive to operate and are generally not suitable for live experiments.In one embodiment, a target for a VTO application is running at more than 20 FPS (frames per second) on a mobile device such as a smartphone or tablet where the VTO application is web browser-based. Such a target is generally incompatible with this technique using a color machine learning approach.
[0029] Other techniques for adapting brightness and hue change require Using an external reference such as a color grid where the colors are calibrated and known in advance. This is called a color checker, but it is not practical for many VTO usage scenarios. While these techniques work very well and are computationally fast, they require the color grid to be available throughout the experiment (in case the lighting changes), and more importantly, such a checker must be distributed to each user. Since the VTO experiment is run by any user, this type of color grid is not an efficient option.
[0030] Instead of relying on a color checker and machine learning models, in one embodiment according to the novel teachings herein, the color operations use a reference frame available to any user, namely the sclera. As shown in [Fig. 2] providing an illustration of an eye 200, the sclera 202 is the white portion of the user's eyes outside the iris 204. The sclera is fairly consistent across ethnic backgrounds, with a slight yellow tint for darker skin tones such as people of Black African descent.
[0031] The '166 patent describes lighting adaptation operations comprising sampling different parts of the face to find an average skin color. In one embodiment, the lighting adaptation operations also perform sampling for the average skin color, but also make use of or evaluate the sclera in order to improve the results while maintaining reasonable "costs" associated with the use of computing device resources and processing time.
[0032] The input images may include the face of an individual subject having occluded eyes, for example with dark hair or glasses. In one embodiment, in order to mitigate this problem, a pre-step, performed by an eye coverage detector, for example, includes detecting whether the eyes are covered or not. In such a case, the evaluation of the sclera may be bypassed so that full lighting adaptation operations are not performed. In one embodiment, lighting adaptation as described in the '169 patent, in response to skin color samples, may be performed. VTO Application
[0033] [Fig. 3] is an illustration of a computing environment 300, in accordance with one embodiment, such as for practicing one or more method aspects. The computing environment 300 shows a user computing device 302, such as a smartphone, a communications network 304, a server 306, and a server 308. The communications network 304 includes wired and / or wireless networks, which may be public or private and may include, for example, the Internet. The server 306 includes a server computing device such as for providing a site Web. Server 308 includes a server computing device such as for providing e-commerce transaction services. Although shown separately, servers 306 and 308 may comprise a single server device. The computing environment is simplified. For example, payment transaction gateways and other components such as for performing an e-commerce transaction are not shown.
[0034] The computing device 302 includes a storage device 310 (e.g., a non-transitory device such as memory and / or a solid-state disk, etc.) for storing instructions that, when executed by a processor (not shown) such as a central processing unit (CPU), a graphics processing unit (GPU), or both, cause the computing device 302 to perform operations such as a computer-implemented method.The medium 310 stores a virtual try-on of the application 312 including components such as software modules providing, a user interface 314, a face tracker 315 with a deep neural network (DNN) (e.g., a convolutional neural network (CNN) face detector 315A) providing the face points 315B, a VTO rendering pipeline component 316, a product recommendation component 318 with the product data 318A, and a shopping component 322 with a shopping cart 324 (e.g., shopping data). In one embodiment, not shown, the VTO application lacks a recommendation component and / or a shopping component, e.g., providing a product selection component for selecting products to be viewed as VTO effects.
[0035] In one embodiment, the VTO application is a web application as obtained from the server 306. In one embodiment, the VTO application such as for a native application is provided by a content delivery network. The product data 318A may be obtained from a content management system 307, associated with the server 307A. The content management system 307 includes a data store 307B that stores data related to the product, e.g., sample data and rendering effects data, etc. The sample data generally includes an image of the product that may be used to illustrate the product. In one embodiment, the sample data (e.g., an image) may be processed to extract data therefrom.The sample data, as extracted data, may include, for example, color or other light-related properties (e.g., brightness, etc.) of the sample data, etc. The product data (e.g., color, etc.) may be provided to a server in other ways, for example, as color or other parameters. For example, the sliders may provide input that is mapped to data values. In one embodiment, the . Product data may be provided to a user device (e.g., 302) by inclusion in a native application package and provided as updates to a native application such as by the server 306. The product data may thus be provided from various sources. The rendering effect data may include data for rendering an effect such as simulating makeup or other properties such as a matte appearance, a glossy appearance, a metallic appearance, a vinyl appearance, or, as further described herein, a glitter appearance on the makeup effect. A user interface 307C to the content management system 307 (e.g., see also [Fig. 4]) may be provided to a product provider such as a brand owner, to upload sample images and provide data such as to define sample data, product data, and / or rendering effect data.In one embodiment, the UI 307B is web-based.
[0036] Although not shown, the user device 302 may store a web browser for running the VTO application 312 on the web. In one embodiment (not shown), the VTO application 312 is a native application in accordance with an operating system (also not shown) and software development requirements that may be imposed by a hardware manufacturer, for example, of the computing device 302. The native application may be configured for web-based or similar communications to the servers 306, 307A and / or 308, as is known.
[0037] [Fig. 3] shows various input and output data or information associated with use of the VTO application 312, for example. These input and output data include an input image 326 of the user to be processed for a VTO experience, an output image 328 on which product effects are simulated providing a VTO experience, a VTO product selection 320 comprising user input selecting one or more product effects to be simulated, VTO product options 322 comprising options for products to be virtually tried on, e.g., for selection by a user of device 302, and purchase transaction information 324 comprising purchase information provided to and / or received from a user to purchase a product. As noted, not all VTO application embodiments include e-commerce capabilities.
[0038] In one embodiment, via one or more user interfaces 314, VTO product options 322 are presented for selection for virtual try-on by simulating effects on an input image 326. In one embodiment, the VTO product options 322 are derived from or associated with product data 318A. In one embodiment, the product data may be obtained from server 306 and provided by product recommendation component 318, which in one embodiment may be a product data analyzer where user-based recommendations per se are not made. Instead, all available product data is made available for selection for use. Although not shown, user or other input may be received for use in determining product recommendations. The user may be prompted, for example via one of the interfaces 314, to provide input to determine the product recommendations. In one embodiment, the product recommendation component 318 communicates with the server 306. The server 306, in one embodiment, determines the recommendation based on the input received via the component 318 and provides product data accordingly.The user interface 314 may present the VTO product choices, for example, by updating the display thereof in response to data received as the user navigates or otherwise interacts with the user interface.
[0039] In one embodiment, the one or more user interfaces provide instructions and commands for obtaining the input image 326, and the VTO product selection input 320 such as an identification of one or more recommended VTO products to try. In one embodiment, the input image 326 is the image of a user's face, which may be a still image or a frame of a video. In one embodiment, the input image 326 may be received from a camera (not shown) of the device 302 or from a stored image (not shown). The input image 326 is provided to the face tracking device 315, e.g., for processing to locate features (e.g., objects) in the face image using the deep neural network 315A.
[0040] In one embodiment, a localization output from the face tracker 315 may include classification results, segmentation masks, or other localization data for one or more detected objects, and is provided to the VTO rendering pipeline component 316. In one embodiment, the localization output includes face points 315B from the face tracker 315. The input image 326 is also provided (e.g., made available) to the pipeline component 316. The VTO product selection 320 is also provided to the pipeline component 316 to determine the effects to be rendered. In an embodiment related to makeup simulation, one or more effects may be indicated such as for one or more of the product categories including: lips, eyeshadow, eyeliner, eye shadow, etc.
[0041] The VTO rendering pipeline component 316 renders effects onto the input image 326, for example by drawing (rendering) effects in layers, one layer for each product effect, to produce the output image 328. The rendering is in accordance with the product data 318A selected by the VTO product selection 320 and is responsive to the location of the detected objects. For example, a VTO product selection of a lipstick, lip gloss, or other lip-related product calls for the application of an effect to one or more detected mouth- or lip-related objects at respective locations. Similarly, a product selection of eyebrows calls for the application of a selected product effect to the detected eyebrow objects. Typically, for symmetrical aspects, the same eyebrow effects are applied to each eyebrow, the same lip effect to each lip, or the same eye effect to each eye region, but this is not necessarily the case. Some VTO product selections include a selection of multiple products such as coordinated eyebrow and eye products or other combinations of detected objects, which may be labeled as "product aspects."The VTO 316 rendering pipeline component can render each effect, for example, one product effect per layer at a time until all effects are applied. The order of application can be defined by rules or in the product selection, for example, a lipstick before a lip gloss.
[0042] User interfaces 314 provide output image 328. Output image 328, in one embodiment, is presented as a portion of a live stream of successive output images (each 328 for example), such as when a selfie video is augmented to present an augmented reality experience. In one embodiment, output image 328 may be presented with input image 326, such as in a side-by-side display for comparison purposes. In one embodiment, this may be an "in-place" before / after comparison interface where the user moves a slider to reveal more of the initial or processed image. In one embodiment, output image 328 may be saved (not shown) such as on storage device 310 and / or shared (not shown) with another computing device.
[0043] In one embodiment, the input images (not shown) comprise input images of a video conference session and the output images comprise a video shared with another participant (or more than one) of a video conference session. In one embodiment, the VTO application (which may have another name) is a component or plug-in of a video conference application (not shown) allowing the user of the device 302 to wear makeup during a video conference with one or more other conference participants.
[0044] In the illustrated embodiment of [Fig. 3], the VTO rendering pipeline component 316 is configured to apply lighting adaptation to effects to be rendered. The components of the VTO rendering pipeline component 316 are illustrated as process flows showing, for example, the operations (e.g., steps of a method) executed by one or more processors (e.g., CPUs, GPU or both) of the computing device 302. It is understood that corresponding software modules or components, for example, may implement such a flow. It is understood that other components for other adaptations that may be applied before rendering are not shown for the sake of simplicity.
[0045] In the embodiment and for at least some purposes, color is modeled using a hue, saturation, and value / lightness (HSV or HSB) model. In 316A, the operations perform average skin color detection to determine an average skin tone color. In one embodiment, the operations are performed in accordance with the '166 patent. For example, the operations evaluate left and right skin (cheek), facial skin (cheeks and forehead), left and right eye color, left and right eye sclera, eye min / max brightness, and lips. In 316B, the operations perform eye coverage detection, determining whether the eyes are covered such that the sclera is unavailable.
[0046] At 316C, operations adjust the brightness and saturation of the product data for an effect to be applied to the input image in response to the product selection 320. The brightness and saturation are adjusted in response to the average skin color and the min / max eye brightness detected at 316A. If more than one product effect is to be applied, then step 316C is performed for each.
[0047] At 316D, the hue of the effect to be applied is adapted based on the white of the eye detected from the sclera at step 316A, if available, (when availability is detected at step 316B). In one embodiment, the operations determine whether the current color is shifted to a warm tone or a cool tone. The operations interpolate between different H, S, and V based on the current color of the sclera. Thus, the hue of the effect is pushed to a warmer or cooler tone based on the detected conditions. To determine whether it is a warm or cool tone, the HSV values of the sclera are examined. An example of more detailed operations is described later.
[0048] At 316E, the product effect as adapted is rendered in a layer associated with the input image 326 to define the output image 328. In an embodiment such that when more than one effect is to be applied, steps 316D and 316E are repeated for each effect to be applied. Once the steps of the pipeline component 316 are completed, the output image is provided, for example via the user interface 314.
[0049] In one embodiment, steps 316A-316C are performed by a central processor or CPU (not shown) while steps 316D and 316E are performed by a graphics processor or GPU (not shown), as indicated by the dotted box.
[0050] Here is an example of more detailed operations concerning interpolation in response to the warm or cool tone of the sclera. The following inputs are used: cP«au denotes the HSV color at the current skin pixel, with each HSV channel having a value from 0 to 1; Cx / ère denotes the average HSV color at the sclera for the eye (either the left or right eye is used depending on which half of the face the current pixel is in), with each HSV channel having a value from 0 to 1; and Cmakeup denotes the HSV color for the target makeup color, with each HSV channel having a value from 0 to 1.
[0051] A smoothstep^eç, ef, x) function is used throughout, defined as a function that smoothly interpolates between 0 and 1, starting at x ~ eo and ending at x ~ ei. An example implementation is available at the time of filing at en.wikipedia.org / wiki / Smoothstep. Also used is Rotating Blend ht) which is a function that linearly interpolates between hues h0 and based on f. This function takes into account that the hue wraps around. For example, an interpolation between 0.9 and 0.1 with t = 0.5 would produce 0.0 as output.
[0052] The following calculations are performed to determine if the skin is in a warm tone:
[0053] [condition\_(skin_h_ï) = smooth step(0.03, 0.2, c_(skin, h))
[0054] [condition]_[skin_h_2) = 1.0-smoothstep(0.3, 0.35, c_(skin, li))
[0055] [condition]_(skin_s) — smoothstep(Q,3, 0.4, c_(skin, 5))
[0056] [condition\_(skin_v) = smoothstep(f),3, 1.5, c_{skin, v))
[0057] The following calculations are performed to determine if the sclera is in a warm tone:
[0058] [condition]_{eye_h_l)=^ smoothsteff 0.06, 0.1, c_f sclera, lï))
[0059] [condition] _{eye_h_2) = 1.0-smoothsteplO A, 0.45, c_(sclera, h))
[0060] [condition]_(eye_s) — smoothstep(0,l, 0.15, c_(sclera, s))
[0061] [condition]_(eye _v) = smoothstep(0.6, 0.1, c_(sc 1st, v))
[0062] To determine whether the hot adjustment should be performed, all the conditions are multiplied together, forming [condition]_hot. The adjustment is done using:
[0063] c^makeup, h, new) = Rotating mix(c ^makeup, h), 0,2, [condition]_warm)
[0064] A similar process is applied to check for the presence of a cool tone. The following calculations are performed to determine if the skin is in a cool tone:
[0065] [condition]_(skin_h_ï) = smoothstep(0.5, 0.8, c_(skin, h))
[0066] [condition]_(skin_h_2) = 1.0-smoothstejfOA, 0.85, c_(skin, hf}
[0067] [conditions[_fpeau _s) = smoothsteplO,01, 0.5, c_fpeau, .y))
[0068] [condition]_fpeau_v_ 1) — smoothstep{0.6, 0.1, c_{peau,v))
[0069] [condition]_(peau_v_2l) = 1.0- smoothstep(0.9, 1.0, c_(peau, vf
[0070] The following calculations are performed to determine if the sclera is in a cold tone:
[0071] \condition\_(eye_h_ 1) = smoothstep(0.5, 0.85, c_(sclera, lï))
[0072] [condition]_(eye_h_2) = LO-smoothstep(0.85, 0.9, csciere,hf)
[0073] [condition]—(eye _s) — smoothstep(0,l, 0.15, c_(sclera, s))
[0074] [condition]_(eye_v) = smoothstei^0.6, 0.7, c_(sclera, v))
[0075] To determine whether cold adjustment should be performed, all conditions are multiplied together, forming coldcondition. The adjustment is done using:
[0076] c-(makeup, h, new)= Rotate Mix(c-(makeup, h\ 0.75, [condition]-cold)
[0077] In one method aspect, there are the following hue-related embodiments: Embodiment Hue 1: A computer-implemented method comprising performing by one or more processors the following steps: processing a sclera in a face of an input image to determine a reference hue of the face; adjusting a hue of a makeup effect in response to the reference hue to render an adjusted makeup effect on the input image; and presenting an output image defined from the input image and the adjusted makeup effect via a user interface as a component of a virtual try-on experience.
[0078] Embodiment Hue 2: In Embodiment Hue 1, the hue of the makeup effect is pushed toward a warmer tone or a cooler tone in response to the reference hue.
[0079] Embodiment Hue 3: In embodiment Hue 1 or 2, the processing adjusts a brightness and saturation of the makeup effect in response to an average skin color determined by processing the skin of the face and in response to the brightness of the eyes (e.g., min / max) determined by processing one or more eyes of the face.
[0080] Embodiment Hue 4: In any of Embodiments Hue 1 to 3, the hue adjustment is in response to detecting a presence of the sclera for hue adjustment. For example, the hue is not adjusted if the sclera is not present. Brightness and saturation may still be adjusted.
[0081] Embodiment Shade 5: In any one of Embodiments Shade 1 to 4, the method comprises processing the image using a deep neural network to locate facial features in the face; and wherein the sclera is processed and the makeup effect is rendered in response to the facial features as located.
[0082] Embodiment Shade 6: In any one of embodiments Shade 1 to 5, the makeup effect is associated with a makeup product and the method comprises providing, via the user interface, a recommendation of a a plurality of makeup products to be virtually tried on; and receiving a selection input, via the user interface, selecting the makeup product for the virtual try-on experience.
[0083] Embodiment Hue 7: In embodiment Hue 6, the selection input selects a plurality of products and the method includes adjusting the hue of each associated makeup effect in response to the reference hue to render a plurality of manufacturing effects adjusted to the input image.
[0084] Embodiment Shade 8: In any one of Embodiments Shades 1 to 7, the method comprises providing, via the user interface, a purchasing service for conducting a purchasing transaction (e.g., via e-commerce) for purchasing one or more makeup products.
[0085] It will be appreciated that a system aspect and a computer program product aspect are each disclosed corresponding to each of the embodiments Shade 1-8.
[0086] For example, in one system aspect, the following hue-related embodiment is provided: Embodiment Hue 9: A system comprising a rendering pipeline configured (e.g., via circuitry) to: process a sclera in a face of an input image to determine a reference hue of the face; adjust a hue of a makeup effect in response to the reference hue to render an adjusted makeup effect on the input image; and provide an output image defined from the input image and the adjusted makeup effect for presentation via a user interface as a component of a virtual try-on experience. Glitter Makeup Effect
[0087] Glitter is used in many different makeup products, such as eye shadow, lipstick, but also blush or eyeliner. Glitter typically requires many input variables and many calculations to calculate realistic reflections, so simulating the effect is difficult to perform correctly.
[0088] At the heart of any glitter effect is the calculation of a set of particles that will be spread over the surface where the particles are to shine. Calculating a position and reflection (e.g., a particle property) for each particle, represented in a texture map, can require too much computing power to be executed in live mode on a mobile device.
[0089] According to one embodiment, such as to offload computation during direct mode rendering, texture maps (position and properties of particles) are pre-generated before rendering occurs. The texture maps may be reused during rendering of a product with glitter.
[0090] In accordance with the techniques and empirical values herein, the textures pre- generated provide enhanced glitter effects when used in real time.
[0091] Particle Texture: The first step is to computationally calculate a particle texture that will be used to position the particle and store the properties of each particle (e.g., size, reflectance, base color, orientation, etc.). In one embodiment, the texture is calculated using a Voronoi diagram (structure). An example of a Voronoi diagram is available at en.wikipedia.org / wiki / Voronoi_diagram.
[0092] The Voronoi texture has certain properties that make it useful for defining the glitter particles to be rendered. A Voronoi texture is created by generating random 2D points and creating boundaries between the points, where the boundaries are equidistant from the nearest points. These Voronoi regions formed from the boundaries define the positions of the glitter particles. It has been determined that the manner in which the random 2D points are generated can have a perceptible effect. In one embodiment, the random 2D points are generated in accordance with a Poisson disk sampling technique. Poisson disk sampling produces samples more uniformly distributed in an image than uniform sampling. A discussion and examples are available in the paper titled "Visualizing Algorithms," Bostock, M., June 26, 2014, available at the time of filing at bost.ocks.org / mike / algorithms.
[0093] In one embodiment, for example, with respect to a product sample image, there are two texture images (maps) used to store particle information. One stores particle normals and the other stores particle centers. The normals are normalized vectors with their angles relative to the +z direction randomly sampled (e.g., using a Poisson disk) over an empirically determined and hard-coded range. The particle centers are coordinates normalized by the image dimensions. The texture maps define the glitter particles with a location in 3D space, for example, using a particle center and a normal vector.In one embodiment, the normal vector is a 3D direction, and includes x, y, z values (where the x, y values are different from the pixel locations or other locations related to the (x,y) grid of the particle center).
[0094] These textures are sampled at a certain size based on a product's flake size parameter, and they are configured to be repeatedly sampled beyond the edges. In one embodiment, the textures are sampled using mipmapping, where different resolutions of the textures are pregenerated. Mipmapping is a graphics technique that scales an original high-resolution texture image or map and filter, and scales it into multiple smaller-resolution texture maps. During rendering, the operations dynamically select which texture to use based on various factors, such as output resolution vs. glitter texture size. And the texture is scaled based on the glitter size. Environmental mapping
[0095] A pre-generated environment map is used to define the lighting of an environment in accordance with an image-based lighting (IBL) technique. Instead of using a map of the actual environment, it is found that control of the glitter flicker is achieved by generating the environment map as if there were a spotlight with light directed from a certain direction and concentric rings of light around the central spotlight. It is noted that this environment map only needs to be in grayscale, as only the brightness of the environment and not the colors is of concern. In one embodiment, the environment map is stored as a cube map (e.g., 6 textures that can be rolled / folded to define a cube), with each cube face stacked vertically into an image.Each cube face corresponds to the appearance of the spotlight with light directed in a certain direction if the light is viewed from that face. Glittery rendering
[0096] To render the glitter effect, the operations find a normal of the glitter particle, which may be transformed by the rotations of the face and surface (if any). In one embodiment, a face tracking engine, for example, may provide object location information such as for eyes, lips, and / or facial contour—e.g., face points. The points (location information) may be used to determine a rotation of the face (e.g., relative to a norm). A 3D model or the like may provide additional surface information, for example, about a surface of the region where the glitter is to be applied. The 3D shape information is described further herein.
[0097] In one embodiment, rendering is applied using physically based rendering (PBR) and image-based lighting (IBL) techniques. The physically based rendering material properties (e.g., roughness, F0...) and view direction are hard-coded (e.g., pre-computed and stored), while the environment brightness is found from the environment map (cube map and its texels) using the normal vector. This data is used in the PBR image-based lighting calculation to find the specular brightness of the particle as described in Leam OpenGL - Graphics Programming “Specular-IBL,” de Vries, Joey, June 17, 2020, available at the time of filing at leamopengl.com / PBR / IBL / Specular-IBL. It is noted that, in one embodiment, the particle specular brightness is found from the environment map (cube map and its texels) using the normal vector. lization, a diffuse term (one of the elements of the IBL) is ignored, because the particle is expected to be reflective.
[0098] As noted herein, a makeup effect simulates the application of a product to a portion of the face such as lipstick on the lips, eye shadow on an eyelid region around an eye, etc. The portion of the face having the effect is overlaid onto an input image, such as by a GPU. Thus, the portion / effect includes pixel data that must be determined for the overlay operation, such as using the texture map, environment map, and rendering data, etc. The pixels of the effect can then be considered to represent glitter particles and non-glitter particles. Whether a particular pixel, for example a current pixel, is a glitter particle pixel or not can be determined using various parameters such as the distance from the center of a glitter particle (within the texture map) and the size of the particular glitter particle.The center of the particular glitter particle can serve as a seed for determining particle parameters such as the size of a particle (e.g., in a number generator that determines the size within a normalized range) or the color (e.g., in a number generator that determines the values within a range of a color model).
[0099] In one embodiment, the glitter particles are circular and the size distance from the center is used to draw the circular shape of the particle and the alpha flare (only the center portion of the full lights and the light fades toward the edge of the particle).
[0100] By combining the results of these calculations, the illumination of the particle is rendered.
[0101] One of the limitations of a Voronoi texture is that it does not allow overlaps. In one embodiment, for the glitter effect to appear at a higher density and have particle overlap, the rendering operations are repeated when the texture map is used to define a plurality of overlapping texture map layers. The operations repeat and overlap the glitter rendering with the particle textures (i.e., the texture map) rotated 90, 180, and 270 degrees. In one embodiment, the operations vary the density by assigning a probability of existence of a particular glitter particle in the texture map to a layer, and whether a particle exists or not will depend on a random value greater or less than the probability of existence. That is, if the probability of a layer existing is 0.8, and the value of a particle is 0.6, then it will exist, but if its value is 0.9, then it does not exist (its alpha brightness is set to 0, for example).
[0102] [Fig.4] is a screenshot of a UI 400 for setting glitter parameters, e.g., for setting rendering effect data. The UI 400 may be made available to a brand owner or other entity to define the characteristics of a makeup effect, e.g., for a VTO experience. The UI may be configured to receive product data, such as to define the underlying makeup effect as well as any special rendering effects such as special lighting or glitter effects, makeup effect shapes (e.g., mask images), etc. In one embodiment, UI 400 is an example of UI 307B.
[0103] The UI 400 is useful for providing a glitter effect (e.g., a glittery appearance or a "shimmer") such as provided by a glitter / sequin particle of a makeup effect. An example of a makeup effect is an effect on the eyes such as provided by an eyeshadow, an effect on the lips such as provided by a lipstick, an effect on the cheeks such as provided by a face powder, etc.
[0104] The UI 400 includes a ribbon of icons 402, e.g., for changing user interfaces (others not shown) for each of the different products, product effects, and / or associated aspects. The icon 402A relates to glitter ("sparkle") and invokes the UI 400. The UI 400 includes a plurality of input controls (e.g., 404-416) for receiving input to set the respective glitter appearance properties / parameters. The controls 404-416 may take various forms, and a plurality herein include slider controls. Other types of input controls for entering text or similar values are known and useful. Voice commands may be used. The controls 404-416 include:
[0105] Color 404: Base color of glitter (will be modified by reflection, intensity, and color variation); calling color command 404 may present another color section control (not shown) such as a color wheel and / or a red, green, and blue (RGB) input value control to define a color using RGB additive color values.
[0106] Reflection 406: How reflective are glitters;
[0107] Color variation 408: 0 means no variation 100% means one variation across the entire color spectrum;
[0108] Density 410: what flicker do we generate;
[0109] Intensity 412: the amount of visible flicker;
[0110] Size 414: Basic size of the flicker (can be changed by varying size); and
[0111] Size variation 416: 0 means no variation, 100% means the size of all glitter particles varies (e.g., within a standardized range).
[0112] Thus in one embodiment, the rendering operations first render a base product (e.g., in a form applied to the associated facial region to one or more facial features. Then, the rendering operations render one or more, preferably a plurality of, layers of glitter particles that are applied on top (e.g., 4 layers in total). Multiple layers are preferably used to allow the particles to overlap. For a random size of a glitter particle in a layer of glitter particles, the rendering operations generate a random size between a hard-coded minimum and maximum value (which are affected by the glitter size), and interpolate linearly between the base glitter size and the random size based on a parameter called "glitter size variation." If this parameter is zero, there is no randomness, and if it is one, the size is completely random.For a random color of the glitter particle, the operations generate a random color within a certain hue saturation and lightness (HSL) range (e.g., in one embodiment, limited to colors that have high saturation and lightness). As with the glitter size, the operations linearly interpolate the glitter base color and the random color based on a parameter called "glitter color variation." If this parameter is zero, there is no randomness, and if it is one, the color is completely random. The pixel values of the glitter makeup effect are assigned in response to the distance from a glitter particle center. If the distance of a current pixel from a center is within the circle size, the current pixel is treated as a glitter pixel, otherwise nothing is changed for that pixel (because the base product has already been rendered).Since each pixel in the pre-generated texture map contains the center of the nearest particle, it is sufficient to do a texture lookup for the current pixel to determine the nearest particle.
[0113] [Fig. 5] is a flowchart of operations 500, in accordance with one embodiment, such as for a computing device of [Fig. 3] (e.g., device 302). Operations 500 define a computer-implemented method comprising executing by one or more processors the steps of a method. For example, in one method aspect, embodiments related to the following sequins are provided:
[0114] Embodiment Glitter 1: A computer-implemented method comprises performing by one or more processors the steps of: processing a face of an input image to determine a location of a facial feature, the input image processed by a face tracking engine comprising at least one deep neural network to locate the facial features (step 502); rendering a makeup effect in association with the facial feature, the makeup effect comprising a glitter effect defined from the computer-precomputed texture and light environment maps for localization and lighting the glitter effect (step 504); and providing an output image defined from the input image and the makeup effect for presentation via a user interface as a component of a virtual try-on experience (step 506). The face tracking engine may include face tracker 315 as described previously, for example. Rendering (and providing the output image) may be provided by rendering pipeline 316 as adapted for the glitter effect teachings herein, for example.
[0115] Embodiment Glitter 2: In Embodiment Glitter 1, the makeup effect comprises a lip makeup effect, an eye area makeup effect, or a cheek area makeup.
[0116] Glitter Embodiment 3: In Glitter Embodiment 1 or Glitter Embodiment 2, the rendering step is done in response to physically based rendering techniques to define the glitter effect.
[0117] Glitter Embodiment 4: In any one of Glitter Embodiments 1 to 3: a computer-precomputed texture map defines, for each of a plurality of glitter particles, a glitter location and a glitter reflection angle; a light environment map simulates a light source (e.g., in three-dimensional space) to determine a specular brightness of a particular glitter particle in accordance with the reflectance angle of the particular glitter particle; and rendering defines pixel values for pixels of the makeup effect, adjusting the illumination of a current pixel in accordance with a distance of the current pixel from a glitter location of a particular particle, the specular brightness of the particular glitter particle, and a size of the particular glitter particle.Embodiment Glitter 5: In Embodiment Glitter 4, specular gloss is further determined in response to a three-dimensional shape of the makeup effect and a rotation of the face.
[0118] Embodiment Glitter 6: In Embodiment Glitter 4 or 5, a particular glitter particle size is randomly assigned within a standardized range.
[0119] Glitter Embodiment 7: In any of Glitter Embodiments 4-6, the illumination further responds to an alpha glow of the particular glitter particle, defining a fade of light from a center.
[0120] Glitter Embodiment 8: In any of Glitter Embodiments 4-7, the rendering further colors the makeup effect in response to a glitter color of the particular glitter particle.
[0121] Embodiment Glitter 9: In any one of Embodiments Glitter 4 to 8, the plurality of glitter particles are randomly spaced in the non-overlapping texture map and wherein rendering repeats setting pixel values using the texture map in a plurality of overlapping texture map layers to overlap the glitter particles in the glitter effect.
[0122] Glitter Embodiment 10: In Glitter Embodiment 9, rendering varies a density of glitter particles of the glitter effect, randomly determining whether a particular particle in the texture map exists in one of the overlapping texture map layers.
[0123] Embodiment Sequins 11: In any of Embodiments Sequins 4-10, a normal to the reflectance angle (e.g., defined as a vector) is used with the light environment map to determine spectral brightness.
[0124] Embodiment Sequins 12: In any one of Embodiments Sequins 4 to 11, each of the glitter locations of the plurality of glitter particles is randomly assigned using Poisson disk sampling.
[0125] Embodiment Sequins 13: In any of Embodiments Sequins 1-12, rendering is in response to one or more rendering effect parameters including color, reflection, color variation, density, intensity, size, and size variation parameters.
[0126] It will be appreciated that a system aspect and a computer program product aspect are each disclosed corresponding to each of the embodiments Sequins 1-13.
[0127] Another glitter-related method aspect is disclosed, such as for a computing device configured to computationally pre-calculate maps for use during rendering. For example, provided is the Glitter Embodiment 14: A computer-implemented method includes performing by one or more processors the steps of: computationally pre-calculating texture and light environment maps for localizing and illuminating a glitter effect as a component of a makeup effect to be rendered in association with a facial feature localized by a face tracking engine of a virtual makeup try-on application; and providing the computationally pre-calculated texture and light environment maps for use by a rendering pipeline of the virtual makeup try-on application, for rendering the makeup effect with the glitter effect.Glitter Embodiment 15: In Glitter Embodiment 14, computer-precomputed texture and light environment maps are defined to generate the glitter effect in accordance with physically based rendering techniques that model particles in a lit environment. Glitter Embodiment 16: In Glitter Embodiment 14 or 15, a texture map is . computationally pre-computed in accordance with a Voronoi diagram technique, providing random locations for a plurality of glitter particles regarding the glitter effect, and the texture map is further computationally calculated to respectively include a reflectance angle for each of the plurality of glitter particles. Glitter Embodiment 17: In the Glitter Embodiment 16, the light environment map is defined to model a light source, such that at rendering time, a specular brightness is respectively provided for each of the plurality of glitter particles in the glitter effect, the specular brightness responding to the reflectance angle. Glitter Embodiment 18: In the Glitter Embodiment 16 or 16, the locations of the glitter particles are assigned using the Poisson disk sampling distribution.
[0128] It will be appreciated that additional method-related embodiments adapted, if any, from any of the Sequin Embodiments 1-13 may be applied to the Sequin Embodiments 14-18. It will be appreciated that a system aspect and a computer program product aspect are each disclosed corresponding to each of the Sequin Embodiments 14-18 or as adapted as noted. Any of the Sequin Embodiments may be combined with any one or more of the Tint Embodiments, Shaping Embodiments, and Mesh Embodiments, e.g., by combining method aspects thereof, defining corresponding system aspects, etc. Shaping a facial feature
[0129] In general, the makeup VTO applies a product effect to a facial feature as that feature is identified by a face tracking engine, such as face tracker 315. The VTO typically uses only the original image and applies a "paint" color or texture on top to cover the original colors of the detected facial feature as normal makeup would. However, for the eyebrow category, some of the beauty products sold include shaping tools and products that allow a user to change the global or local shape of the eyebrow. A simulation of the reshaping is desired. In addition to detecting and rendering the detected shape, an additional set of transformations may be employed as described herein to reshape, for example to perform eyebrow warping.
[0130] In one embodiment, eyebrow warping is an image manipulation technique that transforms the pixels of the original image. Pixel transformation is preferred over replacing the original eyebrow with a synthetic eyebrow. Removal and replacement with an overlay can be difficult and result in results that are not sufficiently realistic.
[0131] Some examples of eyebrow transformations include: overall raising of the brow bone, decreasing or increasing the inner thickness, cleaning up the top and cleaning up the bottom. Eyebrow shapes can be characterized as having an inner part closer to the nose, a middle part and an outer part, furthest from the nose. The inner, middle and outer parts are located along the brow bone or define the brow bone with an upper line (closest to the forehead) and a lower line (closest to the eye).
[0132] In one embodiment, the eyebrow values that can be transformed (e.g., eyebrow parameters) include: Outer: horizontal and vertical alignment, thickness; Inner: horizontal and vertical alignment, thickness; Arch: local and global increase / decrease, arch point; Mid: thickness; Cleanup: upper, lower, inner; and Global: horizontal and vertical offset.
[0133] In one embodiment, a face tracking device, such as the tracking device 315, may locate facial features and provide face points as shown in [Fig. 6]. [Fig. 6] shows an example face image 600 (e.g., a cropped image of a face 602) annotated with the groups 604 of face points. The representation of the points on the face is for illustration. The output of the face tracking device 315 need not comprise an annotated image and the output of face points and a cropped face, for example, may be separate data or the cropped face not provided per se.
[0134] In one embodiment, the groups 604 of face points include the face contour face points 604A, the right and left eyebrow face points 604B, 604C, the left and right eye face points 604D and 604E, the nose face points 604F, and two lip face points 604G and 604H. In one embodiment, the lip face points include an outer lip group 604G (around the mouth) and an inner lip group (between the lips) 604H. The face points in an individual group are numbered (e.g., 0, 1, 2...) and help define the contour of the detected object. In one embodiment, the face tracker assigns each point so that it is placed at consistent locations relative to the contour of the object it is designating. For example, a particular point may always be at the right corner of the mouth.In one example, the face points are X,Y pixel coordinates, relative to the cropped face image 602 and are associated with the respective detected objects from (e.g., one of) the networks of the tracking device 315.
[0135] In one embodiment, operations such as for the face tracker and rendering pipeline components of a try-on application virtual perform a computer-implemented method comprising one or more steps as follows: 1. Processing an input image using the face detector, providing one or more neural networks to locate facial features to obtain the face points of eyes and eyebrows. 2. Figures 7A and 7B are illustrations of a face deformation construct 700, according to one embodiment, for deforming an eyebrow (an exemplary facial feature). As shown in [Fig. 7A], on each eyebrow (e.g., left eyebrow 702), defining a rectangular deformation grid (704) centered on each eyebrow region. The size of this box (grid) is calculated from the sizes and distances of various facial features. The grid is also rotated (via affine transformations) to match the rotation of the face. For example, using the face contour face points 604A, a face rotation can be determined relative to a standard position. A coordinate system (e.g., as represented by points in grid box 704) is defined in the grid, with coordinates ranging from (0, 0) to (1, 1).This simplifies deformation calculations because they no longer have to worry about facial rotation or eyebrow size. The eyebrow face point group and the eye face point group for a right eye or a left eye are mapped into this coordinate system (into respective grids determined for each of these pairs of facial features), for use during deformation calculations. 3. The deformation grid is discretized into a 2D grid of points (e.g., the points illustrated in box 704, including points 704A, 704B, 704C, 704D, and 704E, where 704C is located within the eyebrow 702 between points 704A and 704D). By moving a grid point (e.g., 704D), the face image pixel at or near that grid point and its surrounding pixels (e.g., near grid point 704E, for example) are also moved. See [Fig. 7B] for the movement of the grid points and the resulting movement of the eyebrow pixels to reshape the eyebrow 702. Linear interpolation of the deformation is performed between the points. In one embodiment, a GPU provides this linear interpolation as a built-in function. There is a tradeoff where choosing a denser grid results in smoother deformations but higher processing (GPU) time.For example, in experiments it was found that a 25 by 50 dot grid (1250 dots in total) provides a good balance between quality and speed for . GPUs provided for commonly available mobile devices at the time of filing, such as smartphones. Anything higher resulted in lower yields in terms of quality. With more powerful hardware, a denser grid could be used. 4. Each grid point is then deformed, with the deformation being calculated using the face points and applicable deformation parameters. That is, predefined grid point deformations (displacements) can be defined in association with particular eyebrow transformations (e.g., parameters). 5. The facial image (e.g., its pixels) is then warped according to the warping grids. For example, eyebrow shaping shapes both eyebrows, each having a grid. Eyebrow shaping can be done with other beauty filter shaping such as eye or eyelid shaping, lip shaping, nose bridge shaping, nostril shaping, facial contour shaping (e.g., jawline slimming), etc., where each feature being shaped has a respective grid. Deformation calculations
[0136] The deformation calculations used for each eyebrow parameter are different, but there are common techniques. Each parameter has an associated deformation function: n _ f (nnnv ) Part “ J paranKPentréé Pareils? Py^
[0137] where: P input is the input grid point,
[0138] Psmm■iis is the set of eyebrow points,
[0139] P eyes is the set of eye points, an example of an associated facial feature and useful for defining an eye region facial feature (e.g., an associated facial feature) between the eyebrow and eye points along an upper curve of the eye; initially, the set of eye points and eyebrow points is provided by the face tracking device.
[0140] vparam cs( |a value of this parameter,
[0141] Psortie is the output grid point.
[0142] In one embodiment, the deformation is performed by iteratively applying each deformation function (e.g., where a shape parameter (param) indicates a change in the eyebrow) to the deformation grid. The overall process is as follows:
[0143] For each parameter param:
[0144] Distort the grid by applying / param^ to each grid point;
[0145] Apply fparam2i P sourdis and P y■eux to obtain a new set P'^,.^ of eyebrow points (and eye points p'yeu^, because the eyebrow points (and eye points) may have changed due to the deformation. Use the new points for the next iteration.
[0146] Although not shown, a user interface, for example similar to user interface 400, may be provided to receive input for the eyebrow parameters. In one embodiment, a slider or other controls may be provided to input the amount of change to a parameter. Warping Techniques
[0147] Some techniques are common among deformation functions. This section lists these techniques:
[0148] Curve Matching: A curve is calculated for the current eyebrow (by fitting a curve along the middle of the eyebrow, using the eyebrow points from the face tracker), and a target curve is calculated from the parameters. This is useful for changing the overall curvature of the eyebrow. The eyebrow is warped (e.g. in the grid) so that the current curve is warped to match the target curve. This is done by matching the source curve points to the target curve, and warping according to the delta. For points far from the curve in the grid, a 2D Gaussian falloff function is applied so that points near the curve are more heavily warped than points further away. The ox and oy values of this Gaussian function can be changed to adjust the "impact area". For example, oy should be large enough to affect the entire thickness of the eyebrow.In some cases, the Gaussian function can be replaced by a different function, for example an asymmetric version of the Gaussian function or a version with a "shorter tail" or a "longer tail".
[0149] Point Matching: This is similar to curve matching, except that instead of matching certain curves, certain discrete points are matched instead. This is useful for cases such as adjusting the alignment of a specific portion of the eyebrow.
[0150] Area enlargement / compression: The surrounding area along a curve or at a point can be "compressed" or "enlarged" (in a specific direction, e.g. vertically or uniformly). This is done by moving nearby points closer / farther apart, attenuated by a Gaussian function. This is useful for operations such as changing eyebrow thickness or refining eyebrow edges.
[0151] Implementation: The deformation grid is rendered using the grid points as vertices, for example to define a polygonal mesh. The triangles are adjusted on the vertices and the image is UV mapped on the vertices. UV mapping in the embodiment is a 2D modeling process of projecting the surface of a 2D model onto a 2D image for texture mapping. The letters "U" and "V" denote the axes of the 2D texture.
[0152] Beauty Filters: Similar to the eyebrow warping operations, beauty filter operations are a set of transformations that change the shape of other facial features. In one embodiment, the transformations include: Eye enlargement (vertical and horizontal); Jawline thinning; Nostril thinning; and Nose bridge thinning. An implementation for beauty filters is the same as for eyebrow filters, but the affected regions are different, if any.
[0153] Figures 8A and 8B are a flowchart of operations 800 and 804, such as for a computing device of [Fig. 3] (e.g., device 302) in accordance with one embodiment. Operations 800 define a computer-implemented method comprising executing by one or more processors the steps of a method. Operations 804 are further defined as steps 804A-804C, in one embodiment.
[0154] For example, in one method aspect, the following shaping-related embodiments are provided: Shaping Embodiment 1: A computer-implemented method comprises performing by one or more processors the following steps: processing an input image to locate facial features using a face tracking engine having one or more deep neural networks to respectively produce face points defining an outline for each of the located facial features (step 802);and rendering an output image derived from the input image using a rendering pipeline, the output image being derived by applying one or more shape changes to a particular facial feature (step 804), the one or more shape changes being determined by: i) mapping a grid of spaced grid points to pixels of the particular facial feature and any associated facial features (804A); and ii) warping at least some of the spaced grid points using the respective shape change functions, warping the change location of at least some of the spaced grid points to change the locations of the face points of the particular facial feature (804B); and wherein rendering determines the output pixels for the particular facial feature and any associated facial features for the output image in response to the warping (804C). ;
[0155] The face tracking engine may include the face tracker 315 as described previously, for example. Rendering (and providing the output image) may be provided by the rendering pipeline 316 as adapted for the teachers. glitter effect effects here, for example. Embodiment Shaping 2: In Embodiment Shaping 1, the face tracking engine and the rendering pipeline are components of a VTO application for simulating the effects of a makeup product applied to facial features. Embodiment Shaping 3: In Embodiment Shaping 2, the rendering pipeline renders a makeup effect on the particular facial feature whose shape has changed so that the output image includes the particular facial feature whose shape has changed and with the makeup effect.
[0156] Shaping Embodiment 4: In any one of Shaping Embodiments 1 to 3, the method comprises providing a user interface to receive input to define shape parameters for the one or more shape changes and wherein rendering is in response to the user input.
[0157] Shaping Embodiment 5: In Shaping Embodiment 4, at least some of the shape change functions perform one or more of the following actions: curve matching to match a median curve along a midpoint of the contour of the particular facial feature to a target curve defined by the shape parameters of the one or more shape changes, attenuating changes in location of the spaced grid points in response to distance from the target curve; point matching to match a discrete point of the contour of the particular facial feature to a target point defined by the shape parameters of the one or more shape changes;and area enlargement or area compression to enlarge or compress an area along a face point curve or around a particular pixel, in response to the shape parameters, the area enlargement or area compression being attenuated by an attenuation function in response to the distance from the face point curve or the particular pixel. ;
[0158] Shaping Embodiment 6: In any of Shaping Embodiments 1-5, determining the pixels includes fitting triangles to the vertices defined by the spaced grid points as warped and UV mapping the pixels of the particular facial feature and any associated features onto the vertices.
[0159] Shaping Embodiment 7: In any one of Shaping Embodiments 1 to 6, the particular facial feature defines a first facial feature and the rendering step is repeated with respect to a second facial feature to produce an output image having at least two facial features whose shape has changed.
[0160] Embodiment Shaping 8: In any of the embodiments Shaping 1-7, the shape changes applied to the particular facial feature include any of eyebrow shaping, nose shaping, such as nostril thinning or bridge thinning, facial contour change, such as jawline thinning, eye or eyelid change such as vertical or horizontal eye enlargement; or lip change such as lip plumping.
[0161] It will be appreciated that a system aspect and a computer program product aspect are each disclosed corresponding to each of the Shaping Embodiments 1-7, for example. Any of the Shaping Embodiments may be combined with any one or more of the Tint Embodiments, the Glitter Embodiments, and the Mesh Embodiments as noted. 3D mesh from a 2D reference point
[0162] In one embodiment, to facilitate more realistic rendering of facial features, whether for applying a shaping effect or for applying a makeup effect (such as makeup looks), rendering operations (e.g., of pipeline 316) may be configured to use 3D polygonal meshes. In one embodiment, the 3D polygonal meshes are used to render special lighting effects (e.g., metallic, vinyl) on a makeup effect.
[0163] A mesh is a set of vertices, edges, and faces that define (e.g., model) the shape of a 3D object. Using polygonal meshes has many advantages beyond being able to actualize complex lighting effects: polygonal meshes can be rendered efficiently because many commercially available GPUs used in consumer tablets and smartphones, etc. at the time of filing are optimized to handle polygons, resulting in faster rendering speed.
[0164] In a VTO application, user input may indicate which product(s) should be applied as one or more makeup effects associated with at least some of the facial features located by a face tracking device. An effect may be applied to an image using a mask (e.g., a 2D mask image) shaping the makeup effect at a location relative to at least some of the facial features. For example, to provide realistic effects that respond to the 3D shapes of the facial features, a mask for an effect may be deformed to realistically fit a 3D mesh model of the facial features. The deformed 2D mask image may be UV mapped to be used to shape the effect during rendering. Generate 3D mesh
[0165] In one embodiment, the face tracking device 315 detects 2D face points. The rendering operations generate 3D meshes using the 2D face points. In one embodiment, the operations for generating a 3D mesh include: 1. Estimating 3D face points using detected 2D face points and an existing 3D face model - projecting the 2D face points onto a 3D space to obtain 3D face points. Normally, cameras and human eyes see in perspective projection. When a 3D point is projected into a 2D space, a perspective projection matrix is applied. In one embodiment, to go from a 2D point to a 3D point, the inverse of the projection matrix can be applied. However, the depth is unknown, so the result is actually a 3D ray rather than a 3D point. To obtain a 3D point, the operations approximate the face with a 3D plane and intersect the 3D ray with the plane to obtain a 3D point. A hard-coded offset is added to each point to account for the fact that the face is not actually flat.For example, for lip points, points near the corners of the mouth would be deeper relative to the camera than points in the center; . 1. Interpolation of spline curves using 3D face points and use of these smoothed curves as contours of facial features; 2. Generating a 3D grid (e.g., spaced grid points) and deforming the grid points to fit the curvature of the 3D contour lines; and 3. Extracting 3D facets (triangle-shaped) from the deformed grid and grouping them to form the 3D facial mesh.
[0166] Figures 9A, 9B, and 9C are illustrations of 3D polygonal meshes 900 including eye meshes 902 and lip meshes 904 for facial features related to the eyes and lips, in accordance with one embodiment. [Fig. 9A] shows a front view while Figures 9B and 9C show partially rotated left and right views. [Fig. 9A] is enlarged relative to Figures 9B and 9C for convenience. It is evident that the eye-related meshes in the present embodiment include regions around a respective eye, including the associated eyebrow.
[0167] Map 2D mask image onto 3D mesh
[0168] In one embodiment, a known mapping technique may be used. For example, to "warp" a 2D mask image onto the surface of a 3D mesh, the operations use a technique called UV mapping. In the embodiment embodiment, a mask image refers to a shape for a makeup effect such as a shape for an eye shadow applied to an eye region that may be located adjacent to an upper contour of an eye and extend to a lower contour of an eyebrow, and extend outside the eye. [Fig. 10] is an illustration of an eye region 1000 having an eye mask 1002 in accordance with one embodiment. This mapping process can be interpreted as a paper 3D model of an object, e.g., a sphere, is to be laid flat on a table, and each of the 3D coordinates of the object can be mapped onto the 2D coordinates on the flat image. The objective of this unrolling of the 3D coordinates is to map these 3D coordinates onto images / photos so that the 3D image has a realistic-looking surface with textures derived from these images.
[0169] Using the eye shadow effects as an example, the general process for mapping the mask images onto the 3D mesh is as follows: use the eye model image (e.g., mask image 1002 creating the eye makeup effect) as the texture image; unwrap the 3D mesh into 2D; and adjust the 2D UV vertices so that the texture is correctly displayed on the 3D mesh. In one embodiment, the 3D mesh may be unwrapped as is using available third-party software. The 2D vertices may be aligned with the mask image (e.g., giving a shape of the makeup effect) and reference points.
[0170] [Fig. 11] is a flowchart of operations 1100 in accordance with one embodiment, such as for a computing device (e.g., device 302) of [Fig. 3]. Operations 1100 define a computer-implemented method comprising executing by one or more processors the steps of a method.
[0171] For example, in one method aspect, the following mesh-related embodiments are provided: Embodiment Mesh 1: A computer-implemented method comprises performing by one or more processors the steps of: processing an input image to locate facial features of a face using a face tracking engine having one or more deep neural networks (step 1102); and rendering an output image derived from the input image using a rendering pipeline, the output image comprising a makeup effect at a location associated with at least some of the facial features to simulate a virtual try-on of a makeup product, the effect having a 2D shape obtained from a predefined 2D mask image adjusted using a 3D shape of the location (step 1104).
[0172] Mesh Embodiment 2: In Mesh Embodiment 1, the face tracking device respectively produces face points defining a shape contour for each of the localized facial features; and the pipeline: generates a 3D mesh using a 3D model and face points of at least some facial features to define the 3D shape of the location; warps the predefined 2D mask image to the 3D mesh to adjust the 2D mask image; and maps (e.g., unwraps) the warped 2D mask image to provide the 2D shape of the makeup effect at the location.
[0173] Mesh Embodiment 3: In Mesh Embodiment 2, the pipeline performs UV mapping to map the distorted 2D mask image using the 3D mesh.
[0174] Embodiment Mesh 4: In any one of Embodiments Mesh 1 to 3, the makeup effect is associated with a makeup product and the method comprises: providing, via a user interface, a recommendation of a plurality of makeup products to virtually try on; and receiving a selection input, via the user interface, selecting the makeup product for a virtual try-on experience.
[0175] Mesh Embodiment 5: In any one of Mesh Embodiments 1 to 4, the selection input selects one or more products for rendering one or more makeup effects at two or more locations associated with at least some facial features; and wherein rendering renders a first makeup effect at a first location using a first predefined 2D mask image adjusted using a 3D shape of the first location; and wherein rendering renders a second makeup effect at a second location using a second predefined 2D mask image adjusted using a 3D shape of the second location.In one example, the one or more products include an eye shadow, the one or more makeup effects include an eye shadow effect, the first and second locations are the respective left and right eye regions associated with the eye and eyebrow facial features, and the first and second predefined 2D mask images are left and right eye mask images, which may be an eye image and a mirror thereof.
[0176] Embodiment Mesh 6: In any one of Embodiments Mesh 1 to 5, the method comprises providing, via the user interface, a purchasing service for conducting a purchasing transaction (e.g., via e-commerce) for purchasing a makeup product.
[0177] It will be appreciated that a system aspect and a computer program product aspect are each disclosed corresponding to each of the Mesh embodiments 1-6, for example. Any one or more of the Mesh embodiments may be combined with any one or more of the Tint embodiments, Glitter embodiments, and Shaping embodiments, as noted.
[0178] In addition to the computing device and method aspects, those skilled in the art will understand that computer program product aspects are disclosed, where instructions are stored in a non-transitory storage device (e.g., memory, CD-ROM, DVD-ROM, disk, etc.), and that, when executed, the instructions cause a computing device to perform any of the method aspects stored therein.
[0179] The practical implementation may include some or all of the features described herein. These and other aspects, features, and various combinations may be expressed as methods, apparatus, systems, means for performing functions, program products, and other ways, combining the features described herein. A number of embodiments have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the processes and techniques described herein. In addition, other steps may be provided, or steps may be eliminated, from the described process, and other components may be added to or removed from the described systems. Accordingly, other embodiments fall within the scope of the claims that follow.
[0180] Any features, integers, characteristics, compounds, chemical moieties, or groups described in conjunction with a particular aspect, embodiment, or example of the invention are to be understood as applicable to any other aspect, embodiment, or example, unless inconsistent therewith. Any features disclosed herein (including the claims, abstract, and accompanying drawings), and / or any steps of any method or process so disclosed, may be combined in any combination, except combinations where at least some of such features and / or steps are mutually exclusive. The invention is not limited to the details of the foregoing examples or embodiments.The invention extends to any novel feature, or any novel combination, of the features disclosed in this specification (including any accompanying claim, abstract and drawing) or to any novel feature, or any novel combination, of the steps of any disclosed method or process.
Claims
Claims
1. A system for providing an image including a makeup effect as a component of a virtual try-on experience, comprising: a rendering pipeline configured via circuitry to: process a sclera in a face of an input image to determine a reference hue of the face; adjust a hue of a makeup effect in response to the reference hue to render an adjusted makeup effect on the input image; and provide an output image defined from the input image and the adjusted makeup effect for presentation via a user interface as a component of a virtual try-on experience.
2. The system of claim 1, wherein the hue of the makeup effect is pushed toward a warmer hue or a cooler hue in response to the reference hue.
3. The system of claim 1, wherein the rendering pipeline processes to adjust a brightness and saturation of the makeup effect in response to an average skin color determined by processing the skin of the face and in response to eye brightness determined by processing one or more eyes of the face.
4. The system of claim 1, wherein the rendering pipeline adjusts hue in response to detecting a presence of the sclera for hue adjustment.
5. The system of claim 1, further comprising a face tracking device configured via circuitry to process the image using a deep neural network to locate facial features in the face; and wherein the sclera is processed and the makeup effect is rendered in response to the facial features as located.
6. The system of claim 1, wherein the makeup effect is associated with a makeup product and the system comprises a recommendation component configured to provide, via the user interface, a recommendation of a plurality of makeup products to virtually try on and to receive a selection input, the user interface selecting the makeup product for the virtual try-on experience.
7. The system of claim 6, wherein a selection input selects a plurality of products and the method comprises adjusting of the hue of each associated makeup effect in response to the reference hue for rendering a plurality of adjusted makeup effects on the input image.
8. The system of claim 1, comprising a purchasing component for providing, via the user interface, a purchasing service for conducting a purchasing transaction to purchase one or more makeup products.
Citation Information
Patent Citations
System and method for light field correction of colored surfaces in an image
US10892166B2
A system and method for determining a skin tone
EP3979212A1
