# US 2025/0148581 A1 · Image processing method and apparatus, and 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 2025/0148581 A1
- Document ID: US20250148581A1
- Status: Published application
- Kind: A1
- Application number: 18/833,844
- Filed: 2023-01-17
- Published: 2025-05-08
- Earliest claimed: 2022-01-28
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Yongsheng Dong; Jing Huai; Jiajia Luo; Wenwen Fan
- Web page: https://patentgrep.com/patent/US20250148581A1

## CPC

- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 5/94: based on local image properties, e.g. for local contrast enhancement
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06T 7/11: Region-based segmentation
- G06T 7/13: Edge detection
- G06T 2207/10024: Color image
- G06T 2207/20192: Edge enhancement; Edge preservation
- G06T 2207/20221: Image fusion; Image merging
- G06T 2207/30201: Face
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Disclosed in embodiments of the disclosure are a method and apparatus for image processing, a device, and a storage medium. The method includes: performing skin segmentation on an original image, thereby obtaining a segmentation result image; fusing the segmentation result image and a standard facial-feature mask image, thereby obtaining a first skin region image; determining a blemish region according to the first skin region image and the original image; and adjusting a pixel of the blemish region in the original image, thereby obtaining a target image.

## Claims

### Claim 1

A method of image processing, comprising:
performing skin segmentation on an original image, thereby obtaining a segmentation result image;
fusing the segmentation result image and a standard facial-feature mask image, thereby obtaining a first skin region image;
determining a blemish region according to the first skin region image and the original image; and
adjusting a pixel of the blemish region in the original image, thereby obtaining a target image.

### Claim 2 (depends on 1)

The method according to claim 1, wherein fusing the segmentation result image and a standard facial-feature mask image, thereby obtaining a first skin region image comprises:
taking an intersection of the segmentation result image and the standard facial-feature mask image, thereby obtaining the first skin region image.

### Claim 3 (depends on 1)

The method according to claim 1, wherein determining a blemish region according to the first skin region image and the original image comprises:
extracting a skin region of the original image, thereby obtaining a second skin region image; and
determining at least one of a first type blemish region and a second type blemish region according to the first skin region image and the second skin region image; and
wherein adjusting a pixel of the blemish region in the original image, thereby obtaining a target image, comprises:
adjusting a pixel of at least one of the first type blemish region and the second type blemish region in the original image, thereby obtaining the target image.

### Claim 4 (depends on 3)

The method according to claim 3, wherein determining the first type blemish region according to the first skin region image and the original image comprises:
converting the first skin region image into a first skin color space Lab image;
converting the second skin region image into a second skin Lab image;
executing a high pass operation on a set space channel of the first skin Lab image and the second skin Lab image, thereby obtaining a first intermediate result image;
executing at least one hard light operation on the first intermediate result image, thereby obtaining a first processing result image; and
determining pixel points having a value of the set space channel greater than a first set threshold in the first processing result image as first type blemish points, and determining a region defined by the first type blemish points as the first type blemish region.

### Claim 5 (depends on 4)

The method according to claim 4, wherein adjusting a pixel of the first type blemish region in the original image comprises:
adjusting at least one of hue, brightness, and saturation of the first type blemish region in the original image.

### Claim 6 (depends on 3)

The method according to claim 3, wherein determining the second type blemish region according to the first skin region image and the original image comprises:
executing a high pass operation on a set color channel of the first skin region image and the second skin region image, thereby obtaining a second intermediate result image;
executing at least one hard light operation on the second intermediate result image, thereby obtaining a second processing result image; and
determining pixel points having a set color channel value less than a second set threshold in the second processing result image as second type blemish points, and determining a region defined by the second type blemish points as the second type blemish region.

### Claim 7 (depends on 6)

The method according to claim 6, wherein adjusting a pixel of the second type blemish region in the original image comprises:
adjusting a color value of the second type blemish region in the original image.

### Claim 8 (depends on 1)

The method according to claim 1, wherein after the obtaining a first skin region image, the method further comprises:
performing set filtering on the first skin region image.

### Claim at position 9

9-16. (canceled)

### Claim 17

An electronic device, comprising:
a processing apparatus; and
a memory configured to store a program, wherein
the program, when executed by the processing apparatus, causes the processing apparatus to perform an action comprising:
performing skin segmentation on an original image, thereby obtaining a segmentation result image;
fusing the segmentation result image and a standard facial-feature mask image, thereby obtaining a first skin region image;
determining a blemish region according to the first skin region image and the original image; and
adjusting a pixel of the blemish region in the original image, thereby obtaining a target image.

### Claim 18

A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program when executed by a processing apparatus, causes the processing apparatus to perform an action comprising:
performing skin segmentation on an original image, thereby obtaining a segmentation result image;
fusing the segmentation result image and a standard facial-feature mask image, thereby obtaining a first skin region image;
determining a blemish region according to the first skin region image and the original image; and
adjusting a pixel of the blemish region in the original image, thereby obtaining a target image.

### Claim 19 (depends on 17)

The electronic device according to claim 17, wherein fusing the segmentation result image and a standard facial-feature mask image, thereby obtaining a first skin region image comprises:
taking an intersection of the segmentation result image and the standard facial-feature mask image, thereby obtaining the first skin region image.

### Claim 20 (depends on 17)

The electronic device according to claim 17, wherein determining a blemish region according to the first skin region image and the original image comprises:
extracting a skin region of the original image, thereby obtaining a second skin region image; and
determining at least one of a first type blemish region and a second type blemish region according to the first skin region image and the second skin region image; and
wherein adjusting a pixel of the blemish region in the original image, thereby obtaining a target image, comprises:
adjusting a pixel of at least one of the first type blemish region and the second type blemish region in the original image, thereby obtaining the target image.

### Claim 21 (depends on 20)

The electronic device according to claim 20, wherein determining the first type blemish region according to the first skin region image and the original image comprises:
converting the first skin region image into a first skin color space Lab image;
converting the second skin region image into a second skin Lab image;
executing a high pass operation on a set space channel of the first skin Lab image and the second skin Lab image, thereby obtaining a first intermediate result image;
executing at least one hard light operation on the first intermediate result image, thereby obtaining a first processing result image; and
determining pixel points having a value of the set space channel greater than a first set threshold in the first processing result image as first type blemish points, and determining a region defined by the first type blemish points as the first type blemish region.

### Claim 22 (depends on 21)

The electronic device according to claim 21, wherein adjusting a pixel of the first type blemish region in the original image comprises:
adjusting at least one of hue, brightness, and saturation of the first type blemish region in the original image.

### Claim 23 (depends on 20)

The electronic device according to claim 20, wherein determining the second type blemish region according to the first skin region image and the original image comprises:
executing a high pass operation on a set color channel of the first skin region image and the second skin region image, thereby obtaining a second intermediate result image;
executing at least one hard light operation on the second intermediate result image, thereby obtaining a second processing result image; and
determining pixel points having a set color channel value less than a second set threshold in the second processing result image as second type blemish points, and determining a region defined by the second type blemish points as the second type blemish region.

### Claim 24 (depends on 23)

The electronic device according to claim 23, wherein adjusting a pixel of the second type blemish region in the original image comprises:
adjusting a color value of the second type blemish region in the original image.

### Claim 25 (depends on 17)

The electronic device according to claim 17, wherein after the obtaining a first skin region image, the action further comprises:
performing set filtering on the first skin region image.

### Claim 26 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein fusing the segmentation result image and a standard facial-feature mask image, thereby obtaining a first skin region image comprises:
taking an intersection of the segmentation result image and the standard facial-feature mask image, thereby obtaining the first skin region image.

### Claim 27 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18,
wherein determining a blemish region according to the first skin region image and the original image comprises:
extracting a skin region of the original image, thereby obtaining a second skin region image; and
determining at least one of a first type blemish region and a second type blemish region according to the first skin region image and the second skin region image; and
wherein adjusting a pixel of the blemish region in the original image, thereby obtaining a target image, comprises:
adjusting a pixel of at least one of the first type blemish region and the second type blemish region in the original image, thereby obtaining the target image.

### Claim 28 (depends on 27)

The non-transitory computer-readable storage medium according to claim 27, wherein determining the first type blemish region according to the first skin region image and the original image comprises:
converting the first skin region image into a first skin color space Lab image;
converting the second skin region image into a second skin Lab image;
executing a high pass operation on a set space channel of the first skin Lab image and the second skin Lab image, thereby obtaining a first intermediate result image;
executing at least one hard light operation on the first intermediate result image, thereby obtaining a first processing result image; and
determining pixel points having a value of the set space channel greater than a first set threshold in the first processing result image as first type blemish points, and determining a region defined by the first type blemish points as the first type blemish region.
