[go: up one dir, main page]

CN110287842A - fingerprint scanning method and related product - Google Patents

fingerprint scanning method and related product Download PDF

Info

Publication number
CN110287842A
CN110287842A CN201910523822.0A CN201910523822A CN110287842A CN 110287842 A CN110287842 A CN 110287842A CN 201910523822 A CN201910523822 A CN 201910523822A CN 110287842 A CN110287842 A CN 110287842A
Authority
CN
China
Prior art keywords
preset
fingerprint
area
frequency
pressing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910523822.0A
Other languages
Chinese (zh)
Other versions
CN110287842B (en
Inventor
戴聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910523822.0A priority Critical patent/CN110287842B/en
Publication of CN110287842A publication Critical patent/CN110287842A/en
Application granted granted Critical
Publication of CN110287842B publication Critical patent/CN110287842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • 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/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/0416Control or interface arrangements specially adapted for digitisers
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Image Input (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a fingerprint scanning method and a related product, wherein the fingerprint scanning method is applied to electronic equipment, the electronic equipment comprises a touch screen and a fingerprint sensor, and the method comprises the following steps: detecting whether a preset fingerprint identification area in the electronic equipment is in an open state, wherein the preset fingerprint identification area is an area which is displayed on a touch screen and used for receiving user fingerprint pressing; if the preset fingerprint identification area is determined to be in the opening state, the pressing detection scanning frequency of the fingerprint sensor is increased from the first preset frequency to the second preset frequency, and the fingerprint scanning frequency of the fingerprint sensor is increased from the third preset frequency to the fourth preset frequency. According to the embodiment of the application, when the fingerprint identification area is determined to be in the open state, the pressing detection scanning frequency and the fingerprint scanning frequency are improved, the efficiency of pressing determination and fingerprint scanning is improved, and the efficiency of unlocking the fingerprint under the screen is improved.

Description

指纹扫描方法及相关产品Fingerprint scanning method and related products

技术领域technical field

本申请涉及指纹识别技术领域,具体涉及指纹扫描方法及相关产品。The present application relates to the technical field of fingerprint identification, in particular to a fingerprint scanning method and related products.

背景技术Background technique

指纹识别即指通过比较不同指纹的细节特征点来进行鉴别。指纹识别技术涉及图像处理、模式识别、计算机视觉、数学形态学、小波分析等众多学科。由于每个人的指纹不同,就是同一人的十指之间,指纹也有明显区别,因此指纹可用于身份鉴定。Fingerprint recognition refers to identification by comparing the minutiae points of different fingerprints. Fingerprint recognition technology involves image processing, pattern recognition, computer vision, mathematical morphology, wavelet analysis and many other disciplines. Since each person's fingerprints are different, that is, between the ten fingers of the same person, the fingerprints are also significantly different, so the fingerprints can be used for identification.

传统前置或后置电容式指纹一直处于检测识别状态,却无法满足全面屏要求;当前的光学屏下指纹采用触控屏(touch screen,TP)作为屏下指纹的触发源,提升其识别触发速度能有效优化指纹解锁速度。但屏下指纹解锁在扫描用户指纹时,扫描频率低,使得指纹解锁的效率也较低,不能满足用户快速解锁的需求。Traditional front or rear capacitive fingerprints are always in the state of detection and recognition, but cannot meet the requirements of full screen; the current optical screen fingerprints use a touch screen (TP) as the trigger source of the fingerprint under the screen, which improves the recognition trigger. Speed can effectively optimize the fingerprint unlocking speed. However, when the user's fingerprint is scanned for under-screen fingerprint unlocking, the scanning frequency is low, which makes the fingerprint unlocking efficiency also low, and cannot meet the user's demand for quick unlocking.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种指纹扫描方法及相关产品,以期在确定预设指纹识别区域处于开启状态时,提高按压检测扫描频率和指纹扫描频率,提升按压确定和指纹扫描的效率,进而提升屏下指纹解锁的效率。The embodiments of the present application provide a fingerprint scanning method and related products, so as to increase the scanning frequency of pressing detection and the scanning frequency of fingerprints when it is determined that the preset fingerprint identification area is in an open state, improve the efficiency of pressing determination and fingerprint scanning, and further improve the screen The efficiency of fingerprint unlocking.

第一方面,本申请实施例提供一种指纹扫描方法,应用于电子设备,所述电子设备包括触控屏和指纹传感器所述方法包括:In a first aspect, an embodiment of the present application provides a fingerprint scanning method, which is applied to an electronic device, where the electronic device includes a touch screen and a fingerprint sensor. The method includes:

检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;Detecting whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving user fingerprint pressing;

若确定所述预设指纹识别区域处于开启状态,则将指纹传感器的按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹传感器的指纹扫描频率从第三预设频率提高至第四预设频率。If it is determined that the preset fingerprint recognition area is in an open state, the pressing detection scanning frequency of the fingerprint sensor is increased from the first preset frequency to the second preset frequency, and the fingerprint scanning frequency of the fingerprint sensor is increased from the third preset frequency to the fourth preset frequency.

第二方面,本申请实施例提供一种指纹扫描装置,所述指纹扫描装置包括:In a second aspect, an embodiment of the present application provides a fingerprint scanning device, and the fingerprint scanning device includes:

检测单元,用于检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;a detection unit, configured to detect whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving user fingerprint pressing;

调整单元,用于若确定所述预设指纹识别区域处于开启状态,则将指纹传感器的按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹传感器的指纹扫描频率从第三预设频率提高至第四预设频率。The adjustment unit is configured to increase the press detection scanning frequency of the fingerprint sensor from the first preset frequency to the second preset frequency if it is determined that the preset fingerprint identification area is in an open state, and increase the fingerprint scanning frequency of the fingerprint sensor from the first preset frequency to the second preset frequency. The third preset frequency is increased to the fourth preset frequency.

第三方面,本申请实施例提供一种电子装置,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行第一方面任一方法中的步骤的指令。In a third aspect, embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured by the is executed by the processor, and the program includes instructions for performing the steps in any of the methods of the first aspect.

第四方面,本申请实施例提供了一种计算机可读存储介质,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行第一方面任一方法所述的步骤的指令。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute instructions of the steps described in any of the methods in the first aspect.

第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute as implemented in the present application. Examples include some or all of the steps described in any method of the first aspect. The computer program product may be a software installation package.

可以看出,本申请实施例提供的指纹扫描方法和装置,应用于电子设备,电子设备包括触控屏和指纹传感器。在检测到电子设备中的预设指纹识别区域处于开启状态时,将按压检测扫描频率从第一预设频率提高到第二预设频率,将指纹扫描频率从第三预设频率提高至第四预设频率。由于预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域,那么当检测到指纹识别区域处于开启状态时提高频率,可以减少指纹识别区域处于关闭状态时的功耗。提升按压检测扫描频率和指纹扫描频率可以有效提升检测用户按压操作的效率和指纹扫描的效率,进而有效提升屏下指纹解锁效率。It can be seen that the fingerprint scanning method and device provided by the embodiments of the present application are applied to electronic equipment, and the electronic equipment includes a touch screen and a fingerprint sensor. When it is detected that the preset fingerprint identification area in the electronic device is in an open state, the pressing detection scanning frequency is increased from the first preset frequency to the second preset frequency, and the fingerprint scanning frequency is increased from the third preset frequency to the fourth preset frequency preset frequency. Since the preset fingerprint recognition area is an area displayed on the touch screen for receiving user fingerprint pressing, increasing the frequency when it is detected that the fingerprint recognition area is in an open state can reduce the power consumption when the fingerprint recognition area is in an off state. Increasing the scanning frequency of pressing detection and the scanning frequency of fingerprints can effectively improve the efficiency of detecting user's pressing operation and the efficiency of fingerprint scanning, thereby effectively improving the efficiency of unlocking fingerprints under the screen.

附图说明Description of drawings

下面将对本申请实施例所涉及到的附图作简单地介绍。The accompanying drawings involved in the embodiments of the present application will be briefly introduced below.

图1A是本申请实施例提供的一种电子设备的结构示意图;FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图1B是本申请实施例提供的一种指纹扫描方法流程示意图;FIG. 1B is a schematic flowchart of a fingerprint scanning method provided by an embodiment of the present application;

图2是本申请实施例提供的另一种指纹扫描方法流程示意图;2 is a schematic flowchart of another fingerprint scanning method provided by an embodiment of the present application;

图3是本申请实施例提供的另一种指纹扫描方法流程示意图;3 is a schematic flowchart of another fingerprint scanning method provided by an embodiment of the present application;

图4是本申请实施例提供的另一种指纹扫描方法流程示意图;4 is a schematic flowchart of another fingerprint scanning method provided by an embodiment of the present application;

图5是本申请实施例提供的一种电子装置的结构示意图;FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图6是本申请实施例提供的一种指纹扫描装置的功能单元组成框图。FIG. 6 is a block diagram of functional units of a fingerprint scanning device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

下面对本申请实施例进行详细介绍。The embodiments of the present application will be described in detail below.

请参阅图1A,图1A是本申请实施例提供的一种电子设备的结构示意图。其中,电子设备100包括触控屏101、指纹传感器102和指纹识别区域103,其中触控屏101用于发出光线,并显示出指纹识别区域103,指纹识别区域103用于接收用户指纹按压,通知用户的按压和抬起操作。在屏下指纹解锁中,触控屏主动发光,因此可以是有机发光二极管(OrganicLight-Emitting Diode,OLED)屏幕。另外电子设备100有Idle状态和Active状态,当处于Idle状态时,触控屏101处于低功耗模式,只检测屏幕上是否有按压产生,如果检测到有按压产生,则退出Idle状态,进入Active状态。当处于Active状态时,触控屏101检测屏幕上的所有信号,并做是否报点、报点坐标运算。指纹传感器102用于进行按压检测扫描和指纹扫描,前者用于在Idle状态时获得按压图像,确定屏幕上是否有按压操作,后者用于在Active状态时获得指纹图像,进行指纹识别。其中,本申请实施例中的指纹传感器102可以是互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)传感器,电子设备100可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。Please refer to FIG. 1A . FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 includes a touch screen 101, a fingerprint sensor 102, and a fingerprint identification area 103, wherein the touch screen 101 is used to emit light and display the fingerprint identification area 103, and the fingerprint identification area 103 is used to receive user fingerprints to press, notify The user's press and lift operations. In the under-screen fingerprint unlocking, the touch screen actively emits light, so it can be an organic light-emitting diode (Organic Light-Emitting Diode, OLED) screen. In addition, the electronic device 100 has an Idle state and an Active state. When in the Idle state, the touch screen 101 is in a low power consumption mode and only detects whether a press is generated on the screen. If a press is detected, it exits the Idle state and enters the Active state. state. When in the Active state, the touch screen 101 detects all the signals on the screen, and performs the calculation of whether to report the point and the coordinates of the point. The fingerprint sensor 102 is used for pressing detection scanning and fingerprint scanning. The former is used to obtain a pressing image in the Idle state to determine whether there is a pressing operation on the screen, and the latter is used to obtain a fingerprint image and perform fingerprint recognition in the Active state. Wherein, the fingerprint sensor 102 in this embodiment of the present application may be a complementary metal-oxide-semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS) sensor, and the electronic device 100 may include various handheld devices, vehicle-mounted devices, wearable devices with wireless communication functions A device, computing device or other processing device connected to a wireless modem, and various forms of User Equipment (UE), Mobile Station (MS), terminal device, and the like.

屏下指纹的整个过程为:用户因为移动或接触电子设备100而触发电子设备的指纹识别功能,开启指纹识别模块;触控屏101发光,且显示出指纹识别区域103;电子设备100为Idle状态,按照第一预设频率进行按压检测扫描;当确认用户的按压操作后,电子设备100切换为Active状态,按照第三预设频率进行指纹扫描,获取用户的在指纹识别区域103的指纹图像。最后指纹识别模块根据获得的指纹图像进行指纹识别。The whole process of the fingerprint on the screen is: the user triggers the fingerprint recognition function of the electronic device because of moving or touching the electronic device 100, and turns on the fingerprint recognition module; the touch screen 101 emits light and displays the fingerprint recognition area 103; the electronic device 100 is in the idle state , perform press detection scanning according to the first preset frequency; after confirming the user's pressing operation, the electronic device 100 switches to the Active state, performs fingerprint scanning according to the third preset frequency, and obtains the user's fingerprint image in the fingerprint recognition area 103 . Finally, the fingerprint identification module performs fingerprint identification according to the obtained fingerprint image.

在这个过程中,由于触发指纹识别模块后触控屏就要主动发光,造成耗能大。另外电子设备100中还可以包括黑屏手势功能,屏下指纹解锁采用与黑屏手势共用的模式,即两种功能同时开启,也存在功耗大的问题。因此为了达到平衡功耗的目的,屏下指纹解锁在识别速度上并未达到最优,即按压检测扫描和指纹扫描的效率都较低,造成了指纹识别效率低下。In this process, the touch screen will actively emit light after the fingerprint identification module is triggered, resulting in high energy consumption. In addition, the electronic device 100 may also include a black screen gesture function, and the fingerprint unlocking under the screen adopts a mode shared with the black screen gesture, that is, the two functions are enabled at the same time, and there is also a problem of high power consumption. Therefore, in order to achieve the purpose of balancing power consumption, the fingerprint unlocking under the screen does not achieve the optimal recognition speed, that is, the efficiency of press detection scanning and fingerprint scanning are both low, resulting in low fingerprint recognition efficiency.

为了对上述问题进行优化,请参阅图1B,图1B是本申请实施例提供的一种指纹扫描方法流程示意图,应用于电子设备,电子设备包括触控屏和指纹传感器,如图1B所示,本指纹扫描方法包括如下步骤:In order to optimize the above problems, please refer to FIG. 1B . FIG. 1B is a schematic flowchart of a fingerprint scanning method provided by an embodiment of the present application, which is applied to an electronic device. The electronic device includes a touch screen and a fingerprint sensor. As shown in FIG. 1B , The fingerprint scanning method includes the following steps:

步骤111、检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域。Step 111: Detect whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving the user's fingerprint pressing.

具体地,预设指纹识别区域是显示在触控屏上用于接收用户指纹按压的区域。在屏下指纹解锁过程中,由于电子设备的触控屏为全面屏,因此不会有明显设置的物理键(例如Home键)用于接收指纹按压进行指纹扫描,而是通过在触发指纹解锁功能后,触控屏发光,且在触控屏上显示预设指纹识别区域,提示用户在该区域进行指纹按压操作。Specifically, the preset fingerprint recognition area is an area displayed on the touch screen for receiving the user's fingerprint pressing. During the fingerprint unlocking process under the screen, since the touch screen of the electronic device is a full screen, there is no obvious physical key (such as the Home key) to receive the fingerprint press for fingerprint scanning. After that, the touch screen emits light, and a preset fingerprint recognition area is displayed on the touch screen, prompting the user to perform a fingerprint pressing operation in this area.

步骤112、若确定所述预设指纹识别区域处于开启状态,则将指纹传感器的按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹传感器的指纹扫描频率从第三预设频率提高至第四预设频率。Step 112: If it is determined that the preset fingerprint identification area is in an open state, increase the scan frequency of the press detection of the fingerprint sensor from the first preset frequency to the second preset frequency, and increase the fingerprint scanning frequency of the fingerprint sensor from the third preset frequency. Set the frequency up to the fourth preset frequency.

具体地,当预设指纹识别区域处于开启状态时,设置在预设指纹识别区域下方的指纹传感器开始按照一定的按压检测扫描频率进行按压扫描,确定预设指纹识别区域上是否有按压操作。确定有按压操作后,指纹传感器按照一定的指纹扫描频率进行指纹扫描,获得指纹图像。Specifically, when the preset fingerprint identification area is in an open state, the fingerprint sensor disposed below the preset fingerprint identification area starts to perform press scanning according to a certain press detection scanning frequency to determine whether there is a press operation on the preset fingerprint identification area. After it is determined that there is a pressing operation, the fingerprint sensor performs fingerprint scanning according to a certain fingerprint scanning frequency to obtain a fingerprint image.

在这个过程中,为了提升确定预设指纹识别区域上是否有按压操作的效率,将按压检测扫描频率从第一预设频率提高到第二预设频率,即第二预设频率大于第一预设频率;为了提升获得指纹图像的效率,将指纹扫描频率从第三预设频率提高到第四预设频率,即第四预设频率大于第三预设频率。其中第一预设频率和第三预设频率可以相同,为30Hz,40Hz等,也可以不同;第二预设频率和第四预设频率可以相同,为100Hz,110Hz等,也可以不同。In this process, in order to improve the efficiency of determining whether there is a press operation on the preset fingerprint identification area, the scan frequency of the press detection is increased from the first preset frequency to the second preset frequency, that is, the second preset frequency is greater than the first preset frequency. Set the frequency; in order to improve the efficiency of obtaining fingerprint images, the fingerprint scanning frequency is increased from the third preset frequency to the fourth preset frequency, that is, the fourth preset frequency is greater than the third preset frequency. The first preset frequency and the third preset frequency may be the same, such as 30Hz, 40Hz, etc., or different; the second preset frequency and the fourth preset frequency may be the same, such as 100Hz, 110Hz, etc., or different.

可选的,在将按压检测扫描频率从第一预设频率提高至第二预设频率之后,所述方法还包括:根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积;确定所述按压面积超过第二预设面积,其中所述第二预设面积小于第一预设面积,所述第一预设面积为根据所述第一预设频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的按压面积。Optionally, after increasing the pressing detection scan frequency from the first preset frequency to the second preset frequency, the method further includes: detecting that the finger of the target object presses the preset fingerprint according to the second preset frequency. Identify the pressing area of the area; determine that the pressing area exceeds a second preset area, wherein the second preset area is smaller than the first preset area, and the first preset area is detected according to the first preset frequency The pressing area that needs to be exceeded by the finger of the target object to press the preset fingerprint recognition area.

具体地,按压检测扫描频率和指纹扫描频率可以同步改变,也可以异步改变。即在确定预设指纹识别区域处于开启状态时,仅将按压检测扫描频率从第一预设频率提高至第二预设频率,而在确定预设指纹识别区域有按压操作时,再将指纹扫描频率从第三频率提升到第四频率。Specifically, the press detection scan frequency and the fingerprint scan frequency can be changed synchronously or asynchronously. That is, when it is determined that the preset fingerprint identification area is in an open state, only the pressing detection scanning frequency is increased from the first preset frequency to the second preset frequency, and when it is determined that there is a pressing operation in the preset fingerprint identification area, the fingerprint is scanned again. The frequency is raised from the third frequency to the fourth frequency.

确定预设指纹识别区域有按压操作的具体过程为:根据第二预设频率检测目标对象的手指按压预设指纹区域的按压面积,因为第二预设频率高于第一预设频率,因此可以更快速地获得按压图像。按压图像中所有有效按压的位置组成了按压面积,当按压面积超过第二预设面积时,确定预设指纹区域有按压操作。其中,第二预设面积小于第一预设面积,且第一预设面积为按照第一预设频率扫描频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的按压面积。例如第一预设面积可以是预设识别区域的70%,第二预设面积可以是预设识别区域的50%。因为目标对象的手指按压屏幕时,是随着按压力量的加大使得接触预设指纹识别区域的面积越大,那么当某一帧图像中的按压面积达到第二预设面积时,则确定预设指纹按压区域有按压操作,这样可以进一步提升按压操作的确定效率。The specific process of determining that there is a pressing operation in the preset fingerprint identification area is: according to the second preset frequency, the finger of the target object is detected to press the pressing area of the preset fingerprint area. Because the second preset frequency is higher than the first preset frequency, it can be Get compression images faster. All valid pressing positions in the pressing image constitute a pressing area, and when the pressing area exceeds the second preset area, it is determined that the preset fingerprint area has a pressing operation. Wherein, the second preset area is smaller than the first preset area, and the first preset area is the pressing area that needs to be exceeded by detecting the finger of the target object pressing the preset fingerprint recognition area according to the scanning frequency of the first preset frequency. For example, the first preset area may be 70% of the preset identification area, and the second preset area may be 50% of the preset identification area. Because when the finger of the target object presses the screen, as the pressing force increases, the area that contacts the preset fingerprint recognition area becomes larger, then when the pressing area in a certain frame of image reaches the second preset area, the predetermined area is determined. It is assumed that there is a pressing operation in the fingerprint pressing area, so that the determination efficiency of the pressing operation can be further improved.

可选的,所述根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积,包括:根据第二预设频率检测触控屏上目标对象的按压图像;确定所述按压图像包括的整像素个数,所述整像素个数表示像素区域全部包括在按压图像范围内的像素的个数;获取所述整像素个数对应的面积,确定为所述预设指纹识别区域的按压面积。Optionally, the detecting that the finger of the target object presses the pressing area of the preset fingerprint recognition area according to the second preset frequency includes: detecting the pressing image of the target object on the touch screen according to the second preset frequency; Determine the integer number of pixels included in the pressed image, where the integer number of pixels represents the number of pixels whose pixel area is all included in the range of the pressed image; obtain the area corresponding to the integer number of pixels, and determine it as the predetermined number of pixels. Set the pressing area of the fingerprint recognition area.

在根据第二预设频率检测检测目标对象的手指按压预设指纹识别区域的按压面积时,首先根据第二预设频率检测触控屏上目标对象的按压图像,检测频率越大,获取按压图像的速度越快。获得一张或多张按压图像后,确定按压图像上的按压面积。因为手指是弧形的,在按压时的按压面积可能并不会是规则的图形,且如果指腹上有污垢,可能导致扫描到的指纹图像不完整,因此,需要确定按压图像覆盖的整像素个数,如果对于一个像素A,按压图像只覆盖了70%,则不将像素A计入按压面积,而像素B的100%区域都被按压图像覆盖,将像素B计入按压面积。因此,按压面积求取公式为:S0=s1*n,其中S0表示总共的按压面积,s1表示每个像素的面积,n表示按压图像占据的整像素个数。When the finger of the detection target object presses the pressing area of the preset fingerprint recognition area according to the second preset frequency, firstly, the pressing image of the target object on the touch screen is detected according to the second preset frequency. The higher the detection frequency is, the pressing image is obtained. faster. After one or more pressed images are obtained, the pressed area on the pressed images is determined. Because the finger is curved, the pressing area may not be a regular pattern during pressing, and if there is dirt on the finger pulp, the scanned fingerprint image may be incomplete. Therefore, it is necessary to determine the whole pixel covered by the pressing image. If the pressed image covers only 70% of a pixel A, pixel A is not included in the pressed area, and 100% of the area of pixel B is covered by the pressed image, and pixel B is included in the pressed area. Therefore, the formula for calculating the pressed area is: S 0 =s 1 *n, where S 0 represents the total pressed area, s 1 represents the area of each pixel, and n represents the number of integer pixels occupied by the pressed image.

可见,在本申请实施例中,通过第二预设频率获得按压图像,第二预设频率大于第一预设频率,可以提升按压图像的获取效率,确定按压图像包括的整像素个数,确定按压面积,可以提升按压面积确定的准确度,降低按压操作确定的误判率。获得按压面积后,进一步确定按压面积是否超过第二预设面积,其中第二预设面积小于以第一预设频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的第一预设面积,这样减少按压操作需要确定超过的预设面积,能够进一步提升按压操作的确定效率。该方法从整体上提升了屏下指纹识别中按压操作识别的效率。It can be seen that, in the embodiment of the present application, the pressing image is obtained by using the second preset frequency, and the second preset frequency is greater than the first preset frequency, which can improve the obtaining efficiency of the pressing image. The pressing area can improve the accuracy of determining the pressing area and reduce the misjudgment rate of the pressing operation. After the pressing area is obtained, it is further determined whether the pressing area exceeds a second preset area, wherein the second preset area is smaller than the first predetermined area that needs to be exceeded by the finger that detects the target object at the first preset frequency to press the preset fingerprint recognition area. By setting the area, the preset area that needs to be determined for the pressing operation is reduced, and the determination efficiency of the pressing operation can be further improved. The method improves the efficiency of pressing operation recognition in the fingerprint recognition under the screen as a whole.

可选的,所述电子设备包括黑屏手势功能,在检测电子设备中的预设指纹识别区域是否处于开启状态之前,所述方法还包括:确定所述电子设备的黑屏手势功能处于启用状态。Optionally, the electronic device includes a black screen gesture function, and before detecting whether a preset fingerprint recognition area in the electronic device is in an enabled state, the method further includes: determining that the black screen gesture function of the electronic device is in an enabled state.

黑屏手势是指电子设备在黑屏待机的情况下,接受通过预设的手势操作直接进入到应用程序的过程。黑屏手势功能能够为用户带来很多便利,且该功能和屏下指纹解锁功能可以为共用模式。即屏下指纹解锁和黑屏手势功能同时开启。两者的关系如表1所示:The black screen gesture refers to a process in which an electronic device accepts a preset gesture operation to directly enter an application program when the electronic device is in a black screen standby state. The black screen gesture function can bring a lot of convenience to users, and this function and the fingerprint unlocking function under the screen can be shared modes. That is, the fingerprint unlocking and black screen gesture functions are enabled at the same time. The relationship between the two is shown in Table 1:

表1功能开关条件对照表Table 1 Function switch condition comparison table

开关switch 触发(开)Trigger (on) 触发(关)Trigger (Off) 屏下指纹解锁Under-screen fingerprint unlock 设置set up 传感器接收信号The sensor receives the signal 长时间无信号No signal for a long time 黑屏手势black screen gesture 设置set up 相应手势corresponding gesture 接近身体close to the body

只有当屏下指纹解锁和黑屏手势设置开启状态时,才能够根据各种触发条件触发开启或关闭着两种功能。这两种功能可以采用共用模式,即同时开启这两种功能,但是各自的触发条件并不相同,互相不受影响。也可以采用非共用模式,即可单独开启其中一种功能。Only when the under-screen fingerprint unlocking and black screen gesture settings are turned on, can the two functions be triggered to be turned on or off according to various trigger conditions. These two functions can use the shared mode, that is, the two functions are turned on at the same time, but their triggering conditions are different, and they are not affected by each other. You can also use the non-shared mode, you can turn on one of the functions independently.

当屏下指纹解锁和黑屏手势为共用模式时,同时开启这两种功能非常耗能,为了平衡功耗,屏下指纹解锁的扫描频率设置得较低,例如为第一预设频率。但是这样会降低指纹解锁的效率。如果屏下指纹解锁和黑屏手势为非共用模式,且黑屏手势功能处于关闭状态,这种情况下开启的屏下指纹解锁的扫描频率不受黑屏手势的影响,例如可以直接设置为第二预设频率,为正常频率,可以不需要调整。在这种前提下,在检测预设指纹识别区域处于开启状态时提高按压检测扫描频率和指纹扫描频率,可以进行一个预先判断:确定电子设备的黑屏手势功能处于启用状态。如果电子设备的黑屏手势功能处于启用状态,又检测到预设指纹识别区域处于开启状态,那么这时候说明原先的指纹传感器的扫描频率低,需要提升。When the under-screen fingerprint unlocking and the black screen gesture are shared modes, enabling these two functions at the same time consumes a lot of energy. In order to balance the power consumption, the scanning frequency of the under-screen fingerprint unlocking is set lower, for example, the first preset frequency. But this will reduce the efficiency of fingerprint unlocking. If the under-screen fingerprint unlocking and the black screen gesture are in non-shared mode, and the black screen gesture function is disabled, the scanning frequency of the under-screen fingerprint unlocking enabled in this case is not affected by the black screen gesture, for example, it can be directly set to the second preset The frequency is the normal frequency and does not need to be adjusted. Under this premise, when it is detected that the preset fingerprint identification area is turned on, the pressing detection scanning frequency and the fingerprint scanning frequency are increased, and a pre-judgment can be made: it is determined that the black screen gesture function of the electronic device is activated. If the black screen gesture function of the electronic device is enabled, and it is detected that the preset fingerprint recognition area is enabled, it means that the scanning frequency of the original fingerprint sensor is low and needs to be improved.

可见,在本申请实施例中,通过预先判断电子设备是否开启黑屏手势功能,进而确定电子设备的传感器扫描频率(包括按压检测扫描频率和指纹扫描频率)是否需要提高,可以进一步提升频率调整的针对性和有效性,减少对不需要进行调整情况下进行预设指纹识别区域检测的能量消耗。It can be seen that in the embodiment of the present application, by pre-judging whether the electronic device has the black screen gesture function enabled, and then determining whether the sensor scanning frequency (including the pressing detection scanning frequency and the fingerprint scanning frequency) of the electronic device needs to be increased, the frequency adjustment can be further improved. performance and effectiveness, and reduce the energy consumption of detecting the preset fingerprint identification area without adjustment.

可选的,在将指纹扫描频率从第三预设频率提高至第四预设频率之后,所述方法还包括:根据第四预设频率获取所述目标对象的至少一个指纹图像;对所述至少一个指纹图像进行图像质量评价,得到至少一个评价值;从所述至少一个评价值中选取评价值最大的K个评价值,得到K个目标评价值;获取所述K个目标评价值对应的K个目标指纹图像作为目标指纹图像,得到K个目标指纹图像;对所述K个目标指纹图像进行特征提取,得到至少一个特征点集,其中,每一个目标指纹图像对应一个特征点集;将所述至少一个特征点集合中的每一个特征点集与预设指纹模板的特征点集进行匹配,得到至少一个匹配值;在所述至少一个匹配值中的最大值大于预设阈值时,确认所述指纹图像被验证成功。Optionally, after increasing the fingerprint scanning frequency from the third preset frequency to the fourth preset frequency, the method further includes: acquiring at least one fingerprint image of the target object according to the fourth preset frequency; Perform image quality evaluation on at least one fingerprint image to obtain at least one evaluation value; select K evaluation values with the largest evaluation value from the at least one evaluation value to obtain K target evaluation values; obtain the corresponding K target evaluation values. K target fingerprint images are used as target fingerprint images to obtain K target fingerprint images; feature extraction is performed on the K target fingerprint images to obtain at least one feature point set, wherein each target fingerprint image corresponds to a feature point set; Each feature point set in the at least one feature point set is matched with the feature point set of the preset fingerprint template to obtain at least one matching value; when the maximum value in the at least one matching value is greater than the preset threshold, confirm The fingerprint image is verified successfully.

具体地,提升指纹扫描频率后,获得目标对象的多个指纹图像,因为指纹图像可能存在因受力不均、手指汗湿、污渍、受伤等原因导致的不清晰问题,因此需要对指纹图像进行质量筛选。本申请实施例中通过图像质量评价来完成筛选。其中,预设评价值可为系统默认或者用户自行设置,预设阈值可为系统默认或者用户自行设置,在此不作限定;电子设备可对至少一个指纹图像进行图像质量评价,具体实现中,可采用图像质量评价指标对至少一个指纹图像中的每一个指纹图像进行图像质量评价,得到至少一个图像质量评价值,图像质量评价指标可包括以下至少一种:平均灰度、均方差、熵、边缘保持度、信噪比等等,可定义为图像质量评价值越大,则图像质量越好。Specifically, after the fingerprint scanning frequency is increased, multiple fingerprint images of the target object are obtained. Because the fingerprint images may be unclear due to uneven force, sweaty fingers, stains, injuries, etc., it is necessary to scan the fingerprint images. Quality screening. In the embodiment of the present application, the screening is completed through image quality evaluation. The preset evaluation value may be system default or set by the user, and the preset threshold may be system default or set by the user, which is not limited here; the electronic device may perform image quality evaluation on at least one fingerprint image. Image quality evaluation is performed on each fingerprint image in the at least one fingerprint image by using an image quality evaluation index to obtain at least one image quality evaluation value. The image quality evaluation index may include at least one of the following: average gray level, mean square error, entropy, edge Retention, signal-to-noise ratio, etc., can be defined as the larger the image quality evaluation value, the better the image quality.

进一步地,预设指纹模板可由用户自行设置或者系统默认,可为电子设备采集的用户的不同手指的不同区域的手指指纹图像,可从上述至少一个评价值中选取评价值最大的K个评价值,得到K个目标评价值。其中,K值的确定可以为总的评价值的固定百分比,例如至少一个评价值为M个评价值,固定百分比为P,那么K=M*P;或者K值由至少一个评价值中大于预设评价阈值的个数确定。获取该K个目标评价值所对应的指纹图像,作为目标指纹图像,如此,可得到至少一个高质量的目标指纹图像,并对上述至少一个目标指纹图像进行特征提取,该特征可包括手指表面脊和谷信息等等,在此不作限定,如此,可得到至少一个特征点集,其中,每一个目标指纹图像对应一个特征点集合,将上述至少一个特征点集合中的每一个特征点集与预设指纹模板的特征点集进行匹配,得到至少一个匹配值,最后,在至少一个匹配值中的最大值大于预设阈值时,则可确认指纹图像被验证成功,如此,便完成了指纹图像的验证。Further, the preset fingerprint template can be set by the user or by default by the system, and can be the fingerprint images of different regions of the user's different fingers collected by the electronic device, and the K evaluation values with the largest evaluation values can be selected from the above at least one evaluation value. , and obtain K target evaluation values. Wherein, the determination of the K value can be a fixed percentage of the total evaluation value, for example, at least one evaluation value is M evaluation values, and the fixed percentage is P, then K=M*P; Set the number of evaluation thresholds to be determined. Obtain the fingerprint images corresponding to the K target evaluation values as the target fingerprint image, so that at least one high-quality target fingerprint image can be obtained, and feature extraction is performed on the above at least one target fingerprint image, and the feature can include finger surface ridges and valley information, etc., which are not limited here, in this way, at least one feature point set can be obtained, wherein each target fingerprint image corresponds to a feature point set, and each feature point set in the above at least one feature point set is combined with the predetermined feature point set. Set the feature point set of the fingerprint template to be matched to obtain at least one matching value. Finally, when the maximum value of the at least one matching value is greater than the preset threshold, it can be confirmed that the fingerprint image has been successfully verified. In this way, the fingerprint image is completed. verify.

其中,特征提取的方法可包括以下至少一种:加速稳健特征(Speeded Up RobustFeature,SURF)、尺度不变特征转换(Scale Invariant Feature Transform,SIFT)、加速分割测试获得特征(Features from Accelerated Segment Test,FAST)、Harris角点法等等,在此不作限定。The method for feature extraction may include at least one of the following: Speeded Up Robust Feature (SURF), Scale Invariant Feature Transform (SIFT), and Features from Accelerated Segment Test (Features from Accelerated Segment Test, FAST), Harris corner method, etc., which are not limited here.

可见,在本申请实施例中,在检测到电子设备中的预设指纹识别区域处于开启状态时,将按压检测扫描频率从第一预设频率提高到第二预设频率,将指纹扫描频率从第三预设频率提高至第四预设频率。由于预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域,那么当检测到指纹识别区域处于开启状态时提高频率,可以减少指纹识别区域处于关闭状态时的功耗。提升按压检测扫描频率和指纹扫描频率可以有效提升检测用户按压操作的效率和指纹扫描的效率,进而有效提升屏下指纹解锁效率。It can be seen that, in the embodiment of the present application, when it is detected that the preset fingerprint identification area in the electronic device is in an open state, the pressing detection scanning frequency is increased from the first preset frequency to the second preset frequency, and the fingerprint scanning frequency is increased from The third preset frequency is increased to the fourth preset frequency. Since the preset fingerprint recognition area is an area displayed on the touch screen for receiving user fingerprint pressing, increasing the frequency when it is detected that the fingerprint recognition area is in an open state can reduce the power consumption when the fingerprint recognition area is in an off state. Increasing the scanning frequency of pressing detection and the scanning frequency of fingerprints can effectively improve the efficiency of detecting user's pressing operation and the efficiency of fingerprint scanning, thereby effectively improving the efficiency of unlocking fingerprints under the screen.

请参阅图2,图2是本申请实施例提供的另一种指纹扫描方法流程示意图,如图2所示,所述指纹扫描方法包括如下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of another fingerprint scanning method provided by an embodiment of the present application. As shown in FIG. 2, the fingerprint scanning method includes the following steps:

步骤201、检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;Step 201 , detecting whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving user fingerprint pressing;

步骤202、若确定所述预设指纹识别区域处于开启状态,则将按压检测扫描频率从第一预设频率提高至第二预设频率;Step 202, if it is determined that the preset fingerprint identification area is in an open state, increase the scan frequency for press detection from a first preset frequency to a second preset frequency;

步骤203、根据第二预设频率检测触控屏上目标对象的按压图像;Step 203: Detect the pressing image of the target object on the touch screen according to the second preset frequency;

步骤204、确定所述按压图像包括的整像素个数,所述整像素个数表示像素区域全部包括在按压图像范围内的像素的个数;Step 204: Determine the number of integer pixels included in the pressed image, where the integer number of pixels represents the number of pixels that are all included in the range of the pressed image in the pixel region;

步骤205、获取所述整像素个数对应的面积,确定为所述预设指纹识别区域的按压面积;Step 205: Obtain the area corresponding to the integer number of pixels, and determine it as the pressing area of the preset fingerprint identification area;

步骤206、确定所述按压面积超过第二预设面积,其中所述第二预设面积小于第一预设面积,所述第一预设面积为根据所述第一预设频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的按压面积;Step 206: Determine that the pressing area exceeds a second preset area, wherein the second preset area is smaller than the first preset area, and the first preset area is the size of the target object detected according to the first preset frequency. The pressing area that needs to be exceeded by the finger pressing the preset fingerprint identification area;

步骤207、将指纹扫描频率从第三预设频率提高至第四预设频率。Step 207 , increasing the fingerprint scanning frequency from the third preset frequency to the fourth preset frequency.

其中,上述步骤201-步骤207的具体描述可以参照步骤111-步骤112所描述的指纹扫描方法的相应描述,在此不再赘述。The specific description of the above steps 201 to 207 may refer to the corresponding description of the fingerprint scanning method described in the steps 111 to 112, which will not be repeated here.

在本申请实施例中,通过第二预设频率获得按压图像,第二预设频率大于第一预设频率,可以提升按压图像的获取效率,确定按压图像包括的整像素个数,确定按压面积,可以提升按压面积确定的准确度,降低按压操作确定的误判率。获得按压面积后,进一步确定按压面积是否超过第二预设面积,其中第二预设面积小于以第一预设频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的第一预设面积,这样减少按压操作需要确定超过的预设面积,能够进一步提升按压操作的确定效率。该方法从整体上提升了屏下指纹识别中按压操作识别的效率。In the embodiment of the present application, the pressing image is obtained by using the second preset frequency, and the second preset frequency is greater than the first preset frequency, which can improve the obtaining efficiency of the pressing image, determine the integer number of pixels included in the pressing image, and determine the pressing area. , which can improve the accuracy of determining the pressing area and reduce the misjudgment rate of determining the pressing operation. After the pressing area is obtained, it is further determined whether the pressing area exceeds a second preset area, wherein the second preset area is smaller than the first predetermined area that needs to be exceeded by the finger that detects the target object at the first preset frequency to press the preset fingerprint recognition area. By setting the area, the preset area that needs to be determined for the pressing operation is reduced, and the determination efficiency of the pressing operation can be further improved. The method improves the efficiency of pressing operation recognition in the fingerprint recognition under the screen as a whole.

请参阅图3,图3是本申请实施例提供的另一种指纹扫描方法流程示意图,如图3所示,所述指纹扫描方法包括如下步骤:Please refer to FIG. 3. FIG. 3 is a schematic flowchart of another fingerprint scanning method provided by an embodiment of the present application. As shown in FIG. 3, the fingerprint scanning method includes the following steps:

步骤301、确定所述电子设备的黑屏手势功能处于启用状态;Step 301, determining that the black screen gesture function of the electronic device is in an enabled state;

步骤302、检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;Step 302 , detecting whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving the user's fingerprint pressing;

步骤303、若确定所述预设指纹识别区域处于开启状态,则将指纹传感器的按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹传感器的指纹扫描频率从第三预设频率提高至第四预设频率。Step 303: If it is determined that the preset fingerprint recognition area is in an open state, increase the scan frequency of the press detection of the fingerprint sensor from the first preset frequency to the second preset frequency, and increase the fingerprint scanning frequency of the fingerprint sensor from the third preset frequency. Set the frequency up to the fourth preset frequency.

其中,上述步骤301-步骤303的具体描述可以参照步骤111-步骤112所描述的指纹扫描方法的相应描述,在此不再赘述。The specific description of the above steps 301 to 303 may refer to the corresponding description of the fingerprint scanning method described in the steps 111 to 112, which will not be repeated here.

在本申请实施例中,通过预先判断电子设备是否开启黑屏手势功能,进而确定电子设备的传感器扫描频率(包括按压检测扫描频率和指纹扫描频率)是否需要提高,可以进一步提升频率调整的针对性和有效性,减少对不需要进行调整情况下进行预设指纹识别区域检测的能量消耗。In the embodiment of the present application, by pre-judging whether the electronic device enables the black screen gesture function, and then determining whether the sensor scanning frequency (including the pressing detection scanning frequency and the fingerprint scanning frequency) of the electronic device needs to be increased, the pertinence and the frequency adjustment can be further improved. Effectiveness, reduce the energy consumption of the preset fingerprint identification area detection without adjustment.

请参阅图4,图4是本申请实施例提供的另一种指纹扫描方法流程示意图,如图4所示,所述指纹扫描方法包括如下步骤:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of another fingerprint scanning method provided by an embodiment of the present application. As shown in FIG. 4, the fingerprint scanning method includes the following steps:

步骤401、检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;Step 401: Detect whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving user fingerprint pressing;

步骤402、若确定所述预设指纹识别区域处于开启状态,则将按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹扫描频率从第三预设频率提高至第四预设频率;Step 402: If it is determined that the preset fingerprint identification area is in an open state, increase the pressing detection scanning frequency from the first preset frequency to the second preset frequency, and increase the fingerprint scanning frequency from the third preset frequency to the fourth preset frequency. preset frequency;

步骤403、根据第四预设频率获取所述目标对象的至少一个指纹图像;Step 403: Acquire at least one fingerprint image of the target object according to a fourth preset frequency;

步骤404、对所述至少一个指纹图像进行图像质量评价,得到至少一个评价值;Step 404: Perform image quality evaluation on the at least one fingerprint image to obtain at least one evaluation value;

步骤405、从所述至少一个评价值中选取评价值最大的K个评价值,得到K个目标评价值;Step 405: Select the K evaluation values with the largest evaluation value from the at least one evaluation value to obtain K target evaluation values;

步骤406、获取所述K个目标评价值对应的K个目标指纹图像作为目标指纹图像,得到K个目标指纹图像;Step 406: Obtain K target fingerprint images corresponding to the K target evaluation values as target fingerprint images, and obtain K target fingerprint images;

步骤407、对所述K个目标指纹图像进行特征提取,得到至少一个特征点集,其中,每一个目标指纹图像对应一个特征点集;Step 407, perform feature extraction on the K target fingerprint images to obtain at least one feature point set, wherein each target fingerprint image corresponds to a feature point set;

步骤408、将所述至少一个特征点集合中的每一个特征点集与预设指纹模板的特征点集进行匹配,得到至少一个匹配值;Step 408: Match each feature point set in the at least one feature point set with the feature point set of the preset fingerprint template to obtain at least one matching value;

步骤409、在所述至少一个匹配值中的最大值大于预设阈值时,确认所述指纹图像被验证成功。Step 409: When the maximum value of the at least one matching value is greater than a preset threshold, confirm that the fingerprint image is successfully verified.

其中,上述步骤401-步骤409的具体描述可以参照步骤111-步骤112所描述的指纹扫描方法的相应描述,在此不再赘述。For the specific description of the above steps 401 to 409, reference may be made to the corresponding description of the fingerprint scanning method described in the steps 111 to 112, which will not be repeated here.

在本申请实施例中,采用双三插值法提升显示内容的分辨率,并在多个显示层中从上到下依次显示分辨率递增的显示图像,这样可以有效增加正在显示的内容信息的清晰度。In the embodiment of the present application, the resolution of the displayed content is increased by using the double-tri-interpolation method, and display images with increasing resolutions are sequentially displayed in multiple display layers from top to bottom, which can effectively increase the clarity of the content information being displayed. Spend.

如上述一致地,请参阅图5,图5是本申请实施例提供的一种电子装置的结构示意图,如图5所示,该电子装置包括处理器501、存储器502、通信接口503、多个显示层504以及一个或多个程序505,其中,上述一个或多个程序被存储在上述存储器502中,并且被配置由上述处理器执行,上述程序包括用于执行以下步骤的指令:Consistent with the above, please refer to FIG. 5 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 5 , the electronic device includes a processor 501 , a memory 502 , a communication interface 503 , a plurality of A display layer 504 and one or more programs 505, wherein the one or more programs are stored in the memory 502 and configured to be executed by the processor, the programs comprising instructions for performing the following steps:

检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;Detecting whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving user fingerprint pressing;

若确定所述预设指纹识别区域处于开启状态,则将指纹传感器的按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹传感器的指纹扫描频率从第三预设频率提高至第四预设频率。If it is determined that the preset fingerprint recognition area is in an open state, the pressing detection scanning frequency of the fingerprint sensor is increased from the first preset frequency to the second preset frequency, and the fingerprint scanning frequency of the fingerprint sensor is increased from the third preset frequency to the fourth preset frequency.

可以看出,本申请实施例中,电子装置在检测到电子设备中的预设指纹识别区域处于开启状态时,将按压检测扫描频率从第一预设频率提高到第二预设频率,将指纹扫描频率从第三预设频率提高至第四预设频率。由于预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域,那么当检测到指纹识别区域处于开启状态时提高频率,可以减少指纹识别区域处于关闭状态时的功耗。提升按压检测扫描频率和指纹扫描频率可以有效提升检测用户按压操作的效率和指纹扫描的效率,进而有效提升屏下指纹解锁效率。It can be seen that, in the embodiment of the present application, when the electronic device detects that the preset fingerprint identification area in the electronic device is in an open state, the scan frequency of the press detection is increased from the first preset frequency to the second preset frequency, and the fingerprint identification area is increased from the first preset frequency to the second preset frequency. The scanning frequency is increased from the third preset frequency to the fourth preset frequency. Since the preset fingerprint recognition area is an area displayed on the touch screen for receiving user fingerprint pressing, increasing the frequency when it is detected that the fingerprint recognition area is in an open state can reduce the power consumption when the fingerprint recognition area is in an off state. Increasing the scanning frequency of pressing detection and the scanning frequency of fingerprints can effectively improve the efficiency of detecting user's pressing operation and the efficiency of fingerprint scanning, thereby effectively improving the efficiency of unlocking fingerprints under the screen.

在一个可能的示例中,在将按压检测扫描频率从第一预设频率提高至第二预设频率之后,上述程序还包括用于执行以下步骤的指令:In a possible example, after the press detection scan frequency is increased from the first preset frequency to the second preset frequency, the above program further includes instructions for performing the following steps:

根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积;Detecting that the finger of the target object presses the pressing area of the preset fingerprint recognition area according to the second preset frequency;

确定所述按压面积超过第二预设面积,其中所述第二预设面积小于第一预设面积,所述第一预设面积为根据所述第一预设频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的按压面积。It is determined that the pressing area exceeds a second preset area, wherein the second preset area is smaller than the first preset area, and the first preset area is the area where the finger pressing of the target object is detected according to the first preset frequency. The pressing area that the preset fingerprint recognition area needs to exceed.

在一个可能的示例中,所述电子设备包括黑屏手势功能,在检测电子设备中的预设指纹识别区域是否处于开启状态之前,上述程序还包括用于执行以下步骤的指令:In a possible example, the electronic device includes a black screen gesture function, and before detecting whether the preset fingerprint recognition area in the electronic device is in an open state, the above program further includes instructions for performing the following steps:

确定所述电子设备的黑屏手势功能处于启用状态。It is determined that the black screen gesture function of the electronic device is enabled.

在一个可能的示例中,在所述根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积方面,所述程序中的指令具体用于执行以下操作:In a possible example, in terms of detecting the finger of the target object pressing the pressing area of the preset fingerprint recognition area according to the second preset frequency, the instructions in the program are specifically used to perform the following operations:

根据第二预设频率检测触控屏上目标对象的按压图像;Detecting the pressed image of the target object on the touch screen according to the second preset frequency;

确定所述按压图像包括的整像素个数,所述整像素个数表示像素区域全部包括在按压图像范围内的像素的个数;Determining the number of integer pixels included in the pressed image, where the integer number of pixels represents the number of pixels whose entire pixel area is included in the range of the pressed image;

获取所述整像素个数对应的面积,确定为所述预设指纹识别区域的按压面积。The area corresponding to the whole number of pixels is acquired, and determined as the pressing area of the preset fingerprint identification area.

在一个可能的示例中,在将指纹扫描频率从第三预设频率提高至第四预设频率之后,上述程序还包括用于执行以下步骤的指令:In a possible example, after the fingerprint scanning frequency is increased from the third preset frequency to the fourth preset frequency, the above program further includes an instruction for performing the following steps:

根据第四预设频率获取所述目标对象的至少一个指纹图像;Acquiring at least one fingerprint image of the target object according to a fourth preset frequency;

对所述至少一个指纹图像进行图像质量评价,得到至少一个评价值;Perform image quality evaluation on the at least one fingerprint image to obtain at least one evaluation value;

从所述至少一个评价值中选取评价值最大的K个评价值,得到K个目标评价值;Selecting K evaluation values with the largest evaluation value from the at least one evaluation value to obtain K target evaluation values;

获取所述K个目标评价值对应的K个目标指纹图像作为目标指纹图像,得到K个目标指纹图像;Obtaining K target fingerprint images corresponding to the K target evaluation values as target fingerprint images, and obtaining K target fingerprint images;

对所述K个目标指纹图像进行特征提取,得到至少一个特征点集,其中,每一个目标指纹图像对应一个特征点集;Perform feature extraction on the K target fingerprint images to obtain at least one feature point set, wherein each target fingerprint image corresponds to a feature point set;

将所述至少一个特征点集合中的每一个特征点集与预设指纹模板的特征点集进行匹配,得到至少一个匹配值;Matching each feature point set in the at least one feature point set with the feature point set of the preset fingerprint template to obtain at least one matching value;

在所述至少一个匹配值中的最大值大于预设阈值时,确认所述指纹图像被验证成功。When the maximum value of the at least one matching value is greater than a preset threshold, it is confirmed that the fingerprint image is successfully verified.

上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions of the embodiments of the present application from the perspective of the method-side execution process. It can be understood that, in order to realize the above-mentioned functions, the electronic device includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or in the form of a combination of hardware and computer software, in combination with the units and algorithm steps of each example described in the embodiments provided herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

本申请实施例可以根据上述方法示例对电子装置进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the electronic device may be divided into functional units according to the foregoing method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is schematic, and is only a logical function division, and other division methods may be used in actual implementation.

图6是本申请实施例中所涉及的指纹扫描装置600的功能单元组成框图。该指纹扫描装置600应用于电子设备,该指纹扫描装置600包括:FIG. 6 is a block diagram of functional units of the fingerprint scanning device 600 involved in the embodiment of the present application. The fingerprint scanning device 600 is applied to electronic equipment, and the fingerprint scanning device 600 includes:

检测单元601,用于检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;A detection unit 601, configured to detect whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving user fingerprint pressing;

调整单元602,用于若确定所述预设指纹识别区域处于开启状态,则将指纹传感器的按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹传感器的指纹扫描频率从第三预设频率提高至第四预设频率。The adjustment unit 602 is configured to increase the press detection scanning frequency of the fingerprint sensor from the first preset frequency to the second preset frequency if it is determined that the preset fingerprint identification area is in an open state, and increase the fingerprint scanning frequency of the fingerprint sensor from the first preset frequency to the second preset frequency. The third preset frequency is increased to the fourth preset frequency.

可以看出,本申请实施例中,指纹扫描装置应用于电子设备,电子设备包括触控屏和指纹传感器。指纹扫描装置在检测到电子设备中的预设指纹识别区域处于开启状态时,将按压检测扫描频率从第一预设频率提高到第二预设频率,将指纹扫描频率从第三预设频率提高至第四预设频率。由于预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域,那么当检测到指纹识别区域处于开启状态时提高频率,可以减少指纹识别区域处于关闭状态时的功耗。提升按压检测扫描频率和指纹扫描频率可以有效提升检测用户按压操作的效率和指纹扫描的效率,进而有效提升屏下指纹解锁效率。It can be seen that, in the embodiment of the present application, the fingerprint scanning device is applied to an electronic device, and the electronic device includes a touch screen and a fingerprint sensor. When the fingerprint scanning device detects that the preset fingerprint identification area in the electronic device is in an open state, the pressing detection scanning frequency is increased from the first preset frequency to the second preset frequency, and the fingerprint scanning frequency is increased from the third preset frequency. to the fourth preset frequency. Since the preset fingerprint recognition area is an area displayed on the touch screen for receiving user fingerprint pressing, increasing the frequency when it is detected that the fingerprint recognition area is in an open state can reduce the power consumption when the fingerprint recognition area is in an off state. Increasing the scanning frequency of pressing detection and the scanning frequency of fingerprints can effectively improve the efficiency of detecting user's pressing operation and the efficiency of fingerprint scanning, thereby effectively improving the efficiency of unlocking fingerprints under the screen.

在一个可能的示例中,所述指纹扫描装置还包括确定单元603,在将按压检测扫描频率从第一预设频率提高至第二预设频率之后,所述确定单元603用于:In a possible example, the fingerprint scanning device further includes a determining unit 603, and after increasing the pressing detection scan frequency from the first preset frequency to the second preset frequency, the determining unit 603 is configured to:

根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积;Detecting that the finger of the target object presses the pressing area of the preset fingerprint recognition area according to the second preset frequency;

确定所述按压面积超过第二预设面积,其中所述第二预设面积小于第一预设面积,所述第一预设面积为根据所述第一预设频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的按压面积。It is determined that the pressing area exceeds a second preset area, wherein the second preset area is smaller than the first preset area, and the first preset area is the area where the finger pressing of the target object is detected according to the first preset frequency. The pressing area that the preset fingerprint recognition area needs to exceed.

在一个可能的示例中,所述电子设备包括黑屏手势功能,在检测电子设备中的预设指纹识别区域是否处于开启状态之前,所述检测单元还用于:In a possible example, the electronic device includes a black screen gesture function, and before detecting whether a preset fingerprint recognition area in the electronic device is in an open state, the detection unit is further configured to:

确定所述电子设备的黑屏手势功能处于启用状态。It is determined that the black screen gesture function of the electronic device is enabled.

在一个可能的示例中,在根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积方面,所述确定单元603具体用于:In a possible example, in terms of detecting the pressing area of the predetermined fingerprint identification area pressed by the finger of the target object according to the second predetermined frequency, the determining unit 603 is specifically configured to:

根据第二预设频率检测触控屏上目标对象的按压图像;Detecting the pressed image of the target object on the touch screen according to the second preset frequency;

确定所述按压图像包括的整像素个数,所述整像素个数表示像素区域全部包括在按压图像范围内的像素的个数;Determining the number of integer pixels included in the pressed image, where the integer number of pixels represents the number of pixels whose entire pixel area is included in the range of the pressed image;

获取所述整像素个数对应的面积,确定为所述预设指纹识别区域的按压面积。The area corresponding to the whole number of pixels is acquired, and determined as the pressing area of the preset fingerprint identification area.

在一个可能的示例中,在将指纹扫描频率从第三预设频率提高至第四预设频率之后,所述调整单元602还用于:In a possible example, after increasing the fingerprint scanning frequency from the third preset frequency to the fourth preset frequency, the adjusting unit 602 is further configured to:

根据第四预设频率获取所述目标对象的至少一个指纹图像;Acquiring at least one fingerprint image of the target object according to a fourth preset frequency;

对所述至少一个指纹图像进行图像质量评价,得到至少一个评价值;Perform image quality evaluation on the at least one fingerprint image to obtain at least one evaluation value;

从所述至少一个评价值中选取评价值最大的K个评价值,得到K个目标评价值;Selecting K evaluation values with the largest evaluation value from the at least one evaluation value to obtain K target evaluation values;

获取所述K个目标评价值对应的K个目标指纹图像作为目标指纹图像,得到K个目标指纹图像;Obtaining K target fingerprint images corresponding to the K target evaluation values as target fingerprint images, and obtaining K target fingerprint images;

对所述K个目标指纹图像进行特征提取,得到至少一个特征点集,其中,每一个目标指纹图像对应一个特征点集;Perform feature extraction on the K target fingerprint images to obtain at least one feature point set, wherein each target fingerprint image corresponds to a feature point set;

将所述至少一个特征点集合中的每一个特征点集与预设指纹模板的特征点集进行匹配,得到至少一个匹配值;Matching each feature point set in the at least one feature point set with the feature point set of the preset fingerprint template to obtain at least one matching value;

在所述至少一个匹配值中的最大值大于预设阈值时,确认所述指纹图像被验证成功。When the maximum value of the at least one matching value is greater than a preset threshold, it is confirmed that the fingerprint image is successfully verified.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括移动终端。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments , the above computer includes a mobile terminal.

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括移动终端。Embodiments of the present application further provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of the method embodiments described above. some or all of the steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes a mobile terminal.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , ROM, RAM, disk or CD, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.

Claims (10)

1.一种指纹扫描方法,其特征在于,应用于电子设备,所述电子设备包括触控屏和指纹传感器,所述方法包括:1. A fingerprint scanning method, characterized in that, applied to an electronic device, the electronic device comprising a touch screen and a fingerprint sensor, the method comprising: 检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;Detecting whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving user fingerprint pressing; 若确定所述预设指纹识别区域处于开启状态,则将指纹传感器的按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹传感器的指纹扫描频率从第三预设频率提高至第四预设频率。If it is determined that the preset fingerprint recognition area is in an open state, the pressing detection scanning frequency of the fingerprint sensor is increased from the first preset frequency to the second preset frequency, and the fingerprint scanning frequency of the fingerprint sensor is increased from the third preset frequency to the fourth preset frequency. 2.根据权利要求1所述的方法,其特征在于,在将按压检测扫描频率从第一预设频率提高至第二预设频率之后,所述方法还包括:2 . The method according to claim 1 , wherein after increasing the press detection scan frequency from the first preset frequency to the second preset frequency, the method further comprises: 2 . 根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积;Detecting that the finger of the target object presses the pressing area of the preset fingerprint recognition area according to the second preset frequency; 确定所述按压面积超过第二预设面积,其中所述第二预设面积小于第一预设面积,所述第一预设面积为根据所述第一预设频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的按压面积。It is determined that the pressing area exceeds a second preset area, wherein the second preset area is smaller than the first preset area, and the first preset area is the area where the finger pressing of the target object is detected according to the first preset frequency. The pressing area that the preset fingerprint recognition area needs to exceed. 3.根据权利要求1或2所述的方法,其特征在于,所述电子设备包括黑屏手势功能,在检测电子设备中的预设指纹识别区域是否处于开启状态之前,所述方法还包括:3. The method according to claim 1 or 2, wherein the electronic device includes a black screen gesture function, and before detecting whether a preset fingerprint recognition area in the electronic device is in an open state, the method further comprises: 确定所述电子设备的黑屏手势功能处于启用状态。It is determined that the black screen gesture function of the electronic device is enabled. 4.根据权利要求3所述的方法,其特征在于,所述根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积,包括:4 . The method according to claim 3 , wherein the detecting that the finger of the target object presses the pressing area of the preset fingerprint recognition area according to the second preset frequency comprises: 4 . 根据第二预设频率检测触控屏上目标对象的按压图像;Detecting the pressed image of the target object on the touch screen according to the second preset frequency; 确定所述按压图像包括的整像素个数,所述整像素个数表示像素区域全部包括在按压图像范围内的像素的个数;Determining the number of integer pixels included in the pressed image, where the integer number of pixels represents the number of pixels whose entire pixel area is included in the range of the pressed image; 获取所述整像素个数对应的面积,确定为所述预设指纹识别区域的按压面积。The area corresponding to the whole number of pixels is acquired, and determined as the pressing area of the preset fingerprint identification area. 5.根据权利要求4所述的方法,其特征在于,在将指纹扫描频率从第三预设频率提高至第四预设频率之后,所述方法还包括:5. The method according to claim 4, wherein after increasing the fingerprint scanning frequency from the third preset frequency to the fourth preset frequency, the method further comprises: 根据第四预设频率获取所述目标对象的至少一个指纹图像;Acquiring at least one fingerprint image of the target object according to a fourth preset frequency; 对所述至少一个指纹图像进行图像质量评价,得到至少一个评价值;Perform image quality evaluation on the at least one fingerprint image to obtain at least one evaluation value; 从所述至少一个评价值中选取评价值最大的K个评价值,得到K个目标评价值;Selecting K evaluation values with the largest evaluation value from the at least one evaluation value to obtain K target evaluation values; 获取所述K个目标评价值对应的K个目标指纹图像作为目标指纹图像,得到K个目标指纹图像;Obtaining K target fingerprint images corresponding to the K target evaluation values as target fingerprint images, and obtaining K target fingerprint images; 对所述K个目标指纹图像进行特征提取,得到至少一个特征点集,其中,每一个目标指纹图像对应一个特征点集;Perform feature extraction on the K target fingerprint images to obtain at least one feature point set, wherein each target fingerprint image corresponds to a feature point set; 将所述至少一个特征点集合中的每一个特征点集与预设指纹模板的特征点集进行匹配,得到至少一个匹配值;Matching each feature point set in the at least one feature point set with the feature point set of the preset fingerprint template to obtain at least one matching value; 在所述至少一个匹配值中的最大值大于预设阈值时,确认所述指纹图像被验证成功。When the maximum value of the at least one matching value is greater than a preset threshold, it is confirmed that the fingerprint image is successfully verified. 6.一种指纹扫描装置,其特征在于,所述指纹扫描装置包括:6. A fingerprint scanning device, wherein the fingerprint scanning device comprises: 检测单元,用于检测电子设备中的预设指纹识别区域是否处于开启状态,其中所述预设指纹识别区域为显示在触控屏上用于接收用户指纹按压的区域;a detection unit, configured to detect whether a preset fingerprint identification area in the electronic device is in an open state, wherein the preset fingerprint identification area is an area displayed on the touch screen for receiving user fingerprint pressing; 调整单元,用于若确定所述预设指纹识别区域处于开启状态,则将指纹传感器的按压检测扫描频率从第一预设频率提高至第二预设频率,将指纹传感器的指纹扫描频率从第三预设频率提高至第四预设频率。The adjustment unit is configured to increase the press detection scanning frequency of the fingerprint sensor from the first preset frequency to the second preset frequency if it is determined that the preset fingerprint identification area is in an open state, and increase the fingerprint scanning frequency of the fingerprint sensor from the first preset frequency to the second preset frequency. The third preset frequency is increased to the fourth preset frequency. 7.根据权利要求6所述的装置,其特征在于,所述指纹扫描装置还包括确定单元,在将按压检测扫描频率从第一预设频率提高至第二预设频率之后,所述确定单元用于:7 . The device according to claim 6 , wherein the fingerprint scanning device further comprises a determining unit, after increasing the pressing detection scan frequency from the first preset frequency to the second preset frequency, the determining unit Used for: 根据所述第二预设频率检测目标对象的手指按压所述预设指纹识别区域的按压面积;Detecting that the finger of the target object presses the pressing area of the preset fingerprint recognition area according to the second preset frequency; 确定所述按压面积超过第二预设面积,其中所述第二预设面积小于第一预设面积,所述第一预设面积为根据所述第一预设频率检测目标对象的手指按压所述预设指纹识别区域所需要超过的按压面积。It is determined that the pressing area exceeds a second preset area, wherein the second preset area is smaller than the first preset area, and the first preset area is the area where the finger pressing of the target object is detected according to the first preset frequency. The pressing area that the preset fingerprint recognition area needs to exceed. 8.根据权利要求6或7所述的装置,其特征在于,所述电子设备包括黑屏手势功能,在检测电子设备中的预设指纹识别区域是否处于开启状态之前,所述检测单元还用于:8. The device according to claim 6 or 7, wherein the electronic device includes a black screen gesture function, and before detecting whether a preset fingerprint recognition area in the electronic device is in an open state, the detection unit is further used for : 确定所述电子设备的黑屏手势功能处于启用状态。It is determined that the black screen gesture function of the electronic device is enabled. 9.一种电子装置,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-5任一项所述的方法中的步骤的指令。9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured by the processor Executing, the program includes instructions for performing the steps in the method of any of claims 1-5. 10.一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-5任一项所述的方法。10. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201910523822.0A 2019-06-17 2019-06-17 Fingerprint scanning method and related product Active CN110287842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910523822.0A CN110287842B (en) 2019-06-17 2019-06-17 Fingerprint scanning method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910523822.0A CN110287842B (en) 2019-06-17 2019-06-17 Fingerprint scanning method and related product

Publications (2)

Publication Number Publication Date
CN110287842A true CN110287842A (en) 2019-09-27
CN110287842B CN110287842B (en) 2021-08-10

Family

ID=68004478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910523822.0A Active CN110287842B (en) 2019-06-17 2019-06-17 Fingerprint scanning method and related product

Country Status (1)

Country Link
CN (1) CN110287842B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784654A (en) * 2019-11-26 2020-02-11 维沃移动通信有限公司 Photographing preview method and electronic equipment
CN110928068A (en) * 2019-11-28 2020-03-27 厦门天马微电子有限公司 Display panel, driving method thereof and display device
CN111161452A (en) * 2019-12-30 2020-05-15 珠海格力电器股份有限公司 Scanning method and scanning device for controlling electronic lock authentication module
CN111443823A (en) * 2020-03-23 2020-07-24 Oppo(重庆)智能科技有限公司 Terminal control method, device, terminal and storage medium
CN111857413A (en) * 2020-07-02 2020-10-30 Oppo广东移动通信有限公司 Touch screen control method and device, terminal equipment and storage medium
US11657757B2 (en) 2021-04-30 2023-05-23 Shanghai Tianma Micro-electronics Co., Ltd. Method for driving display panel and display apparatus

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996006A (en) * 2009-08-24 2011-03-30 株式会社半导体能源研究所 Touch sensor and method for driving the same and display device
CN105738016A (en) * 2014-12-11 2016-07-06 上海箩箕技术有限公司 Finger pressing pressure detection method
CN106096372A (en) * 2016-06-21 2016-11-09 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and terminal
CN106991387A (en) * 2017-03-23 2017-07-28 宇龙计算机通信科技(深圳)有限公司 A kind of full frame fingerprint collecting method and mobile terminal
CN107071147A (en) * 2017-03-08 2017-08-18 广东欧珀移动通信有限公司 A parameter adjustment method and device
CN108090337A (en) * 2017-12-25 2018-05-29 深圳信炜科技有限公司 The fingerprint identification method of electronic equipment
CN108235750A (en) * 2018-01-15 2018-06-29 深圳市汇顶科技股份有限公司 The pressing detection method, apparatus and terminal device of fingerprint recognition system
CN108960118A (en) * 2018-06-28 2018-12-07 厦门天马微电子有限公司 A kind of capacitance type fingerprint recognition methods, display panel and display device
CN109558804A (en) * 2018-11-05 2019-04-02 Oppo广东移动通信有限公司 Fingerprint collecting method and Related product
CN109657561A (en) * 2018-11-26 2019-04-19 Oppo广东移动通信有限公司 Fingerprint collecting method and Related product

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996006A (en) * 2009-08-24 2011-03-30 株式会社半导体能源研究所 Touch sensor and method for driving the same and display device
CN105738016A (en) * 2014-12-11 2016-07-06 上海箩箕技术有限公司 Finger pressing pressure detection method
CN106096372A (en) * 2016-06-21 2016-11-09 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and terminal
CN107071147A (en) * 2017-03-08 2017-08-18 广东欧珀移动通信有限公司 A parameter adjustment method and device
CN106991387A (en) * 2017-03-23 2017-07-28 宇龙计算机通信科技(深圳)有限公司 A kind of full frame fingerprint collecting method and mobile terminal
CN108090337A (en) * 2017-12-25 2018-05-29 深圳信炜科技有限公司 The fingerprint identification method of electronic equipment
CN108235750A (en) * 2018-01-15 2018-06-29 深圳市汇顶科技股份有限公司 The pressing detection method, apparatus and terminal device of fingerprint recognition system
CN108960118A (en) * 2018-06-28 2018-12-07 厦门天马微电子有限公司 A kind of capacitance type fingerprint recognition methods, display panel and display device
CN109558804A (en) * 2018-11-05 2019-04-02 Oppo广东移动通信有限公司 Fingerprint collecting method and Related product
CN109657561A (en) * 2018-11-26 2019-04-19 Oppo广东移动通信有限公司 Fingerprint collecting method and Related product

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784654A (en) * 2019-11-26 2020-02-11 维沃移动通信有限公司 Photographing preview method and electronic equipment
CN110928068A (en) * 2019-11-28 2020-03-27 厦门天马微电子有限公司 Display panel, driving method thereof and display device
CN110928068B (en) * 2019-11-28 2022-03-11 厦门天马微电子有限公司 Display panel, driving method thereof and display device
CN111161452A (en) * 2019-12-30 2020-05-15 珠海格力电器股份有限公司 Scanning method and scanning device for controlling electronic lock authentication module
CN111443823A (en) * 2020-03-23 2020-07-24 Oppo(重庆)智能科技有限公司 Terminal control method, device, terminal and storage medium
CN111443823B (en) * 2020-03-23 2022-06-28 Oppo(重庆)智能科技有限公司 Terminal control method, device, terminal and storage medium
CN111857413A (en) * 2020-07-02 2020-10-30 Oppo广东移动通信有限公司 Touch screen control method and device, terminal equipment and storage medium
CN111857413B (en) * 2020-07-02 2024-03-01 Oppo广东移动通信有限公司 Touch screen control method and device, terminal equipment and storage medium
US11657757B2 (en) 2021-04-30 2023-05-23 Shanghai Tianma Micro-electronics Co., Ltd. Method for driving display panel and display apparatus

Also Published As

Publication number Publication date
CN110287842B (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN110287842A (en) fingerprint scanning method and related product
US10061969B2 (en) Fingerprint unlocking method and terminal
CN109711255A (en) Fingerprint acquisition method and related device
CN109241957B (en) Electronic device, fingerprint collection method, device, storage medium and mobile terminal
CN110263667B (en) Image data processing method and device and electronic equipment
US10126858B2 (en) Touch display device and touch method thereof
CN108875643B (en) Fingerprint module, fingerprint identification method, device, storage medium and mobile terminal
US10061970B2 (en) Method for controlling unlocking and mobile terminal
CN109934180B (en) Fingerprint identification method and related device
WO2017174010A1 (en) A method for fingerprint unlocking and terminal
US9659209B2 (en) Electronic device including blurred finger image deblurring circuitry and related methods
WO2015131352A1 (en) Method for starting electronic device, and electronic device
CN110245483B (en) Biometric identification method and related product
KR20130041900A (en) Adaptive method and device for user touch operation mode
CN105975833A (en) Fingerprint unlocking method and terminal
WO2015003606A1 (en) Method and apparatus for recognizing pornographic image
CN108960120B (en) Fingerprint identification processing method and electronic equipment
US11120247B2 (en) Defensive measures for residue re-imaging
WO2020216091A1 (en) Image processing method and related apparatus
CN107622193A (en) Unlocked by fingerprint method and Related product
CN110287666A (en) Fingerprint unlocking method and related device
CN111599460A (en) Telemedicine method and system
WO2019041243A1 (en) Method for verifying function of fingerprint sensor and terminal
CN111881813B (en) Data storage method and system of face recognition terminal
CN110189367A (en) Calibration method and related equipment

Legal Events

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