Fingerprint recording and recognition methods, devices, electronic devices and storage media
By converting the auxiliary password into an auxiliary layer and merging it with the fingerprint layer to generate a fingerprint template, the problem of terminal devices being unable to enroll fingerprints is solved, and fingerprint enrollment and recognition are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2023-03-03
- Publication Date
- 2026-05-26
Smart Images

Figure CN116704556B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a fingerprint input and recognition method, device, electronic device and storage medium. Background Technology
[0002] Fingerprint recognition technology is one of the most widely used, cheapest, and easiest-to-use biometric authentication technologies recognized internationally. Currently, common fingerprint recognition technologies include capacitive fingerprint recognition, optical fingerprint recognition, and ultrasonic fingerprint recognition.
[0003] Specifically, during the fingerprint enrollment stage, the user enrolls their fingerprint information through the terminal device, and then stores the enrolled fingerprint information as a fingerprint template. When performing fingerprint recognition, the user enrolls their fingerprint information again through the terminal device, and then the similarity between the user's re-enrolled fingerprint information and the fingerprint template is compared to determine whether the two fingerprints are the same. If they are the same fingerprint, the fingerprint recognition is successful; if they are not the same fingerprint, the fingerprint recognition fails.
[0004] However, in scenarios where the terminal device hardware is poor, the device is covered with a screen protector, or the user's fingerprint is faint, the terminal device can capture less of the user's fingerprint information. As a result, the terminal device cannot extract enough fingerprint information, leading to problems where fingerprints cannot be properly recorded or recognized. Summary of the Invention
[0005] In view of this, this application provides a fingerprint enrollment and recognition method, apparatus, electronic device, and storage medium to solve or at least partially solve the above-mentioned problems. When the terminal device cannot capture enough fingerprint information to perform fingerprint enrollment, this method converts an auxiliary password into a first auxiliary layer, then merges the first auxiliary layer with a first fingerprint layer to obtain a fingerprint template, and enrolls the fingerprint template into the terminal device, thereby achieving fingerprint enrollment.
[0006] The first aspect of this application provides a fingerprint enrollment method, which includes:
[0007] In response to a fingerprint enrollment command, the system acquires a first fingerprint layer input through a terminal device and acquires an auxiliary password. The first fingerprint layer is a fingerprint layer with a number of fingerprint features less than a preset threshold, or a fingerprint layer whose similarity to a pre-enrolled original fingerprint layer is not greater than a preset similarity threshold.
[0008] Convert the auxiliary password into the first auxiliary layer.
[0009] The first auxiliary layer is merged with the first fingerprint layer to obtain a fingerprint template, which is then entered into the terminal device.
[0010] A second aspect of this application provides a fingerprint recognition method, which includes:
[0011] In response to a fingerprint recognition command, the system acquires a second fingerprint layer input through a terminal device and acquires an auxiliary password. The second fingerprint layer is either a fingerprint layer with fewer than a preset threshold of fingerprint features or a fingerprint layer with a similarity to a pre-recorded original fingerprint layer that is no greater than a preset similarity threshold.
[0012] Convert the auxiliary password into a second auxiliary layer.
[0013] The second auxiliary layer is merged with the second fingerprint layer to obtain the target fingerprint layer.
[0014] Fingerprint recognition is performed on the target fingerprint layer using a fingerprint template.
[0015] A third aspect of this application provides a fingerprint enrollment device, comprising:
[0016] The acquisition unit is used to acquire a first fingerprint layer input through a terminal device and acquire an auxiliary password in response to a fingerprint enrollment command. The first fingerprint layer is a fingerprint layer with a number of fingerprint features less than a preset threshold, or a fingerprint layer with a similarity to a pre-enrolled original fingerprint layer that is not greater than a preset similarity threshold.
[0017] The conversion unit is used to convert the auxiliary password into the first auxiliary layer.
[0018] The fusion unit is used to fuse the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, so as to input the fingerprint template into the terminal device.
[0019] A fourth aspect of this application provides a fingerprint recognition device, comprising:
[0020] The acquisition unit is used to acquire a second fingerprint layer input through a terminal device and acquire an auxiliary password in response to a fingerprint recognition command. The second fingerprint layer is a fingerprint layer with a number of fingerprint features less than a preset threshold, or a fingerprint layer with a similarity to a pre-recorded original fingerprint layer that is not greater than a preset similarity threshold.
[0021] The conversion unit converts the auxiliary password into a second auxiliary layer.
[0022] The fusion unit is used to fuse the second auxiliary layer with the second fingerprint layer to obtain the target fingerprint layer.
[0023] The identification unit is used to perform fingerprint identification on the target fingerprint layer using a fingerprint template.
[0024] A fifth aspect of this application provides an electronic device, including: a memory and a processor, wherein the memory and the processor are coupled.
[0025] The memory is used to store one or more computer instructions.
[0026] The processor is used to execute one or more computer instructions to implement the fingerprint enrollment and recognition method described in the first and second aspects above.
[0027] A sixth aspect of this application also provides a computer-readable storage medium storing one or more computer instructions, characterized in that the instructions are executed by a processor to implement a fingerprint enrollment and recognition method as described in any of the above technical solutions.
[0028] Compared with the prior art, the embodiments of this application have the following advantages:
[0029] The fingerprint enrollment and recognition method provided in this application firstly, in response to a fingerprint enrollment command, acquires a first fingerprint layer input through a terminal device and an auxiliary password. The first fingerprint layer is a fingerprint layer with fewer than a preset threshold of fingerprint features, or a fingerprint layer whose similarity to a pre-enrolled original fingerprint layer is no greater than a preset similarity threshold. Then, the auxiliary password is converted into a first auxiliary layer. Finally, the first auxiliary layer and the first fingerprint layer are fused to obtain a fingerprint template, which is then enrolled into the terminal device. Thus, when the terminal device cannot capture enough fingerprint information to perform fingerprint enrollment, this method achieves fingerprint enrollment by converting the auxiliary password into a first auxiliary layer, fusing the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, and then enrolling the fingerprint template into the terminal device. Attached Figure Description
[0030] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a schematic flowchart of a fingerprint enrollment method provided in an embodiment of this application;
[0032] Figure 2 This is a schematic diagram of a fingerprint fusion method provided in an embodiment of this application;
[0033] Figure 3 This is a schematic flowchart of another fingerprint enrollment method provided in an embodiment of this application;
[0034] Figure 4 A schematic diagram of an additional feature provided for an embodiment of this application;
[0035] Figure 5 This is a schematic flowchart of a fingerprint recognition method provided in an embodiment of this application;
[0036] Figure 6 This is a schematic diagram of a fingerprint recognition device provided in an embodiment of this application;
[0037] Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0038] This application provides a fingerprint enrollment and recognition method, apparatus, electronic device, and storage medium to solve or at least partially solve the aforementioned problems. First, in response to a fingerprint enrollment command, a first fingerprint layer input through a terminal device and an auxiliary password are acquired. The first fingerprint layer is either a fingerprint layer with fewer than a preset threshold of fingerprint features, or a fingerprint layer whose similarity to a pre-enrolled original fingerprint layer is no greater than a preset similarity threshold. Then, the auxiliary password is converted into a first auxiliary layer. Finally, the first auxiliary layer and the first fingerprint layer are fused to obtain a fingerprint template, which is then enrolled into the terminal device. Thus, when the terminal device cannot capture enough fingerprint information to perform fingerprint enrollment, this method achieves fingerprint enrollment by converting the auxiliary password into a first auxiliary layer, fusing the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, and then enrolling the fingerprint template into the terminal device.
[0039] To enable those skilled in the art to better understand the technical solutions of this application, the application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. However, this application can be implemented in many other ways different from those described above. Therefore, based on the embodiments provided in this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0040] It should be noted that the terms "first," "second," "third," etc., in the claims, specification, and drawings of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. Such data are interchangeable where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown or described herein. Furthermore, the terms "comprising," "having," and their variations are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or apparatuses.
[0041] Fingerprint recognition technology is one of many biometric identification technologies. Biometric identification technology refers to the use of inherent physiological or behavioral characteristics of the human body for personal identification. Available biometric identification technologies include fingerprints, faces, voiceprints, and iris scans. Among these, fingerprint recognition technology is currently recognized internationally as one of the most widely used, inexpensive, and user-friendly biometric authentication technologies, widely used in electronic products such as smart locks, mobile phones, tablets, and access control systems. Fingerprint recognition primarily identifies the operator or the person being operated on based on the patterns and detailed features of the human fingerprint. Currently, common fingerprint recognition technologies include capacitive fingerprint recognition, optical fingerprint recognition, and ultrasonic fingerprint recognition. All three of these technologies utilize under-display fingerprint recognition technology, which places the fingerprint sensor under the screen glass to complete the fingerprint unlocking process.
[0042] Specifically, to achieve fingerprint recognition, firstly, during the fingerprint enrollment stage, the user enrolls their fingerprint information through a terminal device, and the enrolled fingerprint information is stored as a fingerprint template. Then, during fingerprint recognition, the user enrolls their fingerprint information again through the terminal device. Finally, by comparing the similarity between the user's re-enrolled fingerprint information and the fingerprint template, it is determined whether the two input fingerprints are the same fingerprint. If they are the same fingerprint, the fingerprint recognition is successful; otherwise, the fingerprint recognition fails.
[0043] However, in scenarios where the terminal device hardware is poor, the device is covered with a screen protector, or the user's fingerprint is faint, the terminal device can capture less of the user's fingerprint information. As a result, the terminal device cannot extract enough fingerprint information, leading to problems where fingerprints cannot be properly recorded or recognized.
[0044] To address the aforementioned problems, this application provides a fingerprint enrollment and recognition method, apparatus, electronic device, and storage medium to solve or at least partially solve the problems. First, in response to a fingerprint enrollment command, a first fingerprint layer input through a terminal device and an auxiliary password are acquired. The first fingerprint layer is a fingerprint layer with fewer than a preset threshold of fingerprint features, or a fingerprint layer whose similarity to a pre-enrolled original fingerprint layer is no greater than a preset similarity threshold. Then, the auxiliary password is converted into a first auxiliary layer. Finally, the first auxiliary layer and the first fingerprint layer are fused to obtain a fingerprint template, which is then enrolled into the terminal device. Thus, when the terminal device cannot capture enough fingerprint information to perform fingerprint enrollment, this method achieves fingerprint enrollment by converting the auxiliary password into a first auxiliary layer, fusing the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, and then enrolling the fingerprint template into the terminal device.
[0045] The methods, apparatus, terminals, and computer-readable storage media described in this application will be further described in detail below with reference to specific embodiments and accompanying drawings.
[0046] Figure 1 This is a flowchart illustrating a fingerprint enrollment method provided in an embodiment of this application. It should be noted that the steps shown in this flowchart can be executed in a computer system such as a set of computer-executable instructions. Furthermore, in some cases, the released steps can be executed in a logical order different from that shown in the flowchart.
[0047] like Figure 1 As shown, the fingerprint enrollment method includes the following steps:
[0048] 101. In response to the fingerprint enrollment command, obtain the first fingerprint layer entered through the terminal device, and obtain the auxiliary password.
[0049] When the terminal device detects a user's fingerprint registration, it collects the fingerprint information registered by the user to obtain a first fingerprint layer. The first fingerprint layer is the fingerprint image information registered by the user through the terminal device. Specifically, the first fingerprint layer is a fingerprint layer with fewer than a preset threshold number of fingerprint features, or a fingerprint layer whose similarity to a pre-registered original fingerprint layer is no greater than a preset similarity threshold.
[0050] In one implementation, the fingerprint layer input by the user through a terminal device is obtained, and the number of fingerprint features in the fingerprint layer is determined. If the number of fingerprint features in the fingerprint layer is less than a preset threshold, or the similarity between the fingerprint layer and the pre-entered original fingerprint layer is not greater than a preset similarity threshold, then the fingerprint layer input by the user is a shallow fingerprint layer, and the fingerprint layer is determined as the first fingerprint layer.
[0051] Fingerprint features represent the geometric characteristics of a fingerprint, including fingerprint ridges, bifurcation points, breaks, and human-shaped, Y-shaped, and dot-shaped features at turning points. It can be understood that the number of fingerprint features refers to the quantity of one or more fingerprint features among the following: fingerprint ridges, human-shaped features, Y-shaped features, and dot-shaped features. When a user registers their fingerprint through a terminal device, if the number of fingerprint features detected is less than a preset threshold—that is, if one or more of the fingerprint ridges, human-shaped features, Y-shaped features, and dot-shaped features are less than the preset threshold—then the user's fingerprint layer is considered a shallow fingerprint layer.
[0052] The original fingerprint layer is a fingerprint layer with complete user fingerprint features obtained by fusing multiple shallow fingerprints input by the user. That is, it is a fingerprint layer obtained by fusing fingerprints input multiple times by the user through the terminal device. For the same user fingerprint, if the similarity between the user's input fingerprint and the pre-recorded original fingerprint layer is not greater than a preset similarity threshold, then the user's input fingerprint layer is a shallow fingerprint layer.
[0053] Different applications or terminal devices have different unlock passwords. A secondary password is used to assist the first fingerprint layer in generating a fingerprint template when the user's input fingerprint is a shallow fingerprint. For example, the secondary password can be a password set by the user to unlock devices such as mobile phones, tablets, computers, and access control systems. It can also be used to unlock a specific application on the user's phone. The secondary password can include one or more of numbers, letters, and other symbols, without specific limitations.
[0054] When the user inputs a shallow fingerprint layer, an auxiliary password is obtained. The fingerprint template is obtained by fusing the auxiliary password and the first fingerprint layer. This template is used to unlock the application or terminal device using fingerprint recognition when the user inputs a shallow fingerprint layer. It is mainly used in scenarios where the terminal device hardware is poor, the device has a screen protector, or the user's fingerprint is shallow.
[0055] In scenarios where the fingerprint layer entered by the user is not a shallow fingerprint layer, that is, when the number of fingerprint features in the fingerprint layer entered by the user is not less than a preset threshold, or when the similarity between the fingerprint layer and the pre-entered original fingerprint layer is greater than a preset similarity threshold, fingerprint recognition can be performed directly using the original fingerprint layer without the need for an auxiliary password.
[0056] 102. Convert the auxiliary password into the first auxiliary layer.
[0057] The auxiliary password is converted into the first auxiliary layer. Specifically, the auxiliary password can be converted into the first encryption sequence represented by preset characters through a preset encryption method.
[0058] The preset encryption method refers to the rules set to convert the auxiliary password into the first encryption sequence. Using the preset encryption method, the auxiliary password can be converted into the first encryption sequence.
[0059] In one implementation, the preset characters include a first preset character and a second preset character, and the preset encryption method is used to convert the auxiliary password into a first encryption sequence represented by one or more of the first preset character and the second preset character.
[0060] The first preset character and the second preset character are two different forms of characters in the first encryption sequence. For example, taking Morse code as the preset encryption method, the first preset character can be "." and the second preset character can be "-", or the first preset character can be "0" and the second preset character can be "1", etc. The first encryption sequence can contain only one of the first preset character and the second preset character, or it can contain both of the first preset character and the second preset character.
[0061] Generally, a secondary cipher consists of multiple cipher characters, each corresponding to a first encryption sequence. For example, in the secondary cipher AB1236, the first encryption sequence corresponding to the letter A is ".-", the first encryption sequence corresponding to the letter B is "-…", and so on.
[0062] Alternatively, the default encryption method can also be binary encryption, which means that the auxiliary password can be converted into a binary sequence.
[0063] After converting the auxiliary password into a first encryption sequence represented by preset characters, the auxiliary password is then converted into a first auxiliary layer based on the first encryption sequence. The first auxiliary layer contains additional features, which are geometric shapes mimicking fingerprint features generated based on the first encryption sequence. For example, these features may be one or more generated shapes including herringbone, Y-shape, and dot shapes, mimicking fingerprint features. These additional features are used to generate the first auxiliary layer.
[0064] In one implementation, the auxiliary cipher is converted into a first auxiliary layer according to the first encryption sequence. Additional features can be determined based on the first preset character and the second preset character in the first encryption sequence, and the first encryption sequence is converted into a first auxiliary layer containing additional features.
[0065] 103. Merge the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, and then input the fingerprint template into the terminal device.
[0066] This step involves fusing the first fingerprint layer (entered by the user through the terminal device) and the first auxiliary layer (obtained by converting the auxiliary password) to create a new layer. This new layer is then stored as a fingerprint template. In subsequent fingerprint recognition processes, when the first fingerprint layer contains fingerprints with fewer than a preset threshold of fingerprint features, or when the similarity between the first fingerprint layer and the pre-entered original fingerprint layer is less than a preset similarity threshold, the template is compared with the target fingerprint layer to determine whether the target fingerprint layer and the fingerprint template are the same layer.
[0067] like Figure 2 As shown, the first fingerprint layer and the first auxiliary layer are merged to obtain the fingerprint template. After successfully registering the fingerprint template, the fingerprint template is entered into the terminal device and stored. If the fingerprint template is stored successfully, a notification of successful fingerprint template storage is returned; if the fingerprint template storage fails, a notification of fingerprint template storage failure is returned.
[0068] The fingerprint enrollment and recognition method provided in this application firstly, in response to a fingerprint enrollment command, acquires a first fingerprint layer input through a terminal device and an auxiliary password. The first fingerprint layer is either a fingerprint layer with fewer than a preset threshold of fingerprint features, or a fingerprint layer whose similarity to a pre-enrolled original fingerprint layer is no greater than a preset similarity threshold. Then, the auxiliary password is converted into a first auxiliary layer. Finally, the first auxiliary layer and the first fingerprint layer are fused to obtain a fingerprint template. Thus, when the terminal device cannot capture enough fingerprint information to perform fingerprint enrollment, this method converts the auxiliary password into a first auxiliary layer, then fuses the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, and enrolls the fingerprint template into the terminal device, thereby achieving fingerprint enrollment.
[0069] Based on the above description, this embodiment will further incorporate... Figure 3 The contents of Table 1 provide a detailed explanation of another fingerprint entry method.
[0070] 301. Determine the absolute value of the coordinates of the additional feature based on the number of the first preset character and the number of the second preset character in the first encryption sequence.
[0071] The auxiliary password is converted into a first encrypted sequence including a first preset character and a second preset character using a preset encryption method. For example, the preset encryption method can be Morse code. Morse code consists of two symbols: a dot (.) and a dash (-). Different orders and numbers of . and - represent different English letters, numbers, and punctuation marks. In another embodiment of this application, the preset encryption method can also be converting the auxiliary password into a first encrypted sequence represented by 0 and 1 characters, or other preset encryption methods to convert the auxiliary password into a first encrypted sequence including the first preset character and the second preset character; all of these methods should fall within the scope of protection of this application.
[0072] For example, Morse code will be used as an example for explanation. As shown in Table 1, the auxiliary code is AB1236. The Morse code of A in the auxiliary code is .-, the Morse code of B is -…, the Morse code of 1 is .----, the Morse code of 2 is ..---, the Morse code of 3 is …--, and the Morse code of 6 is -…..
[0073] The absolute coordinates of the additional features are determined based on the number of the first preset character and the number of the second preset character in the first encryption sequence. Specifically, the first preset character can be one of "." and "-", and the second preset character can be the other of "." and "-". When the first preset character is "." and the second preset character is "-", the absolute coordinate of X can be determined based on the number of "." in Morse code, and the absolute coordinate of Y can be determined based on the number of "-" in Morse code. Alternatively, the absolute coordinate of Y can be determined based on the number of "." in Morse code, and the absolute coordinate of X can be determined based on the number of "-" in Morse code; the specific determination is not limited.
[0074] For example, the absolute value of the coordinate X is determined by the number of periods (.) in Morse code, and the absolute value of the coordinate Y is determined by the number of periods (-). In the Morse code for A, the number of periods (.) is 1, and the number of periods (-) is 1, resulting in absolute values of |x| = 1, |y| = 1. In the Morse code for B, the number of periods (.) is 3, and the number of periods (-) is 1, resulting in absolute values of |x| = 3, |y| = 1. In the Morse code for 1, the number of periods (.) is 1, and the number of periods (-) is 4, resulting in absolute values of |x| = 4, |y| = 4. In the Morse code for 2, the number of periods (.) is 2, and the number of periods (-) is 3, resulting in absolute values of |x| = 2, |y| = 3. In the Morse code for 3, the number of periods (.) is 3, and the number of periods (-) is 2, resulting in absolute values of |x| = 3, |y| = 2. In the Morse code for 6, the number of periods (.) is 4, and the number of periods (-) is 1, resulting in absolute values of |x| = 4, |y| = 1.
[0075] 302. Determine the sign bit based on the first encryption sequence.
[0076] The sign bit is determined by selecting N characters from the first encryption sequence as the sign bit, where N is a positive integer greater than 2.
[0077] For example, in this embodiment, three characters from the first encrypted sequence are selected as the sign bit. It is understood that some of the converted first encrypted sequences have three or more characters, while others have fewer than three. Therefore, when the first encrypted sequence includes three or more characters, any three characters from the first encrypted sequence are determined as the sign bit; when the first encrypted sequence has fewer than three characters, the first encrypted sequence is padded according to a preset rule to make it three characters long, and the sign bit is determined to be the three characters from the padded first encrypted sequence.
[0078] For example, in this embodiment of the application, the first three characters of the Morse code can be used as the sign bit. For instance, the Morse code for B has 4 characters, so the first three characters "-.." are used as the sign bit; the Morse code for 6 has 5 characters, so the first three characters "-.." are used as the sign bit; other cipher symbols with 3 or more characters also have their first three characters used as the sign bit. See Table 1 for details, which will not be elaborated here.
[0079] Understandably, the last three characters, or any three characters, of the Morse code can be used as the sign bit. If the Morse code for A has two characters, and the Morse code for A is padded according to a preset rule to have three characters, the sign bit of A is determined by these three characters in the padded Morse code. When padding characters that are less than three characters, the preset rule can be to use known Morse codes sequentially. For example, the Morse code for A can be padded as ".-.", using these three characters as the sign bit. Alternatively, the preset rule can use either "-" or ".", or other methods to pad to three characters as the sign bit.
[0080] 303. Determine the coordinate quadrant of the additional feature based on the sign bit.
[0081] The coordinate quadrant of the additional feature is determined based on the sign bit. Specifically, the sign of the horizontal coordinate of the additional feature is determined based on the first character combination in the sign bit, where the first character combination is one of the first two characters and the last two characters in the sign bit. The sign of the vertical coordinate of the additional feature is determined based on the second character combination in the sign bit, where the second character combination is the other of the first two characters and the last two characters in the sign bit.
[0082] For example, when the character set consists of three characters, the first character combination is one of the first two characters and the last two characters of the three-character set, and the second character combination is the remaining one of the first two characters and the last two characters of the three-character set. For instance, the first character combination of A is .- and the second character combination is -., and the first character combination of B is -. and the second character combination is ...
[0083] The sign of the horizontal and vertical coordinates is determined based on the first and second character combinations. This can be achieved by determining the sign of the horizontal coordinate of the additional feature based on the first character combination in the sign bit. This includes determining whether the first character combination is the same preset character. If the first character combination is the same preset character, the horizontal coordinate value is negative; if the first character combination is different preset characters, the horizontal coordinate value is positive. Similarly, the sign of the vertical coordinate is determined based on the second character combination in the sign bit. This includes determining whether the second character combination is the same preset character. If the second character combination is the same preset character, the vertical coordinate value is negative; if the second character combination is different preset characters, the vertical coordinate value is positive. In other words, the same character combination is negative, and different character combination is positive.
[0084] For example, we can illustrate this by taking the case where the first character combination and the second character combination are the same (negative) and different (positive).
[0085] In Morse code, we can set "." to 0 and "-" to 1. An XOR operation is performed on the first and second character combinations; if they are the same (0), it represents the negative direction of the X or Y axis; if they are different (1), it represents the positive direction of the X or Y axis.
[0086] The sign of the horizontal and vertical coordinates can be determined based on the first and second character combinations, or it can be determined based on the first character combination in the sign bit. This includes determining whether the first character combination is the same preset character; if the first character combination is the same preset character, the horizontal coordinate value is positive; if the first character combination is different preset characters, the horizontal coordinate value is negative. Similarly, the sign of the vertical coordinate of the additional feature can be determined based on the second character combination in the sign bit. This includes determining the vertical coordinate value if the second character combination is the same preset character, and determining the vertical coordinate value if the second character combination is different preset characters. In other words, the same combination is positive, and different combinations are negative.
[0087] For example, we will use the case where the first character combination and the second character combination are the same (positive) and different (negative) as an example.
[0088] In Morse code, a dot (.) can be set to 0 and a hyphen (-) to 1. A bitwise XOR operation is performed on the first and second character combinations; if they are the same (1), it represents the positive direction of the X or Y axis, and if they are different (0), it represents the negative direction of the X or Y axis.
[0089] Understandably, using different rules to determine the quadrant of the additional features can yield different results. For example, in Table 1, the coordinate quadrant is calculated by using the same characters as positive and different characters as negative, with the first two characters representing the first character combination and the last two characters representing the second character combination.
[0090] After determining the signs of the X and Y axes of the additional features, the coordinate quadrants are determined based on the signs of the horizontal and vertical coordinates.
[0091] For example, the coordinate quadrant of the additional feature corresponding to A is the third quadrant, the coordinate quadrant of the additional feature corresponding to B is the second quadrant, the coordinate quadrant of the additional feature corresponding to 1 is the second quadrant, the coordinate quadrant of the additional feature corresponding to 2 is the fourth quadrant, the coordinate quadrant of the additional feature corresponding to 3 is the first quadrant, and the coordinate quadrant of the additional feature corresponding to 6 is the second quadrant.
[0092] 304. Determine the coordinate position of the additional feature based on the absolute value of the coordinates and the coordinate quadrant.
[0093] The coordinate positions of the additional features are determined based on their absolute values and coordinate quadrants.
[0094] For example, the absolute values of coordinates A are |x| = 1, |y| = 1, and the coordinate quadrant is the third quadrant. The coordinate position of the additional feature corresponding to A is (-1, -1). The absolute values of coordinates B are |x| = 3, |y| = 1, and the coordinate quadrant is the second quadrant. The coordinate position of the additional feature corresponding to B is (-3, 1). The absolute values of coordinates 1 are |x| = 4, |y| = 4, and the coordinate quadrant is the second quadrant. The coordinate position of the additional feature corresponding to 1 is (-1, 4). The absolute values of coordinates 2 are |x| = 2, |y| = 3, and the coordinate quadrant is the fourth quadrant. The coordinate position of the additional feature corresponding to 2 is (2, -3). The absolute values of coordinates 3 are |x| = 3, |y| = 2, and the coordinate quadrant is the first quadrant. The coordinate position of the additional feature corresponding to 3 is (3, 2). The absolute values of coordinates 6 are |x| = 4, |y| = 1, and the coordinate quadrant is the second quadrant. The coordinate position of the additional feature corresponding to 6 is (-4, 1).
[0095] Table 1: Coordinates of Auxiliary Passwords
[0096]
[0097] 305. Convert the auxiliary password into the first auxiliary layer based on the coordinate position.
[0098] like Figure 2 As shown, based on the coordinate positions of the additional features obtained from the conversion of each password character, additional features including human-shaped features, Y-shaped features, and .-shaped features are drawn in the first auxiliary layer to obtain the first auxiliary layer for auxiliary password conversion. Figure 4 As shown, additional features including a herringbone shape are drawn at the coordinate positions of the additional features. A first auxiliary layer can be drawn, with the top of the herringbone shape as the coordinate position and the intersection of the herringbone shape pointing to the origin.
[0099] 306. Merge the first auxiliary layer with the first fingerprint layer to obtain the fingerprint template.
[0100] First, obtain the dimensions of the first auxiliary layer and the first fingerprint layer. Then, adjust the first auxiliary layer and the first fingerprint layer to the same size based on their respective dimensions. Finally, by aligning the center of the first auxiliary layer with the center of the first fingerprint layer, merge the two layers to obtain the fingerprint template.
[0101] Specifically, adjusting the first auxiliary layer and the first fingerprint layer to the same size can be achieved by adjusting the size of the first auxiliary layer based on the size of the first fingerprint layer, thus keeping the size of the additional features unchanged, so that the first auxiliary layer and the first fingerprint layer are the same size. Alternatively, the size range of the first fingerprint layer can be determined based on the maximum coordinate value of the additional features, and the size of the first fingerprint layer can be adjusted so that the first fingerprint layer is within the size range and tangent to the size range, thereby making the first auxiliary layer and the first fingerprint layer the same size. In one embodiment of this application, the fingerprint pattern and the edge of the first fingerprint layer are tangent.
[0102] Determine the maximum values N and M of the N pairs of coordinates on the X and Y axes. Then, establish a coordinate system centered at the origin of the first fingerprint layer, dividing it into 2(N+1)*2(M+1) units. This ensures the first fingerprint layer lies within this size range and is tangent to it, making the first auxiliary layer and the first fingerprint layer the same size. Dividing the first fingerprint layer into a 2(N+1)*2(M+1) coordinate system allows all additional features of the first auxiliary layer to fall onto the fingerprint pattern of the first fingerprint layer.
[0103] For example, calculate the maximum values N and M of the above 6 pairs of coordinates on the X-axis and Y-axis, and determine that the maximum values of the coordinates of all additional features are 4 for the horizontal coordinate and 4 for the vertical coordinate. Then, establish a coordinate system with the origin of the first fingerprint layer as the center, dividing the first fingerprint layer into 2(4+1)*2(4+1). In this way, all additional features on the first auxiliary layer can fall within the range of the first fingerprint layer.
[0104] The technical solution provided in the above-described embodiments of this application firstly, in response to a fingerprint enrollment command, acquires a first fingerprint layer input through the terminal device and an auxiliary password. The first fingerprint layer is a fingerprint layer with fewer than a preset threshold of fingerprint features, or a fingerprint layer whose similarity to a pre-enrolled original fingerprint layer is no greater than a preset similarity threshold. Then, the auxiliary password is converted into a first auxiliary layer. Finally, the first auxiliary layer and the first fingerprint layer are fused to obtain a fingerprint template, which is then enrolled into the terminal device. Thus, when the terminal device cannot capture enough fingerprint information to perform fingerprint enrollment or recognition, this method achieves fingerprint enrollment by converting the auxiliary password into a first auxiliary layer, fusing the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, and then enrolling the fingerprint template into the terminal device.
[0105] This embodiment will be further combined with Figure 5 and one This section provides a detailed explanation of various fingerprint recognition methods.
[0106] This embodiment corresponds to some steps in the fingerprint enrollment method described above, and the layer processing process adapted to the fingerprint enrollment method is also applicable to the fingerprint recognition method in this application embodiment.
[0107] 501. In response to a fingerprint recognition command, obtain the second fingerprint layer input through the terminal device, and obtain the auxiliary password.
[0108] When the terminal device detects a user's fingerprint entry, it collects the user's fingerprint information to obtain a second fingerprint layer. This second fingerprint layer is the fingerprint image information that the user has entered again through the fingerprint terminal device after initially entering a fingerprint template. Similarly, the second fingerprint layer is a fingerprint layer with fewer than a preset threshold of fingerprint features, or a fingerprint layer whose similarity to the pre-entered original fingerprint layer is no greater than a preset similarity threshold.
[0109] In one implementation, a fingerprint layer input by the user through a terminal device is obtained, and the number of fingerprint features in the fingerprint layer is determined. If the number of fingerprint features in the fingerprint layer is less than a preset threshold, or the similarity between the fingerprint layer and a pre-recorded original fingerprint layer is not greater than a preset similarity threshold, then the fingerprint layer input by the user is a shallow fingerprint layer, and the fingerprint layer is determined as the second fingerprint layer. When it is determined that the fingerprint layer input by the user is a shallow fingerprint layer, an auxiliary password is obtained.
[0110] Obtaining the auxiliary password can be done by directly reading the password that the user has already stored on the terminal device to assist in generating the fingerprint template for the first fingerprint layer, or by having the user enter the password used to assist in generating the fingerprint template for the first fingerprint layer on the terminal device.
[0111] In the above embodiment, it is first necessary to determine that the second fingerprint layer is a shallow fingerprint, and then obtain the auxiliary password. This is mainly used in scenarios where the terminal device hardware is poor, the device has a screen protector, or the user's fingerprint is shallow. It can be understood that when the fingerprint layer input by the user is determined to be a non-shallow fingerprint (i.e., the number of fingerprint features in the fingerprint layer is not less than a preset threshold, or the similarity between the fingerprint layer and the pre-recorded original fingerprint layer is greater than a preset similarity threshold), the fingerprint layer is determined to be a non-shallow fingerprint layer. In this case, the original fingerprint layer can be directly used to perform fingerprint recognition on the non-shallow fingerprint layer.
[0112] 502. Convert the auxiliary password into a second auxiliary layer.
[0113] Similarly, the auxiliary password is converted into a second auxiliary layer using the method described in step 102.
[0114] The second auxiliary layer is a layer containing additional features obtained by converting the auxiliary password.
[0115] 503. Merge the second auxiliary layer with the second fingerprint layer to obtain the target fingerprint layer.
[0116] This step is used to obtain the second fingerprint layer input by the user through the terminal device and the second auxiliary layer obtained by converting the auxiliary password, and then to fuse the second auxiliary layer and the second fingerprint layer to obtain the target fingerprint layer. The target fingerprint layer is used to compare with the fingerprint template when the second fingerprint layer is a light fingerprint layer, so as to determine whether the target fingerprint layer and the fingerprint template are the same layer.
[0117] 504. Use the fingerprint template to perform fingerprint recognition on the target fingerprint layer.
[0118] In one implementation, a fingerprint layer input through a terminal device is acquired, and the number of fingerprint features in the fingerprint layer is determined. If the number of fingerprint features in the fingerprint layer is less than a preset threshold, or the similarity between the fingerprint layer and the pre-entered original fingerprint layer is greater than a preset similarity threshold, the fingerprint layer is determined to be a second fingerprint layer, i.e., a shallow fingerprint layer. Fingerprint recognition of the target fingerprint layer is performed using a fingerprint template obtained through the fingerprint entry method. This can be achieved by determining whether the similarity between the target fingerprint layer and the fingerprint template reaches a set threshold. If the set threshold is reached, fingerprint recognition is successful, and a successful fingerprint recognition operation is executed, such as successfully unlocking the terminal device and entering the terminal device's user interface, or successfully unlocking the target application and entering the application interface. If the threshold is not reached, fingerprint recognition fails, and a fingerprint recognition failure notification is returned.
[0119] In another implementation, if the number of fingerprint features in the fingerprint layer is not less than a preset threshold, or the similarity between the fingerprint layer and the pre-recorded original fingerprint layer is greater than a preset similarity threshold, the fingerprint layer is determined to be a non-shallow fingerprint layer. When the fingerprint layer is a non-shallow fingerprint layer, fingerprint recognition is performed directly on the non-shallow fingerprint layer using the original fingerprint layer. It is then determined whether the similarity between the non-shallow fingerprint layer and the original fingerprint layer reaches a set threshold. If the set threshold is reached, fingerprint recognition is successful, and a successful fingerprint recognition operation is performed. If the threshold is not reached, fingerprint recognition fails, and a fingerprint recognition failure notification is returned.
[0120] In the technical solution provided in the above embodiments of this application, firstly, in response to a fingerprint enrollment command, a second fingerprint layer input through the terminal device and an auxiliary password are acquired. The second fingerprint layer is a fingerprint layer with fewer than a preset threshold of fingerprint features, or a fingerprint layer whose similarity to a pre-enrolled original fingerprint layer is no greater than a preset similarity threshold. Then, the auxiliary password is converted into a second auxiliary layer. Finally, the second auxiliary layer and the second fingerprint layer are fused to obtain a target fingerprint layer. Thus, when the terminal device cannot capture enough fingerprint information to perform fingerprint recognition, this method converts the auxiliary password into a second auxiliary layer, then fuses the second auxiliary layer with the second fingerprint layer to obtain a target fingerprint layer, and then performs fingerprint recognition on the target fingerprint layer using a fingerprint template. Ultimately, fingerprint recognition is achieved.
[0121] Figure 6 A schematic diagram of a fingerprint enrollment method device provided in this application embodiment is shown below. Figure 6 The embodiments described below are described in detail. The embodiments described below are used to explain the technical solutions of this application and are not intended to limit actual use.
[0122] The device includes:
[0123] The acquisition unit 601 is used to acquire a first fingerprint layer input through a terminal device and acquire an auxiliary password in response to a fingerprint enrollment command. The first fingerprint layer is a fingerprint layer with a number of fingerprint features less than a preset threshold, or a fingerprint layer with a similarity to a pre-enrolled original fingerprint layer that is not greater than a preset similarity threshold.
[0124] The conversion unit 602 is used to convert the auxiliary password into the first auxiliary layer.
[0125] The fusion unit 603 is used to fuse the first auxiliary layer and the first fingerprint layer to obtain a fingerprint template, so as to input the fingerprint template into the terminal device.
[0126] In an optional implementation, the conversion unit 602 is further configured to convert the auxiliary password into a first auxiliary layer.
[0127] The conversion unit 602 is also used to convert the auxiliary password into a first encrypted sequence represented by preset characters through a preset encryption method.
[0128] The conversion unit 602 is also used to convert the auxiliary password into a first auxiliary layer according to the first encryption sequence.
[0129] In an optional implementation, the first auxiliary layer includes additional features, the preset characters include a first preset character and a second preset character, and the conversion unit 602 is further configured to convert the auxiliary password into the first auxiliary layer according to the first encryption sequence.
[0130] The determining unit 604 is used to determine the absolute value of the coordinates of the additional feature based on the number of the first preset character and the number of the second preset character in the first encryption sequence.
[0131] The determining unit 604 is also used to determine the sign bit based on the first encryption sequence.
[0132] The determining unit 604 is also used to determine the coordinate quadrant of the additional feature based on the sign bit.
[0133] The determining unit 604 is also used to determine the coordinate position of the additional feature based on the absolute value of the coordinates and the coordinate quadrant.
[0134] The conversion unit 602 is also used to convert the auxiliary password into a first auxiliary layer based on the coordinate position.
[0135] In an optional implementation, the determining unit 604 is further configured to determine the sign bit based on the first encryption sequence.
[0136] The determining unit 604 is further configured to determine any three characters in the first encryption sequence as the sign bit when the first encryption sequence includes three or more characters.
[0137] The processing unit 605 is used to fill the first encrypted sequence with three characters according to a preset rule when the first encrypted sequence is less than three characters.
[0138] The determining unit 604 is also used to determine that the sign bit is a three-character character in the first encrypted sequence after padding.
[0139] In an optional implementation, the determining unit 604 is further configured to determine the coordinate quadrant of the additional feature based on the sign bit.
[0140] The determining unit 604 is also used to determine the sign of the horizontal coordinate of the additional feature based on the first character combination in the sign bit, wherein the first character combination is one of the first two characters and the last two characters in the sign bit.
[0141] The determining unit 604 is also used to determine the sign of the vertical coordinate of the additional feature based on the second character combination in the sign bit, wherein the second character combination is the other of the first two characters and the last two characters in the sign bit.
[0142] Unit 604 is also used to determine the coordinate quadrant based on the sign of the horizontal coordinate and the sign of the vertical coordinate.
[0143] In an optional implementation, the determining unit 604 is further configured to determine the sign of the horizontal coordinate of the additional feature based on the first character combination in the sign bit.
[0144] Judgment unit 606 is used to determine whether the first character combination is the same preset character.
[0145] The determining unit 604 is further configured to determine the value of the horizontal coordinate as negative if the first character combination is the same preset character, and to determine the value of the horizontal coordinate as positive if the first character combination is a different preset character.
[0146] The determining unit 604 is also used to determine the sign of the vertical coordinate of the additional feature based on the second character combination in the sign bit.
[0147] The judgment unit 606 is also used to determine whether the second character combination is the same preset character.
[0148] The determining unit 604 is also used to determine the value of the vertical axis as negative if the second character combination is the same preset character, and to determine the value of the vertical axis as positive if the second character combination is a different preset character.
[0149] In an optional implementation, the determining unit 604 is further configured to determine the sign of the horizontal coordinate of the additional feature based on the first character combination in the sign bit.
[0150] The judgment unit 606 is also used to determine whether the first character combination is the same preset character.
[0151] The determining unit 604 is further configured to determine the value of the horizontal coordinate as positive if the first character combination is the same preset character, and to determine the value of the horizontal coordinate as negative if the first character combination is a different preset character.
[0152] The determining unit 604 is also used to determine the sign of the vertical coordinate of the additional feature based on the second character combination in the sign bit.
[0153] The judgment unit 606 is also used to determine whether the second character combination is the same preset character.
[0154] The determining unit 604 is further configured to determine the value of the vertical axis as positive if the second character combination is the same preset character, and to determine the value of the vertical axis as negative if the second character combination is a different preset character.
[0155] In an optional implementation, the fusion unit 603 is further configured to fuse the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template.
[0156] The acquisition unit 601 is also used to acquire the size of the first auxiliary layer and the size of the first fingerprint layer.
[0157] The processing unit 605 is used to adjust the first auxiliary layer and the first fingerprint layer to the same size according to the size of the first auxiliary layer and the first fingerprint layer.
[0158] The fusion unit 603 is also used to align the center position of the first auxiliary layer with the center position of the first fingerprint layer, and to fuse the first auxiliary layer and the first fingerprint layer of the same size to obtain a fingerprint template.
[0159] In an optional implementation, the processing unit 605 is further configured to adjust the first auxiliary layer and the first fingerprint layer to the same size.
[0160] The processing unit 605 is further configured to adjust the size of the first auxiliary layer according to the size of the first fingerprint layer, so that the first auxiliary layer and the first fingerprint layer are the same size while keeping the size of the additional features unchanged.
[0161] In an optional implementation, the processing unit 605 is further configured to adjust the first auxiliary layer and the first fingerprint layer to the same size.
[0162] The determining unit 604 is also used to determine the size range of the first fingerprint layer based on the maximum coordinate value of the additional feature.
[0163] The processing unit 605 is also used to adjust the size of the first fingerprint layer so that the first fingerprint layer is within the size range and tangent to the size range, so that the first auxiliary layer and the first fingerprint layer are the same size.
[0164] In an optional implementation, the acquisition unit 601 is further configured to acquire the first fingerprint layer input through the terminal device.
[0165] The acquisition unit 601 acquires the fingerprint layer input through the terminal device.
[0166] The determining unit 604 is also used to determine the number of fingerprint features in the fingerprint layer.
[0167] The determining unit 604 is further configured to determine the fingerprint layer as the first fingerprint layer if the number of fingerprint features in the fingerprint layer is less than a preset threshold, or if the similarity between the fingerprint layer and the pre-entered original fingerprint layer is not greater than a preset similarity threshold.
[0168] In the technical solution provided in the above-described embodiments of this application, firstly, in response to a fingerprint enrollment command, a first fingerprint layer input through the terminal device and an auxiliary password are acquired. The first fingerprint layer is a fingerprint layer with fewer than a preset threshold of fingerprint features, or a fingerprint layer whose similarity to a pre-enrolled original fingerprint layer is no greater than a preset similarity threshold. Then, the auxiliary password is converted into a first auxiliary layer. Finally, the first auxiliary layer and the first fingerprint layer are fused to obtain a fingerprint template, which is then enrolled into the terminal device. Thus, when the terminal device cannot capture enough fingerprint information to perform fingerprint enrollment, this method achieves fingerprint enrollment by converting the auxiliary password into a first auxiliary layer, fusing the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, and then enrolling the fingerprint template into the terminal device.
[0169] It should be noted that the information interaction and execution process between the various modules / units in the device are different from those in this application. Figures 1 to 5 The various method embodiments are based on the same concept, and the details can be found in the descriptions of the method embodiments shown above in this application, which will not be repeated here.
[0170] The following describes an electronic device provided by an embodiment of this application. Please refer to [link / reference]. Figure 7 , Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device 700 can specifically be a virtual reality (VR) device, a mobile phone, a tablet, a laptop computer, a smart wearable device, a monitoring data processing device, or a radar data processing device, etc., and is not limited thereto. The electronic device 700 may be equipped with... Figure 5 The fingerprint enrollment method and apparatus described in the corresponding embodiment are used to implement Figures 1 to 5 The functions correspond to those in the embodiments. Specifically, the electronic device 700 includes: a receiver 701, a transmitter 702, a processor 703, and a memory 704 (wherein the number of processors 703 in the execution device 700 may be one or more). Figure 7 (Taking a processor as an example), the processor 703 may include an application processor 7031 and a communication processor 7032. In some embodiments of this application, the receiver 701, transmitter 702, processor 703, and memory 704 may be connected via a bus or other means.
[0171] Memory 704 may include read-only memory and random access memory, and provides instructions and data to processor 703. A portion of memory 704 may also include non-volatile random access memory (NVRAM). Memory 704 stores processor and operation instructions, executable modules, or data structures, or subsets thereof, or extended sets thereof, wherein the operation instructions may include various operation instructions for implementing various operations.
[0172] Processor 703 controls the operation of the execution device. In specific applications, the various components of the execution device are coupled together through a bus system, which may include not only the data bus, but also power buses, control buses, and status signal buses. However, for clarity, all buses are referred to as the bus system in the diagram.
[0173] The methods disclosed in the embodiments of this application can be applied to processor 703, or implemented by processor 703. Processor 703 can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 703 or by instructions in software form. Processor 703 can be a general-purpose processor, a digital signal processor (DSP), a microprocessor, or a microcontroller, and may further include an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. Processor 703 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 704, and processor 703 reads the information from memory 704 and, in conjunction with its hardware, completes the steps of the above method.
[0174] Receiver 701 can be used to receive input digital or character information, and to generate signal inputs related to the settings and function control of the execution device. Transmitter 702 can be used to output digital or character information through the first interface; transmitter 702 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; transmitter 702 may also include a display device such as a display screen.
[0175] In this embodiment of the application, the application processor 7031 in the processor 703 is used to execute... Figures 1 to 5 The fingerprint enrollment method in the corresponding embodiment. It should be noted that the specific manner in which the application processor 7031 executes each step differs from that in this application. Figures 1 to 5 The various method embodiments are based on the same concept, and the technical effects they bring are the same as those in this application. Figures 1 to 5 The corresponding method embodiments are the same, and for details, please refer to the description in the method embodiments shown above in this application, which will not be repeated here.
[0176] This application provides a computer-readable storage medium, which includes computer instructions. When executed by a processor, the computer instructions are used to implement any of the fingerprint enrollment methods described in this application.
[0177] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0178] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0179] Computer-readable media, as defined herein, includes both permanent and non-permanent, removable and non-removable media, which can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.
[0180] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0181] Although this application discloses preferred embodiments as described above, it is not intended to limit this application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of this application. Therefore, the scope of protection of this application should be determined by the scope defined in the claims of this application.
Claims
1. A fingerprint enrollment method, characterized in that, The method includes: In response to a fingerprint enrollment command, the system acquires a first fingerprint layer input through a terminal device and acquires an auxiliary password; the first fingerprint layer is a fingerprint layer with a number of fingerprint features less than a preset threshold, or a fingerprint layer with a similarity to a pre-enrolled original fingerprint layer that is not greater than a preset similarity threshold. Convert the auxiliary password into a first auxiliary layer; The first auxiliary layer is merged with the first fingerprint layer to obtain a fingerprint template, which is then entered into the terminal device. Converting the auxiliary password into a first auxiliary layer includes: The auxiliary password is converted into a first encrypted sequence represented by preset characters using a preset encryption method; The auxiliary password is converted into the first auxiliary layer according to the first encryption sequence; The first auxiliary layer includes additional features, which are geometric shapes mimicking fingerprint features generated based on the first encryption sequence. The preset characters include a first preset character and a second preset character. The step of converting the auxiliary password into the first auxiliary layer based on the first encryption sequence includes: The absolute coordinates of the additional feature are determined based on the number of the first preset characters and the number of the second preset characters in the first encryption sequence. The sign bit is determined based on the first encryption sequence; The coordinate quadrant of the additional feature is determined based on the sign bit; The coordinate position of the additional feature is determined based on the absolute value of the coordinates and the coordinate quadrant. The auxiliary password is converted into a first auxiliary layer based on the coordinate position.
2. The method according to claim 1, characterized in that, Determining the sign bit based on the first encryption sequence includes: When the first encryption sequence includes three or more characters, any three characters in the first encryption sequence are determined as the sign bit; If the first encrypted sequence has less than three characters, the first encrypted sequence is padded with three characters according to a preset rule. The preset rule includes any one of the following: taking the first three characters of the Morse code as the sign bit, taking the last three characters of the Morse code as the sign bit, taking any three characters of the Morse code as the sign bit, or using one of the following methods to padded three characters as the sign bit: - or . The symbol bit is determined to be one of the three characters in the first encrypted sequence after padding.
3. The method according to claim 2, characterized in that, Determining the coordinate quadrant of the additional feature based on the sign bit includes: The sign of the horizontal coordinate of the additional feature is determined based on the first character combination in the sign bit; the first character combination is one of the first two characters and the last two characters in the sign bit. The sign of the vertical coordinate of the additional feature is determined based on the second character combination in the sign position; the second character combination is the other of the first two characters and the last two characters in the sign position. The coordinate quadrant is determined based on the sign of the horizontal coordinate and the sign of the vertical coordinate.
4. The method according to claim 3, characterized in that, Determining the sign of the horizontal coordinate of the additional feature based on the first character combination in the sign bit includes: Determine whether the first character combination is the same preset character; If the first character combination is the same preset character, the value of the horizontal coordinate is determined to be negative; if the first character combination is different preset characters, the value of the horizontal coordinate is determined to be positive. Determining the sign of the ordinate of the additional feature based on the second character combination in the sign bit includes: Determine whether the second character combination is the same preset character; If the second character combination is the same preset character, the value of the vertical axis is determined to be negative; if the second character combination is different preset characters, the value of the vertical axis is determined to be positive.
5. The method according to claim 3, characterized in that, Determining the sign of the horizontal coordinate of the additional feature based on the first character combination in the sign bit includes: Determine whether the first character combination is the same preset character; If the first character combination is the same preset character, the value of the horizontal coordinate is determined to be positive; if the first character combination is different preset characters, the value of the horizontal coordinate is determined to be negative. Determining the sign of the ordinate of the additional feature based on the second character combination in the sign bit includes: Determine whether the second character combination is the same preset character; If the second character combination is the same preset character, the value of the vertical axis is determined to be positive; if the second character combination is different preset characters, the value of the vertical axis is determined to be negative.
6. The method according to claim 1, characterized in that, The step of fusing the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template includes: Obtain the size of the first auxiliary layer and the size of the first fingerprint layer; Adjust the first auxiliary layer and the first fingerprint layer to the same size based on their dimensions; Align the center of the first auxiliary layer with the center of the first fingerprint layer, and merge the first auxiliary layer and the first fingerprint layer of the same size to obtain the fingerprint template.
7. The method according to claim 6, characterized in that, Adjusting the first auxiliary layer and the first fingerprint layer to the same size includes: Adjust the size of the first auxiliary layer according to the size of the first fingerprint layer, so that the size of the first auxiliary layer and the first fingerprint layer are the same while keeping the size of the additional feature unchanged.
8. The method according to claim 6, characterized in that, Adjusting the first auxiliary layer and the first fingerprint layer to the same size includes: The size range of the first fingerprint layer is determined based on the maximum coordinate value of the additional features; Adjust the size of the first fingerprint layer so that it is within the specified size range and tangent to the specified size range, so that the first auxiliary layer and the first fingerprint layer are the same size.
9. The method according to claim 1, characterized in that, The additional features include one or more of the following: herringbone features, Y-shaped features, and dot features.
10. The method according to claim 1, characterized in that, The preset encryption method includes Morse code.
11. The method according to claim 1, characterized in that, The auxiliary password includes multiple password characters, each of which corresponds to one of the first encryption sequences.
12. The method according to claim 1, characterized in that, The step of obtaining the first fingerprint layer input through the terminal device includes: Obtain the fingerprint layer input via the terminal device; Determine the number of fingerprint features in the fingerprint layer; If the number of fingerprint features in the fingerprint layer is less than a preset threshold, or the similarity between the fingerprint layer and the pre-entered original fingerprint layer is not greater than a preset similarity threshold, the fingerprint layer is determined to be the first fingerprint layer.
13. A fingerprint recognition method, characterized in that, The method includes: In response to a fingerprint recognition command, the system acquires a second fingerprint layer input through a terminal device and acquires an auxiliary password as described in any one of claims 1-12; the second fingerprint layer is a fingerprint layer with a number of fingerprint features less than a preset threshold, or a fingerprint layer with a similarity to a pre-recorded original fingerprint layer that is not greater than a preset similarity threshold. Convert the auxiliary password into a second auxiliary layer; The second auxiliary layer is merged with the second fingerprint layer to obtain the target fingerprint layer; Fingerprint recognition is performed on the target fingerprint layer using the fingerprint template as described in any one of claims 1-12.
14. The method according to claim 13, characterized in that, The step of obtaining the second fingerprint layer input through the terminal device includes: Obtain the fingerprint layer input via the terminal device; Determine the number of fingerprint features in the fingerprint layer; If the number of fingerprint features in the fingerprint layer is less than a preset threshold, or if the similarity between the fingerprint layer and the pre-entered original fingerprint layer is not greater than a preset similarity threshold, then the fingerprint layer is determined to be the second fingerprint layer.
15. The method according to claim 14, characterized in that, The method further includes: If the number of fingerprint features in the fingerprint layer is not less than the preset threshold, or if the fingerprint layer has a similarity greater than the preset similarity threshold with the pre-recorded original fingerprint layer, the fingerprint layer is determined to be a non-shallow fingerprint layer. Fingerprint recognition is performed on the non-shallow fingerprint layer using the original fingerprint layer.
16. A fingerprint recognition device, characterized in that, include: The acquisition unit is used to acquire the first fingerprint layer input through the terminal device and acquire the auxiliary password in response to the fingerprint enrollment command; The first fingerprint layer is a fingerprint layer with fewer than a preset threshold number of fingerprint features, or a fingerprint layer whose similarity to the pre-recorded original fingerprint layer is no greater than a preset similarity threshold. A conversion unit is used to convert the auxiliary password into a first auxiliary layer; The fusion unit is used to fuse the first auxiliary layer with the first fingerprint layer to obtain a fingerprint template, so as to input the fingerprint template into the terminal device; Converting the auxiliary password into a first auxiliary layer includes: The auxiliary password is converted into a first encrypted sequence represented by preset characters using a preset encryption method; The auxiliary password is converted into the first auxiliary layer according to the first encryption sequence; The first auxiliary layer includes additional features, which are geometric shapes mimicking fingerprint features generated based on the first encryption sequence. The preset characters include a first preset character and a second preset character. The step of converting the auxiliary password into the first auxiliary layer based on the first encryption sequence includes: The absolute coordinates of the additional feature are determined based on the number of the first preset characters and the number of the second preset characters in the first encryption sequence. The sign bit is determined based on the first encryption sequence; The coordinate quadrant of the additional feature is determined based on the sign bit; The coordinate position of the additional feature is determined based on the absolute value of the coordinates and the coordinate quadrant. The auxiliary password is converted into a first auxiliary layer based on the coordinate position.
17. A fingerprint recognition device, characterized in that, include: The acquisition unit is configured to, in response to a fingerprint recognition command, acquire a second fingerprint layer input through a terminal device, and acquire an auxiliary password as described in any one of claims 1-12; the second fingerprint layer is a fingerprint layer with a number of fingerprint features less than a preset threshold, or a fingerprint layer with a similarity to a pre-recorded original fingerprint layer not greater than a preset similarity threshold. A conversion unit is used to convert the auxiliary password into a second auxiliary layer; The fusion unit is used to fuse the second auxiliary layer with the second fingerprint layer to obtain the target fingerprint layer; The identification unit is used to perform fingerprint identification on the target fingerprint layer using a fingerprint template obtained by the fingerprint enrollment method as described in any one of claims 1-13.
18. An electronic device, characterized in that, The electronic device includes: a memory and a processor; the memory and the processor are coupled. The memory is used to store one or more computer instructions; The processor is used to execute the one or more computer instructions to implement the method as described in any one of claims 1-15.
19. A computer-readable storage medium storing one or more computer instructions thereon, characterized in that, The instruction is executed by the processor to implement the method as described in any one of claims 1-15.