Dynamic face recognition method based on new adversarial learning deblurring theory
Through the combination of the new adversarial learning deblurring theory and the face blur change rate classification threshold, the problem of slow recognition speed caused by DeblurGAN_V2's inability to find the Nash equilibrium point is solved, and efficient recognition of blurred face images is achieved.
Patent Information
- Application Number
- CN202210352184.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-03
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-04-03
Smart Images

Figure CN114783020B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of deep learning and computer vision, and specifically relates to a dynamic face recognition method based on a novel adversarial learning defuzzification theory. Background Art
[0002] With the rapid development of Internet technology, the ability of algorithms to process data has also been greatly improved. With the rapid development of big data technology, there will be hidden dangers such as information security, making related technical means such as information identification and detection particularly important. The emergence of face recognition technology solves these problems. Compared with the traditional means of using magnetic cards or ID cards with magnetic passwords, face recognition, as an inherent feature of the human body, is fixed for a single person and cannot be repeated for different people. The face is a biological feature determined by each person's unique and unchanging genes. It is both simple and fast to identify identity through the face. Therefore, the rapid development of face recognition is a necessary trend for social progress.
[0003] Dynamic face recognition in social scenarios does not require the person being recognized to actively cooperate with the camera for static face recognition, so it often causes various blur problems in the face images captured by the camera, mainly reflected in the motion blur caused by capturing the moving face and the focus blur caused by the camera not having time to focus on objects near and far. At present, various deblurring algorithms have emerged on the market, and deblurring algorithms based on generative adversarial networks have been widely used. Although the current deblurring algorithms have good running effects and almost no image distortion problems, they can hardly meet the real-time requirements of dynamic face recognition in terms of running speed. Summary of the invention
[0004] The purpose of the present invention is to provide a dynamic face recognition method based on a novel adversarial learning deblurring theory, so as to solve the problem in the prior art that the adversarial network DeblurGAN_V2 cannot find the Nash equilibrium point and falls into an infinite loop, resulting in a slow recognition speed for blurred face images.
[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a dynamic face recognition method based on a novel adversarial learning deblurring theory, based on each original fuzzy face picture, executing step A to obtain a deblurred picture corresponding to each original fuzzy face picture, and then executing steps B to C to obtain a division set of the deblurred pictures under each classification threshold of the fuzziness change rate of the preset face picture, and then executing a face recognition method according to the division set of the deblurred pictures to obtain face recognition results of each original fuzzy face picture;
[0006] Step A: Based on the original blurred face picture as input and the corresponding deblurred picture as output, combined with the target training cutoff point function and the trained adversarial network DeblurGAN_V2 deblurring model, deblurring is performed on each original blurred face picture to obtain the deblurred picture corresponding to each blurred face picture, and then step B is entered;
[0007] Among them, the target training cutoff point function of the adversarial network DeblurGAN_V2 deblurring model includes a global adversarial loss function and a training cutoff point function. The global adversarial loss function is as follows:
[0008]
[0009] Among them, x g is the original blurred face image, P r is the clear picture data distribution, P g is the deblurred image data distribution, G en is the generator, D is is the discriminator, is the loss function, D is (x g ) is the output of the discriminator; the training cutoff function is:
[0010] e k =[max(||g k -g k+1 || ∞ ,||d k -d k+1 || ∞ )]×G true (1-D true ),
[0011] Among them, e k represents the training cutoff point, ||·|| ∞ represents the ∞-norm, G true represents the image passing rate of the generator, D true represents the recognition accuracy of the discriminator, g k represents the state of the generator after k iterations, d k represents the state of the discriminator after k iterations;
[0012] Step B: applying the face blur method to process the image after the first deblurring process, obtaining the blur of the image after the first deblurring process and the blur change rate of the image after the first deblurring process; then proceeding to step C;
[0013] Step C: According to the blurriness change rate of the image after a deblurring process, the preset classification thresholds of the blurriness change rates of the face image, and the blurriness of the image after a deblurring process, obtain each division set of the image after a deblurring process under the division interval combining the blurriness change rate of the image after a deblurring process and the blurriness of the image after a deblurring process.
[0014] Furthermore, in the aforementioned step B, the following steps B1 to B12 are performed for each of the images after the deblurring process:
[0015] Step B1: For the image after the primary deblurring process, the brightness mask threshold ΔL of the image after the primary deblurring process is calculated according to the following formula:
[0016]
[0017] Wherein, L0 represents the perceptible threshold of the human eye for the edge of the area with brightness 0, L represents the input intensity, and Γ is a preset constant;
[0018] Step B2: For the image after the first deblurring process, calculate the number of pixels in the N×N area B in the face image (x fu ,y fu ) is the brightness of the area centered at:
[0019]
[0020] Among them, B(x fu ,y fu ) represents the regional brightness of the image after the deblurring process. This is a deblurred image;
[0021] Step B3: Based on the brightness mask threshold ΔL of the first deblurred image and the regional brightness of the first deblurred image, the first deblurred image is updated according to the following formulas for brightness masking, background brightness enhancement, and spatial complexity, and the updated first deblurred image and the gradient value of the first deblurred image are obtained;
[0022]
[0023] Among them, M0 is the average spatial complexity of the image after a deblurring process, M(x fu ,y fu ) represents the pixel (x fu ,y fu ), ψ is a preset constant, It means that the image after deblurring after brightness masking is (x fu ,y fu), is the updated image gradient value after deblurring;
[0024] Step B4: for the image after the primary deblurring process, use wavelet transform to extract edges at each resolution level j according to the following formula, 0<j<J, to obtain pixel points of the detail contour map of the image after the primary deblurring process;
[0025]
[0026] Among them, J represents the highest resolution level, N hj Indicates the horizontal direction, N vj Indicates the vertical direction, C j (x fu ,y fu ) represents the pixel (x fu ,y fu ) corresponds to the pixel point of the detail contour map, T j represents the edge threshold;
[0027] Step B5: According to the pixel points of the detail contour map of the image after the first deblurring process, the following formula is used: Calculate the probability of detecting the edge of the perceived pixel point of the detailed contour map in the image after the deblurring process; where w(C j (x fu ,y fu )) is the detected edge pixel width, β represents the preset distortion constant, the value is fixed to 3.6, LE and WI represent the length and width of the image, w JNB Indicates the edge width of the just perceptible edge pixel, LC j (x fu ,y fu ) represents the probability of detecting the edge of the pixel point of the detail contour map, and |·| represents the absolute value;
[0028] Step B6: Based on the probability of detecting the edge of the pixel point of the detail contour map, according to the following formula:
[0029]
[0030] Calculate the perceived pixel edge map matrix PC j , among which, PC j (x fu ,y fu ) represents the perceptual edge map matrix;
[0031] Step B7: Calculate the mean of two adjacent pixel regions of the perceived edge map in the vertical and horizontal directions respectively:
[0032]
[0033]
[0034] Among them, PA hj (x fu ,y fu ) represents the mean of the two neighborhoods of the horizontally perceived edge map, PA vj (x fu ,y fu ) represents the mean of the two neighborhoods of the vertically perceived edge map;
[0035] Step B8: According to the following formula:
[0036]
[0037] Calculate the blurred pixels, where PNB j (x fu ,y fu ) means that at resolution j, the pixel (x fu ,y fu )’s blurred pixels;
[0038] Step B9: According to the following formula:
[0039] PNE j (x fu ,y fu )=1-PNB j (x fu ,y fu ),
[0040] Calculate clear pixels; among them, PNE j (x fu ,y fu ) means that at resolution j, the pixel (x fu ,y fu )’s clear pixels;
[0041] Step B10: Based on the obtained blurred pixels PNB at different resolution levels j and Clear Pixel PNE j , calculate the total number of blurred pixels PNB at different resolution levels j and the total number of clear pixels PNE j , and then according to the following formula:
[0042]
[0043] Calculate the fuzzy quality factor PQ j :
[0044] Step B11: According to the following formula:
[0045]
[0046] Calculate the face blur CI;
[0047] Among them, CI represents the blurriness of the face, PQ j represents the blur quality factor, j is the current resolution level, J is the maximum resolution level, and the score range obtained by calculating the blur of the face image in the above formula is [0,1]. As the blur of the face image increases, the quality score increases from 0 to 1;
[0048] Step B12: According to the face blur CI, the following formula is used:
[0049]
[0050] Calculate the face blur change rate CJ, that is, the face blur change rate of the image after the first deblurring process, where: Indicates the initial image number for calculating the blur change rate, represents the end image number of the blur change rate calculation, ξ represents the preset edge perception threshold constant, which is 0.63, and CJ represents the blur change rate of the face after one deblurring process.
[0051] Furthermore, in the aforementioned step C, based on the division threshold of the blurriness change rate of the picture after a deblurring process and the ranking of the face blurriness change rate of the picture after a deblurring process, the picture after a deblurring process is divided respectively to obtain three division sets S1, division set S2, and division set S3 of the picture after a deblurring process; based on the division set S3 and the blurriness of the picture after a deblurring process, the division set S3 is divided again to obtain division set S31 and division set S4 of the picture after a deblurring process; finally, the division set S1, division set S2, division set S31, and division set S4 are used as the division sets of the picture after a deblurring process.
[0052] Furthermore, the aforementioned dynamic face recognition method based on the new adversarial learning deblurring theory executes the face recognition method W1 for the once deblurred pictures in the partition set S1, the once deblurred pictures in the partition set S2, and the once deblurred pictures in the partition set S4 to obtain face recognition results; executes the face recognition method W2 for each once deblurred picture in the partition set S31 to obtain a second deblurred picture, and then executes the face recognition method W1 for each second deblurred picture to obtain a face recognition result.
[0053] Furthermore, the aforementioned face recognition method W1 specifically includes the following steps E1 to E3;
[0054] Step E1: Calculate the fuzzy face feature mapping matrix of the deblurred image, and then convert the fuzzy face feature mapping matrix of the deblurred image into the following formula:
[0055]
[0056] Calculate the fuzzy face feature similarity projection matrix of the deblurred image, where ε is the fuzzy face feature similarity projection matrix of the deblurred image, WI is the fuzzy face image width of the deblurred image, LE is the fuzzy face image length of the deblurred image, |·| represents the absolute value, dis(a,b) is the projection distance of the deblurred image in the mapping space, b is the ordinate of the deblurred image in the mapping space, and a is the abscissa of the deblurred image in the mapping space;
[0057] Step E2: Calculate the local feature descriptor of the blurred face of the deblurred image based on the ternary space fusion according to the following formula:
[0058]
[0059] in, It is the local feature descriptor of the blurred face in the deblurred image. It is the dimension element value of the local feature vector of the image after deblurring in a certain dimension. It is a deblurred image in physical space and information space. It is a deblurred image in the human cognitive space state;
[0060] Step E3: According to the following similarity measurement equation:
[0061]
[0062] Calculate the recognition result of the deblurred image; where, It is the z-th dimension element value of the facial features of the image after deblurring in the human cognitive space state. is the z-th dimension element value of the facial feature of the image after blurring in the physical space and information space states, (x f ,y f ) is the pixel coordinate of the deblurred image, is the face similarity recognition status of the image after deblurring in the ternary space, is the similarity measure equation.
[0063] Furthermore, the aforementioned face recognition method W2 is specifically comprised of the following steps G1 to G5; Step G1: according to the following formula:
[0064]
[0065] The deblurring processing module of the face recognition method W2 is established, where ||·||1 represents the 1-norm, H is the blurred image, cl is the clear image, and fc is the convolution kernel, i.e., the blur kernel. represents the convolution operation, γ and μ are constants, E fc (fc) represents the degenerate mean of the blur kernel, E cl (cl) represents the degradation mean of the clear image; then enter step G2;
[0066] Step G2: For the primary deblurring processing module of face recognition method W2, according to the following formula:
[0067]
[0068] The primary deblurring module of the face recognition method W2 reduces irrelevant details and enhances significant edges when extracting the significant edges of the blurred face in the deblurred image; wherein N(x) represents the area centered on x, ε is a constant, represents the edge change model, It represents the gradient solution of the vertical coordinate of the image after the initial deblurring process. Represents the square of the 2-norm, through To distinguish significant edges and flat areas, use the gradient value e v Represents the gradient magnitude, the gradient vector e u Indicates the gradient direction; then enters step G3;
[0069] Step G3: For the deblurred image, use the following formula:
[0070]
[0071]
[0072] Extract the salient edges of the blurred face image: where H y and H x They are the vertical and horizontal gradients of the blurred face in the deblurred image, ||·|| 0.8 represents the 0.8th power of the 1-norm, w adaptively enhances and weakens edges, which can enhance significant edges and ignore unimportant details, θ x and θ y Indicates the horizontal and vertical significant edges of the image after deblurring; then proceeds to step G4;
[0073] Step G4: For the primary deblurring processing module of the face recognition method W2, the primary deblurring processing module is rewritten using the Laplace prior method to obtain a secondary deblurring processing model:
[0074]
[0075] in, It means to find the partial derivative of the horizontal coordinate x of the clear face image. It means to find the partial derivative of the ordinate y of the clear face image, |·| 0.8 represents the absolute value to the power of 0.8; then proceed to step G5:
[0076] Step G5: Solve fc in the secondary deblurring module, that is, obtain the image after secondary deblurring, and use the following IRLS method to convert the iterative solution into the least squares weighted form:
[0077]
[0078] in, t represents the iteration round, cl (t) represents the clear image after t iterations, ω f represents the image blur parameter constant, represents the motion blur parameter constant, It means to find the partial derivative of the ordinate y of the clear face image after t iterations, It means to find the partial derivative of the horizontal coordinate x of the updated image after t iterations, and |·| means to take the absolute value.
[0079] Furthermore, the aforementioned blur change rate division thresholds are threshold |CJ|=0, threshold |CJ|=2%, and threshold |CJ|=30%, and the blur change rate threshold of the image after one deblurring process is |CI|=0.3; a division set S1 is obtained under the face blur change rate division of 0≤|CJ|<2%, a division set S2 under the face blur change rate |CJ|﹥30%, a division set S4 under the face blur change rate division of 2%≤|CJ|≤30% and the face blur |CI|<0.3, and a division set S31 under the face blur change rate division of 2%≤|CJ|≤30% and the face blur |CI|≥0.3.
[0080] Furthermore, the aforementioned dynamic face recognition method based on the novel adversarial learning defuzzification theory selects 45%≤e k ≤55% was used as the training cutoff point.
[0081] The dynamic face recognition method based on the novel adversarial learning deblurring theory described in the present invention has the following technical effects compared with the prior art by using the above technical scheme: Beneficial effect: The present invention adopts the novel DeblurGAN_V2 to perform deblurring operation on the image, proposes a new training cutoff method, solves the problem of difficulty in training the generative adversarial network model, and in order to avoid problems in deblurring for generators that are not fully trained, a face blur calculation method is introduced for the deblurred image according to the blur change rate to classify the output images, and different processing is performed on blurry face images under different classifications, and deblurred post-processing optimization results are added to improve the speed of recognizing blurry face images, which has a wide range of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 is a flow chart of the present invention;
[0083] Figure 2 It is the DeblurGAN_V2 generator network structure;
[0084] Figure 3 It is the DeblurGAN_V2 discriminator network structure;
[0085] Figure 4 This is the flow chart for calculating the blur change rate of face images. DETAILED DESCRIPTION
[0086] In order to better understand the technical content of the present invention, a specific embodiment is given and described as follows with the accompanying drawings: The present invention provides a dynamic face recognition method based on a new adversarial learning defuzzification theory, such as Figure 1 As shown in the figure, firstly, a new training cutoff method is proposed based on DeblurGAN_V2, which improves the training speed of the generative adversarial network and avoids the problem of falling into an infinite loop due to failure to find the Nash equilibrium point. This new generative adversarial network is used to deblur the input image. Then, a face blur evaluation model is proposed. The images generated by the generator are classified according to the face blur change rate, and different operations are performed on the images under each category. For images with too high or too low change rates, the DeblurGAN_V2 deblurring algorithm is abandoned and face recognition is performed directly. For images with neither high nor low change rates, a deblurring post-processing module is added before face recognition. Specifically:
[0087] Step A: Based on the original blurred face picture as input and the corresponding deblurred picture as output, combined with the target training cutoff point function and the trained adversarial network DeblurGAN_V2 deblurring model, deblurring is performed on each original blurred face picture to obtain the deblurred picture corresponding to each blurred face picture, and then step B is entered;
[0088] Step B: applying the face blur method to process the image after the first deblurring process, obtaining the blur of the image after the first deblurring process and the blur change rate of the image after the first deblurring process; then proceeding to step C;
[0089] Step C: According to the blur change rate of the image after the first deblurring process, the classification thresholds of the blur change rates of the preset face image blur, and the blur of the image after the first deblurring process, obtain each partition set of the image after the first deblurring process under the partition interval combining the blur change rate of the image after the first deblurring process and the blur of the image after the first deblurring process. Obtain three partition sets S1, S2, and S3 of the image after the first deblurring process; based on the partition set S3 and the blur of the image after the first deblurring process, divide the partition set S3 again to obtain the partition set S31 and S4 of the image after the first deblurring process; finally, use the partition set S1, S2, S31, and S4 as the partition sets of the image after the first deblurring process.
[0090] For the once deblurred pictures in the partition set S1, the once deblurred pictures in the partition set S2, and the once deblurred pictures in the partition set S4, the face recognition method is directly executed to obtain the face recognition results; for the once deblurred pictures in the partition set S31, the face recognition method W2 is executed, that is, the deblurring processing module shown in the figure, to obtain the second deblurred pictures, and then the face recognition method is executed on the second deblurred pictures to obtain the face recognition results.
[0091] like Figure 2The DeblurGAN_V2 generator network structure shown in the figure builds a new conditional generative adversarial network framework specifically for deblurring algorithms. For the generator, the feature pyramid network FeaturePyramid Deblurring is used, and FPN is used as the overall basic framework. The generator of DeblurGAN_V2 consists of three feature pyramid backbone networks. The first feature pyramid consists of five layers of networks. Except for the top layer which is composed of only one convolutional layer, the other four layers are composed of the maximum pooling layer and the convolutional layer. The second feature pyramid is still composed of five layers of networks. Except for the top layer which is composed of the convolutional layer, the other four layers are composed of upsampling layers, additional layers and convolutional layers. The convolution output of the previous pyramid constitutes the upsampling layer of the corresponding network layer of the pyramid. The third feature pyramid consists of only three layers of networks. The top layer consists of two connection layers and one convolutional layer, the middle layer consists of upsampling layers, additional layers and convolutional layers, and the bottom layer consists of upsampling layers and convolutional layers. The convolution outputs of the first four convolutional layers of the previous feature pyramid are first input into the maximum pooling layer for pooling. The convolution output of the last layer of the previous feature pyramid is convolved and then input into the middle layer of the pyramid for upsampling, and finally mapped to the bottom layer and output the result, which is the final blurred face image.
[0092] like Figure 3 The DeblurGAN_V2 discriminator network structure shown in the figure uses a relative discriminant structure to form the discriminator. For the same blurry or clear image, in addition to inputting it into the global discriminator to generate a penalty loss function, it is also necessary to perform local random slicing on the image, input the sliced image into the local discriminator and generate a penalty loss function, integrate the two loss functions to penalize the generator, and supervise the learning process of the generator.
[0093] In the actual use and training process of DeblurGAN_V2, it can be found that it is difficult to find the Nash equilibrium point where the pass rate of the blurred image generated by the generator reaches 100% and the accuracy of the discriminator reaches 50%. This is mainly because the equilibrium point of the generative adversarial network is difficult to detect. It is necessary to repeatedly stop the network to measure the data and make adjustments. Without intuitive monitoring methods, it often falls into an infinite loop and cannot find the Nash equilibrium point. Moreover, although DeblurGAN_V2 has increased its speed by dozens of times compared to the V1 version, and the deblurring effect of the overall image is also very good, its speed still cannot meet the real-time requirements of face recognition. The code has a certain robustness for face blur. The key lies in whether the key facial feature points can be detected. In other words, if the facial feature points can be detected, it is not necessary to rigidly deblur the facial image to the Nash equilibrium point. Therefore, it is necessary to find a new method other than the Nash equilibrium point to stop the generative adversarial network. Although the generator has not reached the optimal state at this time, its deblurring algorithm has reached the requirements of face recognition and can perform further face recognition. This not only avoids the situation of not being able to find a demanding Nash equilibrium point, but also speeds up the training and running speeds. Therefore, based on the original blurred face image as input and the corresponding deblurred image as output, combined with the target training cutoff point function and the trained adversarial network DeblurGAN_V2 deblurring model, the original blurred face image is deblurred to obtain the deblurred image corresponding to the blurred face image, specifically:
[0094] First, initialize it, For any initialized image (g0, d0), g0 represents the initial state of the generator, d0 represents the initial state of the discriminator, and the following problem can be solved to obtain d1∈D:
[0095]
[0096] Among them, <·> represents the inner product, d represents the current state of the discriminator, d1 represents the state of the discriminator after the first iteration, D represents the recognition record of the discriminator, and G represents the generation record of the generator. and is a constant, and then iterative calculation is performed. For a given state (g k ,d k ,d k-1 ), respectively solve the following variational inequalities, and we can get the optimal strategy g in the current situation. k+1 ∈G and d k+1 ∈D:
[0097]
[0098] Among them, <·> represents the inner product, Υ and l represent constants, g represents the current state of the generator, and g k represents the state of the generator after k iterations, d k Represents the state of the discriminator after k iterations, record W = G × D, and we have:
[0099]
[0100] Among them, w represents the overall state of the generative adversarial network, I represents the identity matrix, and D(w k+1 ,w k ,w k-1 ) represents the state of the discriminator after k iterations. At this time, the above formula can be written in the following compact form:
[0101]
[0102] Among them, <·> represents the inner product, and the termination condition is:
[0103] e k =[max(||g k -g k+1 || ∞ ,||d k -d k+1 || ∞ )]×G true (1-D true ),
[0104] Among them, e k represents the training cutoff point, ||·|| ∞ represents the ∞-norm, G true represents the image passing rate of the generator, D true Represents the recognition accuracy of the discriminator. For the Nash equilibrium point, e k =50%.
[0105] like Figure 4 As shown in the figure, the flow chart of the calculation of the blur change rate of the face image is shown. For each image after the deblurring process, the following steps B1 to B12 are performed:
[0106] Step B1: For the image after the primary deblurring process, the brightness mask threshold ΔL of the image after the primary deblurring process is calculated according to the following formula: Wherein, L0 represents the perceptible threshold of the human eye for the edge of the area with brightness 0, L represents the input intensity, and Γ is a preset constant;
[0107] Step B2: For the image after the first deblurring process, calculate the number of (x fu ,y fu ) is the brightness of the area centered at:
[0108]
[0109] Among them, B(x fu ,y fu ) represents the regional brightness of the image after a deblurring process. This is a deblurred image;
[0110] Step B3: Based on the brightness mask threshold ΔL of the first deblurred image and the regional brightness of the first deblurred image, the first deblurred image is updated according to the following formulas for brightness masking, background brightness enhancement, and spatial complexity, and the updated first deblurred image and the gradient value of the first deblurred image are obtained;
[0111]
[0112] Among them, M0 is the average spatial complexity of the image after a deblurring process, M(x fu ,y fu ) represents the pixel (x fu ,y fu ), ψ is a preset constant, It means that the image after deblurring after brightness masking is (x fu ,y fu ), is the updated image gradient value after deblurring;
[0113] Step B4: for the image after the first deblurring process, use wavelet transform to extract edges at each resolution level j according to the following formula, 0<j<J, and obtain pixel points of the detail contour map of the image after the first deblurring process;
[0114]
[0115] Among them, J represents the highest resolution level, N hj Indicates the horizontal direction, N vj Indicates the vertical direction, C j (x fu ,y fu ) represents the pixel (x fu ,y fu ) corresponds to the pixel point of the detail contour map, T j represents the edge threshold;
[0116] Step B5: According to the pixel points of the detail contour map of the image after the first deblurring process, the following formula is used:
[0117]
[0118] Calculate the probability of detecting the edge of the perceived pixel point of the detailed contour map in the image after a deblurring process; where w(C j (x fu ,y fu )) is the detected edge pixel width, β represents the preset distortion constant, the value is fixed to 3.6, LE and WI represent the length and width of the image, w JNB Indicates the edge width of the just perceptible edge pixel, LC j (x fu ,y fu ) represents the probability of detecting the edge of the pixel point of the detail contour map, and |·| represents the absolute value;
[0119] Step B6: Based on the probability of detecting the edge of the pixel point of the detail contour map, according to the following formula:
[0120]
[0121] Calculate the perceived pixel edge map matrix PC j , among which, PC j (x fu ,y fu ) represents the perceptual edge map matrix;
[0122] Step B7: Calculate the mean of two adjacent pixel regions of the perceived edge map in the vertical and horizontal directions respectively:
[0123]
[0124]
[0125] Among them, PA hj (x fu ,y fu ) represents the mean of the two neighborhoods of the horizontally perceived edge map, PA vj (x fu ,y fu ) represents the mean of the two neighborhoods of the vertically perceived edge map;
[0126] Step B8: According to the following formula:
[0127]
[0128] Calculate the blurred pixels, where PNB j (x fu ,y fu ) means that at resolution j, the pixel (x fu ,y fu )’s blurred pixels;
[0129] Step B9: According to the following formula:
[0130] PNE j (x fu ,y fu )=1-PNB j (x fu ,y fu ),
[0131] Calculate clear pixels; among them, PNE j (x fu ,y fu ) means that at resolution j, the pixel (x fu ,y fu )’s clear pixels;
[0132] Step B10: Based on the obtained blurred pixels PNB at different resolution levels j and Clear Pixel PNE j , calculate the total number of blurred pixels PNB at different resolution levels j and the total number of clear pixels PNE j , and then according to the following formula:
[0133]
[0134] Calculate the fuzzy quality factor PQ j :
[0135] Step B11: According to the following formula:
[0136]
[0137] Calculate the face blur CI; where CI represents the face blur, PQ j represents the blur quality factor, j is the current resolution level, J is the maximum resolution level, and the score range obtained by calculating the blur of the face image in the above formula is [0,1]. As the blur of the face image increases, the quality score increases from 0 to 1;
[0138] Step B12: According to the face blur CI, the following formula is used:
[0139]
[0140] Calculate the face blur change rate CJ, that is, the face blur change rate of the image after the first deblurring process, where: Indicates the initial image number for calculating the blur change rate, represents the end image number of the blur change rate calculation, ξ represents the preset edge perception threshold constant, which is 0.63, and CJ represents the blur change rate of the face after one deblurring process.
[0141] e k It represents the cutoff value when the training of the generative adversarial network is terminated. Since the standard Nash equilibrium point is difficult to find, it is changed to: When the data training is completed, if 45% ≤ e k ≤55%, the training is terminated and the next operation is performed. Since the standard Nash equilibrium point has not been reached at this time, it is impossible to conclude whether the generator can perfectly deblur the image, so here we discuss the pictures generated by the generator in different situations.
[0142] Table 1. Results of deblurring multiple images using DeblurGAN_V2:
[0143]
[0144] Since 45% ≤ e k When the percentage is less than or equal to 55%, the training of DeblurGAN_V2 is stopped, and the standard Nash equilibrium point e is not reached. k =50%, so the face blur change rate is introduced to discuss the pictures generated by the generator. When 0≤|CJ|<2% or |CJ|﹥30%, it means that the face blur change rate is too low or too high. The former means that the generated picture is too stable. If the Nash equilibrium point is really reached, the change rate can change within the range of 2%, but the Nash equilibrium point is not reached here, so this stable change is a disguised explanation of DeblurGAN_V2 failure, and the next step of face recognition should be carried out directly. The latter means that the face blur change rate is too high. For the same batch of pictures, some pictures have good deblurring effects, while some pictures have poor deblurring effects. This also means that the training of the generative adversarial network has failed and the generator has failed. At this time, the next step of face recognition should be carried out directly. When 2%≤|CJ|≤30%, it means that the face blur change rate is neither high nor low, which just meets the previously set 45%≤e k The result control of the balance point range of ≤55% indicates that the generator is effective but has not reached the best state. At this time, it can be sharpened and blunted by adding post-processing.
[0145] At 45% ≤ e k When |CI|≥0.3 is used as the dividing line, and the face blurriness is greater than 0.3, it means that the generator is effective but fails to deblur the face image well. In this case, post-processing is added to further deblur the face image.
[0146] Face recognition method W2, namely Figure 1 The deblurring post-processing module includes the following steps G1 to G5;
[0147] Step G1: According to the following formula:
[0148]
[0149] The deblurring processing module of the face recognition method W2 is established, where ||·||1 represents the 1-norm, H is the blurred image, cl is the clear image, and fc is the convolution kernel, i.e., the blur kernel. represents the convolution operation, γ and μ are constants, E fc (fc) represents the degenerate mean of the blur kernel, E cl (cl) represents the degradation mean of the clear image; then enter step G2;
[0150] Step G2: For the primary deblurring processing module of face recognition method W2, according to the following formula:
[0151]
[0152] The primary deblurring module of the face recognition method W2 reduces irrelevant details and enhances significant edges when extracting the significant edges of the blurred face in the deblurred image; wherein N(x) represents the area centered on x, ε is a constant, represents the edge change model, represents the gradient solution of the ordinate of the initial deblurred image, Represents the square of the 2-norm, through To distinguish significant edges and flat areas, use the gradient value e v Represents the gradient magnitude, the gradient vector e u Indicates the gradient direction; then enters step G3;
[0153] Step G3: For the deblurred image, use the following formula:
[0154]
[0155]
[0156] Extract the salient edges of the blurred face image, where H y and H x They are the vertical and horizontal gradients of the blurred face in the deblurred image, ||·|| 0.8 represents the 0.8th power of the 1-norm, w adaptively enhances and weakens edges, which can enhance significant edges and ignore unimportant details, θ x and θ y Indicates the horizontal and vertical significant edges of the image after deblurring; then proceeds to step G4;
[0157] Step G4: For the primary deblurring processing module of the face recognition method W2, the primary deblurring processing module is rewritten using the Laplace prior method to obtain a secondary deblurring processing model:
[0158]
[0159] in, It means to find the partial derivative of the horizontal coordinate x of the clear face image. It means to find the partial derivative of the ordinate y of the clear face image, |·| 0.8 represents the absolute value to the power of 0.8; then proceed to step G5:
[0160] Step G5: Solve fc in the secondary deblurring module, that is, obtain the image after secondary deblurring, and use the following IRLS method to convert the iterative solution into the least squares weighted form:
[0161]
[0162] in, t represents the iteration round, cl (t) represents the clear image after t iterations, ω f represents the image blur parameter constant, represents the motion blur parameter constant, It means to find the partial derivative of the ordinate y of the clear face image after t iterations, It means to find the partial derivative of the horizontal coordinate x of the updated image after t iterations, and |·| means to take the absolute value.
[0163] Various aspects of the invention are described herein with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the invention are not limited to those shown in the accompanying drawings. It should be understood that the invention is implemented by any of the various concepts and embodiments described above, as well as the concepts and embodiments described in detail below, because the concepts and embodiments disclosed in the invention are not limited to any implementation. In addition, some aspects disclosed in the invention may be used alone or in any appropriate combination with other aspects disclosed in the invention.
[0164] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.
Claims
1. A dynamic face recognition method based on a novel adversarial learning defuzzification theory, characterized in that: Based on each original blurred face image, executing step A to obtain a first deblurred image corresponding to each original blurred face image, and then executing steps B to C to obtain a division set of the first deblurred images under each classification threshold of the blurriness change rate of the preset face image, and then executing a face recognition method according to the division set of the first deblurred images to obtain a face recognition result of each original blurred face image; Step A: Based on the original blurred face picture as input and the corresponding deblurred picture as output, combined with the target training cutoff point function and the trained adversarial network DeblurGAN_V2 deblurring model, deblurring is performed on each original blurred face picture to obtain the deblurred picture corresponding to each blurred face picture, and then step B is entered; Among them, the target training cutoff point function of the adversarial network DeblurGAN_V2 deblurring model includes a global adversarial loss function and a training cutoff point function. The global adversarial loss function is as follows: Among them, x g is the original blurred face image, P r is the clear picture data distribution, P g is the deblurred image data distribution, G en is the generator, D is is the discriminator, is the loss function, D is (x g ) is the output of the discriminator; the training cutoff function is: e k =[max(||g k -g k+1 || ∞ ,||d k -d k+1 || ∞ )]×G true (1-D true ), Among them, e k represents the training cutoff point, ||·|| ∞ represents the ∞-norm, G true represents the image passing rate of the generator, D true represents the recognition accuracy of the discriminator, g k represents the state of the generator after k iterations, d k represents the state of the discriminator after k iterations; Step B: applying the face blur method to process the image after the first deblurring process, obtaining the blur of the image after the first deblurring process and the blur change rate of the image after the first deblurring process; then proceeding to step C; Step C: According to the blurriness change rate of the image after a deblurring process, the preset classification thresholds of the blurriness change rates of the face image, and the blurriness of the image after a deblurring process, obtain each division set of the image after a deblurring process under the division interval combining the blurriness change rate of the image after a deblurring process and the blurriness of the image after a deblurring process.
2. The dynamic face recognition method based on the novel adversarial learning defuzzification theory according to claim 1 is characterized in that: In the step B, the following steps B1 to B12 are performed for each image after the deblurring process: Step B1: For the image after the primary deblurring process, the brightness mask threshold ΔL of the image after the primary deblurring process is calculated according to the following formula: Wherein, L0 represents the perceptible threshold of the human eye for the edge of the area with brightness 0, L represents the input intensity, and Γ is a preset constant; Step B2: For the image after the first deblurring process, calculate the number of pixels in the N×N area B in the face image (x fu ,y fu ) is the brightness of the area centered at: Among them, B(x fu ,y fu ) represents the regional brightness of the image after the deblurring process. This is a deblurred image; Step B3: Based on the brightness mask threshold ΔL of the first deblurred image and the regional brightness of the first deblurred image, the first deblurred image is updated according to the following formulas for brightness masking, background brightness enhancement, and spatial complexity, and the updated first deblurred image and the gradient value of the first deblurred image are obtained; Among them, M0 is the average spatial complexity of the image after a deblurring process, M(x fu ,y fu ) represents the pixel (x fu ,y fu ), ψ is a preset constant, It means that the image after deblurring after brightness masking is (x fu ,y fu ), is the updated image gradient value after deblurring; Step B4: for the image after the primary deblurring process, use wavelet transform to extract edges at each resolution level j according to the following formula, 0<j<J, to obtain pixel points of the detail contour map of the image after the primary deblurring process; Among them, J represents the highest resolution level, N hj Indicates the horizontal direction, N vj Indicates the vertical direction, C j (x fu ,y fu ) represents the pixel (x fu ,y fu ) corresponds to the pixel point of the detail contour map, T j represents the edge threshold; Step B5: According to the pixel points of the detail contour map of the image after the first deblurring process, the following formula is used: Calculate the probability of detecting the edge of the perceived pixel point of the detailed contour map in the image after the deblurring process; where w(C j (x fu ,y fu )) is the detected edge pixel width, β represents the preset distortion constant, the value is fixed to 3.6, LE and WI represent the length and width of the image, w JNB Indicates the edge width of the just perceptible edge pixel, LC j (x fu ,y fu ) represents the probability of detecting the edge of the pixel point of the detail contour map, and |·| represents the absolute value; Step B6: Based on the probability of detecting the edge of the pixel point of the detail contour map, according to the following formula: Calculate the perceived pixel edge map matrix PC j , among which, PC j (x fu ,y fu ) represents the perceptual edge map matrix; Step B7: Calculate the mean of two adjacent pixel regions of the perceived edge map in the vertical and horizontal directions respectively: Among them, PA hj (x fu ,y fu ) represents the mean of the two neighborhoods of the horizontally perceived edge map, PA vj (x fu ,y fu ) represents the mean of the two neighborhoods of the vertically perceived edge map; Step B8: According to the following formula: Calculate the blurred pixels, where PNB j (x fu ,y fu ) means that at resolution j, the pixel (x fu ,y fu )’s blurred pixels; Step B9: According to the following formula: PNE j (x fu ,y fu )=1-PNB j (x fu ,y fu ), Calculate clear pixels; among them, PNE j (x fu ,y fu ) means that at resolution j, the pixel (x fu ,y fu )’s clear pixels; Step B10: Based on the obtained blurred pixels PNB at different resolution levels j and Clear Pixel PNE j , calculate the total number of blurred pixels PNB at different resolution levels j and the total number of clear pixels PNE j , and then according to the following formula: Calculate the fuzzy quality factor PQ j : Step B11: According to the following formula: Calculate the face blur CI; Among them, CI represents the blurriness of the face, PQ j represents the blur quality factor, j is the current resolution level, J is the maximum resolution level, and the score range obtained by calculating the blur of the face image in the above formula is [0,1]. As the blur of the face image increases, the quality score increases from 0 to 1; Step B12: According to the face blur CI, the following formula is used: Calculate the face blur change rate CJ, that is, the face blur change rate of the image after the first deblurring process, where: Indicates the initial image number for calculating the blur change rate, represents the end image number of the blur change rate calculation, ξ represents the preset edge perception threshold constant, which is 0.63, and CJ represents the blur change rate of the face after one deblurring process.
3. The dynamic face recognition method based on the novel adversarial learning defuzzification theory according to claim 1 is characterized in that: In the step C, based on the division threshold of the blurriness change rate of the picture after the first deblurring process and the ranking of the face blurriness change rate of the picture after the first deblurring process, the picture after the first deblurring process is divided respectively to obtain three division sets S1, division set S2, and division set S3 of the picture after the first deblurring process; based on the division set S3 and the blurriness of the picture after the first deblurring process, the division set S3 is divided again to obtain the division set S31 and division set S4 of the picture after the first deblurring process; finally, the division set S1, division set S2, division set S31, and division set S4 are used as the division sets of the picture after the first deblurring process.
4. The dynamic face recognition method based on the novel adversarial learning defuzzification theory according to claim 3 is characterized in that: For the once deblurred pictures in the partition set S1, the once deblurred pictures in the partition set S2, and the once deblurred pictures in the partition set S4, the face recognition method W1 is executed to obtain face recognition results; for each once deblurred picture in the partition set S31, the face recognition method W2 is executed to obtain a second deblurred picture, and then for each second deblurred picture, the face recognition method W1 is executed to obtain a face recognition result.
5. The dynamic face recognition method based on the novel adversarial learning defuzzification theory according to claim 4 is characterized in that: The face recognition method W1 specifically includes the following steps E1 to E3; Step E1: Calculate the fuzzy face feature mapping matrix of the deblurred image, and then convert the fuzzy face feature mapping matrix of the deblurred image into the following formula: Calculate the fuzzy face feature similarity projection matrix of the deblurred image, where ε is the fuzzy face feature similarity projection matrix of the deblurred image, WI is the fuzzy face image width of the deblurred image, LE is the fuzzy face image length of the deblurred image, |·| represents the absolute value, dis(a,b) is the projection distance of the deblurred image in the mapping space, b is the ordinate of the deblurred image in the mapping space, and a is the abscissa of the deblurred image in the mapping space; Step E2: Calculate the local feature descriptor of the blurred face of the deblurred image based on the ternary space fusion according to the following formula: in, It is the local feature descriptor of the blurred face in the deblurred image. is the dimension element value of the local feature vector of the image after deblurring in a certain dimension, χ is the deblurred image in physical space and information space, It is a deblurred image in the human cognitive space state; Step E3: According to the following similarity measurement equation: Calculate the recognition result of the deblurred image; where, It is the z-th dimension element value of the facial features of the image after deblurring in the human cognitive space state. is the z-th dimension element value of the facial feature of the image after blurring in the physical space and information space states, (x f ,y f ) is the pixel coordinate of the deblurred image, is the face similarity recognition status of the image after deblurring in the ternary space, is the similarity measure equation.
6. The dynamic face recognition method based on the novel adversarial learning defuzzification theory according to claim 5 is characterized in that: The face recognition method W2 specifically includes the following steps G1 to G5; Step G1: According to the following formula: The deblurring processing module of the face recognition method W2 is established, where ||·||1 represents the 1-norm, H is the blurred image, cl is the clear image, and fc is the convolution kernel, i.e., the blur kernel. represents the convolution operation, γ and μ are constants, E fc (fc) represents the degenerate mean of the blur kernel, E cl (cl) represents the degradation mean of the clear image; then enter step G2; Step G2: For the primary deblurring processing module of face recognition method W2, according to the following formula: The primary deblurring module of the face recognition method W2 reduces irrelevant details and enhances significant edges when extracting the significant edges of the blurred face in the deblurred image; wherein N(x) represents the area centered on x, ε is a constant, represents the edge change model, It represents the gradient solution of the vertical coordinate of the image after the initial deblurring process. Represents the square of the 2-norm, through To distinguish significant edges and flat areas, use the gradient value e v Represents the gradient magnitude, gradient vector e u Indicates the gradient direction; then enters step G3; Step G3: For the deblurred image, use the following formula: Extract the salient edges of the blurred face image: where H y and H x They are the vertical and horizontal gradients of the blurred face in the deblurred image, ||·|| 0.8 represents the 0.8th power of the 1-norm, w adaptively enhances and weakens edges, which can enhance significant edges and ignore unimportant details, θ x and θ y Indicates the horizontal and vertical significant edges of the image after deblurring; then proceeds to step G4; Step G4: For the primary deblurring processing module of the face recognition method W2, the primary deblurring processing module is rewritten using the Laplace prior method to obtain a secondary deblurring processing model: in, It means to find the partial derivative of the horizontal coordinate x of the clear face image. It means to find the partial derivative of the ordinate y of the clear face image, |·| 0.8 represents the absolute value to the power of 0.8; then proceed to step G5: Step G5: Solve fc in the secondary deblurring module, that is, obtain the image after secondary deblurring, and use the following IRLS method to convert the iterative solution into the least squares weighted form: in, t represents the iteration round, cl (t) represents the clear image after t iterations, ω f represents the image blur parameter constant, represents the motion blur parameter constant, It means to find the partial derivative of the ordinate y of the clear face image after t iterations, It means taking the partial derivative of the horizontal coordinate x of the updated image after t iterations, and |·| means taking the absolute value.
7. The dynamic face recognition method based on the novel adversarial learning defuzzification theory according to claim 3 is characterized in that: The blur change rate division thresholds are threshold |CJ|=0, threshold |CJ|=2%, and threshold |CJ|=30%. The blur change rate threshold of the image after one deblurring process is |CI|=0.
3. The division set S1 under the face blur change rate 0≤|CJ|<2%, the division set S2 under the face blur change rate |CJ|﹥30%, the division set S4 under the face blur change rate 2%≤|CJ|≤30% and the face blur |CI|<0.3, and the division set S31 under the face blur change rate 2%≤|CJ|≤30% and the face blur |CI|≥0.3 are obtained.
8. The dynamic face recognition method based on the novel adversarial learning defuzzification theory according to claim 1 is characterized in that: Select 45%≤e k ≤55% was used as the training cutoff point.
Citation Information
Patent Citations
Deblurring method, system and device based on conditional generative adversarial network and medium
CN112541877A
Image motion blur removing method based on improved cyclic generative adversarial network
CN112634163A
