Fingerprint identification method and device, electronic equipment and storage medium

The method and device enable flexible fingerprint recognition by allowing template transfer and matching across devices, enhancing user convenience and security.

CN119229480APending Publication Date: 2024-12-31BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310797052.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

Existing fingerprint recognition technologies are inflexible and require the same device to collect and store fingerprint templates, limiting their application and user convenience.

Method used

A method and device that allow fingerprint recognition across different devices by enabling the transfer and storage of fingerprint templates between devices, allowing operations based on matching results from multiple templates, and ensuring secure communication and storage.

Benefits of technology

Enhances flexibility and convenience in fingerprint recognition by enabling operations on devices that did not initially store the templates, improving user experience and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119229480A_ABST
    Figure CN119229480A_ABST
Patent Text Reader

Abstract

The invention relates to a fingerprint identification method and device, electronic equipment and a storage medium. According to the method, a fingerprint template is obtained, and a fingerprint image is obtained, and the fingerprint image comprises a first fingerprint image collected by a first device or a second fingerprint image collected by a second device; based on a matching result of the fingerprint image and a fingerprint template, a preset operation is executed, the fingerprint template is a first fingerprint template or a second fingerprint template, the first fingerprint template is recorded and stored in the first device based on the first device, and the second fingerprint template is recorded and stored in the second device based on the second device. The second fingerprint template is input and stored in the first device based on the second device, and the device for collecting the fingerprint image is different from the device for inputting the fingerprint template. According to the method, the fingerprint identification mode is enriched, the equipment for collecting the fingerprint image does not need to be identical to the equipment for inputting the fingerprint template, and the flexibility of fingerprint identification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of fingerprint recognition technology, and in particular to a fingerprint recognition method, device, electronic device and storage medium. Background Art

[0002] Fingerprint recognition has become a standard feature of many electronic devices, and its application is becoming more and more widespread. For example, fingerprint recognition can be used to unlock devices, make payments, log in to applications, etc. In related technologies, fingerprint templates are stored in electronic devices that have recorded the fingerprint templates. Regardless of whether the electronic device is connected to other electronic devices, when the electronic device performs fingerprint recognition, the electronic device needs to collect real-time fingerprint images and perform recognition based on the fingerprint images and fingerprint templates. The fingerprint recognition method is relatively simple and not flexible enough. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a fingerprint recognition method, device, electronic device and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a fingerprint recognition method is provided, the method comprising:

[0005] Acquire a fingerprint image, where the fingerprint image includes a first fingerprint image acquired by the first device or a second fingerprint image acquired by the second device;

[0006] Based on the matching result of the fingerprint image and the fingerprint template, a preset operation is performed, the fingerprint template is a first fingerprint template or a second fingerprint template, the first fingerprint template is entered and stored in the first device based on the first device, the second fingerprint template is entered and stored in the first device based on the second device, and the device for collecting the fingerprint image is different from the device for entering the fingerprint template.

[0007] In some embodiments, before acquiring the fingerprint image, the method further includes:

[0008] In the case where the first device and the second device are bound, the first fingerprint template is entered based on the first device, and the first fingerprint template is stored; or,

[0009] The second fingerprint template sent by the second device is received, and the second fingerprint template is stored, where the second fingerprint template is entered based on the second device when the second device is bound to the first device.

[0010] In some embodiments, before entering the first fingerprint template based on the first device, or before receiving the second fingerprint template sent by the second device, the method further includes:

[0011] When the first device and the second device are connected to each other for the first time, the first device and the second device are bound; or

[0012] If the first device and the second device are not communicating with each other for the first time and there is binding information between the first device and the second device, it is determined that the first device is bound to the second device.

[0013] In some embodiments, when the first device and the second device are connected for the first time for communication, binding the first device and the second device includes:

[0014] When the first device and the second device are connected to each other for the first time, receiving connection information sent by the second device, where the connection information indicates that the second device already has binding information with other devices except the first device;

[0015] Sending deletion information to the second device, wherein the deletion information instructs the second device to delete binding information with other devices and the fingerprint template that has been entered before connecting with the first device;

[0016] Bind the first device to the second device.

[0017] In some embodiments, acquiring a fingerprint image includes:

[0018] In the case where the second fingerprint template is not recorded in the second device, receiving the second fingerprint image sent by the second device; or,

[0019] In a case where the second fingerprint image does not match the second fingerprint template, the second fingerprint image sent by the second device is received.

[0020] According to a second aspect of an embodiment of the present disclosure, a fingerprint recognition method is provided, the method comprising:

[0021] Acquire a fingerprint image, where the fingerprint image includes a first fingerprint image acquired by the first device and / or a second fingerprint image acquired by the second device;

[0022] Based on the matching results between the fingerprint image and the first fingerprint template and the second fingerprint template, a preset operation is performed, the first fingerprint template is entered based on the first device and stored in the first device, and the second fingerprint template is entered based on the second device and stored in the first device.

[0023] In some embodiments, the performing of a preset operation based on the matching results between the fingerprint image and the first fingerprint template and the second fingerprint template includes:

[0024] The fingerprint image is the first fingerprint image, and the first fingerprint image and the first fingerprint template are matched to obtain a first matching result, wherein the first matching result indicates whether the first fingerprint image matches the first fingerprint template;

[0025] When the first matching result indicates that the first fingerprint image does not match the first fingerprint template, the preset operation is performed based on the matching result between the first fingerprint image and the second fingerprint template.

[0026] In some embodiments, the performing of a preset operation based on the matching results between the fingerprint image and the first fingerprint template and the second fingerprint template includes:

[0027] The fingerprint image is the second fingerprint image, and the second fingerprint image and the second fingerprint template are matched to obtain a second matching result, wherein the second matching result indicates whether the second fingerprint image matches the second fingerprint template;

[0028] In a case where the second matching result indicates that the second fingerprint image does not match the second fingerprint template, a preset operation is performed based on the matching result of the second fingerprint image and the first fingerprint template.

[0029] According to a third aspect of an embodiment of the present disclosure, a fingerprint recognition method is provided, the method comprising:

[0030] Acquire a second fingerprint image collected by a second device;

[0031] Matching the second fingerprint image with a second fingerprint template to obtain a third matching result, where the second fingerprint template is entered based on the second device, and the third matching result indicates whether the second fingerprint template matches the second fingerprint image;

[0032] When the third matching result indicates that the second fingerprint template does not match the second fingerprint image, the second fingerprint image is sent to the first device so that the first device performs a preset operation based on the matching result between the second fingerprint image and the first fingerprint template.

[0033] According to a fourth aspect of an embodiment of the present disclosure, a fingerprint recognition device is provided, the device comprising:

[0034] An image acquisition module is configured to acquire a fingerprint image, wherein the fingerprint image includes a first fingerprint image acquired by the first device or a second fingerprint image acquired by the second device;

[0035] The matching module is configured to perform a preset operation based on the matching result between the fingerprint image and the fingerprint template, wherein the fingerprint template is a first fingerprint template or a second fingerprint template, the first fingerprint template is entered and stored in the first device based on the first device, the second fingerprint template is entered and stored in the first device based on the second device, and the device for collecting the fingerprint image is different from the device for entering the fingerprint template.

[0036] According to a fifth aspect of an embodiment of the present disclosure, a fingerprint recognition device is provided, the device comprising:

[0037] An image acquisition module is configured to acquire a fingerprint image, wherein the fingerprint image includes a first fingerprint image acquired by the first device and / or a second fingerprint image acquired by the second device;

[0038] The matching module is configured to perform a preset operation based on the matching results between the fingerprint image and a first fingerprint template and a second fingerprint template, wherein the first fingerprint template is entered based on the first device and stored in the first device, and the second fingerprint template is entered based on the second device and stored in the first device.

[0039] According to a sixth aspect of an embodiment of the present disclosure, a fingerprint recognition device is provided, the device comprising:

[0040] An image acquisition module is configured to acquire a second fingerprint image collected by a second device;

[0041] a matching module configured to match the second fingerprint image with a second fingerprint template to obtain a third matching result, wherein the second fingerprint template is input based on the second device, and the third matching result indicates whether the second fingerprint template matches the second fingerprint image;

[0042] The image sending module is configured to send the second fingerprint image to the first device when the third matching result indicates that the second fingerprint template does not match the second fingerprint image, so that the first device performs a preset operation based on the matching result of the second fingerprint image and the first fingerprint template.

[0043] According to a seventh aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0044] processor;

[0045] a memory for storing processor-executable instructions;

[0046] The processor is configured to execute the method as described in the first aspect, the second aspect or the third aspect of the embodiment of the present disclosure.

[0047] According to the eighth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute a method as described in the first aspect, the second aspect or the third aspect of the embodiment of the present disclosure.

[0048] The above method of the present disclosure has the following beneficial effects:

[0049] The method provided in the embodiment of the present disclosure enriches the fingerprint recognition methods and improves the flexibility of fingerprint recognition.

[0050] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0052] Figure 1 is a schematic diagram showing a main device and an external device according to an exemplary embodiment;

[0053] Figure 2 is a flow chart of a fingerprint recognition method according to an exemplary embodiment;

[0054] Figure 3 is a flow chart showing another fingerprint recognition method according to an exemplary embodiment;

[0055] Figure 4 is a flow chart showing another fingerprint recognition method according to an exemplary embodiment;

[0056] Figure 5 is a flow chart showing another fingerprint recognition method according to an exemplary embodiment;

[0057] Figure 6 is a flow chart showing another fingerprint recognition method according to an exemplary embodiment;

[0058] Figure 7 is a flow chart showing another fingerprint recognition method according to an exemplary embodiment;

[0059] Figure 8 is a flow chart showing another fingerprint recognition method according to an exemplary embodiment;

[0060] Fig. 9 is a flow chart showing another fingerprint recognition method according to an exemplary embodiment;

[0061] Fig.10 is a flow chart showing a device binding and fingerprint entry process according to an exemplary embodiment;

[0062] Fig.11 is a flow chart showing a fingerprint unlocking process according to an exemplary embodiment;

[0063] Fig.12 is a block diagram of a fingerprint recognition device according to an exemplary embodiment;

[0064] Fig.13 is a block diagram of another fingerprint recognition device according to an exemplary embodiment;

[0065] Fig.14 is a block diagram of another fingerprint recognition device according to an exemplary embodiment;

[0066] Fig.15 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0067] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0068] The fingerprint recognition method provided by the embodiment of the present disclosure is applied to a main device and an external device connected to the main device. For example, the main device is a mobile phone, tablet computer, laptop computer, desktop computer and other devices with fingerprint recognition function, and the external device can be a mobile phone, keyboard, game console and other devices with fingerprint collection function. The main device can be called the first device, and the external device can be called the second device. For example, see Figure 1 The schematic diagram of the main device and external devices shown in the figure, Figure 1 The main device is a tablet computer, and the external device is a keyboard. Both the tablet computer and the keyboard have fingerprint modules that can collect fingerprints.

[0069] The embodiments of the present disclosure provide a variety of fingerprint recognition methods, which are described in detail in the following embodiments.

[0070] Figure 2 is a flowchart of a fingerprint recognition method according to an exemplary embodiment, which is executed by a first device, see Figure 2 , the method comprises the following steps:

[0071] Step S201, obtaining a fingerprint image, where the fingerprint image includes a first fingerprint image collected by a first device or a second fingerprint image collected by a second device.

[0072] The fingerprint image is the latest fingerprint image collected, the first fingerprint image is collected by the first device, the second fingerprint image is collected by the second device, and the first device is connected to the second device in communication, and the second device collects the second fingerprint image and sends it to the first device. For example, the first device and the second device are connected via a data cable, or the first device and the second device are connected via Bluetooth, etc.

[0073] Step S202, based on the matching result of the fingerprint image and the fingerprint template, a preset operation is performed, the fingerprint template is a first fingerprint template or a second fingerprint template, the first fingerprint template is entered based on the first device and stored in the first device, the second fingerprint template is entered based on the second device and stored in the first device, and the device for collecting the fingerprint image is different from the device for entering the fingerprint template.

[0074] The fingerprint template is a fingerprint used as a reference during fingerprint recognition, and the fingerprint template can be the fingerprint of any finger of the user. There is at least one first fingerprint template and at least one second fingerprint template. The first fingerprint template is recorded based on the first device and stored in the first device after recording. The second fingerprint template is recorded based on the second device, sent from the second device to the first device, and then stored in the first device.

[0075] Among them, the preset operations are unlocking operation, payment operation, login operation, successful verification operation, prompt operation, etc. Among them, the unlocking operation is used to unlock the device, the payment operation is used to transfer money, make payments, etc., the login operation is used to log in to a certain application, the successful verification operation is used to indicate that the user identity authentication or other verification has passed, and the prompt operation is used to prompt unlocking failure, payment failure, login failure, verification failure, etc. In the disclosed embodiment, in different scenarios, based on the matching result of the fingerprint image and the fingerprint template, the preset operation corresponding to the scenario is executed. For example, in the scenario of unlocking the device based on fingerprint recognition, when the fingerprint image and the fingerprint template match, the unlocking operation of the device is performed. For another example, in the scenario of payment based on fingerprint recognition, when the fingerprint image and the fingerprint template match, the payment operation is performed.

[0076] When matching the fingerprint image and the fingerprint template, when the fingerprint image is the first fingerprint image, the fingerprint template is the second fingerprint template, and when the fingerprint image is the second fingerprint image, the fingerprint template is the first fingerprint template, that is, the device for collecting the fingerprint image is different from the device for entering the fingerprint template.

[0077] The method provided by the embodiment of the present disclosure can perform fingerprint recognition based on the first fingerprint template and the second fingerprint image, or perform fingerprint recognition based on the second fingerprint template and the first fingerprint image, thereby enriching the fingerprint recognition methods and not requiring the device for collecting the fingerprint image to be exactly the same as the device for entering the fingerprint template, thereby improving the flexibility of fingerprint recognition and no longer being limited to the first device, making user operation more convenient and improving user experience.

[0078] Based on the above Figure 1 In some embodiments, when the second fingerprint template is recorded based on the second device but the first fingerprint template is not recorded based on the first device, the fingerprint recognition process provided by the embodiment of the present disclosure is as follows: Figure 3 The embodiment shown.

[0079] Figure 3 is a flowchart of another fingerprint recognition method according to an exemplary embodiment, which is executed by a first device, see Figure 3 , the method comprises the following steps:

[0080] Step S301: receiving a second fingerprint template sent by a second device, and storing the second fingerprint template.

[0081] After entering the second fingerprint template, the second device sends the second fingerprint template to the first device, and the first device receives and stores the second fingerprint template.

[0082] In some embodiments, in order to ensure the security of the second fingerprint template during transmission, the second device generates a fingerprint template mapping file based on the recorded second fingerprint template, the fingerprint template mapping file includes the recorded second fingerprint template, and then transmits the fingerprint template mapping file to the first device through encryption. The first device stores the received fingerprint template mapping file in the storage area corresponding to the fingerprint template. The embodiments of the present disclosure do not limit the encryption method of the fingerprint template mapping file.

[0083] In some embodiments, the second device includes a fingerprint collection module, and the user can use the fingerprint collection module to enter a fingerprint template and collect a fingerprint image when fingerprint recognition is required. The entered second fingerprint template is at least one, and the second fingerprint template can be the fingerprint of any finger of the user.

[0084] In some embodiments, the second device stores the second fingerprint template in a second fingerprint processing chip of the second device; illustratively, the second fingerprint processing chip may be in a MCU (Micro Control Unit).

[0085] Step S302: collecting a first fingerprint image.

[0086] Step S303: performing a preset operation based on the matching result between the first fingerprint image and the second fingerprint template.

[0087] In the disclosed embodiment, fingerprint recognition is performed based on the second fingerprint template and the first fingerprint image, so that the first device can perform fingerprint recognition and execute preset operations even if the fingerprint template is not entered, thereby improving the flexibility of fingerprint recognition.

[0088] In some embodiments, when the first fingerprint template is entered based on the first device, but the second fingerprint template is not entered based on the second device, the fingerprint recognition process provided by the embodiment of the present disclosure is as follows: Figure 4 The embodiment shown.

[0089] Figure 4 is a flowchart of another fingerprint recognition method according to an exemplary embodiment, which is executed by a first device, see Figure 4 , the method comprises the following steps:

[0090] Step S401: input a first fingerprint template based on a first device and store the first fingerprint template.

[0091] There is at least one first fingerprint template to be entered, and the first fingerprint template can be a fingerprint of any finger of the user. The first device includes a fingerprint collection module, and the user can enter the fingerprint template through the fingerprint collection module and collect fingerprint images when fingerprint recognition is required.

[0092] In some embodiments, in order to improve security, the first fingerprint template entered is stored in an encrypted area of ​​the first device. For example, the first fingerprint template is stored in a first fingerprint processing chip; for example, the first fingerprint processing chip may be an MCU); for example, to achieve confidentiality of fingerprint information, the first fingerprint template is stored in an encrypted area corresponding to the first fingerprint processing chip.

[0093] Step S402: receiving a second fingerprint image sent by a second device.

[0094] In the disclosed embodiment, after the second device collects the second fingerprint image, if the second device has not recorded the second fingerprint template, it sends the second fingerprint image to the first device, that is, the first device receives the second fingerprint template sent by the second device if the second fingerprint template has not been recorded in the second device, and then the first device performs fingerprint recognition based on the second fingerprint image.

[0095] Step S403: performing a preset operation based on the matching result between the second fingerprint image and the first fingerprint template.

[0096] In the embodiment of the present disclosure, fingerprint recognition is performed based on the first fingerprint image and the second fingerprint image, so that the second device can perform fingerprint recognition by receiving the fingerprint image sent by the second device without collecting the fingerprint image and execute the preset operation, thereby improving the flexibility of fingerprint recognition.

[0097] Figure 5 is a flowchart of another fingerprint recognition method according to an exemplary embodiment, which is executed by a first device, see Figure 5 , the method comprises the following steps:

[0098] Step S501, matching the fingerprint template and the fingerprint image to obtain a fourth matching result, the fingerprint image includes the first fingerprint image or the second fingerprint image, the fingerprint template is the first fingerprint template or the second fingerprint template, and the device for collecting the fingerprint image is different from the device for entering the fingerprint template.

[0099] The fourth matching result indicates whether the fingerprint template matches the fingerprint image. If the fingerprint template matches the fingerprint image, it indicates that the currently collected fingerprint image is the same as the recorded fingerprint template. If the fingerprint template does not match the fingerprint image, it indicates that the currently collected fingerprint image is different from the recorded fingerprint template. Matching the fingerprint template and the fingerprint image means comparing whether the fingerprint template and the fingerprint image correspond to the same fingerprint. If the fingerprint template and the fingerprint image correspond to the same fingerprint, it is determined that the fingerprint template matches the fingerprint image. If the fingerprint template and the fingerprint image do not correspond to the same fingerprint, it is determined that the fingerprint template does not match the fingerprint image.

[0100] In some embodiments, when there are multiple first fingerprint templates, the second fingerprint image is matched with the multiple first fingerprint templates in sequence until a first fingerprint template matching the second fingerprint image is determined, or until the second fingerprint image is matched with the multiple first fingerprint templates; when there are multiple second fingerprint templates, the first fingerprint image is matched with the multiple second fingerprint templates in sequence until a second fingerprint template matching the first fingerprint image is determined, or until the first fingerprint image is matched with the multiple second fingerprint templates.

[0101] Step S502: When the fourth matching result indicates that the fingerprint template matches the fingerprint image, a first preset operation is performed.

[0102] 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, and other operations performed when fingerprint recognition is passed.

[0103] Step S503: When the fourth matching result indicates that the fingerprint template does not match the fingerprint image, a second preset operation is performed.

[0104] The second preset operation is a prompt operation, which is used to prompt unlocking failure, payment failure, login failure or verification failure. In different application scenarios, different contents are displayed after the prompt operation is executed. The second preset operation is different from the first preset operation.

[0105] In the disclosed embodiment, while enriching the fingerprint recognition method and improving the flexibility of fingerprint recognition, the fingerprint recognition process is the fingerprint matching process. The corresponding preset operation is performed according to whether the fingerprint template matches the fingerprint image, and different fingerprint recognition results are provided to the user in different situations.

[0106] Figure 6 is a flowchart of another fingerprint recognition method according to an exemplary embodiment, which is executed by a first device, see Figure 6 , the method comprises the following steps:

[0107] Step S601: Acquire a fingerprint image, where the fingerprint image includes a first fingerprint image acquired by a first device and / or a second fingerprint image acquired by a second device.

[0108] The implementation of step S601 is the same as that of step S201 and will not be described in detail herein.

[0109] Step S602: Based on the matching results between the fingerprint image and the first fingerprint template and the second fingerprint template, a preset operation is performed. The first fingerprint template is recorded based on the first device and stored in the first device. The second fingerprint template is recorded based on the second device and stored in the first device.

[0110] In the disclosed embodiment, both the first device and the second device have recorded fingerprint templates, that is, the first device stores the first fingerprint template and the second fingerprint template. When performing fingerprint recognition, the first device can compare the collected fingerprint image with the first fingerprint template and the second fingerprint template.

[0111] The contents about the fingerprint template and the preset operation are the same as those in step S202 and will not be repeated here.

[0112] The method provided by the embodiment of the present disclosure can perform fingerprint recognition based on the first fingerprint template, the second fingerprint template and the first fingerprint image, or based on the first fingerprint template, the second fingerprint template and the second fingerprint image, or based on the first fingerprint template, the second fingerprint template, the first fingerprint image and the second fingerprint image, thereby enriching the fingerprint recognition methods and not requiring the device for collecting the fingerprint image to be exactly the same as the device for entering the fingerprint template, thereby improving the flexibility of fingerprint recognition and no longer being limited to the first device, making user operation more convenient and improving user experience.

[0113] Figure 7is a flowchart of another fingerprint recognition method according to an exemplary embodiment, which is executed by a first device, see Figure 7 , the method comprises the following steps:

[0114] Step S701, collecting a first fingerprint image.

[0115] Step S702: Match the first fingerprint image with the first fingerprint template to obtain a first matching result.

[0116] The first matching result indicates whether the first fingerprint image matches the first fingerprint template.

[0117] In the disclosed embodiment, compared with the second fingerprint template recorded based on the second device, the first fingerprint image collected by the first device is more likely to be the same as the first fingerprint template recorded based on the first device. Therefore, the first fingerprint image and the first fingerprint template are matched first to improve the matching efficiency.

[0118] Step S703: When the first matching result indicates that the first fingerprint image does not match the first fingerprint template, a preset operation is performed based on the matching result of the first fingerprint image and the second fingerprint template.

[0119] In the case that the first fingerprint image does not match the first fingerprint template, the first fingerprint image and the second fingerprint template are continued to be matched, and in the case that the first fingerprint image and the second fingerprint template match, the first preset operation is performed, and in the case that the first fingerprint image and the second fingerprint template do not match, the second preset operation is performed. The contents of the first preset operation and the second preset operation refer to the contents of the above steps S502 and S503, which will not be repeated here.

[0120] It should be noted that, when the first matching result indicates that the first fingerprint image matches the first fingerprint template, the first preset operation is performed and step S703 is no longer performed.

[0121] In the disclosed embodiment, the first fingerprint image collected by the first device is more likely to be the same as the first fingerprint template recorded based on the first device than the second fingerprint template recorded based on the second device. Therefore, the first fingerprint image and the first fingerprint template are matched first, thereby improving the matching efficiency. Moreover, in the case where the first fingerprint image does not match the first fingerprint template, the first device also stores the second fingerprint template, and can continue to match the first fingerprint image with the second fingerprint template, providing more fingerprint templates, and improving the possibility of successful fingerprint recognition when the fingerprint image is collected once.

[0122] It should be noted that Figure 7The embodiment shown is to first match the first fingerprint image with the first fingerprint template and then match the first fingerprint image with the second fingerprint template. In another embodiment, the first fingerprint image may be first matched with the second fingerprint template and then matched with the first fingerprint template; or, the first fingerprint image may be matched with the first fingerprint template and the second fingerprint template at the same time.

[0123] Figure 8 is a flowchart of another fingerprint recognition method according to an exemplary embodiment, which is executed by a first device, see Figure 8 , the method comprises the following steps:

[0124] Step S801: receiving a second fingerprint image sent by a second device.

[0125] Step S802: Match the second fingerprint image with the second fingerprint template to obtain a second matching result.

[0126] The second matching result indicates whether the first fingerprint image matches the first fingerprint template.

[0127] In the embodiment of the present disclosure, compared with the first fingerprint template recorded based on the first device, the second fingerprint image collected by the second device is more likely to be the same as the second fingerprint template recorded based on the second device. Therefore, the second fingerprint image and the second fingerprint template are matched first to improve the matching efficiency.

[0128] Step S803: When the second matching result indicates that the second fingerprint image does not match the second fingerprint template, a preset operation is performed based on the matching result between the second fingerprint image and the first fingerprint template.

[0129] In the case that the second fingerprint image does not match the second fingerprint template, the second fingerprint image and the first fingerprint template are continued to be matched, and in the case that the second fingerprint image matches the first fingerprint template, the first preset operation is performed, and in the case that the second fingerprint image does not match the first fingerprint template, the second preset operation is performed. The contents of the first preset operation and the second preset operation refer to the contents of the above steps S502 and S503, which will not be repeated here.

[0130] It should be noted that, when the second matching result indicates that the second fingerprint image matches the second fingerprint template, the first preset operation is performed and step S803 is no longer performed.

[0131] In the disclosed embodiment, compared with the first fingerprint template recorded based on the first device, the second fingerprint image collected by the second device is more likely to be the same as the second fingerprint template recorded based on the second device. Therefore, the second fingerprint image and the second fingerprint template are matched first, thereby improving the matching efficiency. Moreover, in the case where the second fingerprint image does not match the second fingerprint template, the first device also stores the first fingerprint template and can continue to match the second fingerprint image with the first fingerprint template, providing more fingerprint templates, and improving the possibility of successful fingerprint recognition when collecting a fingerprint image once.

[0132] It should be noted that Figure 8 The embodiment shown is to first match the second fingerprint image with the second fingerprint template and then match the second fingerprint image with the first fingerprint template. In another embodiment, the second fingerprint image may be first matched with the first fingerprint template and then matched with the second fingerprint template; or, the second fingerprint image may be matched with the first fingerprint template and the second fingerprint template at the same time.

[0133] Above Figure 7 and Figure 8 In the illustrated embodiment, the preset operation is performed based on the matching results of a collected fingerprint image with the first fingerprint template and the second fingerprint template. In another case, the preset operation can be performed based on the matching results of the first fingerprint image, the second fingerprint image, the first fingerprint template and the second fingerprint template.

[0134] Optionally, the first device and the second device can collect the first fingerprint image and the second fingerprint image, and there is no interval between the time point of collecting the first fingerprint image and the time point of collecting the second fingerprint image, or the interval between the time point of collecting the first fingerprint image and the time point of collecting the second fingerprint image is very small, and the first device cannot complete the matching of the first collected fingerprint image with the first fingerprint template and the second fingerprint template within the interval.

[0135] In some embodiments, after acquiring the first fingerprint image and the second fingerprint image, the first fingerprint image is matched with the first fingerprint template and the second fingerprint template, and at the same time, the second fingerprint image is matched with the first fingerprint template and the second fingerprint template, wherein the matching process is as described above. Figure 7 and Figure 8 The embodiment shown is not described in detail here. This parallel matching method can improve the possibility of successful fingerprint recognition while increasing the matching speed and saving matching time.

[0136] In some embodiments, after acquiring the first fingerprint image and the second fingerprint image, the first fingerprint image is first matched with the first fingerprint template and the second fingerprint template. If the first fingerprint image does not match the first fingerprint template and the second fingerprint template, the second fingerprint image is then matched with the first fingerprint template and the second fingerprint template; or, the second fingerprint image is first matched with the first fingerprint template and the second fingerprint template. If the second fingerprint image does not match the first fingerprint template and the second fingerprint template, the first fingerprint image is then matched with the first fingerprint template and the second fingerprint template. The matching process is described in the above Figure 7 and Figure 8 The embodiment shown is not described in detail here. This serial matching method improves the possibility of successful fingerprint recognition and saves matching resources.

[0137] Fig. 9 is a flowchart of another fingerprint recognition method according to an exemplary embodiment, which is executed by the second device, see Fig. 9 , the method comprises the following steps:

[0138] Step S901, obtaining a second fingerprint image collected by a second device;

[0139] Step S902: Match the second fingerprint image and the second fingerprint template to obtain a third matching result.

[0140] The third matching result indicates whether the second fingerprint template matches the second fingerprint image.

[0141] In the disclosed embodiment, since it takes a certain amount of transmission time to send the fingerprint image from the second device to the first device, when the second device collects the second fingerprint image and the second device has entered the second fingerprint template, the second fingerprint image and the second fingerprint template are first matched, which saves the time of sending the fingerprint image and can improve the matching speed.

[0142] Step S903: When the third matching result indicates that the second fingerprint template does not match the second fingerprint image, the second fingerprint image is sent to the first device, so that the first device performs a preset operation based on the matching result between the second fingerprint image and the first fingerprint template.

[0143] When the second fingerprint template does not match the second fingerprint image, the second fingerprint image is sent to the first device, that is, when the second fingerprint template does not match the second fingerprint image, the first device receives the second fingerprint image sent by the second device. After receiving the second fingerprint image, the first device performs a preset operation based on the matching result of the second fingerprint image and the first fingerprint template.

[0144] In some embodiments, when the second fingerprint image matches the first fingerprint template, the first device performs a first preset operation, and when the second fingerprint image does not match the first fingerprint template, the first device performs a second preset operation. The contents of the first preset operation and the second preset operation refer to the contents of the above steps S502 and S503, which will not be repeated here.

[0145] It should be noted that, when the third matching result indicates that the second fingerprint template matches the second fingerprint image, the second device performs the first preset operation.

[0146] In the disclosed embodiment, when the second device collects the second fingerprint image and the second device has entered the second fingerprint template, the second fingerprint image and the second fingerprint template are matched first, which saves the time of sending the fingerprint image and can improve the matching speed. In addition, when the second fingerprint template does not match the second fingerprint image, the second fingerprint image can continue to be sent to the first device, so that the first device continues to match the second fingerprint image and the first fingerprint template, providing more fingerprint templates and improving the possibility of successful fingerprint recognition when collecting a fingerprint image once.

[0147] It should be noted that the first device and the second device have Figure 2-Figure 9 In addition to the fingerprint recognition method shown, there are other fingerprint recognition methods. For example, the first device performs a preset operation based on the matching result of the first fingerprint image and the second fingerprint template. For another example, the second device performs a preset operation based on the matching result of the second fingerprint image and the second fingerprint template.

[0148] Another point that needs to be explained is that the multiple fingerprint recognition methods described in the above embodiments can be configured in the first device and the second device at the same time, that is, the above multiple fingerprint recognition methods can be combined with each other. When the first device needs to perform fingerprint recognition, it can use any of the above fingerprint recognition methods to perform fingerprint recognition based on the collected fingerprint image and the stored fingerprint template.

[0149] In some embodiments of the present disclosure, a fingerprint entry method is provided for entering a fingerprint template. The fingerprint entry process is described below:

[0150] Optionally, the first fingerprint template is entered based on the first device, but the second fingerprint template is not entered based on the second device, or the second fingerprint template is entered based on the second device, but the first fingerprint template is not entered based on the first device, or the first fingerprint template is entered based on the first device and the second fingerprint template is entered based on the second device.

[0151] Optionally, the first device stores the first fingerprint template in a first fingerprint processing chip of the first device; illustratively, the first fingerprint processing chip may be an MCU); illustratively, to ensure confidentiality of fingerprint information, the first fingerprint template is stored in an encryption area corresponding to the first fingerprint processing chip.

[0152] Optionally, the second device stores the second fingerprint template in a second fingerprint processing chip of the second device (for example, the second fingerprint processing chip can be an MCU), and generates a fingerprint template mapping file based on the entered second fingerprint template, the fingerprint template mapping file includes the entered second fingerprint template, and then transmits the fingerprint template mapping file to the first device through encryption, and the first device stores the received fingerprint template mapping file in the storage area corresponding to the fingerprint template.

[0153] Optionally, in the process of using the first device and the second device, the first fingerprint template and / or the second fingerprint template that have been recorded can be updated, for example, the first fingerprint template and / or the second fingerprint template that have been recorded can be deleted, and a new first fingerprint template and / or the second fingerprint template can be added. It should be noted that when the second fingerprint template recorded by the second device is updated, the second fingerprint template stored in the first device needs to be updated synchronously.

[0154] Optionally, in order to improve the security of fingerprint recognition, the first fingerprint template and / or the second fingerprint template may be entered when the first device is bound to the second device.

[0155] Below through Fig.10 The illustrated embodiment illustrates the device binding process and the fingerprint entry process before fingerprint recognition.

[0156] Fig.10 is a flowchart showing a device binding and fingerprint entry process according to an exemplary embodiment, which is performed by a first device and a second device, see Fig.10 , the method comprises the following steps:

[0157] Step S1001: The first device binds the first device to the second device.

[0158] In the disclosed embodiment, the first device is bound to the second device, and the subsequent fingerprint recognition process is performed when the first device is bound to the second device, thereby avoiding security issues caused by the serial use of fingerprint templates between different devices. Among them, one second device can only be bound to one first device, and one first device can be bound to different second devices.

[0159] Optionally, binding the first device with the second device includes: correspondingly storing a device identifier corresponding to the first device and a device identifier corresponding to the second device as binding information; or correspondingly storing an ID (Identity) of a main MCU of the first device and an ID of a main MCU of the second device as binding information; or binding the first device with the second device in other ways.

[0160] In some embodiments, when the first device is connected to the second device for communication, it is determined whether the first device and the second device are connected to each other for the first time. When the first device and the second device are connected to each other for the first time, the first device and the second device are bound. When the first device and the second device are not connected to each other for the first time for communication, it is determined whether the first device and the second device are already bound. When the first device and the second device are not connected to each other for the first time and there is binding information between the first device and the second device, it is determined that the first device is already bound to the second device. The first communication connection means that there is no connection record between the first device and the second device, and the existence of binding information between the first device and the second device means that the binding information indicating the binding of the first device and the second device is stored in both the first device and the second device.

[0161] In some embodiments, when the first device and the second device are not connected for the first time and there is no binding information between the first device and the second device, it is determined that the first device and the second device are not bound. In this case, the first device and the second device can be controlled to bind again, or it is determined that the communication connection between the first device and the second device fails, and the communication connection between the first device and the second device is disconnected.

[0162] In some embodiments, in order to ensure security, when it is necessary to bind the first device with the second device, it is also necessary to determine whether the second device has been bound to other first devices. When the second device is not bound to other first devices, the first device is directly bound to the second device. When the second device is already bound to other first devices, the second device needs to delete the previous information and then bind to the first device. That is, when the first device and the second device are connected for the first communication, the second device receives connection information sent by the second device, the connection information indicates that the second device already has binding information with other devices except the first device; sends deletion information to the second device, the deletion information instructs the second device to delete the binding information with other devices, as well as the fingerprint template entered before connecting with the first device; and binds the first device to the second device.

[0163] Optionally, the first device binds the first device to the second device while sending the deletion information to the second device; or, the first device first sends the deletion information to the second device and then binds the first device to the second device; or, the first device first binds the first device to the second device and then sends the deletion information to the second device; or, the first device first sends the deletion information to the second device and then binds the first device to the second device upon receiving the deleted information returned by the second device, wherein the deleted information indicates that the second device has deleted the binding information with other devices and the fingerprint template entered before connecting with the first device.

[0164] In some embodiments, before binding the first device to the second device, it is necessary to first determine whether the handshake communication between the first device and the second device is normal. If the handshake communication is normal, it means that the first device and the second device can communicate normally, and the first device and the second device are bound at this time. Optionally, after detecting that the handshake communication is normal, the first device and the second device perform self-tests respectively, and after the first device and the second device pass the self-test, the first device and the second device are bound.

[0165] Step S1002: when the first device is bound to the second device, a first fingerprint template is entered based on the first device, and the first fingerprint template is stored.

[0166] The implementation method of recording and storing the first fingerprint template refers to the above fingerprint recording process, which will not be described in detail here.

[0167] Step S1003: when the first device is bound to the second device, a second fingerprint template is entered based on the second device, the second fingerprint template is stored, and the second fingerprint template is sent to the first device.

[0168] In order to ensure the security of fingerprint recognition of the first device, the second device needs to enter and store the second fingerprint template based on the second device after binding with the first device, and send the second fingerprint template to the first device.

[0169] In some embodiments, if a fingerprint template has been recorded before the second device is bound to the first device, then after the first device is bound to the second device, the second device deletes the recorded fingerprint template.

[0170] For other implementations of recording, storing and sending the second fingerprint template, refer to the above fingerprint recording process, which will not be described in detail here.

[0171] It should be noted that, when the second device is in communication connection with the first device, based on the second device recording a new second fingerprint template or deleting the recorded second fingerprint template, while updating the stored second fingerprint template in the second device, the updated second fingerprint template is synchronized to the first device, so that the first device updates the stored second fingerprint template. Optionally, when updating the second fingerprint template, a timestamp can be used as a mark, that is, when the first device stores the second fingerprint template, the time point at which the second fingerprint template is obtained is stored corresponding to the second fingerprint template.

[0172] It should be noted that the embodiment of the present disclosure is described by taking the example of entering the first fingerprint template based on the first device and entering the second fingerprint template based on the second device. In another embodiment, the first fingerprint template can be entered without entering the second fingerprint template, or the second fingerprint template can be entered without entering the first fingerprint template, that is, one of the first fingerprint template and the second fingerprint template can be entered.

[0173] In the disclosed embodiment, the first device is first bound to the second device, and the fingerprint template is recorded when the first device is bound to the second device, thereby avoiding security issues caused by the serial use of fingerprint templates between different devices. That is, by binding the first device to the second device, it is ensured that the fingerprint template recorded by the second device is used for the first device bound thereto, and cannot be used for devices not bound thereto, thereby improving the security of fingerprint recognition of the first device.

[0174] The fingerprint recognition method provided in the embodiment of the present disclosure can be applied to a variety of scenarios, such as fingerprint unlocking scenario, fingerprint payment scenario, fingerprint login scenario, etc. Fig.11 The embodiment shown illustrates the process in a fingerprint unlocking scenario.

[0175] Fig.11 is a flowchart of a fingerprint unlocking process according to an exemplary embodiment. Fig.11 , including the following steps:

[0176] 1. The first device determines whether the first device and the second device are in the first communication connection. If it is not the first communication connection, execute step 2; if it is the first communication connection, execute step 4.

[0177] 2. The first device attempts to reconnect and authenticate the first device and the second device. If the authentication fails, execute step 3; if the authentication passes, execute step 4.

[0178] Among them, attempting to reconnect the authentication is to determine whether the first device and the second device are bound. If the authentication passes, it means that the first device and the second device are bound. If the authentication fails, it is determined that the connection between the first device and the second device fails.

[0179] 3. The connection between the first device and the second device fails.

[0180] 4. The first device binds the first device to the second device.

[0181] 5. The user enters a first fingerprint template based on the first device, and stores the first fingerprint template in the encryption area of ​​the MCU of the first device.

[0182] 6. The user enters the second fingerprint template based on the second device, stores the second fingerprint template in the MCU of the second device, generates a fingerprint template mapping file from the second fingerprint template and sends it to the first device, and the first device stores the second fingerprint template.

[0183] 7. In the case of fingerprint unlocking, if the fingerprint template only includes the first fingerprint template, that is, the user only enters the fingerprint template based on the first device, execute step 8 or 9; if the fingerprint template only includes the second fingerprint template, that is, the user only enters the fingerprint template based on the second device, execute step 11 or 12.

[0184] 8. The first device collects a first fingerprint image, that is, the user unlocks the first device, and then the first device executes step 10.

[0185] 9. The second device collects the second fingerprint image, that is, the user unlocks the second device, and the second device sends the second fingerprint image to the first device through an encrypted channel, and then the first device executes step 10.

[0186] 10. The first device compares the collected fingerprint image with the first fingerprint template. If the fingerprint image and the first fingerprint template fail to match, execute step 14. If the first fingerprint image and the first fingerprint template match successfully, execute step 13.

[0187] The fingerprint image is the first fingerprint image or the second fingerprint image.

[0188] 11. The first device collects the first fingerprint image, that is, the user unlocks the first device, and then the first device compares the first fingerprint image with the second fingerprint template. If the first fingerprint image and the second fingerprint template fail to match, execute step 14. If the first fingerprint image and the second fingerprint template match successfully, execute step 13.

[0189] 12. The second device collects the second fingerprint image, that is, the user unlocks the second device, and then the second device compares the second fingerprint image with the second fingerprint template. If the second fingerprint image and the second fingerprint template fail to match, execute step 14; if the second fingerprint image and the second fingerprint template match successfully, execute step 13.

[0190] 13. Unlock the first device.

[0191] 14. The message "Unlock failed" appears.

[0192] It should be noted that Fig.11 The embodiment shown is only for the case where one of the first fingerprint template and the second fingerprint template is recorded. In another embodiment, when both the first fingerprint template and the second fingerprint template are recorded, the above-mentioned Figure 6-9 The fingerprint unlocking is performed in a similar manner to the embodiment shown, which will not be described in detail here.

[0193] Fig.12 is a block diagram of a fingerprint recognition device according to an exemplary embodiment, which is configured in a first device, see Fig.12 , the device comprises:

[0194] The image acquisition module 1201 is configured to acquire a fingerprint image, where the fingerprint image includes a first fingerprint image acquired by the first device or a second fingerprint image acquired by the second device;

[0195] The matching module 1202 is configured to perform a preset operation based on the matching result of the fingerprint image and the fingerprint template, the fingerprint template is the first fingerprint template or the second fingerprint template, the first fingerprint template is entered based on the first device and stored in the first device, the second fingerprint template is entered based on the second device and stored in the first device, and the device for collecting the fingerprint image is different from the device for entering the fingerprint template.

[0196] In some embodiments, the apparatus further comprises:

[0197] The template acquisition module is configured to input the first fingerprint template based on the first device and store the first fingerprint template when the first device is bound to the second device;

[0198] The template acquisition module is further configured to receive a second fingerprint template sent by the second device and store the second fingerprint template, where the second fingerprint template is entered based on the second device when the second device is bound to the first device.

[0199] In some embodiments, the apparatus further comprises:

[0200] a binding module, configured to bind the first device to the second device when the first device and the second device are connected to each other for the first time; or,

[0201] The binding module is configured to determine that the first device is bound to the second device when the first device and the second device are not in communication connection for the first time and binding information of the first device and the second device exists.

[0202] In some embodiments, the binding module is configured to:

[0203] When the first device and the second device are connected to each other for the first time, receiving connection information sent by the second device, where the connection information indicates that the second device already has binding information with other devices except the first device;

[0204] Sending a deletion message to the second device, the deletion message instructing the second device to delete the binding information with other devices and the fingerprint template that has been entered before connecting with the first device;

[0205] Bind the first device to the second device.

[0206] In some embodiments, the image acquisition module 1201 is configured to:

[0207] In the case that the second device has not recorded the second fingerprint template, receiving the second fingerprint image sent by the second device; or,

[0208] In the case that the second fingerprint image does not match the second fingerprint template, the second fingerprint image sent by the second device is received.

[0209] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0210] Fig.13 is a block diagram of another fingerprint recognition device according to an exemplary embodiment, which is configured in a first device, see Fig.13 , the device comprises:

[0211] The image acquisition module 1301 is configured to acquire a fingerprint image, where the fingerprint image includes a first fingerprint image acquired by the first device or a second fingerprint image acquired by the second device;

[0212] The matching module 1302 is configured to perform a preset operation based on the matching results between the fingerprint image and the first fingerprint template and the second fingerprint template. The first fingerprint template is entered based on the first device and stored in the first device, and the second fingerprint template is entered based on the second device and stored in the first device.

[0213] In some embodiments, the matching module 1302 is configured to:

[0214] The fingerprint image is a first fingerprint image, and the first fingerprint image and the first fingerprint template are matched to obtain a first matching result, the first matching result indicating whether the first fingerprint image matches the first fingerprint template;

[0215] In the case where the first matching result indicates that the first fingerprint image does not match the first fingerprint template, a preset operation is performed based on the matching result of the first fingerprint image and the second fingerprint template.

[0216] In some embodiments, the matching module 1302 is configured to:

[0217] The fingerprint image is a second fingerprint image, and the second fingerprint image is matched with a second fingerprint template to obtain a second matching result, the second matching result indicating whether the second fingerprint image matches the second fingerprint template;

[0218] In the case where the second matching result indicates that the second fingerprint image does not match the second fingerprint template, a preset operation is performed based on the matching result of the second fingerprint image and the first fingerprint template.

[0219] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0220] Fig.14 is a block diagram of another fingerprint recognition device according to an exemplary embodiment, which is configured in the second device, see Fig.14 , the device comprises:

[0221] The image acquisition module 1401 is configured to acquire a second fingerprint image collected by a second device;

[0222] A matching module 1402 is configured to match the second fingerprint image with the second fingerprint template to obtain a third matching result, the second fingerprint template is input based on the second device, and the third matching result indicates whether the second fingerprint template matches the second fingerprint image;

[0223] The image sending module 1403 is configured to send the second fingerprint image to the first device when the third matching result indicates that the second fingerprint template does not match the second fingerprint image, so that the first device performs a preset operation based on the matching result of the second fingerprint image and the first fingerprint template.

[0224] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0225] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the fingerprint recognition method in the above embodiment.

[0226] Fig.15 is a block diagram of an electronic device 1500 according to an exemplary embodiment.

[0227] Reference Fig.15, the electronic device 1500 may include one or more of the following components: a processing component 1502 , a memory 1504 , a power component 1506 , a multimedia component 1508 , an audio component 1510 , an input / output (I / O) interface 1512 , a sensor component 1514 , and a communication component 1516 .

[0228] The processing component 1502 generally controls the overall operation of the electronic device 1500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1502 may include one or more processors 1520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1502 may include one or more modules to facilitate the interaction between the processing component 1502 and other components. For example, the processing component 1502 may include a multimedia module to facilitate the interaction between the multimedia component 1508 and the processing component 1502.

[0229] The memory 1504 is configured to store various types of data to support operations on the electronic device 1500. Examples of such data include instructions for any application or method operating on the electronic device 1500, contact data, phone book data, messages, pictures, videos, etc. The memory 1504 can 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, magnetic disk or optical disk.

[0230] The power supply component 1506 provides power to the various components of the electronic device 1500. The power supply component 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1500.

[0231] The multimedia component 1508 includes a screen that provides an output interface between the electronic device 1500 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 may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1508 includes a front camera and / or a rear camera. When the electronic device 1500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0232] The audio component 1510 is configured to output and / or input audio signals. For example, the audio component 1510 includes a microphone (MIC), and when the electronic device 1500 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1504 or sent via the communication component 1516. In some embodiments, the audio component 1510 also includes a speaker for outputting audio signals.

[0233] I / O interface 1512 provides an interface between processing component 1502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0234] The sensor assembly 1514 includes one or more sensors for providing various aspects of status assessment for the electronic device 1500. For example, the sensor assembly 1514 can detect the open / closed state of the electronic device 1500, the relative positioning of components, such as the display and keypad of the electronic device 1500, and the sensor assembly 1514 can also detect the position change of the electronic device 1500 or a component of the electronic device 1500, the presence or absence of user contact with the electronic device 1500, the orientation or acceleration / deceleration of the electronic device 1500, and the temperature change of the electronic device 1500. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0235] The communication component 1516 is configured to facilitate wired or wireless communication between the electronic device 1500 and other devices. The electronic device 1500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1516 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 1516 also 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.

[0236] In an exemplary embodiment, the electronic device 1500 may 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 to perform the above methods.

[0237] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1504 including instructions, and the instructions can be executed by a processor 1520 of the electronic device 1500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0238] 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, the electronic device can execute the fingerprint recognition method in the above embodiment.

[0239] Those skilled in the art will readily appreciate 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 that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0240] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A fingerprint recognition method, characterized in that: The method comprises: Acquire a fingerprint image, where the fingerprint image includes a first fingerprint image acquired by the first device or a second fingerprint image acquired by the second device; Based on the matching result of the fingerprint image and the fingerprint template, a preset operation is performed, the fingerprint template is a first fingerprint template or a second fingerprint template, the first fingerprint template is entered and stored in the first device based on the first device, the second fingerprint template is entered and stored in the first device based on the second device, and the device for collecting the fingerprint image is different from the device for entering the fingerprint template.

2. The method according to claim 1, characterized in that Before acquiring the fingerprint image, the method further includes: In the case where the first device and the second device are bound, the first fingerprint template is entered based on the first device, and the first fingerprint template is stored; or, The second fingerprint template sent by the second device is received, and the second fingerprint template is stored, where the second fingerprint template is entered based on the second device when the second device is bound to the first device.

3. The method according to claim 2, characterized in that Before entering the first fingerprint template based on the first device, or before receiving the second fingerprint template sent by the second device, the method further includes: When the first device and the second device are connected to each other for the first time, the first device and the second device are bound; or If the first device and the second device are not communicating with each other for the first time and there is binding information between the first device and the second device, it is determined that the first device is bound to the second device.

4. The method according to claim 3, characterized in that The binding of the first device and the second device when the first device and the second device are connected to each other for the first time includes: When the first device and the second device are connected to each other for the first time, receiving connection information sent by the second device, where the connection information indicates that the second device already has binding information with other devices except the first device; Sending deletion information to the second device, wherein the deletion information instructs the second device to delete binding information with other devices and the fingerprint template that has been entered before connecting with the first device; Bind the first device to the second device.

5. The method according to any one of claims 1 to 4, characterized in that: The step of obtaining a fingerprint image comprises: In the case where the second fingerprint template is not recorded in the second device, receiving the second fingerprint image sent by the second device; or, In a case where the second fingerprint image does not match the second fingerprint template, the second fingerprint image sent by the second device is received.

6. A fingerprint recognition method, characterized in that: The method comprises: Acquire a fingerprint image, where the fingerprint image includes a first fingerprint image acquired by the first device and / or a second fingerprint image acquired by the second device; Based on the matching results between the fingerprint image and the first fingerprint template and the second fingerprint template, a preset operation is performed, the first fingerprint template is entered based on the first device and stored in the first device, and the second fingerprint template is entered based on the second device and stored in the first device.

7. The method according to claim 6, characterized in that The performing of a preset operation based on the matching results between the fingerprint image and the first fingerprint template and the second fingerprint template includes: The fingerprint image is the first fingerprint image, and the first fingerprint image and the first fingerprint template are matched to obtain a first matching result, wherein the first matching result indicates whether the first fingerprint image matches the first fingerprint template; When the first matching result indicates that the first fingerprint image does not match the first fingerprint template, the preset operation is performed based on the matching result between the first fingerprint image and the second fingerprint template.

8. The method according to claim 6, characterized in that The performing of a preset operation based on the matching results between the fingerprint image and the first fingerprint template and the second fingerprint template includes: The fingerprint image is the second fingerprint image, and the second fingerprint image and the second fingerprint template are matched to obtain a second matching result, wherein the second matching result indicates whether the second fingerprint image matches the second fingerprint template; In a case where the second matching result indicates that the second fingerprint image does not match the second fingerprint template, a preset operation is performed based on the matching result of the second fingerprint image and the first fingerprint template.

9. A fingerprint recognition method, characterized in that: The method comprises: Acquire a second fingerprint image collected by a second device; Matching the second fingerprint image with a second fingerprint template to obtain a third matching result, where the second fingerprint template is entered based on the second device, and the third matching result indicates whether the second fingerprint template matches the second fingerprint image; When the third matching result indicates that the second fingerprint template does not match the second fingerprint image, the second fingerprint image is sent to the first device so that the first device performs a preset operation based on the matching result between the second fingerprint image and the first fingerprint template.

10. A fingerprint recognition device, characterized in that: The device comprises: An image acquisition module is configured to acquire a fingerprint image, wherein the fingerprint image includes a first fingerprint image acquired by the first device or a second fingerprint image acquired by the second device; The matching module is configured to perform a preset operation based on the matching result between the fingerprint image and the fingerprint template, wherein the fingerprint template is a first fingerprint template or a second fingerprint template, the first fingerprint template is entered and stored in the first device based on the first device, the second fingerprint template is entered and stored in the first device based on the second device, and the device for collecting the fingerprint image is different from the device for entering the fingerprint template.

11. A fingerprint recognition device, characterized in that: The device comprises: An image acquisition module is configured to acquire a fingerprint image, wherein the fingerprint image includes a first fingerprint image acquired by the first device and / or a second fingerprint image acquired by the second device; The matching module is configured to perform a preset operation based on the matching results between the fingerprint image and a first fingerprint template and a second fingerprint template, wherein the first fingerprint template is entered based on the first device and stored in the first device, and the second fingerprint template is entered based on the second device and stored in the first device.

12. A fingerprint recognition device, characterized in that: The device comprises: An image acquisition module is configured to acquire a second fingerprint image collected by a second device; a matching module configured to match the second fingerprint image with a second fingerprint template to obtain a third matching result, wherein the second fingerprint template is input based on the second device, and the third matching result indicates whether the second fingerprint template matches the second fingerprint image; The image sending module is configured to send the second fingerprint image to the first device when the third matching result indicates that the second fingerprint template does not match the second fingerprint image, so that the first device performs a preset operation based on the matching result of the second fingerprint image and the first fingerprint template.

13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 5, or configured to execute the method according to any one of claims 6 to 8, or configured to execute the method according to claim 9.

14. 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 as described in any one of claims 1 to 5, or to execute the method as described in any one of claims 6 to 8, or to execute the method as described in claim 9.