技术领域technical field
本申请实施例涉及电子设备技术领域,尤其涉及一种指纹采集方法、装置、存储介质及电子设备。The embodiments of the present application relate to the technical field of electronic devices, and in particular, to a fingerprint collection method, device, storage medium, and electronic device.
背景技术Background technique
随着电子设备的快速发展,指纹采集和识别成为电子设备的常用功能,诸如手机和平板电脑等电子设备均具有指纹采集和识别的功能。With the rapid development of electronic devices, fingerprint collection and identification have become common functions of electronic devices, and electronic devices such as mobile phones and tablet computers have the function of fingerprint collection and identification.
目前的电子设备中一般是将指纹采集传感器设置在物理按键下方,例如物理按键可以是home键,以便用户通过按压home键准确输入指纹的位置。但是当电子设备中不设置home键,或者电子设备的屏幕为全面屏时,用户无法确定输入指纹的位置。当指纹采集失败时,由于导致指纹采集失败的原因有多种,用户无法确定指纹采集失败的原因,需要用户通过多次尝试,以排除指纹采集失败的原因,操作繁琐,效率低。In current electronic devices, the fingerprint acquisition sensor is generally arranged below the physical key, for example, the physical key may be the home key, so that the user can accurately input the position of the fingerprint by pressing the home key. However, when the home button is not set in the electronic device, or the screen of the electronic device is a full screen, the user cannot determine the position where the fingerprint is input. When the fingerprint collection fails, there are many reasons for the failure of the fingerprint collection, and the user cannot determine the reason for the failure of the fingerprint collection, and the user needs to make multiple attempts to eliminate the cause of the failure of the fingerprint collection, which is cumbersome and inefficient.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种指纹采集方法、装置、存储介质及电子设备,提高指纹采集的效率和准确性。Embodiments of the present application provide a fingerprint collection method, device, storage medium and electronic device, which improve the efficiency and accuracy of fingerprint collection.
第一方面,本申请实施例提供了一种指纹采集的提示方法,应用于电子设备,所述电子设备包括指纹传感器,包括:In a first aspect, an embodiment of the present application provides a prompt method for fingerprint collection, which is applied to an electronic device, where the electronic device includes a fingerprint sensor, including:
在指纹采集模式下,获取用户输入指纹的状态参数;In the fingerprint collection mode, obtain the state parameters of the user's input fingerprint;
当指纹采集失败时,根据所述状态参数确定指纹采集失败原因;When the fingerprint collection fails, determine the reason for the failure of the fingerprint collection according to the state parameter;
根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。Generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
第二方面,本申请实施例提供了一种指纹采集的提示装置,包括:In a second aspect, an embodiment of the present application provides a prompt device for fingerprint collection, including:
状态参数获取模块,用于在指纹采集模式下,获取用户输入指纹的状态参数;The state parameter acquisition module is used to acquire the state parameters of the fingerprint input by the user in the fingerprint acquisition mode;
指纹采集失败原因确定模块,用于当指纹采集失败时,根据所述状态参数确定指纹采集失败原因;a fingerprint acquisition failure reason determination module, used for determining the fingerprint acquisition failure reason according to the state parameter when the fingerprint acquisition fails;
信息提示模块,用于根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。An information prompting module, configured to generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的指纹采集的提示方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the prompt method for fingerprint collection according to the embodiment of the present application.
第四方面,本申请实施例提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的指纹采集的提示方法。In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implementing the computer program as described in the present application when the processor executes the computer program. The prompt method for fingerprint collection described in the embodiment.
本申请实施例中提供的指纹采集的提示方法,通过在指纹采集模式下,获取用户输入指纹的状态参数,根据所述状态参数确定指纹采集是否成功,当确定指纹采集失败时,根据所述状态参数确定指纹采集失败原因,根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。通过采用上述方案,在用户输入指纹失败时,通过当前的状态参数确定指纹采集失败原因,将该指纹采集失败原因通过提示信息提示用户,便于用户获知失败原因,并根据提示信息正确的输入指纹,避免了用户在不了解指纹采集失败原因时,盲目尝试的问题,提高了电子设备的智能化和人性化,提高指纹信息的采集效率。The prompt method for fingerprint collection provided in the embodiment of the present application is to obtain the state parameter of the fingerprint input by the user in the fingerprint collection mode, determine whether the fingerprint collection is successful according to the state parameter, and when it is determined that the fingerprint collection fails, according to the state The parameter determines the reason for the failure of fingerprint collection, generates prompt information according to the reason for the failure of fingerprint collection, and outputs the prompt information. By adopting the above solution, when the user fails to input the fingerprint, the current state parameter is used to determine the reason for the failure of fingerprint acquisition, and the reason for the failure of fingerprint acquisition is prompted to the user through a prompt message, so that the user can know the reason for the failure, and input the fingerprint correctly according to the prompt message. It avoids the problem of blind attempts when users do not know the reason for the failure of fingerprint collection, improves the intelligence and humanization of electronic equipment, and improves the collection efficiency of fingerprint information.
附图说明Description of drawings
图1为本申请实施例提供的一种指纹采集的提示方法的流程示意图;1 is a schematic flowchart of a prompt method for fingerprint collection provided by an embodiment of the present application;
图2a为本申请实施例提供的一种电子设备显示提示信息的示意图;2a is a schematic diagram of an electronic device displaying prompt information according to an embodiment of the present application;
图2b为本申请实施例提供的另一种电子设备显示提示信息的示意图;FIG. 2b is a schematic diagram of another electronic device displaying prompt information according to an embodiment of the present application;
图3为本申请实施例提供的另一种指纹采集的提示方法的流程示意图;3 is a schematic flowchart of another method for prompting fingerprint collection provided by an embodiment of the present application;
图4为本申请实施例提供的另一种指纹采集的提示方法的流程示意图;4 is a schematic flowchart of another method for prompting fingerprint collection provided by an embodiment of the present application;
图5为本申请实施例提供的一种指纹采集的提示装置的结构示意图;FIG. 5 is a schematic structural diagram of a prompt device for fingerprint collection provided by an embodiment of the present application;
图6为本申请实施例提供的一种电子设备的结构示意图;FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图7为本申请实施例提供的另一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solutions of the present application will be further described below with reference to the accompanying drawings and through specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all the structures related to the present application.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
图1为本申请实施例提供的一种指纹采集的提示方法的流程示意图,该方法可以由指纹采集的提示装置执行,其中该装置可由软件和/或硬件实现,一般可集成在电子设备中。如图1所示,该方法包括:1 is a schematic flowchart of a fingerprint collection prompting method provided by an embodiment of the present application. The method can be executed by a fingerprint collection prompting device, wherein the device can be implemented by software and/or hardware, and can generally be integrated in an electronic device. As shown in Figure 1, the method includes:
步骤101、在指纹采集模式下,获取用户输入指纹的状态参数。Step 101 , in the fingerprint collection mode, acquire the state parameters of the fingerprint input by the user.
步骤102、当指纹采集失败时,根据所述状态参数确定指纹采集失败原因。Step 102: When the fingerprint collection fails, determine the reason for the failure of the fingerprint collection according to the state parameter.
步骤103、根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。Step 103: Generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
示例性的,本申请实施例中的电子设备可包括手机和平板电脑等配置有指纹传感器的智能设备。Exemplarily, the electronic devices in the embodiments of the present application may include smart devices such as mobile phones and tablet computers that are configured with fingerprint sensors.
其中,指纹采集模式可以是基于指纹采集指令启动,示例性的,在息屏状态下,通过用户输入的触控手势,电子设备显示解锁界面,并生成指纹采集指令,电子设备进入指纹采集模式。示例性的,在亮屏状态下,根据用户对目标应用程序(加密应用程序)的启动操作或者机密信息(APP信息、本地存储的文档或者图像等)的显示操作,进入用户身份验证界面,并生成指纹采集指令,电子设备进入指纹采集模式。本实施例中,在确定电子设备进行指纹采集模式时,检测用户手指在电子设备屏幕上的指纹输入动作,避免在其他状态下,用户手指对屏幕的触控操作导致对电子设备的误操作,提高对电子设备的控制精度。The fingerprint collection mode may be started based on a fingerprint collection instruction. Exemplarily, in the screen-off state, through a touch gesture input by the user, the electronic device displays an unlocking interface, generates a fingerprint collection instruction, and the electronic device enters the fingerprint collection mode. Exemplarily, in the bright screen state, according to the user's startup operation of the target application (encrypted application) or the display operation of confidential information (APP information, locally stored documents or images, etc.), enter the user authentication interface, and The fingerprint collection instruction is generated, and the electronic device enters the fingerprint collection mode. In this embodiment, when it is determined that the electronic device is in the fingerprint collection mode, the fingerprint input action of the user's finger on the screen of the electronic device is detected, so as to avoid misoperation of the electronic device caused by the touch operation of the user's finger on the screen in other states. Improve the control accuracy of electronic equipment.
在本实施例中,在指纹采集模式下,当检测到用户在电子设备屏幕的输入指纹操作时,获取用户输入指纹的状态参数。其中,当用户手指在电子设备屏幕的指纹采集范围内停留时间超过预设时间时,确定检测到用户的输入指纹操作,指纹采集范围可以是以指纹传感器为中心的部分屏幕范围。In this embodiment, in the fingerprint collection mode, when a user's operation of inputting a fingerprint on the screen of the electronic device is detected, a state parameter of the user's input fingerprint is acquired. Wherein, when the user's finger stays in the fingerprint collection range of the electronic device screen for more than a preset time, it is determined that the user's input fingerprint operation is detected, and the fingerprint collection range may be a part of the screen range centered on the fingerprint sensor.
用户输入指纹的状态参数可以包括但不限于输入指纹的触摸位置和指纹清晰程度。其中,当电子设备为手机或平板电脑等配置有触控屏幕的电子设备时,可将触控屏幕检测用户手指位置确定为输入指纹的触摸位置,并启动指纹传感器采集指纹信息,判断指纹信息的清晰程度。通过用户输入指纹的状态参数确定是否成功采集指纹,具体的,状态参数均满足预设指纹采集条件时,确定指纹采集成功,当至少一个状态参数不满足预设指纹采集条件时,确定指纹采集失败。本实施例中,可以是在每一次检测到输入指纹操作时,同步确定输入指纹的触摸位置和指纹清晰程度,对得到的输入指纹的触摸位置和指纹清晰程度同时进行判断,当均满足预设指纹采集条件时,确定指纹采集成功,当输入指纹的触摸位置和指纹清晰程度中一项或两项不满足预设指纹采集条件时,确定指纹采集失败。示例性的,可以是在检测到输入指纹操作时,启动指纹传感器,获取指纹信息,根据获取的指纹信息的面积确定输入指纹的触摸位置是否满足预设指纹采集条件,具体的,当获取的指纹信息的面积小于预设值时,确定输入指纹的触摸位置不满足预设指纹采集条件,当获取的指纹信息的面积大于或等于预设值时,确定输入指纹的触摸位置满足预设指纹采集条件,进一步地,判断采集的指纹信息的清晰程度。The state parameters of the user's input fingerprint may include, but are not limited to, the touch position of the input fingerprint and the degree of clarity of the fingerprint. Wherein, when the electronic device is an electronic device equipped with a touch screen, such as a mobile phone or a tablet computer, the position of the user's finger detected by the touch screen can be determined as the touch position of the input fingerprint, and the fingerprint sensor can be started to collect the fingerprint information, and determine the fingerprint information. clarity. Whether the fingerprint is successfully collected is determined by the state parameters of the fingerprint input by the user. Specifically, when the state parameters all meet the preset fingerprint collection conditions, it is determined that the fingerprint collection is successful, and when at least one state parameter does not meet the preset fingerprint collection conditions, it is determined that the fingerprint collection fails. . In this embodiment, each time an operation of inputting a fingerprint is detected, the touch position of the input fingerprint and the degree of clarity of the fingerprint are determined synchronously, and the obtained touch position of the input fingerprint and the degree of clarity of the fingerprint are judged at the same time, and when both meet the preset requirements When the fingerprint collection conditions are met, it is determined that the fingerprint collection is successful. When one or both of the touch position of the input fingerprint and the fingerprint clarity do not meet the preset fingerprint collection conditions, it is determined that the fingerprint collection fails. Exemplarily, when a fingerprint input operation is detected, the fingerprint sensor is activated to obtain fingerprint information, and whether the touch position of the input fingerprint meets the preset fingerprint collection conditions is determined according to the area of the obtained fingerprint information. When the area of the information is smaller than the preset value, it is determined that the touch position of the input fingerprint does not meet the preset fingerprint collection conditions; when the area of the acquired fingerprint information is greater than or equal to the preset value, it is determined that the touch position of the input fingerprint meets the preset fingerprint collection conditions , and further, determine the clarity of the collected fingerprint information.
在本实施例中,还可以是先获取输入指纹的触摸位置,当该输入指纹的触摸位置不满足预设指纹采集条件时,确定指纹采集失败,当该输入指纹的触摸位置满足预设指纹采集条件,启动指纹传感器,获取指纹信息,确定指纹信息的清晰程度,当指纹清晰程度满足预设指纹采集条件时,确定指纹采集成功,当指纹清晰程度不满足预设指纹采集条件时,确定指纹采集失败。顺序获取输入指纹的触摸位置和指纹清晰程度,当输入指纹的触摸位置不满足预设指纹采集条件时,无需启动指纹传感器,避免通过指纹传感器采集指纹信息的无效过程导致的时间消耗和功耗。In this embodiment, the touch position of the input fingerprint may also be obtained first, and when the touch position of the input fingerprint does not meet the preset fingerprint collection conditions, it is determined that the fingerprint collection fails, and when the touch position of the input fingerprint meets the preset fingerprint collection conditions condition, activate the fingerprint sensor, obtain fingerprint information, and determine the clarity of the fingerprint information. When the clarity of the fingerprint meets the preset fingerprint collection conditions, it is determined that the fingerprint collection is successful, and when the clarity of the fingerprint does not meet the preset fingerprint collection conditions, the fingerprint collection is determined. fail. The touch position of the input fingerprint and the clarity of the fingerprint are sequentially obtained. When the touch position of the input fingerprint does not meet the preset fingerprint collection conditions, the fingerprint sensor does not need to be activated, avoiding the time consumption and power consumption caused by the invalid process of collecting fingerprint information through the fingerprint sensor.
当根据所述状态参数确定指纹采集成功时,对采集的指纹信息进行识别,根据识别结果对电子设备进行控制,示例性的,对电子设备进行解锁、进入APP或者显示机密信息等。当根据所述状态参数确定指纹采集失败时,根据输入指纹的状态参数确定指纹采集失败原因,其中,指纹采集失败原因可以是但不限于指纹输入位置偏差或者用户手指脏污等。基于确定的指纹采集失败原因,生成提示信息,以提示用户正确的指纹输入方式。示例性的,提示信息可以是通过文字形式、图形形式或者语音形式输出。具体的,可以是在屏幕上显示文字“手指脏污”,还可以是通过预设标识(圆形标识、椭圆形标识或矩形标识等)提示指纹传感器位置等。示例性的,参见图2a和图2b,图2a和图2b是本申请实施例提供的一种电子设备显示提示信息的示意图。图2a中通过圆形标识提示标准指纹输入位置,图2b中通过文字提示用户手指脏污。需要说明的是,图2a和图2b仅是一种示例,在其他实施例中,还可以是通过其他提示方式显示提示信息。When it is determined that the fingerprint collection is successful according to the state parameter, the collected fingerprint information is identified, and the electronic device is controlled according to the identification result. When it is determined that the fingerprint collection fails according to the state parameter, the reason for the failure of fingerprint collection is determined according to the state parameter of the input fingerprint, wherein the reason for the failure of fingerprint collection may be, but not limited to, the deviation of the fingerprint input position or the dirty finger of the user. Based on the determined cause of fingerprint collection failure, prompt information is generated to prompt the user for a correct fingerprint input method. Exemplarily, the prompt information may be output in a text form, a graphic form or a voice form. Specifically, the text "finger is dirty" may be displayed on the screen, or the position of the fingerprint sensor may be prompted by a preset mark (a circular mark, an oval mark or a rectangular mark, etc.). For example, see FIG. 2a and FIG. 2b. FIG. 2a and FIG. 2b are schematic diagrams of displaying prompt information by an electronic device provided by an embodiment of the present application. In Fig. 2a, the standard fingerprint input position is prompted by a circular mark, and in Fig. 2b, the user's finger is prompted to be dirty by text. It should be noted that FIG. 2a and FIG. 2b are only examples, and in other embodiments, prompt information may also be displayed in other prompt manners.
在一些实施例中,在确定电子设备进入指纹采集模式时,在屏幕上通过预设标识显示标准指纹输入位置(指纹传感器位置),如图2a所示,以提示用户正确的指纹输入位置,减少用户指纹输入位置偏差的概率,提高指纹采集效率。在检测到用户的输入指纹操作时,获取输入指纹的状态参数,根据状态参数判断该指纹信息是否采集成功。其中,可以是优先根据指纹清晰程度判断该指纹信息是否采集成功,并根据采集指纹信息的面积验证指纹输入位置是否正确。In some embodiments, when it is determined that the electronic device enters the fingerprint collection mode, the standard fingerprint input position (fingerprint sensor position) is displayed on the screen through a preset identifier, as shown in FIG. 2a, to prompt the user for the correct fingerprint input position, reducing the The probability of user fingerprint input position deviation improves the efficiency of fingerprint collection. When the user's input fingerprint operation is detected, the state parameter of the input fingerprint is obtained, and whether the fingerprint information is collected successfully is judged according to the state parameter. Among them, whether the fingerprint information is collected successfully may be judged first according to the clarity of the fingerprint, and whether the fingerprint input position is correct is verified according to the area of the collected fingerprint information.
本申请实施例中提供的指纹采集的提示方法,在指纹采集模式下,获取用户输入指纹的状态参数,根据所述状态参数确定指纹采集是否成功,当确定指纹采集失败时,根据所述状态参数确定指纹采集失败原因,根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。通过采用上述方案,在用户输入指纹失败时,通过当前的状态参数确定指纹采集失败原因,将该指纹采集失败原因通过提示信息提示用户,便于用户获知失败原因,并根据提示信息正确的输入指纹,避免了用户在不了解指纹采集失败原因时,盲目尝试的情况,提高了电子设备的智能化和人性化,提高指纹信息的采集效率。In the fingerprint collection prompting method provided in the embodiment of the present application, in the fingerprint collection mode, the state parameter of the user's input fingerprint is obtained, and whether the fingerprint collection is successful is determined according to the state parameter, and when it is determined that the fingerprint collection fails, according to the state parameter Determine the reason for the failure of fingerprint collection, generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information. By adopting the above solution, when the user fails to input the fingerprint, the current state parameter is used to determine the reason for the failure of fingerprint acquisition, and the reason for the failure of fingerprint acquisition is prompted to the user through a prompt message, so that the user can know the reason for the failure, and input the fingerprint correctly according to the prompt message. It avoids the situation that users blindly try when they do not know the reason for the failure of fingerprint collection, improves the intelligence and humanization of electronic equipment, and improves the collection efficiency of fingerprint information.
图3为本申请实施例提供的另一种指纹采集的提示方法的流程示意图,参见图3,本实施例的方法包括如下步骤:FIG. 3 is a schematic flowchart of another fingerprint collection prompting method provided by an embodiment of the present application. Referring to FIG. 3 , the method of this embodiment includes the following steps:
步骤301、在指纹采集模式下,基于所述电子设备的位置传感器获取用户输入指纹的触摸位置。Step 301 , in the fingerprint collection mode, acquire the touch position of the user's input fingerprint based on the position sensor of the electronic device.
步骤302、当所述输入指纹的触摸位置与标准指纹位置的位置差大于预设值时,确定指纹采集失败,且确定指纹采集失败原因为指纹输入位置偏差。Step 302: When the position difference between the touch position of the input fingerprint and the standard fingerprint position is greater than a preset value, determine that the fingerprint collection fails, and determine that the reason for the failure of fingerprint collection is the deviation of the fingerprint input position.
步骤303、根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。Step 303: Generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
在本实施例中,位置传感器设置在电子设备的屏幕背部,用于检测用户手指在输入指纹时在屏幕上的触摸位置,其中,所述位置传感器包括超声波传感器、光学传感器或者阵列设置在所述电子设备屏幕表面的触控电路。示例性的,超声波传感器或光学传感器可以是设置在指纹传感器的附近位置,指纹采集范围可以是电子设备屏幕中靠近底边的部分区域,示例性的,可以是靠近底边的三分之一的屏幕区域。In this embodiment, the position sensor is disposed on the back of the screen of the electronic device, and is used to detect the touch position of the user's finger on the screen when inputting a fingerprint, wherein the position sensor includes an ultrasonic sensor, an optical sensor or an array disposed on the screen. Touch circuits on the screen surface of an electronic device. Exemplarily, the ultrasonic sensor or the optical sensor may be arranged near the fingerprint sensor, and the fingerprint collection range may be a partial area of the screen of the electronic device close to the bottom edge, for example, it may be close to one-third of the bottom edge. screen area.
在一些实施例中,基于所述电子设备的位置传感器获取用户输入指纹的触摸位置,包括:基于所述电子设备的位置传感器确定所述用户手指在所述电子设备屏幕的触摸轮廓;将所述触摸轮廓的中心位置确定为所述输入指纹的触摸位置。示例性的,以电子设备的屏幕为准建立平面直角坐标系,例如可以是以屏幕左下角为原点,水平底边为横轴,垂直侧边为纵轴。相应的,将指纹传感器所在范围的中心坐标位置确定为标准指纹位置,并确定标准指纹位置和用户的输入指纹的触摸位置的坐标差,即标准指纹位置和输入指纹的触摸位置的位置差。当该位置差大于预设值时,指纹采集失败,且确定指纹采集失败原因为指纹输入位置偏差。In some embodiments, acquiring the touch position of the user's input fingerprint based on the position sensor of the electronic device includes: determining the touch contour of the user's finger on the screen of the electronic device based on the position sensor of the electronic device; The center position of the touch contour is determined as the touch position of the input fingerprint. Exemplarily, a plane rectangular coordinate system is established based on the screen of the electronic device, for example, the lower left corner of the screen may be the origin, the horizontal bottom side is the horizontal axis, and the vertical side is the vertical axis. Correspondingly, the center coordinate position of the range where the fingerprint sensor is located is determined as the standard fingerprint position, and the coordinate difference between the standard fingerprint position and the touch position of the user's input fingerprint is determined, that is, the position difference between the standard fingerprint position and the touch position of the input fingerprint. When the position difference is greater than the preset value, the fingerprint collection fails, and it is determined that the reason for the failure of the fingerprint collection is the deviation of the input position of the fingerprint.
在一些实施例中,基于所述电子设备的位置传感器获取用户输入指纹的触摸位置,包括:基于所述电子设备的位置传感器确定所述用户手指在所述电子设备屏幕的触摸轮廓;将所述触摸轮廓在所述屏幕上的位置确定为所述输入指纹的触摸位置。示例性的,通过位置传感器确定用户手指与屏幕接触各点的坐标位置,根据各坐标位置确定在用户手指与屏幕的触摸轮廓,将该触摸轮廓与标准指纹位置(指纹传感器所在范围)进行匹配,根据触摸轮廓与标准指纹位置的重合面积确定位置差,重合面积越大,位置差越小,相应的,重合面积越小,位置差越大。当触摸轮廓与标准指纹位置的重合面积小于预设面积,即输入指纹的触摸位置与标准指纹位置的位置差大于预设值时,确定指纹采集失败,且确定指纹采集失败原因为指纹输入位置偏差。In some embodiments, acquiring the touch position of the user's input fingerprint based on the position sensor of the electronic device includes: determining the touch contour of the user's finger on the screen of the electronic device based on the position sensor of the electronic device; The position of the touch contour on the screen is determined as the touch position of the input fingerprint. Exemplarily, the coordinate position of each point of contact between the user's finger and the screen is determined by the position sensor, the touch contour between the user's finger and the screen is determined according to each coordinate position, and the touch contour is matched with the standard fingerprint position (the range where the fingerprint sensor is located), The position difference is determined according to the overlapping area of the touch contour and the standard fingerprint position. The larger the overlapping area is, the smaller the position difference is. Correspondingly, the smaller the overlapping area is, the larger the position difference is. When the overlapping area of the touch contour and the standard fingerprint position is smaller than the preset area, that is, the position difference between the touch position of the input fingerprint and the standard fingerprint position is greater than the preset value, it is determined that the fingerprint acquisition fails, and the reason for the failure of fingerprint acquisition is the deviation of the fingerprint input position. .
当指纹输入位置偏差时,生成用于调整指纹输入位置的提示信息,示例性的,该提示信息可以包括表征标准指纹位置的图形(参见图2a),还可以是包括表征手指移动方向和距离的箭头,其中,该箭头方向为手指移动方向,箭头的长度为手指移动距离;示例性的,当触摸轮廓与标准指纹位置存在倾斜角导致指纹采集失败时,生成的提示信息可以是包括输入指纹的手指图形,以提示用户根据该手指图形输入指纹。When the input position of the fingerprint is deviated, prompt information for adjusting the input position of the fingerprint is generated. Exemplarily, the prompt information may include a graphic representing the position of the standard fingerprint (see FIG. 2a), and may also include a graphic representing the moving direction and distance of the finger. An arrow, where the direction of the arrow is the moving direction of the finger, and the length of the arrow is the moving distance of the finger; exemplarily, when the touch profile and the standard fingerprint position have an inclination angle and the fingerprint acquisition fails, the generated prompt information may include the input fingerprint. Finger pattern to prompt the user to input a fingerprint according to the finger pattern.
在本实施例中,位置传感器为超声波传感器时,基于超声波指纹传感器向屏幕方向发送超声波信号,由于用于手指有凹凸不平的线纹,反射信号的接收时刻不同,根据反射信号的接收时刻,确定用户手指表面与超声波传感器的距离,并根据距离生成不同明暗的指纹信息,其中,可以是距离越小颜色越暗。可选的,位置传感器包括阵列设置的触控电路,所述触控电路形成所述屏幕的触控表面,所述触控电路用于获取用户手指在所述屏幕上的触摸位置。当用户手指触摸屏幕时,触摸位置对应的触控电路的触控单元生成触摸信号,根据生成触摸信号的触控单元的位置确定用户手指在屏幕上输入指纹的触摸位置。还可以是通过光学传感器获取输入指纹的触摸位置。光学传感器用于向屏幕方向发生光信号(例如可以是红外光信号),光信号在接触到用户手指时发生反射,根据接收的反射信号确定用户手指在屏幕上输入指纹的触摸位置。In this embodiment, when the position sensor is an ultrasonic sensor, an ultrasonic signal is sent to the screen based on the ultrasonic fingerprint sensor. Since the finger has uneven lines, the receiving time of the reflected signal is different. According to the receiving time of the reflected signal, determine The distance between the surface of the user's finger and the ultrasonic sensor, and the fingerprint information of different brightness and darkness is generated according to the distance. The smaller the distance, the darker the color. Optionally, the position sensor includes a touch control circuit arranged in an array, the touch control circuit forms a touch control surface of the screen, and the touch control circuit is used to obtain the touch position of the user's finger on the screen. When the user's finger touches the screen, the touch unit of the touch circuit corresponding to the touch position generates a touch signal, and determines the touch position where the user's finger inputs the fingerprint on the screen according to the position of the touch unit that generates the touch signal. The touch position of the input fingerprint may also be acquired through an optical sensor. The optical sensor is used to generate light signals (for example, infrared light signals) in the direction of the screen, and the light signals are reflected when touching the user's finger, and the touch position of the user's finger inputting the fingerprint on the screen is determined according to the received reflected signal.
本申请实施例中提供的指纹采集的提示方法,在指纹采集模式时,确定输入指纹的触摸位置,当该输入指纹的触摸位置与标准输入位置存在位置差,且位置差大于预设值时,生成提示信息,以提示用户标准输入位置,便于用户快速准确的输入指纹,避免用户的多次盲目尝试,提高了指纹采集的效率。The prompt method for fingerprint collection provided in the embodiment of the present application, in the fingerprint collection mode, determines the touch position of the input fingerprint, when there is a position difference between the touch position of the input fingerprint and the standard input position, and the position difference is greater than a preset value, Prompt information is generated to prompt the user for a standard input position, which is convenient for the user to input fingerprints quickly and accurately, avoids multiple blind attempts by the user, and improves the efficiency of fingerprint collection.
图4为本申请实施例提供的另一种指纹采集的提示方法的流程示意图,本实施例是上述实施例的一个可选方案,相应的,如图4所示,本实施例的方法包括如下步骤:FIG. 4 is a schematic flowchart of another fingerprint collection prompting method provided by an embodiment of the present application. This embodiment is an optional solution of the above-mentioned embodiment. Correspondingly, as shown in FIG. 4 , the method of this embodiment includes the following step:
步骤401、在指纹采集模式下,基于所述电子设备的位置传感器获取用户输入指纹的触摸位置。Step 401 , in the fingerprint collection mode, acquire the touch position of the user's input fingerprint based on the position sensor of the electronic device.
步骤402、当所述输入指纹的触摸位置与标准指纹位置的位置差大于预设值时,确定指纹采集失败,且确定指纹采集失败原因为指纹输入位置偏差。Step 402: When the position difference between the touch position of the input fingerprint and the standard fingerprint position is greater than a preset value, determine that the fingerprint acquisition fails, and determine that the reason for the failure of fingerprint acquisition is the deviation of the fingerprint input position.
步骤403、根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。Step 403: Generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
步骤404、当所述输入指纹的触摸位置满足指纹采集的位置条件时,基于所述指纹传感器采集用户的指纹信息。Step 404: When the touch position of the input fingerprint satisfies the position condition for fingerprint collection, collect the user's fingerprint information based on the fingerprint sensor.
步骤405、确定采集的指纹信息的清晰程度。Step 405: Determine the clarity of the collected fingerprint information.
步骤406、当所述输入指纹的触摸位置与标准指纹位置的位置差小于或等于预设值且所述指纹清晰程度满足预设清晰程度时,确定指纹采集成功;Step 406: When the position difference between the touch position of the input fingerprint and the standard fingerprint position is less than or equal to a preset value and the fingerprint clarity degree satisfies the preset clarity degree, determine that the fingerprint collection is successful;
步骤407、当所述指纹清晰程度不满足预设清晰程度时,确定指纹采集失败,且确定指纹采集失败原因为用户手指脏污。Step 407: When the degree of clarity of the fingerprint does not meet the preset degree of clarity, it is determined that the fingerprint collection fails, and the reason for the failure of the fingerprint collection is that the user's finger is dirty.
步骤408、根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。Step 408: Generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
在本实施例中,在输入指纹的触摸位置准确的基础上,启动指纹传感器,获取指纹信息,并判断指纹的清晰程度,避免在指纹输入位置偏差时启动指纹传感器导致的功耗。其中,指纹传感器包括超声波指纹传感器、光学指纹传感器、电容式指纹传感器。示例性的,当指纹传感器为光学指纹传感器时,所述基于所述指纹传感器采集用户的指纹信息,包括:基于所述光学指纹传感器中的光信号发射器向棱镜(例如可以是三棱镜)发射光信号,其中,所述棱镜射出的光信号在传输至手指表面时发生反射;由于手指表面有凹凸不平的线纹,当光线照射到手指表面时,反射的光信号的明暗程度不同,基于所述光学指纹传感器中的摄像头采集所述手指表面反射的光信号,形成不同明暗程度的图像信息,即用户的指纹信息。In this embodiment, on the basis that the touch position of the input fingerprint is accurate, the fingerprint sensor is activated, the fingerprint information is obtained, and the clarity of the fingerprint is judged to avoid power consumption caused by activation of the fingerprint sensor when the input position of the fingerprint is deviated. The fingerprint sensor includes an ultrasonic fingerprint sensor, an optical fingerprint sensor, and a capacitive fingerprint sensor. Exemplarily, when the fingerprint sensor is an optical fingerprint sensor, the collecting the user's fingerprint information based on the fingerprint sensor includes: emitting light to a prism (for example, a triangular prism) based on the optical signal transmitter in the optical fingerprint sensor signal, wherein the light signal emitted by the prism is reflected when transmitted to the surface of the finger; due to the uneven lines on the surface of the finger, when the light hits the surface of the finger, the reflected light signal has different degrees of brightness and darkness. The camera in the optical fingerprint sensor collects the light signal reflected from the surface of the finger to form image information with different degrees of brightness, that is, the user's fingerprint information.
在一些实施例中,指纹传感器还可以是超声波指纹传感器,基于超声波指纹传感器向用户手指发送超声波信号,其中由于用于手指有凹凸不平的线纹,反射信号的接收时刻不同,根据反射信号的接收时刻,确定用户手指表面与超声波传感器的距离,并根据距离生成不同明暗的指纹信息,其中,可以是距离越小颜色越暗。在一些实施例中,还可以是基于电容式指纹传感器采集指纹信息,当用户手指触摸屏幕时,确定每一个像素点的电容值,其中,像素点与手指表面的距离越大,像素点的电容值越小,像素点与手指表面的距离越小,像素点的电容值越大。指纹具有指纹谷和指纹峰,用户手指触摸屏幕时,指纹峰与像素点的距离小,指纹谷与像素点的距离大,即指纹峰对应的像素点的电容值较大,指纹谷对应的像素点的电容值较小,形成指纹信息。In some embodiments, the fingerprint sensor may also be an ultrasonic fingerprint sensor, which sends ultrasonic signals to the user's finger based on the ultrasonic fingerprint sensor, wherein due to the uneven lines on the finger, the receiving time of the reflected signal is different, according to the receiving time of the reflected signal. At the moment, the distance between the surface of the user's finger and the ultrasonic sensor is determined, and fingerprint information of different brightness and darkness is generated according to the distance, wherein the smaller the distance, the darker the color. In some embodiments, fingerprint information can also be collected based on a capacitive fingerprint sensor. When the user's finger touches the screen, the capacitance value of each pixel is determined. The greater the distance between the pixel and the finger surface, the greater the capacitance of the pixel. The smaller the value, the smaller the distance between the pixel and the surface of the finger, and the larger the capacitance value of the pixel. Fingerprints have fingerprint valleys and fingerprint peaks. When the user's finger touches the screen, the distance between the fingerprint peak and the pixel is small, and the distance between the fingerprint valley and the pixel is large, that is, the capacitance value of the pixel corresponding to the fingerprint peak is larger, and the pixel corresponding to the fingerprint valley is larger. The capacitance value of the dot is small, forming the fingerprint information.
在一些实施例中,在采集指纹信息后,确定采集的指纹信息的清晰程度,包括:识别所述指纹信息中有效指纹面积;根据所述有效指纹面积和预设清晰程度规则确定所述指纹信息的清晰程度。其中,有效指纹为能清晰识别指纹特征的指纹,例如可识别指纹信息中指纹峰、指纹谷以及指纹信息中的中断、分叉或打折等局部特征。预设清晰程度规则中包括指纹清晰程度与有效指纹面积范围的对应关系,根据指纹信息的有效指纹面积确定其相匹配的指纹清晰程度。示例性的,指纹清晰程度可以是划分为两个等级,第一清晰程度和第二清晰程度,其中,第一清晰程度对应的有效指纹面积范围可以是大于或等于标准指纹面积的80%,第二清晰程度对应的有效指纹面积范围可以是小于标准指纹面积的80%,当指纹传感器采集的指纹信息为第一清晰程度时,即满足预设清晰程度,确定指纹采集成功,当指纹传感器采集的指纹信息为第二清晰程度时,即不满足预设清晰程度,确定指纹采集失败。需要说明的是,指纹清晰程度并不仅限于两个等级,在其他实施例中,还可以是根据用户需求设置两个以上的等级。In some embodiments, after collecting fingerprint information, determining the degree of clarity of the collected fingerprint information includes: identifying an effective fingerprint area in the fingerprint information; determining the fingerprint information according to the effective fingerprint area and a preset degree of clarity rule clarity. An effective fingerprint is a fingerprint that can clearly identify fingerprint features, such as fingerprint peaks, fingerprint valleys in fingerprint information, and local features such as interruptions, bifurcations, or discounts in fingerprint information. The preset sharpness rule includes the correspondence between the fingerprint sharpness and the effective fingerprint area, and the matching fingerprint sharpness is determined according to the effective fingerprint area of the fingerprint information. Exemplarily, the degree of fingerprint clarity may be divided into two levels, a first degree of clarity and a second degree of clarity, wherein the range of the effective fingerprint area corresponding to the first degree of clarity may be greater than or equal to 80% of the standard fingerprint area, and the The effective fingerprint area corresponding to the second degree of clarity can be less than 80% of the standard fingerprint area. When the fingerprint information collected by the fingerprint sensor is at the first degree of clarity, the preset degree of clarity is satisfied, and the fingerprint collection is determined to be successful. When the fingerprint information is at the second level of clarity, that is, it does not meet the preset level of clarity, it is determined that the fingerprint collection fails. It should be noted that the degree of fingerprint clarity is not limited to two levels, and in other embodiments, more than two levels may also be set according to user requirements.
当所述指纹清晰程度不满足预设清晰程度时,确定指纹采集失败原因为用户手指脏污,生成提示信息,以提示用户清除手指脏污或切换其他手指,避免用户无效的指纹输入操作。需要说明的是,在检测到电子设备进入指纹采集模式时,确定屏幕的指纹采集范围是否存在污渍,若是,则生成提示信息,以提示用户清除屏幕表面的污渍,避免该污渍影响指纹采集,以及混淆指纹采集失败原因的情况。When the fingerprint clarity does not meet the preset clarity, it is determined that the fingerprint collection failure is caused by the user's finger being dirty, and prompt information is generated to prompt the user to remove the dirty finger or switch other fingers to avoid invalid fingerprint input operations by the user. It should be noted that when it is detected that the electronic device enters the fingerprint collection mode, it is determined whether there is any stain in the fingerprint collection range of the screen, and if so, a prompt message is generated to prompt the user to remove the stain on the screen surface, so as to prevent the stain from affecting the fingerprint collection, and Confuses the reason for the failure of fingerprint collection.
在一些实施例中,当在预设时间内(例如可以是30s)连续两次或两次以上的指纹采集失败的原因均为手指脏污时,生成用于提示用户转换指纹输入角度的提示信息。其中,根据采集的指纹信息识别手指脏污位置以及脏污面积,当脏污面积大于第一面积时,提示用户采用其他手指输入指纹或者采用其他生物特征信息替代指纹信息,当脏污面积小于第一面积时,确定未脏污区域以及手指转换角度,根据手指转换角度生成提示信息,通过文字形式显示在屏幕或者通过扬声器进行语音播放。示例性的,当手指脏污位置为手指左侧,生成的提示信息可以是“请将手指向右旋转45度”,采集指纹右侧以及边缘的指纹信息。示例性的,手指脏污位置为手指中心,可以是分多次提示用户转换角度以采集手指边缘指纹信息,将多次采集的指纹信息进行拼接,当拼接的指纹信息中的有效指纹面积达到第二面积时,确定指纹采集成功,并基于拼接形成的指纹信息进行指纹识别。通过确定手指脏污位置以及脏污面积,确定该手指是否能够输入指纹的要求,避免手指脏污面积过大时,用户的无效操作。进一步的通过提示用户转换指纹输入角度,便于用户快速输入有效指纹,提高指纹输入效率以及电子设备的智能化。In some embodiments, when two or more consecutive fingerprint acquisition failures within a preset time (for example, 30s) are caused by dirty fingers, prompt information for prompting the user to switch the fingerprint input angle is generated . Among them, the dirty position and dirty area of the finger are identified according to the collected fingerprint information. When the dirty area is larger than the first area, the user is prompted to use other fingers to input the fingerprint or use other biometric information to replace the fingerprint information. When the dirty area is smaller than the first area When the area is one area, determine the uncontaminated area and the switching angle of the finger, generate prompt information according to the switching angle of the finger, and display it on the screen in the form of text or play it through the speaker. Exemplarily, when the dirty position of the finger is on the left side of the finger, the generated prompt information may be "Please rotate the finger by 45 degrees to the right", and the fingerprint information on the right side and the edge of the fingerprint is collected. Exemplarily, the dirty position of the finger is the center of the finger, and the user can be prompted to change the angle in multiple times to collect fingerprint information on the edge of the finger, and the fingerprint information collected multiple times is spliced. When there are two areas, it is determined that the fingerprint collection is successful, and fingerprint identification is performed based on the fingerprint information formed by splicing. By determining the dirty position and dirty area of the finger, it is determined whether the finger can input the requirements of the fingerprint, so as to avoid the invalid operation of the user when the dirty area of the finger is too large. Further, by prompting the user to switch the fingerprint input angle, it is convenient for the user to quickly input an effective fingerprint, and the efficiency of fingerprint input and the intelligence of the electronic device are improved.
本申请实施例中提供的指纹采集的提示方法,通过在指纹采集模式下,确定输入指纹的触摸位置和输入指纹的清晰程度,判断输入的指纹是否成功,并在指纹输入失败时,确定指纹输入失败原因,以提示用户,便于用户快速正确的输入指纹,提高指纹的输入效率,进一步便于基于指纹对电子设备的控制精度和效率。The prompt method for fingerprint collection provided in the embodiment of the present application, by determining the touch position of the input fingerprint and the clarity of the input fingerprint in the fingerprint collection mode, judging whether the input fingerprint is successful, and when the fingerprint input fails, determine the fingerprint input The reason for the failure is to prompt the user, which is convenient for the user to input the fingerprint quickly and correctly, improves the input efficiency of the fingerprint, and further facilitates the control accuracy and efficiency of the electronic device based on the fingerprint.
图5为本申请实施例提供的一种指纹采集的提示装置的结构框图,该装置可由软件和/或硬件实现,一般集成在电子设备中,可通过执行电子设备的指纹采集的提示方法来对指纹采集操作进行提示。如图5所示,该装置包括:状态参数获取模块501、指纹采集失败原因确定模块502和信息提示模块503。5 is a structural block diagram of a fingerprint collection prompting device provided by an embodiment of the present application. The device may be implemented by software and/or hardware, and is generally integrated in an electronic device. The fingerprint collection operation is prompted. As shown in FIG. 5 , the apparatus includes: a status parameter acquisition module 501 , a fingerprint acquisition failure cause determination module 502 and an information prompt module 503 .
状态参数获取模块501,用于在指纹采集模式下,获取用户输入指纹的状态参数;The state parameter acquisition module 501 is used for acquiring the state parameter of the fingerprint input by the user in the fingerprint collection mode;
指纹采集失败原因确定模块502,用于当确定指纹采集失败时,根据所述状态参数确定指纹采集失败原因;The fingerprint collection failure reason determination module 502 is used for determining the fingerprint collection failure reason according to the state parameter when it is determined that the fingerprint collection fails;
信息提示模块503,用于根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。The information prompting module 503 is configured to generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
本申请实施例中提供的指纹采集的提示装置,在用户输入指纹失败时,通过当前的状态参数确定指纹采集失败原因,将该指纹采集失败原因通过提示信息提示用户,便于用户获知失败原因,并根据提示信息正确的输入指纹,避免了用户在不了解指纹采集失败原因时,盲目尝试的问题,提高了电子设备的智能化和人性化,提高指纹信息的采集效率。The prompting device for fingerprint collection provided in the embodiment of the present application, when the user fails to input a fingerprint, determines the reason for the failure of fingerprint collection through the current state parameters, and prompts the user for the reason for the failure of fingerprint collection through prompt information, so that the user can know the reason for the failure, and Entering fingerprints correctly according to the prompt information avoids the problem of blind attempts when users do not know the reason for the failure of fingerprint collection, improves the intelligence and humanization of electronic equipment, and improves the collection efficiency of fingerprint information.
在上述实施例的基础上,所述用户输入指纹的状态参数包括输入指纹的触摸位置;相应的,状态参数获取模块501包括:On the basis of the above embodiment, the state parameter of the user's input fingerprint includes the touch position of the input fingerprint; correspondingly, the state parameter acquisition module 501 includes:
触摸位置确定单元,用于基于所述电子设备的位置传感器获取用户输入指纹的触摸位置,所述位置传感器包括超声波传感器、光学传感器或者阵列设置在所述电子设备屏幕表面的触控电路A touch position determination unit, configured to acquire the touch position of a user's input fingerprint based on a position sensor of the electronic device, where the position sensor includes an ultrasonic sensor, an optical sensor or a touch circuit arranged in an array on the screen surface of the electronic device
在上述实施例的基础上,触摸位置确定单元用于:On the basis of the above embodiment, the touch position determination unit is used for:
基于所述电子设备的位置传感器确定所述用户手指在所述电子设备屏幕的触摸轮廓;determining the touch contour of the user's finger on the screen of the electronic device based on the position sensor of the electronic device;
将所述触摸轮廓在所述屏幕上的位置确定为所述输入指纹的触摸位置;或者,determining the position of the touch profile on the screen as the touch position of the input fingerprint; or,
将所述触摸轮廓的中心位置确定为所述输入指纹的触摸位置。The center position of the touch contour is determined as the touch position of the input fingerprint.
在上述实施例的基础上,所述用户输入指纹的状态参数还包括指纹清晰程度;相应的,状态参数获取模块501包括:On the basis of the above embodiment, the state parameter of the fingerprint input by the user also includes the degree of fingerprint clarity; correspondingly, the state parameter acquisition module 501 includes:
指纹信息采集单元,用于当所述输入指纹的触摸位置满足指纹采集的位置条件时,基于所述指纹传感器采集用户的指纹信息;a fingerprint information collection unit, configured to collect the user's fingerprint information based on the fingerprint sensor when the touch position of the input fingerprint satisfies the position condition for fingerprint collection;
清晰程度确定单元,用于确定采集的指纹信息的清晰程度。The clarity determination unit is used for determining the clarity of the collected fingerprint information.
在上述实施例的基础上,所述指纹传感器为光学指纹传感器;相应的,指纹信息采集单元用于:On the basis of the above embodiment, the fingerprint sensor is an optical fingerprint sensor; correspondingly, the fingerprint information collection unit is used for:
基于所述光学指纹传感器中的光信号发射器向预设棱镜发射光信号,其中,所述棱镜射出的光信号在传输至手指表面时发生反射;Based on the optical signal transmitter in the optical fingerprint sensor, an optical signal is emitted to a preset prism, wherein the optical signal emitted by the prism is reflected when transmitted to the surface of the finger;
基于所述光学指纹传感器中的摄像头采集所述手指表面反射的光信号,生成用户的指纹信息。The fingerprint information of the user is generated based on the light signal reflected from the surface of the finger collected by the camera in the optical fingerprint sensor.
在上述实施例的基础上,清晰程度确定单元用于:识别所述指纹信息中有效指纹面积;On the basis of the above embodiment, the clarity determination unit is used for: identifying the effective fingerprint area in the fingerprint information;
根据所述有效指纹面积和预设清晰程度规则确定所述指纹信息的清晰程度。The sharpness of the fingerprint information is determined according to the effective fingerprint area and a preset sharpness rule.
在上述实施例的基础上,指纹采集失败原因确定模块502用于:On the basis of the above embodiment, the fingerprint collection failure reason determination module 502 is used for:
当所述输入指纹的触摸位置与标准指纹位置的位置差大于预设值时,确定指纹采集失败原因为指纹输入位置偏差;When the position difference between the touch position of the input fingerprint and the standard fingerprint position is greater than the preset value, it is determined that the reason for the failure of fingerprint acquisition is the deviation of the fingerprint input position;
当指纹清晰程度不满足预设清晰程度时,确定指纹采集失败原因为用户手指脏污。When the clearness of the fingerprint does not meet the preset clearness, it is determined that the cause of the fingerprint acquisition failure is that the user's finger is dirty.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行指纹采集的提示方法,该方法包括:Embodiments of the present application also provide a storage medium containing computer-executable instructions, where the computer-executable instructions are used to perform a prompt method for fingerprint collection when executed by a computer processor, and the method includes:
在指纹采集模式下,获取用户输入指纹的状态参数;In the fingerprint collection mode, obtain the state parameters of the user's input fingerprint;
当指纹采集失败时,根据所述状态参数确定指纹采集失败原因;When the fingerprint collection fails, determine the reason for the failure of the fingerprint collection according to the state parameter;
根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。Generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDRRAM、SRAM、EDORAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape devices; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non-volatile Volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (eg, in different computer systems connected by a network). The storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的指纹采集的提示操作,还可以执行本申请任意实施例所提供的指纹采集的提示方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application, the computer-executable instructions of which are not limited to the prompt operation of fingerprint collection as described above, and can also perform fingerprint collection provided by any embodiment of the present application. related operations in the prompt method of .
本申请实施例提供了一种电子设备,该电子设备中可集成本申请实施例提供的指纹采集的提示装置。图6为本申请实施例提供的一种电子设备的结构示意图。电子设备600可以包括:存储器601,处理器602及存储在存储器601上并可在处理器602运行的计算机程序,所述处理器602执行所述计算机程序时实现如本申请实施例所述的指纹采集的提示方法。The embodiment of the present application provides an electronic device, and the electronic device can integrate the fingerprint collection prompting device provided by the embodiment of the present application. FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 600 may include: a memory 601, a processor 602, and a computer program stored on the memory 601 and executed on the processor 602, and the processor 602 implements the fingerprint according to the embodiment of the present application when the processor 602 executes the computer program Tips for collecting.
本申请实施例提供的电子设备,在用户输入指纹失败时,通过当前的状态参数确定指纹采集失败原因,将该指纹采集失败原因通过提示信息提示用户,便于用户获知失败原因,并根据提示信息正确的输入指纹,避免了用户在不了解指纹采集失败原因时,盲目尝试的问题,提高了电子设备的智能化和人性化,提高指纹信息的采集效率。In the electronic device provided by the embodiment of the present application, when the user fails to input a fingerprint, the reason for the failure of fingerprint collection is determined through the current state parameter, and the reason for the failure of fingerprint collection is prompted to the user through prompt information, so that the user can know the reason for the failure, and according to the prompt information is correct It avoids the problem of blind attempts when users do not know the reason for the failure of fingerprint collection, improves the intelligence and humanization of electronic equipment, and improves the collection efficiency of fingerprint information.
图7为本申请实施例提供的另一种电子设备的结构示意图。该电子设备可以包括:壳体(图中未示出)、存储器701、中央处理器(central processing unit,CPU)702(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU702和所述存储器701设置在所述电路板上;所述电源电路,用于为所述电子设备的各个电路或器件供电;所述存储器701,用于存储可执行程序代码;所述CPU702通过读取所述存储器701中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:FIG. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present application. The electronic device may include: a casing (not shown in the figure), a memory 701, a central processing unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown in the figure) and power circuit (not shown). The circuit board is arranged inside the space enclosed by the housing; the CPU 702 and the memory 701 are arranged on the circuit board; the power circuit is used to supply power to each circuit or device of the electronic device The memory 701 is used to store executable program codes; the CPU 702 runs a computer program corresponding to the executable program codes by reading the executable program codes stored in the memory 701 to realize the following steps:
在指纹采集模式下,获取用户输入指纹的状态参数;In the fingerprint collection mode, obtain the state parameters of the user's input fingerprint;
当指纹采集失败时,根据所述状态参数确定指纹采集失败原因;When the fingerprint collection fails, determine the reason for the failure of the fingerprint collection according to the state parameter;
根据所述指纹采集失败原因生成提示信息,并输出所述提示信息。Generate prompt information according to the reason for the failure of fingerprint collection, and output the prompt information.
所述电子设备还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子系统709、其他输入/控制设备710、触摸屏712、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The electronic device further includes: a peripheral interface 703, an RF (Radio Frequency, radio frequency) circuit 705, an audio circuit 706, a speaker 711, a power management chip 708, an input/output (I/O) subsystem 709, and other input/control Devices 710 , touch screen 712 , other input/control devices 710 , and external ports 704 communicate through one or more communication buses or signal lines 707 .
应该理解的是,图示电子设备700仅仅是电子设备的一个范例,并且电子设备700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated electronic device 700 is merely an example of an electronic device, and that the electronic device 700 may have more or fewer components than those shown, two or more components may be combined, Or can have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于对指纹采集的提示操作的电子设备进行详细的描述,该电子设备以手机为例。The following will describe in detail the electronic device provided in this embodiment for prompting operation for fingerprint collection, and the electronic device takes a mobile phone as an example.
存储器701,所述存储器701可以被CPU702、外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 701, which can be accessed by CPU 702, peripheral interface 703, etc., said memory 701 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.
外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。A peripheral interface 703 that can connect the input and output peripherals of the device to the CPU 702 and the memory 701 .
I/O子系统709,所述I/O子系统709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子系统709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 709 , which can connect input and output peripherals on the device, such as touch screen 712 and other input/control devices 710 , to peripherals interface 703 . The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710 . Wherein, one or more input controllers 7092 receive electrical signals from or send electrical signals to other input/control devices 710, which may include physical buttons (push buttons, rocker buttons, etc. ), dial pad, slide switch, joystick, click wheel. Notably, the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏712,所述触摸屏712是用户电子设备与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 712, which is an input interface and an output interface between the user's electronic device and the user, displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.
I/O子系统709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 7091 in I/O subsystem 709 receives electrical signals from touch screen 712 or sends electrical signals to touch screen 712 . The touch screen 712 detects the contact on the touch screen, and the display controller 7091 converts the detected contact into interaction with the user interface object displayed on the touch screen 712, that is, to realize human-computer interaction, and the user interface object displayed on the touch screen 712 can be run. Icons for games, icons for connecting to the corresponding network, etc. It is worth noting that the device may also include a light mouse, which is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by a touch screen.
RF电路705,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路705接收并发送RF信号,RF信号也称为电磁信号,RF电路705将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路705可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 705 is mainly used to establish the communication between the mobile phone and the wireless network (ie, the network side), and realize the data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving text messages, e-mails, etc. Specifically, the RF circuit 705 receives and transmits RF signals, also known as electromagnetic signals, the RF circuit 705 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODECs ( COder-DECoder, codec) chip set, subscriber identity module (Subscriber Identity Module, SIM) and so on.
音频电路706,主要用于从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The audio circuit 706 is mainly used for receiving audio data from the peripheral interface 703 , converting the audio data into an electrical signal, and sending the electrical signal to the speaker 711 .
扬声器711,用于将手机通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 711 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 to sound and play the sound to the user.
电源管理芯片708,用于为CPU702、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 708 is used for power supply and power management for the hardware connected to the CPU 702, the I/O subsystem and the peripheral interface.
上述实施例中提供的指纹采集的提示装置、存储介质及电子设备可执行本申请任意实施例所提供的指纹采集的提示方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的指纹采集的提示方法。The fingerprint collection prompting device, storage medium, and electronic device provided in the above embodiments can execute the fingerprint collection prompting method provided by any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the foregoing embodiments, reference may be made to the prompt method for fingerprint collection provided by any embodiment of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present application and applied technical principles. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application. The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811382346.7ACN109582416A (en) | 2018-11-19 | 2018-11-19 | Fingerprint acquisition method and device, storage medium and electronic equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811382346.7ACN109582416A (en) | 2018-11-19 | 2018-11-19 | Fingerprint acquisition method and device, storage medium and electronic equipment |
| Publication Number | Publication Date |
|---|---|
| CN109582416Atrue CN109582416A (en) | 2019-04-05 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811382346.7APendingCN109582416A (en) | 2018-11-19 | 2018-11-19 | Fingerprint acquisition method and device, storage medium and electronic equipment |
| Country | Link |
|---|---|
| CN (1) | CN109582416A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110838196A (en)* | 2019-11-11 | 2020-02-25 | 珠海格力电器股份有限公司 | Intelligent door lock control method, intelligent door lock control system and intelligent door lock |
| CN110851811A (en)* | 2019-11-15 | 2020-02-28 | 美的集团股份有限公司 | Method and device for preventing misoperation of equipment |
| CN112381007A (en)* | 2020-11-17 | 2021-02-19 | 惠州Tcl移动通信有限公司 | Fingerprint information acquisition method and device, storage medium and terminal |
| CN114511947A (en)* | 2020-10-23 | 2022-05-17 | 深圳绿米联创科技有限公司 | Fingerprint entry method, smart door lock, mobile terminal and storage medium |
| US20230162524A1 (en)* | 2020-07-30 | 2023-05-25 | Japan Display Inc. | Detection device, display device, detection system, and detection method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170091521A1 (en)* | 2015-09-30 | 2017-03-30 | Synaptics Incorporated | Secure visual feedback for fingerprint sensing |
| CN106599858A (en)* | 2016-12-20 | 2017-04-26 | 北京小米移动软件有限公司 | Fingerprint recognition method and device and electronic equipment |
| CN108108977A (en)* | 2017-12-28 | 2018-06-01 | 广州品唯软件有限公司 | Fingerprint method of payment, device, system and storage medium |
| CN108460352A (en)* | 2018-02-28 | 2018-08-28 | 北京小米移动软件有限公司 | The method and apparatus of fingerprint detection |
| CN108701043A (en)* | 2017-06-05 | 2018-10-23 | 华为技术有限公司 | A display processing method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170091521A1 (en)* | 2015-09-30 | 2017-03-30 | Synaptics Incorporated | Secure visual feedback for fingerprint sensing |
| CN106599858A (en)* | 2016-12-20 | 2017-04-26 | 北京小米移动软件有限公司 | Fingerprint recognition method and device and electronic equipment |
| CN108701043A (en)* | 2017-06-05 | 2018-10-23 | 华为技术有限公司 | A display processing method and device |
| CN108108977A (en)* | 2017-12-28 | 2018-06-01 | 广州品唯软件有限公司 | Fingerprint method of payment, device, system and storage medium |
| CN108460352A (en)* | 2018-02-28 | 2018-08-28 | 北京小米移动软件有限公司 | The method and apparatus of fingerprint detection |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110838196A (en)* | 2019-11-11 | 2020-02-25 | 珠海格力电器股份有限公司 | Intelligent door lock control method, intelligent door lock control system and intelligent door lock |
| CN110851811A (en)* | 2019-11-15 | 2020-02-28 | 美的集团股份有限公司 | Method and device for preventing misoperation of equipment |
| CN110851811B (en)* | 2019-11-15 | 2022-02-15 | 美的集团股份有限公司 | Method and device for preventing misoperation of equipment |
| US20230162524A1 (en)* | 2020-07-30 | 2023-05-25 | Japan Display Inc. | Detection device, display device, detection system, and detection method |
| US11928881B2 (en)* | 2020-07-30 | 2024-03-12 | Japan Display Inc. | Detection device, display device, detection system, and detection method |
| CN114511947A (en)* | 2020-10-23 | 2022-05-17 | 深圳绿米联创科技有限公司 | Fingerprint entry method, smart door lock, mobile terminal and storage medium |
| CN112381007A (en)* | 2020-11-17 | 2021-02-19 | 惠州Tcl移动通信有限公司 | Fingerprint information acquisition method and device, storage medium and terminal |
| CN112381007B (en)* | 2020-11-17 | 2024-11-22 | 池州市谦跃信息技术有限公司 | Fingerprint information acquisition method, device, storage medium and terminal |
| Publication | Publication Date | Title |
|---|---|---|
| US10969903B2 (en) | Method, device and mobile terminal for preventing false-touch on touch screen | |
| CN109241957B (en) | Electronic device, fingerprint collection method, device, storage medium and mobile terminal | |
| CN106598335B (en) | A kind of touch screen control method, device and mobile terminal of mobile terminal | |
| CN107422915B (en) | Response control method, device, storage medium and terminal of touch screen | |
| CN106855782B (en) | A method, device and terminal for preventing accidental touch | |
| CN109582416A (en) | Fingerprint acquisition method and device, storage medium and electronic equipment | |
| CN106775087B (en) | A touch screen control method, device and mobile terminal of a mobile terminal | |
| CN107257949B (en) | Touch processing method and electronic device supporting the same | |
| TWI531926B (en) | System and method of anti-misoperation | |
| US8953853B2 (en) | Sensing characteristics of adjacent fingers for user authentication | |
| CN109074171B (en) | Input method and electronic device | |
| CN106681635B (en) | A split-screen anti-mistouch method, device and mobile terminal | |
| CN108875643B (en) | Fingerprint module, fingerprint identification method, device, storage medium and mobile terminal | |
| WO2018107849A1 (en) | Method for controlling touch operation on mobile terminal, and related product | |
| CN107316033A (en) | Fingerprint identification method, device and storage medium for mobile terminal, and mobile terminal | |
| CN106708263A (en) | Method, device and mobile terminal for preventing false touch of touch screen | |
| JP2019128961A (en) | Method for recognizing fingerprint, and electronic device, and storage medium | |
| CN106775407A (en) | Method and device for controlling touch screen of mobile terminal and mobile terminal | |
| CN106598249A (en) | A method, device and mobile terminal for preventing false touch of a touch button | |
| WO2019136757A1 (en) | Pressing detection method and apparatus for fingerprint recognition system, and terminal device | |
| CN106681636B (en) | Method and device for preventing false touch and mobile terminal | |
| WO2019136759A1 (en) | Press detection method and device for fingerprint identification system and terminal device | |
| CN107357458B (en) | Response method, device, storage medium and mobile terminal for touch key | |
| CN110869929A (en) | Earphone with fingerprint authentication | |
| CN110427741A (en) | Fingerprint identification method and Related product |
| 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 | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20190405 | |
| RJ01 | Rejection of invention patent application after publication |