WO2017067288A1 - Fingerprint recognition method and apparatus, and mobile terminal - Google Patents

Fingerprint recognition method and apparatus, and mobile terminal Download PDF

Info

Publication number
WO2017067288A1
WO2017067288A1 PCT/CN2016/093747 CN2016093747W WO2017067288A1 WO 2017067288 A1 WO2017067288 A1 WO 2017067288A1 CN 2016093747 W CN2016093747 W CN 2016093747W WO 2017067288 A1 WO2017067288 A1 WO 2017067288A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
row
acquired
fingerprint sensor
pixels
Prior art date
Application number
PCT/CN2016/093747
Other languages
French (fr)
Chinese (zh)
Inventor
张强
王立中
周海涛
蒋奎
贺威
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017067288A1 publication Critical patent/WO2017067288A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1365Matching; Classification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials

Abstract

Disclosed are a fingerprint recognition method and apparatus, and a mobile terminal, the method comprising: using a fingerprint sensor to acquire an image; calculating the number of pixel points in each row in a pre-set area of the acquired image; on the basis of the number of pixel points in each row, determining whether the acquired image comprises a valid image, and if so, then comparing the acquired valid image with a template image.

Description

一种指纹的识别方法、装置以及移动终端 Fingerprint identification method, device and mobile terminal
本申请要求于2015年10月19日提交中国专利局、申请号为201510681120.7、发明名称为“一种指纹解锁的方法、装置和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201510681120.7, entitled "A Method, Apparatus and Terminal for Fingerprint Unlocking", which is filed on October 19, 2015, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明实施例涉及指纹智能识别技术领域,尤其涉及一种指纹的识别方法、装置以及移动终端。The embodiments of the present invention relate to the field of fingerprint intelligent identification technologies, and in particular, to a fingerprint identification method and device, and a mobile terminal.
背景技术Background technique
由于指纹具有终身不变性、唯一性和方便性,已经被广泛应用于身份识别,特别地,其常被应用在移动终端中作为密码(例如移动终端的开机密码和淘宝的支付密码)来使用,以保证用户的隐私甚至是财产安全。在使用指纹作为密码时,用户需要将手指放置在移动终端配置的指纹传感器上,指纹传感器检测用户的指纹,得到指纹图像,再将指纹图像与模板图像进行匹配。如果匹配成功,则识别成功,即:密码正确;如果匹配不成功,则识别失败,即:密码错误。Since fingerprints have lifetime invariance, uniqueness, and convenience, they have been widely used for identification. In particular, they are often used in mobile terminals as passwords (such as mobile terminal power-on passwords and Taobao payment passwords). To ensure the privacy of users and even property security. When using the fingerprint as the password, the user needs to place the finger on the fingerprint sensor configured by the mobile terminal, the fingerprint sensor detects the fingerprint of the user, obtains the fingerprint image, and then matches the fingerprint image with the template image. If the match is successful, the recognition is successful, that is, the password is correct; if the match is unsuccessful, the recognition fails, that is, the password is incorrect.
由于指纹传感器比较灵敏,当手指还未稳定地贴合在指纹传感器上(特别地,对于习惯从上向下或者从下向上来移动手指,以将手指贴合在指纹传感器上的用户),或者指纹传感器贴近用户的其它皮肤部分甚至是移动终端放置在口袋中时,指纹传感器会对手指或者用户的其它皮肤部分甚至口袋进行检测,得到图像。由于上述方法中,只要指纹传感器得到图像就触发匹配的动作,因此,上述方法中无论指纹传感器得到的是否是指纹的完整图像或者指纹的图像都会将该图像与模板图像进行对比,当指纹传感器识别的是指纹的不完整图像时,用户需要将手指从指纹传感器中拿开再放下以重新识别指纹图像,这给用户带来了不便;当指纹传感器识别的不是指纹的图像时,会浪费移动终端的资源。Since the fingerprint sensor is relatively sensitive, when the finger has not been stably attached to the fingerprint sensor (in particular, for a user who is used to move the finger from top to bottom or from bottom to top to attach the finger to the fingerprint sensor), or When the fingerprint sensor is close to other skin parts of the user or even when the mobile terminal is placed in the pocket, the fingerprint sensor detects the finger or other skin parts or even pockets of the user to obtain an image. In the above method, as long as the fingerprint sensor obtains an image, a matching action is triggered. Therefore, whether the fingerprint sensor obtains a complete image of the fingerprint or an image of the fingerprint compares the image with the template image, when the fingerprint sensor recognizes When the fingerprint is incomplete, the user needs to remove the finger from the fingerprint sensor and then put it down to re-recognize the fingerprint image, which brings inconvenience to the user; when the fingerprint sensor recognizes the image that is not the fingerprint, the mobile terminal is wasted. resource of.
技术问题technical problem
本发明实施例提供指纹的识别方法、装置以及移动终端,以解决现有的指纹识别方案给用户带来不便且浪费移动终端资源的问题。The embodiment of the invention provides a method and a device for identifying a fingerprint and a mobile terminal, so as to solve the problem that the existing fingerprint identification scheme brings inconvenience to the user and wastes the resource of the mobile terminal.
技术解决方案Technical solution
第一方面,本发明实施例提供了一种指纹的识别方法,包括:In a first aspect, an embodiment of the present invention provides a fingerprint identification method, including:
利用指纹传感器获取图像;Acquiring images using a fingerprint sensor;
计算获取的图像的预设区域内的每行的像素点的数量;Calculating the number of pixels of each row in the preset area of the acquired image;
根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。Determining whether the acquired image contains a valid image according to the number of pixels of each row, and if so, comparing the acquired valid image with the template image.
第二方面,本发明实施例还提供了一种指纹的识别装置,包括:In a second aspect, the embodiment of the present invention further provides a fingerprint identification device, including:
图像获取模块,用于利用指纹传感器获取图像;An image acquisition module, configured to acquire an image by using a fingerprint sensor;
像素点数量计算模块,用于计算获取的图像的预设区域内的每行的像素点的数量;a pixel number calculation module, configured to calculate a number of pixels of each row in a preset area of the acquired image;
判断模块,用于根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。The determining module is configured to determine, according to the number of pixels of each row, whether the acquired image includes a valid image, and if yes, compare the acquired valid image with the template image.
第三方面,本发明实施例还提供了一种移动终端,其包括指纹传感器、以及与所述指纹传感器连接的指纹的识别装置;In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a fingerprint sensor, and a fingerprint identifying device connected to the fingerprint sensor;
所述指纹的识别装置包括:The fingerprint identification device includes:
图像获取模块,用于利用指纹传感器获取图像;An image acquisition module, configured to acquire an image by using a fingerprint sensor;
像素点数量计算模块,用于计算获取的图像的预设区域内的每行的像素点的数量;a pixel number calculation module, configured to calculate a number of pixels of each row in a preset area of the acquired image;
判断模块,用于根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。The determining module is configured to determine, according to the number of pixels of each row, whether the acquired image includes a valid image, and if yes, compare the acquired valid image with the template image.
有益效果 Beneficial effect
本发明实施例提供的指纹的识别方法、装置以及移动终端,计算利用指纹传感器获取的图像的预设区域内的每行的像素点的数量,并根据每行的像素点的数量判断获取的图像是否包含有效图像,如果是,则将获取的有效图像与模板图像进行对比。经由上述方案,在指纹传感器获取图像之后,不直接将获取的图像与模板图像进行对比,而是先判断获取的图像是否包含有效图像,只有当获取的图像包含有效图像时,才会将获取的有效图像与模板图像进行对比,从而避免了指纹传感器获取的不是指纹的完整图像导致的指纹识别失败,从而给用户带来不便的问题;也避免了指纹传感器获取的不是指纹的图像导致的移动终端资源浪费的问题,进而能够给用户带来便利且节约资源。The method and device for identifying a fingerprint and the mobile terminal provided by the embodiment of the present invention calculate the number of pixels in each row in the preset area of the image acquired by the fingerprint sensor, and determine the acquired image according to the number of pixels in each row. Whether to include a valid image, and if so, compare the obtained valid image with the template image. After the image sensor acquires the image, the acquired image is not directly compared with the template image, but the acquired image is first determined to contain a valid image, and the acquired image will only be acquired when the acquired image contains a valid image. The effective image is compared with the template image, thereby avoiding the fingerprint recognition failure caused by the fingerprint sensor not being the complete image of the fingerprint, thereby causing inconvenience to the user; and avoiding the mobile terminal caused by the fingerprint sensor not acquiring the image of the fingerprint The problem of wasted resources can bring convenience to users and save resources.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例一提供的指纹的识别方法的流程示意图。1 is a schematic flow chart of a fingerprint identification method according to Embodiment 1 of the present invention.
图2是本发明实施例二提供的指纹的识别方法的流程示意图。FIG. 2 is a schematic flowchart diagram of a fingerprint identification method according to Embodiment 2 of the present invention.
图3是本发明实施例三提供的指纹的识别方法的流程示意图。FIG. 3 is a schematic flowchart of a fingerprint identification method according to Embodiment 3 of the present invention.
图4是本发明实施例四提供的指纹的识别方法的流程示意图。4 is a schematic flow chart of a fingerprint identification method according to Embodiment 4 of the present invention.
图5是本发明实施例五提供的指纹的识别方法的流程示意图。FIG. 5 is a schematic flowchart of a fingerprint identification method according to Embodiment 5 of the present invention.
图6是本发明实施例六提供的指纹的识别装置的结构示意图。FIG. 6 is a schematic structural diagram of a fingerprint identification apparatus according to Embodiment 6 of the present invention.
图7是本发明一优选实施例中的移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a mobile terminal in a preferred embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should also be noted that, for ease of description, only some, but not all, of the structures related to the present invention are shown in the drawings.
本发明提供一种指纹的识别方法,其包括:The invention provides a fingerprint identification method, which comprises:
利用指纹传感器获取图像;Acquiring images using a fingerprint sensor;
计算获取的图像的预设区域内的每行的像素点的数量;Calculating the number of pixels of each row in the preset area of the acquired image;
根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。Determining whether the acquired image contains a valid image according to the number of pixels of each row, and if so, comparing the acquired valid image with the template image.
一些实施例中,根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像包括:In some embodiments, determining whether the acquired image includes a valid image according to the number of pixels of each row includes:
判断所述每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则所述获取的图像包含有效图像。Determining whether the number of pixels of each row is greater than or equal to a first preset value corresponding to the corresponding row, and if so, the acquired image includes a valid image.
一些实施例中,利用指纹传感器获取图像包括:In some embodiments, acquiring the image using the fingerprint sensor comprises:
利用所述指纹传感器每间隔第一预设时间段获取一次图像,Acquiring an image once every first preset time period by using the fingerprint sensor,
计算获取的图像的预设区域内的每行的像素点的数量包括:Calculating the number of pixels of each row in the preset area of the acquired image includes:
计算每个时刻所述指纹传感器获取的图像的预设区域内的每行的像素点的数量。The number of pixels of each row in the preset area of the image acquired by the fingerprint sensor at each moment is calculated.
一些实施例中,根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像包括:In some embodiments, determining whether the acquired image includes a valid image according to the number of pixels of each row includes:
确定每个时刻所述指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值;Determining, in each time, the value of N in the image acquired by the fingerprint sensor, where the number of the pixels in the first row to the Nth row is less than or equal to the second preset value corresponding to the corresponding row;
计算第二预设时间段内N的变化值,其中,所述第二预设时间段大于所述第一预设时间段;Calculating a change value of N in the second preset time period, where the second preset time period is greater than the first preset time period;
判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像。It is judged whether the change value of N is less than or equal to the third preset value, and if so, it is determined that the image acquired at the last moment is a valid image.
一些实施例中,根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像包括:In some embodiments, determining whether the acquired image includes a valid image according to the number of pixels of each row includes:
确定每个时刻所述指纹传感器获取的图像中的M的值,其中,第M行至最后一行的像素点的数量均等于或大于相应行对应的第四预设值;Determining, in each time, the value of M in the image acquired by the fingerprint sensor, wherein the number of the pixels in the Mth row to the last row is equal to or greater than a fourth preset value corresponding to the corresponding row;
计算第三预设时间段内M的变化值,其中,所述第三预设时间段大于所述第一预设时间段;Calculating a change value of M in the third preset time period, wherein the third preset time period is greater than the first preset time period;
判断M的变化值是否小于或等于第五预设值,如果是,则最后时刻获取的图像为有效图像。It is judged whether the change value of M is less than or equal to the fifth preset value, and if so, the image acquired at the last moment is a valid image.
一些实施例中,利用指纹传感器获取图像之前,所述方法还包括:In some embodiments, before the image is acquired by using the fingerprint sensor, the method further includes:
判断所述指纹传感器是否被按压,如果是,则利用指纹传感器获取图像。It is judged whether the fingerprint sensor is pressed, and if so, an image is acquired using the fingerprint sensor.
一些实施例中,根据每行的像素点的数量判断所述获取的图像是否包含有效图像之后,所述方法还包括:In some embodiments, after determining whether the acquired image includes a valid image according to the number of pixels in each row, the method further includes:
如果否,则利用所述指纹传感器重新获取图像。If not, the image is retrieved again using the fingerprint sensor.
一些实施例中,所述预设区域为所述获取的图像的整个区域或所述获取的图像的边缘区域。In some embodiments, the preset area is an entire area of the acquired image or an edge area of the acquired image.
本发明提供了一种指纹的识别装置,其包括:The invention provides a fingerprint identification device, which comprises:
图像获取模块,用于利用指纹传感器获取图像;An image acquisition module, configured to acquire an image by using a fingerprint sensor;
像素点数量计算模块,用于计算获取的图像的预设区域内的每行的像素点的数量;a pixel number calculation module, configured to calculate a number of pixels of each row in a preset area of the acquired image;
判断模块,用于根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。The determining module is configured to determine, according to the number of pixels of each row, whether the acquired image includes a valid image, and if yes, compare the acquired valid image with the template image.
一些实施例中,其中所述判断模块包括:In some embodiments, wherein the determining module comprises:
第一判断单元,用于判断所述每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则所述获取的图像包含有效图像。The first determining unit is configured to determine whether the number of pixels of each row is greater than or equal to a first preset value corresponding to the corresponding row, and if yes, the acquired image includes a valid image.
一些实施例中,其中所述图像获取模块包括:In some embodiments, wherein the image acquisition module comprises:
图像获取单元,用于利用所述指纹传感器每间隔第一预设时间段获取一次图像,An image acquisition unit, configured to acquire an image by using the fingerprint sensor every first preset time period,
所述像素点数量计算模块包括:The pixel number calculation module includes:
像素点数量计算单元,用于计算每个时刻所述指纹传感器获取的图像的预设区域内的每行的像素点的数量。The pixel number calculation unit is configured to calculate the number of pixel points of each row in the preset area of the image acquired by the fingerprint sensor at each moment.
一些实施例中,所述判断模块包括:In some embodiments, the determining module comprises:
第一确定单元,用于确定每个时刻所述指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值;a first determining unit, configured to determine a value of N in the image acquired by the fingerprint sensor at each moment, where the number of the pixels in the first row to the Nth row is less than or equal to the second preset corresponding to the corresponding row value;
第一计算单元,用于计算第二预设时间段内N的变化值,其中,所述第二预设时间段大于所述第一预设时间段;a first calculating unit, configured to calculate a change value of N in the second preset time period, where the second preset time period is greater than the first preset time period;
第二判断单元,用于判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像。The second determining unit is configured to determine whether the change value of N is less than or equal to the third preset value, and if yes, determine that the image acquired at the last moment is a valid image.
一些实施例中,所述判断模块包括:In some embodiments, the determining module comprises:
第二确定单元,用于确定每个时刻所述指纹传感器获取的图像中的M的值,其中,第M行至最后一行的像素点的数量均等于或大于相应行对应的第四预设值;a second determining unit, configured to determine a value of M in the image acquired by the fingerprint sensor at each moment, wherein the number of the pixels in the Mth row to the last row is equal to or greater than a fourth preset value corresponding to the corresponding row ;
第二计算单元,用于计算第三预设时间段内M的变化值,其中,所述第三预设时间段大于所述第一预设时间段;a second calculating unit, configured to calculate a change value of M in the third preset time period, where the third preset time period is greater than the first preset time period;
第三判断单元,用于判断M的变化值是否小于或等于第五预设值,如果是,则最后时刻获取的图像为有效图像。The third determining unit is configured to determine whether the change value of M is less than or equal to the fifth preset value, and if yes, the image acquired at the last moment is a valid image.
一些实施例中,还包括:In some embodiments, the method further includes:
按压判断模块,用于判断所述指纹传感器是否被按压,如果是,则利用指纹传感器获取图像。Pressing a determination module for determining whether the fingerprint sensor is pressed, and if so, acquiring an image using the fingerprint sensor.
一些实施例中,所述判断模块还用于如果否,则利用所述指纹传感器重新获取图像。In some embodiments, the determining module is further configured to reacquire the image using the fingerprint sensor if no.
一些实施例中,所述预设区域为所述获取的图像的整个区域或所述获取的图像的边缘区域。In some embodiments, the preset area is an entire area of the acquired image or an edge area of the acquired image.
本发明还提供了一种移动终端,其包括:指纹传感器、以及与所述指纹传感器连接的指纹的识别装置;The present invention also provides a mobile terminal, comprising: a fingerprint sensor, and an identification device of a fingerprint connected to the fingerprint sensor;
所述指纹的识别装置包括:The fingerprint identification device includes:
图像获取模块,用于利用指纹传感器获取图像;An image acquisition module, configured to acquire an image by using a fingerprint sensor;
像素点数量计算模块,用于计算获取的图像的预设区域内的每行的像素点的数量;a pixel number calculation module, configured to calculate a number of pixels of each row in a preset area of the acquired image;
判断模块,用于根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。The determining module is configured to determine, according to the number of pixels of each row, whether the acquired image includes a valid image, and if yes, compare the acquired valid image with the template image.
一些实施例中,所述判断模块包括:In some embodiments, the determining module comprises:
第一判断单元,用于判断所述每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则所述获取的图像包含有效图像。The first determining unit is configured to determine whether the number of pixels of each row is greater than or equal to a first preset value corresponding to the corresponding row, and if yes, the acquired image includes a valid image.
一些实施例中,所述图像获取模块包括:In some embodiments, the image acquisition module includes:
图像获取单元,用于利用所述指纹传感器每间隔第一预设时间段获取一次图像,An image acquisition unit, configured to acquire an image by using the fingerprint sensor every first preset time period,
所述像素点数量计算模块包括:The pixel number calculation module includes:
像素点数量计算单元,用于计算每个时刻所述指纹传感器获取的图像的预设区域内的每行的像素点的数量。The pixel number calculation unit is configured to calculate the number of pixel points of each row in the preset area of the image acquired by the fingerprint sensor at each moment.
一些实施例中,所述判断模块包括:In some embodiments, the determining module comprises:
第一确定单元,用于确定每个时刻所述指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值;a first determining unit, configured to determine a value of N in the image acquired by the fingerprint sensor at each moment, where the number of the pixels in the first row to the Nth row is less than or equal to the second preset corresponding to the corresponding row value;
第一计算单元,用于计算第二预设时间段内N的变化值,其中,所述第二预设时间段大于所述第一预设时间段;a first calculating unit, configured to calculate a change value of N in the second preset time period, where the second preset time period is greater than the first preset time period;
第二判断单元,用于判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像。The second determining unit is configured to determine whether the change value of N is less than or equal to the third preset value, and if yes, determine that the image acquired at the last moment is a valid image.
实施例一Embodiment 1
图1是本发明实施例一提供的指纹的识别方法的流程示意图,该方法可以由指纹的识别装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1所示,该方法包括:1 is a schematic flowchart of a fingerprint identification method according to Embodiment 1 of the present invention. The method may be implemented by a fingerprint identification device, where the device may be implemented by software and/or hardware, and may be integrated into a mobile terminal. As shown in Figure 1, the method includes:
步骤101、利用指纹传感器获取图像。Step 101: Acquire an image by using a fingerprint sensor.
由于集成在移动终端中的指纹传感器比较灵敏,当用户将手指的部分区域放置在指纹传感器上或者将移动终端放置在口袋中时,指纹传感器也会对部分手指或者口袋的衣服进行检测,实现获取图像,因此,上述获取的图像不仅仅是指纹的全部图像,还可能是指纹的部分图像,甚至是衣服纹理的图像。Since the fingerprint sensor integrated in the mobile terminal is relatively sensitive, when the user places a partial area of the finger on the fingerprint sensor or places the mobile terminal in the pocket, the fingerprint sensor also detects the clothes of some fingers or pockets to obtain the acquisition. The image, therefore, the image obtained above is not only the entire image of the fingerprint, but also a partial image of the fingerprint, or even an image of the clothing texture.
步骤102、计算获取的图像的预设区域内的每行的像素点的数量。Step 102: Calculate the number of pixels of each row in the preset area of the acquired image.
预设区域可以是获取的图像的整个区域,也可以是获取的图像的部分区域。由于用户将手指放置在指纹传感器上时,手指边缘的部分不能够与指纹传感器很好地接触,因此,指纹传感器获取的图像的边缘区域是最容易出现误差的区域,故,预设区域还可以是获取的图像的边缘区域。The preset area may be the entire area of the acquired image or a partial area of the acquired image. Since the user can place a finger on the fingerprint sensor, the portion of the edge of the finger cannot be in good contact with the fingerprint sensor. Therefore, the edge region of the image acquired by the fingerprint sensor is the region most prone to error, so the preset region can also be Is the edge area of the acquired image.
步骤103、根据每行的像素点的数量判断获取的图像是否包含有效图像,如果是,则将获取的有效图像与模板图像进行对比。Step 103: Determine whether the acquired image contains a valid image according to the number of pixels in each row, and if yes, compare the obtained valid image with the template image.
根据上述得到的获取的图像的预设区域内的每行的像素点的数量判断获取的图像是否包括有效图像,只有当获取的图像包括有效图像时,才会将获取的有效图像与模板图像进行对比。Determining whether the acquired image includes a valid image according to the number of pixels of each row in the preset area of the acquired image obtained above, and only if the acquired image includes a valid image, the acquired effective image and the template image are performed. Compared.
经由上述方案,在指纹传感器获取图像之后,不直接将获取的图像与模板图像进行对比,而是计算利用指纹传感器获取的图像的预设区域内的每行的像素点的数量,并根据每行的像素点的数量判断获取的图像是否包含有效图像,只有当获取的图像包含有效图像时,才会将获取的有效图像与模板图像进行对比,从而避免了指纹传感器获取的不是指纹的完整图像导致的指纹识别失败,从而给用户带来不便的问题;也避免了指纹传感器获取的不是指纹的图像导致的移动终端资源浪费的问题,进而能够给用户带来便利且节约资源。Through the above solution, after the fingerprint sensor acquires the image, the acquired image is not directly compared with the template image, but the number of pixels of each row in the preset region of the image acquired by the fingerprint sensor is calculated, and according to each row The number of pixels determines whether the acquired image contains a valid image. Only when the acquired image contains a valid image, the obtained effective image is compared with the template image, thereby avoiding the complete image obtained by the fingerprint sensor not being the fingerprint. The fingerprint recognition fails, which causes inconvenience to the user; and the problem that the fingerprint sensor acquires the image of the mobile terminal that is not the image of the fingerprint is avoided, thereby facilitating the user and saving resources.
在上述方案的基础之上,步骤101、利用指纹传感器获取图像之前,该方法还可以包括:判断指纹传感器是否被按压,如果是,则利用指纹传感器获取图像。Based on the above solution, before the step 101, using the fingerprint sensor to acquire an image, the method may further include: determining whether the fingerprint sensor is pressed, and if yes, acquiring the image by using the fingerprint sensor.
经由上述方案,只有在指纹传感器受到按压时,才会获取图像,即:获取图像的动作是指纹传感器受到按压后触发的,此种触发方式能够减少指纹传感器误获取图像(即:在不需要获取图像的时候获取图像)的几率,从而能够减少移动终端资源的浪费。Through the above solution, the image is acquired only when the fingerprint sensor is pressed, that is, the action of acquiring the image is triggered after the fingerprint sensor is pressed, and the triggering manner can reduce the fingerprint sensor from erroneously acquiring the image (ie: no need to acquire The probability of acquiring an image when the image is taken, thereby reducing waste of mobile terminal resources.
实施例二Embodiment 2
图2是本发明实施例二提供的指纹的识别方法的流程示意图,本实施例二以上述实施例一为基础进行优化,在本实施例二中,将步骤103中的根据每行的像素点的数量判断获取的图像是否包含有效图像优化为:判断每行的像素点的数量是否大于或等于相应行对应的第一预设值。如图2所示,该方法包括:2 is a schematic flowchart of a method for identifying a fingerprint according to a second embodiment of the present invention. The second embodiment is optimized based on the foregoing embodiment 1. In the second embodiment, the pixel according to each line in step 103 is used. The number of the judged whether the acquired image contains a valid image is optimized to determine whether the number of pixels of each line is greater than or equal to the first preset value corresponding to the corresponding row. As shown in Figure 2, the method includes:
步骤201、利用指纹传感器获取图像。Step 201: Acquire an image by using a fingerprint sensor.
步骤202、计算获取的图像的预设区域内的每行的像素点的数量。Step 202: Calculate the number of pixels of each row in the preset area of the acquired image.
步骤203、判断每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则获取的图像包含有效图像,并将获取的有效图像与模板图像进行对比。Step 203: Determine whether the number of pixels in each row is greater than or equal to a first preset value corresponding to the corresponding row. If yes, the acquired image includes a valid image, and compare the obtained valid image with the template image.
将上述计算得到的获取的图像的预设区域内的每行的像素点的数量与相应行对应的第一预设值进行比较,如果每行的像素点的数量大于或等于相应行对应的第一预设值,则获取的图像包含有效图像,此时,将获取的有效图像与模板图像进行对比。Comparing the number of pixels of each row in the preset area of the obtained image obtained by the above calculation with the first preset value corresponding to the corresponding row, if the number of the pixels of each row is greater than or equal to the corresponding row A preset value, the acquired image contains a valid image, and at this time, the obtained valid image is compared with the template image.
每行对应的第一预设值可以相同,也可以不相同,由于手指的不同区域的指纹不相同,因此,每行对应的第一预设值优选为不相同,另外:每行对应的第一预设值可以部分相同,部分不相同。由于用户将手指放置在指纹传感器上时,手指边缘的部分不能够与指纹传感器很好地接触(即获取的图像的边缘区域的像素点的数量较少),因此,每行对应的第一预设值的关系优选为:获取的图像的边缘区域的每行对应的第一预设值均小于除边缘区域之外的剩余区域的每行对应的第一预设值。The first preset value corresponding to each row may be the same or different. Since the fingerprints of different regions of the finger are not the same, the first preset value corresponding to each row is preferably different, and the corresponding number of each row is different. A preset value may be partially the same and partially different. Since the user places a finger on the fingerprint sensor, the portion of the edge of the finger cannot be in good contact with the fingerprint sensor (ie, the number of pixels in the edge region of the acquired image is small), and therefore, the first pre-corresponding to each row The relationship of the values is preferably that the first preset value corresponding to each row of the edge regions of the acquired image is smaller than the first preset value corresponding to each row of the remaining regions except the edge region.
在实施例一的基础上,经由上述方案,只有获取的图像的预设区域内的每行的像素点的数量大于或等于相应行对应的第一预设值时,获取的图像才包含有效图像,才会将获取的有效图像与模板图像进行对比。保证了获取的图像的预设区域内的每行的像素点的数量达到一定的数量,进而能够更好地保证获取的图像包含有效图像。On the basis of the first embodiment, the obtained image includes the valid image only when the number of pixels in each row in the preset area of the acquired image is greater than or equal to the first preset value corresponding to the corresponding row. The valid image obtained will be compared with the template image. It is ensured that the number of pixels in each row in the preset area of the acquired image reaches a certain number, thereby further ensuring that the acquired image contains a valid image.
可以理解的是,上述判断获取的图像是否包含有效图像是通过判断获取的图像的预设区域的每行的像素点的数量是否大于或等于相应行对应的第一预设值来实现的,还可以通过判断获取的图像的预设区域的部分行的像素点的数量是否大于或等于相应行对应的第一预设值来实现。It can be understood that whether the image obtained by the foregoing determination includes the effective image is implemented by determining whether the number of pixels of each row of the preset region of the acquired image is greater than or equal to a first preset value corresponding to the corresponding row, and The method can be implemented by determining whether the number of pixel points of the partial row of the preset area of the acquired image is greater than or equal to the first preset value corresponding to the corresponding row.
实施例三Embodiment 3
图3是本发明实施例三提供的指纹的识别方法的流程示意图,本实施例三以上述实施例一为基础进行优化,在本实施例三中,将步骤101中的获取图像优选为:连续地获取图像;步骤103中的根据每行的像素点的数量判断获取的图像是否包含有效图像优化为:判断每个时刻获取的图像是否包含有效图像。如图3所示,该方法包括:3 is a schematic flowchart of a fingerprint identification method according to Embodiment 3 of the present invention. The third embodiment is optimized based on the foregoing embodiment 1. In the third embodiment, the acquired image in step 101 is preferably: continuous. Obtaining an image; determining whether the acquired image contains a valid image according to the number of pixels of each row in step 103 is optimized to determine whether the image acquired at each moment contains a valid image. As shown in FIG. 3, the method includes:
步骤301、利用指纹传感器每间隔第一预设时间段获取一次图像。Step 301: Acquire an image once every first preset time period by using the fingerprint sensor.
每间隔第一预设时间段,利用指纹传感器获取一次图像,实现连续地获取图像。Each time interval is separated by a first time period, an image is acquired by using a fingerprint sensor to continuously acquire an image.
步骤302、计算每个时刻指纹传感器获取的图像的预设区域内的每行的像素点的数量。Step 302: Calculate the number of pixels of each row in the preset area of the image acquired by the fingerprint sensor at each moment.
计算每个时刻获取的图像的预设区域内的每行的像素点的数量,即:每获取一次图像,就计算一次获取的图像的预设区域内的每行的像素点的数量,实现计算每个获取的图像的预设区域内的每行的像素点的数量。Calculating the number of pixels in each row in the preset area of the image acquired at each moment, that is, calculating the number of pixels in each row in the preset area of the acquired image once each time the image is acquired, and calculating The number of pixels per line within the preset area of each acquired image.
步骤303、确定每个时刻指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值。Step 303: Determine a value of N in the image acquired by the fingerprint sensor at each moment, where the number of the pixel points in the first row to the Nth row is less than or equal to the second preset value corresponding to the corresponding row.
根据上述计算得到的每个时刻获取的图像的预设区域内的每行的像素点的数量确定每个时刻获取的图像中的N的值,实现确定每个获取的图像中的N的值。The value of N in each acquired image is determined according to the number of pixels of each row in the preset region of the image acquired at each time obtained as described above, and the value of N in each acquired image is determined.
第一行可以是获取的图像最上面的行,也可以是获取的图像最下面的行。The first line can be the top line of the acquired image, or the bottom line of the acquired image.
每行对应的第二预设值可以相同,也可以不相同,由于手指的不同区域的指纹不相同,因此,每行对应的第二预设值优选为不相同,另外:每行对应的第二预设值可以部分相同,部分不相同。由于用户将手指放置在指纹传感器上时,手指边缘的部分不能够与指纹传感器很好地接触(即获取的图像的边缘区域的像素点的数量较少),因此,每行对应的第二预设值的关系优选为:获取的图像的边缘区域的每行对应的第二预设值均小于除边缘区域之外的剩余区域的每行对应的第二预设值。The second preset value corresponding to each row may be the same or different. Since the fingerprints of different regions of the finger are not the same, the second preset value corresponding to each row is preferably different, and the corresponding number of each row The two preset values may be partially the same and the parts are different. Since the user places a finger on the fingerprint sensor, the portion of the edge of the finger cannot be in good contact with the fingerprint sensor (ie, the number of pixels in the edge region of the acquired image is small), and therefore, the second pre-corresponding to each row The relationship of the values is preferably that the second preset value corresponding to each row of the edge regions of the acquired image is smaller than the second preset value corresponding to each row of the remaining regions except the edge region.
步骤304、计算第二预设时间段内N的变化值,其中,第二预设时间段大于所述第一预设时间段。Step 304: Calculate a change value of N in the second preset time period, where the second preset time period is greater than the first preset time period.
根据上述确定的每个时刻获取的图像中的N的值,计算第二预设时间段内N的变化值。The change value of N in the second preset time period is calculated according to the value of N in the image acquired at each moment determined above.
可以理解的是,要想得到一定时间段内的N的变化值,则需要在该段时间内有至少两个N值,即:需要在该段时间内有至少两个获取的图像,因此,只有第二预设时间段大于第一预设时间段时,第二预设时间段内获取的图像的个数才会等于或大于两个。It can be understood that in order to obtain the change value of N in a certain period of time, it is necessary to have at least two N values in the period of time, that is, there are at least two acquired images in the period of time, therefore, only When the second preset time period is greater than the first preset time period, the number of images acquired in the second preset time period is equal to or greater than two.
步骤305、判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像,并将获取的有效图像与模板图像进行比较。Step 305: Determine whether the change value of N is less than or equal to the third preset value. If yes, determine that the image acquired at the last moment is a valid image, and compare the obtained valid image with the template image.
将上述得到的N的变化值与第三预设值进行比较,如果N的变化值小于或等于第三预设值,则确定最后时刻获取的图像为有效图像。The change value of N obtained above is compared with a third preset value. If the change value of N is less than or equal to the third preset value, it is determined that the image acquired at the last moment is a valid image.
可以理解的是,由于已经得到了想要的有效图像,并将获取的有效图像与模板图像进行对比,因此,在将获取的图像与模板图像进行对比之后,指纹传感器会停止获取图像。It can be understood that since the desired effective image has been obtained and the acquired effective image is compared with the template image, the fingerprint sensor stops acquiring the image after comparing the acquired image with the template image.
对于背触式的指纹传感器(即:指纹传感器位于移动终端的背面),用户在使用时,习惯将手指从指纹传感器的下方向上移动来实现将手指放置在指纹传感器上,因此,在用户未将手指完全放置在指纹传感器上时,指纹传感器获取的图像中的下方区域的像素点的数量较多,上方区域的像素点的数量较少,此外,在用户移动手指的过程中,像素点数量较多的下方区域的面积越来越大;像素点数量较少的上方区域的面积越来越小,当用户将手指完全放置在指纹传感器上并停止移动时,像素点数量较多的下方区域面积的变化量和像素点数量较少的上方区域面积的变化量几乎为0。上述方案中,当获取的图像最上面的行是第一行时,由于第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值,因此,在获取图像的过程中,获取的图像的下方区域的像素点的数量较多,上方区域的像素点的数量较少;如果第二预设时间段内N的变化值小于或等于第三预设值,则说明像素点数量较多的下方区域面积的变化量和像素点数量较少的上方区域面积的变化量均较小,此时,获取的图像较稳定,是指纹的完整图像(即:有效图像)。因此,本发明实施例三提供的指纹的识别方法适应于背触式的指纹传感器。For the back touch type fingerprint sensor (ie, the fingerprint sensor is located on the back side of the mobile terminal), the user is accustomed to moving the finger upward from the lower side of the fingerprint sensor to realize placing the finger on the fingerprint sensor, so that the user does not When the finger is completely placed on the fingerprint sensor, the number of pixels in the lower area in the image acquired by the fingerprint sensor is larger, and the number of pixels in the upper area is smaller. In addition, in the process of moving the finger, the number of pixels is smaller. The area of the lower area is larger and larger; the area of the upper area where the number of pixels is smaller is smaller and smaller. When the user completely places the finger on the fingerprint sensor and stops moving, the area of the lower area with a larger number of pixels The amount of change and the amount of change in the area of the upper area where the number of pixels is small is almost zero. In the above solution, when the top row of the acquired image is the first row, since the number of the pixels in the first row to the Nth row is less than or equal to the second preset value corresponding to the corresponding row, the image is acquired. In the process, the number of pixels in the lower area of the acquired image is larger, and the number of pixels in the upper area is smaller; if the change value of N in the second preset time period is less than or equal to the third preset value, It is indicated that the amount of change in the area of the lower area with a larger number of pixels and the change in the area of the upper area where the number of pixels is smaller is smaller. At this time, the acquired image is relatively stable and is a complete image of the fingerprint (ie, an effective image). . Therefore, the fingerprint identification method provided by the third embodiment of the present invention is adapted to the back touch type fingerprint sensor.
实施例四Embodiment 4
图4是本发明实施例四提供的指纹的识别方法的流程示意图,本实施例四以上述实施例一为基础进行优化,在本实施例四中,将步骤101中的获取图像优选为:连续地获取图像;步骤103中的根据每行的像素点的数量判断获取的图像是否包含有效图像优化为:判断每个时刻获取的图像是否包含有效图像。如图4所示,该方法包括:4 is a schematic flowchart of a fingerprint identification method according to Embodiment 4 of the present invention. The fourth embodiment is optimized based on the foregoing embodiment 1. In the fourth embodiment, the acquired image in step 101 is preferably: continuous. Obtaining an image; determining whether the acquired image contains a valid image according to the number of pixels of each row in step 103 is optimized to determine whether the image acquired at each moment contains a valid image. As shown in FIG. 4, the method includes:
步骤401、利用指纹传感器每间隔第一预设时间段获取一次图像。Step 401: Acquire an image once every first preset time period by using the fingerprint sensor.
每间隔第一预设时间段,利用指纹传感器获取一次图像,实现连续地获取图像。Each time interval is separated by a first time period, an image is acquired by using a fingerprint sensor to continuously acquire an image.
步骤402、计算每个时刻指纹传感器获取的图像的预设区域内的每行的像素点的数量。Step 402: Calculate the number of pixels of each row in the preset area of the image acquired by the fingerprint sensor at each moment.
计算每个时刻获取的图像的预设区域内的每行的像素点的数量,即:每获取一次图像,就计算一次获取的图像的预设区域内的每行的像素点的数量,实现计算每个获取的图像的预设区域内的每行的像素点的数量。Calculating the number of pixels in each row in the preset area of the image acquired at each moment, that is, calculating the number of pixels in each row in the preset area of the acquired image once each time the image is acquired, and calculating The number of pixels per line within the preset area of each acquired image.
步骤403、确定每个时刻指纹传感器获取的图像中的M的值,其中,第M行至最后一行的像素点的数量均等于或大于相应行对应的第四预设值。Step 403: Determine a value of M in the image acquired by the fingerprint sensor at each moment, where the number of the pixel points from the Mth row to the last row is equal to or greater than a fourth preset value corresponding to the corresponding row.
根据上述计算得到的每个时刻获取的图像的预设区域内的每行的像素点的数量确定每个时刻获取的图像中的M的值,实现确定每个获取的图像中的M的值。The value of M in each acquired image is determined according to the number of pixels of each row in the preset region of the image acquired at each time obtained as described above, and the value of M in each acquired image is determined.
第一行可以是获取的图像最上面的行,也可以是获取的图像最下面的行。The first line can be the top line of the acquired image, or the bottom line of the acquired image.
每行对应的第四预设值可以相同,也可以不相同,由于手指的不同区域的指纹不相同,因此,每行对应的第四预设值优选为不相同,另外:每行对应的第四预设值可以部分相同,部分不相同。由于用户将手指放置在指纹传感器上时,手指边缘的部分不能够与指纹传感器很好地接触(即获取的图像的边缘区域的像素点的数量较少),因此,每行对应的第四预设值的关系优选为:获取的图像的边缘区域的每行对应的第四预设值均小于除边缘区域之外的剩余区域的每行对应的第四预设值。The fourth preset value corresponding to each row may be the same or different. Since the fingerprints of different regions of the finger are not the same, the fourth preset value corresponding to each row is preferably different, and the corresponding number of each row The four preset values may be partially identical and partially different. Since the user places a finger on the fingerprint sensor, the portion of the edge of the finger cannot be in good contact with the fingerprint sensor (ie, the number of pixels in the edge region of the acquired image is small), and therefore, the fourth pre-corresponding to each row The relationship of the values is preferably that the fourth preset value corresponding to each row of the edge regions of the acquired image is smaller than the fourth preset value corresponding to each row of the remaining regions except the edge region.
步骤404、计算第三预设时间段内M的变化值,其中,第三预设时间段大于第一预设时间段。Step 404: Calculate a change value of M in the third preset time period, where the third preset time period is greater than the first preset time period.
根据上述确定的每个时刻获取的图像中的M的值,计算第三预设时间段内M的变化值。The change value of M in the third preset time period is calculated according to the value of M in the image acquired at each time determined above.
可以理解的是,要想得到一定时间段内的M的变化值,则需要在该段时间内有至少两个M值,即:需要在该段时间内有至少两个获取的图像,因此,只有第三预设时间段大于第一预设时间段时,第三预设时间段内获取的图像的个数才会等于或大于两个。It can be understood that in order to obtain the change value of M in a certain period of time, it is necessary to have at least two M values in the period of time, that is, there are at least two acquired images in the period of time, therefore, only When the third preset time period is greater than the first preset time period, the number of images acquired in the third preset time period is equal to or greater than two.
步骤405、判断M的变化值是否小于或等于第五预设值,如果是,则最后时刻获取的图像为有效图像。Step 405: Determine whether the change value of M is less than or equal to a fifth preset value. If yes, the image acquired at the last moment is a valid image.
将上述得到的M的变化值与第五预设值进行比较,如果M的变化值小于或等于第五预设值,则确定最后时刻获取的图像为有效图像。The change value of M obtained above is compared with the fifth preset value. If the change value of M is less than or equal to the fifth preset value, it is determined that the image acquired at the last moment is a valid image.
可以理解的是,由于已经得到了想要的有效图像,并将获取的有效图像与模板图像进行对比,因此,在将获取的图像与模板图像进行对比之后,指纹传感器会停止获取图像。It can be understood that since the desired effective image has been obtained and the acquired effective image is compared with the template image, the fingerprint sensor stops acquiring the image after comparing the acquired image with the template image.
对于背触式的指纹传感器(即:指纹传感器位于移动终端的背面),用户在使用时,习惯将手指从指纹传感器的下方向上移动来实现将手指放置在指纹传感器上,因此,在用户未将手指完全放置在指纹传感器上时,指纹传感器获取的图像中的下方区域的像素点的数量较多,上方区域的像素点的数量较少,此外,在用户移动手指的过程中,像素点数量较多的下方区域的面积越来越大;像素点数量较少的上方区域的面积越来越小,当用户将手指完全放置在指纹传感器上并停止移动时,像素点数量较多的下方区域面积的变化量和像素点数量较少的上方区域面积的变化量几乎为0。上述方案中,当获取的图像最下面的行是最后一行时,由于第M行至最后一行的像素点的数量均等于或大于相应行对应的第四预设值,因此,在获取图像的过程中,获取的图像的下方区域的像素点的数量较多,上方区域的像素点的数量较少;如果第三预设时间段内M的变化值小于或等于第五预设值,则说明像素点数量较多的下方区域面积的变化量和像素点数量较少的上方区域面积的变化量均较小,此时,获取的图像较稳定,是指纹的完整图像(即:有效图像)。因此,本发明实施例四提供的指纹的识别方法适应于背触式的指纹传感器。For the back touch type fingerprint sensor (ie, the fingerprint sensor is located on the back side of the mobile terminal), the user is accustomed to moving the finger upward from the lower side of the fingerprint sensor to realize placing the finger on the fingerprint sensor, so that the user does not When the finger is completely placed on the fingerprint sensor, the number of pixels in the lower area in the image acquired by the fingerprint sensor is larger, and the number of pixels in the upper area is smaller. In addition, in the process of moving the finger, the number of pixels is smaller. The area of the lower area is larger and larger; the area of the upper area where the number of pixels is smaller is smaller and smaller. When the user completely places the finger on the fingerprint sensor and stops moving, the area of the lower area with a larger number of pixels The amount of change and the amount of change in the area of the upper area where the number of pixels is small is almost zero. In the above solution, when the bottom row of the acquired image is the last row, since the number of pixel points from the Mth row to the last row is equal to or greater than the fourth preset value corresponding to the corresponding row, the process of acquiring the image is performed. The number of pixels in the lower area of the acquired image is larger, and the number of pixels in the upper area is smaller; if the change value of M in the third preset time period is less than or equal to the fifth preset value, the pixel is indicated The amount of change in the area of the lower area with a larger number of points and the change of the area of the upper area with a smaller number of pixels are smaller. At this time, the acquired image is relatively stable and is a complete image of the fingerprint (ie, an effective image). Therefore, the fingerprint identification method provided by the fourth embodiment of the present invention is adapted to the back touch type fingerprint sensor.
本发明实施例三提供的指纹的识别方法是基于N的值对获取的图像进行判断;本发明实施例四提供的指纹的识别方法是基于M的值对获取的图像进行判断。需要说明的是,在判断获取的图像是否包括有效图像时,可以结合N的值和M的值对其进行判断,即:连续获取图像后,根据计算得到的每个时刻获取的图像的预设区域内的每行的像素点的数量同时确定每个时刻获取的图像中的X的值,其中,第一行至第X行的像素点的数量均小于或等于相应行对应的第X1预设值;第X行至最后一行的像素点的数量均等于或大于相应行对应的第X2预设值,然后计算预设时间段内X的变化值,最后判断X的变化值是否小于第X3预设值,如果是,则获取的图像包括有效图像。The fingerprint identification method provided by the third embodiment of the present invention determines the acquired image based on the value of N. The fingerprint identification method provided by the fourth embodiment of the present invention determines the acquired image based on the value of M. It should be noted that, when determining whether the acquired image includes a valid image, it may be combined with the value of N and the value of M, that is, after the image is continuously acquired, the preset of the image acquired at each moment according to the calculation is obtained. The number of pixels in each row in the region simultaneously determines the value of X in the image acquired at each moment, wherein the number of pixels in the first row to the Xth row is less than or equal to the X1 preset corresponding to the corresponding row. The value of the pixel from the Xth row to the last row is equal to or greater than the X2 preset value corresponding to the corresponding row, and then calculates the change value of X in the preset time period, and finally determines whether the change value of X is smaller than the X3 pre-predetermined value. Set the value, and if so, the acquired image includes a valid image.
实施例五Embodiment 5
图5是本发明实施例五提供的指纹的识别方法的流程示意图,本实施例五以上述实施例一为基础进行优化,在本实施例五中,将步骤103中的根据每行的像素点的数量判断获取的图像是否包含有效图像之后优化为:还包括如果否,则利用指纹传感器重新获取图像。如图5所示,该方法包括:FIG. 5 is a schematic flowchart of a method for identifying a fingerprint according to Embodiment 5 of the present invention. The fifth embodiment is optimized based on the foregoing Embodiment 1. In the fifth embodiment, the pixel according to each line in step 103 is used. The number determines whether the acquired image contains a valid image and is optimized to: further include, if not, reacquiring the image using the fingerprint sensor. As shown in FIG. 5, the method includes:
步骤501、利用指纹传感器获取图像。Step 501: Acquire an image by using a fingerprint sensor.
步骤502、计算获取的图像的预设区域内的每行的像素点的数量。Step 502: Calculate the number of pixels of each row in the preset area of the acquired image.
步骤503、根据每行的像素点的数量判断获取的图像是否包含有效图像,如果是,则执行步骤504、将获取的有效图像与模板图像进行对比;如果否,则执行步骤505、利用指纹传感器重新获取图像。Step 503: Determine whether the acquired image includes a valid image according to the number of pixels in each row, and if yes, perform step 504, compare the obtained valid image with the template image; if not, perform step 505, using the fingerprint sensor Reacquire the image.
在实施例一的基础上,经由上述方案,在获取的图像不是有效图像时,利用指纹传感器对图像进行重新获取,在用户由于误操作未将手指的全部区域放置在指纹传感器上时,用户不必将手指抬起再放置在指纹传感器上即可实现图像的重新获取。On the basis of the first embodiment, when the acquired image is not a valid image, the image is re-acquired by the fingerprint sensor. When the user does not place the entire area of the finger on the fingerprint sensor due to an erroneous operation, the user does not have to Re-acquisition of the image can be achieved by lifting the finger up and placing it on the fingerprint sensor.
实施例六Embodiment 6
图6是本发明实施例六提供的指纹的识别装置的结构示意图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行指纹的识别方法来实现既给用户带来便利,又节约移动终端的资源。如图6所示,该装置包括:图像获取模块601、像素点数量计算模块602和判断模块603。FIG. 6 is a schematic structural diagram of a fingerprint identification apparatus according to Embodiment 6 of the present invention. The apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and can realize convenience for the user by performing a fingerprint identification method. And save resources of mobile terminals. As shown in FIG. 6, the apparatus includes: an image acquisition module 601, a pixel number calculation module 602, and a determination module 603.
其中,图像获取模块601,用于利用指纹传感器获取图像;像素点数量计算模块602,用于计算获取的图像的预设区域内的每行的像素点的数量;判断模块603,用于根据每行的像素点的数量判断获取的图像是否包含有效图像,如果是,则将获取的有效图像与模板图像进行对比。The image obtaining module 601 is configured to acquire an image by using a fingerprint sensor; the pixel number calculation module 602 is configured to calculate a quantity of pixels in each row in the preset area of the acquired image; and the determining module 603 is configured to The number of pixels of the line determines whether the acquired image contains a valid image, and if so, compares the obtained valid image with the template image.
经由上述方案,在指纹传感器获取图像之后,不直接将获取的图像与模板图像进行对比,而是计算利用指纹传感器获取的图像的预设区域内的每行的像素点的数量,并根据每行的像素点的数量判断获取的图像是否包含有效图像,只有当获取的图像包含有效图像时,才会将获取的有效图像与模板图像进行对比,从而避免了指纹传感器获取的不是指纹的完整图像导致的指纹识别失败,从而给用户带来不便的问题;也避免了指纹传感器获取的不是指纹的图像导致的移动终端资源浪费的问题,进而能够给用户带来便利且节约资源。Through the above solution, after the fingerprint sensor acquires the image, the acquired image is not directly compared with the template image, but the number of pixels of each row in the preset region of the image acquired by the fingerprint sensor is calculated, and according to each row The number of pixels determines whether the acquired image contains a valid image. Only when the acquired image contains a valid image, the obtained effective image is compared with the template image, thereby avoiding the complete image obtained by the fingerprint sensor not being the fingerprint. The fingerprint recognition fails, which causes inconvenience to the user; and the problem that the fingerprint sensor acquires the image of the mobile terminal that is not the image of the fingerprint is avoided, thereby facilitating the user and saving resources.
优选地,判断模块603可以包括:第一判断单元,用于判断每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则获取的图像包含有效图像。Preferably, the determining module 603 may include: a first determining unit, configured to determine whether the number of pixel points in each row is greater than or equal to a first preset value corresponding to the corresponding row, and if yes, the acquired image includes a valid image.
优选地,图像获取模块601可以包括:图像获取单元,用于利用指纹传感器每间隔第一预设时间段获取一次图像;像素点数量计算模块602可以包括:像素点数量计算单元,用于计算每个时刻指纹传感器获取的图像的预设区域内的每行的像素点的数量。Preferably, the image acquisition module 601 may include: an image acquisition unit, configured to acquire an image once every first preset time period by using the fingerprint sensor; the pixel number calculation module 602 may include: a pixel number calculation unit, configured to calculate each The number of pixels of each line in the preset area of the image acquired by the fingerprint sensor.
优选地,判断模块603可以包括:第一确定单元、第一计算单元和第二判断单元。Preferably, the determining module 603 can include: a first determining unit, a first calculating unit, and a second determining unit.
其中,第一确定单元,用于确定每个时刻指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值;第一计算单元,用于计算第二预设时间段内N的变化值,其中,第二预设时间段大于第一预设时间段;第二判断单元,用于判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像。The first determining unit is configured to determine a value of N in the image acquired by the fingerprint sensor at each moment, where the number of the pixels in the first row to the Nth row is less than or equal to the second preset corresponding to the corresponding row. The first calculating unit is configured to calculate a change value of N in the second preset time period, wherein the second preset time period is greater than the first preset time period; and the second determining unit is configured to determine the change value of the N Whether it is less than or equal to the third preset value, and if so, it is determined that the image acquired at the last moment is a valid image.
优选地,判断模块603可以包括:第二确定单元、第二计算单元和第三判断单元。Preferably, the determining module 603 can include: a second determining unit, a second calculating unit, and a third determining unit.
其中,第二确定单元,用于确定每个时刻指纹传感器获取的图像中的M的值,其中,第M行至最后一行的像素点的数量均等于或大于相应行对应的第四预设值;第二计算单元,用于计算第三预设时间段内M的变化值,其中,第三预设时间段大于第一预设时间段;第三判断单元,用于判断M的变化值是否小于或等于第五预设值,如果是,则最后时刻获取的图像为有效图像。The second determining unit is configured to determine a value of M in the image acquired by the fingerprint sensor at each moment, where the number of the pixels in the Mth row to the last row is equal to or greater than a fourth preset value corresponding to the corresponding row. a second calculating unit, configured to calculate a change value of M in the third preset time period, wherein the third preset time period is greater than the first preset time period; and the third determining unit is configured to determine whether the change value of M is It is less than or equal to the fifth preset value, and if so, the image acquired at the last moment is a valid image.
优选地,该装置还可以包括:按压判断模块,用于判断指纹传感器是否被按压,如果是,则利用指纹传感器获取图像。Preferably, the apparatus may further include: a pressing determination module for determining whether the fingerprint sensor is pressed, and if yes, acquiring an image by using the fingerprint sensor.
优选地,判断模块还用于如果否,则利用指纹传感器重新获取图像。Preferably, the determining module is further configured to reacquire the image using the fingerprint sensor if not.
优选地,预设区域为获取的图像的整个区域或获取的图像的边缘区域。Preferably, the preset area is an entire area of the acquired image or an edge area of the acquired image.
上述装置可执行本发明实施例一至实施例五所提供的指纹的识别方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例一至实施例五所提供的指纹的识别方法。The above device can perform the fingerprint identification method provided by the first embodiment to the fifth embodiment of the present invention, and has the corresponding functional modules and the beneficial effects of performing the above method. For the technical details that are not described in detail in this embodiment, reference may be made to the fingerprint identification method provided by Embodiments 1 to 5 of the present invention.
另外,本发明实施例还提供了一种移动终端70,如图7所示,该移动终端70包括本发明实施例六所提供的指纹的识别装置701,能够执行本发明实施例一至实施例五所提供的指纹的识别方法以及指纹传感器702。本发明实施例提供的移动终端,在指纹传感器702获取图像之后,不直接将获取的图像与模板图像进行对比,而是计算利用指纹传感器702获取的图像的预设区域内的每行的像素点的数量,并根据每行的像素点的数量判断获取的图像是否包含有效图像,只有当获取的图像包含有效图像时,才会将获取的有效图像与模板图像进行对比,从而避免了指纹传感器702获取的不是指纹的完整图像导致的指纹识别失败,从而给用户带来不便的问题;也避免了指纹传感器702获取的不是指纹的图像导致的移动终端资源浪费的问题,进而能够给用户带来便利且节约资源。In addition, the embodiment of the present invention further provides a mobile terminal 70. As shown in FIG. 7, the mobile terminal 70 includes the fingerprint identification device 701 provided by the sixth embodiment of the present invention, which can perform the first embodiment to the fifth embodiment of the present invention. A fingerprint identification method provided and a fingerprint sensor 702. The mobile terminal provided by the embodiment of the present invention does not directly compare the acquired image with the template image after acquiring the image by the fingerprint sensor 702, but calculates the pixel point of each row in the preset area of the image acquired by the fingerprint sensor 702. The number of pixels, and whether the acquired image contains a valid image according to the number of pixels in each row, only when the acquired image contains a valid image, the obtained effective image is compared with the template image, thereby avoiding the fingerprint sensor 702 The fingerprint recognition failure caused by the complete image of the fingerprint is not obtained, thereby causing inconvenience to the user; and the problem that the fingerprint sensor 702 acquires the image of the mobile terminal that is not the image of the fingerprint is avoided, thereby facilitating the user. And save resources.
其中,该指纹的识别装置701包括:The identification device 701 of the fingerprint includes:
图像获取模块,用于利用指纹传感器获取图像;An image acquisition module, configured to acquire an image by using a fingerprint sensor;
像素点数量计算模块,用于计算获取的图像的预设区域内的每行的像素点的数量;a pixel number calculation module, configured to calculate a number of pixels of each row in a preset area of the acquired image;
判断模块,用于根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。The determining module is configured to determine, according to the number of pixels of each row, whether the acquired image includes a valid image, and if yes, compare the acquired valid image with the template image.
优选地,所述判断模块包括:Preferably, the determining module comprises:
第一判断单元,用于判断所述每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则所述获取的图像包含有效图像。The first determining unit is configured to determine whether the number of pixels of each row is greater than or equal to a first preset value corresponding to the corresponding row, and if yes, the acquired image includes a valid image.
第一确定单元,用于确定每个时刻所述指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值。a first determining unit, configured to determine a value of N in the image acquired by the fingerprint sensor at each moment, where the number of the pixels in the first row to the Nth row is less than or equal to the second preset corresponding to the corresponding row value.
第一计算单元,用于计算第二预设时间段内N的变化值,其中,所述第二预设时间段大于所述第一预设时间段。The first calculating unit is configured to calculate a change value of N in the second preset time period, wherein the second preset time period is greater than the first preset time period.
第二判断单元,用于判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像。The second determining unit is configured to determine whether the change value of N is less than or equal to the third preset value, and if yes, determine that the image acquired at the last moment is a valid image.
优选地,所述图像获取模块包括:Preferably, the image acquisition module comprises:
图像获取单元,用于利用所述指纹传感器每间隔第一预设时间段获取一次图像,An image acquisition unit, configured to acquire an image by using the fingerprint sensor every first preset time period,
所述像素点数量计算模块包括:The pixel number calculation module includes:
像素点数量计算单元,用于计算每个时刻所述指纹传感器获取的图像的预设区域内的每行的像素点的数量。The pixel number calculation unit is configured to calculate the number of pixel points of each row in the preset area of the image acquired by the fingerprint sensor at each moment.
此外,本实施例提供的移动终端70还可以包括:射频(RF,Radio Frequency)电路、包括有一个或一个以上计算机可读存储介质的存储器、输入单元、显示单元、传感器、音频电路、无线保真(WiFi,Wireless Fidelity)模块、包括有一个或者一个以上处理核心的处理器、以及电源等部件。In addition, the mobile terminal 70 provided in this embodiment may further include: radio frequency (RF, Radio) Frequency circuit, memory, input unit, display unit, sensor, audio circuit, wireless fidelity (WiFi, Wireless) including one or more computer readable storage media Fidelity modules, including processors with one or more processing cores, and power supplies.
可选地,该指纹的识别装置701可以集成在处理器中。Alternatively, the identification device 701 of the fingerprint may be integrated in the processor.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, such as It is stored in the memory of the terminal and executed by at least one processor within the terminal, and may include a flow of an embodiment of the information distribution method during execution. The storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or CD.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only the preferred embodiments of the present invention and the technical principles applied thereto. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments described herein, and that various modifications, changes and substitutions may be made without departing from the scope of the invention. Therefore, the present invention has been described in detail by the above embodiments, but the present invention is not limited to the above embodiments, and other equivalent embodiments may be included without departing from the inventive concept. The scope is determined by the scope of the appended claims.

Claims (20)

  1. 一种指纹的识别方法,其包括:A method for identifying a fingerprint, comprising:
    利用指纹传感器获取图像;Acquiring images using a fingerprint sensor;
    计算获取的图像的预设区域内的每行的像素点的数量;Calculating the number of pixels of each row in the preset area of the acquired image;
    根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。Determining whether the acquired image contains a valid image according to the number of pixels of each row, and if so, comparing the acquired valid image with the template image.
  2. 根据权利要求1所述的方法,其中,根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像包括:The method according to claim 1, wherein determining whether the acquired image contains a valid image according to the number of pixels of each row comprises:
    判断所述每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则所述获取的图像包含有效图像。Determining whether the number of pixels of each row is greater than or equal to a first preset value corresponding to the corresponding row, and if so, the acquired image includes a valid image.
  3. 根据权利要求1所述的方法,其中,利用指纹传感器获取图像包括:The method of claim 1 wherein acquiring an image using the fingerprint sensor comprises:
    利用所述指纹传感器每间隔第一预设时间段获取一次图像,Acquiring an image once every first preset time period by using the fingerprint sensor,
    计算获取的图像的预设区域内的每行的像素点的数量包括:Calculating the number of pixels of each row in the preset area of the acquired image includes:
    计算每个时刻所述指纹传感器获取的图像的预设区域内的每行的像素点的数量。The number of pixels of each row in the preset area of the image acquired by the fingerprint sensor at each moment is calculated.
  4. 根据权利要求3所述的方法,其中,根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像包括:The method according to claim 3, wherein determining whether the acquired image contains a valid image according to the number of pixels of each row comprises:
    确定每个时刻所述指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值;Determining, in each time, the value of N in the image acquired by the fingerprint sensor, where the number of the pixels in the first row to the Nth row is less than or equal to the second preset value corresponding to the corresponding row;
    计算第二预设时间段内N的变化值,其中,所述第二预设时间段大于所述第一预设时间段;Calculating a change value of N in the second preset time period, where the second preset time period is greater than the first preset time period;
    判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像。It is judged whether the change value of N is less than or equal to the third preset value, and if so, it is determined that the image acquired at the last moment is a valid image.
  5. 根据权利要求3所述的方法,其中,根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像包括:The method according to claim 3, wherein determining whether the acquired image contains a valid image according to the number of pixels of each row comprises:
    确定每个时刻所述指纹传感器获取的图像中的M的值,其中,第M行至最后一行的像素点的数量均等于或大于相应行对应的第四预设值;Determining, in each time, the value of M in the image acquired by the fingerprint sensor, wherein the number of the pixels in the Mth row to the last row is equal to or greater than a fourth preset value corresponding to the corresponding row;
    计算第三预设时间段内M的变化值,其中,所述第三预设时间段大于所述第一预设时间段;Calculating a change value of M in the third preset time period, wherein the third preset time period is greater than the first preset time period;
    判断M的变化值是否小于或等于第五预设值,如果是,则最后时刻获取的图像为有效图像。It is judged whether the change value of M is less than or equal to the fifth preset value, and if so, the image acquired at the last moment is a valid image.
  6. 根据权利要求1所述的方法,其中,利用指纹传感器获取图像之前,所述方法还包括:The method of claim 1 wherein before the image is acquired using the fingerprint sensor, the method further comprises:
    判断所述指纹传感器是否被按压,如果是,则利用指纹传感器获取图像。It is judged whether the fingerprint sensor is pressed, and if so, an image is acquired using the fingerprint sensor.
  7. 根据权利要求1-6中任一项所述的方法,其中,根据每行的像素点的数量判断所述获取的图像是否包含有效图像之后,所述方法还包括:The method according to any one of claims 1 to 6, wherein, after determining whether the acquired image contains a valid image according to the number of pixels of each row, the method further comprises:
    如果否,则利用所述指纹传感器重新获取图像。If not, the image is retrieved again using the fingerprint sensor.
  8. 根据权利要求1-6中任一项所述的方法,其中,所述预设区域为所述获取的图像的整个区域或所述获取的图像的边缘区域。The method according to any one of claims 1 to 6, wherein the preset area is an entire area of the acquired image or an edge area of the acquired image.
  9. 一种指纹的识别装置,其包括:A fingerprint identification device, comprising:
    图像获取模块,用于利用指纹传感器获取图像;An image acquisition module, configured to acquire an image by using a fingerprint sensor;
    像素点数量计算模块,用于计算获取的图像的预设区域内的每行的像素点的数量;a pixel number calculation module, configured to calculate a number of pixels of each row in a preset area of the acquired image;
    判断模块,用于根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。The determining module is configured to determine, according to the number of pixels of each row, whether the acquired image includes a valid image, and if yes, compare the acquired valid image with the template image.
  10. 根据权利要求9所述的装置,其中,所述判断模块包括:The apparatus of claim 9, wherein the determining module comprises:
    第一判断单元,用于判断所述每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则所述获取的图像包含有效图像。The first determining unit is configured to determine whether the number of pixels of each row is greater than or equal to a first preset value corresponding to the corresponding row, and if yes, the acquired image includes a valid image.
  11. 根据权利要求9所述的装置,其中,所述图像获取模块包括:The apparatus of claim 9, wherein the image acquisition module comprises:
    图像获取单元,用于利用所述指纹传感器每间隔第一预设时间段获取一次图像,An image acquisition unit, configured to acquire an image by using the fingerprint sensor every first preset time period,
    所述像素点数量计算模块包括:The pixel number calculation module includes:
    像素点数量计算单元,用于计算每个时刻所述指纹传感器获取的图像的预设区域内的每行的像素点的数量。The pixel number calculation unit is configured to calculate the number of pixel points of each row in the preset area of the image acquired by the fingerprint sensor at each moment.
  12. 根据权利要求11所述的装置,其中,所述判断模块包括:The apparatus of claim 11 wherein said determining module comprises:
    第一确定单元,用于确定每个时刻所述指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值;a first determining unit, configured to determine a value of N in the image acquired by the fingerprint sensor at each moment, where the number of the pixels in the first row to the Nth row is less than or equal to the second preset corresponding to the corresponding row value;
    第一计算单元,用于计算第二预设时间段内N的变化值,其中,所述第二预设时间段大于所述第一预设时间段;a first calculating unit, configured to calculate a change value of N in the second preset time period, where the second preset time period is greater than the first preset time period;
    第二判断单元,用于判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像。The second determining unit is configured to determine whether the change value of N is less than or equal to the third preset value, and if yes, determine that the image acquired at the last moment is a valid image.
  13. 根据权利要求11所述的装置,其中,所述判断模块包括:The apparatus of claim 11 wherein said determining module comprises:
    第二确定单元,用于确定每个时刻所述指纹传感器获取的图像中的M的值,其中,第M行至最后一行的像素点的数量均等于或大于相应行对应的第四预设值;a second determining unit, configured to determine a value of M in the image acquired by the fingerprint sensor at each moment, wherein the number of the pixels in the Mth row to the last row is equal to or greater than a fourth preset value corresponding to the corresponding row ;
    第二计算单元,用于计算第三预设时间段内M的变化值,其中,所述第三预设时间段大于所述第一预设时间段;a second calculating unit, configured to calculate a change value of M in the third preset time period, where the third preset time period is greater than the first preset time period;
    第三判断单元,用于判断M的变化值是否小于或等于第五预设值,如果是,则最后时刻获取的图像为有效图像。The third determining unit is configured to determine whether the change value of M is less than or equal to the fifth preset value, and if yes, the image acquired at the last moment is a valid image.
  14. 根据权利要求9所述的装置,其中,还包括:The apparatus according to claim 9, further comprising:
    按压判断模块,用于判断所述指纹传感器是否被按压,如果是,则利用指纹传感器获取图像。Pressing a determination module for determining whether the fingerprint sensor is pressed, and if so, acquiring an image using the fingerprint sensor.
  15. 根据权利要求9-14中任一项所述的装置,其特征在于,所述判断模块还用于如果否,则利用所述指纹传感器重新获取图像。The apparatus according to any one of claims 9-14, wherein the determining module is further configured to reacquire an image using the fingerprint sensor if not.
  16. 根据权利要求9-14中任一项所述的装置,其中,所述预设区域为所述获取的图像的整个区域或所述获取的图像的边缘区域。The apparatus according to any one of claims 9 to 14, wherein the preset area is an entire area of the acquired image or an edge area of the acquired image.
  17. 一种移动终端,其指纹传感器、以及与所述指纹传感器连接的指纹的识别装置;A mobile terminal, a fingerprint sensor thereof, and an identification device for a fingerprint connected to the fingerprint sensor;
    所述指纹的识别装置包括:The fingerprint identification device includes:
    图像获取模块,用于利用指纹传感器获取图像;An image acquisition module, configured to acquire an image by using a fingerprint sensor;
    像素点数量计算模块,用于计算获取的图像的预设区域内的每行的像素点的数量;a pixel number calculation module, configured to calculate a number of pixels of each row in a preset area of the acquired image;
    判断模块,用于根据所述每行的像素点的数量判断所述获取的图像是否包含有效图像,如果是,则将所述获取的有效图像与模板图像进行对比。The determining module is configured to determine, according to the number of pixels of each row, whether the acquired image includes a valid image, and if yes, compare the acquired valid image with the template image.
  18. 根据权利要求17所述的移动终端,其中,所述判断模块包括:The mobile terminal of claim 17, wherein the determining module comprises:
    第一判断单元,用于判断所述每行的像素点的数量是否大于或等于相应行对应的第一预设值,如果是,则所述获取的图像包含有效图像。The first determining unit is configured to determine whether the number of pixels of each row is greater than or equal to a first preset value corresponding to the corresponding row, and if yes, the acquired image includes a valid image.
  19. 根据权利要求17所述的移动终端,其中,所述图像获取模块包括:The mobile terminal of claim 17, wherein the image acquisition module comprises:
    图像获取单元,用于利用所述指纹传感器每间隔第一预设时间段获取一次图像,An image acquisition unit, configured to acquire an image by using the fingerprint sensor every first preset time period,
    所述像素点数量计算模块包括:The pixel number calculation module includes:
    像素点数量计算单元,用于计算每个时刻所述指纹传感器获取的图像的预设区域内的每行的像素点的数量。The pixel number calculation unit is configured to calculate the number of pixel points of each row in the preset area of the image acquired by the fingerprint sensor at each moment.
  20. 根据权利要求19所述的移动终端,其中,所述判断模块包括:The mobile terminal of claim 19, wherein the determining module comprises:
    第一确定单元,用于确定每个时刻所述指纹传感器获取的图像中的N的值,其中,第一行至第N行的像素点的数量均小于或等于相应行对应的第二预设值;a first determining unit, configured to determine a value of N in the image acquired by the fingerprint sensor at each moment, where the number of the pixels in the first row to the Nth row is less than or equal to the second preset corresponding to the corresponding row value;
    第一计算单元,用于计算第二预设时间段内N的变化值,其中,所述第二预设时间段大于所述第一预设时间段;a first calculating unit, configured to calculate a change value of N in the second preset time period, where the second preset time period is greater than the first preset time period;
    第二判断单元,用于判断N的变化值是否小于或等于第三预设值,如果是,则确定最后时刻获取的图像为有效图像。The second determining unit is configured to determine whether the change value of N is less than or equal to the third preset value, and if yes, determine that the image acquired at the last moment is a valid image.
PCT/CN2016/093747 2015-10-19 2016-08-05 Fingerprint recognition method and apparatus, and mobile terminal WO2017067288A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510681120.7 2015-10-19
CN201510681120.7A CN105303175B (en) 2015-10-19 2015-10-19 A kind of recognition methods of fingerprint, device and mobile terminal

Publications (1)

Publication Number Publication Date
WO2017067288A1 true WO2017067288A1 (en) 2017-04-27

Family

ID=55200419

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093747 WO2017067288A1 (en) 2015-10-19 2016-08-05 Fingerprint recognition method and apparatus, and mobile terminal

Country Status (2)

Country Link
CN (1) CN105303175B (en)
WO (1) WO2017067288A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260722B (en) * 2015-10-19 2017-02-15 广东欧珀移动通信有限公司 Fingerprint identification method and device, and mobile terminal
CN105303175B (en) * 2015-10-19 2017-10-20 广东欧珀移动通信有限公司 A kind of recognition methods of fingerprint, device and mobile terminal
CN108235750B (en) * 2018-01-15 2021-06-11 深圳市汇顶科技股份有限公司 Press detection method and device of fingerprint identification system and terminal equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006099682A1 (en) * 2005-03-24 2006-09-28 Bio Recognition Systems Pty Ltd Resource effective image processing system
CN101631023A (en) * 2009-07-31 2010-01-20 北京飞天诚信科技有限公司 Method for authenticating identity and system thereof
CN102054161A (en) * 2009-11-02 2011-05-11 纬创资通股份有限公司 Fingerprint image inspection method
US20140093122A1 (en) * 2012-10-02 2014-04-03 Nitzan Rabinowitz Image identifiers and methods and systems of presenting image identifiers
CN104978572A (en) * 2015-06-30 2015-10-14 魅族科技(中国)有限公司 Fingerprint collection method and terminal
CN105243369A (en) * 2015-10-19 2016-01-13 广东欧珀移动通信有限公司 Fingerprint identification method and device, and mobile terminal
CN105260722A (en) * 2015-10-19 2016-01-20 广东欧珀移动通信有限公司 Fingerprint identification method and device, and mobile terminal
CN105303175A (en) * 2015-10-19 2016-02-03 广东欧珀移动通信有限公司 Fingerprint identification method and device and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3535494B2 (en) * 2001-12-25 2004-06-07 エヌティティエレクトロニクス株式会社 Fingerprint image determination device and program
JP4466707B2 (en) * 2007-09-27 2010-05-26 ミツミ電機株式会社 Finger separation detection device, finger separation detection method, fingerprint reading device using the same, and fingerprint reading method
CN104834850A (en) * 2015-04-15 2015-08-12 何邦君 Fingerprint button device and control method adopting fingerprint button device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006099682A1 (en) * 2005-03-24 2006-09-28 Bio Recognition Systems Pty Ltd Resource effective image processing system
CN101631023A (en) * 2009-07-31 2010-01-20 北京飞天诚信科技有限公司 Method for authenticating identity and system thereof
CN102054161A (en) * 2009-11-02 2011-05-11 纬创资通股份有限公司 Fingerprint image inspection method
US20140093122A1 (en) * 2012-10-02 2014-04-03 Nitzan Rabinowitz Image identifiers and methods and systems of presenting image identifiers
CN104978572A (en) * 2015-06-30 2015-10-14 魅族科技(中国)有限公司 Fingerprint collection method and terminal
CN105243369A (en) * 2015-10-19 2016-01-13 广东欧珀移动通信有限公司 Fingerprint identification method and device, and mobile terminal
CN105260722A (en) * 2015-10-19 2016-01-20 广东欧珀移动通信有限公司 Fingerprint identification method and device, and mobile terminal
CN105303175A (en) * 2015-10-19 2016-02-03 广东欧珀移动通信有限公司 Fingerprint identification method and device and mobile terminal

Also Published As

Publication number Publication date
CN105303175B (en) 2017-10-20
CN105303175A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
WO2017067286A1 (en) Method and device for updating fingerprint template and terminal
WO2017067293A1 (en) Method and device for fingerprint unlocking and terminal
WO2018230875A1 (en) Terminal and control method thereof
WO2014040501A1 (en) Method and system for generating and authorizing dynamic password
WO2018076844A1 (en) Data backup method and device, storage medium and electronic apparatus
WO2017067294A1 (en) Fingerprint collection method, apparatus, and terminal
WO2017067289A1 (en) Fingerprint recognition method, apparatus, and mobile terminal
WO2017071363A1 (en) Password sharing method, password sharing system, and terminal device
WO2015081503A1 (en) Processing method and apparatus, and terminal
WO2017067288A1 (en) Fingerprint recognition method and apparatus, and mobile terminal
WO2020101350A1 (en) Method for processing data using neural network and electronic device for supporting the same
WO2017197752A1 (en) System switching method, system switching device, and terminal
WO2018076840A1 (en) Data sharing method, device, storage medium and server
WO2019124811A1 (en) Fingerprint verification method and electronic device performing same
WO2018034491A1 (en) A primary device, an accessory device, and methods for processing operations on the primary device and the accessory device
WO2020159106A1 (en) Touch device
WO2015137666A1 (en) Object recognition apparatus and control method therefor
WO2018161580A1 (en) Broadcast control method and apparatus, storage medium, and electronic device
WO2017206885A1 (en) Application program shutdown method and apparatus, storage medium, and electronic device
WO2018070576A1 (en) User recognition method using hybrid biometric information and device thereof
WO2017206880A1 (en) Terminal data processing method and apparatus, storage medium, and electronic device
WO2017206886A1 (en) Wakeup lock releasing method and apparatus, storage medium, and electronic device
WO2018076881A1 (en) Data synchronization method and device, storage medium and server
WO2019140802A1 (en) Authorization method and system for service handling on self-service banking terminal, and readable storage medium
WO2018161588A1 (en) Broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device

Legal Events

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

Ref document number: 16856723

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16856723

Country of ref document: EP

Kind code of ref document: A1