# US 2023/0068238 A1 · Method and apparatus for processing image, 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 2023/0068238 A1
- Document ID: US20230068238A1
- Status: Published application
- Kind: A1
- Application number: 18/049,326
- Filed: 2022-10-25
- Published: 2023-03-02
- Earliest claimed: 2021-10-29
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Technology Co., Ltd.
- Inventors: Yingying Li; Xiao Tan; Hao Sun
- Web page: https://patentgrep.com/patent/US20230068238A1

## CPC

- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- 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
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/096: Transfer learning
- G06T 7/10: Segmentation; Edge detection (motion-based segmentation G06T7/215)
- G06T 7/11: Region-based segmentation
- G06T 7/50: Depth or shape recovery
- G06V 10/82: using neural networks
- G06V 20/56: exterior to a vehicle by using sensors mounted on the vehicle
- G06V 20/64: Three-dimensional [3D] objects
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20221: Image fusion; Image merging
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method for processing an image includes obtaining an image to be processed; obtaining a depth feature map by inputting the image to be processed into a depth feature extraction network in an image recognition model, and obtaining a semantic segmentation feature map by inputting the image to be processed into a semantic feature extraction network of the image recognition model; obtaining a target depth feature map fused with semantic features and a target semantic segmentation feature map fused with depth features by inputting the depth feature map and the semantic segmentation feature map into a feature interaction network of the recognition model for fusion; and obtaining a depth estimation result and a semantic segmentation result by inputting the target depth feature map and the target semantic segmentation feature map into a corresponding output network in the recognition model.

## Claims

### Claim 1

A method for processing an image, comprising:
obtaining an image to be processed;
obtaining a depth feature map by inputting the image to be processed into a depth feature extraction network in an image recognition model, and obtaining a semantic segmentation feature map by inputting the image to be processed into a semantic feature extraction network of the image recognition model;
obtaining a target depth feature map fused with semantic features and a target semantic segmentation feature map fused with depth features by inputting the depth feature map and the semantic segmentation feature map into a feature interaction network of the recognition model for fusion; and
obtaining a depth estimation result and a semantic segmentation result by inputting the target depth feature map and the target semantic segmentation feature map into a corresponding output network in the recognition model.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the target depth feature map fused with the semantic features by inputting the depth feature map and the semantic segmentation feature map into the feature interaction network of the recognition model comprises:
obtaining a semantic segmentation weight matrix through learning by the feature interaction network; wherein elements of the semantic segmentation weight matrix are configured to indicate importance degrees of features, corresponding to respective elements, in the semantic segmentation feature map in performing depth estimation;
obtaining a weighted semantic segmentation feature map by multiplying the semantic segmentation feature map and the semantic segmentation weight matrix; and
obtaining the target depth feature map by fusing the weighted semantic segmentation feature map and the depth feature map.

### Claim 3 (depends on 1)

The method of claim 1, wherein obtaining the target semantic segmentation feature map fused with the depth features by inputting the depth feature map and the semantic segmentation feature map into the feature interaction network of the recognition model comprises:
obtaining a depth weight matrix through learning by the feature interaction network; wherein elements of the depth weight matrix are configured to indicate importance degrees of features, corresponding to respective elements, in the depth feature map in performing semantic segmentation;
obtaining a weighted depth feature map by multiplying the depth feature map and the depth weight matrix; and
obtaining the target semantic segmentation feature map by fusing the weighted depth feature map and the semantic segmentation feature map.

### Claim 4 (depends on 2)

The method of claim 2, wherein obtaining the weighted semantic segmentation feature map by multiplying the semantic segmentation feature map and the semantic segmentation weight matrix comprises:
obtaining weighted semantic segmentation features of elements by multiplying semantic segmentation features of elements in the semantic segmentation feature map and weights of the corresponding elements in the semantic segmentation weight matrix respectively; and
generating the weighted semantic segmentation feature map based on the weighted semantic segmentation features of the elements.

### Claim 5 (depends on 3)

The method of claim 3, wherein obtaining the weighted depth feature map by multiplying the depth feature map and the depth weight matrix comprises:
obtaining weighted depth features of elements by multiplying the depth features of elements in the depth feature map and weights of corresponding elements in the depth weight matrix respectively; and
generating the weighted depth feature map based on the weighted depth features of the elements.

### Claim 6

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor; wherein,
the memory is stored with instructions executable by the at least one processor, the instructions are performed by the at least one processor, to cause the at least one processor to:
obtain an image to be processed;
obtain a depth feature map by inputting the image to be processed into a depth feature extraction network in an image recognition model, and obtain a semantic segmentation feature map by inputting the image to be processed into a semantic feature extraction network of the image recognition model;
obtain a target depth feature map fused with semantic features and a target semantic segmentation feature map fused with depth features by inputting the depth feature map and the semantic segmentation feature map into a feature interaction network of the recognition model for fusion; and
obtain a depth estimation result and a semantic segmentation result by inputting the target depth feature map and the target semantic segmentation feature map into a corresponding output network in the recognition model.

### Claim 7 (depends on 6)

The electronic device of claim 6, wherein the at least one processor is further configured to:
obtain a semantic segmentation weight matrix through learning by the feature interaction network; wherein elements of the semantic segmentation weight matrix are configured to indicate importance degrees of features, corresponding to respective elements, in the semantic segmentation feature map in performing depth estimation;
obtain a weighted semantic segmentation feature map by multiplying the semantic segmentation feature map and the semantic segmentation weight matrix; and
obtain the target depth feature map by fusing the weighted semantic segmentation feature map and the depth feature map.

### Claim 8 (depends on 6)

The electronic device of claim 6, wherein the at least one processor is further configured to:
obtain a depth weight matrix through learning by the feature interaction network; wherein elements of the depth weight matrix are configured to indicate importance degrees of features, corresponding to respective elements, in the depth feature map in performing semantic segmentation;
obtain a weighted depth feature map by multiplying the depth feature map and the depth weight matrix; and
obtain the target semantic segmentation feature map by fusing the weighted depth feature map and the semantic segmentation feature map.

### Claim 9 (depends on 7)

The electronic device of claim 7, wherein the at least one processor is further configured to:
obtain weighted semantic segmentation features of elements by multiplying semantic segmentation features of elements in the semantic segmentation feature map and weights of the corresponding elements in the semantic segmentation weight matrix respectively; and
generate the weighted semantic segmentation feature map based on the weighted semantic segmentation features of the elements.

### Claim 10 (depends on 8)

The electronic device of claim 8, wherein the at least one processor is further configured to:
obtain weighted depth features of elements by multiplying the depth features of elements in the depth feature map and weights of corresponding elements in the depth weight matrix respectively; and
generate the weighted depth feature map based on the weighted depth features of the elements.

### Claim 11

A non-transitory computer readable storage medium, having computer instructions stored therein, wherein, the computer instructions are configured to cause a computer to perform the method of for processing an image, wherein the method comprises:
obtaining an image to be processed;
obtaining a depth feature map by inputting the image to be processed into a depth feature extraction network in an image recognition model, and obtaining a semantic segmentation feature map by inputting the image to be processed into a semantic feature extraction network of the image recognition model;
obtaining a target depth feature map fused with semantic features and a target semantic segmentation feature map fused with depth features by inputting the depth feature map and the semantic segmentation feature map into a feature interaction network of the recognition model for fusion; and
obtaining a depth estimation result and a semantic segmentation result by inputting the target depth feature map and the target semantic segmentation feature map into a corresponding output network in the recognition model.

### Claim 12 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein obtaining the target depth feature map fused with the semantic features by inputting the depth feature map and the semantic segmentation feature map into the feature interaction network of the recognition model comprises:
obtaining a semantic segmentation weight matrix through learning by the feature interaction network; wherein elements of the semantic segmentation weight matrix are configured to indicate importance degrees of features, corresponding to respective elements, in the semantic segmentation feature map in performing depth estimation;
obtaining a weighted semantic segmentation feature map by multiplying the semantic segmentation feature map and the semantic segmentation weight matrix; and
obtaining the target depth feature map by fusing the weighted semantic segmentation feature map and the depth feature map.

### Claim 13 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein obtaining the target semantic segmentation feature map fused with the depth features by inputting the depth feature map and the semantic segmentation feature map into the feature interaction network of the recognition model comprises:
obtaining a depth weight matrix through learning by the feature interaction network; wherein elements of the depth weight matrix are configured to indicate importance degrees of features, corresponding to respective elements, in the depth feature map in performing semantic segmentation;
obtaining a weighted depth feature map by multiplying the depth feature map and the depth weight matrix; and
obtaining the target semantic segmentation feature map by fusing the weighted depth feature map and the semantic segmentation feature map.

### Claim 14 (depends on 12)

The non-transitory computer readable storage medium of claim 12, wherein obtaining the weighted semantic segmentation feature map by multiplying the semantic segmentation feature map and the semantic segmentation weight matrix comprises:
obtaining weighted semantic segmentation features of elements by multiplying semantic segmentation features of elements in the semantic segmentation feature map and weights of the corresponding elements in the semantic segmentation weight matrix respectively; and
generating the weighted semantic segmentation feature map based on the weighted semantic segmentation features of the elements.

### Claim 15 (depends on 13)

The non-transitory computer readable storage medium of claim 13, wherein obtaining the weighted depth feature map by multiplying the depth feature map and the depth weight matrix comprises:
obtaining weighted depth features of elements by multiplying the depth features of elements in the depth feature map and weights of corresponding elements in the depth weight matrix respectively; and
generating the weighted depth feature map based on the weighted depth features of the elements.
