CN109324863B - Fingerprint identification method and device and computer readable storage medium - Google Patents

Fingerprint identification method and device and computer readable storage medium Download PDF

Info

Publication number
CN109324863B
CN109324863B CN201811240802.4A CN201811240802A CN109324863B CN 109324863 B CN109324863 B CN 109324863B CN 201811240802 A CN201811240802 A CN 201811240802A CN 109324863 B CN109324863 B CN 109324863B
Authority
CN
China
Prior art keywords
fingerprint
fingerprint identification
module
identification area
interface
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.)
Active
Application number
CN201811240802.4A
Other languages
Chinese (zh)
Other versions
CN109324863A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811240802.4A priority Critical patent/CN109324863B/en
Publication of CN109324863A publication Critical patent/CN109324863A/en
Application granted granted Critical
Publication of CN109324863B publication Critical patent/CN109324863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/13Sensors therefor
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04804Transparency, e.g. transparent or translucent windows

Abstract

The disclosure relates to a fingerprint identification method, a fingerprint identification device and a computer readable storage medium, and relates to the technical field of terminals. The method comprises the following steps: and receiving a calling instruction sent by a third-party application through a callback interface between the terminal and the third-party application, and starting the in-plane fingerprint module according to the calling instruction. The fingerprint identification area is obtained, the fingerprint icon is displayed in the fingerprint identification area of the current interface, namely the fingerprint icon can accurately prompt the position of the fingerprint identification area to a user, so that when the fingerprint identification area is detected to be pressed by a finger, the fingerprint information of the finger in the fingerprint identification area can be obtained, and the fingerprint identification is carried out according to the fingerprint information. Therefore, even if the third-party application is not compatible with the in-plane fingerprint module, the user can visually recognize the fingerprint identification area in the terminal screen through the fingerprint icon displayed in the real fingerprint identification area, and then fingerprint identification is realized.

Description

Fingerprint identification method and device and computer readable storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for fingerprint identification, and a computer-readable storage medium.
Background
The appearance of the in-plane fingerprint module further increases the screen occupation ratio of the terminal, and the in-plane fingerprint module is a module which is arranged in the terminal and is used for fingerprint identification in a terminal screen for a user. The in-plane fingerprint module in the terminal can acquire the fingerprint information of a user through the fingerprint icon displayed in the screen so as to realize the fingerprint identification function. At present, not only does a screen locking program of a terminal need to call an in-plane fingerprint module for fingerprint identification, but also a third-party application of the terminal needs to call the in-plane fingerprint module for fingerprint identification, so that identity authentication is performed on a user.
Because the in-plane fingerprint module is arranged in the terminal screen, a user cannot visually recognize which area of the terminal screen is the fingerprint identification area of the in-plane fingerprint module. Therefore, when the in-plane fingerprint module is called, a third-party application typically displays a fingerprint icon on the current interface, and prompts the user to press the fingerprint icon. However, since the third-party application is not compatible with the in-plane fingerprint module, the third-party application cannot acquire the fingerprint identification area. Therefore, the third-party application usually displays the fingerprint icon at any position in the current interface, for example, displays a fingerprint icon at an intermediate position of the current interface, and then implements the fingerprint identification function through the fingerprint icon.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a computer-readable storage medium for fingerprint recognition.
In a first aspect, a method of fingerprint identification is provided, the method including:
receiving a calling instruction sent by a third-party application through a callback interface between the third-party application and the terminal;
according to the calling instruction, an in-plane fingerprint module integrated on a terminal screen is started;
acquiring a fingerprint identification area of the in-plane fingerprint module in the terminal screen, and displaying a fingerprint icon at the fingerprint identification area of the current interface, wherein the fingerprint icon is used for prompting a finger of a user to press in the fingerprint identification area;
when the fingerprint identification area is detected to be pressed by the finger, fingerprint information of the finger in the fingerprint identification area is acquired, and fingerprint identification is carried out according to the fingerprint information.
In the embodiment of the disclosure, a call-back interface between the terminal and a third-party application receives a call instruction sent by the third-party application, and then the in-plane fingerprint module integrated on the terminal screen is started according to the call instruction. The fingerprint identification area of the in-plane fingerprint module in the terminal screen is obtained, and the fingerprint icon is displayed in the fingerprint identification area of the current interface, namely the fingerprint icon can accurately prompt the position of the fingerprint identification area to a user, so that the finger of the user can be pressed in the fingerprint identification area. And then when detecting that this fingerprint identification region is pressed by the finger, acquire the fingerprint information of the finger in this fingerprint identification region to carry out fingerprint identification according to this fingerprint information. That is, the in-plane fingerprint module is started through a callback interface between the in-plane fingerprint module and the third-party application of the terminal, and the fingerprint icon is displayed in the real fingerprint identification area. Therefore, even if the third-party application is not compatible with the in-plane fingerprint module, the user can visually recognize the fingerprint identification area of the in-plane fingerprint module in the terminal screen through the fingerprint icon displayed in the real fingerprint identification area, and then fingerprint identification is realized.
Optionally, before displaying the fingerprint icon at the fingerprint identification area of the current interface, the method further includes:
and when specific information sent by the in-plane fingerprint module is received, determining that the in-plane fingerprint module is successfully started, and executing the step of displaying the fingerprint icon at the fingerprint identification area of the current interface, wherein the specific information is used for indicating that the in-plane fingerprint module is successfully started.
In the embodiment of the disclosure, since the opening of the in-plane fingerprint module integrated on the terminal screen according to the call instruction may be successful or may fail, it can be determined through specific information that the in-plane fingerprint module has been successfully opened, and then the subsequent step of displaying the fingerprint icon at the fingerprint identification area is performed.
Optionally, the acquiring the in-plane fingerprint module is before a fingerprint identification area in the terminal screen, and the method further includes:
determining whether the calling instruction is used for unlocking the terminal screen;
and when the calling instruction is not used for unlocking the terminal screen, executing the step of acquiring the fingerprint identification area of the in-plane fingerprint module in the terminal screen.
In the embodiment of the disclosure, the function of unlocking the terminal screen is generally a system function of the terminal, that is, the fingerprint identification area can be accurately obtained usually when the terminal screen is unlocked. Therefore, before the fingerprint identification area is acquired, whether the calling instruction is used for unlocking the terminal screen is determined, if not, the calling instruction is an instruction required for fingerprint identification in the third-party application, and then the subsequent step of acquiring the fingerprint identification area is executed. Therefore, the fingerprint identification is carried out by determining whether the calling instruction is used for unlocking the terminal screen, and the fingerprint identification efficiency is improved.
Optionally, the displaying a fingerprint icon at the fingerprint identification area of the current interface includes:
superposing a layer of screen locking interface on the current interface;
displaying the fingerprint icon at the fingerprint identification area of the lock screen interface.
Optionally, before displaying the fingerprint icon at the fingerprint identification area of the lock screen interface, the method further comprises:
and transparently processing the screen locking interface, wherein the transparently processed screen locking interface is used for displaying prompt information of the third party application through the screen locking interface.
In the embodiment of the disclosure, the screen locking interface on the layer superposed on the current interface is transparently processed, that is, areas except the fingerprint icon displayed in the fingerprint identification area of the screen locking interface are all transparent areas, so that the user can be accurately prompted to press the finger in the fingerprint identification area through the fingerprint icon, and the user is not influenced to watch the prompt information of the third-party application.
Optionally, the method further comprises:
detecting the fingerprint identification area;
when a pressing event that the fingerprint identification area is pressed is detected, acquiring an event type and a pressure value of the pressing event;
when the event type is a designated type and the pressure value exceeds a preset threshold value, determining that the fingerprint identification area is pressed by a finger.
In the embodiment of the disclosure, by detecting and judging the event type and the pressure value of the pressing event of the fingerprint identification area pressed, whether the fingerprint identification area is pressed by a finger can be determined, and the probability of the fingerprint identification area being touched by mistake is reduced.
Optionally, the acquiring fingerprint information of the finger in the fingerprint identification area includes:
setting the backlight of the terminal screen to be in a high-brightness mode;
and acquiring an image of the finger in the highlight mode, and taking the image of the finger as fingerprint information of the finger.
In the embodiment of the disclosure, the image of the finger is collected in the highlight mode, so that the accuracy of finger image collection is improved, and the accuracy of fingerprint identification through fingerprint information is further improved.
In a second aspect, an apparatus for fingerprint recognition is provided, the apparatus comprising:
the receiving module is used for receiving a calling instruction sent by a third-party application through a callback interface between the receiving module and the third-party application of the terminal;
the starting module is used for starting the in-plane fingerprint module integrated on the terminal screen according to the calling instruction;
the display module is used for acquiring a fingerprint identification area of the in-plane fingerprint module in the terminal screen and displaying a fingerprint icon at the fingerprint identification area of the current interface, wherein the fingerprint icon is used for prompting a finger of a user to press in the fingerprint identification area;
and the identification module is used for acquiring the fingerprint information of the finger in the fingerprint identification area when the fingerprint identification area is detected to be pressed by the finger, and carrying out fingerprint identification according to the fingerprint information.
In the embodiment of the disclosure, a call-back interface between the terminal and a third-party application receives a call instruction sent by the third-party application, and then the in-plane fingerprint module integrated on the terminal screen is started according to the call instruction. The fingerprint identification area of the in-plane fingerprint module in the terminal screen is obtained, and the fingerprint icon is displayed in the fingerprint identification area of the current interface, namely the fingerprint icon can accurately prompt the position of the fingerprint identification area to a user, so that the finger of the user can be pressed in the fingerprint identification area. And then when detecting that this fingerprint identification region is pressed by the finger, acquire the fingerprint information of the finger in this fingerprint identification region to carry out fingerprint identification according to this fingerprint information. That is, the in-plane fingerprint module is started through a callback interface between the in-plane fingerprint module and the third-party application of the terminal, and the fingerprint icon is displayed in the real fingerprint identification area. Therefore, even if the third-party application is not compatible with the in-plane fingerprint module, the user can visually recognize the fingerprint identification area of the in-plane fingerprint module in the terminal screen through the fingerprint icon displayed in the real fingerprint identification area, and then fingerprint identification is realized.
Optionally, the apparatus further comprises:
the first determining module is configured to determine that the in-plane fingerprint module has been successfully started when specific information sent by the in-plane fingerprint module is received, and trigger the display module to display a fingerprint icon at the fingerprint identification area of the current interface, where the specific information is used to indicate that the in-plane fingerprint module is successfully started.
Optionally, the apparatus further comprises:
the second determining module is used for determining whether the calling instruction is used for unlocking the terminal screen;
and the triggering module is used for triggering the display module to acquire the fingerprint identification area of the in-plane fingerprint module in the terminal screen when the calling instruction is not used for unlocking the terminal screen.
Optionally, the display module comprises:
the superposition submodule is used for superposing a layer of screen locking interface on the current interface;
a display sub-module for displaying the fingerprint icon at the fingerprint identification area of the lock screen interface.
Optionally, the display module further comprises:
and the processing submodule is used for performing transparent processing on the screen locking interface, and the screen locking interface after the transparent processing is used for displaying prompt information of the third-party application through the screen locking interface.
Optionally, the method further comprises:
the detection module is used for detecting the fingerprint identification area;
the acquisition module is used for acquiring the event type and the pressure value of the pressing event when the pressing event that the fingerprint identification area is pressed is detected;
and the third determination module is used for determining that the fingerprint identification area is pressed by a finger when the event type is a designated type and the pressure value exceeds a preset threshold value.
Optionally, the identification module comprises:
the highlight sub-module is used for setting the backlight of the terminal screen into a highlight mode;
and the acquisition module is used for acquiring the image of the finger in the highlight mode and taking the image of the finger as the fingerprint information of the finger.
In a third aspect, an apparatus for fingerprint recognition is provided, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any of the methods of the first aspect described above.
In a fourth aspect, a computer-readable storage medium is provided, having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of the first aspect described above
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method of any of the first aspects above.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram of an implementation environment related to a fingerprint identification method provided in an embodiment of the present disclosure.
FIG. 2 is a flow diagram illustrating a method of fingerprint identification, according to an example embodiment.
FIG. 3 is a flow diagram illustrating a method of fingerprint identification, according to an example embodiment.
FIG. 4 is a block diagram illustrating an apparatus for fingerprint recognition according to an example embodiment.
FIG. 5 is a block diagram illustrating an apparatus for fingerprint recognition, according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present invention.
First, before explaining the embodiments of the present disclosure in detail, an application scenario of the embodiments of the present disclosure is introduced:
the conventional fingerprint module in the terminal is disposed below a screen of the terminal, or at the back of the terminal. However, the fingerprint module arranged below the terminal screen can affect the screen occupation ratio of the terminal, and the fingerprint module arranged on the back of the terminal needs to excavate the terminal, so that the risk of damage to the terminal is increased. Therefore, in order to meet the higher and higher requirements of users on the terminal, an in-plane fingerprint module is currently appeared, namely, the in-plane fingerprint module is arranged in the terminal and provides a module for performing fingerprint identification in a terminal screen for the users. At present, not only does a screen locking program of a terminal need to call an in-plane fingerprint module for fingerprint identification, but also a third-party application of the terminal needs to call the in-plane fingerprint module for fingerprint identification, so that identity authentication is performed on a user.
However, the third-party application is not compatible with the in-plane fingerprint module, that is, the third-party application cannot acquire the fingerprint identification area, so that when the in-plane fingerprint module is called, the third-party application displays a fingerprint icon at any position in the current interface, and further, the fingerprint identification function is realized. However, since the third-party application cannot acquire the fingerprint identification area, the fingerprint icon displayed on the current interface often does not coincide with the real fingerprint identification area, that is, the fingerprint icon cannot accurately reflect the position of the fingerprint identification area, resulting in poor fingerprint identification effect. Therefore, the embodiment of the disclosure provides a fingerprint identification method, by which a third party can accurately reflect the position of a fingerprint identification area in a fingerprint icon displayed on a current interface, thereby improving the accuracy of fingerprint identification.
Next, an implementation environment of the embodiment of the present disclosure is introduced:
referring to fig. 1, a schematic diagram of an implementation environment related to a fingerprint identification method provided in an embodiment of the present disclosure is shown. The implementation environment may include: the terminal 100. The terminal 100 may be a smart phone, a computer, or a multimedia player, and fig. 1 illustrates the terminal 100 as a smart phone.
As shown in fig. 1, an in-plane fingerprint module 1002 may be installed in a screen 1001 of the terminal 100. The functions of unlocking a terminal screen, paying a fingerprint and the like can be completed through the in-plane fingerprint module 1002. The in-plane fingerprint module may be an optical in-plane fingerprint module.
The terminal can be provided with a touch sensing module and a pressure sensor. When the user presses the fingerprint identification area with a finger, the touch sensing module may send position information of the finger to the pressure sensor. The pressure sensor receives the position information, detects the fingerprint identification area and determines whether the finger is positioned in the fingerprint identification area according to the position information of the finger; when the finger is located in the fingerprint identification area, determining that a pressing event that the fingerprint identification area is pressed is detected, determining the event type and the pressure value of the pressing event, and reporting the event type and the pressure value to a screen locking program. And the screen locking program receives the event type and the pressure value reported by the pressure sensor, and determines that the fingerprint identification area is pressed by a finger when the event type is detected to be the designated type and the pressure value exceeds a preset threshold value. The specified type is an event type corresponding to fingerprint identification. And then the screen locking program instructs the display module to set the backlight of the terminal screen to be in a high-brightness mode. In the highlight mode, the screen locking program can control the in-plane fingerprint module through a call-back interface between the screen locking program and the in-plane fingerprint module to acquire the image of the finger, and the image of the finger is used as fingerprint information of the finger. At this time, the in-plane fingerprint module may transmit the fingerprint information to an algorithm program of the terminal. When the algorithm program receives the fingerprint information, the matching degree between the fingerprint information and the fingerprint information in the fingerprint template library can be determined, the matching result is sent to the screen locking program, and the screen locking program forwards the matching result to a third party application, so that the fingerprint identification is completed.
Fig. 2 is a flowchart illustrating a method of fingerprint recognition applied to a screen locking program according to an exemplary embodiment, and includes the following steps, as shown in fig. 2.
In step 201, a call instruction sent by a third-party application of the terminal is received through a callback interface with the third-party application.
In step 202, according to the call instruction, an in-plane fingerprint module integrated on the terminal screen is started.
In step 203, a fingerprint identification area of the in-plane fingerprint module in the terminal screen is acquired, and a fingerprint icon is displayed at the fingerprint identification area of the current interface, wherein the fingerprint icon is used for prompting a user to press a finger in the fingerprint identification area.
In step 204, when it is detected that the fingerprint identification area is pressed by the finger, fingerprint information of the finger in the fingerprint identification area is acquired, and fingerprint identification is performed according to the fingerprint information.
Optionally, before displaying the fingerprint icon at the fingerprint identification area of the current interface, the method further comprises:
and when specific information sent by the in-plane fingerprint module is received, determining that the in-plane fingerprint module is successfully started, and executing the step of displaying the fingerprint icon at the fingerprint identification area of the current interface, wherein the specific information is used for indicating that the in-plane fingerprint module is successfully started.
Optionally, the in-plane fingerprint module is acquired before the fingerprint identification area in the terminal screen, and the method further includes:
determining whether the calling instruction is used for unlocking the terminal screen;
and when the calling instruction is not used for unlocking the terminal screen, executing the step of acquiring the fingerprint identification area of the in-plane fingerprint module in the terminal screen.
Optionally, displaying a fingerprint icon at the fingerprint identification area of the current interface, including:
superposing a layer of screen locking interface on the current interface;
displaying the fingerprint icon at the fingerprint identification area of the lock screen interface.
Optionally, before displaying the fingerprint icon at the fingerprint identification area of the lock screen interface, the method further comprises:
and transparently processing the screen locking interface, wherein the transparently processed screen locking interface is used for displaying prompt information of the third-party application through the screen locking interface.
Optionally, the method further comprises:
detecting the fingerprint identification area;
when a pressing event that the fingerprint identification area is pressed is detected, acquiring an event type and a pressure value of the pressing event;
when the event type is a designated type and the pressure value exceeds a preset threshold value, the fingerprint identification area is determined to be pressed by a finger.
Optionally, acquiring fingerprint information of the finger in the fingerprint identification area includes:
setting the backlight of the terminal screen to be in a high-brightness mode;
and acquiring an image of the finger in the highlight mode, and taking the image of the finger as fingerprint information of the finger.
In the embodiment of the disclosure, a call-back interface between the terminal and a third-party application receives a call instruction sent by the third-party application, and then the in-plane fingerprint module integrated on the terminal screen is started according to the call instruction. The fingerprint identification area of the in-plane fingerprint module in the terminal screen is obtained, and the fingerprint icon is displayed in the fingerprint identification area of the current interface, namely the fingerprint icon can accurately prompt the position of the fingerprint identification area to a user, so that the finger of the user can be pressed in the fingerprint identification area. And then when detecting that this fingerprint identification region is pressed by the finger, acquire the fingerprint information of the finger in this fingerprint identification region to carry out fingerprint identification according to this fingerprint information. That is, the in-plane fingerprint module is started through a callback interface between the in-plane fingerprint module and the third-party application of the terminal, and the fingerprint icon is displayed in the real fingerprint identification area. Therefore, even if the third-party application is not compatible with the in-plane fingerprint module, the user can visually recognize the fingerprint identification area of the in-plane fingerprint module in the terminal screen through the fingerprint icon displayed in the real fingerprint identification area, and then fingerprint identification is realized.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
Fig. 3 is a flowchart illustrating a method for fingerprint identification according to an exemplary embodiment, which is applied to a screen locking program, and as shown in fig. 3, this embodiment will be described with reference to fig. 2. The method comprises the following steps.
In step 301, the third-party application of the terminal sends a call instruction to the screen locking program through a callback interface between the third-party application and the screen locking program.
Due to the characteristics of convenience, rapidness and safety of fingerprint identification, more and more third-party applications integrate the function of fingerprint identification, and then the identity verification of a user is completed through fingerprint identification. When a third-party application performs fingerprint identification, a fingerprint identification area of an in-plane fingerprint module needs to be acquired, and the function of unlocking a terminal screen is often a function of the system, namely the fingerprint identification area can be acquired when the terminal screen is unlocked. Therefore, the callback interface is arranged in the screen locking program, interaction between the third-party application and the screen locking program can be achieved through the callback interface, namely the third-party application can acquire the fingerprint identification area of the in-plane fingerprint module through the screen locking program based on the callback interface, and then fingerprint identification is achieved.
It should be noted that the third-party application may include a plurality of interfaces, for example, a home interface and an interface corresponding to other specified functions, and therefore, the third-party application may detect whether to switch to an interface corresponding to the fingerprint identification function. When the third-party application detects that the interface corresponding to the fingerprint identification function is switched to, it indicates that the third-party application may need to perform fingerprint identification, and at this time, the third-party application may send a call instruction to the screen locking program through a callback interface between the third-party application and the screen locking program. Of course, the user may use the fingerprint identification function in the third-party application more frequently, and therefore, the third-party application may also send a call instruction to the screen locking program through the callback interface between the third-party application and the screen locking program when it is detected that the user opens the third-party application, that is, the third-party application is located on the top page interface. The execution time of the third-party application sending the call instruction to the screen locking program is not limited in the embodiment of the disclosure.
The third party application may be an application that requires authentication of the user using a fingerprint recognition function, for example, a payment application. When the third-party application is the payment application, the third-party application can send a calling instruction to the screen locking program when detecting that the payment is required to be carried out through fingerprint identification, and then the identity of the user is verified. In addition, the callback interface between the third party application and the screen locking program may be a callback interface.
In step 302, when receiving a call instruction sent by a third-party application, the screen locking program starts an in-plane fingerprint module integrated on a terminal screen according to the call instruction.
After receiving a call instruction sent by a third-party application through a callback interface, the screen locking program can determine that the in-plane fingerprint module integrated on the terminal needs to be opened at the moment, and therefore the screen locking program can open the in-plane fingerprint module through interaction between the screen locking program and the in-plane fingerprint module. For convenience and description, the embodiment of the present disclosure refers to an interface between the screen lock program and the third party application as a first callback interface, and refers to an interface between the screen lock program and the in-plane fingerprint module as a second callback interface. Therefore, when the screen locking program receives a calling instruction sent by the third-party application and determines that the in-plane fingerprint module needs to be opened, the in-plane fingerprint module can be controlled to be opened through the second callback interface.
It should be noted that, when the screen locking program controls the in-plane fingerprint module through the second callback interface, the screen locking program may generate an opening instruction according to the received call instruction, where the opening instruction is used to open the in-plane fingerprint module, and then send the opening instruction to the in-plane fingerprint module, and when the in-plane fingerprint module receives the opening instruction, the in-plane fingerprint module may be opened.
Further, after the in-plane fingerprint module is successfully opened, specific information can be sent to the screen locking program through the second callback interface, and the specific information is used for determining that the in-plane fingerprint module is successfully opened. The screen locking program, upon receiving the specific information, may determine that the in-plane fingerprint module has been successfully opened,
the second callback interface and the first callback interface may be the same interface or different interfaces, which is not limited in this disclosure. When the second callback interface and the first callback interface are the same interface, the third-party application and the in-plane fingerprint module interact with the screen locking program through the one interface, so that interface resources are saved, and resources consumed by fingerprint identification are saved. When the second callback interface and the first callback interface are different interfaces, interaction between the third-party application and the screen locking program and interaction between the in-plane fingerprint module and the screen locking program can be carried out simultaneously, interaction efficiency is improved, and fingerprint identification efficiency is improved.
In step 303, the screen locking program determines whether the call instruction is used to unlock the terminal screen, and when the call instruction is not used to unlock the terminal screen, a fingerprint identification area of the in-plane fingerprint module in the terminal screen is obtained.
The in-plane fingerprint module can be called by the screen locking program and the third-party application; therefore, the call instruction may be triggered by the screen locking program itself or by a third-party application. And the calling instruction triggered by the screen locking program is used for unlocking the terminal screen, and the calling instruction triggered by the third-party application is used for verifying the identity of the user. Therefore, the screen locking program has different processing mechanisms according to the call instruction triggered by the screen locking program and the call instruction triggered by the third-party application. Therefore, when receiving the call instruction, the screen locking program can analyze the call instruction and determine whether the call instruction is a call instruction triggered by the screen locking program; when the calling instruction is triggered by the calling instruction, determining that the calling instruction is used for unlocking a terminal screen; and when the calling instruction is not the calling instruction triggered by the calling instruction, namely the calling instruction is the calling instruction triggered by the third-party application, determining that the calling instruction is not used for unlocking the terminal screen.
In a possible embodiment, the calling instruction triggered by the screen locking program carries an identifier of the screen locking program; and the calling instruction triggered by the third-party application carries the identifier of the third-party application. That is, the call instruction may carry an identifier of the screen locking program or an identifier of the third party application. The screen locking program may determine whether the call instruction is a call instruction triggered by itself according to the identifier carried by the call instruction, and the process may be: and the screen locking program analyzes the calling instruction, and then judges whether the calling instruction is a calling instruction triggered by the screen locking program or a calling instruction triggered by a third-party application according to the identifier obtained by analysis. When the analyzed identifier is the identifier of the screen locking program, determining that the calling instruction is the calling instruction triggered by the screen locking program; and when the parsed instruction is the identifier of the third-party application, determining that the calling instruction is a calling instruction triggered by the third-party application. For example, when the third-party application is a payment application, the identifier of the payment may be carried in the call instruction triggered by the third-party application.
It should be noted that, when the screen locking program determines that the call instruction is not a call instruction triggered by itself, that is, when it is determined that the call instruction is not used for unlocking the terminal screen, it may be determined that the call instruction is a call instruction triggered by the third-party application, which indicates that the third-party application needs to acquire the fingerprint identification area by means of the screen locking program at this time, thereby implementing fingerprint identification. Therefore, when the screen locking program determines that the calling instruction is not used for unlocking the terminal screen, the fingerprint identification area of the in-plane fingerprint module in the terminal screen can be acquired.
The screen locking program may determine whether the call instruction is used to unlock the terminal screen when receiving the call instruction, may determine whether the call instruction is used to unlock the terminal screen after receiving the call instruction and opening the in-plane fingerprint module integrated on the terminal screen according to the call instruction, and may also determine whether the call instruction is used to unlock the terminal screen when receiving the call instruction and opening the in-plane fingerprint module integrated on the terminal screen. If the screen locking program receives the call instruction and determines whether the call instruction is used for unlocking the terminal screen while opening the in-plane fingerprint module integrated on the terminal screen, the time spent in the fingerprint identification process can be saved, and the fingerprint identification efficiency is improved.
In addition, after the screen locking program opens the in-plane fingerprint module according to the call instruction, the screen locking program may first receive specific information sent by the in-plane fingerprint module and determine that the in-plane fingerprint module has been successfully opened, and then determine whether the call instruction is used for unlocking the terminal screen, or first determine whether the call instruction is used for unlocking the terminal screen, and then receive specific information sent by the in-plane fingerprint module and determine that the in-plane fingerprint module has been successfully opened, or may also determine whether the call instruction is used for unlocking the terminal screen while receiving specific information sent by the in-plane fingerprint module and determining that the in-plane fingerprint module has been successfully opened, which is not limited in the embodiments of the present disclosure. If the screen locking program receives the specific information sent by the in-plane fingerprint module, determines whether the calling instruction is used for unlocking the terminal screen or not while the in-plane fingerprint module is successfully opened, the time spent in the fingerprint identification process can be saved, and the fingerprint identification efficiency is improved.
In step 304, the screen locking program displays a fingerprint icon at the fingerprint identification area of the current interface, wherein the fingerprint icon is used for prompting the user to press a finger in the fingerprint identification area.
Because the in-plane fingerprint module is arranged in the terminal screen, a user cannot visually identify which area of the terminal screen is the fingerprint identification area of the in-plane fingerprint module, so that the position of the fingerprint identification area can be prompted to the user in a fingerprint icon mode, and fingerprint identification is further completed.
In a possible embodiment, after acquiring the fingerprint identification area of the in-plane fingerprint module in the terminal screen, the screen locking program may superimpose a layer of screen locking interface on the current interface, and display a fingerprint icon at the fingerprint identification area of the screen locking interface. Because the fingerprint icon is displayed in the fingerprint identification area, namely the fingerprint icon can accurately reflect the position of the fingerprint identification area, the fingerprint icon is touched by the finger of the user and is equivalent to the finger of the user pressing in the fingerprint identification area, the fingerprint identification function can be realized at the moment, the misleading of the fingerprint icon to the user is avoided, and the fingerprint identification effect is better.
It should be noted that the screen locking program may also perform transparent processing on the screen locking interface, and the screen locking interface after the transparent processing is used for displaying the prompt information of the third-party application through the screen locking interface. Optionally, after the screen locking program superimposes a layer of screen locking interface on the current interface, the screen locking interface may be transparently processed first, and then a fingerprint icon is displayed in a fingerprint identification area of the screen locking interface after the transparent processing; the fingerprint icon can also be displayed in the fingerprint identification area of the screen locking interface, and then the screen locking interface after the fingerprint icon is displayed is transparently processed, which is not limited by the embodiment of the disclosure. When the screen locking interface after displaying the fingerprint icon is subjected to transparent processing, the areas except the fingerprint icon in the screen locking interface after displaying the fingerprint icon can be subjected to transparent processing.
Since the current interface of the third-party application usually displays some prompt information, for example, when the third-party application is a payment application, a prompt message of "please input a fingerprint and perform authentication by the fingerprint to complete payment" is displayed on the current interface. Therefore, when a layer of lock screen interface containing the fingerprint icon is overlaid on the current interface, in order to prevent the prompt message in the third-party application from being blocked by the overlaid lock screen interface, the lock screen interface is transparently processed by the embodiment of the disclosure. Therefore, the user can not only accurately perform fingerprint identification, but also clearly view all contents displayed in the current interface of the third-party application, wherein the contents include prompt information.
Wherein, in addition to displaying the fingerprint icon at the fingerprint identification area, the fingerprint icon and the fingerprint identification information can be displayed at the fingerprint identification area; the fingerprint identification information is used to prompt the user to press the user's finger at the fingerprint icon. For example, a fingerprint icon and fingerprint identification information of "please press a finger at the fingerprint icon" are displayed at the fingerprint identification area. In this case, the user can view all contents of the third-party application, including the prompt message, through the area of the lock screen interface except for the fingerprint icon and the fingerprint identification information.
In step 305, when the screen locking program detects that the fingerprint identification area is pressed by a finger, fingerprint information of the finger in the fingerprint identification area is acquired, and fingerprint identification is performed according to the fingerprint information.
Because the fingerprint icon is displayed in the fingerprint identification area, and the user can press the finger in the fingerprint identification area according to the prompt of the fingerprint icon, the screen locking program can detect that the fingerprint is pressed by the finger in the area, acquire the fingerprint information of the finger in the fingerprint identification area, and then perform fingerprint identification according to the fingerprint information. Step 305 will be described in detail below by steps (1), (2), and (3):
(1) and the screen locking program detects the fingerprint identification area.
The screen locking program can detect the fingerprint identification area, acquire an event type and a pressure value of a pressing event when the pressing event that the fingerprint identification area is pressed is detected, and determine that the fingerprint identification area is pressed by a finger when the event type is a specified type and the pressure value exceeds a preset threshold value. The specified type is an event type corresponding to fingerprint identification.
In a possible embodiment, the screen locking program can also detect the fingerprint identification area through a pressure sensor. That is, the screen locking program can send an acquisition instruction to the pressure sensor, and the pressure sensor can detect the fingerprint identification area after receiving the acquisition instruction. When the pressure sensor detects a pressing event that the fingerprint identification area is pressed, the event type and the pressure value of the pressing event are determined, and the event type and the pressure value are reported to a screen locking program. And when the event type and the pressure value of the pressing event are received and the event type is a designated type and the pressure value exceeds a preset threshold value, the screen locking program determines that the fingerprint identification area is pressed by the finger.
The pressure sensor can detect whether the position information of the finger sent by the touch sensing module is received or not in the process of detecting the fingerprint identification area after receiving the acquisition instruction, and when the position information of the finger is received, the fingerprint identification area is detected, and whether the finger is located in the fingerprint identification area or not is determined according to the position information of the finger. When the pressure sensor determines that the finger is located in the fingerprint identification area, it is determined that a pressing event in which the fingerprint identification area is pressed is detected.
Because the user may touch the fingerprint identification area by mistake, and the pressure value of touching by mistake is generally smaller, therefore, in order to avoid pressing the event that the user touches the fingerprint identification area by mistake when the user needs fingerprint identification, the embodiment of the disclosure can set a designated type and a preset threshold value, and only when the event type of the pressing event is the designated type and the pressure value exceeds the preset threshold value, the fingerprint identification area is determined to be pressed by the finger, so that the efficiency of fingerprint identification is improved.
(2) And the screen locking program acquires the fingerprint information of the finger in the fingerprint identification area.
When the screen locking program detects the fingerprint identification area and determines that the fingerprint identification area is pressed by a finger, the fingerprint information of the finger in the fingerprint identification area can be acquired. When acquiring the fingerprint information of the finger in the fingerprint identification area, the screen locking program may set the backlight of the terminal screen to a highlight mode, collect an image of the finger in the highlight mode, and use the image of the finger as the fingerprint information of the finger.
It should be noted that, in the process of acquiring the image of the finger by the screen locking program in the highlight mode, the in-plane fingerprint module may be controlled to acquire the image of the finger. That is, the screen locking program can send the information of the adjusted highlight mode to the in-plane fingerprint identification module through the second callback interface between the screen locking program and the in-plane fingerprint module, and the in-plane fingerprint identification module can collect the image of the finger in the highlight mode when receiving the information, and the image of the finger is used as the fingerprint information of the finger.
It should be further noted that, in order to further ensure the security of fingerprint identification, while the screen locking program detects the fingerprint identification area, the in-plane fingerprint module may also detect the fingerprint identification area, and when the in-plane fingerprint module detects a pressing event that the fingerprint identification area is pressed, an event type and a pressure value of the pressing event are obtained, and when the event type is a specific type and the pressure value exceeds a preset threshold value, it is determined that the fingerprint identification area is pressed by a finger. Therefore, the in-plane fingerprint module receives the information of the completion of the adjustment of the highlight mode sent by the screen locking program through the second callback interface, and starts to work when the fingerprint identification area is determined to be pressed by a finger according to the detection of the fingerprint identification area, namely, the image of the finger starts to be collected in the highlight mode, and the image of the finger is used as the fingerprint information of the finger.
Optionally, the screen locking program may further set only the backlight at the fingerprint identification area to be in the highlight mode when acquiring the fingerprint information of the finger in the fingerprint identification area, and acquire the image of the finger, and use the image of the finger as the fingerprint information of the finger.
In order to acquire a clearer finger image, the embodiment of the present disclosure may set a backlight of a terminal screen to a highlight mode when acquiring fingerprint information of a finger, and may also set a backlight at a fingerprint identification area to a highlight mode, and acquire an image of the finger. When the backlight of the terminal screen is set to be in the highlight mode, not only can the images of the fingers be clearly collected, but also the uniformity of the backlight of the terminal screen can bring certain comfort to a user. When the backlight at the fingerprint identification area is set to be in a highlight mode, not only can the image of the finger be clearly collected, but also the electric quantity can be saved, and further the fingerprint identification resources are saved.
(3) And the screen locking program carries out fingerprint identification according to the fingerprint information.
After the screen locking program acquires the fingerprint information of the finger in the fingerprint identification area, fingerprint identification can be performed according to the fingerprint information.
It should be noted that, because the screen locking program can control the image of the finger collected by the in-plane fingerprint module, and use the image of the finger as the fingerprint information of the finger, the in-plane fingerprint module can send the fingerprint information to the algorithm program. When the algorithm program receives the fingerprint information, the matching degree between the fingerprint information and the fingerprint information in the fingerprint template base can be determined, and when the matching degree is greater than the preset matching degree, the matching result is determined to be that the verification is passed; and when the matching degree is not greater than the preset matching degree, determining that the matching result is verification failure. And after the algorithm program determines a matching result, the matching result is sent to the screen locking program, and the screen locking program forwards the matching result to the third-party application.
The fingerprint template library stores at least one piece of fingerprint information of a legal user, the legal user is a user authorized to use the terminal, and the at least one piece of fingerprint information of the legal user is input and stored in the fingerprint template library in the registration stage. In addition, the algorithm program may determine the degree of match between two pieces of fingerprint information through any degree of match algorithm. And the algorithm program can also determine the matching degree between the two fingerprint information according to the characteristic value information of the two fingerprint information. Correspondingly, for each fingerprint information in the fingerprint template library, the step of determining, by the algorithm program, the matching degree between the received fingerprint information and the fingerprint information in the fingerprint template library may be: the algorithm program extracts first characteristic value information of the received fingerprint information, determines second characteristic value information of the fingerprint information in the fingerprint template base, determines the matching degree between the first characteristic value information and the second characteristic value information, and determines the matching degree as the matching degree between the received fingerprint information and the fingerprint information in the fingerprint template base.
When the algorithm program determines the matching degree between the two fingerprint information according to the characteristic value information of the two fingerprint information, the fingerprint template library may store the characteristic value information of at least one fingerprint information, instead of storing at least one fingerprint information of a legitimate user. Of course, the fingerprint template library may also store at least one piece of fingerprint information and at least one piece of feature value information of the fingerprint information. Correspondingly, the step of the algorithm program determining the second feature value information of the fingerprint information in the fingerprint template library may be: and the algorithm program acquires second characteristic value information of the fingerprint information from the fingerprint template library or extracts the second characteristic value information from the fingerprint information of the fingerprint template library.
In the embodiment of the disclosure, a call-back interface between the terminal and a third-party application receives a call instruction sent by the third-party application, and then the in-plane fingerprint module integrated on the terminal screen is started according to the call instruction. The fingerprint identification area of the in-plane fingerprint module in the terminal screen is obtained, and the fingerprint icon is displayed in the fingerprint identification area of the current interface, namely the fingerprint icon can accurately prompt the position of the fingerprint identification area to a user, so that the finger of the user can be pressed in the fingerprint identification area. And then when detecting that this fingerprint identification region is pressed by the finger, acquire the fingerprint information of the finger in this fingerprint identification region to carry out fingerprint identification according to this fingerprint information. That is, the in-plane fingerprint module is started through a callback interface between the in-plane fingerprint module and the third-party application of the terminal, and the fingerprint icon is displayed in the real fingerprint identification area. Therefore, even if the third-party application is not compatible with the in-plane fingerprint module, the user can visually recognize the fingerprint identification area of the in-plane fingerprint module in the terminal screen through the fingerprint icon displayed in the real fingerprint identification area, and then fingerprint identification is realized.
Fig. 4 is a block diagram illustrating an apparatus 400 for fingerprint recognition according to an example embodiment. As shown in fig. 4, the apparatus 400 includes a receiving module 401, an opening module 402, a display module 403, and an identification module 404.
The receiving module 401 is configured to receive, through a callback interface with a third-party application of the terminal, a call instruction sent by the third-party application;
an opening module 402, configured to open an in-plane fingerprint module integrated on a terminal screen according to the call instruction;
a display module 403, configured to obtain a fingerprint identification area of the in-plane fingerprint module in the terminal screen, and display a fingerprint icon at the fingerprint identification area of the current interface, where the fingerprint icon is used to prompt a user to press a finger in the fingerprint identification area;
the identification module 404 is configured to, when it is detected that the fingerprint identification area is pressed by the finger, acquire fingerprint information of the finger in the fingerprint identification area, and perform fingerprint identification according to the fingerprint information.
Optionally, the apparatus further comprises:
the first determining module is used for determining that the in-plane fingerprint module is successfully started when specific information sent by the in-plane fingerprint module is received, and triggering the display module to display a fingerprint icon at the fingerprint identification area of the current interface, wherein the specific information is used for indicating that the in-plane fingerprint module is successfully started.
Optionally, the apparatus further comprises:
the second determining module is used for determining whether the calling instruction is used for unlocking the terminal screen;
and the triggering module is used for triggering the display module to acquire the fingerprint identification area of the in-plane fingerprint module in the terminal screen when the calling instruction is not used for unlocking the terminal screen.
Optionally, the display module comprises:
the superposition submodule is used for superposing a layer of screen locking interface on the current interface;
the display sub-module is used for displaying the fingerprint icon at the fingerprint identification area of the lock screen interface.
Optionally, the display module further comprises:
and the processing submodule is used for performing transparent processing on the screen locking interface, and the screen locking interface after the transparent processing is used for displaying prompt information of the third-party application through the screen locking interface.
Optionally, the method further comprises:
the detection module is used for detecting the fingerprint identification area;
the acquisition module is used for acquiring the event type and the pressure value of the pressing event when the pressing event that the fingerprint identification area is pressed is detected;
and the third determining module is used for determining that the fingerprint identification area is pressed by the finger when the event type is a designated type and the pressure value exceeds a preset threshold value.
Optionally, the identification module comprises:
the highlight sub-module is used for setting the backlight of the terminal screen into a highlight mode;
and the acquisition module is used for acquiring the image of the finger in the highlight mode and taking the image of the finger as the fingerprint information of the finger.
In the embodiment of the disclosure, a call-back interface between the terminal and a third-party application receives a call instruction sent by the third-party application, and then the in-plane fingerprint module integrated on the terminal screen is started according to the call instruction. The fingerprint identification area of the in-plane fingerprint module in the terminal screen is obtained, and the fingerprint icon is displayed in the fingerprint identification area of the current interface, namely the fingerprint icon can accurately prompt the position of the fingerprint identification area to a user, so that the finger of the user can be pressed in the fingerprint identification area. And then when detecting that this fingerprint identification region is pressed by the finger, acquire the fingerprint information of the finger in this fingerprint identification region to carry out fingerprint identification according to this fingerprint information. That is, the in-plane fingerprint module is started through a callback interface between the in-plane fingerprint module and the third-party application of the terminal, and the fingerprint icon is displayed in the real fingerprint identification area. Therefore, even if the third-party application is not compatible with the in-plane fingerprint module, the user can visually recognize the fingerprint identification area of the in-plane fingerprint module in the terminal screen through the fingerprint icon displayed in the real fingerprint identification area, and then fingerprint identification is realized.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an apparatus 500 for photographing according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods provided by the embodiments shown in fig. 4 or 5 and described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a terminal, enable the terminal to perform a method of fingerprinting.
A computer program product comprising instructions which, when executed by a processor of a terminal, enable the terminal to perform the above-described method of fingerprint identification in fig. 2 and 3.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof.

Claims (14)

1. A fingerprint identification method is applied to a screen locking program, and comprises the following steps:
receiving a calling instruction sent by a third-party application through a first callback interface between the first callback interface and the third-party application of a terminal, wherein the first callback interface is arranged in the screen locking program and is an interface between the screen locking program and the third-party application;
according to the calling instruction, an in-plane fingerprint module integrated on a terminal screen is controlled to be started through a second callback interface, the second callback interface is arranged in the screen locking program, and the second callback interface is an interface between the screen locking program and the in-plane fingerprint module;
acquiring a fingerprint identification area of the in-plane fingerprint module in the terminal screen;
overlapping a screen locking interface on the current interface, wherein the screen locking interface is subjected to transparentization treatment;
displaying a fingerprint icon at the fingerprint identification area of the lock screen interface, wherein the fingerprint icon is used for prompting a user to press a finger in the fingerprint identification area;
when the fingerprint identification area is detected to be pressed by the finger, fingerprint information of the finger in the fingerprint identification area is acquired, and fingerprint identification is carried out according to the fingerprint information.
2. The method of claim 1, wherein prior to displaying a fingerprint icon at the fingerprint identification area of the current interface, the method further comprises:
and when specific information sent by the in-plane fingerprint module is received, determining that the in-plane fingerprint module is successfully started, and executing the step of displaying the fingerprint icon at the fingerprint identification area of the current interface, wherein the specific information is used for indicating that the in-plane fingerprint module is successfully started.
3. The method of claim 1, wherein the obtaining the in-plane fingerprint module precedes a fingerprint identification area in the terminal screen, the method further comprising:
determining whether the calling instruction is used for unlocking the terminal screen;
and when the calling instruction is not used for unlocking the terminal screen, executing the step of acquiring the fingerprint identification area of the in-plane fingerprint module in the terminal screen.
4. The method of claim 1, wherein the transparently processed lock screen interface is used to display a prompt for the third party application through the lock screen interface.
5. The method of claim 1, wherein the method further comprises:
detecting the fingerprint identification area;
when a pressing event that the fingerprint identification area is pressed is detected, acquiring an event type and a pressure value of the pressing event;
when the event type is a designated type and the pressure value exceeds a preset threshold value, determining that the fingerprint identification area is pressed by a finger.
6. The method of claim 1 or 5, wherein the obtaining fingerprint information for the finger in the fingerprinting area comprises:
setting the backlight of the terminal screen to be in a high-brightness mode;
and acquiring an image of the finger in the highlight mode, and taking the image of the finger as fingerprint information of the finger.
7. An apparatus for fingerprint recognition, the apparatus comprising:
the terminal comprises a receiving module, a first callback interface, a second callback interface and a second callback interface, wherein the receiving module is used for receiving a calling instruction sent by a third-party application through the first callback interface between the receiving module and the third-party application of the terminal;
the starting module is used for controlling and starting an in-plane fingerprint module integrated on a terminal screen through a second callback interface according to the calling instruction, the second callback interface is arranged in the screen locking program, and the second callback interface is an interface between the screen locking program and the in-plane fingerprint module;
the display module is used for acquiring a fingerprint identification area of the in-plane fingerprint module in the terminal screen;
the superposition submodule is used for superposing a layer of screen locking interface on the current interface, and the screen locking interface is subjected to transparentization treatment;
the display sub-module is used for displaying a fingerprint icon at the fingerprint identification area of the screen locking interface, and the fingerprint icon is used for prompting a finger of a user to press in the fingerprint identification area;
and the identification module is used for acquiring the fingerprint information of the finger in the fingerprint identification area when the fingerprint identification area is detected to be pressed by the finger, and carrying out fingerprint identification according to the fingerprint information.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the first determining module is configured to determine that the in-plane fingerprint module has been successfully started when specific information sent by the in-plane fingerprint module is received, and trigger the display module to display a fingerprint icon at the fingerprint identification area of the current interface, where the specific information is used to indicate that the in-plane fingerprint module is successfully started.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the second determining module is used for determining whether the calling instruction is used for unlocking the terminal screen;
and the triggering module is used for triggering the display module to acquire the fingerprint identification area of the in-plane fingerprint module in the terminal screen when the calling instruction is not used for unlocking the terminal screen.
10. The apparatus of claim 7, wherein the transparently processed lock screen interface is configured to display a prompt for the third-party application through the lock screen interface.
11. The apparatus of claim 7, wherein the apparatus further comprises:
the detection module is used for detecting the fingerprint identification area;
the acquisition module is used for acquiring the event type and the pressure value of the pressing event when the pressing event that the fingerprint identification area is pressed is detected;
and the third determination module is used for determining that the fingerprint identification area is pressed by a finger when the event type is a designated type and the pressure value exceeds a preset threshold value.
12. The apparatus of claim 7 or 11, wherein the identification module comprises:
the highlight sub-module is used for setting the backlight of the terminal screen into a highlight mode;
and the acquisition module is used for acquiring the image of the finger in the highlight mode and taking the image of the finger as the fingerprint information of the finger.
13. An apparatus for fingerprint recognition, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any of the methods of claims 1-6.
14. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-6.
CN201811240802.4A 2018-10-23 2018-10-23 Fingerprint identification method and device and computer readable storage medium Active CN109324863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811240802.4A CN109324863B (en) 2018-10-23 2018-10-23 Fingerprint identification method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811240802.4A CN109324863B (en) 2018-10-23 2018-10-23 Fingerprint identification method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109324863A CN109324863A (en) 2019-02-12
CN109324863B true CN109324863B (en) 2022-05-03

Family

ID=65262747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811240802.4A Active CN109324863B (en) 2018-10-23 2018-10-23 Fingerprint identification method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109324863B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948576A (en) * 2019-03-27 2019-06-28 上海菲戈恩微电子科技有限公司 Fingerprint identification method under a kind of screen suitable for mobile terminal
CN111832339A (en) * 2019-04-16 2020-10-27 北京小米移动软件有限公司 Fingerprint identification method and device
CN111860037A (en) * 2019-04-25 2020-10-30 北京小米移动软件有限公司 Calibration method and device for fingerprint acquisition area
CN112861095A (en) * 2019-11-27 2021-05-28 上海箩箕技术有限公司 Fingerprint verification method and device and storage medium
CN111160228B (en) * 2019-12-26 2023-06-30 武汉天马微电子有限公司 Display panel, control method thereof and display device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106716431A (en) * 2016-12-26 2017-05-24 深圳市汇顶科技股份有限公司 A fingerprint identification guide method and device
CN106845199A (en) * 2017-01-24 2017-06-13 北京小米移动软件有限公司 Object authentication method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881667B (en) * 2014-02-28 2019-08-09 阿里巴巴集团控股有限公司 A kind of extracting method and device of characteristic information
CN105095720B (en) * 2015-08-10 2018-03-30 京东方科技集团股份有限公司 Fingerprint recognition system and method, display device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106716431A (en) * 2016-12-26 2017-05-24 深圳市汇顶科技股份有限公司 A fingerprint identification guide method and device
CN106845199A (en) * 2017-01-24 2017-06-13 北京小米移动软件有限公司 Object authentication method and device

Also Published As

Publication number Publication date
CN109324863A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN109324863B (en) Fingerprint identification method and device and computer readable storage medium
EP3133528B1 (en) Method and apparatus for fingerprint identification
EP3232299B1 (en) Physical key component, terminal, and touch response method and device
CN106951884B (en) Fingerprint acquisition method and device and electronic equipment
EP3331226B1 (en) Method and device for reading messages
CN107025419B (en) Fingerprint template inputting method and device
CN107391995B (en) Unlocking operation processing method and device
US20180144176A1 (en) Fingerprint template acquisition method and device
US10515224B2 (en) Method, device and storage medium for printing information
CN107643818B (en) Function opening method and device
CN107450950B (en) Method and device for processing starting instruction
CN107133551B (en) Fingerprint verification method and device
CN105760796B (en) Application security processing method and device
CN108491834B (en) Fingerprint identification method and device
US10671827B2 (en) Method and device for fingerprint verification
CN112437189A (en) Identity recognition method, device and medium
CN110929550A (en) Fingerprint identification method and device, electronic equipment and storage medium
CN111104014B (en) Method, device, terminal and storage medium for starting application program
CN109521899B (en) Method and device for determining inputtable area of fingerprint
CN107292155B (en) Fingerprint information verification method and device and computer readable storage medium
CN111079107A (en) Fingerprint identification method and device, electronic equipment and storage medium
CN111079467A (en) Fingerprint identification method and device, electronic equipment and storage medium
CN111382395B (en) Control method and device of application icons
CN111291342A (en) Fingerprint acquisition method and device
CN112446019A (en) Application operation control method and device and storage medium

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
GR01 Patent grant
GR01 Patent grant