# US 2021/0279503 A1 · Image processing method, 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 2021/0279503 A1
- Document ID: US20210279503A1
- Status: Published application
- Kind: A1
- Application number: 17/330,380
- Filed: 2021-05-25
- Published: 2021-09-09
- Earliest claimed: 2019-04-25
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Lu QI; Li JIANG; Shu LIU; Xiaoyong SHEN; Jiaya JIA; Yuwing TAI
- Web page: https://patentgrep.com/patent/US20210279503A1

## CPC

- G06T 7/11: Region-based segmentation
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/2413: based on distances to training or reference patterns
- G06F 18/253: {of extracted features}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06T 7/136: involving thresholding
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/462: {Salient features, e.g. scale invariant feature transforms [SIFT]}
- G06V 10/806: {of extracted features}
- G06V 10/82: using neural networks
- G06V 20/56: exterior to a vehicle by using sensors mounted on the vehicle
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- Y02T 10/40: Engine management systems
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- Y02T: CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION

## Abstract

An image processing method includes: obtaining an image, and performing feature extraction on the image; generating at least one candidate region of the image, and mapping the at least one candidate region into a feature map of the image, one candidate region including one instance; processing the mapped feature map based on a target network for instance segmentation; and indicating an overall structure of an occluded instance in the image by using a perspective mask, and indicating an invisible part of the occluded instance by using a non-perspective mask, the perspective mask and the non-perspective mask representing a relative occlusion relationship of the occluded instance.

## Claims

### Claim 1

An image processing method, performed by an image processing device, comprising:
obtaining an image, and performing feature extraction on the image, to obtain a feature map of the image;
generating at least one candidate region of the image, and mapping the at least one candidate region to the feature map of the image, each candidate region comprising one instance;
processing the mapped feature map based on a target network for instance segmentation; and
indicating an overall structure of an occluded instance in the image by using a perspective mask, and indicating an invisible part of the occluded instance by using a non-perspective mask, the perspective mask and the non-perspective mask representing a relative occlusion relationship of the occluded instance.

### Claim 2 (depends on 1)

The method according to claim 1, wherein after the mapping the at least one candidate region to the feature map of the image, the method further comprises:
performing pixel correction on each candidate region, to obtain a feature map of the each candidate region,
the feature map of the each candidate region comprising a first feature map, a second feature map, and a third feature map, a size of the first feature map and a size of the second feature map being the same and being less than a size of the third feature map.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the processing the mapped feature map based on a target network for instance segmentation comprises:
performing, for the each candidate region, feature fusion on the first feature map, the second feature map, and the third feature map; and
inputting an obtained fused feature map into a first branch structure of the target network for processing.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the target network further comprises a second branch structure, and the method further comprises:
inputting, for the each candidate region, the first feature map into the second branch structure for processing, to obtain occlusion classification information of an instance comprised in the candidate region.

### Claim 5 (depends on 2)

The method according to claim 2, wherein the target network further comprises a third branch structure, and the method further comprises:
inputting, for the each candidate region, the second feature map into the third branch structure for processing, to obtain a semantic label and position information of an instance comprised in the candidate region.

### Claim 6 (depends on 3)

The method according to claim 3, wherein the performing feature fusion on the first feature map, the second feature map, and the third feature map comprises:
performing concatenation on the first feature map and the second feature map, to obtain a first intermediate feature map;
processing the first intermediate feature map by using one deconvolutional layer and two convolutional layers in sequence, to obtain a second intermediate feature map; and
performing concatenation on the second intermediate feature map and the third feature map, to obtain a third intermediate feature map, and processing the third intermediate feature map by using three convolutional layers in sequence, to obtain the fused feature map.

### Claim 7 (depends on 3)

The method according to claim 3, wherein the inputting an obtained fused feature map into a first branch structure of the target network for processing comprises:
inputting the fused feature map into a first deconvolutional layer for processing, to obtain a first processed feature map; and
inputting the first processed feature map into a first mask branch comprised in the first branch structure, and obtaining, when an instance comprised in a candidate region is an occluded instance, a non-perspective mask of the instance comprised in the candidate region.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the inputting an obtained fused feature map into a first branch structure of the target network for processing further comprises:
inputting the fused feature map into a second deconvolutional layer for processing, to obtain a second processed feature map; and
inputting the second processed feature map into a second mask branch comprised in the first branch structure, to obtain a perspective mask of the instance comprised in the candidate region.

### Claim 9 (depends on 4)

The method according to claim 4, wherein the inputting the first feature map into the second branch structure for processing, to obtain occlusion classification information of an instance comprised in the candidate region comprises:
determining, based on the second branch structure and the first feature map, whether an occluded area of the instance comprised in the candidate region reaches a target threshold; and
determining, when the occluded area of the instance comprised in the candidate region reaches the target threshold, that the occlusion classification information indicates that the instance comprised in the candidate region is occluded.

### Claim 10 (depends on 4)

The method according to claim 4, wherein the inputting the first feature map into the second branch structure for processing comprises:
inputting the first feature map into a first fully connected layer for processing; and
inputting the first feature map processed in the first fully connected layer into the second branch structure for processing.

### Claim 11 (depends on 5)

The method according to claim 5, wherein the inputting the second feature map into the third branch structure for processing comprises:
inputting the second feature map into a second fully connected layer for processing;
inputting the second feature map processed in the second fully connected layer into a classification branch comprised in the third branch structure for processing, to obtain classification information;
inputting the second feature map into a third fully connected layer for processing; and
inputting the second feature map processed in the third fully connected layer into a regression branch comprised in the third branch structure for processing, to obtain the position information.

### Claim 12 (depends on 1)

The method according to claim 1, further comprising:
obtaining training sample images, annotation information of each instance in the training sample images comprising at least a semantic label used for indicating a category, a relative occlusion order, and a perspective mask;
determining, based on relative occlusion orders and perspective masks of occluded instances in the training sample images, non-perspective masks of the occluded instances in the training sample images; and
performing model training according to the training sample images annotated with the perspective masks, the non-perspective masks, and semantic labels, to obtain the target network.

### Claim 13

An image processing apparatus, comprising one or more processors and a memory, the memory storing at least one computer-readable instruction, the at least one computer-readable instruction being loaded and executed by the one or more processors to
obtain an image;
perform feature extraction on the image, to obtain a feature map of the image;
generate at least one candidate region of the image;
map the at least one candidate region to the feature map of the image, each candidate region comprising one instance; and
process the mapped feature map based on a target network for instance segmentation, indicate an overall structure of an occluded instance in the image by using a perspective mask, and indicate an invisible part of the occluded instance by using a non-perspective mask, the perspective mask and the non-perspective mask representing a relative occlusion relationship of the occluded instance.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the processor is further configured to perform pixel correction on each candidate region, to obtain a feature map of the each candidate region, the feature map of the each candidate region comprising a first feature map, a second feature map, and a third feature map, a size of the first feature map and a size of the second feature map being the same and being less than a size of the third feature map.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the processor is further configured to perform, for the each candidate region, feature fusion on the first feature map, the second feature map, and the third feature map; and input an obtained fused feature map into a first branch structure of the target network for processing.

### Claim 16 (depends on 14)

The apparatus according to claim 14, wherein the target network further comprises a second branch structure; and the processor is further configured to input, for the each candidate region, the first feature map into the second branch structure for processing, to obtain occlusion classification information of an instance comprised in the candidate region.

### Claim 17 (depends on 14)

The apparatus according to claim 14, wherein the target network further comprises a third branch structure; and the processing module is further configured to input, for the each candidate region, the second feature map into the third branch structure for processing, to obtain a semantic label and position information of an instance comprised in the candidate region.

### Claim 18 (depends on 15)

The apparatus according to claim 15, wherein the processor is further configured to perform concatenation on the first feature map and the second feature map, to obtain a first intermediate feature map; process the first intermediate feature map by using one deconvolutional layer and two convolutional layers in sequence, to obtain a second intermediate feature map; and perform concatenation on the second intermediate feature map and the third feature map, to obtain a third intermediate feature map, and process the third intermediate feature map by using three convolutional layers in sequence, to obtain the fused feature map.

### Claim 19 (depends on 15)

The apparatus according to claim 15, wherein the processor is further configured to input the fused feature map into a first deconvolutional layer for processing, to obtain a first processed feature map; and inputting the first processed feature map into a first mask branch comprised in the first branch structure, and obtain, when an instance comprised in a candidate region is an occluded instance, a non-perspective mask of the instance comprised in the candidate region.

### Claim 20

One or more non-transitory computer-readable storage media, each storage medium storing at least one computer-readable instruction, the at least one computer-readable instruction being loaded and executed by one or more processors to implement:
obtaining an image, and performing feature extraction on the image, to obtain a feature map of the image;
generating at least one candidate region of the image, and mapping the at least one candidate region to the feature map of the image, each candidate region comprising one instance;
processing the mapped feature map based on a target network for instance segmentation; and
indicating an overall structure of an occluded instance in the image by using a perspective mask, and indicating an invisible part of the occluded instance by using a non-perspective mask, the perspective mask and the non-perspective mask representing a relative occlusion relationship of the occluded instance.
