[go: up one dir, main page]

HK1221795B - Method and device for identity authentication, terminal and server - Google Patents

Method and device for identity authentication, terminal and server Download PDF

Info

Publication number
HK1221795B
HK1221795B HK16109898.6A HK16109898A HK1221795B HK 1221795 B HK1221795 B HK 1221795B HK 16109898 A HK16109898 A HK 16109898A HK 1221795 B HK1221795 B HK 1221795B
Authority
HK
Hong Kong
Prior art keywords
information
user
facial
prompt
voice
Prior art date
Application number
HK16109898.6A
Other languages
Chinese (zh)
Other versions
HK1221795A1 (en
Inventor
杜志军
Original Assignee
创新先进技术有限公司
Filing date
Publication date
Priority claimed from CN201410446657.0A external-priority patent/CN105468950B/en
Application filed by 创新先进技术有限公司 filed Critical 创新先进技术有限公司
Publication of HK1221795A1 publication Critical patent/HK1221795A1/en
Publication of HK1221795B publication Critical patent/HK1221795B/en

Links

Description

身份认证方法、装置、终端及服务器Identity authentication method, device, terminal and server

技术领域Technical Field

本申请涉及通信技术领域,尤其涉及身份认证方法、装置、终端及服务器。The present application relates to the field of communication technologies, and in particular to identity authentication methods, devices, terminals, and servers.

背景技术Background Art

随着智能终端的发展和网络应用的开发,用户通过终端上安装的各种应用客户端可以对各种网络应用进行访问,例如,社交类即时通信应用,购物类应用等。在访问过程中,往往需要对用户进行身份认证,以便在身份认证通过后,允许用户使用各种应用功能。With the development of smart terminals and network applications, users can access various network applications through various application clients installed on their terminals, such as social instant messaging applications and shopping applications. During the access process, user identity authentication is often required so that users can use various application functions after passing the identity authentication.

现有技术中,在进行身份认证时,往往需要用户在认证界面输入认证密码,服务器验证输入的认证密码与用户注册时的认证密码一致时,确认用户通过身份认证。但是,认证密码往往是数字和字母的简单组合,容易被恶意第三方窃取。因此,现有身份认证方式的可靠性较差,容易造成用户信息被盗取,导致认证的安全性不高。In existing technologies, identity authentication often requires users to enter a password on an authentication interface. The server verifies that the entered password matches the password used during user registration, confirming that the user has passed authentication. However, passwords are often simple combinations of numbers and letters, making them easily stolen by malicious third parties. Therefore, existing identity authentication methods are less reliable, making it easy for user information to be stolen and resulting in low authentication security.

发明内容Summary of the Invention

本申请提供身份认证方法、装置、终端及服务器,以解决现有技术中身份认证方式可靠性较差且安全性不高的问题。The present application provides an identity authentication method, device, terminal and server to solve the problem that the identity authentication methods in the prior art have poor reliability and low security.

根据本申请实施例的第一方面,提供一种身份认证方法,所述方法包括:According to a first aspect of an embodiment of the present application, there is provided an identity authentication method, the method comprising:

在用户进行身份认证时,接收服务器发送的人脸动态认证提示信息;When the user performs identity authentication, the server receives the dynamic face authentication prompt information;

通过识别所述用户呈现的人脸姿态,获得所述人脸动态认证提示信息的姿态识别信息;Obtaining gesture recognition information of the dynamic facial authentication prompt information by identifying the facial gesture presented by the user;

将所述姿态识别信息发送至所述服务器,以使所述服务器在验证所述姿态识别信息与所述人脸动态认证提示信息一致时,确定所述用户通过身份认证。The gesture recognition information is sent to the server, so that the server determines that the user has passed the identity authentication when verifying that the gesture recognition information is consistent with the face dynamic authentication prompt information.

根据本申请实施例的第二方面,提供一种身份认证方法,所述方法包括:According to a second aspect of an embodiment of the present application, there is provided an identity authentication method, the method comprising:

在用户进行身份认证时,向终端发送人脸动态认证提示信息;When the user authenticates his/her identity, a dynamic facial authentication prompt message is sent to the terminal;

接收所述终端发送的姿态识别信息,所述姿态识别信息为所述终端通过识别所述用户根据所述人脸动态认证提示信息呈现的人脸姿态,获得的姿态识别信息;receiving gesture recognition information sent by the terminal, wherein the gesture recognition information is gesture recognition information obtained by the terminal by recognizing the facial gesture presented by the user according to the dynamic facial authentication prompt information;

当验证所述姿态识别信息与所述人脸动态认证提示信息一致时,确定所述用户通过身份认证。When it is verified that the gesture recognition information is consistent with the face dynamic authentication prompt information, it is determined that the user has passed the identity authentication.

根据本申请实施例的第三方面,提供一种身份认证装置,所述装置包括:According to a third aspect of an embodiment of the present application, there is provided an identity authentication device, the device comprising:

接收单元,用于在用户进行身份认证时,接收服务器发送的人脸动态认证提示信息;The receiving unit is used to receive the face dynamic authentication prompt information sent by the server when the user performs identity authentication;

识别单元,用于通过识别所述用户呈现的人脸姿态,获得所述人脸动态认证提示信息的姿态识别信息;A recognition unit, configured to obtain gesture recognition information of the dynamic facial authentication prompt information by recognizing the facial gesture presented by the user;

发送单元,用于将所述姿态识别信息发送至所述服务器,以使所述服务器在验证所述姿态识别信息与所述人脸动态认证提示信息一致时,确定所述用户通过身份认证。The sending unit is used to send the gesture recognition information to the server, so that the server determines that the user has passed the identity authentication when verifying that the gesture recognition information is consistent with the face dynamic authentication prompt information.

根据本申请实施例的第四方面,提供一种身份认证装置,所述装置包括:According to a fourth aspect of an embodiment of the present application, there is provided an identity authentication device, the device comprising:

发送单元,用于在用户进行身份认证时,向终端发送人脸动态认证提示信息;The sending unit is used to send dynamic face authentication prompt information to the terminal when the user performs identity authentication;

接收单元,用于接收所述终端发送的姿态识别信息,所述姿态识别信息为所述终端通过识别所述用户根据所述人脸动态认证提示信息呈现的人脸姿态,获得的姿态识别信息;a receiving unit, configured to receive gesture recognition information sent by the terminal, wherein the gesture recognition information is gesture recognition information obtained by the terminal by recognizing the facial gesture presented by the user according to the dynamic facial authentication prompt information;

确定单元,用于当验证所述姿态识别信息与所述人脸动态认证提示信息一致时,确定所述用户通过身份认证。The determination unit is configured to determine that the user has passed the identity authentication when verifying that the gesture recognition information is consistent with the face dynamic authentication prompt information.

根据本申请实施例的第五方面,提供一种终端,包括:According to a fifth aspect of an embodiment of the present application, a terminal is provided, including:

处理器;用于存储所述处理器可执行指令的存储器;a processor; a memory for storing instructions executable by the processor;

其中,所述处理器被配置为:Wherein, the processor is configured to:

在用户进行身份认证时,接收服务器发送的人脸动态认证提示信息;When the user performs identity authentication, the server receives the dynamic face authentication prompt information;

通过识别所述用户呈现的人脸姿态,获得所述人脸动态认证提示信息的姿态识别信息;Obtaining gesture recognition information of the dynamic facial authentication prompt information by identifying the facial gesture presented by the user;

将所述姿态识别信息发送至所述服务器,以使所述服务器在验证所述姿态识别信息与所述人脸动态认证提示信息一致时,确定所述用户通过身份认证。The gesture recognition information is sent to the server, so that the server determines that the user has passed the identity authentication when verifying that the gesture recognition information is consistent with the face dynamic authentication prompt information.

根据本申请实施例的第六方面,提供一种服务器,包括:According to a sixth aspect of an embodiment of the present application, a server is provided, including:

处理器;用于存储所述处理器可执行指令的存储器;a processor; a memory for storing instructions executable by the processor;

其中,所述处理器被配置为:Wherein, the processor is configured to:

在用户进行身份认证时,向终端发送人脸动态认证提示信息;When the user authenticates his/her identity, a dynamic facial authentication prompt message is sent to the terminal;

接收所述终端发送的姿态识别信息,所述姿态识别信息为所述终端通过识别所述用户根据所述人脸动态认证提示信息呈现的人脸姿态,获得的姿态识别信息;receiving gesture recognition information sent by the terminal, wherein the gesture recognition information is gesture recognition information obtained by the terminal by recognizing the facial gesture presented by the user according to the dynamic facial authentication prompt information;

当验证所述姿态识别信息与所述人脸动态认证提示信息一致时,确定所述用户通过身份认证。When it is verified that the gesture recognition information is consistent with the face dynamic authentication prompt information, it is determined that the user has passed the identity authentication.

本申请实施例中在对用户进行身份认证时,服务器向终端发送动态认证提示信息,终端通过识别用户呈现的人脸姿态,获得人脸动态认证提示信息的姿态识别信息,并发送至服务器,服务器在验证姿态识别信息与人脸动态认证提示信息一致时,确定用户通过身份认证。应用本申请实施例,通过人脸动态认证方式可以对用户身份进行高安全性认证,相较于现有采用认证密码进行认证的方式,认证信息不会被恶意第三方窃取,提高了认证的可靠性,并且通过人脸动态认证可以识别用户为活体用户,从而进一步提高身份认证的准确性,降低认证过程中存在的安全隐患。In the embodiment of the present application, when authenticating a user, the server sends a dynamic authentication prompt message to the terminal. The terminal obtains posture recognition information of the dynamic facial authentication prompt message by identifying the facial posture presented by the user, and sends it to the server. When the server verifies that the posture recognition information is consistent with the dynamic facial authentication prompt message, it determines that the user has passed the identity authentication. Applying the embodiment of the present application, the user's identity can be authenticated with high security through dynamic facial authentication. Compared with the existing authentication method using an authentication password, the authentication information cannot be stolen by malicious third parties, which improves the reliability of authentication. In addition, dynamic facial authentication can identify the user as a live user, thereby further improving the accuracy of identity authentication and reducing security risks in the authentication process.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例的身份认证场景示意图;FIG1 is a schematic diagram of an identity authentication scenario according to an embodiment of the present application;

图2A为本申请身份认证方法的一个实施例流程图;FIG2A is a flow chart of an embodiment of the identity authentication method of the present application;

图2B为本申请身份认证方法的另一个实施例流程图;FIG2B is a flow chart of another embodiment of the identity authentication method of the present application;

图3A为本申请身份认证方法的另一个实施例流程图;FIG3A is a flow chart of another embodiment of the identity authentication method of the present application;

图3B为本申请实施例中人脸认证过程中的人头姿态示意图;FIG3B is a schematic diagram of a head posture during face recognition in an embodiment of the present application;

图4A为本申请身份认证方法的另一个实施例流程图;FIG4A is a flow chart of another embodiment of the identity authentication method of the present application;

图4B和图4C为本申请实施例中面部关键点示意图;FIG4B and FIG4C are schematic diagrams of facial key points in an embodiment of the present application;

图5为本申请身份认证装置所在设备的一种硬件结构图;FIG5 is a hardware structure diagram of the device where the identity authentication device of this application is located;

图6为本申请身份认证装置的一个实施例框图;FIG6 is a block diagram of an embodiment of the identity authentication device of the present application;

图7为本申请身份认证装置的另一个实施例框图。FIG7 is a block diagram of another embodiment of the identity authentication device of the present application.

具体实施方式DETAILED DESCRIPTION

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

在基于互联网通信的场景中,用户可以通过所持终端上安装的各种应用客户端实现对各种网络应用的访问,在访问过程中,用户往往需要进行身份认证,但是现有技术中通常采用认证密码对用户身份进行认证,认证密码通常是数字和字母的简单组合,容易被恶意第三方窃取,因此现有身份认证方式可靠性较差,安全性不高。基于此,参见图1,为本申请实施例实现身份认证的应用场景示意图:用户通过所持终端与服务器之间交互,完成对用户的身份认证,终端与服务器之间的通信可以基于网络完成,该网络包括各种无线网络或有线网络,对此本申请实施例不进行限制。其中,终端可以具体为手机、平板电脑、个人计算机等。在图1示出的应用场景中,服务器上可以设置两个数据库,分别为人脸特征信息数据库和人脸动态认证提示信息数据库。In a scenario based on Internet communication, users can access various network applications through various application clients installed on their terminals. During the access process, users often need to perform identity authentication. However, in the prior art, authentication passwords are usually used to authenticate user identities. Authentication passwords are usually simple combinations of numbers and letters, which can be easily stolen by malicious third parties. Therefore, existing identity authentication methods are less reliable and less secure. Based on this, see Figure 1, which is a schematic diagram of an application scenario for implementing identity authentication in an embodiment of the present application: users complete identity authentication of users through interaction between their terminals and servers. Communication between the terminal and the server can be completed based on a network, which includes various wireless networks or wired networks, and this embodiment of the present application does not limit this. Among them, the terminal can specifically be a mobile phone, a tablet computer, a personal computer, etc. In the application scenario shown in Figure 1, two databases can be set up on the server, namely a facial feature information database and a facial dynamic authentication prompt information database.

在人脸注册阶段,终端可以获取注册用户的人脸特征信息并发送至服务器,由服务器将该注册用户的人脸特征信息保存至人脸特征信息数据库。在身份认证阶段,可以首先进行人脸认证,此时用户将获取的人脸特征信息发送至服务器,服务器验证该人脸特征信息与人脸特征信息数据中保存的该用户的人脸特征信息匹配时,可以初步确定当前进行身份认证的为用户本人;然后进行人脸动态认证,此时服务器可以向用户返回从人脸动态认证提示信息数据库中获取的人脸动态认证提示信息,在终端识别用户呈现的人脸姿态从而获得该人脸动态认证提示信息的姿态识别信息并发送至服务器,服务器验证该姿态识别信息与人脸动态认证提示信息一致时,可知当前认证用户为活体用户,从而最终确定用户通过身份认证。为了描述方便,本申请实施例中可以将人脸注册阶段获取的用户的人脸特征信息称为第二人脸特征信息,将人脸认证阶段获取的用户的人脸特征信息称为第一人脸特征信息。下面对本申请实施例进行详细说明。During the face registration stage, the terminal can obtain the facial feature information of the registered user and send it to the server, which will save the facial feature information of the registered user to the facial feature information database. During the identity authentication stage, face authentication can be performed first. At this time, the user sends the acquired facial feature information to the server. When the server verifies that the facial feature information matches the facial feature information of the user stored in the facial feature information database, it can be preliminarily determined that the user currently undergoing identity authentication is the user himself. Then, face dynamic authentication is performed. At this time, the server can return the face dynamic authentication prompt information obtained from the face dynamic authentication prompt information database to the user. When the terminal recognizes the facial posture presented by the user, the posture recognition information of the face dynamic authentication prompt information is obtained and sent to the server. When the server verifies that the posture recognition information is consistent with the face dynamic authentication prompt information, it can be known that the currently authenticated user is a living user, thereby finally determining that the user has passed the identity authentication. For the sake of convenience of description, in the embodiment of the present application, the facial feature information of the user obtained in the face registration stage can be referred to as the second facial feature information, and the facial feature information of the user obtained in the face authentication stage can be referred to as the first facial feature information. The embodiment of the present application is described in detail below.

参见图2A,为本申请身份认证方法的一个实施例的流程图,该实施例从实现身份认证的终端侧进行描述:2A is a flow chart of an embodiment of the identity authentication method of the present application, which is described from the perspective of a terminal implementing identity authentication.

步骤201:在用户进行身份认证时,接收服务器发送的人脸动态认证提示信息。Step 201: When the user performs identity authentication, the user receives dynamic facial authentication prompt information sent by the server.

本申请实施例中,服务器可以从人脸动态认证提示信息数据中随机提取人脸动态认证提示信息返回给终端,该人脸动态认证提示信息可以包括至少一种下述信息:表情动作提示信息,例如,闭眼、张嘴、转头等;语音读取提示信息,例如,支付20元等。In an embodiment of the present application, the server can randomly extract facial dynamic authentication prompt information from the facial dynamic authentication prompt information data and return it to the terminal. The facial dynamic authentication prompt information may include at least one of the following information: facial expression prompt information, such as closing eyes, opening mouth, turning head, etc.; voice reading prompt information, such as paying 20 yuan, etc.

可选的,在接收服务器发送的人脸动态认证提示信息之前,终端可以先获取用户的人脸特征信息,将该身份认证时获取的人脸特征信息作为用户的第一人脸信息,向服务器发送用户的第一人脸特征信息后,服务器在验证该第一人脸特征信息与已保存的所述的第二人脸特征信息匹配时向终端发送该人脸动态认证提示信息。Optionally, before receiving the dynamic facial authentication prompt information sent by the server, the terminal can first obtain the user's facial feature information, and use the facial feature information obtained during the identity authentication as the user's first facial information. After sending the user's first facial feature information to the server, the server sends the dynamic facial authentication prompt information to the terminal when verifying that the first facial feature information matches the saved second facial feature information.

其中,在获取用户的人脸特征信息时,终端可以启动其上集成的摄像设备,例如摄像头,对用户的人脸进行检测,在检测到人脸时,对用户进行人脸跟踪,在人脸跟踪过程中按照预设时间间隔获取人脸图像,对于获取的每个人脸图像,判断该人脸图像是否满足预设的特征提取条件,若满足特征提取条件,则从该人脸图像中提取该用户的人脸特征信息。Among them, when obtaining the user's facial feature information, the terminal can start the integrated camera device thereon, such as a camera, to detect the user's face. When the face is detected, the user's face is tracked. During the face tracking process, facial images are obtained at preset time intervals. For each facial image obtained, it is determined whether the facial image meets the preset feature extraction conditions. If the feature extraction conditions are met, the user's facial feature information is extracted from the facial image.

其中,服务器接收到用户的第一人脸特征信息后,可以根据该用户的用户名查找人脸特征信息数据库,获得与该用户名对应的第二人脸特征信息,然后采用预设的比较方式比较第一人脸特征信息和第二人脸特征信息,如果特征比较值在预设的相似度范围内,则可以确定第一人脸特征信息与第二人脸特征信息匹配,在确定第一人脸特征信息与第二人脸特征信息匹配后,可以确定用户通过人脸认证,此时服务器向终端发送人脸动态认证提示信息。Among them, after the server receives the user's first facial feature information, it can search the facial feature information database according to the user's username, obtain the second facial feature information corresponding to the username, and then use a preset comparison method to compare the first facial feature information and the second facial feature information. If the feature comparison value is within a preset similarity range, it can be determined that the first facial feature information matches the second facial feature information. After determining that the first facial feature information matches the second facial feature information, it can be determined that the user has passed the facial authentication. At this time, the server sends a facial dynamic authentication prompt message to the terminal.

步骤202:通过识别用户呈现的人脸姿态,获得人脸动态认证提示信息的姿态识别信息。Step 202: Obtain gesture recognition information of dynamic facial authentication prompt information by identifying the facial gesture presented by the user.

本申请实施例中,当终端接收到人脸动态认证提示信息后,在身份认证界面显示该人脸动态认证提示信息,用户可以据此信息呈现相应的人脸姿态,而终端在识别人脸姿态时,可以对用户进行人脸跟踪,获得人脸跟踪信息,该人脸跟踪信息可以包括面部关键点位置信息和人头姿态信息中的至少一种信息,然后终端通过分析人脸跟踪信息获得用户的姿态识别信息。例如,通过面部关键点位置信息可以获知用户按照表情动作提示信息是否闭眼、张嘴,或者在读取语音读取提示信息时用户的嘴型(每个词的发音与嘴型有对应关系,通过嘴型可以确定用户的姿态识别信息);通过人头姿态信息可以获知用户是否转头、低头等。In an embodiment of the present application, after the terminal receives the dynamic facial authentication prompt information, the dynamic facial authentication prompt information is displayed on the identity authentication interface. The user can present the corresponding facial posture based on this information. When the terminal recognizes the facial posture, it can track the user's face and obtain facial tracking information. The facial tracking information can include at least one of facial key point position information and head posture information. The terminal then obtains the user's posture recognition information by analyzing the facial tracking information. For example, the facial key point position information can be used to determine whether the user closes his eyes or opens his mouth according to the facial expression prompt information, or the user's mouth shape when reading the voice prompt information (the pronunciation of each word corresponds to the mouth shape, and the user's posture recognition information can be determined by the mouth shape); the head posture information can be used to determine whether the user turns his head or lowers his head.

步骤203:将姿态识别信息发送至服务器,以使服务器在验证姿态识别信息与人脸动态认证提示信息一致时,确定用户通过身份认证。Step 203: Send the gesture recognition information to the server, so that the server determines that the user has passed the identity authentication when verifying that the gesture recognition information is consistent with the face dynamic authentication prompt information.

对服务器来说,同一时间可能需要对多个用户进行身份认证,如果对不同用户发送了不同的动态认证提示信息,则步骤201中,服务器可以将人脸动态认证提示信息发送至终端后,记录该用户的用户名与人脸动态认证提示信息的对应关系;本步骤中,终端将姿态识别信息发送至服务器后,服务器根据用户的用户名获取到对应的人脸动态认证提示信息,验证该姿态识别信息与人脸动态认证提示信息一致时,说明用户为活体用户,此时确定用户通过身份认证。For the server, it may be necessary to authenticate multiple users at the same time. If different dynamic authentication prompt information is sent to different users, then in step 201, the server can send the face dynamic authentication prompt information to the terminal and record the correspondence between the user's username and the face dynamic authentication prompt information; in this step, after the terminal sends the posture recognition information to the server, the server obtains the corresponding face dynamic authentication prompt information based on the user's username, and when it is verified that the posture recognition information is consistent with the face dynamic authentication prompt information, it indicates that the user is a living user, and at this time it is determined that the user has passed the identity authentication.

另外,如果步骤201中人脸动态认证提示信息为语音读取提示信息,则终端除了获取用户的嘴型外,也可以获得用户的音频信息,通过语音识别该音频信息获得用户读取的语音信息,以便服务器比对该语音信息与语音读取提示信息是否一致,在一致时确定用户通过身份认证。In addition, if the face dynamic authentication prompt information in step 201 is voice reading prompt information, the terminal can obtain the user's audio information in addition to the user's mouth shape, and obtain the voice information read by the user through voice recognition of the audio information, so that the server can compare the voice information with the voice reading prompt information to see if they are consistent, and determine that the user has passed the identity authentication if they are consistent.

参见图2B,为本申请身份认证方法的另一个实施例的流程图,该实施例从实现身份认证的服务器侧进行描述:2B is a flow chart of another embodiment of the identity authentication method of the present application, which is described from the perspective of the server side implementing the identity authentication:

步骤211:在用户进行身份认证时,向终端发送人脸动态认证提示信息。Step 211: When the user performs identity authentication, a dynamic face authentication prompt message is sent to the terminal.

步骤212:接收终端发送的姿态识别信息,该姿态识别信息为终端通过识别用户根据人脸动态认证提示信息呈现的人脸姿态,获得的姿态识别信息。Step 212: receiving gesture recognition information sent by the terminal, wherein the gesture recognition information is gesture recognition information obtained by the terminal by recognizing the facial gesture presented by the user according to the dynamic facial authentication prompt information.

步骤213:当验证姿态识别信息与人脸动态认证提示信息一致时,确定用户通过身份认证。Step 213: When the verification gesture recognition information is consistent with the face dynamic authentication prompt information, it is determined that the user has passed the identity authentication.

需要说明的是,上述图2B示出的身份认证过程与图2A示出的身份认证过程的区别仅在于执行主体的不同,即图2A从终端侧进行描述,而图2B从服务器侧进行描述,因此图2B实施例中的相关实现过程可以参见前述图2A中的描述,在此不再赘述。It should be noted that the difference between the identity authentication process shown in the above Figure 2B and the identity authentication process shown in Figure 2A is only the difference in the execution subject, that is, Figure 2A is described from the terminal side, while Figure 2B is described from the server side. Therefore, the relevant implementation process in the embodiment of Figure 2B can be found in the description in the aforementioned Figure 2A, and will not be repeated here.

由上述实施例可见,该实施例通过人脸动态认证方式可以对用户身份进行高安全性认证,相较于现有采用认证密码进行认证的方式,认证信息不会被恶意第三方窃取,提高了认证的可靠性,并且通过人脸动态认证可以识别用户为活体用户,从而进一步提高身份认证的准确性,降低认证过程中存在的安全隐患。It can be seen from the above embodiments that this embodiment can perform high-security authentication of user identity through dynamic facial authentication. Compared with the existing authentication method using authentication passwords, the authentication information will not be stolen by malicious third parties, which improves the reliability of authentication. In addition, dynamic facial authentication can identify users as living users, thereby further improving the accuracy of identity authentication and reducing security risks in the authentication process.

参见图3A,为本申请身份认证方法的另一个实施例,该实施例详细示出了人脸注册的过程:FIG3A is another embodiment of the identity authentication method of the present application, which shows the face registration process in detail:

步骤301:用户通过终端向服务器注册。Step 301: The user registers with the server through the terminal.

步骤302:终端检测到用户的人脸时,对用户进行人脸跟踪。Step 302: When the terminal detects the user's face, it tracks the user's face.

通常终端上都集成有摄像设备,例如摄像头,本实施例可以默认设置在用户注册时,自动启动摄像设备对用户人脸进行检测,通常用户可以手持终端将摄像设备对准自己的正脸。当通过摄像设备检测到人脸时,终端可以通过人脸跟踪算法对用户进行人脸跟踪,需要说明的是,本申请实施例可以采用各种现有的人脸跟踪算法,在此不再赘述。Typically, terminals are integrated with a camera, such as a webcam. This embodiment can be configured by default to automatically activate the camera to detect the user's face upon user registration. Typically, the user can hold the terminal and aim the camera at their face. Once the camera detects a face, the terminal can track the user's face using a face tracking algorithm. It should be noted that various existing face tracking algorithms can be used in this embodiment of the present application, which will not be detailed here.

步骤303:终端在人脸跟踪过程中按照预设时间间隔获取人脸图像。Step 303: The terminal obtains facial images at preset time intervals during the face tracking process.

在人脸跟踪过程中,终端通过摄像设备按照预设时间间隔获取人脸图像,设置时间间隔是为了避免提取到大致相同的人脸图像,例如,预设时间间隔可以为3秒。During face tracking, the terminal obtains face images through a camera at preset time intervals. The time interval is set to avoid extracting substantially identical face images. For example, the preset time interval may be 3 seconds.

步骤304:判断人脸图像的清晰度是否满足预设的清晰度阈值,若是,则执行步骤305;否则,结束当前流程。Step 304: Determine whether the clarity of the facial image meets a preset clarity threshold. If so, execute step 305; otherwise, end the current process.

对于步骤303获取的人脸图像,可以先对其清晰度进行判断,以便排除清晰度不足的人脸图像。此时终端可以调取预先设置的模糊判断函数,判断该人脸图像的清晰度是否满足清晰度阈值,其中,模糊判断函数可以采用现有图像识别处理技术中的模糊判断函数,对此本申请实施例不进行限制。对于满足清晰度阈值的人脸图像,执行步骤305,对于不满足清晰度阈值的人脸图像,直接丢弃,然后返回步骤303。For the facial image obtained in step 303, its clarity can be first determined to exclude facial images with insufficient clarity. At this point, the terminal can call a pre-set fuzzy judgment function to determine whether the clarity of the facial image meets the clarity threshold. The fuzzy judgment function can adopt the fuzzy judgment function of existing image recognition processing technology, which is not limited in this embodiment of the present application. For facial images that meet the clarity threshold, step 305 is executed. For facial images that do not meet the clarity threshold, they are directly discarded, and then the process returns to step 303.

步骤305:终端从人脸图像中提取人头姿态信息。Step 305: The terminal extracts head posture information from the face image.

在步骤304中判断出获取的人脸图像为清晰的人脸图像后,终端从人脸图像中提取人头姿态信息。如图3B所示,为本申请实施例中的人头姿态示意图:本实施例中的人头姿态信息可以包括至少一个下述角度:低仰头角度、侧脸角度和偏头角度。After determining in step 304 that the acquired facial image is a clear facial image, the terminal extracts head posture information from the facial image. FIG3B is a schematic diagram of head posture in an embodiment of the present application. In this embodiment, the head posture information may include at least one of the following angles: a low head tilt angle, a side face angle, and a tilted head angle.

步骤306:终端判断人头姿态信息包含的每个角度是否在预设的角度范围内,若是,则执行步骤307;否则,结束当前流程。Step 306: The terminal determines whether each angle included in the head posture information is within a preset angle range. If so, step 307 is executed; otherwise, the current process ends.

本申请实施例中,通过人头姿态信息可以判断出人脸图像是否为用户的正脸图像,此时终端可以判断人头姿态信息中包含的每个角度是否在预设的角度范围内,例如,该预设的角度范围为0度至10度。对于判断结果为是的人头姿态信息对应的人脸图像,执行步骤307;对于判断结果为否的人头姿态信息对应的人脸图像,直接丢弃,然后返回步骤303。In this embodiment of the present application, the head posture information can be used to determine whether the facial image is a frontal image of the user. In this case, the terminal can determine whether each angle included in the head posture information is within a preset angle range, for example, the preset angle range is 0 degrees to 10 degrees. For the facial image corresponding to the head posture information with a positive judgment result, step 307 is executed; for the facial image corresponding to the head posture information with a negative judgment result, the terminal directly discards the facial image and returns to step 303.

步骤307:终端从人脸图像中提取用户的人脸特征信息。Step 307: The terminal extracts the user's facial feature information from the facial image.

本申请实施例可以采用LBP(Linear Back Projection,线性反投影)特征提取算法,从人脸图像中提取人脸特征向量值作为用户的人脸特征信息。当然,本申请实施例不限制进行人脸特征提取的具体算法,任何现有图像处理技术中采用的人脸特征提取算法都可适用于本申请实施例,例如,加窗傅立叶变换gabor特征提取算法等。The embodiments of the present application may employ an LBP (Linear Back Projection) feature extraction algorithm to extract facial feature vector values from a facial image as the user's facial feature information. Of course, the embodiments of the present application are not limited to a specific algorithm for facial feature extraction; any facial feature extraction algorithm used in existing image processing techniques may be applicable to the embodiments of the present application, such as a windowed Fourier transform Gabor feature extraction algorithm.

为了保证后续身份认证阶段人脸认证的准确度,在人脸注册阶段,对于同一注册用户,可以从多个人脸图像中提取该用户的人脸特征信息,该多个人脸图像的数量可以预先设置,例如5个,相应的,按照设置的人脸图像的数量,可以循环执行前述步骤303至步骤307,以便获取到满足该预设数量的人脸图像,并从中提取出人脸特征信息。In order to ensure the accuracy of face recognition in the subsequent identity authentication stage, in the face registration stage, for the same registered user, the user's facial feature information can be extracted from multiple face images. The number of the multiple face images can be pre-set, for example, 5. Accordingly, according to the set number of face images, the aforementioned steps 303 to 307 can be executed repeatedly to obtain face images that meet the preset number and extract facial feature information from them.

步骤308:终端将人脸特征信息发送至服务器。Step 308: The terminal sends the facial feature information to the server.

步骤309:服务器保存注册用户的用户名与该人脸特征的对应关系,结束当前流程。Step 309: The server saves the correspondence between the registered user's username and the facial features, and ends the current process.

本实施例中,服务器接收到终端发送的人脸特征信息后,可以在人脸特征信息数据库中保存注册用户的用户名与人脸特征的对应关系,当接收到多个人脸特征信息时,则相应保存该用户名与多个人脸特征信息的对应关系。In this embodiment, after the server receives the facial feature information sent by the terminal, it can save the correspondence between the registered user's username and facial features in the facial feature information database. When multiple facial feature information is received, the correspondence between the username and multiple facial feature information is saved accordingly.

参见图4A,为本申请身份认证方法的另一个实施例,该实施例基于图3所示人脸注册过程,详细描述了对用户进行身份认证的过程:Referring to FIG4A , another embodiment of the identity authentication method of the present application is shown. This embodiment is based on the face registration process shown in FIG3 and describes in detail the process of authenticating the user:

步骤401:开始对用户进行身份认证。Step 401: Start authenticating the user.

步骤402:终端获取用户的第一人脸特征信息。Step 402: The terminal obtains the user's first facial feature information.

在身份认证过程中,终端获取用户的人脸特征信息的方式与前述图3示出的人脸注册过程中获取人脸特征信息的方式一致,具体与图3示出的步骤302至步骤307一致,在此不再赘述。During the identity authentication process, the way in which the terminal obtains the user's facial feature information is consistent with the way in which facial feature information is obtained during the face registration process shown in Figure 3 above, specifically consistent with steps 302 to 307 shown in Figure 3, and will not be repeated here.

本步骤中,终端可以获取到至少一个第一人脸特征信息。In this step, the terminal can obtain at least one first facial feature information.

步骤403:终端向服务器发送用户的第一人脸特征信息。Step 403: The terminal sends the user's first facial feature information to the server.

步骤404:服务器验证第一人脸特征信息与已保存的用户的第二人脸特征信息是否匹配,若是,则执行步骤405;否则结束当前流程。Step 404: The server verifies whether the first facial feature information matches the saved second facial feature information of the user. If so, step 405 is executed; otherwise, the current process ends.

本申请实施例中,服务器接收到用户的第一人脸特征信息后,可以根据该用户的用户名查找人脸特征信息数据库,获得与该用户名对应的第二人脸特征信息,然后采用预设的比较方式比较第一人脸特征信息和第二人脸特征信息,如果特征比较值在预设的相似度范围内,则可以确定第一人脸特征信息与第二人脸特征信息匹配。In an embodiment of the present application, after the server receives the user's first facial feature information, it can search the facial feature information database based on the user's username to obtain the second facial feature information corresponding to the username, and then use a preset comparison method to compare the first facial feature information and the second facial feature information. If the feature comparison value is within a preset similarity range, it can be determined that the first facial feature information matches the second facial feature information.

假设本申请实施例中人脸特征信息为通过LBP算法提取出的人脸特征向量:Assume that the facial feature information in the embodiment of the present application is a facial feature vector extracted by the LBP algorithm:

在一个例子中,可以采用欧式距离比较方式比较第一人脸特征信息和第二人脸特征,此时计算第二人脸特征向量与第一人脸特征向量的差值的平方和,如果该平方和小于预设阈值,则可以确定进行身份认证的为用户本人;In one example, the first facial feature information and the second facial feature information may be compared using a Euclidean distance comparison method. The sum of squares of the differences between the second facial feature vector and the first facial feature vector is calculated. If the sum of squares is less than a preset threshold, it can be determined that the person being authenticated is the user.

在另一个例子中,可以采用余弦距离比较方式比较第一人脸特征信息和第二人脸特征,假设第一人脸特征向量为V1,第二人脸特征向量为V2,则可以计算如下公式值:V2*V1/(|V1|*|V2|),如果该公式值大于预设阈值,则可以确定进行身份认证的为用户本人。In another example, the cosine distance comparison method can be used to compare the first facial feature information and the second facial feature. Assuming that the first facial feature vector is V1 and the second facial feature vector is V2, the following formula value can be calculated: V2*V1/(|V1|*|V2|). If the formula value is greater than the preset threshold, it can be determined that the person performing identity authentication is the user himself.

步骤405:服务器向终端发送人脸动态认证提示信息。Step 405: The server sends a dynamic face authentication prompt message to the terminal.

当服务器验证第一人脸特征信息与第二人脸特征信息匹配时,确定进行身份认证的为用户本人,此时开始进行人脸动态认证过程。服务器可以从人脸动态认证提示信息数据库中随机抽取一个人脸动态认证提示信息。When the server verifies that the first facial feature information matches the second facial feature information, it determines that the person being authenticated is the user, and the dynamic facial authentication process begins. The server can randomly extract a dynamic facial authentication prompt information from the dynamic facial authentication prompt information database.

本实施例中人脸动态认证提示信息可以包括表情动作提示信息或者语音读取提示信息。对于表情动作提示信息,其所提示的动作通常是用户便于通过面部姿态呈现的动作,例如,张嘴、闭眼、转头等;对于语音读取提示信息,该信息通常比较短,以便于用户在认证时读取,且便于终端识别用户读取时的面部姿态。In this embodiment, the dynamic facial authentication prompt information may include facial expression prompt information or voice reading prompt information. For facial expression prompt information, the action suggested is usually an action that the user can easily perform through facial gestures, such as opening the mouth, closing the eyes, turning the head, etc.; for voice reading prompt information, the message is usually relatively short, so that the user can read it easily during authentication and the terminal can recognize the user's facial gesture when reading it.

步骤406:终端通过对用户进行人脸跟踪,获得人脸跟踪信息。Step 406: The terminal obtains face tracking information by tracking the user's face.

终端在接收到人脸动态认证提示信息后,可以在认证界面输出人脸动态认证提示信息,用户可以据此信息呈现相应的人脸姿态,在呈现过程中,由终端通过人脸跟踪算法获取用户的人脸跟踪信息。其中,人脸跟踪信息可以包括至少一种下述信息:面部关键点位置信息、人头姿态信息。After receiving the dynamic facial authentication prompt, the terminal can display the dynamic facial authentication prompt on the authentication interface. The user can then present a corresponding facial pose based on this information. During the presentation process, the terminal uses a face tracking algorithm to obtain the user's facial tracking information. The facial tracking information may include at least one of the following: facial key point location information and head pose information.

步骤407:终端分析人脸跟踪信息获得用户的姿态识别信息。Step 407: The terminal analyzes the face tracking information to obtain the user's gesture recognition information.

在一个例子中,假设人脸动态认证提示信息为“张嘴”,则用户相应做出张嘴的动作,终端通过对用户进行人脸跟踪可以获得面部关键点位置信息,具体为嘴部的关键点位置信息,参见图4B和图4C,为本申请实施例中面部关键点位置信息示意图:其中,图4B为正常状态下提取到的用户嘴部关键点位置信息,图4C为用户呈现“张嘴”姿态后提取到的用户嘴部关键点位置信息,通过比较图4B和图4C提取到的关键点位置信息,即比较嘴部上下两个关键点位置的坐标距离就可以获得用户的姿态识别信息为“张嘴”。In an example, assuming that the prompt information for dynamic facial authentication is "open your mouth", the user will make a corresponding action of opening his mouth. The terminal can obtain facial key point position information by tracking the user's face, specifically the key point position information of the mouth. See Figures 4B and 4C, which are schematic diagrams of facial key point position information in an embodiment of the present application: Figure 4B is the user's mouth key point position information extracted under normal conditions, and Figure 4C is the user's mouth key point position information extracted after the user presents an "open mouth" gesture. By comparing the key point position information extracted from Figures 4B and 4C, that is, comparing the coordinate distances of the upper and lower key point positions of the mouth, the user's posture recognition information can be obtained as "open mouth".

在另一个例子中,假设人脸动态认证提示信息为“转头”,则用户相应做出转头的动作,终端通过对用户进行人脸跟踪可以获得人头姿态信息,具体可以如图3B中示出的三个角,如果三个角的角度值满足“转头”所定义的角度值范围,则可获取用户的姿态识别信息为“转头”。In another example, assuming that the prompt information for dynamic facial authentication is "turn head", the user will turn his head accordingly. The terminal can obtain the head posture information by tracking the user's face, specifically the three corners shown in Figure 3B. If the angle values of the three corners meet the angle value range defined by "turn head", the user's posture recognition information can be obtained as "turn head".

步骤408:终端将姿态识别信息发送至服务器。Step 408: The terminal sends the gesture recognition information to the server.

步骤409:服务器验证姿态识别信息与人脸动态认证提示信息是否一致,若是,则执行步骤410;否则,结束当前流程。Step 409: The server verifies whether the gesture recognition information is consistent with the dynamic face authentication prompt information. If so, step 410 is executed; otherwise, the current process ends.

步骤410:服务器确定用户通过身份认证,结束当前流程。Step 410: The server determines that the user has passed the identity authentication and ends the current process.

由上述实施例可见,该实施例将人脸认证与动态认证相结合对用户身份进行高安全性认证,其中通过人脸认证可以初步验证是否为用户本人,相较于现有采用认证密码进行认证的方式,认证信息不易被恶意第三方窃取,提高了认证的可靠性,并且在确认为用户本人的基础上,通过人脸动态认证可以识别用户为活体用户,从而进一步提高身份认证的准确性,降低认证过程中存在的安全隐患。It can be seen from the above embodiments that this embodiment combines face recognition and dynamic authentication to perform high-security authentication of user identity, wherein face recognition can preliminarily verify whether it is the user himself. Compared with the existing authentication method using authentication passwords, authentication information is not easily stolen by malicious third parties, which improves the reliability of authentication. Moreover, on the basis of confirming that it is the user himself, dynamic face authentication can identify the user as a living user, thereby further improving the accuracy of identity authentication and reducing the security risks in the authentication process.

与本申请身份认证方法的实施例相对应,本申请还提供了身份认证装置、终端及服务器的实施例。Corresponding to the embodiment of the identity authentication method of the present application, the present application also provides embodiments of an identity authentication device, a terminal and a server.

本申请身份认证装置的实施例可以分别应用在终端和服务器上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图5所示,为本申请身份认证装置所在设备的一种硬件结构图,除了图5所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的设备通常根据该设备的实际功能,还可以包括其他硬件,如对于终端来说,可能包括摄像头、触摸屏子、通信组件等,对于服务器来说,可能包括负责处理报文的转发芯片等等。The embodiments of the identity authentication device of the present application can be applied to terminals and servers respectively. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the device in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, as shown in Figure 5, it is a hardware structure diagram of the device in which the identity authentication device of the present application is located. In addition to the processor, memory, network interface, and non-volatile memory shown in Figure 5, the device in which the device is located in the embodiment can also include other hardware according to the actual function of the device. For example, for a terminal, it may include a camera, a touch screen, a communication component, etc. For a server, it may include a forwarding chip responsible for processing messages, etc.

参见图6,为本申请身份认证装置的一个实施例框图,该身份认证装置可以应用在终端上,该装置包括:接收单元610、识别单元620和发送单元630。6 , which is a block diagram of an embodiment of an identity authentication device of the present application, the identity authentication device may be applied on a terminal, and the device includes: a receiving unit 610 , an identification unit 620 and a sending unit 630 .

其中,接收单元610,用于在用户进行身份认证时,接收服务器发送的人脸动态认证提示信息;The receiving unit 610 is configured to receive dynamic facial authentication prompt information sent by the server when the user performs identity authentication;

识别单元620,用于通过识别所述用户呈现的人脸姿态,获得所述人脸动态认证提示信息的姿态识别信息;The recognition unit 620 is configured to obtain gesture recognition information of the dynamic facial authentication prompt information by recognizing the facial gesture presented by the user;

发送单元630,用于将所述姿态识别信息发送至所述服务器,以使所述服务器在验证所述姿态识别信息与所述人脸动态认证提示信息一致时,确定所述用户通过身份认证。The sending unit 630 is configured to send the gesture recognition information to the server, so that the server determines that the user has passed the identity authentication when verifying that the gesture recognition information is consistent with the dynamic face authentication prompt information.

在一个可选的实现方式中:In an alternative implementation:

所述识别单元620可以包括(图6中未示出):The identification unit 620 may include (not shown in FIG6 ):

人脸信息获得子单元,用于在所述用户根据所述人脸动态认证提示信息呈现人脸姿态时,通过对所述用户进行人脸跟踪,获得人脸跟踪信息;a face information obtaining subunit, configured to obtain face tracking information by tracking the face of the user when the user presents a face gesture according to the face dynamic authentication prompt information;

人脸信息分析子单元,用于分析所述人脸跟踪信息获得所述用户的姿态识别信息。The face information analysis subunit is used to analyze the face tracking information to obtain the user's posture recognition information.

其中,所述人脸信息分析子单元,可以具体用于当所述人脸跟踪信息为面部关键点位置信息时,通过分析所述面部关键点位置信息获得所述用户的表情姿态识别信息,当所述人脸跟踪信息为人头姿态信息时,通过分析所述人头姿态信息获得所述用户的头部转动识别信息。Among them, the facial information analysis subunit can be specifically used to obtain the user's expression posture recognition information by analyzing the facial key point position information when the facial tracking information is facial key point position information, and to obtain the user's head rotation recognition information by analyzing the head posture information when the facial tracking information is head posture information.

其中,所述人脸动态认证提示信息可以包括至少一种下述信息:表情动作提示信息、语音读取提示信息。The dynamic face authentication prompt information may include at least one of the following information: facial expression prompt information, and voice reading prompt information.

在另一个可选的实现方式中:In another alternative implementation:

所述装置还可以包括(图6中未示出):The apparatus may further comprise (not shown in FIG6 ):

获取单元,用于获取所述用户的人脸特征信息,将所述身份认证时获取的人脸特征信息作为所述用户的第一人脸特征信息;an acquiring unit, configured to acquire facial feature information of the user, and use the facial feature information acquired during identity authentication as first facial feature information of the user;

所述发送单元630,还可以用于向服务器发送所述用户的第一人脸特征信息,以使所述服务器在验证所述第一人脸特征信息与已保存的所述用户的第二人脸特征信息匹配时发送所述人脸动态认证提示信息。The sending unit 630 can also be used to send the user's first facial feature information to the server, so that the server sends the dynamic facial authentication prompt information when verifying that the first facial feature information matches the saved second facial feature information of the user.

可选的,所述获取单元,还可以用于在所述用户进行注册时,获取所述用户的人脸特征信息,将所述注册时获取的人脸特征信息作为所述用户的第二人脸特征信息;所述发送单元630,还可以用于将所述第二人脸特征信息发送至所述服务器,以使所述服务器保存所述用户的用户名与所述第二人脸特征的对应关系。Optionally, the acquisition unit can also be used to obtain the facial feature information of the user when the user registers, and use the facial feature information obtained during registration as the second facial feature information of the user; the sending unit 630 can also be used to send the second facial feature information to the server, so that the server saves the correspondence between the user's username and the second facial feature.

可选的,所述获取单元可以包括:人脸跟踪子单元,用于在检测到所述用户的人脸时,对所述用户进行人脸跟踪;图像获取子单元,用于在所述人脸跟踪过程中按照预设时间间隔获取人脸图像;条件判断子单元,用于判断所述人脸图像是否满足预设的特征提取条件;特征提取子单元,用于若满足所述特征提取条件,则从所述人脸图像中提取所述用户的人脸特征信息。Optionally, the acquisition unit may include: a face tracking subunit, used to track the face of the user when the user's face is detected; an image acquisition subunit, used to acquire a face image at a preset time interval during the face tracking process; a condition judgment subunit, used to judge whether the face image meets a preset feature extraction condition; and a feature extraction subunit, used to extract the user's facial feature information from the face image if the feature extraction condition is met.

其中,所述条件判断子单元可以进一步包括:The condition judgment subunit may further include:

清晰度判断模块,用于判断所述人脸图像的清晰度是否满足预设的清晰度阈值;a clarity judgment module, configured to judge whether the clarity of the facial image meets a preset clarity threshold;

姿态信息提取模块,用于若满足所述清晰度阈值,则从所述人脸图像中提取人头姿态信息,所述人头姿态信息包括至少一个下述角度:低仰头角度、侧脸角度和偏头角度;a posture information extraction module, configured to extract head posture information from the face image if the clarity threshold is met, the head posture information including at least one of the following angles: a low head tilt angle, a side face angle, and a tilted head angle;

角度判断模块,用于判断所述人头姿态信息包含的每个角度是否在预设的角度范围内;An angle judgment module, used to judge whether each angle included in the head posture information is within a preset angle range;

判断确定模块,用于若在预设的角度范围内,则确定所述人脸图像满足所述特征提取条件。The judgment and determination module is used to determine whether the face image meets the feature extraction condition if it is within a preset angle range.

其中,所述特征提取子单元,可以具体用于采用预设特征提取算法,从所述人脸图像中提取人脸特征向量值作为所述用户的人脸特征信息;其中,所述预设特征提取算法可以包括:线性反投影LBP特征提取算法、或加窗傅立叶变换gabor特征提取算法等。Among them, the feature extraction subunit can be specifically used to adopt a preset feature extraction algorithm to extract facial feature vector values from the facial image as the facial feature information of the user; wherein, the preset feature extraction algorithm may include: linear back projection LBP feature extraction algorithm, or windowed Fourier transform Gabor feature extraction algorithm, etc.

参见图7,为本申请身份认证装置的另一个实施例框图,该身份认证装置可以应用在服务器上,该装置包括:发送单元710、接收单元720和确定单元730。7 , which is a block diagram of another embodiment of the identity authentication device of the present application, the identity authentication device may be applied on a server, and the device includes: a sending unit 710 , a receiving unit 720 and a determining unit 730 .

其中,发送单元710,用于在用户进行身份认证时,向终端发送人脸动态认证提示信息;The sending unit 710 is used to send dynamic face authentication prompt information to the terminal when the user performs identity authentication;

接收单元720,用于接收所述终端发送的姿态识别信息,所述姿态识别信息为所述终端通过识别所述用户根据所述人脸动态认证提示信息呈现的人脸姿态,获得的姿态识别信息;A receiving unit 720 is configured to receive gesture recognition information sent by the terminal, where the gesture recognition information is obtained by the terminal by recognizing the facial gesture presented by the user according to the dynamic facial authentication prompt information;

确定单元730,用于当验证所述姿态识别信息与所述人脸动态认证提示信息一致时,确定所述用户通过身份认证。The determination unit 730 is configured to determine that the user has passed the identity authentication when verifying that the gesture recognition information is consistent with the dynamic face authentication prompt information.

在一个可选的实现方式中:In an alternative implementation:

所述接收单元720,还可以用于接收所述终端发送的所述用户的第一人脸特征信息;The receiving unit 720 may also be configured to receive the first facial feature information of the user sent by the terminal;

所述装置还可以包括(图7中未示出):验证单元,用于验证所述第一人脸特征信息与已保存的所述用户的第二人脸特征信息是否匹配;The apparatus may further include (not shown in FIG7 ): a verification unit configured to verify whether the first facial feature information matches the saved second facial feature information of the user;

所述发送单元710,可以具体用于在匹配时,向终端发送人脸动态认证提示信息。The sending unit 710 may be specifically configured to send dynamic face authentication prompt information to the terminal during matching.

可选的,所述接收单元720,还可以用于在所述用户进行注册时,接收所述终端发送的所述用户的第二人脸特征信息;所述装置还可以包括(图7中未示出):保存单元,用于保存所述用户的用户名与所述第二人脸特征信息的对应关系。Optionally, the receiving unit 720 can also be used to receive the second facial feature information of the user sent by the terminal when the user registers; the device can also include (not shown in Figure 7): a saving unit, used to save the correspondence between the user's username and the second facial feature information.

可选的,所述验证单元可以包括:特征查找子单元,用于根据所述用户的用户名查找所述对应关系,获得与所述用户名对应的第二人脸特征信息;特征比较子单元,用于按照预设的比较方式比较所述第一人脸特征信息和所述第二人脸特征信息;匹配确定子单元,用于如果特征比较值在预设的相似度范围内,则确定所述第一人脸特征信息与所述第二人脸特征信息匹配。其中,所述特征比较子单元可以采用的预设的比较方式包括:欧式距离比较方式、或余弦距离比较方式。Optionally, the verification unit may include: a feature search subunit for searching the corresponding relationship based on the user's username to obtain second facial feature information corresponding to the username; a feature comparison subunit for comparing the first facial feature information and the second facial feature information according to a preset comparison method; and a match determination subunit for determining that the first facial feature information and the second facial feature information match if the feature comparison value is within a preset similarity range. The preset comparison methods that can be used by the feature comparison subunit include: a Euclidean distance comparison method or a cosine distance comparison method.

上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

由上述实施例可见,在对用户进行身份认证时,通过人脸动态认证方式可以对用户身份进行高安全性认证,相较于现有采用认证密码进行认证的方式,认证信息不会被恶意第三方窃取,提高了认证的可靠性,并且通过人脸动态认证可以识别用户为活体用户,从而进一步提高身份认证的准确性,降低认证过程中存在的安全隐患。It can be seen from the above embodiments that when authenticating a user, the user identity can be highly securely authenticated through dynamic facial authentication. Compared with the existing authentication method using an authentication password, the authentication information will not be stolen by malicious third parties, which improves the reliability of authentication. In addition, dynamic facial authentication can identify the user as a living user, thereby further improving the accuracy of identity authentication and reducing security risks in the authentication process.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims (24)

1.一种身份认证方法,其特征在于,所述方法包括:1. An identity authentication method, characterized in that the method comprises: 在用户进行身份认证时,接收服务器发送的人脸动态认证提示信息;其中,所述人脸动态认证提示信息包括至少一种下述信息:表情动作提示信息、语音读取提示信息;When a user performs identity authentication, the system receives a dynamic facial authentication prompt message sent by the server; wherein the dynamic facial authentication prompt message includes at least one of the following: facial expression prompt message and voice reading prompt message; 通过识别所述用户呈现的人脸姿态,获得所述表情动作提示信息的姿态识别信息;By recognizing the facial posture presented by the user, the posture recognition information of the facial expression prompt information is obtained; 通过识别所述用户的音频信息,获取所述语音读取提示信息的语音信息;By recognizing the user's audio information, the voice information of the voice reading prompt is obtained; 将所述姿态识别信息和语音信息发送至所述服务器,以使所述服务器在验证所述姿态识别信息与所述表情动作提示信息一致和在验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证;The gesture recognition information and voice information are sent to the server so that the server determines that the user has passed identity authentication when verifying that the gesture recognition information is consistent with the facial expression prompt information and that the voice information is consistent with the voice reading prompt information. 其中,当所述人脸动态认证提示信息为语音读取提示信息时,通过识别所述用户读取所述语音读取提示信息时每个词的发音对应的嘴型姿态,获取所述语音读取提示信息的嘴型识别信息;When the facial dynamic authentication prompt is a voice reading prompt, the mouth shape recognition information of the voice reading prompt is obtained by recognizing the mouth shape posture corresponding to the pronunciation of each word when the user reads the voice reading prompt. 通过识别所述用户的音频信息,获取所述语音读取提示信息的语音信息;By recognizing the user's audio information, the voice information of the voice reading prompt is obtained; 将所述嘴型识别信息和语音信息发送至所述服务器,以使所述服务器在验证所述嘴型识别信息与所述语音读取提示信息的嘴型一致和在验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证。The lip-reading recognition information and voice information are sent to the server so that the server determines that the user has passed identity authentication when it verifies that the lip-reading recognition information matches the lip shape of the voice reading prompt information and when it verifies that the voice information matches the voice reading prompt information. 2.根据权利要求1所述的方法,其特征在于,所述通过识别所述用户呈现的人脸姿态,获得所述表情动作提示信息的姿态识别信息,包括:2. The method according to claim 1, characterized in that, obtaining the posture recognition information of the facial expression prompt information by recognizing the facial posture presented by the user includes: 在所述用户根据所述表情动作提示信息呈现人脸姿态时,通过对所述用户进行人脸跟踪,获得人脸跟踪信息;When the user presents a facial posture according to the facial expression prompt information, facial tracking information is obtained by performing facial tracking on the user; 分析所述人脸跟踪信息获得所述用户的姿态识别信息。The user's pose recognition information is obtained by analyzing the face tracking information. 3.根据权利要求2所述的方法,其特征在于,所述分析所述人脸跟踪信息获得所述用户的姿态识别信息,包括:3. The method according to claim 2, wherein analyzing the face tracking information to obtain the user's pose recognition information includes: 当所述人脸跟踪信息为面部关键点位置信息时,通过分析所述面部关键点位置信息获得所述用户的表情姿态识别信息;When the face tracking information is facial key point location information, the user's facial expression and posture recognition information is obtained by analyzing the facial key point location information. 当所述人脸跟踪信息为人头姿态信息时,通过分析所述人头姿态信息获得所述用户的头部转动识别信息。When the face tracking information is head posture information, the user's head rotation recognition information is obtained by analyzing the head posture information. 4.根据权利要求1所述的方法,其特征在于,所述接收所述服务器发送的人脸动态认证提示信息之前,所述方法还包括:4. The method according to claim 1, characterized in that, before receiving the face dynamic authentication prompt information sent by the server, the method further includes: 获取所述用户的人脸特征信息,将所述身份认证时获取的人脸特征信息作为所述用户的第一人脸特征信息;Obtain the user's facial feature information, and use the facial feature information obtained during identity authentication as the user's first facial feature information; 向服务器发送所述用户的第一人脸特征信息,以使所述服务器在验证所述第一人脸特征信息与已保存的所述用户的第二人脸特征信息匹配时发送所述人脸动态认证提示信息。The user's first facial feature information is sent to the server so that the server sends the dynamic facial authentication prompt information when verifying that the first facial feature information matches the user's saved second facial feature information. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, characterized in that the method further comprises: 在所述用户进行注册时,获取所述用户的人脸特征信息,将所述注册时获取的人脸特征信息作为所述用户的第二人脸特征信息;When a user registers, the user's facial feature information is obtained, and the facial feature information obtained during registration is used as the user's second facial feature information; 将所述第二人脸特征信息发送至所述服务器,以使所述服务器保存所述用户的用户名与所述第二人脸特征的对应关系。The second facial feature information is sent to the server so that the server can save the correspondence between the user's username and the second facial feature. 6.根据权利要求4或5所述的方法,其特征在于,所述获取所述用户的人脸特征信息,包括:6. The method according to claim 4 or 5, wherein obtaining the user's facial feature information includes: 在检测到所述用户的人脸时,对所述用户进行人脸跟踪;When the user's face is detected, face tracking is performed on the user; 在所述人脸跟踪过程中按照预设时间间隔获取人脸图像;During the face tracking process, face images are acquired at preset time intervals; 判断所述人脸图像是否满足预设的特征提取条件;Determine whether the face image meets the preset feature extraction conditions; 若满足所述特征提取条件,则从所述人脸图像中提取所述用户的人脸特征信息。If the feature extraction conditions are met, then the user's facial feature information is extracted from the face image. 7.根据权利要求6所述的方法,其特征在于,所述判断所述人脸图像是否满足预设的特征提取条件,包括:7. The method according to claim 6, wherein determining whether the face image meets the preset feature extraction conditions includes: 判断所述人脸图像的清晰度是否满足预设的清晰度阈值;Determine whether the clarity of the face image meets a preset clarity threshold; 若满足所述清晰度阈值,则从所述人脸图像中提取人头姿态信息,所述人头姿态信息包括至少一个下述角度:低仰头角度、侧脸角度和偏头角度;If the clarity threshold is met, then head posture information is extracted from the face image. The head posture information includes at least one of the following angles: low head tilt angle, side face angle, and head tilt angle. 判断所述人头姿态信息包含的每个角度是否在预设的角度范围内;Determine whether each angle included in the human head posture information is within a preset angle range; 若在预设的角度范围内,则确定所述人脸图像满足所述特征提取条件。If the angle is within the preset range, then the face image is determined to meet the feature extraction conditions. 8.一种身份认证方法,其特征在于,所述方法包括:8. An identity authentication method, characterized in that the method comprises: 在用户进行身份认证时,向终端发送人脸动态认证提示信息;其中,所述人脸动态认证提示信息包括至少一种下述信息:表情动作提示信息、语音读取提示信息;When a user performs identity authentication, a dynamic facial authentication prompt message is sent to the terminal; wherein, the dynamic facial authentication prompt message includes at least one of the following: facial expression prompt message and voice reading prompt message; 接收所述终端发送的姿态识别信息和语音信息,所述姿态识别信息为所述终端通过识别所述用户根据所述表情动作提示信息呈现的人脸姿态,获得的姿态识别信息,所述语音信息为所述终端通过识别所述用户根据所述语音读取提示信息发出的音频信息获取得的语音信息;The terminal receives posture recognition information and voice information. The posture recognition information is obtained by the terminal by recognizing the facial posture presented by the user according to the facial expression prompt information. The voice information is obtained by the terminal by recognizing the audio information emitted by the user according to the voice reading prompt information. 当验证所述姿态识别信息与所述表情动作提示信息一致和验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证;When the gesture recognition information is verified to be consistent with the facial expression prompt information and the voice information is verified to be consistent with the voice reading prompt information, it is determined that the user has passed the identity authentication. 其中,当所述人脸动态认证提示信息为语音读取提示信息时,接收所述终端发送的嘴型识别信息和语音信息,所述嘴型识别信息为所述终端通过识别所述用户读取所述语音读取提示信息时每个词的发音对应的嘴型姿态,获得的嘴型识别信息,所述语音信息为所述终端通过识别所述用户根据所述语音读取提示信息发出的音频信息获取得的语音信息;When the facial dynamic authentication prompt is a voice reading prompt, the terminal receives lip shape recognition information and voice information. The lip shape recognition information is obtained by the terminal by recognizing the lip shape posture corresponding to the pronunciation of each word when the user reads the voice reading prompt. The voice information is obtained by the terminal by recognizing the audio information emitted by the user according to the voice reading prompt. 当验证所述嘴型识别信息与所述语音读取提示信息的嘴型一致和验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证。When the lip-reading recognition information matches the lip-reading information in the voice reading prompt and the voice information matches the voice reading prompt, the user is determined to have passed identity authentication. 9.根据权利要求8所述的方法,其特征在于,向终端发送人脸动态认证提示信息之前,所述方法还包括:9. The method according to claim 8, characterized in that, before sending the dynamic face authentication prompt information to the terminal, the method further includes: 接收所述终端发送的所述用户的第一人脸特征信息;Receive the user's first facial feature information sent by the terminal; 验证所述第一人脸特征信息与已保存的所述用户的第二人脸特征信息是否匹配;Verify whether the first facial feature information matches the saved second facial feature information of the user; 若匹配,则执行所述向终端发送人脸动态认证提示信息。If a match is found, then the process of sending a dynamic facial authentication prompt to the terminal is executed. 10.根据权利要求9所述的方法,其特征在于,所述方法还包括:10. The method according to claim 9, wherein the method further comprises: 在所述用户进行注册时,接收所述终端发送的所述用户的第二人脸特征信息;When the user registers, the terminal sends the user's second facial feature information. 保存所述用户的用户名与所述第二人脸特征信息的对应关系。The correspondence between the user's username and the second facial feature information is saved. 11.根据权利要求10所述的方法,其特征在于,所述验证所述第一人脸特征信息与已保存的所述用户的第二人脸特征信息是否匹配,包括:11. The method according to claim 10, wherein verifying whether the first facial feature information matches the saved second facial feature information of the user includes: 根据所述用户的用户名查找所述对应关系,获得与所述用户名对应的第二人脸特征信息;Based on the user's username, the corresponding relationship is searched to obtain the second facial feature information corresponding to the username; 采用预设的比较方式比较所述第一人脸特征信息和所述第二人脸特征信息;The first facial feature information and the second facial feature information are compared using a preset comparison method; 如果特征比较值在预设的相似度范围内,则确定所述第一人脸特征信息与所述第二人脸特征信息匹配。If the feature comparison value is within a preset similarity range, then the first facial feature information is determined to match the second facial feature information. 12.一种身份认证装置,其特征在于,所述装置包括:12. An identity authentication device, characterized in that the device comprises: 接收单元,用于在用户进行身份认证时,接收服务器发送的人脸动态认证提示信息;其中,所述人脸动态认证提示信息包括至少一种下述信息:表情动作提示信息、语音读取提示信息;The receiving unit is used to receive dynamic facial authentication prompt information sent by the server when the user performs identity authentication; wherein, the dynamic facial authentication prompt information includes at least one of the following: facial expression prompt information and voice reading prompt information; 识别单元,用于通过识别所述用户呈现的人脸姿态,获得所述表情动作提示信息的姿态识别信息,通过识别所述用户的音频信息,获取所述语音读取提示信息的语音信息;The recognition unit is used to obtain the posture recognition information of the facial expression prompt information by recognizing the facial posture presented by the user, and to obtain the voice information of the voice reading prompt information by recognizing the user's audio information; 发送单元,用于将所述姿态识别信息和语音信息发送至所述服务器,以使所述服务器在验证所述姿态识别信息与所述表情动作提示信息一致和在验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证The sending unit is configured to send the gesture recognition information and voice information to the server, so that the server determines that the user has passed authentication when verifying that the gesture recognition information is consistent with the facial expression prompt information and that the voice information is consistent with the voice reading prompt information. 其中,在所述人脸动态认证提示信息为语音读取提示信息时,所述识别单元用于通过识别所述用户读取所述语音读取提示信息时每个词的发音对应的嘴型姿态,获取所述语音读取提示信息的嘴型识别信息,通过识别所述用户的音频信息,获取所述语音读取提示信息的语音信息;Wherein, when the face dynamic authentication prompt information is a voice reading prompt information, the recognition unit is used to obtain the mouth shape recognition information of the voice reading prompt information by recognizing the mouth shape posture corresponding to the pronunciation of each word when the user reads the voice reading prompt information, and to obtain the voice information of the voice reading prompt information by recognizing the user's audio information; 所述发送单元用于将所述嘴型识别信息和语音信息发送至所述服务器,以使所述服务器在验证所述嘴型识别信息与所述语音读取提示信息的嘴型一致和在验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证。The sending unit is used to send the lip-shape recognition information and voice information to the server, so that the server determines that the user has passed identity authentication when verifying that the lip-shape recognition information matches the lip shape of the voice reading prompt information and when verifying that the voice information matches the voice reading prompt information. 13.根据权利要求12所述的装置,其特征在于,所述识别单元包括:13. The apparatus according to claim 12, wherein the identification unit comprises: 人脸信息获得子单元,用于在所述用户根据所述表情动作提示信息呈现人脸姿态时,通过对所述用户进行人脸跟踪,获得人脸跟踪信息;The face information acquisition subunit is used to obtain face tracking information by performing face tracking on the user when the user presents a face posture according to the facial expression and action prompt information; 人脸信息分析子单元,用于分析所述人脸跟踪信息获得所述用户的姿态识别信息。The face information analysis subunit is used to analyze the face tracking information to obtain the user's posture recognition information. 14.根据权利要求13所述的装置,其特征在于,14. The apparatus according to claim 13, characterized in that, 所述人脸信息分析子单元,具体用于当所述人脸跟踪信息为面部关键点位置信息时,通过分析所述面部关键点位置信息获得所述用户的表情姿态识别信息,当所述人脸跟踪信息为人头姿态信息时,通过分析所述人头姿态信息获得所述用户的头部转动识别信息。The face information analysis subunit is specifically used to obtain the user's expression and posture recognition information by analyzing the facial key point location information when the face tracking information is facial key point location information, and to obtain the user's head rotation recognition information by analyzing the head posture information when the face tracking information is head posture information. 15.根据权利要求12所述的装置,其特征在于,所述装置还包括:15. The apparatus according to claim 12, wherein the apparatus further comprises: 获取单元,用于获取所述用户的人脸特征信息,将所述身份认证时获取的人脸特征信息作为所述用户的第一人脸特征信息;The acquisition unit is used to acquire the user's facial feature information and use the facial feature information acquired during identity authentication as the user's first facial feature information. 所述发送单元,还用于向服务器发送所述用户的第一人脸特征信息,以使所述服务器在验证所述第一人脸特征信息与已保存的所述用户的第二人脸特征信息匹配时发送所述人脸动态认证提示信息。The sending unit is further configured to send the user's first facial feature information to the server, so that the server sends the dynamic facial authentication prompt information when verifying that the first facial feature information matches the user's saved second facial feature information. 16.根据权利要求15所述的装置,其特征在于,16. The apparatus according to claim 15, characterized in that, 所述获取单元,还用于在所述用户进行注册时,获取所述用户的人脸特征信息,将所述注册时获取的人脸特征信息作为所述用户的第二人脸特征信息;The acquisition unit is further configured to acquire the user's facial feature information when the user registers, and use the facial feature information acquired during registration as the user's second facial feature information; 所述发送单元,还用于将所述第二人脸特征信息发送至所述服务器,以使所述服务器保存所述用户的用户名与所述第二人脸特征的对应关系。The sending unit is further configured to send the second facial feature information to the server, so that the server can save the correspondence between the user's username and the second facial feature. 17.根据权利要求15或16所述的装置,其特征在于,所述获取单元包括:17. The apparatus according to claim 15 or 16, wherein the acquiring unit comprises: 人脸跟踪子单元,用于在检测到所述用户的人脸时,对所述用户进行人脸跟踪;A face tracking subunit is used to perform face tracking on the user when the user's face is detected. 图像获取子单元,用于在所述人脸跟踪过程中按照预设时间间隔获取人脸图像;An image acquisition subunit is used to acquire face images at preset time intervals during the face tracking process; 条件判断子单元,用于判断所述人脸图像是否满足预设的特征提取条件;The condition judgment subunit is used to determine whether the face image meets the preset feature extraction conditions; 特征提取子单元,用于若满足所述特征提取条件,则从所述人脸图像中提取所述用户的人脸特征信息。The feature extraction subunit is used to extract the user's facial feature information from the face image if the feature extraction conditions are met. 18.根据权利要求17所述的装置,其特征在于,所述条件判断子单元包括:18. The apparatus according to claim 17, wherein the condition determination subunit comprises: 清晰度判断模块,用于判断所述人脸图像的清晰度是否满足预设的清晰度阈值;A sharpness determination module is used to determine whether the sharpness of the face image meets a preset sharpness threshold. 姿态信息提取模块,用于若满足所述清晰度阈值,则从所述人脸图像中提取人头姿态信息,所述人头姿态信息包括至少一个下述角度:低仰头角度、侧脸角度和偏头角度;The pose information extraction module is used to extract head pose information from the face image if the clarity threshold is met. The head pose information includes at least one of the following angles: low head tilt angle, side face angle, and head tilt angle. 角度判断模块,用于判断所述人头姿态信息包含的每个角度是否在预设的角度范围内;An angle determination module is used to determine whether each angle contained in the human head posture information is within a preset angle range; 判断确定模块,用于若在预设的角度范围内,则确定所述人脸图像满足所述特征提取条件。The determination module is used to determine that if the face image is within a preset angle range, it satisfies the feature extraction conditions. 19.一种身份认证装置,其特征在于,所述装置包括:19. An identity authentication device, characterized in that the device comprises: 发送单元,用于在用户进行身份认证时,向终端发送人脸动态认证提示信息;其中,所述人脸动态认证提示信息包括至少一种下述信息:表情动作提示信息、语音读取提示信息;The sending unit is used to send dynamic facial authentication prompt information to the terminal when the user performs identity authentication; wherein, the dynamic facial authentication prompt information includes at least one of the following: facial expression prompt information and voice reading prompt information; 接收单元,用于接收所述终端发送的姿态识别信息和语音信息,所述姿态识别信息为所述终端通过识别所述用户根据所述表情动作提示信息呈现的人脸姿态,获得的姿态识别信息,所述语音信息为所述终端通过识别所述用户根据所述语音读取提示信息发出的音频信息获取得的语音信息;The receiving unit is configured to receive posture recognition information and voice information sent by the terminal. The posture recognition information is obtained by the terminal by recognizing the facial posture presented by the user according to the facial expression prompt information. The voice information is obtained by the terminal by recognizing the audio information emitted by the user according to the voice reading prompt information. 确定单元,用于当验证所述姿态识别信息与所述表情动作提示信息一致和验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证;The determining unit is configured to determine that the user has passed identity authentication when verifying that the posture recognition information is consistent with the facial expression prompt information and that the voice information is consistent with the voice reading prompt information. 其中,当所述人脸动态认证提示信息为语音读取提示信息时,所述接收单元用于接收所述终端发送的嘴型识别信息和语音信息,所述嘴型识别信息为所述终端通过识别所述用户读取所述语音读取提示信息时每个词的发音对应的嘴型姿态,获得的嘴型识别信息,所述语音信息为所述终端通过识别所述用户根据所述语音读取提示信息发出的音频信息获取得的语音信息;Wherein, when the face dynamic authentication prompt information is a voice reading prompt information, the receiving unit is used to receive the lip shape recognition information and voice information sent by the terminal. The lip shape recognition information is the lip shape recognition information obtained by the terminal by recognizing the lip shape posture corresponding to the pronunciation of each word when the user reads the voice reading prompt information. The voice information is the voice information obtained by the terminal by recognizing the audio information emitted by the user according to the voice reading prompt information. 所述确定单元用于当验证所述嘴型识别信息与所述语音读取提示信息的嘴型一致和验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证。The determining unit is used to determine that the user has passed identity authentication when verifying that the lip shape recognition information matches the lip shape of the voice reading prompt information and that the voice information matches the voice reading prompt information. 20.根据权利要求19所述的装置,其特征在于,20. The apparatus according to claim 19, characterized in that, 所述接收单元,还用于接收所述终端发送的所述用户的第一人脸特征信息;The receiving unit is further configured to receive the user's first facial feature information sent by the terminal; 所述装置还包括:The device further includes: 验证单元,用于验证所述第一人脸特征信息与已保存的所述用户的第二人脸特征信息是否匹配;The verification unit is used to verify whether the first facial feature information matches the saved second facial feature information of the user; 所述发送单元,具体用于在匹配时,向终端发送人脸动态认证提示信息。The sending unit is specifically used to send a dynamic face authentication prompt message to the terminal during matching. 21.根据权利要求20所述的装置,其特征在于,21. The apparatus according to claim 20, characterized in that, 所述接收单元,还用于在所述用户进行注册时,接收所述终端发送的所述用户的第二人脸特征信息;The receiving unit is also configured to receive the user's second facial feature information sent by the terminal when the user registers; 所述装置还包括:The device further includes: 保存单元,用于保存所述用户的用户名与所述第二人脸特征信息的对应关系。The storage unit is used to store the correspondence between the user's username and the second facial feature information. 22.根据权利要求21所述的装置,其特征在于,所述验证单元包括:22. The apparatus according to claim 21, wherein the verification unit comprises: 特征查找子单元,用于根据所述用户的用户名查找所述对应关系,获得与所述用户名对应的第二人脸特征信息;The feature lookup subunit is used to look up the corresponding relationship based on the user's username and obtain the second facial feature information corresponding to the username; 特征比较子单元,用于按照预设的比较方式比较所述第一人脸特征信息和所述第二人脸特征信息;The feature comparison subunit is used to compare the first facial feature information and the second facial feature information according to a preset comparison method; 匹配确定子单元,用于如果特征比较值在预设的相似度范围内,则确定所述第一人脸特征信息与所述第二人脸特征信息匹配。The matching determination subunit is used to determine that the first facial feature information matches the second facial feature information if the feature comparison value is within a preset similarity range. 23.一种终端,其特征在于,包括:23. A terminal, characterized in that it comprises: 处理器;用于存储所述处理器可执行指令的存储器;Processor; memory for storing instructions executable by the processor; 其中,所述处理器被配置为:The processor is configured as follows: 在用户进行身份认证时,接收服务器发送的人脸动态认证提示信息;其中,所述人脸动态认证提示信息包括至少一种下述信息:表情动作提示信息、语音读取提示信息;When a user performs identity authentication, the system receives a dynamic facial authentication prompt message sent by the server; wherein the dynamic facial authentication prompt message includes at least one of the following: facial expression prompt message and voice reading prompt message; 通过识别所述用户呈现的人脸姿态,获得所述表情动作提示信息的姿态识别信息;By recognizing the facial posture presented by the user, the posture recognition information of the facial expression prompt information is obtained; 通过识别所述用户的音频信息,获取所述语音读取提示信息的语音信息;By recognizing the user's audio information, the voice information of the voice reading prompt is obtained; 将所述姿态识别信息和语音信息发送至所述服务器,以使所述服务器在验证所述姿态识别信息与所述表情动作提示信息一致和在验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证;The gesture recognition information and voice information are sent to the server so that the server determines that the user has passed identity authentication when verifying that the gesture recognition information is consistent with the facial expression prompt information and that the voice information is consistent with the voice reading prompt information. 其中,当所述人脸动态认证提示信息为语音读取提示信息时,通过识别所述用户读取所述语音读取提示信息时每个词的发音对应的嘴型姿态,获取所述语音读取提示信息的嘴型识别信息;When the facial dynamic authentication prompt is a voice reading prompt, the mouth shape recognition information of the voice reading prompt is obtained by recognizing the mouth shape posture corresponding to the pronunciation of each word when the user reads the voice reading prompt. 通过识别所述用户的音频信息,获取所述语音读取提示信息的语音信息;By recognizing the user's audio information, the voice information of the voice reading prompt is obtained; 将所述嘴型识别信息和语音信息发送至所述服务器,以使所述服务器在验证所述嘴型识别信息与所述语音读取提示信息的嘴型一致和在验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证。The lip-reading recognition information and voice information are sent to the server so that the server determines that the user has passed identity authentication when it verifies that the lip-reading recognition information matches the lip shape of the voice reading prompt information and when it verifies that the voice information matches the voice reading prompt information. 24.一种服务器,其特征在于,包括:24. A server, characterized in that it comprises: 处理器;用于存储所述处理器可执行指令的存储器;Processor; memory for storing instructions executable by the processor; 其中,所述处理器被配置为:The processor is configured as follows: 在用户进行身份认证时,向终端发送人脸动态认证提示信息;其中,所述人脸动态认证提示信息包括至少一种下述信息:表情动作提示信息、语音读取提示信息;When a user performs identity authentication, a dynamic facial authentication prompt message is sent to the terminal; wherein, the dynamic facial authentication prompt message includes at least one of the following: facial expression prompt message and voice reading prompt message; 接收所述终端发送的姿态识别信息和语音信息,所述姿态识别信息为所述终端通过识别所述用户根据所述表情动作提示信息呈现的人脸姿态,获得的姿态识别信息,所述语音信息为所述终端通过识别所述用户根据所述语音读取提示信息发出的音频信息获取得的语音信息;The terminal receives posture recognition information and voice information. The posture recognition information is obtained by the terminal by recognizing the facial posture presented by the user according to the facial expression prompt information. The voice information is obtained by the terminal by recognizing the audio information emitted by the user according to the voice reading prompt information. 当验证所述姿态识别信息与所述表情动作提示信息一致和验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证;When the gesture recognition information is verified to be consistent with the facial expression prompt information and the voice information is verified to be consistent with the voice reading prompt information, it is determined that the user has passed the identity authentication. 其中,当所述人脸动态认证提示信息为语音读取提示信息时,接收所述终端发送的嘴型识别信息和语音信息,所述嘴型识别信息为所述终端通过识别所述用户读取所述语音读取提示信息时每个词的发音对应的嘴型姿态,获得的嘴型识别信息,所述语音信息为所述终端通过识别所述用户根据所述语音读取提示信息发出的音频信息获取得的语音信息;When the facial dynamic authentication prompt is a voice reading prompt, the terminal receives lip shape recognition information and voice information. The lip shape recognition information is obtained by the terminal by recognizing the lip shape posture corresponding to the pronunciation of each word when the user reads the voice reading prompt. The voice information is obtained by the terminal by recognizing the audio information emitted by the user according to the voice reading prompt. 当验证所述嘴型识别信息与所述语音读取提示信息的嘴型一致和验证所述语音信息与所述语音读取提示信息一致时,确定所述用户通过身份认证。When the lip-reading recognition information matches the lip-reading information in the voice reading prompt and the voice information matches the voice reading prompt, the user is determined to have passed identity authentication.
HK16109898.6A 2016-08-18 Method and device for identity authentication, terminal and server HK1221795B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410446657.0A CN105468950B (en) 2014-09-03 2014-09-03 Identity authentication method, device, terminal and server

Publications (2)

Publication Number Publication Date
HK1221795A1 HK1221795A1 (en) 2017-06-09
HK1221795B true HK1221795B (en) 2021-04-01

Family

ID=

Similar Documents

Publication Publication Date Title
CN105468950B (en) Identity authentication method, device, terminal and server
TWI578181B (en) Electronic device, authenticating system and method
US10135818B2 (en) User biological feature authentication method and system
CN108804884B (en) Identity authentication method, device and computer storage medium
US9122913B2 (en) Method for logging a user in to a mobile device
US20190012450A1 (en) Biometric-based authentication method, apparatus and system
JP2018500634A (en) Personal authentication method and apparatus
WO2017198014A1 (en) Identity authentication method and apparatus
CN106778525A (en) Identity identifying method and device
CN106603563A (en) Information safety realization method and system based on biometric features identification
BR112015017601B1 (en) USER AUTHENTICATION METHOD AND DEVICE BASED ON AUDIO AND VIDEO DATA
CN105005779A (en) Face verification anti-counterfeit recognition method and system thereof based on interactive action
KR101724971B1 (en) System for recognizing face using wide angle camera and method for recognizing face thereof
US20210243186A1 (en) Systems and methods for providing data access based on physical proximity to device
US10547610B1 (en) Age adapted biometric authentication
WO2018090471A1 (en) Fingerprint authentication method and device
CN105407069B (en) Living body authentication method, apparatus, client device and server
EP1792267A1 (en) Feature extraction algorithm for automatic ear recognition
WO2017041358A1 (en) User identity recognition method and apparatus, and mobile terminal
CN107483423A (en) A user login verification method
US11995167B2 (en) Systems and methods for authenticating user identity using supplemental environment data
HK1221795B (en) Method and device for identity authentication, terminal and server
KR101718244B1 (en) Apparatus and method of processing wide angle image for recognizing face
CN104518877A (en) Identity authentication system and method
HK1226206B (en) Method, apparatus, client device and sever for living body authentication