[go: up one dir, main page]

CN108595928A - Information processing method, device and terminal equipment for face recognition - Google Patents

Information processing method, device and terminal equipment for face recognition Download PDF

Info

Publication number
CN108595928A
CN108595928A CN201810327407.3A CN201810327407A CN108595928A CN 108595928 A CN108595928 A CN 108595928A CN 201810327407 A CN201810327407 A CN 201810327407A CN 108595928 A CN108595928 A CN 108595928A
Authority
CN
China
Prior art keywords
face recognition
application program
execution environment
infrared image
visible light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810327407.3A
Other languages
Chinese (zh)
Inventor
郭子青
周海涛
惠方方
谭筱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810327407.3A priority Critical patent/CN108595928A/en
Publication of CN108595928A publication Critical patent/CN108595928A/en
Priority to EP19784964.9A priority patent/EP3633546A4/en
Priority to PCT/CN2019/081743 priority patent/WO2019196793A1/en
Priority to US16/742,378 priority patent/US11170204B2/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Collating Specific Patterns (AREA)
  • Image Processing (AREA)

Abstract

The application discloses an information processing method, an information processing device and terminal equipment for face recognition, wherein the method comprises the following steps: acquiring attribute information of an application program calling face recognition; judging whether the face recognition process needs to be executed under a Trusted Execution Environment (TEE) according to the attribute information; if the face recognition process needs to be executed under the trusted execution environment TEE, controlling the application program to enter a trusted execution environment TEE mode, and executing the face recognition process in series under the trusted execution environment TEE; and if the face recognition process is not required to be executed under the trusted execution environment TEE, controlling the application program to enter a common execution environment REE mode, and executing the face recognition process under the common execution environment REE in parallel. The information processing method and device for face recognition and the terminal device can ensure information safety in scenes with high safety requirements and can realize quick response in scenes with low safety requirements.

Description

人脸识别的信息处理方法、装置及终端设备Information processing method, device and terminal equipment for face recognition

技术领域technical field

本申请涉及信息处理技术领域,尤其涉及一种人脸识别的信息处理方法、装置及终端设备。The present application relates to the field of information processing technology, and in particular to an information processing method, device and terminal equipment for face recognition.

背景技术Background technique

随着科技的不断进步,生物识别技术的应用也越来越广泛,尤其是人脸识别,已广泛应用于身份认证、移动支付、模拟动态表情等场景。例如,用户需要登录一个安全应用程序(理财APP)时,可通过该应用程序开启人脸识别功能,获取用户的人脸信息,与预存的人脸信息比对。如果比对一致,则认证通过,用户登录成功。而如何提高诸如身份认证、移动支付等操作的安全性,降低用户的信息被盗取的风险,已成为亟需解决的问题。With the continuous advancement of science and technology, the application of biometric technology is becoming more and more extensive, especially face recognition, which has been widely used in scenarios such as identity authentication, mobile payment, and simulated dynamic expressions. For example, when a user needs to log in to a security application (wealth management APP), the face recognition function can be enabled through the application to obtain the user's face information and compare it with the pre-stored face information. If the comparison is consistent, the authentication is passed and the user login is successful. How to improve the security of operations such as identity authentication and mobile payment, and reduce the risk of user information being stolen has become an urgent problem to be solved.

申请内容application content

本申请提供一种人脸识别的信息处理方法、装置及终端设备,能够保证安全性要求较高的场景下的信息安全,又能够实现安全性要求相对不高的场景下的快速响应。The present application provides an information processing method, device, and terminal equipment for face recognition, which can ensure information security in scenarios with high security requirements, and can also achieve rapid response in scenarios with relatively low security requirements.

本申请实施例提供一种人脸识别的信息处理方法,包括:An embodiment of the present application provides an information processing method for face recognition, including:

获取调用人脸识别的应用程序的属性信息;Obtain the attribute information of the application that calls face recognition;

根据所述属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行;Judging whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information;

如果所述人脸识别过程需要在所述可信执行环境TEE下执行,则控制所述应用程序进入可信执行环境TEE模式,并在所述可信执行环境TEE下串行执行所述人脸识别过程的步骤;If the face recognition process needs to be executed under the Trusted Execution Environment TEE, control the application program to enter the Trusted Execution Environment TEE mode, and serially execute the face recognition process under the Trusted Execution Environment TEE steps in the identification process;

如果所述人脸识别过程无需在所述可信执行环境TEE下执行,则控制所述应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行所述人脸识别过程的步骤。If the face recognition process does not need to be executed under the trusted execution environment TEE, control the application program to enter the normal execution environment REE mode, and execute the steps of the face recognition process in parallel under the normal execution environment REE.

可选的,所述应用程序的属性信息包括所述应用程序的安全级别。Optionally, the attribute information of the application program includes the security level of the application program.

可选的,所述人脸识别过程包括检测人脸步骤、获取人脸元素步骤、人脸活体检测步骤以及人脸识别步骤。Optionally, the face recognition process includes a face detection step, a face element acquisition step, a live face detection step, and a face recognition step.

可选的,所述检测人脸步骤,包括:Optionally, the step of detecting human face includes:

向被摄物发射红外光;emit infrared light to the subject;

捕获经过所述被摄物的红外图像;capturing an infrared image passing through the subject;

将所述红外图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述红外图像进行处理,以获取红外图像数据;以及sending the infrared image to a micro control unit MCU, and using the micro control unit MCU to process the infrared image to obtain infrared image data; and

将所述红外图像数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述红外图像数据。The infrared image data is provided to the application program through a preset interface, so that the application program calls the infrared image data.

可选的,所述获取人脸元素步骤,包括:Optionally, the step of obtaining face elements includes:

拍摄被摄物的可见光图像;Take visible light images of the subject;

将所述可见光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述可见光图像进行处理,以获取可见光图像数据;以及sending the visible light image to a micro control unit MCU, and using the micro control unit MCU to process the visible light image to obtain visible light image data; and

将所述可见光图像数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述可见光图像数据。The visible light image data is provided to the application program through a preset interface, so that the application program calls the visible light image data.

可选的,所述人脸活体检测步骤,包括:Optionally, the human face detection step includes:

向被摄物发射红外光和所述结构光;emitting infrared light and the structured light to the subject;

捕获经过所述被摄物的红外图像和所述结构光图像;capturing an infrared image passing through the subject and the structured light image;

将所述红外图像和所述结构光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述红外图像和所述结构光图像进行处理,以获取红外图像数据和所述景深数据;以及Sending the infrared image and the structured light image to a micro control unit MCU, and using the micro control unit MCU to process the infrared image and the structured light image to obtain infrared image data and the depth of field data ;as well as

将所述红外图像数据和所述景深数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述红外图像数据和所述景深数据。The infrared image data and the depth of field data are provided to the application program through a preset interface, so that the application program calls the infrared image data and the depth of field data.

可选的,所述人脸识别步骤,包括:Optionally, the face recognition step includes:

拍摄被摄物的可见光图像;Take visible light images of the subject;

将所述可见光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述可见光图像进行处理,以获取人脸特征数据;以及sending the visible light image to a micro control unit MCU, and using the micro control unit MCU to process the visible light image to obtain facial feature data; and

将所述人脸特征数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述人脸特征数据。The facial feature data is provided to the application program through a preset interface, so that the application program invokes the facial feature data.

可选的,利用所述微控制单元MCU计算获得所述被摄物对应的景深数据,包括:Optionally, using the micro control unit MCU to calculate and obtain the depth of field data corresponding to the subject, including:

解调所述结构光图像中变形位置像素对应的相位信息;Demodulating the phase information corresponding to the deformed position pixel in the structured light image;

将所述相位信息转化为高度信息;converting the phase information into height information;

根据所述高度信息确定所述被摄物对应的景深数据。Depth of field data corresponding to the subject is determined according to the height information.

可选的,所述预设接口为符合预设标准的总线接口,包括MIPI总线接口、I2C同步串行总线接口、SPI总线接口。Optionally, the preset interface is a bus interface conforming to a preset standard, including a MIPI bus interface, an I2C synchronous serial bus interface, and an SPI bus interface.

本申请另一实施例提供一种人脸识别的信息处理装置,包括:Another embodiment of the present application provides an information processing device for face recognition, including:

获取模块,用于获取调用人脸识别的应用程序的属性信息;The acquisition module is used to acquire the attribute information of the application program that calls the face recognition;

判断模块,用于根据所述属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行;A judging module, configured to judge whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information;

处理模块,用于如果所述人脸识别过程需要在所述可信执行环境TEE下执行,则控制所述应用程序进入可信执行环境TEE模式,并在所述可信执行环境TEE下串行执行所述人脸识别过程的步骤,如果所述人脸识别过程无需在所述可信执行环境TEE下执行,则控制所述应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行所述人脸识别过程的步骤。A processing module, configured to control the application program to enter the trusted execution environment TEE mode if the face recognition process needs to be executed under the trusted execution environment TEE, and execute serially under the trusted execution environment TEE Execute the step of the face recognition process, if the face recognition process does not need to be executed under the trusted execution environment TEE, then control the application program to enter the common execution environment REE mode, and parallelize it under the common execution environment REE The steps of the face recognition process are performed.

可选的,所述应用程序的属性信息包括所述应用程序的安全级别。Optionally, the attribute information of the application program includes the security level of the application program.

可选的,所述人脸识别过程包括检测人脸步骤、获取人脸元素步骤、人脸活体检测步骤以及人脸识别步骤。Optionally, the face recognition process includes a face detection step, a face element acquisition step, a live face detection step, and a face recognition step.

可选的,所述处理模块,具体用于:Optionally, the processing module is specifically used for:

向被摄物发射红外光;emit infrared light to the subject;

捕获经过所述被摄物的红外图像;capturing an infrared image passing through the subject;

将所述红外图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述红外图像进行处理,以获取红外图像数据;以及sending the infrared image to a micro control unit MCU, and using the micro control unit MCU to process the infrared image to obtain infrared image data; and

将所述红外图像数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述红外图像数据。The infrared image data is provided to the application program through a preset interface, so that the application program calls the infrared image data.

可选的,所述处理模块,具体用于Optionally, the processing module is specifically used for

拍摄被摄物的可见光图像;Take visible light images of the subject;

将所述可见光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述可见光图像进行处理,以获取可见光图像数据;以及sending the visible light image to a micro control unit MCU, and using the micro control unit MCU to process the visible light image to obtain visible light image data; and

将所述可见光图像数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述可见光图像数据。The visible light image data is provided to the application program through a preset interface, so that the application program calls the visible light image data.

可选的,所述处理模块,具体用于Optionally, the processing module is specifically used for

向被摄物发射红外光和所述结构光;emitting infrared light and the structured light to the subject;

捕获经过所述被摄物的红外图像和所述结构光图像;capturing an infrared image passing through the subject and the structured light image;

将所述红外图像和所述结构光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述红外图像和所述结构光图像进行处理,以获取红外图像数据和所述景深数据;以及Sending the infrared image and the structured light image to a micro control unit MCU, and using the micro control unit MCU to process the infrared image and the structured light image to obtain infrared image data and the depth of field data ;as well as

将所述红外图像数据和所述景深数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述红外图像数据和所述景深数据。The infrared image data and the depth of field data are provided to the application program through a preset interface, so that the application program calls the infrared image data and the depth of field data.

可选的,所述处理模块,具体用于Optionally, the processing module is specifically used for

拍摄被摄物的可见光图像;Take visible light images of the subject;

将所述可见光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述可见光图像进行处理,以获取人脸特征数据;以及sending the visible light image to a micro control unit MCU, and using the micro control unit MCU to process the visible light image to obtain facial feature data; and

将所述人脸特征数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述人脸特征数据。The facial feature data is provided to the application program through a preset interface, so that the application program invokes the facial feature data.

可选的,所述处理模块,具体用于Optionally, the processing module is specifically used for

解调所述结构光图像中变形位置像素对应的相位信息;Demodulating the phase information corresponding to the deformed position pixel in the structured light image;

将所述相位信息转化为高度信息;converting the phase information into height information;

根据所述高度信息确定所述被摄物对应的景深数据。Depth of field data corresponding to the subject is determined according to the height information.

可选的,所述预设接口为符合预设标准的总线接口,包括MIPI总线接口、I2C同步串行总线接口、SPI总线接口。Optionally, the preset interface is a bus interface conforming to a preset standard, including a MIPI bus interface, an I2C synchronous serial bus interface, and an SPI bus interface.

本申请又一实施例提供一种终端设备,包括激光摄像头、泛光灯、可见光摄像头、镭射灯、微控制单元MCU以及处理器,其中,所述处理器,用于:Another embodiment of the present application provides a terminal device, including a laser camera, a floodlight, a visible light camera, a laser light, a micro control unit MCU, and a processor, wherein the processor is used for:

获取调用人脸识别的应用程序的属性信息;Obtain the attribute information of the application that calls face recognition;

根据所述属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行;Judging whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information;

如果所述人脸识别过程需要在所述可信执行环境TEE下执行,则控制所述应用程序进入可信执行环境TEE模式,并在所述可信执行环境TEE下串行执行所述人脸识别过程的步骤;If the face recognition process needs to be executed under the Trusted Execution Environment TEE, control the application program to enter the Trusted Execution Environment TEE mode, and serially execute the face recognition process under the Trusted Execution Environment TEE steps in the identification process;

如果所述人脸识别过程无需在所述可信执行环境TEE下执行,则控制所述应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行所述人脸识别过程的步骤。If the face recognition process does not need to be executed under the trusted execution environment TEE, control the application program to enter the normal execution environment REE mode, and execute the steps of the face recognition process in parallel under the normal execution environment REE.

本申请还一实施例提供一种非临时性计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如本申请第一方面实施例所述的人脸识别的信息处理方法。Yet another embodiment of the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the face recognition information as described in the embodiment of the first aspect of the present application is realized. Approach.

本申请实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present application may include the following beneficial effects:

通过获取调用人脸识别的应用程序的属性信息,并根据所述属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行,如果所述人脸识别过程需要在所述可信执行环境TEE下执行,则控制所述应用程序进入可信执行环境TEE模式,并在所述可信执行环境TEE下串行执行所述人脸识别过程的步骤,如果所述人脸识别过程无需在所述可信执行环境TEE下执行,则控制所述应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行所述人脸识别过程的步骤,能够保证安全性要求较高的场景下的信息安全,又能够实现安全性要求相对不高的场景下的快速响应。By acquiring the attribute information of the application program that invokes face recognition, and judging whether the face recognition process needs to be executed under the trusted execution environment TEE according to the attribute information, if the face recognition process needs to be executed under the trusted execution environment Execute under the TEE, then control the application program to enter the trusted execution environment TEE mode, and execute the steps of the face recognition process serially under the trusted execution environment TEE, if the face recognition process does not need to be in the trusted execution environment TEE If it is executed under the trusted execution environment TEE, the application program is controlled to enter the normal execution environment REE mode, and the steps of the face recognition process are executed in parallel under the normal execution environment REE, which can ensure the high security requirements in the scene. information security, and can achieve rapid response in scenarios with relatively low security requirements.

本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.

附图说明Description of drawings

本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:

图1是根据本申请一个实施例的人脸识别的信息处理方法的流程图;FIG. 1 is a flowchart of an information processing method for face recognition according to an embodiment of the present application;

图2是根据本申请一个实施例的检测人脸步骤的流程图;Fig. 2 is the flow chart of the detection human face step according to an embodiment of the present application;

图3是根据本申请一个实施例的获取人脸元素步骤的流程图;Fig. 3 is the flow chart of the step of obtaining human face element according to one embodiment of the present application;

图4是根据本申请一个实施例的人脸活体检测步骤的流程图;Fig. 4 is a flow chart of the human face detection steps according to one embodiment of the present application;

图5是根据本申请一个实施例的结构光测量的场景示意图;Fig. 5 is a schematic diagram of a scene of structured light measurement according to an embodiment of the present application;

图6是根据本申请一个实施例的人脸识别步骤的流程图;FIG. 6 is a flow chart of face recognition steps according to one embodiment of the present application;

图7是根据本申请一个实施例的人脸识别的信息处理装置的结构框图;Fig. 7 is a structural block diagram of an information processing device for face recognition according to an embodiment of the present application;

图8是根据本申请一个实施例的终端设备的结构框图;Fig. 8 is a structural block diagram of a terminal device according to an embodiment of the present application;

图9是根据本申请一个实施例的终端设备的结构示意图。Fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application.

具体实施方式Detailed ways

下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

下面参考附图描述本申请实施例的人脸识别的信息处理方法、装置及终端设备。The information processing method, device and terminal equipment for face recognition according to the embodiments of the present application will be described below with reference to the accompanying drawings.

图1是根据本申请一个实施例的人脸识别的信息处理方法的流程图。Fig. 1 is a flowchart of an information processing method for face recognition according to an embodiment of the present application.

如图1所示,该人脸识别的信息处理方法包括:As shown in Figure 1, the information processing method for face recognition includes:

S101,获取调用人脸识别的应用程序的属性信息。S101. Acquire attribute information of an application that invokes face recognition.

目前,人脸识别已经广泛应用到各个场景中,如身份认证场景、移动支付场景、模拟动态表情场景、电视会议场景等等。上述场景,均是通过调用摄像头等硬件设备,来对人脸进行识别,从而实现响应的功能。其中,有的场景对操作的安全性要求较高,例如身份认证场景、移动支付场景等。有的场景对操作的安全性要求相对不高,如模拟动态表情场景、电视会议场景等。为此,本申请提出一种人脸识别的信息处理方法,既能够保证安全性要求较高的场景下的信息安全,又能够实现安全性要求相对不高的场景下的快速响应。At present, face recognition has been widely used in various scenarios, such as identity authentication scenarios, mobile payment scenarios, simulated dynamic expression scenarios, video conference scenarios, and so on. In the above scenarios, the face recognition is realized by calling hardware devices such as cameras, so as to realize the response function. Among them, some scenarios have higher requirements for operational security, such as identity authentication scenarios and mobile payment scenarios. Some scenarios have relatively low security requirements for operations, such as simulating dynamic expression scenes, video conference scenes, etc. For this reason, the present application proposes an information processing method for face recognition, which can not only ensure information security in scenarios with high security requirements, but also realize rapid response in scenarios with relatively low security requirements.

在本申请的一个实施例中,首先可获取调用人脸识别的应用程序的属性信息。其中,应用程序的属性信息可包括应用程序的安全级别。例如:银行类应用程序、支付类应用程序、身份验证类应用程序的安全级别为高;普通的摄像类应用程序等的安全级别为低。In an embodiment of the present application, firstly, the attribute information of the application calling the face recognition can be obtained. Wherein, the attribute information of the application program may include the security level of the application program. For example: the security level of banking applications, payment applications, and identity verification applications is high; the security level of ordinary camera applications is low.

S102,根据属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行。S102. Determine whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information.

在本申请的一个实施例中,如果应用程序的安全级别为高,则人脸识别过程需要在TEE(可信执行环境,Trust Execution Environment)下执行;如果应用程序的安全级别为低,则人脸识别过程则无需在TEE下执行,只需在REE(普通执行环境,Rich ExecutionEnvironment)下执行即可。例如用户在使用微信、支付宝等应用程序进行支付时,需要开启摄像头对人脸进行识别,与预存的人脸进行比对,如果比对结果一致,则验证成功,进行支付操作。由于涉及到个人付款的信息等,可能会造成用户的个人财产损失,因此,需要在TEE下执行,来保证安全性。而模拟动态表情场景下,开启摄像头对人脸进行识别,只是对人脸的表情进行跟踪捕捉,然后模拟出各种有趣的动态表情,增强趣味性,因此只需在REE下执行即可。In one embodiment of the present application, if the security level of the application program is high, the face recognition process needs to be performed under TEE (Trusted Execution Environment, Trust Execution Environment); The face recognition process does not need to be executed under TEE, it only needs to be executed under REE (ordinary execution environment, Rich ExecutionEnvironment). For example, when a user uses WeChat, Alipay and other applications to pay, he needs to turn on the camera to recognize the face and compare it with the pre-stored face. If the comparison results are consistent, the verification is successful and the payment operation is performed. Due to the information related to personal payment, etc., it may cause the loss of the user's personal property. Therefore, it needs to be executed under TEE to ensure security. In the simulated dynamic expression scene, the camera is turned on to recognize the face, just to track and capture the facial expression, and then simulate various interesting dynamic expressions to enhance the fun, so it only needs to be executed under REE.

S103,如果人脸识别过程需要在可信执行环境TEE下执行,则控制应用程序进入可信执行环境TEE模式,并在可信执行环境TEE下串行执行人脸识别过程的步骤。S103, if the face recognition process needs to be executed under the TEE, control the application program to enter the TEE mode, and execute the steps of the face recognition process serially under the TEE.

其中,人脸识别过程可包括检测人脸步骤、获取人脸元素步骤、人脸活体检测步骤以及人脸识别步骤。由于TEE的安全特性,上述步骤在TEE下,是依次串行执行的。而在REE下,对安全性的要求不高,是可以并行执行的。其中,检测人脸步骤指的是通过调用泛光灯发射红外光,由激光摄像头接收红外图像,利用红外图像判断是否为人脸的过程。获取人脸元素步骤是利用可见光摄像头对人脸进行拍摄,获取诸如人脸亮度、人脸拍摄角度等与图像质量相关的特征的过程。人脸活体检测步骤则是将红外光和结构光结合,通过泛光灯发射红外光,镭射灯发射结构光,通过激光摄像头接收红外图像和结构光图像,然后对上述图像进行分析,获取如人脸皮肤纹理特征、建立人脸三维模型、多帧人脸动态特征等,来进行活体检测。人脸识别步骤则是利用可见光摄像头对人脸进行拍摄,获取诸如眼睛大小、鼻子在人脸的位置信息、眉毛长短等特征,来进行人脸识别。Wherein, the face recognition process may include a face detection step, a face element acquisition step, a live face detection step, and a face recognition step. Due to the security feature of the TEE, the above steps are executed serially under the TEE. Under REE, the requirements for security are not high, and it can be executed in parallel. Among them, the step of detecting a human face refers to the process of emitting infrared light by invoking a floodlight, receiving an infrared image by a laser camera, and using the infrared image to determine whether it is a human face. The step of obtaining face elements is a process of using a visible light camera to shoot a face, and obtaining features related to image quality such as face brightness and face shooting angle. The face detection step is to combine infrared light and structured light, emit infrared light through floodlights, laser light emit structured light, receive infrared images and structured light images through laser cameras, and then analyze the above images to obtain human-like images. Face skin texture features, building a 3D face model, multi-frame face dynamic features, etc., to perform liveness detection. The face recognition step is to use the visible light camera to shoot the face to obtain features such as the size of the eyes, the position of the nose on the face, the length of the eyebrows, etc., for face recognition.

在本实施例中,上述步骤在串行执行时,并不限定其执行顺序。也可以根据应用程序的实际应用情况,任意对上述步骤进行组合,实现相应的功能。如人脸支付场景,只需人脸活体检测步骤结合人脸识别步骤,而无需人脸元素步骤。应当理解的是,上述情景仅为示例,并不作为对技术方案的限定。In this embodiment, when the above steps are executed serially, the execution sequence is not limited. The above steps can also be combined arbitrarily according to the actual application situation of the application program to realize corresponding functions. For example, in the face payment scenario, only the face liveness detection step is combined with the face recognition step, and the face element step is not required. It should be understood that the above scenario is only an example, and is not intended as a limitation on the technical solution.

S104,如果人脸识别过程无需在可信执行环境TEE下执行,则控制应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行人脸识别过程的步骤。S104, if the face recognition process does not need to be executed under the trusted execution environment TEE, control the application program to enter the normal execution environment REE mode, and execute the steps of the face recognition process in parallel under the normal execution environment REE.

在本申请的一个实施例中,在REE下,人脸识别过程对安全性的要求不高,因此,可以并行执行人脸识别过程的步骤,以提高人脸识别过程的执行速度。In one embodiment of the present application, under the REE, the face recognition process does not have high security requirements, therefore, the steps of the face recognition process can be executed in parallel to increase the execution speed of the face recognition process.

下面详细解释人脸识别过程中的检测人脸步骤、获取人脸元素步骤、人脸活体检测步骤以及人脸识别步骤。The steps of face detection, face element acquisition, live face detection and face recognition in the face recognition process are explained in detail below.

如图2所示,检测人脸步骤,包括:As shown in Figure 2, the face detection steps include:

S201,向被摄物发射红外光。S201, emit infrared light to the subject.

具体地,可通过泛光灯发射红外光。In particular, infrared light can be emitted by floodlights.

S202,捕获经过被摄物的红外图像。S202. Capture an infrared image passing through the subject.

由激光摄像头捕获经过被摄物的红外图像。The infrared image of the passing object is captured by the laser camera.

S203,将红外图像发送至微控制单元MCU,并利用微控制单元MCU对红外图像进行处理,以获取红外图像数据。S203. Send the infrared image to the micro control unit MCU, and use the micro control unit MCU to process the infrared image to obtain infrared image data.

由于黑客行为,大多数都是基于应用程序侧的入侵,因此将红外图像发送至MCU,由硬件的MCU对红外图像进行处理,防止原始的数据在应用程序侧被截取,能够有效地提高数据的安全性。Due to hacking, most of them are based on the intrusion of the application program side, so the infrared image is sent to the MCU, and the infrared image is processed by the hardware MCU to prevent the original data from being intercepted on the application program side, which can effectively improve the security of the data. safety.

S204,将红外图像数据通过预设接口提供给应用程序,以使应用程序调用红外图像数据。S204. Provide the infrared image data to the application program through the preset interface, so that the application program calls the infrared image data.

本实施例中,可利用应用程序调用红外图像数据来实现人脸的检测。In this embodiment, an application program can be used to invoke infrared image data to realize face detection.

其中,预设接口为符合预设标准的总线接口,包括MIPI(移动产业处理器接口,Mobile Industry Processor Interface)总线接口、I2C同步串行总线接口、SPI总线接口。Wherein, the preset interface is a bus interface conforming to a preset standard, including a MIPI (Mobile Industry Processor Interface) bus interface, an I2C synchronous serial bus interface, and an SPI bus interface.

如图3所示,获取人脸元素步骤,包括:As shown in Figure 3, the steps of obtaining face elements include:

S301,拍摄被摄物的可见光图像。S301. Shoot a visible light image of a subject.

具体地,可通过可见光摄像头拍摄被摄物的可见光图像。Specifically, a visible light image of the subject may be captured by a visible light camera.

S302,将可见光图像发送至微控制单元MCU,并利用微控制单元MCU对可见光图像进行处理,以获取可见光图像数据。S302. Send the visible light image to the micro control unit MCU, and use the micro control unit MCU to process the visible light image to obtain visible light image data.

由于黑客行为,大多数都是基于应用程序侧的入侵,因此将可见光图像发送至MCU,由硬件的MCU对可见光图像进行处理,防止原始的数据在应用程序侧被截取,能够有效地提高数据的安全性。Due to hacking, most of them are based on the intrusion of the application program side, so the visible light image is sent to the MCU, and the visible light image is processed by the hardware MCU to prevent the original data from being intercepted on the application program side, which can effectively improve the security of the data. safety.

S303,将可见光图像数据通过预设接口提供给应用程序,以使应用程序调用可见光图像数据。S303. Provide the visible light image data to the application program through a preset interface, so that the application program calls the visible light image data.

本实施例中,可利用应用程序调用可见光图像数据来提取人脸元素,如获取人脸亮度、人脸拍摄角度等与图像质量相关的特征,以此作为下一步操作的数据基础。In this embodiment, the application program can be used to call visible light image data to extract face elements, such as obtaining features related to image quality such as face brightness and face shooting angle, which can be used as the data basis for the next step.

如图4所示,人脸活体检测步骤,包括:As shown in Figure 4, the face detection steps include:

S401,向被摄物发射红外光和结构光。S401. Emit infrared light and structured light to a subject.

在本申请的一个实施例中,可利用MCU中的PWM调制生成结构光,通过镭射灯发射结构光,并通过泛光灯(红外光发射器)向被摄物发射红外光。In one embodiment of the present application, the structured light can be generated by PWM modulation in the MCU, the structured light can be emitted through the laser light, and the infrared light can be emitted to the subject through the floodlight (infrared light emitter).

S402,捕获经过被摄物的红外图像和结构光图像。S402. Capture an infrared image and a structured light image passing through the subject.

在本申请的一个实施例中,可通过激光摄像头(红外光接收器)捕获经过被摄物的红外图像和结构光图像。In one embodiment of the present application, a laser camera (infrared light receiver) can be used to capture infrared images and structured light images passing through the subject.

S403,将红外图像和结构光图像发送至微控制单元MCU,并利用微控制单元MCU对红外图像和结构光图像进行处理,以获取红外图像数据和景深数据。S403. Send the infrared image and the structured light image to the micro control unit MCU, and use the micro control unit MCU to process the infrared image and the structured light image to obtain infrared image data and depth of field data.

具体地,可利用MCU中的深度引擎对红外图像和结构光图像进行处理,以获取红外图像数据和景深数据。Specifically, the infrared image and the structured light image can be processed by using the depth engine in the MCU to obtain infrared image data and depth of field data.

S404,将红外图像数据和景深数据通过预设接口提供给应用程序,以使应用程序调用红外图像数据和景深数据进行安全验证。S404. Provide the infrared image data and the depth of field data to the application program through a preset interface, so that the application program calls the infrared image data and the depth of field data for security verification.

在本申请的一个实施例中,可利用MCU调制生成结构光,通过镭射灯(结构光投影设备)向被摄物发射结构光。假设当前场景为身份验证场景,则被摄物可以是用户的人脸。结构光在照射到被摄物后,由于被摄物的形状特性,结构光会发生形变,通过采集上述结构光信息,可以得到一个具有被摄物轮廓和深度的结构光图像。In one embodiment of the present application, the MCU can be used to modulate and generate structured light, and the structured light can be emitted to the subject through a laser lamp (structured light projection device). Assuming that the current scene is an authentication scene, the subject may be the user's face. After the structured light irradiates the subject, due to the shape characteristics of the subject, the structured light will be deformed. By collecting the above structured light information, a structured light image with the outline and depth of the subject can be obtained.

其中,结构光的类型可包括,激光条纹、格雷码、正弦条纹、或者,非均匀散斑等。Wherein, the type of the structured light may include laser stripes, gray codes, sinusoidal stripes, or non-uniform speckle, etc.

下面以一种应用广泛的条纹投影技术为例来阐述其具体原理,其中,条形投影技术属于广义上的面结构光。The following uses a widely used fringe projection technology as an example to illustrate its specific principles. Among them, the fringe projection technology belongs to surface structured light in a broad sense.

在使用面结构光投影的时候,如图5所示,通过MCU产生正弦条纹,将该正弦条纹通过镭射灯(结构光投影设备)投影至被摄物,利用激光摄像头拍摄条纹受物体调制的弯曲程度,解调该弯曲条纹得到相位,再将相位转化为全场的高度。When using surface structured light projection, as shown in Figure 5, the MCU generates sinusoidal fringes, and the sinusoidal fringes are projected to the subject through a laser lamp (structured light projection device), and the laser camera is used to capture the fringes modulated by the object. degree, demodulate the curved fringe to obtain the phase, and then convert the phase into the height of the whole field.

应当理解的是,在实际应用中,根据具体应用场景的不同,本申请实施例中所采用的结构光除了上述条纹之外,还可以是其他任意图案。It should be understood that, in practical applications, according to different specific application scenarios, the structured light used in the embodiment of the present application may be in any other pattern besides the above-mentioned stripes.

在此之后,可将结构光图像发送至微控制单元MCU,并利用微控制单元MCU计算获得被摄物对应的景深数据。为了进一步提高安全性,可将结构光图像发送至MCU,在硬件的MCU中对结构光图像进行处理,相比于直接发送给应用程序处理,数据已经在硬件中运算,黑客无法获取原始的数据,因此更加安全。具体地,可利用MCU解调结构光图像中变形位置像素对应的相位信息,然后将相位信息转化为高度信息,最后根据高度信息确定被摄物对应的景深数据。最后,将景深数据通过预设接口提供至应用程序,以使应用程序调用景深数据。例如:基于人脸的结构光图像,计算得到人脸的轮廓、高度等数据信息。上述数据信息已经在MCU中计算,应用程序只需调用上述数据信息,与预存的数据进行特征比对,即可实现身份验证。如果验证通过,用户就可以获取该应用程序的权限,对应用程序进行更进一步地操作。例如,利用结构光建立人脸三维模型,获取人脸的三维特征,结合红外图像数据或多帧人脸动态特征等,进行活体检测,检测当前拍摄的人脸是活体,而非平面的照片。After that, the structured light image can be sent to the micro control unit MCU, and the micro control unit MCU is used to calculate and obtain the depth of field data corresponding to the subject. In order to further improve security, the structured light image can be sent to the MCU, and the structured light image can be processed in the MCU of the hardware. Compared with sending it directly to the application program for processing, the data has already been calculated in the hardware, and hackers cannot obtain the original data. , and therefore more secure. Specifically, the MCU can be used to demodulate the phase information corresponding to the deformed position pixels in the structured light image, then convert the phase information into height information, and finally determine the depth of field data corresponding to the subject according to the height information. Finally, the depth of field data is provided to the application program through the preset interface, so that the application program calls the depth of field data. For example: Based on the structured light image of the face, the data information such as the contour and height of the face is calculated. The above data information has been calculated in the MCU, and the application only needs to call the above data information and perform feature comparison with the pre-stored data to realize identity verification. If the verification is passed, the user can obtain the permission of the application and perform further operations on the application. For example, use structured light to build a 3D model of the face, obtain the 3D features of the face, combine infrared image data or multi-frame face dynamic features, etc., to perform liveness detection, and detect that the currently captured face is a living body rather than a flat photo.

如图6所示,人脸识别步骤,包括:As shown in Figure 6, the face recognition steps include:

S601,拍摄被摄物的可见光图像。S601. Shoot a visible light image of a subject.

S602,将可见光图像发送至微控制单元MCU,并利用微控制单元MCU对可见光图像进行处理,以获取人脸特征数据。S602. Send the visible light image to the micro control unit MCU, and use the micro control unit MCU to process the visible light image to obtain facial feature data.

由于黑客行为,大多数都是基于应用程序侧的入侵,因此将可见光图像发送至MCU,由硬件的MCU对可见光图像进行处理,防止原始的数据在应用程序侧被截取,能够有效地提高数据的安全性。Due to hacking, most of them are based on the intrusion of the application program side, so the visible light image is sent to the MCU, and the visible light image is processed by the hardware MCU to prevent the original data from being intercepted on the application program side, which can effectively improve the security of the data. safety.

其中,人脸特征数据可包括眼睛大小、鼻子在人脸的位置信息、眉毛长短等。Among them, the face feature data may include the size of the eyes, the position information of the nose on the face, the length of the eyebrows, etc.

S603,将人脸特征数据通过预设接口提供给应用程序,以使应用程序调用人脸特征数据。S603. Provide the face feature data to the application program through a preset interface, so that the application program calls the face feature data.

本实施例中,可利用应用程序调用可见光图像数据来进行人脸识别。In this embodiment, an application program can be used to call visible light image data for face recognition.

本申请实施例的人脸识别的信息处理方法,通过获取调用人脸识别的应用程序的属性信息,并根据属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行,如果人脸识别过程需要在可信执行环境TEE下执行,则控制应用程序进入可信执行环境TEE模式,并在可信执行环境TEE下串行执行人脸识别过程的步骤,如果人脸识别过程无需在可信执行环境TEE下执行,则控制应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行人脸识别过程的步骤,能够保证安全性要求较高的场景下的信息安全,又能够实现安全性要求相对不高的场景下的快速响应。The face recognition information processing method of the embodiment of the present application obtains the attribute information of the application program that calls the face recognition, and judges whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information. The process needs to be executed under the trusted execution environment TEE, then the control application enters the trusted execution environment TEE mode, and serially executes the steps of the face recognition process under the trusted execution environment TEE, if the face recognition process does not need to be in the trusted execution environment Execute under the execution environment TEE, control the application program to enter the normal execution environment REE mode, and execute the steps of the face recognition process in parallel under the normal execution environment REE, which can ensure information security in scenarios with high security requirements, and can realize Quick response in scenarios with relatively low security requirements.

为了实现上述实施例,本申请还提出了一种人脸识别的信息处理装置,图7是根据本申请一个实施例的人脸识别的信息处理装置的结构框图,如图7所示,该装置包括获取模块710、判断模块720和处理模块730。In order to realize the above embodiment, the present application also proposes an information processing device for face recognition. FIG. 7 is a structural block diagram of an information processing device for face recognition according to an embodiment of the present application. As shown in FIG. 7 , the device It includes an acquisition module 710 , a judgment module 720 and a processing module 730 .

其中,获取模块710,用于获取调用人脸识别的应用程序的属性信息。Wherein, the acquiring module 710 is configured to acquire the attribute information of the application calling the face recognition.

判断模块720,用于根据属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行。The judging module 720 is configured to judge whether the face recognition process needs to be executed under the trusted execution environment TEE according to the attribute information.

处理模块730,用于如果人脸识别过程需要在可信执行环境TEE下执行,则控制应用程序进入可信执行环境TEE模式,并在可信执行环境TEE下串行执行人脸识别过程的步骤,如果人脸识别过程无需在可信执行环境TEE下执行,则控制应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行人脸识别过程的步骤。The processing module 730 is used to control the application program to enter the trusted execution environment TEE mode if the face recognition process needs to be executed under the trusted execution environment TEE, and execute the steps of the face recognition process serially under the trusted execution environment TEE , if the face recognition process does not need to be executed under the trusted execution environment TEE, the control application program enters the common execution environment REE mode, and executes the steps of the face recognition process in parallel under the common execution environment REE.

需要说明的是,前述对人脸识别的信息处理方法的解释说明,也适用于本申请实施例的人脸识别的信息处理装置,本申请实施例中未公布的细节,在此不再赘述。It should be noted that the foregoing explanations on the information processing method for face recognition are also applicable to the information processing device for face recognition in the embodiment of the present application, and the details not disclosed in the embodiment of the present application will not be repeated here.

本申请实施例的人脸识别的信息处理装置,通过获取调用人脸识别的应用程序的属性信息,并根据属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行,如果人脸识别过程需要在可信执行环境TEE下执行,则控制应用程序进入可信执行环境TEE模式,并在可信执行环境TEE下串行执行人脸识别过程的步骤,如果人脸识别过程无需在可信执行环境TEE下执行,则控制应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行人脸识别过程的步骤,能够保证安全性要求较高的场景下的信息安全,又能够实现安全性要求相对不高的场景下的快速响应。The face recognition information processing device of the embodiment of the present application obtains the attribute information of the application program that calls the face recognition, and judges whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information. The process needs to be executed under the trusted execution environment TEE, then the control application enters the trusted execution environment TEE mode, and serially executes the steps of the face recognition process under the trusted execution environment TEE, if the face recognition process does not need to be in the trusted execution environment Execute under the execution environment TEE, control the application program to enter the normal execution environment REE mode, and execute the steps of the face recognition process in parallel under the normal execution environment REE, which can ensure information security in scenarios with high security requirements, and can realize Quick response in scenarios with relatively low security requirements.

为了实现上述实施例,本申请还提出了一种终端设备。In order to implement the foregoing embodiments, the present application also proposes a terminal device.

如图8所示,终端设备800包括激光摄像头810、泛光灯820、可见光摄像头830、镭射灯840、微控制单元MCU850以及处理器860。激光摄像头810、泛光灯820、可见光摄像头830、镭射灯840分别与MCU850相连。MCU850与处理器860相连。As shown in FIG. 8 , the terminal device 800 includes a laser camera 810 , a floodlight 820 , a visible light camera 830 , a laser light 840 , a micro control unit MCU 850 and a processor 860 . The laser camera 810, the floodlight 820, the visible light camera 830, and the laser light 840 are respectively connected with the MCU850. The MCU 850 is connected with the processor 860 .

处理器860,具体用于执行以下步骤:The processor 860 is specifically configured to perform the following steps:

S101’,获取调用人脸识别的应用程序的属性信息。S101', acquire the attribute information of the application that calls the face recognition.

在本申请的一个实施例中,首先可获取调用人脸识别的应用程序的属性信息。其中,应用程序的属性信息可包括应用程序的安全级别。例如:银行类应用程序、支付类应用程序、身份验证类应用程序的安全级别为高;普通的摄像类应用程序等的安全级别为低。In an embodiment of the present application, firstly, the attribute information of the application calling the face recognition can be obtained. Wherein, the attribute information of the application program may include the security level of the application program. For example: the security level of banking applications, payment applications, and identity verification applications is high; the security level of ordinary camera applications is low.

S102’,根据属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行。S102', judge whether the face recognition process needs to be executed under the trusted execution environment TEE according to the attribute information.

在本申请的一个实施例中,如果应用程序的安全级别为高,则人脸识别过程需要在TEE(可信执行环境,Trust Execution Environment)下执行;如果应用程序的安全级别为低,则人脸识别过程则无需在TEE下执行,只需在REE(普通执行环境,Rich ExecutionEnvironment)下执行即可。例如用户在使用微信、支付宝等应用程序进行支付时,需要开启摄像头对人脸进行识别,与预存的人脸进行比对,如果比对结果一致,则验证成功,进行支付操作。由于涉及到个人付款的信息等,可能会造成用户的个人财产损失,因此,需要在TEE下执行,来保证安全性。而模拟动态表情场景下,开启摄像头对人脸进行识别,只是对人脸的表情进行跟踪捕捉,然后模拟出各种有趣的动态表情,增强趣味性,因此只需在REE下执行即可。In one embodiment of the present application, if the security level of the application program is high, the face recognition process needs to be performed under TEE (Trusted Execution Environment, Trust Execution Environment); The face recognition process does not need to be executed under TEE, it only needs to be executed under REE (ordinary execution environment, Rich ExecutionEnvironment). For example, when a user uses WeChat, Alipay and other applications to pay, he needs to turn on the camera to recognize the face and compare it with the pre-stored face. If the comparison results are consistent, the verification is successful and the payment operation is performed. Due to the information related to personal payment, etc., it may cause the loss of the user's personal property. Therefore, it needs to be executed under TEE to ensure security. In the simulated dynamic expression scene, the camera is turned on to recognize the face, just to track and capture the facial expression, and then simulate various interesting dynamic expressions to enhance the fun, so it only needs to be executed under REE.

S103’,如果人脸识别过程需要在可信执行环境TEE下执行,则控制应用程序进入可信执行环境TEE模式,并在可信执行环境TEE下串行执行人脸识别过程的步骤。S103', if the face recognition process needs to be executed under the trusted execution environment TEE, the control application program enters the trusted execution environment TEE mode, and serially executes the steps of the face recognition process under the trusted execution environment TEE.

其中,人脸识别过程可包括检测人脸步骤、获取人脸元素步骤、人脸活体检测步骤以及人脸识别步骤。由于TEE的安全特性,上述步骤在TEE下,是依次串行执行的。而在REE下,对安全性的要求不高,是可以并行执行的。其中,检测人脸步骤指的是通过调用泛光灯发射红外光,由激光摄像头接收红外图像,利用红外图像判断是否为人脸的过程。获取人脸元素步骤是利用可见光摄像头对人脸进行拍摄,获取诸如人脸亮度、人脸拍摄角度等与图像质量相关的特征的过程。人脸活体检测步骤则是将红外光和结构光结合,通过泛光灯发射红外光,镭射灯发射结构光,通过激光摄像头接收红外图像和结构光图像,然后对上述图像进行分析,获取如人脸皮肤纹理特征、建立人脸三维模型、多帧人脸动态特征等,来进行活体检测。人脸识别步骤则是利用可见光摄像头对人脸进行拍摄,获取诸如眼睛大小、鼻子在人脸的位置信息、眉毛长短等特征,来进行人脸识别。Wherein, the face recognition process may include a face detection step, a face element acquisition step, a live face detection step, and a face recognition step. Due to the security feature of the TEE, the above steps are executed serially under the TEE. Under REE, the requirements for security are not high, and it can be executed in parallel. Among them, the step of detecting a human face refers to the process of emitting infrared light by invoking a floodlight, receiving an infrared image by a laser camera, and using the infrared image to determine whether it is a human face. The step of obtaining face elements is a process of using a visible light camera to shoot a face, and obtaining features related to image quality such as face brightness and face shooting angle. The face detection step is to combine infrared light and structured light, emit infrared light through floodlights, laser light emit structured light, receive infrared images and structured light images through laser cameras, and then analyze the above images to obtain human-like images. Face skin texture features, building a 3D face model, multi-frame face dynamic features, etc., to perform liveness detection. The face recognition step is to use the visible light camera to shoot the face to obtain features such as the size of the eyes, the position of the nose on the face, the length of the eyebrows, etc., for face recognition.

在本实施例中,上述步骤在串行执行时,并不限定其执行顺序。也可以根据应用程序的实际应用情况,任意对上述步骤进行组合,实现相应的功能。如人脸支付场景,只需人脸活体检测步骤结合人脸识别步骤,而无需人脸元素步骤。应当理解的是,上述情景仅为示例,并不作为对技术方案的限定。In this embodiment, when the above steps are executed serially, the execution sequence is not limited. The above steps can also be combined arbitrarily according to the actual application situation of the application program to realize corresponding functions. For example, in the face payment scenario, only the face liveness detection step is combined with the face recognition step, and the face element step is not required. It should be understood that the above scenario is only an example, and is not intended as a limitation on the technical solution.

S104’,如果人脸识别过程无需在可信执行环境TEE下执行,则控制应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行人脸识别过程的步骤。S104', if the face recognition process does not need to be executed under the trusted execution environment TEE, control the application program to enter the common execution environment REE mode, and execute the steps of the face recognition process in parallel under the common execution environment REE.

在本申请的一个实施例中,在REE下,人脸识别过程对安全性的要求不高,因此,可以并行执行人脸识别过程的步骤。In one embodiment of the present application, under the REE, the face recognition process does not have high security requirements, so the steps of the face recognition process can be executed in parallel.

本申请实施例的终端设备,通过获取调用人脸识别的应用程序的属性信息,并根据属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行,如果人脸识别过程需要在可信执行环境TEE下执行,则控制应用程序进入可信执行环境TEE模式,并在可信执行环境TEE下串行执行人脸识别过程的步骤,如果人脸识别过程无需在可信执行环境TEE下执行,则控制应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行人脸识别过程的步骤,能够保证安全性要求较高的场景下的信息安全,又能够实现安全性要求相对不高的场景下的快速响应。The terminal device of the embodiment of the present application obtains the attribute information of the application program that calls the face recognition, and judges whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information. Execution under the execution environment TEE, the control application enters the trusted execution environment TEE mode, and executes the steps of the face recognition process serially under the trusted execution environment TEE, if the face recognition process does not need to be executed under the trusted execution environment TEE , then control the application program to enter the normal execution environment REE mode, and execute the steps of the face recognition process in parallel under the common execution environment REE, which can ensure the information security in the scene with high security requirements, and can realize the relatively low security requirements. Fast response in high scene.

如图9所示,本申请实施方式的终端设备900包括一个或多个处理器910、存储器920和一个或多个程序901。其中一个或多个程序901被存储在存储器920中,并且被配置成由一个或多个处理器910执行。程序901包括用于执行上述任意一项实施方式的人脸识别的信息处理方法的指令。As shown in FIG. 9 , a terminal device 900 according to an embodiment of the present application includes one or more processors 910 , a memory 920 and one or more programs 901 . One or more programs 901 are stored in memory 920 and configured to be executed by one or more processors 910 . The program 901 includes instructions for executing the information processing method for face recognition in any one of the above-mentioned embodiments.

例如,程序901包括用于执行以下步骤的人脸识别的信息处理方法的指令:For example, program 901 includes instructions for performing the following steps of an information processing method for face recognition:

S101’,获取调用人脸识别的应用程序的属性信息。S101', acquire the attribute information of the application that calls the face recognition.

S102’,根据属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行。S102', judge whether the face recognition process needs to be executed under the trusted execution environment TEE according to the attribute information.

S103’,如果人脸识别过程需要在可信执行环境TEE下执行,则控制应用程序进入可信执行环境TEE模式,并在可信执行环境TEE下串行执行人脸识别过程的步骤。S103', if the face recognition process needs to be executed under the trusted execution environment TEE, the control application program enters the trusted execution environment TEE mode, and serially executes the steps of the face recognition process under the trusted execution environment TEE.

S104’,如果人脸识别过程无需在可信执行环境TEE下执行,则控制应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行人脸识别过程的步骤。S104', if the face recognition process does not need to be executed under the trusted execution environment TEE, control the application program to enter the common execution environment REE mode, and execute the steps of the face recognition process in parallel under the common execution environment REE.

为实现上述实施例,本申请还提出一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现第一方面实施例的人脸识别的信息处理方法。In order to realize the above-mentioned embodiments, the present application also proposes a non-transitory computer-readable storage medium on which a computer program is stored, which is characterized in that, when the program is executed by a processor, the face recognition of the embodiment of the first aspect is realized. information processing methods.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.

在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as it may be possible, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable means if necessary. Processing to obtain programs electronically and store them in computer memory.

应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed , including one or a combination of the steps of the method embodiment.

此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

Claims (20)

1.一种人脸识别的信息处理方法,其特征在于,包括以下步骤:1. An information processing method for face recognition, comprising the following steps: 获取调用人脸识别的应用程序的属性信息;Obtain the attribute information of the application that calls face recognition; 根据所述属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行;Judging whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information; 如果所述人脸识别过程需要在所述可信执行环境TEE下执行,则控制所述应用程序进入可信执行环境TEE模式,并在所述可信执行环境TEE下串行执行所述人脸识别过程的步骤;If the face recognition process needs to be executed under the Trusted Execution Environment TEE, control the application program to enter the Trusted Execution Environment TEE mode, and serially execute the face recognition process under the Trusted Execution Environment TEE steps in the identification process; 如果所述人脸识别过程无需在所述可信执行环境TEE下执行,则控制所述应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行所述人脸识别过程的步骤。If the face recognition process does not need to be executed under the trusted execution environment TEE, control the application program to enter the normal execution environment REE mode, and execute the steps of the face recognition process in parallel under the normal execution environment REE. 2.如权利要求1所述的方法,其特征在于,所述应用程序的属性信息包括所述应用程序的安全级别。2. The method according to claim 1, wherein the attribute information of the application program includes a security level of the application program. 3.如权利要求1所述的方法,其特征在于,所述人脸识别过程包括检测人脸步骤、获取人脸元素步骤、人脸活体检测步骤以及人脸识别步骤。3. The method according to claim 1, wherein the face recognition process comprises a face detection step, a face element acquisition step, a live face detection step and a face recognition step. 4.如权利要求3所述的方法,其特征在于,所述检测人脸步骤,包括:4. method as claimed in claim 3, is characterized in that, described detecting people's face step, comprises: 向被摄物发射红外光;emit infrared light to the subject; 捕获经过所述被摄物的红外图像;capturing an infrared image passing through the subject; 将所述红外图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述红外图像进行处理,以获取红外图像数据;以及sending the infrared image to a micro control unit MCU, and using the micro control unit MCU to process the infrared image to obtain infrared image data; and 将所述红外图像数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述红外图像数据。The infrared image data is provided to the application program through a preset interface, so that the application program calls the infrared image data. 5.如权利要求3所述的方法,其特征在于,所述获取人脸元素步骤,包括:5. method as claimed in claim 3, is characterized in that, described obtaining people's face element step, comprises: 拍摄被摄物的可见光图像;Take visible light images of the subject; 将所述可见光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述可见光图像进行处理,以获取可见光图像数据;以及sending the visible light image to a micro control unit MCU, and using the micro control unit MCU to process the visible light image to obtain visible light image data; and 将所述可见光图像数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述可见光图像数据。The visible light image data is provided to the application program through a preset interface, so that the application program calls the visible light image data. 6.如权利要求3所述的方法,其特征在于,所述人脸活体检测步骤,包括:6. method as claimed in claim 3, is characterized in that, described human face detection step, comprises: 向被摄物发射红外光和所述结构光;emitting infrared light and the structured light to the subject; 捕获经过所述被摄物的红外图像和所述结构光图像;capturing an infrared image passing through the subject and the structured light image; 将所述红外图像和所述结构光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述红外图像和所述结构光图像进行处理,以获取红外图像数据和所述景深数据;以及Sending the infrared image and the structured light image to a micro control unit MCU, and using the micro control unit MCU to process the infrared image and the structured light image to obtain infrared image data and the depth of field data ;as well as 将所述红外图像数据和所述景深数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述红外图像数据和所述景深数据。The infrared image data and the depth of field data are provided to the application program through a preset interface, so that the application program calls the infrared image data and the depth of field data. 7.如权利要求3所述的方法,其特征在于,所述人脸识别步骤,包括:7. The method according to claim 3, wherein the face recognition step comprises: 拍摄被摄物的可见光图像;Take visible light images of the subject; 将所述可见光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述可见光图像进行处理,以获取人脸特征数据;以及sending the visible light image to a micro control unit MCU, and using the micro control unit MCU to process the visible light image to obtain facial feature data; and 将所述人脸特征数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述人脸特征数据。The facial feature data is provided to the application program through a preset interface, so that the application program invokes the facial feature data. 8.如权利要求6所述的方法,其特征在于,利用所述微控制单元MCU计算获得所述被摄物对应的景深数据,包括:8. The method according to claim 6, characterized in that, using the MCU to calculate and obtain the depth-of-field data corresponding to the object comprises: 解调所述结构光图像中变形位置像素对应的相位信息;Demodulating the phase information corresponding to the deformed position pixel in the structured light image; 将所述相位信息转化为高度信息;converting the phase information into height information; 根据所述高度信息确定所述被摄物对应的景深数据。Depth of field data corresponding to the subject is determined according to the height information. 9.如权利要求4至7任一项所述的方法,其特征在于,所述预设接口为符合预设标准的总线接口,包括MIPI总线接口、I2C同步串行总线接口、SPI总线接口。9. The method according to any one of claims 4 to 7, wherein the preset interface is a bus interface conforming to a preset standard, including a MIPI bus interface, an I2C synchronous serial bus interface, and an SPI bus interface. 10.一种人脸识别的信息处理装置,其特征在于,包括:10. An information processing device for face recognition, comprising: 获取模块,用于获取调用人脸识别的应用程序的属性信息;The acquisition module is used to acquire the attribute information of the application program that calls the face recognition; 判断模块,用于根据所述属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行;A judging module, configured to judge whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information; 处理模块,用于如果所述人脸识别过程需要在所述可信执行环境TEE下执行,则控制所述应用程序进入可信执行环境TEE模式,并在所述可信执行环境TEE下串行执行所述人脸识别过程的步骤,如果所述人脸识别过程无需在所述可信执行环境TEE下执行,则控制所述应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行所述人脸识别过程的步骤。A processing module, configured to control the application program to enter the trusted execution environment TEE mode if the face recognition process needs to be executed under the trusted execution environment TEE, and execute serially under the trusted execution environment TEE Execute the step of the face recognition process, if the face recognition process does not need to be executed under the trusted execution environment TEE, then control the application program to enter the common execution environment REE mode, and parallelize it under the common execution environment REE The steps of the face recognition process are performed. 11.如权利要求10所述的装置,其特征在于,所述应用程序的属性信息包括所述应用程序的安全级别。11. The apparatus according to claim 10, wherein the attribute information of the application program includes a security level of the application program. 12.如权利要求10所述的装置,其特征在于,所述人脸识别过程包括检测人脸步骤、获取人脸元素步骤、人脸活体检测步骤以及人脸识别步骤。12 . The device according to claim 10 , wherein the face recognition process comprises a face detection step, a face element acquisition step, a live face detection step, and a face recognition step. 13 . 13.如权利要求12所述的装置,其特征在于,所述处理模块,具体用于:13. The device according to claim 12, wherein the processing module is specifically used for: 向被摄物发射红外光;emit infrared light to the subject; 捕获经过所述被摄物的红外图像;capturing an infrared image passing through the subject; 将所述红外图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述红外图像进行处理,以获取红外图像数据;以及sending the infrared image to a micro control unit MCU, and using the micro control unit MCU to process the infrared image to obtain infrared image data; and 将所述红外图像数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述红外图像数据。The infrared image data is provided to the application program through a preset interface, so that the application program calls the infrared image data. 14.如权利要求12所述的装置,其特征在于,所述处理模块,具体用于14. The device according to claim 12, wherein the processing module is specifically used to 拍摄被摄物的可见光图像;Take visible light images of the subject; 将所述可见光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述可见光图像进行处理,以获取可见光图像数据;以及sending the visible light image to a micro control unit MCU, and using the micro control unit MCU to process the visible light image to obtain visible light image data; and 将所述可见光图像数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述可见光图像数据。The visible light image data is provided to the application program through a preset interface, so that the application program calls the visible light image data. 15.如权利要求12所述的装置,其特征在于,所述处理模块,具体用于15. The device according to claim 12, wherein the processing module is specifically used to 向被摄物发射红外光和所述结构光;emitting infrared light and the structured light to the subject; 捕获经过所述被摄物的红外图像和所述结构光图像;capturing an infrared image passing through the subject and the structured light image; 将所述红外图像和所述结构光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述红外图像和所述结构光图像进行处理,以获取红外图像数据和所述景深数据;以及Sending the infrared image and the structured light image to a micro control unit MCU, and using the micro control unit MCU to process the infrared image and the structured light image to obtain infrared image data and the depth of field data ;as well as 将所述红外图像数据和所述景深数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述红外图像数据和所述景深数据。The infrared image data and the depth of field data are provided to the application program through a preset interface, so that the application program calls the infrared image data and the depth of field data. 16.如权利要求12所述的装置,其特征在于,所述处理模块,具体用于16. The device according to claim 12, wherein the processing module is specifically used to 拍摄被摄物的可见光图像;Take visible light images of the subject; 将所述可见光图像发送至微控制单元MCU,并利用所述微控制单元MCU对所述可见光图像进行处理,以获取人脸特征数据;以及sending the visible light image to a micro control unit MCU, and using the micro control unit MCU to process the visible light image to obtain facial feature data; and 将所述人脸特征数据通过预设接口提供给所述应用程序,以使所述应用程序调用所述人脸特征数据。The facial feature data is provided to the application program through a preset interface, so that the application program invokes the facial feature data. 17.如权利要求15所述的装置,其特征在于,所述处理模块,具体用于17. The device according to claim 15, wherein the processing module is specifically used to 解调所述结构光图像中变形位置像素对应的相位信息;Demodulating the phase information corresponding to the deformed position pixel in the structured light image; 将所述相位信息转化为高度信息;converting the phase information into height information; 根据所述高度信息确定所述被摄物对应的景深数据。Depth of field data corresponding to the subject is determined according to the height information. 18.如权利要求13至16任一项所述的装置,其特征在于,所述预设接口为符合预设标准的总线接口,包括MIPI总线接口、I2C同步串行总线接口、SPI总线接口。18. The device according to any one of claims 13 to 16, wherein the preset interface is a bus interface conforming to a preset standard, including a MIPI bus interface, an I2C synchronous serial bus interface, and an SPI bus interface. 19.一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-9任一项所述的人脸识别的信息处理方法。19. A non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that, when the program is executed by a processor, the information processing of face recognition as described in any one of claims 1-9 is realized method. 20.一种终端设备,其特征在于,包括激光摄像头、泛光灯、可见光摄像头、镭射灯、微控制单元MCU以及处理器,其中,所述处理器,用于:20. A terminal device, characterized in that it includes a laser camera, a floodlight, a visible light camera, a laser light, a micro control unit MCU and a processor, wherein the processor is used for: 获取调用人脸识别的应用程序的属性信息;Obtain the attribute information of the application that calls face recognition; 根据所述属性信息判断人脸识别过程是否需要在可信执行环境TEE下执行;Judging whether the face recognition process needs to be executed under the Trusted Execution Environment TEE according to the attribute information; 如果所述人脸识别过程需要在所述可信执行环境TEE下执行,则控制所述应用程序进入可信执行环境TEE模式,并在所述可信执行环境TEE下串行执行所述人脸识别过程的步骤;If the face recognition process needs to be executed under the Trusted Execution Environment TEE, control the application program to enter the Trusted Execution Environment TEE mode, and serially execute the face recognition process under the Trusted Execution Environment TEE steps in the identification process; 如果所述人脸识别过程无需在所述可信执行环境TEE下执行,则控制所述应用程序进入普通执行环境REE模式,并在普通执行环境REE下并行执行所述人脸识别过程的步骤。If the face recognition process does not need to be executed under the trusted execution environment TEE, control the application program to enter the normal execution environment REE mode, and execute the steps of the face recognition process in parallel under the normal execution environment REE.
CN201810327407.3A 2018-04-12 2018-04-12 Information processing method, device and terminal equipment for face recognition Pending CN108595928A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201810327407.3A CN108595928A (en) 2018-04-12 2018-04-12 Information processing method, device and terminal equipment for face recognition
EP19784964.9A EP3633546A4 (en) 2018-04-12 2019-04-08 IMAGE PROCESSING METHOD AND DEVICE, ELECTRONIC DEVICE AND COMPUTER READABLE STORAGE MEDIUM
PCT/CN2019/081743 WO2019196793A1 (en) 2018-04-12 2019-04-08 Image processing method and apparatus, and electronic device and computer-readable storage medium
US16/742,378 US11170204B2 (en) 2018-04-12 2020-01-14 Data processing method, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810327407.3A CN108595928A (en) 2018-04-12 2018-04-12 Information processing method, device and terminal equipment for face recognition

Publications (1)

Publication Number Publication Date
CN108595928A true CN108595928A (en) 2018-09-28

Family

ID=63621936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810327407.3A Pending CN108595928A (en) 2018-04-12 2018-04-12 Information processing method, device and terminal equipment for face recognition

Country Status (1)

Country Link
CN (1) CN108595928A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109635539A (en) * 2018-10-30 2019-04-16 华为技术有限公司 A kind of face identification method and electronic equipment
CN110335303A (en) * 2019-06-24 2019-10-15 Oppo广东移动通信有限公司 Image processing method and device, and storage medium
WO2019196669A1 (en) * 2018-04-12 2019-10-17 Oppo广东移动通信有限公司 Laser-based security verification method and apparatus, and terminal device
WO2019196793A1 (en) * 2018-04-12 2019-10-17 Oppo广东移动通信有限公司 Image processing method and apparatus, and electronic device and computer-readable storage medium
CN113192237A (en) * 2020-01-10 2021-07-30 阿里巴巴集团控股有限公司 Internet of things equipment supporting TEE and REE and method for realizing communication between TEE and REE

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005057472A1 (en) * 2003-12-12 2005-06-23 Authenmetric Co., Ltd A face recognition method and system of getting face images
CN106548077A (en) * 2016-10-19 2017-03-29 沈阳微可信科技有限公司 Communication system and electronic equipment
CN106845285A (en) * 2016-12-28 2017-06-13 北京握奇智能科技有限公司 A kind of TEE systems coordinate to realize the method and terminal device of service with REE systems
CN107169483A (en) * 2017-07-12 2017-09-15 深圳奥比中光科技有限公司 Tasks carrying based on recognition of face

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005057472A1 (en) * 2003-12-12 2005-06-23 Authenmetric Co., Ltd A face recognition method and system of getting face images
CN106548077A (en) * 2016-10-19 2017-03-29 沈阳微可信科技有限公司 Communication system and electronic equipment
CN106845285A (en) * 2016-12-28 2017-06-13 北京握奇智能科技有限公司 A kind of TEE systems coordinate to realize the method and terminal device of service with REE systems
CN107169483A (en) * 2017-07-12 2017-09-15 深圳奥比中光科技有限公司 Tasks carrying based on recognition of face

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196669A1 (en) * 2018-04-12 2019-10-17 Oppo广东移动通信有限公司 Laser-based security verification method and apparatus, and terminal device
WO2019196793A1 (en) * 2018-04-12 2019-10-17 Oppo广东移动通信有限公司 Image processing method and apparatus, and electronic device and computer-readable storage medium
US11170204B2 (en) 2018-04-12 2021-11-09 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data processing method, electronic device and computer-readable storage medium
CN109635539A (en) * 2018-10-30 2019-04-16 华为技术有限公司 A kind of face identification method and electronic equipment
US12154373B2 (en) 2018-10-30 2024-11-26 Honor Device Co., Ltd. Facial recognition method and electronic device
CN110335303A (en) * 2019-06-24 2019-10-15 Oppo广东移动通信有限公司 Image processing method and device, and storage medium
CN113192237A (en) * 2020-01-10 2021-07-30 阿里巴巴集团控股有限公司 Internet of things equipment supporting TEE and REE and method for realizing communication between TEE and REE

Similar Documents

Publication Publication Date Title
CN108595928A (en) Information processing method, device and terminal equipment for face recognition
US11210541B2 (en) Liveness detection method, apparatus and computer-readable storage medium
CN108804895B (en) Image processing method, apparatus, computer-readable storage medium and electronic device
CN107563304B (en) Terminal device unlocking method and device, and terminal device
WO2020010848A1 (en) Control method, microprocessor, computer readable storage medium, and computer apparatus
CN107368730A (en) Unlock verification method and device
CN107277053A (en) Identity verification method, device and mobile terminal
CN107479801A (en) Displaying method of terminal, device and terminal based on user's expression
CN107493428A (en) Shooting control method and device
CN107481317A (en) Face adjustment method and device for 3D model of human face
US11170204B2 (en) Data processing method, electronic device and computer-readable storage medium
CN109213610B (en) Data processing method and device, computer readable storage medium and electronic equipment
TW201944290A (en) Face recognition method and apparatus, and mobile terminal and storage medium
CN108616688A (en) Image processing method and device, mobile terminal and storage medium
CN107493427A (en) Focusing method and device for mobile terminal and mobile terminal
CN107592449A (en) Three-dimension modeling method, apparatus and mobile terminal
CN107370950A (en) Focusing processing method and device and mobile terminal
CN108711054A (en) Image processing method, device, computer-readable storage medium, and electronic device
CN107370951A (en) Image processing system and method
CN107438161A (en) Shooting picture processing method, device and terminal
CN108830141A (en) Image processing method, device, computer-readable storage medium, and electronic device
CN108694389A (en) Safety verification method and electronic equipment based on front dual cameras
CN110798619B (en) Image processing method and device and electronic device
CN107437268A (en) Photographing method, device, mobile terminal and computer storage medium
CN107493411A (en) Image processing system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180928