IP Library Granted Patent US 12,494,083
Granted Patent B2
US 12,494,083 · App. 17/695,241 · Granted Dec 9, 2025

Method and apparatus with face recognition

Inventors: Hui Li (Xi'an, CN); Jiguang Xue (Xi'an, CN); Jaejoon Han (Seoul, KR); Seon Min Rhee (Seoul, KR); Seungju Han (Seoul, KR)
Assignee: Samsung Electronics Co., Ltd.
G06V40/172G06T7/248G06V40/169G06V40/171G06T2207/30201
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,494,083
App. No.
17/695,241
Granted
Dec 9, 2025
Kind
B2
Abstract

A method with face recognition includes: determining a first global feature of a first face image and a first global feature of a second face image based on a local feature of the first face image and a local feature of the second face image, respectively; determining a final global feature of the first face image based on the first global feature of the first face image and a second global feature of the first face image; determining a final global feature of the second face image based on the first global feature and a second global feature of the second face image; and recognizing the first face image and the second face image based on the final global feature of the first face image and the final global feature of the second face image, wherein the second global feature of the first face image is determined based on the local feature of the first face image, and the second global feature of the second face image is determined based on the local feature of the second face image.

Claims (60)

1 . A method with face recognition, the method comprising:

determining a first global feature of a first face image and a first global feature of a second face image based on a local feature of the first face image and a local feature of the second face image, respectively;

determining a final global feature of the first face image based on the first global feature of the first face image and a second global feature of the first face image;

determining a final global feature of the second face image based on the first global feature and a second global feature of the second face image; and

recognizing the first face image and the second face image based on the final global feature of the first face image and the final global feature of the second face image,

wherein the second global feature of the first face image is determined based on the local feature of the first face image, and the second global feature of the second face image is determined based on the local feature of the second face image,

wherein the determining of the first global feature of a first face image and the first global feature of a second face image comprises:

determining a first attention pooling feature of the first face image with respect to the second face image and a second attention pooling feature of the second face image with respect to the first face image, based on the local feature of the first face image and the local feature of the second face image, respectively, using a multi-head attention mechanism;

determining the first global feature of the first face image based on the first attention pooling feature; and

determining the first global feature of the second face image based on the second attention pooling feature.

2 . The method of claim 1 , wherein the determining of the first global feature of the first face image and the first global feature of the second face image based on the local feature of the first face image and the local feature of the second face image, respectively, comprises performing an attention pooling processing based on the local feature of the first face image and the local feature of the second face image to determine the first global feature of the first face image and the first feature of the second face image, respectively.

3 . The method of claim 2 , wherein

the local feature of the first face image is a local feature of the first face image in which position information is embedded, and

the local feature of the second face image is a local feature of the second face image in which position information is embedded.

4 . The method of claim 1 , wherein the determining of the first attention pooling feature of the first face image with respect to the second face image and the second attention pooling feature of the second face image with respect to the first face image using the multi-head attention mechanism, based on the local feature of the first face image and the local feature of the second face image comprises:

determining a first query vector by multiplying the local feature of the second face image by a first query matrix corresponding to a query, determining a first key vector by multiplying the local feature of the first face image by a first key matrix corresponding to a key, determining a first value vector by multiplying the local feature of the first face image by a first value matrix corresponding to a value, and determining an attention pooling feature of the first face image with respect to the second face image based on the determined first query vector, the determined first key vector and the determined first value vector; and

determining a second query vector by multiplying the local feature of the first face image by a second query matrix corresponding to a query, determining a second key vector by multiplying the local feature of the second face image by a second key matrix corresponding to a key, determining a second value vector by multiplying the local feature of the second face image by a second value matrix corresponding to a value, and determining the second attention pooling feature of the second face image with respect to the first face image based on the determined second query vector, the determined second key vector and the determined second value vector.

5 . The method of claim 1 , wherein the determining of the first global feature of the first face image and the first global feature of the second face image comprises determining the first global feature of the first face image and the first global feature of the second face image, respectively, using a same network or different networks.

6 . A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, configure the one or more processors to perform the method of claim 1 .

7 . An apparatus with face recognition, the apparatus comprising:

one or more processors comprising:

a first global feature obtaining module configured to determine a first global feature of a first face image and a first global feature of a second face image based on a local feature of the first face image and a local feature of the second face image, respectively;

a final global feature obtaining module configured to determine a final global feature of the first face image based on the first global feature and a second global feature of the first face image and determine a final global feature of the second face image based on the first global feature and a second global feature of the second face image; and

a recognition module configured to recognize the first face image and the second face image based on the final global feature of the first face image and the final global feature of the second face image,

wherein the second global feature of the first face image is determined based on the local feature of the first face image, and the second global feature of the second face image is determined based on the local feature of the second face image,

wherein, for the determining of the first global feature of the first face image and the first global feature of the second face image, the first global feature obtaining module is configured to:

determine a first attention pooling feature of the first face image with respect to the second face image and a second attention pooling feature of the second face image with respect to the first face image, based on the local feature of the first face image and the local feature of the second face image, respectively, using a multi-head attention mechanism;

determine the first global feature of the first face image based on the first attention pooling feature; and

determine the first global feature of the second face image based on the second attention pooling feature.

8 . The apparatus of claim 7 , wherein, for the determining of the first global feature of the first face image and the first global feature of the second face image, the first global feature obtaining module is configured to perform an attention pooling processing based on the local feature of the first face image and the local feature of the second face image to determine the first global feature of the first face image and the first global feature of the second face image, respectively.

9 . The apparatus of claim 8 , wherein

the local feature of the first face image is a local feature of the first face image in which position information is embedded, and

the local feature of the second face image is a local feature of the second face image in which position information is embedded.

10 . The apparatus of claim 7 , wherein

the first global feature obtaining module comprises a cross-attention module, and

for the determining of the first attention pooling feature of the first face image and the second attention pooling feature of the second face image, the cross-attention module is configured to:

determine a first query vector by multiplying the local feature of the second face image by a first query matrix corresponding to a query, determine a first key vector by multiplying the local feature of the first face image by a first key matrix corresponding to a key, determine a first value vector by multiplying the local feature of the first face image by a first value matrix corresponding to a value, and determine the first attention pooling feature of the first face image with respect to the second face image based on the determined first query vector, the determined first key vector and the determined first value vector; and

determine a second query vector by multiplying the local feature of the first face image by a second query matrix corresponding to a query, determine a second key vector by multiplying the local feature of the second face image by a second key matrix corresponding to a key, determine a second value vector by multiplying the local feature of the second face image by a second value matrix corresponding to a value, and determine the second attention pooling feature of the second face image with respect to the first face image based on the determined second query vector, the determined second key vector and the determined second value vector.

11 . The apparatus of claim 7 , wherein the first global feature obtaining module comprises:

a first face image first global feature determining module configured to determine the first global feature of the first face image; and

a second face image first global feature determining module configured to determine the first global feature of the second face image.

12 . An electronic device comprising:

one or more processors configured to:

determine a first global feature of a first face image and a first global feature of a second face image based on a local feature of the first face image and a local feature of the second face image, respectively,

determine a final global feature of the first face image based on the first global feature and a second global feature of the first face image,

determine a final global feature of the second face image based on the first global feature and a second global feature of the second face image, and

recognize the first face image and the second face image based on the final global feature of the first face image and the final global feature of the second face image,

wherein the second global feature of the first face image is determined based on the local feature of the first face image, and the second global feature of the second face image is determined based on the local feature of the second face image,

wherein the one or more processors are configured to:

determine a first attention pooling feature of the first face image with respect to the second face image and a second attention pooling feature of the second face image with respect to the first face image, based on the local feature of the first face image and the local feature of the second face image, respectively, using a multi-head attention mechanism;

determine the first global feature of the first face image based on the first attention pooling feature; and

determine the second global feature of the second face image based on the second attention pooling feature.

13 . The electronic device of claim 12 , wherein, for the determining of the first global feature of the first face image and the first global feature of the second face image, the one or more processors are configured to perform an attention pooling processing based on the local feature of the first face image and the local feature of the second face image to determine the first global feature of the first face image and the first global feature of the second face image, respectively.

14 . The electronic device of claim 13 , wherein

the local feature of the first face image is a local feature of the first face image in which position information is embedded, and

the local feature of the second face image is a local feature of the second face image in which position information is embedded.

15 . The electronic device of claim 12 , wherein, for the determining of the first attention pooling feature of the first face image and the second attention pooling feature of the second face image, the one or more processors are configured to:

determine a first query vector by multiplying the local feature of the second face image by a first query matrix corresponding to a query, determine a first key vector by multiplying the local feature of the first face image by a first key matrix corresponding to a key, determine a first value vector by multiplying the local feature of the first face image by a first value matrix corresponding to a value, and determine the first attention pooling feature of the first face image with respect to the second face image based on the determined first query vector, the determined first key vector and the determined first value vector; and

determine a second query vector by multiplying the local feature of the first face image by a second query matrix corresponding to a query, determine a second key vector by multiplying the local feature of the second face image by a second key matrix corresponding to a key, determine a second value vector by multiplying the local feature of the second face image by a second value matrix corresponding to a value, and determine the second attention pooling feature of the second face image with respect to the first face image based on the determined second query vector, the determined second key vector and the determined second value vector.

16 . The apparatus of claim 12 , further comprising a memory storing instructions that, when executed by the one or more processors, configure the one or more processors to perform the determining of the first global feature of the first face image and the first global feature of the second face image, the determining of the final global feature of the first face image, the determining of the final global feature of the second face image, and the recognizing of the first face image and the second face image.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 15, 2022
From: LI, HUI; XUE, JIGUANG; HAN, JAEJOON; RHEE, SEON MIN; HAN, SEUNGJU
To: SAMSUNG ELECTRONICS CO., LTD.
Reel/Frame 059270/0521 →
Priority Claims (2)
CN 202110282834.6 · Mar 16, 2021 · national
KR 10-2022-0017234 · Feb 10, 2022 · national
Continuity (1)
Related Publication 20220301342A1 · Sep 22, 2022
References Cited (25)
US 20180341860A1 · Shazeer et al. · 2018 [cited by applicant]
US 20200242153A1 · Luo et al. · 2020 [cited by applicant]
US 20210034840A1 · Fan · 2021 [cited by examiner]
US 20210248761A1 · Liu · 2021 [cited by examiner]
US 20220310070A1 · Moritz · 2022 [cited by examiner]
US 20230095182A1 · Yao · 2023 [cited by examiner]
US 20230293079A1 · Chen · 2023 [cited by examiner]
CN 101510257A · 2009 [cited by applicant]
CN 109543606A · 2019 [cited by applicant]
CN 109934197A · 2019 [cited by applicant]
CN 110192206A · 2019 [cited by applicant]
CN 110705353A · 2020 [cited by applicant]
CN 110956060A · 2020 [cited by applicant]
CN 111241961A · 2020 [cited by applicant]
CN 112037254A · 2020 [cited by applicant]
CN 112070670A · 2020 [cited by applicant]
CN 112149459A · 2020 [cited by applicant]
CN 109145765B · 2021 [cited by applicant]
CN 112101358B · 2021 [cited by applicant]
KR 1020200029659A · 2020 [cited by applicant]
KR 102132690B1 · 2020 [cited by applicant]
KR 102205430B1 · 2021 [cited by applicant]
KR 102213478B1 · 2021 [cited by applicant]
Li, Yong, et al. “Occlusion Aware Facial Expression Recognition Using CNN With Attention Mechanism.” IEEE Transactions on Image Processing 28.5 (2019): 2439-2450. [cited by applicant]
Chinese Office Action issued on Sep. 1, 2023, in counterpart Chinese Patent Application No. 202110282834.6 (13 pages in English, 9 pages in Chinese). [cited by applicant]