CN112861095A - Fingerprint verification method and device and storage medium - Google Patents

Fingerprint verification method and device and storage medium Download PDF

Info

Publication number
CN112861095A
CN112861095A CN201911187026.0A CN201911187026A CN112861095A CN 112861095 A CN112861095 A CN 112861095A CN 201911187026 A CN201911187026 A CN 201911187026A CN 112861095 A CN112861095 A CN 112861095A
Authority
CN
China
Prior art keywords
image
detected
fingerprint
verification
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911187026.0A
Other languages
Chinese (zh)
Inventor
沙内瓦拉·瑞迪·耶姆
朱虹
克利须那·柴坦尼亚·波拉穆里
柴坦尼亚·凯西拉朱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Oxi Technology Co Ltd
Original Assignee
Shanghai Oxi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Oxi Technology Co Ltd filed Critical Shanghai Oxi Technology Co Ltd
Priority to CN201911187026.0A priority Critical patent/CN112861095A/en
Publication of CN112861095A publication Critical patent/CN112861095A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1365Matching; Classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Collating Specific Patterns (AREA)
  • Image Input (AREA)

Abstract

A fingerprint verification method, a fingerprint verification device and a storage medium are provided, wherein the fingerprint verification method comprises the following steps: when the verification process is started, acquiring and storing a first reference image; when a touch event is detected, acquiring a first image to be detected, wherein the first image to be detected is located in a touch coordinate area; acquiring a second reference image based on the first reference image according to the touch coordinate area; comparing the first to-be-detected image with the second reference image for first fingerprint verification; and if the difference between the first image to be detected and the second reference image does not meet a first preset condition, determining that the first image to be detected does not pass the first fingerprint verification, sending a matching failure notification to a user, and finishing the verification. By comparing the first image to be detected with the second reference image, the terminal can identify whether the first image to be detected comprises the fingerprint currently input by the user, so that the interference of the potential fingerprint on fingerprint verification is avoided, and the safety of user identity authentication is improved.

Description

Fingerprint verification method and device and storage medium
Technical Field
The invention relates to the technical field of biological feature identification, in particular to a fingerprint verification method and device and a storage medium.
Background
With the development of intelligent terminal technology, technologies of fingerprint input and fingerprint identification appear. The fingerprint input is to collect and store the fingerprint of the user in advance, and when the user identifies the fingerprint, the currently input fingerprint is compared with the fingerprint stored in advance to verify the identity of the user.
However, during the process of using the smart terminal, user fingerprints are often left on the screen of the smart terminal, and these left user fingerprints are called Latent fingerprints (Latent fingerprints). In some scenarios, a user may not perform a fingerprint entry operation, but after a verification process of the smart terminal is started, contact between a foreign object such as a coin or a ring and a terminal screen may trigger a flow of mistakenly performing fingerprint acquisition and verification by a fingerprint sensor of the smart terminal. At this time, the potential fingerprint remaining on the terminal screen may be mistakenly recognized as the fingerprint entered by the user by the fingerprint sensor, so as to complete subsequent operations such as unlocking and payment, which may threaten the account security of the user.
Therefore, how to avoid the interference of the potential fingerprint on the fingerprint verification and improve the security of the user identity authentication is a problem to be solved urgently at present.
Disclosure of Invention
In order to improve the security of user identity authentication, an embodiment of the present invention provides a fingerprint verification method, which is applicable to a terminal having a fingerprint identification function, and the fingerprint verification method includes: when the verification process is started, acquiring and storing a first reference image; when a touch event is detected, acquiring a first image to be detected, wherein the first image to be detected is located in a touch coordinate area; acquiring a second reference image based on the first reference image according to the touch coordinate area; comparing the first to-be-detected image with the second reference image for first fingerprint verification; and if the difference between the first image to be detected and the second reference image does not meet a first preset condition, determining that the first image to be detected does not pass the first fingerprint verification, sending a matching failure notification to a user, and finishing the verification.
Optionally, the acquiring the first reference image comprises: and acquiring a full image in an identification area of the terminal through a fingerprint sensor of the terminal.
Optionally, the detecting a touch event includes: a pressure sensor under the terminal screen detects that screen pressure exceeds a first pressure threshold.
Optionally, when the terminal is in a screen-off state, the fingerprint verification method further includes: if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification; comparing the first image to be detected with a fingerprint template input by a user to perform second fingerprint verification; if the difference between the first image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the first image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the first image to be detected does not pass the second fingerprint verification.
Optionally, if the first image to be detected passes the second fingerprint verification, sending a matching success notification to a user; and if the first image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
Optionally, when the terminal is in a screen-on state, the acquiring the first image to be detected includes: and acquiring the first image to be detected before the highlight mode of the terminal screen is opened.
Optionally, after the acquiring the first image to be tested, the fingerprint verification method further includes: opening a highlight mode of the terminal screen; and acquiring a second image to be detected, wherein the second image to be detected is positioned in the touch coordinate area.
Optionally, the fingerprint verification method further includes: if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification; comparing the second image to be detected with a fingerprint template input by a user to perform second fingerprint verification; if the difference between the second image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the second image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the second image to be detected does not pass the second fingerprint verification.
Optionally, if the second image to be detected passes the second fingerprint verification, sending a matching success notification to the user; and if the second image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
The embodiment of the invention also provides a fingerprint verification device, which is suitable for a terminal with a fingerprint identification function, and comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the processor executes the program to realize the following steps: when the verification process is started, acquiring and storing a first reference image; when a touch event is detected, acquiring a first image to be detected, wherein the first image to be detected is located in a touch coordinate area; acquiring a second reference image based on the first reference image according to the touch coordinate area; comparing the first to-be-detected image with the second reference image for first fingerprint verification; and if the difference between the first image to be detected and the second reference image does not meet a first preset condition, determining that the first image to be detected does not pass the first fingerprint verification, sending a matching failure notification to a user, and finishing the verification.
Optionally, the acquiring the first reference image comprises: and acquiring a full image in an identification area of the terminal through a fingerprint sensor of the terminal.
Optionally, the detecting a touch event includes: a pressure sensor under the terminal screen detects that screen pressure exceeds a first pressure threshold.
Optionally, when the terminal is in a screen-off state, the fingerprint verification method further includes: if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification; comparing the first image to be detected with a fingerprint template input by a user to perform second fingerprint verification; if the difference between the first image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the first image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the first image to be detected does not pass the second fingerprint verification.
Optionally, if the first image to be detected passes the second fingerprint verification, sending a matching success notification to a user; and if the first image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
Optionally, when the terminal is in a screen-on state, the acquiring the first image to be detected includes: and acquiring the first image to be detected before the highlight mode of the terminal screen is opened.
Optionally, after the acquiring the first image to be tested, the fingerprint verification method further includes: opening a highlight mode of the terminal screen; and acquiring a second image to be detected, wherein the second image to be detected is positioned in the touch coordinate area.
Optionally, the fingerprint authentication device further comprises: if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification; comparing the second image to be detected with a fingerprint template input by a user to perform second fingerprint verification; if the difference between the second image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the second image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the second image to be detected does not pass the second fingerprint verification.
Optionally, if the second image to be detected passes the second fingerprint verification, sending a matching success notification to the user; and if the second image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
An embodiment of the invention also provides a non-transitory storage medium storing a computer program adapted to implement the steps of the fingerprint verification method when executed by a processor.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following advantages:
in the embodiment of the invention, when the verification process is started, a first reference image is collected and stored; when a touch event is detected, acquiring a first image to be detected, wherein the first image to be detected is located in a touch coordinate area; acquiring a second reference image based on the first reference image according to the touch coordinate area; comparing the first to-be-detected image with the second reference image for first fingerprint verification; and if the difference between the first image to be detected and the second reference image does not meet a first preset condition, determining that the first image to be detected does not pass the first fingerprint verification, sending a matching failure notification to a user, and finishing the verification. By comparing the first image to be detected with the second reference image, the terminal can identify whether the first image to be detected comprises the fingerprint currently input by the user or not, so that the interference of the potential fingerprint residual on the screen on fingerprint verification is avoided, and the safety of user identity authentication is improved.
Further, when the terminal is in a screen opening state, the first image to be detected is collected before a highlight mode of a terminal screen is opened. In the screen-on state, the first image to be detected is used for first fingerprint verification (potential fingerprint detection). Before the highlight mode is opened, the background change of the terminal screen is small, and therefore the accuracy of first fingerprint verification can be improved.
Further, when the terminal is in a screen-on state, after the highlight mode of the terminal screen is turned on, a second image to be detected is collected, and the second image to be detected is located in the touch coordinate area. The second to-be-detected image acquired after the highlight mode is opened contains more fingerprint details and is used for second fingerprint verification, so that the accuracy of the second fingerprint verification can be improved.
Drawings
Fig. 1 is a schematic flowchart of a fingerprint verification method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a fingerprint verification method according to an embodiment of the present invention; and
fig. 3 is a schematic structural diagram of a fingerprint authentication device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. The invention has been described with reference to some specific embodiments, but the invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a fingerprint verification method according to an embodiment of the present invention, where the method is applied to a situation where a terminal is in a screen-off state. The method comprises the following steps.
In S11, when the authentication process is started, a first reference image is acquired and stored.
When the terminal is in the screen closing state, the starting of the verification process may include the terminal entering a screen locking state. That is, when the terminal enters a screen locking state, the terminal collects and stores the first reference image. Since the user often performs a large number of clicking operations on the screen before the authentication process is started, the fingerprint of the user is likely to remain on the terminal screen, that is, the first reference image may include a potential fingerprint.
In some embodiments, said acquiring a first reference image comprises: and acquiring a full image in an identification area of the terminal through a fingerprint sensor of the terminal. The fingerprint sensor may be located below the terminal screen, and when the authentication process is started, the fingerprint sensor collects a full image within its identification area.
In some embodiments, said storing the first reference image comprises: and storing the first reference image in a first storage area.
In S12, it is determined whether a touch event is detected.
In some embodiments, the detecting a touch event comprises: a pressure sensor under the terminal screen detects that screen pressure exceeds a first pressure threshold. In a specific implementation, pressing the terminal screen or pressing the terminal screen by a foreign object such as a coin or a ring causes the screen to detect a touch event.
If the touch event is detected, continuing to execute S13; otherwise, continuing to wait until the touch event is detected.
In S13, a first image to be measured is acquired, the first image to be measured being located within the touch coordinate region.
In some embodiments, after detecting a touch event, the fingerprint sensor collects a first image to be detected according to a position where the touch event occurs, and the first image to be detected is located in the touch coordinate region. For example, if the center coordinate of the occurrence of the touch event is (50, 50), the touch coordinate region may be a rectangular region surrounded by (30, 30) (30, 70), (70, 30) and (70, 70). The shape or size of the touch coordinate area can be adjusted, but the area of the touch coordinate area is not larger than the area of the identification area of the fingerprint sensor.
In S14, a second reference image is acquired based on the first reference image according to the touch coordinate region.
The area of the first reference image is related to the size of the identification area of the fingerprint sensor. The fingerprint sensor collects the first image to be detected only in the touch coordinate area. Therefore, the area of the first reference image is typically larger than the area of the first to-be-detected image. In order to facilitate the detection of the subsequent potential fingerprint, the terminal performs a certain processing on the first reference image. For example, according to the touch coordinate area, a second reference image is acquired at a corresponding position of the first reference image. In some embodiments, the area of the second reference image may be the same as the area of the first to-be-detected image. In some embodiments, the area of the first reference image is greater than or equal to the area of the second reference image. When the identification area of the fingerprint sensor is small, the second reference image is the same area as the first reference image.
In S15, the first image to be measured is compared with the second reference image for a first fingerprint verification.
In some embodiments, the terminal may perform a first fingerprint verification to detect whether the first image under test contains only potential fingerprints. The first fingerprint verification may include: the presence of a potential fingerprint in the second reference image is determined by comparing the first to-be-detected image and the second reference image pixel by pixel, i.e. detecting the similarity of the two.
In S16, it is determined whether the difference between the first to-be-detected image and the second reference image satisfies a first preset condition.
In the specific implementation, the influence of foreign matters such as coins on the image collected by the screen is small, and the influence of the user pressing the screen on the image collected by the user is large. Therefore, if the first to-be-detected image is slightly different from the second reference image, it indicates that the touch event is caused by a foreign object touch, otherwise, the touch event is caused by a user pressing a fingerprint normally.
In some embodiments, the difference between the first to-be-detected image and the second reference image satisfying a first preset condition may be: the difference between the first to-be-detected image and the second reference image is larger than a first difference threshold value. If the first preset condition is met, determining that the first image to be detected passes first fingerprint verification; and if the difference between the first image to be detected and the second reference image is smaller than a first difference threshold value, determining that the first image to be detected does not pass the first fingerprint verification. Wherein the first difference threshold may be 20%, that is, if the first to-be-detected image and the second reference image are different by less than 20%, it is determined that the first to-be-detected image fails the first fingerprint verification. And if the difference between the first image to be detected and the second reference image is more than 20%, determining that the first image to be detected passes the first fingerprint verification. The first discrimination threshold is settable.
In some embodiments, if the first image to be tested fails the first fingerprint verification, S17 is executed; if the first to-be-detected image passes the first fingerprint verification, S18 is executed.
By comparing the first image to be detected with the second reference image, the terminal can identify whether only a potential fingerprint exists on the first image to be detected, so that interference of the potential fingerprint on fingerprint verification is avoided, and the safety of user identity authentication is improved.
In S17, a matching failure notification is issued to the user and the verification is ended.
In some embodiments, the terminal may issue the matching failure notification to the user through various manners such as screen display, voice prompt, and the like, which is not limited by the invention.
In S18, the first image to be tested is compared with the user-entered fingerprint template for a second fingerprint verification.
And after judging that the first image to be detected comprises the fingerprint really input by the user, judging whether the difference between the first image to be detected and the fingerprint template input by the user meets a second preset condition. That is, it is determined whether the fingerprint entered by the user this time is the same as the fingerprint template entered before. In specific implementation, a user can input a fingerprint of the user in advance to serve as a fingerprint template, and whether the user operates himself can be determined by comparing the fingerprint input by the user in the verification process with the fingerprint template, so that the operation safety is improved.
In S19, it is determined whether the difference between the first image to be detected and the fingerprint template entered by the user satisfies a second preset condition.
In some embodiments, the difference between the first image to be detected and the fingerprint template entered by the user and meeting the second preset condition may be: the difference between the first image to be detected and the fingerprint template input by the user is smaller than a second difference threshold value. If the first preset condition is met, determining that the first image to be detected passes second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user is greater than a second difference threshold value, determining that the first image to be detected does not pass second fingerprint verification. In a specific implementation, the second discrimination threshold may be 10%. The second discrimination threshold is settable.
In some embodiments, if the first to-be-detected image fails to pass the second fingerprint verification, S20 is executed; if the first image to be detected passes the second fingerprint verification, S21 is executed.
In S20, a matching failure notification is issued to the user, and the authentication is ended or the user is prompted to input the fingerprint again.
In S21, a matching success notification is issued to the user.
Referring to fig. 2, fig. 2 is a flowchart illustrating a fingerprint verification method according to an embodiment of the present invention. The method is suitable for the situation that the terminal is in the screen opening state. The method comprises the following steps.
In S31, when the authentication process is started, a first reference image is acquired and stored.
When the terminal is in a screen-off state, the starting of the verification process may include the terminal entering a payment interface or unlocking an interface. That is, when the terminal enters the payment interface or the unlocking interface, the terminal collects and stores the first reference image. The first reference image may include a potential fingerprint therein.
In some embodiments, said acquiring a first reference image comprises: and acquiring a full image in an identification area of the terminal through a fingerprint sensor of the terminal. The fingerprint sensor may be located below the terminal screen, and when the authentication process is started, the fingerprint sensor collects a full image within its identification area.
In some embodiments, said storing the first reference image comprises: and storing the first reference image in a second storage area. That is, the terminal may store the first reference images acquired in the screen-on state and the screen-off state in different storage areas, respectively.
In S32, it is determined whether a touch event is detected.
In some embodiments, the detecting a touch event comprises: a pressure sensor under the terminal screen detects that screen pressure exceeds a first pressure threshold. In a specific implementation, pressing the terminal screen or pressing the terminal screen by a foreign object such as a coin or a ring causes the screen to detect a touch event.
If the touch event is detected, continuing to execute S33; otherwise, continuing to wait until the touch event is detected.
In S33, before the highlight mode of the terminal screen is turned on, the first image to be detected is acquired, and the first image to be detected is located in the touch coordinate area.
In some embodiments, after detecting a touch event, the fingerprint sensor collects a first image to be detected according to a position where the touch event occurs, and the first image to be detected is located in the touch coordinate region. The first image to be tested is used for first fingerprint verification.
In the screen-on state, the first image to be detected is used for first fingerprint verification (potential fingerprint detection). Before the highlight mode is opened, the background change of the terminal screen is small, and therefore the accuracy of first fingerprint verification can be improved.
In S34, after the highlight mode of the terminal screen is turned on, a second image to be detected is acquired, where the second image to be detected is located in the touch coordinate region.
In some embodiments, after acquiring the first image to be tested, the fingerprint verification method further comprises: opening a highlight mode of the terminal screen; and acquiring a second image to be detected, wherein the second image to be detected is positioned in the touch coordinate area.
In a specific implementation, the terminal acquires the second image to be detected at the same position as the first image to be detected. The second image to be detected is acquired after the highlight mode is opened, so that more fingerprint details are contained, and the second image to be detected is used for subsequent second fingerprint verification so as to improve the accuracy of the second fingerprint verification.
In S35, a second reference image is acquired based on the first reference image according to the touch coordinate region.
The area of the first reference image is related to the size of the identification area of the fingerprint sensor. The fingerprint sensor collects the first image to be detected only in the touch coordinate area. Therefore, the area of the first reference image is typically larger than the area of the first to-be-detected image. In order to facilitate the detection of the subsequent potential fingerprint, the terminal performs a certain processing on the first reference image. For example, according to the touch coordinate area, a second reference image is acquired at a corresponding position of the first reference image. In some embodiments, the area of the second reference image may be the same as the area of the first to-be-detected image. In some embodiments, the area of the first reference image is greater than or equal to the area of the second reference image. When the identification area of the fingerprint sensor is small, the second reference image is the same area as the first reference image.
In S36, the first image to be measured is compared with the second reference image for a first fingerprint verification.
In some embodiments, the terminal may perform a first fingerprint verification to detect whether the first image under test contains only potential fingerprints. The first fingerprint verification may include: the presence of a potential fingerprint in the second reference image is determined by comparing the first to-be-detected image and the second reference image pixel by pixel, i.e. detecting the similarity of the two.
In S37, it is determined whether the difference between the first to-be-detected image and the second reference image satisfies a first preset condition.
In the specific implementation, the influence of foreign matters such as coins on the image collected by the screen is small, and the influence of the user pressing the screen on the image collected by the user is large. Therefore, if the first to-be-detected image is slightly different from the second reference image, it indicates that the touch event is caused by a foreign object touch, otherwise, the touch event is caused by a user pressing a fingerprint normally.
In some embodiments, the difference between the first to-be-detected image and the second reference image satisfying a first preset condition may be: the difference between the first to-be-detected image and the second reference image is larger than a first difference threshold value. If the first preset condition is met, determining that the first image to be detected passes first fingerprint verification; and if the difference between the first image to be detected and the second reference image is smaller than a first difference threshold value, determining that the first image to be detected does not pass the first fingerprint verification. Wherein the first difference threshold may be 20%, that is, if the first to-be-detected image and the second reference image are different by less than 20%, it is determined that the first to-be-detected image fails the first fingerprint verification. And if the difference between the first image to be detected and the second reference image is more than 20%, determining that the first image to be detected passes the first fingerprint verification. The first discrimination threshold is settable.
In some embodiments, if the first image to be tested fails the first fingerprint verification, S38 is executed; if the first to-be-detected image passes the first fingerprint verification, S39 is executed.
By comparing the first image to be detected with the second reference image, the terminal can identify whether only a potential fingerprint exists on the first image to be detected, so that interference of the potential fingerprint on fingerprint verification is avoided, and the safety of user identity authentication is improved.
In S38, a matching failure notification is issued to the user and the verification is ended.
In S39, the second image under test is compared with the fingerprint template entered by the user for second fingerprint verification.
After the first image to be detected is judged to include the fingerprint really input by the user, the first image to be detected and the second image to be detected are short in acquisition time interval, and therefore the first image to be detected also includes the fingerprint really input by the user. And then, performing second fingerprint verification on the difference between the second image to be detected and the fingerprint template input by the user. That is, it is determined whether the fingerprint entered by the user this time is the same as the fingerprint template entered before.
In S40, it is determined whether a difference between the second image to be detected and the fingerprint template entered by the user satisfies a second preset condition.
In some embodiments, the difference between the second image to be detected and the fingerprint template entered by the user and meeting the second preset condition may be: and the difference between the second image to be detected and the fingerprint template input by the user is smaller than a second difference threshold value. If the second preset condition is met, determining that the second image to be detected passes second fingerprint verification; and if the difference between the second image to be detected and the fingerprint template input by the user is greater than a second difference threshold value, determining that the second image to be detected does not pass second fingerprint verification. In a specific implementation, the second discrimination threshold may be 10%. The second discrimination threshold is settable.
In some embodiments, if the first to-be-detected image fails to pass the second fingerprint verification, S41 is executed; if the first image to be detected passes the second fingerprint verification, S42 is executed.
In S41, a matching failure notification is issued to the user, and the authentication is ended or the user is prompted to input the fingerprint again.
In S42, a matching success notification is issued to the user.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a fingerprint authentication device according to an embodiment of the present invention. The system comprises a memory 11 and a processor 12, wherein the memory 11 stores a computer program which can run on the processor 12, and the processor 12 executes the program to realize the following steps: when the verification process is started, acquiring and storing a first reference image; when a touch event is detected, acquiring a first image to be detected, wherein the first image to be detected is located in a touch coordinate area; acquiring a second reference image based on the first reference image according to the touch coordinate area; comparing the first to-be-detected image with the second reference image for first fingerprint verification; and if the difference between the first image to be detected and the second reference image does not meet a first preset condition, determining that the first image to be detected does not pass the first fingerprint verification, sending a matching failure notification to a user, and finishing the verification.
In some embodiments, said acquiring a first reference image comprises: and acquiring a full image in an identification area of the terminal through a fingerprint sensor of the terminal.
In some embodiments, the detecting a touch event comprises: a pressure sensor under the terminal screen detects that screen pressure exceeds a first pressure threshold.
In some embodiments, when the terminal is in a screen-off state, the fingerprint verification method further includes: if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification; comparing the first image to be detected with a fingerprint template input by a user to perform second fingerprint verification; if the difference between the first image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the first image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the first image to be detected does not pass the second fingerprint verification.
In some embodiments, if the first image to be detected passes the verification of the second fingerprint, a notification of successful matching is sent to a user; and if the first image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
In some embodiments, when the terminal is in a screen-on state, the acquiring the first image to be detected includes: and acquiring the first image to be detected before the highlight mode of the terminal screen is opened.
In some embodiments, after the acquiring the first image to be tested, the fingerprint verification method further comprises: opening a highlight mode of the terminal screen; and acquiring a second image to be detected, wherein the second image to be detected is positioned in the touch coordinate area.
In some embodiments, the fingerprint authentication device further comprises: if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification; comparing the second image to be detected with a fingerprint template input by a user to perform second fingerprint verification; if the difference between the second image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the second image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the second image to be detected does not pass the second fingerprint verification.
In some embodiments, if the second image to be detected passes the second fingerprint verification, a matching success notification is sent to the user; and if the second image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
An embodiment of the invention also provides a non-transitory storage medium storing a computer program adapted to implement the steps of the fingerprint verification method when executed by a processor.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer-readable storage medium, and the non-transitory storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (19)

1. A fingerprint verification method is suitable for a terminal with a fingerprint identification function, and is characterized by comprising the following steps:
when the verification process is started, acquiring and storing a first reference image;
when a touch event is detected, acquiring a first image to be detected, wherein the first image to be detected is located in a touch coordinate area;
acquiring a second reference image based on the first reference image according to the touch coordinate area;
comparing the first to-be-detected image with the second reference image for first fingerprint verification; and
and if the difference between the first image to be detected and the second reference image does not meet a first preset condition, determining that the first image to be detected does not pass the first fingerprint verification, sending a matching failure notification to a user, and finishing the verification.
2. The fingerprint authentication method of claim 1, wherein the acquiring the first reference image comprises:
and acquiring a full image in an identification area of the terminal through a fingerprint sensor of the terminal.
3. The fingerprint verification method of claim 1, wherein the detecting a touch event comprises:
a pressure sensor under the terminal screen detects that screen pressure exceeds a first pressure threshold.
4. The fingerprint authentication method according to claim 1, wherein when the terminal is in a screen-off state, the fingerprint authentication method further comprises:
if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification;
comparing the first image to be detected with a fingerprint template input by a user to perform second fingerprint verification; and
if the difference between the first image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the first image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the first image to be detected does not pass the second fingerprint verification.
5. The fingerprint authentication method according to claim 4, wherein if the first image to be detected passes the second fingerprint authentication, a notification of successful matching is sent to a user; and if the first image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
6. The fingerprint authentication method according to claim 1, wherein when the terminal is in a screen-on state, the acquiring the first image to be tested comprises:
and acquiring the first image to be detected before the highlight mode of the terminal screen is opened.
7. The fingerprint authentication method according to claim 6, wherein after said acquiring the first image to be detected, the fingerprint authentication method further comprises:
opening a highlight mode of the terminal screen; and
and acquiring a second image to be detected, wherein the second image to be detected is positioned in the touch coordinate area.
8. The fingerprint authentication method according to claim 7, further comprising:
if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification;
comparing the second image to be detected with a fingerprint template input by a user to perform second fingerprint verification; and
if the difference between the second image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the second image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the second image to be detected does not pass the second fingerprint verification.
9. The fingerprint authentication method according to claim 8, wherein if the second image to be tested passes the second fingerprint authentication, a matching success notification is sent to a user; and if the second image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
10. A fingerprint authentication device, suitable for a terminal with fingerprint identification function, comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and the processor executes the program to implement the following steps:
when the verification process is started, acquiring and storing a first reference image;
when a touch event is detected, acquiring a first image to be detected, wherein the first image to be detected is located in a touch coordinate area;
acquiring a second reference image based on the first reference image according to the touch coordinate area;
comparing the first to-be-detected image with the second reference image for first fingerprint verification; and
and if the difference between the first image to be detected and the second reference image does not meet a first preset condition, determining that the first image to be detected does not pass the first fingerprint verification, sending a matching failure notification to a user, and finishing the verification.
11. The fingerprint authentication device of claim 10, wherein the acquiring the first reference image comprises:
and acquiring a full image in an identification area of the terminal through a fingerprint sensor of the terminal.
12. The fingerprint authentication device of claim 10, wherein the detecting of the touch event comprises:
a pressure sensor under the terminal screen detects that screen pressure exceeds a first pressure threshold.
13. The fingerprint authentication device according to claim 10, wherein when the terminal is in a screen-off state, the fingerprint authentication method further comprises:
if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification;
comparing the first image to be detected with a fingerprint template input by a user to perform second fingerprint verification; and
if the difference between the first image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the first image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the first image to be detected does not pass the second fingerprint verification.
14. The fingerprint authentication device according to claim 13, wherein if the first image to be detected passes the second fingerprint authentication, a notification of successful matching is sent to a user; and if the first image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
15. The fingerprint authentication device according to claim 10, wherein said acquiring the first image to be tested when the terminal is in the screen-on state comprises:
and acquiring the first image to be detected before the highlight mode of the terminal screen is opened.
16. The fingerprint authentication device according to claim 15, wherein after said acquiring the first image to be tested, the fingerprint authentication method further comprises:
opening a highlight mode of the terminal screen; and
and acquiring a second image to be detected, wherein the second image to be detected is positioned in the touch coordinate area.
17. The fingerprint authentication device of claim 16, further comprising:
if the difference between the first to-be-detected image and the second reference image meets the first preset condition, determining that the first to-be-detected image passes the first fingerprint verification;
comparing the second image to be detected with a fingerprint template input by a user to perform second fingerprint verification; and
if the difference between the second image to be detected and the fingerprint template input by the user meets a second preset condition, determining that the second image to be detected passes the second fingerprint verification; and if the difference between the first image to be detected and the fingerprint template input by the user does not meet the second preset condition, determining that the second image to be detected does not pass the second fingerprint verification.
18. The fingerprint authentication device according to claim 17, wherein if the second image to be tested passes the second fingerprint authentication, a matching success notification is sent to the user; and if the second image to be detected does not pass the second fingerprint verification, sending a matching failure notification to the user, and finishing the verification or prompting the user to input the fingerprint again.
19. A non-transitory storage medium, characterized in that the storage medium stores a computer program which, when being executed by a processor, is adapted to carry out the steps of the fingerprint verification method according to any one of claims 1 to 9.
CN201911187026.0A 2019-11-27 2019-11-27 Fingerprint verification method and device and storage medium Pending CN112861095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911187026.0A CN112861095A (en) 2019-11-27 2019-11-27 Fingerprint verification method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911187026.0A CN112861095A (en) 2019-11-27 2019-11-27 Fingerprint verification method and device and storage medium

Publications (1)

Publication Number Publication Date
CN112861095A true CN112861095A (en) 2021-05-28

Family

ID=75985847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911187026.0A Pending CN112861095A (en) 2019-11-27 2019-11-27 Fingerprint verification method and device and storage medium

Country Status (1)

Country Link
CN (1) CN112861095A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020050713A1 (en) * 2000-04-28 2002-05-02 Jerker Bergenek Check for fingerprints
CN1573796A (en) * 2003-06-13 2005-02-02 索尼株式会社 Image verification system and image verification method
KR101468381B1 (en) * 2013-12-12 2014-12-03 주식회사 슈프리마 Method and apparatus for detecting fingerprint image
CN105205442A (en) * 2015-08-07 2015-12-30 北京天诚盛业科技有限公司 Fingerprint acquisition method and device
CN107657238A (en) * 2017-09-29 2018-02-02 联想(北京)有限公司 A kind of fingerprint collecting method and electronic equipment
CN108288050A (en) * 2018-02-13 2018-07-17 北京小米移动软件有限公司 Update method, apparatus, the electronic equipment of fingerprint template
CN109324863A (en) * 2018-10-23 2019-02-12 北京小米移动软件有限公司 The method, apparatus and computer readable storage medium of fingerprint recognition

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020050713A1 (en) * 2000-04-28 2002-05-02 Jerker Bergenek Check for fingerprints
CN1573796A (en) * 2003-06-13 2005-02-02 索尼株式会社 Image verification system and image verification method
KR101468381B1 (en) * 2013-12-12 2014-12-03 주식회사 슈프리마 Method and apparatus for detecting fingerprint image
CN105205442A (en) * 2015-08-07 2015-12-30 北京天诚盛业科技有限公司 Fingerprint acquisition method and device
CN107657238A (en) * 2017-09-29 2018-02-02 联想(北京)有限公司 A kind of fingerprint collecting method and electronic equipment
CN108288050A (en) * 2018-02-13 2018-07-17 北京小米移动软件有限公司 Update method, apparatus, the electronic equipment of fingerprint template
CN109324863A (en) * 2018-10-23 2019-02-12 北京小米移动软件有限公司 The method, apparatus and computer readable storage medium of fingerprint recognition

Similar Documents

Publication Publication Date Title
KR102455633B1 (en) Liveness test method and apparatus
WO2016165172A1 (en) Terminal system management method and device
US9213886B2 (en) Method and device for notification of facial recognition environment, and computer-readable recording medium for executing method
CN108664364B (en) Terminal testing method and device
JP6667802B2 (en) Segment block based handwritten signature authentication system and method
CN108920921B (en) Sustainable identity authentication method for smart phone sensitive APP
EP3388963B1 (en) Segment-based handwritten signature authentication system and method
CN106888204B (en) Implicit identity authentication method based on natural interaction
US11967176B2 (en) Facial recognition method, facial recognition system, and electronic device
CN111241873A (en) Image reproduction detection method, training method of model thereof, payment method and payment device
CN107408208B (en) Method and fingerprint sensing system for analyzing a biometric of a user
KR100825689B1 (en) Facial Disguise Discrimination method
CN113496183B (en) Fingerprint matching method and device, electronic equipment and readable storage medium
CN112699811A (en) Living body detection method, apparatus, device, storage medium, and program product
CN112861095A (en) Fingerprint verification method and device and storage medium
CN112733611A (en) Legacy article detection method and device, electronic equipment and storage medium
CN111382404B (en) Fingerprint false touch prevention method, system, terminal equipment and readable storage medium
WO2017185672A1 (en) Method and device for controlling fingerprint sensor, and electronic device
US10733407B2 (en) Apparatus and method for obtaining an image for user authentication using pressure sensing
CN108985035B (en) Control method and device for user operation authority, storage medium and electronic equipment
CN108140120A (en) Biological characteristic detection method and identification system
CN113033257B (en) Fingerprint identification method, fingerprint identification device, electronic equipment and readable storage medium
CN113127836A (en) Method, apparatus, and non-transitory computer-readable storage medium for fingerprint authentication
WO2019181140A1 (en) Image processing device, image processing method, recording media, and image processing system
CN105404803B (en) Operation responding device and operation response method for terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination