Fingerprint identification method and device, fingerprint input method and device, equipment and storage medium
By connecting communication between electronic devices, the fingerprint image collected by the first device and the template generated by the second device are matched in feature, and the problem of not easily reaching the position of the fingerprint module is solved, and flexible and convenient fingerprint recognition and entry are achieved.
Patent Information
- Application Number
- CN202311841677.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, the position of the fingerprint module of the electronic device is not easy to reach or is inconvenient to configure, resulting in inconvenient fingerprint recognition.
By communicating between the first device and the second device, fingerprint features are matched using the fingerprint image collected by the first device and the fingerprint template generated by the second device, and corresponding operations are performed.
It enriches fingerprint recognition methods, improves the flexibility and convenience of fingerprint recognition, and is suitable for fingerprint recognition and entry of a variety of devices.
Smart Images

Figure CN120236303A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of fingerprint recognition technology, and in particular, to a fingerprint recognition method, a fingerprint input method, a device, an apparatus, and a storage medium. Background Art
[0002] Fingerprint recognition has become a standard feature of many electronic devices, and the application of fingerprint recognition is becoming more and more widespread. For example, device unlocking, payment, application login, etc. can be performed through fingerprint recognition. In related technologies, for some electronic devices (such as tablet computers, etc.), the size is relatively large, and the position of the fingerprint module is not easily touched, or it is not convenient to configure the fingerprint module, resulting in inconvenient fingerprint recognition. Summary of the Invention
[0003] To overcome the problems existing in the related technologies, the present disclosure provides a fingerprint recognition method, a fingerprint input method, a device, an apparatus, and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a fingerprint recognition method, the method including:
[0005] When a fingerprint recognition operation is detected by a first device, obtaining a fingerprint image collected by the first device;
[0006] Based on the fingerprint image, determining a fingerprint feature of the fingerprint image;
[0007] Based on a matching result between the fingerprint feature and a template fingerprint feature of a fingerprint template, performing a preset operation;
[0008] Wherein, the fingerprint template is generated based on a plurality of fingerprint images collected by a second device, and the first device is communicatively connected to the second device, and the preset operation is an operation indicated by an instruction triggering the fingerprint recognition operation.
[0009] In some embodiments, the method further includes:
[0010] Obtaining a target image collected by the first device, where the target image is an image collected by a fingerprint module of the first device when no fingerprint is detected;
[0011] The determining, based on the fingerprint image, the fingerprint feature of the fingerprint image includes:
[0012] Based on the target image and the fingerprint image, determining the fingerprint feature.
[0013] In some embodiments, the determining, based on the target image and the fingerprint image, the fingerprint feature includes:
[0014] Determining a difference between the target image and the fingerprint image as the fingerprint feature.
[0015] In some embodiments, the method further includes:
[0016] Obtaining a plurality of fingerprint images collected by the second device;
[0017] Generating a fingerprint template based on the plurality of fingerprint images;
[0018] Determining the template fingerprint features for fingerprint recognition based on the fingerprint template.
[0019] In some embodiments, the first device is an external device of the second device, or the second device is an external device of the first device, and the first device and the second device are communicatively connected by a wired connection.
[0020] According to a second aspect of the embodiments of the present disclosure, there is provided a fingerprint entry method, the method including:
[0021] When the first device detects a fingerprint entry operation, obtaining a plurality of fingerprint images collected by the first device,
[0022] Generating a fingerprint template based on the plurality of fingerprint images;
[0023] Determining template fingerprint features for fingerprint recognition based on the fingerprint template, the template fingerprint features being used for fingerprint recognition of fingerprint images collected by the first device and for fingerprint recognition of fingerprint images collected by at least one second device, the at least one second device being communicatively connected to the first device.
[0024] In some embodiments, the method further includes:
[0025] Performing a preset process on the template fingerprint features to obtain processed template fingerprint features, the preset process including at least one of filtering, denoising, and feature extraction.
[0026] In some embodiments, the method further includes:
[0027] Obtaining a target image collected by the first device, the target image being an image collected by the fingerprint module of the first device when no fingerprint is detected;
[0028] The determining the template fingerprint features for fingerprint recognition based on the fingerprint template includes:
[0029] Determining the template fingerprint features based on the target image and the fingerprint template.
[0030] In some embodiments, the determining the template fingerprint features based on the target image and the fingerprint template includes:
[0031] Determine the difference between the target image and the fingerprint template as the template fingerprint feature.
[0032] According to a third aspect of the embodiments of the present disclosure, a fingerprint recognition device is provided, and the device includes:
[0033] An image acquisition module, configured to acquire a fingerprint image collected by the first device when the first device detects a fingerprint recognition operation;
[0034] A feature determination module, configured to determine the fingerprint feature of the fingerprint image based on the fingerprint image;
[0035] A fingerprint recognition module, configured to perform a preset operation based on a matching result between the fingerprint feature and the template fingerprint feature of the fingerprint template;
[0036] Wherein, the fingerprint template is generated based on a plurality of fingerprint images collected by the second device, and the first device is communicatively connected to the second device, and the preset operation is the operation indicated by an instruction triggering the fingerprint recognition operation.
[0037] In some embodiments, the image acquisition module is further configured to acquire a target image collected by the first device, and the target image is an image collected by the fingerprint module of the first device when no fingerprint is detected;
[0038] The feature determination module is configured to determine the fingerprint feature based on the target image and the fingerprint image.
[0039] In some embodiments, the feature determination module is configured to determine the difference between the target image and the fingerprint image as the fingerprint feature.
[0040] In some embodiments, the device further includes:
[0041] The image acquisition module is further configured to acquire a plurality of fingerprint images collected by the second device;
[0042] A template generation module, configured to generate a fingerprint template based on the plurality of fingerprint images;
[0043] The feature determination module is further configured to determine the template fingerprint feature for fingerprint recognition based on the fingerprint template.
[0044] In some embodiments, the first device is an external device of the second device, or the second device is an external device of the first device, and the first device and the second device are communicatively connected by a wired connection method.
[0045] According to a fourth aspect of the embodiments of the present disclosure, there is provided a fingerprint input device, the device comprising:
[0046] An image acquisition module, configured to acquire a plurality of fingerprint images collected by a first device when the first device detects a fingerprint input operation;
[0047] A template generation module, configured to generate a fingerprint template based on the plurality of fingerprint images;
[0048] A feature determination module, configured to determine a template fingerprint feature for fingerprint recognition based on the fingerprint template, the template fingerprint feature being used for fingerprint recognition of fingerprint images collected by the first device and for fingerprint recognition of fingerprint images collected by at least one second device, the at least one second device being communicatively connected to the first device.
[0049] In some embodiments, the device further comprises:
[0050] A feature processing module, configured to perform a preset process on the template fingerprint feature to obtain a processed template fingerprint feature, the preset process including at least one of filtering, denoising, and feature extraction.
[0051] In some embodiments, the image acquisition module is further configured to acquire a target image collected by the first device, the target image being an image collected by a fingerprint module of the first device when no fingerprint is detected;
[0052] The feature determination module is configured to determine the template fingerprint feature based on the target image and the fingerprint template.
[0053] In some embodiments, the feature determination module is configured to determine the difference between the target image and the fingerprint template as the template fingerprint feature.
[0054] According to a fifth aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising:
[0055] A processor;
[0056] A memory for storing instructions executable by the processor;
[0057] Wherein, the processor is configured to execute the method described in the first aspect of the embodiments of the present disclosure, and / or, the processor is configured to execute the method described in the second aspect of the embodiments of the present disclosure.
[0058] According to a sixth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiments of the present disclosure and / or execute the method described in the second aspect of the embodiments of the present disclosure.
[0059] Adopting the above method of the present disclosure has the following beneficial effects:
[0060] The method provided by the embodiments of the present disclosure enriches the fingerprint recognition method and improves the flexibility of fingerprint recognition.
[0061] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.
[0063] Figure 1 is a flowchart of a fingerprint recognition method shown according to an exemplary embodiment;
[0064] Figure 2 is a flowchart of a fingerprint enrollment method shown according to an exemplary embodiment;
[0065] Figure 3 is a flowchart of a fingerprint enrollment method shown according to an exemplary embodiment;
[0066] Figure 4 is a flowchart of a fingerprint enrollment method shown according to an exemplary embodiment;
[0067] Figure 5 is a flowchart of a fingerprint enrollment method shown according to an exemplary embodiment;
[0068] Figure 6 is a flowchart of a fingerprint recognition method shown according to an exemplary embodiment;
[0069] Figure 7 is a flowchart of a fingerprint recognition method shown according to an exemplary embodiment;
[0070] Figure 8 is a flowchart of a fingerprint recognition method shown according to an exemplary embodiment;
[0071] Figure 9 is a block diagram of a fingerprint recognition device shown according to an exemplary embodiment;
[0072] Figure 10 It is a block diagram of a fingerprint input device shown according to an exemplary embodiment;
[0073] Figure 11 It is a block diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners
[0074] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0075] The fingerprint recognition method provided by the embodiments of the present disclosure is applied to a master device and an external device connected to the master device. For example, the master device is a device with fingerprint recognition function such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, etc., and the external device can be a device with fingerprint collection function such as a mobile phone, a keyboard, a game console, a stylus, a mouse, etc. Among them, the master device can be called the second device, and the external device can be called the first device, or the master device can be called the first device, and the external device can be called the second device. That is, the first device can be an external device of the second device, or the second device is an external device of the first device.
[0076] In some embodiments, the first device and the second device can be connected by a wired method or a wireless method. For example, when the first device and the second device are connected by a wired method, the first device and the second device can be connected by a wired method such as USB (Universal Serial Bus) or pogo pin (spring pin). Also, for example, when the first device and the second device are connected by a wireless method, the first device and the second device can be connected by a wireless method such as Bluetooth or a local area network. Optionally, when the first device and the second device are connected, a preset communication channel needs to exist so that the first device and the second device can communicate. Among them, the preset communication channel is a communication channel allowed to be used in the communication protocol of the first device and the communication protocol of the second device. For example, the preset communication channel is an SPI (Serial Peripheral Interface) communication channel.
[0077] When there are multiple first devices or multiple second devices, each first device can be respectively communicatively connected to multiple second devices, and each second device can also be respectively communicatively connected to multiple first devices.
[0078] Embodiments of the present disclosure relate to two processes: fingerprint recognition and fingerprint entry. The fingerprint recognition process and the fingerprint entry process will be described separately below.
[0079] Figure 1 is a flowchart of a fingerprint recognition method shown according to an exemplary embodiment. Refer to Figure 1 The method includes the following steps:
[0080] Step S101, when the first device detects a fingerprint recognition operation, obtain a fingerprint image collected by the first device.
[0081] The fingerprint recognition operation is used to indicate that fingerprint recognition is to be performed. The fingerprint image is collected based on the fingerprint module of the first device. In addition to the input fingerprint, the fingerprint image may also include other information. For example, the fingerprint image also includes information that the fingerprint module can collect when no fingerprint is detected.
[0082] Step S102, based on the fingerprint image, determine the fingerprint features of the fingerprint image.
[0083] Since the fingerprint image may include other information in addition to the input fingerprint, in order to facilitate subsequent fingerprint recognition, it is necessary to determine the fingerprint features from the fingerprint image. The fingerprint features are used to characterize the input fingerprint and may be in the form of parameters, matrices, vectors, etc.
[0084] Step S103, based on the matching result between the fingerprint features and the template fingerprint features of the fingerprint template, perform a preset operation. The fingerprint template is generated based on multiple fingerprint images collected by the second device, and the first device is communicatively connected to the second device. The preset operation is the operation indicated by the instruction triggering the fingerprint recognition operation.
[0085] When the embodiments of the present disclosure are executed by the first device, the second device sends the fingerprint template or the template fingerprint features to the first device; when the embodiments of the present disclosure are executed by the second device, the first device sends the fingerprint image to the second device, and the template fingerprint features are stored in the second device. Among them, the template fingerprint features of the fingerprint template are used as a reference during fingerprint recognition. The fingerprint template is an image generated by the second device based on multiple collected fingerprint images. The template fingerprint features are used to characterize the input template fingerprint, and the form of the template fingerprint features is the same as that of the fingerprint features.
[0086] The preset operation is the operation indicated by the instruction for triggering the fingerprint recognition operation, and the instruction for triggering the fingerprint recognition operation is an instruction generated by the device. For example, the preset operation may be an unlocking operation, a payment operation, a login operation, a verification success operation, a prompt operation, etc. Among them, the unlocking operation is used to unlock the device, the payment operation is used for transferring money, making payments, etc., the login operation is used to log in to an application, the verification success operation is used to indicate that the user authentication or other verifications are passed, and the prompt operation is used to prompt unlocking failure, payment failure, login failure, verification failure, etc. In the embodiments of the present disclosure, in different scenarios, based on the matching result of the fingerprint feature and the template fingerprint feature, the preset operation corresponding to the scenario is executed. For example, in the fingerprint unlocking scenario, when the user needs to unlock the second device, the second device generates a device unlocking instruction, and this device unlocking instruction triggers the fingerprint recognition operation. After that, when the fingerprint recognition is completed, the unlocking operation indicated by this device unlocking instruction is executed.
[0087] When the first device is the main device and the second device is an external device, the first device generates an instruction for triggering the fingerprint recognition operation, and then in response to this instruction, executes the above steps S101 - S103; when the first device is an external device and the second device is the main device, the second device generates an instruction for triggering the fingerprint recognition operation and sends this instruction to the first device, and the first device in response to this instruction executes the above steps S101 - S103. At this time, when executing the preset operation, it includes: instructing the second device to execute the preset operation.
[0088] The method provided by the embodiments of the present disclosure can use the fingerprint images collected by the first device and the fingerprint templates collected by the second device for fingerprint recognition when performing fingerprint recognition, not limited to using the fingerprint images and fingerprint templates collected by the second device for fingerprint recognition, or using the fingerprint images and fingerprint templates collected by the first device enriches the fingerprint recognition method and improves the flexibility of fingerprint recognition.
[0089] Figure 2 is a flowchart of a fingerprint entry method shown according to an exemplary embodiment. Refer to Figure 2 This method includes the following steps:
[0090] Step S201, when the first device detects a fingerprint entry operation, obtain multiple fingerprint images collected by the first device.
[0091] During the fingerprint entry process, in order to make the obtained fingerprint template contain any position of the fingerprint, the first device needs to collect multiple fingerprint images, and these multiple fingerprint images are fingerprint images of the same finger of the user. Among them, in addition to the input fingerprint, each fingerprint image may also contain other information. For example, the fingerprint image also includes the information that can be collected by the fingerprint module when no fingerprint is detected.
[0092] Step S202: Generate a fingerprint template based on multiple fingerprint images.
[0093] In the embodiments of the present disclosure, a fingerprint template is generated based on multiple fingerprint images. The fingerprint template is a fingerprint image, and the fingerprint included in the fingerprint template is more comprehensive than the fingerprints included in each fingerprint image.
[0094] Step S203: Determine template fingerprint features for fingerprint recognition based on the fingerprint template. The template fingerprint features are used for fingerprint recognition of the fingerprint images collected by the first device and for fingerprint recognition of the fingerprint images collected by at least one second device. The at least one second device is communicatively connected to the first device.
[0095] Since the fingerprint template may contain other information in addition to the input fingerprint, in order to facilitate subsequent fingerprint recognition, it is necessary to determine the template fingerprint features from the fingerprint template. The template fingerprint features are used to characterize the input fingerprint, and the template fingerprint features can be in the form of parameters, matrices, vectors, etc. Whether it is the fingerprint input through the first device or the fingerprint input through the second device, the same template fingerprint features can be used for fingerprint recognition, which has universality.
[0096] When the embodiments of the present disclosure are executed by the first device, the first device executes the above steps S201 - S203. When the embodiments of the present disclosure are executed by the second device, after the first device collects multiple fingerprint images, it sends the multiple fingerprint images to the second device. The second device receives the multiple fingerprint images sent by the first device and executes steps S202 and S203.
[0097] The method provided by the embodiments of the present disclosure has universality for the obtained template fingerprint features. In the fingerprint recognition process, no matter which device's fingerprint module the fingerprint image is determined from the collected information, the same template fingerprint features can be used for recognition, which improves the convenience of fingerprint recognition based on multiple devices.
[0098] In the embodiments of the present disclosure, fingerprint entry can be based on the first device or the second device. First, the fingerprint entry process will be described through the Figures 3 - 5 illustrated embodiments.
[0099] Figure 3 is a flowchart of a fingerprint entry method shown according to an exemplary embodiment and is executed by the first device. Refer to Figure 3 , and the method includes the following steps:
[0100] Step S301: Obtain a target image collected by the first device. The target image is an image collected by the fingerprint module of the first device when no fingerprint is detected.
[0101] In the embodiments of the present disclosure, a target image is collected when the fingerprint module of the first device does not detect a fingerprint. The target image does not include any fingerprints, and the target image is used to represent the information collected when the fingerprint module does not detect a fingerprint.
[0102] Step S302, in the case where the first device detects a fingerprint entry operation, obtain a plurality of fingerprint images collected by the first device.
[0103] Step S303, generate a fingerprint template based on the plurality of fingerprint images.
[0104] In some embodiments, the plurality of fingerprint images are fused to generate a fingerprint template. Wherein, fusion means fusing the fingerprint-related information included in the plurality of fingerprint images together to obtain a fingerprint template.
[0105] Optionally, add the plurality of fingerprint images to obtain a fingerprint template. For example, the mean value of the pixel values of the pixel points at the same position in the plurality of fingerprint images is determined as the pixel value of the pixel point at this position in the fingerprint template. When the fingerprint module is a capacitive fingerprint module, the pixel value can be the capacitance value detected by the fingerprint module.
[0106] Step S304, determine the template fingerprint feature based on the target image and the fingerprint template.
[0107] In some embodiments, the difference between the target image and the fingerprint template is determined as the template fingerprint feature. For example, if the target image is A and the fingerprint template is B, then the template fingerprint feature is A - B.
[0108] Optionally, the difference between the pixel values of the pixel points at the same position in the target image and the fingerprint template is determined as the template fingerprint feature. When the fingerprint module is a capacitive fingerprint module, the pixel value can be the capacitance value detected by the fingerprint module, that is, the difference between the capacitance values of the pixel points at the same position is determined as the template fingerprint feature.
[0109] It should be noted that the embodiments of the present disclosure are described by taking the first device as an example. In another embodiment, Figure 3 The shown embodiment can also be executed by a second device. When executed by the second device, step S301 includes: receiving the target image sent by the first device, and step S302 includes: receiving the plurality of fingerprint images sent by the first device.
[0110] In some embodiments, after obtaining the template fingerprint features, perform preset processing on the template fingerprint features to obtain the processed template fingerprint features. The preset processing includes at least one of filtering processing, denoising processing, and feature extraction. Among them, filtering processing and denoising processing are to remove the influence of noise and the like in the template fingerprint features to obtain more accurate template fingerprint features, and feature extraction is to convert the template fingerprint features into a format convenient for the first device to save.
[0111] In one example, taking the first device as an external device and the second device as the main device as an example, the fingerprint entry process is shown in Figure 4 and Figure 5 shown.
[0112] Figure 4 is a flowchart of a fingerprint entry method shown according to an exemplary embodiment, which is executed by the first device and the second device. Refer to Figure 4 , and the method includes the following steps:
[0113] Step S401, the first device acquires a first target image and sends the first target image to the second device.
[0114] Step S402, the second device receives the first target image sent by the first device.
[0115] Among them, the first target image is an image acquired when the fingerprint module of the first device does not detect a fingerprint.
[0116] Step S403, the first device acquires a plurality of fingerprint images, generates a first fingerprint template based on the plurality of fingerprint images, and sends the first fingerprint template to the second device.
[0117] Step S404, the second device receives the first fingerprint template sent by the first device.
[0118] Among them, the plurality of fingerprint images are images acquired when the fingerprint template of the first device detects a fingerprint entry operation.
[0119] It should be noted that the embodiments of the present disclosure only take the first device generating the first fingerprint template as an example. In another embodiment, the first device may send the plurality of fingerprint images acquired to the second device, and the second device generates the first fingerprint template based on the plurality of fingerprint images.
[0120] Step S405, the second device determines the template fingerprint features based on the first target image and the first fingerprint template.
[0121] Determine the difference between the first target image and the first fingerprint template as the template fingerprint features. For example, if the first target image is A2 and the first fingerprint template is B2, then the template fingerprint features are A2 - B2.
[0122] It should be noted that Figure 4 Taking the example that the first device sends the first target image and the first fingerprint template to the second device, and the second device determines the template fingerprint features. In another embodiment, the first device determines the template fingerprint features based on the collected first target image and the first fingerprint template, and directly sends the template fingerprint features to the second device, and the second device receives the template fingerprint features sent by the first device.
[0123] In the embodiments of the present disclosure, the template fingerprint features determined through the first target image and the first fingerprint template are universal.
[0124] Figure 5 It is a flowchart of a fingerprint entry method shown according to an exemplary embodiment, which is executed by the second device. Refer to Figure 5 This method includes the following steps:
[0125] Step S501, collect a second target image and a plurality of fingerprint images, and generate a second fingerprint template based on the plurality of fingerprint images.
[0126] Among them, the second target image is an image collected by the fingerprint module of the second device when no fingerprint is detected. The plurality of fingerprint images are images collected by the fingerprint template of the second device when a fingerprint entry operation is detected.
[0127] Step S502, determine the template fingerprint features based on the second target image and the second fingerprint template.
[0128] Determine the difference between the second target image and the second fingerprint template as the template fingerprint features. For example, if the second target image is A1 and the second fingerprint template is B1, then the template fingerprint features are A1 - B1.
[0129] It should be noted that after obtaining the template fingerprint features, the second device saves the template fingerprint features, so that when performing fingerprint recognition later, fingerprint recognition is performed based on the saved template fingerprint features.
[0130] It should be noted that when the first fingerprint template and the second fingerprint template are images corresponding to the fingerprints of the same finger, the template fingerprint features determined based on the first target image and the first fingerprint template are the same as the template fingerprint features determined based on the second target image and the second fingerprint template.
[0131] In the embodiments of the present disclosure, the template fingerprint features determined through the second template fingerprint features and the second fingerprint template are universal.
[0132] In another example, when the first device is the main device and the second device is an external device, the first device can execute the above Figure 4 and Figure 5In the embodiments shown, the steps performed by the second device, and the second device may perform the above Figure 4 and Figure 5 steps performed by the first device in the embodiments shown, which will not be elaborated here.
[0133] In the embodiments of the present disclosure, fingerprint recognition can be performed either based on the first device or based on the second device. The fingerprint recognition process will be described by the embodiments shown in Figure 6 and Figure 7 .
[0134] Figure 6 is a flowchart of a fingerprint recognition method shown according to an exemplary embodiment. Referring to Figure 6 , the method includes the following steps:
[0135] Step S601: Obtain a target image collected by the first device, where the target image is an image collected by the fingerprint module of the first device when no fingerprint is detected.
[0136] Step S602: Obtain a plurality of fingerprint images collected by the second device, and generate a fingerprint template based on the plurality of fingerprint images.
[0137] Step S603: Determine the template fingerprint features of the fingerprint template based on the fingerprint template.
[0138] Step S604: When the first device detects a fingerprint recognition operation, obtain the fingerprint image collected by the first device.
[0139] Step S605: Determine the fingerprint features based on the target image and the fingerprint image.
[0140] In some embodiments, the difference between the target image and the fingerprint image is determined as the fingerprint feature. For example, if the target image is A and the fingerprint image is C, then the fingerprint feature is A - C.
[0141] Optionally, the difference between the pixel values of the pixel points at the same position in the target image and the fingerprint template is determined as the fingerprint feature. When the fingerprint module is a capacitive fingerprint module, the pixel value can be the capacitance value detected by the fingerprint module, that is, the difference between the capacitance values of the pixel points at the same position is determined as the fingerprint feature.
[0142] Step S606: Perform a preset operation based on the matching result between the fingerprint feature and the template fingerprint feature.
[0143] When the fingerprint feature and the template fingerprint feature are the same, it indicates that the fingerprint feature and the template fingerprint feature match. When the fingerprint feature and the template fingerprint feature are different, it indicates that the fingerprint feature and the template fingerprint feature do not match.
[0144] In some embodiments, when there are multiple template fingerprint features, the fingerprint feature is sequentially matched with the multiple template fingerprint features until a template fingerprint feature that matches the fingerprint feature is determined, or until the fingerprint feature is matched with all the multiple template fingerprint features.
[0145] In the case where the matching result indicates that the fingerprint feature and the template fingerprint feature match, a first preset operation is performed. Among them, in different application scenarios, the first preset operation is different. For example, the first preset operation is an unlocking operation, a payment operation, a login operation, a verification success operation, etc., which are operations performed when fingerprint recognition is passed. In the case where the matching result indicates that the fingerprint feature and the template fingerprint feature do not match, a second preset operation is performed. The second preset operation is a prompting operation, which is used to prompt unlocking failure, payment failure, login failure, or verification failure. In different application scenarios, the content displayed after performing the prompting operation is different. Among them, the second preset operation is different from the first preset operation.
[0146] It should be noted that when the embodiment of the present disclosure is executed by the first device, step S602 includes: receiving multiple fingerprint images sent by the second device. When the embodiment of the present disclosure is executed by the second device, step S501 includes: receiving the target image sent by the first device.
[0147] The method provided by the embodiment of the present disclosure, on the one hand, enriches the fingerprint recognition method and improves the flexibility of fingerprint recognition. On the other hand, the template fingerprint feature has universality, which improves the convenience of fingerprint recognition based on multiple devices.
[0148] In one example, taking the first device as an external device and the second device as the main device, the fingerprint recognition process is as follows Figure 7 .
[0149] Figure 7 is a flowchart of a fingerprint recognition method shown according to an exemplary embodiment, which is executed by the second device. See Figure 7 , and the method includes the following steps:
[0150] Step S701, collect a second target image.
[0151] Step S702, receive the first target image sent by the first device.
[0152] Step S703, obtain template fingerprint features.
[0153] The implementation manners of steps S701 - S703 can be seen in the above Figure 4 and Figure 5 shown embodiments, and will not be elaborated here.
[0154] Step S704, obtain a fingerprint image.
[0155] Among them, the fingerprint image includes a first fingerprint image and / or a second fingerprint image. The first fingerprint image is an image collected by a first device when a fingerprint recognition operation is detected, and the second fingerprint image is an image collected by a second device when a fingerprint recognition operation is detected. When the fingerprint image is the first fingerprint image, after the first device collects the first fingerprint image, the first fingerprint image is sent to the second device.
[0156] Step S705, when the fingerprint image is the first fingerprint image, determine fingerprint features based on the first target image and the first fingerprint image.
[0157] In some embodiments, the difference between the first target image and the first fingerprint image is determined as the fingerprint feature. Among them, the first fingerprint image and the first target image are collected by the fingerprint module of the first device and sent to the first device. For example, if the first target image is A2 and the first fingerprint image is C2, then the fingerprint feature is A2 - C2.
[0158] Step S706, when the fingerprint image is the second fingerprint image, determine fingerprint features based on the second target image and the second fingerprint image.
[0159] In some embodiments, the difference between the second target image and the second fingerprint image is determined as the fingerprint feature. Among them, the second fingerprint image and the second target image are collected by the fingerprint module of the second device. For example, if the second target image is A1 and the second fingerprint image is C1, then the fingerprint feature is A1 - C1.
[0160] Step S707, perform a preset operation based on the matching result of the fingerprint feature and the template fingerprint feature.
[0161] It should be noted that Figure 7 The illustrated embodiments are described by taking both the first device and the second device having fingerprint templates as examples. In another embodiment, when the second device does not have a fingerprint template, steps S701 and S705 are no longer executed.
[0162] The method provided by the embodiments of the present disclosure, on the one hand, enriches the fingerprint recognition method and improves the flexibility of fingerprint recognition. On the other hand, the template fingerprint feature has universality, which improves the convenience of fingerprint recognition based on multiple devices.
[0163] Moreover, since the template fingerprint features are universal, after the fingerprint template collected by the fingerprint module of any device determines the template fingerprint features, if the second device is connected to other devices other than the first device, only the target image of the other device needs to be obtained, and there is no need to obtain the corresponding template fingerprint features of the other device, which is more convenient. The template fingerprint features can be compatible with the fingerprints collected by the fingerprint modules of different devices, and any device can perform fingerprint recognition based on the template fingerprint features without additional information binding, improving the convenience of cross-usage among multiple other devices connected to the second device and realizing the function of using the template fingerprint features by multiple devices after one-time input.
[0164] For example, the second device obtains the template fingerprint features based on the local fingerprint module. After that, when the second device is connected to any other keyboard, only the target image corresponding to the keyboard needs to be obtained, and there is no need to obtain the template fingerprint features again, and fingerprint recognition can be performed based on the template fingerprint features.
[0165] In another example, when the first device is the master device and the second device is an external device, the first device can perform the steps executed by the second device in the Figure 7 illustrated embodiment, which will not be elaborated here.
[0166] The fingerprint recognition method provided by the embodiments of the present disclosure can be applied to various scenarios, such as fingerprint unlocking scenarios, fingerprint payment scenarios, fingerprint login scenarios, etc. The process in the fingerprint unlocking scenario will be described below through the Figure 8 illustrated embodiment.
[0167] Figure 8 is a flowchart of a fingerprint recognition method shown according to an exemplary embodiment. Refer to Figure 8 , which includes the following steps:
[0168] When both the first device and the second device have fingerprint modules and are connected, execute the following steps 1-6:
[0169] 1. Obtain the second target image A1 of the second device and the first target image A2 of the first device.
[0170] 2. Determine whether the current is a fingerprint input process. If it is a fingerprint input process, execute step 3; if it is not a fingerprint input process, execute step 5.
[0171] 3. Input a fingerprint based on the fingerprint module of the second device to obtain the second fingerprint template B1.
[0172] 4. A1 - B1 obtains the template fingerprint feature (template fingerprint feature value), and performs algorithm processing on the template fingerprint feature to obtain the processed template fingerprint feature (normalized template fingerprint feature value).
[0173] 5. Obtain the second fingerprint image of the second device, and based on the second fingerprint image and the second target image, obtain the fingerprint feature (fingerprint feature value); or, obtain the first fingerprint image of the first device, and based on the first fingerprint image and the first target image, obtain the fingerprint feature.
[0174] 6. Compare the fingerprint feature with the template fingerprint feature to obtain a matching result, and execute step 13.
[0175] When the second device has no fingerprint module, the first device has a fingerprint module, and the first device and the second device are connected, execute the following steps 7 - 12:
[0176] 7. Obtain the first target image A2 of the first device.
[0177] 8. Determine whether the current is a fingerprint enrollment process. If it is a fingerprint enrollment process, execute step 9; if it is not a fingerprint enrollment process, execute step 11.
[0178] 9. Enroll a fingerprint based on the fingerprint module of the first device to obtain the first fingerprint template B2.
[0179] 10. A2 - B2 obtains the template fingerprint feature (template fingerprint feature value), and performs algorithm processing on the template fingerprint feature to obtain the processed template fingerprint feature (normalized template fingerprint feature value).
[0180] 11. Obtain the first fingerprint image of the first device, and based on the first fingerprint image and the first target image (fingerprint feature value), obtain the fingerprint feature.
[0181] 12. Compare the fingerprint feature with the template fingerprint feature to obtain a matching result, and execute step 13.
[0182] 13. Based on the matching result, determine whether the matching is successful. If the matching is successful, execute step 14; if the matching is not successful, execute step 15.
[0183] 14. Unlock the second device.
[0184] 15. Prompt to retry.
[0185] Figure 9 It is a block diagram of a fingerprint recognition device shown according to an exemplary embodiment. Refer to Figure 9 , the device includes:
[0186] An image acquisition module 901, configured to acquire a fingerprint image collected by a first device when the first device detects a fingerprint recognition operation;
[0187] A feature determination module 902, configured to determine fingerprint features of the fingerprint image based on the fingerprint image;
[0188] A fingerprint recognition module 903, configured to perform a preset operation based on a matching result between the fingerprint features and template fingerprint features of a fingerprint template;
[0189] Wherein, the fingerprint template is generated based on a plurality of fingerprint images collected by a second device, and the first device is communicatively connected to the second device, and the preset operation is the operation indicated by an instruction triggering the fingerprint recognition operation.
[0190] In some embodiments, the image acquisition module 901 is further configured to acquire a target image collected by the first device, where the target image is an image collected by a fingerprint module of the first device when no fingerprint is detected;
[0191] The feature determination module 902 is configured to determine fingerprint features based on the target image and the fingerprint image.
[0192] In some embodiments, the feature determination module 902 is configured to determine the difference between the target image and the fingerprint image as the fingerprint feature.
[0193] In some embodiments, the image acquisition module 901 is further configured to acquire a plurality of fingerprint images collected by the second device;
[0194] A template generation module, configured to generate a fingerprint template based on the plurality of fingerprint images;
[0195] The feature determination module 902 is further configured to determine template fingerprint features for fingerprint recognition based on the fingerprint template.
[0196] In some embodiments, the first device is an external device of the second device, or the second device is an external device of the first device, and the first device and the second device are communicatively connected by a wired connection method.
[0197] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0198] Figure 10 is a block diagram of a fingerprint entry device shown according to an exemplary embodiment. Refer to Figure 10 , the device includes:
[0199] An image acquisition module 1001, configured to acquire a plurality of fingerprint images collected by a first device when the first device detects a fingerprint input operation.
[0200] A template generation module 1002, configured to generate a fingerprint template based on the plurality of fingerprint images.
[0201] A feature determination module 1003, configured to determine template fingerprint features for fingerprint recognition based on the fingerprint template, where the template fingerprint features are used for fingerprint recognition of the fingerprint images collected by the first device and for fingerprint recognition of the fingerprint images collected by at least one second device, and the at least one second device is communicatively connected to the first device.
[0202] In some embodiments, the apparatus further includes:
[0203] A feature processing module, configured to perform a preset process on the template fingerprint features to obtain processed template fingerprint features, where the preset process includes at least one of filtering, denoising, and feature extraction.
[0204] In some embodiments, the image acquisition module 1001 is further configured to acquire a target image collected by the first device, where the target image is an image collected by the fingerprint module of the first device when no fingerprint is detected.
[0205] The feature determination module 1003 is further configured to generate template fingerprint features based on the target image and the fingerprint template.
[0206] In some embodiments, the feature determination module 1003 is configured to determine the difference between the target image and the fingerprint template as the template fingerprint features.
[0207] Regarding the apparatus in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0208] An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the fingerprint recognition method and / or the fingerprint input method in the above embodiments.
[0209] Figure 11 It is a block diagram of an electronic device 1100 shown according to an exemplary embodiment.
[0210] Refer to Figure 11, the electronic device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input / output (I / O) interface 1112, a sensor component 1114, and a communication component 1116.
[0211] The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.
[0212] The memory 1104 is configured to store various types of data to support the operation of the electronic device 1100. Examples of such data include instructions for any application or method operating on the electronic device 1100, contact data, phone book data, messages, pictures, videos, etc. The memory 1104 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0213] The power component 1106 provides power to the various components of the electronic device 1100. The power component 1106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 1100.
[0214] The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the electronic device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0215] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 1100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 further includes a speaker for outputting audio signals.
[0216] The I / O interface 1112 provides an interface between the processing component 1102 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0217] The sensor component 1114 includes one or more sensors for providing status assessments of various aspects of the electronic device 1100. For example, the sensor component 1114 can detect the on / off state of the electronic device 1100, the relative positioning of components, such as the display and keypad of the electronic device 1100. The sensor component 1114 can also detect a change in the position of the electronic device 1100 or a component of the electronic device 1100, the presence or absence of user contact with the electronic device 1100, the orientation or acceleration / deceleration of the electronic device 1100, and a change in the temperature of the electronic device 1100. The sensor component 1114 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1114 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1114 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0218] The communication component 1116 is configured to facilitate communication between the electronic device 1100 and other devices in a wired or wireless manner. The electronic device 1100 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0219] In an exemplary embodiment, the electronic device 1100 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0220] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1104 including instructions, and the above instructions can be executed by a processor 1120 of the electronic device 1100 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0221] The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the fingerprint recognition method and / or fingerprint entry method in the above embodiments.
[0222] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0223] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A fingerprint recognition method, characterized in that, The method includes: When a fingerprint recognition operation is detected by a first device, obtaining a fingerprint image collected by the first device; Based on the fingerprint image, determining fingerprint features of the fingerprint image; Based on a matching result between the fingerprint features and template fingerprint features of a fingerprint template, performing a preset operation; Wherein, the fingerprint template is generated based on a plurality of fingerprint images collected by a second device, and the first device is communicatively connected to the second device, and the preset operation is an operation indicated by an instruction triggering the fingerprint recognition operation.
2. The method according to claim 1, characterized in that, The method further includes: Obtaining a target image collected by the first device, where the target image is an image collected by a fingerprint module of the first device when no fingerprint is detected; The determining, based on the fingerprint image, the fingerprint features of the fingerprint image includes: Based on the target image and the fingerprint image, determining the fingerprint features.
3. The method according to claim 2, wherein The determining, based on the target image and the fingerprint image, the fingerprint features includes: Determining a difference between the target image and the fingerprint image as the fingerprint features.
4. The method according to claim 1, wherein The method further includes: Obtaining a plurality of fingerprint images collected by the second device; Based on the plurality of fingerprint images, generating a fingerprint template; Based on the fingerprint template, determining the template fingerprint features for fingerprint recognition.
5. The method according to any one of claims 1 to 4, characterized in that The first device is an external device of the second device, or the second device is an external device of the first device, and the first device is communicatively connected to the second device by a wired connection method.
6. A fingerprint input method, characterized in that, The method includes: When a fingerprint entry operation is detected by a first device, obtaining a plurality of fingerprint images collected by the first device, Based on the plurality of fingerprint images, generating a fingerprint template; Based on the fingerprint template, determining template fingerprint features for fingerprint recognition, where the template fingerprint features are used for fingerprint recognition of fingerprint images collected by the first device and fingerprint images collected by at least one second device, and the at least one second device is communicatively connected to the first device.
7. The method according to claim 6, characterized in that, The method further includes: Performing a preset process on the template fingerprint features to obtain processed template fingerprint features, where the preset process includes at least one of filtering, denoising, and feature extraction.
8. The method according to claim 6, wherein The method further includes: Obtaining a target image collected by the first device, where the target image is an image collected by a fingerprint module of the first device when no fingerprint is detected; The determining, based on the fingerprint template, the template fingerprint features for fingerprint recognition includes: Based on the target image and the fingerprint template, determining the template fingerprint features.
9. The method according to claim 8, wherein The determining, based on the target image and the fingerprint template, the template fingerprint features includes: Determining a difference between the target image and the fingerprint template as the template fingerprint features.
10. A fingerprint recognition device, characterized in that, The apparatus includes: An image acquisition module configured to, when a fingerprint recognition operation is detected by a first device, obtain a fingerprint image collected by the first device; A feature determination module configured to, based on the fingerprint image, determine fingerprint features of the fingerprint image; A fingerprint recognition module, configured to perform a preset operation based on a matching result between the fingerprint feature and the template fingerprint feature of the fingerprint template; wherein, the fingerprint template is generated based on a plurality of fingerprint images collected by a second device, and the first device is communicatively connected to the second device, and the preset operation is an operation indicated by an instruction for triggering the fingerprint recognition operation.
11. A fingerprint input device, characterized in that, The apparatus includes: An image acquisition module, configured to acquire a plurality of fingerprint images collected by a first device when the first device detects a fingerprint entry operation; A template generation module, configured to generate a fingerprint template based on the plurality of fingerprint images; A feature determination module, configured to determine a template fingerprint feature for fingerprint recognition based on the fingerprint template, where the template fingerprint feature is used for fingerprint recognition of fingerprint images collected by the first device and fingerprint recognition of fingerprint images collected by at least one second device, and the at least one second device is communicatively connected to the first device.
12. An electronic device, characterized in that, Includes: A processor; A memory for storing processor-executable instructions; wherein, the processor is configured to execute the method according to any one of claims 1-5, and / or, the processor is configured to execute the method according to any one of claims 6-9.
13. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1-5, and / or, the electronic device is enabled to execute the method according to any one of claims 6-9.