Intelligent quantitative analysis method and analysis system for facial skin
Through the intelligent quantitative analysis method of human face skin, the image comparison model and quality evaluation algorithm are used to solve the problem of inaccurate evaluation of makeup removal effect, achieve accurate detection of makeup removal effect, avoid cosmetic residue, and protect skin and human health.
Patent Information
- Application Number
- CN202110836616.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-23
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-07-23
AI Technical Summary
Existing technology cannot accurately judge the makeup removal effect, resulting in cosmetic residue and affecting skin and body health.
The intelligent quantitative analysis method of facial skin is used to collect facial images, build an image comparison model, and detect the makeup removal effect based on the model. It uses algorithms such as pixel quality evaluation, information theory, and structural similarity for accurate detection.
It achieves accurate detection of facial makeup removal effect, avoids cosmetic residue, and protects skin and human health.
Smart Images

Figure CN113554623B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of makeup removal detection, and in particular relates to an intelligent quantitative analysis method and analysis system for facial skin. Background Art
[0002] Nowadays, more and more people are wearing makeup, and most of the cosmetics are chemical products. If the cosmetics are not completely removed when removing them, the cosmetics will be attached to the skin for a long time, which will affect the skin and seriously affect the health of the body. Nowadays, it is impossible to accurately judge the effect of makeup removal. People can only judge whether the makeup is completely removed by the naked eye, but cannot accurately judge whether the makeup is completely removed. It is easy to cause cosmetic residues, which will affect the skin, body, etc.
[0003] Therefore, based on the above technical problems, it is necessary to design a new intelligent quantitative analysis method and analysis system for facial skin. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for intelligent quantitative analysis of human facial skin.
[0005] In order to solve the above technical problems, the present invention provides a method for intelligent quantitative analysis of facial skin, comprising:
[0006] Collect facial images and perform facial recognition;
[0007] Building an image contrast model; and
[0008] The makeup removal effect is detected through face images based on the image comparison model.
[0009] Furthermore, the method for collecting facial images and performing facial recognition includes:
[0010] Collect images of people’s faces without makeup;
[0011] Collect images of people’s faces after makeup;
[0012] Collect images of faces without makeup removed.
[0013] Furthermore, the method for collecting facial images and performing facial recognition also includes:
[0014] The collected images are evaluated and screened, that is,
[0015] The quality of each image is evaluated based on image pixels, the quality of each image is evaluated based on information theory, and the quality of each image is evaluated based on structural similarity.
[0016] Furthermore, the method for evaluating the quality of each image according to image pixels includes:
[0017] The quality of each image is evaluated based on the peak signal-to-noise ratio and mean square error, that is,
[0018] The image to be evaluated is y, the reference image is x, and the size is M*N. The calculation method for characterizing the image quality based on the peak signal-to-noise ratio is:
[0019]
[0020] The calculation method for characterizing image quality based on mean square error is:
[0021]
[0022] The larger the PSNR value, the smaller the distortion between the image to be evaluated and the reference image, and the better the image quality;
[0023] The smaller the MSE value is, the better the quality of the image to be evaluated is.
[0024] Furthermore, the method for evaluating the quality of each image according to information theory includes:
[0025] According to the information fidelity criterion and the visual information fidelity algorithm, the mutual information between the image to be evaluated and the reference image is calculated to measure the quality of the image to be evaluated.
[0026] Furthermore, the method for evaluating the quality of each image according to the structural similarity includes:
[0027] Determine a reference image and an image to be evaluated;
[0028] The size of the reference image x and the image to be evaluated y is M*N, where the mean, standard deviation, variance and covariance of the reference image x and the image to be evaluated y are: x 、u y , σ x , σ y , σ x 2 , σ y 2 、u xy ;
[0029] The comparison functions of brightness, contrast, and structure are:
[0030]
[0031]
[0032]
[0033] Among them, c1, c2, c3 are positive constants;
[0034] The structural similarity index is:
[0035] SSIM(x,y)=[l(x,y)] α [c(x,y)] β [s(x,y)] γ ;
[0036] The larger the structural similarity index is, the better the quality of the corresponding image to be evaluated is;
[0037] The collected images are evaluated and screened after the quality of each image is evaluated according to image pixels, the quality of each image is evaluated according to information theory, and the quality of each image is evaluated according to structural similarity.
[0038] Furthermore, the method for collecting facial images also includes:
[0039] Recognize the faces in each image, that is
[0040] The facial features of the filtered images are located and the 88 points that make up the facial contour are calculated;
[0041] Perform full-range feature recognition on the images of the screened faces without makeup, locate 50,000 feature points, grid the face structure, add position labels, and build a 3D face model;
[0042] Divide a preset number of ROI areas in the 3D face model;
[0043] Perform spatial calibration to establish the correspondence between the pixels and physical dimensions of each filtered image based on the 3D face model;
[0044] After setting the calibration parameters, measure the actual physical size of the target based on the filtered image.
[0045] and / or
[0046] The image is marked according to the position of each preset ROI area, and training is performed to automatically identify each ROI area on the screened image.
[0047] Furthermore, the method for constructing an image contrast model includes:
[0048] The image contrast model is constructed according to the CIEL*a*b color space, that is
[0049] Comparing the color differences of all ROI regions in the desired contrast image to compare the desired contrast image;
[0050]
[0051] Among them, ΔL * Δa is the brightness difference of the same ROI area in the required comparison image;* Δb is the red-green difference of the same ROI area in the image to be compared; * ΔE is the yellow-blue difference of the same ROI area in the required comparison image; * is the color difference of the same ROI area in the image to be compared; and / or
[0052] Construct an image contrast model based on grayscale, that is
[0053] Compare the grayscale differences of all ROI regions in the desired contrast image to compare the desired contrast image;
[0054] Gray 未i =R 未i *0.3+G 未i *0.59+B 未i *0.11;
[0055] Gray 卸i =R 卸i *0.3+G 卸i *0.59+B 卸i *0.11;
[0056] ΔGray i =|Gray 卸i -Gray 未i |;
[0057] Among them, Gray 未i is the grayscale of the i-th ROI region of the image when the screened face is not made up; R 未i is the R value of the i-th ROI region of the image when the screened face is not made up; G 未i is the G value of the i-th ROI area of the image when the screened face is not made up; B 未i is the B value of the i-th ROI area of the image when the screened face is not made up; Gray 卸i is the grayscale of the ith ROI region of the image after the makeup is removed from the screened face; R 卸i is the R value of the ith ROI region of the image after the makeup is removed from the screened face; G 卸i B is the G value of the i-th ROI area of the image after the makeup is removed from the screened face; 卸i is the B value of the ith ROI area of the image after the makeup is removed from the screened face; ΔGray i It is the grayscale difference between the i-th ROI area of the image of the screened face without makeup and the image of the screened face after removing makeup.
[0058] Furthermore, the method for detecting the makeup removal effect through the face image according to the image contrast model includes:
[0059] According to the images of the screened faces without makeup and the images of the screened faces after makeup removal, the color difference of all ROI regions is compared through an image comparison model to determine the makeup removal effect of each ROI region. The smaller the color difference of the same ROI region, the better the makeup removal effect of the ROI region;
[0060] According to the images of the screened faces after makeup and the images of the screened faces after makeup removal, the color difference of all ROI regions is compared through an image comparison model to determine the makeup removal effect of each ROI region. The greater the color difference of the same ROI region, the better the makeup removal effect of the ROI region;
[0061] According to the images of the screened faces without makeup and the images of the screened faces after makeup removal, the grayscale differences of all ROI regions are compared through an image comparison model to determine the makeup removal effect of each ROI region. The smaller the grayscale difference of the same ROI region, the better the makeup removal effect of the ROI region;
[0062] The classification level of the color difference or grayscale difference is preset. After the corresponding image contrast model color difference or grayscale difference is obtained according to the image contrast model, the classification level to which the color difference or grayscale difference belongs is determined, and the makeup removal effect is determined according to the classification level.
[0063] On the other hand, the present invention also provides a facial skin intelligent quantitative analysis system, comprising:
[0064] A collection module collects face images and performs face recognition;
[0065] A model building module, building an image comparison model; and
[0066] The contrast detection module detects the makeup removal effect through the face image based on the image contrast model.
[0067] The beneficial effect of the present invention is that the present invention realizes accurate detection of facial makeup removal effect by collecting facial images and performing facial recognition; constructing an image comparison model; and detecting the makeup removal effect through facial images according to the image comparison model, thereby avoiding cosmetics remaining on the face after makeup removal, which may affect the skin, human health, etc.
[0068] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0069] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0071] Figure 1 It is a flow chart of the intelligent quantitative analysis method of human face skin involved in the present invention;
[0072] Figure 2 This is a grayscale comparison chart of the foundation light source;
[0073] Figure 3 This is a grayscale comparison chart of the blush light source;
[0074] Figure 4 This is a comparison chart of the L values of five light sources;
[0075] Figure 5 This is a comparison chart of the a values of five light sources;
[0076] Figure 6 This is a comparison chart of the b values of five light sources;
[0077] Figure 7 This is a comparison chart of the gray value of UV foundation and L, a, and b;
[0078] Figure 8 This is a comparison chart of the gray value of UV blush and L, a, and b;
[0079] Fig. 9 This is a △E comparison chart of five light sources;
[0080] Fig.10 It is a comparison chart of grayscale and △E of ultraviolet light;
[0081] Fig.11 It is a flow chart of facial contour point positioning involved in the present invention;
[0082] Fig.12 It is a schematic diagram of facial contour points involved in the present invention;
[0083] Fig.13 It is a schematic diagram of warm and cold colors of makeup removal effects involved in the present invention;
[0084] Fig.14 This is a comparison chart of the new and old data of the foundation;
[0085] Fig.15 This is a comparison chart of the old and new data of blush;
[0086] Fig.16 This is a comparison diagram A of the makeup removal effect involved in the present invention;
[0087] Fig.17 This is a comparison diagram B of the makeup removal effect involved in the present invention;
[0088] Fig.18 It is a principle block diagram of the intelligent quantitative analysis system of facial skin involved in the present invention. DETAILED DESCRIPTION
[0089] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0090] Example 1
[0091] Figure 1 It is a flow chart of the intelligent quantitative analysis method of facial skin involved in the present invention.
[0092] like Figure 1 As shown, this embodiment provides an intelligent quantitative analysis method for facial skin, including: collecting facial images and performing facial recognition; constructing an image comparison model; and detecting the makeup removal effect through the facial image according to the image comparison model, thereby achieving accurate detection of the facial makeup removal effect and avoiding cosmetics remaining on the face after makeup removal, which may affect the skin, human health, etc.
[0093] Figure 2 This is a grayscale comparison chart of the foundation light source;
[0094] Figure 3 This is a grayscale comparison chart of the blush light source;
[0095] Figure 4 This is a comparison chart of the L values of five light sources;
[0096] Figure 5 This is a comparison chart of the a values of five light sources;
[0097] Figure 6 This is a comparison chart of the b values of five light sources;
[0098] Figure 7 This is a comparison chart of the gray value of UV foundation and L, a, and b;
[0099] Figure 8 This is a comparison chart of the gray value of UV blush and L, a, and b;
[0100] Fig. 9 This is a △E comparison chart of five light sources;
[0101] Fig.10 This is a comparison chart of the grayscale of ultraviolet light and △E.
[0102] In this embodiment, the method for collecting facial images and performing facial recognition includes: collecting images of the face without makeup; collecting images of the face with makeup; collecting images of the face after removing makeup; acquiring images under different light sources (each light source can be: white light, standard diffuse reflection, cross-polarized light, ultraviolet light, parallel polarized light); selecting the most suitable light source and parameters according to the comparison between the parameters of different cosmetics under different light sources; Figure 2 and Figure 3 As shown in Figure 2, the grayscale value difference of ultraviolet light is the most obvious among the five light sources; Figure 4 , Figure 5 and Figure 6 As shown in Figure 2, the b value difference of ultraviolet light is the most obvious among the five light sources; Figure 7 and Figure 8 As shown in the figure, the difference in grayscale value under ultraviolet light is more obvious than that in L, a, and b values; Fig. 9 As shown in , the normalized △E law of ultraviolet light is the most obvious; Fig.10 As shown, the grayscale of ultraviolet light and △E are not much different; therefore, the grayscale value of ultraviolet light or the normalized △E of ultraviolet light can be selected as the best method for quantitative analysis. In this embodiment, the method of collecting face images and performing face recognition also includes: evaluating and screening the collected images, that is, evaluating the quality of each image according to image pixels, evaluating the quality of each image according to information theory, and evaluating the quality of each image according to structural similarity; the research needs to simulate the visual perception characteristics of the human eye through machine learning methods, help set shooting parameters, and shoot skin images that are meaningful for makeup removal detection. The quality evaluation system helps users to determine the type of distortion in the captured image, including brightness and color distortion, blur distortion and contrast distortion. The research is based on the basic characteristics of the human visual system, including multi-channel perception, resolvable blur perception and contrast sensitivity function response, and generates a three-dimensional feature vector for each image. Combined with professional subjective evaluation, support vector machine (SVM) and binary decision tree (DT) are used to perform pattern recognition on the image to distinguish images that can be used for makeup removal detection and images that are not conducive to makeup removal detection.
[0103] In this embodiment, the method of evaluating the quality of each image according to image pixels (based on image pixel statistics) includes: evaluating the quality of each image according to the peak signal-to-noise ratio and the mean square error, that is, based on the image pixel statistics, the peak signal-to-noise ratio (PSNR) and the mean square error (MSE) are two common quality evaluation methods. They measure the quality of the image to be evaluated from a statistical perspective by calculating the difference between the grayscale values of the corresponding pixels of the image to be evaluated and the reference image;
[0104] The image to be evaluated is y, the reference image is x, and the size is M*N. The calculation method for characterizing the image quality based on the peak signal-to-noise ratio is:
[0105]
[0106] The calculation method for characterizing image quality based on mean square error is:
[0107]
[0108] Both PSNR and MSE measure image quality by calculating the global size of the pixel error between the image to be evaluated and the reference image. The larger the PSNR value, the smaller the distortion between the image to be evaluated and the reference image, and the better the image quality. The smaller the MSE value, the better the quality of the image to be evaluated. However, this type of algorithm starts from the global statistics of the image pixel values and does not consider the local visual factors of the human eye, so it is impossible to grasp the local quality of the image.
[0109] In this embodiment, the method for evaluating the quality of each image according to information theory includes: calculating the mutual information between the image to be evaluated and the reference image according to the two algorithms of information fidelity criterion and visual information fidelity to measure the quality of the image to be evaluated. Based on the information entropy basis in information theory, mutual information is widely used to evaluate image quality. Through the two algorithms of Information Fidelity Criterion (IFC) and Visual Information Fidelity (VIF), they measure the quality of the image to be evaluated by calculating the mutual information between the image to be evaluated and the reference image. These two methods have theoretical support and expand the connection between the image and the human eye in terms of information fidelity, but such methods do not respond to the structural information of the image.
[0110] In this embodiment, the method for evaluating the quality of each image according to the structural similarity includes: the main function of human vision is to extract structural information from the background, and the human visual system can achieve this goal in a highly adaptive manner, so the measurement of the structural distortion of the image should be the best approximation of the perceived quality of the image. On this basis, an objective image quality evaluation standard that conforms to the characteristics of the human visual system is given - Structure Similarity (SSIM). SSIM constructs structural similarity based on the correlation between image pixels.
[0111] Determine the reference image and the image to be evaluated; the reference image x and the image to be evaluated y of size M*N, where the mean, standard deviation, variance and covariance of the reference image x and the image to be evaluated y are: x 、u y , σ x , σ y , σ x 2 , σ y 2 、u xy ;
[0112] The comparison functions of brightness, contrast, and structure are:
[0113]
[0114]
[0115]
[0116] Among them, c1, c2, and c3 are positive constants, which are used to adjust the instability when the denominator is close to zero;
[0117] The structural similarity index is:
[0118] SSIM(x,y)=[l(x,y)] α [c(x,y)] β [s(x,y)] γ ;
[0119] Among them, α, β, and γ are all parameters and can all be 1;
[0120] The larger the structural similarity index is, the better the quality of the corresponding image to be evaluated is;
[0121] After performing quality evaluation on each image according to image pixels, performing quality evaluation on each image according to information theory, and performing quality evaluation on each image according to structural similarity, the acquired images are evaluated and screened to screen images that are easy to detect makeup removal from all acquired images; in this embodiment, all reference images may be pre-selected images (for example, pre-set images of a human face without makeup, images of a human face with makeup, images of a human face after removing makeup, etc.).
[0122] Fig.11 It is a flow chart of facial contour point positioning involved in the present invention;
[0123] Fig.12 It is a schematic diagram of facial contour points involved in the present invention.
[0124] In this embodiment, the method for collecting facial images further includes:
[0125] The faces in each image are identified, that is, the face area is located and registered, and the face is divided into several grid areas (small image patches), and the evaluation range is refined for statistics. In addition, registration, feature extraction and cleaning quality evaluation model construction are performed in multiple dimensional spaces based on image pixel statistics, information theory, and structural information. In different feature spaces, including first-order characteristics, shape features, and texture features (GLCM, GLSZM, GLRLM, GLDM, NGTDM), corresponding feature parameter extraction can be provided according to practical application problems. We will try various feature space values in the following five aspects: (1) boundary feature method; (2) Fourier shape descriptor method; (3) geometric parameter method; (4) shape invariant moment method; (5) other methods. Work on shape representation and matching also includes finite element method (FiniteElementMethod or FEM), rotation function (Turning) and wavelet descriptor (WaveletDeor).
[0126] The information of specific parts of the face has an important influence on facial expression recognition. The selection of facial feature points should include the facial feature points we need to extract. At the same time, these feature points should be able to well describe the change process of each expression. The number of feature points should reach a certain density around the calibrated facial features to fully describe the changes of the facial features when the expression changes.
[0127] In addition to the characteristics of specific parts, the overall characteristics of the face will also affect the individual's recognition of facial expressions. The influence of overall characteristics can be manifested in many aspects, including facial structure, face shape and gender. Facial structure refers to the spatial relationship and layout information between various parts of the face.
[0128] The representation of facial features can be roughly divided into three categories: the first is to represent facial features with points, that is, some feature points defined according to our understanding of facial features. For example, in ASM and AAM, facial features are defined by points, which we call landmarks. There are three types of landmarks: (a) extreme points. Generally, this kind of landmark has only a unique definition in a local range, such as the pupil of the eye, the tip of the nose and the nostril. (b) boundary points. This kind of landmark can be considered as a landmark on the boundary of a local area, but considering the position and distance between adjacent landmarks, it is generally uniformly extracted on the entire edge, such as the contour point of the face, the contour point of the eyebrow, the contour point of the lip, etc. (c) interpolation points. This kind of landmark does not have obvious texture features in the local area, and is obtained by interpolation of other landmarks, such as the center of the mouth, the center of the eyebrows, and those points that are blocked or invisible. The second is to define facial features with lines or boundaries. For example, in a deformable template, the contour of the face is defined as a parabola, and the boundary of the eyeball is defined as a circle, etc. The third method is to define facial features by region. For example, in some methods that segment by color or grayscale value, the area with lip color pixels is segmented as the mouth through the statistics of lip color; eyes, eyebrows, etc. are also segmented by the difference in corresponding color and brightness from other areas of the face, and then the area composed of pixels that meet the conditions is used as the corresponding target area.
[0129] like Fig.11 and Fig.12 As shown, the facial features of the screened image are located, and 88 points constituting the facial contour are calculated, including eyebrows (8 points on each side), eyes (8 points on each side), nose (13 points), mouth (22 points), and facial contour (21 points); full-range feature recognition is performed on the image of the screened face without makeup, 50,000 feature points are located, the facial structure is gridded, and a position Label is added to construct a 3D face model (PRNET, which can reconstruct about 50,000 3D key points of the face based on a frame of face image); a preset number of ROI areas are divided in the 3D face model; spatial calibration is performed, and the corresponding relationship between pixels and physical dimensions on each screened image is established according to the 3D face model; after setting the calibration parameters, the actual physical dimensions of the target are measured according to the screened image; and / or
[0130] On a large number of face images, the positions of each ROI area are marked according to the preset positions (feature points are marked in each ROI area), and training is performed to automatically identify each ROI area on the filtered images; the positions of each ROI area can be marked in the face area on the image, and training is performed through the unet method to automatically identify each ROI area on the filtered images.
[0131] In this embodiment, the method for constructing an image contrast model includes: constructing an image contrast model according to the CIEL*a*b color space, that is,
[0132] The three basic coordinates represent the lightness of the color (L*, L*=0 generates black and L*=100 indicates white), its position between red / magenta and green (a* negative values indicate green and positive values indicate magenta) and its position between yellow and blue (b* negative values indicate blue and positive values indicate yellow); L* is lightness, ranging from 0 to 100, indicating colors from dark (black) to light (white); a* represents red and green, and the value changes from positive to negative, indicating colors from red (positive) to green (negative); b* represents yellow and blue, and the value changes from positive to negative, indicating colors from yellow (positive) to blue (negative);
[0133] Comparing the color differences of all ROI regions in the desired contrast image to compare the desired contrast image;
[0134]
[0135] Where, ΔL * Δa is the brightness difference of the same ROI area in the required comparison image; * Δb is the red-green difference of the same ROI area in the image to be compared; * ΔE is the yellow-blue difference of the same ROI area in the required comparison image; * is the color difference of the same ROI area in the image to be compared; and / or
[0136] Construct an image contrast model based on grayscale, that is
[0137] Compare the grayscale differences of all ROI regions in the desired contrast image to compare the desired contrast image;
[0138] Gray 未i =R 未i *0.3+G 未i *0.59+B 未i *0.11;
[0139] Gray 卸i =R 卸i *0.3+G 卸i *0.59+B 卸i *0.11;
[0140] ΔGray i =|Gray 卸i -Gray 未i |;
[0141] Among them, Gray 未i is the grayscale of the i-th ROI region of the image when the screened face is not made up; R未i is the R value of the i-th ROI region of the image when the screened face is not made up; G 未i is the G value of the i-th ROI area of the image when the screened face is not made up; B 未i is the B value of the i-th ROI area of the image when the screened face is not made up; Gray 卸i is the grayscale of the ith ROI region of the image after the makeup is removed from the screened face; R 卸i is the R value of the ith ROI region of the image after the makeup is removed from the screened face; G 卸i B is the G value of the i-th ROI area of the image after the makeup is removed from the screened face; 卸i is the B value of the ith ROI area of the image after the makeup is removed from the screened face; ΔGray i It is the grayscale difference between the i-th ROI area of the image of the screened face without makeup and the image of the screened face after removing makeup.
[0142] Fig.13 It is a schematic diagram of warm and cold colors of the makeup removal effect involved in the present invention.
[0143] In this embodiment, the method for detecting the makeup removal effect through a face image according to an image contrast model includes:
[0144] The screened images of the face without makeup, the face with makeup, and the face after makeup removal are divided into several grid patch images (each grid patch image) according to the ROI area, and the color difference of the same ROI area (the corresponding grid patch image L*, a*, b* is the mean of the grid patch image) is compared through the image comparison model to determine the makeup removal effect of the ROI area;
[0145] According to the images of the screened faces without makeup and the images of the screened faces after makeup removal, the color difference of all ROI regions is compared through an image comparison model to determine the makeup removal effect of each ROI region. The smaller the color difference of the same ROI region, the better the makeup removal effect of the ROI region;
[0146] According to the images of the screened faces after makeup and the images of the screened faces after makeup removal, the color difference of all ROI regions is compared through an image comparison model to determine the makeup removal effect of each ROI region. The greater the color difference of the same ROI region, the better the makeup removal effect of the ROI region;
[0147] According to the color difference of each ROI area, the makeup removal residual percentage of the ROI area can be obtained, and the percentage can be marked in the corresponding ROI area, so as to know the makeup removal effect of the ROI area. Fig.13As shown, the cold and warm colors of the corresponding ROI area can also be set according to the color difference of each ROI area and displayed in the corresponding ROI area (cold colors indicate good makeup removal effect, and warm colors indicate poor makeup removal effect);
[0148] According to the images of the screened faces without makeup and the images of the screened faces after makeup removal, the grayscale differences of all ROI regions are compared through an image comparison model to determine the makeup removal effect of each ROI region. The smaller the grayscale difference of the same ROI region, the better the makeup removal effect of the ROI region;
[0149] The classification level of the color difference or grayscale difference is preset. After the corresponding image contrast model color difference or grayscale difference is obtained according to the image contrast model, the classification level to which the color difference or grayscale difference belongs is determined, and the makeup removal effect is determined according to the classification level.
[0150] Fig.14 This is a comparison chart of the new and old data of the foundation;
[0151] Fig.15 This is a comparison chart of the new and old data of blush.
[0152] like Fig.14 , 15 As shown, in this embodiment, the specific method of dividing the classification level in this embodiment can be: after making a comprehensive comparison of the data of 20 groups of makeup applied 5 times, the more times the makeup is applied, the smaller the difference in the gray value between the groups is, and the more difficult it is to distinguish, so pure digital quantization is not used, but a hierarchical quantization method is adopted; quantification is divided into six levels of 0, 1, 2, 3, 4, and 5, and the specific classification can be as follows: level 0 - 0-1% (no makeup), level 1 - 1-15, level 2 - 15-25%, level 3 - 25-35%, level 4 - 35-45%, level 5 - 45-100%; the horizontal axis of the straight line graph of the percentage of makeup removal effect is makeup removal, the vertical axis is makeup, and the origin is no makeup. The specific percentage formula is: δ is the percentage of makeup removal effect; ΔE 卸 is the color difference between images during makeup removal; ΔE 未 ΔE is the color difference between images without makeup; 上 is the color difference between the images after makeup; the traditional calibration method is not conducive to distinction, so a new calibration method is adopted in this embodiment: 10 mg of cosmetics (such as foundation, blush, etc.) is applied in a 5*5 area, 10 mg of cosmetics is applied in a 4*5 area, 10 mg of cosmetics is applied in a 4*4 area, 10 mg of cosmetics is applied in a 3*4 area, and 10 mg of cosmetics is applied in a 3*3 area. The total number of copies A used in the calibration method is: The various demarcation points are: The data from the new calibration method is more conducive to accurate classification.
[0153] Fig.16 This is a comparison diagram A of the makeup removal effect involved in the present invention;
[0154] Fig.17 This is a comparison diagram B of the makeup removal effect involved in the present invention.
[0155] In this embodiment, a specific facial makeup removal image is used as an example for makeup removal detection: Fig.16 As shown, the data before makeup removal are L*=86.59, a*=3.02, b*=10.80; the data after makeup removal are L*=86.82, a*=3.27, b*=11.09, so the color difference ΔE * is 0.45; Fig.17 As shown, the data before makeup removal are L*=87.84, a*=2.41, b*=11.89; the data after makeup removal are L*=83.80, a*=6.23, b*=13.95, so the color difference ΔE * It is 5.93.
[0156] Example 2
[0157] Fig.18 It is a principle block diagram of the intelligent quantitative analysis system of facial skin involved in the present invention.
[0158] like Fig.18 As shown, based on Example 1, this Example 2 also provides an intelligent quantitative analysis system for facial skin, including: an acquisition module, which acquires facial images and performs facial recognition; a model building module, which builds an image comparison model; and a comparison detection module, which detects the makeup removal effect through the facial image according to the image comparison model.
[0159] In this embodiment, the facial skin intelligent quantitative analysis system may further include a display module, which may display a 3D model of the face, divide the 3D model into ROI regions, and display makeup removal residues and corresponding warm and cool colors in each ROI region.
[0160] In this embodiment, the facial skin intelligent quantitative analysis system is suitable for using the facial skin intelligent quantitative analysis method involved in Example 1 to detect the makeup removal effect.
[0161] In summary, the present invention achieves accurate detection of facial makeup removal effect by collecting facial images and performing facial recognition; constructing an image comparison model; and detecting the makeup removal effect through facial images according to the image comparison model, thereby preventing cosmetics from remaining on the face after makeup removal and affecting the skin, human health, etc.
[0162] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0163] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0164] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0165] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A method for intelligent quantitative analysis of facial skin, characterized in that: include: Collect facial images and perform facial recognition; Build an image comparison model; as well as The makeup removal effect is detected through the face image according to the image comparison model; The method for collecting facial images also includes: Recognize the faces in each image, that is The facial features of the filtered images are located and the 88 points that make up the facial contour are calculated; Perform full-range feature recognition on the images of the screened faces without makeup, locate 50,000 feature points, grid the face structure, add position labels, and build a 3D face model; Divide a preset number of ROI areas in the 3D face model; Perform spatial calibration to establish a correspondence between pixels and physical dimensions on each screened image based on the 3D face model; after setting calibration parameters, measure the actual physical dimensions of the target based on the screened image; and / or Marking the positions of the preset ROI regions on the image and performing training to automatically identify the ROI regions on the screened image; The method for constructing an image contrast model comprises: The image contrast model is constructed according to the CIEL*a*b color space, that is Comparing the color differences of all ROI regions in the desired contrast image to compare the desired contrast image; Among them, ΔL * Δa is the brightness difference of the same ROI area in the required comparison image; * Δb is the red-green difference of the same ROI area in the image to be compared; * ΔE is the yellow-blue difference of the same ROI area in the required comparison image; * The color difference of the same ROI area in the image to be compared; and / or Construct an image contrast model based on grayscale, that is Compare the grayscale differences of all ROI regions in the desired contrast image to compare the desired contrast image; Gray 未i =R 未i *0.3+G 未i *0.59+B 未i *0.11; Gray 卸i =R 卸i *0.3+G 卸i *0.59+B 卸i *0.11; ΔGray i =|Gray 卸i -Gray 未i |; Among them, Gray 未i is the grayscale of the i-th ROI region of the image when the screened face is not made up; R 未i is the R value of the i-th ROI region of the image when the screened face is not made up; G 未i is the G value of the i-th ROI area of the image when the screened face is not made up; B 未i is the B value of the i-th ROI area of the image when the screened face is not made up; Gray 卸i is the grayscale of the ith ROI region of the image after the makeup is removed from the screened face; R 卸i is the R value of the ith ROI region of the image after the makeup is removed from the screened face; G 卸i B is the G value of the i-th ROI area of the image after the makeup is removed from the screened face; 卸i is the B value of the ith ROI area of the image after the makeup is removed from the screened face; ΔGray i is the grayscale difference between the i-th ROI region of the image of the screened face without makeup and the image of the screened face after removing makeup; The method for detecting makeup removal effect through a face image according to an image comparison model comprises: According to the images of the screened faces without makeup and the images of the screened faces after makeup removal, the color difference of all ROI regions is compared through an image comparison model to determine the makeup removal effect of each ROI region. The smaller the color difference of the same ROI region, the better the makeup removal effect of the ROI region; According to the images of the screened faces after makeup and the images of the screened faces after makeup removal, the color difference of all ROI regions is compared through an image comparison model to determine the makeup removal effect of each ROI region. The greater the color difference of the same ROI region, the better the makeup removal effect of the ROI region; According to the images of the screened faces without makeup and the images of the screened faces after makeup removal, the grayscale differences of all ROI regions are compared through an image comparison model to determine the makeup removal effect of each ROI region. The smaller the grayscale difference of the same ROI region, the better the makeup removal effect of the ROI region; The classification level of the color difference or grayscale difference is preset. After the corresponding image contrast model color difference or grayscale difference is obtained according to the image contrast model, the classification level to which the color difference or grayscale difference belongs is determined, and the makeup removal effect is determined according to the classification level.
2. The method for intelligent quantitative analysis of facial skin according to claim 1, characterized in that: The method for collecting face images and performing face recognition includes: Collect images of people’s faces without makeup; Collect images of people’s faces after makeup; Collect images of faces without makeup removed.
3. The method for intelligent quantitative analysis of facial skin according to claim 2, characterized in that: The method for collecting facial images and performing facial recognition also includes: The collected images are evaluated and screened, that is, The quality of each image is evaluated based on image pixels, the quality of each image is evaluated based on information theory, and the quality of each image is evaluated based on structural similarity.
4. The method for intelligent quantitative analysis of facial skin according to claim 3, characterized in that: The method for evaluating the quality of each image according to image pixels comprises: The quality of each image is evaluated based on the peak signal-to-noise ratio and mean square error, that is, The image to be evaluated is y, the reference image is x, and the size is M*N. The calculation method for characterizing the image quality based on the peak signal-to-noise ratio is: The calculation method for characterizing image quality based on mean square error is: The larger the PSNR value, the smaller the distortion between the image to be evaluated and the reference image, and the better the image quality; The smaller the MSE value is, the better the quality of the image to be evaluated is.
5. The method for intelligent quantitative analysis of facial skin according to claim 4, characterized in that: The method for evaluating the quality of each image according to information theory comprises: According to the information fidelity criterion and the visual information fidelity algorithm, the mutual information between the image to be evaluated and the reference image is calculated to measure the quality of the image to be evaluated.
6. The method for intelligent quantitative analysis of facial skin according to claim 5, characterized in that: The method for evaluating the quality of each image according to the structural similarity comprises: Determine a reference image and an image to be evaluated; The size of the reference image x and the image to be evaluated y is M*N, where the mean, standard deviation, variance and covariance of the reference image x and the image to be evaluated y are: x 、u y , σ x , σ y , σ x 2 , σ y 2 、u xy ; The comparison functions of brightness, contrast, and structure are: Among them, c1, c2, c3 are positive constants; The structural similarity index is: SSIM(x,y)=[l(x,y)] α [c(x,y) β [s(x,y)] γ ; The larger the structural similarity index is, the better the quality of the corresponding image to be evaluated is; The collected images are evaluated and screened after the quality of each image is evaluated according to image pixels, the quality of each image is evaluated according to information theory, and the quality of each image is evaluated according to structural similarity.
7. A facial skin intelligent quantitative analysis system using the facial skin intelligent quantitative analysis method according to any one of claims 1 to 6, characterized in that: include: A collection module collects face images and performs face recognition; Model building module, building image comparison model; as well as The contrast detection module detects the makeup removal effect through the face image based on the image contrast model.
