# US 10,957,084 B2 · Image processing method and apparatus based on augmented reality, and 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 10,957,084 B2
- Document ID: US10957084B2
- Status: Granted
- Kind: B2
- Application number: 16/110,859
- Filed: 2018-08-23
- Published: 2019-05-16
- Granted: 2021-03-23
- Earliest claimed: 2017-11-13
- Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.
- Applicants: Baidu Online Network Technology (Beijing) Co., Ltd
- Inventors: Zhongqin Wu; Yingchao Li; Chen Zhao; Nan Wei; Qian Ying
- Web page: https://patentgrep.com/patent/US10957084B2

## CPC

- G06T 7/194: involving foreground-background segmentation
- G06N 20/00: Machine learning
- G06T 7/11: Region-based segmentation
- G06T 11/60: Creating or editing images; Combining images with text
- G06T 2210/32: Image data format
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure provides an image processing method. The method includes: detecting at least one first feature object of an image to be processed, to obtain a name and position of each first feature object in the image; according to the name and position of the first feature object, and a preset strategy for loading a dynamic effect, selecting, from the at least one first feature object, a feature object to which a dynamic effect is to be loaded, as a second feature object; and according to the preset strategy for loading a dynamic effect, rendering the second feature object with an Augmented Reality (AR) dynamic effect, and obtaining an image with the AR dynamic effect. The present disclosure further provides an image processing apparatus, a device and a computer readable storage medium.

## Claims

### Claim 1

An image processing method, wherein the method comprises:
detecting at least one first feature object of an image to be processed, to obtain a name, a type and a position of each first feature object in the image;
according to the name and the position of the first feature object, and a determined strategy for loading a dynamic effect, selecting, from the at least one first feature object, a feature object to which a dynamic effect is to be loaded, as a second feature object; and
according to the determined strategy for loading a dynamic effect, rendering the second feature object with an augmented reality (AR) dynamic effect, and obtaining an image with the second feature object rendered by the AR dynamic effect,
wherein the determined strategy for loading a dynamic effect uses the classification of the image as a basis for determining the second feature object to which a dynamic effect is to be loaded;
the determined strategy for loading a dynamic effect is constantly optimized and dynamically changing based on automatic learning of a machine, wherein after obtaining the image with the AR dynamic effect, the method further comprises obtaining an operation of a user to the image with the AR dynamic effect, and optimizing the strategy for loading a dynamic effect by learning according to the operation.

### Claim 2 (depends on 1)

The method according to claim 1, wherein according to the determined preset strategy for loading a dynamic effect, rendering the second feature object with an AR dynamic effect comprises:
segmenting the second feature object to obtain a foreground portion to which the AR dynamic effect to be loaded and a background portion to be remaining unchanged; and
according to the determined preset strategy for loading a dynamic effect, rendering the foreground portion with the AR dynamic effect.

### Claim 3 (depends on 2)

The method according to claim 2, wherein rendering the foreground portion with the AR dynamic effect comprises:
converting the foreground portion into a masking-out portion;
according to the name and the position of the second feature object corresponding to the foreground portion, selecting, from a dynamic effect material library, a dynamic effect material matching the second feature object; and
displaying overlappingly the selected dynamic effect material and the masking-out portion.

### Claim 4 (depends on 1)

The method according to claim 1, wherein after obtaining an image with the AR dynamic effect, the method further comprises:
remaining a storage format of the image unchanged in a case that an instruction of saving the image is not received; and
saving the image with the AR dynamic effect in a dynamic image format in a case that the instruction of saving the image is received.

### Claim 5

An image processing apparatus, wherein the apparatus comprises:
one or more processors; and
a storage device configured for storing one or more programs, wherein
the one or more programs are executed by the one or more processors to enable the one or more processors to:
detect at least one first feature object of an image to be processed, to obtain a name and position of each first feature object in the image;
according to the name and the position of the first feature object, and a determined strategy for loading a dynamic effect, select, from the at least one first feature object, a feature object to which a dynamic effect is to be loaded, as a second feature object; and
according to the determined strategy for loading a dynamic effect, render the second feature object with an augmented reality (AR) dynamic effect, and obtain an image with the second feature object rendered by the AR dynamic effect,
wherein the determined strategy for loading a dynamic effect uses the classification of the image as a basis for determining the second feature object to which a dynamic effect is to be loaded;
the determined strategy for loading a dynamic effect is constantly optimized and dynamically changing based on automatic learning of a machine, wherein the one or more programs are executed by the one or more processors to enable the one or more processors further to obtain an operation of a user to the image with the AR dynamic effect, and optimize the strategy for loading a dynamic effect by learning according to the operation.

### Claim 6 (depends on 5)

The apparatus according to claim 5, wherein the one or more programs are executed by the one or more processors to enable the one or more processors further to:
segment the second feature object to obtain a foreground portion to which the AR dynamic effect to be loaded and a background portion to be remaining unchanged; and
a rendering module configured to, according to the determined strategy for loading a dynamic effect, render the foreground portion with the AR dynamic effect.

### Claim 7 (depends on 6)

The apparatus according to claim 6, wherein the one or more programs are executed by the one or more processors to enable the one or more processors further to:
convert the foreground portion into a masking-out portion;
according to the name and the position of the second feature object corresponding to the foreground portion, select, from a dynamic effect material library, a dynamic effect material matching the second feature object; and
display overlappingly the selected dynamic effect material and the masking-out portion.

### Claim 8 (depends on 5)

The apparatus according to claim 5, wherein the one or more programs are executed by the one or more processors to enable the one or more processors further to:
remain a storage format of the image unchanged in a case that an instruction of saving the image is not received; and
save the image with the AR dynamic effect in a dynamic image format in a case that the instruction of saving the image is received.

### Claim 9

A non-volatile computer readable storage medium in which a computer program is stored, wherein the computer program, when executed by a processor, causes the processor to perform operations comprising:
detecting at least one first feature object of an image to be processed, to obtain a name, a type and a position of each first feature object in the image;
according to the name and the position of the first feature object, and a determined strategy for loading a dynamic effect, selecting, from the at least one first feature object, a feature object to which a dynamic effect is to be loaded, as a second feature object; and
according to the determined strategy for loading a dynamic effect, rendering the second feature object with an augmented reality (AR) dynamic effect, and obtaining an image with the second feature object rendered by the AR dynamic effect-,
wherein the determined strategy for loading a dynamic effect uses the classification of the image as a basis for determining the second feature object to which a dynamic effect is to be loaded;
the determined strategy for loading a dynamic effect is constantly optimized and dynamically changing based on automatic learning of a machine, wherein the computer executable instructions, when executed by a processor, cause the processor to perform further operations comprising obtaining an operation of a user to the image with the AR dynamic effect, and optimizing the strategy for loading a dynamic effect by learning according to the operation.

### Claim 10 (depends on 9)

The non-volatile computer-readable storage medium of claim 9, wherein the computer executable instructions, when executed by a processor, causes the processor to perform further operations comprising:
segmenting the second feature object to obtain a foreground portion to which the AR dynamic effect to be loaded and a background portion to be remaining unchanged; and
according to the determined strategy for loading a dynamic effect, rendering the foreground portion with the AR dynamic effect.

### Claim 11 (depends on 10)

The non-volatile computer-readable storage medium of claim 10, wherein the computer executable instructions, when executed by a processor, causes the processor to perform further operations comprising:
converting the foreground portion into a masking-out portion;
according to the name and the position of the second feature object corresponding to the foreground portion, selecting, from a dynamic effect material library, a dynamic effect material matching the second feature object; and
displaying overlappingly the selected dynamic effect material and the masking-out portion.

### Claim 12 (depends on 9)

The non-volatile computer-readable storage medium of claim 9, wherein the computer executable instructions, when executed by a processor, cause the processor to perform further operations comprising:
remaining a storage format of the image unchanged in a case that an instruction of saving the image is not received; and
saving the image with the AR dynamic effect in a dynamic image format in a case that the instruction of saving the image is received.
