Fingerprint image generation method, electronic equipment and storage medium
The latent diffusion model generates a synthetic fingerprint image consistent with the real fingerprint feature distribution, which solves the problem of high acquisition and management costs of fingerprint unlocking systems in the existing technology, and improves the performance and identification accuracy of the fingerprint comparator.
Patent Information
- Application Number
- CN202410558305.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-08-27
AI Technical Summary
Existing fingerprint unlocking systems require a large number of real fingerprint images for training and testing, resulting in high acquisition and management costs. At the same time, they are susceptible to environmental influences and personal fingerprint changes, which affect recognition accuracy.
The initial fingerprint generation model is obtained through latent diffusion model training, using real fingerprint images and modal information to generate synthetic fingerprint images, directionally generating synthetic fingerprint images consistent with the real fingerprint feature distribution, reducing acquisition and management costs, and improving the performance of the fingerprint comparator. performance.
It achieves high-performance fingerprint comparator training, reduces fingerprint image acquisition and management costs, improves the stability and recognition accuracy of the fingerprint unlocking system, and is suitable for multiple scenarios and feature distributions.
Smart Images

Figure CN118552987A
Abstract
Description
Technical Field
[0001] The present application relates to the field of biometric identification technology, and in particular to a fingerprint image generation method, electronic device and storage medium. Background Art
[0002] Fingerprint unlocking technology is a biometric technology and an important technology for security verification in today's society. Its principle is based on the fact that each person's fingerprint is unique, including its patterns such as ridges, bends and detail points. It controls access to devices or systems by identifying and verifying personal fingerprints, so that users do not need to remember passwords or carry keys. They only need to use their own fingerprints to quickly unlock within a few milliseconds to more than ten milliseconds. At the same time, based on the uniqueness of fingerprints, the fingerprint unlocking system is relatively safe and difficult to be counterfeited.
[0003] At present, fingerprint unlocking systems usually include: a sensor for capturing fingerprint images, a memory for storing fingerprint base images, and a fingerprint comparator for comparing the captured fingerprint images with the fingerprint base images. The fingerprint comparator in the fingerprint unlocking system is usually based on a deep neural network model, and the training and testing of the model requires a large number of fingerprint images. As fingerprints are human security and privacy features, in related technologies, obtaining a large number of fingerprint images will cost a lot of money and require very secure storage and processing measures, resulting in relatively high acquisition and management costs of fingerprint images. Summary of the invention
[0004] The embodiments of the present application provide a fingerprint image generation method, an electronic device, and a storage medium, which can reduce the acquisition cost and management cost of fingerprint images.
[0005] According to a first aspect of the present application, a fingerprint image generation method is disclosed, the method comprising:
[0006] Obtaining first modal information;
[0007] Generate first latent variable latent information corresponding to the first modal information;
[0008] Inputting the first modal information and the first latent information into an initial fingerprint generation model, and outputting at least one synthetic fingerprint image corresponding to the first modal information;
[0009] The initial fingerprint generation model is obtained by training a potential diffusion model according to multiple real fingerprint images in a training set and the modal information of each real fingerprint image.
[0010] According to a second aspect of the present application, an electronic device is disclosed, comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the fingerprint image generation method in the first aspect.
[0011] According to a third aspect of the present application, a computer-readable storage medium is disclosed, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the fingerprint image generation method in the first aspect is implemented.
[0012] According to a fourth aspect of the present application, a computer program product is disclosed, comprising a computer program / instruction, which implements the fingerprint image generation method in the first aspect when executed by a processor.
[0013] In an embodiment of the present application, first modal information is obtained, first latent information corresponding to the first modal information is generated, the first modal information and the first latent information are input into an initial fingerprint generation model, and at least one synthetic fingerprint image corresponding to the first modal information is output; wherein the initial fingerprint generation model is obtained by training a latent diffusion model based on multiple real fingerprint images in a training set and the modal information of each real fingerprint image.
[0014] It can be seen that in the embodiments of the present application, some collected real fingerprint images and modal information of the real fingerprint images can be used to train the fingerprint generation model. Based on the trained fingerprint generation model and the user-defined modal information, a synthetic fingerprint image that is consistent with the feature distribution of the real fingerprint image is generated in a directionally manner. Since a large number of synthetic fingerprint images can be generated based on the fingerprint generation model and some user-defined modal information, the cost of acquiring the fingerprint image can be reduced. Since the feature distribution of the synthetic fingerprint image is consistent with the real fingerprint image, a high-performance fingerprint comparator can be trained based on the synthetic fingerprint image. In addition, the synthetic fingerprint image does not contain the user's real fingerprint information, so the management and processing costs are relatively low, thereby achieving the purpose of reducing the acquisition cost and management cost of the fingerprint image. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is an example diagram of a denoising diffusion probability model provided in an embodiment of the present application;
[0016] Figure 2 This is one of the flow charts of a fingerprint image generation method provided in an embodiment of the present application;
[0017] Figure 3 This is one of the flow charts of a fingerprint generation model training method provided in an embodiment of the present application;
[0018] Figure 4is an example diagram of characteristic key points in a fingerprint image provided by an embodiment of the present application;
[0019] Figure 5 This is the second flowchart of a fingerprint generation model training method provided in an embodiment of the present application;
[0020] Figure 6 This is the second flowchart of a fingerprint image generation method provided in an embodiment of the present application;
[0021] Figure 7 It is a structural schematic diagram of a fingerprint image generating device provided in an embodiment of the present application;
[0022] Figure 8 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0024] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0025] Biometric identification technology has been widely used in various terminal devices or electronic devices. Biometric identification technology includes but is not limited to fingerprint recognition, palm print recognition, vein recognition, iris recognition, face recognition, liveness recognition, anti-counterfeiting recognition and other technologies. Among them, fingerprint recognition usually includes optical fingerprint recognition, capacitive fingerprint recognition and ultrasonic fingerprint recognition. With the rise of full-screen technology, the fingerprint recognition module can be set in a local area or the entire area below the display screen to form an under-display optical fingerprint recognition; or, part or all of the optical fingerprint recognition module can be integrated into the display screen of the electronic device to form an in-display optical fingerprint recognition. The display screen can be an organic light emitting diode (OLED) display screen or a liquid crystal display (LCD) screen. The fingerprint recognition method usually includes the steps of acquiring, preprocessing, feature extraction, feature matching, etc. of the fingerprint image. Some or all of the above steps can be implemented by a traditional computer vision (CV) algorithm, or by a deep learning algorithm based on artificial intelligence (AI). Fingerprint recognition technology can be applied to portable or mobile terminals such as smartphones, tablets, gaming devices, as well as other electronic devices such as smart door locks, cars, bank ATMs, etc., for fingerprint unlocking, fingerprint payment, fingerprint attendance, identity authentication, etc.
[0026] To facilitate understanding, some relevant concepts and application scenarios involved in the embodiments of the present application are first introduced below.
[0027] 1. Related concepts
[0028] Fingerprint image refers to an image containing the user's fingerprint information. For a capacitive fingerprint sensor, the fingerprint image is the image captured by the fingerprint sensor when the user presses or touches the fingerprint collection area above the fingerprint sensor. For an optical or ultrasonic fingerprint sensor, the fingerprint image is the image captured by the fingerprint sensor when the user presses or touches the fingerprint collection area of the display screen above the fingerprint sensor.
[0029] The fingerprint base image refers to an image obtained by stitching one or more fingerprint images, which is used as a fingerprint template for fingerprint matching.
[0030] The fingerprint base library, also known as the fingerprint template library, refers to the image library containing the fingerprint base image.
[0031] The fingerprint comparator is used to compare the captured fingerprint image with the fingerprint base image in the fingerprint base library to determine whether the two belong to the same finger.
[0032] The full name of the ORB algorithm is the Oriented FAST and Rotated BRIEF algorithm, which refers to extracting feature points based on the FAST algorithm and constructing the descriptor of the feature points based on the BRIEF algorithm. It makes corrections on the original basis to achieve scale invariance and rotation invariance of the feature points, that is, the feature points after scaling and rotation can still produce descriptors similar to the original ones.
[0033] Denoising Diffusion Probabilistic Models (DDPMs), also known as "diffusion models", are a class of generative models that define a Markov chain of diffusion steps to slowly add random noise to the data, and then learn a reverse diffusion process to gradually transform the Gaussian noise distribution into the target data. Figure 1 As shown, the application of the denoising diffusion probability model is usually divided into two stages: the forward diffusion process (represented by the dotted line) and the reverse denoising process (represented by the solid line).
[0034] Latent Diffusion Model is a diffusion model based on latent variables. It uses an initial noise distribution and a step-by-step iterative diffusion process to generate data. Its core idea is to generate realistic data samples by gradually diffusing latent variables.
[0035] 2. Application Scenarios
[0036] At present, fingerprint unlocking systems usually include: a sensor for capturing fingerprint images, a memory for storing fingerprint base images, and a fingerprint comparator for comparing the captured fingerprint images with the fingerprint base images. The fingerprint comparator in the fingerprint unlocking system is usually based on a deep neural network model. The training and testing of the model requires a large number of fingerprint images. As fingerprints are human security and privacy features, in related technologies, obtaining a large number of fingerprint images will cost a lot of money and require very secure storage and processing measures, resulting in high acquisition and management costs of fingerprint images. In addition, fingerprint unlocking is easily affected by the environment. If the user's fingers have stains, wounds or water mist, it may affect the accuracy of fingerprint recognition; and over time, the details of an individual's fingerprints may change subtly with changes in the skin, which may potentially affect the performance of fingerprint unlocking.
[0037] In order to solve the above technical problems, the embodiments of the present application provide a fingerprint image generation method, an electronic device and a storage medium.
[0038] Next, the fingerprint image generation method provided in the embodiment of the present application is introduced in conjunction with the accompanying drawings.
[0039] It should be noted that the fingerprint image generation method provided in the embodiment of the present application is applicable to electronic devices. In practical applications, the electronic devices may include: mobile terminals such as smart phones, tablet computers, personal digital assistants, attendance machines, etc., or the electronic devices may include: servers, laptops, desktops and other computer devices, which are not limited in the embodiment of the present application.
[0040] Figure 2 is a flow chart of a fingerprint image generation method provided in an embodiment of the present application. Figure 2 As shown, the method may include the following steps: step 201, step 202 and step 203;
[0041] In step 201, first modal information is obtained.
[0042] For ease of understanding, the initial fingerprint generation model involved in the embodiment of the present application is first introduced. The initial fingerprint generation model is obtained by training the potential diffusion model based on multiple real fingerprint images in the training set and the modal information of each real fingerprint image, such as Figure 3 As shown, the training process of the initial fingerprint generation model may include the following steps: step 301 and step 302;
[0043] In step 301, a training set is obtained, wherein the training set includes a plurality of real fingerprint images and modality information of each real fingerprint image.
[0044] In the embodiment of the present application, the real fingerprint image refers to the fingerprint image of a real person's finger.
[0045] In an embodiment of the present application, the modal information of the fingerprint image may include information of at least one of the following dimensions: the capture scene label of the fingerprint image, the score of the fingerprint image by the fingerprint comparator, the number of matches of feature key points between the fingerprint image and its corresponding real fingerprint image, and the proportion of the overlapping area between the fingerprint image and its corresponding real fingerprint image.
[0046] In some embodiments, the capture scene may include at least one of the following scenes: a cold scene, a wet hands scene, a film scene, an alcohol scene label, a dirty hands scene, a hand cream scene, a 2D attack scene, a 3D attack scene, and a standard scene, wherein the standard scene refers to a fingerprint capture scene with dry and clean fingers.
[0047] In the embodiment of the present application, considering that in different image capturing scenarios, the feature distribution of the fingerprint image of the same user captured is different due to the influence of the image capturing environment, in order to be able to train a fingerprint comparator suitable for different image capturing scenarios, the image capturing scene label of the fingerprint image can be used as one of the modal information of the fingerprint image.
[0048] In some embodiments, the fingerprint matcher may be the initial fingerprint matcher mentioned below, or the iterative fingerprint matcher mentioned below, wherein the initial fingerprint matcher is trained based on multiple real fingerprint images in the training set and multiple synthetic fingerprint images generated by the initial fingerprint generation model, and the iterative fingerprint matcher is trained based on multiple real fingerprint images in the training set and multiple synthetic fingerprint images generated by the iterative fingerprint generation model. Whether it is the initial fingerprint matcher or the iterative fingerprint matcher, its function is to compare the input fingerprint image with the fingerprint base image in the fingerprint base library, and the comparison result is a score value between 0 and 1. The larger the score value, the higher the matching degree between the two, and the higher the possibility that the two belong to the same finger. The smaller the score value, the lower the matching degree between the two, and the lower the possibility that the two belong to the same finger. The score value is the score of the fingerprint matcher for the fingerprint image.
[0049] In the embodiment of the present application, the score of the fingerprint image by the fingerprint matcher can be used to determine whether the fingerprint image is a difficult sample or an easy sample, wherein a difficult sample refers to a fingerprint image that is difficult for the fingerprint matcher to identify, and an easy sample refers to a fingerprint image that the fingerprint matcher can normally identify. The lower the score, the more difficult the fingerprint image is, and the higher the score, the more easy the fingerprint image is. In order to train a fingerprint matcher suitable for difficult fingerprint unlocking scenarios, the score of the fingerprint image by the fingerprint matcher can be used as one of the modal information of the fingerprint image.
[0050] In some embodiments, the characteristic key points of the fingerprint image may include one or more of the following: intersection points, core points (also called center points), bifurcation points, ridge tail points (also called endpoints), island points, triangle points and pore points (also called sweat gland pore points) and other characteristic points.
[0051] Preferably, if Figure 4 As shown, the key feature points of the fingerprint image include all the above feature points: intersection points, core points, bifurcation points, ridge tail points, island points, triangle points and pore points.
[0052] In the embodiment of the present application, considering that the feature distribution and defect conditions of fingerprint images of different users are different, in order to be able to train a fingerprint comparator suitable for various users, the number of matches of feature key points between a fingerprint image and its corresponding real fingerprint image can be used as one of the modal information of the fingerprint image.
[0053] In some embodiments, the ratio of the overlapping area between a fingerprint image and its corresponding real fingerprint image refers to the ratio of the overlapping area between the fingerprint image and its corresponding real fingerprint image / the area of the fingerprint image. The larger the ratio, the larger the effective area of the fingerprint image, and the smaller the ratio, the smaller the effective area of the fingerprint image.
[0054] In the embodiment of the present application, considering that the shapes, sizes, etc. of fingerprint images of different users are different, in order to be able to train a fingerprint comparator suitable for various users, the ratio of the overlapping area between the fingerprint image and its corresponding real fingerprint image can be used as one of the modal information of the fingerprint image.
[0055] In some embodiments, the modal information of the real fingerprint image in the training set may include only information of the above one dimension, or may include a combination of information of two or more dimensions. It can be understood that the more dimensions of information contained in the modal information of the real fingerprint image, the higher the accuracy of the trained initial fingerprint generation model, and the more typical the feature distribution of the generated synthetic fingerprint image.
[0056] In some embodiments, considering that the acquisition cost and management cost of real fingerprint images are relatively high, a small number of real fingerprint images may be included in the training set.
[0057] In step 302, the latent diffusion model is trained according to a plurality of real fingerprint images in the training set and the modal information of each real fingerprint image to obtain an initial fingerprint generation model.
[0058] In an embodiment of the present application, a latent diffusion model can be used as a backbone network, multiple real fingerprint images and the modal information of each real fingerprint image can be input into the latent diffusion model in batches, and the latent diffusion model can be trained to obtain an initial fingerprint generation model.
[0059] In the embodiment of the present application, during the training phase of the initial fingerprint generation model, several real fingerprint images are input into the latent diffusion model each time, and during the use phase of the model, the initial fingerprint generation model will output several synthetic fingerprint images.
[0060] For example, in the training phase of the initial fingerprint generation model, two real fingerprint images are input into the latent diffusion model each time. Then, in the use phase of the model, the trained initial fingerprint generation model will output two synthetic fingerprint images each time.
[0061] For example, in the training phase of the initial fingerprint generation model, three real fingerprint images are input into the latent diffusion model each time. Then, in the use phase of the model, the trained initial fingerprint generation model will output three synthetic fingerprint images each time.
[0062] In the embodiment of the present application, considering that two fingerprint images need to be input each time during the training stage of the fingerprint comparator, in order to facilitate the training of the fingerprint comparator, two real fingerprint images are input into the latent diffusion model each time during the training stage of the initial fingerprint generation model. In this way, during the use stage of the model, the trained initial fingerprint generation model will output two synthetic fingerprint images each time. These two synthetic fingerprint images can be directly used as a pair of images and input into the fingerprint comparator for training.
[0063] In the embodiment of the present application, no matter what dimensional modal information is used for model training, the initial fingerprint generation model obtained through training can generate a synthetic fingerprint image under the modal information.
[0064] For example, when the cold scene label is used as the modal information for model training, the obtained initial fingerprint generation model can generate a synthetic fingerprint image in a cold scene.
[0065] For another example, when the dirty hands scene label and the fingerprint matcher's score for the fingerprint image are used as modal information for model training, the resulting initial fingerprint generation model can generate a synthetic fingerprint image in a dirty hands scene with a specific score.
[0066] In the embodiment of the present application, the type of modal information used in the training stage of the initial fingerprint generation model is the same as the type of modal information input in the use stage of the initial fingerprint generation model. That is to say, the type of the first modal information should be consistent with the type of modal information of the real fingerprint image used in the training stage of the initial fingerprint generation model. For example, if the modal information of the real fingerprint image used in the training stage of the initial fingerprint generation model is the film-sticking scene label, then the first modal information should also be the film-sticking scene label.
[0067] In the embodiment of the present application, the first modal information can be input by the user.
[0068] It can be seen that in the embodiments of the present application, some collected real fingerprint images and modal information of real fingerprint images can be used for model training. Based on the initial fingerprint generation model obtained through training, a synthetic fingerprint image with the same feature distribution as the real fingerprint image is generated in a directional manner, which not only ensures that the generated synthetic fingerprint is similar to the real fingerprint in visualization, but also ensures that the synthetic fingerprint is consistent with the real fingerprint in feature distribution by introducing a variety of generation limiting conditions, and realizes the acquisition of any multiple of synthetic fingerprint image data at the lowest cost based on the existing real fingerprint image data, thereby reducing the acquisition cost of the fingerprint image. In addition, based on the massively generated multi-scene and multi-feature synthetic fingerprint image data, the fingerprint aligner is trained so that the accuracy of the fingerprint aligner will be further improved, effectively solving the inconvenience and difficulty of fingerprint data acquisition and improving the performance of the fingerprint aligner.
[0069] In step 202, first latent information corresponding to the first modal information is generated.
[0070] In the embodiment of the present application, the first latent information is usually a noise signal.
[0071] In the embodiment of the present application, in order to reduce the computational complexity, the first latent information corresponding to the first modal information may be randomly generated. Alternatively, in order to meet the personalized needs of the user, the first latent information may be generated according to the needs of the user, which is not limited in the embodiment of the present application.
[0072] In step 203, the first modal information and the first latent information are input into an initial fingerprint generation model, and at least one synthetic fingerprint image corresponding to the first modal information is output.
[0073] For example, if the first modal information is a dirty hands scene label, the initial fingerprint generation model outputs two synthetic fingerprint images under dirty hands scenes.
[0074] For another example, the first modal information includes a cold scene label and a first scoring value, and the initial fingerprint generation model outputs two synthetic fingerprint images in cold scenes with the first scoring value.
[0075] In the embodiment of the present application, a large number of synthetic fingerprint images can be obtained by inputting a large amount of first modal information and corresponding first latent information into the initial fingerprint generation model, and the feature distribution of these synthetic fingerprint images is consistent with that of real fingerprint images.
[0076] In an embodiment of the present application, a user can choose to input a large amount of first modal information of a specific type and the corresponding first latent information into an initial fingerprint generation model to obtain a large amount of synthetic fingerprint images of a specific type to adjust the proportion of different types of fingerprint images in the training data of the fingerprint matcher, thereby training a fingerprint matcher that tends to recognize fingerprint images of a specific type.
[0077] It can be seen from the above embodiment that in this embodiment, first modal information is obtained, first latent information corresponding to the first modal information is generated, the first modal information and the first latent information are input into an initial fingerprint generation model, and at least one synthetic fingerprint image corresponding to the first modal information is output; wherein the initial fingerprint generation model is obtained by training a latent diffusion model based on multiple real fingerprint images in a training set and the modal information of each real fingerprint image.
[0078] It can be seen that in the embodiments of the present application, some collected real fingerprint images and modal information of the real fingerprint images can be used to train the fingerprint generation model. Based on the trained fingerprint generation model and the user-defined modal information, a synthetic fingerprint image that is consistent with the feature distribution of the real fingerprint image is generated in a directionally manner. Since a large number of synthetic fingerprint images can be generated based on the fingerprint generation model and some user-defined modal information, the cost of acquiring the fingerprint image can be reduced. Since the feature distribution of the synthetic fingerprint image is consistent with the real fingerprint image, a high-performance fingerprint comparator can be trained based on the synthetic fingerprint image. In addition, the synthetic fingerprint image does not contain the user's real fingerprint information, so the management and processing costs are relatively low, thereby achieving the purpose of reducing the acquisition cost and management cost of the fingerprint image.
[0079] Figure 5 This is a second flow chart of a fingerprint generation model training method provided in an embodiment of the present application. Figure 5 As shown, the method may include the following steps: step 501, step 502, step 503 and step 504;
[0080] In step 501, a plurality of first modal information are obtained, first latent information corresponding to each first modal information is generated, each first modal information and the first latent information are input into an initial fingerprint generation model, and at least one synthetic fingerprint image corresponding to each first modal information is output.
[0081] In an embodiment of the present application, a large number of synthetic fingerprint images can be obtained by inputting a large amount of first modal information and corresponding first latent information into an initial fingerprint generation model. Since these synthetic fingerprint images are consistent with the feature distribution of real fingerprint images, they can be used as training data for the fingerprint comparator.
[0082] In step 502, an initial fingerprint aligner is trained based on a plurality of real fingerprint images in a training set and a plurality of synthetic fingerprint images generated by an initial fingerprint generation model.
[0083] In an embodiment of the present application, after obtaining a synthetic fingerprint image, the real fingerprint image and the synthetic fingerprint image can be used as training data to train the initial classifier, thereby obtaining an initial fingerprint aligner with higher accuracy. The initial classifier is a binary classifier, and the training principle of the initial fingerprint aligner is as follows: the initial classifier is used as a backbone network, and two fingerprint images are input into the backbone network each time, and the classification prediction value output by the backbone network is compared with the classification true value of the two fingerprint images, and the loss function is calculated. The parameter value of the backbone network is adjusted according to the loss function, and the above process is repeated multiple times to obtain an initial fingerprint aligner, wherein the classification true value is 0 or 1, wherein 1 represents that the two fingerprint images belong to the same finger, and 0 represents that the two fingerprint images do not belong to the same finger.
[0084] In some embodiments, considering that it may be difficult to obtain a high-performance initial fingerprint aligner by directly mixing synthetic fingerprint images with real fingerprint images for training, real fingerprint images may be used in the early stage of training, and synthetic fingerprint images may be gradually added in the middle and late stages of training. In the middle and late stages of training, the proportion of synthetic fingerprint images is gradually increased from a very small proportion of the entire training data, and it is ensured that the proportion of the final synthetic fingerprint images is not higher than 50%. Accordingly, the above step 502 may include the following steps:
[0085] Step 5021 and step 5022;
[0086] In step 5021, the initial classifier is trained according to the N real fingerprint images in the training set to obtain an intermediate classifier.
[0087] In the embodiment of the present application, the training process of the initial fingerprint aligner can be divided into two stages according to the iteration rounds, the first stage and the second stage, wherein the first stage represents the early stage of training and the second stage represents the middle and late stages of training.
[0088] In the embodiment of the present application, in the early stage of training, only real fingerprint images are used to train the initial classifier.
[0089] In step 5022, the intermediate classifier is trained based on M real fingerprint images other than the N real fingerprint images in the training set and multiple synthetic fingerprint images generated by the initial fingerprint generation model to obtain an initial fingerprint aligner, where N is greater than M and is a positive integer.
[0090] In the embodiment of the present application, in the middle and late stages of training, real fingerprint images and synthetic fingerprint images are used to mix and train the intermediate classifier, so that the initial fingerprint comparator is finally trained.
[0091] In an embodiment of the present application, in order to improve the accuracy of training, in the middle and late stages of training, in the process of training the intermediate classifier based on M real fingerprint images outside the N real fingerprint images in the training set and multiple synthetic fingerprint images generated by the initial fingerprint generation model, the proportion of multiple synthetic fingerprint images in the training data is gradually increased according to the first step value until all the training data are iterated and the initial fingerprint aligner is obtained, wherein the first step value is between 0 and 1.
[0092] In the embodiment of the present application, a large number of synthetic fingerprint images are generated based on existing real fingerprint images to better train the initial fingerprint matcher and enhance the stability and performance of fingerprint unlocking. In particular, for common fingerprint unlocking difficult scenarios where data collection is difficult or the data collection cost is high, a large amount of data of the scenario can be generated to more efficiently train the initial fingerprint matcher.
[0093] In step 503, a plurality of real fingerprint images in the test set are input into the initial fingerprint aligner to obtain the accuracy of the initial fingerprint aligner.
[0094] In an embodiment of the present application, a test set can be used to perform performance testing on the trained initial fingerprint aligner to observe its performance in various real test scenarios, wherein the "accuracy of the initial fingerprint aligner" is used to evaluate the performance of the initial fingerprint aligner. The higher the accuracy, the higher the performance of the initial fingerprint aligner, and the lower the accuracy, the worse the performance of the initial fingerprint aligner.
[0095] In the embodiment of the present application, for an initial fingerprint comparator with higher performance, training can be stopped and the device can be directly used in a fingerprint unlocking scenario. For an initial fingerprint comparator with lower performance, it indicates that the quality of its training data may be low, and therefore it is necessary to continue to iteratively train the initial fingerprint generation model so as to obtain a higher quality synthetic fingerprint image through the iterative fingerprint generation model obtained through training. Based on the higher quality synthetic fingerprint image, the initial fingerprint comparator is continued to be iteratively trained until a high performance iterative fingerprint comparator is obtained.
[0096] In step 504, when the accuracy of the initial fingerprint aligner is lower than the first threshold, the initial fingerprint generation model is iteratively trained according to multiple real fingerprint images in the training set and multiple synthetic fingerprint images generated by the initial fingerprint generation model to obtain an iterative fingerprint generation model.
[0097] In the embodiment of the present application, the accuracy of the initial fingerprint comparator is lower than the first threshold value, indicating that the performance of the initial fingerprint comparator is poor. The poor performance of the initial fingerprint comparator indicates that the quality of its training data may be low, so it is necessary to continue to iteratively train the initial fingerprint generation model. Specifically, the initial fingerprint generation model is used as the backbone network, and the backbone network is iteratively trained according to multiple real fingerprint images in the training set and multiple synthetic fingerprint images generated by the initial fingerprint generation model. Through the above iterative training process, an iterative fingerprint generation model is finally obtained to improve the authenticity and robustness of the data generated by the iterative fingerprint generation model, so as to obtain a higher quality synthetic fingerprint image through the iterative fingerprint generation model. Afterwards, the initial fingerprint comparator is iteratively trained using higher quality synthetic fingerprint images and real fingerprint images, so as to obtain an iterative fingerprint comparator with higher performance.
[0098] It can be seen that in the embodiments of the present application, the collected real fingerprint images can be used to train the initial fingerprint generation model. Based on this model, synthetic fingerprint images of specific scenes and specific distributions are generated in a direction. The initial fingerprint comparator is trained by these synthetic fingerprint images and real fingerprint images, and then the initial fingerprint generation model is further guided and optimized according to the performance of the initial fingerprint comparator to obtain an iterative fingerprint generation model with higher authenticity and robustness. Then, the initial fingerprint comparator is optimized based on the synthetic fingerprint images and real fingerprint images generated by the iterative fingerprint generation model to obtain an iterative fingerprint comparator with higher performance. In this way, the entire generation-training-testing process is iterated in a cycle to continuously improve the performance of the fingerprint comparator and the fingerprint generation model.
[0099] Figure 6 This is a second flow chart of a fingerprint image generation method provided in an embodiment of the present application. Figure 6 As shown, the method may include the following steps: step 601, step 602 and step 603;
[0100] In step 601, second modal information is obtained.
[0101] In the embodiment of the present application, the type of modal information used in the training phase of the iterative fingerprint generation model is the same as the type of modal information input in the use phase of the iterative fingerprint generation model. That is to say, the type of the second modal information should be consistent with the type of modal information of the fingerprint image used in the training phase of the iterative fingerprint generation model. For example, if the modal information of the fingerprint image used in the training phase of the iterative fingerprint generation model is the film-applying scene label, then the second modal information should also be the film-applying scene label.
[0102] In this embodiment of the present application, the second modal information may be input by a user.
[0103] In step 602, second latent information corresponding to the second modal information is generated.
[0104] In the embodiment of the present application, the second latent information is usually also a noise signal.
[0105] In the embodiment of the present application, in order to reduce the computational complexity, the second latent information corresponding to the second modal information may be randomly generated. Alternatively, in order to meet the personalized needs of the user, the second latent information may be generated according to the needs of the user, which is not limited in the embodiment of the present application.
[0106] In step 603, the second modal information and the second latent information are input into an iterative fingerprint generation model, and at least one synthetic fingerprint image corresponding to the second modal information is output.
[0107] For example, if the second modal information is a dirty hands scene label, the iterative fingerprint generation model outputs two synthetic fingerprint images under the dirty hands scene.
[0108] For another example, the second modal information includes a cold scene label and a second scoring value, and the iterative fingerprint generation model outputs two synthetic fingerprint images in cold scenes with the second scoring value.
[0109] In an embodiment of the present application, a large number of synthetic fingerprint images can be obtained by inputting a large amount of second modal information and corresponding second latent information into an iterative fingerprint generation model. These synthetic fingerprint images are consistent with the feature distribution of real fingerprint images and can be used as training data for iterative training of an initial fingerprint aligner.
[0110] In an embodiment of the present application, the initial fingerprint comparator can be used as a backbone network, and the backbone network can be trained according to the synthetic fingerprint image and the real fingerprint image generated by the iterative fingerprint generation model to obtain an iterative fingerprint comparator with higher performance. The data ratio in the training process can refer to the training process of the initial fingerprint comparator, which will not be repeated here.
[0111] In an embodiment of the present application, a user can choose to input a large amount of second modal information of a specific type and the corresponding second latent information into an iterative fingerprint generation model to obtain a large amount of synthetic fingerprint images of a specific type to adjust the proportion of different types of fingerprint images in the training data of the fingerprint matcher, thereby training a fingerprint matcher that tends to recognize fingerprint images of a specific type.
[0112] It can be seen that in the embodiments of the present application, not only is the visual similarity between the generated fingerprint and the real fingerprint ensured, but also the feature distribution of the generated fingerprint is ensured to be consistent with the real fingerprint by introducing a variety of generation restriction conditions. On the one hand, it allows to obtain any multiple of fingerprint data at the lowest cost based on the existing real fingerprint images and synthetic fingerprint images; on the other hand, based on the massively generated multi-scene and multi-feature fingerprint data, the accuracy of the fingerprint generation model and the fingerprint aligner will be further improved, which effectively solves the inconvenience and difficulty of fingerprint data acquisition and improves the performance of the fingerprint feature aligner.
[0113] Figure 7 is a schematic diagram of the structure of a fingerprint image generating device provided in an embodiment of the present application, such as Figure 7 As shown, the fingerprint image generating device 700 may include: a first acquiring module 701, a first generating module 702 and a first processing module 703;
[0114] A first acquisition module 701, used to acquire first modal information;
[0115] A first generating module 702, configured to generate first latent variable latent information corresponding to the first modal information;
[0116] A first processing module 703 is used to input the first modal information and the first latent information into an initial fingerprint generation model, and output at least one synthetic fingerprint image corresponding to the first modal information;
[0117] The initial fingerprint generation model is obtained by training a potential diffusion model according to multiple real fingerprint images in a training set and the modal information of each real fingerprint image.
[0118] It can be seen from the above embodiment that in this embodiment, first modal information is obtained, first latent information corresponding to the first modal information is generated, the first modal information and the first latent information are input into an initial fingerprint generation model, and at least one synthetic fingerprint image corresponding to the first modal information is output; wherein the initial fingerprint generation model is obtained by training a latent diffusion model based on multiple real fingerprint images in a training set and the modal information of each real fingerprint image.
[0119] It can be seen that in the embodiments of the present application, some collected real fingerprint images and modal information of the real fingerprint images can be used to train the fingerprint generation model. Based on the trained fingerprint generation model and the user-defined modal information, a synthetic fingerprint image that is consistent with the feature distribution of the real fingerprint image is generated in a directionally manner. Since a large number of synthetic fingerprint images can be generated based on the fingerprint generation model and some user-defined modal information, the cost of acquiring the fingerprint image can be reduced. Since the feature distribution of the synthetic fingerprint image is consistent with the real fingerprint image, a high-performance fingerprint comparator can be trained based on the synthetic fingerprint image. In addition, the synthetic fingerprint image does not contain the user's real fingerprint information, so the management and processing costs are relatively low, thereby achieving the purpose of reducing the acquisition cost and management cost of the fingerprint image.
[0120] Optionally, as an embodiment, the modality information may include information of at least one of the following dimensions:
[0121] The fingerprint image capture scene label, the fingerprint image score given by the fingerprint comparer, the number of matching feature key points between the fingerprint image and its corresponding real fingerprint image, and the percentage of the overlapping area between the fingerprint image and its corresponding real fingerprint image.
[0122] Optionally, as an embodiment, the image collection scenario may include at least one of the following scenarios:
[0123] Cold scene, wet hands scene, film scene, alcohol scene label, dirty hands scene, hand cream scene, 2D attack scene, 3D attack scene and standard scene.
[0124] Optionally, as an embodiment, the first generating module 702 may include:
[0125] A generation submodule is used to randomly generate first latent information corresponding to the first modal information.
[0126] Optionally, as an embodiment, the fingerprint image generating device 700 may further include:
[0127] A first training module, used for training an initial fingerprint aligner according to a plurality of real fingerprint images in the training set and a plurality of synthetic fingerprint images generated by the initial fingerprint generation model;
[0128] A second processing module, used for inputting a plurality of real fingerprint images in the test set into the initial fingerprint aligner to obtain the accuracy of the initial fingerprint aligner;
[0129] The second training module is used to iteratively train the initial fingerprint generation model according to multiple real fingerprint images in the training set and multiple synthetic fingerprint images generated by the initial fingerprint generation model to obtain an iterative fingerprint generation model when the accuracy of the initial fingerprint comparer is lower than the first threshold.
[0130] Optionally, as an embodiment, the fingerprint image generating device 700 may further include:
[0131] A second acquisition module, used to acquire second modal information;
[0132] A second generating module, used to generate second latent information corresponding to the second modal information;
[0133] The third processing module is used to input the second modal information and the second latent information into the iterative fingerprint generation model, and output at least one synthetic fingerprint image corresponding to the second modal information.
[0134] Optionally, as an embodiment, the first training module may include:
[0135] A first training submodule is used to train the initial classifier according to the N real fingerprint images in the training set to obtain an intermediate classifier;
[0136] The second training submodule is used to train the intermediate classifier according to M real fingerprint images other than the N real fingerprint images in the training set and multiple synthetic fingerprint images generated by the initial fingerprint generation model to obtain an initial fingerprint aligner, wherein N is greater than M and both are positive integers.
[0137] Optionally, as an embodiment, the second training submodule may include:
[0138] A model training unit is used to gradually increase the proportion of the multiple synthetic fingerprint images in the training data according to the first step value in the process of training the intermediate classifier according to the M real fingerprint images other than the N real fingerprint images in the training set and the multiple synthetic fingerprint images generated by the initial fingerprint generation model until all the training data are iterated and an initial fingerprint aligner is obtained, wherein the first step value is between 0 and 1.
[0139] Any step and any specific operation in any step in the embodiment of the fingerprint image generation method provided in this application can be completed by the corresponding module in the fingerprint image generation device. The process of the corresponding operation completed by each module in the fingerprint image generation device refers to the process of the corresponding operation described in the embodiment of the fingerprint image generation method.
[0140] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0141] Figure 8 8 is a structural block diagram of an electronic device provided by an embodiment of the present application, the electronic device includes a processing component 822, which further includes one or more processors, and a memory resource represented by a memory 832, which is used to store instructions that can be executed by the processing component 822, such as an application. The application stored in the memory 832 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 822 is configured to execute instructions to perform the above-mentioned fingerprint image generation method.
[0142] The electronic device may also include a power supply component 826 configured to perform power management of the electronic device, a wired or wireless network interface 850 configured to connect the electronic device to a network, and an input / output (I / O) interface 858. The electronic device may operate based on an operating system stored in the memory 832, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.
[0143] According to another embodiment of the present application, the present application further provides a computer-readable storage medium on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps in the fingerprint image generation method described in any of the above embodiments are implemented.
[0144] According to another embodiment of the present application, the present application further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps in the fingerprint image generation method as described in any of the above embodiments.
[0145] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0146] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0147] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0148] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0149] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0150] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0151] The above is a detailed introduction to a fingerprint image generation method, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A fingerprint image generation method, characterized in that: The method comprises: Obtaining first modal information; Generate first latent variable latent information corresponding to the first modal information; Inputting the first modal information and the first latent information into an initial fingerprint generation model, and outputting at least one synthetic fingerprint image corresponding to the first modal information; The initial fingerprint generation model is obtained by training a potential diffusion model according to multiple real fingerprint images in a training set and the modal information of each real fingerprint image.
2. The method according to claim 1, characterized in that The modality information includes information of at least one of the following dimensions: The fingerprint image capture scene label, the fingerprint image score given by the fingerprint comparer, the number of matching feature key points between the fingerprint image and its corresponding real fingerprint image, and the percentage of the overlapping area between the fingerprint image and its corresponding real fingerprint image.
3. The method according to claim 2, characterized in that The picture collection scene includes at least one of the following scenes: a cold scene, a wet hands scene, a film scene, an alcohol scene label, a dirty hands scene, a hand cream scene, a 2D attack scene, a 3D attack scene and a standard scene.
4. The method according to claim 1, characterized in that The generating first latent variable latent information corresponding to the first modal information includes: Randomly generate first latent information corresponding to the first modal information.
5. The method according to any one of claims 1 to 4, characterized in that: After the step of inputting the first modal information and the first latent information into the initial fingerprint generation model and outputting at least one synthetic fingerprint image corresponding to the first modal information, the method further includes: Training an initial fingerprint aligner based on a plurality of real fingerprint images in the training set and a plurality of synthetic fingerprint images generated by the initial fingerprint generation model; Inputting a plurality of real fingerprint images in the test set into the initial fingerprint comparer to obtain the accuracy of the initial fingerprint comparer; When the accuracy of the initial fingerprint comparer is lower than a first threshold, the initial fingerprint generation model is iteratively trained according to a plurality of real fingerprint images in the training set and a plurality of synthetic fingerprint images generated by the initial fingerprint generation model to obtain an iterative fingerprint generation model.
6. The method according to claim 5, characterized in that After the step of iteratively training the initial fingerprint generation model according to a plurality of real fingerprint images in the training set and a plurality of synthetic fingerprint images generated by the initial fingerprint generation model to obtain an iterative fingerprint generation model when the accuracy of the initial fingerprint comparer is lower than a first threshold, the method further comprises: Get the second modal information; generating second latent information corresponding to the second modal information; The second modal information and the second latent information are input into the iterative fingerprint generation model, and at least one synthetic fingerprint image corresponding to the second modal information is output.
7. The method according to claim 5, characterized in that The step of training the initial fingerprint aligner according to the multiple real fingerprint images in the training set and the multiple synthetic fingerprint images generated by the initial fingerprint generation model comprises: Training the initial classifier according to the N real fingerprint images in the training set to obtain an intermediate classifier; The intermediate classifier is trained according to M real fingerprint images other than the N real fingerprint images in the training set and a plurality of synthetic fingerprint images generated by the initial fingerprint generation model to obtain an initial fingerprint aligner, wherein N is greater than M and both are positive integers.
8. The method according to claim 7, characterized in that The method of training the intermediate classifier according to the M real fingerprint images other than the N real fingerprint images in the training set and the multiple synthetic fingerprint images generated by the initial fingerprint generation model to obtain the initial fingerprint aligner includes: In the process of training the intermediate classifier according to the M real fingerprint images other than the N real fingerprint images in the training set and the multiple synthetic fingerprint images generated by the initial fingerprint generation model, the proportion of the multiple synthetic fingerprint images in the training data is gradually increased according to the first step value until all the training data are iterated and the initial fingerprint aligner is obtained, wherein the first step value is between 0 and 1.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the fingerprint image generation method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the fingerprint image generation method according to any one of claims 1 to 8 is implemented.
