Fingerprint identification method and device, electronic equipment and storage medium

By detecting screen state switching and pressing events when the touch screen is in a black screen state, and obtaining mutually compatible data for fingerprint recognition, the problem of self-containment abnormality during screen state switching is solved, and accurate press operation recognition and user experience improvement are achieved.

CN119723625APending Publication Date: 2025-03-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311262178.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

During the screen status switching process of the touch screen, the self-calibration abnormality caused by changes in the display signal, and the pressing operation cannot be accurately identified, which affects the user experience.

Method used

When the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, the screen state switching event and the pressing event of the fingerprint recognition area are detected. If it exists, obtain mutually acceptable data for fingerprint recognition.

Benefits of technology

It avoids the self-calibration abnormalities caused by changes in the display signal during the screen state switching process, accurately recognizes the pressing operation, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119723625A_ABST
    Figure CN119723625A_ABST
Patent Text Reader

Abstract

The invention discloses a fingerprint identification method and device, electronic equipment and a storage medium. The method comprises the steps of detecting whether a screen state switching event exists or not under the condition that a touch screen is in a blank screen state and an under-screen fingerprint identification function is started; if the screen state switching event exists, detecting whether a pressing event acting on a fingerprint identification area of the touch screen exists in the screen state switching process or not; if the pressing event acting on the fingerprint identification area of the touch screen exists in the screen state switching process, mutual capacitance data of the touch screen are obtained; and performing fingerprint identification based on the mutual capacitance data. According to the method, if the pressing event acting on the fingerprint identification area of the touch screen exists in the screen state switching process of the touch screen, only the mutual capacitance data of the touch screen can be obtained, and fingerprint identification is carried out based on the mutual capacitance data; therefore, the phenomenon that the pressing operation cannot be accurately recognized due to self-capacitance abnormity caused by the change of the display signal in the screen state switching process is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a fingerprint recognition method, device, electronic device and storage medium. Background Art

[0002] With the advancement of technology, fingerprint recognition has spread throughout our daily lives, from e-commerce, banking to security, from mobile phones, smart locks to surveillance. At present, most electronic devices have implemented fingerprint recognition functions. As a way, fingerprint recognition can be realized through the touch screen of electronic devices. There are currently three main fingerprint recognition schemes: capacitive fingerprint recognition, optical fingerprint recognition, and ultrasonic fingerprint recognition. Among them, capacitive fingerprint recognition does not require the screen to emit light during the recognition process, and the cost is relatively low. However, when the touch screen switches the screen state, the change in its display signal is likely to cause abnormal fingerprint recognition, thereby affecting the user experience. Summary of the invention

[0003] The present application proposes a fingerprint recognition method, device, electronic device and storage medium to improve the above-mentioned problems.

[0004] In a first aspect, an embodiment of the present application provides a fingerprint recognition method that can be applied to an electronic device, wherein the electronic device includes a touch screen, and the method includes: when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, detecting whether there is a screen state switching event; if there is a screen state switching event, detecting whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtaining mutual capacitance data of the touch screen; and performing fingerprint recognition based on the mutual capacitance data.

[0005] In a second aspect, an embodiment of the present application provides a fingerprint recognition device that can be run on an electronic device, wherein the electronic device includes a touch screen, and the device includes: a first detection module, used to detect whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; a second detection module, used to detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process if there is a screen state switching event; a capacitance data acquisition module, used to obtain mutual capacitance data of the touch screen if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; a fingerprint recognition module, used to perform fingerprint recognition based on the mutual capacitance data.

[0006] In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method of the first aspect above.

[0007] In a fourth aspect, the present application provides a computer-readable storage medium having program code stored therein, wherein the method of the first aspect is executed when the program code is run.

[0008] The present application provides a fingerprint recognition method, device, electronic device and storage medium, which detects whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; if there is a screen state switching event, detects whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtains the mutual capacitance data of the touch screen; and performs fingerprint recognition based on the mutual capacitance data. Thus, through the above method, if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process of the touch screen, only the mutual capacitance data of the touch screen can be obtained, and fingerprint recognition can be performed based on the mutual capacitance data, thereby avoiding the phenomenon that the pressing operation cannot be accurately recognized due to self-capacitance abnormality caused by display signal changes during the screen state switching process, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A flow chart of a fingerprint recognition method provided by an embodiment of the present application is shown.

[0011] Figure 2 A schematic diagram of the structure of a communication system provided in an embodiment of the present application is shown.

[0012] Figure 3 A schematic diagram of the channel range division of the fingerprint recognition area provided in an embodiment of the present application is shown.

[0013] Figure 4 A flow chart of a fingerprint recognition method provided by another embodiment of the present application is shown.

[0014] Figure 5A flow chart of a fingerprint recognition method provided by another embodiment of the present application is shown.

[0015] Figure 6 A flowchart of a fingerprint recognition method provided in yet another embodiment of the present application is shown.

[0016] Figure 7 A structural block diagram of a fingerprint recognition device provided in an embodiment of the present application is shown.

[0017] Figure 8 A structural block diagram of an electronic device provided in an embodiment of the present application is shown.

[0018] Fig. 9 A storage unit for storing or carrying a program code for implementing a fingerprint recognition method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0020] Touch screens include optical fingerprint screens and capacitive fingerprint screens. The optical fingerprint screen provides screen light through the system, providing light to the finger pressed in the fingerprint recognition area under the screen. By collecting and photographing the image of the fingerprint, it compares and identifies whether it is the preset fingerprint, thereby realizing unlocking, payment and other functions; the capacitive fingerprint screen uses the capacitive sensing principle of the touch screen to determine whether an object is in contact with the touch screen and then reports the status of the object.

[0021] The inventor found that the trigger event of the optical fingerprint is provided by the touch screen. When the touch screen is disturbed, if the user presses the preset fingerprint area, it is easy to fail to report the press event. Capacitive fingerprints are easily interfered by the touch screen display signal (for example, when the touch screen switches from a black screen to a bright screen state, the change in the display signal is likely to interfere with the touch screen's self-capacitive signal), resulting in failure to identify the press event.

[0022] After long-term research, the inventor found that when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, it is possible to detect whether there is a screen state switching event; if there is a screen state switching event, detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtain the mutual capacitance data of the touch screen; and perform fingerprint recognition based on the mutual capacitance data. Thus, through the above method, if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process of the touch screen, only the mutual capacitance data of the touch screen can be obtained, and fingerprint recognition can be performed based on the mutual capacitance data, thereby avoiding the phenomenon that the pressing operation cannot be accurately recognized due to self-capacitance abnormality caused by display signal changes during the screen state switching process, thereby improving the user experience.

[0023] Therefore, in order to improve the above problems, the inventors proposed the fingerprint recognition method, device, electronic device and computer-readable storage medium provided in the present application, which can avoid the phenomenon that the pressing operation cannot be accurately recognized due to self-capacitance abnormality caused by display signal changes during the screen state switching process.

[0024] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0025] See also Figure 1 , shows a flow chart of a fingerprint recognition method provided by an embodiment of the present application. This embodiment provides a fingerprint recognition method that can be applied to electronic devices, wherein the electronic device can be a mobile phone, a computer, a tablet or a wearable electronic device, and the specific type of the electronic device may not be limited. The electronic device includes a touch screen. The touch screen in the embodiment of the present application may be an optical fingerprint screen, a capacitive fingerprint screen or a capacitive touch screen, and the specific type of the touch screen may not be limited. The method includes:

[0026] Step S110: When the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, detect whether there is a screen state switching event.

[0027] Among them, the black screen state indicates that the touch screen is in a dormant state (screen off or off), and the under-screen fingerprint recognition function is turned on. Among them, the under-screen fingerprint recognition function means that the touch screen can collect fingerprints when the screen is off. Specifically, by providing a light source to the finger pressed on the fingerprint recognition area under the screen, by collecting and shooting the image of the fingerprint, and then comparing the collected fingerprint image with the preset fingerprint image, confirm whether the collected fingerprint is the preset fingerprint. If it is, the corresponding function is realized, such as unlocking, payment and other functions. That is, the under-screen fingerprint recognition function when the screen is off can realize functions such as waking up the system and unlocking when the screen is off.

[0028] As an implementation method, when the touch screen enters a black screen state, the electronic device can be triggered to automatically turn on the under-screen fingerprint recognition function of the touch screen.

[0029] In this embodiment, the screen state switching event is used to switch the touch screen from a black screen state to a bright screen state. Bright screen includes a bright screen when the electronic device is in working state and a bright screen when the electronic device is in standby state. Among them, the working state represents the state of the electronic device after being unlocked, at which time the electronic device can be controlled to work through the touch screen; and the standby state represents a short-term bright screen state. For example, when the electronic device is in a black screen state, pressing the power button can make the screen light up. During the time when the screen is lit, some information, such as time, date, etc., can be displayed, and then it will automatically go out to save power. This way of lighting the screen is the standby state.

[0030] The screen-on in the implementation mode of the present application can be understood as the screen-on of the electronic device in working state. As an implementation mode, when the touch screen switches from the black screen state to the screen-on state, and the screen-on duration is greater than or equal to the preset duration, it can be determined that there is a screen state switching event; and when the touch screen switches from the black screen state to the screen-on state, and the screen-on duration is less than the preset duration, it is determined that there is no screen state switching event. The specific value of the preset duration may not be limited.

[0031] As an implementation method, the touch screen system can obtain the touch screen's activation status and the activation status of the under-screen fingerprint recognition function from the terminal system (i.e., the system of the electronic device). Then, when it is determined that the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, it can detect in real time whether there is a screen status switching event, so as to accurately determine the fingerprint recognition method based on the detection results.

[0032] Among them, it is necessary to preset the flag bit of whether the black screen gesture (i.e., somatosensory gesture) is turned on, and the flag bit of whether the under-screen fingerprint recognition function is turned on. In other words, after the terminal system turns on the corresponding function, it is necessary to set the flag bit to turn it on or off. At the same time, the terminal system also needs to set the register of the touch screen system. Then, when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, before detecting whether there is a screen state switching event, the current flag bit state of the register corresponding to the under-screen fingerprint recognition function of the touch screen can be obtained; and then based on the flag bit state, it is determined whether the under-screen fingerprint recognition function is in the turned-on state.

[0033] See also Figure 2 , shows a schematic diagram of the structure of the communication system provided by the embodiment of the present application. Figure 2As shown, the terminal system 51 and the touch screen system 52 can communicate data via an I2C (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface) interface, and the INT interrupt pin is a signal interface used by the touch screen system to notify the terminal system to read the touch screen data.

[0034] The touch screen system has its own IC (Integrated Circuit Chip) and its own memory, and the memory can be implemented in the form of registers.

[0035] Step S120: If there is a screen state switching event, detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process.

[0036] The unlocking methods of electronic devices may include fingerprint unlocking, password unlocking, and face recognition unlocking, that is, the touch screen switching from a black screen to a bright screen may be triggered by any of the above unlocking methods. Therefore, in order to improve the accuracy of fingerprint recognition, when it is determined that there is a screen state switching event, it is necessary to further detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process.

[0037] The capacitive sensing function of the touch screen uses the capacitive sensing principle of the touch screen to determine whether the object is in contact with the touch screen and then report the state of the object, mainly referring to the finger contacting objects such as pens. The states are mainly divided into pressing and lifting, as well as movement after pressing, and the unlocking is generally completed when lifted. Therefore, in the implementation mode of the present application, the pressing event represents the existence of a pressing operation acting on the fingerprint recognition area under the screen and is in a pressed state (in a pressed state during the screen switching process). Then, if it is detected that there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, it can be determined that the electronic device is unlocked by fingerprint unlocking.

[0038] In this embodiment, the fingerprint state under the black screen is a working mode with a relatively low working scanning frequency. At this time, the touch screen is in a low power consumption mode, and the functions of pressing and lifting can be realized. The normal touch state under the bright screen is a working mode with a relatively high working scanning frequency. At this time, the touch screen is in a high power consumption mode, and normal working states such as clicking and sliding can be realized.

[0039] The principle of the touch screen is to trigger an excitation signal of a certain working scanning frequency in its own circuit to the sending electrode, and then collect the capacitance data of the receiving electrode, thereby obtaining its capacitance data, and according to the capacitance data of the previous and next cycles, calculate whether the state of the object's finger is pressed or lifted and its coordinates. As an implementation method, it can be determined whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process based on the calculated state of the object's finger. Optionally, if the calculated state of the object's finger is pressed, it can be determined that there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; if the calculated state of the object's finger is lifted, it can be determined that there is no pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process.

[0040] Step S130: if there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, the mutual capacitance data of the touch screen is obtained.

[0041] Capacitive touch screens are mainly composed of a sending channel and a receiving channel. The capacitance data of the sending channel or the receiving channel to the ground (including the capacitance data between the receiving channel and the ground, or the capacitance data between the sending channel and the ground) is self-capacitance data, and the capacitance data between the sending channel and the receiving channel is mutual capacitance data. During the screen state switching process, the display signal of the screen will change, and this change will interfere with the fingerprint recognition process. For example, the self-capacitance signal of the touch screen will be interfered by the change of the display signal. At this time, if the self-capacitance signal is used for fingerprint recognition, it is easy to mistakenly identify the pressing operation as a non-pressing state.

[0042] As an implementation method, if it is determined that there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, in order to avoid the problem of self-capacitance abnormality caused by display interference in the process of the touch screen switching from off to on, resulting in no response to pressing, the self-capacitance data can be ignored and only the mutual capacitance data of the touch screen can be obtained.

[0043] As an implementation method, if there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, and the pressing position is within the preset channel range of the touch screen, the mutual capacitance data of the touch screen can be obtained. Figure 3 As shown, the touch screen system can be divided into a TX transmitting channel and an RX receiving channel, TX represents the vertical screen direction, RX represents the horizontal direction, and the area surrounded by TX transmitting channels 5-10 and RX receiving channels 28-30 is the fingerprint recognition area (ie, the preset channel range).

[0044] Step S140: performing fingerprint recognition based on the mutual compatibility data.

[0045] As an implementation mode, when the above conditions are met, fingerprint recognition can be performed directly based on mutual capacitance data to avoid the situation where the pressing operation cannot be accurately recognized due to the influence of the self-capacitance signal on the display signal change.

[0046] It should be noted that the fingerprint recognition here means comparing the collected fingerprint image with the preset fingerprint image to confirm whether the collected fingerprint is the preset fingerprint. If yes, a corresponding function is implemented, such as unlocking.

[0047] The fingerprint recognition method provided in this embodiment detects whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; if there is a screen state switching event, detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtain the mutual capacitance data of the touch screen; and perform fingerprint recognition based on the mutual capacitance data. Thus, through the above method, if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process of the touch screen, only the mutual capacitance data of the touch screen can be obtained, and fingerprint recognition can be performed based on the mutual capacitance data, thereby avoiding the phenomenon that the pressing operation cannot be accurately recognized due to self-capacitance abnormality caused by display signal changes during the screen state switching process, thereby improving the user experience.

[0048] See also Figure 4 , shows a flow chart of a fingerprint recognition method provided by another embodiment of the present application. This embodiment provides a fingerprint recognition method that can be applied to an electronic device, wherein the electronic device includes a touch screen. The method includes:

[0049] Step S210: When the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, detect whether there is a screen state switching event.

[0050] The specific implementation of step S210 may refer to the relevant description of step S110 in the aforementioned embodiment, which will not be repeated here.

[0051] Step S220: If there is no screen state switching event, in response to a pressing operation on the fingerprint recognition area of ​​the touch screen, self-capacitance data and mutual-capacitance data of the touch screen are acquired.

[0052] As an implementation mode, when it is determined that the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, if no screen state switching event is detected, in this case, if there is a pressing operation on the fingerprint recognition area of ​​the touch screen, it is possible to directly respond to the pressing operation on the fingerprint recognition area of ​​the touch screen to obtain the self-capacitance data and mutual-capacitance data of the touch screen.

[0053] Step S230: performing fingerprint recognition based on the self-capacity data and the mutual-capacity data.

[0054] In this embodiment, the pressing operation on the fingerprint recognition area of ​​the touch screen does not actually unlock the electronic device, that is, the pressing operation is a short press. For example, user B may hold the mobile phone of user A to perform fingerprint unlocking, or use a finger different from the preset fingerprint to perform fingerprint unlocking, or use the finger corresponding to the preset fingerprint to perform a short press, and these pressing methods will not successfully unlock the electronic device.

[0055] That is to say, in the absence of a screen state switching event, the touch screen system will identify the type of fingerprint based on the self-capacitance data, for example, identifying whether the fingerprint corresponding to the pressing operation is a preset fingerprint. Therefore, as a way, when it is determined that the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, if no screen state switching event is detected, fingerprint recognition can be performed directly based on the self-capacitance data and mutual-capacitance data of the touch screen. The fingerprint recognition here can include identifying the type of fingerprint and the state of the pressing finger.

[0056] Among them, when the state of pressing the finger is identified based on the self-capacitance data and mutual-capacitance data of the touch screen, it can be determined whether the mutual-capacitance data is greater than the mutual-capacitance threshold, and whether the self-capacitance data is greater than the self-capacitance threshold. Both the mutual-capacitance threshold and the self-capacitance threshold can be pre-set, and the specific values ​​can be unlimited.

[0057] As an implementation mode, if it is determined that the mutual capacitance data is greater than the mutual capacitance threshold and the self capacitance data is greater than the self capacitance threshold, the pressed finger can be determined to be in a pressed state. Otherwise, the pressed finger can be determined to be in a lifted state.

[0058] As an implementation method, when a finger touches the touch screen, the capacitance of the finger will be superimposed on the capacitance of the touch screen, so that the capacitance of the touch screen increases. Therefore, it is possible to determine whether the touch screen has obtained a pressing operation based on the self-capacitance data of the touch screen. Specifically, if the currently obtained self-capacitance data is increased compared to the capacitance of the touch screen, it can be considered that the touch screen has obtained a pressing operation.

[0059] The fingerprint recognition method provided in this embodiment detects whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; if there is no screen state switching event, responds to the pressing operation on the fingerprint recognition area of ​​the touch screen to obtain the self-capacitance data and mutual-capacitance data of the touch screen; and performs fingerprint recognition based on the self-capacitance data and mutual-capacitance data. Thus, in the above manner, when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, if there is no screen state switching event, fingerprint recognition can be performed directly based on the self-capacitance data and mutual-capacitance data of the touch screen to improve the accuracy of fingerprint recognition.

[0060] See also Figure 5 , shows a flow chart of a fingerprint recognition method provided by another embodiment of the present application. This embodiment provides a fingerprint recognition method that can be applied to an electronic device, wherein the electronic device includes a touch screen. The method includes:

[0061] Step S310: When the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, detect whether there is a screen state switching event.

[0062] The specific implementation of step S310 may refer to the relevant description of step S110 in the aforementioned embodiment, which will not be repeated here.

[0063] Step S320: If there is a screen state switching event, detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process.

[0064] The specific implementation of step S320 may refer to the relevant description of step S120 in the aforementioned embodiment, which will not be repeated here.

[0065] Step S330: If there is no pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, the self-capacitance data and the mutual-capacitance data of the touch screen are obtained.

[0066] In this embodiment, if it is detected that a pressing event on the fingerprint recognition area of ​​the touch screen is not present during the screen state switching process, then it can be determined that the electronic device is not unlocked by fingerprint recognition (unlocking by fingerprint recognition can switch the electronic device from the screen-off state to the screen-on state), or there is a pressing event on the fingerprint recognition area of ​​the touch screen after the electronic device is unlocked (for example, when the user makes a mobile payment through the fingerprint world, the fingerprint recognition area is pressed). In this case, the self-capacitance data and mutual-capacitance data of the touch screen can be directly obtained.

[0067] Step S340: performing fingerprint recognition based on the self-capacity data and the mutual-capacity data.

[0068] In this embodiment, the pressing event is not a pressing event that acts on the fingerprint recognition area of ​​the touch screen during the screen state switching process. Therefore, in order to accurately enable the electronic device to realize corresponding functions through fingerprint recognition, such as unlocking, payment and other functions, fingerprint recognition can be directly performed based on the self-capacitance data and mutual-capacitance data.

[0069] The specific implementation principle and process of fingerprint identification based on the self-capacitance data and the mutual-capacitance data may refer to the relevant description in step S230 in the aforementioned embodiment, which will not be repeated here.

[0070] The fingerprint recognition method provided in this embodiment detects whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; if there is a screen state switching event, detects whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; if there is no pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtains the self-capacitance data and mutual-capacitance data of the touch screen; and performs fingerprint recognition based on the self-capacitance data and mutual-capacitance data. Thus, through the above method, if there is no pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process of the touch screen, fingerprint recognition can be directly performed based on the self-capacitance data and mutual-capacitance data of the touch screen, avoiding ignoring the self-capacitance data and failing to accurately identify the pressing event, so as to improve the accuracy and reliability of fingerprint recognition.

[0071] See also Figure 6 , shows a flow chart of a fingerprint recognition method provided by another embodiment of the present application. This embodiment provides a fingerprint recognition method that can be applied to an electronic device, wherein the electronic device includes a touch screen. The method includes:

[0072] Step S410: When the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, detect whether there is a screen state switching event.

[0073] The specific implementation of step S410 may refer to the relevant description of step S110 in the aforementioned embodiment, which will not be repeated here.

[0074] Step S420: If there is a screen state switching event, detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process.

[0075] The specific implementation of step S420 may refer to the relevant description of step S120 in the aforementioned embodiment, which will not be repeated here.

[0076] Step S430: if there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, the mutual capacitance data of the touch screen is obtained.

[0077] The specific implementation of step S430 may refer to the relevant description of step S130 in the aforementioned embodiment, which will not be repeated here.

[0078] Step S440: performing fingerprint recognition based on the mutual capacitance data while the fingerprint recognition area is in a pressing process, wherein the pressing process includes a pressing and pressing state.

[0079] In the implementation manner of the present application, fingerprint recognition based on the mutual capacitance data actually means that when the fingerprint recognition area is in the pressing process, fingerprint recognition is performed based on the mutual capacitance data, and the pressing process includes pressing and pressing state. The pressing process here can be understood as the fingerprint unlocking process. That is, in the fingerprint unlocking process, only mutual capacitance signals are used for fingerprint recognition, and in other cases, fingerprint recognition is restored using self-capacitance signals and mutual capacitance signals (including judging the finger pressing state and fingerprint type recognition, fingerprint type recognition is to identify whether the fingerprint is correct, whether it is a preset fingerprint type, etc.).

[0080] In this embodiment, it is possible to determine whether the fingerprint recognition area is in the pressing process based on the mutual capacitance data. Specifically, it is possible to determine whether the mutual capacitance data is greater than a mutual capacitance threshold. The specific value of the mutual capacitance threshold may not be limited, for example, the mutual capacitance threshold may be 150 or other values.

[0081] Optionally, if the mutual capacitance data is greater than or equal to the mutual capacitance threshold, then it can be determined that the fingerprint recognition area is in a pressing process (i.e., in a pressed and pressed state); and if the mutual capacitance data is less than the mutual capacitance threshold, then it can be determined that the fingerprint recognition area is in a lifted state (i.e., not in a pressing process).

[0082] The fingerprint recognition method provided in this embodiment detects whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; if there is a screen state switching event, detects whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtains the mutual capacitance data of the touch screen; when the fingerprint recognition area is in the pressing process, fingerprint recognition is performed based on the mutual capacitance data, and the pressing process includes pressing and pressing state. Therefore, through the above method, if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process of the touch screen, only the mutual capacitance data of the touch screen can be obtained, and fingerprint recognition can be performed based on the mutual capacitance data, thereby avoiding the phenomenon that the pressing operation cannot be accurately recognized due to self-capacitance abnormality caused by display signal changes during the screen state switching process, thereby improving the user experience.

[0083] At the same time, by judging whether the fingerprint recognition area is in the pressing process based on mutual capacitance data, accurate recognition of the pressing state can be achieved, avoiding the self-capacitance signal from identifying it as a non-pressing state, thereby improving the effectiveness of fingerprint recognition.

[0084] See also Figure 7 , is a structural block diagram of a fingerprint recognition device provided in an embodiment of the present application. This embodiment provides a fingerprint recognition device 500, which can be operated on an electronic device. The electronic device includes a touch screen. The device 500 includes a first detection module 510, a second detection module 520, a capacitance data acquisition module 530 and a fingerprint recognition module 540:

[0085] The first detection module 510 is used to detect whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on.

[0086] Optionally, the device 500 may further include a status information acquisition module for obtaining the current flag bit status of the register corresponding to the under-screen fingerprint recognition function of the touch screen before detecting whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; and determining whether the under-screen fingerprint recognition function is in an on state based on the flag bit status.

[0087] The second detection module 520 is configured to detect whether there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process if there is a screen state switching event.

[0088] The capacitance data acquisition module 530 is used to acquire mutual capacitance data of the touch screen if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process.

[0089] As an implementation, the capacitance data acquisition module 530 can be used to obtain the mutual capacitance data of the touch screen if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, and the pressing position is within the preset channel range of the touch screen.

[0090] The fingerprint recognition module 540 is configured to perform fingerprint recognition based on the mutual-capacity data.

[0091] As an implementation manner, the fingerprint recognition module 540 may be configured to perform fingerprint recognition based on the mutual capacitance data when the fingerprint recognition area is in a pressing process, and the pressing process includes a pressing and pressing state.

[0092] Optionally, the device 500 may further include a judgment module for performing fingerprint recognition based on the mutual capacitance data when the fingerprint recognition area is in a pressing process, and the pressing process includes pressing and before the pressing state, judging whether the fingerprint recognition area is in a pressing process based on the mutual capacitance data.

[0093] As an implementation method, the capacitance data acquisition module 530 can be used to obtain the self-capacitance data and mutual-capacitance data of the touch screen in response to the pressing operation on the fingerprint recognition area of ​​the touch screen if there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, before obtaining the mutual-capacitance data of the touch screen, if there is no screen state switching event. In this way, the fingerprint recognition module 540 can be used to perform fingerprint recognition based on the self-capacitance data and mutual-capacitance data.

[0094] As an implementation method, the capacitance data acquisition module 530 can be used to acquire the self-capacitance data and mutual-capacitance data of the touch screen if there is no pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process. In this way, the fingerprint recognition module 540 can be used to perform fingerprint recognition based on the self-capacitance data and mutual-capacitance data.

[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0096] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0097] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0098] See also Figure 8 Based on the above-mentioned fingerprint recognition method and device, the embodiment of the present application also provides an electronic device 100 that can execute the above-mentioned fingerprint recognition method. The electronic device 100 includes a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, and the memory 102 and the processor 104 are connected by a communication line. The memory 102 stores a program that can execute the content of the above-mentioned embodiment, and the processor 104 can execute the program stored in the memory 102.

[0099] Among them, the processor 104 may include one or more processing cores. The processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 102, and calling data stored in the memory 102. Optionally, the processor 104 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 104 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 104, but may be implemented separately through a communication chip.

[0100] The memory 102 may include a random access memory (RAM) or a read-only memory (ROM). The memory 102 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the aforementioned embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0101] Please refer to Fig. 9 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 600 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0102] The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.

[0103] In summary, the embodiments of the present application provide a fingerprint recognition method, device, electronic device and storage medium. The method is applied to an electronic device, and the electronic device includes a touch screen. The method detects whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; if there is a screen state switching event, detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtain the mutual capacitance data of the touch screen; and perform fingerprint recognition based on the mutual capacitance data. Therefore, through the above method, if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process of the touch screen, only the mutual capacitance data of the touch screen can be obtained, and fingerprint recognition can be performed based on the mutual capacitance data, thereby avoiding the phenomenon that the pressing operation cannot be accurately recognized due to the abnormal self-capacitance caused by the change of the display signal during the screen state switching process, thereby improving the user experience.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A fingerprint recognition method, characterized in that: Applied to an electronic device, the electronic device includes a touch screen, and the method includes: When the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, detecting whether there is a screen state switching event; If there is a screen state switching event, detecting whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; If there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtaining mutual capacitance data of the touch screen; Fingerprint recognition is performed based on the mutual compatibility data.

2. The method according to claim 1, characterized in that If there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, before acquiring the mutual capacitance data of the touch screen, the method further includes: If there is no screen state switching event, in response to a pressing operation on a fingerprint recognition area of ​​the touch screen, obtaining self-capacitance data and mutual-capacitance data of the touch screen; Fingerprint recognition is performed based on the self-capacity data and the mutual-capacity data.

3. The method according to claim 1, characterized in that If there is a pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtaining the mutual capacitance data of the touch screen includes: If there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process, and the pressing position is located within the preset channel range of the touch screen, the mutual capacitance data of the touch screen is obtained.

4. The method according to claim 1, characterized in that: Before performing fingerprint recognition based on the mutual-capacity data, the method further includes: If there is no pressing event on the fingerprint recognition area of ​​the touch screen during the screen state switching process, obtaining self-capacitance data and mutual-capacitance data of the touch screen; Fingerprint recognition is performed based on the self-capacity data and the mutual-capacity data.

5. The method according to claim 1, characterized in that: When the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on, before detecting whether there is a screen state switching event, the method further includes: Obtain the current flag bit status of the register corresponding to the under-screen fingerprint recognition function of the touch screen; Determine whether the under-screen fingerprint recognition function is in an enabled state based on the flag bit status.

6. The method according to any one of claims 1 to 5, characterized in that: The fingerprint identification based on the mutual compatibility data includes: When the fingerprint recognition area is in a pressing process, fingerprint recognition is performed based on the mutual capacitance data, and the pressing process includes a pressing and pressing state.

7. The method according to claim 6, characterized in that When the fingerprint recognition area is in a pressing process, fingerprint recognition is performed based on the mutual capacitance data, and the pressing process includes pressing and before the pressing state, the method further includes: It is determined whether the fingerprint recognition area is in a pressing process based on the mutual capacitance data.

8. A fingerprint recognition device, characterized in that: The device is operated on an electronic device, wherein the electronic device includes a touch screen, and the device includes: A first detection module, configured to detect whether there is a screen state switching event when the touch screen is in a black screen state and the under-screen fingerprint recognition function is turned on; A second detection module is used to detect whether there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process if there is a screen state switching event; A capacitance data acquisition module, used for acquiring mutual capacitance data of the touch screen if there is a pressing event acting on the fingerprint recognition area of ​​the touch screen during the screen state switching process; A fingerprint recognition module is used to perform fingerprint recognition based on the mutual capacity data.

9. An electronic device, characterized in that: including one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, wherein when the program codes are executed by a processor, the method according to any one of claims 1 to 7 is executed.