# US 2015/0146987 A1 · Method and terminal device for image processing

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

- Number: US 2015/0146987 A1
- Document ID: US20150146987A1
- Status: Published application
- Kind: A1
- Application number: 14/462,577
- Filed: 2014-08-19
- Published: 2015-05-28
- Earliest claimed: 2013-11-28
- Assignees: Xiaomi Inc.
- Applicants: Xiaomi Inc.
- Inventors: Mingyong Tang; Bo Zhang; Xiao Liu; Lin Wang
- Web page: https://patentgrep.com/patent/US20150146987A1

## CPC

- G06T 11/00: Two-dimensional [2D] image generation
- G06T 11/60: Creating or editing images; Combining images with text
- G06V 40/16: Human faces, e.g. facial parts, sketches or expressions
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The present disclosure relates to a method and terminal device for processing an image. The method includes: acquiring face information from a template image, if receiving a request for processing an image containing a face; and applying a photo makeover on the face according to the face information acquired from the template image. By acquiring face information from a template image and automatically applying a photo makeover on the face according to the face information acquired from the template image, manual setting for makeover parameters will be avoided and the efficiency will be improved.

## Claims

### Claim 1

A method for processing an image, comprising:
acquiring face information from a template image, if receiving a request for processing an image containing a face; and
applying a photo makeover on the face according to the face information acquired from the template image.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the face information comprises one or more of positions and intervals of face organs, sizes of the face organs and the face, proportions between the face organs and the face, shapes of the face organs, angles and directions of the face organs, colors of the face organs, and colors of the face.

### Claim 3 (depends on 1)

The method according to claim 1, wherein applying the photo makeover on the face comprises:
acquiring face information from the image to be processed;
obtaining a comparison result by comparing the face information in the template image with the face information in the image to be processed; and
applying a photo makeover on the face according to the comparison result.

### Claim 4 (depends on 1)

The method according to claim 1, wherein applying the photo makeover on the face comprises:
acquiring face information from the image to be processed;
determining whether the face information in the template image and the face information in the image to be processed are the same; and
when the face information in the template image and the face information in the image to be processed are the same, generating a null makeover operation mode; and
applying the photo makeover on the face according to the null makeover operation mode.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising:
when the face information in the template image and the face information in the image to be processed are not the same, determining whether the difference between the face information in the template image and the face information in the image to be processed is less than or equals to a first threshold;
when the difference between the face information in the template image and the face information in the image to be processed is less than or equals to the first threshold, generating a first level makeover operation mode; and
applying the photo makeover on the face according to the first level makeover operation mode.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
when the difference between the face information in the template image and the face information in the image to be processed is greater than a second threshold, generating a second level makeover operation mode; and
applying the photo makeover on the face according to the second level makeover operation mode,
wherein the second threshold is greater than the first threshold.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the method further comprises a step of obtaining the template image before acquiring the face information from the template image.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the template image is obtained by receiving an image inputted by a user and using the inputted image as the template image.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the template image is obtained by determining an image selected by a user and using the selected image as the template image.

### Claim 10

A terminal device, comprising:
one or more processors;
a memory; and
one or more instruction modules stored in the memory and configured to be executed by the one or more processors, the one or more instruction modules comprising instructions for:
acquiring face information from a template image, if receiving a request for processing an image containing a face; and
applying a photo makeover on the face according to the face information acquired from the template image.

### Claim 11 (depends on 10)

The terminal device according to claim 10, wherein the face information comprises one or more of positions and intervals of face organs, sizes of the face organs and the face, proportions between the face organs and the face, shapes of the face organs, angles and directions of the face organs, colors of the face organs, and colors of the face.

### Claim 12 (depends on 10)

The terminal device according to claim 10, wherein applying the photo makeover on the face comprises:
acquiring face information from the image to be processed;
obtaining a comparison result by comparing the face information in the template image with the face information in the image to be processed; and
applying a photo makeover on the face according to the comparison result.

### Claim 13 (depends on 10)

The terminal device according to claim 10, wherein applying the photo makeover on the face comprises:
acquiring face information from the image to be processed;
determining whether the face information in the template image and the face information in the image to be processed are the same; and
when the face information in the template image and the face information in the image to be processed are the same, generating a null makeover operation mode; and
applying the photo makeover on the face according to the null makeover operation mode.

### Claim 14 (depends on 13)

The terminal device according to claim 13, further comprising:
when the face information in the template image and the face information in the image to be processed are not the same, determining whether the difference between the face information in the template image and the face information in the image to be processed is less than or equals to a first threshold;
when the difference between the face information in the template image and the face information in the image to be processed is less than or equals to the first threshold, generating a first level makeover operation mode; and
applying the photo makeover on the face according to the first level makeover operation mode.

### Claim 15 (depends on 14)

The terminal device according to claim 14, further comprising:
when the difference between the face information in the template image and the face information in the image to be processed is greater than a second threshold, generating a second level makeover operation mode; and
applying the photo makeover on the face according to the second level makeover operation mode,
wherein the second threshold is greater than the first threshold.

### Claim 16 (depends on 10)

The terminal device according to claim 10, wherein the method further comprises a step of obtaining the template image before acquiring the face information from the template image.

### Claim 17 (depends on 16)

The terminal device according to claim 16, wherein the template image is obtained by receiving an image inputted by a user and using the inputted image as the template image.

### Claim 18 (depends on 16)

The terminal device according to claim 16, wherein the template image is obtained by determining an image selected by a user and using the selected image as the template image.

### Claim 19

A non-transitory readable storage medium including instructions, executable by one or more processors in a terminal device, for performing a method for processing an image, the method comprising:
acquiring face information from a template image, if receiving a request for processing an image containing a face; and
applying a photo makeover on the face according to the face information acquired from the template image.
