US 12,354,403 B2
Data obtaining method and apparatus
Jiangfeng Yuan, Shenzhen (CN); Chuan Liao, Shenzhen (CN); and Junwei Zhou, Shenzhen (CN)
Assigned to Honor Device Co., Ltd., Shenzhen (CN)
Filed by Honor Device Co., Ltd., Guangdong (CN)
Filed on Oct. 14, 2022, as Appl. No. 17/966,142.
Application 17/966,142 is a continuation of application No. PCT/CN2022/092485, filed on May 12, 2022.
Claims priority of application No. 202110925831.X (CN), filed on Aug. 12, 2021.
Prior Publication US 2023/0052356 A1, Feb. 16, 2023
Int. Cl. G06V 40/16 (2022.01); G06T 7/00 (2017.01); G06V 10/141 (2022.01); G06V 10/74 (2022.01)
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
OG exemplary drawing
 
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.