WO2023225815A1 - Fingerprint recognition method and apparatus, and terminal device - Google Patents

Fingerprint recognition method and apparatus, and terminal device Download PDF

Info

Publication number
WO2023225815A1
WO2023225815A1 PCT/CN2022/094528 CN2022094528W WO2023225815A1 WO 2023225815 A1 WO2023225815 A1 WO 2023225815A1 CN 2022094528 W CN2022094528 W CN 2022094528W WO 2023225815 A1 WO2023225815 A1 WO 2023225815A1
Authority
WO
WIPO (PCT)
Prior art keywords
collection
fingerprint
brightness value
map
display screen
Prior art date
Application number
PCT/CN2022/094528
Other languages
French (fr)
Chinese (zh)
Inventor
阳平
曾杰民
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to CN202280001423.8A priority Critical patent/CN115136210B/en
Priority to PCT/CN2022/094528 priority patent/WO2023225815A1/en
Publication of WO2023225815A1 publication Critical patent/WO2023225815A1/en

Links

Images

Classifications

    • 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
    • G06V40/1318Sensors therefor using electro-optical elements or layers, e.g. electroluminescent sensing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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

Definitions

  • the present application relates to the field of image processing technology, and in particular to a fingerprint identification method, device and terminal equipment.
  • the principle of under-screen optical fingerprint recognition is as follows: the user's finger presses the organic light-emitting diode (OLED) screen, causing the light emitted by the OLED screen to illuminate the finger fingerprint area, illuminating the fingerprint area. The reflected light returns to the sensor under the screen through the gaps in the pixels of the OLED screen, thereby collecting a fingerprint image. The fingerprint image is compared and analyzed with the fingerprint images already stored in the database, and the screen is unlocked after matching recognition is determined.
  • OLED organic light-emitting diode
  • under-screen optical fingerprint recognition has requirements for the brightness of the fingerprint spot.
  • the brightness of the spot does not meet the requirements, it will affect the success rate of fingerprint recognition, resulting in a low success rate of screen unlocking.
  • Embodiments of the present application provide a fingerprint identification method, device and terminal equipment to improve the success rate of fingerprint identification.
  • the first aspect of this application provides a fingerprint identification method, including:
  • a fingerprint identification pattern is collected, and the fingerprint identification pattern is used for screen unlocking of the display screen.
  • determining whether to enter the identification map collection process based on the fingerprint pre-collection map and preset pre-collection end conditions includes:
  • the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
  • determining whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value includes:
  • the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value it is determined whether the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement; if the pre-collection brightness value of the fingerprint pre-collection map is If the brightness value meets the preset brightness requirements, it is determined to enter the identification map collection process;
  • the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process, and the pre-collection end condition also includes the maximum number of pre-collection map frames.
  • the preset brightness requirement is characterized by the following formula:
  • A2 is the pre-collection target brightness value
  • A1 is the pre-collection brightness value of the fingerprint pre-collection image
  • H2 is a preset threshold.
  • H2 0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition.
  • determining whether to enter the identification map collection process based on the total number of frames of the fingerprint pre-collection map and the maximum number of frames of the pre-collection map includes:
  • the method further includes:
  • the target value update conditions include: the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the fingerprint recognition image brightness value is less than a set brightness threshold.
  • updating the pre-collection target brightness value includes: updating the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map.
  • updating the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map includes:
  • pre-collection target brightness value is equal to 0, then assign the pre-collection brightness value of the fingerprint pre-collection map to the pre-collection target brightness value;
  • the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value.
  • the touch area is greater than the preset area threshold and the brightness value of the fingerprint identification image is less than the set brightness threshold, the number of interval updates of the pre-collection target brightness value is increased by 1. .
  • the method also includes:
  • the current interval update number of the pre-collection target brightness value is set to 0.
  • the pre-collection brightness value of the fingerprint pre-collection map and the average brightness value of the pre-collection target brightness value are assigned Give the pre-acquisition target brightness value, including:
  • the pre-sampling brightness value of the fingerprint pre-sampling map and the average brightness value of the pre-sampling target brightness value are assigned to the pre-sampling target brightness value.
  • the pre-acquisition target brightness value is specified; or
  • the current interval update times of the pre-collection target brightness value are less than or equal to the preset interval update times threshold, then continue to determine based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. Whether the target value update conditions are met.
  • the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map.
  • the method further includes: when a touch operation targeting the fingerprint recognition area on the display screen is detected,
  • the fingerprint pre-collection image is collected.
  • the method before determining whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, the method further includes :
  • the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
  • the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
  • a second aspect of this application provides a fingerprint identification device, including:
  • a collection module used to collect fingerprint pre-collection images when a touch operation targeting the fingerprint recognition area on the display screen is detected
  • a processing module configured to determine whether to enter the identification map collection process based on the fingerprint pre-collection map and preset pre-collection end conditions, where the pre-collection end conditions include the pre-collection target brightness value;
  • the collection module is also configured to collect a fingerprint identification pattern after entering the identification pattern collection process, and the fingerprint identification pattern is used to unlock the screen of the display screen.
  • the processing module is specifically used to:
  • the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
  • processing module is specifically used for:
  • the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirements, it is determined to enter the identification map collection process
  • the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process, and the pre-collection end condition also includes the maximum number of pre-collection map frames.
  • the preset brightness requirement is characterized by the following formula:
  • A2 is the pre-collection target brightness value
  • A1 is the pre-collection brightness value of the fingerprint pre-collection image
  • H2 is a preset threshold.
  • H2 0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition.
  • the processing module is specifically used to:
  • the processing module is also used to:
  • the target value update conditions include: the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the fingerprint recognition image brightness value is less than a set brightness threshold.
  • the processing module is specifically configured to update the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map.
  • processing module is specifically used for:
  • the pre-collection brightness value of the pattern pre-collection image is assigned to the pre-collection target brightness value
  • the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value.
  • the touch area is greater than the preset area threshold and the brightness value of the fingerprint identification image is less than the set brightness threshold, the number of interval updates of the pre-collection target brightness value is increased by 1. .
  • the processing module is also configured to set the current interval update number of the pre-collection target brightness value to 0 after the pre-collection target brightness value is updated.
  • processing module is specifically used for:
  • the pre-sampling brightness value of the fingerprint pre-sampling map and the average brightness value of the pre-sampling target brightness value are assigned to the pre-sampling target brightness value.
  • the pre-acquisition target brightness value is specified; or
  • the current interval update times of the pre-collection target brightness value are less than or equal to the preset interval update times threshold, then continue to determine based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. Whether the target value update conditions are met.
  • the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map.
  • the processing module is also configured to detect a touch operation on the fingerprint recognition area on the display screen
  • the fingerprint pre-collection image is collected.
  • the processing module before determining whether the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, the processing module Also used for:
  • the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
  • the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
  • the third aspect of this application provides a terminal device, including:
  • a display screen, a touch control module, and a fingerprint recognition device provided below the display screen;
  • the touch control module is used to monitor touch operations above the display screen
  • the fingerprint identification device is the fingerprint identification device described in the second aspect.
  • the fingerprint identification method, device and terminal equipment provided by this application first collect at least one frame of fingerprint pre-collection image before officially collecting the fingerprint identification image, and use the preset pre-collection end conditions, such as the brightness value of the pre-collection target to judge the fingerprint pre-collection.
  • the brightness of the image refers to whether the brightness of the fingerprint spot reaches the target brightness.
  • the fingerprint recognition image is triggered to be collected, that is, the recognition image collection process is entered. This can ensure the quality of the fingerprint recognition image and improve the efficiency of fingerprint recognition. Unlock success rate.
  • Figure 1 is a front view of a terminal device provided by an embodiment of the present application.
  • Figure 2 is a schematic cross-sectional view of the terminal equipment shown in Figure 1 along the tangent line AA';
  • FIG. 3 is a schematic flow chart of Embodiment 1 of the fingerprint identification method provided by the embodiment of the present application.
  • Figure 4 is a schematic diagram of the size relationship between the fingerprint pre-collection map and the fingerprint identification map
  • FIG. 5 is a schematic flow chart of Embodiment 2 of the fingerprint identification method provided by the embodiment of this application;
  • FIG. 6 is a schematic flow chart of Embodiment 3 of the fingerprint identification method provided by the embodiment of the present application.
  • FIG. 7 is a schematic flow chart of Embodiment 4 of the fingerprint identification method provided by the embodiment of the present application.
  • Figure 8 is a schematic flow chart of Embodiment 5 of the fingerprint identification method provided by the embodiment of the present application.
  • Figure 9 is a schematic diagram showing the brightness of the fingerprint pre-collection image and/or the fingerprint identification image changing with time
  • Figure 10 is a schematic structural diagram of a fingerprint identification device provided by an embodiment of the present application.
  • Fingerprint recognition is one of the more effective and commonly used ones.
  • terminal devices with displays users expect a high screen-to-body ratio, and under-screen optical fingerprint recognition solutions can meet both information security and high screen-to-body ratio requirements.
  • the conception process of the technical solution of this application is as follows: in the fingerprint recognition scenario, by adding a pre-map process before the identification map collection process, specifically, by presetting a variable pre-collection process in the pre-map process. Collect the target brightness value to determine that the fingerprint pre-collection map collected during the pre-collection process meets the brightness requirements. Only when the brightness meets the requirements will the fingerprint identification map collection process be entered, thereby ensuring the quality of the fingerprint identification map. Furthermore, in order to more accurately control the timing of entering the fingerprint identification process from the pre-acquisition process, the update process of the pre-acquisition target brightness value can also be added after the fingerprint identification process, thereby further improving the pre-acquisition process used in the pre-acquisition process. The accuracy of the target brightness value.
  • embodiments of the present application provide a fingerprint identification method.
  • the preset pre-acquisition end conditions are used, such as the pre-acquisition target brightness value.
  • Determine the brightness of the fingerprint pre-acquisition image that is, whether the brightness of the fingerprint spot reaches the target brightness.
  • trigger the acquisition of the fingerprint identification image that is, enter the identification image collection process, thus ensuring the quality of the fingerprint identification image, and thus enabling Improve the unlocking success rate of fingerprint recognition.
  • the fingerprint identification method provided by the embodiment of the present application can mainly be applied to the field of optical fingerprint identification. Furthermore, it can be specifically applied to various terminal devices that use optical fingerprint recognition, such as mobile computing devices such as smartphones, laptops, tablets, and game devices, as well as electronic databases, cars, and bank automated teller machines (automated teller machines, ATMs). and other terminal devices that require fingerprint recognition.
  • mobile computing devices such as smartphones, laptops, tablets, and game devices
  • electronic databases such as cars, and bank automated teller machines (automated teller machines, ATMs).
  • ATMs bank automated teller machines
  • Figure 1 is a front view of a terminal device provided by an embodiment of the present application.
  • the front of a commonly used terminal device 10 (such as a mobile phone) includes a display screen 100, in which a fingerprint recognition area 101 for fingerprint recognition is provided. Fingerprint recognition is performed when the user's finger 102 touches the fingerprint recognition area 101. process.
  • the display screen 100 may be a touch screen, that is, the display screen 100 has a touch control module (not shown) at least in part of the fingerprint identification area 101 or in the entire area of the display screen. (out), the touch control module is used to monitor touch operations on the display screen 100. Specifically, it can be used to determine whether the user's finger 102 touches the fingerprint recognition area 101.
  • the touch control function of the touch control module can be configured by a capacitor. Touch control or resistive touch control or pressure-sensitive touch control implementation, including but not limited to this.
  • FIG. 2 is a schematic cross-sectional view of the terminal equipment shown in Figure 1 along the tangent line AA'.
  • a fingerprint identification device 103 is deployed inside the display screen 100 and at a corresponding position of the fingerprint identification area 101 .
  • the fingerprint identification device 103 is used to collect fingerprints when the touch control module determines that the user's finger 102 touches the fingerprint identification area 101 .
  • Pre-collection map and/or fingerprint recognition map the fingerprint recognition map is used for fingerprint recognition to complete fingerprint unlocking or payment.
  • the fingerprint identification device 103 may be an optical fingerprint identification device.
  • the excitation light source illuminates the user's finger 102 and is reflected by the user's finger 102 to form a fingerprint light signal carrying the fingerprint information of the finger, and then the fingerprint
  • the optical signal passes through the display screen 100, is detected by the fingerprint identification device 103, and is then used for fingerprint identification.
  • the excitation light source may be the light-emitting unit of the display screen 100 or an additional light source.
  • the terminal device 10 may also include a signal processing module (not shown) inside. The signal processing module is used to perform fingerprint recognition based on the collected fingerprint pre-collection map and/or fingerprint identification map.
  • the fingerprint identification scheme proposed in this application uses a short exposure time to quickly collect the fingerprint pre-collection image of the fingerprint identification area before officially collecting the fingerprint identification image, and further analyzes the brightness of the fingerprint pre-collection image to determine Whether the brightness of the fingerprint pre-collection image meets the requirements.
  • FIG. 1 and FIG. 2 are only schematic structural diagrams provided by the embodiment of the present application.
  • the embodiment of the present application does not limit the components shown in FIG. The position relationship is limited, which can be set according to actual scenarios and needs, and will not be described here.
  • multiple refers to two or more.
  • “And/or” describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character “/” generally indicates that the related objects are in an "or” relationship.
  • FIG 3 is a schematic flow chart of Embodiment 1 of the fingerprint identification method provided by the embodiment of the present application. As shown in Figure 3, the fingerprint identification method specifically includes the following steps:
  • the user's identity can be verified through fingerprint recognition in scenarios such as unlocking, payment, and logging in to certain applications.
  • the user fingerprint collection process is performed first.
  • the terminal device when entering a fingerprint recognition scenario such as mobile payment, the terminal device prompts the user to perform fingerprint recognition.
  • the prompt method may be to light up part of the fingerprint recognition area on the display screen, or to provide a text reminder on the display screen, etc. , including but not limited to the above prompt methods.
  • the touch control module triggers the start of fingerprint recognition when it detects that the finger touches the surface of the fingerprint recognition area. , that is, execute the pre-collection map collection process and collect the fingerprint pre-collection map.
  • the light-emitting unit of the fingerprint recognition area on the display screen emits light, so that the fingerprint pre-collection map can be collected based on the preset fingerprint pre-collection conditions, that is, the fingerprint pre-collection map can be collected based on the preset fingerprint pre-collection conditions. Constraints on fingerprint pre-collection, such as pre-collection exposure time, image size of the pre-collection map, etc.
  • the formal image used for fingerprint identification may be called a fingerprint identification picture or a formal picture
  • at least one temporary picture for pre-collection may be called a pre-collection picture or a fingerprint pre-collection picture. This embodiment does not apply to The specific name of the image is qualified.
  • the pre-collection brightness value of the fingerprint pre-collection map can be used to reflect the brightness of the fingerprint spot on the display screen, which is the brightness of the fingerprint recognition area on the display screen.
  • the fingerprint pre-collection conditions can be preset. Therefore, when a touch operation on the fingerprint identification area is detected, the fingerprint pre-collection map collection process can be executed based on the fingerprint pre-collection condition.
  • the pre-collection end condition includes the pre-collection target brightness value.
  • the pre-mining end condition can be preset, that is, the timing to exit the pre-mining map collection process and the timing to enter the identification map collection process can be determined based on the pre-mining end condition.
  • the pre-collection end condition may include a pre-collection target brightness value, which is a preset variable that can be used to measure the brightness of the fingerprint pre-collection map. Normally, when the terminal device is restarted or powered on, the pre-acquisition target brightness value is equal to 0.
  • the brightness value of the pre-collection target is equal to 0, then it is determined to exit the pre-collection map collection process and enter the identification map collection process; if the brightness value of the pre-collection target is not equal to 0 (greater than 0), then according to the pre-collection target
  • the brightness value and the pre-collection brightness value of the fingerprint pre-collection map determine whether to exit the pre-collection map collection process and enter the identification map collection process.
  • the embodiment of the present application can collect at least one frame of fingerprint pre-sampling image for judgment. For example, when the pre-sampling target brightness value is equal to 0 or the brightness of the collected one-frame fingerprint pre-sampling image meets the brightness requirements, Then only one frame of fingerprint pre-collection map is collected. Therefore, the solution of increasing the pre-collection map collection process in this embodiment is less time-consuming and has less impact on the identification map collection process.
  • the fingerprint sensor installed under the display screen can collect the fingerprint identification image, and compare the fingerprint identification image with the pre-stored fingerprint image to determine whether the fingerprint identification is successful, and then determine whether the fingerprint identification image is successful. Whether the screen unlocking of the display is successful.
  • the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map. time.
  • FIG. 4 is a schematic diagram of the size relationship between the fingerprint pre-collection map and the fingerprint identification map.
  • the size of the fingerprint pre-collection image is X1*Y1
  • the size of the fingerprint identification image is X2*Y2.
  • the size relationship between the two is shown in Figure 4. That is, the size of the fingerprint pre-collection image is smaller than the size of the fingerprint recognition image. That is, X1 ⁇ X2, Y1 ⁇ Y2.
  • the size of the fingerprint identification map can be the size of the image converted into the light signal collected by the sensing area of the fingerprint sensor
  • the size of the fingerprint pre-collection map can be the image formed by converting the light signal collected by part of the sensing area of the fingerprint sensor. size of.
  • the fingerprint pre-acquisition image is used to determine whether the fingerprint spot meets the highlight requirements, that is, the brightness requirements required for fingerprint recognition. It is not directly used for fingerprint recognition, so a complete fingerprint image is not required. This setting can improve the ability to determine the brightness of the fingerprint spot. efficiency and improve user experience.
  • the center of the fingerprint pre-acquisition image is calculated during the mass production test of the terminal device. It is the optical center of the fingerprint spot, that is, the position with the maximum brightness. It is not the center of the fingerprint recognition image.
  • the pre-collection exposure time and pre-collection map size of the fingerprint pre-collection map need to be set according to actual needs, which will not be described here.
  • a fingerprint pre-collection map is collected, and based on the fingerprint pre-collection map and the preset pre-collection end condition, it is determined whether to enter the identification map During the collection process, and after entering the identification map collection process, a fingerprint identification map is collected, and the fingerprint identification map is used to unlock the display screen.
  • the fingerprint identification map can be triggered to be collected after the brightness of the fingerprint pre-collection map (i.e., the fingerprint spot brightness) reaches the target brightness, thereby ensuring that the fingerprint identification map is The quality can thereby improve the unlocking success rate of fingerprint recognition.
  • FIG. 5 is a schematic flowchart of Embodiment 2 of the fingerprint identification method provided by the embodiment of the present application. As shown in Figure 5, in this embodiment, the above S302 can be implemented through the following steps:
  • determining whether to enter the identification map collection process based on the fingerprint pre-collection map and the preset pre-collection end conditions includes:
  • the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
  • a judgment process is performed every time a fingerprint pre-image is collected. This judgment process is used to determine whether to exit the pre-image collection process and enter the fingerprint identification map collection process.
  • the fingerprint identification device collects a frame of fingerprint pre-collection image, and then can calculate the pre-collection brightness value of the fingerprint pre-collection image.
  • the pre-collection end condition includes the pre-collection target brightness value. Therefore, when a frame of fingerprint pre-collection image is obtained, it can first be based on whether the pre-collection target brightness value is equal to 0. The judgment results are used to determine subsequent operations.
  • the preset pre-collection target brightness value is equal to 0, that is, regardless of the brightness of the fingerprint pre-collection map, you can exit the pre-collection map collection process and enter the identification map collection process.
  • the pre-collection brightness value of the fingerprint pre-collection map is usually greater than 0, and this embodiment does not limit the brightness value of the fingerprint pre-collection map.
  • S503. Determine whether to enter the identification map collection process according to the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
  • the pre-collection brightness value of the fingerprint pre-collection image can be obtained by detection or calculation, and then based on the fingerprint pre-collection image
  • the pre-acquisition brightness value of the acquired image and the above-mentioned pre-acquisition target brightness value determine whether to enter the identification image acquisition process.
  • the brightest part in the fingerprint pre-collection image is usually the optical center of the fingerprint pre-collection image, that is, the pre-collection brightness value of the fingerprint pre-collection image is the brightness value of the optical center.
  • the optical center of the fingerprint pre-collection map is the optical center calculated during the mass production test of the terminal device, which is more accurate and reliable than the center of the fingerprint pre-collection map.
  • the pre-collection target brightness value when obtaining a currently collected frame of fingerprint pre-collection image, first determine whether the pre-collection target brightness value is equal to 0. If the pre-collection target brightness value is equal to 0, then directly enter the identification map collection process; if If the pre-collection target brightness value is not equal to 0, then it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
  • presetting the pre-sampling target brightness value and when the brightness of a frame of fingerprint pre-sampling image collected meets the requirements, only one frame of fingerprint pre-sampling image can be collected to enter the identification map collection process, which is time-consuming. Very little, and it will have even less impact on the collection of subsequent fingerprint identification maps.
  • Figure 6 is a schematic flowchart of Embodiment 3 of the fingerprint identification method provided by the embodiment of the present application.
  • determining whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value includes:
  • the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirements, it is determined to enter the identification map collection process
  • the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process.
  • the preset pre-collection target brightness value is not equal to 0, determine whether the pre-collection brightness value of the fingerprint pre-collection image meets the preset brightness requirement, and then perform subsequent operations based on the judgment result.
  • the preset brightness requirement can be characterized by the following formula:
  • A2 is the pre-collection target brightness value
  • A1 is the pre-collection brightness value of the fingerprint pre-collection image
  • H2 is the preset threshold. Therefore, the meaning of this formula is: if the pre-collection brightness value A1 of the fingerprint pre-collection image is greater than the pre-collection target brightness value A2, then the pre-collection brightness value A1 of the fingerprint pre-collection image is considered to meet the preset brightness requirements, or if the fingerprint pre-collection image
  • the percentage of the pre-acquisition brightness value A1 of the captured image that is less than the pre-acquisition target brightness value A2 is less than the preset threshold H2, that is, the difference between the pre-acquisition target brightness value A2 minus the fingerprint pre-acquisition image A1 and the percentage of the pre-acquisition target brightness value A2 If it is less than the preset threshold H2, it is considered that the pre-collection brightness value of the fingerprint pre-collection image meets the preset brightness requirements; otherwise, it is considered that the preset brightness requirements are not met.
  • H2 0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition. Under this threshold, the brightness of the fingerprint spot can be ensured to meet the needs of fingerprint recognition, ensure the effect of fingerprint recognition, and improve the user experience.
  • the pre-collection brightness value of the fingerprint pre-collection image is greater than 0.
  • the fingerprint identification device collects the fingerprint identification map for fingerprint recognition, that is, it can be used for display The screen of the screen is unlocked.
  • the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirements, the total number of frames of the fingerprint pre-collection map that has been collected is determined, and then it is determined whether to exit the pre-collection map collection process and enter Identification map collection process, or continue to collect fingerprint pre-collection maps.
  • S604. Determine whether to enter the identification map collection process based on the total number of fingerprint pre-collection frames and the maximum number of pre-collection frames.
  • the above pre-collection end condition also includes the maximum number of pre-collection image frames. Therefore, when the pre-collection target brightness value is not equal to 0, and the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirements, it can also be determined based on the total number of frames of the fingerprint pre-collection map collected during the pre-collection map collection process. Whether to exit the pre-collection map collection process and enter the fingerprint identification map collection process, or to continue collecting fingerprint pre-collection maps.
  • the pre-acquisition image collection process determines whether the total number of frames of fingerprint pre-acquisition images is greater than or equal to the maximum number of pre-acquisition image frames. For example, if the total number of frames of fingerprint pre-acquisition images is greater than or equal to the maximum number of pre-acquisition image frames, exit the pre-acquisition image collection process and determine to enter the identification map collection process; if the total number of frames of fingerprint pre-acquisition images is less than the maximum number of pre-acquisition images frame number, continue to execute the pre-collection image collection process, that is, continue to collect one frame of fingerprint pre-collection image, and perform the judgment process of each step in Figure 5 and Figure 6 until the pre-collection brightness of the last frame of fingerprint pre-collection image collected The value satisfies the pre-mining end conditions.
  • the preset maximum number of pre-capture image frames can be set to N1, that is, a maximum of N1 frames of fingerprint pre-capture images can be collected during the pre-capture image collection process, and a maximum of N1 loop processes can be executed.
  • N1 can be any value greater than 1, for example, 10, 20, or 100.
  • the embodiment of the present application does not limit the specific value of N1, which can be set according to actual requirements.
  • the pre-capture brightness value used specifically refers to the brightness value of the last frame of fingerprint pre-capture image.
  • the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value. If so, it is determined to enter the identification map. Collection process, if not, determine the total number of frames of fingerprint pre-collection images that have been collected, and determine whether to enter the identification map collection process based on the total number of frames of fingerprint pre-collection images and the maximum number of pre-collection image frames.
  • FIG. 7 is a schematic flowchart of Embodiment 4 of the fingerprint identification method provided by the embodiment of the present application. As shown in Figure 7, in this embodiment, the fingerprint identification method may also include the following steps:
  • fingerprint recognition or fingerprint unlocking can be performed, that is, the unlocking process of the display screen.
  • the fingerprint identification map is compared with the preset fingerprint information. If the fingerprint identification map matches the preset fingerprint information, it is determined that the fingerprint identification is successful, that is, the display screen is unlocked successfully; if the fingerprint identification map matches the preset fingerprint information If there is no match, it is determined that the fingerprint recognition failed, that is, the display screen unlocking failed.
  • the preset fingerprint information refers to the fingerprint feature information authorized before this fingerprint identification process, which is not limited in this embodiment.
  • a prompt message can be pushed.
  • the prompt message is used to prompt the user to perform fingerprint recognition again, and then re-implement the technical solution of this application, or prompt the user to end Fingerprint identification process.
  • the target value update conditions may include that the display screen is unlocked successfully, the touch area of fingerprint recognition is greater than the preset area threshold, and the brightness value of the fingerprint recognition image is less than the set brightness threshold. That is, when the display screen is unlocked successfully and the touch area and fingerprint recognition map brightness value meet the set conditions, it is considered that the pre-collection target brightness value meets the target value update condition, and the execution of the pre-collection target brightness value update process can be triggered, thereby enabling Ensure that the pre-acquisition target brightness value used in the pre-acquisition image collection process is more accurate.
  • This application can dynamically adjust the pre-acquisition target brightness value. Even if the display screen ages or the user changes fingers, the dynamic threshold can better reflect the accurate display brightness value/fingerprint spot brightness value, improving fingerprint recognition performance and user experience.
  • the touch area of fingerprint recognition and the brightness value of the fingerprint recognition image can be obtained to determine whether to update the pre-collection target brightness value, which can effectively ensure the dynamics and accuracy of the pre-collection target brightness value.
  • the touch area of fingerprint recognition can be interpreted as the pressing area or touch area of the user when performing fingerprint recognition. It can be the area of the area covered by the user's fingerprint during the fingerprint collection process, which is different from the area of the fingerprint recognition map.
  • the threshold for judging the highlight of the fingerprint spot (that is, the pre-acquisition target brightness value in this embodiment) is fixed.
  • this embodiment can update the pre-collected target brightness value when it meets the target value update condition, so that the dynamic threshold can better reflect the accurate display screen brightness value.
  • the current pre-collection brightness value meets the highlighting requirements, that is, the fingerprint spot meets the brightness requirements for fingerprint recognition. Therefore, only when the unlocking is successful, it is possible to update the pre-collection target brightness value, that is, Successful unlocking of the display is a constraint on updating the pre-acquisition target brightness value.
  • the touch area of fingerprint recognition is larger than the preset area threshold, which is a restriction for updating the pre-acquisition target brightness value. It can be considered that only when the touch area is larger than the preset area threshold, the fingerprint feature information contained in the collected fingerprint identification map will be complete and sufficient for fingerprint identification. Therefore, it is believed that the successful unlocking of the display is related to the spot brightness/image brightness. . Therefore, the touch area of fingerprint recognition is a condition for target value update.
  • Whether the brightness value of the fingerprint recognition image is less than the set brightness threshold is another restriction condition for updating the pre-acquisition target brightness value.
  • Setting the brightness threshold can be considered as the saturated brightness value of the fingerprint recognition image. If the brightness value of the fingerprint recognition image is greater than or equal to the set brightness threshold, that is, the fingerprint recognition device is saturated, it is considered that the brightness value of the fingerprint recognition image is a strong light value, and the current is a strong light environment. If the brightness value of the fingerprint recognition image is less than the set brightness value, If the brightness threshold is set, the brightness value of the fingerprint recognition image is considered to be a non-strong light value, and the current environment is a non-strong light environment.
  • the fingerprint recognition device may not be able to accurately complete fingerprint recognition after it is saturated, in this embodiment, it can be determined whether the brightness value of the fingerprint recognition image is less than the set brightness threshold, and when the brightness value of the fingerprint recognition image is less than the set brightness threshold, Only then is it possible to perform the update process of the pre-acquisition target brightness value.
  • the pre-collection target brightness value may be updated according to the pre-collection brightness value of the fingerprint pre-collection map.
  • the pre-collection target brightness value is updated according to the pre-collection brightness value of the last frame of the fingerprint pre-collection image in the above-mentioned multi-frame fingerprint pre-collection images.
  • the current value of the pre-sampling target brightness value is first determined, and an update method of the pre-sampling target brightness value is determined based on the current value of the pre-sampling target brightness value.
  • the pre-collection brightness value of the above-mentioned fingerprint pre-collection image is assigned to the pre-collection target brightness value.
  • the pre-collection brightness value of the last frame of the fingerprint pre-collection image in the above-mentioned multi-frame fingerprint pre-collection images is assigned to the pre-collection target brightness value.
  • the average brightness value of the pre-acquisition brightness value of the fingerprint pre-acquisition image and the pre-acquisition target brightness value is assigned to the pre-acquisition target brightness value.
  • the average of the pre-collection brightness value and the pre-collection target brightness value of the last frame of fingerprint pre-collection image in at least one frame of fingerprint pre-collection image will be used.
  • the brightness value is assigned to the pre-acquisition target brightness value.
  • the pre-acquisition target brightness value theory Updates can be made on.
  • the number of intervals between the current target value update condition and the last actual target value update can be counted (in this embodiment, it is called the number of interval updates).
  • the touch area of fingerprint recognition is greater than the preset area threshold and the brightness value of the fingerprint recognition image is less than the set brightness threshold
  • the number of interval updates of the pre-acquisition target brightness value can be increased by 1, and then the The updated interval update number is determined as the current interval update number of the pre-acquisition target brightness value.
  • the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value
  • the implementation plan can be as follows:
  • the average brightness value of the pre-acquisition brightness value of the fingerprint pre-acquisition map and the pre-acquisition target brightness value is assigned to the pre-acquisition target brightness value;
  • the current interval update times of the pre-acquisition target brightness value are less than or equal to the preset interval update times threshold, continue to determine whether the target value update conditions are met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. .
  • the interval update times threshold can be preset. Therefore, it can be judged whether the current interval update times is greater than the interval update times threshold; if the current interval update times is greater than the interval If the update times threshold is set, it is considered that the pre-acquisition target brightness value meets the target value update conditions, and the update operation of the pre-acquisition target brightness value can be performed; if the current interval update times are less than or equal to the interval update times threshold, it is considered that the pre-acquisition target brightness value has not been updated.
  • the interval update times threshold may be a value set according to actual requirements, for example, 5 times, 6 times, 10 times, etc., which is not limited in this embodiment.
  • the update method of the pre-collection target brightness value adopted in this embodiment can dynamically adjust the pre-collection target brightness value to adapt to the current environment or equipment needs, improve the accuracy and universality of the pre-collection target brightness value, and improve the success rate of fingerprint recognition in the future. Foundation.
  • the accuracy and universality of the pre-collected target brightness value can be improved, laying a foundation for subsequent improvement of the success rate of fingerprint recognition.
  • the unlocking success rate is relatively high when the screen is turned on and fingerprint recognition is entered.
  • the technical solution of this application can be used to deal with it. , which will not be described again in this embodiment.
  • the fingerprint identification method also includes: When touching the fingerprint recognition area on the display screen,
  • the process of pre-capture image collection will be entered to collect the fingerprint pre-capture image.
  • the status of the display screen is first judged.
  • the display screen is in a bright screen state, its fingerprint light spot generally meets the needs of fingerprint recognition, and the fingerprint recognition map collection process is directly entered. Only When the display screen is in the off-screen state, the fingerprint pre-collection image is collected to determine whether the current fingerprint light spot meets the needs of fingerprint recognition. This can further improve the efficiency of fingerprint recognition and improve the user experience.
  • the following uses a specific embodiment to explain the execution of the fingerprint identification method provided by the embodiment of the present application by entering the fingerprint identification scene from the screen-off state.
  • the pre-collection image collection process is skipped and the identification map collection process is directly entered; when the display screen is in the off-screen state, the pre-collection picture collection process is first entered to collect the fingerprint pre-collection map, and then Determine whether the fingerprint light spot meets the requirements for fingerprint identification. If it meets the requirements, it will enter the identification map collection process and complete the screen unlocking of the display, that is, fingerprint identification. When the fingerprint identification is completed, it will enter the pre-acquisition target brightness value update process as appropriate to ensure that the fingerprint Recognition performance and efficiency.
  • S701 it can also be determined whether S701 enters the screen unlocking process of the display screen from the on-screen state, or enters the screen unlocking process of the display screen in the off-screen state, for further confirmation. Whether to enter the pre-collection target brightness value update process, that is, confirm whether the pre-collection target brightness value needs to be updated.
  • the method before determining whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, the method further includes:
  • the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
  • the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
  • the pre-acquisition target brightness value is dynamically updated according to the target value update condition to improve the performance of fingerprint recognition; when the display screen is in the on-screen state, under normal circumstances, the fingerprint The brightness of the light spot can meet the requirements of fingerprint recognition.
  • the process can be ended directly after unlocking the display screen, improving the efficiency of fingerprint recognition.
  • the display screen enters fingerprint recognition from the bright screen state, and the pre-collection target brightness value can also be dynamically updated according to the target value update conditions.
  • FIG 8 is a schematic flowchart of Embodiment 5 of the fingerprint identification method provided by the embodiment of the present application.
  • the fingerprint identification method may include the following steps:
  • H2 0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition.
  • S821. Collect fingerprint identification images.
  • the exposure time of the fingerprint identification map is greater than the exposure time of the fingerprint pre-collection map, and the size of the fingerprint identification map is greater than the size of the fingerprint pre-collection map.
  • the exposure time of the fingerprint pre-capture image is short, for example, it can be 2ms.
  • the method also includes the following steps:
  • the target value update conditions include: the display screen is unlocked successfully, the touch area of fingerprint recognition is greater than the preset area threshold, and the brightness value of the fingerprint recognition image is less than the set brightness threshold.
  • the touch area of fingerprint recognition is greater than the preset area threshold, and the brightness value of the fingerprint recognition image is less than the set brightness threshold, the number of interval updates of the pre-collection target brightness value is increased by 1.
  • the pre-collection brightness value A1 of the fingerprint pre-collection image is assigned to the pre-collection target brightness value A2;
  • the average brightness value of the pre-capture brightness value A1 and the pre-capture target brightness value A2 of the fingerprint pre-capture image is assigned to the pre-capture target brightness value A2.
  • the average brightness value of the pre-collection brightness value A1 and the pre-collection target brightness value A2 of the fingerprint pre-collection image is assigned to the pre-collection target brightness value A2, including:
  • the average brightness value of the pre-acquisition brightness value A1 of the fingerprint pre-acquisition map and the pre-acquisition target brightness value A2 is assigned to the pre-acquisition Target brightness value A2;
  • the current interval update number n2 of the pre-acquisition target brightness value A2 is less than or equal to the preset interval update number threshold N2, continue to determine whether the target is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image. Value update condition.
  • FIG. 9 is a schematic diagram showing the brightness of the fingerprint pre-acquisition image and/or the fingerprint recognition image changing with time.
  • the brightness of the collected fingerprint pre-collection pictures is 0, for example, the fingerprint pre-collection picture 0 and the fingerprint pre-collection picture 1 in Figure 9; as the fingerprint pre-collection pictures
  • the brightness of the fingerprint spot in the fingerprint recognition area gradually becomes brighter, causing the brightness of the collected fingerprint pre-collection image to increase, for example, the fingerprint pre-collection image 2 to the fingerprint pre-collection image n-1
  • the brightness changes to the first brightness; then, for example, at 20 milliseconds, the light spot in the fingerprint recognition area becomes brighter, for example, the second brightness, and correspondingly, the brightness of the fingerprint pre-snap image increases, for example, the fingerprint pre-snap image
  • FIG 10 is a schematic structural diagram of a fingerprint identification device provided by an embodiment of the present application. As shown in Figure 10, the fingerprint identification device 1000 includes:
  • the acquisition module 1001 is used to collect a fingerprint pre-acquisition map when a touch operation targeting the fingerprint recognition area on the display screen is detected;
  • the collection module 1001 includes a pixel unit array.
  • the processing module 1002 is configured to determine whether to enter the identification map collection process based on the fingerprint pre-collection map and preset pre-collection end conditions, where the pre-collection end condition includes the pre-collection target brightness value;
  • the collection module 1001 is configured to collect a fingerprint identification pattern after entering the identification pattern collection process, and the fingerprint identification pattern is used to unlock the screen of the display screen.
  • the processing module 1002 is specifically used to:
  • the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
  • processing module 1002 is specifically used for:
  • the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value it is determined whether the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement; if the pre-collection brightness value of the fingerprint pre-collection map is If the brightness value meets the preset brightness requirements, it is determined to enter the identification map collection process;
  • the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process, and the pre-collection end condition also includes the maximum number of pre-collection map frames.
  • the preset brightness requirement is characterized by the following formula:
  • A2 is the pre-collection target brightness value
  • A1 is the pre-collection brightness value of the fingerprint pre-collection image
  • H2 is a preset threshold.
  • H2 0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition.
  • processing module 1002 is specifically used for:
  • processing module 1002 is also used to:
  • the target value update conditions include: the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the fingerprint recognition image brightness value is less than a set brightness threshold.
  • the processing module 1002 is specifically configured to update the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map.
  • processing module 1002 is specifically used for:
  • the pre-collection brightness value of the pattern pre-collection image is assigned to the pre-collection target brightness value
  • the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value.
  • the touch area is greater than the preset area threshold and the brightness value of the fingerprint identification image is less than the set brightness threshold, the number of interval updates of the pre-collection target brightness value is increased by 1. .
  • the processing module 1002 is also configured to set the current interval update number of the pre-collection target brightness value to 0 after the pre-collection target brightness value is updated.
  • the processing module 1002 is specifically configured to, if the current interval update number of the pre-acquisition target brightness value is greater than a preset interval update number threshold, combine the pre-acquisition brightness value of the fingerprint pre-acquisition map and the pre-acquisition brightness value. Assign the average brightness value of the pre-collection target brightness value to the pre-collection target brightness value; or
  • the current interval update times of the pre-collection target brightness value are less than or equal to the preset interval update times threshold, then continue to determine based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. Whether the target value update conditions are met.
  • the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map.
  • the fingerprint pre-acquisition image is used to determine whether the fingerprint spot meets the highlight requirements, that is, the brightness requirements required for fingerprint recognition. It is not directly used for fingerprint recognition, so a complete fingerprint image is not required. This setting can improve the ability to determine the brightness of the fingerprint spot. efficiency and improve user experience.
  • the processing module 1002 is also configured to directly enter the screen if a touch operation targeting the fingerprint recognition area on the display screen is detected and the display screen is in a bright screen state.
  • the identification map collection process if the display screen is in a screen-off state, the fingerprint pre-collection map is collected.
  • the processing module 1002 Before determining whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, the processing module 1002 is also used to:
  • the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
  • the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
  • the fingerprint identification device provided by the embodiments of the present application can be used to perform the fingerprint identification method in any of the above method embodiments. Its implementation principles and technical effects are similar, and will not be described in detail here.
  • a terminal device is also provided.
  • the terminal device includes:
  • a display screen, a touch control module, and a fingerprint recognition device provided below the display screen;
  • the fingerprint identification device is the fingerprint identification device shown in Figure 10.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Image Input (AREA)
  • Collating Specific Patterns (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

Embodiments of the present application provide a fingerprint recognition method and apparatus, and a terminal device. The fingerprint recognition method comprises: when a touch operation for a fingerprint recognition area on a display screen is monitored, collecting a fingerprint pre-collection graph, and determining whether to enter a recognition graph collection process according to the fingerprint pre-collection graph and a preset pre-collection end condition, wherein the pre-collection end condition comprises a pre-collection target brightness value; and once the recognition graph collection process is entered, collecting a fingerprint recognition graph, wherein the fingerprint recognition graph is used for unlocking the display screen. According to the technical solution, the quality of the fingerprint recognition graph can be ensured, thus increasing the unlocking success rate of fingerprint recognition.

Description

指纹识别方法、装置及终端设备Fingerprint identification method, device and terminal equipment 技术领域Technical field
本申请涉及图像处理技术领域,尤其涉及一种指纹识别方法、装置及终端设备。The present application relates to the field of image processing technology, and in particular to a fingerprint identification method, device and terminal equipment.
背景技术Background technique
随着全面屏终端设备的兴起和应用,越来越多的智能终端设备采用屏下光学指纹识别的方式进行屏幕解锁,以避免指纹采集窗影响终端设备的外观。With the rise and application of full-screen terminal devices, more and more smart terminal devices use under-screen optical fingerprint recognition to unlock the screen to prevent the fingerprint collection window from affecting the appearance of the terminal device.
在实际应用中,屏下光学指纹识别的原理为:用户手指按压有机发光二极管(Organic Light-Emitting Diode,OLED)屏幕,使得OLED屏幕所发出的光线将手指指纹区域照亮,照亮手指指纹的反射光线透过OLED屏幕像素的间隙返回到屏下的传感器上,从而采集到指纹图像,将该指纹图像与数据库中已存的指纹图像进行对比分析,进行匹配性识别判断后解锁屏幕。In practical applications, the principle of under-screen optical fingerprint recognition is as follows: the user's finger presses the organic light-emitting diode (OLED) screen, causing the light emitted by the OLED screen to illuminate the finger fingerprint area, illuminating the fingerprint area. The reflected light returns to the sensor under the screen through the gaps in the pixels of the OLED screen, thereby collecting a fingerprint image. The fingerprint image is compared and analyzed with the fingerprint images already stored in the database, and the screen is unlocked after matching recognition is determined.
由此可知,屏下光学指纹识别对指纹光斑的亮度有要求,当光斑亮度不满足要求,会影响指纹识别的成功率,进而造成屏幕解锁的成功率低。It can be seen that under-screen optical fingerprint recognition has requirements for the brightness of the fingerprint spot. When the brightness of the spot does not meet the requirements, it will affect the success rate of fingerprint recognition, resulting in a low success rate of screen unlocking.
发明内容Contents of the invention
本申请实施例提供一种指纹识别方法、装置及终端设备,以提升指纹识别的成功率。Embodiments of the present application provide a fingerprint identification method, device and terminal equipment to improve the success rate of fingerprint identification.
本申请第一方面提供一种指纹识别方法,包括:The first aspect of this application provides a fingerprint identification method, including:
在监测到针对显示屏上指纹识别区域的触控操作时,采集指纹预采图;When a touch operation targeting the fingerprint recognition area on the display screen is detected, a fingerprint pre-acquisition map is collected;
根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,所述预采结束条件包括预采目标亮度值;Determine whether to enter the identification map collection process according to the fingerprint pre-collection map and the preset pre-collection end condition, where the pre-collection end condition includes the pre-collection target brightness value;
在进入所述识别图采集过程后,采集指纹识别图,所述指纹识别图用于所述显示屏的屏幕解锁。After entering the identification pattern collection process, a fingerprint identification pattern is collected, and the fingerprint identification pattern is used for screen unlocking of the display screen.
在第一方面的一种可能实现方式中,所述根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,包括:In a possible implementation of the first aspect, determining whether to enter the identification map collection process based on the fingerprint pre-collection map and preset pre-collection end conditions includes:
若所述预采目标亮度值等于0,则确定进入识别图采集过程;If the brightness value of the pre-acquisition target is equal to 0, it is determined to enter the identification map collection process;
若所述预采目标亮度值大于0,则根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定是否进入识别图采集过程。If the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
可选的,所述根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定是否进入识别图采集过程,包括:Optionally, determining whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value includes:
根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定所述指纹预采图的预采亮度值是否满足预设亮度要求;若所述指纹预采图的预采亮度值满足预设亮度要求,则确定进入识别图采集过程;According to the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value, it is determined whether the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement; if the pre-collection brightness value of the fingerprint pre-collection map is If the brightness value meets the preset brightness requirements, it is determined to enter the identification map collection process;
若所述指纹预采图的预采亮度值未满足预设亮度要求,则确定已采集的指纹预采图总帧数,根据所述指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程,所述预采结束条件还包括所述最大预采图帧数。If the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process, and the pre-collection end condition also includes the maximum number of pre-collection map frames.
可选的,所述预设亮度要求通过如下公式表征:Optionally, the preset brightness requirement is characterized by the following formula:
(A2-A1)/A2<H2(A2-A1)/A2<H2
其中,A2是所述预采目标亮度值,A1是所述指纹预采图的预采亮度值,H2为预设阈值。Wherein, A2 is the pre-collection target brightness value, A1 is the pre-collection brightness value of the fingerprint pre-collection image, and H2 is a preset threshold.
可选的,H2的取值在0~1之间,例如H2=0.5,也就是说当(A2-A1)/A2的值小于0.5时,则被认为当前指纹光斑的亮度值满足高亮的要求,可以进入识别图采集过程,进行指纹识别图采集。可选的,H2=0.2,此时对于当前指纹光斑的亮度要求更高,进一步的能够提升后面进行指纹识别时的性能。Optional, the value of H2 is between 0 and 1, for example, H2=0.5, that is to say, when the value of (A2-A1)/A2 is less than 0.5, it is considered that the brightness value of the current fingerprint spot meets the requirement of highlighting. Requirements, you can enter the identification map collection process to collect fingerprint identification maps. Optional, H2=0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition.
在第一方面的一种可能实现方式中,所述根据所述指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程,包括:In a possible implementation of the first aspect, determining whether to enter the identification map collection process based on the total number of frames of the fingerprint pre-collection map and the maximum number of frames of the pre-collection map includes:
若所述指纹预采图总帧数大于或等于最大预采图帧数,则确定进入识别图采集过程;If the total number of frames of the fingerprint pre-collection images is greater than or equal to the maximum number of frames of the pre-acquisition images, it is determined to enter the identification map collection process;
若所述指纹预采图总帧数小于所述最大预采图帧数,则继续采集一帧指纹预采图。If the total number of frames of fingerprint pre-collection images is less than the maximum number of frames of pre-acquisition images, continue to collect one frame of fingerprint pre-acquisition images.
在第一方面的一种可能实现方式中,所述方法还包括:In a possible implementation of the first aspect, the method further includes:
基于所述指纹识别图和预设指纹信息,执行所述显示屏的屏幕解锁;Based on the fingerprint recognition map and preset fingerprint information, perform screen unlocking of the display screen;
根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;Determine whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image;
当满足目标值更新条件时,更新所述预采目标亮度值;或者When the target value update condition is met, update the pre-collection target brightness value; or
当不满足目标值更新条件时,结束流程。When the target value update conditions are not met, the process ends.
可选的,所述目标值更新条件,包括:所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值。Optionally, the target value update conditions include: the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the fingerprint recognition image brightness value is less than a set brightness threshold.
可选的,所述更新所述预采目标亮度值,包括:根据所述指纹预采图的预采亮度值更新所述预采目标亮度值。Optionally, updating the pre-collection target brightness value includes: updating the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map.
可选的,所述根据所述指纹预采图的预采亮度值更新所述预采目标亮度值,包括:Optionally, updating the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map includes:
若所述预采目标亮度值等于0,则将所述指纹预采图的预采亮度值赋值给所述预采目标亮度值;If the pre-collection target brightness value is equal to 0, then assign the pre-collection brightness value of the fingerprint pre-collection map to the pre-collection target brightness value;
若所述预采目标亮度值大于0,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值。If the pre-collection target brightness value is greater than 0, then the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value.
可选的,当所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值时,所述预采目标亮度值的间隔更新次数加1。Optionally, when the display screen is unlocked successfully, the touch area is greater than the preset area threshold and the brightness value of the fingerprint identification image is less than the set brightness threshold, the number of interval updates of the pre-collection target brightness value is increased by 1. .
可选的,所述方法还包括:Optionally, the method also includes:
在所述预采目标亮度值更新后,将所述预采目标亮度值的当前间隔更新次数置0。After the pre-collection target brightness value is updated, the current interval update number of the pre-collection target brightness value is set to 0.
在第一方面的一种可能设计中,所述若所述预采目标亮度值大于0,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值,包括:In a possible design of the first aspect, if the pre-collection target brightness value is greater than 0, then the pre-collection brightness value of the fingerprint pre-collection map and the average brightness value of the pre-collection target brightness value are assigned Give the pre-acquisition target brightness value, including:
若所述预采目标亮度值的当前间隔更新次数大于预置的间隔更新次数阈值,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值;或者If the current interval update number of the pre-sampling target brightness value is greater than the preset interval update times threshold, then the pre-sampling brightness value of the fingerprint pre-sampling map and the average brightness value of the pre-sampling target brightness value are assigned to the pre-sampling target brightness value. The pre-acquisition target brightness value is specified; or
若所述预采目标亮度值的当前间隔更新次数小于等于预置的间隔更新次数阈值,则继续根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件。If the current interval update times of the pre-collection target brightness value are less than or equal to the preset interval update times threshold, then continue to determine based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. Whether the target value update conditions are met.
在第一方面的一种可能设计中,所述指纹预采图小于所述指纹识别图,所述指纹预采图的曝光时间小于所述指纹识别图的曝光时间。In a possible design of the first aspect, the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map.
在第一方面的一种可能设计中,所述方法还包括:在监测到针对显示屏上指纹识别区域的触控操作时,In a possible design of the first aspect, the method further includes: when a touch operation targeting the fingerprint recognition area on the display screen is detected,
若所述显示屏为亮屏状态,则直接进入所述识别图采集过程;If the display screen is in a bright screen state, directly enter the identification map collection process;
若所述显示屏为灭屏状态,则采集所述指纹预采图。If the display screen is in a screen-off state, the fingerprint pre-collection image is collected.
在第一方面的一种可能设计中,在根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件之前,所述方法还包括:In a possible design of the first aspect, before determining whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, the method further includes :
若从显示屏灭屏状态进入识别图采集过程,则根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;或者If the display screen is turned off and the identification map collection process is entered, it is determined whether the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
若从显示屏亮屏状态进入识别图采集过程,则结束流程;If the identification map collection process is entered from the display screen-on state, the process ends;
其中,所述显示屏亮屏状态或者所述显示屏灭屏状态是在监测到针对显示屏上指纹识别区域的触控操作时显示屏的状态。Wherein, the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
本申请的第二方面提供一种指纹识别装置,包括:A second aspect of this application provides a fingerprint identification device, including:
采集模块,用于在监测到针对显示屏上指纹识别区域的触控操作时,采集指纹预采图;A collection module used to collect fingerprint pre-collection images when a touch operation targeting the fingerprint recognition area on the display screen is detected;
处理模块,用于根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,所述预采结束条件包括预采目标亮度值;A processing module configured to determine whether to enter the identification map collection process based on the fingerprint pre-collection map and preset pre-collection end conditions, where the pre-collection end conditions include the pre-collection target brightness value;
所述采集模块,还用于在进入所述识别图采集过程后,采集指纹识别图,所述指纹识别图用于所述显示屏的屏幕解锁。The collection module is also configured to collect a fingerprint identification pattern after entering the identification pattern collection process, and the fingerprint identification pattern is used to unlock the screen of the display screen.
在第二方面的一种可能实现方式中,所述处理模块,具体用于:In a possible implementation of the second aspect, the processing module is specifically used to:
若所述预采目标亮度值等于0,则确定进入识别图采集过程;If the brightness value of the pre-acquisition target is equal to 0, it is determined to enter the identification map collection process;
若所述预采目标亮度值大于0,则根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定是否进入识别图采集过程。If the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
可选的,所述处理模块,具体用于:Optional, the processing module is specifically used for:
根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定所述指纹预采图的预采亮度值是否满足预设亮度要求;Determine whether the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement according to the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value;
若所述指纹预采图的预采亮度值满足预设亮度要求,则确定进入识别图采集过程;If the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirements, it is determined to enter the identification map collection process;
若所述指纹预采图的预采亮度值未满足预设亮度要求,则确定已采集的指纹预采图总帧数,根据所述指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程,所述预采结束条件还包括所述最大预采图帧数。If the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process, and the pre-collection end condition also includes the maximum number of pre-collection map frames.
可选的,所述预设亮度要求通过如下公式表征:Optionally, the preset brightness requirement is characterized by the following formula:
(A2-A1)/A2<H2(A2-A1)/A2<H2
其中,A2是所述预采目标亮度值,A1是所述指纹预采图的预采亮度值, H2为预设阈值。Wherein, A2 is the pre-collection target brightness value, A1 is the pre-collection brightness value of the fingerprint pre-collection image, and H2 is a preset threshold.
可选的,H2的取值在0~1之间,例如H2=0.5,也就是说当(A2-A1)/A2的值小于0.5时,则被认为当前指纹光斑的亮度值满足高亮的要求,可以进入识别图采集过程,进行指纹识别图采集。可选的,H2=0.2,此时对于当前指纹光斑的亮度要求更高,进一步的能够提升后面进行指纹识别时的性能。Optional, the value of H2 is between 0 and 1, for example, H2=0.5, that is to say, when the value of (A2-A1)/A2 is less than 0.5, it is considered that the brightness value of the current fingerprint spot meets the requirement of highlighting. Requirements, you can enter the identification map collection process to collect fingerprint identification maps. Optional, H2=0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition.
在第二方面的一种可能实现方式中,所述处理模块,具体用于:In a possible implementation of the second aspect, the processing module is specifically used to:
若所述指纹预采图总帧数大于或等于最大预采图帧数,则确定进入识别图采集过程;If the total number of frames of the fingerprint pre-collection images is greater than or equal to the maximum number of frames of the pre-acquisition images, it is determined to enter the identification map collection process;
若所述指纹预采图总帧数小于所述最大预采图帧数,则继续采集一帧指纹预采图。If the total number of frames of fingerprint pre-collection images is less than the maximum number of frames of pre-acquisition images, continue to collect one frame of fingerprint pre-acquisition images.
在第二方面的一种可能实现方式中,所述处理模块,还用于:In a possible implementation of the second aspect, the processing module is also used to:
基于所述指纹识别图和预设指纹信息,执行所述显示屏的屏幕解锁;Based on the fingerprint recognition map and preset fingerprint information, perform screen unlocking of the display screen;
根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;Determine whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image;
当满足目标值更新条件时,更新所述预采目标亮度值;或者When the target value update condition is met, update the pre-collection target brightness value; or
当不满足目标值更新条件时,结束流程。When the target value update conditions are not met, the process ends.
可选的,所述目标值更新条件,包括:所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值。Optionally, the target value update conditions include: the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the fingerprint recognition image brightness value is less than a set brightness threshold.
可选的,所述处理模块,具体用于根据所述指纹预采图的预采亮度值更新所述预采目标亮度值。Optionally, the processing module is specifically configured to update the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map.
可选的,所述处理模块,具体用于:Optional, the processing module is specifically used for:
若所述预采目标亮度值等于0,则将所述纹预采图的预采亮度值赋值给所述预采目标亮度值;If the pre-collection target brightness value is equal to 0, then the pre-collection brightness value of the pattern pre-collection image is assigned to the pre-collection target brightness value;
若所述预采目标亮度值大于0,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值。If the pre-collection target brightness value is greater than 0, then the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value.
可选的,当所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值时,所述预采目标亮度值的间隔更新次数加1。Optionally, when the display screen is unlocked successfully, the touch area is greater than the preset area threshold and the brightness value of the fingerprint identification image is less than the set brightness threshold, the number of interval updates of the pre-collection target brightness value is increased by 1. .
可选的,所述处理模块,还用于在所述预采目标亮度值更新后,将所述预采目标亮度值的当前间隔更新次数置0。Optionally, the processing module is also configured to set the current interval update number of the pre-collection target brightness value to 0 after the pre-collection target brightness value is updated.
可选的,所述处理模块,具体用于:Optional, the processing module is specifically used for:
若所述预采目标亮度值的当前间隔更新次数大于预置的间隔更新次数阈值,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值;或者If the current interval update number of the pre-sampling target brightness value is greater than the preset interval update times threshold, then the pre-sampling brightness value of the fingerprint pre-sampling map and the average brightness value of the pre-sampling target brightness value are assigned to the pre-sampling target brightness value. The pre-acquisition target brightness value is specified; or
若所述预采目标亮度值的当前间隔更新次数小于等于预置的间隔更新次数阈值,则继续根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件。If the current interval update times of the pre-collection target brightness value are less than or equal to the preset interval update times threshold, then continue to determine based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. Whether the target value update conditions are met.
在第二方面的一种可能实现方式中,所述指纹预采图小于所述指纹识别图,所述指纹预采图的曝光时间小于所述指纹识别图的曝光时间。In a possible implementation of the second aspect, the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map.
在第二方面的一种可能实现方式中,所述处理模块,还用于在监测到针对显示屏上指纹识别区域的触控操作时,In a possible implementation of the second aspect, the processing module is also configured to detect a touch operation on the fingerprint recognition area on the display screen,
若所述显示屏为亮屏状态,则直接进入所述识别图采集过程;If the display screen is in a bright screen state, directly enter the identification map collection process;
若所述显示屏为灭屏状态,则采集所述指纹预采图。If the display screen is in a screen-off state, the fingerprint pre-collection image is collected.
在第二方面的一种可能实现方式中,在根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件之前,所述处理模块还用于:In a possible implementation of the second aspect, before determining whether the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, the processing module Also used for:
若从显示屏灭屏状态进入识别图采集过程,则根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;或者If the display screen is turned off and the identification map collection process is entered, it is determined whether the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
若从显示屏亮屏状态进入识别图采集过程,则结束流程;If the identification map collection process is entered from the display screen-on state, the process ends;
其中,所述显示屏亮屏状态或者所述显示屏灭屏状态是在监测到针对显示屏上指纹识别区域的触控操作时显示屏的状态。Wherein, the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
本申请的第三方面提供一种终端设备,包括:The third aspect of this application provides a terminal device, including:
显示屏,触摸控制模块,以及设置在所述显示屏下方的指纹识别装置;A display screen, a touch control module, and a fingerprint recognition device provided below the display screen;
所述触摸控制模块用于监测所述显示屏上方的触控操作;The touch control module is used to monitor touch operations above the display screen;
所述指纹识别装置为上述第二方面所述的指纹识别装置。The fingerprint identification device is the fingerprint identification device described in the second aspect.
本申请提供的指纹识别方法、装置及终端设备,在正式采集指纹识别图之前,首先采集至少一帧指纹预采图,利用预置的预采结束条件,例如预采目标亮度值判断指纹预采图的亮度即指纹光斑亮度是否达到目标亮度,在确定指纹光斑亮度达到目标亮度后再触发采集指纹识别图,即进入识别图采集过程,从而可以保证指纹识别图的质量,进而能够提高指纹识别的解锁成功率。The fingerprint identification method, device and terminal equipment provided by this application first collect at least one frame of fingerprint pre-collection image before officially collecting the fingerprint identification image, and use the preset pre-collection end conditions, such as the brightness value of the pre-collection target to judge the fingerprint pre-collection. The brightness of the image refers to whether the brightness of the fingerprint spot reaches the target brightness. After determining that the brightness of the fingerprint spot reaches the target brightness, the fingerprint recognition image is triggered to be collected, that is, the recognition image collection process is entered. This can ensure the quality of the fingerprint recognition image and improve the efficiency of fingerprint recognition. Unlock success rate.
附图说明Description of the drawings
图1是本申请实施例提供的一种终端设备的主视图;Figure 1 is a front view of a terminal device provided by an embodiment of the present application;
图2是图1所示终端设备沿着切线AA’的剖面示意图;Figure 2 is a schematic cross-sectional view of the terminal equipment shown in Figure 1 along the tangent line AA';
图3是本申请实施例提供的指纹识别方法实施例一的流程示意图;Figure 3 is a schematic flow chart of Embodiment 1 of the fingerprint identification method provided by the embodiment of the present application;
图4是指纹预采图与指纹识别图的大小关系示意图;Figure 4 is a schematic diagram of the size relationship between the fingerprint pre-collection map and the fingerprint identification map;
图5是本申请实施例提供的指纹识别方法实施例二的流程示意图;Figure 5 is a schematic flow chart of Embodiment 2 of the fingerprint identification method provided by the embodiment of this application;
图6是本申请实施例提供的指纹识别方法实施例三的流程示意图;Figure 6 is a schematic flow chart of Embodiment 3 of the fingerprint identification method provided by the embodiment of the present application;
图7是本申请实施例提供的指纹识别方法实施例四的流程示意图;Figure 7 is a schematic flow chart of Embodiment 4 of the fingerprint identification method provided by the embodiment of the present application;
图8是本申请实施例提供的指纹识别方法实施例五的流程示意图;Figure 8 is a schematic flow chart of Embodiment 5 of the fingerprint identification method provided by the embodiment of the present application;
图9是指纹预采图和/或指纹识别图的亮度随时间变化的示意图;Figure 9 is a schematic diagram showing the brightness of the fingerprint pre-collection image and/or the fingerprint identification image changing with time;
图10为本申请实施例提供的指纹识别装置的结构示意图。Figure 10 is a schematic structural diagram of a fingerprint identification device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions 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. Obviously, the described embodiments These are part of the embodiments of this application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
随着电子技术的发展以及用户对信息安全重视度的逐步提升,具有生物特征标识的安全验证机制在终端设备中被使用的越来越广泛。指纹识别是其中较为有效且常用的一类。对于具有显示屏的终端设备,用户期望其具有较高的屏占比,而屏下光学指纹识别解决方案可以同时满足信息安全以及高屏占比这两项需求。With the development of electronic technology and the gradual increase in users' attention to information security, security verification mechanisms with biometric identifiers are increasingly used in terminal devices. Fingerprint recognition is one of the more effective and commonly used ones. For terminal devices with displays, users expect a high screen-to-body ratio, and under-screen optical fingerprint recognition solutions can meet both information security and high screen-to-body ratio requirements.
在目前的采用光学原理进行指纹识别的过程中,由于屏下光学指纹对指纹光斑亮度有要求,当指纹光斑亮度不稳或亮度不够,会影响指纹识别解锁成功率,从而影响用户使用指纹进行屏幕解锁的体验。In the current process of using optical principles for fingerprint recognition, since the under-screen optical fingerprint has requirements for the brightness of the fingerprint spot, when the brightness of the fingerprint spot is unstable or not bright enough, it will affect the success rate of fingerprint recognition and unlocking, thus affecting the user's use of fingerprints to scan the screen. Unlock the experience.
针对上述技术问题,本申请技术方案的构思过程如下:在指纹识别的场景中,通过在识别图采集过程之前增加预采图过程,具体的,通过在预采图过程中预置可变的预采目标亮度值,判定预采图过程中采集的指纹预采图满 足亮度要求,在亮度满足要求时才进入指纹识别图的采集过程,从而能够保证指纹识别图的质量。进一步的,为了更准确的控制从预采图过程进入指纹识别过程的时机,还可以在指纹识别过程之后增加预采目标亮度值的更新过程,从而进一步提高了预采图过程中使用的预采目标亮度值的精度。In view of the above technical problems, the conception process of the technical solution of this application is as follows: in the fingerprint recognition scenario, by adding a pre-map process before the identification map collection process, specifically, by presetting a variable pre-collection process in the pre-map process. Collect the target brightness value to determine that the fingerprint pre-collection map collected during the pre-collection process meets the brightness requirements. Only when the brightness meets the requirements will the fingerprint identification map collection process be entered, thereby ensuring the quality of the fingerprint identification map. Furthermore, in order to more accurately control the timing of entering the fingerprint identification process from the pre-acquisition process, the update process of the pre-acquisition target brightness value can also be added after the fingerprint identification process, thereby further improving the pre-acquisition process used in the pre-acquisition process. The accuracy of the target brightness value.
基于上述技术构思过程,本申请实施例提供一种指纹识别方法,在正式采集指纹识别图之前,首先采集至少一帧指纹预采图,利用预置的预采结束条件,例如预采目标亮度值判断指纹预采图的亮度即指纹光斑亮度是否达到目标亮度,在确定指纹光斑亮度达到目标亮度后再触发采集指纹识别图,即进入识别图采集过程,从而可以保证指纹识别图的质量,进而能够提高指纹识别的解锁成功率。Based on the above technical conception process, embodiments of the present application provide a fingerprint identification method. Before officially collecting fingerprint identification images, at least one frame of fingerprint pre-acquisition images is first collected, and the preset pre-acquisition end conditions are used, such as the pre-acquisition target brightness value. Determine the brightness of the fingerprint pre-acquisition image, that is, whether the brightness of the fingerprint spot reaches the target brightness. After determining that the brightness of the fingerprint spot reaches the target brightness, trigger the acquisition of the fingerprint identification image, that is, enter the identification image collection process, thus ensuring the quality of the fingerprint identification image, and thus enabling Improve the unlocking success rate of fingerprint recognition.
本申请实施例提供的指纹识别方法主要可以应用于光学指纹识别领域。进一步地,具体可应用在使用光学指纹识别的各种终端设备,例如智能手机、笔记本电脑、平板电脑、游戏设备等移动计算设备,以及电子数据库、汽车、银行自动柜员机(automated teller machine,ATM)等需要进行指纹识别的其他终端设备。The fingerprint identification method provided by the embodiment of the present application can mainly be applied to the field of optical fingerprint identification. Furthermore, it can be specifically applied to various terminal devices that use optical fingerprint recognition, such as mobile computing devices such as smartphones, laptops, tablets, and game devices, as well as electronic databases, cars, and bank automated teller machines (automated teller machines, ATMs). and other terminal devices that require fingerprint recognition.
图1是本申请实施例提供的一种终端设备的主视图。如图1所示,在常用的终端设备10(例如手机)的正面,包括显示屏100,其中设置有用于进行指纹识别的指纹识别区域101,用户手指102触摸到指纹识别区域101时进行指纹识别过程。Figure 1 is a front view of a terminal device provided by an embodiment of the present application. As shown in Figure 1, the front of a commonly used terminal device 10 (such as a mobile phone) includes a display screen 100, in which a fingerprint recognition area 101 for fingerprint recognition is provided. Fingerprint recognition is performed when the user's finger 102 touches the fingerprint recognition area 101. process.
可理解,在本申请提供的指纹识别方案的实现中,显示屏100可以是触控屏,即在显示屏100中至少在指纹识别区域101部分或显示屏的全部区域具有触摸控制模块(未示出),该触摸控制模块用于监测显示屏100上的触控操作,具体地,可以用于判断用户手指102是否触摸所述指纹识别区域101,所述触摸控制模块的触摸控制功能可以由电容式触摸控制或者电阻式触摸控制或者压力感应式触摸控制实现,包含但不限于此。It can be understood that in the implementation of the fingerprint identification solution provided by this application, the display screen 100 may be a touch screen, that is, the display screen 100 has a touch control module (not shown) at least in part of the fingerprint identification area 101 or in the entire area of the display screen. (out), the touch control module is used to monitor touch operations on the display screen 100. Specifically, it can be used to determine whether the user's finger 102 touches the fingerprint recognition area 101. The touch control function of the touch control module can be configured by a capacitor. Touch control or resistive touch control or pressure-sensitive touch control implementation, including but not limited to this.
图2是图1所示终端设备沿着切线AA’的剖面示意图。参照图2所示,显示屏100的内侧、指纹识别区域101的对应位置处部署有指纹识别装置103,指纹识别装置103用于在触摸控制模块确定用户手指102触摸指纹识别区域101时,采集指纹预采图和/或指纹识别图,所述指纹识别图用于进行指纹识别,以完成指纹解锁,或支付。可选的,该指纹识别装置103可以是光学指纹识别装置。当用户手指102触摸指纹识别区域101,所述触摸控制模块检测 到手指的触摸时,激励光源照射用户手指102后,被用户手指102反射后,形成携带手指的指纹信息的指纹光信号,接着指纹光信号穿过显示屏100,被指纹识别装置103检测到,进而用于指纹识别。激励光源可以为显示屏100的发光单元,也可以是额外设置的光源。进一步的,在本申请的实施例中,终端设备10的内部还可以包括信号处理模块(未示出),信号处理模块用于基于采集的指纹预采图和/或指纹识别图执行指纹识别。Figure 2 is a schematic cross-sectional view of the terminal equipment shown in Figure 1 along the tangent line AA'. Referring to FIG. 2 , a fingerprint identification device 103 is deployed inside the display screen 100 and at a corresponding position of the fingerprint identification area 101 . The fingerprint identification device 103 is used to collect fingerprints when the touch control module determines that the user's finger 102 touches the fingerprint identification area 101 . Pre-collection map and/or fingerprint recognition map, the fingerprint recognition map is used for fingerprint recognition to complete fingerprint unlocking or payment. Optionally, the fingerprint identification device 103 may be an optical fingerprint identification device. When the user's finger 102 touches the fingerprint recognition area 101 and the touch control module detects the touch of the finger, the excitation light source illuminates the user's finger 102 and is reflected by the user's finger 102 to form a fingerprint light signal carrying the fingerprint information of the finger, and then the fingerprint The optical signal passes through the display screen 100, is detected by the fingerprint identification device 103, and is then used for fingerprint identification. The excitation light source may be the light-emitting unit of the display screen 100 or an additional light source. Further, in the embodiment of the present application, the terminal device 10 may also include a signal processing module (not shown) inside. The signal processing module is used to perform fingerprint recognition based on the collected fingerprint pre-collection map and/or fingerprint identification map.
可理解,本申请提出的指纹识别方案,在正式采集指纹识别图之前,利用一个较短的曝光时间快速采集指纹识别区域的指纹预采图,并进一步对指纹预采图的亮度进行分析,判断指纹预采图的亮度是否满足要求。It can be understood that the fingerprint identification scheme proposed in this application uses a short exposure time to quickly collect the fingerprint pre-collection image of the fingerprint identification area before officially collecting the fingerprint identification image, and further analyzes the brightness of the fingerprint pre-collection image to determine Whether the brightness of the fingerprint pre-collection image meets the requirements.
需要说明的是,图1和图2仅是本申请实施例提供的一种结构示意图,本申请实施例不对图1和/图2中所示的部件进行限定,也不对图2中部件之间的位置关系进行限定,其可以根据实际场景和需求设定,此处不作赘述。It should be noted that FIG. 1 and FIG. 2 are only schematic structural diagrams provided by the embodiment of the present application. The embodiment of the present application does not limit the components shown in FIG. The position relationship is limited, which can be set according to actual scenarios and needs, and will not be described here.
本申请实施例中,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In the embodiment of this application, "multiple" refers to two or more. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship.
下面,结合上述图1或图2所示的示意图,通过具体实施例对本申请的技术方案进行详细说明。需要说明的是,下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。Below, the technical solution of the present application will be described in detail through specific embodiments in conjunction with the schematic diagram shown in FIG. 1 or FIG. 2 . It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
图3是本申请实施例提供的指纹识别方法实施例一的流程示意图,如图3所示,该指纹识别方法具体包括以下步骤:Figure 3 is a schematic flow chart of Embodiment 1 of the fingerprint identification method provided by the embodiment of the present application. As shown in Figure 3, the fingerprint identification method specifically includes the following steps:
S301、在监测到针对显示屏上指纹识别区域的触控操作时,采集指纹预采图。S301. When a touch operation on the fingerprint recognition area on the display screen is detected, collect a fingerprint pre-collection map.
在本步骤中,终端设备在运行过程中,在解锁,支付,某些应用程序的登陆等场景中,可以通过指纹识别的方式对用户的身份进行验证。在这些情况下,首先进行用户指纹采集过程。In this step, when the terminal device is running, the user's identity can be verified through fingerprint recognition in scenarios such as unlocking, payment, and logging in to certain applications. In these cases, the user fingerprint collection process is performed first.
示例性的,在进入例如移动支付等指纹识别的场景时,终端设备提示用户进行指纹识别,提示方式可以为在显示屏上指纹识别区域的部分点亮,也可以在显示屏上进行文字提醒等,包含但不限于上述提示方式。For example, when entering a fingerprint recognition scenario such as mobile payment, the terminal device prompts the user to perform fingerprint recognition. The prompt method may be to light up part of the fingerprint recognition area on the display screen, or to provide a text reminder on the display screen, etc. , including but not limited to the above prompt methods.
示例性的,在进行用户指纹采集的过程中会检测用户的触控操作,当用户手指触摸指纹识别区域时,触摸控制模块在探测到手指触控指纹识别区域 的表面时,会触发指纹识别开始,即执行预采图采集过程,采集指纹预采图。For example, during the process of user fingerprint collection, the user's touch operation is detected. When the user's finger touches the fingerprint recognition area, the touch control module triggers the start of fingerprint recognition when it detects that the finger touches the surface of the fingerprint recognition area. , that is, execute the pre-collection map collection process and collect the fingerprint pre-collection map.
可选的,在本公开的实施例中,当执行预采图采集过程时,显示屏上指纹识别区域的发光单元发光,从而可以基于预置的指纹预采条件采集指纹预采图,即采集指纹预采图时的约束条件,例如,预采曝光时间、预采图的图像大小等。Optionally, in the embodiment of the present disclosure, when the pre-collection image collection process is executed, the light-emitting unit of the fingerprint recognition area on the display screen emits light, so that the fingerprint pre-collection map can be collected based on the preset fingerprint pre-collection conditions, that is, the fingerprint pre-collection map can be collected based on the preset fingerprint pre-collection conditions. Constraints on fingerprint pre-collection, such as pre-collection exposure time, image size of the pre-collection map, etc.
可理解,针对屏下光学指纹识别功能,在采集用于指纹识别的正式图像之前可以预采至少一张临时图。在本申请的实施例中,用于指纹识别的正式图像可以称为指纹识别图或者正式图,预采的至少一张临时图可以称为预采图或指纹预采图,本实施例并不对图像的具体命名进行限定。It is understandable that for the under-screen optical fingerprint recognition function, at least one temporary image can be pre-collected before collecting the formal image for fingerprint recognition. In the embodiment of the present application, the formal image used for fingerprint identification may be called a fingerprint identification picture or a formal picture, and at least one temporary picture for pre-collection may be called a pre-collection picture or a fingerprint pre-collection picture. This embodiment does not apply to The specific name of the image is qualified.
在本申请实施例中,指纹预采图的预采亮度值可以用于体现显示屏上的指纹光斑亮度,该指纹光斑亮度即显示屏上指纹识别区域的亮度。In the embodiment of the present application, the pre-collection brightness value of the fingerprint pre-collection map can be used to reflect the brightness of the fingerprint spot on the display screen, which is the brightness of the fingerprint recognition area on the display screen.
在本公开的一种可能实现中,为了提高指纹预采图的采样率以及降低指纹预采图的处理时间,可以预置指纹预采条件。因而,在检测到针对指纹识别区域的触控操作时便可以基于该指纹预采条件执行指纹预采图的采集过程。In a possible implementation of the present disclosure, in order to increase the sampling rate of the fingerprint pre-collection map and reduce the processing time of the fingerprint pre-collection map, the fingerprint pre-collection conditions can be preset. Therefore, when a touch operation on the fingerprint identification area is detected, the fingerprint pre-collection map collection process can be executed based on the fingerprint pre-collection condition.
S302、根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程。S302. Determine whether to enter the identification map collection process according to the fingerprint pre-collection map and the preset pre-collection end condition.
其中,该预采结束条件包括预采目标亮度值。Wherein, the pre-collection end condition includes the pre-collection target brightness value.
在本申请的实施例中,可以预置预采结束条件,即可以基于该预采结束条件确定退出预采图采集过程的时机,进入识别图采集过程的时机。In the embodiment of the present application, the pre-mining end condition can be preset, that is, the timing to exit the pre-mining map collection process and the timing to enter the identification map collection process can be determined based on the pre-mining end condition.
可选的,在一种可能的实现中,预采结束条件可以包括预采目标亮度值,该预采目标亮度值是预置的一个变量,其可以用于衡量指纹预采图的亮度高低。通常情况下,在终端设备重启或开机时,该预采目标亮度值等于0。Optionally, in a possible implementation, the pre-collection end condition may include a pre-collection target brightness value, which is a preset variable that can be used to measure the brightness of the fingerprint pre-collection map. Normally, when the terminal device is restarted or powered on, the pre-acquisition target brightness value is equal to 0.
示例性的,若该预采目标亮度值等于0,则确定退出预采图采集过程,进入识别图采集过程;若该预采目标亮度值不等于0(大于0),则根据该预采目标亮度值和指纹预采图的预采亮度值确定是否退出预采图采集过程,进入识别图采集过程。For example, if the brightness value of the pre-collection target is equal to 0, then it is determined to exit the pre-collection map collection process and enter the identification map collection process; if the brightness value of the pre-collection target is not equal to 0 (greater than 0), then according to the pre-collection target The brightness value and the pre-collection brightness value of the fingerprint pre-collection map determine whether to exit the pre-collection map collection process and enter the identification map collection process.
可理解,在实际应用中,本申请实施例可以最少采集一帧指纹预采图做判断,例如,在预采目标亮度值等于0或者采集的一帧指纹预采图的亮度满足亮度要求时,则仅采集一帧指纹预采图即可,因而,本实施例增加预采图采集过程的方案耗时较少,对识别图采集过程的影响较小。It can be understood that in practical applications, the embodiment of the present application can collect at least one frame of fingerprint pre-sampling image for judgment. For example, when the pre-sampling target brightness value is equal to 0 or the brightness of the collected one-frame fingerprint pre-sampling image meets the brightness requirements, Then only one frame of fingerprint pre-collection map is collected. Therefore, the solution of increasing the pre-collection map collection process in this embodiment is less time-consuming and has less impact on the identification map collection process.
S303、在进入识别图采集过程后,采集指纹识别图,该指纹识别图用于 显示屏的屏幕解锁。S303. After entering the identification map collection process, collect a fingerprint identification map, which is used to unlock the display screen.
可选的,在进入识别图采集过程后,显示屏下方设置的指纹传感器便可以采集指纹识别图,并将该指纹识别图与预先存储的指纹图像进行对比,从而确定指纹识别是否成功,进而确定显示屏的屏幕解锁是否成功。Optionally, after entering the identification image collection process, the fingerprint sensor installed under the display screen can collect the fingerprint identification image, and compare the fingerprint identification image with the pre-stored fingerprint image to determine whether the fingerprint identification is successful, and then determine whether the fingerprint identification image is successful. Whether the screen unlocking of the display is successful.
可理解,为了减少指纹预采图的处理时间,提高指纹预采图的采样率,在本实施例中,指纹预采图小于指纹识别图,指纹预采图的曝光时间小于指纹识别图的曝光时间。It can be understood that in order to reduce the processing time of the fingerprint pre-collection map and increase the sampling rate of the fingerprint pre-collection map, in this embodiment, the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map. time.
示例性的,图4是指纹预采图与指纹识别图的大小关系示意图。如图4所示,指纹预采图的尺寸为X1*Y1,指纹识别图的尺寸为X2*Y2,两者的大小关系如图4所示。即,指纹预采图的尺寸小于指纹识别图的尺寸。即,X1<X2,Y1<Y2。其中,指纹识别图的尺寸可以为指纹传感器的感应区域采集到的光信号转换成的图像的尺寸,而指纹预采图的尺寸可以为指纹传感器的部分感应区域采集到的光信号转换形成的图像的尺寸。指纹预采图用于判断指纹光斑是否满足高亮要求,即指纹识别所需亮度的要求,并不是直接用于指纹识别,因此不需要完整的指纹图像,这样设置可以提升判断指纹光斑亮度情况的效率,提升用户体验。For example, FIG. 4 is a schematic diagram of the size relationship between the fingerprint pre-collection map and the fingerprint identification map. As shown in Figure 4, the size of the fingerprint pre-collection image is X1*Y1, and the size of the fingerprint identification image is X2*Y2. The size relationship between the two is shown in Figure 4. That is, the size of the fingerprint pre-collection image is smaller than the size of the fingerprint recognition image. That is, X1<X2, Y1<Y2. Among them, the size of the fingerprint identification map can be the size of the image converted into the light signal collected by the sensing area of the fingerprint sensor, and the size of the fingerprint pre-collection map can be the image formed by converting the light signal collected by part of the sensing area of the fingerprint sensor. size of. The fingerprint pre-acquisition image is used to determine whether the fingerprint spot meets the highlight requirements, that is, the brightness requirements required for fingerprint recognition. It is not directly used for fingerprint recognition, so a complete fingerprint image is not required. This setting can improve the ability to determine the brightness of the fingerprint spot. efficiency and improve user experience.
在本实施例中,指纹预采图的中心是在终端设备量产测试时计算得到的,是指纹光斑的光心,即亮度最大的位置,其并非指纹识别图的正中心。In this embodiment, the center of the fingerprint pre-acquisition image is calculated during the mass production test of the terminal device. It is the optical center of the fingerprint spot, that is, the position with the maximum brightness. It is not the center of the fingerprint recognition image.
在实际应用中,指纹预采图的尺寸越小越好,但是指纹预采图的尺寸太小无法保证采集到指纹光斑的光心,预采曝光时间越短对整体解锁时间的影响较小,但预采曝光时间太短无法保证采集的指纹预采图的质量,因而,指纹预采图的预采曝光时间和预采图大小需要根据实际需求设定,此处不作赘述。In practical applications, the smaller the size of the fingerprint pre-capture image, the better. However, the size of the fingerprint pre-capture image is too small to ensure that the optical center of the fingerprint spot is captured. The shorter the pre-capture exposure time, the smaller the impact on the overall unlocking time. However, the pre-collection exposure time is too short to ensure the quality of the collected fingerprint pre-collection map. Therefore, the pre-collection exposure time and pre-collection map size of the fingerprint pre-collection map need to be set according to actual needs, which will not be described here.
在本申请的实施例中,在监测到针对显示屏上指纹识别区域的触控操作时,采集指纹预采图,根据该指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,并在进入识别图采集过程后,采集指纹识别图,该指纹识别图用于显示屏的屏幕解锁。该技术方案中,通过设置包括预采目标亮度值的预采结束条件,可以在指纹预采图的亮度(即指纹光斑亮度)达到目标亮度后再触发采集指纹识别图,从而可以保证指纹识别图的质量,进而能够提高指纹识别的解锁成功率。In the embodiment of the present application, when a touch operation on the fingerprint identification area on the display screen is detected, a fingerprint pre-collection map is collected, and based on the fingerprint pre-collection map and the preset pre-collection end condition, it is determined whether to enter the identification map During the collection process, and after entering the identification map collection process, a fingerprint identification map is collected, and the fingerprint identification map is used to unlock the display screen. In this technical solution, by setting the pre-collection end condition including the pre-collection target brightness value, the fingerprint identification map can be triggered to be collected after the brightness of the fingerprint pre-collection map (i.e., the fingerprint spot brightness) reaches the target brightness, thereby ensuring that the fingerprint identification map is The quality can thereby improve the unlocking success rate of fingerprint recognition.
可选的,为使读者更深刻地理解本申请实施例的实现原理,现结合以下 图5至图8对图3所示的实施例进行进一步细化。Optionally, in order to allow readers to have a deeper understanding of the implementation principles of the embodiments of the present application, the embodiment shown in Figure 3 will be further detailed in conjunction with the following Figures 5 to 8.
示例性的,图5是本申请实施例提供的指纹识别方法实施例二的流程示意图。如图5所示,在本实施例中,上述S302可以通过以下步骤实现:Illustratively, FIG. 5 is a schematic flowchart of Embodiment 2 of the fingerprint identification method provided by the embodiment of the present application. As shown in Figure 5, in this embodiment, the above S302 can be implemented through the following steps:
S501、确定预采目标亮度值是否等于0;若是,执行S502;若否,执行S503。即所述根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,包括:S501. Determine whether the pre-acquisition target brightness value is equal to 0; if so, execute S502; if not, execute S503. That is, determining whether to enter the identification map collection process based on the fingerprint pre-collection map and the preset pre-collection end conditions includes:
若所述预采目标亮度值等于0,则确定进入识别图采集过程;If the brightness value of the pre-acquisition target is equal to 0, it is determined to enter the identification map collection process;
若所述预采目标亮度值大于0,则根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定是否进入识别图采集过程。If the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
在本实施例中,在预采图采集过程中,每采集一帧指纹预采图便执行一次判断过程,该判断过程用于确定是否退出预采图采集过程,进入指纹识别图的采集过程。在预采图采集过程中,指纹识别装置采集一帧指纹预采图,便可以可计算出该指纹预采图的预采亮度值。In this embodiment, during the pre-image collection process, a judgment process is performed every time a fingerprint pre-image is collected. This judgment process is used to determine whether to exit the pre-image collection process and enter the fingerprint identification map collection process. During the pre-collection image collection process, the fingerprint identification device collects a frame of fingerprint pre-collection image, and then can calculate the pre-collection brightness value of the fingerprint pre-collection image.
在本步骤中,参照上述图3中的S302可知,预采结束条件包括预采目标亮度值,因而,在获取到一帧指纹预采图时,可以首先基于该预采目标亮度值是否等于0的判断结果来确定后续执行的操作。In this step, referring to S302 in Figure 3 above, it can be seen that the pre-collection end condition includes the pre-collection target brightness value. Therefore, when a frame of fingerprint pre-collection image is obtained, it can first be based on whether the pre-collection target brightness value is equal to 0. The judgment results are used to determine subsequent operations.
S502、确定进入识别图采集过程。S502. Confirm to enter the identification map collection process.
作为一种示例,若预置的预采目标亮度值等于0,即此时不管指纹预采图的亮度如何均可以退出预采图采集过程,进入识别图采集过程。As an example, if the preset pre-collection target brightness value is equal to 0, that is, regardless of the brightness of the fingerprint pre-collection map, you can exit the pre-collection map collection process and enter the identification map collection process.
可理解,指纹预采图的预采亮度值通常大于0,本实施例并不限定指纹预采图的亮度值。It can be understood that the pre-collection brightness value of the fingerprint pre-collection map is usually greater than 0, and this embodiment does not limit the brightness value of the fingerprint pre-collection map.
S503、根据指纹预采图的预采亮度值和预采目标亮度值,确定是否进入识别图采集过程。S503. Determine whether to enter the identification map collection process according to the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
作为另一种示例,若预置的预采目标亮度值不等于0(即,大于0),此时可以通过检测或计算的方式获取指纹预采图的预采亮度值,进而基于该指纹预采图的预采亮度值和上述预采目标亮度值,确定是否进入识别图采集过程。As another example, if the preset pre-collection target brightness value is not equal to 0 (that is, greater than 0), then the pre-collection brightness value of the fingerprint pre-collection image can be obtained by detection or calculation, and then based on the fingerprint pre-collection image The pre-acquisition brightness value of the acquired image and the above-mentioned pre-acquisition target brightness value determine whether to enter the identification image acquisition process.
可理解,指纹预采图中的最亮部分通常是指纹预采图的光心,即,指纹预采图的预采亮度值就是光心的亮度值。在本实施例中,指纹预采图的光心是终端设备量产测试时计算得到的光心,其比指纹预采图的中心更准确可靠。It can be understood that the brightest part in the fingerprint pre-collection image is usually the optical center of the fingerprint pre-collection image, that is, the pre-collection brightness value of the fingerprint pre-collection image is the brightness value of the optical center. In this embodiment, the optical center of the fingerprint pre-collection map is the optical center calculated during the mass production test of the terminal device, which is more accurate and reliable than the center of the fingerprint pre-collection map.
在本申请的实施例中,在获取当前采集的一帧指纹预采图时,首先判断 预采目标亮度值是否等于0,若预采目标亮度值等于0,则直接进入识别图采集过程;若预采目标亮度值不等于0,则根据该指纹预采图的预采亮度值和预采目标亮度值,确定是否进入识别图采集过程。该技术方案中,通过预置预采目标亮度值,且当采集的一帧指纹预采图的亮度满足要求时,只需采集一帧指纹预采图便可进入识别图采集过程,因而耗时很少,对后续指纹识别图的采集影响更小。In the embodiment of the present application, when obtaining a currently collected frame of fingerprint pre-collection image, first determine whether the pre-collection target brightness value is equal to 0. If the pre-collection target brightness value is equal to 0, then directly enter the identification map collection process; if If the pre-collection target brightness value is not equal to 0, then it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value. In this technical solution, by presetting the pre-sampling target brightness value, and when the brightness of a frame of fingerprint pre-sampling image collected meets the requirements, only one frame of fingerprint pre-sampling image can be collected to enter the identification map collection process, which is time-consuming. Very little, and it will have even less impact on the collection of subsequent fingerprint identification maps.
可选的,在上述图5所示实施例的基础上,图6是本申请实施例提供的指纹识别方法实施例三的流程示意图。Optionally, based on the above embodiment shown in Figure 5, Figure 6 is a schematic flowchart of Embodiment 3 of the fingerprint identification method provided by the embodiment of the present application.
如图6所示,上述S503可以通过如下步骤实现:As shown in Figure 6, the above S503 can be implemented through the following steps:
S601、根据指纹预采图的预采亮度值和预采目标亮度值,确定指纹预采图的预采亮度值是否满足预设亮度要求;若是,执行S602;若否,执行S603和S604。即所述根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定是否进入识别图采集过程,包括:S601. According to the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value, determine whether the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement; if yes, execute S602; if not, execute S603 and S604. That is, determining whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value includes:
若所述指纹预采图的预采亮度值满足预设亮度要求,则确定进入识别图采集过程;If the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirements, it is determined to enter the identification map collection process;
若所述指纹预采图的预采亮度值未满足预设亮度要求,则确定已采集的指纹预采图总帧数,根据所述指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程。If the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process.
可选的,若预置的预采目标亮度值不等于0,则判断指纹预采图的预采亮度值是否满足预设亮度要求,进而基于判断结果执行后续操作。Optionally, if the preset pre-collection target brightness value is not equal to 0, determine whether the pre-collection brightness value of the fingerprint pre-collection image meets the preset brightness requirement, and then perform subsequent operations based on the judgment result.
可选的,在本实施例中,预设亮度要求可以通过如下公式表征:Optionally, in this embodiment, the preset brightness requirement can be characterized by the following formula:
(A2-A1)/A2<H2(A2-A1)/A2<H2
其中,A2是预采目标亮度值,A1是指纹预采图的预采亮度值,H2为预设阈值。因而,该公式的含义是:若指纹预采图的预采亮度值A1大于预采目标亮度值A2,则认为指纹预采图的预采亮度值A1满足预设亮度要求,或,若指纹预采图的预采亮度值A1小于预采目标亮度值A2的百分比小于预设阈值H2,即,预采目标亮度值A2减去指纹预采图A1的差值与预采目标亮度值A2的百分比小于预设阈值H2,则认为指纹预采图的预采亮度值满足预设亮度要求,否则,认为未满足预设亮度要求。Among them, A2 is the pre-collection target brightness value, A1 is the pre-collection brightness value of the fingerprint pre-collection image, and H2 is the preset threshold. Therefore, the meaning of this formula is: if the pre-collection brightness value A1 of the fingerprint pre-collection image is greater than the pre-collection target brightness value A2, then the pre-collection brightness value A1 of the fingerprint pre-collection image is considered to meet the preset brightness requirements, or if the fingerprint pre-collection image The percentage of the pre-acquisition brightness value A1 of the captured image that is less than the pre-acquisition target brightness value A2 is less than the preset threshold H2, that is, the difference between the pre-acquisition target brightness value A2 minus the fingerprint pre-acquisition image A1 and the percentage of the pre-acquisition target brightness value A2 If it is less than the preset threshold H2, it is considered that the pre-collection brightness value of the fingerprint pre-collection image meets the preset brightness requirements; otherwise, it is considered that the preset brightness requirements are not met.
在一种可能的设计中,H2的取值在0~1之间,例如H2=0.5,也就是说当(A2-A1)/A2的值小于0.5时,则被认为当前指纹光斑的亮度值满足高亮的 要求,可以进入识别图采集过程,进行指纹识别图采集。可选的,H2=0.2,此时对于当前指纹光斑的亮度要求更高,进一步的能够提升后面进行指纹识别时的性能。在此阈值下,能够保证指纹光斑亮度满足指纹识别的需求,保证指纹识别的效果,提升用户体验。一般情况下,指纹预采图的预采亮度值大于0。In a possible design, the value of H2 is between 0 and 1, for example, H2=0.5. That is to say, when the value of (A2-A1)/A2 is less than 0.5, it is considered to be the brightness value of the current fingerprint spot. If the highlighted requirements are met, you can enter the identification map collection process and collect fingerprint identification maps. Optional, H2=0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition. Under this threshold, the brightness of the fingerprint spot can be ensured to meet the needs of fingerprint recognition, ensure the effect of fingerprint recognition, and improve the user experience. In general, the pre-collection brightness value of the fingerprint pre-collection image is greater than 0.
S602、确定进入识别图采集过程。S602. Confirm to enter the identification map collection process.
在一种可能的实现中,若指纹预采图的预采亮度值满足预设亮度要求,则确定进入识别图采集过程,指纹识别装置采集指纹识别图,用于指纹识别,即可以用于显示屏的屏幕解锁。In a possible implementation, if the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement, it is determined to enter the identification map collection process, and the fingerprint identification device collects the fingerprint identification map for fingerprint recognition, that is, it can be used for display The screen of the screen is unlocked.
S603、确定已采集的指纹预采图总帧数。S603. Determine the total number of frames of collected fingerprint pre-collection images.
在另一种可能的设计中,若指纹预采图的预采亮度值未满足预设亮度要求,则确定已采集的指纹预采图总帧数,进而确定是否退出预采图采集过程,进入识别图采集过程,或者继续采集指纹预采图。In another possible design, if the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirements, the total number of frames of the fingerprint pre-collection map that has been collected is determined, and then it is determined whether to exit the pre-collection map collection process and enter Identification map collection process, or continue to collect fingerprint pre-collection maps.
S604、根据指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程。S604. Determine whether to enter the identification map collection process based on the total number of fingerprint pre-collection frames and the maximum number of pre-collection frames.
在本实施例中,上述预采结束条件还包括最大预采图帧数。因而,在预采目标亮度值不等于0,且指纹预采图的预采亮度值未满足预设亮度要求时,还可以基于预采图采集过程中已采集的指纹预采图总帧数确定是否退出预采图采集过程,进入指纹识别图采集过程,或者继续采集指纹预采图。In this embodiment, the above pre-collection end condition also includes the maximum number of pre-collection image frames. Therefore, when the pre-collection target brightness value is not equal to 0, and the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirements, it can also be determined based on the total number of frames of the fingerprint pre-collection map collected during the pre-collection map collection process. Whether to exit the pre-collection map collection process and enter the fingerprint identification map collection process, or to continue collecting fingerprint pre-collection maps.
示例性的,若指纹预采图总帧数大于或等于最大预采图帧数,则退出预采图采集过程,确定进入识别图采集过程;若指纹预采图总帧数小于最大预采图帧数,则继续执行预采图采集过程,即继续采集一帧指纹预采图,并执行图5和图6中各步骤的判断过程,直到采集的最后一帧指纹预采图的预采亮度值满足预采结束条件。For example, if the total number of frames of fingerprint pre-acquisition images is greater than or equal to the maximum number of pre-acquisition image frames, exit the pre-acquisition image collection process and determine to enter the identification map collection process; if the total number of frames of fingerprint pre-acquisition images is less than the maximum number of pre-acquisition images frame number, continue to execute the pre-collection image collection process, that is, continue to collect one frame of fingerprint pre-collection image, and perform the judgment process of each step in Figure 5 and Figure 6 until the pre-collection brightness of the last frame of fingerprint pre-collection image collected The value satisfies the pre-mining end conditions.
可选的,预置的最大预采图帧数可以设定为N1,即在预采图采集过程中最多采集N1帧指纹预采图,最多执行N1次循环过程。示例性的,N1可以是大于1的任意取值,例如,10、20、100,本申请实施例并不对N1的具体取值进行限定,其可以根据实际需求设定。Optionally, the preset maximum number of pre-capture image frames can be set to N1, that is, a maximum of N1 frames of fingerprint pre-capture images can be collected during the pre-capture image collection process, and a maximum of N1 loop processes can be executed. For example, N1 can be any value greater than 1, for example, 10, 20, or 100. The embodiment of the present application does not limit the specific value of N1, which can be set according to actual requirements.
可理解,在本申请的实施例中,若在预采图采集过程中采集了多帧指纹预采图,则使用的预采亮度值特指最后一帧指纹预采图的亮度值。It can be understood that in the embodiment of the present application, if multiple frames of fingerprint pre-capture images are collected during the pre-capture image collection process, the pre-capture brightness value used specifically refers to the brightness value of the last frame of fingerprint pre-capture image.
在本申请的实施例中,通过根据指纹预采图的预采亮度值和预采目标亮 度值,确定指纹预采图的预采亮度值是否满足预设亮度要求,若是,则确定进入识别图采集过程,若否,则确定已采集的指纹预采图总帧数,并根据指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程。该技术方案中,通过设定亮度要求和最大预采图帧数,能够最大限度的保证指纹预采图的亮度满足要求,且能够及时进入指纹识别图采集过程,有效降低了预采图采集过程对识别图采集过程的影响。In the embodiment of the present application, it is determined whether the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value. If so, it is determined to enter the identification map. Collection process, if not, determine the total number of frames of fingerprint pre-collection images that have been collected, and determine whether to enter the identification map collection process based on the total number of frames of fingerprint pre-collection images and the maximum number of pre-collection image frames. In this technical solution, by setting the brightness requirements and the maximum number of pre-acquisition image frames, it can ensure that the brightness of the fingerprint pre-acquisition image meets the requirements to the greatest extent, and the fingerprint identification image collection process can be entered in time, effectively reducing the time of the pre-acquisition image collection process. Impact on the recognition map collection process.
示例性的,图7是本申请实施例提供的指纹识别方法实施例四的流程示意图。如图7所示,在本实施例中,该指纹识别方法还可以包括如下步骤:Illustratively, FIG. 7 is a schematic flowchart of Embodiment 4 of the fingerprint identification method provided by the embodiment of the present application. As shown in Figure 7, in this embodiment, the fingerprint identification method may also include the following steps:
S701、基于指纹识别图和预设指纹信息,执行显示屏的解锁过程,即显示屏的屏幕解锁。S701. Based on the fingerprint recognition map and preset fingerprint information, execute the unlocking process of the display screen, that is, the screen unlocking of the display screen.
可选的,在本实施例中,在识别图采集过程中采集指纹识别图后,便可以执行指纹识别或者指纹解锁,即显示屏的解锁过程。具体的,将该指纹识别图与预设指纹信息进行比对,如果指纹识别图与预设指纹信息相匹配,则确定指纹识别成功,即显示屏解锁成功;如果指纹识别图与预设指纹信息不匹配,则确定指纹识别失败,即显示屏解锁失败。Optionally, in this embodiment, after the fingerprint identification map is collected during the identification map collection process, fingerprint recognition or fingerprint unlocking can be performed, that is, the unlocking process of the display screen. Specifically, the fingerprint identification map is compared with the preset fingerprint information. If the fingerprint identification map matches the preset fingerprint information, it is determined that the fingerprint identification is successful, that is, the display screen is unlocked successfully; if the fingerprint identification map matches the preset fingerprint information If there is no match, it is determined that the fingerprint recognition failed, that is, the display screen unlocking failed.
可理解,预设指纹信息是指本次指纹识别过程之前进行授权的指纹特征信息,本实施例不对其进行限定。It can be understood that the preset fingerprint information refers to the fingerprint feature information authorized before this fingerprint identification process, which is not limited in this embodiment.
可选的,在本方案中,若指纹识别失败,即显示屏解锁失败,可以推送提示信息,该提示信息用于提示用户重新进行指纹识别,进而重新执行本申请的技术方案,或者提示用户结束指纹识别过程。Optionally, in this solution, if the fingerprint recognition fails, that is, the display fails to be unlocked, a prompt message can be pushed. The prompt message is used to prompt the user to perform fingerprint recognition again, and then re-implement the technical solution of this application, or prompt the user to end Fingerprint identification process.
S702、根据显示屏是否解锁成功,指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;若是,执行S703;若否,结束流程。S702. Determine whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image; if so, execute S703; if not, end the process.
即根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;That is, based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, it is determined whether the target value update condition is met;
当满足目标值更新条件时,更新所述预采目标亮度值;或者When the target value update condition is met, update the pre-collection target brightness value; or
当不满足目标值更新条件时,结束流程。示例性的,在本实施例中,目标值更新条件可以包括所述显示屏解锁成功,指纹识别的触控面积大于预置面积阈值且指纹识别图亮度值小于设定亮度阈值。即,当显示屏解锁成功,触控面积和指纹识别图亮度值满足设定条件时,认为预采目标亮度值满足目标值更新条件,便可触发预采目标亮度值更新过程的执行,从而能够保证预采图采集过程中使用的预采目标亮度值更准确。本申请能够动态调整预采目 标亮度值,即使显示屏老化,或者用户更换手指,动态的阈值更能反映准确的显示屏亮度值/指纹光斑亮度值,提升指纹识别性能,提升用户的使用体验。When the target value update conditions are not met, the process ends. For example, in this embodiment, the target value update conditions may include that the display screen is unlocked successfully, the touch area of fingerprint recognition is greater than the preset area threshold, and the brightness value of the fingerprint recognition image is less than the set brightness threshold. That is, when the display screen is unlocked successfully and the touch area and fingerprint recognition map brightness value meet the set conditions, it is considered that the pre-collection target brightness value meets the target value update condition, and the execution of the pre-collection target brightness value update process can be triggered, thereby enabling Ensure that the pre-acquisition target brightness value used in the pre-acquisition image collection process is more accurate. This application can dynamically adjust the pre-acquisition target brightness value. Even if the display screen ages or the user changes fingers, the dynamic threshold can better reflect the accurate display brightness value/fingerprint spot brightness value, improving fingerprint recognition performance and user experience.
相应的,在显示屏解锁成功时,可以获取指纹识别的触控面积和指纹识别图亮度值,进而确定是否更新预采目标亮度值,能够有效保证预采目标亮度值的动态性和准确度。Correspondingly, when the display screen is unlocked successfully, the touch area of fingerprint recognition and the brightness value of the fingerprint recognition image can be obtained to determine whether to update the pre-collection target brightness value, which can effectively ensure the dynamics and accuracy of the pre-collection target brightness value.
其中,指纹识别的触控面积可以解释为用户在进行指纹识别时的按压面积或触摸面积,其可以是在指纹采集过程中用户指纹所覆盖区域的面积,其与指纹识别图的面积不同。Among them, the touch area of fingerprint recognition can be interpreted as the pressing area or touch area of the user when performing fingerprint recognition. It can be the area of the area covered by the user's fingerprint during the fingerprint collection process, which is different from the area of the fingerprint recognition map.
在现有的方案中,判断指纹光斑高亮的阈值(即,本实施例中的预采目标亮度值)是固定的,但由于随着终端设备的使用,显示屏老化后或者更换用户手指后,可能存在预采亮度值不准确的问题,因而,本实施例可以在预采目标亮度值满足目标值更新条件时进行更新,使得动态的阈值更能反映准确的显示屏亮度值。In the existing solution, the threshold for judging the highlight of the fingerprint spot (that is, the pre-acquisition target brightness value in this embodiment) is fixed. However, with the use of terminal equipment, the display screen ages or the user's finger is replaced. , there may be a problem of inaccurate pre-collected brightness values. Therefore, this embodiment can update the pre-collected target brightness value when it meets the target value update condition, so that the dynamic threshold can better reflect the accurate display screen brightness value.
相应的,在本申请的实施例中,首先确定上述显示屏是否解锁成功,指纹识别的触控面积是否大于预置面积阈值且指纹识别图亮度值是否小于设定亮度阈值;若是,确定满足目标值更新条件;若否,结束流程。Correspondingly, in the embodiment of the present application, it is first determined whether the above-mentioned display screen is unlocked successfully, whether the touch area of fingerprint recognition is greater than the preset area threshold and whether the brightness value of the fingerprint recognition image is less than the set brightness threshold; if so, it is determined that the target is met Value update condition; if not, end the process.
其中,显示屏解锁成功时,当前的预采亮度值满足高亮要求,也就是指纹光斑满足指纹识别的亮度要求,因此只有解锁成功时,才有可能去更新所述预采目标亮度值,即显示屏的成功解锁是更新预采目标亮度值的一个限制条件。Among them, when the display screen is unlocked successfully, the current pre-collection brightness value meets the highlighting requirements, that is, the fingerprint spot meets the brightness requirements for fingerprint recognition. Therefore, only when the unlocking is successful, it is possible to update the pre-collection target brightness value, that is, Successful unlocking of the display is a constraint on updating the pre-acquisition target brightness value.
指纹识别的触控面积大于预置面积阈值是更新预采目标亮度值的一种限制条件。可认为,只有当触控面积大于预置面积阈值时,采集到的指纹识别图中包含的指纹特征信息才完整,才能足以进行指纹识别,从而认为显示屏的成功解锁与光斑亮度/图像亮度有关。因此指纹识别的触控面积是目标值更新的一个条件。The touch area of fingerprint recognition is larger than the preset area threshold, which is a restriction for updating the pre-acquisition target brightness value. It can be considered that only when the touch area is larger than the preset area threshold, the fingerprint feature information contained in the collected fingerprint identification map will be complete and sufficient for fingerprint identification. Therefore, it is believed that the successful unlocking of the display is related to the spot brightness/image brightness. . Therefore, the touch area of fingerprint recognition is a condition for target value update.
指纹识别图亮度值是否小于设定亮度阈值是更新预采目标亮度值的另一种限制条件。设定亮度阈值可以认为是指纹识别图的饱和亮度值。若指纹识别图亮度值大于或等于该设定亮度阈值,即指纹识别装置已经饱和,则认为判断指纹识别图亮度值为强光值,当前为强光环境,若指纹识别图亮度值小于该设定亮度阈值,则认为指纹识别图亮度值为非强光值,当前为非强光环境。由于指纹识别装置在饱和之后,可能无法准确完成指纹识别,因而,本 实施例中,可以判断指纹识别图亮度值是否小于设定亮度阈值,并在指纹识别图亮度值小于设定亮度阈值时,才有可能执行预采目标亮度值的更新过程。Whether the brightness value of the fingerprint recognition image is less than the set brightness threshold is another restriction condition for updating the pre-acquisition target brightness value. Setting the brightness threshold can be considered as the saturated brightness value of the fingerprint recognition image. If the brightness value of the fingerprint recognition image is greater than or equal to the set brightness threshold, that is, the fingerprint recognition device is saturated, it is considered that the brightness value of the fingerprint recognition image is a strong light value, and the current is a strong light environment. If the brightness value of the fingerprint recognition image is less than the set brightness value, If the brightness threshold is set, the brightness value of the fingerprint recognition image is considered to be a non-strong light value, and the current environment is a non-strong light environment. Since the fingerprint recognition device may not be able to accurately complete fingerprint recognition after it is saturated, in this embodiment, it can be determined whether the brightness value of the fingerprint recognition image is less than the set brightness threshold, and when the brightness value of the fingerprint recognition image is less than the set brightness threshold, Only then is it possible to perform the update process of the pre-acquisition target brightness value.
S703、更新预采目标亮度值。S703. Update the pre-acquisition target brightness value.
示例性的,在本实施例中,在确定满足目标值更新条件时,可以根据指纹预采图的预采亮度值更新预采目标亮度值。For example, in this embodiment, when it is determined that the target value update condition is met, the pre-collection target brightness value may be updated according to the pre-collection brightness value of the fingerprint pre-collection map.
可选的,若在指纹图预采过程中采集了多帧指纹预采图,则根据上述多帧指纹预采图中最后一帧指纹预采图的预采亮度值更新预采目标亮度值。Optionally, if multiple frames of fingerprint pre-collection images are collected during the fingerprint image pre-collection process, the pre-collection target brightness value is updated according to the pre-collection brightness value of the last frame of the fingerprint pre-collection image in the above-mentioned multi-frame fingerprint pre-collection images.
在本步骤中,首先确定预采目标亮度值的当前取值,并根据预采目标亮度值的当前取值确定预采目标亮度值的更新方式。In this step, the current value of the pre-sampling target brightness value is first determined, and an update method of the pre-sampling target brightness value is determined based on the current value of the pre-sampling target brightness value.
作为一种示例,若预采目标亮度值等于0,则将上述指纹预采图的预采亮度值赋值给预采目标亮度值。同理,若在指纹图预采过程中采集了多帧指纹预采图,则将上述多帧指纹预采图中最后一帧指纹预采图的预采亮度值赋值给预采目标亮度值。As an example, if the pre-collection target brightness value is equal to 0, then the pre-collection brightness value of the above-mentioned fingerprint pre-collection image is assigned to the pre-collection target brightness value. In the same way, if multiple frames of fingerprint pre-collection images are collected during the fingerprint image pre-collection process, the pre-collection brightness value of the last frame of the fingerprint pre-collection image in the above-mentioned multi-frame fingerprint pre-collection images is assigned to the pre-collection target brightness value.
作为另一种示例,若预采目标亮度值的当前取值大于0,则将指纹预采图的预采亮度值和预采目标亮度值的平均亮度值赋值给预采目标亮度值。类似的,若在指纹图预采过程中采集了多帧指纹预采图,则将至少一帧指纹预采图中最后一帧指纹预采图的预采亮度值和预采目标亮度值的平均亮度值赋值给预采目标亮度值。As another example, if the current value of the pre-acquisition target brightness value is greater than 0, then the average brightness value of the pre-acquisition brightness value of the fingerprint pre-acquisition image and the pre-acquisition target brightness value is assigned to the pre-acquisition target brightness value. Similarly, if multiple frames of fingerprint pre-collection images are collected during the process of fingerprint image pre-collection, the average of the pre-collection brightness value and the pre-collection target brightness value of the last frame of fingerprint pre-collection image in at least one frame of fingerprint pre-collection image will be used. The brightness value is assigned to the pre-acquisition target brightness value.
在本申请的一种可能设计中,若上述显示屏解锁成功,指纹识别的指纹触控面积大于预置面积阈值且指纹识别图亮度值小于设定亮度阈值,此时,预采目标亮度值理论上可以进行更新。但是为了避免预采目标亮度值的频繁更新,还可以统计本次满足目标值更新条件距离上次实际进行目标值更新的间隔次数(在本实施例中,称其为间隔更新次数)。In a possible design of this application, if the above-mentioned display screen is unlocked successfully, the fingerprint touch area of fingerprint recognition is greater than the preset area threshold and the brightness value of the fingerprint recognition image is less than the set brightness threshold. At this time, the pre-acquisition target brightness value theory Updates can be made on. However, in order to avoid frequent updates of the pre-acquisition target brightness value, the number of intervals between the current target value update condition and the last actual target value update can be counted (in this embodiment, it is called the number of interval updates).
可理解,当显示屏解锁成功,指纹识别的触控面积大于预置面积阈值且指纹识别图亮度值小于设定亮度阈值时,可以对预采目标亮度值的间隔更新次数加1,然后再将更新后的间隔更新次数确定为预采目标亮度值的当前间隔更新次数。It can be understood that when the display screen is unlocked successfully, the touch area of fingerprint recognition is greater than the preset area threshold and the brightness value of the fingerprint recognition image is less than the set brightness threshold, the number of interval updates of the pre-acquisition target brightness value can be increased by 1, and then the The updated interval update number is determined as the current interval update number of the pre-acquisition target brightness value.
相应的,在本申请的实施例中,上述的若预采目标亮度值大于0,则将指纹预采图的预采亮度值和预采目标亮度值的平均亮度值赋值给预采目标亮度值的实现方案可以具体如下:Correspondingly, in the embodiment of the present application, if the above-mentioned pre-collection target brightness value is greater than 0, then the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value The implementation plan can be as follows:
若预采目标亮度值的当前间隔更新次数大于预置的间隔更新次数阈值, 则将指纹预采图的预采亮度值和预采目标亮度值的平均亮度值赋值给预采目标亮度值;或者If the current interval update number of the pre-acquisition target brightness value is greater than the preset interval update times threshold, then the average brightness value of the pre-acquisition brightness value of the fingerprint pre-acquisition map and the pre-acquisition target brightness value is assigned to the pre-acquisition target brightness value; or
若预采目标亮度值的当前间隔更新次数小于等于预置的间隔更新次数阈值,则继续根据显示屏是否解锁成功,指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件。If the current interval update times of the pre-acquisition target brightness value are less than or equal to the preset interval update times threshold, continue to determine whether the target value update conditions are met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. .
在本步骤中,为了避免预采目标亮度值的频繁更新对资源的消耗,可以预置间隔更新次数阈值,因而,可以判断当前间隔更新次数是否大于间隔更新次数阈值;若当前间隔更新次数大于间隔更新次数阈值,则认为预采目标亮度值满足目标值更新条件,便可以执行预采目标亮度值的更新操作;若当前间隔更新次数小于或等于间隔更新次数阈值,则认为预采目标亮度值未满足目标值更新条件,需要继续根据显示屏是否解锁成功,指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件。In this step, in order to avoid resource consumption caused by frequent updates of the pre-acquisition target brightness value, the interval update times threshold can be preset. Therefore, it can be judged whether the current interval update times is greater than the interval update times threshold; if the current interval update times is greater than the interval If the update times threshold is set, it is considered that the pre-acquisition target brightness value meets the target value update conditions, and the update operation of the pre-acquisition target brightness value can be performed; if the current interval update times are less than or equal to the interval update times threshold, it is considered that the pre-acquisition target brightness value has not been updated. To meet the target value update conditions, you need to continue to determine whether the target value update conditions are met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image.
示例性的,间隔更新次数阈值可以是根据实际需求设定的一个数值,例如,5次,6次,10次等,本实施例并不对其进行限定。For example, the interval update times threshold may be a value set according to actual requirements, for example, 5 times, 6 times, 10 times, etc., which is not limited in this embodiment.
本实施例中采用的预采目标亮度值的更新方式能够动态调整预采目标亮度值适应当前的环境或设备需求,提高预采目标亮度值的精度和普适性,为后续提高指纹识别成功率奠定了基础。The update method of the pre-collection target brightness value adopted in this embodiment can dynamically adjust the pre-collection target brightness value to adapt to the current environment or equipment needs, improve the accuracy and universality of the pre-collection target brightness value, and improve the success rate of fingerprint recognition in the future. Foundation.
在本申请的实施例中,通过设定目标值更新条件和间隔更新次数阈值,能够提高预采目标亮度值的精度和普适性,为后续提高指纹识别成功率奠定了基础。In the embodiment of the present application, by setting the target value update condition and the interval update times threshold, the accuracy and universality of the pre-collected target brightness value can be improved, laying a foundation for subsequent improvement of the success rate of fingerprint recognition.
综上可知,本申请的上述各实施例未区分从亮屏状态进入指纹识别,还是从灭屏状态进入指纹识别,即,本方案可适用于从亮屏状态和/或灭屏状态进入指纹识别的场景。In summary, it can be seen that the above-mentioned embodiments of the present application do not distinguish between entering fingerprint recognition from the screen-on state and entering fingerprint recognition from the screen-off state. That is, this solution can be applied to entering fingerprint recognition from the screen-on state and/or the screen-off state. scene.
可理解,从亮屏状态进入指纹识别的场景通过解锁成功率比较高,但随着终端设备的使用,若显示屏存在老化等情况导致解锁成功率降低时,可采用本申请的技术方案进行处理,本实施例并不再赘述。It is understandable that the unlocking success rate is relatively high when the screen is turned on and fingerprint recognition is entered. However, with the use of terminal equipment, if the display screen is aging and the unlocking success rate is reduced, the technical solution of this application can be used to deal with it. , which will not be described again in this embodiment.
在实际应用中,亮屏状态与灭屏状态的指纹光斑亮度不同,通常情况下,显示屏处于亮屏状态时的指纹光斑亮度能够满足亮度要求,所述指纹识别方法还包括:在监测到针对显示屏上指纹识别区域的触控操作时,In practical applications, the brightness of fingerprint spots in the screen-on state and the screen-off state are different. Normally, the brightness of the fingerprint spot when the display screen is in the screen-on state can meet the brightness requirements. The fingerprint identification method also includes: When touching the fingerprint recognition area on the display screen,
若显示屏为亮屏状态,则可以直接进入上述识别图采集过程;If the display screen is on, you can directly enter the above identification map collection process;
若显示屏不是亮屏状态,即显示屏为灭屏状态,则进入预采图采集过程, 采集指纹预采图。If the display screen is not on, that is, the screen is off, the process of pre-capture image collection will be entered to collect the fingerprint pre-capture image.
例如,在监测到手指触摸指纹识别区域时,先对显示屏的状态进行判断,当显示屏为亮屏状态时,其指纹光斑一般情况满足指纹识别的需要,直接进入指纹识别图采集过程,只有当显示屏处于灭屏状态才进行指纹预采图的采集,判断当前的指纹光斑是否满足指纹识别的需要,这样可以进一步提升指纹识别的效率,提升用户体验。可选的,下述通过一个具体的实施例对从灭屏状态进入指纹识别场景来执行本申请实施例提供的指纹识别方法进行解释说明。即在确定显示屏处于亮屏状态时跳过预采图采集过程,直接进入识别图采集过程;而在显示屏是灭屏状态时,先进入预采图采集过程,采集指纹预采图,进而判断指纹光斑是否满足指纹识别的要求,如满足则进入识别图采集过程,完成显示屏的屏幕解锁,即指纹识别,当完成指纹识别时,视情况进入预采目标亮度值更新过程,以保证指纹识别的性能和效率。For example, when it is detected that a finger touches the fingerprint recognition area, the status of the display screen is first judged. When the display screen is in a bright screen state, its fingerprint light spot generally meets the needs of fingerprint recognition, and the fingerprint recognition map collection process is directly entered. Only When the display screen is in the off-screen state, the fingerprint pre-collection image is collected to determine whether the current fingerprint light spot meets the needs of fingerprint recognition. This can further improve the efficiency of fingerprint recognition and improve the user experience. Optionally, the following uses a specific embodiment to explain the execution of the fingerprint identification method provided by the embodiment of the present application by entering the fingerprint identification scene from the screen-off state. That is, when it is determined that the display screen is in the on-screen state, the pre-collection image collection process is skipped and the identification map collection process is directly entered; when the display screen is in the off-screen state, the pre-collection picture collection process is first entered to collect the fingerprint pre-collection map, and then Determine whether the fingerprint light spot meets the requirements for fingerprint identification. If it meets the requirements, it will enter the identification map collection process and complete the screen unlocking of the display, that is, fingerprint identification. When the fingerprint identification is completed, it will enter the pre-acquisition target brightness value update process as appropriate to ensure that the fingerprint Recognition performance and efficiency.
作为一个可选的实施例,在图7中,还可以在S702之前,先判断S701是从亮屏状态进入显示屏的屏幕解锁,还是在灭屏状态进入显示屏的屏幕解锁过程,以便进一步确认是否进入预采目标亮度值更新过程,即确认是否需要更新预采目标亮度值。As an optional embodiment, in Figure 7, before S702, it can also be determined whether S701 enters the screen unlocking process of the display screen from the on-screen state, or enters the screen unlocking process of the display screen in the off-screen state, for further confirmation. Whether to enter the pre-collection target brightness value update process, that is, confirm whether the pre-collection target brightness value needs to be updated.
具体地,在根据显示屏是否解锁成功,指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件之前,所述方法还包括:Specifically, before determining whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, the method further includes:
若从显示屏灭屏状态进入识别图采集过程,则根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;或者If the display screen is turned off and the identification map collection process is entered, it is determined whether the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
若从显示屏亮屏状态进入识别图采集过程,则结束流程;If the identification map collection process is entered from the display screen-on state, the process ends;
其中,所述显示屏亮屏状态或者所述显示屏灭屏状态是在监测到针对显示屏上指纹识别区域的触控操作时显示屏的状态。Wherein, the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
可以理解,在显示屏处于灭屏状态时,才根据目标值更新条件,来动态更新预采目标亮度值,以提升指纹识别的性能;而在显示屏处于亮屏状态时,一般情况下,指纹光斑的亮度能达到指纹识别的要求,此时进行显示屏的屏幕解锁后就可以直接结束流程,提升指纹识别的效率。当然,为了提升指纹识别的准确率,显示屏从亮屏状态进入指纹识别,也可以根据目标值更新条件,来动态更新预采目标亮度值。It can be understood that when the display screen is in the off-screen state, the pre-acquisition target brightness value is dynamically updated according to the target value update condition to improve the performance of fingerprint recognition; when the display screen is in the on-screen state, under normal circumstances, the fingerprint The brightness of the light spot can meet the requirements of fingerprint recognition. At this time, the process can be ended directly after unlocking the display screen, improving the efficiency of fingerprint recognition. Of course, in order to improve the accuracy of fingerprint recognition, the display screen enters fingerprint recognition from the bright screen state, and the pre-collection target brightness value can also be dynamically updated according to the target value update conditions.
示例性的,图8是本申请实施例提供的指纹识别方法实施例五的流程示 意图。如图8所示,该指纹识别方法可以包括如下步骤:Illustratively, Figure 8 is a schematic flowchart of Embodiment 5 of the fingerprint identification method provided by the embodiment of the present application. As shown in Figure 8, the fingerprint identification method may include the following steps:
S801、判断显示屏是否处于亮屏状态;若否,进入预采图采集过程S81,执行S811;若是,进入识别图采集过程S82,执行S821;S801. Determine whether the display screen is in a bright screen state; if not, enter the pre-acquisition image collection process S81 and execute S811; if yes, enter the identification image acquisition process S82 and execute S821;
S811、采集指纹预采图;S811. Collect fingerprint pre-collection images;
S812、计算该指纹预采图的预采亮度值A1;S812. Calculate the pre-collection brightness value A1 of the fingerprint pre-collection image;
S813、判断预置的预采目标亮度值A2是否大于0;若是,执行S814;若否,进入识别图采集过程S82,执行S821;S813. Determine whether the preset pre-acquisition target brightness value A2 is greater than 0; if so, execute S814; if not, enter the identification map collection process S82 and execute S821;
S814、判断是否满足(A2-A1)/A2<H2;若是,进入识别图采集过程S82,执行S821;若否,执行S815;S814. Determine whether (A2-A1)/A2<H2 is satisfied; if yes, enter the identification map collection process S82 and execute S821; if not, execute S815;
可选的,H2的取值在0~1之间,例如H2=0.5,也就是说当(A2-A1)/A2的值小于0.5时,则被认为当前指纹光斑的亮度值满足高亮的要求,可以进入识别图采集过程,进行指纹识别图采集。可选的,H2=0.2,此时对于当前指纹光斑的亮度要求更高,进一步的能够提升后面进行指纹识别时的性能。Optional, the value of H2 is between 0 and 1, for example, H2=0.5, that is to say, when the value of (A2-A1)/A2 is less than 0.5, it is considered that the brightness value of the current fingerprint spot meets the requirement of highlighting. Requirements, you can enter the identification map collection process to collect fingerprint identification maps. Optional, H2=0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition.
S815、判断指纹预采图总帧数n1是否小于最大预采图帧数N1;若是,转到S811;若否,进入识别图采集过程S82,执行S821。S815. Determine whether the total number of fingerprint pre-acquisition image frames n1 is less than the maximum number of pre-acquisition image frames N1; if so, go to S811; if not, enter the identification map collection process S82 and execute S821.
S821、采集指纹识别图。S821. Collect fingerprint identification images.
可选的,指纹识别图的曝光时间大于指纹预采图的曝光时间,且指纹识别图的尺寸大于指纹预采图的尺寸。通常情况下,指纹预采图的曝光时间较短,例如可以是2ms。Optionally, the exposure time of the fingerprint identification map is greater than the exposure time of the fingerprint pre-collection map, and the size of the fingerprint identification map is greater than the size of the fingerprint pre-collection map. Usually, the exposure time of the fingerprint pre-capture image is short, for example, it can be 2ms.
S822、基于指纹识别图和预设指纹信息,执行显示屏的解锁过程,即显示屏的屏幕解锁。S822. Based on the fingerprint recognition map and preset fingerprint information, execute the unlocking process of the display screen, that is, the screen unlocking of the display screen.
可选的,在S822之后,该方法还包括如下步骤:Optionally, after S822, the method also includes the following steps:
S802、判断是否是从亮屏状态进入的识别图采集过程;若是,则结束流程;若否,则进入预采目标亮度值更新过程S83,执行S831。S802. Determine whether the identification map collection process is entered from the bright screen state; if so, end the process; if not, enter the pre-collection target brightness value update process S83, and execute S831.
S831、判断是否满足目标值更新条件;若是,执行S832;若否,结束流程。S831. Determine whether the target value update condition is met; if so, execute S832; if not, end the process.
其中,目标值更新条件包括:显示屏解锁成功、指纹识别的触控面积大于预置面积阈值、指纹识别图亮度值小于设定亮度阈值。Among them, the target value update conditions include: the display screen is unlocked successfully, the touch area of fingerprint recognition is greater than the preset area threshold, and the brightness value of the fingerprint recognition image is less than the set brightness threshold.
S832、控制预采目标亮度值A2的间隔更新次数加1;S832. Control the number of interval updates of the pre-acquisition target brightness value A2 to be increased by 1;
也就是说,当显示屏解锁成功、指纹识别的触控面积大于预置面积阈值、指纹识别图亮度值小于设定亮度阈值时,预采目标亮度值的间隔更新次数加1。That is to say, when the display screen is unlocked successfully, the touch area of fingerprint recognition is greater than the preset area threshold, and the brightness value of the fingerprint recognition image is less than the set brightness threshold, the number of interval updates of the pre-collection target brightness value is increased by 1.
S833、判断预采目标亮度值A2是否等于0或预采目标亮度值A2的当前间隔更新次数n2是否大于预置的间隔更新次数阈值N2;若是,执行S834;若否,结束流程。S833. Determine whether the pre-collection target brightness value A2 is equal to 0 or whether the current interval update number n2 of the pre-collection target brightness value A2 is greater than the preset interval update count threshold N2; if yes, execute S834; if not, end the process.
S834、根据A1更新A2。S834. Update A2 according to A1.
具体地,若预采目标亮度值等于0,则将指纹预采图的预采亮度值A1赋值给预采目标亮度值A2;Specifically, if the pre-collection target brightness value is equal to 0, then the pre-collection brightness value A1 of the fingerprint pre-collection image is assigned to the pre-collection target brightness value A2;
若预采目标亮度值大于0,则将指纹预采图的预采亮度值A1和预采目标亮度值A2的平均亮度值赋值给预采目标亮度值A2。If the pre-capture target brightness value is greater than 0, the average brightness value of the pre-capture brightness value A1 and the pre-capture target brightness value A2 of the fingerprint pre-capture image is assigned to the pre-capture target brightness value A2.
所述若预采目标亮度值大于0,则将指纹预采图的预采亮度值A1和预采目标亮度值A2的平均亮度值赋值给预采目标亮度值A2,包括:If the pre-collection target brightness value is greater than 0, then the average brightness value of the pre-collection brightness value A1 and the pre-collection target brightness value A2 of the fingerprint pre-collection image is assigned to the pre-collection target brightness value A2, including:
若预采目标亮度值A2的当前间隔更新次数n2大于预置的间隔更新次数阈值N2,则将指纹预采图的预采亮度值A1和预采目标亮度值A2的平均亮度值赋值给预采目标亮度值A2;或者If the current interval update number n2 of the pre-acquisition target brightness value A2 is greater than the preset interval update times threshold N2, then the average brightness value of the pre-acquisition brightness value A1 of the fingerprint pre-acquisition map and the pre-acquisition target brightness value A2 is assigned to the pre-acquisition Target brightness value A2; or
若预采目标亮度值A2的当前间隔更新次数n2小于等于预置的间隔更新次数阈值N2,则继续根据显示屏是否解锁成功,指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件。If the current interval update number n2 of the pre-acquisition target brightness value A2 is less than or equal to the preset interval update number threshold N2, continue to determine whether the target is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image. Value update condition.
关于该实施例中各步骤的具体实现可参见上述各实施例中的详细记载,此处不作赘述。For the specific implementation of each step in this embodiment, please refer to the detailed descriptions in the above embodiments, and will not be described again here.
示例性的,基于上述各实施例记载的内容,图9是指纹预采图和/或指纹识别图的亮度随时间变化的示意图。如图9所示,在显示屏处于灭屏状态时,采集到的指纹预采图的亮度为0,例如,图9中的指纹预采图0和指纹预采图1;随着指纹预采图的采集,例如,在10毫秒时,指纹识别区域的指纹光斑亮度逐渐变亮,使得采集到的指纹预采图的亮度增加,例如,指纹预采图2至指纹预采图n-1的亮度均变为第一亮度;随后,例如,在20毫秒时,指纹识别区域的光斑变的更亮,例如,第二亮度,相应的,指纹预采图的亮度增加,例如,指纹预采图n之后的亮度变为第二亮度,直到指纹预采图的亮度值满足高亮要求/指纹光斑亮度值满足指纹识别的要求,才进入指纹识别图的采集,避免了指纹光斑的亮度不足而导致指纹识别不成功,提升了指纹识别装置的性能和用户体验。Illustratively, based on the content described in the above embodiments, FIG. 9 is a schematic diagram showing the brightness of the fingerprint pre-acquisition image and/or the fingerprint recognition image changing with time. As shown in Figure 9, when the display is in the off-screen state, the brightness of the collected fingerprint pre-collection pictures is 0, for example, the fingerprint pre-collection picture 0 and the fingerprint pre-collection picture 1 in Figure 9; as the fingerprint pre-collection pictures When collecting the image, for example, at 10 milliseconds, the brightness of the fingerprint spot in the fingerprint recognition area gradually becomes brighter, causing the brightness of the collected fingerprint pre-collection image to increase, for example, the fingerprint pre-collection image 2 to the fingerprint pre-collection image n-1 The brightness changes to the first brightness; then, for example, at 20 milliseconds, the light spot in the fingerprint recognition area becomes brighter, for example, the second brightness, and correspondingly, the brightness of the fingerprint pre-snap image increases, for example, the fingerprint pre-snap image The brightness after n becomes the second brightness. It is not until the brightness value of the fingerprint pre-acquisition image meets the highlight requirements/the fingerprint spot brightness value meets the requirements of fingerprint identification that the fingerprint identification image is collected, which avoids the problem of insufficient brightness of the fingerprint light spot. Fingerprint recognition is unsuccessful, which improves the performance and user experience of the fingerprint recognition device.
图10为本申请实施例提供的指纹识别装置的结构示意图。如图10所示,该指纹识别装置1000包括:Figure 10 is a schematic structural diagram of a fingerprint identification device provided by an embodiment of the present application. As shown in Figure 10, the fingerprint identification device 1000 includes:
采集模块1001,用于在监测到针对显示屏上指纹识别区域的触控操作时,采集指纹预采图;The acquisition module 1001 is used to collect a fingerprint pre-acquisition map when a touch operation targeting the fingerprint recognition area on the display screen is detected;
示例性的,采集模块1001包括像素单元阵列。Exemplarily, the collection module 1001 includes a pixel unit array.
处理模块1002,用于根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,所述预采结束条件包括预采目标亮度值;The processing module 1002 is configured to determine whether to enter the identification map collection process based on the fingerprint pre-collection map and preset pre-collection end conditions, where the pre-collection end condition includes the pre-collection target brightness value;
所述采集模块1001,用于在进入所述识别图采集过程后,采集指纹识别图,所述指纹识别图用于所述显示屏的屏幕解锁。The collection module 1001 is configured to collect a fingerprint identification pattern after entering the identification pattern collection process, and the fingerprint identification pattern is used to unlock the screen of the display screen.
在本实施例的一种可能设计中,处理模块1002,具体用于:In one possible design of this embodiment, the processing module 1002 is specifically used to:
若所述预采目标亮度值等于0,则确定进入识别图采集过程;If the brightness value of the pre-acquisition target is equal to 0, it is determined to enter the identification map collection process;
若所述预采目标亮度值大于0,则根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定是否进入识别图采集过程。If the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
可选的,所述处理模块1002,具体用于:Optionally, the processing module 1002 is specifically used for:
根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定所述指纹预采图的预采亮度值是否满足预设亮度要求;若所述指纹预采图的预采亮度值满足预设亮度要求,则确定进入识别图采集过程;According to the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value, it is determined whether the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirement; if the pre-collection brightness value of the fingerprint pre-collection map is If the brightness value meets the preset brightness requirements, it is determined to enter the identification map collection process;
若所述指纹预采图的预采亮度值未满足预设亮度要求,则确定已采集的指纹预采图总帧数,根据所述指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程,所述预采结束条件还包括所述最大预采图帧数。If the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process, and the pre-collection end condition also includes the maximum number of pre-collection map frames.
可选的,所述预设亮度要求通过如下公式表征:Optionally, the preset brightness requirement is characterized by the following formula:
(A2-A1)/A2<H2(A2-A1)/A2<H2
其中,A2是所述预采目标亮度值,A1是所述指纹预采图的预采亮度值,H2为预设阈值。Wherein, A2 is the pre-collection target brightness value, A1 is the pre-collection brightness value of the fingerprint pre-collection image, and H2 is a preset threshold.
可选的,H2的取值在0~1之间,例如H2=0.5,也就是说当(A2-A1)/A2的值小于0.5时,则被认为当前指纹光斑的亮度值满足高亮的要求,可以进入识别图采集过程,进行指纹识别图采集。可选的,H2=0.2,此时对于当前指纹光斑的亮度要求更高,进一步的能够提升后面进行指纹识别时的性能。Optional, the value of H2 is between 0 and 1, for example, H2=0.5, that is to say, when the value of (A2-A1)/A2 is less than 0.5, it is considered that the brightness value of the current fingerprint spot meets the requirement of highlighting. Requirements, you can enter the identification map collection process to collect fingerprint identification maps. Optional, H2=0.2, at this time, the brightness requirement of the current fingerprint spot is higher, which can further improve the performance of subsequent fingerprint recognition.
可选的,所述处理模块1002,具体用于:Optionally, the processing module 1002 is specifically used for:
若所述指纹预采图总帧数大于或等于最大预采图帧数,则确定进入识别图采集过程;If the total number of frames of the fingerprint pre-collection images is greater than or equal to the maximum number of frames of the pre-acquisition images, it is determined to enter the identification map collection process;
若所述指纹预采图总帧数小于所述最大预采图帧数,则继续采集一帧指纹预采图。If the total number of frames of fingerprint pre-collection images is less than the maximum number of frames of pre-acquisition images, continue to collect one frame of fingerprint pre-acquisition images.
在本实施例的一种可能设计中,所述处理模块1002,还用于:In a possible design of this embodiment, the processing module 1002 is also used to:
基于所述指纹识别图和预设指纹信息,执行所述显示屏的屏幕解锁;Based on the fingerprint recognition map and preset fingerprint information, perform screen unlocking of the display screen;
根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;Determine whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image;
当满足目标值更新条件时,更新所述预采目标亮度值;或者When the target value update condition is met, update the pre-collection target brightness value; or
当不满足目标值更新条件时,结束流程。When the target value update conditions are not met, the process ends.
所述目标值更新条件,包括:所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值。The target value update conditions include: the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the fingerprint recognition image brightness value is less than a set brightness threshold.
可选的,所述处理模块1002,具体用于根据所述指纹预采图的预采亮度值更新所述预采目标亮度值。Optionally, the processing module 1002 is specifically configured to update the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map.
可选的,所述处理模块1002,具体用于:Optionally, the processing module 1002 is specifically used for:
若所述预采目标亮度值等于0,则将所述纹预采图的预采亮度值赋值给所述预采目标亮度值;If the pre-collection target brightness value is equal to 0, then the pre-collection brightness value of the pattern pre-collection image is assigned to the pre-collection target brightness value;
若所述预采目标亮度值大于0,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值。If the pre-collection target brightness value is greater than 0, then the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value.
可选的,当所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值时,所述预采目标亮度值的间隔更新次数加1。Optionally, when the display screen is unlocked successfully, the touch area is greater than the preset area threshold and the brightness value of the fingerprint identification image is less than the set brightness threshold, the number of interval updates of the pre-collection target brightness value is increased by 1. .
可选的,所述处理模块1002,还用于在所述预采目标亮度值更新后,将所述预采目标亮度值的当前间隔更新次数置0。Optionally, the processing module 1002 is also configured to set the current interval update number of the pre-collection target brightness value to 0 after the pre-collection target brightness value is updated.
可选的,所述处理模块1002,具体用于若所述预采目标亮度值的当前间隔更新次数大于预置的间隔更新次数阈值,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值;或者Optionally, the processing module 1002 is specifically configured to, if the current interval update number of the pre-acquisition target brightness value is greater than a preset interval update number threshold, combine the pre-acquisition brightness value of the fingerprint pre-acquisition map and the pre-acquisition brightness value. Assign the average brightness value of the pre-collection target brightness value to the pre-collection target brightness value; or
若所述预采目标亮度值的当前间隔更新次数小于等于预置的间隔更新次数阈值,则继续根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件。If the current interval update times of the pre-collection target brightness value are less than or equal to the preset interval update times threshold, then continue to determine based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. Whether the target value update conditions are met.
可选的,所述指纹预采图小于所述指纹识别图,所述指纹预采图的曝光时间小于所述指纹识别图的曝光时间。指纹预采图用于判断指纹光斑是否满足高亮要求,即指纹识别所需亮度的要求,并不是直接用于指纹识别,因此不需要完整的指纹图像,这样设置可以提升判断指纹光斑亮度情况的效率,提升用户体验。Optionally, the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map. The fingerprint pre-acquisition image is used to determine whether the fingerprint spot meets the highlight requirements, that is, the brightness requirements required for fingerprint recognition. It is not directly used for fingerprint recognition, so a complete fingerprint image is not required. This setting can improve the ability to determine the brightness of the fingerprint spot. efficiency and improve user experience.
在本申请的一种实施例中,所述处理模块1002,还用于在监测到针对显示屏上指纹识别区域的触控操作时,若所述显示屏为亮屏状态,则直接进入所述识别图采集过程,若所述显示屏为灭屏状态,则采集所述指纹预采图。In one embodiment of the present application, the processing module 1002 is also configured to directly enter the screen if a touch operation targeting the fingerprint recognition area on the display screen is detected and the display screen is in a bright screen state. In the identification map collection process, if the display screen is in a screen-off state, the fingerprint pre-collection map is collected.
在根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件之前,所述处理模块1002还用于:Before determining whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, the processing module 1002 is also used to:
若从显示屏灭屏状态进入识别图采集过程,则根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;或者If the display screen is turned off and the identification map collection process is entered, it is determined whether the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
若从显示屏亮屏状态进入识别图采集过程,则结束流程;If the identification map collection process is entered from the display screen-on state, the process ends;
其中,所述显示屏亮屏状态或者所述显示屏灭屏状态是在监测到针对显示屏上指纹识别区域的触控操作时显示屏的状态。Wherein, the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
本申请实施例提供的指纹识别装置,可用于执行上述任意方法实施例中的指纹识别方法,其实现原理和技术效果类似,此处不做作赘述。The fingerprint identification device provided by the embodiments of the present application can be used to perform the fingerprint identification method in any of the above method embodiments. Its implementation principles and technical effects are similar, and will not be described in detail here.
根据本申请的实施例,还提供了一种终端设备,该终端设备,包括:According to an embodiment of the present application, a terminal device is also provided. The terminal device includes:
显示屏,触摸控制模块,以及设置在所述显示屏下方的指纹识别装置;A display screen, a touch control module, and a fingerprint recognition device provided below the display screen;
所述指纹识别装置为图10所述的指纹识别装置。The fingerprint identification device is the fingerprint identification device shown in Figure 10.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that the various numerical numbers involved in the embodiments of the present application are only for convenience of description and are not used to limit the scope of the embodiments of the present application. In the embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not constitute the implementation process of the embodiments of the present application. Any limitations.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present application. scope.

Claims (35)

  1. 一种指纹识别方法,其特征在于,包括:A fingerprint identification method, characterized by including:
    在监测到针对显示屏上指纹识别区域的触控操作时,采集指纹预采图;When a touch operation targeting the fingerprint recognition area on the display screen is detected, a fingerprint pre-acquisition map is collected;
    根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,所述预采结束条件包括预采目标亮度值;Determine whether to enter the identification map collection process according to the fingerprint pre-collection map and the preset pre-collection end condition, where the pre-collection end condition includes the pre-collection target brightness value;
    在进入所述识别图采集过程后,采集指纹识别图,所述指纹识别图用于所述显示屏的屏幕解锁。After entering the identification pattern collection process, a fingerprint identification pattern is collected, and the fingerprint identification pattern is used for screen unlocking of the display screen.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,包括:The method according to claim 1, characterized in that determining whether to enter the identification map collection process based on the fingerprint pre-collection map and preset pre-collection end conditions includes:
    若所述预采目标亮度值等于0,则确定进入识别图采集过程;If the brightness value of the pre-acquisition target is equal to 0, it is determined to enter the identification map collection process;
    若所述预采目标亮度值大于0,则根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定是否进入识别图采集过程。If the pre-collection target brightness value is greater than 0, it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述指纹预采图的预采亮度值和所述预采目标亮度值,确定是否进入识别图采集过程,包括:The method according to claim 2, wherein determining whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value includes:
    若所述指纹预采图的预采亮度值满足预设亮度要求,则确定进入识别图采集过程;If the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirements, it is determined to enter the identification map collection process;
    若所述指纹预采图的预采亮度值未满足预设亮度要求,则确定已采集的指纹预采图总帧数,根据所述指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程。If the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process.
  4. 根据权利要求3所述的方法,其特征在于,所述预设亮度要求通过如下公式表征:The method according to claim 3, characterized in that the preset brightness requirement is characterized by the following formula:
    (A2-A1)/A2<H2(A2-A1)/A2<H2
    其中,A2是所述预采目标亮度值,A1是所述指纹预采图的预采亮度值,H2为预设阈值。Wherein, A2 is the pre-collection target brightness value, A1 is the pre-collection brightness value of the fingerprint pre-collection image, and H2 is a preset threshold.
  5. 根据权利要求4所述的方法,其特征在于,H2的取值在0~1之间。The method according to claim 4, characterized in that the value of H2 is between 0 and 1.
  6. 根据权利要求5所述的方法,其特征在于,H2=0.5。The method according to claim 5, characterized in that H2=0.5.
  7. 根据权利要求3至6任一项所述的方法,其特征在于,所述根据所述指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程,包括:The method according to any one of claims 3 to 6, characterized in that determining whether to enter the identification map collection process based on the total number of frames of the fingerprint pre-collection map and the maximum number of frames of the pre-collection map includes:
    若所述指纹预采图总帧数大于或等于最大预采图帧数,则确定进入识别图采集过程;If the total number of frames of the fingerprint pre-collection images is greater than or equal to the maximum number of frames of the pre-acquisition images, it is determined to enter the identification map collection process;
    若所述指纹预采图总帧数小于所述最大预采图帧数,则继续采集一帧指纹预采图。If the total number of frames of fingerprint pre-collection images is less than the maximum number of frames of pre-acquisition images, continue to collect one frame of fingerprint pre-acquisition images.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 7, further comprising:
    基于所述指纹识别图和预设指纹信息,执行所述显示屏的屏幕解锁;Based on the fingerprint recognition map and preset fingerprint information, perform screen unlocking of the display screen;
    根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;Determine whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image;
    当满足目标值更新条件时,更新所述预采目标亮度值;或者When the target value update condition is met, update the pre-collection target brightness value; or
    当不满足目标值更新条件时,结束流程。When the target value update conditions are not met, the process ends.
  9. 根据权利要求8所述的方法,其特征在于,所述目标值更新条件,包括:所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值。The method according to claim 8, characterized in that the target value update conditions include: the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the fingerprint recognition image brightness value is less than a set value. Brightness threshold.
  10. 根据权利要求8或9所述的方法,其特征在于,所述更新所述预采目标亮度值,包括:根据所述指纹预采图的预采亮度值更新所述预采目标亮度值。The method according to claim 8 or 9, wherein updating the pre-collection target brightness value includes: updating the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map.
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述指纹预采图的预采亮度值更新所述预采目标亮度值,包括:The method according to claim 10, characterized in that, updating the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map includes:
    若所述预采目标亮度值等于0,则将所述指纹预采图的预采亮度值赋值给所述预采目标亮度值;If the pre-collection target brightness value is equal to 0, then assign the pre-collection brightness value of the fingerprint pre-collection map to the pre-collection target brightness value;
    若所述预采目标亮度值大于0,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值。If the pre-collection target brightness value is greater than 0, then the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value.
  12. 根据权利要求11所述的方法,其特征在于,当所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值时,所述预采目标亮度值的间隔更新次数加1。The method according to claim 11, characterized in that when the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the brightness value of the fingerprint recognition image is less than a set brightness threshold, the pre-sampling The number of interval updates of the target brightness value is increased by 1.
  13. 根据权利要求12所述的方法,其特征在于,还包括:The method of claim 12, further comprising:
    在所述预采目标亮度值更新后,将所述预采目标亮度值的当前间隔更新次数置0。After the pre-collection target brightness value is updated, the current interval update number of the pre-collection target brightness value is set to 0.
  14. 根据权利要求11至13任一项所述的方法,其特征在于,所述若所述预采目标亮度值大于0,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值,包括:The method according to any one of claims 11 to 13, characterized in that if the brightness value of the pre-sampling target is greater than 0, then the pre-sampling brightness value of the fingerprint pre-sampling image and the pre-sampling target The average brightness value of the brightness value is assigned to the pre-acquisition target brightness value, including:
    若所述预采目标亮度值的当前间隔更新次数大于预置的间隔更新次数阈值,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值 赋值给所述预采目标亮度值;或者If the current interval update number of the pre-sampling target brightness value is greater than the preset interval update times threshold, then the pre-sampling brightness value of the fingerprint pre-sampling map and the average brightness value of the pre-sampling target brightness value are assigned to the pre-sampling target brightness value. The pre-acquisition target brightness value is specified; or
    若所述预采目标亮度值的当前间隔更新次数小于等于预置的间隔更新次数阈值,则继续根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件。If the current interval update times of the pre-collection target brightness value are less than or equal to the preset interval update times threshold, then continue to determine based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. Whether the target value update conditions are met.
  15. 根据权利要求1至14任一项所述的方法,其特征在于,所述指纹预采图小于所述指纹识别图,所述指纹预采图的曝光时间小于所述指纹识别图的曝光时间。The method according to any one of claims 1 to 14, characterized in that the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map.
  16. 根据权利要求1至15任一项所述的方法,其特征在于,所述方法还包括:在监测到针对显示屏上指纹识别区域的触控操作时,The method according to any one of claims 1 to 15, characterized in that the method further includes: when a touch operation targeting the fingerprint recognition area on the display screen is detected,
    若所述显示屏为亮屏状态,则直接进入所述识别图采集过程;If the display screen is in a bright screen state, directly enter the identification map collection process;
    若所述显示屏为灭屏状态,则采集所述指纹预采图。If the display screen is in a screen-off state, the fingerprint pre-collection image is collected.
  17. 根据权利要求8至14任一项所述的方法,其特征在于,在根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件之前,所述方法还包括:The method according to any one of claims 8 to 14, characterized in that, based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image, it is determined whether the target value update condition is met. Previously, the method also included:
    若从显示屏灭屏状态进入识别图采集过程,则根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;或者If the display screen is turned off and the identification map collection process is entered, it is determined whether the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
    若从显示屏亮屏状态进入识别图采集过程,则结束流程;If the identification map collection process is entered from the display screen-on state, the process ends;
    其中,所述显示屏亮屏状态或者所述显示屏灭屏状态是在监测到针对显示屏上指纹识别区域的触控操作时显示屏的状态。Wherein, the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
  18. 一种指纹识别装置,其特征在于,包括:A fingerprint identification device, characterized by including:
    采集模块,用于在监测到针对显示屏上指纹识别区域的触控操作时,采集指纹预采图;A collection module used to collect fingerprint pre-collection images when a touch operation targeting the fingerprint recognition area on the display screen is detected;
    处理模块,用于根据所述指纹预采图和预置的预采结束条件,确定是否进入识别图采集过程,所述预采结束条件包括预采目标亮度值;A processing module configured to determine whether to enter the identification map collection process based on the fingerprint pre-collection map and preset pre-collection end conditions, where the pre-collection end conditions include the pre-collection target brightness value;
    所述采集模块,还用于在进入所述识别图采集过程后,采集指纹识别图,所述指纹识别图用于所述显示屏的屏幕解锁。The collection module is also configured to collect a fingerprint identification pattern after entering the identification pattern collection process, and the fingerprint identification pattern is used to unlock the screen of the display screen.
  19. 根据权利要求18所述的装置,其特征在于,所述处理模块,具体用于:The device according to claim 18, characterized in that the processing module is specifically used for:
    若所述预采目标亮度值等于0,则确定进入识别图采集过程;If the brightness value of the pre-acquisition target is equal to 0, it is determined to enter the identification map collection process;
    若所述预采目标亮度值大于0,则根据所述指纹预采图的预采亮度值和所 述预采目标亮度值,确定是否进入识别图采集过程。If the pre-collection target brightness value is greater than 0, then it is determined whether to enter the identification map collection process based on the pre-collection brightness value of the fingerprint pre-collection map and the pre-collection target brightness value.
  20. 根据权利要求19所述的装置,其特征在于,所述处理模块,具体用于:The device according to claim 19, characterized in that the processing module is specifically used for:
    若所述指纹预采图的预采亮度值满足预设亮度要求,则确定进入识别图采集过程;If the pre-collection brightness value of the fingerprint pre-collection map meets the preset brightness requirements, it is determined to enter the identification map collection process;
    若所述指纹预采图的预采亮度值未满足预设亮度要求,则确定已采集的指纹预采图总帧数,根据所述指纹预采图总帧数和最大预采图帧数,确定是否进入识别图采集过程。If the pre-collection brightness value of the fingerprint pre-collection map does not meet the preset brightness requirement, the total number of frames of the fingerprint pre-collection map that has been collected is determined. According to the total number of frames of the fingerprint pre-collection map and the maximum number of pre-collection map frames, Determine whether to enter the identification map collection process.
  21. 根据权利要求20所述的装置,其特征在于,所述预设亮度要求通过如下公式表征:The device according to claim 20, wherein the preset brightness requirement is characterized by the following formula:
    (A2-A1)/A2<H2(A2-A1)/A2<H2
    其中,A2是所述预采目标亮度值,A1是所述指纹预采图的预采亮度值,H2为预设阈值。Wherein, A2 is the pre-collection target brightness value, A1 is the pre-collection brightness value of the fingerprint pre-collection image, and H2 is a preset threshold.
  22. 根据权利要求21所述的装置,其特征在于,H2的取值在0~1之间。The device according to claim 21, characterized in that the value of H2 is between 0 and 1.
  23. 根据权利要求22所述的装置,其特征在于,H2=0.5。The device according to claim 22, characterized in that H2=0.5.
  24. 根据权利要求20至23任一项所述的装置,其特征在于,所述处理模块,具体用于:The device according to any one of claims 20 to 23, characterized in that the processing module is specifically used for:
    若所述指纹预采图总帧数大于或等于最大预采图帧数,则确定进入识别图采集过程;If the total number of frames of the fingerprint pre-collection images is greater than or equal to the maximum number of frames of the pre-acquisition images, it is determined to enter the identification map collection process;
    若所述指纹预采图总帧数小于所述最大预采图帧数,则继续采集一帧指纹预采图。If the total number of frames of fingerprint pre-collection images is less than the maximum number of frames of pre-acquisition images, continue to collect one frame of fingerprint pre-acquisition images.
  25. 根据权利要求18至24任一项所述的装置,其特征在于,所述处理模块,还用于:The device according to any one of claims 18 to 24, characterized in that the processing module is also used to:
    基于所述指纹识别图和预设指纹信息,执行所述显示屏的屏幕解锁;Based on the fingerprint recognition map and preset fingerprint information, perform screen unlocking of the display screen;
    根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;Determine whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image;
    当满足目标值更新条件时,更新所述预采目标亮度值;或者When the target value update condition is met, update the pre-collection target brightness value; or
    当不满足目标值更新条件时,结束流程。When the target value update conditions are not met, the process ends.
  26. 根据权利要求25所述的装置,其特征在于,所述目标值更新条件,包括:所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识 别图亮度值小于设定亮度阈值。The device according to claim 25, wherein the target value update conditions include: the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the fingerprint recognition image brightness value is less than a set value. Brightness threshold.
  27. 根据权利要求25或26所述的装置,其特征在于,所述处理模块,具体用于根据所述指纹预采图的预采亮度值更新所述预采目标亮度值。The device according to claim 25 or 26, characterized in that the processing module is specifically configured to update the pre-collection target brightness value according to the pre-collection brightness value of the fingerprint pre-collection map.
  28. 根据权利要求27所述的装置,其特征在于,所述处理模块,具体用于:The device according to claim 27, characterized in that the processing module is specifically used for:
    若所述预采目标亮度值等于0,则将所述纹预采图的预采亮度值赋值给所述预采目标亮度值;If the pre-collection target brightness value is equal to 0, then the pre-collection brightness value of the pattern pre-collection image is assigned to the pre-collection target brightness value;
    若所述预采目标亮度值大于0,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值。If the pre-collection target brightness value is greater than 0, then the average brightness value of the pre-collection brightness value of the fingerprint pre-collection image and the pre-collection target brightness value is assigned to the pre-collection target brightness value.
  29. 根据权利要求28所述的装置,其特征在于,当所述显示屏解锁成功,所述触控面积大于预置面积阈值且所述指纹识别图亮度值小于设定亮度阈值时,所述预采目标亮度值的间隔更新次数加1。The device according to claim 28, characterized in that when the display screen is unlocked successfully, the touch area is greater than a preset area threshold and the brightness value of the fingerprint recognition image is less than a set brightness threshold, the pre-sampling The number of interval updates of the target brightness value is increased by 1.
  30. 根据权利要求29所述的装置,其特征在于,所述处理模块,还用于在所述预采目标亮度值更新后,将所述预采目标亮度值的当前间隔更新次数置0。The device according to claim 29, wherein the processing module is further configured to set the current interval update number of the pre-collection target brightness value to 0 after the pre-collection target brightness value is updated.
  31. 根据权利要求28至30任一项所述的装置,其特征在于,所述处理模块,具体用于:The device according to any one of claims 28 to 30, characterized in that the processing module is specifically used for:
    若所述预采目标亮度值的当前间隔更新次数大于预置的间隔更新次数阈值,则将所述指纹预采图的预采亮度值和所述预采目标亮度值的平均亮度值赋值给所述预采目标亮度值;或者If the current interval update number of the pre-sampling target brightness value is greater than the preset interval update times threshold, then the pre-sampling brightness value of the fingerprint pre-sampling map and the average brightness value of the pre-sampling target brightness value are assigned to the pre-sampling target brightness value. The pre-acquisition target brightness value is specified; or
    若所述预采目标亮度值的当前间隔更新次数小于等于预置的间隔更新次数阈值,则继续根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件。If the current interval update times of the pre-collection target brightness value are less than or equal to the preset interval update times threshold, then continue to determine based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map. Whether the target value update conditions are met.
  32. 根据权利要求18至31任一项所述的装置,其特征在于,所述指纹预采图小于所述指纹识别图,所述指纹预采图的曝光时间小于所述指纹识别图的曝光时间。The device according to any one of claims 18 to 31, wherein the fingerprint pre-collection map is smaller than the fingerprint identification map, and the exposure time of the fingerprint pre-collection map is shorter than the exposure time of the fingerprint identification map.
  33. 根据权利要求18至32任一项所述的装置,其特征在于,所述处理模块,还用于在监测到针对显示屏上指纹识别区域的触控操作时,The device according to any one of claims 18 to 32, wherein the processing module is further configured to detect a touch operation on the fingerprint recognition area on the display screen,
    若所述显示屏为亮屏状态,则直接进入所述识别图采集过程;If the display screen is in a bright screen state, directly enter the identification map collection process;
    若所述显示屏为灭屏状态,则采集所述指纹预采图。If the display screen is in a screen-off state, the fingerprint pre-collection image is collected.
  34. 根据权利要求25至31任一项所述的装置,其特征在于,在根据所 述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件之前,所述处理模块还用于:The device according to any one of claims 25 to 31, wherein it is determined whether the target value update condition is met based on whether the display screen is successfully unlocked, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition image. Previously, the processing module was also used to:
    若从显示屏灭屏状态进入识别图采集过程,则根据所述显示屏是否解锁成功,所述指纹识别的触控面积和指纹识别图亮度值,确定是否满足目标值更新条件;或者If the display screen is turned off and the identification map collection process is entered, it is determined whether the target value update condition is met based on whether the display screen is unlocked successfully, the touch area of the fingerprint recognition and the brightness value of the fingerprint recognition map; or
    若从显示屏亮屏状态进入识别图采集过程,则结束流程;If the identification map collection process is entered from the display screen-on state, the process ends;
    其中,所述显示屏亮屏状态或者所述显示屏灭屏状态是在监测到针对显示屏上指纹识别区域的触控操作时显示屏的状态。Wherein, the display screen on state or the display screen off state is the state of the display screen when a touch operation on the fingerprint recognition area on the display screen is detected.
  35. 一种终端设备,其特征在于,包括:A terminal device, characterized by including:
    显示屏,触摸控制模块,以及设置在所述显示屏下方的指纹识别装置;A display screen, a touch control module, and a fingerprint recognition device provided below the display screen;
    所述触摸控制模块用于监测所述显示屏上方的触控操作;The touch control module is used to monitor touch operations above the display screen;
    所述指纹识别装置为上述权利要求18至34任一项所述的指纹识别装置。The fingerprint identification device is the fingerprint identification device described in any one of claims 18 to 34.
PCT/CN2022/094528 2022-05-23 2022-05-23 Fingerprint recognition method and apparatus, and terminal device WO2023225815A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280001423.8A CN115136210B (en) 2022-05-23 2022-05-23 Fingerprint identification method and device and terminal equipment
PCT/CN2022/094528 WO2023225815A1 (en) 2022-05-23 2022-05-23 Fingerprint recognition method and apparatus, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/094528 WO2023225815A1 (en) 2022-05-23 2022-05-23 Fingerprint recognition method and apparatus, and terminal device

Publications (1)

Publication Number Publication Date
WO2023225815A1 true WO2023225815A1 (en) 2023-11-30

Family

ID=83387064

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094528 WO2023225815A1 (en) 2022-05-23 2022-05-23 Fingerprint recognition method and apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN115136210B (en)
WO (1) WO2023225815A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295195A (en) * 2017-07-21 2017-10-24 维沃移动通信有限公司 A kind of fingerprint identification method and mobile terminal
CN112528888A (en) * 2020-12-16 2021-03-19 北京集创北方科技股份有限公司 Optical fingerprint acquisition method and device, electronic equipment and storage medium
TW202131065A (en) * 2020-02-10 2021-08-16 敦泰電子股份有限公司 Unlocking method for mobile device with in-display fingerprint
CN113963385A (en) * 2021-09-30 2022-01-21 北京极豪科技有限公司 Fingerprint image acquisition method and device and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004326820A (en) * 2004-06-28 2004-11-18 Nec Corp Fingerprint input device
CN107656665A (en) * 2016-07-25 2018-02-02 印象认知(北京)科技有限公司 Fingerprint collecting control method, device and electronic equipment based on display screen
CN107197086B (en) * 2017-04-28 2020-04-21 Oppo广东移动通信有限公司 Unlocking control method and related product
CN107728979A (en) * 2017-09-30 2018-02-23 联想(北京)有限公司 A kind of processing method and electronic equipment
WO2019104551A1 (en) * 2017-11-29 2019-06-06 华为技术有限公司 Fingerprint identification method, and terminal device
CN110505412B (en) * 2018-05-18 2021-01-29 杭州海康威视数字技术股份有限公司 Method and device for calculating brightness value of region of interest
CN110765813B (en) * 2018-07-26 2023-08-18 北京小米移动软件有限公司 Fingerprint identification method and device
CN109657561B (en) * 2018-11-26 2023-04-07 Oppo广东移动通信有限公司 Fingerprint acquisition method and related product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295195A (en) * 2017-07-21 2017-10-24 维沃移动通信有限公司 A kind of fingerprint identification method and mobile terminal
TW202131065A (en) * 2020-02-10 2021-08-16 敦泰電子股份有限公司 Unlocking method for mobile device with in-display fingerprint
CN112528888A (en) * 2020-12-16 2021-03-19 北京集创北方科技股份有限公司 Optical fingerprint acquisition method and device, electronic equipment and storage medium
CN113963385A (en) * 2021-09-30 2022-01-21 北京极豪科技有限公司 Fingerprint image acquisition method and device and electronic equipment

Also Published As

Publication number Publication date
CN115136210A (en) 2022-09-30
CN115136210B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
WO2020164264A1 (en) Facial image recognition method and apparatus, and computer device
CN108334769B (en) Fingerprint unlocking method and device
US20160062456A1 (en) Method and apparatus for live user recognition
US10061970B2 (en) Method for controlling unlocking and mobile terminal
CN109067983B (en) Information prompting method, storage medium and electronic equipment
JP6572537B2 (en) Authentication apparatus, method, and program
CN109858227B (en) Fingerprint input method and device, electronic equipment and storage medium
KR20170129476A (en) Touch screen apparatus capable of touch sensing and fingerprint sensing and method of driving the touch screen apparatus, and electronic apparatus including the same
CN108595935B (en) Fingerprint unlocking method and device
JP2022524833A (en) Fingerprint image enhancement, fingerprint recognition, application program startup method, fingerprint detection system, electronic devices and storage media
CN108509944B (en) Fingerprint identification method and device
CN110287666B (en) Fingerprint unlocking method and related device
CN101673329B (en) Establishment method of biometric data, electronic device and computer program product thereof
US20240127624A1 (en) Fingerprint recognition method, electronic device, and readable storage medium
CN107113349A (en) The method of terminal device and identification fingerprint
US11032411B2 (en) Control method for electronic device, electronic device, computer readable storage medium
CN109844764A (en) The verification method and terminal of fingerprint sensor function
CN111064842B (en) Method, terminal and storage medium for recognizing special-shaped touch
WO2023225815A1 (en) Fingerprint recognition method and apparatus, and terminal device
CN110287861B (en) Fingerprint identification method and device, storage medium and electronic equipment
WO2020199159A1 (en) Method and electronic device for guiding users to register fingerprints
CN112699811A (en) Living body detection method, apparatus, device, storage medium, and program product
CN108681716B (en) Fingerprint unlocking method and device
US9710080B2 (en) Portable electronic device including contact sensors, and method for controlling same
US11341880B1 (en) Multi-sensor scene brightness analysis to check camera pipeline integrity

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22943021

Country of ref document: EP

Kind code of ref document: A1