Feature extraction model training method, face quality analysis method, device and equipment

By constructing triplet samples and iteratively training the model, the problem of insufficient generalization ability of face quality analysis in the existing technology is solved, and the accuracy of face quality scoring is improved, especially the evaluation ability when facing unseen scenes. .

CN118747834APending Publication Date: 2024-10-08MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410912142.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing face quality analysis technology relies too much on specific data sets or quality label distributions during training, resulting in limited generalization capabilities when faced with unseen complex scenes or quality types, and the inability to accurately evaluate the quality of new samples, resulting in Face quality scoring accuracy is poor.

Method used

By constructing multiple triplet samples, use the quality feature extraction model to extract quality feature vectors from the face image samples in the triplet samples, calculate the quality distance between samples based on the quality feature vectors, and iteratively train the model until the quality level The distance between the same samples is the smallest, and the distance between samples of different levels is the largest, which improves the generalization ability of the model.

Benefits of technology

It improves the generalization ability and accuracy of the quality feature extraction model, enhances the scoring accuracy in face quality analysis scenarios, and can better handle unseen complex scenes and quality types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747834A_ABST
    Figure CN118747834A_ABST
Patent Text Reader

Abstract

The invention relates to a feature extraction model training method, a face quality analysis method, devices and equipment, and relates to the technical field of computer vision. The method comprises the following steps: acquiring a face image library and a quality grade label corresponding to each face image sample in the library; constructing a plurality of triple samples based on the face image library; performing model iteration training based on each triple sample to obtain a quality feature extraction model meeting a training completion condition; the training completion condition comprises that the quality distance between the samples with the same quality grade is minimum, and the quality distance between the samples with different quality grades is maximum; the quality feature extraction model is used for extracting a quality feature vector of the face image so as to analyze the face quality; through the method, the generalization ability of the quality feature extraction model can be improved, and the extraction accuracy of the quality feature vector is improved, so that the accuracy of face quality analysis is improved when the method is applied to a face quality analysis scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer vision technology, and in particular to a feature extraction model training method, a face quality analysis method, a device and equipment. Background Art

[0002] With the development of computer vision and artificial intelligence technology, face quality analysis has been widely used in many fields, such as security monitoring, face beautification, expression recognition, age processing, etc.

[0003] In the existing face quality analysis technology, the face quality scoring model is trained by inputting face image samples and face quality score labels, so as to perform face quality scoring based on the trained face quality scoring model. However, the above model may be too dependent on specific data sets or quality label distributions during training, resulting in limited generalization ability when facing unprecedented complex scenes or quality types, and unable to accurately evaluate the quality of new samples, resulting in poor accuracy in facial quality scoring. Summary of the invention

[0004] The embodiments of the present application provide a feature extraction model training method, a face quality analysis method, an apparatus and a device, which can improve the generalization ability of the quality feature extraction model, improve the extraction accuracy of the quality feature vector, and improve the accuracy of the face quality analysis when applied to the face analysis and scoring scenario. The technical solution is as follows.

[0005] In one aspect, a feature extraction model training method is provided, the method comprising:

[0006] Acquire a face image library, and determine a quality level label corresponding to each face image sample in the face image library, wherein the quality level label includes a first quality level and a second quality level; the first quality level is higher than the second quality level;

[0007] Constructing a plurality of triplet samples based on the face image library; each triplet sample is a sample combination consisting of any three face image samples;

[0008] The initial quality feature extraction model is iteratively trained based on the multiple triplet samples until the training completion conditions are met to obtain a trained quality feature extraction model; the training completion conditions include: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality.

[0009] On the other hand, a method for analyzing face quality is provided, the method comprising:

[0010] Receiving a target face image to be analyzed;

[0011] The quality feature vector of the target face image is extracted based on a quality feature extraction model; the quality feature extraction model is iteratively trained based on multiple triple samples constructed based on a face image library and is obtained after satisfying a training completion condition; the training completion condition includes: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; each face image sample in the face image library has a corresponding quality level label, and the quality level label includes a first quality level and a second quality level, and the first quality level is higher than the second quality level;

[0012] Based on the quality feature vector of the target facial image, a face quality score of the target facial image is determined, where the face quality score is used to characterize the quality level of the target facial image.

[0013] On the other hand, a feature extraction model training device is provided, the device comprising:

[0014] an acquisition module, configured to acquire a face image library, and determine a quality level label corresponding to each face image sample in the face image library, wherein the quality level label includes a first quality level and a second quality level; the first quality level is higher than the second quality level;

[0015] A sample construction module, constructing a plurality of triplet samples based on the face image library; each triplet sample is a sample combination consisting of any three face image samples;

[0016] A model training module is used to iteratively train the initial quality feature extraction model based on the multiple triplet samples until the training completion conditions are met to obtain the trained quality feature extraction model; the training completion conditions include: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality.

[0017] In a possible implementation, the acquisition module includes:

[0018] An index scoring submodule is used to perform index scoring on each face image sample in the face image library to obtain a perceptual index score of each face image sample corresponding to a perceptual index, and to obtain a machine index score of each face image sample corresponding to a machine index; the perceptual index is an index obtained by extracting facial key points from the face image sample; the machine index refers to an image quality parameter of the face image sample;

[0019] The label determination submodule is used to determine the quality level label corresponding to each face image sample based on the perceptual indicator score of each face image sample corresponding to the perceptual indicator and the machine indicator score of each face image sample corresponding to the machine indicator.

[0020] In a possible implementation, the tag determination submodule is used to:

[0021] For any target face image sample among the face image samples, when both the perceptual index score and the machine index score indicate that the image quality of the target face image sample is at the first quality level, determining that the quality level label of the target face image sample is at the first quality level;

[0022] When at least one of the perceptual index score and the machine index score indicates that the image quality of the target face image sample is at the second quality level, the quality level label of the target face image sample is determined to be the second quality level.

[0023] In a possible implementation, the perception index includes at least one of the following: face angle, spatial distribution of facial features and occlusion; the machine index includes at least one of the following: clarity, contrast, brightness, focal length and illumination.

[0024] In a possible implementation, the sample construction module is used to:

[0025] Obtaining an image feature vector of each face image sample in the face image library; the image feature vector is used to characterize image information in the face image sample;

[0026] Perform image clustering based on the image feature vectors of each face image sample to obtain at least two sample image classes, wherein the similarity between face image samples in the same sample image class is higher than a similarity threshold; and the same sample image class includes face image samples of a first quality level and face image samples of a second quality level;

[0027] At least one triplet sample corresponding to each sample image class is constructed respectively to obtain the multiple triplet samples; the three face image samples in the same triplet sample are derived from the same sample image class.

[0028] On the other hand, a face quality analysis device is provided, the device comprising:

[0029] An image receiving module, used for receiving a target face image to be analyzed;

[0030] A feature extraction module, for extracting a quality feature vector of the target face image based on a quality feature extraction model; the quality feature extraction model is iteratively trained based on a plurality of triplet samples constructed based on a face image library and is obtained after satisfying a training completion condition, wherein the training completion condition includes: the quality distance between face image samples with the same quality level reaches a minimum, and the quality distance between face image samples with different quality levels reaches a maximum; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; each face image sample in the face image library has a corresponding quality level label, wherein the quality level label includes a first quality level and a second quality level, and the first quality level is higher than the second quality level;

[0031] The quality scoring module is used to determine the face quality score of the target face image based on the quality feature vector of the target face image, and the face quality score is used to characterize the quality level of the target face image.

[0032] In a possible implementation, the quality scoring module includes:

[0033] A similarity calculation submodule, used to calculate the quality similarity between the target face image and each face image sample in the face image library based on the quality feature vector of the target face image and the quality feature vector of each face image sample in the face image library;

[0034] The quality scoring submodule is used to determine the face quality score of the target face image based on the perceptual index scores and machine index scores of the first N face image samples with the highest quality similarity to the target face image in the face image library, where N is a positive integer.

[0035] In one possible implementation, the quality scoring submodule is used to determine the face quality score of the target face image by averaging the perceptual index scores and machine index scores of the top N face image samples with the highest quality similarity to the target face image in the face image library.

[0036] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the above-mentioned feature extraction model training method and / or the face quality analysis method.

[0037] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored, and the computer program is loaded and executed by a processor to implement the above-mentioned feature extraction model training method and / or face quality analysis method.

[0038] On the other hand, a computer program product is provided, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, which, when executed by a computer, cause the computer to execute to implement the feature extraction model training method provided in the above-mentioned various optional implementations, and / or the face quality analysis method.

[0039] The technical solution provided by this application may have the following beneficial effects:

[0040] The feature extraction model training method provided in the embodiment of the present application, when training the quality feature extraction model, constructs a triple sample based on a face image library containing different quality levels, extracts the quality feature vector of the face image samples in the triple sample through the quality feature extraction model, and calculates the quality distance between each face image sample based on the quality feature vector, so as to train the quality feature extraction model according to the quality distance between each face image sample, until the quality distance between face image samples with the same quality level reaches the minimum, and the quality distance between face image samples with different quality levels reaches the maximum, the model training is determined to be completed, and the trained quality feature extraction model is obtained; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality. Through the above-mentioned model training method, the quality feature extraction model can learn the general quality features during training, the generalization ability of the quality feature extraction model can be improved, and the extraction accuracy of the quality feature vector can be improved, so that when applied to the face quality analysis scenario, the accuracy of the face quality analysis can be improved.

[0041] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] Figure 1 A flow chart of a feature extraction model training method provided by an exemplary embodiment of the present application is shown;

[0044] Figure 2 A flow chart of a feature extraction model training method provided by an exemplary embodiment of the present application is shown;

[0045] Figure 3 A schematic diagram of a model training process shown in an exemplary embodiment of the present application is shown;

[0046] Figure 4 A flowchart of a face quality analysis method provided by an exemplary embodiment of the present application is shown;

[0047] Figure 5 A block diagram of a feature extraction model training device provided by an exemplary embodiment of the present application is shown;

[0048] Figure 6 A block diagram of a feature extraction model training device provided by an exemplary embodiment of the present application is shown;

[0049] Figure 7 A structural block diagram of a computer device shown in an exemplary embodiment of the present application is shown;

[0050] Figure 8 A structural block diagram of a computer device shown in an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0052] The embodiment of the present application provides a solution for judging the quality of a face by training a face quality model based on deep learning. The method is divided into a model training stage and a model application stage. In the model training stage, Figure 1 A flowchart of a feature extraction model training method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device, and the computer device can be implemented as a server or a terminal, such as Figure 1 As shown, the feature extraction model training method may include the following steps:

[0053] Step 110, obtaining a face image library, and determining a quality level label corresponding to each face image sample in the face image library, the quality level label including a first quality level and a second quality level; the first quality level is higher than the second quality level.

[0054] Wherein, each face image in the face image library can be an image obtained by performing face detection on an image containing a face through a face detection model, and saving the detected face part; wherein, the face detection model can include but is not limited to MTCNN (Multi-task Cascaded Convolutional Networks), YOLO (You Only Look Once) model, SSD (Single Shot MultiBox Detector, single point multi-box detection) model, FaceBoxes algorithm. Optionally, in order to ensure robustness, during the face detection process, the computer device can use a variety of different face detection models or algorithms to extract the face area to ensure the diversity of face image acquisition, thereby ensuring the diversity of subsequent face feature extraction.

[0055] The facial image samples of the first quality level may be high-quality facial image samples, and the facial image samples of the second quality level may be low-quality facial image samples. In the embodiment of the present application, when determining the quality of the facial image, the computer device may comprehensively judge the quality of the facial image using human perception indicators and machine indicators to assign a corresponding quality label.

[0056] Step 120, construct multiple triplet samples based on the face image library; each triplet sample is a sample combination composed of any three face image samples.

[0057] In one possible implementation, a computer device may arbitrarily extract three face image samples from a face image library to form a triplet sample. The three face image samples in the triplet sample may be face image samples with the same quality level; or, two face image samples with the same quality level and one face image sample with a different quality level. In this case, each face image sample in the triplet sample may be divided into an anchor sample (anchor), a positive sample (positive) with the same quality level as the anchor, and a negative sample (negative) with a different quality level from the anchor. Schematically, if the triplet sample contains two face image samples with a first quality level and one face image sample with a second quality level, then one of the face image samples with the first quality level may be used as an anchor sample, the other face image sample with the first quality level may be used as a positive sample, and the face image sample with the second quality level may be used as a negative sample.

[0058] Step 130, iteratively train the initial quality feature extraction model based on multiple triple samples until the training completion condition is met to obtain a trained quality feature extraction model; the training completion condition includes: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality.

[0059] By inputting the above-mentioned triplet samples into the quality feature extraction model, the quality feature vectors of each face image sample in the triplet samples are extracted, and the quality distance between each pair is calculated based on the quality feature vectors of each face image sample to train the quality feature extraction model; wherein, the quality distance can be calculated using metrics such as Euclidean distance and cosine similarity.

[0060] During the iterative training process, the quality feature extraction model is continuously iterated and optimized to meet the training completion conditions; wherein, the training goal is to ensure that the quality distance of face image samples of the same quality level is as small as possible, and the quality distance between samples of different quality levels is as large as possible, so that the quality feature extraction model can learn the feature representation that effectively distinguishes the quality of faces, so that the quality feature extraction model obtained when the training completion conditions are met can achieve effective separation of high-quality face images and low-quality face images. Therefore, in an embodiment of the present application, the training completion condition includes that the quality distance between face image samples with the same quality level reaches the minimum, and the quality distance between face image samples with different quality levels reaches the maximum; wherein, in m consecutive iterative training rounds, the quality distance between face image samples with the same quality level shows a decreasing trend, and when the quality distance fluctuation value is less than the first fluctuation threshold, it is determined that the quality distance reaches the minimum; in m consecutive iterative rounds, the quality distance between face image samples with different quality levels shows an increasing trend, and when the quality distance fluctuation value is less than the second fluctuation threshold, it is determined that the quality distance reaches the maximum; m is a positive integer; wherein, the value of m, the first fluctuation threshold and the second fluctuation threshold can be set based on actual needs, and the values ​​of the first fluctuation threshold and the second fluctuation threshold can be the same or different, and the present application does not impose any restrictions on this; the quality distance fluctuation value can be determined by calculating statistics such as standard deviation, variance, range, etc., and the present application does not impose any restrictions on the calculation method of the quality distance fluctuation value.

[0061] After completing the model training, the trained quality feature extraction model can extract the quality feature vector of the received face image during the face quality analysis process to score the face image based on the quality feature vector of the face image.

[0062] In summary, the feature extraction model training method provided in the embodiment of the present application, when training the quality feature extraction model, constructs a triple sample based on a face image library containing different quality levels, extracts the quality feature vector of the face image sample in the triple sample through the quality feature extraction model, and calculates the quality distance between each face image sample based on the quality feature vector, so as to train the quality feature extraction model according to the quality distance between each face image sample, until the quality distance between face image samples with the same quality level reaches the minimum, and the quality distance between face image samples with different quality levels reaches the maximum, the model training is determined to be completed, and the trained quality feature extraction model is obtained; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality. Through the above-mentioned model training method, the quality feature extraction model can learn the general quality features during training, the generalization ability of the quality feature extraction model can be improved, and the extraction accuracy of the quality feature vector can be improved, so as to improve the accuracy of face quality analysis when applied to the face quality analysis scenario.

[0063] Due to the complexity and diversity of facial image quality determination standards, it is difficult to fully and accurately reflect the quality of facial images based on a single image quality indicator; therefore, in the embodiment of the present application, when obtaining the quality grade label corresponding to each facial image sample in the facial image library, the quality grade of the facial image sample can be determined by combining human perception and machine perception. Figure 2 A flowchart of a feature extraction model training method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device, and the computer device can be implemented as a server or a terminal, such as Figure 2 As shown, the feature extraction model training method may include the following steps:

[0064] Step 210, obtaining a face image library.

[0065] In an embodiment of the present application, a computer device can download massive images based on the Internet, and use at least one open source face detection model to perform face detection, and save the face parts to build the face image library.

[0066] Step 220, perform index scoring on each face image sample in the face image library to obtain a perceptual index score corresponding to the perceptual index for each face image sample, and obtain a machine index score corresponding to the machine index for each face image sample; the perceptual index is an index obtained based on the extraction of facial key points in the face image sample; the machine index refers to the image quality parameter of the face image sample.

[0067] Among them, the perception index includes at least one of the following: face angle, spatial distribution of facial features and occlusion; the machine index includes at least one of the following: clarity, contrast, brightness, focal length and illumination.

[0068] When scoring the perceptual index, the computer device can use the face detection model to detect the key points of the face in the face image sample and obtain the position information of the key points of the face; wherein, the key points of the face refer to discrete points with characteristic semantic meanings in a face image, and these points usually correspond to the specific positions of various organs or characteristic parts of the face, such as eyebrows, eyes, corners of eyes, pupils, nose tips, wings of nose, corners of mouth, upper and lower lips, cheek contours, chins, etc. By locating these key points, the geometric structure, expression changes, head posture and other information of the face can be quantitatively described. Indicatively, the face detection model can be the face detection model in the open source computer vision library opencv.

[0069] After acquiring the facial key points in the facial image, the computer device can acquire various perception indicators of the facial image sample based on the position information of the facial key points and score each perception indicator.

[0070] Among them, for the face angle, the computer device can calculate the face angle based on the detected face key points. The face angle usually includes pitch angle, yaw angle, rotation angle, etc. The pitch angle indicates the angle of the face tilting up and down, the yaw angle reflects the angle of the face rotating left and right, and the rotation angle indicates the rolling angle of the left and right sides of the face; these face angles are usually mapped to a virtual three-dimensional coordinate system, corresponding to XYZ three-dimensional coordinates.

[0071] In one possible implementation, when obtaining the score of a face image sample corresponding to a face angle, the score value under each angle type can be obtained separately, and then the score of the face image sample corresponding to the face angle can be obtained by combining the score values ​​under each angle type. For example, the average value of the scores under each angle type is determined as the face angle score, or the weighted average value of the scores under each angle type is determined as the face angle score, and so on.

[0072] For each angle type, a relationship between the detection angle value and the scoring value can be established to obtain the scoring value under the corresponding angle type according to the detection angle value obtained by actual detection; schematically, in a possible implementation method, multiple angle intervals can be set in the computer device, each angle interval corresponds to a different scoring value, and the corresponding scoring value is determined based on the interval in which the detection angle value falls; or, in another possible implementation method, a corresponding angle threshold is set in the computer device corresponding to each angle type, and the face angle threshold is used to indicate the preset ideal angle of the corresponding angle type; the angle difference between the angle detection value and the corresponding angle threshold is calculated, and the scoring value under the corresponding angle type is determined based on the angle difference; schematically, optionally, a basic score can be set in the computer device, and the angle difference is used as a deduction item, and the score corresponding to the angle difference is deducted in proportion. The smaller the difference, the fewer the deductions and the higher the total score; or, optionally, the computer device can use an exponential function to penalize the angle difference. The larger the difference, the faster the score decreases.

[0073] It should be noted that the above-mentioned scoring method is only illustrative, and different scoring methods can be designed and applied based on actual needs, and this application does not limit this.

[0074] For the facial feature space, which can also be called the three-part and five-eye ratio, based on the facial key points in the face image sample, the detection mapping angles between the eyes, nose and mouth are calculated, and the detection mapping angles are compared with the standardized mapping angles to determine whether the facial features in the face image sample conform to the normalized distribution. The perception index is scored based on the comparison results, wherein the comparison results indicate that the greater the gap between the detection mapping angle and the standard mapping angle, the lower the score, and the smaller the gap, the higher the score.

[0075] For occlusion situations, based on the facial key points in the face image samples, it is possible to infer whether there is occlusion in the face image samples, for example, whether the person is wearing glasses or a hat, etc., and score based on whether there is occlusion or the degree of occlusion.

[0076] After obtaining the perceptual index scores corresponding to various perceptual indicators for each face image sample, the index information and perceptual index scores corresponding to each face image sample are stored in a list; further, when storing, they can be sorted based on the perceptual index scores and then stored.

[0077] When performing an indicator scoring of a machine indicator, a computer device may use an image parameter detection model to obtain image quality parameters such as clarity, contrast, brightness, focal length, and illumination of a face image, respectively, and construct a list for each feature, and store the index information corresponding to each face image sample and the score value corresponding to the image quality parameter in the list, wherein the score value corresponding to the image quality parameter may be obtained after normalizing the image quality parameter, or may be determined based on the parameter difference between the image quality parameter and the corresponding standard image quality parameter, wherein the larger the parameter difference, the lower the score value, and the smaller the parameter difference, the larger the score value. The embodiment of the present application does not limit the scoring method; the image parameter extraction model may be an image parameter detection model in the open source computer vision library opencv.

[0078] After obtaining the parameter scores of the facial image samples corresponding to the various image quality parameters, the computer device can determine the average value of the various parameter scores, or the weighted average value, as the machine indicator score of the facial image sample, and store the machine indicator score in association with the index information of the facial image sample.

[0079] Step 230, determining a quality grade label corresponding to each face image sample based on the perceptual index score of each face image sample corresponding to the perceptual index and the machine index score of each face image sample corresponding to the machine index.

[0080] In a possible implementation, the process of determining the quality level label corresponding to each face image sample can be implemented as follows:

[0081] For any target face image sample among the face image samples, when both the perceptual index score and the machine index score indicate that the image quality of the target face image sample is at the first quality level, determining the quality level label of the target face image sample to be the first quality level;

[0082] When at least one of the perceptual index score and the machine index score indicates that the image quality of the target face image sample is at the second quality level, the quality level label of the target face image sample is determined to be the second quality level.

[0083] A perception index scoring threshold and a machine index scoring threshold may be set in the computer device. When the perception index score is higher than the perception index scoring threshold, it indicates that the face image sample is of the first quality level under the evaluation standard of the perception index, that is, a high-quality face image sample; otherwise, it indicates that the face image sample is of the second quality level under the evaluation standard of the perception index, that is, a low-quality face image sample; when the machine index score is higher than the machine index scoring threshold, it indicates that the face image sample is of the first quality level under the evaluation standard of the machine index, that is, a high-quality face image sample; otherwise, it indicates that the face image sample is of the second quality level under the evaluation standard of the machine index, that is, a low-quality face image sample; when determining the quality level of the face image sample, the computer device determines it based on the evaluation standard of the perception index and the evaluation standard of the machine index, that is, when both indicate that the face image sample is a high-quality face image sample, the quality level label of the face image sample is determined to be the first quality level, and when there is at least one of the two indicating that the face image sample is a low-quality face image sample, the quality level label of the face image sample is determined to be the second quality level.

[0084] Furthermore, after determining the quality level of each face image sample, for face image samples with the first quality level, some samples can be selected from them as difficult samples, wherein the difficult samples can be face image samples with a small difference between the perceptual index score and the perceptual index score threshold, and / or a small difference between the machine index score and the machine index score threshold. During the training process, some difficult samples can be added to the model training according to a certain number of iterations to improve the robustness of the quality feature extraction model obtained through training.

[0085] Step 240, construct multiple triplet samples based on the face image library; each triplet sample is a sample combination composed of any three face image samples.

[0086] In a possible implementation, before constructing triplet samples, the computer device may cluster each face image sample based on the similarity between image information, and then construct triplet samples in each sample classification; this process may be implemented as follows:

[0087] Obtaining an image feature vector of each face image sample in the face image library; the image feature vector is used to represent image information in the face image sample;

[0088] Perform image clustering based on the image feature vectors of each face image sample to obtain at least two sample image classes, wherein the similarity between face image samples in the same sample image class is higher than a similarity threshold; and the same sample image class includes face image samples of a first quality level and face image samples of a second quality level;

[0089] At least one triplet sample corresponding to each sample image class is constructed respectively to obtain multiple triplet samples; the three face image samples in the same triplet sample come from the same sample image class.

[0090] Through the above method, similar images can be aggregated into the same sample image class. The division criteria of the sample image class can be set based on actual needs. For example, it can be divided based on the age, gender, occupation, etc. of the person corresponding to the face image. The present application does not impose any restrictions on this. Each sample image class contains multiple corresponding sample images. Then, for each sample image class, multiple corresponding ternary sample groups are constructed. Taking a sample image class as an example, if it contains three or more sample images, ternary samples can be constructed based on the multiple sample images in the sample image class to obtain at least one ternary sample corresponding to the sample image class. The same is true for other sample image classes, and ternary samples within the class are constructed. After processing all sample image classes, multiple ternary samples are obtained.

[0091] In a possible implementation, after obtaining at least two sample image classes, if the number of samples in one sample image class is large, that is, exceeds the sample number threshold, sample pruning can be performed to reduce the number of face image samples in the sample image to reduce the risk of overfitting. If the number of samples in one sample image class is small, that is, less than three, and is not enough to form a triplet sample, the sample image class is eliminated.

[0092] The quality feature extraction model is iteratively trained based on the construction of triplet samples corresponding to each sample image class. This allows the model to focus more on quality features during the training process and reduce the interference of other information on model learning.

[0093] Step 250, iteratively train the initial quality feature extraction model based on multiple triple samples until the training completion condition is met to obtain a trained quality feature extraction model; the training completion condition includes: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality.

[0094] Before inputting the triplet sample into the quality feature extraction model, the triplet sample may be subjected to image preprocessing so that the aspect ratio of the face image sample in the triplet sample meets the required size of the quality feature extraction model. The quality feature extraction model may be constructed based on a deep learning network. Figure 3A schematic diagram of a model training process shown in an exemplary embodiment of the present application is shown, Figure 3 As shown, after acquiring face image samples of different quality levels based on the face image library 310, the constructed triplet sample 320 (taking the triplet sample including positive samples, negative samples and anchor samples as an example) is input into the quality feature extraction model 330, and after acquiring the quality feature vectors of each face image sample in the triplet sample, the model parameters of the quality feature extraction model are updated by calculating the distance between each pair, so that the quality distance between face image samples of the same quality level is as small as possible, and the quality distance between face image samples of different quality levels is as large as possible; when the values ​​of the quality distances output by multiple consecutive triplet samples converge, it is determined that the training completion conditions are met and the model training is completed.

[0095] In summary, the feature extraction model training method provided in the embodiment of the present application, when training the quality feature extraction model, constructs a triple sample based on a face image library containing different quality levels, extracts the quality feature vector of the face image sample in the triple sample through the quality feature extraction model, and calculates the quality distance between each face image sample based on the quality feature vector, so as to train the quality feature extraction model according to the quality distance between each face image sample, until the quality distance between face image samples with the same quality level reaches the minimum, and the quality distance between face image samples with different quality levels reaches the maximum, the model training is determined to be completed, and the trained quality feature extraction model is obtained; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality. Through the above-mentioned model training method, the quality feature extraction model can learn the general quality features during training, the generalization ability of the quality feature extraction model can be improved, and the extraction accuracy of the quality feature vector can be improved, so as to improve the accuracy of face quality analysis when applied to the face quality analysis scenario.

[0096] In addition, when determining the quality grade label of face image samples, the computer equipment determines the quality grade by combining perception indicators and machine indicators, which can achieve the complementarity of quality information, thereby improving the accuracy of quality grade determination, and further improving the generalization ability and robustness of the quality feature extraction model obtained based on this training.

[0097] In the model application stage, based on Figure 1 or Figure 2The quality feature extraction model shown can be used in the face quality analysis process; wherein, the model training device in the model training phase and the face quality analysis device in the model application phase can be the same computer device, or, can also be different computer devices. When the two are different computer devices, after the model training is completed, the trained quality feature extraction model can be deployed to the face quality analysis device.

[0098] Figure 4 A flowchart of a face quality analysis method provided by an exemplary embodiment of the present application is shown. The method can be executed by a computer device, and the computer device can be implemented as a server or a terminal, such as Figure 4 As shown, the face quality analysis method may include the following steps:

[0099] Step 410: Receive a target facial image to be analyzed.

[0100] Step 420, extracting the quality feature vector of the target facial image based on the quality feature extraction model; the quality feature extraction model is iteratively trained based on multiple triple samples constructed based on the facial image library, and is obtained after satisfying the training completion condition; the training completion condition includes: the quality distance between facial image samples with the same quality level is minimized, and the quality distance between facial image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the facial image sample extracted by the quality feature extraction model; each facial image sample in the facial image library has a corresponding quality level label, and the quality level label includes a first quality level and a second quality level, and the first quality level is higher than the second quality level.

[0101] Step 430: Determine a face quality score of the target face image based on the quality feature vector of the target face image. The face quality score is used to characterize the quality level of the target face image.

[0102] In a possible implementation, a computer device may include a mapping relationship between a face quality score and a quality level, so as to determine the quality level of the target face image after obtaining the face quality score of the target face image based on the mapping relationship. In an illustrative example, each quality level may have a corresponding score range, and the corresponding quality level is determined based on the score range to which the face quality score of the target face image belongs.

[0103] In one possible implementation, the computer device can add an additional fully connected layer and activation function after the quality feature extraction model, and after inputting the quality feature vector of the target face image into the fully connected layer and the activation function, obtain the face quality score of the target face image.

[0104] In another possible implementation, the computer device may extract quality features of each face image sample in the face image library in advance through the quality feature extraction model, and store the index of the face image sample and the corresponding quality feature vector. After obtaining the quality feature vector of the target face image to be analyzed, the face image samples are screened through the similarity between the quality feature vectors, and the face quality score of the target face image is determined based on the perceptual index score and the machine index score of the screened face image samples. This process can be implemented as follows:

[0105] Based on the quality feature vector of the target face image and the quality feature vector of each face image sample in the face image library, the quality similarity between the target face image and each face image sample in the face image library is calculated;

[0106] The face quality score of the target face image is determined based on the perceptual index scores and machine index scores of the first N face image samples with the highest quality similarity to the target face image in the face image library, where N is a positive integer.

[0107] Among them, when performing similarity calculation, the computer device can perform similarity calculation through similarity calculation methods such as Euclidean distance, Manhattan distance, cosine similarity, etc., and the quality similarity between the target face image and each face image sample can be expressed in the form of a similarity matrix.

[0108] When determining the face quality score of a target face image, in one possible implementation, a computer device may determine the perceptual index scores of the top N face image samples in a face image library with the highest quality similarity to the target face image and the median or mode of the machine index scores as the face quality score of the target face image.

[0109] In another possible implementation, the computer device may determine the face quality score of the target face image by averaging the perceptual index scores of the top N face image samples in the face image library with the highest quality similarity to the target face image and the machine index scores.

[0110] Optionally, when performing averaging, different weights can be set for the perception index score and the machine index score based on different actual needs, so that the averaging result after weighted averaging is determined as the face quality score of the target face image.

[0111] And / or, optionally, when performing averaging, different weights can be set for the scores of each facial image sample based on the degree of similarity, wherein the higher the similarity, the higher the corresponding weight value, so that the weighted averaging result after averaging is determined as the facial quality score of the target facial image.

[0112] In summary, the face quality analysis method provided in the embodiment of the present application utilizes a quality feature extraction model obtained by iterative training of each triplet sample constructed based on a face image library to extract quality features of the received target face image to be analyzed, and determines the corresponding face quality score based on the extracted quality feature vector of the target face image; the face quality score is used to characterize the quality level of the target face image; because the quality feature extraction model can achieve the training completion conditions that the quality distance between face image samples with the same quality level is minimized and the quality distance between face image samples with different quality levels is maximized, the quality feature vector extracted based on the quality feature extraction model has a high accuracy, thereby improving the accuracy of quality scoring based on the quality feature vector.

[0113] Figure 5 A block diagram of a feature extraction model training device provided by an exemplary embodiment of the present application is shown. The device can be used to perform the following steps: Figure 1 or Figure 2 All or part of the steps of the feature extraction model training method shown in the embodiment, such as Figure 5 As shown, the device comprises:

[0114] The acquisition module 510 is used to acquire a face image library and determine a quality level label corresponding to each face image sample in the face image library, wherein the quality level label includes a first quality level and a second quality level; the first quality level is higher than the second quality level;

[0115] A sample construction module 520 constructs a plurality of triplet samples based on the face image library; each triplet sample is a sample combination consisting of any three face image samples;

[0116] The model training module 530 is used to iteratively train the initial quality feature extraction model based on the multiple triplet samples until the training completion conditions are met to obtain the trained quality feature extraction model; the training completion conditions include: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality.

[0117] In a possible implementation, the acquisition module includes:

[0118] An index scoring submodule is used to perform index scoring on each face image sample in the face image library to obtain a perceptual index score of each face image sample corresponding to a perceptual index, and to obtain a machine index score of each face image sample corresponding to a machine index; the perceptual index is an index obtained by extracting facial key points from the face image sample; the machine index refers to an image quality parameter of the face image sample;

[0119] The label determination submodule is used to determine the quality level label corresponding to each face image sample based on the perceptual indicator score of each face image sample corresponding to the perceptual indicator and the machine indicator score of each face image sample corresponding to the machine indicator.

[0120] In a possible implementation, the tag determination submodule is used to:

[0121] For any target face image sample among the face image samples, when both the perceptual index score and the machine index score indicate that the image quality of the target face image sample is at the first quality level, determining that the quality level label of the target face image sample is at the first quality level;

[0122] When at least one of the perceptual index score and the machine index score indicates that the image quality of the target face image sample is at the second quality level, the quality level label of the target face image sample is determined to be the second quality level.

[0123] In a possible implementation, the perception index includes at least one of the following: face angle, spatial distribution of facial features and occlusion; the machine index includes at least one of the following: clarity, contrast, brightness, focal length and illumination.

[0124] In a possible implementation, the sample construction module 520 is used to:

[0125] Obtaining an image feature vector of each face image sample in the face image library; the image feature vector is used to characterize image information in the face image sample;

[0126] Perform image clustering based on the image feature vectors of each face image sample to obtain at least two sample image classes, wherein the similarity between face image samples in the same sample image class is higher than a similarity threshold; and the same sample image class includes face image samples of a first quality level and face image samples of a second quality level;

[0127] At least one triplet sample corresponding to each sample image class is constructed respectively to obtain the multiple triplet samples; the three face image samples in the same triplet sample are derived from the same sample image class.

[0128] In summary, the feature extraction model training device provided in the embodiment of the present application, when training the quality feature extraction model, constructs a triple sample based on a face image library containing different quality levels, extracts the quality feature vector of the face image sample in the triple sample through the quality feature extraction model, and calculates the quality distance between each face image sample based on the quality feature vector, so as to train the quality feature extraction model according to the quality distance between each face image sample, until the quality distance between face image samples with the same quality level reaches the minimum, and the quality distance between face image samples with different quality levels reaches the maximum, the model training is determined to be completed, and the trained quality feature extraction model is obtained, and the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality. In this way, the quality feature extraction model learns the general quality features during training, which can improve the generalization ability of the quality feature extraction model, improve the extraction accuracy of the quality feature vector, and thus improve the accuracy of face quality analysis when applied to the face quality analysis scenario.

[0129] Figure 6 A block diagram of a feature extraction model training device provided by an exemplary embodiment of the present application is shown. The device can be used to perform the following steps: Figure 4 All or part of the steps of the face quality analysis method shown in the embodiment, such as Figure 6 As shown, the device comprises:

[0130] An image receiving module 610 is used to receive a target face image to be analyzed;

[0131] The feature extraction module 620 is used to extract the quality feature vector of the target face image based on the quality feature extraction model; the quality feature extraction model is iteratively trained based on multiple triple samples constructed based on the face image library, and is obtained after the training completion condition is met, and the training completion condition includes: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; each face image sample in the face image library has a corresponding quality level label, and the quality level label includes a first quality level and a second quality level, and the first quality level is higher than the second quality level;

[0132] The quality scoring module 630 is used to determine a face quality score of the target face image based on the quality feature vector of the target face image, where the face quality score is used to characterize the quality level of the target face image.

[0133] In a possible implementation, the quality scoring module 630 includes:

[0134] A similarity calculation submodule, used to calculate the quality similarity between the target face image and each face image sample in the face image library based on the quality feature vector of the target face image and the quality feature vector of each face image sample in the face image library;

[0135] The quality scoring submodule is used to determine the face quality score of the target face image based on the perceptual index scores and machine index scores of the first N face image samples with the highest quality similarity to the target face image in the face image library, where N is a positive integer.

[0136] In one possible implementation, the quality scoring submodule is used to determine the face quality score of the target face image by averaging the perceptual index scores and machine index scores of the top N face image samples with the highest quality similarity to the target face image in the face image library.

[0137] In summary, the face quality analysis device provided in the embodiment of the present application uses a quality feature extraction model obtained by iterative training of each triplet sample constructed based on a face image library to extract quality features of the received target face image to be analyzed, and determines the corresponding face quality score based on the extracted quality feature vector of the target face image, and the face quality score is used to characterize the quality level of the target face image; because the quality feature extraction model can achieve the training completion conditions that the quality distance between face image samples with the same quality level is as small as possible, and the quality distance between face image samples with different quality levels is as large as possible, the quality feature vector extracted based on the quality feature extraction model has a high accuracy, thereby improving the accuracy of quality scoring based on the quality feature vector.

[0138] Figure 7 The structural block diagram of a computer device 700 shown in an exemplary embodiment of the present application is shown. The computer device can be implemented as a virtual platform or a container cloud platform in the above-mentioned scheme of the present application. The computer device 700 includes a central processing unit (CPU) 701, a system memory 704 including a random access memory (RAM) 702 and a read-only memory (ROM) 703, and a system bus 705 connecting the system memory 704 and the central processing unit 701. The computer device 700 also includes a mass storage device 706 for storing an operating system 709, an application 710 and other program modules 711.

[0139] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM) flash memory or other solid-state storage technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassette, tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 704 and mass storage device 706 can be collectively referred to as memory.

[0140] According to various embodiments of the present disclosure, the computer device 700 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 700 can be connected to the network 708 through the network interface unit 707 connected to the system bus 705, or the network interface unit 707 can be used to connect to other types of networks or remote computer systems (not shown).

[0141] The memory also includes at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is stored in the memory. The central processing unit 701 implements the feature extraction model training method shown in the above-mentioned embodiments, and / or all or part of the steps in the face quality analysis method by executing the at least one instruction, at least one program, code set or instruction set.

[0142] Figure 8 The following is a block diagram of a computer device 800 according to an exemplary embodiment of the present application. The computer device 800 may be implemented as the container caller or task distributor described above, such as a smart phone, a tablet computer, a laptop computer, a desktop computer, etc. The computer device 800 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names.

[0143] Typically, the computer device 800 includes a processor 801 and a memory 802 .

[0144] In some embodiments, the computer device 800 may further optionally include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807 and a power supply 808.

[0145] In some embodiments, the computer device 800 further includes one or more sensors 809 , including but not limited to: an acceleration sensor 810 , a gyroscope sensor 811 , a pressure sensor 812 , an optical sensor 813 , and a proximity sensor 814 .

[0146] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the computer device 800, and the computer device 800 may include more or less components than those shown in the figure, or combine some components, or adopt a different arrangement of components.

[0147] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one computer program is stored, and the computer program is loaded and executed by a processor to implement the above-mentioned feature extraction model training method and / or all or part of the steps in the face quality analysis method. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0148] In an exemplary embodiment, a computer program product is also provided, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer is executed to implement the above Figure 1 or Figure 2 All or part of the steps of the feature extraction model training method shown, and / or Figure 4 All or part of the steps of the face quality analysis method shown.

[0149] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.

[0150] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A feature extraction model training method, It is characterized in that The method comprises: Acquire a face image library, and determine a quality level label corresponding to each face image sample in the face image library, wherein the quality level label includes a first quality level and a second quality level; the first quality level is higher than the second quality level; Constructing a plurality of triplet samples based on the face image library; each triplet sample is a sample combination consisting of any three face image samples; The initial quality feature extraction model is iteratively trained based on the multiple triplet samples until the training completion conditions are met to obtain a trained quality feature extraction model; the training completion conditions include: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality.

2. The method according to claim 1, It is characterized in that The step of determining a quality level label corresponding to each face image sample in the face image library comprises: Performing index scoring on each face image sample in the face image library to obtain a perceptual index score of each face image sample corresponding to a perceptual index, and obtaining a machine index score of each face image sample corresponding to a machine index; the perceptual index is an index obtained by extracting facial key points from the face image sample; the machine index refers to an image quality parameter of the face image sample; The quality grade label corresponding to each face image sample is determined based on the perceptual index score of each face image sample corresponding to the perceptual index and the machine index score of each face image sample corresponding to the machine index.

3. The method according to claim 2, It is characterized in that The determining the quality grade label corresponding to each face image sample based on the perceptual index score of each face image sample corresponding to the perceptual index and the machine index score of each face image sample corresponding to the machine index comprises: For any target face image sample among the face image samples, when both the perceptual index score and the machine index score indicate that the image quality of the target face image sample is at the first quality level, determining that the quality level label of the target face image sample is at the first quality level; When at least one of the perceptual index score and the machine index score indicates that the image quality of the target face image sample is at the second quality level, the quality level label of the target face image sample is determined to be the second quality level.

4. The method according to claim 2, It is characterized in that The perception index includes at least one of the following: face angle, spatial distribution of facial features and occlusion; the machine index includes at least one of the following: clarity, contrast, brightness, focal length and illumination.

5. The method according to claim 1, It is characterized in that The step of constructing a plurality of triple samples based on the face image library comprises: Obtaining an image feature vector of each face image sample in the face image library; the image feature vector is used to characterize image information in the face image sample; Perform image clustering based on the image feature vectors of each face image sample to obtain at least two sample image classes, wherein the similarity between face image samples in the same sample image class is higher than a similarity threshold; and the same sample image class includes face image samples of a first quality level and face image samples of a second quality level; At least one triplet sample corresponding to each sample image class is constructed respectively to obtain the multiple triplet samples; the three face image samples in the same triplet sample are from the same sample image class.

6. A face quality analysis method, It is characterized in that The method comprises: Receiving a target face image to be analyzed; The quality feature vector of the target face image is extracted based on a quality feature extraction model; the quality feature extraction model is iteratively trained based on multiple triple samples constructed based on a face image library and is obtained after satisfying a training completion condition; the training completion condition includes: the quality between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; each face image sample in the face image library has a corresponding quality level label, and the quality level label includes a first quality level and a second quality level, and the first quality level is higher than the second quality level; Based on the quality feature vector of the target facial image, a face quality score of the target facial image is determined, where the face quality score is used to characterize the quality level of the target facial image.

7. The method according to claim 6, It is characterized in that The step of determining the face quality score of the target face image based on the quality feature vector of the target face image comprises: Calculating the quality similarity between the target face image and each face image sample in the face image library based on the quality feature vector of the target face image and the quality feature vector of each face image sample in the face image library; The face quality score of the target face image is determined based on the perceptual index scores and machine index scores of the first N face image samples in the face image library with the highest quality similarity to the target face image, where N is a positive integer.

8. The method according to claim 7, It is characterized in that The determining the face quality score of the target face image based on the perceptual index scores and machine index scores of the top N face image samples with the highest quality similarity to the target face image in the face image library comprises: The perceptual index scores and machine index scores of the top N human face image samples with the highest quality similarity to the target human face image in the human face image library are averaged to determine the human face quality score of the target human face image.

9. A feature extraction model training device, It is characterized in that The device comprises: an acquisition module, configured to acquire a face image library, and determine a quality level label corresponding to each face image sample in the face image library, wherein the quality level label includes a first quality level and a second quality level; the first quality level is higher than the second quality level; A sample construction module, constructing a plurality of triple samples based on the face image library; each triple sample is a sample combination consisting of any three face image samples; A model training module is used to iteratively train the initial quality feature extraction model based on the multiple triplet samples until the training completion conditions are met to obtain the trained quality feature extraction model; the training completion conditions include: the quality distance between face image samples with the same quality level is minimized, and the quality distance between face image samples with different quality levels is maximized; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; the trained quality feature extraction model is used to extract the quality feature vector of the face image to analyze the face quality.

10. A face quality analysis device, It is characterized in that The device comprises: An image receiving module, used for receiving a target face image to be analyzed; A feature extraction module, for extracting a quality feature vector of the target face image based on a quality feature extraction model; the quality feature extraction model is iteratively trained based on a plurality of triplet samples constructed based on a face image library and is obtained after satisfying a training completion condition, wherein the training completion condition includes: the quality distance between face image samples with the same quality level reaches a minimum, and the quality distance between face image samples with different quality levels reaches a maximum; the quality distance is determined based on the quality feature vector of the face image sample extracted by the quality feature extraction model; each face image sample in the face image library has a corresponding quality level label, wherein the quality level label includes a first quality level and a second quality level, and the first quality level is higher than the second quality level; The quality scoring module is used to determine the face quality score of the target face image based on the quality feature vector of the target face image, and the face quality score is used to characterize the quality level of the target face image.

11. A computer device, It is characterized in that The computer device includes a processor and a memory, the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the feature extraction model training method as described in any one of claims 1 to 5, and / or the face quality analysis method as described in any one of claims 6 to 8.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the feature extraction model training method as described in any one of claims 1 to 5, and / or the face quality analysis method as described in any one of claims 6 to 8.