# US 2023/0410450 A1 · Beautification techniques for 3d data in a messaging system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0410450 A1
- Document ID: US20230410450A1
- Status: Published application
- Kind: A1
- Application number: 18/240,380
- Filed: 2023-08-31
- Published: 2023-12-21
- Earliest claimed: 2019-08-28
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Kyle Goodrich; Samuel Edward Hare; Maxim Maximov Lazarov; Tony Mathew; Andrew James McPhee; Daniel Moreno; Dhritiman Sagar; Wentao Shang
- Web page: https://patentgrep.com/patent/US20230410450A1

## CPC

- G06T 19/20: Editing of three-dimensional [3D] images, e.g. changing shapes or colours, aligning objects or positioning parts
- G06F 3/04842: Selection of displayed objects or displayed text elements (G06F3/0482 takes precedence)
- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0475: Generative networks
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06T 7/194: involving foreground-background segmentation
- G06T 7/50: Depth or shape recovery
- G06T 7/507: from shading (G06T7/586 takes precedence)
- G06T 15/50: Lighting effects
- G06T 19/006: {Mixed reality (object pose determination, tracking or camera calibration for mixed reality G06T7/00)}
- G06V 40/161: {Detection; Localisation; Normalisation}
- G06V 40/166: {using acquisition arrangements}
- G06V 40/171: {Local features and components; Facial parts (eye characteristics G06V40/18); Occluding parts, e.g. glasses; Geometrical relationships}
- H04L 67/131: Protocols for games, networked simulations or virtual reality
- G06N 3/045: Combinations of networks
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T 2207/30201: Face
- G06T 2219/2012: Colour editing, changing, or manipulating; Use of colour codes
- G06T 2219/2024: Style variation
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The subject technology applies, to image data and depth data, a 3D effect including at least one beautification operation based on an augmented reality content generator, the 3D effect including a beautification operation, the beautification operation comprising modifying image data, the image data including a region corresponding to a representation of a face, the beautification operation comprising using a machine learning model for at least one of smoothing blemishes or preserving facial skin texture. The subject technology generates a depth map using at least the depth data. The subject technology generates a segmentation mask based at least on the image data. The subject technology performs background inpainting and blurring of the image data using at least the segmentation mask to generate background inpainted image data. The subject technology generates a 3D message based at least in part on the applied 3D effect including the at least one beautification operation.

## Claims

### Claim 1

A method comprising:
applying, to image data and depth data, a 3D effect including at least one beautification operation based at least in part on an augmented reality content generator, the 3D effect including at least one beautification operation, the beautification operation comprising modifying image data, the image data including a region corresponding to a representation of a face, the beautification operation comprising using a machine learning model for at least one of smoothing blemishes or preserving facial skin texture, and the applying comprising:
generating a depth map using at least the depth data,
generating a segmentation mask based at least on the image data, and
performing background inpainting and blurring of the image data using at least the segmentation mask to generate background inpainted image data; and
generating a 3D message based at least in part on the applied 3D effect including the at least one beautification operation.

### Claim 2 (depends on 1)

The method of claim 1, wherein applying, to the image data and the depth data, the 3D effect comprises:
generating a packed depth map based at least in part on the depth map, the generating the packed depth map comprising:
converting a single channel floating point texture to a raw depth map, and
generating multiple channels based at least in part on the raw depth map; and
performing the beautification operation on a particular region of at least the image data including facial image data, the beautification operation comprising at least one of smoothing, lighting adjustment, or color modification.

### Claim 3 (depends on 1)

The method of claim 1, wherein the beautification operation further comprises utilizing a portrait segmentation mask when applying the beautification operation to the image data including the region corresponding to the representation of the face, and the machine learning model comprises one of a convolutional neural network or a generative adversarial network.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining the depth map based at least in part on the depth data;
generating a depth inpainting mask corresponding to a respective region of the depth map including facial depth data; and
performing depth map inpainting of the depth map using at least the generated depth inpainting mask.

### Claim 5 (depends on 4)

The method of claim 4, wherein the depth map comprises a packed depth map.

### Claim 6 (depends on 5)

The method of claim 5, wherein the packed depth map has a lower resolution than the image data.

### Claim 7 (depends on 4)

The method of claim 4, further comprising:
generating a normal map of the depth map for applying a lighting effect to facial image data of the image data; and
applying the lighting effect to the facial image data based at least in part on the normal map.

### Claim 8 (depends on 7)

The method of claim 7, wherein the lighting effect comprises at least two different colors, a first color from the two different colors being applied to a first portion of the facial image data, and a second color from the two different colors being applied to a second image of the facial image data.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
capturing image data and depth data using a camera of a client device;
causing display of an interface comprising a plurality of selectable graphical items, each selectable graphical item corresponding to a respective augmented reality content generator of a set of augmented reality content generators; and
rendering a view of the 3D message based at least in part on the applied 3D effect including the at least one beautification operation.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
receiving a swipe gesture via a touch screen of the client device; and
in response to receiving the swipe gesture, causing navigation through the plurality of selectable graphical items.

### Claim 11

A system comprising:
a processor; and
a memory including instructions that, when executed by the processor, cause the processor to perform operations comprising:
applying, to image data and depth data, a 3D effect including at least one beautification operation based at least in part on an augmented reality content generator, the 3D effect including at least one beautification operation, the beautification operation comprising modifying image data, the image data including a region corresponding to a representation of a face, the beautification operation comprising using a machine learning model for at least one of smoothing blemishes or preserving facial skin texture, and the applying comprising:
generating a depth map using at least the depth data,
generating a segmentation mask based at least on the image data, and
performing background inpainting and blurring of the image data using at least the segmentation mask to generate background inpainted image data; and
generating a 3D message based at least in part on the applied 3D effect including the at least one beautification operation.

### Claim 12 (depends on 11)

The system of claim 11, wherein applying, to the image data and the depth data, the 3D effect comprises:
generating a packed depth map based at least in part on the depth map, the generating the packed depth map comprising:
converting a single channel floating point texture to a raw depth map, and
generating multiple channels based at least in part on the raw depth map; and
performing the beautification operation on a particular region of at least the image data including facial image data, the beautification operation comprising at least one of smoothing, lighting adjustment, or color modification.

### Claim 13 (depends on 11)

The system of claim 11, wherein the beautification operation further comprises utilizing a portrait segmentation mask when applying the beautification operation to the image data including the region corresponding to the representation of the face, and the machine learning model comprises one of a convolutional neural network or a generative adversarial network.

### Claim 14 (depends on 11)

The system of claim 11, wherein the operations further comprise:
determining the depth map based at least in part on the depth data;
generating a depth inpainting mask corresponding to a respective region of the depth map including facial depth data; and
performing depth map inpainting of the depth map using at least the generated depth inpainting mask.

### Claim 15 (depends on 14)

The system of claim 14, wherein the depth map comprises a packed depth map.

### Claim 16 (depends on 15)

The system of claim 15, wherein the packed depth map has a lower resolution than the image data.

### Claim 17 (depends on 14)

The system of claim 14, wherein the operations further comprise:
generating a normal map of the depth map for applying a lighting effect to facial image data of the image data; and
applying the lighting effect to the facial image data based at least in part on the normal map.

### Claim 18 (depends on 17)

The system of claim 17, wherein the lighting effect comprises at least two different colors, a first color from the two different colors being applied to a first portion of the facial image data, and a second color from the two different colors being applied to a second image of the facial image data.

### Claim 19 (depends on 11)

The system of claim 11, wherein the operations further comprise:
capturing image data and depth data using a camera of a client device;
causing display of an interface comprising a plurality of selectable graphical items, each selectable graphical item corresponding to a respective augmented reality content generator of a set of augmented reality content generators; and
rendering a view of the 3D message based at least in part on the applied 3D effect including the at least one beautification operation.

### Claim 20

A non-transitory computer-readable medium comprising instructions, which when executed by a computing device, cause the computing device to perform operations comprising:
applying, to image data and depth data, a 3D effect including at least one beautification operation based at least in part on an augmented reality content generator, the 3D effect including at least one beautification operation, the beautification operation comprising modifying image data, the image data including a region corresponding to a representation of a face, the beautification operation comprising using a machine learning model for at least one of smoothing blemishes or preserving facial skin texture, and the applying comprising:
generating a depth map using at least the depth data,
generating a segmentation mask based at least on the image data, and
performing background inpainting and blurring of the image data using at least the segmentation mask to generate background inpainted image data; and
generating a 3D message based at least in part on the applied 3D effect including the at least one beautification operation.
