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 |
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.
|