US 12,346,769 B2
Two-dimensional code recognition method, electronic device, and storage medium
Renpeng Li, Shenzhen (CN); Lu Mao, Shenzhen (CN); and Chaoran Zhuge, Shenzhen (CN)
Assigned to Honor Device Co., Ltd., Shenzhen (CN)
Appl. No. 18/039,422
Filed by Honor Device Co., Ltd., Shenzhen (CN)
PCT Filed Dec. 5, 2022, PCT No. PCT/CN2022/136697
§ 371(c)(1), (2) Date May 30, 2023,
PCT Pub. No. WO2024/016564, PCT Pub. Date Jan. 25, 2024.
Claims priority of application No. 202210855909 (CN), filed on Jul. 21, 2022.
Prior Publication US 2024/0394490 A1, Nov. 28, 2024
Int. Cl. H04N 23/71 (2023.01); G01S 11/12 (2006.01); G06K 7/14 (2006.01); G06T 7/50 (2017.01); H04N 23/60 (2023.01); H04N 23/61 (2023.01); H04N 23/68 (2023.01)
CPC G06K 7/1417 (2013.01) [G01S 11/12 (2013.01); G06T 7/50 (2017.01); H04N 23/61 (2023.01); H04N 23/64 (2023.01); H04N 23/71 (2023.01); H04N 23/6812 (2023.01)] 20 Claims
OG exemplary drawing
 
1. A two-dimensional code recognition method, the method comprising:
determining a screen status of a terminal device;
determining proximity light information of the terminal device;
based on the screen status representing that the terminal device is in a screen-on unlocked state, determining posture change information and a screen orientation of the terminal device; and
based on a value represented by the posture change information being greater than or equal to a first preset threshold and the screen orientation being a direction other than a first direction, calling a front-facing camera of the terminal device to obtain an image, recognizing two-dimensional code information in the image, and displaying an application interface corresponding to the two-dimensional code information;
wherein, before the determining the posture change information and the screen orientation of the terminal device, based on a value represented by the proximity light information being greater than or equal to a second preset threshold, determining that the terminal device is in a proximity light unshielded state; and
wherein the first direction is a positive direction of a z-axis of a world coordinate system.