CPC G06V 40/1365 (2022.01) [G06F 21/32 (2013.01); G06V 30/18 (2022.01); G06V 30/19 (2022.01)] | 17 Claims |
1. A terminal device, comprising:
a power button;
a contact disposed proximate to the power button and configured to move with the power button in response to pressing of the power button by a finger, wherein when the contact is closed, a stroke of the power button is less than a maximum stroke of the power button;
a fingerprint sensor disposed on the power button;
a processor; and
a memory configured to store instructions that when executed by the processor, cause the terminal device to:
detect, when the terminal device is in a shutdown state, the pressing of the power button by the finger, wherein the fingerprint sensor is not powered on when the terminal device is in the shutdown state;
in response to detecting the pressing of the power button by the finger:
powering on the terminal device;
powering on the fingerprint sensor; and
collecting, by the fingerprint sensor, fingerprint data before releasing the pressing of the power button; and
log in to the terminal device in response to the fingerprint data matching with preset fingerprint data.
|