# US 2022/0292795 A1 · Face image processing method, electronic device, and storage medium

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

- Number: US 2022/0292795 A1
- Document ID: US20220292795A1
- Status: Published application
- Kind: A1
- Application number: 17/827,403
- Filed: 2022-05-27
- Published: 2022-09-15
- Earliest claimed: 2021-07-14
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., LTD.
- Inventors: Ruizhi CHEN
- Web page: https://patentgrep.com/patent/US20220292795A1

## CPC

- G06T 19/20: Editing of three-dimensional [3D] images, e.g. changing shapes or colours, aligning objects or positioning parts
- G06T 7/11: Region-based segmentation
- G06T 7/149: involving deformable models, e.g. active contour models
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06T 17/20: Finite element generation, e.g. wire-frame surface description, {tesselation}
- G06V 40/168: {Feature extraction; Face representation}
- G06T 2200/04: involving 3D image data
- G06T 2200/08: involving all processing steps from image acquisition to 3D model generation
- G06T 2207/20021: Dividing image into blocks, subimages or windows
- G06T 2207/30201: Face
- G06T 2219/2024: Style variation
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A face image processing method, an electronic device and a storage medium are provided, which relate to the technical fields of image processing, augmented reality, computer vision, deep learning and the like. The method includes: acquiring a three-dimensional face model of a to-be-processed face image, the three-dimensional face model comprising a plurality of grid nodes; determining a to-be-transformed area of the three-dimensional face model; acquiring a rigid transformation relationship between a standard three-dimensional face model and a standard stylized face model; and processing the to-be-transformed area based on the rigid transformation relationship, to obtain a stylized face model corresponding to the to-be-processed face image.

## Claims

### Claim 1

A face image processing method, comprising:
acquiring a three-dimensional face model of a to-be-processed face image, the three-dimensional face model comprising a plurality of grid nodes;
determining a to-be-transformed area of the three-dimensional face model;
acquiring a rigid transformation relationship between a standard three-dimensional face model and a standard stylized face model; and
processing the to-be-transformed area based on the rigid transformation relationship, to obtain a stylized face model corresponding to the to-be-processed face image.

### Claim 2 (depends on 1)

The method of claim 1, wherein the acquiring the rigid transformation relationship between the standard three-dimensional face model and the standard stylized face model, comprises:
dividing the standard three-dimensional face model and the standard stylized face model into a plurality of areas respectively in a same way, wherein each area comprises a plurality of grid nodes; and
taking each area of the standard three-dimensional face model as a current area respectively, and determining a rigid transformation from the grid nodes of the current area to grid nodes of a corresponding area of the standard stylized face model, to obtain a rigid transformation matrix corresponding to the current area.

### Claim 3 (depends on 2)

The method of claim 2, wherein the dividing the standard three-dimensional face model and the standard stylized face model into the plurality of areas respectively in the same way, comprises:
dividing the standard three-dimensional face model and the standard stylized face model into the plurality of areas based on positions of five sense organs of the standard three-dimensional face model and the standard stylized face model, respectively.

### Claim 4 (depends on 1)

The method of claim 1, wherein the determining the to-be-transformed area of the three-dimensional face model, comprises:
determining the to-be-transformed area of the three-dimensional face model, based on positions of five sense organs of the three-dimensional face model.

### Claim 5 (depends on 3)

The method of claim 3, wherein the positions of the five sense organs comprise at least one of: respective positions of a left eyebrow, a right eyebrow, a left eye, a right eye, a nose, a mouth, a cheek and a head cover.

### Claim 6 (depends on 1)

The method of claim 1, wherein the processing the to-be-transformed area based on the rigid transformation relationship, to obtain the stylized face model corresponding to the to-be-processed face image, comprises:
transforming the to-be-transformed area based on the rigid transformation relationship; and
determining a boundary area between the to-be-transformed area and a non-to-be-transformed area of a transformed three-dimensional face model, and performing smoothing processing on the boundary area, to obtain the stylized face model corresponding to the to-be-processed face image.

### Claim 7 (depends on 6)

The method of claim 6, wherein the performing the smoothing processing on the boundary area, to obtain the stylized face model corresponding to the to-be-processed face image, comprises:
performing the smoothing processing on the boundary area by using a Laplace smoothing algorithm, to obtain the stylized face model corresponding to the to-be-processed face image.

### Claim 8 (depends on 4)

The method of claim 4, wherein the positions of the five sense organs comprise at least one of: respective positions of a left eyebrow, a right eyebrow, a left eye, a right eye, a nose, a mouth, a cheek and a head cover.

### Claim 9

An electronic device, comprising:
at least one processor; and
a memory communicatively connected with the at least one processor, wherein
the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to perform operations of:
acquiring a three-dimensional face model of a to-be-processed face image, the three-dimensional face model comprising a plurality of grid nodes;
determining a to-be-transformed area of the three-dimensional face model;
acquiring a rigid transformation relationship between a standard three-dimensional face model and a standard stylized face model; and
processing the to-be-transformed area based on the rigid transformation relationship, to obtain a stylized face model corresponding to the to-be-processed face image.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the instructions, when executed by the at least one processor, cause the at least one processor to further perform operations of:
dividing the standard three-dimensional face model and the standard stylized face model into a plurality of areas respectively in a same way, wherein each area comprises a plurality of grid nodes; and
taking each area of the standard three-dimensional face model as a current area respectively, and determining a rigid transformation from the grid nodes of the current area to grid nodes of a corresponding area of the standard stylized face model, to obtain a rigid transformation matrix corresponding to the current area.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the instructions, when executed by the at least one processor, cause the at least one processor to further perform an operation of:
dividing the standard three-dimensional face model and the standard stylized face model into the plurality of areas based on positions of five sense organs of the standard three-dimensional face model and the standard stylized face model, respectively.

### Claim 12 (depends on 9)

The electronic device of claim 9, wherein the instructions, when executed by the at least one processor, cause the at least one processor to further perform an operation of:
determining the to-be-transformed area of the three-dimensional face model, based on positions of five sense organs of the three-dimensional face model.

### Claim 13 (depends on 11)

The electronic device of claim 11, wherein the positions of the five sense organs comprise at least one of: respective positions of a left eyebrow, a right eyebrow, a left eye, a right eye, a nose, a mouth, a cheek and a head cover.

### Claim 14 (depends on 12)

The electronic device of claim 12, wherein the positions of the five sense organs comprise at least one of: respective positions of a left eyebrow, a right eyebrow, a left eye, a right eye, a nose, a mouth, a cheek and a head cover.

### Claim 15 (depends on 9)

The electronic device of claim 9, wherein the instructions, when executed by the at least one processor, cause the at least one processor to further perform operations of:
transforming the to-be-transformed area based on the rigid transformation relationship; and
determining a boundary area between the to-be-transformed area and a non-to-be-transformed area of a transformed three-dimensional face model, and performing smoothing processing on the boundary area, to obtain the stylized face model corresponding to the to-be-processed face image.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein the instructions, when executed by the at least one processor, cause the at least one processor to further perform an operation of:
performing the smoothing processing on the boundary area by using a Laplace smoothing algorithm, to obtain the stylized face model corresponding to the to-be-processed face image.

### Claim 17

A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions, when executed by a computer, cause the computer to perform operations of:
acquiring a three-dimensional face model of a to-be-processed face image, the three-dimensional face model comprising a plurality of grid nodes;
determining a to-be-transformed area of the three-dimensional face model;
acquiring a rigid transformation relationship between a standard three-dimensional face model and a standard stylized face model; and
processing the to-be-transformed area based on the rigid transformation relationship, to obtain a stylized face model corresponding to the to-be-processed face image.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the computer instructions, when executed by the computer, cause the computer to further perform operations of:
dividing the standard three-dimensional face model and the standard stylized face model into a plurality of areas respectively in a same way, wherein each area comprises a plurality of grid nodes; and
taking each area of the standard three-dimensional face model as a current area respectively, and determining a rigid transformation from the grid nodes of the current area to grid nodes of a corresponding area of the standard stylized face model, to obtain a rigid transformation matrix corresponding to the current area.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the computer instructions, when executed by the computer, cause the computer to further perform an operation of:
dividing the standard three-dimensional face model and the standard stylized face model into the plurality of areas based on positions of five sense organs of the standard three-dimensional face model and the standard stylized face model, respectively.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the computer instructions, when executed by the computer, cause the computer to further perform an operation of:
determining the to-be-transformed area of the three-dimensional face model, based on positions of five sense organs of the three-dimensional face model.
