CN114511914A - Face recognition method and device and terminal equipment - Google Patents
Face recognition method and device and terminal equipment Download PDFInfo
- Publication number
- CN114511914A CN114511914A CN202210407077.5A CN202210407077A CN114511914A CN 114511914 A CN114511914 A CN 114511914A CN 202210407077 A CN202210407077 A CN 202210407077A CN 114511914 A CN114511914 A CN 114511914A
- Authority
- CN
- China
- Prior art keywords
- face
- feature data
- recognition
- person
- preset
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000001815 facial effect Effects 0.000 claims abstract description 23
- 238000000605 extraction Methods 0.000 claims abstract description 17
- 238000013528 artificial neural network Methods 0.000 claims description 44
- 238000004364 calculation method Methods 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 7
- 210000001061 forehead Anatomy 0.000 claims description 5
- 238000012549 training Methods 0.000 claims description 5
- 238000010606 normalization Methods 0.000 claims description 4
- 238000013480 data collection Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 210000000887 face Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Collating Specific Patterns (AREA)
Abstract
Description
技术领域technical field
本发明涉及人脸识别技术领域,尤其是涉及人脸识别方法、识别装置及终端数设备。The present invention relates to the technical field of face recognition, in particular to a face recognition method, a recognition device and terminal number equipment.
背景技术Background technique
随着人脸识别技术的成熟,越来越多门禁或关卡等场景使用人脸识别技术对出入人员的身份信息进行识别。人脸识别技术一般采用采集人脸图片信息的形式对人的人脸信息进行采集。但在某些特定场景中,例如加工工厂内部或医院等场景,往往人员会佩戴口罩,导致人脸的一部分部位被遮挡;又或者在人员数量较多的时候,存在人脸被遮挡的情况。With the maturity of face recognition technology, more and more scenarios such as access control or checkpoints use face recognition technology to identify the identity information of people entering and leaving. Face recognition technology generally collects face information of a person in the form of collecting face picture information. However, in some specific scenarios, such as inside a processing factory or in a hospital, people often wear masks, causing part of the face to be blocked; or when there are a large number of people, the face is blocked.
此时,若采集不到完整的人脸信息以进行识别,则会导致人脸识别装置报错或识别准确度下降,运算力的占用和浪费。并且在户外环境的影响下,当存在人脸被阳光或灯光等强光照射时,人员被采集的人脸信息存在过曝的问题,也同样会导致人脸识别装置识别准确度下降。At this time, if complete face information cannot be collected for recognition, the face recognition device will report an error or the recognition accuracy will be reduced, and computing power will be occupied and wasted. And under the influence of the outdoor environment, when the face is irradiated by strong light such as sunlight or lights, the collected face information of the person has the problem of overexposure, which will also cause the recognition accuracy of the face recognition device to decrease.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的是提供人脸识别方法、识别装置及终端设备,其能够提高人脸识别的准确度。The purpose of the embodiments of the present invention is to provide a face recognition method, a recognition device and a terminal device, which can improve the accuracy of face recognition.
为了解决上述技术问题,在第一方面,本发明实施例提供了一种人脸识别方法,包括:In order to solve the above technical problems, in a first aspect, an embodiment of the present invention provides a face recognition method, including:
采集待识别人物的人脸图像信息;Collect the face image information of the person to be recognized;
对所述人脸图像信息进行图像特征提取,得到所述待识别人物的人脸图像特征数据;performing image feature extraction on the face image information to obtain face image feature data of the person to be identified;
将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数;Inputting the feature data of the face image into the recognition model to calculate the recognition degree of the face to obtain the recognition coefficient;
若所述识别度系数大于预设阈值,则采集所述待识别人物人脸所反射的超声波信号;If the recognition coefficient is greater than a preset threshold, collect the ultrasonic signal reflected by the face of the person to be recognized;
从采集到的所述超声波信号中提取所述待识别人物的人脸超声波特征数据;Extract the face ultrasonic feature data of the person to be recognized from the collected ultrasonic signal;
将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息;所述特征数据模板包括指定用户的身份信息和所述指定用户人脸对应的图像特征数据和超声波特征数据。Comparing the face image feature data and the face ultrasonic feature data with each feature data template in a preset feature database, respectively, to obtain the identification information of the person to be identified; the feature data template includes a specified user identity information and the image feature data and ultrasonic feature data corresponding to the face of the designated user.
作为其中一种优选方案,所述将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数,具体包括:As one of the preferred solutions, the feature data of the face image is input into the recognition degree model to calculate the recognition degree of the face, and the recognition degree coefficient is obtained, which specifically includes:
通过分类器对所述人脸图像特征数据进行人脸区域划分,得到若干预设人脸部位区域内对应的特征数据合集;所述预设人脸部位包括眼睛、额头、鼻子、嘴巴、脸颊和下巴;The face image feature data is divided into face regions by a classifier, and a collection of corresponding feature data in several preset face parts regions is obtained; the preset face parts include eyes, forehead, nose, mouth, cheeks and chin;
将所述若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,之后根据赋权后的特征数据合集计算得到识别度系数。Inputting the corresponding feature data sets in the several preset face region regions into the neural network for weighting, and then calculating the recognition coefficient according to the weighted feature data sets.
作为其中一种优选方案,所述神经网络包含各个预设人脸部位区域对应的权重值;As one of the preferred solutions, the neural network includes weight values corresponding to each preset face region;
所述将所述若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,之后根据赋权后的特征数据合集计算得到识别度系数,具体包括:The described inputting the corresponding feature data sets in the several preset facial region regions into the neural network for weighting, and then calculating the recognition coefficient according to the weighted feature data sets, specifically including:
通过所述神经网络将各个所述预设人脸部位区域内对应的特征数据合集与所述预设人脸部位区域对应的权重值进行卷积,得到各个所述预设人脸部位区域内对应的含权特征数据;Through the neural network, the corresponding feature data sets in each of the preset face position regions are convolved with the weight values corresponding to the preset face position regions to obtain each of the preset face positions The corresponding weighted feature data in the area;
对所有所述含权特征数据求和后进行归一化处理,生成识别度系数。After summing all the weighted feature data, normalization is performed to generate a recognition degree coefficient.
作为其中一种优选方案,在将所述若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,之后根据赋权后的特征数据合集计算得到识别度系数之前,还包括:As one of the preferred solutions, before inputting the corresponding feature data sets in the several preset face regions into the neural network for weighting, and then calculating the recognition coefficient according to the weighted feature data sets, it also includes:
根据接收到的识别指令获取采集到的历史人脸图像信息;所述识别指令包括目标人脸部位;Obtain the collected historical face image information according to the received identification instruction; the identification instruction includes the target face position;
提取所述历史人脸图像信息中所述目标人脸部位的特征数据,得到样本数据;Extracting the feature data of the target face position in the historical face image information to obtain sample data;
将所述样本数据输入所述神经网络进行迭代训练,以增大所述神经网络中所述目标人脸部位的权重,获得更新后的神经网络。The sample data is input into the neural network for iterative training, so as to increase the weight of the target face part in the neural network to obtain an updated neural network.
作为其中一种优选方案,在将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数之后,还包括:As one of the preferred solutions, after inputting the facial image feature data into the recognition degree model for face recognition degree calculation, and obtaining the recognition degree coefficient, the method further includes:
若所述识别度系数小于预设阈值,则重新采集待识别人物的人脸图像信息。If the recognition degree coefficient is smaller than the preset threshold, the face image information of the person to be recognized is collected again.
作为其中一种优选方案,所述人脸图像信息为可见光图像信息或红外图像信息。As one of the preferred solutions, the face image information is visible light image information or infrared image information.
作为其中一种优选方案,所述将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息,具体包括:As one of the preferred solutions, the face image feature data and the face ultrasonic feature data are compared with each feature data template in a preset feature database, respectively, to obtain the identification information of the person to be identified. , including:
通过聚类法将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行聚类,确定所述人脸图像特征数据和所述人脸超声波特征数据的聚类中心所对应的指定用户为目标用户;The face image feature data and the face ultrasonic feature data are respectively clustered with each feature data template in the preset feature database by a clustering method to determine the face image feature data and the face ultrasonic feature The designated user corresponding to the cluster center of the data is the target user;
输出所述目标用户的身份信息。The identity information of the target user is output.
作为其中一种优选方案,在通过聚类法将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行聚类之后,还包括:As one of the preferred solutions, after clustering the face image feature data and the face ultrasonic feature data with each feature data template in the preset feature database by a clustering method, the method further includes:
若所述人脸图像特征数据和所述人脸超声波特征数据的聚类中心无所对应的指定用户,则输出识别失败的结果。If there is no designated user corresponding to the cluster center of the face image feature data and the face ultrasonic feature data, a result of recognition failure is output.
在第二方面,本发明实施例还提供了一种人脸识别装置,包括:In a second aspect, an embodiment of the present invention further provides a face recognition device, including:
人脸图像信息采集模块,用于采集待识别人物的人脸图像信息;A face image information collection module, used to collect face image information of the person to be identified;
第一特征提取模块,用于对所述人脸图像信息进行图像特征提取,得到所述待识别人物的人脸图像特征数据;a first feature extraction module, configured to perform image feature extraction on the face image information to obtain the face image feature data of the person to be identified;
系数计算模块,用于将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数;a coefficient calculation module, for inputting the facial image feature data into a recognition degree model to perform a face recognition degree calculation to obtain a recognition degree coefficient;
超声波信号采集模块,用于若所述识别度系数大于预设阈值,则采集所述待识别人物人脸所反射的超声波信号;an ultrasonic signal collection module, configured to collect the ultrasonic signal reflected by the face of the person to be recognized if the recognition coefficient is greater than a preset threshold;
第二特征提取模块,用于从采集到的所述超声波信号中提取所述待识别人物的人脸超声波特征数据;The second feature extraction module is used for extracting the face ultrasonic feature data of the person to be recognized from the collected ultrasonic signal;
识别模块,用于将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息;所述特征数据模板包括指定用户的身份信息和所述指定用户人脸对应的图像特征数据和超声波特征数据。an identification module, configured to compare the face image feature data and the face ultrasonic feature data with each feature data template in a preset feature database to obtain the identification information of the person to be identified; the feature The data template includes the identity information of the specified user and the image feature data and ultrasonic feature data corresponding to the face of the specified user.
本发明再一实施例提供了一种终端设备,包括处理器、存储器以及存储在存储器中且被配置为由处理器执行的计算机程序,处理器执行计算机程序时实现如上的第一方面所述的方法。Yet another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the first aspect when executing the computer program method.
本发明又一实施例提供了一种计算机可读存储介质,计算机可读存储介质包括存储的计算机程序,其中,在计算机程序运行时控制计算机可读存储介质所在设备执行如上的第一方面所述的方法。Yet another embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned first aspect Methods.
相比于现有技术,本发明实施例的有益效果在于以下中的至少一点:Compared with the prior art, the beneficial effects of the embodiments of the present invention lie in at least one of the following:
本发明的人脸识别方法通过采集待识别人物的人脸图像信息;对所述人脸图像信息进行图像特征提取,得到所述待识别人物的人脸图像特征数据;将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数;若所述识别度系数大于预设阈值,则采集所述待识别人物人脸所反射的超声波信号;通过预先将人脸图像特征数据输入识别度模型进行人脸可识别度计算,获知当前待识别人物的人脸遮挡程度是否影响人脸识别,若识别度系数大于预设阈值,则说明人脸遮挡程度不影响人脸识别,才可继续进行人脸识别,避免无效的运算,降低运算压力;从采集到的所述超声波信号中提取所述待识别人物的人脸超声波特征数据;将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息;所述特征数据模板包括指定用户的身份信息和所述指定用户人脸对应的图像特征数据和超声波特征数据。通过将人脸图像信息与采集到的人脸超声波信号相结合,补充采集的人脸图像信息由于过曝或被遮挡等问题缺失的人脸信息,使得人脸识别过程能顺利准确进行,从而提高了人脸识别的准确性。相应地,本发明还提供人脸识别装置及设备。The face recognition method of the present invention obtains the face image feature data of the to-be-recognized person by collecting the face image information of the person to be recognized; extracting the image features from the face image information; The data is input into the recognition degree model to calculate the recognition degree of the face, and the recognition degree coefficient is obtained; if the recognition degree coefficient is greater than the preset threshold, the ultrasonic signal reflected by the face of the person to be recognized is collected; The image feature data is input into the recognition model to calculate the recognizability of the face, to know whether the degree of face occlusion of the person to be recognized currently affects the face recognition. If the recognition coefficient is greater than the preset threshold, it means that the degree of face occlusion does not affect the face. Only then can continue to perform face recognition, avoid invalid calculation, and reduce calculation pressure; extract the face ultrasonic feature data of the person to be recognized from the collected ultrasonic signal; combine the face image feature data with the The facial ultrasonic feature data is compared with each feature data template in the preset feature database to obtain the identification information of the person to be identified; the feature data template includes the identity information of the designated user and the designated user person. The image feature data and ultrasonic feature data corresponding to the face. By combining the face image information with the collected face ultrasonic signals, the collected face image information is supplemented with the missing face information due to problems such as overexposure or occlusion, so that the face recognition process can be carried out smoothly and accurately, thereby improving the accuracy of face recognition. Correspondingly, the present invention also provides a face recognition device and equipment.
附图说明Description of drawings
为了更清楚地说明本发明的技术方案,下面将对实施方式中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the present invention more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, which are common in the art. As far as technical personnel are concerned, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明人脸识别方法一实施例的流程示意图;1 is a schematic flowchart of an embodiment of a face recognition method of the present invention;
图2是本发明人脸识别装置一实施例的结构示意图;2 is a schematic structural diagram of an embodiment of a face recognition device of the present invention;
图3是本发明终端设备一实施例的结构示意图。FIG. 3 is a schematic structural diagram of an embodiment of a terminal device of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
在本发明描述中,术语“第一”、“第二”、“第三”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”、“第三”等的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the description of the present invention, the terms "first", "second", "third", etc. are only used for description purposes, and should not be understood as indicating or implying relative importance or the number of indicated technical features. Thus, a feature defined as "first", "second", "third", etc., may expressly or implicitly include one or more of that feature. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense, unless otherwise expressly specified and limited, for example, it may be a fixed connection or a detachable connection Connection, or integral connection; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific situations.
在本发明的描述中,需要说明的是,除非另有定义,本发明所使用的所有的技术和科学术语与属于本的技术领域的技术人员通常理解的含义相同。本发明中说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明,对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as commonly understood by those skilled in the art. The terms used in the description of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations.
实施例一Example 1
本发明实施例提供了一种人脸识别方法,请参阅图1,图1是本发明人脸识别方法一实施例的流程示意图。本实施例可适用于门禁或关卡等需对人员身份信息进行核查的应用场景,该方法可以由人脸识别装置执行,该装置可为处理器、智能终端、平板或PC等。在本实施例中,人脸识别方法可以包括步骤S110~S160,各步骤具体如下:An embodiment of the present invention provides a face recognition method. Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an embodiment of the face recognition method of the present invention. This embodiment can be applied to application scenarios such as access control or checkpoint where personnel identity information needs to be checked, and the method can be executed by a face recognition device, which can be a processor, a smart terminal, a tablet, or a PC. In this embodiment, the face recognition method may include steps S110-S160, and each step is as follows:
S110:采集待识别人物的人脸图像信息;S110: collect face image information of the person to be recognized;
由于人脸识别方法需对待识别人物的人脸信息进行识别,因此需对待识别人物的人脸信息进行采集。具体的,通过采集待识别人物的人脸图像实现人脸信息的采集,采集到的人脸图像即为人脸图像信息。可选的,可由人脸识别装置自带的摄像头或与人脸识别装置连接的外接摄像头对待识别人物的人脸进行拍摄,以完成待识别人物的人脸图像信息采集。Since the face recognition method needs to recognize the face information of the person to be recognized, it is necessary to collect the face information of the person to be recognized. Specifically, the collection of face information is realized by collecting the face image of the person to be recognized, and the collected face image is the face image information. Optionally, the camera of the face recognition device or an external camera connected to the face recognition device can capture the face of the person to be recognized, so as to complete the collection of the face image information of the person to be recognized.
作为其中一种优选方案,所述人脸图像信息为可见光图像信息或红外图像信息。由于外部环境有时不能提供充足的光照来满足摄像头拍摄清晰的人脸图像的条件,可采用红外摄像头来实现光照不足或黑夜条件下的清晰的人脸图像拍摄。因此,采集到的人脸图像信息可包括可见光图像信息或红外图像信息。As one of the preferred solutions, the face image information is visible light image information or infrared image information. Since the external environment sometimes cannot provide sufficient light to meet the conditions for the camera to capture clear face images, an infrared camera can be used to capture clear face images under insufficient lighting or dark night conditions. Therefore, the collected face image information may include visible light image information or infrared image information.
S120:对所述人脸图像信息进行图像特征提取,得到所述待识别人物的人脸图像特征数据;S120: Perform image feature extraction on the face image information to obtain face image feature data of the person to be identified;
采集到的人脸图像信息中各个像素所携带的信息为待识别人物的人脸特征信息,通过对人脸图像信息进行图像特征提取,可得到包含了待识别人物的人脸特征信息的人脸图像特征数据。具体的,可通过统计特征识别法、几何特征识别法或基于连接机制识别法等图像特征提取方法实现对上述人脸图像信息进行图像特征提取。The information carried by each pixel in the collected face image information is the face feature information of the person to be identified. By extracting image features from the face image information, a face containing the face feature information of the person to be identified can be obtained. Image feature data. Specifically, the image feature extraction for the above-mentioned face image information can be realized by an image feature extraction method such as a statistical feature identification method, a geometric feature identification method, or a connection mechanism-based identification method.
S130:将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数;S130: Input the facial image feature data into a recognition degree model to perform a face recognition degree calculation to obtain a recognition degree coefficient;
由于在某些特定场景中,例如加工工厂内部或医院等场景,往往人员会佩戴口罩,导致人脸的一部分部位被遮挡;又或者在人员数量较多的时候,存在人脸被遮挡的情况。若采集不到完整的人脸信息以进行识别,则会导致人脸识别装置出错或人脸识别不准确,并且得到错误的人脸识别结果时人脸识别装置已经进行了一次完整的识别运算过程,导致运算力的占用和浪费。为避免无效的运算,可通过预先将人脸图像特征数据输入预先训练好的识别度模型进行人脸可识别度计算,以获知当前采集到人脸图像特征数据反映的待识别人物的人脸遮挡程度是否影响人脸识别;由识别度模型输出的识别度系数反映待识别人物的人脸遮挡程度。若识别度系数大于预设阈值,则说明人脸遮挡程度不影响人脸识别,才可继续进行人脸识别,避免无效的运算,降低运算压力。可选的,该识别度模型可为由若干神经网络层组成的模型。Because in some specific scenarios, such as inside a processing factory or a hospital, people often wear masks, causing part of the face to be blocked; or when there are a large number of people, the face is blocked. If the complete face information cannot be collected for recognition, the face recognition device will make an error or the face recognition will be inaccurate, and the face recognition device has already performed a complete recognition operation process when the wrong face recognition result is obtained. , resulting in the occupation and waste of computing power. In order to avoid invalid operations, the face recognition degree calculation can be performed by inputting the face image feature data into the pre-trained recognition model in advance, so as to know the face occlusion of the person to be recognized reflected by the currently collected face image feature data. Whether the degree affects face recognition; the recognition degree output by the recognition degree model reflects the degree of face occlusion of the person to be recognized. If the recognition degree coefficient is greater than the preset threshold, it means that the degree of face occlusion does not affect the face recognition, and then the face recognition can be continued to avoid invalid operations and reduce the computational pressure. Optionally, the recognition model may be a model composed of several neural network layers.
作为其中一种优选方案,所述将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数,具体包括步骤S210和S220:As one of the preferred solutions, the feature data of the face image is input into the recognition degree model for face recognition degree calculation, and the recognition degree coefficient is obtained, which specifically includes steps S210 and S220:
S210、通过分类器对所述人脸图像特征数据进行人脸区域划分,得到若干预设人脸部位区域内对应的特征数据合集;所述预设人脸部位包括眼睛、额头、鼻子、嘴巴、脸颊和下巴;S210, dividing the face image feature data by a classifier to obtain a collection of corresponding feature data in several preset face position regions; the preset face positions include eyes, forehead, nose, mouth, cheeks and chin;
详细的,可通过预先训练好的分类器对人脸图像特征数据按照人脸区域进行划分,从而得到每一预设人脸部位区域内对应的特征数据合集。预设人脸部位可由使用者自定义划分,可将人脸划分为眼睛、额头、鼻子、嘴巴、脸颊和下巴这几个常规人脸部位。In detail, the feature data of the face image can be divided according to the face region by using a pre-trained classifier, so as to obtain a set of feature data corresponding to each preset face region. The preset face parts can be divided by the user, and the face can be divided into several regular face parts such as eyes, forehead, nose, mouth, cheeks and chin.
S220、将所述若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,之后根据赋权后的特征数据合集计算得到识别度系数。S220. Input the corresponding feature data sets in the preset facial region regions into the neural network for weighting, and then calculate and obtain the recognition coefficient according to the weighted feature data sets.
详细的,由于人脸识别过程一般是对人脸中具有辨识度的几个重点人脸部位及附近的区域进行对比判断,因此采集到的人脸图像特征数据中是否包含这几个具有辨识度的重点人脸部位以及包含的特征数量是否足够多是顺利、准确进行人脸识别的前提条件。上述具有辨识度的几个重点人脸部位区域可为人脸五官、脸颊和下巴等这几个区域。In detail, since the face recognition process generally compares and judges several key face parts with recognizable degrees in the face and the nearby areas, whether the collected face image feature data includes these several recognizable faces? The key face position of the degree and whether the number of features included are enough are the prerequisites for smooth and accurate face recognition. The above-mentioned key human face regions with recognizability may be such regions as facial features, cheeks, and chin.
为判断采集到的待识别人物的人脸图像特征数据是否具有满足人脸识别前提条件的特征数据,可根据由人脸识别成功的历史人脸图像特征数据组成的若干样本训练生成带有权重值的神经网络。其中,神经网络根据人脸识别过程中各个人脸部位的重要程度生成各个人脸部位区域对应的权重值;权重占比越大,则说明该人脸部位区域在人脸识别过程中起得作用性越大。In order to judge whether the collected face image feature data of the person to be recognized has the feature data that meets the preconditions for face recognition, it is possible to generate a weighted value based on a number of samples consisting of historical face image feature data with successful face recognition. neural network. Among them, the neural network generates the weight value corresponding to each face part region according to the importance of each face part in the face recognition process; the larger the weight ratio, the more the face part region in the face recognition process. The more effective it is.
通过将若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,获知当前待识别人物的人脸遮挡程度是否影响人脸识别。具体的,当待识别人物的人脸有遮挡时,采集到的人脸图像特征数据会缺失被遮挡的人脸部位的相关特征数据。由于在训练好的神经网络中各个人脸部位区域的特征数据的权重按照对人脸识别作用性大则权重值大的规则配置,当采集到的人脸图像特征数据中缺失的被遮挡的人脸部位的相关特征数据在人脸识别过程中作用性小时,被赋予的权重值也小,从而使得最后根据赋权后的特征数据合集计算得到识别度系数不受被遮挡的人脸部位的相关特征数据的影响;当采集到的人脸图像特征数据中缺失的被遮挡的人脸部位的相关特征数据在人脸识别过程中作用性大时,被赋予的权重值也大,从而使得最后根据赋权后的特征数据合集计算得到识别度系数受被遮挡的人脸部位的相关特征数据的影响变小。因此,根据计算得到识别度系数的大小,可知当前待识别人物的人脸遮挡程度是否影响人脸识别。By inputting the corresponding feature data sets in several preset face region regions into the neural network for weighting, it is known whether the degree of face occlusion of the person to be recognized currently affects face recognition. Specifically, when the face of the person to be identified is occluded, the collected face image feature data may lack relevant feature data of the occluded face position. Since the weight of the feature data of each face region in the trained neural network is configured according to the rule that the greater the effect on face recognition, the greater the weight value, when the missing occluded features in the collected face image feature data The relevant feature data of the face position has little effect in the face recognition process, and the weight value given is also small, so that the face with the recognition coefficient that is not occluded is finally calculated according to the weighted feature data collection. The influence of the relevant feature data of the face image; when the relevant feature data of the occluded face position missing in the collected face image feature data has a great effect in the face recognition process, the assigned weight value is also large, Therefore, the influence of the recognition coefficient obtained by finally calculating according to the weighted feature data collection by the relevant feature data of the occluded face parts becomes smaller. Therefore, according to the size of the recognition coefficient obtained by calculation, it can be known whether the degree of face occlusion of the person to be recognized currently affects the face recognition.
作为其中一种优选方案,所述神经网络包含各个预设人脸部位区域对应的权重值;详细的,神经网络包含各个预设人脸部位区域对应的权重值,预设人脸部位区域在人脸识别过程中起得作用性越大,则对应的权重值越大。As one of the preferred solutions, the neural network includes weight values corresponding to each preset face region; in detail, the neural network includes weight values corresponding to each preset face region, and the preset face region The greater the role of the region in the face recognition process, the greater the corresponding weight value.
所述将所述若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,之后根据赋权后的特征数据合集计算得到识别度系数,具体包括:The described inputting the corresponding feature data sets in the several preset facial region regions into the neural network for weighting, and then calculating the recognition coefficient according to the weighted feature data sets, specifically including:
通过所述神经网络将各个所述预设人脸部位区域内对应的特征数据合集与所述预设人脸部位区域对应的权重值进行卷积,得到各个所述预设人脸部位区域内对应的含权特征数据;Through the neural network, the corresponding feature data sets in each of the preset face position regions are convolved with the weight values corresponding to the preset face position regions to obtain each of the preset face positions The corresponding weighted feature data in the area;
详细的,神经网络内包含的各个预设人脸部位区域对应的权重值,可为设置为若干神经网络层中的卷积核。若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权后,各个所述预设人脸部位区域内对应的特征数据合集与所述预设人脸部位区域对应的权重值进行卷积,得到各个所述预设人脸部位区域内对应的含权特征数据。Specifically, the weight values corresponding to each preset face region included in the neural network may be set as convolution kernels in several neural network layers. After the corresponding feature data sets in several preset face part regions are input into the neural network for weighting, the corresponding feature data sets in each of the preset face part regions and the corresponding weights of the preset face part regions The values are convolved to obtain the corresponding weighted feature data in each of the preset face regions.
对所有所述含权特征数据求和后进行归一化处理,生成识别度系数。After summing all the weighted feature data, normalization is performed to generate a recognition degree coefficient.
为方便进行对比判断,可对所有所述含权特征数据求和后进行归一化处理,生成识别度系数。In order to facilitate comparison and judgment, all the weighted feature data can be summed and then normalized to generate an identification coefficient.
由于某些特定场景中,例如加工工厂内部或医院等场景,往往人员会佩戴口罩,并且待识别人物不能轻易摘下口罩进行人脸识别。此时则需要适应该使用场景对人脸识别部位进行调整,需将人脸识别装置的识别重点调整为重点识别待识别人物的上半部分人脸区域。具体的,将人脸识别装置的识别重点调整为重点识别待识别人物的上半部分人脸区域的实现方法可为调整识别度模型中神经网络中上半部分人脸区域对应的权重值。Because in some specific scenarios, such as inside a processing factory or a hospital, people often wear masks, and the person to be identified cannot easily take off the mask for face recognition. At this time, it is necessary to adjust the face recognition part according to the usage scenario, and the recognition focus of the face recognition device needs to be adjusted to focus on recognizing the upper part of the face area of the person to be recognized. Specifically, the method of adjusting the recognition focus of the face recognition device to focus on recognizing the upper half of the face region of the person to be recognized may be to adjust the weight value corresponding to the upper half of the face region in the neural network in the recognition model.
作为其中一种优选方案,在将所述若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,之后根据赋权后的特征数据合集计算得到识别度系数之前,还包括:As one of the preferred solutions, before inputting the corresponding feature data sets in the several preset face regions into the neural network for weighting, and then calculating the recognition coefficient according to the weighted feature data sets, it also includes:
根据接收到的识别指令获取采集到的历史人脸图像信息;所述识别指令包括目标人脸部位;Obtain the collected historical face image information according to the received identification instruction; the identification instruction includes the target face position;
详细的,根据调整权重值的人脸部位生成识别指令,从而根据接收到的识别指令获取采集到的历史人脸图像信息。具体的,识别指令包括目标人脸部位。详细举例说明,若需将人脸识别装置的识别重点调整为重点识别待识别人物的上半部分人脸区域,则可将上半部分人脸区域设为目标人脸部位。In detail, the recognition instruction is generated according to the face position of which the weight value is adjusted, so as to obtain the collected historical face image information according to the received recognition instruction. Specifically, the identification instruction includes the face position of the target person. To illustrate in detail, if the recognition focus of the face recognition device needs to be adjusted to focus on recognizing the upper part of the face area of the person to be recognized, the upper part of the face area can be set as the target face position.
提取所述历史人脸图像信息中所述目标人脸部位的特征数据,得到样本数据;Extracting the feature data of the target face position in the historical face image information to obtain sample data;
将所述样本数据输入所述神经网络进行迭代训练,以增大所述神经网络中所述目标人脸部位的权重,获得更新后的神经网络。The sample data is input into the neural network for iterative training, so as to increase the weight of the target face part in the neural network to obtain an updated neural network.
通过将与目标人脸部位相关的样本数据输入所述神经网络进行迭代训练,以增大所述神经网络中所述目标人脸部位的权重,获得更新后的神经网络,来实现将人脸识别装置的识别重点调整为重点识别待识别人物的目标人脸部位区域,从而更加灵活的适配于各种不同的人脸识别使用场景。By inputting the sample data related to the target face position into the neural network for iterative training, to increase the weight of the target face position in the neural network, and to obtain an updated neural network, the human The recognition focus of the face recognition device is adjusted to focus on recognizing the target face region of the person to be recognized, so as to be more flexibly adapted to various face recognition usage scenarios.
S140:若所述识别度系数大于预设阈值,则采集所述待识别人物人脸所反射的超声波信号;S140: If the recognition coefficient is greater than a preset threshold, collect the ultrasonic signal reflected by the face of the person to be recognized;
详细的,该预设阈值由极限可识别的人脸图像样本输入训练好的识别度模型计算得到。若所述识别度系数大于预设阈值,则说明人脸图像特征数据内包含的人脸信息足够有效的进行人脸识别,可继续进行人脸识别,避免无效的运算,降低运算压力。In detail, the preset threshold is calculated by inputting the most recognizable face image samples into the trained recognition model. If the recognition coefficient is greater than the preset threshold, it means that the face information contained in the face image feature data is effective enough for face recognition, and face recognition can be continued, avoiding invalid operations and reducing computational pressure.
由于采集的人脸图像信息还可能存在过曝或被遮挡等问题,导致人脸信息的缺失,在判断识别度系数大于预设阈值,可通过采集待识别人物的人脸所反射的超声波信号,补充采集的人脸图像信息由于过曝或被遮挡等问题缺失的人脸信息,使得人脸识别过程能顺利准确进行,提高人脸识别的准确性。具体的,可通过控制与人脸识别装置连接的超声波信号发射装置对待识别人物的脸部发射超声波信号,然后接收与人脸识别装置连接的超声波信号传感器采集到的待识别人物的人脸所反射的超声波信号。Since the collected face image information may also have problems such as overexposure or occlusion, resulting in the lack of face information, when it is judged that the recognition coefficient is greater than the preset threshold, the ultrasonic signal reflected by the face of the person to be identified can be collected. The collected face image information is supplemented with missing face information due to problems such as overexposure or occlusion, so that the face recognition process can be carried out smoothly and accurately, and the accuracy of face recognition is improved. Specifically, the ultrasonic signal transmitter connected to the face recognition device can be controlled to transmit the ultrasonic signal to the face of the person to be recognized, and then the reflection from the face of the person to be recognized collected by the ultrasonic signal sensor connected to the face recognition device can be received. ultrasonic signal.
作为其中一种优选方案,在将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数之后,还包括:As one of the preferred solutions, after inputting the facial image feature data into the recognition degree model for face recognition degree calculation, and obtaining the recognition degree coefficient, the method further includes:
若所述识别度系数小于预设阈值,则重新采集待识别人物的人脸图像信息。具体的,若识别度系数小于预设阈值,则说明人脸图像特征数据内包含的人脸信息过少,无法进行有效的人脸识别。因此需重新采集待识别人物的人脸图像信息,直至识别度系数大于预设阈值。If the recognition degree coefficient is smaller than the preset threshold, the face image information of the person to be recognized is collected again. Specifically, if the recognition degree coefficient is smaller than the preset threshold, it means that the face information contained in the face image feature data is too small to perform effective face recognition. Therefore, it is necessary to re-collect the face image information of the person to be recognized until the recognition degree coefficient is greater than the preset threshold.
S150:从采集到的所述超声波信号中提取所述待识别人物的人脸超声波特征数据;S150: Extract the facial ultrasonic feature data of the person to be recognized from the collected ultrasonic signal;
采集到的超声波信号中各个信号所携带的信息为待识别人物的人脸特征信息,通过对超声波信号进行信号特征提取,可得到包含了待识别人物的人脸特征信息的人脸超声波特征数据。The information carried by each signal in the collected ultrasonic signal is the facial feature information of the person to be recognized. By performing signal feature extraction on the ultrasonic signal, the facial ultrasonic feature data including the facial feature information of the person to be recognized can be obtained.
S160:将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息;所述特征数据模板包括指定用户的身份信息和所述指定用户人脸对应的图像特征数据和超声波特征数据。S160: Compare the face image feature data and the face ultrasonic feature data with each feature data template in a preset feature database, to obtain the identification information of the person to be identified; the feature data template includes The identity information of the specified user and the image feature data and ultrasonic feature data corresponding to the face of the specified user.
为实现对特定用户或记录在案的成员进行识别,可预先设定需识别的用户为指定用户并采集指定用户的身份信息和所述指定用户人脸对应的图像特征数据和超声波特征数据。采集到的各个指定用户对应的信息为各个特征数据模板存储在数据库中。在进行数据对比时,从数据库中调用各个特征数据模板与采集到的人脸图像特征数据和所述人脸超声波特征数据分别进行比对,实现待识别人物的身份识别信息识别。In order to identify a specific user or a recorded member, the user to be identified can be preset as a designated user, and the identity information of the designated user and the image feature data and ultrasonic feature data corresponding to the designated user's face can be collected. The collected information corresponding to each designated user is stored in the database for each feature data template. During data comparison, each feature data template is called from the database, and the collected face image feature data and the face ultrasonic feature data are compared respectively, so as to realize the identification information of the person to be identified.
作为其中一种优选方案,所述将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息,具体包括:As one of the preferred solutions, the face image feature data and the face ultrasonic feature data are compared with each feature data template in a preset feature database, respectively, to obtain the identification information of the person to be identified. , including:
通过聚类法将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行聚类,确定所述人脸图像特征数据和所述人脸超声波特征数据的聚类中心所对应的指定用户为目标用户;The face image feature data and the face ultrasonic feature data are respectively clustered with each feature data template in the preset feature database by a clustering method to determine the face image feature data and the face ultrasonic feature The designated user corresponding to the cluster center of the data is the target user;
输出所述目标用户的身份信息。The identity information of the target user is output.
作为其中一种优选方案,在通过聚类法将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行聚类之后,还包括:As one of the preferred solutions, after clustering the face image feature data and the face ultrasonic feature data with each feature data template in the preset feature database by a clustering method, the method further includes:
若所述人脸图像特征数据和所述人脸超声波特征数据的聚类中心无所对应的指定用户,则输出识别失败的结果。If there is no designated user corresponding to the cluster center of the face image feature data and the face ultrasonic feature data, a result of recognition failure is output.
综上,本实施例提供的一种人脸识别方法,通过采集待识别人物的人脸图像信息;对所述人脸图像信息进行图像特征提取,得到所述待识别人物的人脸图像特征数据;将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数;若所述识别度系数大于预设阈值,则采集所述待识别人物人脸所反射的超声波信号;通过预先将人脸图像特征数据输入识别度模型进行人脸可识别度计算,获知当前待识别人物的人脸遮挡程度是否影响人脸识别,若识别度系数大于预设阈值,则说明人脸遮挡程度不影响人脸识别,才可继续进行人脸识别,避免无效的运算,降低运算压力;从采集到的所述超声波信号中提取所述待识别人物的人脸超声波特征数据;将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息;所述特征数据模板包括指定用户的身份信息和所述指定用户人脸对应的图像特征数据和超声波特征数据。通过将人脸图像信息与采集到的人脸超声波信号相结合,补充采集的人脸图像信息由于过曝或被遮挡等问题缺失的人脸信息,使得人脸识别过程能顺利准确进行,从而提高了人脸识别的准确性。相应地,本发明还提供人脸识别装置及设备。To sum up, in a face recognition method provided by this embodiment, the face image feature data of the to-be-recognized person is obtained by collecting the face image information of the person to be recognized, and performing image feature extraction on the face image information. ; Input the feature data of the facial image into the recognition model to calculate the recognizable degree of the human face, and obtain the recognition degree coefficient; Ultrasonic signal; by inputting the facial image feature data into the recognition model in advance to calculate the recognition degree of the face, to know whether the degree of face occlusion of the person to be recognized currently affects the recognition of the face, if the recognition degree coefficient is greater than the preset threshold, it means that The degree of face occlusion does not affect the face recognition, so that the face recognition can be continued to avoid invalid calculation and reduce the calculation pressure; extract the face ultrasonic feature data of the person to be recognized from the collected ultrasonic signal; The face image feature data and the face ultrasonic feature data are compared with each feature data template in the preset feature database respectively to obtain the identification information of the person to be identified; the feature data template includes the specified user's data. Identity information and image feature data and ultrasonic feature data corresponding to the face of the designated user. By combining the face image information with the collected face ultrasonic signals, the collected face image information is supplemented with the missing face information due to problems such as overexposure or occlusion, so that the face recognition process can be carried out smoothly and accurately, thereby improving the accuracy of face recognition. Correspondingly, the present invention also provides a face recognition device and equipment.
实施例二
在实施例一的基础上,如图2所示,本发明实施例还提供了一种人脸识别装置2,包括:On the basis of Embodiment 1, as shown in FIG. 2 , an embodiment of the present invention further provides a
人脸图像信息采集模块201,用于采集待识别人物的人脸图像信息;A face image information collection module 201, configured to collect face image information of the person to be identified;
第一特征提取模块202,用于对所述人脸图像信息进行图像特征提取,得到所述待识别人物的人脸图像特征数据;The first feature extraction module 202 is configured to perform image feature extraction on the face image information to obtain the face image feature data of the person to be identified;
系数计算模块203,用于将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数;The coefficient calculation module 203 is used for inputting the feature data of the face image into the recognition degree model to calculate the recognition degree of the face, and obtain the recognition degree coefficient;
超声波信号采集模块204,用于若所述识别度系数大于预设阈值,则采集所述待识别人物人脸所反射的超声波信号;The ultrasonic signal collection module 204 is configured to collect the ultrasonic signal reflected by the face of the person to be recognized if the recognition coefficient is greater than a preset threshold;
第二特征提取模块205,用于从采集到的所述超声波信号中提取所述待识别人物的人脸超声波特征数据;The second feature extraction module 205 is configured to extract the face ultrasonic feature data of the person to be recognized from the collected ultrasonic signal;
识别模块206,用于将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息;所述特征数据模板包括指定用户的身份信息和所述指定用户人脸对应的图像特征数据和超声波特征数据。The identification module 206 is configured to compare the face image feature data and the face ultrasonic feature data with each feature data template in a preset feature database, to obtain the identification information of the person to be identified; the The feature data template includes the identity information of the specified user and the image feature data and ultrasonic feature data corresponding to the face of the specified user.
作为其中一种优选方案,系数计算模块203,还包括:As one of the preferred solutions, the coefficient calculation module 203 further includes:
分类单元,用于通过分类器对所述人脸图像特征数据进行人脸区域划分,得到若干预设人脸部位区域内对应的特征数据合集;所述预设人,脸部位包括眼睛、额头、鼻子、嘴巴、脸颊和下巴;A classification unit, configured to divide the face image feature data by a classifier, and obtain a collection of corresponding feature data in a number of preset face position regions; for the preset person, the face positions include eyes, forehead, nose, mouth, cheeks and chin;
系数计算单元,用于将所述若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,之后根据赋权后的特征数据合集计算得到识别度系数。The coefficient calculation unit is used for inputting the corresponding feature data sets in the preset facial region regions into the neural network for weighting, and then calculating the recognition coefficient according to the weighted feature data sets.
作为其中一种优选方案,所述神经网络包含各个预设人脸部位区域对应的权重值;As one of the preferred solutions, the neural network includes weight values corresponding to each preset face region;
系数计算单元,具体用于:Coefficient calculation unit, specifically for:
通过所述神经网络将各个所述预设人脸部位区域内对应的特征数据合集与所述预设人脸部位区域对应的权重值进行卷积,得到各个所述预设人脸部位区域内对应的含权特征数据;Through the neural network, the corresponding feature data sets in each of the preset face position regions are convolved with the weight values corresponding to the preset face position regions to obtain each of the preset face positions The corresponding weighted feature data in the area;
对所有所述含权特征数据求和后进行归一化处理,生成识别度系数。After summing all the weighted feature data, normalization is performed to generate a recognition degree coefficient.
作为其中一种优选方案,在将所述若干预设人脸部位区域内对应的特征数据合集输入神经网络赋权,之后根据赋权后的特征数据合集计算得到识别度系数之前,还包括:As one of the preferred solutions, before inputting the corresponding feature data sets in the several preset face regions into the neural network for weighting, and then calculating the recognition coefficient according to the weighted feature data sets, it also includes:
根据接收到的识别指令获取采集到的历史人脸图像信息;所述识别指令包括目标人脸部位;Obtain the collected historical face image information according to the received identification instruction; the identification instruction includes the target face position;
提取所述历史人脸图像信息中所述目标人脸部位的特征数据,得到样本数据;Extracting the feature data of the target face position in the historical face image information to obtain sample data;
将所述样本数据输入所述神经网络进行迭代训练,以增大所述神经网络中所述目标人脸部位的权重,获得更新后的神经网络。The sample data is input into the neural network for iterative training, so as to increase the weight of the target face part in the neural network to obtain an updated neural network.
作为其中一种优选方案,所述装置还包括:As one of the preferred solutions, the device further includes:
重新采集信息模块,用于若所述识别度系数小于预设阈值,则重新采集待识别人物的人脸图像信息。The information re-collection module is configured to re-collect the face image information of the person to be recognized if the recognition degree coefficient is smaller than the preset threshold.
作为其中一种优选方案,所述人脸图像信息为可见光图像信息或红外图像信息。As one of the preferred solutions, the face image information is visible light image information or infrared image information.
作为其中一种优选方案,所述识别模块206,具体包括:As one of the preferred solutions, the identification module 206 specifically includes:
聚类单元,用于通过聚类法将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行聚类,确定所述人脸图像特征数据和所述人脸超声波特征数据的聚类中心所对应的指定用户为目标用户;The clustering unit is used for clustering the face image feature data and the face ultrasonic feature data with each feature data template in the preset feature database by a clustering method, and determining the face image feature data and the face image feature data. The designated user corresponding to the cluster center of the ultrasonic facial feature data is the target user;
身份信息输出单元,用于输出所述目标用户的身份信息。The identity information output unit is used for outputting the identity information of the target user.
作为其中一种优选方案,所述识别模块206还包括:As one of the preferred solutions, the identification module 206 further includes:
识别失败结果输出单元,用于若所述人脸图像特征数据和所述人脸超声波特征数据的聚类中心无所对应的指定用户,则输出识别失败的结果。A recognition failure result output unit, configured to output a recognition failure result if there is no designated user corresponding to the cluster center of the face image feature data and the face ultrasonic feature data.
综上,本实施例提供的一种人脸识别装置,通过采集待识别人物的人脸图像信息;对所述人脸图像信息进行图像特征提取,得到所述待识别人物的人脸图像特征数据;将所述人脸图像特征数据输入识别度模型以进行人脸可识别度计算,得到识别度系数;若所述识别度系数大于预设阈值,则采集所述待识别人物人脸所反射的超声波信号;通过预先将人脸图像特征数据输入识别度模型进行人脸可识别度计算,获知当前待识别人物的人脸遮挡程度是否影响人脸识别,若识别度系数大于预设阈值,则说明人脸遮挡程度不影响人脸识别,才可继续进行人脸识别,避免无效的运算,降低运算压力;从采集到的所述超声波信号中提取所述待识别人物的人脸超声波特征数据;将所述人脸图像特征数据和所述人脸超声波特征数据分别与预设特征数据库中各个特征数据模板进行比对,获得所述待识别人物的身份识别信息;所述特征数据模板包括指定用户的身份信息和所述指定用户人脸对应的图像特征数据和超声波特征数据。通过将人脸图像信息与采集到的人脸超声波信号相结合,补充采集的人脸图像信息由于过曝或被遮挡等问题缺失的人脸信息,使得人脸识别过程能顺利准确进行,从而提高了人脸识别的准确性。相应地,本发明还提供人脸识别装置及设备。To sum up, a face recognition device provided in this embodiment obtains the face image feature data of the person to be recognized by collecting the face image information of the person to be recognized, and extracting the image features from the face image information. ; Input the feature data of the facial image into the recognition model to calculate the recognizable degree of the human face, and obtain the recognition degree coefficient; Ultrasonic signal; by inputting the facial image feature data into the recognition model in advance to calculate the recognition degree of the face, to know whether the degree of face occlusion of the person to be recognized currently affects the recognition of the face, if the recognition degree coefficient is greater than the preset threshold, it means that The degree of face occlusion does not affect the face recognition, so that the face recognition can be continued to avoid invalid calculation and reduce the calculation pressure; extract the face ultrasonic feature data of the person to be recognized from the collected ultrasonic signal; The face image feature data and the face ultrasonic feature data are compared with each feature data template in the preset feature database respectively to obtain the identification information of the person to be identified; the feature data template includes the specified user's Identity information and image feature data and ultrasonic feature data corresponding to the face of the designated user. By combining the face image information with the collected face ultrasonic signals, the collected face image information is supplemented with the missing face information due to problems such as overexposure or occlusion, so that the face recognition process can be carried out smoothly and accurately, thereby improving the accuracy of face recognition. Correspondingly, the present invention also provides a face recognition device and equipment.
实施例三Embodiment 3
请参阅图3,本发明实施例还提供一种终端设备即计算机终端设备,包括一个或多个处理器和存储器。存储器与所述处理器耦接,用于存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述任意一个实施例所述的人脸识别方法。Referring to FIG. 3 , an embodiment of the present invention further provides a terminal device, that is, a computer terminal device, including one or more processors and a memory. A memory is coupled to the processor for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement any of the above The face recognition method according to an embodiment.
处理器用于控制该计算机终端设备的整体操作,以完成上述的基于人脸识别的终端设备控制装置100的全部或部分步骤。存储器用于存储各种类型的数据以支持在该计算机终端设备的操作,这些数据例如可以包括用于在该计算机终端设备上操作的任何应用程序或方法的指令,以及应用程序相关的数据。该存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random AccessMemory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable ProgrammableRead-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable ProgrammableRead-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。The processor is used to control the overall operation of the computer terminal device, so as to complete all or part of the steps of the above-mentioned face recognition-based terminal device control apparatus 100 . The memory is used to store various types of data to support operation at the computer terminal device, such data may include, for example, instructions for any application or method for operation on the computer terminal device, as well as application-related data. The memory can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable) Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read- Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk.
在一示例性实施例中,计算机终端设备可以被一个或多个应用专用集成电路(Application Specific 1ntegrated Circuit,简称AS1C) 、数字信号处理器(DigitalSignal Processor,简称DSP) 、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD) 、现场可编程门阵列(Field Programmable Gate Array ,简称FPGA) 、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的基于人脸识别的终端设备控制方法,并达到如上述方法一致的技术效果。In an exemplary embodiment, the computer terminal device may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, AS1C for short), Digital Signal Processor (Digital Signal Processor, DSP for short), Digital Signal Processing Device (Digital Signal Processing) Processing Device, referred to as DSPD), Programmable Logic Device (Programmable Logic Device, referred to as PLD), Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA), controller, microcontroller, microprocessor or other electronic components. , which is used to execute the above-mentioned terminal device control method based on face recognition, and achieve the same technical effect as the above-mentioned method.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现如上述任意一个实施例所述的基于人脸识别的终端设备控制方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器,上述程序指令可由计算机终端设备的处理器执行以完成上述的基于人脸识别的终端设备控制方法,并达到如上述方法一致的技术效果。In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the terminal device control based on face recognition as described in any one of the foregoing embodiments is implemented steps of the method. For example, the computer-readable storage medium can be the above-mentioned memory including program instructions, and the above-mentioned program instructions can be executed by the processor of the computer terminal device to complete the above-mentioned face recognition-based terminal device control method, and achieve the same technology as the above method. Effect.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made, and these improvements and modifications may also be regarded as It is the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210407077.5A CN114511914B (en) | 2022-04-19 | 2022-04-19 | Face recognition method and device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210407077.5A CN114511914B (en) | 2022-04-19 | 2022-04-19 | Face recognition method and device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114511914A true CN114511914A (en) | 2022-05-17 |
CN114511914B CN114511914B (en) | 2022-08-02 |
Family
ID=81555409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210407077.5A Active CN114511914B (en) | 2022-04-19 | 2022-04-19 | Face recognition method and device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114511914B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100150450A1 (en) * | 2008-12-11 | 2010-06-17 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and image capturing apparatus |
CN106980836A (en) * | 2017-03-28 | 2017-07-25 | 北京小米移动软件有限公司 | Auth method and device |
CN110135362A (en) * | 2019-05-19 | 2019-08-16 | 北京深醒科技有限公司 | A fast face recognition method based on infrared camera |
CN110688973A (en) * | 2019-09-30 | 2020-01-14 | Oppo广东移动通信有限公司 | Equipment control method and related products |
CN111738078A (en) * | 2020-05-19 | 2020-10-02 | 云知声智能科技股份有限公司 | Face recognition method and device |
CN112183219A (en) * | 2020-09-03 | 2021-01-05 | 广州市标准化研究院 | Public safety video monitoring method and system based on face recognition |
CN112613432A (en) * | 2020-12-28 | 2021-04-06 | 杭州海关技术中心 | Customs inspection system for 'water visitor' judgment based on face-human eye detection |
-
2022
- 2022-04-19 CN CN202210407077.5A patent/CN114511914B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100150450A1 (en) * | 2008-12-11 | 2010-06-17 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and image capturing apparatus |
CN106980836A (en) * | 2017-03-28 | 2017-07-25 | 北京小米移动软件有限公司 | Auth method and device |
CN110135362A (en) * | 2019-05-19 | 2019-08-16 | 北京深醒科技有限公司 | A fast face recognition method based on infrared camera |
CN110688973A (en) * | 2019-09-30 | 2020-01-14 | Oppo广东移动通信有限公司 | Equipment control method and related products |
CN111738078A (en) * | 2020-05-19 | 2020-10-02 | 云知声智能科技股份有限公司 | Face recognition method and device |
CN112183219A (en) * | 2020-09-03 | 2021-01-05 | 广州市标准化研究院 | Public safety video monitoring method and system based on face recognition |
CN112613432A (en) * | 2020-12-28 | 2021-04-06 | 杭州海关技术中心 | Customs inspection system for 'water visitor' judgment based on face-human eye detection |
Non-Patent Citations (1)
Title |
---|
晏清微: "人脸检测方法的研究", 《计算机安全》 * |
Also Published As
Publication number | Publication date |
---|---|
CN114511914B (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110826519B (en) | Face shielding detection method and device, computer equipment and storage medium | |
WO2020252917A1 (en) | Fuzzy face image recognition method and apparatus, terminal device, and medium | |
US11259718B1 (en) | Systems and methods for automated body mass index calculation to determine value | |
CN113095124B (en) | A face life detection method, device and electronic equipment | |
WO2019232866A1 (en) | Human eye model training method, human eye recognition method, apparatus, device and medium | |
WO2019232862A1 (en) | Mouth model training method and apparatus, mouth recognition method and apparatus, device, and medium | |
TW202011315A (en) | Method, apparatus, and system for resource transfer | |
KR20170134356A (en) | System and method for performing fingerprint-based user authentication using images photographed using a mobile device | |
CN112597867A (en) | Face recognition method and system for mask, computer equipment and storage medium | |
WO2022121130A1 (en) | Power target detection method and apparatus, computer device, and storage medium | |
CN111914748B (en) | Face recognition method, device, electronic equipment and computer readable storage medium | |
CN111598038A (en) | Face feature point detection method, device, equipment and storage medium | |
CN112149601B (en) | Facial attribute recognition method, device and electronic device compatible with occlusion | |
CN113780201A (en) | Hand image processing method and device, equipment and medium | |
WO2021082548A1 (en) | Living body testing method and apparatus, server and facial recognition device | |
CN115050062A (en) | Identity recognition method, device, equipment and medium | |
CN112036209A (en) | Portrait photo processing method and terminal | |
CN114511914B (en) | Face recognition method and device and terminal equipment | |
CN112699770A (en) | Method and related device for detecting skin color | |
CN112200109A (en) | Face attribute recognition method, electronic device, and computer-readable storage medium | |
EP4451236A1 (en) | Living body detection method and apparatus, and computer device | |
CN110934565A (en) | A kind of pupil diameter measurement method, device and computer readable storage medium | |
CN109241942A (en) | Image processing method, device, face recognition device and storage medium | |
CN111274899B (en) | Face matching method, device, electronic equipment and storage medium | |
Ranjan et al. | Detection of cataract and its level based on deep learning using mobile application |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PP01 | Preservation of patent right |
Effective date of registration: 20241115 Granted publication date: 20220802 |
|
PP01 | Preservation of patent right |