Fingerprint database entry method, device, electronic device and storage medium
By judging and updating the entry count in the fingerprint entry base database, repeated feature entry is avoided, the diversity of fingerprint features and the success rate of comparison are improved, and the contradiction between user interface fluency and fingerprint quality is solved.
Patent Information
- Application Number
- CN202010033151.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-01-13
AI Technical Summary
During the process of fingerprint entry into the base database, in order to maintain a smooth user interface, the first few or last few fingerprints are restricted from being allowed to be checked for duplication, resulting in a reduction in fingerprint quality and the number of valid fingerprints, affecting the success rate of comparison.
By obtaining the input fingerprint image, extract the fingerprint features to be entered, and determine the similarity with the features in the base database. If it is not similar, store it. If it is similar, update the count to determine whether the threshold or duplicate check interval is reached. If it is reached, the input will be terminated or Return to get the picture. If it is not reached, continue to enter to ensure that no repeated features are added.
It effectively reduces the entry of repeated features in the fingerprint database, increases the entry of fingerprint features in various states, and improves the success rate of comparison between fingerprint features and features to be detected.
Smart Images

Figure CN111241314B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of database entry, and in particular to a fingerprint database entry method, device, electronic device and storage medium. Background Art
[0002] The fingerprint base contains fingerprint features of various recording states, which is an important factor to improve the success rate of comparing the fingerprint features in the recorded fingerprint base with the fingerprint features to be detected. Since there is an upper limit to the number of fingerprint features that can be stored in the fingerprint base, reducing the possible duplicate fingerprint features in the fingerprint base is the key to increasing the fingerprint features in various recording states in the fingerprint base.
[0003] However, in order to make the user interface UI look smoother during the fingerprint entry process, duplicate checking is not allowed for the first few fingerprints or the last few fingerprints. This limitation will bring great challenges to the quality of fingerprints successfully entered into the fingerprint database and the number of valid fingerprints, and affect the success rate of comparing the fingerprint features in the fingerprint database with the fingerprint features to be detected. Summary of the invention
[0004] In order to overcome the problems existing in the prior art, the present disclosure provides a fingerprint database entry method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a fingerprint base database entry method, wherein the fingerprint base database includes an entry base database, and the fingerprint base database entry method includes: obtaining an entry fingerprint image; extracting a fingerprint feature to be entered from the entry fingerprint image; judging whether the fingerprint feature to be entered is similar to any fingerprint feature in the entry base database; if the fingerprint feature to be entered is not similar to any fingerprint feature in the entry base database, storing the fingerprint feature to be entered in the entry base database, and updating the entry count n, wherein the initial value of the entry count n is 0; if the fingerprint feature to be entered is similar to any fingerprint feature in the entry base database, updating the entry count n according to the duplicate checking interval; judging whether the current entry count n is equal to the entry threshold; if the current entry count n is equal to the entry threshold, ending the entry of the entry base database; if the current entry count n is less than the entry threshold, returning to the step of obtaining the entry fingerprint image.
[0006] In one embodiment, if the fingerprint feature to be entered is similar to any fingerprint feature in the entry base database, the entry count n is updated according to the duplicate checking interval, including: if the fingerprint feature to be entered is similar to any fingerprint feature in the entry base database, then it is determined whether the current entry count n is in the duplicate checking interval; if the current entry count n is in the duplicate checking interval, then the step of obtaining the entry fingerprint image is returned; if the current entry count n is not in the duplicate checking interval, then the entry count n is updated to n+1.
[0007] In another embodiment, before extracting the fingerprint features to be recorded from the recorded fingerprint image, the fingerprint database recording method also includes: judging the image quality of the recorded fingerprint image, if the image quality reaches the first qualified condition, then based on the recorded fingerprint image, executing the step of extracting the fingerprint features to be recorded from the recorded fingerprint image; if the image quality does not reach the first qualified condition, then returning to the step of obtaining the recorded fingerprint image.
[0008] In another embodiment, the fingerprint base database also includes a learning base database; after completing the entry of the base database, the fingerprint base database entry method also includes: obtaining a comparison fingerprint image; obtaining the current learning fingerprint feature based on the comparison fingerprint image, and updating the learning base database based on the current learning fingerprint feature.
[0009] In another embodiment, a current learning fingerprint feature is obtained, and a learning base library is updated according to the current learning fingerprint feature, including: obtaining a minimum difference between the current learning fingerprint feature and each fingerprint feature recorded in the fingerprint base library according to the difference between the current learning fingerprint feature and each fingerprint feature recorded in the fingerprint base library, wherein the fingerprint feature includes the recorded fingerprint feature and the learning fingerprint feature; determining whether the minimum difference is within the learning interval; if the minimum difference is within the learning interval, updating the learning base library according to the current learning fingerprint feature, and storing the minimum difference of the current learning fingerprint feature in the learning base library.
[0010] In another embodiment, updating the learning base database according to the current learning fingerprint feature includes: determining whether the number of fingerprint features in the fingerprint base database has reached an upper limit value; if the number of fingerprint features in the fingerprint base database has not reached the upper limit value, entering the current learning fingerprint feature into the learning base database; if the number of fingerprint features in the fingerprint base database has reached the upper limit value, deleting the most similar fingerprint feature, and entering the current learning fingerprint feature into the learning base database, wherein the most similar fingerprint feature is the learning fingerprint feature corresponding to the minimum value of the minimum difference in the current learning base database.
[0011] In another embodiment, updating the learning base library according to the current learning fingerprint feature also includes: if the minimum difference of the current learning fingerprint feature is obtained by comparing the learning fingerprint features already recorded in the learning base library, then the corresponding minimum difference of the recorded learning fingerprint features is updated to the minimum difference of the current learning fingerprint feature.
[0012] In yet another embodiment, when the minimum value of the minimum difference in the current learning base database corresponds to at least two learning fingerprint features, the learning fingerprint feature with the latest entry time is used as the most similar fingerprint feature.
[0013] In another embodiment, after obtaining the minimum difference of the current learning fingerprint feature, the fingerprint database entry method also includes: determining whether the minimum difference of the current learning fingerprint feature is less than or equal to the comparison threshold; if the minimum difference of the current learning fingerprint feature is less than or equal to the comparison threshold, executing the step of determining whether the minimum difference is within the learning interval.
[0014] In another embodiment, before determining whether the minimum difference is within the learning interval, the fingerprint database entry method further includes: determining the image quality of the comparison fingerprint image, and if the image quality meets the second qualification condition, executing the step of determining whether the minimum difference is within the learning interval.
[0015] In another embodiment, after the current learning fingerprint feature is entered into the learning base library, the fingerprint base library entry method also includes: determining whether the number of fingerprint features in the fingerprint base library reaches an upper limit value; if the number of fingerprint features in the fingerprint base library reaches the upper limit value, then updating the lower limit difference of the learning interval to the minimum difference of the most similar fingerprint feature in the current learning base library.
[0016] In a second aspect, an embodiment of the present disclosure provides a fingerprint base database entry device, wherein the fingerprint base database includes an entry base database, and the fingerprint base database entry device includes: an acquisition module, used to acquire an entry fingerprint image; an extraction module, used to extract the fingerprint features to be entered of the entry fingerprint image; a processing module, used to determine whether the fingerprint features to be entered are similar to any fingerprint features in the entry base database; if the fingerprint features to be entered are not similar to any fingerprint features in the entry base database, the fingerprint features to be entered are stored in the entry base database, and the entry count n is updated, wherein the initial value of the entry count n is 0; if the fingerprint features to be entered are similar to any fingerprint features in the entry base database, the entry count n is updated according to the duplicate checking interval; an execution module, used to determine whether the current entry count n is equal to the entry threshold; if the current entry count n is equal to the entry threshold, the entry of the entry base database is terminated; if the current entry count n is less than the entry threshold, the step of obtaining the entry fingerprint image is returned.
[0017] In a third aspect, an embodiment of the present disclosure provides an electronic device, wherein the electronic device includes: a memory for storing instructions; and a processor for calling the instructions stored in the memory to execute the fingerprint database entry method described in the first aspect of the present disclosure or any one of the embodiments of the first aspect.
[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the fingerprint database entry method described in the first aspect or any one of the embodiments of the first aspect is executed.
[0019] The present disclosure provides a fingerprint database entry method, which effectively reduces the possibility of repeated fingerprint features being entered into the fingerprint database while ensuring a smooth user interface experience for the user, and increases the number of fingerprint features in the fingerprint database that cover various entry states, so as to improve the success rate of comparison between the fingerprint features entered into the fingerprint database and the fingerprint features to be detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other objects, features and advantages of the embodiments of the present disclosure will become readily understood by reading the following detailed description with reference to the accompanying drawings. In the accompanying drawings, embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0021] Figure 1 A flow chart of a fingerprint database entry method provided by an embodiment of the present disclosure is shown;
[0022] Figure 2 A flowchart of a fingerprint base database entry method according to a duplicate checking interval in which an entry count is updated is shown;
[0023] Figure 3 A flowchart of another fingerprint database entry method provided by an embodiment of the present disclosure is shown;
[0024] Figure 4 A flowchart of another fingerprint database entry method provided by an embodiment of the present disclosure is shown;
[0025] Figure 5 It is a flowchart showing the step of updating the learning base database according to the current learning fingerprint feature in a fingerprint base database entry method provided by an embodiment of the present disclosure;
[0026] Figure 6 It is a flowchart showing the step of updating the learning base database according to the current learning fingerprint feature in a fingerprint base database entry method provided by an embodiment of the present disclosure;
[0027] Figure 7 It is a flowchart showing updating the learning base database according to the current learning fingerprint feature in another fingerprint base database entry method provided by the embodiment of the present disclosure;
[0028] Figure 8 It is a schematic diagram of a fingerprint base database entry method disclosed in the present invention after the entry of the base database is completed;
[0029] Fig. 9 It is a schematic diagram of another fingerprint base database entry method disclosed in the present invention after the entry of the base database is completed;
[0030] Fig.10 It is a schematic diagram of another fingerprint base database entry method disclosed in the present invention after the entry of the base database is completed;
[0031] Fig.11 It is a schematic diagram of another fingerprint base database entry method disclosed in the present invention after the entry of the base database is completed;
[0032] Fig.12 It is a schematic diagram of another fingerprint base database entry method disclosed in the present invention after the entry of the base database is completed;
[0033] Fig.13 It is a schematic diagram of another fingerprint base database entry method disclosed in the present invention after the entry of the base database is completed;
[0034] Fig.14 It is a schematic diagram of another fingerprint base database entry method disclosed in the present invention after the entry of the base database is completed;
[0035] Fig.15 It is a schematic diagram of another fingerprint database entry method disclosed in the present invention after the entry into the database is completed.
[0036] Fig.16 A schematic diagram of a fingerprint database entry device provided by an embodiment of the present disclosure is shown;
[0037] Fig.17 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0038] The principles and spirit of the present disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way.
[0039] It should be noted that although the expressions "first", "second", etc. are used herein to describe different modules, steps, data, etc. of the embodiments of the present disclosure, the expressions "first", "second", etc. are only used to distinguish between different modules, steps, data, etc., and do not indicate a specific order or importance. In fact, the expressions "first", "second", etc. can be used interchangeably.
[0040] With the development and maturity of AI biometric technology, under-screen fingerprint recognition technology has become the first choice for mobile unlocking and security management.
[0041] Due to different recording directions of fingerprints, the fingerprint features of the same person will also be different. The fingerprint features of various recording states include fingerprint features recorded along different recording directions.
[0042] In the process of fingerprint entry into the database, under the premise of ensuring a smooth user interface, the fingerprint database contains fingerprint features of various entry states, which is an important factor in improving the success rate of comparing the fingerprint features in the fingerprint database with the fingerprint features to be detected.
[0043] The present invention provides a fingerprint database entry method, which effectively reduces the possibility of repeated fingerprint features being entered into the fingerprint database while ensuring a smooth user interface experience for the user, and increases the number of fingerprint features in the fingerprint database that are entered into the fingerprint database and cover various entry states, so as to improve the success rate of comparison between the fingerprint features entered into the fingerprint database and the fingerprint features to be detected.
[0044] Figure 1 A flow chart of a fingerprint database entry method provided by an embodiment of the present disclosure is shown.
[0045] like Figure 1 As shown, the fingerprint base database entry method provided by the present disclosure, wherein the fingerprint base database includes an entry base database. The fingerprint base database entry method includes step S101, step S102, step S103, step S104, step S105, step S106, step S107 and step S108. Each step will be introduced below.
[0046] In step S101, a fingerprint image is obtained.
[0047] The fingerprint base includes the entry base and the learning base, and the fingerprint feature entry process includes the pre-entry stage and the learning stage. Among them, the fingerprint features entered in the pre-entry stage will be stored in the entry base, and the fingerprint features entered in the learning stage will be stored in the learning base.
[0048] The recorded fingerprint image obtained in step S101 is a fingerprint image corresponding to the fingerprint feature recorded into the recording base database in the pre-recording stage.
[0049] In step S102, the fingerprint features to be recorded are extracted from the recorded fingerprint image.
[0050] In step S103, it is determined whether the fingerprint feature to be recorded is similar to any fingerprint feature in the recorded base database.
[0051] Based on the acquired recorded fingerprint image, the features of the fingerprint to be recorded are extracted, and it is determined whether the features of the fingerprint to be recorded are similar to any fingerprint features in the recorded base database.
[0052] In one implementation, whether the fingerprint feature to be recorded is similar to any fingerprint feature in the recorded base database can be determined by comparing the feature vector of the fingerprint feature to be recorded with the feature vector of any fingerprint feature in the recorded base database.
[0053] Based on the feature vectors of the two, the similarity between the two is obtained. If the similarity between the two is less than the similarity threshold, it means that the fingerprint feature to be recorded is not similar to the fingerprint feature in the recorded base database; if the similarity between the two is greater than or equal to the similarity threshold, it means that the fingerprint feature to be recorded is similar to the fingerprint feature in the recorded base database.
[0054] In step S104, if the fingerprint feature to be recorded is not similar to the fingerprint features in the recorded base database, the recorded fingerprint feature is stored in the recorded base database, and the recorded count n is updated. The initial value of the recorded count n is 0.
[0055] The fingerprint features to be recorded that are not similar to the fingerprint features in the recorded base database are stored in the recorded base database, which increases the fingerprint features in various recorded states stored in the recorded base database, thereby improving the success rate of comparing the fingerprint features in the recorded fingerprint base database with the fingerprint features to be detected.
[0056] In step S105, if the fingerprint feature to be recorded is similar to any fingerprint feature in the recorded base database, the recording count n is updated according to the duplicate checking interval.
[0057] In order to improve the user experience, it is often necessary to restrict the first few fingerprint features entered by the user from being checked for duplicates.
[0058] When the fingerprint feature to be recorded by the user is similar to other fingerprint features in the recording base, in order to ensure a smooth user experience, the user may not be prompted to change the finger direction to collect fingerprint features in other recording states. Instead, the recording count n is directly updated, and the fingerprint feature to be recorded provided by the user is not stored in the recording base.
[0059] In order to increase the storage of more effective fingerprint features in the entry base, a duplicate checking interval can be set in the entry base, where the duplicate checking interval is a duplicate checking interval for the entry count n.
[0060] Based on the duplicate checking interval, the fingerprint features to be entered whose entry count n is within the duplicate checking interval are checked for duplicates.
[0061] When the fingerprint feature to be recorded is similar to any fingerprint feature in the recording base database, the fingerprint feature to be recorded is not stored in the recording base database to reduce the repeated fingerprint features in the recording base database. And whether to update the recording count n is determined according to the duplicate checking interval.
[0062] The entry count n refers to the number of times the user provides a fingerprint image to enter the fingerprint feature. The number of entry times can affect the user's experience. If the user actually provides a fingerprint image, but the fingerprint image is not recorded as the number of entry times, it means that the user's fingerprint image acquisition is unsuccessful this time, and the user needs to provide a fingerprint image again, which will reduce the user's experience.
[0063] By updating the entry count n, although the fingerprint features to be entered of the fingerprint image provided by the user are not stored in the entry base, the user can still experience the smoothness of successful fingerprint feature entry.
[0064] In step S106, it is determined whether the current entry count n is equal to the entry threshold.
[0065] The entry threshold is the upper limit of the number of fingerprint features that can be entered into the base database. The value of the entry threshold can be adjusted according to actual conditions, and the present disclosure does not limit the specific value of the entry threshold.
[0066] In step S107, if the current entry count n is equal to the entry threshold, the entry into the base database is terminated.
[0067] In step S108, if the current entry count n is less than the entry threshold, the process returns to step S101 of obtaining the entry fingerprint image.
[0068] The present invention provides a fingerprint database entry method, which effectively reduces the possibility of repeated fingerprint features being entered into the fingerprint database while ensuring a smooth user interface experience for the user, and increases the number of fingerprint features in various entry states entered into the fingerprint database, so as to improve the success rate of comparison between the fingerprint features entered into the fingerprint database and the fingerprint features to be detected.
[0069] Figure 2 A flowchart of the step of updating the entry count according to the duplicate checking interval in a fingerprint base database entry method provided by an embodiment of the present disclosure is shown.
[0070] In an exemplary embodiment of the present disclosure, Figure 2 As shown, in step S105, if the fingerprint feature to be recorded is similar to any fingerprint feature in the recorded base database, the recorded count n is updated according to the duplicate checking interval, including step S1051, step S1052 and step S1053. Step S1051, step S1052 and step S1053 will be described below respectively.
[0071] In step S1051, if the fingerprint feature to be entered is similar to any fingerprint feature in the entry base database, it is determined whether the current entry count n is within the duplicate checking interval.
[0072] The duplicate checking interval is the duplicate checking interval for the input count n.
[0073] In a possible embodiment, in order to improve the user's smooth experience, it can be limited to not allowing duplicate checking for the first few images in the fingerprint entry process, or not allowing duplicate checking for the last few images in the fingerprint entry process.
[0074] The duplicate checking interval can be an interval between the interval [0, entry threshold]. For example, when the entry threshold is 15, the duplicate checking interval can be [5, 15]. When the entry count n of a fingerprint feature is 6, it means that the fingerprint feature is in the duplicate checking interval.
[0075] In step S1052, if the current entry count n is in the duplicate checking interval, return to the step of obtaining the entry fingerprint image.
[0076] If the current entry count n is in the duplicate checking interval, it means that the fingerprint feature cannot be entered into the entry base, and the entry count n is not updated. It is necessary to return to the step S101 of obtaining the entry fingerprint image to obtain a new entry fingerprint image.
[0077] In actual applications, if the current input count n is in the duplicate checking interval, the user can be reminded to change the finger direction to collect fingerprint features in other input states. This is used to obtain fingerprint features to be input that are different from other fingerprint features in the input base database, thereby increasing the fingerprint features of different input states in the input base database, providing a basis for improving the success rate of comparing fingerprint features in the input fingerprint base database with fingerprint features to be detected.
[0078] In step S1053, if the current entry count n is not in the duplicate checking interval, the entry count n=n+1 is updated.
[0079] If the current entry count n is not in the duplicate checking interval, the entry count n is updated without storing the fingerprint feature to be entered into the entry base. The entry count n can be updated to n+1, so as to improve the user experience without increasing the number of repeated fingerprint features in the entry base.
[0080] In actual applications, if the current input count n is not in the duplicate checking range, the fingerprint feature to be input will not be stored in the input base database, and the user will not be prompted to change the finger direction to collect fingerprint features in other input states. This ensures that no duplicate fingerprint features are added to the input base database, and also ensures a smooth user experience in the fingerprint input process.
[0081] Figure 3 A flowchart of another fingerprint database entry method provided by an embodiment of the present disclosure is shown.
[0082] In an exemplary embodiment of the present disclosure, Figure 3 As shown, before extracting the fingerprint features to be recorded in the recorded fingerprint image in step S102, the fingerprint database recording method further includes steps S109, S110 and S111. Steps S109, S110 and S111 will be described below respectively.
[0083] In step S109, the image quality of the recorded fingerprint image is determined.
[0084] In step S110, if the image quality meets the first qualified condition, the step of extracting the fingerprint features to be recorded of the recorded fingerprint image is performed based on the recorded fingerprint image.
[0085] The quality of the collected fingerprint image affects the extracted fingerprint features to be recorded. Therefore, before performing step S102, that is, before executing the step of extracting the fingerprint features to be recorded of the fingerprint image, it is necessary to determine whether the image quality of the acquired fingerprint image meets the first qualified condition.
[0086] The first qualified condition may include whether the illumination quality of the recorded fingerprint image is qualified, whether the collection process of the recorded fingerprint image passes the liveness detection, etc. The first qualified condition may be adjusted according to actual conditions, and in the present disclosure, no specific limitation is imposed on the first condition.
[0087] In step S111, if the image quality does not meet the first qualification condition, the process returns to the step of obtaining the fingerprint image to be recorded.
[0088] In the application, if the image quality does not meet the first qualified condition, the process returns to step S101, that is, reacquiring the recorded fingerprint image.
[0089] Figure 4 A flowchart of another fingerprint database entry method provided by an embodiment of the present disclosure is shown.
[0090] In an exemplary embodiment of the present disclosure, the fingerprint base database further includes a learning base database.
[0091] like Figure 4 As shown, after the entry of the base database is completed, the fingerprint base database entry method further includes step S112, step S113 and step S114. Step S112, step S113 and step S114 will be described below respectively.
[0092] In step S112, a fingerprint image for comparison is obtained.
[0093] The comparison fingerprint image refers to the fingerprint image obtained later for unlocking the fingerprint.
[0094] In the later unlocking process, a higher quality fingerprint image may be collected, thereby obtaining a higher quality fingerprint feature. At this time, the fingerprint image for comparison is also the fingerprint image obtained in the learning stage.
[0095] If the collected fingerprint features with higher quality are stored in the fingerprint base database, the fingerprint features in various input states stored in the fingerprint base database will be increased, thereby improving the success rate of comparing the fingerprint features in the input fingerprint base database with the fingerprint features to be detected.
[0096] In step S113, the fingerprint features currently being learned are obtained based on the comparison fingerprint image.
[0097] The current learning fingerprint feature is the fingerprint feature obtained in the learning stage, and is used to determine whether it can be entered into the learning base database through learning.
[0098] The currently learned fingerprint feature refers to the fingerprint feature of the comparison image extracted based on the currently acquired comparison image.
[0099] The learning base database is a fingerprint base database for storing learning fingerprint features. Among them, the current learning fingerprint features stored in the learning base database are learning fingerprint features.
[0100] In step S114, the learning base database is updated according to the current learning fingerprint features.
[0101] Figure 5 It is a flowchart showing updating the learning base database according to the current learning fingerprint features in a fingerprint base database entry method provided by an embodiment of the present disclosure.
[0102] In an exemplary embodiment of the present disclosure, Figure 5 As shown, in step S114, updating the learning base according to the current learning fingerprint feature includes step S1141, step S1142 and step S1143. Each step will be introduced below.
[0103] In step S1141, the minimum difference degree of the currently learned fingerprint feature is obtained according to the difference degree between the currently learned fingerprint feature and each fingerprint feature already recorded in the fingerprint base database.
[0104] The difference between the current learning fingerprint feature and each fingerprint feature recorded in the fingerprint base database is calculated respectively. The fingerprint base database includes the recorded base database and the learning base database. The difference refers to the difference between the current learning fingerprint feature and each fingerprint feature in the fingerprint base database.
[0105] The difference can be expressed by calculating the feature vector distance between the feature vector of the currently learned fingerprint feature and the feature vector of each fingerprint feature already recorded in the fingerprint base library.
[0106] The minimum difference degree of the currently learned fingerprint feature refers to the minimum difference degree among the differences between the currently learned fingerprint feature and each fingerprint feature in the fingerprint base database.
[0107] Now, taking the currently learned fingerprint feature A and all the fingerprint features in the fingerprint base database (fingerprint feature B, fingerprint feature C and fingerprint feature D) as an example, the minimum difference of the currently learned fingerprint feature is explained.
[0108] Through the calculation of the fingerprint feature vector, the difference between the currently learned fingerprint feature A and the fingerprint feature B is 300; the difference between the currently learned fingerprint feature A and the fingerprint feature C is 350; the difference between the currently learned fingerprint feature A and the fingerprint feature D is 400. Since the difference between the currently learned fingerprint feature A and the fingerprint feature B is 300, which is the minimum value among all the differences, it means that the currently learned fingerprint feature A and the fingerprint feature B have the most similar features, among which the minimum difference of the currently learned fingerprint feature A is 300.
[0109] In step S1142 , it is determined whether the minimum difference is within the learning interval.
[0110] If the currently learned fingerprint feature can be learned into the fingerprint base, it is required that the currently learned fingerprint feature is not only the fingerprint feature of the user that can unlock the phone, but also has a certain degree of difference from other fingerprint features in the fingerprint base. Therefore, by judging whether the currently learned fingerprint feature is in the learning interval, it is determined whether the currently learned fingerprint feature can be learned into the fingerprint base, so as to increase the number of effective fingerprint features in the fingerprint base.
[0111] In step S1143, if the minimum difference is within the learning interval, the learning base database is updated according to the current learning fingerprint feature, and the minimum difference of the current learning fingerprint feature is stored in the learning base database.
[0112] The current learning fingerprint features are entered into the learning base database of the fingerprint base database, which can increase the number of effective fingerprint features in the fingerprint base database, thereby improving the success rate of comparing the fingerprint features in the entered fingerprint base database with the fingerprint features to be detected.
[0113] When the number of fingerprint features in the fingerprint base database does not reach the upper limit, the current learning fingerprint feature can be directly entered into the learning base database.
[0114] When the number of fingerprint features in the fingerprint base database reaches the upper limit, a learning fingerprint feature in the learning base database may be removed first, and then the current learning fingerprint feature may be entered into the learning base database.
[0115] After the current learning fingerprint feature is entered into the learning base database, it will become the learning fingerprint feature in the current learning base database.
[0116] The current learning fingerprint feature is entered into the learning base database, and the minimum difference of the current learning fingerprint feature is also stored in the learning base database, and the corresponding relationship with the corresponding learning fingerprint feature is recorded.
[0117] The learning interval can be determined according to actual conditions, and in the present disclosure, no specific limitation is made to the learning interval.
[0118] Figure 6It is a flowchart showing the step of updating the learning base database according to the current learning fingerprint features in a fingerprint base database entry method provided by an embodiment of the present disclosure.
[0119] In an exemplary embodiment of the present disclosure, Figure 6 As shown, updating the learning base according to the current learning fingerprint feature in step S1143 includes step S11431, step S11432 and step S11433. Step S11431, step S11432 and step S11433 will be described below respectively.
[0120] In step S11431, it is determined whether the number of fingerprint features in the fingerprint base database has reached an upper limit.
[0121] Since there is an upper limit to the number of fingerprint features that can be stored in the fingerprint base database, before entering the current learning fingerprint feature into the learning base database, it is also necessary to determine whether the number of fingerprint features stored in the fingerprint base database has reached the upper limit.
[0122] The upper limit of the number of fingerprint features that can be stored in the fingerprint base database is determined according to actual conditions. In the present disclosure, no specific limitation is made on the upper limit of the number of fingerprint features that can be stored in the fingerprint base database.
[0123] In step S11432, if the number of fingerprint features in the fingerprint base database does not reach the upper limit, the current learning fingerprint feature is entered into the learning base database.
[0124] In step S11433, if the number of fingerprint features in the fingerprint base database reaches the upper limit, the most similar fingerprint feature is deleted, and the current learning fingerprint feature is entered into the learning base database.
[0125] The most similar fingerprint feature is the learning fingerprint feature corresponding to the minimum value of the minimum difference in the current learning base library.
[0126] In the application process, in addition to storing the learning fingerprint features, the learning base also stores the minimum difference of the learning fingerprint features. According to each minimum difference, the most similar fingerprint feature in the learning base, the minimum difference of the most similar fingerprint feature, and the storage position corresponding to the most similar fingerprint feature are obtained.
[0127] For example, the learning base database stores learning fingerprint feature A, learning fingerprint feature B, and learning fingerprint feature C. Through fingerprint feature vector calculation, the minimum difference of learning fingerprint feature A is 350; the minimum difference of learning fingerprint feature B is 360; and the minimum difference of learning fingerprint feature C is 400. Since the minimum difference of learning fingerprint feature A is less than the minimum difference of any fingerprint feature (learning fingerprint feature B and learning fingerprint feature C) in the current learning base database, it can be determined that the most similar fingerprint feature in the current learning base database is learning fingerprint feature A.
[0128] Before entering the new learning fingerprint feature into the learning base database, if the number of learning fingerprint features stored in the learning base database has not reached the upper limit, the new learning fingerprint feature is directly entered into the learning base database to increase the number of valid fingerprint features in the fingerprint base database.
[0129] Before entering a new learning fingerprint feature into the learning base database, if the number of learning fingerprint features stored in the learning base database reaches the upper limit, the most similar fingerprint feature in the current learning base database is deleted based on the storage location corresponding to the most similar fingerprint feature recorded in real time, and the new learning fingerprint feature is stored in the storage location corresponding to the deleted most similar fingerprint feature.
[0130] Since the new learning fingerprint features have been stored in the learning base library, at this time, the minimum difference of each learning fingerprint feature in the learning base library will be updated.
[0131] It should be noted that the “new learning fingerprint features” mentioned above are the current learning fingerprint features before being entered into the learning base database.
[0132] Figure 7 It is a flowchart showing the step of updating the learning base database according to the current learning fingerprint features in a fingerprint base database entry method provided by an embodiment of the present disclosure.
[0133] In an exemplary embodiment of the present disclosure, Figure 7 As shown, in step S114, updating the learning base according to the current learning fingerprint feature also includes step S11434. Step S11434 will be described below.
[0134] In step S11434, if the minimum difference of the current learning fingerprint feature is obtained by comparing the learning fingerprint features already recorded in the learning base database, the corresponding minimum difference of the recorded learning fingerprint feature is updated to the minimum difference of the current learning fingerprint feature.
[0135] In one embodiment, the minimum difference of the current learning fingerprint feature is obtained by comparing with a certain learning fingerprint feature that has been recorded in the learning base library. For ease of explanation, a certain learning fingerprint feature that has been recorded in the learning base library is now represented as learning fingerprint feature N.
[0136] If the minimum difference of the learning fingerprint feature N that has been recorded in the learning base is greater than the minimum difference of the current learning fingerprint feature, the current learning fingerprint feature will affect the minimum difference of the learning fingerprint feature N that has been recorded in the learning base. At this time, the minimum difference of the learning fingerprint feature N that has been recorded in the learning base will be updated to the same minimum difference as the current learning fingerprint feature.
[0137] In a possible embodiment, if the minimum difference of the learning fingerprint feature N that has been recorded in the learning base is smaller than the minimum difference of the new learning fingerprint feature, since the current learning fingerprint feature is recorded in the learning base, it will not affect the minimum difference of the learning fingerprint feature N that has been recorded in the learning base. At this time, the minimum difference of the learning fingerprint feature N that has been recorded in the learning base is still the minimum difference of the previous learning fingerprint feature N.
[0138] After the current learning fingerprint feature is entered into the learning base database, the minimum difference of the learning fingerprint features in the learning base database will be updated. Based on the updated minimum difference of each learning fingerprint feature, the most similar fingerprint feature in the current learning base database, the minimum difference of the most similar fingerprint feature, and the storage location of the most similar fingerprint feature are re-determined.
[0139] In an exemplary embodiment of the present disclosure, when the minimum value of the minimum difference in the current learning base database corresponds to at least two learning fingerprint features, the learning fingerprint feature with the latest entry time is used as the most similar fingerprint feature.
[0140] As a variation, when the minimum value of the minimum difference in the current learning base database corresponds to at least two learning fingerprint features, the learning fingerprint feature with the earliest entry time may also be used as the most similar fingerprint feature.
[0141] Record the storage location of the most similar fingerprint feature. If the number of fingerprint features in the fingerprint base reaches the upper limit, when the current learning fingerprint feature needs to be learned again, the most similar fingerprint feature can be found based on the storage location of the most similar fingerprint feature, the most similar fingerprint feature can be deleted, and the current learning fingerprint feature can be entered into the learning base.
[0142] In an exemplary embodiment of the present disclosure, before obtaining the current learning fingerprint feature according to the comparison fingerprint image, the fingerprint database entry method further includes determining the image quality of the comparison fingerprint image.
[0143] If the image quality meets the preset qualified conditions, the current learning fingerprint features are obtained according to the fingerprint image comparison, and the learning base database is updated according to the current learning fingerprint features.
[0144] In a possible embodiment, if the image quality does not meet the preset qualification condition, the process of learning the matched fingerprint image into the learning base database is terminated.
[0145] The quality of the collected comparison fingerprint image has an impact on the extracted current learning fingerprint features. Therefore, before obtaining the current learning fingerprint features based on the comparison image, it is necessary to determine whether the image quality of the obtained comparison fingerprint image meets the preset qualified conditions.
[0146] Since the comparison fingerprint image is a fingerprint image obtained in the later unlocking process, and since the learning fingerprint features corresponding to the fingerprint image may be stored in the fingerprint base database, it is necessary that the comparison fingerprint image and the learning fingerprint features corresponding to the comparison fingerprint image have higher quality.
[0147] The role of the preset qualification condition is the same as that of the first qualification condition. The preset qualification condition may include whether the illumination quality of the fingerprint image is qualified, whether the fingerprint image collection process passes the liveness detection, etc. However, the severity of the preset qualification condition may be greater than or equal to the severity of the first qualification condition.
[0148] The preset qualification conditions can also be adjusted according to actual conditions. In the present disclosure, no specific restrictions are imposed on the preset conditions.
[0149] In an exemplary embodiment of the present disclosure, in step S1141, after obtaining the minimum difference of the currently learned fingerprint feature, the fingerprint base database entry method also includes: determining whether the minimum difference of the currently learned fingerprint feature is less than or equal to the comparison threshold; if the minimum difference of the currently learned fingerprint feature is less than or equal to the comparison threshold, executing the step of determining whether the minimum difference is within the learning interval.
[0150] The current learning fingerprint feature can be learned into the fingerprint base, and the prerequisite is that the current learning fingerprint feature is the user fingerprint feature that can be unlocked. The current learning fingerprint feature can be compared with the user's fingerprint feature. If the current learning fingerprint feature is similar to the user's fingerprint feature, it can be indicated that the current learning fingerprint feature is the user fingerprint feature that can be unlocked.
[0151] In the application, whether the currently learned fingerprint feature is similar to the fingerprint feature of the user can be determined by judging whether the minimum difference of the currently learned fingerprint feature is less than or equal to the comparison threshold.
[0152] The comparison threshold may be adjusted according to actual conditions, and in the present disclosure, the specific value of the comparison threshold is not limited.
[0153] In step S1142 of an exemplary embodiment of the present disclosure, it is determined whether the minimum difference is located before the learning interval. The fingerprint database entry method also includes: determining the image quality of the fingerprint image to be compared. If the image quality meets the second qualified condition, the step of determining whether the minimum difference is located before the learning interval is executed.
[0154] If the learned fingerprint features corresponding to the compared fingerprint image are to be stored in the fingerprint base database, the compared fingerprint image and the learned fingerprint features need to have higher quality.
[0155] The role of the second qualification condition is the same as that of the first qualification condition or the preset qualification condition. The second qualification condition may include whether the illumination quality of the fingerprint image is qualified, whether the fingerprint image collection process passes the liveness detection, etc. However, the stringency of the second qualification condition needs to be greater than that of the first qualification condition and the preset qualification condition.
[0156] The second qualification condition can also be adjusted according to actual conditions. In the present disclosure, no specific restrictions are imposed on the second condition.
[0157] The following example is used to illustrate the fingerprint database entry method disclosed in the present invention after the entry into the database is completed, and each step will be introduced below.
[0158] Step 1: Get a fingerprint image for comparison.
[0159] Step 2: Determine the image quality of the fingerprint image for comparison.
[0160] Step 2.1: If the image quality of the comparison image does not exceed the preset qualified condition, the fingerprint feature learning corresponding to the comparison fingerprint image into the learning base database is terminated.
[0161] Step 2.2: If the image quality of the comparison fingerprint image exceeds the preset qualified condition, the fingerprint feature of the comparison fingerprint image can be obtained based on the comparison fingerprint image, which is the current learning fingerprint feature.
[0162] Step 3: After obtaining the current learning fingerprint feature, calculate the difference between the current learning fingerprint feature and each fingerprint feature already recorded in the fingerprint base database. And based on the difference, select the minimum value of the difference as the minimum difference of the current learning fingerprint feature.
[0163] For ease of explanation, the minimum difference may be recorded as minScore, and the minimum difference of the current learning fingerprint feature may be recorded as curr_study_min_score.
[0164] Step 4: Determine whether the minimum difference of the currently learned fingerprint feature is less than or equal to the comparison threshold.
[0165] Step 4.1: If the minimum difference is greater than the comparison threshold, it means that the fingerprint feature comparison has failed. The currently learned fingerprint feature is not the user fingerprint feature that can be unlocked.
[0166] Step 4.2: If the minimum difference is less than or equal to the comparison threshold, it means that the current learning fingerprint feature is a user fingerprint feature that can be unlocked. The current learning fingerprint feature has the prerequisite to be learned and entered into the learning base.
[0167] Step 5: Determine whether the image quality of the comparison fingerprint image corresponding to the current learning fingerprint feature exceeds the second qualification condition.
[0168] Step 5.1: If the image quality of the compared fingerprint image does not exceed the second qualified condition, the learning of the current learning fingerprint feature into the learning base database is terminated.
[0169] Step 5.2: If the image quality of the comparison fingerprint image exceeds the second qualified condition, it means that the quality of the comparison fingerprint image meets the standard, and the current learning fingerprint features of the comparison fingerprint image have the prerequisite for learning to enter the learning base database.
[0170] Step 6: Determine whether the minimum difference curr_study_min_score of the current learning fingerprint feature is within the learning interval. The learning interval is recorded as (study_down_threshold, study_up_threshold).
[0171] Step 6.1: If the minimum difference curr_study_min_score of the current learning fingerprint feature is not within the learning interval (study_down_threshold, study_up_threshold), it means that the current learning fingerprint feature does not meet the conditions for learning to enter the learning base library.
[0172] Step 6.2: If the minimum difference curr_study_min_score of the current learning fingerprint feature is in the learning interval (study_down_threshold, study_up_threshold), it means that the current learning fingerprint feature meets the conditions for learning to enter the learning base library. Record the minimum difference curr_study_min_score of the current learning fingerprint feature and the position curr_study_min_idx of the fingerprint feature stored in the fingerprint base library that has the minimum difference curr_study_min_score obtained by comparing with the current learning fingerprint feature.
[0173] Step 7: Update the current learning base library according to the current learning fingerprint features.
[0174] Step 7.1: If the fingerprint base curr_study_min_idx with the minimum difference curr_study_min_score obtained by comparison with the current learning fingerprint feature is a fingerprint feature in the learning base, then update the minimum difference minScore corresponding to the fingerprint feature curr_study_min_idx = curr_study_min_score.
[0175] Step 7.2: If the number of fingerprint features in the current fingerprint base database does not reach the upper limit, the current learning fingerprint feature is directly recorded into the learning base database, and the recording count of the learning fingerprint feature recorded into the learning base database is recorded as study_used_count+=1. The minimum difference of the learning fingerprint feature currently learning into the learning base database corresponding to the position of study_used_count is recorded as minScore=curr_study_min_score.
[0176] Step 7.3: If the number of fingerprint features in the current fingerprint base reaches the upper limit, the learning fingerprint feature corresponding to the minimum difference minScore recorded last time is replaced with the current learning fingerprint feature. Among them, the replaced learning fingerprint feature is the most similar fingerprint feature, and the location of the most similar fingerprint feature stored in the learning base is last_min_idx. Update the minimum difference minScore corresponding to the replaced most similar fingerprint feature = curr_study_min_score.
[0177] Step 8: Sort the learned fingerprints in the current learning base library according to the minimum difference minScore to find the minimum value in the minimum difference minScore, and update the fingerprint feature corresponding to the minimum value in the minimum difference minScore to the most similar fingerprint feature, and record the storage location last_min_idx of the most similar fingerprint feature in the current learning base library.
[0178] In one embodiment, the fingerprint base can store 30 fingerprint features, wherein 0-19 bits in the fingerprint base are stored input fingerprint features, and the fingerprint base of 0-19 bits is the input base. 20-29 bits in the fingerprint base are stored learning fingerprint features learned into the fingerprint base, and the fingerprint base of 20-29 bits is the learning base.
[0179] Let the comparison threshold be 500 and the learning interval (study_down_threshold, study_up_threshold) be (0, 490).
[0180] like Figure 8 As shown, when the user successfully enters 20 input fingerprint features, the fingerprint base database reserves 10 storage locations for storing learning fingerprint features for the learning base database. After the input fingerprint features in the input base database are completed, the parameters in the learning base database are initialized, where last_min_idx=20; study_used_count=0.
[0181] like Fig. 9As shown, input the comparison fingerprint image that passes the comparison threshold. Based on the comparison fingerprint image, obtain the current learning fingerprint feature, and obtain the minimum difference minScore of the current learning fingerprint feature. The calculated minimum difference minScore = 380, the minimum difference minScore = 380 is located in the learning interval (study_down_threshold, study_up_threshold) = (0, 490), and the current learning fingerprint feature can be entered into the 20th position in the learning base library. Since the number of fingerprint features in the current fingerprint base library does not reach the upper limit, last_min_idx = 20. study_used_count = 1.
[0182] like Fig.10 As shown, input a comparison fingerprint image that passes the comparison threshold. Based on the comparison fingerprint image, obtain the current learning fingerprint feature, and obtain the minimum difference minScore of the current learning fingerprint feature. Among them, the minimum difference minScore of the current learning fingerprint feature is obtained by comparing with the recorded fingerprint feature in the recorded base library. The minimum difference minScore of the current learning fingerprint feature is 450. The minimum difference minScore = 450 is located in the learning interval (study_down_threshold, study_up_threshold) = (0, 490), and the current learning fingerprint feature can be recorded into the 21st position in the learning base library. Since the number of fingerprint features in the current fingerprint base library has not reached the upper limit, last_min_idx = 20. study_used_count = 2.
[0183] like Fig.11 As shown, input a comparison fingerprint image that passes the comparison threshold. Based on the comparison fingerprint image, obtain the current learning fingerprint feature, and obtain the minimum difference minScore of the current learning fingerprint feature. Among them, the minimum difference minScore of the current learning fingerprint feature is obtained by comparing with the recorded fingerprint feature in the recorded base library. The minimum difference minScore of the current learning fingerprint feature is 460. The minimum difference minScore = 460 is located in the learning interval (study_down_threshold, study_up_threshold) = (0, 490), and the current learning fingerprint feature can be recorded into the 22nd position in the learning base library. Since the number of fingerprint features in the current fingerprint base library has not reached the upper limit, last_min_idx = 20. study_used_count = 3.
[0184] like Fig.12As shown, input a comparison fingerprint image that passes the comparison threshold. Based on the comparison fingerprint image, obtain the current learning fingerprint feature, and obtain the minimum difference minScore of the current learning fingerprint feature. Among them, the minimum difference minScore of the current learning fingerprint feature is obtained by comparing with the 21st learning fingerprint feature in the learning base library. The minimum difference minScore of the current learning fingerprint feature is 390. The minimum difference minScore = 390 is located in the learning interval (study_down_threshold, study_up_threshold) = (0, 490), so the current learning fingerprint feature can be entered into the 23rd position in the learning base library. Since the number of fingerprint features in the current fingerprint base library has not reached the upper limit, last_min_idx = 20. study_used_count = 4. Based on the minimum difference minScore = 390 of the current learning fingerprint feature, update minScore
[21] and minScore
[23] .
[0185] like Fig.13 As shown, input a comparison fingerprint image that passes the comparison threshold. Based on the comparison fingerprint image, obtain the current learning fingerprint feature, and obtain the minimum difference minScore of the current learning fingerprint feature. Among them, the minimum difference minScore of the current learning fingerprint feature is obtained by comparing with the fingerprint feature recorded in the entry base library. The minimum difference minScore of the current learning fingerprint feature is 375. The minimum difference minScore = 375 is located in the learning interval (study_down_threshold, study_up_threshold) = (0, 490), and the current learning fingerprint feature can be recorded into the 29th position of the learning base library. Since the number of fingerprint features in the current fingerprint base library reaches the upper limit, last_min_idx = 28. study_used_count = 10. At this time, the learning fingerprint features of the learning base library are full.
[0186] like Fig.14As shown, input a comparison fingerprint image that passes the comparison threshold. Based on the comparison fingerprint image, obtain the current learning fingerprint feature, and obtain the minimum difference minScore of the current learning fingerprint feature. Among them, the minimum difference minScore of the current learning fingerprint feature is obtained by comparing with the 22nd learning fingerprint feature in the learning base library. The minimum difference minScore of the current learning fingerprint feature is 340. The minimum difference minScore = 340 is located in the learning interval (study_down_threshold, study_up_threshold) = (0, 490), and the current learning fingerprint feature can be recorded in the learning base library. Since the number of fingerprint features in the current fingerprint base library has reached the upper limit, it is necessary to delete the most similar fingerprint feature in the current learning base library, and record the current learning fingerprint feature to the storage location in the learning base library where the deleted most similar fingerprint feature is located. Replace the learning fingerprint feature in the base library last_min_idx = 28, and update minScore
[28] and minScore
[22] .
[0187] like Fig.15 As shown, input a comparison fingerprint image that passes the comparison threshold. Based on the comparison fingerprint image, obtain the current learning fingerprint feature, and obtain the minimum difference minScore of the current learning fingerprint feature. Among them, the minimum difference minScore of the current learning fingerprint feature is obtained by comparing with the fingerprint feature recorded in the recording base library. The minimum difference minScore of the current learning fingerprint feature is 425. The minimum difference minScore = 425 is located in the learning interval (study_down_threshold, study_up_threshold) = (0, 490), and the current learning fingerprint feature can be recorded in the learning base library. Since the number of fingerprint features in the current fingerprint base library reaches the upper limit, it is necessary to delete the most similar fingerprint feature in the current learning base library, and record the current learning fingerprint feature to the storage location in the learning base library where the deleted most similar fingerprint feature is located. Replace the learning fingerprint feature in the base library with last_min_idx = 28, and update minScore
[28] . After the current learning fingerprint feature is recorded, update last_min_idx = 22.
[0188] In an exemplary embodiment of the present disclosure, in step S1143, after the minimum difference of the currently learned fingerprint feature is stored in the learning base database, the fingerprint base database entry method also includes: determining whether the number of fingerprint features in the fingerprint base database has reached an upper limit value; if the number of fingerprint features in the fingerprint base database has reached the upper limit value, then updating the lower limit difference of the learning interval to the minimum difference of the most similar fingerprint feature in the current learning base database.
[0189] The minimum difference of the most similar fingerprint feature is smaller than the minimum difference of any fingerprint feature in the current learning base.
[0190] When the number of fingerprint features in the fingerprint base reaches the upper limit, if a new learning fingerprint feature is stored again, it is necessary to delete the most similar fingerprint feature in the current learning base based on the storage position corresponding to the most similar fingerprint feature recorded in real time, and store the new learning fingerprint feature to the storage position corresponding to the deleted most similar fingerprint feature.
[0191] When the minimum difference of the new learning fingerprint feature is less than the minimum difference of the most similar fingerprint feature in the current learning base library, if the most similar fingerprint feature in the current learning base library is deleted and the new learning fingerprint feature is stored in the storage position corresponding to the deleted most similar fingerprint feature, the quality of the new learning fingerprint feature in the learning base library will be lower than the quality of the deleted most similar fingerprint feature.
[0192] In order to solve this problem, the fingerprint base database entry method provided by the present disclosure updates the lower limit difference of the learning interval to the minimum difference of the most similar fingerprint feature in the current learning base database in real time when the number of fingerprint features in the fingerprint base database reaches the upper limit value, thereby ensuring that the quality of the new learning fingerprint feature is always higher than the quality of the most similar fingerprint feature in the current learning base database that has been deleted.
[0193] Through this embodiment, the number of effective fingerprint features in the fingerprint base database is increased, thereby improving the success rate of comparing the fingerprint features entered into the fingerprint base database with the fingerprint features to be detected.
[0194] Fig.16 A schematic diagram of a fingerprint database entry device provided by an embodiment of the present disclosure is shown.
[0195] Based on the same inventive concept, Fig.16 As shown, the embodiment of the present disclosure also provides a fingerprint database entry device.
[0196] The fingerprint base database includes an entry base database, and the fingerprint base database entry device includes: an acquisition module 201, an extraction module 202, a processing module 203 and an execution module 204. The acquisition module 201, the extraction module 202, the processing module 203 and the execution module 204 will be respectively introduced below.
[0197] The acquisition module 201 is used to acquire the recorded fingerprint image.
[0198] The extraction module 202 is used to extract the fingerprint features to be recorded from the recorded fingerprint image.
[0199] The processing module 203 is used to determine whether the fingerprint feature to be recorded is similar to any fingerprint feature in the recorded base database; if the fingerprint feature to be recorded is not similar to any fingerprint feature in the recorded base database, the fingerprint feature to be recorded is stored in the recorded base database, and the recorded count n is updated, wherein the initial value of the recorded count n is 0; if the fingerprint feature to be recorded is similar to any fingerprint feature in the recorded base database, the recorded count n is updated according to the duplicate checking interval.
[0200] The execution module 204 is used to determine whether the current entry count n is equal to the entry threshold; if the current entry count n is equal to the entry threshold, the entry of the entry base is terminated; if the current entry count n is less than the entry threshold, the step of obtaining the entry fingerprint image is returned.
[0201] In an exemplary embodiment of the present disclosure, the processing module 203 is also used to: if the fingerprint feature to be entered is similar to any fingerprint feature in the entry base database, then determine whether the current entry count n is in the duplicate checking interval; if the current entry count n is in the duplicate checking interval, then return to the step of obtaining the entry fingerprint image; if the current entry count n is not in the duplicate checking interval, then update the entry count n=n+1.
[0202] In an exemplary embodiment of the present disclosure, the acquisition module 201 is also used to: determine the image quality of the recorded fingerprint image; if the image quality meets the first qualified condition, then based on the recorded fingerprint image, execute the step of extracting the fingerprint features to be recorded in the recorded fingerprint image; if the image quality does not meet the first qualified condition, then return to the step of obtaining the recorded fingerprint image.
[0203] In an exemplary embodiment of the present disclosure, the fingerprint base database also includes a learning base database; after completing the entry of the base database, the processing module 203 is also used to: obtain a comparison fingerprint image; obtain the current learning fingerprint feature based on the comparison fingerprint image, and update the learning base database based on the current learning fingerprint feature.
[0204] In an exemplary embodiment of the present disclosure, the processing module 203 is also used to: obtain the minimum difference of the current learning fingerprint feature based on the difference between the current learning fingerprint feature and each fingerprint feature already recorded in the fingerprint base library, wherein the fingerprint feature includes the recorded fingerprint feature and the learning fingerprint feature; determine whether the minimum difference is within the learning interval; if the minimum difference is within the learning interval, update the learning base library based on the current learning fingerprint feature, and store the minimum difference of the current learning fingerprint feature in the learning base library.
[0205] In an exemplary embodiment of the present disclosure, the processing module 203 is also used to: determine whether the number of fingerprint features in the fingerprint base database has reached an upper limit value; if the number of fingerprint features in the fingerprint base database has not reached the upper limit value, enter the current learning fingerprint feature into the learning base database; if the number of fingerprint features in the fingerprint base database has reached the upper limit value, delete the most similar fingerprint feature, and enter the current learning fingerprint feature into the learning base database, wherein the most similar fingerprint feature is the learning fingerprint feature corresponding to the minimum value of the minimum difference in the current learning base database.
[0206] In an exemplary embodiment of the present disclosure, the acquisition module 201 is also used to: determine the image quality of the learning fingerprint image, and if the image quality reaches a preset qualified condition, perform the step of extracting and comparing the learning fingerprint features of the fingerprint image based on the learning fingerprint image.
[0207] In an exemplary embodiment of the present disclosure, the processing module 203 is also used for: if the minimum difference of the current learning fingerprint feature is obtained by comparing the learning fingerprint features already recorded in the learning base library, then the corresponding minimum difference of the recorded learning fingerprint feature is updated to the minimum difference of the current learning fingerprint feature.
[0208] In an exemplary embodiment of the present disclosure, when the minimum value of the minimum difference in the current learning base database corresponds to at least two learning fingerprint features, the learning fingerprint feature with the latest entry time is used as the most similar fingerprint feature.
[0209] In an exemplary embodiment of the present disclosure, the processing module 203 is also used to: determine whether the minimum difference of the current learning fingerprint feature is less than or equal to the comparison threshold; if the minimum difference of the current learning fingerprint feature is less than or equal to the comparison threshold, execute the step of determining whether the minimum difference is within the learning interval.
[0210] In an exemplary embodiment of the present disclosure, the processing module 203 is further used to: determine the image quality of the fingerprint image to be compared, and if the image quality meets the second qualified condition, execute the step of determining whether the minimum difference is within the learning interval.
[0211] In an exemplary embodiment of the present disclosure, the processing module 203 is also used to: determine whether the number of fingerprint features in the fingerprint base library has reached an upper limit value; if the number of fingerprint features in the fingerprint base library has reached the upper limit value, then update the lower limit difference of the learning interval to the minimum difference of the most similar fingerprint feature in the current learning base library, wherein the minimum difference of the most similar fingerprint feature is less than the minimum difference of any fingerprint feature in the current learning base library.
[0212] Fig.17 FIG. 2 shows an electronic device 30 provided by an embodiment of the present disclosure. Fig.17As shown, an electronic device 30 is provided in one embodiment of the present disclosure, wherein the electronic device 30 includes a memory 310, a processor 320, and an input / output (I / O) interface 330. The memory 310 is used to store instructions. The processor 320 is used to call the instructions stored in the memory 310 to execute the fingerprint base database entry method disclosed in the present disclosure. The processor 320 is connected to the memory 310 and the I / O interface 330 respectively, for example, through a bus system and / or other forms of connection mechanisms (not shown). The memory 310 can be used to store programs and data, including the fingerprint base database entry program involved in the embodiment of the present disclosure, and the processor 320 executes various functional applications and data processing of the electronic device 30 by running the program stored in the memory 310.
[0213] In the embodiment of the present disclosure, the processor 320 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 320 can be a central processing unit (CPU) or one or a combination of other forms of processing units with data processing capabilities and / or instruction execution capabilities.
[0214] The memory 310 in the embodiment of the present disclosure may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.
[0215] In the embodiment of the present disclosure, the I / O interface 330 may be used to receive input instructions (such as digital or character information, and key signal input related to user settings and function control of the electronic device 30), and may also output various information to the outside (such as images or sounds). In the embodiment of the present disclosure, the I / O interface 330 may include one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a mouse, a joystick, a trackball, a microphone, a speaker, and a touch panel.
[0216] In some embodiments, the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, perform any of the methods described above.
[0217] Although operations are described in a particular order in the drawings, this should not be understood as requiring that the operations be performed in the particular order shown or in serial order, or that all shown operations be performed to achieve desired results. In certain circumstances, multitasking and parallel processing may be advantageous.
[0218] The methods and apparatus of the present disclosure can be implemented using standard programming techniques, using rule-based logic or other logic to implement various method steps. It should also be noted that the words "apparatus" and "module" used herein and in the claims are intended to include implementations using one or more lines of software code and / or hardware implementations and / or devices for receiving input.
[0219] Any steps, operations or procedures described herein may be performed or implemented using one or more hardware or software modules, either alone or in combination with other devices. In one embodiment, the software module is implemented using a computer program product including a computer-readable medium containing computer program code, which can be executed by a computer processor to perform any or all of the described steps, operations or procedures.
[0220] The foregoing description of the implementation of the present disclosure has been given for the purpose of illustration and description. The foregoing description is not exhaustive nor is it intended to limit the present disclosure to the exact form disclosed, and various variations and modifications may exist in accordance with the above teachings or may be obtained from the practice of the present disclosure. These embodiments are selected and described in order to illustrate the principles of the present disclosure and its practical application, so that those skilled in the art can utilize the present disclosure in various embodiments and various modifications suitable for the specific purpose contemplated.
Claims
1. A fingerprint database entry method, characterized in that: The fingerprint base database includes an entry base database, and the fingerprint base database entry method includes: Get the recorded fingerprint image; Extracting fingerprint features to be recorded from the recorded fingerprint image; Determine whether the fingerprint feature to be recorded is similar to any fingerprint feature in the recorded base database; wherein, if the similarity between the feature vector of the fingerprint feature to be recorded and the feature vector of any fingerprint feature in the recorded base database is less than the similarity threshold, the fingerprint feature to be recorded is not similar to the fingerprint feature in the recorded base database; otherwise, the fingerprint feature to be recorded is similar to the fingerprint feature in the recorded base database; if the fingerprint feature to be recorded is not similar to any fingerprint feature in the recorded base database, the fingerprint feature to be recorded is stored in the recorded base database, and the recording count n is updated, wherein the recording count The initial value of n is 0; if the fingerprint feature to be recorded is similar to any fingerprint feature in the recording base database, it is determined whether the current recording count n is in the duplicate checking interval; and the recording count n is updated according to the duplicate checking interval, and the fingerprint feature to be recorded is not stored in the recording base database, wherein, if the current recording count n is in the duplicate checking interval, the step of obtaining the recording fingerprint image is returned; if the current recording count n is not in the duplicate checking interval, the recording count n=n+1 is updated; the recording count n refers to the number of fingerprint images provided by the user for recording fingerprint features; Determine whether the current entry count n is equal to the entry threshold; if the current entry count n is equal to the entry threshold, end the entry of the entry base; if the current entry count n is less than the entry threshold, return to the step of obtaining the entry fingerprint image.
2. The fingerprint database entry method according to claim 1 is characterized in that: Before extracting the fingerprint features to be recorded from the recorded fingerprint image, the fingerprint database recording method further includes: Determine the image quality of the recorded fingerprint image. If the image quality meets the first qualified condition, then based on the recorded fingerprint image, execute the step of extracting the fingerprint features to be recorded in the recorded fingerprint image; if the image quality does not meet the first qualified condition, return to the step of obtaining the recorded fingerprint image.
3. The fingerprint database entry method according to any one of claims 1-2, characterized in that: The fingerprint base database also includes a learning base database; After the entry of the base database is completed, the fingerprint base database entry method further includes: Get fingerprint image for comparison; According to the compared fingerprint image, the current learning fingerprint feature is obtained, and the learning base database is updated according to the current learning fingerprint feature.
4. The fingerprint database entry method according to claim 3 is characterized in that: The obtaining of the current learning fingerprint feature and updating the learning base library according to the current learning fingerprint feature includes: According to the difference between the current learning fingerprint feature and each fingerprint feature already recorded in the fingerprint base database, the minimum difference between the current learning fingerprint feature is obtained, wherein the fingerprint feature includes the recorded fingerprint feature and the learning fingerprint feature; Determining whether the minimum difference is within a learning interval; If the minimum difference is within the learning interval, the learning base database is updated according to the current learning fingerprint feature, and the minimum difference of the current learning fingerprint feature is stored in the learning base database.
5. The fingerprint database entry method according to claim 4 is characterized in that: The updating of the learning base library according to the current learning fingerprint feature includes: Determining whether the number of the fingerprint features in the fingerprint base database reaches an upper limit; If the number of the fingerprint features in the fingerprint base database does not reach the upper limit, the current learning fingerprint feature is recorded into the learning base database; If the number of fingerprint features in the fingerprint base reaches the upper limit, the most similar fingerprint feature is deleted, and the current learning fingerprint feature is entered into the learning base, wherein the most similar fingerprint feature is the learning fingerprint feature corresponding to the minimum value of the minimum difference in the current learning base.
6. The fingerprint database entry method according to claim 5, characterized in that: The updating of the learning base library according to the current learning fingerprint feature also includes: If the minimum difference of the current learning fingerprint feature is obtained by comparing the learning fingerprint feature already recorded in the learning base database, the corresponding minimum difference of the recorded learning fingerprint feature is updated as the minimum difference of the current learning fingerprint feature.
7. The fingerprint database entry method according to claim 5, characterized in that: When the minimum value of the minimum difference in the current learning base database corresponds to at least two learning fingerprint features, the learning fingerprint feature with the latest input time is used as the most similar fingerprint feature.
8. The fingerprint database entry method according to any one of claims 4 to 7, characterized in that: After obtaining the minimum difference of the currently learned fingerprint feature, the fingerprint database entry method further includes: Determine whether the minimum difference of the current learning fingerprint feature is less than or equal to the comparison threshold. If the minimum difference of the current learning fingerprint feature is less than or equal to the comparison threshold, perform the step of determining whether the minimum difference is within the learning interval.
9. The fingerprint database entry method according to claim 8, characterized in that: Before determining whether the minimum difference is within the learning interval, the fingerprint database entry method further includes: The image quality of the compared fingerprint image is determined, and if the image quality meets the second qualified condition, the step of determining whether the minimum difference is within the learning interval is performed.
10. The fingerprint database entry method according to any one of claims 4 to 7, characterized in that: After entering the current learning fingerprint feature into the learning base database, the fingerprint base database entry method further includes: If the number of the fingerprint features in the fingerprint base reaches an upper limit, the lower limit difference of the learning interval is updated to the minimum difference of the most similar fingerprint features in the current learning base.
11. A fingerprint database entry device, characterized in that: The fingerprint base database includes an entry base database, and the fingerprint base database entry device includes: The acquisition module is used to obtain the recorded fingerprint image; An extraction module, used to extract the fingerprint features to be recorded from the recorded fingerprint image; A processing module is used to determine whether the fingerprint feature to be recorded is similar to any fingerprint feature in the recorded base database; wherein, if the similarity between the feature vector of the fingerprint feature to be recorded and the feature vector of any fingerprint feature in the recorded base database is less than a similarity threshold, the fingerprint feature to be recorded is not similar to the fingerprint feature in the recorded base database; otherwise, the fingerprint feature to be recorded is similar to the fingerprint feature in the recorded base database; if the fingerprint feature to be recorded is not similar to any fingerprint feature in the recorded base database, the fingerprint feature to be recorded is stored in the recorded base database, and the recording count n is updated, wherein, The initial value of the input count n is 0; if the fingerprint feature to be input is similar to any fingerprint feature in the input base database, it is determined whether the current input count n is in the duplicate checking interval; and the input count n is updated according to the duplicate checking interval, and the fingerprint feature to be input is not stored in the input base database, wherein, if the current input count n is in the duplicate checking interval, the step of obtaining the input fingerprint image is returned; if the current input count n is not in the duplicate checking interval, the input count n is updated to n+1; the input count n refers to the number of fingerprint images provided by the user for inputting fingerprint features; The execution module is used to determine whether the current entry count n is equal to the entry threshold; if the current entry count n is equal to the entry threshold, the entry of the entry base database is terminated; if the current entry count n is less than the entry threshold, the step of obtaining the entry fingerprint image is returned.
12. An electronic device, characterized in that: The electronic device comprises: a memory for storing instructions; and A processor is used to call the instructions stored in the memory to execute the fingerprint database entry method described in any one of claims 1-10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the fingerprint database entry method according to any one of claims 1 to 10 is executed.
