This application claims the priority benefit of China application serial no. 202211368648.5 filed on Nov. 3, 2022. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a fingerprint recognition technology, and in particular relates to a terminal device and a cloud comparison method.
With the advancement of technology, fingerprint recognition has been widely used in the daily life of modern people. Based on various application scenarios of fingerprint recognition, various fingerprint recognition solutions are continuously developed. At present, the fingerprint recognition system may be roughly divided into a solution for performing fingerprint matching on a main processor of an electronic device and a solution for performing fingerprint matching on a fingerprint sensor chip (also known as match on chip, MOC). However, no matter in the solution of performing fingerprint matching on the main processor or the solution of performing fingerprint matching on the fingerprint sensor chip, the storage space for storing fingerprint template data is relatively limited. Especially, when the fingerprint recognition system needs to recognize a large number of fingerprints, it needs to store a large amount of fingerprint template data. Therefore, the storage space for storing fingerprint template data may be exhausted, and the additional fingerprint template data of other users or other fingers may not be stored, which also leads to relatively inflexible and limited practical application of the solution for performing fingerprint matching on a fingerprint sensor chip.
The disclosure relates to a terminal device and a cloud comparison method, which may be used to solve the aforementioned technical problems.
An embodiment of the disclosure provides a terminal device, which includes a storage device, a fingerprint sensor, and a fingerprint matching module. The storage device records a fingerprint template database, and the fingerprint sensor senses fingerprint data to be verified. The fingerprint matching module is coupled to the storage device and the fingerprint sensor, and compares the fingerprint data to be verified with the fingerprint template data in the fingerprint template database. In response to the fact that the fingerprint data to be verified does not match the fingerprint template data in the fingerprint template database, the terminal device uploads the fingerprint data to be verified to a server device via a network, and receives a verification result of the fingerprint data to be verified from the server device.
An embodiment of the disclosure provides a cloud comparison method, and the method includes the following operation. Fingerprint data to be verified is obtained via a fingerprint recognition device, in which the fingerprint recognition device includes a fingerprint template database. The fingerprint recognition device compares the fingerprint data to be verified with fingerprint template data in the fingerprint template database. In response to the fact that the fingerprint data to be verified does not match the fingerprint template data in the fingerprint template database, the fingerprint data to be verified is uploaded to a server device via a network. A verification result of the fingerprint data to be verified is received from the server device.
Based on the above, in the embodiment of the disclosure, when the fingerprint data to be verified does not match the fingerprint template data in the fingerprint template database, the terminal device may upload the fingerprint data to be verified to the server device. Therefore, the server device may compare the fingerprint data to be verified with the fingerprint template data in the fingerprint template database of the server device, and return the verification result to the terminal device. Based on this, since the server device may assist in verifying the qualification of the fingerprint data to be verified, not only the storage space of the fingerprint template database may be saved, but also the application flexibility of the fingerprint recognition device may be greatly improved.
References of the exemplary embodiments of the disclosure are to be made in detail. Examples of the exemplary embodiments are illustrated in the drawings. If applicable, the same reference numerals in the drawings and the descriptions indicate the same or similar parts.
In some embodiments, the fingerprint recognition device 110 is a chip matching sensor, and the chip matching sensor is a system-on-a-chip integrated with a fingerprint sensing function and a fingerprint comparison function. In other embodiments, the fingerprint recognition device 110 may be formed by multiple chips having different functions.
The electronic device 120 has a networking function, and may be connected to the server device 130 via a wired network or a wireless network. The wired network includes, but are not limited to, a direct cable connection, Ethernet, etc. The wireless network is, for example, 4G/5G and other mobile communication networks (cellular networks), WiFi, Zigbee, and other wireless local area networks, but not limited thereto.
In some embodiments, the fingerprint recognition device 110 and the electronic device 120 may be integrated on a substrate. For example, the fingerprint recognition device 110 and the electronic device 120 may be integrated into a single electronic device, such as a mobile phone, a tablet computer, a notebook computer, a smart TV, an Internet of Things (IoT) device, etc. In some other embodiments, the fingerprint recognition device 110 may be coupled to the electronic device 120 through a transmission line. For example, the fingerprint recognition device 110 may be a fingerprint reader, and the electronic device 120 may be an access control system device having a network connection function. The fingerprint recognition device 110 may be connected to the electronic device 120 via a data transmission interface, such as a universal serial bus (USB) interface or an SPI interface.
On the other hand, the electronic device 120 includes a processor 121, a storage device 122, and a networking device 133. The processor 121 may execute the software modules, instructions or program codes in the storage device 122 to realize various operations of the electronic device 120 in various embodiments of the disclosure. In some embodiments, the processor 121 of the electronic device 120 may execute a software development kit (SDK) stored in the storage device 122. The networking device 133 may be connected to a wired network or a wireless network, such as a network card or a communication chip, etc.
In addition, the fingerprint recognition device 110 may communicate with the electronic device 120 via a data transmission interface L1. That is to say, the fingerprint recognition device 110 includes an input-output interface circuit (not shown) supporting the data transmission interface L1, and the electronic device 120 includes an input-output interface circuit (not shown) supporting the data transmission interface L1.
In step S301, the fingerprint data to be verified is obtained via the fingerprint recognition device 110. Specifically, the fingerprint sensor 112 senses the fingerprint data to be verified, so that the fingerprint matching module 111 obtains the fingerprint data to be verified.
In step S302, the fingerprint data to be verified is compared with the fingerprint template data in the fingerprint template database DB1 via the fingerprint recognition device 110. Specifically, the fingerprint template database DB1 may record fingerprint template data of multiple registered fingerprints, and the fingerprint matching module 111 compares the fingerprint data to be verified with the fingerprint template data in the fingerprint template database DB1. It should be noted that the maximum amount of data stored in the fingerprint template database DB1 is limited by the hardware of the storage device 113. For example, the fingerprint template database DB1 may record fingerprint template data of 10 registered fingerprints from 10 different people at least.
In step S303, in response to the fact that the fingerprint data to be verified does not match the fingerprint template data in the fingerprint template database DB1, the terminal device U1 uploads the fingerprint data to be verified to the server device 130 via the network. In some embodiments, the fingerprint data to be verified and the comparison failed result are transmitted to the electronic device 120 via the fingerprint recognition device 110. That is to say, when the fingerprint matching module 111 determines that the comparison of the fingerprint data to be verified fails, the fingerprint recognition device 110 transmits the fingerprint data to be verified and the comparison failed result to the electronic device 120 via the data transmission interface L1. Afterwards, the fingerprint data to be verified is uploaded to the server device 130 via the network by the electronic device 120. That is, in response to receiving the comparison failed result, the electronic device 120 uploads the fingerprint data to be verified to the server device 130 via the network. The server device 130 also verifies the fingerprint data to be verified.
Then, in step S304, the terminal device U1 receives the verification result of the fingerprint data to be verified from the server device 130. In some embodiments, the verification result of the fingerprint data to be verified is received from the server device 130 via the electronic device 120. It may be seen that the server device 130 may assist the terminal device U1 to verify the qualification of the fingerprint data to be verified. Therefore, even if the fingerprint template database DB1 does not have fingerprint template data corresponding to the fingerprint data to be verified, the terminal device U1 may still obtain the comparison successful result of the fingerprint data to be verified from the server device 130.
In step S503, the fingerprint recognition device 110 returns the registration packet to the SDK 121. That is to say, the fingerprint recognition device 110 transmits the registration packet including the fingerprint template data to the electronic device 120. In step S504, the SDK 121 returns the registration packet to the electronic device 120. Afterwards, as shown in
In some embodiments, the registration packet may include template unique identifier (template UID), fingerprint template data, template created time, template invalid time, template use times, template use limited times, and other information about registered fingerprints.
In step S704, in response to the fact that the fingerprint data to be verified matches the fingerprint template data in the template database DB3 (the comparison is successful), the server device 130 returns a comparison successful result and a registration packet including the fingerprint template data that is successfully compared to the electronic device 120. Wherein, the fingerprint data to be verified and the fingerprint template data in the registration packet correspond to the same fingerprint. In response to receiving a comparison successful result of the fingerprint data to be verified and the registration packet from the server device 130, the electronic device 120 transmits the registration packet to the fingerprint recognition device 110. Then, in step S705, in response to receiving the comparison successful result, the electronic device 120 transmits the registration packet provided by the server device 130 to the SDK 121. In step S706, the SDK 121 returns the registration packet to the fingerprint recognition device 110. Afterwards, the fingerprint recognition device 110 writes the fingerprint template data in the registration packet into the fingerprint template database DB1.
In some embodiments, when the fingerprint recognition device 110 and the electronic device 120 transmit the registration packet and the comparison packet, the fingerprint recognition device 110 may encrypt and decrypt the transmission data according to the key of the key database DB2. Correspondingly, when the server device 130 and the electronic device 120 transmit the registration packet and the comparison packet, the server device 130 may encrypt and decrypt the transmission data according to the key of the key database DB4.
More specifically, in some embodiments, the fingerprint recognition device 110 may use the key in the key database DB2 to encrypt the fingerprint data to be verified, and transmit the encrypted fingerprint data to be verified to the electronic device 120. Correspondingly, the electronic device 120 uploads the encrypted fingerprint data to be verified to the server device 130, and the server device 130 may decrypt the encrypted fingerprint data to be verified according to the key of the key database DB4. In addition, in some embodiments, after completing the fingerprint registration procedure, the fingerprint recognition device 110 encrypts the fingerprint template data with the key in the key database DB2, and transmits the encrypted fingerprint template data to the electronic device 120. Correspondingly, the electronic device 120 uploads the encrypted fingerprint template data to the server device 130, and the server device 130 decrypts the encrypted fingerprint template data according to the key of the key database DB4. In this way, exposure of the fingerprint template data or the fingerprint data to be verified during transmission may be avoided, and malicious software attacks on the electronic device 120 may also be resisted.
In some embodiments, the fingerprint recognition device 110 may delete the fingerprint template data in the fingerprint template database DB1 according to the usage status of the fingerprint template data. In detail, since the storage space of the fingerprint template database DB1 of the fingerprint recognition device 110 is limited, the fingerprint recognition device 110 may manage the fingerprint template data in the fingerprint template database DB1, so as to delete some fingerprint template data in a timely manner. That is to say, the fingerprint recognition device 110 may delete the fingerprint template data in the fingerprint template database DB1 that meets the specific deletion condition, so that new fingerprint template data may be stored in the fingerprint template database DB1. Therefore, when the fingerprint recognition device 110 receives the registration packet generated by the server device 130, the fingerprint template database DB1 has enough storage space to record the fingerprint template data in the registration packet. In this way, the fingerprint template data in the fingerprint template database DB1 may be updated in a timely manner with the help of the server device 130, so that the application of the fingerprint recognition device 110 may be more flexible and unlimited. In addition, it is more ensured that the storage space of the fingerprint template database DB1 of the fingerprint recognition device 110 may record the fingerprint template data that the user really needs.
In some embodiments, in response to the storage status of the fingerprint template database DB1 meeting a specific condition, the fingerprint recognition device 110 deletes the fingerprint template data with the lowest comparison successful times in the fingerprint template database. That is to say, the fingerprint recognition device 110 may accumulate the comparison successful times of the fingerprint template data of each registered fingerprint, and record the comparison successful times of the fingerprint template data of each registered fingerprint in the fingerprint template database DB1. When the fingerprint recognition device 110 is to write new fingerprint template data but the storage space of the fingerprint template database DB1 is insufficient, the fingerprint recognition device 110 may compare the comparison successful times of all the fingerprint template data in the fingerprint template database DB1, and delete the fingerprint template data with the lowest comparison successful times in the fingerprint template database DB1.
In some embodiments, the aforementioned specific condition may include that the amount of fingerprint template data recorded in the fingerprint template database DB1 is greater than or equal to a preset value. For example, when the fingerprint template database DB1 has recorded fingerprint template data of 10 registered fingerprints, the fingerprint recognition device 110 may determine that the storage status of the fingerprint template database DB1 meets the specific condition. Alternatively, in some embodiments, the specific condition may include that the available storage space of the fingerprint template database DB1 is less than a threshold value. For example, when the available storage space of the fingerprint template database DB1 is less than M KB, the fingerprint recognition device 110 may determine that the storage status of the fingerprint template database DB1 meets the specific condition.
In some embodiments, the fingerprint recognition device 110 calculates the cumulative time length between the template created time of the fingerprint template data and the current time. In response to the fact that the cumulative time length meets the template invalid time, the fingerprint recognition device 110 deletes the fingerprint template data in the fingerprint template database DB1. Specifically, when the cumulative time length between the template created time and the current time of a certain fingerprint template data in the fingerprint template database DB1 is equal to the template invalid time (e.g., 7 days), the fingerprint template data may be deleted from the fingerprint template database DB1.
In some embodiments, the fingerprint recognition device 110 determines whether the comparison successful times of the fingerprint template data is equal to the template use limited times. In response to the fact that the comparison successful times of the fingerprint template data is equal to the template use limited times, the fingerprint recognition device 110 deletes the fingerprint template data in the fingerprint template database DB1. Specifically, when the comparison successful times of a piece of fingerprint template data in the fingerprint template database DB1 is equal to the template use limited times (e.g., 5 times), the fingerprint template data may be deleted from the fingerprint template database DB1.
To sum up, in the embodiment of the disclosure, the fingerprint recognition device may upload the fingerprint data to be verified to the server device through the electronic device for verification and comparison. Based on this, since the server device may assist in verifying the qualification of the fingerprint data to be verified, the storage space of the fingerprint template database in the fingerprint recognition device may be saved. In addition, the fingerprint recognition device may write the fingerprint template data provided by the server device into the fingerprint template database of the fingerprint recognition device, and the fingerprint recognition device may delete the fingerprint template data in the fingerprint template database according to the usage status of the fingerprint template data. Based on this, under the condition that the storage space of the fingerprint template database is limited, the fingerprint template database of the fingerprint recognition device may be dynamically updated through the server device and may meet various application requirements.
Finally, it should be noted that the foregoing embodiments are only used to illustrate the technical solutions of the disclosure, but not to limit the disclosure; although the disclosure has been described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that the technical solutions described in the foregoing embodiments may still be modified, or parts or all of the technical features thereof may be equivalently replaced; however, these modifications or substitutions do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202211368648.5 | Nov 2022 | CN | national |