# US 2025/0063130 A1 · Method and apparatus of image processing, 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 2025/0063130 A1
- Document ID: US20250063130A1
- Status: Published application
- Kind: A1
- Application number: 18/721,177
- Filed: 2022-12-13
- Published: 2025-02-20
- Earliest claimed: 2021-12-17
- Assignees: Beijing Zitiao Network Technology Co., Ltd.
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Jiabin Huang
- Web page: https://patentgrep.com/patent/US20250063130A1

## CPC

- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06T 7/12: Edge-based segmentation
- G06T 11/60: Creating or editing images; Combining images with text
- H04N 5/2621: {Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The disclosure provides a method and apparatus of image processing, an electronic device, and a storage medium. The method of image processing includes: collecting, in response to an effect addition instruction, an image to be processed including a target object; segmenting the image to be processed based on an image segmentation model to obtain at least two target render regions corresponding to the image to be processed; and obtaining, based on the at least two target render regions and an effect parameter, a target image including the target object with an added target effect.

## Claims

### Claim 1

A method of image processing, the method comprising:
collecting, in response to an effect addition instruction, an image to be processed comprising a target object;
segmenting the image to be processed based on an image segmentation model to obtain at least two target render regions corresponding to the image to be processed; and
obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect.

### Claim 2 (depends on 1)

The method of claim 1, wherein the collecting, in response to an effect addition instruction, an image to be processed comprising a target object comprises:
in response to detecting a wake word that triggers addition of an effect to the target object, generating the effect addition instruction and collecting the image to be processed comprising a target object; or alternatively,
in response to detecting that an effect addition control is triggered, generating the effect addition instruction and collecting the image to be processed comprising a target object; or alternatively,
in response to detecting that a visual field comprises the target object, collecting the image to be processed comprising a target object.

### Claim 3 (depends on 1)

The method of claim 1, wherein the segmenting the image to be processed based on an image segmentation model to obtain at least two target render regions corresponding to the image to be processed comprises:
segmenting, based on the image segmentation model, the target object in the image to be processed, and determining a bounding box region corresponding to the target object, and at least two render regions to be processed; and
determining the at least two target render regions based on the bounding box region and the at least two render regions to be processed.

### Claim 4 (depends on 1)

The method of claim 1, wherein the obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect comprises:
determining a target pixel value of each pixel in the at least two target render regions based on the effect parameter; and
updating an original pixel value of the pixel in the at least two target render regions based on the target pixel value of the pixel point to obtain the target image comprising the target object with an added target effect.

### Claim 5 (depends on 1)

The method of claim 1, wherein the obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect comprises:
rendering the at least two target render regions based on a rendering model and the effect parameter to obtain the target image comprising the target object with an added target effect.

### Claim 6 (depends on 1)

The method of claim 1, wherein the obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect comprises:
adding a first effect that corresponds to the effect parameter to a bounding box region of the target object based on a first effect processing module; and
updating the first effect of the at least two target render regions located in the bounding box region to a second effect that corresponds to the effect parameter to obtain the target image comprising the target object with an added target effect; or alternatively, superposing a second effect that corresponds to the effect parameter into the at least two target render regions to obtain the target image comprising the target object with an added target effect.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
in response to detecting that an operation of replacing the first effect is triggered, keeping the second effect unchanged and updating the first effect according to the triggering operation; or alternatively,
in response to detecting that an operation of replacing the second effect is triggered, keeping the first effect unchanged and updating the second effect according to the triggering operation.

### Claim 8 (depends on 1)

The method of claim 1, wherein the at least two target render regions are ear render regions, and the bounding box region is a region surrounding hair of the target object.

### Claim 9

(canceled)

### Claim 10

An electronic device, comprising:
at least one processor; and
a memory storing at least one program;
wherein the at least one processor, when executing the at least one program, is caused to implement a method comprising:
collecting, in response to an effect addition instruction, an image to be processed comprising a target object;
segmenting the image to be processed based on an image segmentation model to obtain at least two target render regions corresponding to the image to be processed; and
obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect.

### Claim 11

A non-transitory readable storage medium comprising computer-executable instructions which, when executed by a computer processor, implement a method comprising:
collecting, in response to an effect addition instruction, an image to be processed comprising a target object;
segmenting the image to be processed based on an image segmentation model to obtain at least two target render regions corresponding to the image to be processed; and
obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect.

### Claim 12

(canceled)

### Claim 13 (depends on 10)

The electronic device of claim 10, wherein the collecting, in response to an effect addition instruction, an image to be processed comprising a target object comprises:
in response to detecting a wake word that triggers addition of an effect to the target object, generating the effect addition instruction and collecting the image to be processed comprising a target object; or alternatively,
in response to detecting that an effect addition control is triggered, generating the effect addition instruction and collecting the image to be processed comprising a target object; or alternatively,
in response to detecting that a visual field comprises the target object, collecting the image to be processed comprising a target object.

### Claim 14 (depends on 10)

The electronic device of claim 10, wherein the segmenting the image to be processed based on an image segmentation model to obtain at least two target render regions corresponding to the image to be processed comprises:
segmenting, based on the image segmentation model, the target object in the image to be processed, and determining a bounding box region corresponding to the target object, and at least two render regions to be processed; and
determining the at least two target render regions based on the bounding box region and the at least two render regions to be processed.

### Claim 15 (depends on 10)

The electronic device of claim 10, wherein the obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect comprises:
determining a target pixel value of each pixel in the at least two target render regions based on the effect parameter; and
updating an original pixel value of the pixel in the at least two target render regions based on the target pixel value of the pixel point to obtain the target image comprising the target object with an added target effect.

### Claim 16 (depends on 10)

The electronic device of claim 10, wherein the obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect comprises:
rendering the at least two target render regions based on a rendering model and the effect parameter to obtain the target image comprising the target object with an added target effect.

### Claim 17 (depends on 10)

The electronic device of claim 10, wherein the obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect comprises:
adding a first effect that corresponds to the effect parameter to a bounding box region of the target object based on a first effect processing module; and
updating the first effect of the at least two target render regions located in the bounding box region to a second effect that corresponds to the effect parameter to obtain the target image comprising the target object with an added target effect; or alternatively, superposing a second effect that corresponds to the effect parameter into the at least two target render regions to obtain the target image comprising the target object with an added target effect.

### Claim 18 (depends on 17)

The electronic device of claim 17, further comprising:
in response to detecting that an operation of replacing the first effect is triggered, keeping the second effect unchanged and updating the first effect according to the triggering operation; or alternatively,
in response to detecting that an operation of replacing the second effect is triggered, keeping the first effect unchanged and updating the second effect according to the triggering operation.

### Claim 19 (depends on 10)

The electronic device of claim 10, wherein the at least two target render regions are ear render regions, and the bounding box region is a region surrounding hair of the target object.

### Claim 20 (depends on 11)

The non-transitory readable storage medium of claim 11, wherein the collecting, in response to an effect addition instruction, an image to be processed comprising a target object comprises:
in response to detecting a wake word that triggers addition of an effect to the target object, generating the effect addition instruction and collecting the image to be processed comprising a target object; or alternatively,
in response to detecting that an effect addition control is triggered, generating the effect addition instruction and collecting the image to be processed comprising a target object; or alternatively,
in response to detecting that a visual field comprises the target object, collecting the image to be processed comprising a target object.

### Claim 21 (depends on 11)

The non-transitory readable storage medium of claim 11, wherein the segmenting the image to be processed based on an image segmentation model to obtain at least two target render regions corresponding to the image to be processed comprises:
segmenting, based on the image segmentation model, the target object in the image to be processed, and determining a bounding box region corresponding to the target object, and at least two render regions to be processed; and
determining the at least two target render regions based on the bounding box region and the at least two render regions to be processed.

### Claim 22 (depends on 11)

The non-transitory readable storage medium of claim 11, wherein the obtaining, based on the at least two target render regions and an effect parameter, a target image comprising the target object with an added target effect comprises:
determining a target pixel value of each pixel in the at least two target render regions based on the effect parameter; and
updating an original pixel value of the pixel in the at least two target render regions based on the target pixel value of the pixel point to obtain the target image comprising the target object with an added target effect.
