A backlight-resistant face recognition system and method
Through wavelet transform and frequency domain perception technology, the face image is decomposed into sub-band components, and the language guidance and frequency domain perception modules are combined for backlight recovery and feature extraction, which solves the problem of low face recognition accuracy in backlight environments and achieves Higher recognition accuracy and detail retention.
Patent Information
- Application Number
- CN202410752385.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-12
AI Technical Summary
The recognition accuracy of the face recognition system in a backlight environment is not ideal. The traditional method will cause the loss of details in high-light scenes and cannot meet the feature requirements of face recognition.
Use wavelet transform to decompose the image into four sub-band components, use the vertical filtered sub-band components to perform rough backlight restoration, and extract high-frequency component features in horizontal filtering, diagonal filtering, and high-frequency filtering through frequency domain perception, combined with diffusion The sharp variables generated by the model are fused and identified.
It improves the accuracy of face recognition in backlight environments, retains detailed information in high-light scenes, and enhances facial feature extraction capabilities.
Smart Images

Figure CN118334731B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of face recognition, and in particular to an anti-backlight face recognition system and method. Background Art
[0002] Facial recognition technology is a biometric-based identity recognition technology that accurately confirms individual identities by collecting, processing and comparing facial images. With the rapid development of artificial intelligence and computer vision technology, facial recognition systems can learn and extract advanced features from facial images through deep neural networks, thereby achieving accurate recognition and classification. Facial recognition technology is widely used in the security field. At the same time, it is also widely used in daily applications such as mobile phone unlocking, payment verification and social media, providing users with a convenient and secure way of identity authentication.
[0003] In face recognition, backlighting often causes factors such as shadows and highlights to appear in face images, which seriously affect the clarity of facial features and make traditional face recognition methods ineffective. The most direct solution to the backlighting problem in face recognition is to restore the image in the backlighting state. Common methods include histogram equalization, adaptive contrast enhancement, generative adversarial networks, etc. However, these methods will result in a large loss of details in scenes with highlights, thus failing to meet the feature requirements of face recognition. Therefore, how to provide a backlight-resistant face recognition system with higher recognition accuracy is a technical problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the above-mentioned problems in the prior art, the present invention provides an anti-backlight face recognition system, which aims to solve the problem that the recognition accuracy of face image recognition in a backlight environment provided by the prior art is not ideal.
[0005] The present invention provides an anti-backlight face recognition system, the system comprising:
[0006] An image preprocessing module, wherein the image preprocessing module is configured to perform wavelet transform processing on the received target face image, and perform vertical filtering, horizontal filtering, diagonal filtering, and high-frequency filtering on the wavelet transform result to obtain four sub-band components;
[0007] A language guidance module, wherein the language guidance module is configured to perform backlighting coarse restoration on the target face image using a vertical filtering subband component to obtain a coarse restoration feature;
[0008] A frequency domain sensing module, wherein the frequency domain sensing module is configured to extract high frequency component features in the horizontal filtering sub-band components, the diagonal filtering sub-band components, and the high frequency filtering sub-band components;
[0009] A face recognition module is configured to generate a detection feature value of a target face image based on the rough recovery feature, the high-frequency component feature and the sharp variable obtained by performing forward diffusion of the vertical filter subband component, and use the detection feature value to identify the identity information of the target face image.
[0010] Optionally, the image preprocessing module specifically includes:
[0011] A wavelet transform processing unit, wherein the wavelet transform processing unit is configured to perform wavelet transform processing on the received target face image;
[0012] Among them, the expression of wavelet transform processing is specifically:
[0013] ;
[0014] in, is the result of wavelet transform, s is the scale, I(m,n) is the image I in The value at (k, l) is the position of the wavelet, is the selected wavelet basis function;
[0015] An image decomposition unit is configured to decompose the wavelet transform result Decompose the image to obtain the vertical filtering subband components , horizontal filtering subband component , diagonal filtering subband components and high frequency filter subband components ;
[0016] Where K represents the order.
[0017] Optionally, the language guidance module specifically includes:
[0018] A loss function construction unit, wherein the loss function construction unit is configured to generate a total loss function using the vertical filtering subband components and an image obtained by artificial illumination enhancement;
[0019] A low-light image enhancement unit is configured to construct a low-light image enhancement model based on the total loss function, and use the low-light image enhancement model to perform backlighting coarse restoration on the target face image to obtain coarse restoration features.
[0020] Optionally, the loss function construction unit specifically includes:
[0021] A CLIP loss determination unit is configured to obtain two preset guide templates, process the preset guide templates and the vertical filter subband components using an image encoder and a text encoder, and obtain a CLIP loss ;
[0022] An MSE loss determination unit is configured to calculate the MSE loss between the image after artificial illumination enhancement and the unenhanced image. ;
[0023] A total loss function generating unit, wherein the total loss function generating unit is configured to generate a total loss function according to the CLIP loss and MSE loss , generate the total loss function;
[0024] Among them, the expression of the total loss function is specifically:
[0025] ;
[0026] Among them, L is the total loss function.
[0027] Optionally, the CLIP loss The expression is:
[0028] ;
[0029] in, is the image encoder, For text encoder, There are two preset boot templates;
[0030] The MSE loss The expression is:
[0031] ;
[0032] in, The image after artificial illumination enhancement is represented by represents the image without enhancement, and γ is a constant.
[0033] Optionally, the frequency domain sensing module specifically includes:
[0034] A high frequency initialization recovery unit, wherein the high frequency initialization recovery unit is configured to convert the horizontal filtering sub-band component , diagonal filtering subband components and high frequency filter subband components The features are extracted by distributing shift convolution, cross attention layer, grouped convolution and depth-separable convolution respectively to obtain the target features. ;
[0035] A mixing frequency unit configured to filter the sub-band components horizontally , diagonal filtering subband components and high frequency filter subband components Perform discrete Fourier transform to obtain amplitude characteristics and phase characteristics, and construct a frequency loss function using the amplitude characteristics and the phase characteristics;
[0036] A frequency domain perception unit, wherein the frequency domain perception unit is configured to construct a frequency domain perception model based on the frequency loss function, and use the frequency domain perception model to detect target features. Processing is performed to obtain frequency domain perception features.
[0037] Optionally, the expressions of the amplitude characteristic and the phase characteristic are specifically:
[0038] ;
[0039] in, is the amplitude characteristic, is the phase characteristic;
[0040] The expression of the frequency loss function is specifically:
[0041] ;
[0042] in, , , and denote the weighting parameters of amplitude loss and phase loss respectively, represents the initial amplitude, represents the initial phase;
[0043] The expression of the frequency domain perception feature is specifically:
[0044] ;
[0045] Among them, sum(·) represents the high-frequency component characteristics obtained by the frequency domain perception model, Represents the input of the frequency-domain aware model.
[0046] Optionally, the image preprocessing module further includes:
[0047] A forward diffusion unit configured to vertically filter the sub-band components The input is scheduled with a fixed variance Stepwise transformation into corrupted noisy data , through the standard normal prior Processing, and gradually transforming the randomly sampled Gaussian noise Noise reduction to a sharp variable ;
[0048] Among them, the vertical filtering subband component The input is scheduled with a fixed variance Stepwise transformation into corrupted noise data The process is expressed as:
[0049] ;
[0050] in, and denote the corrupted noise data and the variance at time step t, respectively. represents Gaussian distribution;
[0051] Among them, the randomly sampled Gaussian noise Noise reduction to a sharp variable The process is expressed as:
[0052] ;
[0053] in, , The model is obtained through model training or directly expressed. is the noise vector, sharp variable Contains global information of the image, is the standard deviation, A random number of 0 or 1. for The mean of .
[0054] Optionally, the face recognition module specifically includes:
[0055] A face recognition model construction unit, wherein the face recognition model construction unit is configured to construct a face recognition model using a ViT network as an encoder, a fully connected neural network as a decoder, and ArcFace as a loss function;
[0056] A face recognition unit, wherein the face recognition unit is configured to convert the rough recovery feature , the high frequency component characteristics and the sharp variable As the input of the face recognition model, the feature value of the target face image output by the face recognition model is obtained, and the feature value is compared with the pre-stored feature value in the database to identify the identity information of the target face image.
[0057] The present invention also provides an anti-backlight face recognition method, the method comprising:
[0058] S1: Perform wavelet transform on the received target face image, and perform vertical filtering, horizontal filtering, diagonal filtering, and high-frequency filtering on the wavelet transform result to obtain four sub-band components;
[0059] S2: performing backlight coarse restoration on the target face image using the vertical filtering subband component to obtain coarse restoration features;
[0060] S3: extracting high-frequency component features from the horizontal filtering sub-band components, the diagonal filtering sub-band components and the high-frequency filtering sub-band components;
[0061] S4: Generate a detection feature value of the target face image based on the sharp variable obtained by performing forward diffusion on the coarse recovery feature, the high-frequency component feature and the vertical filter subband component, and use the detection feature value to identify the identity information of the target face image.
[0062] The beneficial effects of the present invention are as follows: a backlight-resistant face recognition system and method are proposed, an image is decomposed into four sub-band components through the frequency domain spatial characteristics of wavelet transform, a language guidance module based on a language template is constructed using the sub-band components after vertical filtering to complete the rough backlight recovery of the image, then, the discrete Fourier transform is used to extract frequency domain information to extract the features containing high-frequency components in the remaining three sub-band components of horizontal filtering, diagonal filtering and high-frequency filtering, finally, the sharp variables generated based on the diffusion model are fused with the outputs of the above two mechanisms, and the backlight recognition of the face is completed using the codec, which solves the problem that the recognition accuracy of face image recognition in a backlight environment provided by the prior art is not ideal. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 This is a schematic diagram of the structure of the anti-backlight face recognition system provided in this embodiment.
[0064] Figure 2 This is a schematic flow chart of the anti-backlight face recognition method provided in this embodiment.
[0065] Reference numerals:
[0066] 10-image preprocessing module; 20-language guidance module; 30-frequency domain perception module; 40-face recognition module. DETAILED DESCRIPTION
[0067] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0068] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.
[0069] Embodiment 1:
[0070] like Figure 1 As shown, an anti-backlight face recognition system, the system includes: an image preprocessing module 10, the image preprocessing module 10 is configured to perform wavelet transform processing on the received target face image, and perform vertical filtering, horizontal filtering, diagonal filtering, and high-frequency filtering on the wavelet transform result to obtain four sub-band components; a language guidance module 20, the language guidance module 20 is configured to use the vertical filtering sub-band component to perform backlight coarse restoration on the target face image to obtain coarse restoration features; a frequency domain perception module 30, the frequency domain perception module 30 is configured to extract high-frequency component features from the horizontal filtering sub-band component, the diagonal filtering sub-band component, and the high-frequency filtering sub-band component; a face recognition module 40, the face recognition module 40 is configured to generate a detection feature value of the target face image based on the sharp variable obtained by performing forward diffusion on the coarse restoration feature, the high-frequency component feature, and the vertical filtering sub-band component, and use the detection feature value to identify the identity information of the target face image.
[0071] It should be noted that in face recognition, the backlight environment often causes factors such as shadows and highlights to appear in the face image, which seriously affects the clarity of the face features and makes the traditional face recognition method ineffective. For the backlight problem in face recognition, the most direct solution is to restore the image in the backlight. Common methods include histogram equalization, adaptive contrast enhancement, generative adversarial network, etc. However, these methods will cause a large loss of details in the scene with highlights, thus failing to meet the feature requirements of face recognition. In order to solve the above problems, this embodiment decomposes the image into four sub-band components through the frequency domain spatial characteristics of wavelet transform, and uses the sub-band components after vertical filtering to construct a language guidance module 20 based on the language template to complete the rough backlight restoration of the image. Subsequently, the frequency domain information extraction capability of discrete Fourier transform is used to extract the features containing high-frequency components in the remaining three sub-band components of horizontal filtering, diagonal filtering, and high-frequency filtering. Finally, the sharp variables generated based on the diffusion model are fused with the outputs of the above two mechanisms, and the codec is used to complete the backlight recognition of the face, solving the problem that the recognition accuracy of the face image recognition in the backlight environment provided by the prior art is not ideal.
[0072] In a preferred embodiment, the image preprocessing module 10 specifically includes: a wavelet transform processing unit, which is configured to perform wavelet transform processing on the received target face image; an image decomposition unit, which is configured to perform wavelet transform processing on the wavelet transform result; Decompose the image to obtain the vertical filtering subband components , horizontal filtering subband component , diagonal filtering subband components and high frequency filter subband components ;
[0073] Where K represents the order.
[0074] Among them, the expression of wavelet transform processing is specifically:
[0075] ;
[0076] in, is the result of wavelet transform, s is the scale, I(m,n) is the image I in The value at (k, l) is the position of the wavelet, is the selected wavelet basis function.
[0077] Furthermore, the image preprocessing module 10 further includes: a forward diffusion unit, the forward diffusion unit is configured to transfer the vertical filtering sub-band components The input is scheduled with a fixed variance Stepwise transformation into corrupted noise data , through the standard normal prior Processing, and gradually transforming the randomly sampled Gaussian noise Noise reduction to a sharp variable ; Among them, the vertical filtering subband component The input is scheduled with a fixed variance Stepwise transformation into corrupted noise data The process is expressed as:
[0078] ;
[0079] in, and denote the corrupted noise data and the variance at time step t, respectively. represents Gaussian distribution;
[0080] Among them, the randomly sampled Gaussian noise Noise reduction to a sharp variable The process is expressed as:
[0081] ;
[0082] in, , The model is obtained through model training or directly expressed. is the noise vector, sharp variable Contains global information of the image, is the standard deviation, A random number of 0 or 1. for The mean of .
[0083] In this embodiment, the image preprocessing module 10 first performs wavelet transform on the received image I. In practical applications, the Daubechies Wavelet function can be used as the wavelet basis function to perform wavelet transform processing, and then the wavelet transform processing result is processed. Four sub-band components are obtained by vertical filtering, horizontal filtering, diagonal filtering, and high-frequency filtering. Among them, the vertical filtering sub-band component obtained by vertical filtering is , on the one hand, it is used to perform forward diffusion to obtain sharp variables, and on the other hand, it is used to perform backlighting coarse restoration of the target face image to obtain coarse restoration features; horizontal filtering subband component , diagonal filtering subband components and high frequency filter subband components It is used to obtain high-frequency component features, thereby obtaining all the features used to perform target face image detection, so as to complete the identity recognition of the target face image in the database. Compared with the simple backlight restoration performed by traditional face recognition for backlight environments, it also considers the features under high-frequency components and the sharp variables generated by the diffusion model, which can retain a large number of details in high-light scenes and improve the accuracy of face recognition in backlight environments.
[0084] In a preferred embodiment, the language guidance module 20 specifically includes: a loss function construction unit, which is configured to generate a total loss function using vertical filtering sub-band components and an image obtained by artificial illumination enhancement; a low-light image enhancement unit, which is configured to construct a low-light image enhancement model based on the total loss function, and use the low-light image enhancement model to perform backlighting coarse restoration of the target face image to obtain coarse restoration features.
[0085] Furthermore, the loss function construction unit specifically includes: a CLIP loss determination unit, wherein the CLIP loss determination unit is configured to obtain two preset guide templates, and use an image encoder and a text encoder to process the preset guide template and the vertical filter subband component to obtain a CLIP loss ; an MSE loss determination unit, wherein the MSE loss determination unit is configured to calculate the MSE loss between the image after artificial illumination enhancement and the unenhanced image. ; A total loss function generating unit, wherein the total loss function generating unit is configured to generate a total loss function according to the CLIP loss and MSE loss , generate a total loss function; wherein the expression of the total loss function is specifically: ; Where L is the total loss function.
[0086] It should be noted that the CLIP loss The expression is:
[0087] ;
[0088] in, is the image encoder, For text encoder, In this embodiment, the two preset guiding templates are configured as descriptions of two preset face images for different backlighting levels.
[0089] It should be noted that the MSE loss The expression is:
[0090] The MSE loss The expression is:
[0091] ;
[0092] in, The image after artificial illumination enhancement is represented by represents the image without enhancement, and γ is a constant.
[0093] In this embodiment, the language guidance module 20 is used to generate the vertical filtering sub-band components according to the image pre-processing module 10. , the illumination intensity process is divided into multiple prompt levels, knowing the enhancement of low-light images, and setting two guiding templates The CLIP loss is calculated, and then the MSE loss between the image after artificial illumination enhancement and the unenhanced image is calculated, so that the image restored by the model maintains a good similarity with the original image. Finally, the total loss function L is constructed according to the CLIP loss and the MSE loss. In this way, based on the total loss function, a low-light image enhancement model is constructed, and the low-light image enhancement model is used to perform coarse backlighting restoration on the target face image to obtain coarse restoration features, which can provide more features for face recognition and improve the accuracy of face recognition in backlighting environments.
[0094] In a preferred embodiment, the frequency domain sensing module 30 specifically includes: a high frequency initialization recovery unit, the high frequency initialization recovery unit is configured to convert the horizontal filtering sub-band component , diagonal filtering subband components and high frequency filter subband components The features are extracted by distributing shift convolution, cross attention layer, grouped convolution and depth-separable convolution respectively to obtain the target features. ; A mixing frequency unit, the mixing frequency unit is configured to filter the sub-band components horizontally , diagonal filtering subband components and high frequency filter subband components Perform discrete Fourier transform to obtain amplitude characteristics and phase characteristics, and use the amplitude characteristics and the phase characteristics to construct a frequency loss function; a frequency domain perception unit, the frequency domain perception unit is configured to construct a frequency domain perception model based on the frequency loss function, and use the frequency domain perception model to detect the target characteristics. Processing is performed to obtain frequency domain perception features.
[0095] It should be noted that the expressions of the amplitude characteristics and phase characteristics are specifically:
[0096] ;
[0097] in, is the amplitude characteristic, is the phase characteristic;
[0098] It should be noted that the expression of the frequency loss function is specifically:
[0099] ;
[0100] in, , , and denote the weighting parameters of amplitude loss and phase loss respectively, represents the initial amplitude, represents the initial phase;
[0101] It should be noted that the expression of the frequency domain perception feature is specifically:
[0102] ;
[0103] Among them, sum(·) represents the high-frequency component characteristics obtained by the frequency domain perception model, Represents the input of the frequency-domain aware model.
[0104] In this embodiment, the frequency domain sensing module 30 is used to use the horizontal filtering sub-band components generated by the image preprocessing module 10 , diagonal filtering subband components and high frequency filter subband components , restore the high-frequency details of the image, which is composed of a high-frequency initialization recovery subunit and a mixed frequency subunit. The high-frequency initialization recovery subunit , , They are sent to DSConv (distributed shift convolution) for feature extraction to obtain features , , , and then sent to the cross attention layer, and then obtained the target features through group convolution and DPConv (depth separable convolution) The mixing frequency subunit first , , Perform discrete Fourier transform to obtain amplitude characteristics and phase characteristics , and then for the target feature Perform discrete Fourier transform to get the initial amplitude and initial phase , and finally use the amplitude feature , Phase characteristics , initial amplitude and initial phase Constructing frequency loss function , based on the frequency loss function , construct a frequency domain perception model, and use the frequency domain perception model to detect target features Processing is performed to obtain frequency domain perception features (i.e., the features of the face in high-frequency components), which can provide more features for face recognition and improve the accuracy of face recognition in backlit environments.
[0105] In a preferred embodiment, the face recognition module 40 specifically includes:
[0106] A face recognition model construction unit, wherein the face recognition model construction unit is configured to use the ViT network as an encoder, a fully connected neural network as a decoder, and ArcFace as a loss function to construct a face recognition model; a face recognition unit, wherein the face recognition unit is configured to convert the coarse recovery feature , the high frequency component characteristics and the sharp variable As the input of the face recognition model, the detection feature value of the target face image output by the face recognition model is obtained, and the detection feature value is compared with the feature value pre-stored in the database to identify the identity information of the target face image.
[0107] In this embodiment, the face recognition module 40 is composed of an encoder and a decoder, wherein the encoder is a ViT network and the decoder is a fully connected neural network. The input of the face recognition module is , the loss function used is ArcFace, the output is the eigenvalue, and the identity can be confirmed by comparing the eigenvalue with the pre-stored eigenvalue in the database. Therefore, this embodiment fuses the sharp variables generated based on the diffusion model with the coarse recovery features and high-frequency component features, and uses the codec to complete the backlight recognition of the face, solving the problem that the recognition accuracy of the face image recognition in the backlight environment provided by the prior art is not ideal.
[0108] The present invention also provides an anti-backlight face recognition method, the method comprising:
[0109] Embodiment 2:
[0110] Reference Figure 2 , Figure 2 A schematic flow chart of an anti-backlight face recognition method provided by an embodiment of the present invention.
[0111] like Figure 2 As shown, an anti-backlight face recognition method is used in the anti-backlight face recognition system as described above, comprising:
[0112] S1: Perform wavelet transform on the received target face image, and perform vertical filtering, horizontal filtering, diagonal filtering, and high-frequency filtering on the wavelet transform result to obtain four sub-band components;
[0113] S2: Performing backlight coarse restoration on the target face image using the vertical filter subband component to obtain coarse restoration features;
[0114] S3: extracting high-frequency component features from the horizontal filtering sub-band components, the diagonal filtering sub-band components and the high-frequency filtering sub-band components;
[0115] S4: Generate a detection feature value of the target face image based on the sharp variable obtained by performing forward diffusion on the coarse recovery feature, the high-frequency component feature and the vertical filter subband component, and use the detection feature value to identify the identity information of the target face image.
[0116] The present embodiment provides an anti-backlight face recognition method, which decomposes an image into four sub-band components through the frequency domain spatial characteristics of wavelet transform, and constructs a language guidance module 20 based on a language template using the sub-band components after vertical filtering to complete the rough backlight recovery of the image. Subsequently, the discrete Fourier transform is used to extract frequency domain information to extract the features containing high-frequency components in the remaining three sub-band components of horizontal filtering, diagonal filtering, and high-frequency filtering. Finally, the sharp variables generated based on the diffusion model are fused with the outputs of the above two mechanisms, and the codec is used to complete the backlight recognition of the face, which solves the problem that the recognition accuracy of face image recognition in a backlight environment provided by the prior art is not ideal.
[0117] The specific implementation of the anti-backlight face recognition method of the present application is basically the same as the above-mentioned anti-backlight face recognition system embodiments, and will not be repeated here.
[0118] In the description of the embodiments of the present invention, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "center", "top", "bottom", "top", "bottom", "inside", "outside", "inner side", "outer side" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Among them, "inside" refers to an internal or enclosed area or space. "Periphery" refers to the area surrounding a specific component or a specific area.
[0119] In the description of the embodiments of the present invention, the terms "first", "second", "third", and "fourth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", and "fourth" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0120] In the description of the embodiments of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", and "assemble" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0121] In the description of the embodiments of the present invention, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.
[0122] In the description of the embodiments of the present invention, it should be understood that "-" and "~" represent a range between two values, and the range includes the endpoints. For example: "AB" represents a range greater than or equal to A and less than or equal to B. "A~B" represents a range greater than or equal to A and less than or equal to B.
[0123] In the description of the embodiments of the present invention, the term "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " herein generally indicates that the associated objects before and after are in an "or" relationship.
[0124] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An anti-backlight face recognition system, It is characterized in that The system comprises: The image preprocessing module is configured to perform wavelet transform processing on the received target face image, and perform vertical filtering, horizontal filtering, diagonal filtering, and high-frequency filtering on the wavelet transform result to obtain the vertical filtering subband component. , horizontal filtering subband component , diagonal filtering subband components and high frequency filter subband components , K represents the order; Wherein, the image preprocessing module specifically includes: A forward diffusion unit configured to vertically filter the sub-band components The input is scheduled with a fixed variance Stepwise transformation into corrupted noise data , through the standard normal prior Processing, and gradually transforming the randomly sampled Gaussian noise Noise reduction to a sharp variable ; Among them, the vertical filtering subband component The input is scheduled with a fixed variance Stepwise transformation into corrupted noise data The process is expressed as: ; in, and denote the corrupted noise data and the variance at time step t, respectively. represents Gaussian distribution; Among them, the randomly sampled Gaussian noise Noise reduction to a sharp variable The process is expressed as: ; in, , The model is obtained through model training or directly expressed. is the noise vector, sharp variable Contains global information of the image, is the standard deviation, A random number of 0 or 1. for The mean of A language guidance module, wherein the language guidance module is configured to perform backlighting coarse restoration on the target face image using a vertical filtering subband component to obtain a coarse restoration feature; A frequency domain sensing module, wherein the frequency domain sensing module is configured to extract high frequency component features in the horizontal filtering sub-band components, the diagonal filtering sub-band components, and the high frequency filtering sub-band components; A face recognition module, wherein the face recognition module is configured to perform forward diffusion based on the coarse recovery feature, the high frequency component feature and the vertical filter subband component to obtain a sharp variable, generate a detection feature value of a target face image, and use the detection feature value to identify identity information of the target face image; Wherein, the language guidance module specifically includes: A loss function construction unit, wherein the loss function construction unit is configured to generate a total loss function using the vertical filtering subband components and an image obtained by artificial illumination enhancement; A low-light image enhancement unit, wherein the low-light image enhancement unit is configured to construct a low-light image enhancement model based on the total loss function, and use the low-light image enhancement model to perform backlighting coarse restoration on the target face image to obtain coarse restoration features; Wherein, the loss function construction unit specifically includes: A CLIP loss determination unit is configured to obtain two preset guide templates, process the preset guide templates and the vertical filter subband components using an image encoder and a text encoder, and obtain a CLIP loss ; An MSE loss determination unit is configured to calculate the MSE loss between the image after artificial illumination enhancement and the unenhanced image. ; A total loss function generating unit, wherein the total loss function generating unit is configured to generate a total loss function according to the CLIP loss and MSE loss , generate the total loss function; Among them, the expression of the total loss function is specifically: ; Among them, L is the total loss function; Among them, the CLIP loss The expression is: ; in, is the image encoder, For text encoder, There are two preset boot templates; The MSE loss The expression is: ; in, The image after artificial illumination enhancement is represented by represents the image without enhancement, and γ is a constant.
2. The anti-backlight face recognition system according to claim 1, It is characterized in that The image preprocessing module specifically includes: A wavelet transform processing unit, wherein the wavelet transform processing unit is configured to perform wavelet transform processing on the received target face image; Among them, the expression of wavelet transform processing is specifically: ; in, is the result of wavelet transform, s is the scale, I(m,n) is the image I in The value at (k, l) is the position of the wavelet, is the selected wavelet basis function; An image decomposition unit is configured to decompose the wavelet transform result Decompose the image to obtain the vertical filtering subband components , horizontal filtering subband component , diagonal filtering subband components and high frequency filter subband components ; Where K represents the order.
3. The anti-backlight face recognition system according to claim 1, It is characterized in that The frequency domain sensing module specifically includes: A high frequency initialization recovery unit, wherein the high frequency initialization recovery unit is configured to convert the horizontal filtering sub-band component , diagonal filtering subband components and high frequency filter subband components The features are extracted by distributing shift convolution, cross attention layer, grouped convolution and depth-separable convolution respectively to obtain the target features. ; A mixing frequency unit configured to filter the sub-band components horizontally , diagonal filtering subband components and high frequency filter subband components Perform discrete Fourier transform to obtain amplitude characteristics and phase characteristics, and construct a frequency loss function using the amplitude characteristics and the phase characteristics; A frequency domain perception unit, wherein the frequency domain perception unit is configured to construct a frequency domain perception model based on the frequency loss function, and use the frequency domain perception model to detect target features. Processing is performed to obtain frequency domain perception features.
4. The anti-backlight face recognition system according to claim 3, It is characterized in that The expressions of the amplitude characteristic and the phase characteristic are specifically: ; in, is the amplitude characteristic, is the phase characteristic; The expression of the frequency loss function is specifically: ; in, , , and denote the weighting parameters of amplitude loss and phase loss respectively, represents the initial amplitude, represents the initial phase; The expression of the frequency domain perception feature is specifically: ; Among them, sum(·) represents the high-frequency component characteristics obtained by the frequency domain perception model, Represents the input of the frequency-domain aware model.
5. The anti-backlight face recognition system according to claim 1, It is characterized in that The face recognition module specifically includes: A face recognition model construction unit, wherein the face recognition model construction unit is configured to construct a face recognition model using a ViT network as an encoder, a fully connected neural network as a decoder, and ArcFace as a loss function; A face recognition unit, wherein the face recognition unit is configured to convert the rough recovery feature , the high frequency component characteristics and the sharp variable As the input of the face recognition model, the feature value of the target face image output by the face recognition model is obtained, and the feature value is compared with the pre-stored feature value in the database to identify the identity information of the target face image.
6. A backlight-resistant face recognition method, It is characterized in that For use in the anti-backlight face recognition system according to any one of claims 1 to 5, the method comprises: S1: Perform wavelet transform on the received target face image, and perform vertical filtering, horizontal filtering, diagonal filtering, and high-frequency filtering on the wavelet transform result to obtain four sub-band components; S2: performing backlight coarse restoration on the target face image using the vertical filtering subband component to obtain coarse restoration features; S3: extracting high-frequency component features from the horizontal filtering sub-band components, the diagonal filtering sub-band components and the high-frequency filtering sub-band components; S4: Generate a detection feature value of the target face image based on the sharp variable obtained by performing forward diffusion on the coarse recovery feature, the high-frequency component feature and the vertical filter subband component, and use the detection feature value to identify the identity information of the target face image.
