IP Library Granted Patent US 12,620,122
Granted Patent B2
US 12,620,122 · App. 18/714,211 · Granted May 5, 2026

Target detection method and apparatus

Inventors: Wei Yao (Chaoyang, CN); Dong Li (Beijing, CN); Chuan Yu Zhang (Beijing, CN)
Assignee: SIEMENS AKTIENGESELLSCHAFT
G06T7/70G06T7/73G06T7/74G06V10/22G06V10/26G06V10/40G06V10/454G06V10/70G06V10/74G06V10/75G06V10/751G06V10/757G06V10/7715G06V10/80G06V10/806G06V10/82G06T2207/20016G06T2207/20084G06V2201/07
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,620,122
App. No.
18/714,211
Granted
May 5, 2026
Kind
B2
Abstract

Embodiments of this application provide a target detection method and apparatus, an electronic device, and a computer storage medium. The method includes: obtaining a target image including a target object; performing instance segmentation on the target image, to obtain a segmentation mask corresponding to the target object; obtaining, based on the segmentation mask, position relationship features between target pixels in a target region in which the target object is located in the target image; obtaining position relationship features between standard pixels in a preset region of interest in a standard image, where the standard image includes a standard object corresponding to the target object; and matching the position relationship features between the target pixels and the position relationship features between the standard pixels, to obtain a correspondence between the target pixels and the standard pixels, and obtaining pose information of the target object based on the correspondence.

Claims (61)

1 . A target detection method comprising:

obtaining a target image representing a target object;

performing instance segmentation on the target image to obtain a segmentation mask corresponding to the target object;

obtaining first position relationship features based on characteristics of target pixels in a target region in which the target object is located in the target image using the segmentation mask;

obtaining second position relationship features based on characteristics of standard pixels in a preset region of interest of a standard object in a standard image;

matching the first position relationship features of the target pixels to the second position relationship features of the standard pixels to obtain a correspondence between the target pixels and the standard pixels;

obtaining pose information of the target object based on the correspondence;

inputting the target image into a pre-trained instance segmentation model; and

performing instance segmentation on the target image by using the pre-trained instance segmentation model to obtain the segmentation mask corresponding to the target object;

wherein the pre-trained instance segmentation model comprises: a feature extraction network, a feature fusion network, a region generation network, a feature alignment layer, a classification and regression network, and a segmentation mask network;

wherein performing instance segmentation on the target image by using the pre-trained instance segmentation model comprises:

putting the target image into the feature extraction network in the pre-trained instance segmentation model, and performing multi-scale feature extraction on the target image by using the feature extraction network, to obtain a plurality of levels of initial feature maps corresponding to the target image;

performing feature fusion on the plurality of levels of initial feature maps using the feature fusion network to obtain fused feature maps;

obtaining information about an initial region of the target object based on a resulting fused feature map and using the region generation network;

performing feature extraction on the plurality of levels of initial feature maps based on the information about the initial region and using the feature alignment layer, to obtain a region feature map corresponding to the initial region in the plurality of levels of initial feature maps;

obtaining category information and position information of the target object based on the region feature map and using the classification and regression network; and

obtaining the segmentation mask corresponding to the target object based on the region feature map and using the segmentation mask network; and

wherein performing feature fusion on the plurality of levels of initial feature maps using the feature fusion network to obtain the fused feature maps comprises:

performing a convolution operation on each of the plurality of levels of initial feature maps by using the feature fusion network to obtain a plurality of levels of initial dimension-reduced feature maps;

sequentially performing fusion processing on every two adjacent levels of the plurality of levels of initial dimension-reduced feature maps according to a descending order of levels, to obtain a plurality of initially fused feature maps, and updating an initial dimension-reduced feature map at a lower level in the adjacent levels by using a corresponding initially fused feature map of the plurality of initially fused feature maps, wherein a size of an initial dimension-reduced feature map at an upper level is less than a size of the initial dimension-reduced feature map at the lower level;

performing the convolution operation on each of the plurality of initially fused feature maps, to obtain a plurality of levels of dimension-reduced feature maps; and

sequentially performing fusion processing on every two adjacent levels of the plurality of levels of dimension-reduced feature maps according to an ascending order of levels, to obtain a transition feature map, performing fusion processing on the transition feature map and a corresponding initial feature map from the plurality of levels of initial feature maps, to obtain a fused feature map, and updating a dimension-reduced feature map at an upper level in the adjacent levels using the fused feature map, wherein a size of the dimension-reduced feature map at the upper level is less than a size of a dimension-reduced feature map at a lower level.

2 . The method according to claim 1 , wherein:

obtaining the first position relationship features of the target pixels comprises combining, based on the segmentation mask, the target pixels in the target region in which the target object is located in the target image in pairs, to obtain a plurality of target pixel pairs, and obtaining, for each target pixel pair of the plurality of target pixel pairs, a position relationship feature between two target pixels in the target pixel pair; and

obtaining the second position relationship features of the standard pixels in the preset region of interest of the standard object in the standard image comprises obtaining the standard image and the preset region of interest of the standard object in the standard image; and

the method further comprises combining the standard pixels in the preset region of interest in pairs, to obtain a plurality of standard pixel pairs, and obtaining, for each standard pixel pair of the plurality of standard pixel pairs, a position relationship feature between two standard pixels in the standard pixel pair.

3 . The method according to claim 2 , wherein:

for each target pixel pair of the plurality of target pixel pairs, the position relationship feature between the two target pixels in the target pixel pair is obtained based on a distance between the two target pixels, an angle between normal vectors corresponding to the two target pixels respectively, and angles between the normal vectors corresponding to the two target pixels and a connection line between the two target pixels; and

for each standard pixel pair of the plurality of standard pixel pairs, the position relationship feature between the two standard pixels in the standard pixel pair is obtained based on a distance between the two standard pixels, an angle between normal vectors corresponding to the two standard pixels respectively, and angles between the normal vectors corresponding to the two standard pixels and a connection line between the two standard pixels.

4 . The method according to claim 1 , wherein:

the feature extraction network comprises two concatenated convolution layers;

a size of a convolution kernel of a first of the two concatenated convolution layers is 1*1;

a convolution stride of the first convolution layer is 1; and

a convolution stride of a second of the two concatenated convolution layers is less than or equal to a size of a convolution kernel of the second convolution layer.

5 . An electronic device comprising:

a processor;

a memory;

a communication interface; and

a communication bus providing mutual communication between the processor, the memory, and the communication interface;

wherein the memory is configured to store at least one executable instruction, and the at least one executable instruction causes the processor to:

obtain a target image comprising a target object;

perform instance segmentation on the target image to obtain a segmentation mask corresponding to the target object;

obtain position relationship features based on characteristics of target pixels in a target region in which the target object is located in the target image using the segmentation mask;

obtain position relationship features based on characteristics of standard pixels in a preset region of interest of a standard object in a standard image;

match the position relationship features of the target pixels to the position relationship features of the standard pixels to obtain a correspondence between the target pixels and the standard pixels;

obtain pose information of the target object based on the correspondence;

put the target image into a pre-trained instance segmentation model; and

perform instance segmentation on the target image by using the pre-trained instance segmentation model to obtain the segmentation mask corresponding to the target object;

wherein the pre-trained instance segmentation model comprises: a feature extraction network, a feature fusion network, a region generation network, a feature alignment layer, a classification and regression network, and a segmentation mask network;

wherein performing instance segmentation on the target image by using the pre-trained instance segmentation model comprises:

putting the target image into the feature extraction network in the pre-trained instance segmentation model, and performing multi-scale feature extraction on the target image by using the feature extraction network, to obtain a plurality of levels of initial feature maps corresponding to the target image;

performing feature fusion on the plurality of levels of initial feature maps using the feature fusion network to obtain fused feature maps;

obtaining information about an initial region of the target object based on a resulting fused feature map and using the region generation network;

performing feature extraction on the plurality of levels of initial feature maps based on the information about the initial region and using the feature alignment layer, to obtain a region feature map corresponding to the initial region in the plurality of levels of initial feature maps;

obtaining category information and position information of the target object based on the region feature map and using the classification and regression network; and

obtaining the segmentation mask corresponding to the target object based on the region feature map and using the segmentation mask network; and

wherein performing feature fusion on the plurality of levels of initial feature maps using the feature fusion network to obtain the fused feature maps comprises:

performing a convolution operation on each of the plurality of levels of initial feature maps by using the feature fusion network to obtain a plurality of levels of initial dimension-reduced feature maps:

sequentially performing fusion processing on every two adjacent levels of the plurality of levels of initial dimension-reduced feature maps according to a descending order of levels, to obtain a plurality of initially fused feature maps, and updating an initial dimension-reduced feature map at a lower level in the adjacent levels by using a corresponding initially fused feature map of the plurality of initially fused feature maps, wherein a size of an initial dimension-reduced feature map at an upper level is less than a size of the initial dimension-reduced feature map at the lower level;

performing the convolution operation on each of the plurality of initially fused feature maps, to obtain a plurality of levels of dimension-reduced feature maps; and

sequentially performing fusion processing on every two adjacent levels of the plurality of levels of dimension-reduced feature maps according to an ascending order of levels, to obtain a transition feature map, performing fusion processing on the transition feature map and a corresponding initial feature map from the plurality of levels of initial feature maps, to obtain a fused feature map, and updating a dimension-reduced feature map at an upper level in the adjacent levels using the fused feature map, wherein a size of the dimension-reduced feature map at the upper level is less than a size of a dimension-reduced feature map at a lower level.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 16, 2024
From: YAO, WEI; LI, DONG; ZHANG, CHUAN YU
To: SIEMENS LTD., CHINA
Reel/Frame 069595/0814 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 16, 2024
From: SIEMENS LTD., CHINA
To: SIEMENS AKTIENGESELLSCHAFT
Reel/Frame 069595/0907 →
Priority Claims (1)
EP 21211271 · Nov 30, 2021 · regional
Continuity (1)
Related Publication 20240420362A1 · Dec 19, 2024
References Cited (21)
US 20160275686A1 · Zach · 2016 [cited by examiner]
US 20190057507A1 · El-Khamy · 2019 [cited by examiner]
US 20190311202A1 · Lee et al. · 2019 [cited by applicant]
US 20200134365A1 · Liu · 2020 [cited by examiner]
US 20210035305A1 · Fang · 2021 [cited by examiner]
US 20220180548A1 · Li · 2022 [cited by examiner]
US 20230102467A1 · He · 2023 [cited by examiner]
US 20230169755A1 · He · 2023 [cited by examiner]
CN 109800735A · 2019 [cited by applicant]
CN 110008915A · 2019 [cited by applicant]
CN 110599489A · 2019 [cited by applicant]
WO 2021004402A1 · 2021 [cited by applicant]
Rebecca König and Bertram Drost, “A Hybrid Approach for 6DoF Pose Estimation”, Springer, Computer Vision—ECCV 2020 Workshops, Lecture Notes in Computer Science, vol. 12536, Jan. 3, 2021, pp. 700-706 (Year: 2021). [cited by examiner]
Bertam Drost, Markus Ulrich, Nassir Navab and Slobodan Ilic, “Model Globally, Match Locally: Efficient and Robust 3D Object Recognition,” 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition,… [cited by examiner]
Search Report for International Application No. PCT/CN2022/132660, 11 pages, Feb. 7, 2023. [cited by applicant]
Search Report for EP Application No. 21211271.8, 7 pages, May 20, 2022. [cited by applicant]
König, Rebecca et al: “A Hybrid Approach for 6DoF Pose Estimation”; Glasgow, UK, Aug. 23-28, 2020 Proceedings, Part II; Pattern Recognition: 5th Asian Conference, ACPR 2019, Auckland, New Zealand, Nov. 26-29, 2019, Revi… [cited by applicant]
Drost, Bertram et al: “Model Globally, Match Locally: Efficient and Robust 3D Object Recognition”; 2010 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Jun. 13-18, 2010, San Francisco, CA, USA; Jun. 1… [cited by applicant]
Tsung-Yi, Lin et al: “Feature Pyramid Networks for Object Detection”; 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), IEEE Computer Society, US; Jul. 21, 2017 (Jul. 21, 2017), pp. 936-944, XP0332… [cited by applicant]
He, Kaiming et al., “Mask R-CNN,” Proceedings of the IEEE International Conference on Computer Vision, 12 Pages, Jan. 24, 2018. [cited by applicant]
Korean Office Action, Application No. 20247021549, 12 pages, Nov. 19, 2024. [cited by applicant]