# US 2025/0148673 A1 · Method, apparatus, electronic device and storage medium for effect processing

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

- Number: US 2025/0148673 A1
- Document ID: US20250148673A1
- Status: Published application
- Kind: A1
- Application number: 18/938,506
- Filed: 2024-11-06
- Published: 2025-05-08
- Earliest claimed: 2023-11-07
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Xiaogeng ZHANG
- Web page: https://patentgrep.com/patent/US20250148673A1

## CPC

- G06T 11/60: Creating or editing images; Combining images with text
- G06T 5/20: using local operators
- G06T 5/70: Denoising; Smoothing
- G06T 7/12: Edge-based segmentation
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Embodiments of the present disclosure provide a method, an apparatus, an electronic device and a storage medium for effect processing. The method comprises: in response to an effect triggering operation, obtaining a first image and a second image, wherein the first image comprises a target object, and the second image is displayed on an upper layer of the first image; determining a target image region in the second image based on the capture distance and an object position of the target object in the case where a capture distance between the target object and a capture apparatus satisfies a first distance condition; displaying at least part of an image content in the first image in the target image region to acquire an effect image.

## Claims

### Claim 1

A method for effect processing comprising:
obtaining, in response to an effect triggering operation, a first image and a second image, wherein the first image comprises a target object, and the second image is displayed on top of the first image;
determining, in response to that a capture distance between the target object and a capture apparatus satisfies a first distance condition, a target image region in the second image based on the capture distance and an object position of the target object; and
displaying, in the target image region, at least part of an image content in the first image to acquire an effect image.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining a target image region in the second image based on an object position of the target object comprises:
determining a region center point in the second image based on an object position of the target object, and determining a target region parameter based on the capture distance, wherein the target region parameter at least comprises a region size; and
determining a region mask image based on the region center point and the target region parameter, and determining a target image region in the second image based on the region mask image and the second image.

### Claim 3 (depends on 2)

The method of claim 2, wherein the determining a target region parameter based on the capture distance comprises:
displaying, in response to a region setting triggering operation, at least one candidate region style identifier;
determining, in response to a selection triggering operation for the region style identifier input, a target region parameter based on a region style corresponding to a selected region style identifier and the capture distance.

### Claim 4 (depends on 1)

The method of claim 1, wherein the displaying, in the target image region, at least part of an image content in the first image comprises:
determining a region edge effect corresponding to the target image region, applying the region edge effect to the target image region, and displaying at least part of an image content in the first image in the target image region.

### Claim 5 (depends on 4)

The method of claim 4, wherein the applying the region edge effect to the target image region and displaying at least part of an image content in the first image in the target image region comprise:
acquiring an edge mask image corresponding to the region edge effect, and determining an effect image based on the edge mask image, the region mask image, the second image and the first image, wherein the region mask image is located on top of the edge mask image.

### Claim 6 (depends on 4)

The method of claim 4, wherein the determining a region edge effect corresponding to the target image region comprises:
displaying at least one candidate edge effect identifier in response to an edge setting triggering operation; and
in response to a selection triggering operation for the edge effect identifier input, determining the region edge effect corresponding to the target image region based on a target region parameter corresponding to the target image region and the region edge effect corresponding to the selected edge effect identifier.

### Claim 7 (depends on 1)

The method of claim 1, the method further comprising, before determining a target image region in the second image based on the capture distance and an object position in the target object,
acquiring a position of a target point of the target object as an object position, wherein the target point comprises a preset point and/or a geometric center point.

### Claim 8 (depends on 1)

The method of claim 1, wherein the displaying, in the target image region, at least part of an image content in the first image comprises:
removing an image content in the target image region in the second image to display at least part of an image content in the first image in the target image region.

### Claim 9 (depends on 1)

The method of claim 1, the method further comprising: after obtaining the first image and the second image:
determining, in response to that the capture distance satisfies a second distance condition, a target image region in the second image based on the capture distance and the object position of the target object; and
displaying, in the target image region, a preset image content corresponding to the capture distance to acquire an effect image.

### Claim 10 (depends on 9)

The method for effect processing of claim 9, wherein
the first distance condition includes a first capture distance range, the second distance condition includes a second capture distance range, and a maximum value in the first capture distance range is smaller than a minimum value in the second capture distance range; the first capture distance range and the second capture distance range are numerical ranges for defining a distance value of the capture distance; or,
the first distance condition includes a first distance variation range and the second distance condition includes a second distance variation range, a minimum value in the first distance variation range is smaller than a maximum value in the second distance variation range; the first distance variation range and the second distance variation range are numerical ranges for defining a variation value of the capture distance in two frames of the first image.

### Claim 11 (depends on 1)

The method of claim 1, wherein the obtaining the second image comprises:
acquiring a preset image as a second image; or,
processing the first image based on a preset image processing manner to obtain a second image, wherein the preset image processing comprises at least one of adding a grey filter, blurring processing, binarization processing and stylization processing.

### Claim 12

An electronic device comprising:
one or more processors; and
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to:
obtain, in response to an effect triggering operation, a first image and a second image, wherein the first image comprises a target object, and the second image is displayed on top of the first image;
determine, in response to that a capture distance between the target object and a capture apparatus satisfies a first distance condition, a target image region in the second image based on the capture distance and an object position of the target object; and
display, in the target image region, at least part of an image content in the first image to acquire an effect image.

### Claim 13 (depends on 12)

The device of claim 12, wherein the one or more programs causing the one or more processors to determine a target image region in the second image based on an object position of the target object comprise instructions to:
determine a region center point in the second image based on an object position of the target object, and determining a target region parameter based on the capture distance, wherein the target region parameter at least comprises a region size; and
determine a region mask image based on the region center point and the target region parameter, and determining a target image region in the second image based on the region mask image and the second image.

### Claim 14 (depends on 13)

The device of claim 13, wherein the one or more programs causing the one or more processors to determine a target region parameter based on the capture distance comprise instructions to:
display, in response to a region setting triggering operation, at least one candidate region style identifier;
determine, in response to a selection triggering operation for the region style identifier input, a target region parameter based on a region style corresponding to a selected region style identifier and the capture distance.

### Claim 15 (depends on 12)

The device of claim 12, wherein the one or more programs causing the one or more processors to display, in the target image region, at least part of an image content in the first image comprise instructions to:
determine a region edge effect corresponding to the target image region, applying the region edge effect to the target image region, and displaying at least part of an image content in the first image in the target image region.

### Claim 16 (depends on 15)

The device of claim 15, wherein the one or more programs causing the one or more processors to apply the region edge effect to the target image region and displaying at least part of an image content in the first image in the target image region comprise instructions to:
acquire an edge mask image corresponding to the region edge effect, and determining an effect image based on the edge mask image, the region mask image, the second image and the first image, wherein the region mask image is located on top of the edge mask image.

### Claim 17 (depends on 15)

The device of claim 15, wherein the one or more programs causing the one or more processors to determine a region edge effect corresponding to the target image region comprise instructions to:
display at least one candidate edge effect identifier in response to an edge setting triggering operation; and
in response to a selection triggering operation for the edge effect identifier input, determine the region edge effect corresponding to the target image region based on a target region parameter corresponding to the target image region and the region edge effect corresponding to the selected edge effect identifier.

### Claim 18 (depends on 12)

The device of claim 12, wherein the one or more programs further cause the one or more processors to, before determining a target image region in the second image based on the capture distance and an object position in the target object,
acquire a position of a target point of the target object as an object position, wherein the target point comprises a preset point and/or a geometric center point.

### Claim 19 (depends on 12)

The device of claim 12, wherein the one or more programs causing the one or more processors to display, in the target image region, at least part of an image content in the first image comprise instructions to:
remove an image content in the target image region in the second image to display at least part of an image content in the first image in the target image region.

### Claim 20

A non-transitory storage medium containing computer-executable instructions, when executed by a computer processor, the computer-executable instructions cause the computer processor to:
obtain, in response to an effect triggering operation, a first image and a second image, wherein the first image comprises a target object, and the second image is displayed on top of the first image;
determine, in response to that a capture distance between the target object and a capture apparatus satisfies a first distance condition, a target image region in the second image based on the capture distance and an object position of the target object; and
display, in the target image region, at least part of an image content in the first image to acquire an effect image.
