Method and device for fingerprint verification

The present disclosure relates to a method for fingerprint verification. The method includes performing a first fingerprint verification to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed. If the first verification result is a failed verification, the method further includes performing a second fingerprint verification to obtain a second verification result in a process during which the physical key is raised, and using the second verification result as a final verification result of fingerprint verification.

CROSS-REFERENCE TO RELATED APPLICATION

The present application is based upon and claims priority to PCT International Application No. PCT/CN2016/087275, filed Jun. 27, 2016, the entire contents of which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure generally relates to the field of computer technology, and more particularly, to a method and device for fingerprint verification.

BACKGROUND

A fingerprint verification component may be provided in a physical key on a terminal, and fingerprint verification may be performed with respect to a user while the user is pressing the physical key.

Prior to the fingerprint verification, the terminal collects a fingerprint of a finger through the fingerprint verification component, and the collected fingerprint is used as a reference fingerprint. During a process of the fingerprint verification, the terminal collects a fingerprint to match with the user through the fingerprint verification component, and detects whether the fingerprint to be matched is the same as the reference fingerprint. If the fingerprint to be matched is the same as the reference fingerprint, the fingerprint verification is determined to be successful.

SUMMARY

According to a first aspect of embodiments of the present disclosure, there is provided a method for fingerprint verification. The method includes performing a first fingerprint verification to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed. If the first verification result is a failed verification, the method further includes performing a second fingerprint verification to obtain a second verification result in a process during which the physical key is raised, and using the second verification result as a final verification result of fingerprint verification.

According to a second aspect of embodiments of the present disclosure, there is provided a device for fingerprint verification. The device includes a processor and a memory for storing instructions executable by the processor. The processor is configured to perform a first fingerprint verification to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed. If the first verification result is a failed verification, the processor is further configured to perform a second fingerprint verification to obtain a second verification result in a process during which the physical key is raised, and to use the second verification result as a final verification result of fingerprint verification.

According to a third aspect of embodiments of present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon instructions that, when executed by a processor of a device, cause the device to perform a method for fingerprint verification. The method includes performing a first fingerprint verification to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed. If the first verification result is a failed verification, the method further includes performing a second fingerprint verification to obtain a second verification result in a process during which the physical key is raised, and using the second verification result as a final verification result of fingerprint verification.

DETAILED DESCRIPTION

FIG. 1is a flowchart of a method100for fingerprint verification according to an exemplary embodiment. The method100may be applied in a terminal that includes a physical key provided with a fingerprint verification component. The fingerprint verification component may be implemented with software, or hardware, a combination of software and hardware. As shown inFIG. 1, the method100may include the following steps.

In step101, a first fingerprint verification is performed to obtain a first verification result in a process during which the physical key provided with the fingerprint verification component is pressed.

In step102, if the first verification result indicates a failed verification, a second fingerprint verification is performed to obtain a second verification result in a process during which the physical key is raised.

In step103, the second verification result is used as a final verification result of fingerprint verification.

In the method100for fingerprint verification provided by the present disclosure, a first fingerprint verification is performed to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed. If the first verification result indicates a failed verification, a second fingerprint verification is performed to obtain a second verification result in a process during which the physical key is raised. And the second verification result is used as a final verification result of fingerprint verification. In this way, two fingerprint verifications may be performed when a user performs one pressing operation on the physical key. Thus, failure of fingerprint verification may be eliminated. Such failure of fingerprint verification may result from, for example. fingerprint deformation due to an excessive force during a pressing process, or a displacement between a finger and the fingerprint verification component. Accordingly, a success rate of fingerprint verification may be improved.

FIG. 2is a flowchart of a method200for fingerprint verification according to another exemplary embodiment. The method200may be applied in a terminal that includes a physical key provided with a fingerprint verification component. The fingerprint verification component may be implemented with software, or hardware, a combination of software and hardware.

In the exemplary embodiment, the method200for fingerprint verification provided by the present embodiment is performed by the fingerprint verification component provided in the physical key. The fingerprint verification component may include, at least, a fingerprint sensor and a processing chip. The fingerprint sensor is configured to collect a fingerprint of a finger operating on the physical key (which is a fingerprint to be verified, i.e., a to-be-verified fingerprint), and to send the to-be-verified fingerprint to the processing chip. The processing chip is configured to read a pre-stored reference fingerprint, and to compare the to-be-verified fingerprint with the reference fingerprint to obtain a verification result.

The method200for fingerprint verification provided by the present disclosure may be applied in different fingerprint verification scenarios. The verification scenarios may include, for example, a verification scenario when unlocking a screen of the terminal, a verification scenario when making a payment, a verification scenario when reading encrypted information, a verification scenario when downloading an application, a verification scenario when deleting information, and the like. Regardless of the verification scenario, when the method200for fingerprint verification is implemented, the fingerprint verification component may be called by a third-party program, to perform fingerprint verification and to return a verification result to the third-party program.

Referring toFIG. 2, in step201, a call instruction sent by a third-party program is received, and step202is triggered according to the call instruction.

For example, when an operation triggered by a user is received by the third-party program and a fingerprint verification is determined to be performed with respect to the user according to a preset setting, the third-party program sends the call instruction to the fingerprint verification component provided in the physical key. The call instruction is configured to instruct the fingerprint verification component to perform a verification on a fingerprint of a finger operating on the physical key, that is, to perform the step202.

FIG. 3is a diagram of a timing sequence of fingerprint verification when the method200is performed, according to an exemplary embodiment. In the exemplary embodiment, the third-party program sends the call instruction to the fingerprint verification component at a time t1.

In step202, a first fingerprint verification is performed to obtain a first verification result in a process during which the physical key provided with the fingerprint verification component is pressed.

FIG. 4is a flow chart of a method400for performing the first fingerprint verification, according to an exemplary embodiment. The method400may be used in the step202.

In step2021, a first interrupt signal is received, the first interrupt signal being generated when the finger of the user contacts the physical key provided with the fingerprint verification component.

When the finger of the user contacts the physical key, the fingerprint verification component receives the first interrupt signal. InFIG. 3, when a time at which the finger of the user contacts the physical key is t2, the fingerprint verification component receives the first interrupt signal at the time t2.

In step2022, a first fingerprint to be verified (i.e., a first to-be-verified fingerprint) of the finger is collected according to the first interrupt signal.

In step2023, the first to-be-verified fingerprint is compared with a preset reference fingerprint to obtain the first verification result.

In general, a time period taken by the fingerprint verification component for performing the first fingerprint verification is relatively short, and the first fingerprint verification can be done before the user completes pressing the physical key. InFIG. 3, when a time at which the user completes pressing the physical key is t3, the fingerprint verification component can obtain the first verification result before the time t3.

Referring back toFIG. 2, in step203, if the first verification result is a failed verification, a second fingerprint verification is performed to obtain a second verification result in a process during which the physical key is raised.

In the exemplary embodiment, when the user presses the physical key, if an excessive force is applied, a surface of the finger may be deformed, which may result in that the first fingerprint collected by the fingerprint verification component is inaccurate. Also, a displacement may be generated between the finger and the physical key during the process of pressing the physical key and prior to raising the physical key, which may also result in that the first fingerprint collected by the fingerprint verification component is inaccurate. In both cases, when the fingerprint verification component compares the first to-be-verified fingerprint with the reference fingerprint, the first verification result obtained by the fingerprint verification component may still be a failed verification even if the finger pressing the physical key is the finger from which the reference fingerprint is collected. In order to overcome the problem associated with the failed verification due to inaccurate collection of the first to-be-verified fingerprint, the fingerprint verification component may perform a second fingerprint verification in the process in which the physical key is raised, to improve the success rate of fingerprint verification.

FIG. 5is a flow chart of a method500for performing the second fingerprint verification, according to an exemplary embodiment. The method500may be used in the step203.

In step2031, a second interrupt signal is received, the second interrupt signal being generated when the finger of the user releases the physical key.

In the exemplary embodiment, when the finger of the user releases the physical key, the fingerprint verification component receives the second interrupt signal. InFIG. 3, when a time at which the finger of the user releases the physical key is t4, the physical key is raised, and the fingerprint verification component receives the second interrupt signal at the time t4.

In step2032, the second fingerprint to be verified (i.e., the second to-be-verified fingerprint) of the finger is collected according to the second interrupt signal.

In step2033, the second to-be-verified fingerprint is compared with the preset reference fingerprint to obtain the second verification result.

In general, a time taken by the fingerprint verification component for performing the second fingerprint verification is relatively short, and the second fingerprint verification can be performed before the physical key returns to an initial state prior to being pressed. InFIG. 3, when a time at which the physical key returns to the initial state prior to being pressed is t5, the fingerprint verification component can obtain the second verification result before the time t5.

Referring back toFIG. 2, in step204, the second verification result is used as a final verification result of fingerprint verification.

Regardless of whether the second verification result is a successful verification or a failed verification, the fingerprint verification component may use the second verification result as the final verification result.

In step205, if the first verification result is a successful verification, the first verification result is used as the final verification result of fingerprint verification.

When the first verification result is a successful verification, there is no need to perform the second fingerprint verification which may waste computing resources. Therefore, the fingerprint verification component can directly use the first verification result as the final verification result.

In step206, the final verification result is sent to the third-party program.

InFIG. 3, the fingerprint verification component sends the final verification result to the third-party program before the time t5. And the third-party program determines whether the verification is successful in accordance with the final verification result.

In some embodiments, when the final verification result is a failed verification, the third-party program may circle back to perform the step201until the final verification result is a successful verification, or until a number of calling the fingerprint verification component exceeds a preset threshold.

In the method200for fingerprint verification provided by the present disclosure, a first fingerprint verification is performed to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed. If the first verification result is a failed verification, a second fingerprint verification is performed to obtain a second verification result in a process during which the physical key is raised. The second verification result is used as a final verification result of fingerprint verification. In this way, two fingerprint verifications may be performed when a user performs one pressing operation on the physical key. Thus, failure of fingerprint verification may be reduced or eliminated. Such failure of fingerprint verification may result from, for example, fingerprint deformation due to an excessive force during the pressing process or a displacement between the finger and the fingerprint verification component. Accordingly, the success rate of fingerprint verification may be improved.

When the first verification result is a successful verification, the first verification result is used as the final verification result of fingerprint verification. At this time, the second fingerprint verification is no longer performed, to save computing resources that may be consumed in performing the second fingerprint verification after the first fingerprint verification is successful.

FIG. 6is a block diagram of an apparatus600for fingerprint verification according to an exemplary embodiment. The apparatus600may be applied in a terminal that includes a physical key provided with a fingerprint verification component. As shown inFIG. 6, the apparatus600may include a first verification module610, a second verification module620, and a first determination module630.

The first verification module610is configured to perform a first fingerprint verification to obtain a first verification result in a process during which the physical key provided with the fingerprint verification component is pressed.

The second verification module620is configured to, if the first verification result obtained by the first verification module610is a failed verification, perform a second fingerprint verification to obtain a second verification result in a process during which the physical key is raised.

The first determination module630is configured to use the second verification result obtained by the second verification module620as a final verification result of fingerprint verification.

In the apparatus600for fingerprint verification provided by the present disclosure, a first fingerprint verification is performed to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed. If the first verification result is a failed verification, a second fingerprint verification is performed to obtain a second verification result in a process during which the physical key is raised. The second verification result is used as a final verification result of fingerprint verification. In this way, two fingerprint verifications may be performed when a user performs one pressing operation on the physical key. Thus, failure of fingerprint verification may be reduced or eliminated. Such failure of fingerprint verification may result from, for example, fingerprint deformation due to an excessive force during the pressing process or a displacement between the finger and the fingerprint verification component. Accordingly, the success rate of fingerprint verification may be improved.

FIG. 7is a block diagram of an apparatus700for fingerprint verification according to another exemplary embodiment. The apparatus700may be applied in a terminal that includes a physical key provided with a fingerprint verification component. As shown inFIG. 7, the apparatus700may include a first verification module710, a second verification module720, and a first determination module730.

The first verification module710is configured to perform a first fingerprint verification to obtain a first verification result in a process during which the physical key provided with the fingerprint verification component is pressed.

The second verification module720is configured to, if the first verification result obtained by the first verification module710is a failed verification, perform a second fingerprint verification to obtain a second verification result in a process during which the physical key is raised.

The first determination module730is configured to use the second verification result obtained by the second verification module720as a final verification result of fingerprint verification.

In some embodiments, the apparatus700may further include a second determination module740.

The second determination module740is configured to, if the first verification result obtained by the first verification module710is a successful verification, use the first verification result as the final verification result of fingerprint verification.

In some embodiments, the first verification module710is further configured to receive a first interrupt signal generated when a finger of a user contacts the physical key provided with the fingerprint verification component, to collect a first fingerprint to be verified (i.e., the first to-be-verified fingerprint) of the finger according to the first interrupt signal, and to compare the first to-be-verified fingerprint with a preset reference fingerprint to obtain the first verification result.

In some embodiments, the second verification module720is further configured to receive a second interrupt signal generated when the finger of the user releases the physical key, to collect a second fingerprint to be verified (i.e., the second to-be-verified fingerprint) of the finger according to the second interrupt signal, and to compare the second fingerprint with the preset reference fingerprint to obtain the second verification result.

In some embodiments, the apparatus700may further include an instruction receiving module750and a result sending module760.

The instruction receiving module750is configured to receive a call instruction sent by a third-party program, and to trigger the first verification module710according to the call instruction. The first verification module710performs the first fingerprint verification to obtain the first verification result in the process during which the physical key provided with the fingerprint verification component is pressed.

The result sending module760is configured to send the final verification result to the third-party program.

In the apparatus700for fingerprint verification provided by the present disclosure, a first fingerprint verification is performed to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed. If the first verification result is a failed verification, a second fingerprint verification is performed to obtain a second verification result in a process during which the physical key is raised. The second verification result is used as a final verification result of fingerprint verification. In this way, two fingerprint verifications may be performed when a user performs one pressing operation on the physical key. Thus, failure of fingerprint verification may be reduced or eliminated. Such failure of fingerprint verification may result from, for example, the fingerprint deformation due to an excessive force during the pressing process or a displacement between the finger and the fingerprint verification component. Accordingly, the success rate of fingerprint verification may be improved.

When the first verification result is a successful verification, the first verification result is used as the final verification result of the present fingerprint verification. At this time, the second fingerprint verification is no longer performed to reduce or eliminate the waste of computing resources that may be consumed in performing the second fingerprint verification after the first fingerprint verification is successful.

With respect to the apparatuses in the above exemplary embodiments, the specific manners for performing operations of each individual module therein have been described in detail in the exemplary embodiments regarding the methods, which will not be elaborated herein.

An exemplary terminal may also be provided for fingerprint verification which is able to implement the methods for fingerprint verification provided by the present disclosure. The exemplary terminal may include a processor and a memory for storing instructions executable by the processor.

The processor may be configured to perform a first fingerprint verification to obtain a first verification result in a process during which a physical key provided with a fingerprint verification component is pressed, (if the first verification result is a failed verification) to perform a second fingerprint verification to obtain a second verification result in a process during which the physical key is raised, and to use the second verification result as a final verification result of fingerprint verification.

FIG. 8is a block diagram of a device, e.g., a terminal800, for fingerprint verification according to an exemplary embodiment. For example, the terminal800may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet, a medical device, exercise equipment, a personal digital assistant, and the like.

Referring toFIG. 8, the terminal800may include one or more of the following components: a processing component802, a storage component804, a power component806, a multimedia component808, an audio component810, an input/output (I/O) interface812, a sensor component814, and a communication component816.

The processing component802typically controls overall operations of the terminal800, such as the operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component802may include one or more processors818to execute instructions to perform all or part of the steps in the above described methods. Moreover, the processing component802may include one or more modules which facilitate interactions between the processing component802and other components. For instance, the processing component802may include a multimedia module to facilitate interactions between the multimedia component808and the processing component802.

The storage component804is configured to store various types of data to support the operation of the terminal800. Examples of such data include instructions for any applications or methods operated on the terminal800, contact data, phonebook data, messages, pictures, video, etc. The storage component804may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.

The power component806provides power to various components of the device800. The power component806may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power in the terminal800.

The audio component810is configured to output and/or input audio signals. For example, the audio component810may include a microphone (“MIC”) configured to receive an external audio signal when the terminal800is in an operation mode, such as a calling mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the storage component804or transmitted via the communication component816. In some embodiments, the audio component810may further include a speaker to output audio signals.

The I/O interface812provides an interface between the processing component802and peripheral interface modules, such as a keyboard, a click wheel, buttons, and the like. The buttons may include, but are not limited to, a home button, a volume button, a starting button, and a locking button.

The sensor component814may include one or more sensors to provide status assessments of various aspects of the terminal800. For instance, the sensor component814may detect an open/closed status of the terminal800, relative positioning of components, e.g., the display and the keypad, of the terminal800, a change in position of the terminal800or a component of the terminal800, a presence or absence of user contact with the terminal800, an orientation or an acceleration/deceleration of the terminal800, and a change in temperature of the terminal800. The sensor component814may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component814may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component814may also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component816is configured to facilitate wired or wireless communications between the terminal800and other devices. The terminal800can access a wireless network based on a communication standard, such as WiFi, 2G or 3G or a combination thereof. In one exemplary embodiment, the communication component816receives a broadcast signal from an external broadcast management system via a broadcast channel or broadcast associated information. In one exemplary embodiment, the communication component816further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.

In exemplary embodiments, a non-transitory computer-readable storage medium having instructions stored thereon is also provided, such as the storage component804having stored thereon instructions executable by the processor818in the terminal800, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.