# US 10,957,092 B2 · Method and apparatus for distinguishing between objects

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

- Number: US 10,957,092 B2
- Document ID: US10957092B2
- Status: Granted
- Kind: B2
- Application number: 16/000,550
- Filed: 2018-06-05
- Published: 2018-10-04
- Granted: 2021-03-23
- Earliest claimed: 2016-02-26
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Jinyuan Zhou; Li Wang
- Web page: https://patentgrep.com/patent/US10957092B2

## CPC

- G06T 15/00: Three-dimensional [3D] image rendering
- A63F 13/52: involving aspects of the displayed game scene
- G06T 7/73: using feature-based methods
- G06T 7/90: Determination of colour characteristics
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 15/50: Lighting effects
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR

## Abstract

The present disclosure discloses a method and an apparatus for distinguishing objects. The method includes: obtaining a plurality of object groups displayed in an image, each object group including at least one target object, and a same resource being configured for target objects in different object groups; setting different mark values for the plurality of object groups, target objects in a same object group having a same mark value; and separately performing pixel correction on pixels of the target objects in each object group according to the mark value of each object group, pixels of the target objects having different mark values being corrected to have different display attributes.

## Claims

### Claim 1

A method for distinguishing objects, comprising:
identifying in an image a first object group including first target objects and a second object group including second target objects;
constructing a mapping relationship including a first connection correlating the first object group with a first mark value and a second connection correlating the second object group to a second mark value different than the first mark value;
according to the mapping relationship, assigning the first mark value to each of the first target objects in the first group, and assigning the second mark value to each of the second target objects in the second group;
marking pixels in the first target objects using the first mark value and marking pixels in the second target objects using the second mark value;
performing pixel correction on the pixels of the first target objects according to the first mark value to obtain first display attributes and performing pixel correction on the pixels of the second target objects according to the second mark value to obtain second display attributes different than the first display attributes;
rendering the first and second target objects into a first render target texture, wherein the first render target texture has a first plurality of channels;
normalizing first and second mark values of pixels of the first and second target objects, to obtain first and second standard mark values; and
inputting the first and second standard mark values obtained by normalization into a second render target texture, wherein the second render target texture has a second plurality of channels, and the first and second standard mark values are inputted into the second plurality of channels having different channel values.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
adjusting display intensities of a plurality of primary colors that form a color of each of the pixels in the first and second target objects according to the first and second standard mark values corresponding to the pixels of the first and second target objects, to correct the color of each of the pixels in the first and second target objects.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
obtaining a corrected pixel color of each of the pixels in the first and second target objects according to: Colordest=Colorscr*Colortrans, wherein Colordest represents the corrected pixel color, Colorscr represents an original pixel color of one of the pixels of the first and second target objects, and Colortrans represents a correction constant to adjust the display intensities of the plurality of primary colors that form the color of each of the pixels in the first and second target objects.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
performing light emitting processing on edge pixels of the first and second target object.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
performing tone mapping on the pixels of the first and second target objects, including: normalizing the pixels of the first and second target objects, to adjust contrast and/or brightness of the first and second target objects.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
performing rendering processing on the pixels of the first and second target objects, including any one or more of motion blur processing, depth of field processing, or bloom processing.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the performing rendering processing on the pixels of the first and second target objects comprises:
performing the motion blur processing, including: performing weighted averaging on pixels in a preset range surrounding a target pixel to obtain a new pixel, and adjusting the target pixel to the new pixel, wherein the target pixel is a pixel in a movement direction of the first and second target object;
performing the depth of field processing, including: performing full screen blur processing on the pixels of the first and second target objects to obtain a result of the full screen blur processing, and mixing the result of the full screen blur processing with the pixels of the first and second target objects; and
performing the bloom processing, including: outputting a blooming part of the first and second target objects into a map, performing blur processing on pixels of the blooming part, and inputting a result of the blur processing into the pixels of the first and second target objects by Alpha mixing.

### Claim 8

A non-transitory computer-readable storage medium, comprising: computer-executable instructions, upon being executed by one or more processors, to cause the one or more processors to perform:
identifying in an image a first object group including first target objects and a second object group including second target objects;
constructing a mapping relationship including a first connection correlating the first object group with a first mark value and a second connection correlating the second object group to a second mark value different than the first mark value;
according to the mapping relationship, assigning the first mark value to each of the first target objects in the first group, and assigning the second mark value to each of the second target objects in the second group;
marking pixels in the first target objects using the first mark value and marking pixels in the second target objects using the second mark value;
performing pixel correction on the pixels of the first target objects according to the first mark value to obtain first display attributes and performing pixel correction on the pixels of the second target objects according to the second mark value to obtain second display attributes different than the first display attributes;
rendering the first and second target objects into a first render target texture, wherein the first render target texture has a first plurality of channels;
normalizing first and second mark values of pixels of the first and second target objects, to obtain first and second standard mark values; and
inputting the first and second standard mark values obtained by normalization into a second render target texture, wherein the second render target texture has a second plurality of channels, and the first and second standard mark values are inputted into the second plurality of channels having different channel values.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium according to claim 8, wherein the computer-executable instructions cause the one or more processors to further perform:
adjusting display intensities of a plurality of primary colors that form a color of each of the pixels in the first and second target objects according to the first and second standard mark values corresponding to the pixels of the first and second target objects, to correct the color of each of the pixels in the first and second target objects.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium according to claim 9, wherein the computer-executable instructions cause the one or more processors to further perform:
obtaining a corrected pixel color of each of the pixels in the first and second target objects according to: Colordest=Colorscr*Colortrans, wherein Colordest represents the corrected pixel color, Colorscr represents an original pixel color of one of the pixels of the first and second target objects, and Colortrans represents a correction constant to adjust the display intensities of the plurality of primary colors that form the color of each of the pixels in the first and second target objects.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium according to claim 8, wherein the computer-executable instructions cause the one or more processors to further perform:
performing light emitting processing on edge pixels of the first and second target objects.

### Claim 12 (depends on 8)

The non-transitory computer-readable storage medium according to claim 8, wherein the computer-executable instructions cause the one or more processors to further perform:
performing tone mapping on the pixels of the first and second target objects, including: normalizing the pixels of the first and second target objects, to adjust contrast and/or brightness of the first and second target objects.

### Claim 13 (depends on 8)

The non-transitory computer-readable storage medium according to claim 8, wherein the computer-executable instructions cause the one or more processors to further perform:
performing rendering processing on the pixels of the first and second target objects, including any one or more of motion blur processing, depth of field processing, or bloom processing.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium according to claim 13, wherein the performing rendering processing on the pixels of the first and second target objects comprises:
performing the motion blur processing, including: performing weighted averaging on pixels in a preset range surrounding a target pixel to obtain a new pixel, and adjusting the target pixel to the new pixel, wherein the target pixel is a pixel in a movement direction of the first and second target object;
performing the depth of field processing, including: performing full screen blur processing on the pixels of the first and second target objects to obtain a result of the full screen blur processing, and mixing the result of the full screen blur processing with the pixels of the first and second target objects; and
performing the bloom processing, including: outputting a blooming part of the first and second target objects into a map, performing blur processing on pixels of the blooming part, and inputting a result of the blur processing into the pixels of the first and second target objects by Alpha mixing.
