# US 2022/0044369 A1 · Image processing method, terminal and non-transitory computer-readable 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/0044369 A1
- Document ID: US20220044369A1
- Status: Published application
- Kind: A1
- Application number: 17/509,388
- Filed: 2021-10-25
- Published: 2022-02-10
- Earliest claimed: 2019-12-27
- Assignees: Shenzhen Skyworth-Rgb Electronic Co., Ltd.
- Applicants: Shenzhen Skyworth-Rgb Electronic Co., Ltd.
- Inventors: Hongbo CHEN; Jinxue FU; Xiaoxia WU
- Web page: https://patentgrep.com/patent/US20220044369A1

## CPC

- G06T 5/92: based on global image properties
- G06V 40/162: {using pixel segmentation or colour matching}
- G06V 40/165: {using facial parts and geometric relationships}
- G06T 2207/10024: Color image
- G06T 2207/30201: Face
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Disclosed are an image processing method, a terminal and a non-transitory computer-readable storage medium. The image processing method includes: acquiring and detecting a first image, and determining whether the first image has a face image; in response that the first image has a face image, acquiring image information of a face region where the face image is located in the first image, and calculating an average brightness in the face region based on the image information; adjusting a brightness in the face region based on the average brightness and a preset model; acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image; and superimposing the first image and the second image, generating and displaying a third image.

## Claims

### Claim 1

An image processing method, comprising:
acquiring and detecting a first image, and determining whether the first image has a face image;
in response that the first image has a face image, acquiring image information of a face region where the face image is located in the first image, and calculating an average brightness in the face region based on the image information;
adjusting a brightness in the face region based on the average brightness and a preset model;
acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image; and
superimposing the first image and the second image, generating and displaying a third image.

### Claim 2 (depends on 1)

The image processing method of claim 1, wherein the image information comprises color values for each color channel; and the operation of in response that the first image has a face image, acquiring image information of a face region where the face image is located in the first image, and calculating an average brightness in the face region based on the image information comprises:
in response that the first image has the face image, obtaining a color value for each color channel in the face region; and
calculating the average brightness in the face region based on the color value for each color channel and a preset algorithm.

### Claim 3 (depends on 1)

The image processing method of claim 1, wherein the operation of adjusting a brightness in the face region based on the average brightness and a preset model comprises:
acquiring the average brightness, and determining whether the average brightness is greater than or equal to a first preset value;
in response that the average brightness is greater than or equal to the first preset value, increasing brightness of pixels within a middle tone range in the face region and decreasing brightness of pixels within a light tone range in the face region based on the first preset curve model;
in response that the average brightness is less than the first preset value, determining whether the average brightness is less than a second preset value;
in response that the average brightness is less than the second preset value, increasing brightness of pixels between the middle tone range and the dark tone range in the face region based on a second preset curve model; and
in response that the average brightness is less than the first preset value and greater than or equal to the second preset value, increasing the brightness of pixels within the middle tone range in the face region based on a third preset curve model.

### Claim 4 (depends on 1)

The image processing method of claim 1, wherein the parameter information comprises tone information; and the operation of acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image comprises:
acquiring the tone information of each pixel in the face region, and calculating an average tone value of the face region based on the tone information;
determining whether the average tone value is greater than or equal to a preset tone value;
in response that the average tone value is greater than or equal to the preset tone value, reducing a tone value of each pixel in the face region; and
in response that the average tone value is less than the preset tone value, increasing the tone value of each pixel in the face region, and generating the second image.

### Claim 5 (depends on 1)

The image processing method of claim 1, wherein the parameter information comprises saturation information, and the operation of acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image comprises:
acquiring the saturation information of each pixel in the face region, and calculating an average saturation value of the face region based on the saturation information;
determining whether the average saturation value is greater than or equal to a preset saturation value;
in response that the average saturation value is greater than or equal to the preset tone value, increasing a saturation value of each pixel in the face region by a first preset saturation value; and
in response that the average saturation value is less than the preset saturation, increasing the saturation value of each pixel in the face region by a second preset saturation value, and generating the second image, wherein the second preset saturation value is greater than the first preset saturation value.

### Claim 6 (depends on 1)

The image processing method of claim 1, wherein the operation of acquiring and detecting a first image, and determining whether the first image has a face image comprises:
acquiring the first image;
detecting the first image, obtaining image pixels of the first image, and calculating a similarity between the image pixels and a preset skin color model;
determining whether the similarity exceeds a preset threshold; and
in response that the similarity exceeds the preset threshold, determining that the first image has the face image.

### Claim 7 (depends on 1)

The image processing method of claim 1, wherein the operation of superimposing the first image and the second image, generating and displaying a third image comprises:
acquiring first parameter information of the face region in the first image and second parameter information of the face region in the second image;
averaging the first parameter information and the second parameter information to obtain third parameter information; and
generating and displaying the third image based on the third parameter information.

### Claim 8 (depends on 1)

The image processing method of claim 1, wherein prior to the operation of acquiring and detecting a first image, and determining whether the first image has a face image, the method further comprises:
eliminating a color shift on the first image.

### Claim 9

A terminal, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement following operations:
acquiring and detecting a first image, and determining whether the first image has a face image;
in response that the first image has a face image, acquiring image information of a face region where the face image is located in the first image, and calculating an average brightness in the face region based on the image information;
adjusting brightness in the face region based on the average brightness and a preset model;
acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image; and
superimposing the first image and the second image, generating and displaying a third image.

### Claim 10 (depends on 9)

The terminal of claim 9, wherein the image information comprises color values for each color channel; and the operation of in response that the first image has a face image, acquiring image information of a face region where the face image is located in the first image, and calculating an average brightness in the face region based on the image information comprises:
in response that the first image has the face image, obtaining a color value for each color channel in the face region; and
calculating the average brightness in the face region based on the color values for each color channel and a preset algorithm.

### Claim 11 (depends on 9)

The terminal of claim 9, wherein the operation of adjusting brightness in the face region based on the average brightness and a preset model comprises:
acquiring the average brightness, and determining whether the average brightness is greater than or equal to a first preset value;
in response that the average brightness is greater than or equal to the first preset value, increasing brightness of pixels within a middle tone range in the face region and decreasing brightness of pixels within a light tone range in the face region based on the first preset curve model;
in response that the average brightness is less than the first preset value, determining whether the average brightness is less than a second preset value;
in response that the average brightness is less than the second preset value, increasing brightness of pixels between the middle tone range and the dark tone range in the face region based on a second preset curve model; and
in response that the average brightness is less than the first preset value and greater than or equal to the second preset value, increasing the brightness of pixels within the middle tone range in the face region based on a third preset curve model.

### Claim 12 (depends on 9)

The terminal of claim 9, wherein the parameter information comprises tone information; and the operation of acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image comprises:
acquiring the tone information of each pixel in the face region, and calculating an average tone value of the face region based on the tone information;
determining whether the average tone value is greater than or equal to a preset tone value;
in response that the average tone value is greater than or equal to the preset tone value, reducing a tone value of each pixel in the face region; and
in response that the average tone value is less than the preset tone value, increasing the tone value of each pixel in the face region, and generating the second image.

### Claim 13 (depends on 9)

The terminal of claim 9, wherein the parameter information comprises saturation information, and the operation of acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image comprises:
acquiring the saturation information of each pixel in the face region, and calculating an average saturation value of the face region based on the saturation information;
determining whether the average saturation value is greater than or equal to a preset saturation value;
in response that the average saturation value is greater than or equal to the preset tone value, increasing a saturation value of each pixel in the face region by a first preset saturation value; and
in response that the average saturation value is less than the preset saturation, increasing the saturation value of each pixel in the face region by a second preset saturation value, and generating the second image, wherein the second preset saturation value is greater than the first preset saturation value.

### Claim 14 (depends on 9)

The terminal of claim 9, wherein the operation of acquiring and detecting a first image, and determining whether the first image has a face image comprises:
acquiring the first image;
detecting the first image, obtaining image pixels of the first image, and calculating a similarity between the image pixels and a preset skin color model;
determining whether the similarity exceeds a preset threshold; and
in response that the similarity exceeds the preset threshold, determining that the first image has the face image.

### Claim 15 (depends on 9)

The terminal of claim 9, wherein the operation of superimposing the first image and the second image, generating and displaying a third image comprises:
acquiring first parameter information of the face region in the first image and second parameter information of the face region in the second image;
averaging the first parameter information and the second parameter information to obtain third parameter information; and
generating and displaying the third image based on the third parameter information.

### Claim 16 (depends on 9)

The terminal of claim 9, wherein prior to the operation of acquiring and detecting a first image, and determining whether the first image has a face image, the method further comprises:
eliminating a color shift on the first image.

### Claim 17

A non-transitory computer-readable storage medium, wherein computer-readable instructions are stored on the non-transitory computer-readable storage medium, and when the computer-readable instructions are executed by a processor, following operations are implemented:
acquiring and detecting a first image, and determining whether the first image has a face image;
in response that the first image has a face image, acquiring image information of a face region where the face image is located in the first image, and calculating an average brightness in the face region based on the image information;
adjusting brightness in the face region based on the average brightness and a preset model;
acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image; and
superimposing the first image and the second image, generating and displaying a third image.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the image information includes a color value of each color channel; if the face image exists in the first image, the operation of obtaining image information of the face region where the face image is located in the first image and calculating the average brightness of the face region based on the image information comprises:
in response that the first image has the face image, obtaining color values for each color channel in the face region;
calculating the average brightness in the face region based on the color values for each color channel and a preset algorithm.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the operation of adjusting the brightness of the face region based on the average brightness and a preset model comprises:
acquiring the average brightness, and determining whether the average brightness is greater than or equal to a first preset value;
in response that the average brightness is greater than or equal to the first preset value, increasing brightness of pixels within a middle tone range in the face region and decreasing brightness of pixels within a light tone range in the face region based on the first preset curve model;
in response that the average brightness is less than the first preset value, determining whether the average brightness is less than a second preset value;
in response that the average brightness is less than the second preset value, increasing brightness of pixels between the middle tone range and the dark tone range in the face region based on a second preset curve model; and
in response that the average brightness is less than the first preset value and greater than or equal to the second preset value, increasing the brightness of pixels within the middle tone range in the face region based on a third preset curve model.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the parameter information comprises tone information; and the operation of acquiring parameter information of each pixel in the face region, and adjusting the parameter information of each pixel based on the parameter information and a preset rule, and generating a second image comprises:
acquiring the tone information of each pixel in the face region, and calculating an average tone value of the face region based on the tone information;
determining whether the average tone value is greater than or equal to a preset tone value;
in response that the average tone value is greater than or equal to the preset tone value, reducing a tone value of each pixel in the face region; and
in response that the average tone value is less than the preset tone value, increasing the tone value of each pixel in the face region, and generating the second image.
