| CPC G06V 10/141 (2022.01) [G06F 21/32 (2013.01); G06V 40/172 (2022.01); G06V 40/40 (2022.01)] | 20 Claims |

|
1. A facial recognition method, applied to an electronic device, wherein the electronic device comprises a time of flight (TOF) camera module, and the TOF camera module comprises a transmitter configured to transmit a light signal and an image sensor configured to receive reflected light; and the method comprises:
receiving a first operation by a user, wherein the first operation triggers the TOF camera module to work and initiates performing facial recognition through the TOF camera module;
controlling the transmitter to work at a first current value that is associated with a first light intensity;
determining that the transmitter is in a normal working state when the transmitter is working at the first light intensity;
in response to determining that the transmitter is in the normal working state, controlling the transmitter to work at a second current value that is associated with a second light intensity that is higher than the first light intensity;
controlling the image sensor to collect image data when the transmitter is working at the second light intensity; and
performing the facial recognition based on the image data collected when the transmitter is working at the second light intensity.
|