CN111582150A - A method, device and computer storage medium for face quality assessment - Google Patents
A method, device and computer storage medium for face quality assessment Download PDFInfo
- Publication number
- CN111582150A CN111582150A CN202010376484.5A CN202010376484A CN111582150A CN 111582150 A CN111582150 A CN 111582150A CN 202010376484 A CN202010376484 A CN 202010376484A CN 111582150 A CN111582150 A CN 111582150A
- Authority
- CN
- China
- Prior art keywords
- feature
- face
- feature data
- training set
- loss function
- 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 31
- 238000001303 quality assessment method Methods 0.000 title claims abstract description 23
- 238000013441 quality evaluation Methods 0.000 claims abstract description 43
- 238000013527 convolutional neural network Methods 0.000 claims abstract description 10
- 238000000605 extraction Methods 0.000 claims abstract description 9
- 230000006870 function Effects 0.000 claims description 32
- 238000010801 machine learning Methods 0.000 claims description 13
- 238000011156 evaluation Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 239000013598 vector Substances 0.000 description 10
- 230000007423 decrease Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 238000007477 logistic regression Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
- Collating Specific Patterns (AREA)
Abstract
本发明公开了一种人脸质量评估的方法、装置和计算机存储介质,评估的方法包括如下步骤:获取多张人脸图像;利用卷积神经网络算法,对获取的人脸图像进行特征提取作为特征训练集;将特征训练集中的特征数据输入到图像质量评估模型,输出质量评估值,对所述质量评估值满足预设条件的特征数据进行人脸识别,对所述质量评估值满足预设条件的特征数据进行人脸识别在人脸识别的基础上修改损失函数使得人脸识别网络同时具有人脸质量评估的功能,本发明在人脸识别过程中同时评估质量,训练过程中不需要人脸图片质量标签,便于实施。
The invention discloses a face quality assessment method, device and computer storage medium. The assessment method includes the following steps: acquiring a plurality of face images; using a convolutional neural network algorithm to perform feature extraction on the acquired face images as Feature training set; input the feature data in the feature training set into the image quality evaluation model, output the quality evaluation value, perform face recognition on the feature data whose quality evaluation value meets preset conditions, and perform face recognition on the feature data whose quality evaluation value satisfies the preset condition Conditional feature data for face recognition The loss function is modified on the basis of face recognition, so that the face recognition network has the function of face quality assessment at the same time. Face image quality tags for easy implementation.
Description
技术领域technical field
本发明涉及计算机视觉技术领域,尤其涉及一种人脸质量评估的方法、装置和计算机存储介质。The present invention relates to the technical field of computer vision, and in particular, to a method, a device and a computer storage medium for face quality assessment.
背景技术Background technique
人脸识别的过程就是将人脸图像映射到一个特征向量,利用特征向量间的余玄距离来计算相似度,在训练的过程中,缩小类内的距离,增大类间的距离。对于一个确定的人脸识别网络,输入两个相似的图片,即使是非人脸图片,也会得到两个相似度较高的特征向量。例如,输入两张模糊的人脸图片,虽然他们有较高的相似度,但是人们并不确定它们表示的是同一个人,这是因为人们能判断出来,这些模糊的图片并不适合用于人脸识别。The process of face recognition is to map the face image to a feature vector, and use the residual distance between the feature vectors to calculate the similarity. During the training process, the distance within the class is reduced and the distance between the classes is increased. For a certain face recognition network, inputting two similar pictures, even non-face pictures, will get two feature vectors with high similarity. For example, input two blurred face pictures, although they have high similarity, but people are not sure that they represent the same person, because people can judge that these blurry pictures are not suitable for people face recognition.
对于人脸识别性能造成影响的因素有光照,清晰度,侧脸,表情和遮挡等,这些因素都可以用人脸质量来表示。人脸质量即预测一张人脸图片是否适合用于人脸识别。对于人脸质量的训练来说,训练数据是一个很大的瓶颈,由于对人脸质量有影响的因素很多,人们很难评估不同因素间的影响程度,因此难以对人脸图片质量进行打标签。现有方法基于人脸识别模型计算相似度,例如,从每个人的图片中挑选一张质量最好的,然后根据预训练人脸识别模型,计算每个人其他人脸图片与最好质量图片之间的相似度,以相似度作为质量的标签,基于上述数据进行人脸质量的训练。现有基于人脸识别模型计算出来的相似度不一定能代表质量,例如2个人脸图片都是清晰的正脸,但是由于相隔时间较长,他们的质量都很高,但是相似度不一定高。这样就造成了人脸质量标签的错误。The factors that affect the performance of face recognition include illumination, clarity, profile, expression and occlusion, etc. These factors can be expressed by face quality. Face quality is to predict whether a face image is suitable for face recognition. For the training of face quality, training data is a big bottleneck. Since there are many factors that affect face quality, it is difficult for people to evaluate the degree of influence between different factors, so it is difficult to label the quality of face pictures. . Existing methods calculate the similarity based on the face recognition model. For example, select a picture with the best quality from each person's picture, and then calculate the difference between each person's other face pictures and the best quality picture according to the pre-trained face recognition model. The similarity between the two, and the similarity is used as the quality label, and the training of face quality is performed based on the above data. The similarity calculated based on the existing face recognition model does not necessarily represent the quality. For example, the two face pictures are both clear frontal faces, but due to the long time interval, their quality is high, but the similarity is not necessarily high. . This results in an error in the face quality label.
发明内容SUMMARY OF THE INVENTION
针对上述技术问题,本发明提供了一种人脸质量评估的方法,装置和计算机存储介质,在人脸识别过程中同时估计质量,训练过程中不需要人脸图片质量标签,便于实施。In view of the above technical problems, the present invention provides a method, device and computer storage medium for evaluating the quality of a face, which simultaneously estimates the quality during the face recognition process, and does not require a face image quality label during the training process, which is convenient for implementation.
本发明实施例提供一种人脸质量评估的方法,所述方法包括如下步骤:获取多张人脸图像;利用卷积神经网络算法,对获取的人脸图像进行特征提取作为特征训练集;将所述特征训练集中的特征数据输入到图像质量评估模型,输出质量评估值,其中,所述图像质量评估模型是采用机器学习方法,利用预设的样本图像的特征数据和所述特征训练集中的特征数据,根据高斯分布和概率密度,基于损失函数训练得出的;对所述质量评估值满足预设条件的特征数据进行人脸识别。An embodiment of the present invention provides a method for evaluating face quality, the method comprising the steps of: acquiring multiple face images; using a convolutional neural network algorithm to perform feature extraction on the acquired face images as a feature training set; The feature data in the feature training set is input into the image quality evaluation model, and the quality evaluation value is output, wherein the image quality evaluation model adopts a machine learning method, using the preset feature data of the sample image and the feature data in the feature training set. The characteristic data is obtained by training based on the loss function according to the Gaussian distribution and probability density; face recognition is performed on the characteristic data whose quality evaluation value satisfies the preset conditions.
可选地,所述图像质量评估模型是采用机器学习方法,根据特征数据的高斯分布和概率密度,基于损失函数训练得出的步骤包括:若训练集中特征数据xi的身份ID为j,根据高斯分布获取身份ID为j的特征数据xi概率密度;计算特征数据xi属于身份ID为j的概率;根据所述概率密度和概率获取损失函数。Optionally, the image quality assessment model adopts a machine learning method, and according to the Gaussian distribution and probability density of the feature data, the steps of training based on the loss function include: if the identity ID of the feature data x i in the training set is j, according to The Gaussian distribution obtains the probability density of the feature data xi with the identity ID j; calculates the probability that the feature data xi belongs to the identity ID j; obtains the loss function according to the probability density and the probability.
可选地,所述损失函数的值用于表征与同一人的样本图像的特征数据和特征训练集中的特征数据的质量评估值之间的差异。Optionally, the value of the loss function is used to represent the difference between the feature data of the sample image of the same person and the quality evaluation value of the feature data in the feature training set.
可选地,所述根据所述概率密度和概率获取损失函数的步骤还包括:计算各所述样本图像的特征数据与对应的特征训练集中的特征数据之间的余弦值。Optionally, the step of obtaining the loss function according to the probability density and the probability further includes: calculating a cosine value between the feature data of each of the sample images and the feature data in the corresponding feature training set.
本发明还提供了一种人脸质量评估的装置,所述装置包括:获取单元,用于获取多张人脸图像;特征提取单元,利用卷积神经网络算法,对获取的人脸图像进行特征提取作为特征训练集;评估单元,将所述特征训练集中的特征数据输入到图像质量评估模型,输出质量评估值,其中,所述图像质量评估模型是采用机器学习方法,利用预设的样本图像的特征数据和所述特征训练集中的特征数据,根据高斯分布和概率密度,基于损失函数训练得出的;识别单元,对所述质量评估值满足预设条件的特征数据进行人脸识别。The present invention also provides a face quality assessment device, the device includes: an acquisition unit for acquiring multiple face images; a feature extraction unit for using a convolutional neural network algorithm to characterize the acquired face images Extraction as a feature training set; the evaluation unit inputs the feature data in the feature training set into an image quality evaluation model, and outputs a quality evaluation value, wherein the image quality evaluation model adopts a machine learning method and uses a preset sample image The feature data and the feature data in the feature training set are obtained based on Gaussian distribution and probability density, based on loss function training; the recognition unit performs face recognition on the feature data whose quality evaluation value meets preset conditions.
优选的,所述装置还包括:训练单元,用于采用机器学习方法,利用预设的样本图像的特征数据和所述特征训练集中的特征数据,根据高斯分布和概率密度,基于损失函数训练得出的所述图像质量评估模型;所述训练单元基于如下步骤训练得出所述图像质量评估模型:若训练集中特征数据xi的身份ID为j,根据高斯分布获取身份ID为j的特征数据xi概率密度;计算特征数据xi属于身份ID为j的概率;根据所述概率密度和概率获取损失函数。Preferably, the device further comprises: a training unit for using a machine learning method, using the preset feature data of the sample image and the feature data in the feature training set, and training the result based on the loss function according to the Gaussian distribution and the probability density. Described image quality assessment model that comes out; Described training unit obtains described image quality assessment model based on following steps training: If the identity ID of characteristic data x i in the training set is j, obtain the characteristic data that identity ID is j according to Gaussian distribution xi probability density; calculate the probability that the feature data xi belongs to the identity ID j; obtain a loss function according to the probability density and probability.
优选的,所述损失函数的值用于表征与同一人的样本图像的特征数据和特征训练集中的特征数据的质量评估值之间的差异。Preferably, the value of the loss function is used to represent the difference between the feature data of the sample image of the same person and the quality evaluation value of the feature data in the feature training set.
本发明还提供了一种计算机存储介质,所述计算机程序被处理器执行时实现上述各权利要求中任一项所述方法的步骤。The present invention also provides a computer storage medium, when the computer program is executed by a processor, the steps of the method described in any one of the preceding claims are implemented.
本发明实施例提供的技术方案中,利用卷积神经网络算法提取特征训练集,将特征训练集中的特征数据输入到图像质量评估模型,输出质量评估值,对所述质量评估值满足预设条件的特征数据进行人脸识别,因此相对于现有技术,本发明实施例在人脸识别的基础上修改损失函数使得人脸识别网络同时具有人脸质量评估的功能,本发明在人脸识别过程中同时评估质量,训练过程中不需要人脸图片质量标签,便于实施。In the technical solution provided by the embodiment of the present invention, a feature training set is extracted by using a convolutional neural network algorithm, the feature data in the feature training set is input into an image quality evaluation model, and a quality evaluation value is output, and the quality evaluation value satisfies a preset condition Therefore, compared with the prior art, the embodiment of the present invention modifies the loss function on the basis of face recognition, so that the face recognition network has the function of face quality assessment at the same time. The quality is evaluated at the same time in the training process, and the face image quality label is not required during the training process, which is convenient for implementation.
附图说明Description of drawings
图1为本发明一种人脸质量评估的方法的一个实施例的流程示意图;1 is a schematic flowchart of an embodiment of a method for evaluating the quality of a human face according to the present invention;
图2为本发明一种人脸质量评估的方法的另一个实施例的流程示意图;2 is a schematic flowchart of another embodiment of a method for evaluating the quality of a human face according to the present invention;
图3为本发明一种人脸质量评估的装置的结构示意图。FIG. 3 is a schematic structural diagram of an apparatus for evaluating the quality of a human face according to 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 skilled in the art without creative efforts shall fall within the protection scope of the present invention.
本发明提供一种人脸质量评估的方法,运行于电子设备上,例如终端设备或者服务器,请参考图1所示,所述方法包括如下步骤:The present invention provides a method for evaluating the quality of a human face, which runs on an electronic device, such as a terminal device or a server. Please refer to FIG. 1 . The method includes the following steps:
步骤S10,获取多张人脸图像。在本实施例中,可以直接向终端设备或服务器输入多张人脸图像,待评估的人脸图像可以是在各种环境采集到的人脸图像,可以是可见光人脸图像或非可见光人脸图像,可以是清晰的人脸图像或运动模糊/离焦模糊的人脸图像,可以是在拍摄对象的配合状态或非配合状态下采集的人脸图像,还可以是包含噪声的人脸图像,等等。Step S10, acquiring multiple face images. In this embodiment, multiple face images may be directly input to the terminal device or server, and the face images to be evaluated may be face images collected in various environments, and may be visible light face images or non-visible light face images The image, which can be a clear face image or a face image with motion blur/defocus blur, can be a face image collected in the cooperating state or non-cooperating state of the subject, or a face image containing noise, and many more.
步骤S20,利用卷积神经网络算法,对获取的人脸图像进行特征提取作为特征训练集。将待评估的人脸图像输入卷积神经网络,通过计算机对人脸图像进行特征提取,并将提取的特征作为特征训练集。Step S20, using a convolutional neural network algorithm to extract features from the acquired face image as a feature training set. Input the face image to be evaluated into the convolutional neural network, extract the features of the face image through the computer, and use the extracted features as the feature training set.
步骤S30,将特征训练集中的特征数据输入到图像质量评估模型,输出质量评估值,其中,所述图像质量评估模型是采用机器学习方法,利用预设的样本图像的特征数据和所述特征训练集中的特征数据,根据高斯分布和概率密度,基于损失函数训练得出的。Step S30, input the feature data in the feature training set into the image quality evaluation model, and output the quality evaluation value, wherein, the image quality evaluation model adopts a machine learning method, and uses the preset feature data of the sample image and the feature training method. The centralized feature data, according to the Gaussian distribution and probability density, is obtained by training based on the loss function.
在本发明的其中一实施例中,请参考图2所示,所述步骤S30中图像质量评估模型是采用机器学习方法,根据特征数据的高斯分布和概率密度,基于损失函数训练得出的步骤具体包括:In one of the embodiments of the present invention, please refer to FIG. 2 , the image quality evaluation model in step S30 adopts the machine learning method, according to the Gaussian distribution and probability density of the feature data, and the steps obtained by training based on the loss function Specifically include:
步骤S31,若训练集中特征数据xi的身份ID为j,根据高斯分布获取身份ID为j的特征数据xi概率密度;Step S31, if the identity ID of the feature data xi in the training set is j , obtain the probability density of the feature data xi whose identity ID is j according to the Gaussian distribution;
步骤S32,计算特征数据xi属于身份ID为j的概率;Step S32, calculate the probability that the feature data x i belongs to the identity ID j;
步骤S33,根据概率密度和概率获取损失函数。Step S33, obtaining a loss function according to the probability density and probability.
具体的,把人脸图像的特征数据看作一个高斯分别,假设训练集中有N个人的数据,y∈{1,2,...N}代表了各个特征数据的身分ID,假设其中一个输入图像对应的特征数据为xi,其对应的身份ID为j,对应的特征服从于高斯分布N(fi,σ2I),其对应的身份ID为j的样本图像的向量为wj,则身份ID为j的样本图像的特征数据为xi的概率密度为公式(1):Specifically, the feature data of the face image is regarded as a Gaussian difference, assuming that there are data of N people in the training set, y∈{1, 2,...N} represents the identity ID of each feature data, assuming that one of the input The feature data corresponding to the image is x i , its corresponding identity ID is j, the corresponding feature obeys the Gaussian distribution N(f i , σ 2 I), and the vector of the sample image whose corresponding identity ID is j is w j , Then the probability density of the feature data of the sample image whose identity ID is j is xi is formula (1):
此处D为特征向量的特征维数。另外,假设每个身份ID的先验概率是相等的,即随机抽取一张待评估的人脸图像,属于每个身份ID的概率是一样的,则特征数据xi属于身份ID为j的概率为:Here D is the feature dimension of the feature vector. In addition, it is assumed that the prior probability of each identity ID is equal, that is, a face image to be evaluated is randomly selected, and the probability of belonging to each identity ID is the same, then the feature data x i belongs to the probability that the identity ID is j for:
把上述公式进行简化,将fi和wj限制为单位向量,定义则Simplify the above formula, constrain f i and w j to be unit vectors, define but
上述公式可表达为:The above formula can be expressed as:
上述公式si可以看作图像xi的可靠度,但是si的取值并没有范围限定,并不好作为人脸质量的评价指标。因此我们假设si的最大值取S,则,The above formula si can be regarded as the reliability of the image xi , but the value of si is not limited in the range, and it is not a good evaluation index for the quality of the face. Therefore, we assume that the maximum value of si takes S, then,
si=S*di,di∈[0,1]s i =S*d i , d i ∈ [0, 1]
因此上述公式可表达为:So the above formula can be expressed as:
此处di即代表人脸质量,人脸质量越高,则此处di的取值越接近于1。fiwj=cos(θij),Here d i represents the quality of the face, and the higher the quality of the face, the closer the value of d i is to 1. f i w j =cos(θ ij ),
θij是向量fi和wj之间的夹角。在训练时,参考ArcFace加入Margin损失,损失函数如下:θ ij is the angle between the vectors fi and w j . During training, refer to ArcFace to add Margin loss. The loss function is as follows:
上述公式(6)中的损失函数在ArcFace的基础上引入质量评估值di,在训练时,高质量的人脸更接近对应人的样本图像的特征向量wj,因此向量之间的夹角θij较小,为了使得损失值降低,di的值就会增大。The loss function in the above formula (6) introduces the quality evaluation value d i on the basis of ArcFace. During training, the high-quality face is closer to the feature vector w j of the corresponding person's sample image, so the angle between the vectors is When θ ij is small, in order to reduce the loss value, the value of d i will be increased.
在训练中对于低质量人脸与对应人的特征wj相似度较低,因此向量之间的夹角θij较大,为了使得损失值降低,di的值就会减小。During training, the similarity between the low-quality face and the feature w j of the corresponding person is low, so the angle θ ij between the vectors is large. In order to reduce the loss value, the value of d i will be reduced.
因此,无论是遮挡,模糊,还是侧脸等因素造成的低质量,只要是难以识的,在训练人脸识别时,他们的特征与同一个人的样本图像的特征数据之间夹角较大,都可以得到较小的质量评估值。Therefore, no matter the low quality caused by factors such as occlusion, blur, or profile, as long as it is difficult to recognize, when training face recognition, the angle between their features and the feature data of the same person's sample image is relatively large. A smaller quality evaluation value can be obtained.
在训练时,随着低质量人脸di值的降低,其训练权重也会降低;反之,高质量人脸权重较高。使得每个人的特征wj自动向高质量人脸靠拢。During training, as the value of low-quality face d i decreases, its training weight will also decrease; on the contrary, the weight of high-quality face is higher. Make each person's feature wj automatically close to the high-quality face.
步骤S40,对质量评估值满足预设条件的特征数据进行人脸识别。将经过图像质量评估模型输出的质量评估值中满足预设条件的特征数据输入到人脸识别模型中,也就是卷积神经网络算法中进行人脸识别。Step S40, performing face recognition on the feature data whose quality evaluation value satisfies a preset condition. The feature data that meets the preset conditions in the quality evaluation value output by the image quality evaluation model is input into the face recognition model, that is, the face recognition is performed in the convolutional neural network algorithm.
本发明中,将图像质量评估模型用于对人脸图像的质量进行评估,将得到的人脸图像的质量评估结果。上述图像质量评估模型是采用机器学习方法,利用预设的待评估人脸图像集合也就是特征训练集和对应的样本图像的特征数据的集合,基于损失函数训练得出的,也就是说损失函数的值用于表征与同一人的样本图像的特征数据和特征训练集中的特征数据的质量评估值之间的差异。在这里,样本图像通常为均匀光源下、聚焦良好的高分辨率正面可见光图像。In the present invention, the image quality evaluation model is used to evaluate the quality of the face image, and the obtained quality evaluation result of the face image is obtained. The above image quality evaluation model is obtained by using the machine learning method, using the preset set of face images to be evaluated, that is, the set of feature training sets and the feature data of the corresponding sample images, based on loss function training, that is, the loss function. The value of is used to characterize the difference between the feature data of the sample image with the same person and the quality evaluation value of the feature data in the feature training set. Here, the sample image is typically a well-focused, high-resolution frontal visible light image under a uniform light source.
上述图像质量评估模型基于神经网络的模型,也可以采用逻辑回归、隐马尔可夫模型等。The above-mentioned image quality assessment model is based on a neural network model, and may also use logistic regression, hidden Markov model, or the like.
具体的,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。Specifically, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
请参考图3所示,在本发明的其中一实施例中,还提供一种人脸质量评估的装置100,所述装置包括:获取单元101,特征提取单元102,评估单元103,识别单元104,所述获取单元101用于获取多张人脸图像;特征提取单元102利用卷积神经网络算法,对获取的人脸图像进行特征提取作为特征训练集;评估单元103将所述特征训练集中的特征数据输入到图像质量评估模型,输出质量评估值,其中,所述图像质量评估模型是采用机器学习方法,利用预设的样本图像的特征数据和所述特征训练集中的特征数据,根据高斯分布和概率密度,基于损失函数训练得出的;识别单元104对所述质量评估值评估满足预设条件的特征数据进行人脸识别。Referring to FIG. 3 , in one embodiment of the present invention, an
在本发明的其中一实施例中,所述人脸质量评估的装置100还包括训练单元,用于采用机器学习方法,利用预设的样本图像的特征数据和所述特征训练集中的特征数据,根据高斯分布和概率密度,基于损失函数训练得出的所述图像质量评估模型;所述训练单元基于如下步骤训练得出所述图像质量评估模型:In one embodiment of the present invention, the
若训练集中特征数据xi的身份ID为j,根据高斯分布获取身份ID为j的特征数据xi概率密度;If the identity ID of the feature data xi in the training set is j , obtain the probability density of the feature data xi with the identity ID j according to the Gaussian distribution;
计算特征数据xi属于身份ID为j的概率;Calculate the probability that the feature data x i belongs to the identity ID j;
根据所述概率密度和概率获取损失函数。A loss function is obtained from the probability density and probability.
在本发明的其中一实施例中,还提供一种计算机存储介质,所述计算机存储介质被处理器执行时实现上述任一实施例所述的人脸质量评估的方法的步骤。具体的,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。In one of the embodiments of the present invention, a computer storage medium is also provided, and when the computer storage medium is executed by a processor, the steps of the method for evaluating the quality of a face described in any of the foregoing embodiments are implemented. Specifically, the computer-readable medium may be included in the apparatus described in the above embodiments; or may exist alone without being assembled into the apparatus.
本发明提供的人脸质量评估的方法和装置,在人脸识别的基础上修改损失函数使得人脸识别网络同时具有人脸质量评估的功能,本发明在人脸识别过程中同时评估质量,训练过程中不需要人脸图片质量标签,便于实施。The method and device for face quality assessment provided by the present invention modifies the loss function on the basis of face recognition, so that the face recognition network has the function of face quality assessment at the same time. There is no need for face image quality labels in the process, which is easy to implement.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010376484.5A CN111582150B (en) | 2020-05-07 | 2020-05-07 | Face quality assessment method, device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010376484.5A CN111582150B (en) | 2020-05-07 | 2020-05-07 | Face quality assessment method, device and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111582150A true CN111582150A (en) | 2020-08-25 |
CN111582150B CN111582150B (en) | 2023-09-05 |
Family
ID=72113311
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010376484.5A Active CN111582150B (en) | 2020-05-07 | 2020-05-07 | Face quality assessment method, device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111582150B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112070744A (en) * | 2020-09-08 | 2020-12-11 | 济南博观智能科技有限公司 | Face recognition method, system, device and readable storage medium |
CN112270269A (en) * | 2020-10-30 | 2021-01-26 | 湖南快乐阳光互动娱乐传媒有限公司 | Method and device for evaluating quality of face image |
CN112381782A (en) * | 2020-11-11 | 2021-02-19 | 腾讯科技(深圳)有限公司 | Human face image quality evaluation method and device, computer equipment and storage medium |
CN112634268A (en) * | 2021-01-11 | 2021-04-09 | 北京霍因科技有限公司 | Video quality evaluation method and device and electronic equipment |
CN112766164A (en) * | 2021-01-20 | 2021-05-07 | 深圳力维智联技术有限公司 | Face recognition model training method, device and equipment and readable storage medium |
CN113011468A (en) * | 2021-02-25 | 2021-06-22 | 上海皓桦科技股份有限公司 | Image feature extraction method and device |
CN113192028A (en) * | 2021-04-29 | 2021-07-30 | 北京的卢深视科技有限公司 | Quality evaluation method and device for face image, electronic equipment and storage medium |
CN113936320A (en) * | 2021-10-21 | 2022-01-14 | 北京的卢深视科技有限公司 | Face image quality evaluation method, electronic device and storage medium |
CN115050081A (en) * | 2022-08-12 | 2022-09-13 | 平安银行股份有限公司 | Expression sample generation method, expression recognition method and device and terminal equipment |
CN117275076A (en) * | 2023-11-16 | 2023-12-22 | 厦门瑞为信息技术有限公司 | Method for constructing face quality assessment model based on characteristics and application |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881867A (en) * | 2015-05-13 | 2015-09-02 | 华中科技大学 | Method for evaluating quality of remote sensing image based on character distribution |
CN108269254A (en) * | 2018-01-17 | 2018-07-10 | 百度在线网络技术(北京)有限公司 | Image quality measure method and apparatus |
CN110046652A (en) * | 2019-03-18 | 2019-07-23 | 深圳神目信息技术有限公司 | Face method for evaluating quality, device, terminal and readable medium |
-
2020
- 2020-05-07 CN CN202010376484.5A patent/CN111582150B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881867A (en) * | 2015-05-13 | 2015-09-02 | 华中科技大学 | Method for evaluating quality of remote sensing image based on character distribution |
CN108269254A (en) * | 2018-01-17 | 2018-07-10 | 百度在线网络技术(北京)有限公司 | Image quality measure method and apparatus |
CN110046652A (en) * | 2019-03-18 | 2019-07-23 | 深圳神目信息技术有限公司 | Face method for evaluating quality, device, terminal and readable medium |
Non-Patent Citations (2)
Title |
---|
YICHUN SHI: "Probabilistic Face Embeddings", 《2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV)》, pages 6901 - 6910 * |
褚江: "基于色彩空间的无参考图像质量评价研究", pages 30 - 33 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112070744B (en) * | 2020-09-08 | 2022-11-22 | 济南博观智能科技有限公司 | Face recognition method, system, device and readable storage medium |
CN112070744A (en) * | 2020-09-08 | 2020-12-11 | 济南博观智能科技有限公司 | Face recognition method, system, device and readable storage medium |
CN112270269A (en) * | 2020-10-30 | 2021-01-26 | 湖南快乐阳光互动娱乐传媒有限公司 | Method and device for evaluating quality of face image |
CN112381782A (en) * | 2020-11-11 | 2021-02-19 | 腾讯科技(深圳)有限公司 | Human face image quality evaluation method and device, computer equipment and storage medium |
CN112634268A (en) * | 2021-01-11 | 2021-04-09 | 北京霍因科技有限公司 | Video quality evaluation method and device and electronic equipment |
CN112634268B (en) * | 2021-01-11 | 2024-01-05 | 北京霍因科技有限公司 | Video quality evaluation method and device and electronic equipment |
CN112766164A (en) * | 2021-01-20 | 2021-05-07 | 深圳力维智联技术有限公司 | Face recognition model training method, device and equipment and readable storage medium |
CN113011468A (en) * | 2021-02-25 | 2021-06-22 | 上海皓桦科技股份有限公司 | Image feature extraction method and device |
CN113192028A (en) * | 2021-04-29 | 2021-07-30 | 北京的卢深视科技有限公司 | Quality evaluation method and device for face image, electronic equipment and storage medium |
CN113192028B (en) * | 2021-04-29 | 2022-05-31 | 合肥的卢深视科技有限公司 | Quality evaluation method and device for face image, electronic equipment and storage medium |
CN113936320B (en) * | 2021-10-21 | 2022-03-25 | 北京的卢深视科技有限公司 | Face image quality evaluation method, electronic device and storage medium |
CN113936320A (en) * | 2021-10-21 | 2022-01-14 | 北京的卢深视科技有限公司 | Face image quality evaluation method, electronic device and storage medium |
CN115050081A (en) * | 2022-08-12 | 2022-09-13 | 平安银行股份有限公司 | Expression sample generation method, expression recognition method and device and terminal equipment |
CN115050081B (en) * | 2022-08-12 | 2022-11-25 | 平安银行股份有限公司 | Expression sample generation method, expression recognition method and device and terminal equipment |
CN117275076A (en) * | 2023-11-16 | 2023-12-22 | 厦门瑞为信息技术有限公司 | Method for constructing face quality assessment model based on characteristics and application |
CN117275076B (en) * | 2023-11-16 | 2024-02-27 | 厦门瑞为信息技术有限公司 | Method for constructing face quality assessment model based on characteristics and application |
Also Published As
Publication number | Publication date |
---|---|
CN111582150B (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111582150A (en) | A method, device and computer storage medium for face quality assessment | |
Yan et al. | Naturalness-aware deep no-reference image quality assessment | |
Chakraborty et al. | An overview of face liveness detection | |
Wong et al. | Patch-based probabilistic image quality assessment for face selection and improved video-based face recognition | |
CN109145766B (en) | Model training method and device, recognition method, electronic device and storage medium | |
Liu et al. | Blind quality assessment of camera images based on low-level and high-level statistical features | |
US9449432B2 (en) | System and method for identifying faces in unconstrained media | |
CN108288051B (en) | Pedestrian re-recognition model training method and device, electronic equipment and storage medium | |
CN108230293A (en) | Determine method and apparatus, electronic equipment and the computer storage media of quality of human face image | |
CN108985190B (en) | Target identification method and device, electronic equipment and storage medium | |
CN110751069A (en) | Face living body detection method and device | |
JP6071002B2 (en) | Reliability acquisition device, reliability acquisition method, and reliability acquisition program | |
CN108228684B (en) | Method and device for training clustering model, electronic equipment and computer storage medium | |
CN112561879B (en) | Ambiguity evaluation model training method, image ambiguity evaluation method and image ambiguity evaluation device | |
CN112016454B (en) | A detection method for face alignment | |
CN110956615A (en) | Image quality evaluation model training method and device, electronic equipment and storage medium | |
KR20240043536A (en) | Knowledge distillation-based system for learning of teacher model and student model | |
CN112215831B (en) | Method and system for evaluating quality of face image | |
CN111753618B (en) | Image recognition method, device, computer equipment and computer readable storage medium | |
Rodríguez-Pulecio et al. | Making long-wave infrared face recognition robust against image quality degradations | |
TW201828156A (en) | Image identification method, measurement learning method, and image source identification method and device capable of effectively dealing with the problem of asymmetric object image identification so as to possess better robustness and higher accuracy | |
CN108257117B (en) | Image exposure evaluation method and device | |
CN114332983A (en) | Face image definition detection method, face image definition detection device, electronic equipment and medium | |
Wang et al. | Two-stage unsupervised facial image quality measurement | |
Wang | A learning-based human facial image quality evaluation method in video-based face recognition systems |
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 | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method, device, and computer storage medium for facial quality assessment Granted publication date: 20230905 Pledgee: Bank of Jiangsu Co.,Ltd. Suzhou Branch Pledgor: Jiangsu Riying Huiyan Intelligent Equipment Co.,Ltd. Registration number: Y2024980060040 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |