CN112115925A - Face recognition method and device and computer readable storage medium - Google Patents

Face recognition method and device and computer readable storage medium Download PDF

Info

Publication number
CN112115925A
CN112115925A CN202011292078.7A CN202011292078A CN112115925A CN 112115925 A CN112115925 A CN 112115925A CN 202011292078 A CN202011292078 A CN 202011292078A CN 112115925 A CN112115925 A CN 112115925A
Authority
CN
China
Prior art keywords
face recognition
interference information
face
light intensity
recognition method
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
CN202011292078.7A
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.)
Peng Cheng Laboratory
Original Assignee
Peng Cheng Laboratory
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 Peng Cheng Laboratory filed Critical Peng Cheng Laboratory
Priority to CN202011292078.7A priority Critical patent/CN112115925A/en
Publication of CN112115925A publication Critical patent/CN112115925A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • 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/172Classification, e.g. identification

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Collating Specific Patterns (AREA)

Abstract

本发明公开了一种人脸识别方法、装置及计算机可读存储介质,所述人脸识别方法包括:通过获取干扰信息;将干扰信息调制为光强控制信号,并将光强控制信号发送至照明装置,以使照明装置按照光强控制信号调整光强度;获取摄像头检测到的人脸图像,所述人脸图像包括所述照明装置的光强度信息;根据人脸图像进行人脸识别。本发明有利于提高人脸识别系统的安全性。

Figure 202011292078

The invention discloses a face recognition method, a device and a computer-readable storage medium. The face recognition method includes: obtaining interference information; modulating the interference information into a light intensity control signal, and sending the light intensity control signal to a an illuminating device, so that the illuminating device adjusts the light intensity according to the light intensity control signal; acquires a face image detected by the camera, the face image includes the light intensity information of the illuminating device; and performs face recognition according to the face image. The invention is beneficial to improve the security of the face recognition system.

Figure 202011292078

Description

人脸识别方法、装置及计算机可读存储介质Face recognition method, device and computer readable storage medium

技术领域technical field

本发明涉及图像识别领域,尤其涉及一种人脸识别方法、装置及计算机可读存储介质。The present invention relates to the field of image recognition, and in particular, to a face recognition method, device and computer-readable storage medium.

背景技术Background technique

针对人脸识别系统的干扰。呈现攻击使用照片、3D人脸面具等设备伪造人脸从而欺骗人脸识别系统,其操作简单、成本低廉、技术门槛低、干扰效果好,但目前已有多种针对该干扰方法的检测方案,目前针对人脸识别方法在实用场景中对人脸识别系统的威胁性较低,已难以帮助人脸识别系统进一步突破安全性的瓶颈。Interference with face recognition systems. The present attack uses photos, 3D face masks and other equipment to forge faces to deceive the face recognition system. It has simple operation, low cost, low technical threshold and good interference effect. However, there are currently many detection schemes for this interference method. At present, the threat of face recognition methods to face recognition systems in practical scenarios is low, and it is difficult to help face recognition systems to further break through the bottleneck of security.

发明内容SUMMARY OF THE INVENTION

本发明实施例通过提供一种人脸识别方法、装置及计算机可读存储介质,旨在解决目前针对呈现攻击方法在实用场景中对人脸识别系统的威胁性较低,已难以帮助人脸识别系统进一步突破安全性的瓶颈问题。By providing a face recognition method, device and computer-readable storage medium, the embodiments of the present invention aim to solve the problem that the present attack method is less threatening to the face recognition system in practical scenarios, and it is difficult to help face recognition The system further breaks through the bottleneck of security.

本发明实施例的第一方面提供一种人脸识别方法,所述人脸识别方法包括:A first aspect of the embodiments of the present invention provides a face recognition method, and the face recognition method includes:

获取干扰信息;obtain interference information;

将所述干扰信息调制为光强控制信号,并将所述光强控制信号发送至照明装置,以使所述照明装置按照所述光强控制信号调整光强度;modulating the interference information into a light intensity control signal, and sending the light intensity control signal to the lighting device, so that the lighting device adjusts the light intensity according to the light intensity control signal;

获取摄像头检测到的人脸图像,所述人脸图像包括所述照明装置的光强度信息;acquiring a face image detected by a camera, where the face image includes light intensity information of the lighting device;

根据所述人脸图像进行人脸识别。Face recognition is performed according to the face image.

在一实施例中,所述获取干扰信息的步骤包括:In one embodiment, the step of obtaining the interference information includes:

确定干扰类型;determine the type of interference;

根据所述干扰类型,获取所述干扰信息。The interference information is acquired according to the interference type.

在一实施例中,所述根据所述干扰类型,获取所述干扰信息的步骤包括:In an embodiment, the step of obtaining the interference information according to the interference type includes:

在所述干扰类型为粗明暗条纹时,生成长游程的干扰信息。When the interference type is coarse light and dark stripes, long-run interference information is generated.

在一实施例中,所述根据所述干扰类型,获取所述干扰信息的步骤包括:In an embodiment, the step of obtaining the interference information according to the interference type includes:

在所述干扰类型为细明暗条纹时,生成短游程的干扰信息。When the interference type is fine light and dark stripes, short-run interference information is generated.

在一实施例中,所述将所述干扰信息调制为光强控制信号的步骤包括:In an embodiment, the step of modulating the interference information into a light intensity control signal includes:

根据所述干扰信息,确定所述干扰信息中的光强度与时间点的曲线变化关系;According to the interference information, determine the curve change relationship between the light intensity and the time point in the interference information;

根据所述曲线变化关系,生成高低电平的所述光强控制信号。According to the curve change relationship, the light intensity control signal of high and low levels is generated.

在一实施例中,所述根据所述人脸图像进行人脸识别的步骤之后,还包括:In one embodiment, after the step of performing face recognition according to the face image, it further includes:

确定所述人脸图像的第一图像梯度;determining the first image gradient of the face image;

将所述第一图像梯度与预存的第二图像梯度进行对比,得到比对的结果;Comparing the first image gradient with the pre-stored second image gradient to obtain a comparison result;

根据所述比对的结果,确定人脸识别结果。According to the comparison result, the face recognition result is determined.

在一实施例中,所述根据所述比对的结果,确定人脸识别结果的步骤包括:In one embodiment, the step of determining the face recognition result according to the comparison result includes:

在所述第一图像梯度与所述第二图像梯度相似度大于等于预设值时,确定人脸识别成功;When the similarity between the first image gradient and the second image gradient is greater than or equal to a preset value, it is determined that the face recognition is successful;

在所述第一图像梯度与所述第二图像梯度相似度低于所述预设值时,确定人脸识别失败。When the similarity between the first image gradient and the second image gradient is lower than the preset value, it is determined that face recognition fails.

在一实施例中,所述据所述比对的结果,确定人脸识别结果的步骤之后,还包括:In one embodiment, after the step of determining the face recognition result according to the comparison result, it further includes:

输出所述人脸识别结果。Output the face recognition result.

为实现上述目的,本发明提供了一种人脸识别装置,所述人脸识别装置包括:存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的人脸识别方法的各个步骤。In order to achieve the above object, the present invention provides a face recognition device, the face recognition device includes: a memory, a processor and a computer program stored on the memory and running on the processor, the processor When the computer program is executed, each step of the above-mentioned face recognition method is realized.

为实现上述目的,本发明提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的人脸识别方法的各个步骤。In order to achieve the above object, the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, each of the above-mentioned face recognition methods is implemented. step.

本发明提供的人脸识别方法、装置及计算机可读存储介质,通过获取干扰信息;将所述干扰信息调制为光强控制信号,并将所述光强控制信号发送至照明装置,以使所述照明装置按照所述光强控制信号调整光强度;获取摄像头检测到的人脸图像,所述人脸图像包括所述照明装置的光强度信息;根据所述人脸图像进行人脸识别。由于人脸识别装置在进行人脸识别之前,先在采集人脸图像阶段植入干扰信息,以对携带干扰信息的人脸图像中的人脸信息进行识别,通过克服该干扰信息,可以提高人脸识别系统的安全性。The face recognition method, device and computer-readable storage medium provided by the present invention obtain interference information; modulate the interference information into a light intensity control signal, and send the light intensity control signal to the lighting device, so that all The lighting device adjusts the light intensity according to the light intensity control signal; acquires a face image detected by the camera, where the face image includes light intensity information of the lighting device; and performs face recognition according to the face image. Because the face recognition device implants interference information at the stage of collecting face images before performing face recognition, so as to identify the face information in the face images carrying the interference information, by overcoming the interference information, the human face can be improved. The security of face recognition system.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例涉及的人脸识别装置的硬件架构示意图;1 is a schematic diagram of a hardware architecture of a face recognition device involved in an embodiment of the present invention;

图2为本发明人脸识别方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the face recognition method of the present invention;

图3为本发明人脸识别方法第二实施例的流程示意图;3 is a schematic flowchart of a second embodiment of the face recognition method of the present invention;

图4为本发明人脸识别方法第三实施例的流程示意图;4 is a schematic flowchart of a third embodiment of the face recognition method of the present invention;

图5为本发明人脸识别方法第四实施例的流程示意图;5 is a schematic flowchart of a fourth embodiment of the face recognition method of the present invention;

图6为本发明人脸识别方法第五实施例的流程示意图;6 is a schematic flowchart of a fifth embodiment of the face recognition method of the present invention;

图7为本发明人脸识别方法第六实施例的流程示意图;7 is a schematic flowchart of a sixth embodiment of the face recognition method of the present invention;

图8为本发明人脸识别方法第七实施例的步骤70的细化流程示意图;FIG. 8 is a schematic flow chart of refinement of step 70 of the seventh embodiment of the face recognition method of the present invention;

图9为本发明人脸识别方法第八实施例的流程示意图。FIG. 9 is a schematic flowchart of an eighth embodiment of a face recognition method according to the present invention.

具体实施方式Detailed ways

为了更好的理解上述技术方案,下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。For better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

本发明的主要解决方案是:本发明提供的人脸识别方法、装置及计算机可读存储介质,通过获取干扰信息;将所述干扰信息调制为光强控制信号,并将所述光强控制信号发送至照明装置,以使所述照明装置按照所述光强控制信号调整光强度;获取摄像头检测到的人脸图像,所述人脸图像包括所述照明装置的光强度信息;根据所述人脸图像进行人脸识别。The main solution of the present invention is: the face recognition method, device and computer-readable storage medium provided by the present invention obtain interference information; modulate the interference information into a light intensity control signal, and convert the light intensity control signal send to the lighting device, so that the lighting device adjusts the light intensity according to the light intensity control signal; acquire the face image detected by the camera, the face image includes the light intensity information of the lighting device; face image for face recognition.

由于人脸识别装置在进行人脸识别之前,先在采集人脸图像阶段植入干扰信息,以对携带干扰信息的人脸图像中的人脸信息进行识别,通过攻克该干扰信息,可以提高人脸识别安全性的瓶颈。Because the face recognition device implants interference information at the stage of collecting face images before performing face recognition, so as to recognize the face information in the face images carrying the interference information, by overcoming the interference information, the human face can be improved. The bottleneck of face recognition security.

参照图1,图1为本发明实施例涉及的人脸识别装置的硬件架构示意图。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a hardware architecture of a face recognition apparatus according to an embodiment of the present invention.

本发明实施例方案涉及的是控制器,控制器包括:处理器101,例如CPU,存储器102,通信总线103、采集模块104、照明模块105。其中,通信总线103用于实现这些组件之间的连接通信。The embodiments of the present invention relate to a controller, and the controller includes: a processor 101 , such as a CPU, a memory 102 , a communication bus 103 , a collection module 104 , and a lighting module 105 . Among them, the communication bus 103 is used to realize the connection and communication between these components.

存储器102可以是高速RAM存储器,也可以是稳定的存储器(non-volatilememory),例如磁盘存储器。如图1所述,作为一种计算机存储介质的存储器中可以包括检测程序;而处理器101可以用于调用存储器102中存储的检测程序,并执行以下操作:The memory 102 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory. As shown in FIG. 1, a memory as a computer storage medium may include a detection program; and the processor 101 may be used to call the detection program stored in the memory 102, and perform the following operations:

获取干扰信息;obtain interference information;

将所述干扰信息调制为光强控制信号,并将所述光强控制信号发送至照明装置,以使所述照明装置按照所述光强控制信号调整光强度;modulating the interference information into a light intensity control signal, and sending the light intensity control signal to the lighting device, so that the lighting device adjusts the light intensity according to the light intensity control signal;

获取摄像头检测到的人脸图像,所述人脸图像包括所述照明装置的光强度信息;acquiring a face image detected by a camera, where the face image includes light intensity information of the lighting device;

根据所述人脸图像进行人脸识别。Face recognition is performed according to the face image.

在一实施例中,处理器101可以用于调用存储器102中存储的检测程序,并执行以下操作:In one embodiment, the processor 101 may be configured to call the detection program stored in the memory 102, and perform the following operations:

确定干扰类型;determine the type of interference;

根据所述干扰类型,获取所述干扰信息。The interference information is acquired according to the interference type.

在一实施例中,处理器101可以用于调用存储器102中存储的检测程序,并执行以下操作:In one embodiment, the processor 101 may be configured to call the detection program stored in the memory 102, and perform the following operations:

在所述干扰类型为粗明暗条纹时,生成长游程的干扰信息。When the interference type is coarse light and dark stripes, long-run interference information is generated.

在一实施例中,处理器101可以用于调用存储器102中存储的检测程序,并执行以下操作:In one embodiment, the processor 101 may be configured to call the detection program stored in the memory 102, and perform the following operations:

在所述干扰类型为细明暗条纹时,生成短游程的干扰信息。When the interference type is fine light and dark stripes, short-run interference information is generated.

在一实施例中,处理器101可以用于调用存储器102中存储的检测程序,并执行以下操作:In one embodiment, the processor 101 may be configured to call the detection program stored in the memory 102, and perform the following operations:

根据所述干扰信息,确定所述干扰信息中的光强度与时间点的曲线变化关系;According to the interference information, determine the curve change relationship between the light intensity and the time point in the interference information;

根据所述曲线变化关系,生成高低电平的所述光强控制信号。According to the curve change relationship, the light intensity control signal of high and low levels is generated.

在一实施例中,处理器101可以用于调用存储器102中存储的检测程序,并执行以下操作:In one embodiment, the processor 101 may be configured to call the detection program stored in the memory 102, and perform the following operations:

确定所述人脸图像的第一图像梯度;determining the first image gradient of the face image;

将所述第一图像梯度与预存的第二图像梯度进行对比,得到比对的结果;Comparing the first image gradient with the pre-stored second image gradient to obtain a comparison result;

根据所述比对的结果,确定人脸识别结果。According to the comparison result, the face recognition result is determined.

在一实施例中,处理器101可以用于调用存储器102中存储的检测程序,并执行以下操作:In one embodiment, the processor 101 may be configured to call the detection program stored in the memory 102, and perform the following operations:

在所述第一图像梯度与所述第二图像梯度相似度大于等于预设值时,确定人脸识别成功;When the similarity between the first image gradient and the second image gradient is greater than or equal to a preset value, it is determined that the face recognition is successful;

在所述第一图像梯度与所述第二图像梯度相似度低于所述预设值时,确定人脸识别失败。When the similarity between the first image gradient and the second image gradient is lower than the preset value, it is determined that face recognition fails.

在一实施例中,处理器101可以用于调用存储器102中存储的检测程序,并执行以下操作:In one embodiment, the processor 101 may be configured to call the detection program stored in the memory 102, and perform the following operations:

输出所述人脸识别结果。Output the face recognition result.

在本实施例提供的技术方案中,通过获取干扰信息;将所述干扰信息调制为光强控制信号,并将所述光强控制信号发送至照明装置,以使所述照明装置按照所述光强控制信号调整光强度;获取摄像头检测到的人脸图像,所述人脸图像包括所述照明装置的光强度信息;根据所述人脸图像进行人脸识别。由于人脸识别装置在进行人脸识别之前,先在采集人脸图像阶段植入干扰信息,以对携带干扰信息的人脸图像中的人脸信息进行识别,通过攻克该干扰信息,可以提高人脸识别安全性的瓶颈。In the technical solution provided in this embodiment, the interference information is acquired; the interference information is modulated into a light intensity control signal, and the light intensity control signal is sent to the lighting device, so that the lighting device can follow the light The strong control signal adjusts the light intensity; acquires a face image detected by the camera, the face image includes the light intensity information of the lighting device; and performs face recognition according to the face image. Because the face recognition device implants interference information at the stage of collecting face images before performing face recognition, so as to recognize the face information in the face images carrying the interference information, by overcoming the interference information, the human face can be improved. The bottleneck of face recognition security.

为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above technical solutions, the above technical solutions will be described in detail below with reference to the accompanying drawings and specific embodiments.

参照图2,图2为本发明人脸识别方法的第一实施例,所述人脸识别方法包括以下步骤:Referring to FIG. 2, FIG. 2 is the first embodiment of the face recognition method of the present invention, and the face recognition method includes the following steps:

步骤S10,获取干扰信息。Step S10, obtaining interference information.

针对人脸识别系统的攻击包括呈现攻击和对抗性攻击。呈现攻击使用照片、3D人脸面具等设备伪造人脸从而欺骗人脸识别系统,其操作简单、成本低廉、技术门槛低、攻击效果好,但目前已有多种针对该攻击方法的呈现攻击检测方案被相继提出并完善,简单的呈现攻击已难以逃避检测技术。对抗性攻击是一种新型的攻击方法,它利用人工智能算法上的漏洞,精心构造输入样本,即使人眼可以察觉到异样,也能够误导人脸识别系统,产生很好的攻击效果。例如:对抗性眼镜、对抗性贴纸等。实验证明,使用者戴上“对抗性眼镜”或贴上“对抗性贴纸”后,人脸识别系统将会错误判定使用者的身份。Attacks against face recognition systems include presentation attacks and adversarial attacks. Presentation attack uses photos, 3D face masks and other equipment to forge faces to deceive the face recognition system. It has simple operation, low cost, low technical threshold and good attack effect. However, there are currently a variety of presentation attack detection methods for this attack method. Schemes have been proposed and perfected one after another, and simple presentation attacks have been difficult to evade detection technology. Adversarial attack is a new type of attack method. It uses the loopholes in artificial intelligence algorithms to carefully construct input samples. Even if the human eye can detect the abnormality, it can mislead the face recognition system and produce a good attack effect. For example: confrontational glasses, confrontational stickers, etc. Experiments have shown that after the user wears "adversarial glasses" or affixes "adversarial stickers", the face recognition system will incorrectly determine the user's identity.

在本实施例中,可选的,本发明的人脸识别装置包括但不限于干扰信息输入模块、干扰信息植入及信号调制模块、照明驱动模块、照明灯具、采集模块以及人脸识别系统,其中,干扰信息输入模块、干扰信息植入模及信号调整模块、照明驱动模块以及人脸识别系统均处于上述人脸识别装置的处理器中,上述干扰信息输入模块与干扰信息植入及信号调制模块相连,干扰信息植入及信号调制模块又与照明驱动模块、照明灯具相连,将植入干扰信息的发送信号调制到照明灯具上发出人眼察觉不到的高速明暗闪烁光信号。通过信号调制模块调制照明灯光,在人脸识别系统的图像采集阶段有规律地植入攻击梯度信息,从而使得人脸识别系统无法检测人脸甚至无法识别不同的人脸,从而实现拒绝服务攻击和逃逸攻击。上述干扰信息可为但不限于将植入攻击信息的发送信号调制到照明灯具上发出人眼察觉不到的高速明暗闪烁光信号,例如LED照明灯具。In this embodiment, optionally, the face recognition device of the present invention includes, but is not limited to, an interference information input module, an interference information implantation and signal modulation module, a lighting driving module, a lighting fixture, a collection module, and a face recognition system, Among them, the interference information input module, the interference information implantation module and the signal adjustment module, the lighting drive module and the face recognition system are all located in the processor of the above-mentioned face recognition device, and the interference information input module and the interference information implantation and signal modulation The modules are connected, and the interference information implantation and signal modulation module is also connected with the lighting drive module and the lighting fixture, and modulates the transmission signal of the implanted interference information to the lighting fixture to send out high-speed bright and dark flickering light signals that are invisible to the human eye. The illumination light is modulated by the signal modulation module, and the attack gradient information is regularly implanted in the image acquisition stage of the face recognition system, so that the face recognition system cannot detect faces or even recognize different faces, thereby realizing denial of service attacks and Escape attack. The above-mentioned interference information may be, but not limited to, modulating the transmitted signal of implanted attack information onto a lighting fixture to emit high-speed bright and dark flickering light signals that are not detectable by human eyes, such as LED lighting fixtures.

步骤S20,将所述干扰信息调制为光强控制信号,并将所述光强控制信号发送至照明装置,以使所述照明装置按照所述光强控制信号调整光强度。Step S20, modulate the interference information into a light intensity control signal, and send the light intensity control signal to the lighting device, so that the lighting device adjusts the light intensity according to the light intensity control signal.

在本实施例中,上述干扰信息可通过干扰信息输入模块以数字信息的形式输入攻击人脸识别装置,即人类识别系统。In this embodiment, the above-mentioned interference information can be input in the form of digital information through the interference information input module to attack the face recognition device, that is, the human recognition system.

步骤S30,获取摄像头检测到的人脸图像,所述人脸图像包括所述照明装置的光强度信息。Step S30, acquiring a face image detected by the camera, where the face image includes light intensity information of the lighting device.

在本实施例的技术方案中,所述摄像头即为采集模块,摄像头用于获取人脸识别系统所需要的人脸图像,同时接收LED照明灯具所发出的高速明暗闪烁光信号,所获取的高速明暗闪烁光信号在图像上形成明暗条纹,摄像头在对人脸进行拍照时,由于卷帘快门效应,因此获得的一帧图片包含不同时刻的信号。因此,在摄像头所获得的人脸图像中,所植入的干扰信息表现为叠加在人脸图像上的明暗条纹,由于上述步骤已经植入干扰信息,所以,理论上该步骤通过摄像头采集到的人脸图像已经被植入干扰信息。In the technical solution of this embodiment, the camera is the acquisition module, and the camera is used to obtain the face image required by the face recognition system, and at the same time receives the high-speed light and dark flickering light signals sent by the LED lighting fixture, and the obtained high-speed The light and dark flickering light signals form light and dark stripes on the image. When the camera takes a picture of a human face, due to the rolling shutter effect, a frame of pictures obtained contains signals at different times. Therefore, in the face image obtained by the camera, the implanted interference information appears as light and dark stripes superimposed on the face image. Face images have been implanted with distracting information.

步骤S40,根据所述人脸图像进行人脸识别。Step S40, performing face recognition according to the face image.

在本实施例中,所叠加的明暗条纹会在人脸图像上产生了额外的梯度信息,从而对人脸识别系统的人脸检测单元、特征提取单元等产生干扰作用,可导致人脸检测单元失效从而实现拒绝服务攻击,或降低人脸图像差异度从而实现逃逸攻击,对上述摄像头采集到的人脸图像进行人脸识别,可选的,可通过人脸识别结果确定人脸识别系统的安全性。In this embodiment, the superimposed light and dark stripes will generate additional gradient information on the face image, which will interfere with the face detection unit and the feature extraction unit of the face recognition system, which may cause the face detection unit Invalid to achieve denial of service attack, or reduce the difference of face images to achieve escape attack, perform face recognition on the face images collected by the above cameras, optionally, the security of the face recognition system can be determined by the face recognition results sex.

在本实施例的技术方案中,通过获取干扰信息;将所述干扰信息调制为光强控制信号,并将所述光强控制信号发送至照明装置,以使所述照明装置按照所述光强控制信号调整光强度;获取摄像头检测到的人脸图像,所述人脸图像包括所述照明装置的光强度信息;根据所述人脸图像进行人脸识别。由于人脸识别装置在进行人脸识别之前,先在采集人脸图像阶段植入干扰信息,以对携带干扰信息的人脸图像中的人脸信息进行识别,通过克服该干扰信息,可以提高人脸识别系统的安全性。In the technical solution of this embodiment, the interference information is obtained; the interference information is modulated into a light intensity control signal, and the light intensity control signal is sent to the lighting device, so that the lighting device can adjust the light intensity according to the light intensity. The control signal adjusts the light intensity; acquires a face image detected by the camera, the face image includes the light intensity information of the lighting device; and performs face recognition according to the face image. Because the face recognition device implants interference information at the stage of collecting face images before performing face recognition, so as to identify the face information in the face images carrying the interference information, by overcoming the interference information, the human face can be improved. The security of face recognition system.

参照图3,图3为本发明人脸识别方法的第二实施例,基于第一实施例,所述步骤S10包括:Referring to FIG. 3, FIG. 3 is a second embodiment of the face recognition method of the present invention. Based on the first embodiment, the step S10 includes:

步骤S11,确定干扰类型。Step S11, determine the interference type.

在本实施例中,干扰类型包括但不限于拒绝服务攻击和逃逸攻击,逃逸攻击是指攻击者在不改变目标机器学习系统的情况下,通过构造特定输入样本以完成欺骗目标系统的攻击。例如,攻击者可以修改一个恶意软件样本的非关键特征,使得它被一个反病毒系统判定为良性样本,从而绕过检测。攻击者为实施逃逸攻击而特意构造的样本通常被称为“对抗样本”。只要一个机器学习模型没有完美地学到判别规则,攻击者就有可能构造对抗样本用以欺骗机器学习系统。例如,研究者一直试图在计算机上模仿人类视觉功能,但由于人类视觉机理过于复杂,两个系统在判别物体时依赖的规则存在一定差异。对抗图片恰好利用这些差异使得机器学习模型得出和人类视觉截然不同的结果。一个著名的逃逸样本是IanGoodfellow在2015年ICLR会议上用过的熊猫与长臂猿分类的例子。被攻击目标是一个来谷歌的深度学习研究系统。该系统利用卷积神经元网络能够精确区分熊猫与长臂猿等图片。但是攻击者可以对熊猫图片增加少量干扰,生成的图片对人来讲仍然可以清晰地判断为熊猫,但深度学习系统会误认为长臂猿。In this embodiment, the types of interference include but are not limited to denial of service attacks and escape attacks. An escape attack refers to an attack in which an attacker constructs specific input samples to deceive the target system without changing the target machine learning system. For example, an attacker could modify non-critical characteristics of a malware sample so that it is deemed benign by an antivirus system, thereby bypassing detection. Samples specially constructed by attackers to carry out escape attacks are often referred to as "adversarial samples". As long as a machine learning model does not learn the discriminative rules perfectly, it is possible for an attacker to construct adversarial examples to fool the machine learning system. For example, researchers have been trying to imitate human visual functions on computers, but because the human visual mechanism is too complex, there are certain differences in the rules that the two systems rely on to discriminate objects. Adversarial images take advantage of these differences to make machine learning models come up with very different results from human vision. A well-known escape sample is the example of pandas and gibbons used by Ian Goodfellow at the 2015 ICLR conference. The target was a deep learning research system from Google. The system uses a network of convolutional neurons to accurately distinguish pictures such as pandas and gibbons. However, the attacker can add a small amount of interference to the panda picture, and the generated picture can still be clearly judged as a panda by a human, but the deep learning system will mistake it for a gibbon.

步骤S12,根据所述干扰类型,获取所述干扰信息。Step S12: Acquire the interference information according to the interference type.

在本实施例中,根据需要干扰的人脸识别系统以及拟实施的干扰类型,计算所需要植入的攻击信息,上述干扰类型和攻击信息为预先进行关联的绑定关系,在确定干扰类型可迅速生成干扰信息。In this embodiment, the attack information that needs to be implanted is calculated according to the face recognition system to be interfered and the type of interference to be implemented. The above-mentioned interference type and attack information are a binding relationship that is associated in advance. Quickly generate interference information.

在本实施例的技术方案中,通过确定将干扰类型和干扰信息进行关联,可在确定干扰类型后,迅速生成干扰信息,提供了本实施例人脸识别方法的执行效率。In the technical solution of the present embodiment, by determining to associate the interference type with the interference information, the interference information can be quickly generated after the interference type is determined, which improves the execution efficiency of the face recognition method of the present embodiment.

参照图4,图4为本发明人脸识别方法的第三实施例,基于第二实施例,所述步骤S12包括:Referring to FIG. 4, FIG. 4 is a third embodiment of the face recognition method of the present invention. Based on the second embodiment, the step S12 includes:

步骤S121,在所述干扰类型为粗明暗条纹时,生成长游程的干扰信息。Step S121, when the interference type is coarse light and dark stripes, generate long-run interference information.

在本实施例的技术方案中,如果要实施拒绝服务攻击,则可选择长连0比特较多的攻击信息片段,既使用长游程的干扰信息,该类型的干扰信息可使得摄像头在成像时植入较粗的条纹信息,使得成像后的人脸图像出现粗条纹,相对于短游程的干扰信息所植入的细条纹信息,识别难度更高,若人脸识别系统能识别出长游程的人脸图像,则可认为该人脸识别系统的稳定性更高,通过植入更契合拒绝服务攻击的长游程的干扰信息,有利于提高对人脸识别系统实施拒绝服务攻击的成功率。In the technical solution of this embodiment, if a denial of service attack is to be carried out, the attack information segment with more 0 bits in a long connection can be selected, that is, long-run interference information is used, and this type of interference information can make the camera implant during imaging. If the thicker stripe information is input, thick stripes appear in the imaged face image. Compared with the thin stripe information implanted in the short-run interference information, the recognition is more difficult. If the face recognition system can identify people with a long run Face image, it can be considered that the stability of the face recognition system is higher, and by implanting long-range interference information that is more suitable for denial of service attacks, it is beneficial to improve the success rate of denial of service attacks on the face recognition system.

参照图5,图5为本发明人脸识别方法的第四实施例,基于第二实施例,所述步骤S12包括:Referring to FIG. 5, FIG. 5 is the fourth embodiment of the face recognition method of the present invention. Based on the second embodiment, the step S12 includes:

步骤S122,在所述干扰类型为细明暗条纹时,生成短游程的干扰信息。Step S122, when the interference type is fine light and dark stripes, generate short-run interference information.

在本实施例的技术方案中,当干扰类型为细明暗条纹时,则选择短连0比特较少的攻击信息片段,既使用短游程的干扰信息,该类型的干扰信息可使得摄像头在成像时植入较细的条纹信息,使得成像后的人脸图像出现细条纹,相对于长游程的干扰信息所植入的粗条纹信息,识别难度较弱,契合实施逃逸攻击所需的条件,进而有利于提高对人脸识别系统实施逃逸攻击的成功率。In the technical solution of this embodiment, when the interference type is fine light and dark stripes, the attack information segment with fewer 0 bits is selected, and short-run interference information is used. This type of interference information can make the camera perform imaging when imaging. The thin stripe information is implanted to make the imaged face image appear thin stripes. Compared with the thick stripe information embedded in the long-run interference information, the recognition difficulty is weaker, which is in line with the conditions required for the implementation of escape attacks. It is beneficial to improve the success rate of evasion attacks on the face recognition system.

参照图6,图6为本发明人脸识别方法的第五实施例,基于第一至第四任一实施例,所述步骤S20包括:Referring to FIG. 6, FIG. 6 is a fifth embodiment of the face recognition method of the present invention. Based on any one of the first to fourth embodiments, the step S20 includes:

步骤S21,根据所述干扰信息,确定所述干扰信息中的光强度与时间点的曲线变化关系。Step S21, according to the interference information, determine a curve change relationship between the light intensity and the time point in the interference information.

步骤S22,根据所述曲线变化关系,生成高低电平的所述光强控制信号。Step S22, generating the light intensity control signal of high and low levels according to the curve change relationship.

在本实施例中,人脸识别装置中的干扰信息植入及信号调制模块将所计算得到的干扰信息转化为高低电平的调制信号,可用以下公式描述:In this embodiment, the interference information implantation and signal modulation module in the face recognition device converts the calculated interference information into high and low level modulation signals, which can be described by the following formula:

ldc×s (t)=LED (t)l dc ×s (t)=LED (t)

其中,上述公式中的ldc是照明灯光的亮度值,既上述光强度,s (t)是随时间t变化的要植入的数字信息,LED (t)是两者的合成信号,是将加载在LED灯光上的调制信号,且随时间t变化;s (t)为二进制数字信号,取值为“0”或“1”,因此,LED (t)的取值为“0”或ldcAmong them, ldc in the above formula is the brightness value of the lighting light, that is, the above-mentioned light intensity, s (t) is the digital information to be implanted that changes with time t, and LED (t) is the composite signal of the two, which is to be loaded Modulation signal on the LED light, and changes with time t; s (t) is a binary digital signal, which takes the value of "0" or "1", therefore, the value of LED (t) is "0" or l dc .

人脸识别装置中照明驱动模块,用于将合成调制信号LED (t)驱动LED照明灯具发光;LED照明灯具的LED发光芯片受合成调制信号驱动发光,从而实现照明功能,同时以人眼察觉不到的高速明暗闪烁信号隐蔽地广播干扰信息;所述LED照明灯具的LED发光芯片是支持高速调制的发光器件,在合成调制信号LED (t)的控制下令LED发光芯片随时间t发出快速明暗闪烁的照明光信号,且照明光信号的快速明暗变化不为人的肉眼所察觉,从而在照明的同时隐蔽地广播所携带的干扰信息。The lighting driving module in the face recognition device is used to drive the LED (t) of the synthetic modulation signal to drive the LED lighting fixture to emit light; the LED light-emitting chip of the LED lighting fixture is driven to emit light by the synthetic modulation signal, so as to realize the lighting function, and at the same time, the human eye cannot detect it. The received high-speed light and dark flickering signals covertly broadcast interference information; the LED light-emitting chip of the LED lighting fixture is a light-emitting device that supports high-speed modulation, and the LED light-emitting chip is under the control of the synthetic modulation signal LED (t) to emit fast light and dark flickering with time t The illumination light signal of the illuminating light signal, and the rapid light and dark changes of the illumination light signal are not detected by the naked eye, so that the interference information carried by the light is broadcast covertly while illuminating.

在本实施例的技术方案中,通过发送明隐蔽地广播干扰信息,可以在人所不之前的情况下对人脸识别系统进行干扰,提高了干扰的强度,进而提高看本实施例人脸识别安全性的瓶颈。In the technical solution of the present embodiment, by transmitting the broadcast interference information in an explicit and covert manner, the face recognition system can be interfered without being noticed, the intensity of the interference is improved, and the face recognition system in this embodiment is further improved. security bottleneck.

参照图7,图7为本发明人脸识别方法的第六实施例,基于第一至第五任一实施例,所述步骤S40之后,还包括:Referring to FIG. 7, FIG. 7 is a sixth embodiment of the face recognition method of the present invention. Based on any one of the first to fifth embodiments, after step S40, the method further includes:

步骤S50,确定所述人脸图像的第一图像梯度。Step S50, determining the first image gradient of the face image.

步骤S60,将所述第一图像梯度与预存的第二图像梯度进行对比,得到比对的结果。Step S60, comparing the first image gradient with the pre-stored second image gradient to obtain a comparison result.

步骤S70,根据所述比对的结果,确定人脸识别结果。Step S70: Determine a face recognition result according to the comparison result.

图像梯度可以把图像看成二维离散函数,图像梯度其实就是这个二维离散函数的求导:The image gradient can be regarded as a two-dimensional discrete function, and the image gradient is actually the derivation of this two-dimensional discrete function:

G(x,y) = dx(i,j) + dy(i,j);dx(i,j) = I(i+1,j) - I(i,j)G(x,y) = dx(i,j) + dy(i,j); dx(i,j) = I(i+1,j) - I(i,j)

dy(i,j) = I(i,j+1) - I(i,j)dy(i,j) = I(i,j+1) - I(i,j)

图像梯度一般也可以用中值差分:Image gradients can also generally use median difference:

dx(i,j) = [I(i+1,j) - I(i-1,j)]/2dx(i,j) = [I(i+1,j) - I(i-1,j)]/2

dy(i,j) = [I(i,j+1) - I(i,j-1)]/2dy(i,j) = [I(i,j+1) - I(i,j-1)]/2

其中,上述公式中的G(x,y)为图像梯度,I是图像像素的值(如:RGB值),(i,j)为像素的坐标。Among them, G(x, y) in the above formula is the image gradient, I is the value of the image pixel (eg: RGB value), and (i, j) is the coordinate of the pixel.

图像边缘一般都是通过对图像进行梯度运算来实现的。上面说的是简单的梯度定义,其实还有更多更复杂的梯度公式。Image edges are generally achieved by performing gradient operations on the image. The above is a simple gradient definition, in fact, there are more and more complex gradient formulas.

在本实施例中,第一图像梯度指的是采集到的人脸信息对应的人脸图像的图像梯度,二第二图像梯度为预存的携带干扰信息的样本人脸图像的图像剃度。In this embodiment, the first image gradient refers to the image gradient of the face image corresponding to the collected face information, and the second image gradient is the image gradient of the pre-stored sample face image carrying interference information.

在本实施例的技术方案中,通过对图像梯度进行处理,可快速确定人脸识别系统处理的人脸信息是否提取于存在干扰信息的人脸图像,避免出现人脸识别系统识别的人脸图像未携带干扰信息确得出攻破了该干扰信息,提高了本实施例人脸识别的准确性。In the technical solution of this embodiment, by processing the image gradient, it can be quickly determined whether the face information processed by the face recognition system is extracted from the face image with interference information, so as to avoid the appearance of the face image recognized by the face recognition system. It is concluded that the interference information is not carried, and the interference information is broken, and the accuracy of the face recognition in this embodiment is improved.

参照图8,图8为本发明人脸识别方法的第七实施例,基于第一至第六实施例,所述步骤S70包括:Referring to FIG. 8, FIG. 8 is a seventh embodiment of the face recognition method of the present invention. Based on the first to sixth embodiments, the step S70 includes:

步骤S71,在所述第一图像梯度与所述第二图像梯度相似度大于等于预设值时,确定人脸识别成功。Step S71, when the similarity between the first image gradient and the second image gradient is greater than or equal to a preset value, it is determined that the face recognition is successful.

步骤S72,在所述第一图像梯度与所述第二图像梯度相似度低于所述预设值时,确定人脸识别失败。Step S72, when the similarity between the first image gradient and the second image gradient is lower than the preset value, determine that the face recognition fails.

在本实施例的技术方案中,通过与样本人脸图像的梯度值信息度,可快速确定人脸识别系统处理的人脸信息是否提取于存在干扰信息的人脸图像,避免出现人脸识别系统识别的人脸图像未携带干扰信息确得出攻破了该干扰信息,提高了本实施例人脸识别的准确性。In the technical solution of this embodiment, through the gradient value information degree of the sample face image, it can be quickly determined whether the face information processed by the face recognition system is extracted from the face image with interference information, so as to avoid the appearance of the face recognition system. The recognized face image does not carry the interference information, and it can be concluded that the interference information is broken, and the accuracy of the face recognition in this embodiment is improved.

参照图9,图9为本发明人脸识别方法的第八实施例,基于第一至第七实施例,所述步骤S40之后,还包括:Referring to FIG. 9, FIG. 9 is an eighth embodiment of the face recognition method of the present invention. Based on the first to seventh embodiments, after step S40, the method further includes:

步骤S80,输出所述人脸识别结果。Step S80, outputting the face recognition result.

在本实施例的技术方案中,人脸识别结果包括但不限于生成干扰成功、干扰失败以及安全系数的提示信息以提示人脸识别系统管理者,进而可使管理员了解人脸识别系统的安全性。In the technical solution of this embodiment, the face recognition result includes but is not limited to generating prompt information of successful interference, failure of interference and safety factor to prompt the administrator of the facial recognition system, thereby enabling the administrator to understand the security of the facial recognition system sex.

为实现上述目的,本发明提供了一种人脸识别装置,所述人脸识别装置包括:采集模块、照明模块、存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的人脸识别方法的各个步骤。In order to achieve the above purpose, the present invention provides a face recognition device, the face recognition device includes: a collection module, a lighting module, a memory, a processor and a computer stored on the memory and running on the processor A program, when the processor executes the computer program, implements each step of the above-mentioned face recognition method.

为实现上述目的,本发明提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的人脸识别方法的各个步骤。In order to achieve the above object, the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, each of the above-mentioned face recognition methods is implemented. step.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowcharts and/or block diagrams, and combinations of flows and/or blocks in the flowcharts and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in one or more of the flowcharts and/or one or more blocks of the block diagrams.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions An apparatus implements the functions specified in a flow or flows of the flowcharts and/or a block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本发明可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that, in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not preclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (10)

1. A face recognition method is characterized by comprising the following steps:
acquiring interference information;
modulating the interference information into a light intensity control signal, and sending the light intensity control signal to a lighting device so that the lighting device adjusts the light intensity according to the light intensity control signal;
acquiring a face image detected by a camera, wherein the face image comprises light intensity information of the lighting device;
and carrying out face recognition according to the face image.
2. The face recognition method of claim 1, wherein the step of obtaining the interference information comprises:
determining an interference type;
and acquiring the interference information according to the interference type.
3. The face recognition method of claim 2, wherein the step of obtaining the interference information according to the interference type comprises:
and when the interference type is a thick light and dark stripe, generating long-run interference information.
4. The face recognition method of claim 2, wherein the step of obtaining the interference information according to the interference type comprises:
and when the interference type is the thin bright and dark stripe, generating short-run interference information.
5. The face recognition method of any one of claims 1 to 4, wherein the step of modulating the interference information into a light intensity control signal comprises:
determining a curve change relation between light intensity and time points in the interference information according to the interference information;
and generating the light intensity control signals of high and low levels according to the curve change relationship.
6. The face recognition method of claim 5, wherein after the step of performing face recognition based on the face image, further comprising:
determining a first image gradient of the face image;
comparing the first image gradient with a prestored second image gradient to obtain a comparison result;
and determining a face recognition result according to the comparison result.
7. The face recognition method of claim 6, wherein the step of determining the face recognition result according to the comparison result comprises:
when the similarity between the first image gradient and the second image gradient is greater than or equal to a preset value, determining that the face recognition is successful;
and when the similarity of the first image gradient and the second image gradient is lower than the preset value, determining that the face recognition fails.
8. The face recognition method according to claim 6 or 7, wherein after the step of determining the face recognition result according to the comparison result, further comprising:
and outputting the face recognition result.
9. A face recognition method device is characterized in that the face recognition method device comprises the following steps: an acquisition module, a lighting module, a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the face recognition method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the face recognition method according to any one of claims 1 to 8.
CN202011292078.7A 2020-11-18 2020-11-18 Face recognition method and device and computer readable storage medium Pending CN112115925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011292078.7A CN112115925A (en) 2020-11-18 2020-11-18 Face recognition method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011292078.7A CN112115925A (en) 2020-11-18 2020-11-18 Face recognition method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112115925A true CN112115925A (en) 2020-12-22

Family

ID=73794982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011292078.7A Pending CN112115925A (en) 2020-11-18 2020-11-18 Face recognition method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112115925A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070110285A1 (en) * 2005-11-11 2007-05-17 Hanna Keith J Apparatus and methods for detecting the presence of a human eye
CN101931755A (en) * 2010-07-06 2010-12-29 上海洪剑智能科技有限公司 Modulated light filter device and filter method for face recognition
CN102279925A (en) * 2011-08-25 2011-12-14 三峡大学 Chain processing face recognition method and system
CN102567706A (en) * 2010-12-24 2012-07-11 汉王科技股份有限公司 Human face identification device and method
CN103034846A (en) * 2012-12-12 2013-04-10 紫光股份有限公司 Face indentification device for live person
CN105912986A (en) * 2016-04-01 2016-08-31 北京旷视科技有限公司 In vivo detection method, in vivo detection system and computer program product
CN106529512A (en) * 2016-12-15 2017-03-22 北京旷视科技有限公司 Living body face verification method and device
CN108304801A (en) * 2018-01-30 2018-07-20 亿慧云智能科技(深圳)股份有限公司 A kind of face identification method of anti-fraud, storage medium and face identification device
CN110516644A (en) * 2019-08-30 2019-11-29 深圳前海微众银行股份有限公司 A living body detection method and device
CN110598571A (en) * 2019-08-15 2019-12-20 中国平安人寿保险股份有限公司 Living body detection method, living body detection device and computer-readable storage medium
CN110909632A (en) * 2019-11-07 2020-03-24 北京集联网络技术有限公司 A method and device for anti-counterfeiting of human face using alternate light sources

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070110285A1 (en) * 2005-11-11 2007-05-17 Hanna Keith J Apparatus and methods for detecting the presence of a human eye
CN101931755A (en) * 2010-07-06 2010-12-29 上海洪剑智能科技有限公司 Modulated light filter device and filter method for face recognition
CN102567706A (en) * 2010-12-24 2012-07-11 汉王科技股份有限公司 Human face identification device and method
CN102279925A (en) * 2011-08-25 2011-12-14 三峡大学 Chain processing face recognition method and system
CN103034846A (en) * 2012-12-12 2013-04-10 紫光股份有限公司 Face indentification device for live person
CN105912986A (en) * 2016-04-01 2016-08-31 北京旷视科技有限公司 In vivo detection method, in vivo detection system and computer program product
CN106529512A (en) * 2016-12-15 2017-03-22 北京旷视科技有限公司 Living body face verification method and device
CN108304801A (en) * 2018-01-30 2018-07-20 亿慧云智能科技(深圳)股份有限公司 A kind of face identification method of anti-fraud, storage medium and face identification device
CN110598571A (en) * 2019-08-15 2019-12-20 中国平安人寿保险股份有限公司 Living body detection method, living body detection device and computer-readable storage medium
CN110516644A (en) * 2019-08-30 2019-11-29 深圳前海微众银行股份有限公司 A living body detection method and device
CN110909632A (en) * 2019-11-07 2020-03-24 北京集联网络技术有限公司 A method and device for anti-counterfeiting of human face using alternate light sources

Similar Documents

Publication Publication Date Title
US10303973B2 (en) Image processing apparatus, image processing method, and storage medium for lighting processing on image using model data
CN110119719B (en) Liveness detection method, device, equipment and computer-readable storage medium
EP3198852B1 (en) Image processing apparatus and control method thereof
CN112633181B (en) Data processing method, system, device, equipment and medium
CN103294993B (en) The device and method of false face for identification
US11108970B2 (en) Flicker mitigation via image signal processing
US10755418B2 (en) Background blurred method and electronic device based on foreground image
US20100149372A1 (en) Image data processing with multiple cameras
CN106022275A (en) Iris recognition method and apparatus, and mobile terminal
WO2019104551A1 (en) Fingerprint identification method, and terminal device
CN103558225B (en) A kind of cmos image chip detecting method
US10043098B2 (en) Method of detecting color object by using noise and system for detecting light emitting apparatus by using noise
CN112926498B (en) Living body detection method and device based on multichannel fusion and depth information local dynamic generation
CN111861956A (en) Picture processing method and device, electronic equipment and medium
WO2017141730A1 (en) Image processing device and method, and program
CN112115925A (en) Face recognition method and device and computer readable storage medium
KR102294165B1 (en) Device for optical communication and communication method using the same
CN112052726B (en) Image processing method and device
Hadiprakoso Face anti-spoofing method with blinking eye and hsv texture analysis
KR102026410B1 (en) Sytem for marker recognition and method therefor
US20190373167A1 (en) Spotlight detection for improved image quality
CN113516602B (en) Image defogging method, image defogging device, electronic equipment and storage medium
CN107424135A (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
CN107292853A (en) Image processing method, device, computer readable storage medium and mobile terminal
KR20230004533A (en) Liveness detection using a device containing an illumination source

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: 20201222