Face image quality assessment method, device, electronic device and storage medium
By counting the saliency map and key point areas of the face image, combined with contrast, brightness and blur, the problem of failing to accurately evaluate the quality of the face image in the existing technology is solved, and a more in line with human visual experience is achieved. Evaluate the results.
Patent Information
- Application Number
- CN202210577984.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-05-25
AI Technical Summary
The existing technology fails to comprehensively consider factors such as contrast, brightness, and blur in face image quality assessment, resulting in the inability to accurately obtain quality assessment results that conform to human visual perception.
By obtaining the saliency map and key point areas of the face image, using a preset statistical model to perform statistics, and combining the ratio of the standard deviation and the average value of the saliency map to calculate the saliency of the face key point area, taking into account contrast, brightness degree and blur, to obtain a face quality score.
The face image quality assessment result is realized to be more in line with human visual experience, improving the accuracy and efficiency of assessment.
Smart Images

Figure CN114881995B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and more specifically, to a method, device, electronic device and storage medium for evaluating the quality of facial images. Background Art
[0002] In order to obtain an image containing a face object, the quality of the face image may be evaluated, thereby determining whether the image contains a face object and the quality of the face object according to the image quality evaluation result.
[0003] The current method for evaluating the quality of facial images is to use the scores of facial images and manual calibration to directly output the facial image quality evaluation score. However, the manual calibration process is very time-consuming and laborious, so it is necessary to use machines to evaluate the quality of facial images to improve efficiency. However, the current machine calibration method does not comprehensively consider factors such as contrast, brightness, blur, etc., so it is impossible or difficult to obtain a quality evaluation that conforms to human visual perception. Summary of the invention
[0004] In order to overcome at least one of the defects of the prior art, the present invention provides a method, device, electronic device and storage medium for evaluating the quality of a face image. The technical solution adopted by the present invention is as follows.
[0005] In a first aspect, the present invention provides a method for assessing the quality of a facial image, comprising the steps of:
[0006] Acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image;
[0007] By using a preset statistical model, statistics are respectively performed on the saliency map and the facial key point area in the saliency map to obtain a first statistical result and a second statistical result;
[0008] A first face quality score is obtained based on the first statistical result and the second statistical result.
[0009] In one implementation, the preset statistical model is to sum the values of the pixels whose values are greater than a preset threshold.
[0010] In one embodiment, the preset statistical model calculates energy values through an energy function.
[0011] In one implementation, the process of obtaining a first face quality score based on the first statistical result and the second statistical result comprises the steps of:
[0012] A first face quality score is obtained based on a ratio between the second statistical result and the first statistical result.
[0013] In one implementation, the process of obtaining a first face quality score based on the first statistical result and the second statistical result comprises the steps of:
[0014] Obtaining statistical results of each facial key point area in the second statistical results;
[0015] Based on the statistical results of each facial key point area, calculating the statistical variance of the facial key point area;
[0016] A first face quality score is obtained based on a ratio of a difference between the second statistical result and the statistical variance to the first statistical result.
[0017] In one implementation, the process of obtaining the first face quality score based on the first statistical result and the second statistical result is also based on the ratio between the standard deviation and the average value of the saliency map.
[0018] In one embodiment, the steps are further included:
[0019] Obtaining a face detection confidence score for a face image to be evaluated;
[0020] A second face quality score is obtained based on the first face quality score and the face detection confidence score.
[0021] In a second aspect, the present invention provides a facial image quality assessment device, comprising:
[0022] An acquisition module, used to acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image;
[0023] A statistical module, used to perform statistics on the saliency map and the facial key point area in the saliency map respectively through a preset statistical model to obtain a first statistical result and a second statistical result;
[0024] An evaluation module is used to obtain a first face quality score based on the first statistical result and the second statistical result.
[0025] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods when executing the program.
[0026] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the method of any of the above-mentioned embodiments when the program is executed by a processor.
[0027] In the present invention, in view of the fact that the features of the facial features in the facial image are more obvious than those in other areas, the saliency map and facial key point area of the facial image are obtained, and the whole facial image and the facial key point area are statistically analyzed on the saliency map using a preset statistical model. The saliency of the facial key point area in the facial image is determined by the statistical results, thereby obtaining a facial quality score for face evaluation. The present invention can comprehensively consider factors such as contrast, brightness, blur, etc., and the evaluation result is more in line with human visual perception. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a flow chart of the first embodiment.
[0029] Figure 2 It is a schematic diagram of the key point area of the face.
[0030] Figure 3 is a schematic diagram of a saliency map.
[0031] Figure 4 It is a schematic diagram of the facial key point area on the saliency map.
[0032] Figure 5 It is a structural diagram of the second embodiment. DETAILED DESCRIPTION
[0033] The exemplary embodiments disclosed in the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0034] It should be noted that the terms "first\second\..." involved in the embodiments of the present invention are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\..." can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\..." can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0035] Embodiment 1
[0036] See also Figure 1 , Figure 1 1 is a flow chart of a method for assessing the quality of a face image provided in the first embodiment of the present invention, the method comprising step S110, step S120, and step S130. It should be noted that step S110, step S120, and step S130 are merely reference numerals for the purpose of clearly explaining the embodiment and the appendix. Figure 1 The corresponding relationship does not represent a limitation on the order of the steps of the method in this embodiment.
[0037] Step S110, obtaining a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image.
[0038] Facial image evaluation is a preparation for subsequent face recognition and analysis, and facial landmark detection is a key step in the field of face recognition and analysis. This method is based on the above principle, and the quality of the face image to be evaluated is obtained by evaluating the facial landmark area obtained from the facial landmark. The facial key points of the face image can be obtained through a pre-trained face detection model, and the facial key point area is centered on the facial key point, and the key point area is expanded according to the preset area width and height. Generally speaking, if Figure 2 As shown, the facial key point area can generally include: eyes, nose and left and right corners of the mouth, a total of 5 key points, corresponding to 5 facial key point areas. After the previous processing, the face image generates the facial key point area. In this step, the facial key point area of the face image to be evaluated is obtained.
[0039] In addition to obtaining the facial key point area, it is also necessary to obtain the saliency map obtained after the face image to be evaluated has been saliency detected, such as Figure 3 As shown in the figure. The essence of salient region detection is a visual attention model (VAM). VAM obtains the most noticeable part of the image based on the visual attention mechanism, and uses a grayscale image to mark its saliency. The grayscale value of the grayscale image corresponds to saliency from small to large from low to high. The goal of image salient region detection is to quickly judge the salient region in the image on the computer like the human eye. It can be widely used in target recognition, image editing, image retrieval and other fields. Common saliency algorithms include: Itti algorithm, residual spectrum (SR) algorithm, FT (Frequency-tuned) algorithm, HC (Histogram-based Contrast) algorithm, CA (Context-Aware) algorithm and GR (Graph-Regularized) algorithm. Generally, the value of each pixel on the saliency map will be normalized to a function between 0 and 1.
[0040] Taking the SR algorithm as an example, in the SR algorithm, the frequency domain log amplitude spectrum of the image is subtracted from the average log amplitude spectrum to obtain the log amplitude spectrum of the significant area. The log amplitude spectrum result of the significant area is subjected to exponential operation, inverse Fourier transform and Gaussian filtering to obtain the final saliency map.
[0041] It should be noted here that there is a certain correspondence between the algorithm of the saliency map and the selection of facial key points. Those skilled in the art can select a reasonable combination of the algorithm of the saliency map and the facial key points according to actual conditions.
[0042] In one embodiment, the saliency map of the face image is obtained by a residual spectrum (SR) algorithm. Figure 3 As shown, Figure 3 It is the saliency map obtained by the residual spectrum (SR) algorithm. The physical meaning of the saliency map obtained by the SR method is the difference between the original image and the background image, which means that the difference result is the foreground image, a weight map about each pixel belonging to the foreground. The larger the value, the greater the probability of belonging to the foreground. Therefore, the face part in the image and the more salient area in the face part (such as the face key point area) can be better separated.
[0043] Step S120: performing statistics on the saliency map and the facial key point region in the saliency map respectively through a preset statistical model to obtain a first statistical result and a second statistical result.
[0044] like Figure 4 As shown, Figure 4 The middle image is Figure 3 The salient map in Figure 4 The image on the right is based on Figure 2 The facial key point area in the saliency map is the facial key point area framed on the saliency map, and the framed area is the facial key point area in the saliency map. The saliency map is statistically analyzed by a preset statistical model to obtain a first statistical result, and the facial key point area in the saliency map is statistically analyzed to obtain a second statistical result.
[0045] For the statistical model, statistics may be performed on entropy information, statistics may be performed on energy values, or directly the number of pixel points whose values are greater than a preset threshold may be counted.
[0046] In one implementation, the preset statistical model is to sum the values of the pixels whose values are greater than a preset threshold.
[0047] Assuming that the width of the entire face image is W and the height is H, and S(i,j) is the value of the pixel point that is greater than the preset threshold, then the first statistical result S is as follows:
[0048]
[0049] Assume that in the face area, the width of the left eye area is w1 and the height is h2, the width of the right eye area is w2 and the height is h2, the width of the nose area is w3 and the height is h3, the width of the left corner of the mouth area is w4 and the height is h4, the width of the right corner of the mouth area is w5 and the height is h5, and S(i, j) is the value of the pixel point greater than the preset threshold, then the second statistical result Slandmark as follows:
[0050]
[0051] The direct summation method is used for statistics, which is simple and can intuitively obtain the significant figures in the saliency map.
[0052] In one embodiment, the preset statistical model calculates energy values through an energy function.
[0053] Assuming that the width of the entire face image is W and the height is H, and S(i,j) is the value of the pixel on the saliency map, then the first statistical result S of the global energy value is as follows:
[0054]
[0055] Assume that in the face area, the width of the left eye area is w1 and the height is h2, the width of the right eye area is w2 and the height is h2, the width of the nose area is w3 and the height is h3, the width of the left corner of the mouth area is w4 and the height is h4, the width of the right corner of the mouth area is w5 and the height is h5, S(i,j) is the value of the pixel point on the saliency map, then the second statistical result S landmark as follows:
[0056]
[0057] Step S130: obtaining a first face quality score based on the first statistical result and the second statistical result.
[0058] The commonly used general image quality assessment method does not take into account the characteristics of the usage scenario, and it cannot make a good judgment on the quality of the face if used directly. According to the characteristics of the face image, except for the facial features, the other areas of the face image are skin areas without obvious features, with similar colors and less pixel mutation. Therefore, when dealing with changes in lighting conditions, image clarity, etc., it is necessary to focus on the characteristic information of the facial features. Since the meaning of the saliency feature map is: the degree of difference between the image pixels and the surrounding pixels, the significance of the face key point area in the entire face image can be known through the size relationship between the first statistical result and the second statistical result. The smaller the difference between the first statistical result and the second statistical result, the more significant the face key point area is in the face image. Therefore, this step can obtain the first face quality score based on the first statistical result and the second statistical result.
[0059] In one implementation, the process of step S130 includes step S131.
[0060] Step S131, obtaining a first face quality score based on the ratio of the second statistical result to the first statistical result.
[0061] Based on the proportion Q1 of the second statistical result in the first statistical result, Q1=S landmark / S, get the face quality score.
[0062] As mentioned above, the smaller the difference between the first statistical result and the second statistical result, the more prominent the facial key point area is in the facial image. By using the proportion method, it can be seen that the more prominent the facial key point area is in the facial image.
[0063] It should be noted here that after obtaining Q1, Q1 can be directly used as the face quality score, or a function mapping (such as normalization) can be performed on Q1, and the result of the function mapping can be used as the face quality score, or new parameters can be introduced on the basis of Q1 to obtain the face quality score.
[0064] In one implementation, the process of step S130 includes: step S132, step S133, and step S134.
[0065] Step S132, obtaining the statistical results of each facial key point area in the second statistical results;
[0066] Step S133, calculating the statistical variance of the facial key point regions based on the statistical results of the facial key point regions;
[0067] Step S134: Obtain a first face quality score based on a ratio of a difference between the second statistical result and the statistical variance to the first statistical result.
[0068] Usually, the significance of the five facial feature point regions is comparable, and the statistical variance S of the five region values is introduced. Var , and as a penalty term, it can alleviate the interference caused by the asymmetry of the left and right face lighting. When the face lighting is balanced, the values of the five areas are close and the offset value is small; when the light is irradiated from one side, the value of the bright area is larger, and the value of the bright area is smaller, the numerical offset value becomes larger, and when the total value is subtracted from the offset value, the score for this situation will be reduced. At this time, the relationship between the ratio of the second statistical result to the first statistical result and the statistical variance Q1' is as follows:
[0069] Q1'=(S landmark -S Var ) / S
[0070] Similar to the previous implementation, a face quality score can be obtained based on Q1'.
[0071] In this method, the facial features of the facial image are more obvious than other areas, and the saliency map and facial key point area of the facial image are obtained. The preset statistical model is used to perform statistics on the overall facial image and the facial key point area on the saliency map. The degree of saliency of the facial key point area in the facial image is determined through the statistical results, thereby obtaining a facial quality score for face evaluation. This evaluation method can comprehensively consider factors such as contrast, brightness, and blur, and the evaluation results are more in line with human visual perception.
[0072] In one embodiment, the process of step S130 is further based on the ratio between the standard deviation and the mean value of the saliency map.
[0073] Calculate the mean s_mean and standard deviation s_std of the saliency map, and calculate their ratio, i.e., s_std / s_mean. The standard deviation of the saliency map reflects the difference between the value of each point and the average value. If the standard deviation is large, the value change in the image is relatively large, which reflects that there are many details in the image, and the image can be considered clearer; if the standard deviation is small, the value change in the image is relatively small, and the value of each point is close to the average value, then the image can be considered blurry. Exclude the influence of the image content on the statistical value, divide the standard deviation by the mean, and normalize the deviation value of the image to around 0.
[0074] As for the use of the ratio between the standard deviation and the average value, adding or multiplying the ratio between the standard deviation and the average value with the ratio of the previous two implementations can provide global feature information of the image for the statistical value, because the ratio between the standard deviation and the average value is a positive number and does not change the trend of the result. However, in experimental tests, it is found that the effect of addition is particularly obvious. Taking the previous implementation as an example, at this time, Q1'=(S landmark -S Var ) / S+(s_std / s_mean).
[0075] In one implementation, the facial image quality assessment method further includes step S140 and step S150.
[0076] Step S140, obtaining a face detection confidence score of the face image to be evaluated;
[0077] Step S150: Obtain a second face quality score based on the first face quality score and the face detection confidence score.
[0078] The face detection confidence score is also an effective means of evaluating the quality of face images. Like the face key points, it can also be obtained through a pre-trained face detection model. Generally, the face detection confidence score ranges from [0,1]. In this implementation, the face detection confidence score is introduced and used in conjunction with the first face quality score obtained previously to obtain a second face quality score, which can better reflect the result of the quality assessment.
[0079] Specifically, the first face quality score may be multiplied by the face detection confidence score to make it one of the parameters in the function, and the second face quality score may be obtained based on the parameter.
[0080] Embodiment 2
[0081] Corresponding to the method of embodiment 1, as Figure 5 As shown, the present invention further provides a facial image quality assessment device 5, comprising: an acquisition module 501, a processing module 502 and an execution module 503.
[0082] An acquisition module 501 is used to acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image;
[0083] A statistical module 502 is used to perform statistics on the saliency map and the facial key point area in the saliency map respectively through a preset statistical model to obtain a first statistical result and a second statistical result;
[0084] The evaluation module 503 is used to obtain a first face quality score based on the first statistical result and the second statistical result.
[0085] In one implementation, the preset statistical model is to sum the values of the pixels whose values are greater than a preset threshold.
[0086] In one embodiment, the preset statistical model calculates energy values through an energy function.
[0087] In one implementation, the process of obtaining a first face quality score based on the first statistical result and the second statistical result comprises the steps of:
[0088] A first face quality score is obtained based on a ratio between the second statistical result and the first statistical result.
[0089] In one implementation, the process of obtaining a first face quality score based on the first statistical result and the second statistical result comprises the steps of:
[0090] Obtaining statistical results of each facial key point area in the second statistical results;
[0091] Based on the statistical results of each facial key point area, calculating the statistical variance of the facial key point area;
[0092] A first face quality score is obtained based on a ratio of a difference between the second statistical result and the statistical variance to the first statistical result.
[0093] In one implementation, the evaluation module further obtains the first face quality score based on a ratio between a standard deviation and an average value of the saliency map.
[0094] In one embodiment, the evaluation module is further used to obtain a face detection confidence score of the face image to be evaluated, and obtain a second face quality score based on the first face quality score and the face detection confidence score.
[0095] In this device, the facial features of the facial image are more obvious than other areas, and the saliency map and facial key point area of the facial image are obtained. The preset statistical model is used to perform statistics on the overall facial image and the facial key point area on the saliency map. The degree of saliency of the facial key point area in the facial image is judged through the statistical results, thereby obtaining a facial quality score for face evaluation. This evaluation device can comprehensively consider factors such as contrast, brightness, and blur, and the evaluation results are more in line with human visual perception.
[0096] Embodiment 3
[0097] An embodiment of the present invention further provides a storage medium on which computer instructions are stored. When the instructions are executed by a processor, the method for assessing the quality of facial images of any of the above embodiments is implemented.
[0098] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, random access memories (RAM), read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0099] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.
[0100] Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, which includes a memory, an encoder, and a computer program stored in the memory and runnable on the encoder, wherein when the encoder executes the program, it implements any one of the facial image quality assessment methods in the above-mentioned embodiments.
[0101] The computer device, in view of the fact that the facial features in the facial image are more obvious than those in other areas, obtains the saliency map and facial key point area of the facial image, uses a preset statistical model to perform statistics on the overall facial image and the facial key point area on the saliency map, and judges the saliency of the facial key point area in the facial image through the statistical results, thereby obtaining a facial quality score for face evaluation. The computer device can comprehensively consider factors such as contrast, brightness, blur, etc., and the evaluation results are more in line with human visual perception.
[0102] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0103] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for assessing the quality of a face image, characterized in that: Includes steps: Acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image; Through a preset statistical model, statistics are respectively performed on the saliency map and the facial key point area in the saliency map to obtain a first statistical result and a second statistical result; wherein the preset statistical model is to sum the values of pixel points whose values are greater than a preset threshold, or the preset statistical model is to count energy values through an energy function; Obtaining a first face quality score based on the first statistical result and the second statistical result; The process of obtaining a first face quality score based on the first statistical result and the second statistical result comprises the steps of: A first face quality score is obtained based on a ratio between the second statistical result and the first statistical result.
2. A method for assessing the quality of a face image, characterized in that: Includes steps: Acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image; Through a preset statistical model, statistics are respectively performed on the saliency map and the facial key point area in the saliency map to obtain a first statistical result and a second statistical result; wherein the preset statistical model is to sum the values of pixel points whose values are greater than a preset threshold, or the preset statistical model is to count energy values through an energy function; Obtaining a first face quality score based on the first statistical result and the second statistical result; The process of obtaining a first face quality score based on the first statistical result and the second statistical result comprises the steps of: Obtaining statistical results of each facial key point area in the second statistical results; Based on the statistical results of each facial key point area, calculating the statistical variance of the facial key point area; A first face quality score is obtained based on a ratio of a difference between the second statistical result and the statistical variance to the first statistical result.
3. A method for assessing the quality of a face image, characterized in that: Includes steps: Acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image; Through a preset statistical model, statistics are respectively performed on the saliency map and the facial key point area in the saliency map to obtain a first statistical result and a second statistical result; wherein the preset statistical model is to sum the values of pixel points whose values are greater than a preset threshold, or the preset statistical model is to count energy values through an energy function; Obtaining a first face quality score based on the first statistical result and the second statistical result; The process of obtaining the first face quality score based on the first statistical result and the second statistical result is also based on the ratio between the standard deviation and the average value of the saliency map.
4. The method for assessing facial image quality according to any one of claims 1 to 3, characterized in that: Also includes the steps: Obtaining a face detection confidence score for a face image to be evaluated; A second face quality score is obtained based on the first face quality score and the face detection confidence score.
5. A facial image quality assessment device, characterized in that: include: An acquisition module, used to acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image; A statistical module, used to perform statistics on the saliency map and the facial key point area in the saliency map respectively through a preset statistical model to obtain a first statistical result and a second statistical result; wherein the preset statistical model is to sum the values of the pixel points whose values are greater than a preset threshold, or the preset statistical model is to count the energy values through an energy function; An evaluation module, configured to obtain a first face quality score based on the first statistical result and the second statistical result; The process of obtaining a first face quality score based on the first statistical result and the second statistical result comprises the steps of: A first face quality score is obtained based on a ratio between the second statistical result and the first statistical result.
6. A facial image quality assessment device, characterized in that: include: An acquisition module, used to acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image; A statistical module, used to perform statistics on the saliency map and the facial key point area in the saliency map respectively through a preset statistical model to obtain a first statistical result and a second statistical result; wherein the preset statistical model is to sum the values of the pixel points whose values are greater than a preset threshold, or the preset statistical model is to count the energy values through an energy function; An evaluation module, configured to obtain a first face quality score based on the first statistical result and the second statistical result; The process of obtaining a first face quality score based on the first statistical result and the second statistical result comprises the steps of: Obtaining statistical results of each facial key point area in the second statistical results; Based on the statistical results of each facial key point area, calculating the statistical variance of the facial key point area; A first face quality score is obtained based on a ratio of a difference between the second statistical result and the statistical variance to the first statistical result.
7. A facial image quality assessment device, characterized in that: include: An acquisition module, used to acquire a facial key point region of a facial image to be evaluated and a saliency map obtained after saliency detection of the facial image; A statistical module, used to perform statistics on the saliency map and the facial key point area in the saliency map respectively through a preset statistical model to obtain a first statistical result and a second statistical result; wherein the preset statistical model is to sum the values of the pixel points whose values are greater than a preset threshold, or the preset statistical model is to count the energy values through an energy function; An evaluation module, configured to obtain a first face quality score based on the first statistical result and the second statistical result; The evaluation module further obtains a first face quality score based on a ratio between a standard deviation and an average value of the saliency map.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 4 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Quality classification method for portrait photography image
CN104834898A
Face quality evaluation method and device
CN110837750A
