| CPC G06V 40/172 (2022.01) [G06T 7/0002 (2013.01); G06V 10/141 (2022.01); G06V 10/761 (2022.01); G06T 2207/10028 (2013.01); G06T 2207/10048 (2013.01); G06T 2207/10144 (2013.01); G06T 2207/30201 (2013.01)] | 19 Claims |

|
1. A data obtaining method, comprising:
obtaining a first facial recognition frame, wherein the first facial recognition frame is a first frame in multiple facial recognition frames in time of flight (TOF) data, wherein the TOF data is data acquired by a TOF camera as triggered by a task request received from an application, wherein the first facial recognition frame acquired by the TOF camera is stored into a trusted execution environment (TEE) via a kernel layer, wherein the first facial recognition frame comprises projection off data and infrared data, and wherein the projection off data is TOF data acquired by the TOF camera with a TOF light source being off;
determining, in the TEE, that a data block satisfying a preset condition is present in the infrared data, wherein the preset condition comprises that a number of data points in the data block with brightness values greater than a first threshold is greater than a second threshold; and
obtaining, in the TEE, based on a difference between the infrared data and the projection off data, data used for generating a first frame of a TOF image, wherein the projection off data is subtracted from the infrared data to obtain the data used for generating the first frame of the TOF image.
|