A fingerprint identification method, device, terminal and storage medium
Through the image cutting and feature comparison technology of the small fingerprint recognition chip, the problem of unstable recognition caused by the small fingerprint recognition chip is solved, and efficient fingerprint recognition and user experience improvement are achieved.
Patent Information
- Application Number
- CN202111652934.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-12-30
AI Technical Summary
The existing small fingerprint recognition chip has a small input area and changes in user gesture habits, resulting in recognition failure, and multiple inputs are required from multiple angles, resulting in unstable recognition.
By acquiring fingerprint images, if the number of features does not exceed the threshold, the image is cut based on the larger fingerprint acquisition area to compare images; if the number of features exceeds the threshold, the feature comparison is performed, the recognition results are determined, and the recognition process is automated and stable.
It improves the success rate and user experience of fingerprint recognition, reduces the number of inputs, reduces the requirements for user press gestures, and improves the accuracy and stability of recognition.
Smart Images

Figure CN114299554B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fingerprint recognition technology, and in particular to a fingerprint recognition method, device, terminal and storage medium. Background Art
[0002] In recent years, fingerprint applications have continued to maintain high growth, but at the same time, in order to reduce costs, companies have turned to chips with smaller fingerprint recognition areas. However, fingerprint chips with smaller fingerprint recognition areas currently use the self-recording and self-comparison method, which requires multiple multi-angle entry. In addition, when recording or extracting fingerprints, fingerprint chips with smaller fingerprint recognition areas are prone to the defect of smaller recorded fingerprint areas due to the user's gesture habits. Therefore, if the fingerprint device is not used for a long time, it is easy to fail to recognize due to changes in habitual gestures.
[0003] Therefore, there is a need for a better method to solve the problems in the prior art. Summary of the invention
[0004] In view of this, the present invention proposes a fingerprint recognition method, device, terminal and storage medium to solve the problems in the prior art.
[0005] Specifically, the present invention proposes the following specific embodiments:
[0006] An embodiment of the present invention provides a fingerprint recognition method, which is applied to a terminal including a first fingerprint collection device. The method includes:
[0007] Acquire a first fingerprint image collected by the first fingerprint collection device;
[0008] Performing feature extraction on the first fingerprint image;
[0009] If the number of extracted features does not exceed a preset number threshold, the second fingerprint image is cut based on the fingerprint collection area of the first fingerprint collection device, and image comparison is performed between the first fingerprint image and the cut image; the second fingerprint image is collected by a second fingerprint collection device, and the second fingerprint collection area of the second fingerprint collection device is larger than the fingerprint collection area of the first fingerprint collection device;
[0010] If the number of extracted features exceeds a preset number threshold, performing feature comparison between the extracted feature points and the features in the second fingerprint image;
[0011] A fingerprint recognition result is determined based on the result of the image comparison or the feature comparison.
[0012] In a specific embodiment, cutting the second fingerprint image based on the fingerprint collection area of the first fingerprint collection device includes: cutting the second fingerprint image in a random manner based on the shape and size of the fingerprint collection area of the first fingerprint collection device.
[0013] In a specific embodiment, determining the fingerprint recognition result based on the result of the image comparison includes:
[0014] Determining the image similarity between the first fingerprint image and each of the cut images;
[0015] If the image similarity reaches a preset similarity threshold, the fingerprint recognition result is determined to be passed;
[0016] If there is no image whose similarity reaches the preset similarity threshold, the fingerprint recognition result is determined to be failed.
[0017] In a specific embodiment, the features include: a fingerprint texture image and location information of the fingerprint texture.
[0018] In a specific embodiment, determining the fingerprint recognition result based on the result of the feature comparison includes:
[0019] If the result of the feature comparison is that the number of successfully matched features exceeds a preset value, the fingerprint recognition result is determined to be passed;
[0020] If the result of the feature comparison is that the number of successfully matched features does not exceed a preset value, the second fingerprint image is cut based on the position of the successfully matched features in the second fingerprint image and the shape and size of the fingerprint collection area of the first fingerprint collection device, and an image comparison is performed between the first fingerprint image and the cut image.
[0021] The embodiment of the present invention further provides a fingerprint recognition device, which is applied to a terminal including a first fingerprint collection device, and the device includes:
[0022] An acquisition module, used to acquire a first fingerprint image acquired by the first fingerprint acquisition device;
[0023] A feature extraction module, used for extracting features from the first fingerprint image;
[0024] an image comparison module, configured to cut a second fingerprint image based on a fingerprint collection area of the first fingerprint collection device, and perform image comparison between the first fingerprint image and the cut image if the number of extracted features does not exceed a preset number threshold; the second fingerprint image is collected by a second fingerprint collection device, and the second fingerprint collection area of the second fingerprint collection device is larger than the fingerprint collection area of the first fingerprint collection device;
[0025] A feature comparison module, configured to compare the extracted feature points with the features in the second fingerprint image if the number of the extracted features exceeds a preset number threshold;
[0026] A determination module is used to determine a fingerprint recognition result based on a result of the image comparison or the feature comparison.
[0027] In a specific embodiment, the image comparison module cutting the second fingerprint image based on the shape and size of the fingerprint collection area of the first fingerprint collection device includes: cutting the second fingerprint image in a random manner based on the fingerprint collection area of the first fingerprint collection device.
[0028] In a specific embodiment, the determination module determines the fingerprint recognition result based on the result of the image comparison, including:
[0029] Determining the image similarity between the first fingerprint image and each of the cut images;
[0030] If the image similarity reaches a preset similarity threshold, the fingerprint recognition result is determined to be passed;
[0031] If there is no image whose similarity reaches the preset similarity threshold, the fingerprint recognition result is determined to be failed.
[0032] An embodiment of the present invention further provides a terminal, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned fingerprint recognition method when executing the computer program.
[0033] The embodiment of the present invention further provides a storage medium, in which a computer program is stored. When the computer program is executed, the above-mentioned fingerprint recognition method is implemented.
[0034] Thus, the embodiment of the present invention proposes a fingerprint recognition method, device, terminal and storage medium, which are applied to a terminal including a first fingerprint collection device, and the method includes: obtaining a first fingerprint image collected by the first fingerprint collection device; performing feature extraction on the first fingerprint image; if the number of extracted features does not exceed a preset number threshold, cutting a second fingerprint image based on a fingerprint collection area of the first fingerprint collection device, and performing image comparison between the first fingerprint image and the cut image; the second fingerprint image is collected by a second fingerprint collection device, and the second fingerprint collection area of the second fingerprint collection device is larger than the fingerprint collection area of the first fingerprint collection device;
[0035] If the number of extracted features exceeds a preset number threshold, the extracted feature points are compared with the features in the second fingerprint image; the fingerprint recognition result is determined based on the result of the image comparison or the feature comparison. This solution obtains the second fingerprint image based on a fingerprint acquisition device with a larger fingerprint acquisition area. When a fingerprint acquisition device with a smaller fingerprint acquisition area performs fingerprint recognition later, the recognition result can be obtained by comparing it with the second fingerprint image, without the user having to switch the fingerprint pressing gesture, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.
[0037] Figure 1 A schematic flow chart of a fingerprint recognition method proposed in an embodiment of the present invention is shown;
[0038] Figure 2 A schematic diagram of the fingerprint entry process in a fingerprint recognition method proposed in an embodiment of the present invention is shown;
[0039] Figure 3 A schematic diagram of the fingerprint comparison process in a fingerprint recognition method proposed in an embodiment of the present invention is shown;
[0040] Figure 4 A schematic diagram showing cutting in a fingerprint recognition method provided by an embodiment of the present invention is shown;
[0041] Figure 5 A schematic structural diagram of a fingerprint recognition device proposed in an embodiment of the present invention is shown.
[0042] Legend:
[0043] 201-acquisition module; 202-feature extraction module; 203-image comparison module;
[0044] 204-feature comparison module; 205-determination module. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0046] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0047] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0048] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0049] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.
[0050] Example 1
[0051] Embodiment 1 of the present invention discloses a fingerprint recognition method, which is applied to a terminal including a first fingerprint collection device, such as Figure 1 As shown, the following steps are included:
[0052] Step S101, obtaining a first fingerprint image collected by the first fingerprint collection device;
[0053] Specifically, Figure 2 As shown, before step S101, a fingerprint template is entered using a large-area fingerprint device (such as an area of 256*360 or other area). The entered template contains complete fingerprint information. In this large-area fingerprint device, that is, the second fingerprint collection device, that is, Figure 2 The fingerprint entry device in the system is used to extract the features of the sampled fingerprint image. The collected feature data and fingerprint image data are encrypted and transmitted to the small-area fingerprint recognition device to generate and save the fingerprint template.
[0054] Step S102, extracting features from the first fingerprint image;
[0055] Specifically, the extracted features may include: fingerprint texture image and fingerprint texture position information. The specific fingerprint texture image may include, for example, fingerprint texture ridges, ridge end points, and intersections on ridges.
[0056] Step S103: if the number of extracted features does not exceed a preset number threshold, cutting the second fingerprint image based on the fingerprint collection area of the first fingerprint collection device, and performing image comparison between the first fingerprint image and the cut image;
[0057] The second fingerprint image is acquired by a second fingerprint acquisition device, and a second fingerprint acquisition area of the second fingerprint acquisition device is larger than a fingerprint acquisition area of the first fingerprint acquisition device;
[0058] Specifically, Figure 3 As shown, if the number of extracted features is less than 3. The image in the template (ie, the second fingerprint image) is cut according to the identified fingerprint area, and the cut image is compared with the collected image.
[0059] Furthermore, the cutting of the second fingerprint image based on the fingerprint collection area of the first fingerprint collection device includes: cutting the second fingerprint image in a random manner based on the shape and size of the fingerprint collection area of the first fingerprint collection device. Figure 4 As shown, the box corresponds to the fingerprint collection area of the first fingerprint collection device. Based on the shape and size of the area, the second fingerprint image can be cut to obtain a cut image (that is, the area in the second fingerprint image corresponding to the box).
[0060] Step S104: if the number of extracted features exceeds a preset number threshold, then feature comparison is performed between the extracted feature points and the features in the second fingerprint image;
[0061] Still Figure 3For example, if the number of extracted features is 3 or more, identify the extracted feature points and compare them with the features in the template. If the feature comparison result is that the similarity is greater than the threshold, output the corresponding result. If the feature comparison result is less than the threshold value. Confirm the position and direction of the feature in the second fingerprint image through feature comparison, and cut the image in the template based on it. Cut out a picture with the same area as the collector. Compare and output the comparison result.
[0062] Step S105: Determine a fingerprint recognition result based on the result of the image comparison or the feature comparison.
[0063] Furthermore, determining the fingerprint recognition result based on the result of the image comparison includes: determining the image similarity between the first fingerprint image and each of the cut images; if the image similarity reaches a preset similarity threshold, determining the fingerprint recognition result as passed; if the image similarity does not reach the preset similarity threshold, determining the fingerprint recognition result as failed.
[0064] In addition, determining the fingerprint recognition result based on the result of the feature comparison includes: if the result of the feature comparison is that the number of successfully matched features exceeds a preset value, determining the fingerprint recognition result is passed; if the result of the feature comparison is that the number of successfully matched features does not exceed the preset value, cutting the second fingerprint image based on the position of the successfully matched features in the second fingerprint image and the shape and size of the fingerprint collection area of the first fingerprint collection device, and performing image comparison between the first fingerprint image and the cut image.
[0065] In this solution, only one or two inputs are needed to generate complete fingerprint template information, i.e., the second fingerprint image. Since the complete fingerprint image and information are collected, the finger pressing gesture requirements are greatly reduced during fingerprint recognition, thus improving the recognition rate and user experience.
[0066] Example 2
[0067] To further illustrate the present invention, Embodiment 2 of the present invention further discloses a fingerprint recognition device, which is applied to a terminal including a first fingerprint collection device, such as Figure 5 As shown, the device comprises:
[0068] An acquisition module 201 is used to acquire a first fingerprint image acquired by the first fingerprint acquisition device;
[0069] A feature extraction module 202, configured to extract features from the first fingerprint image;
[0070] The image comparison module 203 is used for cutting the second fingerprint image based on the fingerprint collection area of the first fingerprint collection device if the number of extracted features does not exceed a preset number threshold, and performing image comparison between the first fingerprint image and the cut image; the second fingerprint image is collected by a second fingerprint collection device, and the second fingerprint collection area of the second fingerprint collection device is larger than the fingerprint collection area of the first fingerprint collection device;
[0071] A feature comparison module 204 is used to compare the extracted feature points with the features in the second fingerprint image if the number of the extracted features exceeds a preset number threshold;
[0072] The determination module 205 is used to determine the fingerprint recognition result based on the result of the image comparison or the feature comparison.
[0073] In a specific embodiment, the image comparison module 203 cuts the second fingerprint image based on the fingerprint collection area of the first fingerprint collection device, including: cutting the second fingerprint image in a random manner based on the shape and size of the fingerprint collection area of the first fingerprint collection device.
[0074] In a specific embodiment, the determination module 205 determines the fingerprint recognition result based on the image comparison result, including:
[0075] Determining the image similarity between the first fingerprint image and each of the cut images;
[0076] If the image similarity reaches a preset similarity threshold, the fingerprint recognition result is determined to be passed;
[0077] If there is no image whose similarity reaches the preset similarity threshold, the fingerprint recognition result is determined to be failed.
[0078] In a specific embodiment, the features include: a fingerprint texture image and location information of the fingerprint texture.
[0079] In a specific embodiment, the determination module 205 determines the fingerprint recognition result based on the result of the feature comparison, including:
[0080] If the result of the feature comparison is that the number of successfully matched features exceeds a preset value, the fingerprint recognition result is determined to be passed;
[0081] If the result of the feature comparison is that the number of successfully matched features does not exceed a preset value, the second fingerprint image is cut based on the position of the successfully matched features in the second fingerprint image and the shape and size of the fingerprint collection area of the first fingerprint collection device, and an image comparison is performed between the first fingerprint image and the cut image.
[0082] Example 3
[0083] Embodiment 3 of the present invention further discloses a terminal, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the fingerprint recognition method described in Embodiment 1 when executing the computer program.
[0084] Example 4
[0085] Embodiment 4 of the present invention further discloses a storage medium, in which a computer program is stored. When the computer program is executed, the fingerprint recognition method described in Embodiment 1 is implemented.
[0086] Thus, the embodiment of the present invention proposes a fingerprint recognition method, device, terminal and storage medium, the method comprising: obtaining a first fingerprint image collected by a first fingerprint collection device; extracting features from the first fingerprint image; if the number of extracted features does not exceed a preset number threshold, cutting a second fingerprint image based on the fingerprint collection area of the first fingerprint collection device, and performing image comparison between the first fingerprint image and the cut image; if the number of extracted features exceeds the preset number threshold, performing feature comparison between the extracted feature points and the features in the second fingerprint image; the second fingerprint image is collected by a second fingerprint collection device, and the second fingerprint collection area of the second fingerprint collection device is larger than the fingerprint collection area of the first fingerprint collection device; and determining the fingerprint recognition result based on the result of the image comparison or the feature comparison. This solution obtains the second fingerprint image based on a fingerprint collection device with a larger fingerprint collection area. When a fingerprint collection device with a smaller fingerprint collection area performs fingerprint recognition later, the recognition result can be obtained by comparing with the second fingerprint image, without the user having to switch the fingerprint pressing gesture, thereby improving the user experience.
[0087] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0088] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0089] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0090] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A fingerprint recognition method, characterized in that: Applied to a terminal including a first fingerprint collection device, the method includes: Acquire a first fingerprint image collected by the first fingerprint collection device; Performing feature extraction on the first fingerprint image; If the number of extracted features does not exceed a preset number threshold, the second fingerprint image is cut based on the fingerprint collection area of the first fingerprint collection device, and image comparison is performed between the first fingerprint image and the cut image; the second fingerprint image is collected by a second fingerprint collection device, and the second fingerprint collection area of the second fingerprint collection device is larger than the fingerprint collection area of the first fingerprint collection device; If the number of extracted features exceeds a preset number threshold, performing feature comparison between the extracted feature points and the features in the second fingerprint image; Determine the fingerprint recognition result based on the result of the image comparison or the feature comparison; wherein: Determining a fingerprint recognition result based on the image comparison result includes: Determining the image similarity between the first fingerprint image and each of the cut images; If the image similarity reaches the preset similarity threshold, the fingerprint recognition result is determined to be passed; If there is no image whose similarity reaches the preset similarity threshold, the fingerprint recognition result is determined to be failed; Determining a fingerprint recognition result based on the result of the feature comparison includes: If the result of the feature comparison is that the number of successfully matched features exceeds a preset value, the fingerprint recognition result is determined to be passed; If the result of the feature comparison is that the number of successfully matched features does not exceed a preset value, the second fingerprint image is cut based on the position of the successfully matched features in the second fingerprint image and the shape and size of the fingerprint collection area of the first fingerprint collection device, and an image comparison is performed between the first fingerprint image and the cut image.
2. The method according to claim 1, characterized in that The cutting of the second fingerprint image based on the fingerprint collection area of the first fingerprint collection device includes: cutting the second fingerprint image in a random manner based on the shape and size of the fingerprint collection area of the first fingerprint collection device.
3. The method according to claim 1, characterized in that The features include: fingerprint texture image and fingerprint texture location information.
4. A fingerprint recognition device, characterized in that: Applied to a terminal including a first fingerprint collection device, the device includes: An acquisition module, used to acquire a first fingerprint image acquired by the first fingerprint acquisition device; A feature extraction module, used for extracting features from the first fingerprint image; an image comparison module, configured to cut a second fingerprint image based on a fingerprint collection area of the first fingerprint collection device, and perform image comparison between the first fingerprint image and the cut image if the number of extracted features does not exceed a preset number threshold; the second fingerprint image is collected by a second fingerprint collection device, and the second fingerprint collection area of the second fingerprint collection device is larger than the fingerprint collection area of the first fingerprint collection device; A feature comparison module, configured to compare the extracted feature points with the features in the second fingerprint image if the number of the extracted features exceeds a preset number threshold; A determination module, used to determine a fingerprint recognition result based on the result of the image comparison or the feature comparison; wherein: Determining a fingerprint recognition result based on the image comparison result includes: Determining the image similarity between the first fingerprint image and each of the cut images; If the image similarity reaches the preset similarity threshold, the fingerprint recognition result is determined to be passed; If there is no image whose similarity reaches the preset similarity threshold, the fingerprint recognition result is determined to be failed; Determining a fingerprint recognition result based on the result of the feature comparison includes: If the result of the feature comparison is that the number of successfully matched features exceeds a preset value, the fingerprint recognition result is determined to be passed; If the result of the feature comparison is that the number of successfully matched features does not exceed a preset value, the second fingerprint image is cut based on the position of the successfully matched features in the second fingerprint image and the shape and size of the fingerprint collection area of the first fingerprint collection device, and an image comparison is performed between the first fingerprint image and the cut image.
5. The device according to claim 4, characterized in that The image comparison module cutting the second fingerprint image based on the fingerprint collection area of the first fingerprint collection device includes: cutting the second fingerprint image in a random manner based on the shape and size of the fingerprint collection area of the first fingerprint collection device.
6. A terminal, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the fingerprint recognition method according to any one of claims 1 to 3 when executing the computer program.
7. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed, the fingerprint recognition method according to any one of claims 1 to 3 is implemented.
