Image quality assessment, face recognition, label generation and determination method and device
By extracting low-level and high-level features of the face image and merging the evaluation data to evaluate the face image quality, it solves the problems of inaccurate face image quality evaluation and large amount of calculation in the existing technology, and improves the efficiency and efficiency of the face recognition system. accuracy.
Patent Information
- Application Number
- CN202311133425.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-09-04
AI Technical Summary
In the existing technology, the face image quality assessment method fails to effectively consider the quality of the face image itself, resulting in poor face recognition results, and the image quality assessment process is computationally intensive and has poor practicality.
An image quality assessment method is proposed. By extracting low-level features and high-level features from the face image to be evaluated, and integrating visual feature assessment data and facial feature assessment data, an accurate and comprehensive face image quality assessment is performed, and the face quality assessment is simplified. Model structure reduces the amount of calculation.
It improves the accuracy and efficiency of face image quality assessment, reduces the calculation amount of the face quality assessment model, makes it suitable for embedded devices, and improves the recognition efficiency and accuracy of the face recognition system.
Smart Images

Figure CN117611516B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a method and device for image quality assessment, face recognition, label generation and determination. Background Art
[0002] Face recognition is a biometric technology that identifies people based on facial features. In unconstrained scenarios, most face images captured by image acquisition devices are of low quality, resulting in poor face recognition results. Evaluating the quality of face images to be recognized plays an important role in improving the efficiency and accuracy of face recognition.
[0003] In the related art, an unsupervised image quality assessment method is used to automatically generate a quality score of a face image. However, the image quality assessment method in the related art does not take into account the quality of the face image itself, and the effect of the quality assessment needs to be improved. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the first object of the present invention is to propose an image quality assessment method that can effectively improve the accuracy of the assessment of the quality of the face image itself.
[0005] The second objective of the present invention is to provide a label generation method.
[0006] The third object of the present invention is to provide a face quality assessment model training method.
[0007] A fourth objective of the present invention is to provide another image quality assessment method.
[0008] A fifth objective of the present invention is to provide a face recognition method.
[0009] A sixth objective of the present invention is to provide a label determination method.
[0010] A seventh objective of the present invention is to provide an image quality assessment device.
[0011] An eighth objective of the present invention is to provide a label generating device.
[0012] The ninth objective of the present invention is to provide a face quality assessment model training device.
[0013] The tenth objective of the present invention is to provide another image quality assessment device.
[0014] An eleventh objective of the present invention is to provide a face recognition device.
[0015] A twelfth objective of the present invention is to provide a label determination device.
[0016] A thirteenth objective of the present invention is to provide a computer device.
[0017] The fourteenth objective of the present invention is to provide a chip.
[0018] A fifteenth object of the present invention is to provide a computer-readable storage medium.
[0019] To achieve the above-mentioned purpose, the first aspect of the present invention proposes an image quality assessment method, which includes: obtaining a set of face images taken for the same target object; wherein the face image set includes a number of face images to be evaluated; determining visual feature assessment data and facial feature assessment data of the face images to be evaluated; wherein the visual feature assessment data is determined based on low-level features extracted from the face images to be evaluated, and the low-level features are used to describe the visual layer semantics of the face images to be evaluated; the facial feature assessment data is used to describe the quality of the conceptual layer semantics of the face images to be evaluated; and facial image quality assessment is performed based on the visual feature assessment data and facial feature assessment data of the face images to be evaluated to obtain facial image assessment data of the face images to be evaluated.
[0020] According to one embodiment of the present invention, the method for determining the visual feature evaluation data includes: obtaining representative low-level features of the target object based on the low-level features of the several facial images to be evaluated; performing similarity calculation based on the low-level features of the facial images to be evaluated and the representative low-level features to obtain the visual feature evaluation data of the facial images to be evaluated.
[0021] According to one embodiment of the present invention, the facial feature evaluation data is determined based on high-level features extracted from the facial image to be evaluated; the high-level features are used to describe the conceptual layer semantics of the facial image to be evaluated; the method for determining the low-level features and the high-level features includes: inputting the facial image to be evaluated into a trained facial recognition model for feature extraction to obtain the low-level features and the high-level features.
[0022] According to one embodiment of the present invention, the facial feature evaluation data includes first feature evaluation data; the high-level features include multiple first high-level features extracted by the face recognition model under different random discarding modes; the method for determining the facial feature evaluation data includes: performing similarity calculation based on the multiple first high-level features to obtain the first feature evaluation data of the face image to be evaluated; wherein the first feature evaluation data is used to describe the robustness of the high-level features of the face image to be evaluated.
[0023] According to one embodiment of the present invention, the facial image to be evaluated is a designated facial image among the several facial images to be evaluated; the high-level features include the second high-level features extracted by the facial recognition model; the facial feature evaluation data include the second feature evaluation data; the method for determining the facial feature evaluation data includes: performing similarity calculation based on the second high-level features of the designated facial image and the second high-level features of other facial images to obtain the similarity data between the designated facial image and the other facial images; wherein the other facial images are other facial images to be evaluated among the several facial images to be evaluated except the designated facial image; according to the similarity data, the second feature evaluation data of the designated facial image is obtained; wherein the second feature evaluation data is used to describe the recognizability of the designated facial image.
[0024] According to one embodiment of the present invention, the facial feature evaluation data includes first feature evaluation data and second feature evaluation data; the facial image quality assessment is performed based on the visual feature evaluation data and the facial feature evaluation data of the facial image to be evaluated to obtain the facial image evaluation data of the facial image to be evaluated, including: performing facial image quality assessment based on the visual feature evaluation data, the first feature evaluation data and the second feature evaluation data to obtain the facial image evaluation data.
[0025] To achieve the above-mentioned purpose, the second aspect of the present invention proposes a label generation method, which includes: obtaining a set of face images taken for the same target object; wherein the face image set includes several face images to be labeled; determining visual feature evaluation data and facial feature evaluation data of the face images to be labeled; wherein the visual feature evaluation data is determined based on low-level features extracted from the face images to be labeled, and the low-level features are used to describe the visual layer semantics of the face images to be labeled; the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the face images to be labeled; based on the visual feature evaluation data and the facial feature evaluation data, facial image quality assessment is performed to obtain facial image evaluation data of the face images to be labeled; and the facial image evaluation data is used as the label of the face images to be labeled.
[0026] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a method for training a face quality assessment model, the method comprising: constructing a first training sample set; wherein the first training sample set comprises a plurality of first face image samples, and the first face image samples have labels obtained based on the label generation method in claim 7; using the first training sample set to train an initial assessment model to obtain the face quality assessment model.
[0027] According to one embodiment of the present invention, the initial evaluation model is obtained by migrating on the basis of a trained face recognition student model; the face recognition student model corresponds to a face recognition teacher model; the face quality assessment model training method also includes: constructing a second training sample set; wherein the first training sample set includes a number of second face image samples, and the second face image samples have object category labels; the second face image samples are input into the face recognition teacher model for face recognition to obtain a first face recognition feature and a first predicted category; the second face image samples are input into the face recognition student model for face recognition to obtain a second face recognition feature and a second predicted category; the loss data of the face recognition student model is determined based on the first face recognition feature, the first predicted category, the second face recognition feature, the second predicted category and the object category label; the parameters of the face recognition student model are updated based on the loss data of the face recognition student model until the model training stop condition is met.
[0028] To achieve the above-mentioned purpose, the fourth aspect of the present invention proposes another image quality assessment method, which includes: obtaining a facial image to be evaluated; inputting the facial image to be evaluated into a facial quality assessment model trained by the facial quality assessment model training method described in any of the aforementioned embodiments, to obtain quality assessment data of the facial image to be evaluated.
[0029] To achieve the above-mentioned purpose, the fifth aspect of the present invention proposes a face recognition method, which includes: obtaining a set of face images to be recognized that are obtained by photographing a target object; wherein the set of face images to be recognized includes several face images to be recognized; inputting the face images to be recognized into a face quality assessment model trained by the face quality assessment model training method described in any of the aforementioned embodiments to obtain quality assessment data of the face images to be recognized; determining a target face image whose quality meets the requirements in the set of face images to be recognized based on the quality assessment data of the face image to be recognized; performing face recognition on the target object based on the target face image to obtain a face recognition result.
[0030] To achieve the above-mentioned purpose, the sixth aspect of the present invention proposes a label determination method, which includes: obtaining a set of object images obtained by photographing a specified object; wherein the object image set includes a number of object images to be labeled; determining visual feature evaluation data and object feature evaluation data of the object images to be labeled; wherein the visual feature evaluation data is determined based on low-level features extracted from the object images to be labeled, and the low-level features are used to describe the visual layer semantics of the object images to be labeled; the object feature evaluation data is used to describe the quality of the conceptual layer semantics of the object images to be labeled; image quality evaluation is performed based on the visual feature evaluation data and object feature evaluation data of the object images to be labeled, and the evaluation data of the object images to be labeled is obtained as the label of the object images to be labeled.
[0031] To achieve the above-mentioned purpose, the seventh aspect of the present invention proposes an image quality assessment device, which includes: a first face image set acquisition module, used to acquire a face image set obtained by shooting for the same target object; wherein the face image set includes a number of face images to be evaluated; a first feature evaluation data determination module, used to determine the visual feature evaluation data and face feature evaluation data of the face image to be evaluated; wherein the visual feature evaluation data is determined based on low-level features extracted from the face image to be evaluated, and the low-level features are used to describe the visual layer semantics of the face image to be evaluated; the face feature evaluation data is used to describe the quality of the conceptual layer semantics of the face image to be evaluated; the first image evaluation data acquisition module is used to perform face image quality assessment based on the visual feature evaluation data and face feature evaluation data of the face image to be evaluated, and obtain the face image evaluation data of the face image to be evaluated.
[0032] According to one embodiment of the present invention, the first feature evaluation data determination module is also used to obtain representative low-level features of the target object based on the low-level features of the several facial images to be evaluated; and to perform similarity calculation based on the low-level features of the facial images to be evaluated and the representative low-level features to obtain the visual feature evaluation data of the facial images to be evaluated.
[0033] According to one embodiment of the present invention, the facial feature evaluation data is determined based on high-level features extracted from the facial image to be evaluated; the high-level features are used to describe the conceptual layer semantics of the facial image to be evaluated; the first feature evaluation data determination module is also used to input the facial image to be evaluated into a trained facial recognition model for feature extraction to obtain the low-level features and the high-level features.
[0034] According to one embodiment of the present invention, the facial feature evaluation data includes first feature evaluation data; the high-level features include multiple first high-level features extracted by the facial recognition model under different random discarding modes; the first feature evaluation data determination module is also used to perform similarity calculation based on the multiple first high-level features to obtain the first feature evaluation data of the facial image to be evaluated; wherein the first feature evaluation data is used to describe the robustness of the high-level features of the facial image to be evaluated.
[0035] According to one embodiment of the present invention, the facial image to be evaluated is a designated facial image among the several facial images to be evaluated; the high-level features include the second high-level features extracted by the facial recognition model; the facial feature evaluation data include the second feature evaluation data; the first feature evaluation data determination module is also used to perform similarity calculation based on the second high-level features of the designated facial image and the second high-level features of other facial images to obtain the similarity data between the designated facial image and the other facial images; wherein the other facial images are other facial images to be evaluated among the several facial images to be evaluated except the designated facial image; according to the similarity data, the second feature evaluation data of the designated facial image is obtained; wherein the second feature evaluation data is used to describe the recognizability of the designated facial image.
[0036] To achieve the above-mentioned purpose, an eighth aspect of the present invention proposes a label generation device, which includes: a second face image set acquisition module, used to acquire a face image set obtained by shooting for the same target object; wherein the face image set includes a number of face images to be labeled; a second feature evaluation data determination module, used to determine the visual feature evaluation data and face feature evaluation data of the face images to be labeled; wherein the visual feature evaluation data is determined based on the low-level features extracted from the face images to be labeled, and the low-level features are used to describe the visual layer semantics of the face images to be labeled; the face feature evaluation data is used to describe the quality of the conceptual layer semantics of the face images to be labeled; the second image evaluation data acquisition module, used to perform face image quality evaluation based on the visual feature evaluation data and the face feature evaluation data, and obtain the face image evaluation data of the face images to be labeled; the first face image label acquisition module, used to use the face image evaluation data as the label of the face images to be labeled.
[0037] To achieve the above-mentioned purpose, the ninth aspect of the implementation of the present invention proposes a face quality assessment model training device, the device comprising: a first sample set construction module, used to construct a first training sample set; wherein the first training sample set includes a number of first face image samples, and the first face image samples have labels obtained based on the label generation method in the aforementioned implementation; an initial evaluation model training module, used to use the first training sample set to train the initial evaluation model to obtain the face quality assessment model.
[0038] According to one embodiment of the present invention, the initial evaluation model is obtained by migration based on a trained face recognition student model; the face recognition student model corresponds to a face recognition teacher model; the face quality assessment model training device also includes: a second sample set construction module, used to construct a second training sample set; wherein the first training sample set includes a plurality of second face image samples, and the second face image samples have object category labels; a first face recognition module, used to input the second face image sample into the face recognition teacher model for face recognition, and obtain a first face recognition feature and a first prediction category; a second face recognition module, used to input the second face image sample into the face recognition student model for face recognition, and obtain a second face recognition feature and a second prediction category; a loss data determination module, used to determine the loss data of the face recognition student model based on the first face recognition feature, the first prediction category, the second face recognition feature, the second prediction category and the object category label; a model parameter updating module, used to update the parameters of the face recognition student model based on the loss data of the face recognition student model until the model training stop condition is met.
[0039] To achieve the above-mentioned purpose, the tenth aspect of the present invention proposes another image quality assessment device, which includes: a facial image acquisition module to be evaluated, used to acquire the facial image to be evaluated; a first quality assessment data acquisition module, used to input the facial image to be evaluated into a facial quality assessment model trained by the facial quality assessment model training method described in any of the aforementioned embodiments, to obtain quality assessment data of the facial image to be evaluated.
[0040] To achieve the above-mentioned purpose, the eleventh embodiment of the present invention proposes a face recognition device, which includes: a third face image set acquisition module, used to acquire a set of face images to be recognized obtained by shooting a target object; wherein the set of face images to be recognized includes several face images to be recognized; a second quality assessment data acquisition module, used to input the face images to be recognized into a face quality assessment model trained by the face quality assessment model training method described in any of the aforementioned embodiments, to obtain quality assessment data of the face images to be recognized; a target face image determination module, used to determine a target face image whose quality meets the requirements in the set of face images to be recognized according to the quality assessment data of the face image to be recognized; a face recognition result acquisition module, used to perform face recognition on the target object based on the target face image, to obtain a face recognition result.
[0041] To achieve the above-mentioned purpose, the twelfth embodiment of the present invention proposes a label determination device, which includes: an object image set acquisition module, used to acquire an object image set obtained by photographing a specified object; wherein the object image set includes a number of object images to be labeled; a third feature evaluation data determination module, used to determine the visual feature evaluation data and object feature evaluation data of the object image to be labeled; wherein the visual feature evaluation data is determined based on low-level features extracted from the object image to be labeled, and the low-level features are used to describe the visual layer semantics of the object image to be labeled; the object feature evaluation data is used to describe the quality of the conceptual layer semantics of the object image to be labeled; the object image label determination module to be labeled is used to perform image quality evaluation based on the visual feature evaluation data and object feature evaluation data of the object image to be labeled, and obtain the evaluation data of the object image to be labeled as the label of the object image to be labeled.
[0042] To achieve the above objectives, the thirteenth aspect of the present invention proposes a computer device, including a memory and a processor, wherein the memory stores a first computer program, and when the processor executes the first computer program, the steps of the method described in any of the above embodiments are implemented.
[0043] To achieve the above-mentioned objectives, the fourteenth embodiment of the present invention proposes a chip, including a storage unit and a processing unit, wherein the storage unit stores a second computer program, and when the processing unit executes the second computer program, the steps of the image quality assessment method, and / or the face recognition method, and / or the label determination method described in any of the aforementioned embodiments are implemented.
[0044] To achieve the above objectives, the fifteenth aspect of the present invention proposes a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in any of the foregoing embodiments are implemented.
[0045] According to multiple embodiments provided by the present invention, visual feature evaluation data of the facial image to be evaluated is determined based on low-level features extracted from the facial image to be evaluated, and facial feature evaluation data of the facial image to be evaluated is determined based on high-level features extracted from the facial image to be evaluated, so as to accurately and comprehensively describe the quality of the facial image to be evaluated by fusing the visual feature evaluation data and the facial feature evaluation data, thereby improving the effect of evaluating the quality of the facial image itself.
[0046] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 The present invention is a flowchart of an image quality assessment method provided according to one embodiment of the present specification.
[0048] Figure 2 The present invention is a flowchart of a method for determining visual feature evaluation data according to one embodiment of the present specification.
[0049] Figure 3 A flowchart of a method for determining facial feature evaluation data provided according to one embodiment of the present specification.
[0050] Figure 4 The present invention is a flowchart of a label generation method provided according to one embodiment of the present invention.
[0051] Figure 5 The present invention is a flowchart of a face quality assessment model training method provided according to one embodiment of the present specification.
[0052] Figure 6 The present invention is a flowchart of a face quality assessment model training method provided according to one embodiment of the present specification.
[0053] Figure 7 The present invention is a flowchart of another image quality assessment method provided according to one embodiment of the present specification.
[0054] Figure 8 The present invention is a flowchart of a face recognition method provided according to one embodiment of the present invention.
[0055] Fig. 9The present invention is a flowchart of a label determination method provided according to one embodiment of the present specification.
[0056] Fig.10 The present invention is a structural block diagram of an image quality assessment device provided according to one embodiment of the present invention.
[0057] Fig.11 The present invention is a structural block diagram of a label generation device provided according to one embodiment of the present specification.
[0058] Fig.12a The present invention is a structural block diagram of a face quality assessment model training device provided according to one embodiment of the present specification.
[0059] Figure 12b The present invention is a structural block diagram of a face quality assessment model training device provided according to one embodiment of the present specification.
[0060] Fig.13 The present invention is a structural block diagram of another image quality assessment device provided according to one embodiment of the present specification.
[0061] Fig.14 The present invention is a structural block diagram of a face recognition device provided according to one embodiment of the present invention.
[0062] Fig.15 The present invention is a structural block diagram of a label determination device provided according to one embodiment of the present specification.
[0063] Fig.16 The present invention is a structural block diagram of a computer device provided according to one embodiment of the present invention.
[0064] Fig.17 A structural block diagram of a chip provided according to one embodiment of the present specification. DETAILED DESCRIPTION
[0065] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0066] Face recognition is a biometric technology that identifies people based on facial feature information. Similar biometric technologies include fingerprint recognition and iris recognition. Face recognition technology is more easily accepted by users due to its non-mandatory, non-contact, and concurrent features. However, in unconstrained scenarios such as stations and airports where there is frequent flow of people and complex surrounding environments, a large portion of face images collected by image acquisition devices such as mobile devices or monitoring systems are usually of low quality. Using a face recognition system to perform face recognition on these low-quality face images often results in invalid recognition results, resulting in a waste of computing resources. Therefore, evaluating the quality of the face images to be recognized and screening out high-quality face images plays an important role in improving the recognition efficiency and accuracy of the face recognition system.
[0067] In the related art, the face image quality assessment methods mainly include two categories: image quality assessment methods based on image analysis and image quality assessment methods based on deep learning. The image quality assessment methods based on image analysis mainly use some manually defined features to evaluate the quality of the image. For example, Nasrollahi et al. proposed a method to score the quality of face images according to posture, brightness, resolution, etc., to obtain the quality scores of posture, brightness, resolution, etc., and finally weightedly fuse the quality scores of posture, brightness, resolution, etc. to obtain the overall quality score; X. Gao et al. proposed a quality assessment method based on the asymmetry of the face; PJ Phillips et al. proposed a quality assessment method based on 12 features divided into three categories (DIP (Deep Image Prior) features, sensor-related features, and classifier-related features). However, these artificially designed features are difficult to accurately and comprehensively describe the quality of face images, and the manual annotation method requires a lot of manpower and material costs.
[0068] Image quality assessment methods based on deep learning mainly use neural networks to judge image quality scores, including supervised image quality assessment methods and unsupervised image quality assessment methods. Supervised image quality assessment methods require training neural networks based on a large number of face image datasets with quality score annotations. It is very difficult to obtain such datasets, and it is difficult for manually annotated quality scores to accurately describe the quality of face images and ensure the consistency of scores. Unsupervised image quality assessment methods can avoid this problem. A large number of studies have proposed methods for automatically generating face image quality scores using auxiliary models, so as to train face image quality assessment models based on automatically generated face image quality scores. For example, Hernandez-Ortega et al. proposed a method for calculating face image quality scores based on the Euclidean distance between face recognition features of face images and images of the same category (intra-class images); Terhorst et al. proposed a method for calculating face image quality scores based on the difference in output features of different face recognition models.
[0069] The unsupervised image quality assessment method can effectively reduce the large amount of manpower and material costs required to manually label the quality scores of facial images. However, the unsupervised method in the related art only considers the quality of the facial image in the recognition direction, and does not consider the quality of the facial image itself. In addition, the related art uses a facial quality assessment model with the same scale as the facial recognition model to assess and judge the facial quality of the facial image. Since the structure of the facial recognition model is usually more complex, the facial quality assessment model will have a large amount of calculation during the facial quality assessment process, resulting in poor practicality of the facial quality assessment model.
[0070] In view of the defects existing in the related art, in order to improve the accuracy of the assessment of the quality of the face image itself, it is necessary to propose an image quality assessment, face recognition, label generation and determination method and device. The image quality assessment method determines the visual feature assessment data of the face image to be assessed based on the low-level features extracted from the face image to be assessed, and determines the facial feature assessment data of the face image to be assessed based on the high-level features extracted from the face image to be assessed, so as to accurately and comprehensively describe the quality of the face image to be assessed by fusing the visual feature assessment data and the facial feature assessment data, thereby improving the effect of the assessment of the quality of the face image itself.
[0071] The label generation method provided in this specification can evaluate the face image quality of the face image to be labeled by the above-mentioned image quality evaluation method, and can obtain the face image evaluation data of the face image to be labeled, so as to obtain the label of the face image to be labeled, which is used to label the face image to be labeled. In this way, the quality evaluation data of the face image can be automatically generated, and there is no need to manually design features to manually label the quality evaluation data of the face image, so as to ensure the consistency of the quality scores of different face images and avoid a large amount of manpower and material costs.
[0072] The face quality assessment model training method provided in this specification obtains the label corresponding to the face image sample through the above-mentioned label generation method, so as to train the initial assessment model with the face image sample to obtain the trained face quality assessment model. The face quality assessment model is used to perform quality assessment on a number of face images to be identified obtained by shooting the same object, so as to determine the face images that meet the quality requirements for face recognition, which can effectively improve the efficiency and accuracy of face recognition. Furthermore, the face quality assessment model is obtained by training a lightweight initial assessment model, and the lightweight initial assessment model is obtained by migration on the basis of a face recognition student model with a smaller structure that has been trained, and the face recognition student model is obtained by knowledge migration of a face recognition teacher model with a more complex structure through knowledge distillation technology. In this way, the structure of the face quality assessment model can be simplified, and while ensuring the accuracy of quality assessment, the calculation amount of the face quality assessment model can be reduced to improve the practicality of the face quality assessment model, so that the face quality assessment model can be well applied to scenarios with lightweight model deployment requirements such as embedded devices.
[0073] This specification provides an image quality assessment method, referring to Figure 1 As shown, the image quality assessment method may include the following steps.
[0074] S110, obtaining a set of face images captured for the same target object; wherein the set of face images includes a number of face images to be evaluated.
[0075] S120. Determine the visual feature evaluation data and facial feature evaluation data of the facial image to be evaluated; wherein the visual feature evaluation data is determined based on low-level features extracted from the facial image to be evaluated, and the low-level features are used to describe the visual layer semantics of the facial image to be evaluated; and the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the facial image to be evaluated.
[0076] S130, performing facial image quality assessment based on the visual feature assessment data and the facial feature assessment data of the facial image to be assessed, to obtain facial image assessment data of the facial image to be assessed.
[0077] Among them, the target object has identity information, such as identity ID. The same target object is an object with the same identity information, that is, the same person, so the face image to be evaluated corresponds to the identity information. The low-level features may include basic visual features about the scene such as corner points, edge lines, boundaries, and colors extracted from the face image to be evaluated after image filtering, image enhancement, edge detection, etc. The visual layer semantics is the low-level feature semantics of the image, that is, the contour, edge, color, texture, and shape in the image; the conceptual layer semantics is the high-level feature semantics of the image, that is, the face in the image. The visual feature evaluation data can be used to describe the quality of the face image to be evaluated, such as the contour clarity and color brightness. The face feature evaluation data can be used to describe the quality of the face image to be evaluated, such as the feature robustness and easy recognition. The face image evaluation data can be used to more comprehensively describe the overall face quality of the face image to be evaluated.
[0078] It is understandable that the semantics of an image is divided into visual layer semantics, object layer semantics, and concept layer semantics. The visual layer is the commonly understood lower layer, which contains features such as color, texture, and shape, which are used to describe the visual layer semantics; the object layer is the middle layer, which usually contains attribute-related features such as shape features and structural features, that is, the state of an object at a certain moment, which are used to describe the object layer semantics; the concept layer is the high layer, which contains the content expressed by the image that is closest to people's understanding. For example, a beach image contains sand, blue sky, sea water, etc., then the visual layer semantics includes edge lines, boundaries, colors, etc. in the image; the object layer semantics includes sand, blue sky, and sea water, etc.; the concept layer semantics includes the beach, that is, the content expressed by the image that is closest to people's understanding.
[0079] In some cases, image quality usually refers to the visual quality of the image, such as image brightness, resolution, clarity, etc. However, these indicators cannot fully describe the quality of the face image for the face recognition system, that is, they cannot describe the quality of the face recognition of the face image. In order to accurately and comprehensively describe the quality of the face image, the face image quality assessment can be performed on the face image based on the visual feature assessment data used to describe the quality of the visual layer semantics of the face image to be evaluated and the facial feature assessment data used to describe the quality of the conceptual layer semantics of the face image to be evaluated.
[0080] Specifically, a face image set can be obtained based on a number of face images to be evaluated that are taken for the same target object. For any face image to be evaluated in the face image set, low-level feature extraction is performed on the face image to be evaluated to extract low-level features, and high-level feature extraction is performed on the face image to be evaluated to extract high-level features. Based on the low-level features of the face image to be evaluated, visual feature evaluation data of the face image to be evaluated is determined to describe the quality of the visual layer semantics of the face image to be evaluated, such as contour clarity, color brightness, etc.; based on the high-level features of the face image to be evaluated, facial feature evaluation data of the face image to be evaluated is determined to describe the quality of the conceptual layer semantics of the face image to be evaluated, such as feature robustness, face recognizability, etc. Face image quality evaluation is performed on the face image to be evaluated according to the determined visual feature evaluation data and facial feature evaluation data to obtain facial image evaluation data of the face image to be evaluated.
[0081] In some embodiments, the visual feature evaluation data may be determined based on the similarity data between the low-level features of the facial image to be evaluated and the low-level features of other facial images to be evaluated of the same target object, and the facial feature evaluation data may be determined based on the similarity data between the high-level features of the facial image to be evaluated and the high-level features of other facial images to be evaluated of the same target object. The facial image evaluation data may be calculated by weighted summation of the visual feature evaluation data and the facial feature evaluation data.
[0082] For example, for each face image to be evaluated in the face image set of the same target object, low-level feature extraction and high-level feature extraction are performed on each face image to be evaluated to obtain low-level features and high-level features of each face image to be evaluated. For the face image Pi to be evaluated in the face image set, the low-level feature Fv of the face image Pi can be extracted according to the low-level feature Fv of the face image Pi. i and the low-level features Fv of any other face image Pj to be evaluated in the face image set except the face image Pi j Perform similarity calculation to determine the low-level features Fv of the face image Pi i and any other low-level features Fv of the face image Pj to be evaluated j Based on the similarity data between the low-level features of the face image Pi and the low-level features of different other face images to be evaluated, the visual feature evaluation data S of the face image Pi can be determined. vi According to the high-level features Fd of the face image Pi i and any other high-level features Fd of the face image Pj to be evaluated jPerform similarity calculation to determine the similarity data between the high-level features of the face image Pi and the high-level features of any other face image Pj to be evaluated. Based on the similarity data between the high-level features of the face image Pi and the high-level features of different other face images to be evaluated, the face feature evaluation data S of the face image Pi can be determined. di . The visual feature evaluation data S of the face image Pi is evaluated according to the preset weights vi and facial feature evaluation data S di Perform weighted sum calculation to obtain face image evaluation data S of face image Pi i , that is: S i =w1*S vi +w2*S di Among them, w1 and w2 are weight coefficients, which can be set according to actual needs.
[0083] In other embodiments, the visual feature evaluation data may be determined based on similarity data between low-level features of the face image to be evaluated and low-level features of all face images to be evaluated of the same target object.
[0084] For example, taking the above-mentioned face image set as an example, the low-level features Fv used to represent the target object m can also be obtained according to the low-level features of all the face images to be evaluated in the face image set. m According to the low-level features Fv of the face image Pi i And the low-level feature Fv m By performing similarity calculation, we can obtain the similarity data between the low-level features of the face image Pi and the low-level features of all the face images to be evaluated in the face image set. Based on the similarity data, we can determine the visual feature evaluation data S of the face image Pi. vi .
[0085] In some other embodiments, the facial feature evaluation data can also be determined based on the similarity data between the high-level features of the facial image to be evaluated and the high-level features of other facial images to be evaluated of the same target object, as well as based on the similarity data between the high-level features of the facial image to be evaluated and the high-level features of facial images to be evaluated of different target objects.
[0086] For example, taking the above-mentioned face image Pi as an example, according to the high-level feature Fd i and the high-level features Fd of any other face image Pj to be evaluated in the face image set of the same target object except the face image Pi j By performing similarity calculation, the similarity data between the high-level features of the face image Pi and the high-level features of any other face image Pj to be evaluated can be determined.i and the high-level features Fd of any face image Pj′ to be evaluated in the face image set of other target objects j 'By performing similarity calculation, the similarity data between the high-level features of the face image Pi and the high-level features of any face image Pj' to be evaluated of other target objects can be determined. Based on the similarity data between the high-level features of the face image Pi and the high-level features of other face images to be evaluated of the same target object, and the similarity data between the high-level features of the face image Pi and the high-level features of face images to be evaluated of different target objects, the face feature evaluation data S of the face image Pi can be determined. di .
[0087] In some other embodiments, the facial image evaluation data may be determined based on a result of a facial image quality evaluation, and the result of the facial image quality evaluation may be a quality evaluation grade.
[0088] For example, taking the above-mentioned face image Pi as an example, the data S can be evaluated based on the visual features of the face image Pi. vi and facial feature evaluation data S di Perform a face image quality assessment on the face image Pi to obtain a quality assessment grade. For each quality assessment grade, a corresponding quality assessment score can be preset. According to the quality assessment score corresponding to the quality assessment grade of the face image Pi, face image assessment data of the face image Pi can be obtained.
[0089] It should be noted that low-level features may also be referred to as visual features, and high-level features may also be referred to as face recognition features. Visual feature evaluation data may be a face image visual quality score, and face feature evaluation data may be a face recognition feature quality score.
[0090] In the above-mentioned implementation, the visual feature evaluation data of the face image to be evaluated is determined based on the low-level features extracted from the face image to be evaluated, and the facial feature evaluation data of the face image to be evaluated is determined based on the high-level features extracted from the face image to be evaluated. Thus, by using the visual feature evaluation data determined based on the low-level features to evaluate the visual quality of the face image, instead of the general evaluation method of the image visual quality (i.e., the method of evaluating the brightness, resolution, clarity, etc. of the image), the accuracy of the evaluation of the visual quality of the face image itself can be improved. At the same time, by fusing the visual feature evaluation data and the facial feature evaluation data to accurately and comprehensively describe the quality of the face image to be evaluated, the effect of the evaluation of the quality of the face image itself can be improved.
[0091] In some embodiments, reference Figure 2 As shown, the method for determining visual feature evaluation data may include the following steps.
[0092] S210: Obtain representative low-level features of the target object according to the low-level features of a number of face images to be evaluated.
[0093] S220 , performing similarity calculation based on the low-level features of the face image to be evaluated and the representative low-level features to obtain visual feature evaluation data of the face image to be evaluated.
[0094] The representative low-level features may be the low-level feature center points of all face images to be evaluated in a set of face images captured for the same target object.
[0095] Specifically, according to a set of facial images taken for the same target object, low-level features of several facial images to be evaluated in the facial image set are extracted respectively, and low-level features of several facial images to be evaluated can be obtained. According to the low-level features of the several facial images to be evaluated, the center points of the low-level features of the several facial images to be evaluated can be determined as representative low-level features of the target object. For any facial image to be evaluated among the several facial images to be evaluated, similarity calculation is performed based on the low-level features of the facial image to be evaluated and the representative low-level features of the target object, and visual feature evaluation data of the facial image to be evaluated can be obtained.
[0096] In some embodiments, similarity calculation may be performed based on low-level features and representative low-level features of the face image to be evaluated by calculating Euclidean distance, and the face image to be evaluated is an image with a classification category.
[0097] It is understandable that when there are multiple target objects, the facial images to be evaluated corresponding to each target object can be classified according to the identity information of each target object, so that several facial images to be evaluated taken for the same target object can be classified into the same category, and one category can be used to represent one identity information (that is, can be used to represent the same person). Therefore, one target object can correspond to one category.
[0098] Exemplarily, the classification category corresponding to the target object is recorded as category m, and the face image set of the target object belongs to category m. According to the low-level features Fv of several face images to be evaluated in category m, the low-level feature center points of the several face images to be evaluated can be determined, recorded as Fv m .Fv m The calculation method is as follows:
[0099]
[0100] Where N represents the number of face images to be evaluated in category m; i represents the index of the face image to be evaluated in category m, and Fv iRepresents the low-level features of the i-th face image to be evaluated in category m, i∈N.
[0101] The i-th face image to be evaluated in category m is called image i. For image i, the Euclidean distance between the low-level features of image i and the low-level feature center points of all face images to be evaluated in category m to which image i belongs can be calculated, and then the visual feature evaluation data S of image i can be obtained based on the Euclidean distance vi . S vi The calculation method can refer to the following formula:
[0102]
[0103] Among them, d i Represents the low-level features F of image i vi The low-level feature center point Fv of all face images to be evaluated in category m to which image i belongs m The Euclidean distance between max Represents the low-level features and low-level feature center points Fv of each face image to be evaluated in category m m The maximum value of the Euclidean distance; d min Represents the low-level features and low-level feature center points Fv of each face image to be evaluated in category m m The minimum Euclidean distance.
[0104] Therefore, if the Euclidean distance between the low-level features of image i and the center points of the low-level features of all the face images to be evaluated in category m to which image i belongs is larger, and the visual feature evaluation data of image i is smaller, it can be shown that the visual quality of image i is lower. Conversely, if the Euclidean distance between the low-level features of image i and the center points of the low-level features of all the face images to be evaluated in category m to which image i belongs is smaller, and the visual feature evaluation data of image i is larger, it can be shown that the visual quality of image i is higher.
[0105] It should be noted that the face image to be evaluated may also be an image sample with a classification category.
[0106] In some embodiments, the facial feature evaluation data is determined based on high-level features extracted from the facial image to be evaluated; the high-level features are used to describe the conceptual semantics of the facial image to be evaluated. The determination method of low-level features and high-level features may include: inputting the facial image to be evaluated into a trained facial recognition model for feature extraction to obtain low-level features and high-level features.
[0107] Specifically, the face image to be evaluated can be input into a trained face recognition model, so that the face recognition model performs low-level feature extraction on the face image to be evaluated to obtain low-level features of the face image to be evaluated; and, the face recognition model performs high-level feature extraction on the face image to be evaluated to obtain high-level features of the face image to be evaluated.
[0108] In some embodiments, the trained face recognition model can be a deep neural network model, which uses multiple layers of neurons to process the original image to obtain the final required features. In general, the features obtained by the high-level neurons of the deep neural network are mainly used to describe the conceptual layer semantic information of the image, and the features obtained by the low-level neurons are mainly used to describe the visual layer semantic information of the image. Therefore, the low-level features of the face image to be evaluated can be extracted by the low-level neurons of the face recognition model to obtain the low-level features of the face image to be evaluated, and the high-level features of the face image to be evaluated can be extracted by the high-level neurons of the face recognition model to obtain the high-level features of the face image to be evaluated.
[0109] Furthermore, after obtaining the low-level features and high-level features of the face image to be evaluated, the visual feature evaluation data and the face feature evaluation data of the face image to be evaluated can be calculated by the face recognition model.
[0110] In the above implementation, the face recognition model is used to extract the low-level features and high-level features of the face image, and the face recognition model can be used to calculate the visual feature evaluation data and the face feature evaluation data of the face image, so that the low-level visual features and the high-level face recognition features of the face image to be evaluated are comprehensively considered when the face image quality is evaluated. In this way, a face image quality evaluation method based on face recognition method optimization can be implemented, and face image evaluation data can be automatically obtained through the evaluation method.
[0111] In some embodiments, the facial feature evaluation data includes first feature evaluation data; the high-level features include multiple first high-level features extracted by the facial recognition model under different random discarding modes. The method for determining the facial feature evaluation data may include: performing similarity calculation based on multiple first high-level features to obtain first feature evaluation data of the facial image to be evaluated; wherein the first feature evaluation data is used to describe the robustness of the high-level features of the facial image to be evaluated.
[0112] The network layer of the face recognition model has a Dropout layer (random dropout layer), and the random dropout mode is the Dropout mode. The first feature evaluation data is the face feature evaluation data of a single image.
[0113] Specifically, the network layer of the trained face recognition model with a Dropout layer can be used to extract high-level features of the face image to be evaluated. By using different random dropout patterns, multiple random subnetworks of the face recognition model can be obtained, and the random subnetworks can be used to extract high-level feature vectors of the face image to be evaluated. The high-level feature vector extracted by a random subnetwork is called a first high-level feature, and thus multiple first high-level features of the face image to be evaluated can be generated by the multiple random subnetworks. By performing similarity calculation based on the multiple first high-level features, first feature evaluation data of the face image to be evaluated can be obtained, and the robustness of the high-level features of the face image to be evaluated can be evaluated based on the first feature evaluation data.
[0114] In some embodiments, similarity calculation can be performed based on multiple first high-level features by calculating Euclidean distance. The first feature evaluation data of the face image to be evaluated can be calculated using the unsupervised SER-FIQ (Unsupervised Estimation of Face Image Quality Based on Stochastic Embedding Robustness) face image quality evaluation method, and the multiple first high-level features can also be called multiple random embeddings generated by multiple random subnetworks.
[0115] For example, a trained face recognition model with a Dropout layer is used to extract high-level features of the face image to be evaluated. By using different Dropout modes, the embedding x of n random sub-networks can be generated. s (i.e., the first high-level feature). For the same face image to be evaluated, n random embeddings of the same face image to be evaluated can form a set, denoted as X(I), then:
[0116] X(I) = {x s}, s∈{1, 2, ..., n}
[0117] Among them, s can represent the index of random embedding, that is, the index of random subnetwork.
[0118] For the same face image to be evaluated, similarity calculation is performed based on n random embeddings of the image to obtain the first feature evaluation data S of the face image to be evaluated. ri . S ri The calculation method can refer to the following formula:
[0119]
[0120] Among them, σ(·) represents the activation function (sigmoid function); d(x p ,xq ) represents a random embedding x p and x q The Euclidean distance between them, and p∈{1, 2,..., n}, q∈{1, 2,..., n}.
[0121] According to the above formula, it can be found that for the same face image to be evaluated, if the Euclidean distance between the random embeddings of the face image to be evaluated is larger, the change between the random embeddings is larger, indicating that the robustness of the high-level features of the face image to be evaluated is lower, and the quality of the face features of the face image to be evaluated is lower. Conversely, if the Euclidean distance between the random embeddings of the face image to be evaluated is smaller, the change between the random embeddings is smaller, indicating that the robustness of the high-level features of the face image to be evaluated is higher, and the quality of the face features of the face image to be evaluated is higher.
[0122] In some implementations, the face image to be evaluated is a specified face image among a plurality of face images to be evaluated; the high-level features include the second high-level features extracted by the face recognition model; and the face feature evaluation data include the second feature evaluation data. Figure 3 As shown, the method for determining facial feature evaluation data may include the following steps.
[0123] S310. Perform similarity calculation based on the second high-level features of the designated facial image and the second high-level features of other facial images to obtain similarity data between the designated facial image and the other facial images; wherein the other facial images are other facial images to be evaluated except the designated facial image among the plurality of facial images to be evaluated.
[0124] S320. Obtain second feature evaluation data of the specified facial image based on the similarity data; wherein the second feature evaluation data is used to describe the recognizability of the specified facial image.
[0125] The similarity data is high-level feature similarity data, which is used to describe the high-level feature similarity between a specified face image and other face images. The second feature evaluation data is high-level feature similarity evaluation data of the same object (or the same identity, the same ID), or high-level feature similarity evaluation data within a class.
[0126] In some cases, when the face image to be evaluated is used as the input image of the face recognition model, the higher the similarity between the high-level features of different face images to be evaluated of the same target object, the easier it is for the face in the face image to be evaluated of the target object to be correctly recognized by the face recognition model, and the higher the quality of the face features of the face image to be evaluated. Therefore, for a specified face image of the same target object, the second feature evaluation data of the specified face image can be obtained based on the high-level feature similarity between the specified face image and other face images of the target object, so as to describe the recognizability of the specified face image, that is, the recognition accuracy of the specified face image.
[0127] Specifically, based on a set of facial images taken for the same target object, for a number of facial images to be evaluated in the facial image set, a facial recognition model can be used to extract high-level features for each facial image to be evaluated, and obtain the second high-level features of each facial image to be evaluated. For a specified facial image among the number of facial images to be evaluated, similarity calculation is performed based on the second high-level features of the specified facial image and the second high-level features of other facial images among the number of facial images to be evaluated, and similarity data between the specified facial image and the other facial images is obtained. Based on the similarity data between the specified facial image and the other facial images, second feature evaluation data of the specified facial image can be further obtained, so as to evaluate the recognizability of the specified facial image based on the second feature evaluation data.
[0128] In some embodiments, similarity calculation can be performed based on the second high-level features of the specified face image and the second high-level features of other face images by calculating cosine similarity, and the similarity data is cosine similarity data. The second feature evaluation data can be average cosine similarity data calculated based on the cosine similarity data between the specified face image and different other face images.
[0129] For example, a specified face image among several face images to be evaluated with the same ID is recorded as image i, and any other face image other than the specified face image among the several face images to be evaluated is recorded as image j. The second high-level feature Fc of image i can be obtained through the face recognition model i and the second high-level feature Fc of image j j . The cosine similarity is calculated based on the second high-level features of image i and the second high-level features of image j to obtain the similarity data between image i and image j, thereby obtaining the similarity data between image i and other different face images in the plurality of face images to be evaluated. The similarity data between image i and other different face images in the plurality of face images to be evaluated are averaged to obtain average cosine similarity data, and the average cosine similarity data is used as the second feature evaluation data S of image i.ci . S ci The calculation method can refer to the following formula:
[0130]
[0131] Among them, cos(·) represents the cosine similarity calculation. It can be understood that image i and image j have the same ID, that is, ID i =ID j .
[0132] According to the above formula, it can be found that if the similarity data between image i and other different face images of the same ID is larger, it means that the face in image i is easier to be recognized as the correct object, and the quality of the face features of image i is higher. Conversely, if the similarity data between image i and other different face images of the same ID is smaller, it means that the face in image i is less likely to be recognized as the correct object, and the quality of the face features of image i is lower.
[0133] It should be noted that, in this embodiment, high-level features are extracted from the face image to be evaluated through the network layer of the face recognition model without a Dropout layer.
[0134] In some embodiments, the facial feature evaluation data includes first feature evaluation data and second feature evaluation data. Performing facial image quality evaluation based on the visual feature evaluation data and the facial feature evaluation data of the facial image to be evaluated to obtain facial image evaluation data of the facial image to be evaluated may include: performing facial image quality evaluation based on the visual feature evaluation data, the first feature evaluation data, and the second feature evaluation data to obtain facial image evaluation data.
[0135] Specifically, a more accurate and comprehensive evaluation can be performed on the visual quality conditions such as contour clarity and color brightness of the facial image to be evaluated, as well as the quality conditions such as feature robustness and face recognizability of the facial image to be evaluated based on the visual feature evaluation data of the facial image to be evaluated, the first feature evaluation data and the second feature evaluation data to obtain facial image evaluation data of the facial image to be evaluated.
[0136] In some embodiments, the facial image evaluation data may be calculated by weighted summing of the visual feature evaluation data, the first feature evaluation data, and the second feature evaluation data.
[0137] Exemplarily, the face image to be evaluated is recorded as image i. For image i, the visual feature evaluation data S of image i can be obtained by the above method. vi , the first feature evaluation data S ri and the second feature evaluation data S ciUsing weighted fusion, the visual feature evaluation data S of image i is evaluated according to the preset weights. vi , the first feature evaluation data S ri and the second feature evaluation data S ci By performing weighted summation calculation, the final face image evaluation data S of image i can be generated i , that is:
[0138] S i =α*S vi +β*S ri +γ*S ci
[0139] Among them, α, β and γ are weight coefficients, which can be set according to actual needs.
[0140] This specification provides a method for generating a label. Figure 4 As shown, the label generation method may include the following steps.
[0141] S410, obtaining a set of face images captured for the same target object; wherein the set of face images includes a number of face images to be labeled.
[0142] S420, determine the visual feature evaluation data and facial feature evaluation data of the face image to be labeled; wherein the visual feature evaluation data is determined based on the low-level features extracted from the face image to be labeled, and the low-level features are used to describe the visual layer semantics of the face image to be labeled; the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the face image to be labeled.
[0143] S430: Perform facial image quality assessment based on the visual feature assessment data and the facial feature assessment data to obtain facial image assessment data of the facial image to be annotated.
[0144] S440: Using the facial image evaluation data as a label for the facial image to be annotated.
[0145] Among them, the face image to be annotated is an image sample with a classification category, and the classification category corresponds to the identity information of the target object.
[0146] Specifically, for any facial image to be labeled among several facial images to be labeled, facial image evaluation data of the facial image to be labeled can be obtained by the image quality evaluation method in any of the aforementioned implementation modes, and the facial image evaluation data can be used as a label for the facial image to be labeled.
[0147] Furthermore, based on the labels of the face images to be annotated and their corresponding face image evaluation data, face image samples can be obtained to be used for training a face quality evaluation model based on the face image samples.
[0148] It can be understood that the facial image to be annotated may be the same as the facial image to be evaluated in any of the aforementioned implementations.
[0149] It should be noted that, for the description of obtaining the facial image evaluation data of the facial image to be labeled in the above implementation, please refer to the description of the image quality evaluation method in this specification, and the details will not be repeated here.
[0150] This specification provides a method for training a face quality assessment model. Figure 5 As shown, the face quality assessment model training method may include the following steps.
[0151] S510, constructing a first training sample set; wherein the first training sample set includes a plurality of first face image samples, and the first face image samples have labels obtained based on the label generation method in the foregoing implementation manner.
[0152] S520: Use the first training sample set to train the initial evaluation model to obtain a face quality evaluation model.
[0153] Specifically, first, several facial images taken for the same target object can be obtained; secondly, for any facial image among the several facial images, the facial image is used as the facial image to be labeled, and the label of the any facial image can be obtained based on the label generation method in the aforementioned implementation; then, a first facial image sample is constructed based on the any facial image and its corresponding label. Thus, several first facial image samples can be constructed, and thus a first training sample set can be constructed. The initial evaluation model is trained using the first facial image sample in the first training sample set to obtain a trained facial quality evaluation model.
[0154] For example, for the target object M, firstly, a plurality of facial images obtained by photographing the target object M can be obtained, and any facial image among the plurality of facial images is recorded as image i. Secondly, for image i, facial image evaluation data S of image i can be obtained based on the above-mentioned label generation method. i , to evaluate the face image data S i As the label of image i. Then according to image i and its corresponding label S i, construct a first face image sample. Thus, several first face image samples can be constructed. The face image corresponding to any first face image sample is used as the input of the initial evaluation model, and the quality evaluation data of the first face image sample evaluated by the initial evaluation model output can be obtained. According to the label and quality evaluation data of the first face image sample, the loss data of the initial evaluation model can be determined, and the parameters of the initial evaluation model can be updated according to the loss data until the stop condition of the model training is met, so as to obtain a trained face quality evaluation model.
[0155] In some embodiments, the face quality assessment model can be obtained by performing knowledge transfer on the basis of a trained face recognition model, and the network structure of the face quality assessment model is substantially the same as the network structure of the trained face recognition model.
[0156] It can be understood that the first training sample set may include a plurality of first face image samples of different target objects.
[0157] In some implementations, the initial evaluation model is obtained by migrating a trained face recognition student model; the face recognition student model corresponds to a face recognition teacher model. Figure 6 As shown, the face quality assessment model training method may also include the following steps.
[0158] S610, constructing a second training sample set; wherein the first training sample set includes a plurality of second face image samples, and the second face image samples have object category labels.
[0159] S620: Input the second face image sample into the face recognition teacher model for face recognition to obtain the first face recognition feature and the first predicted category.
[0160] S630: Input the second face image sample into the face recognition student model for face recognition to obtain a second face recognition feature and a second predicted category.
[0161] S640, determining loss data of the face recognition student model based on the first face recognition feature, the first predicted category, the second face recognition feature, the second predicted category and the object category label.
[0162] S650. Update the parameters of the face recognition student model based on the loss data of the face recognition student model until the model training stop condition is met.
[0163] Among them, the face recognition teacher model is a teacher model for face recognition with a large and complex trained network structure, and the face recognition student model is a student model for face recognition with a simpler network structure. It is obtained by transferring knowledge based on the face recognition teacher model using knowledge distillation technology. The object category label is used to indicate the object category to which the second face image sample actually belongs, and the object category corresponds to the identity information of the target object.
[0164] The first face recognition feature is the face recognition feature in the second face image sample extracted by the face recognition teacher model, and the first prediction category is the object category to which the second face image sample predicted by the face recognition teacher model belongs; the second face recognition feature is the face recognition feature in the second face image sample extracted by the face recognition student model, and the second prediction category is the object category to which the second face image sample predicted by the face recognition student model belongs.
[0165] In some cases, most face quality assessment models use a network structure that is basically the same as the network structure of the face recognition model to perform knowledge transfer based on the face recognition model. However, in order to ensure the accuracy of face recognition, the structure of the commonly used face recognition model is large and complex, resulting in a large amount of calculation for the face recognition model. If a face quality assessment model with the same network structure as the face recognition model is added to the face recognition system, such a face recognition system is not friendly to embedded devices. Therefore, it is necessary to lightweight the face quality assessment model.
[0166] Knowledge distillation technology is a model lightweight method. Knowledge distillation technology adopts the Teacher-Student model, taking the larger and more complex model as the Teacher model and the smaller and simpler model as the Student model. The Teacher model has strong learning ability, and the Teacher model can be used to assist the training of the Student model, and the knowledge it has learned can be transferred to the Student model with relatively weaker learning ability, so as to enhance the generalization ability of the Student model and obtain a trained lightweight Student model. Therefore, the knowledge distillation technology can be used to obtain a lightweight face recognition model, and then the lightweight face quality assessment model can be obtained by migration based on the lightweight face recognition model.
[0167] Specifically, a plurality of face images taken for different target objects can be obtained, and the plurality of face images can be divided into corresponding object categories according to the identity information of different target objects. The object category corresponding to each face image is used as the object category label of each face image, and a second face image sample can be constructed based on each face image and its corresponding object category label. Thus, a plurality of second face image samples can be constructed, and thus a second training sample set can be constructed.
[0168] The trained face recognition model with a larger and more complex structure is used as the face recognition teacher model, and a face recognition model with a smaller and simpler structure can be defined as the face recognition student model. The second face image sample in the second training sample set is input into the face recognition teacher model for face recognition, and the first face recognition feature extracted by the face recognition teacher model and the predicted first prediction category can be obtained; the second face image sample in the second training sample set is input into the face recognition student model for face recognition, and the second face recognition feature extracted by the face recognition student model and the predicted second prediction category can be obtained. According to the first face recognition feature, the first prediction category, the second face recognition feature, the second prediction category and the object category label, the loss data of the face recognition student model can be determined, so as to update the parameters of the face recognition student model according to the loss data until the stop condition of the model training is met, and the trained face recognition student model is obtained.
[0169] Furthermore, after obtaining the trained face recognition student model, an initial evaluation model for face image quality assessment can be defined using the same network structure as the trained face recognition student model, so as to perform knowledge transfer based on the trained face recognition student model, and obtain the final trained face quality assessment model by training the initial evaluation model.
[0170] In some embodiments, the object category may be an identity ID category (or a face ID category) classified according to the identity ID, then the object category label may be a face ID classification label, the first predicted category may be a first predicted face ID category, and the second predicted category may be a second predicted face ID category.
[0171] Exemplarily, the face image of target object 1 corresponds to face ID category 1, the face image of target object 2 corresponds to face ID category 2, and the face image of target object 3 corresponds to face ID category 3. Based on the face image of target object 1 and its corresponding face ID category 1, the face image of target object 2 and its corresponding face ID category 2, and the face image of target object 3 and its corresponding face ID category 3, several second face image samples can be constructed. The object category label of the second face image sample is denoted as Cl , then the object category label C l It is any one of Face ID Category 1, Face ID Category 2, and Face ID Category 3.
[0172] For any second face image sample, the second face image sample is input into the face recognition teacher model for face recognition, and the first face recognition feature output by the face recognition teacher model is recorded as F t , and the first predicted category output by the face recognition teacher model is recorded as C t The second face image sample is input into the face recognition student model for face recognition, and the second face recognition feature output by the face recognition student model is recorded as F s , and the second predicted category output by the face recognition student model is recorded as C s Based on the first face recognition feature F t , the first predicted category C t , the second face recognition feature F s , the second prediction category C s and object category label C l , determine the loss data Loss of the face recognition student model. The calculation method of the loss data Loss can refer to the following formula:
[0173] Loss = η * MSE (F s ,F t )+λ*CE(C s ,C t )+ζ*CE(C s ,C l )
[0174] Among them, MSE(·) represents the mean square error loss function; CE(·) represents the cross entropy loss function; η, λ and ζ are weight coefficients, which can be set according to actual needs.
[0175] The parameters of the face recognition student model are updated according to the loss data Loss until the stop condition of the model training is met, and a face recognition student model that has completed the training is obtained.
[0176] Furthermore, after obtaining the trained face recognition student model, the same backbone network structure as the trained face recognition student model can be used to define an initial evaluation model, and the backbone network can be used for knowledge transfer. By training the initial evaluation model, a trained face quality evaluation model can be obtained.
[0177] It can be understood that the second training sample set may be the same as the first training sample set.
[0178] In the above implementation, a lightweight unsupervised face quality assessment model is obtained by using knowledge distillation technology, thereby reducing the computational complexity of the face quality assessment model to improve the computational efficiency and practicality of the face quality assessment model, so that the face quality assessment model can be well applied to scenarios with lightweight model deployment requirements such as embedded devices.
[0179] This specification provides an image quality assessment method, referring to Figure 7 As shown, the image quality assessment method may include the following steps.
[0180] S710: Obtain a face image to be evaluated.
[0181] S720: Input the facial image to be evaluated into a face quality assessment model trained by the face quality assessment model training method in any of the aforementioned implementations to obtain quality assessment data of the facial image to be evaluated.
[0182] Among them, the quality assessment data is the face image assessment data obtained by the face quality assessment model, which is the face image quality score.
[0183] Specifically, a face image to be evaluated that requires face image quality assessment is obtained, and the face image to be evaluated is used as the input of a face quality assessment model trained by the aforementioned face quality assessment model training method, so that the face quality assessment model performs face image quality assessment on the face image to be evaluated, and the face quality assessment model outputs quality assessment data of the face image to be evaluated.
[0184] This specification provides a face recognition method. Figure 8 As shown, the face recognition method may include the following steps.
[0185] S810, obtaining a set of face images to be identified that are obtained by photographing a target object; wherein the set of face images to be identified includes a plurality of face images to be identified.
[0186] S820: Input the face image to be recognized into a face quality assessment model trained by the face quality assessment model training method in any of the aforementioned implementation modes to obtain quality assessment data of the face image to be recognized.
[0187] S830. Determine a target facial image whose quality meets the requirements in the set of facial images to be recognized based on the quality evaluation data of the facial images to be recognized.
[0188] S840: Perform face recognition on the target object based on the target face image to obtain a face recognition result.
[0189] Among them, the face recognition result can be used to determine the identity information of the target object.
[0190] Specifically, a number of facial images to be identified can be taken for the target object to obtain a set of facial images to be identified. For each facial image to be identified in the set of facial images to be identified, each facial image to be identified is used as the input of the facial quality assessment model trained by the aforementioned facial quality assessment model training method, so that the facial quality assessment model outputs quality assessment data for each facial image to be identified. If the quality assessment data of the facial image to be identified is larger, it can be indicated that the facial quality of the facial image to be identified is better. Therefore, according to the quality assessment data of each facial image to be identified, the target facial image with quality that meets the requirements can be determined in the set of facial images to be identified. Based on the target facial image, facial recognition is performed on the target object to obtain a facial recognition result, and the identity information of the target object can be determined according to the facial recognition result.
[0191] In some embodiments, the target facial image may be the best quality facial image in the set of facial images to be recognized.
[0192] Exemplarily, the set of face images to be identified includes face image 1 to be identified, face image 2 to be identified, face image 3 to be identified, face image 4 to be identified, and face image 5 to be identified. Through the trained face quality assessment model, quality assessment data S1 of face image 1 to be identified, quality assessment data S2 of face image 2 to be identified, quality assessment data S3 of face image 3 to be identified, quality assessment data S4 of face image 4 to be identified, and quality assessment data S5 of face image 5 to be identified can be obtained. Assuming that S1<S2<S3<S4<S5, it can be shown that face image 5 to be identified has the best face quality, and face image 5 to be identified can be determined as the target face image.
[0193] In other embodiments, the target facial image may be a facial image to be identified whose quality assessment data is not less than a preset assessment data threshold.
[0194] For example, taking the above-mentioned face image set to be recognized as an example, the preset evaluation data threshold is denoted as S f Assume S1<S2<S3<S f <S4<S5, which may indicate that the facial image 4 to be identified and the facial image 5 to be identified are images that meet the quality requirements, and the facial image 4 to be identified and the facial image 5 to be identified may be determined as target facial images.
[0195] This specification provides a method for determining a label. Fig. 9 As shown, the tag determination method may include the following steps.
[0196] S910: Acquire an object image set obtained by photographing a designated object; wherein the object image set includes a number of object images to be labeled.
[0197] S920. Determine visual feature evaluation data and object feature evaluation data of the object image to be labeled; wherein the visual feature evaluation data is determined based on low-level features extracted from the object image to be labeled, and the low-level features are used to describe the visual layer semantics of the object image to be labeled; and the object feature evaluation data is used to describe the quality of the conceptual layer semantics of the object image to be labeled.
[0198] S930: Perform image quality assessment based on the visual feature assessment data and the object feature assessment data of the image of the object to be labeled, and obtain assessment data of the image of the object to be labeled as a label of the image of the object to be labeled.
[0199] The designated object may be a person, an animal, or other object. If the designated object is a person, the image of the object to be labeled at least includes a human face; if the designated object is an animal, the image of the object to be labeled may at least include an animal face or a representative part used to distinguish an individual animal, such as a trunk, wings, mouth, beak, horns, etc. The evaluation data is evaluation data of the image quality of the image of the object to be labeled.
[0200] It should be noted that, for the description of the label determination method in the above implementation mode, please refer to the description of the label generation method in this specification, and the details will not be repeated here.
[0201] This specification provides an image quality assessment device, referring to Fig.10 As shown, the image quality assessment apparatus 1000 may include: a first face image set acquisition module 1010 , a first feature assessment data determination module 1020 , and a first image assessment data acquisition module 1030 .
[0202] The first face image set acquisition module 1010 is used to acquire a face image set obtained by photographing the same target object; wherein the face image set includes a number of face images to be evaluated.
[0203] The first feature evaluation data determination module 1020 is used to determine the visual feature evaluation data and facial feature evaluation data of the facial image to be evaluated; wherein the visual feature evaluation data is determined based on the low-level features extracted from the facial image to be evaluated, and the low-level features are used to describe the visual layer semantics of the facial image to be evaluated; the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the facial image to be evaluated.
[0204] The first image evaluation data acquisition module 1030 is used to perform facial image quality evaluation based on the visual feature evaluation data and facial feature evaluation data of the facial image to be evaluated, and obtain facial image evaluation data of the facial image to be evaluated.
[0205] In some embodiments, the first feature evaluation data determination module 1020 is further used to obtain representative low-level features of the target object based on the low-level features of several facial images to be evaluated; and to perform similarity calculation based on the low-level features of the facial images to be evaluated and the representative low-level features to obtain visual feature evaluation data of the facial images to be evaluated.
[0206] In some embodiments, the first feature evaluation data determination module 1020 is further used to obtain representative low-level features of the target object based on the low-level features of several facial images to be evaluated; and to perform similarity calculation based on the low-level features of the facial images to be evaluated and the representative low-level features to obtain visual feature evaluation data of the facial images to be evaluated.
[0207] In some embodiments, the facial feature evaluation data is determined based on high-level features extracted from the facial image to be evaluated; the high-level features are used to describe the conceptual semantics of the facial image to be evaluated. The first feature evaluation data determination module 1020 is also used to input the facial image to be evaluated into a trained facial recognition model for feature extraction to obtain low-level features and high-level features.
[0208] In some embodiments, the facial feature evaluation data includes first feature evaluation data; the high-level features include multiple first high-level features extracted by the facial recognition model under different random discarding modes. The first feature evaluation data determination module 1020 is further used to perform similarity calculation based on the multiple first high-level features to obtain first feature evaluation data of the facial image to be evaluated; wherein the first feature evaluation data is used to describe the robustness of the high-level features of the facial image to be evaluated.
[0209] In some embodiments, the facial image to be evaluated is a designated facial image among several facial images to be evaluated; the high-level features include the second high-level features extracted by the facial recognition model; and the facial feature evaluation data include the second feature evaluation data. The first feature evaluation data determination module 1020 is further used to perform similarity calculation based on the second high-level features of the designated facial image and the second high-level features of other facial images to obtain similarity data between the designated facial image and the other facial images; wherein the other facial images are other facial images to be evaluated except the designated facial image among several facial images to be evaluated; based on the similarity data, the second feature evaluation data of the designated facial image is obtained; wherein the second feature evaluation data is used to describe the recognizability of the designated facial image.
[0210] For specific limitations on the image quality assessment device, please refer to the limitations on the image quality assessment method above, which will not be repeated here.
[0211] This specification provides a label generation device, referring to Fig.11 As shown, the label generating device 1100 may include: a second facial image set acquiring module 1110 , a second feature evaluation data determining module 1120 , a second image evaluation data acquiring module 1130 , and a first facial image label acquiring module 1140 .
[0212] The second face image set acquisition module 1110 is used to acquire a face image set obtained by photographing the same target object; wherein the face image set includes a number of face images to be annotated;
[0213] The second feature evaluation data determination module 1120 is used to determine the visual feature evaluation data and the facial feature evaluation data of the face image to be labeled; wherein the visual feature evaluation data is determined based on the low-level features extracted from the face image to be labeled, and the low-level features are used to describe the visual layer semantics of the face image to be labeled; and the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the face image to be labeled;
[0214] The second image evaluation data acquisition module 1130 is used to evaluate the quality of the facial image based on the visual feature evaluation data and the facial feature evaluation data to obtain facial image evaluation data of the facial image to be annotated;
[0215] The first face image label acquisition module 1140 is used to use the face image evaluation data as the label of the face image to be annotated.
[0216] For the specific limitations on the label generating device, please refer to the limitations on the label generating method above, which will not be repeated here.
[0217] This specification provides a face quality assessment model training device, referring to Fig.12a As shown, the face quality assessment model training device 1200 may include: a first sample set construction module 1210 and an initial assessment model training module 1220.
[0218] A first sample set construction module 1210 is used to construct a first training sample set; wherein the first training sample set includes a plurality of first face image samples, and the first face image samples have labels obtained based on the label generation method in claim 7;
[0219] The initial evaluation model training module 1220 is used to train the initial evaluation model using the first training sample set to obtain a face quality evaluation model.
[0220] In some implementations, the initial evaluation model is obtained by migrating a trained face recognition student model; the face recognition student model corresponds to a face recognition teacher model. Figure 12b As shown, the face quality assessment model training device 1200 may also include: a second sample set construction module 1230, a first face recognition module 1240, a second face recognition module 1250, a loss data determination module 1260, and a model parameter updating module 1270.
[0221] The second sample set construction module 1230 is used to construct a second training sample set; wherein the first training sample set includes a plurality of second face image samples, and the second face image samples have object category labels;
[0222] A first face recognition module 1240, used for inputting the second face image sample into the face recognition teacher model for face recognition, and obtaining a first face recognition feature and a first prediction category;
[0223] A second face recognition module 1250 is used to input the second face image sample into the face recognition student model for face recognition to obtain a second face recognition feature and a second prediction category;
[0224] a loss data determination module 1260 for determining loss data of a face recognition student model based on the first face recognition feature, the first predicted category, the second face recognition feature, the second predicted category, and the object category label;
[0225] The model parameter updating module 1270 is used to update the parameters of the face recognition student model based on the loss data of the face recognition student model until the model training stop condition is met.
[0226] For the specific limitations on the face quality assessment model training device, please refer to the limitations on the face quality assessment model training method above, which will not be repeated here.
[0227] The present specification also provides an image quality assessment device, referring to Fig.13 As shown, the image quality assessment device 1300 may include: a face image acquisition module 1310 to be assessed and a first quality assessment data acquisition module 1320 .
[0228] The face image acquisition module 1310 is used to acquire the face image to be evaluated.
[0229] The first quality assessment data acquisition module 1320 is used to input the facial image to be evaluated into the face quality assessment model trained by the face quality assessment model training method in any of the aforementioned implementation modes to obtain quality assessment data of the facial image to be evaluated.
[0230] For specific limitations on the image quality assessment device, please refer to the limitations on the image quality assessment method above, which will not be repeated here.
[0231] The present specification also provides a face recognition device, referring to Fig.14 As shown, the face recognition device 1400 may include: a third face image set acquisition module 1410 , a second quality assessment data acquisition module 1420 , a target face image determination module 1430 , and a face recognition result acquisition module 1440 .
[0232] The third face image set acquisition module 1410 is used to acquire a set of face images to be identified obtained by photographing a target object; wherein the set of face images to be identified includes a plurality of face images to be identified.
[0233] The second quality assessment data acquisition module 1420 is used to input the face image to be recognized into the face quality assessment model trained by the face quality assessment model training method in any of the aforementioned implementation modes to obtain quality assessment data of the face image to be recognized.
[0234] A target facial image determination module 1430 is used to determine a target facial image that meets the quality requirements in the set of facial images to be identified based on the quality evaluation data of the facial images to be identified;
[0235] The face recognition result acquisition module 1440 is used to perform face recognition on the target object based on the target face image to obtain a face recognition result.
[0236] For the specific limitations on the face recognition device, please refer to the limitations on the face recognition method above, which will not be repeated here.
[0237] The present specification also provides a label determination device, referring to Fig.15 As shown, the label determination device 1500 may include: an object image set acquisition module 1510 , a third feature evaluation data determination module 1520 , and a to-be-annotated object image label determination module 1530 .
[0238] The object image set acquisition module 1510 is used to acquire an object image set obtained by photographing a designated object; wherein the object image set includes a number of object images to be labeled.
[0239] The third feature evaluation data determination module 1520 is used to determine the visual feature evaluation data and object feature evaluation data of the object image to be labeled; wherein the visual feature evaluation data is determined based on the low-level features extracted from the object image to be labeled, and the low-level features are used to describe the visual layer semantics of the object image to be labeled; the object feature evaluation data is used to describe the quality of the conceptual layer semantics of the object image to be labeled.
[0240] The module 1530 for determining the label of the object image to be labeled is used to perform image quality evaluation based on the visual feature evaluation data and the object feature evaluation data of the object image to be labeled, and obtain the evaluation data of the object image to be labeled as the label of the object image to be labeled.
[0241] For the specific limitations of the tag determination device, please refer to the limitations of the tag determination method above, which will not be repeated here.
[0242] Each module in the above-mentioned image quality assessment device, label generation device, face quality assessment model training device, face recognition device, and label determination device can be implemented in whole or in part by software, hardware, and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0243] The present specification also provides a computer device, referring to Fig.16 As shown, the computer device 1600 includes a memory 1610 and a processor 1620, the memory 1610 stores a first computer program 1630, and when the processor 1620 executes the first computer program 1630, it implements the steps of the image quality assessment method, and / or the label generation method, and / or the face quality assessment model training method, and / or the face recognition method, and / or the label determination method of any of the aforementioned embodiments.
[0244] The embodiment of this specification also provides a chip, referring to Fig.17 As shown, the chip 1700 includes a storage unit 1710 and a processing unit 1720. The storage unit 1710 stores a second computer program 1730. When the processing unit 1720 executes the second computer program 1730, the image quality assessment method, and / or the face recognition method, and / or the steps of the label determination method of any of the aforementioned embodiments are implemented.
[0245] The embodiments of this specification also provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the image quality assessment method, and / or the label generation method, and / or the face quality assessment model training method, and / or the face recognition method, and / or the label determination method of any of the aforementioned embodiments are implemented.
[0246] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0247] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0248] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0249] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0250] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0251] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for evaluating image quality, It is characterized in that The method comprises: Acquire a set of face images taken for the same target object; wherein the face image set includes a number of face images to be evaluated; Determine the visual feature evaluation data and facial feature evaluation data of the facial image to be evaluated; wherein the visual feature evaluation data is determined based on low-level features extracted from the facial image to be evaluated, and the low-level features are used to describe the visual layer semantics of the facial image to be evaluated. The method for determining the visual feature evaluation data includes: obtaining representative low-level features of the target object according to the low-level features of the facial images to be evaluated, and performing similarity calculation based on the low-level features of the facial image to be evaluated and the representative low-level features to obtain the visual feature evaluation data of the facial image to be evaluated; the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the facial image to be evaluated, and the facial feature evaluation data is determined based on high-level features extracted from the facial image to be evaluated, and the high-level features are used to describe the conceptual layer semantics of the facial image to be evaluated; the method for determining the low-level features and the high-level features includes: inputting the facial image to be evaluated into a trained facial recognition model for feature extraction to obtain the low-level features and the high-level features; Facial image quality assessment is performed based on the visual feature assessment data and the facial feature assessment data of the facial image to be assessed, to obtain facial image assessment data of the facial image to be assessed.
2. The method according to claim 1, It is characterized in that The facial feature evaluation data includes first feature evaluation data; the high-level features include a plurality of first high-level features extracted by the face recognition model under different random discarding modes; and the method for determining the facial feature evaluation data includes: Similarity calculation is performed based on the multiple first high-level features to obtain the first feature evaluation data of the facial image to be evaluated; wherein the first feature evaluation data is used to describe the robustness of the high-level features of the facial image to be evaluated.
3. The method according to any one of claims 1 or 2, It is characterized in that The face image to be evaluated is a designated face image among the plurality of face images to be evaluated; the high-level feature includes a second high-level feature extracted by the face recognition model; the face feature evaluation data includes second feature evaluation data; and the method for determining the face feature evaluation data includes: Performing similarity calculation based on the second high-level features of the designated facial image and the second high-level features of other facial images to obtain similarity data between the designated facial image and the other facial images; wherein the other facial images are other facial images to be evaluated among the plurality of facial images to be evaluated except the designated facial image; The second feature evaluation data of the designated face image is obtained according to the similarity data; wherein the second feature evaluation data is used to describe the recognizability of the designated face image.
4. The method according to claim 1, It is characterized in that The facial feature evaluation data includes first feature evaluation data and second feature evaluation data; the facial image quality evaluation is performed according to the visual feature evaluation data and the facial feature evaluation data of the facial image to be evaluated to obtain the facial image evaluation data of the facial image to be evaluated, including: The facial image quality is evaluated based on the visual feature evaluation data, the first feature evaluation data and the second feature evaluation data to obtain the facial image evaluation data.
5. A label generation method, It is characterized in that The method comprises: Acquire a set of face images taken for the same target object; wherein the face image set includes a number of face images to be annotated; Determine the visual feature evaluation data and facial feature evaluation data of the face image to be labeled; wherein the visual feature evaluation data is determined based on the low-level features extracted from the face image to be labeled, the low-level features are used to describe the visual layer semantics of the face image to be labeled, and the method for determining the visual feature evaluation data includes: obtaining representative low-level features of the target object according to the low-level features of the face images to be evaluated, and performing similarity calculation based on the low-level features of the face image to be evaluated and the representative low-level features to obtain the visual feature evaluation data of the face image to be evaluated; the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the face image to be labeled, and the facial feature evaluation data is determined based on the high-level features extracted from the face image to be evaluated, and the high-level features are used to describe the conceptual layer semantics of the face image to be evaluated; the method for determining the low-level features and the high-level features includes: inputting the face image to be evaluated into a trained face recognition model for feature extraction to obtain the low-level features and the high-level features; Performing facial image quality assessment based on the visual feature assessment data and the facial feature assessment data to obtain facial image assessment data of the facial image to be annotated; The facial image evaluation data is used as a label of the facial image to be labeled.
6. A face quality assessment model training method, It is characterized in that The method comprises: Constructing a first training sample set; wherein the first training sample set includes a plurality of first face image samples, and the first face image samples have labels obtained based on the label generation method in claim 5; The initial evaluation model is trained using the first training sample set to obtain the face quality evaluation model.
7. The method according to claim 6, It is characterized in that The initial evaluation model is obtained by migrating the trained face recognition student model; the face recognition student model corresponds to the face recognition teacher model; the method further includes: Constructing a second training sample set; wherein the first training sample set includes a plurality of second face image samples, and the second face image samples have object category labels; Inputting the second face image sample into the face recognition teacher model for face recognition to obtain a first face recognition feature and a first predicted category; Inputting the second face image sample into the face recognition student model for face recognition to obtain a second face recognition feature and a second predicted category; determining loss data for the face recognition student model based on the first face recognition feature, the first predicted category, the second face recognition feature, the second predicted category, and the object category label; The parameters of the face recognition student model are updated based on the loss data of the face recognition student model until the model training stop condition is met.
8. A method for evaluating image quality, It is characterized in that The method comprises: Obtain a face image to be evaluated; The facial image to be evaluated is input into a facial quality evaluation model trained by any one of claims 6 to 7 to obtain quality evaluation data of the facial image to be evaluated.
9. A face recognition method, It is characterized in that The method comprises: Acquire a set of face images to be identified obtained by photographing a target object; wherein the set of face images to be identified includes a plurality of face images to be identified; Inputting the face image to be identified into a face quality assessment model trained by any one of claims 6 to 7 to obtain quality assessment data of the face image to be identified; Determining a target face image that meets the quality requirements in the set of face images to be identified according to the quality evaluation data of the face image to be identified; Perform face recognition on the target object based on the target face image to obtain a face recognition result.
10. A label determination method, It is characterized in that The method comprises: Acquire an object image set obtained by photographing a specified object; wherein the object image set includes a plurality of object images to be annotated; Determine visual feature evaluation data and object feature evaluation data of the image of the object to be labeled; wherein the visual feature evaluation data is determined based on low-level features extracted from the image of the object to be labeled, and the low-level features are used to describe the visual layer semantics of the image of the object to be labeled. The method for determining the visual feature evaluation data includes: obtaining representative low-level features of the specified object according to the low-level features of the plurality of images of the object to be labeled, and performing similarity calculation based on the low-level features of the image of the object to be labeled and the representative low-level features to obtain the visual feature evaluation data of the image of the object to be labeled; the object feature evaluation data is used to describe the quality of the conceptual layer semantics of the image of the object to be labeled, and the object feature evaluation data is determined based on high-level features extracted from the image of the object to be labeled, and the high-level features are used to describe the conceptual layer semantics of the image of the object to be labeled; the method for determining the low-level features and the high-level features includes: inputting the image of the object to be labeled into a trained recognition model for feature extraction to obtain the low-level features and the high-level features; Image quality assessment is performed based on the visual feature assessment data and the object feature assessment data of the image of the object to be labeled, so as to obtain the assessment data of the image of the object to be labeled as a label of the image of the object to be labeled.
11. An image quality assessment device, It is characterized in that The device comprises: A first face image set acquisition module is used to acquire a face image set obtained by photographing the same target object; wherein the face image set includes a number of face images to be evaluated; The first feature evaluation data determination module is used to determine the visual feature evaluation data and facial feature evaluation data of the face image to be evaluated; wherein the visual feature evaluation data is determined based on the low-level features extracted from the face image to be evaluated, and the low-level features are used to describe the visual layer semantics of the face image to be evaluated. The method for determining the visual feature evaluation data includes: obtaining representative low-level features of the target object according to the low-level features of the face images to be evaluated, and performing similarity calculation based on the low-level features of the face image to be evaluated and the representative low-level features to obtain the visual feature evaluation data of the face image to be evaluated; the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the face image to be evaluated, and the facial feature evaluation data is determined based on the high-level features extracted from the face image to be evaluated, and the high-level features are used to describe the conceptual layer semantics of the face image to be evaluated; the method for determining the low-level features and the high-level features includes: inputting the face image to be evaluated into a trained face recognition model for feature extraction to obtain the low-level features and the high-level features; The first image evaluation data acquisition module is used to perform facial image quality evaluation based on the visual feature evaluation data and facial feature evaluation data of the facial image to be evaluated, so as to obtain facial image evaluation data of the facial image to be evaluated.
12. The device according to claim 11, It is characterized in that The facial feature evaluation data includes first feature evaluation data; the high-level features include a plurality of first high-level features extracted by the facial recognition model under different random discarding modes; The first feature evaluation data determination module is also used to perform similarity calculation based on the multiple first high-level features to obtain the first feature evaluation data of the facial image to be evaluated; wherein the first feature evaluation data is used to describe the robustness of the high-level features of the facial image to be evaluated.
13. The device according to any one of claims 11 or 12, It is characterized in that The face image to be evaluated is a designated face image among the plurality of face images to be evaluated; the high-level features include the second high-level features extracted by the face recognition model; and the face feature evaluation data include the second feature evaluation data; The first feature evaluation data determination module is also used to perform similarity calculation based on the second high-level features of the designated facial image and the second high-level features of other facial images to obtain similarity data between the designated facial image and the other facial images; wherein the other facial images are other facial images to be evaluated among the several facial images to be evaluated except the designated facial image; based on the similarity data, the second feature evaluation data of the designated facial image is obtained; wherein the second feature evaluation data is used to describe the recognizability of the designated facial image.
14. A label generating device, It is characterized in that The device comprises: A second face image set acquisition module is used to acquire a face image set obtained by photographing the same target object; wherein the face image set includes a number of face images to be annotated; The second feature evaluation data determination module is used to determine the visual feature evaluation data and facial feature evaluation data of the face image to be labeled; wherein the visual feature evaluation data is determined based on the low-level features extracted from the face image to be labeled, and the low-level features are used to describe the visual layer semantics of the face image to be labeled. The method for determining the visual feature evaluation data includes: obtaining representative low-level features of the target object according to the low-level features of the face images to be evaluated, and performing similarity calculation based on the low-level features of the face image to be evaluated and the representative low-level features to obtain the visual feature evaluation data of the face image to be evaluated; the facial feature evaluation data is used to describe the quality of the conceptual layer semantics of the face image to be labeled, and the facial feature evaluation data is determined based on the high-level features extracted from the face image to be evaluated, and the high-level features are used to describe the conceptual layer semantics of the face image to be evaluated; the method for determining the low-level features and the high-level features includes: inputting the face image to be evaluated into a trained face recognition model for feature extraction to obtain the low-level features and the high-level features; A second image evaluation data acquisition module is used to perform facial image quality evaluation based on the visual feature evaluation data and the facial feature evaluation data to obtain facial image evaluation data of the facial image to be annotated; The first face image label acquisition module is used to use the face image evaluation data as the label of the face image to be labeled.
15. A face quality assessment model training device, It is characterized in that The device comprises: A first sample set construction module, used to construct a first training sample set; wherein the first training sample set includes a plurality of first face image samples, and the first face image samples have labels obtained based on the label generation method in claim 5; The initial evaluation model training module is used to train the initial evaluation model using the first training sample set to obtain the face quality evaluation model.
16. The device according to claim 15, It is characterized in that The initial evaluation model is obtained by migrating the trained face recognition student model; The face recognition student model corresponds to a face recognition teacher model; the device also includes: A second sample set construction module, used to construct a second training sample set; wherein the first training sample set includes a plurality of second face image samples, and the second face image samples have object category labels; A first face recognition module, used for inputting the second face image sample into the face recognition teacher model for face recognition, and obtaining a first face recognition feature and a first prediction category; A second face recognition module, used for inputting the second face image sample into the face recognition student model for face recognition to obtain a second face recognition feature and a second prediction category; a loss data determination module, configured to determine loss data of the face recognition student model based on the first face recognition feature, the first predicted category, the second face recognition feature, the second predicted category, and the object category label; A model parameter updating module is used to update the parameters of the face recognition student model based on the loss data of the face recognition student model until the model training stop condition is met.
17. An image quality assessment device, It is characterized in that The device comprises: A face image acquisition module to be evaluated, used to acquire the face image to be evaluated; The first quality assessment data acquisition module is used to input the face image to be evaluated into the face quality assessment model trained by any one of claims 6 to 7 to obtain the quality assessment data of the face image to be evaluated.
18. A face recognition device, It is characterized in that The device comprises: A third face image set acquisition module is used to acquire a face image set to be identified obtained by photographing a target object; wherein the face image set to be identified includes a plurality of face images to be identified; A second quality assessment data acquisition module, used for inputting the face image to be identified into the face quality assessment model trained by any one of claims 6 to 7 to obtain quality assessment data of the face image to be identified; A target facial image determination module, configured to determine a target facial image whose quality meets the requirements in the set of facial images to be identified according to the quality evaluation data of the facial images to be identified; The face recognition result acquisition module is used to perform face recognition on the target object based on the target face image to obtain a face recognition result.
19. A label determination device, It is characterized in that The device comprises: An object image set acquisition module is used to acquire an object image set obtained by photographing a specified object; wherein the object image set includes a number of object images to be annotated; The third feature evaluation data determination module is used to determine the visual feature evaluation data and object feature evaluation data of the to-be-annotated object image; wherein the visual feature evaluation data is determined based on the low-level features extracted from the to-be-annotated object image, and the low-level features are used to describe the visual layer semantics of the to-be-annotated object image. The method for determining the visual feature evaluation data includes: obtaining representative low-level features of the specified object according to the low-level features of the several to-be-annotated object images, and performing similarity calculation based on the low-level features of the to-be-annotated object image and the representative low-level features to obtain the visual feature evaluation data of the to-be-annotated object image; the object feature evaluation data is used to describe the quality of the conceptual layer semantics of the to-be-annotated object image, and the object feature evaluation data is determined based on the high-level features extracted from the to-be-annotated object image, and the high-level features are used to describe the conceptual layer semantics of the to-be-annotated object image; the method for determining the low-level features and the high-level features includes: inputting the to-be-annotated object image into a trained recognition model for feature extraction to obtain the low-level features and the high-level features; The module for determining the label of the image of the object to be labeled is used to perform image quality evaluation based on the visual feature evaluation data and object feature evaluation data of the image of the object to be labeled, and obtain the evaluation data of the image of the object to be labeled as the label of the image of the object to be labeled.
20. A computer device comprising a memory and a processor, wherein the memory stores a first computer program, It is characterized in that When the processor executes the first computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
21. A chip comprising a storage unit and a processing unit, wherein the storage unit stores a second computer program. It is characterized in that When the processing unit executes the second computer program, the steps of the method according to any one of claims 1 to 4 and 8 to 10 are implemented.
22. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
A medical image segmentation method and system based on artificial intelligence
CN109447976A
Semi-implicit multi-modal recommendation method based on similarity correction
CN111046166A
Image quality evaluation method combining low-level vision and high-level vision statistical characteristics
CN111325733A
Face snapshot method and face snapshot system
CN111738193A
Infrared image quality evaluation method and device
CN115830002A
