WO2017000342A1 - Fingerprint recognition method and terminal - Google Patents

Fingerprint recognition method and terminal Download PDF

Info

Publication number
WO2017000342A1
WO2017000342A1 PCT/CN2015/085820 CN2015085820W WO2017000342A1 WO 2017000342 A1 WO2017000342 A1 WO 2017000342A1 CN 2015085820 W CN2015085820 W CN 2015085820W WO 2017000342 A1 WO2017000342 A1 WO 2017000342A1
Authority
WO
WIPO (PCT)
Prior art keywords
fingerprint image
image
fingerprint
preset
terminal
Prior art date
Application number
PCT/CN2015/085820
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 WO2017000342A1 publication Critical patent/WO2017000342A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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

Definitions

  • the present invention relates to the field of fingerprint recognition technologies, and in particular, to a fingerprint identification method and a terminal.
  • terminals such as mobile phones, tablets, etc.
  • fingerprint recognition terminals can be unlocked, applications can be launched, or certain functions in the application can be executed.
  • the terminal in the locked state can be unlocked by fingerprint recognition, or an application such as WeChat or QQ in the terminal is started, or an application such as fingerprint payment is completed through fingerprint recognition.
  • a terminal in order to perform fingerprint recognition, a terminal usually needs to set a special fingerprint identification module in the terminal.
  • the inventor of the present invention found in the research and practice that the traditional fingerprint identification scheme has a high cost because it needs to set a special fingerprint identification module in the terminal.
  • the embodiment of the invention provides a fingerprint identification method and a terminal, and obtains a new fingerprint recognition form, and the function of fingerprint recognition of the terminal can be realized by the camera without adding a fingerprint recognition hardware module. .
  • a first aspect of the embodiments of the present invention provides a fingerprint identification method, where the method includes:
  • the camera of the calling terminal After receiving the fingerprint collection instruction, the camera of the calling terminal acquires a captured image including the fingerprint image;
  • the preset operation is performed according to the preset condition.
  • a second aspect of the embodiment of the present invention provides a terminal, where the terminal includes:
  • a camera configured to acquire a captured image including the fingerprint image after receiving the fingerprint acquisition instruction
  • a first processing module configured to extract the fingerprint image from the captured image, and perform pre-processing on the fingerprint image extracted from the captured image to obtain a comparison fingerprint image
  • a determining module configured to determine whether the comparison fingerprint image matches a preset fingerprint image
  • an execution module configured to perform a preset operation according to the preset condition if the determination result of the determining module is that the matching fingerprint image matches the preset fingerprint image.
  • the technical solution of the embodiment of the present invention acquires a captured image including a fingerprint image by calling a camera of the terminal. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required, so the technical solution provided by the present invention improves the terminal.
  • the utilization of the middle camera eliminates the need to set up a special pattern recognition module in the terminal.
  • FIG. 1 is a schematic flowchart of a fingerprint identification method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of another fingerprint identification method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of setting a preset fingerprint image in another fingerprint identification method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a fingerprint identification process in another fingerprint identification method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a fingerprint identification method and a terminal, and uses the camera in the terminal to collect the fingerprint image, thereby eliminating the need to set a special pattern recognition module in the terminal.
  • An embodiment of the fingerprint identification method of the present invention includes: after receiving a fingerprint acquisition instruction, calling a camera of the terminal to acquire a captured image including a fingerprint image; extracting the fingerprint image from the captured image, and extracting the fingerprint image from the captured image Performing preprocessing on the fingerprint image extracted in the captured image to obtain a comparison fingerprint image; determining whether the comparison fingerprint image matches the preset fingerprint image; if the comparison fingerprint image matches the preset fingerprint image , the preset operation is performed according to the preset condition.
  • FIG. 1 is a schematic flowchart diagram of a fingerprint identification method according to an embodiment of the present invention.
  • a fingerprint identification method provided by an embodiment of the present invention may include:
  • the camera of the calling terminal After receiving the fingerprint collection instruction, the camera of the calling terminal acquires the collected image including the fingerprint image.
  • the fingerprint collection instruction is received.
  • the camera of the terminal may be an auto focus camera.
  • the captured image acquired by the camera may be detected to determine whether the acquired captured image includes a fingerprint image, and if the fingerprint image is included, a subsequent operation is performed, and if the fingerprint image is not included, the acquired image is reacquired. .
  • the captured image can be judged Whether there is a clear ridge line formed by a clear concave-convex shape, and if so, it is determined that the camera acquires a captured image including a fingerprint image.
  • the fingerprint image is extracted from the captured image, and the fingerprint image is pre-processed to obtain a comparison fingerprint image.
  • the method may include:
  • the image processing performed on the acquired image is not limited to the above image processing process, and other methods may be employed as long as a clear contrast fingerprint image can be obtained from the captured image.
  • the comparison fingerprint image and the preset fingerprint image may be considered to be matched. For example, it can be set that if the fingerprint image includes more than 80% of the feature points in the preset fingerprint image, it is considered that the matching fingerprint image matches the preset fingerprint image. If the matching fingerprint image includes 85% of the feature points in the preset fingerprint image, it is considered that the matching fingerprint image matches the preset fingerprint image. If the matching fingerprint image includes 60% of the feature points in the preset fingerprint image, it is considered that the comparison fingerprint image does not match the preset fingerprint image.
  • the feature points may be in a fingerprint image: a breakpoint, a cross point, a burr, a short line, or a small ring.
  • comparison fingerprint image matches the preset fingerprint image, perform a preset operation according to a preset condition.
  • the preset condition may be: unlocking the terminal after the fingerprint recognition is passed, and when the comparison fingerprint image matches the preset fingerprint image, the preset operation is: unlocking the locked state terminal,
  • the terminal displays the display interface of the front terminal or the main interface of the display terminal.
  • the preset condition may also be that after the fingerprint recognition is passed, an application is started, or a certain function in the application is executed, for example, fingerprint payment is completed through fingerprint recognition.
  • the technical solution of the embodiment of the present invention acquires a captured image including a fingerprint image by calling a camera of the terminal. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required, so the technical solution provided by the present invention improves the terminal.
  • the utilization of the middle camera eliminates the need to set up a special pattern recognition module in the terminal.
  • the fingerprint identification method may further include:
  • the camera of the calling terminal After receiving the fingerprint acquisition instruction, the camera of the calling terminal acquires an original image including a fingerprint image.
  • the fingerprint setting state is entered to obtain a preset fingerprint image, and the fingerprint collection instruction is received.
  • the camera may be an autofocus camera in the terminal. After receiving the fingerprint acquisition command, the camera of the terminal is activated, the finger fingerprint is aligned with the camera, and the camera acquires an original image including the fingerprint image, which may be acquired in a possible implementation manner. The original image is displayed in the preview box.
  • the fingerprint refers to a line generated by unevenness on the front surface of the finger end of a person's finger. The lines are regularly arranged to form different patterns. Fingerprints are invariant, unique and convenient and can be used for biometric identification. Security can be improved by using fingerprint information in various applications.
  • an application in the terminal may be used to use the fingerprint recognition function.
  • the terminal may be unlocked by using fingerprint recognition, or an application of the terminal may be activated by using fingerprint recognition, or fingerprint payment may be completed by using fingerprint recognition. Wait.
  • the fingerprint setting state is entered to obtain a preset fingerprint image.
  • the fingerprint of the finger used for fingerprint recognition is performed by using the camera. Take a photo and get the original image including the fingerprint image.
  • multiple applications may be set to use a fingerprint recognition function, and specifically, each application corresponds to a different fingerprint.
  • the original image acquired by the camera may be detected to determine whether the captured original image includes a fingerprint image, and if the fingerprint image is included, The image processing operation does not perform an image processing operation if the fingerprint image is not included. Specifically, it can be determined whether there is a clear ridge line formed by a clear concave-convex shape in the original image, and if so, it is determined that the camera acquires the original image including the fingerprint image.
  • the original image may be image processed by the CPU of the terminal to obtain a preset fingerprint image.
  • the original image may be image processed by the following method:
  • the image processing performed on the original image is not limited to the above image processing process, and other methods may be employed as long as a clear preset fingerprint image can be obtained from the original image.
  • the original image acquired by the camera may be detected to determine whether the captured original image includes a fingerprint image, and if the fingerprint image is included, the image processing operation is performed, if the fingerprint image is not included, Get the original image.
  • the preset fingerprint picture may be encrypted, encrypted, and saved to the storage module.
  • the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire an original image including a fingerprint image, and obtains a preset fingerprint image after processing. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required.
  • the technical solution provided by the invention improves the utilization rate of the camera in the terminal, and saves the special pattern recognition module in the terminal, thereby saving the cost.
  • a preset fingerprint image is obtained by setting a fingerprint identification module, since the fingerprint identification module is small, in order to obtain complete fingerprint information, multiple acquisitions are required, and the technical solution in the embodiment of the present invention can obtain complete information of the fingerprint at a time through the camera. Improve the efficiency of fingerprint recognition.
  • the preset condition is: when the fingerprint recognition is passed, the terminal is unlocked using fingerprint recognition.
  • the preset operation is: the terminal is unlocked by the locked state.
  • a preset fingerprint image needs to be set.
  • the unlocking is needed, the acquired image is acquired, and the fingerprint image is obtained to determine whether the matching fingerprint image matches the preset fingerprint image. If the matching is performed, the terminal performs an unlocking operation to display the terminal before locking.
  • FIG. 3-a is a schematic flowchart of setting a preset fingerprint image in the embodiment
  • FIG. 3-b is a schematic flowchart of the fingerprint identification process in the embodiment.
  • the flow diagram of setting a preset fingerprint image in Figure 3-a includes:
  • the flow diagram of verifying the fingerprint image in Figure 3-b includes:
  • the display interface of the terminal before locking or the main interface of the display terminal is displayed.
  • the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire an original image including a fingerprint image, and obtains a preset fingerprint image after processing. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required.
  • the technical solution provided by the invention improves the utilization rate of the camera in the terminal, and saves the special pattern recognition module in the terminal, thereby saving the cost.
  • the preset fingerprint image is obtained by setting the fingerprint identification module in the prior art, since the fingerprint identification module is small, in order to obtain complete fingerprint information, multiple acquisitions are required, and the technical solution in the embodiment of the present invention can obtain the fingerprint at one time through the camera. The complete information improves the efficiency of fingerprint recognition.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • a terminal 300 according to an embodiment of the present invention may include:
  • the instruction receiving module 301 is configured to receive a fingerprint collection instruction.
  • the terminal is unlocked by using fingerprint identification
  • the terminal black screen is in standby
  • the terminal is activated by pressing the power button of the terminal, and the fingerprint collection instruction is triggered, and the instruction receiving module receives the Fingerprint acquisition instructions.
  • the camera 302 is configured to acquire the captured image including the fingerprint image after the instruction receiving module 301 receives the instruction acquisition instruction.
  • the camera can be an auto focus camera.
  • the terminal 300 may further include a determining module, configured to detect the captured image acquired by the camera, determine whether the captured image is included in the acquired captured image, and if the fingerprint image is included, The collected image is transmitted to the first processing module 303; If the fingerprint image is not included, the captured image is reacquired. Specifically, it can be determined whether there is a clear ridge line formed by the clear concave and convex shape in the captured image, and if so, it is determined that the captured image obtained by the camera is a captured image including the fingerprint image.
  • the first processing module 303 is configured to extract a fingerprint image from the acquired image, and preprocess the fingerprint image as a comparison image.
  • the first processing module 303 is specifically configured to:
  • the determining module 304 is configured to determine whether the comparison fingerprint image matches the preset fingerprint image.
  • the comparison fingerprint image and the preset fingerprint image may be considered to be matched. For example, it can be set that if the fingerprint image includes more than 80% of the feature points in the preset fingerprint image, it is considered that the matching fingerprint image matches the preset fingerprint image. If the matching fingerprint image includes 85% of the feature points in the preset fingerprint image, it is considered that the matching fingerprint image matches the preset fingerprint image. If the matching fingerprint image includes 60% of the feature points in the preset fingerprint image, it is considered that the comparison fingerprint image does not match the preset fingerprint image.
  • the feature points may be in a fingerprint image: a breakpoint, a cross point, a burr, a short line, or a small ring.
  • the executing module 305 is configured to perform a preset operation according to a preset condition if the determination result of the determining module is that the matching fingerprint image matches the preset fingerprint image.
  • the preset condition may be: after the fingerprint recognition is performed, the terminal is unlocked, and when the comparison fingerprint image matches the preset fingerprint image, the execution module 305 unlocks the locked state terminal, and displays the terminal display interface before the terminal locks or Displays the main interface of the terminal.
  • the preset condition may also be that after the fingerprint recognition is passed, an application is started, or a certain function in the application is executed, for example, Fingerprint recognition completes fingerprint payment and the like.
  • the technical solution of the embodiment of the present invention acquires a captured image including a fingerprint image by calling a camera of the terminal. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required, so the technical solution provided by the present invention improves the terminal.
  • the utilization of the middle camera eliminates the need to set up a special pattern recognition module in the terminal.
  • the terminal 300 may further include:
  • a second processing module 306 configured to extract a fingerprint image from the original image, and perform pre-processing on the fingerprint image extracted from the original image to obtain a preset fingerprint image
  • the preset fingerprint image is acquired first, and then the instruction receiving module 301 receives the fingerprint collection instruction.
  • the camera 302 is then activated, the finger fingerprint is aligned with the camera 302, and the camera 302 acquires the original image including the fingerprint image, which may be displayed in the display of the terminal 300 in a possible embodiment.
  • the second processing module 306 may perform image processing on the original image by using the following method:
  • the terminal 300 may further include a determining module, configured to detect an original image acquired by the camera, determine whether the acquired original image includes a fingerprint pattern, and if the fingerprint pattern is included, perform The image processing operation does not perform an image processing operation if the fingerprint pattern is not included, and reacquires the original image.
  • a determining module configured to detect an original image acquired by the camera, determine whether the acquired original image includes a fingerprint pattern, and if the fingerprint pattern is included, perform The image processing operation does not perform an image processing operation if the fingerprint pattern is not included, and reacquires the original image.
  • the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire the fingerprint image.
  • the original image of the image is processed to obtain a preset fingerprint image.
  • the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required, so the technical solution provided by the present invention improves the utilization rate of the camera in the terminal, and saves the A special pattern recognition module is set in the terminal, which saves cost.
  • the preset fingerprint image is obtained by setting the fingerprint identification module in the prior art, since the fingerprint identification module is small, in order to obtain complete fingerprint information, multiple acquisitions are required, and the technical solution in the embodiment of the present invention can obtain the fingerprint at one time through the camera. The complete information improves the efficiency of fingerprint recognition.
  • the terminal 300 may further include an encryption module 308 and a decryption module 309 with respect to the terminal 300 shown in FIG.
  • the encryption module 308 is configured to encrypt the preset fingerprint image.
  • the storage module 307 is specifically configured to save the preset fingerprint image encrypted by the encryption module 308.
  • the decryption module 309 is configured to decrypt the encrypted preset fingerprint image stored in the storage module 307.
  • the determining module 304 is specifically configured to compare the comparison fingerprint image with the preset fingerprint image decrypted by the decryption module 309, and determine whether the comparison fingerprint image matches the preset fingerprint image.
  • the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire an original image including a fingerprint image, and obtains a preset fingerprint image after processing. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required.
  • the technical solution provided by the invention improves the utilization rate of the camera in the terminal, and saves the special pattern recognition module in the terminal, thereby saving the cost.
  • the preset fingerprint image is obtained by setting the fingerprint identification module, the fingerprint recognition module is small, and the multiple fingerprints are required to obtain the complete fingerprint information.
  • the technical solution in the embodiment of the present invention can obtain the complete fingerprint at a time through the camera. Information improves fingerprint recognition efficiency.
  • the embodiment of the present invention improves the security of the terminal when using the fingerprint identification by setting the encryption module.
  • FIG. 7 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
  • the terminal 400 in this embodiment includes at least one input device 401, at least one output device 402, at least one processor 403, such as a CPU, and a memory 404.
  • the input device 401, the output device 402, the processor 403, and the memory 404 are connected by a bus 405.
  • the input device 401 includes a camera, and may further include a touch panel, a touch screen, or a touch button, etc.; the fingerprint collection instruction is triggered by the input device.
  • the above memory 404 may be a high speed RAM memory or a non-volatile memory such as a disk memory.
  • the memory 404 is used to store a set of program codes, and the input device 401, the output device 402, and the processor 403 are used to call the program code stored in the memory 404, and perform the following operations:
  • the processor 403 receives the fingerprint acquisition instruction, and then controls the camera in the input device 401 to be in an active state, and acquires a captured image including the fingerprint image through the camera.
  • the camera acquires The captured image can be displayed by output device 402.
  • the processor 403 is further configured to: extract a fingerprint image from the acquired image, and perform pre-processing on the fingerprint image extracted from the acquired image to obtain a comparison fingerprint image. And determining whether the comparison fingerprint image matches the preset fingerprint image; if the comparison fingerprint image matches the preset fingerprint image, performing a preset operation according to the preset condition. For example, an operation of unlocking the terminal is performed.
  • the processor 403 is further configured to control the camera in the input device 401 to be in an active state, and use the camera to acquire an original image including a fingerprint image; in some feasible implementations, the original image acquired by the camera may be output through Device 402 is displayed.
  • the processor 403 is further configured to: extract a fingerprint image from the original image, and perform pre-processing on the fingerprint image extracted from the original image to obtain a preset fingerprint image; and save the preset fingerprint image in In memory 404.
  • the processor 403 is further configured to encrypt the preset fingerprint image, and the encrypted preset fingerprint image is saved in the memory 404.
  • the processor 403 is further configured to: decrypt the encrypted preset fingerprint image stored in the storage module; compare the comparison fingerprint image with the decrypted preset fingerprint image, and determine the comparison fingerprint image and Whether the preset fingerprint images match.
  • the input device 401, the output device 402, and the processor 403 described in the embodiments of the present invention may be described in various embodiments of the fingerprint identification method described in FIG. 1 to FIG. 3b provided by the embodiments of the present invention.
  • the implementation manner of the terminal described in FIG. 4 to FIG. 6 provided by the embodiment of the present invention may also be implemented, and details are not described herein again.
  • the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire an original image including a fingerprint image, and obtains a preset fingerprint image after processing. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required.
  • the technical solution provided by the invention improves the utilization rate of the camera in the terminal, and saves the special pattern recognition module in the terminal, thereby saving the cost.
  • the preset fingerprint image is obtained by setting the fingerprint identification module, the fingerprint recognition module is small, and the multiple fingerprints are required to obtain the complete fingerprint information.
  • the technical solution in the embodiment of the present invention can obtain the complete fingerprint at a time through the camera. Information improves fingerprint recognition efficiency.
  • modules described above as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Abstract

A fingerprint recognition method and a terminal. The fingerprint recognition method comprises: after a fingerprint collection instruction is received, calling a camera of a terminal to acquire a collected image comprising a fingerprint image (101); extracting the fingerprint image from the collected image, and preprocessing the fingerprint image, so as to obtain a compared fingerprint image (102); determining whether the compared fingerprint image matches a pre-set fingerprint image (103); and if the compared fingerprint image matches the pre-set fingerprint image, executing pre-set operations according to pre-set conditions (104). A camera (302) of a terminal (300) is called to acquire a collected image comprising a fingerprint image. Since the camera (302) in the terminal (300) such as a mobile phone and a computer belongs to standard configurations and does not need to be additionally disposed, the utilization of the camera in the terminal is improved, and it is unnecessary to dispose a dedicated mode recognition module in the terminal.

Description

一种指纹识别方法和终端Fingerprint identification method and terminal
本申请要求于2015年6月29日提交中国专利局,申请号为201510369655.0、发明名称为“一种指纹识别方法和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510369655.0, entitled "A Fingerprint Identification Method and Terminal", which is incorporated herein by reference. .
技术领域Technical field
本发明涉及指纹识别技术领域,具体涉及了一种指纹识别方法及终端。The present invention relates to the field of fingerprint recognition technologies, and in particular, to a fingerprint identification method and a terminal.
背景技术Background technique
随着电子技术的发展,为了提高安全性,终端(如手机、平板电脑等)通常集成了指纹识别的功能,通过指纹识别可以对终端进行解锁、启动应用程序或者执行应用程序中的某些功能。比如在终端待机时可以通过指纹识别对锁定状态的终端进行解锁,或者启动终端中的微信、QQ等应用程序、或者通过指纹识别完成指纹支付等应用。With the development of electronic technology, in order to improve security, terminals (such as mobile phones, tablets, etc.) usually integrate fingerprint recognition functions. Through fingerprint recognition, terminals can be unlocked, applications can be launched, or certain functions in the application can be executed. . For example, when the terminal is in standby, the terminal in the locked state can be unlocked by fingerprint recognition, or an application such as WeChat or QQ in the terminal is started, or an application such as fingerprint payment is completed through fingerprint recognition.
目前,终端为了进行指纹识别,通常需要在终端中设置专门的指纹识别模块。Currently, in order to perform fingerprint recognition, a terminal usually needs to set a special fingerprint identification module in the terminal.
本发明的发明人在研究和实践过程中发现,传统指纹识别方案由于需要在终端中设置专门的指纹识别模块,所以成本较高。The inventor of the present invention found in the research and practice that the traditional fingerprint identification scheme has a high cost because it needs to set a special fingerprint identification module in the terminal.
发明内容Summary of the invention
本发明实施例提供一种指纹识别方法和终端,得到新的指纹识别形式,不必增加指纹识别硬件模块,通过摄像头即可实现终端进行指纹识别的功能。。The embodiment of the invention provides a fingerprint identification method and a terminal, and obtains a new fingerprint recognition form, and the function of fingerprint recognition of the terminal can be realized by the camera without adding a fingerprint recognition hardware module. .
本发明实施例第一方面提供了一种指纹识别方法,所述方法包括:A first aspect of the embodiments of the present invention provides a fingerprint identification method, where the method includes:
接收指纹采集指令后,调用终端的摄像头获取包括指纹图像的采集图像;After receiving the fingerprint collection instruction, the camera of the calling terminal acquires a captured image including the fingerprint image;
从所述采集图像中提取所述指纹图像,并对所述指纹图像进行预处理,得到比对指纹图像;Extracting the fingerprint image from the captured image, and preprocessing the fingerprint image to obtain a comparison fingerprint image;
确定所述比对指纹图像与预设指纹图像是否匹配;Determining whether the comparison fingerprint image matches a preset fingerprint image;
若所述比对指纹图像与所述预设指纹图像匹配,则根据预设条件执行预设的操作。 If the comparison fingerprint image matches the preset fingerprint image, the preset operation is performed according to the preset condition.
本发明实施例第二方面提供了一种终端,所述终端包括:A second aspect of the embodiment of the present invention provides a terminal, where the terminal includes:
摄像头,用于在接收采集指纹指令后,获取包括所述指纹图像的采集图像;a camera, configured to acquire a captured image including the fingerprint image after receiving the fingerprint acquisition instruction;
第一处理模块,用于从所述采集图像中提取所述指纹图像,并对所述从所述采集图像中提取的所述指纹图像进行预处理,得到比对指纹图像;a first processing module, configured to extract the fingerprint image from the captured image, and perform pre-processing on the fingerprint image extracted from the captured image to obtain a comparison fingerprint image;
确定模块,用于确定所述比对指纹图像与预设指纹图像是否匹配;a determining module, configured to determine whether the comparison fingerprint image matches a preset fingerprint image;
执行模块,用于若所述确定模块的确定结果为比对指纹图像与所述预设指纹图像匹配,则根据预设条件执行预设的操作。And an execution module, configured to perform a preset operation according to the preset condition if the determination result of the determining module is that the matching fingerprint image matches the preset fingerprint image.
可以看出,本发明实施例的技术方案通过调用终端的摄像头获取包括指纹图像的采集图像,由于手机、电脑等终端中摄像头是标准配置,无需另外设置,因此本发明提供的技术方案提高了终端中摄像头的利用率,省去了在终端中设置专门的模式识别模块。It can be seen that the technical solution of the embodiment of the present invention acquires a captured image including a fingerprint image by calling a camera of the terminal. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required, so the technical solution provided by the present invention improves the terminal. The utilization of the middle camera eliminates the need to set up a special pattern recognition module in the terminal.
附图说明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 flowchart of a fingerprint identification method according to an embodiment of the present invention;
图2是本发明实施例提供的另一种指纹识别方法的流程示意图;2 is a schematic flowchart of another fingerprint identification method according to an embodiment of the present invention;
图3-a是本发明实施例提供的另一种指纹识别方法中设置预设指纹图像的流程示意图;FIG. 3 is a schematic flowchart of setting a preset fingerprint image in another fingerprint identification method according to an embodiment of the present invention; FIG.
图3-b是本发明实施例提供的另一种指纹识别方法中指纹识别过程的流程示意图;FIG. 3 is a schematic flowchart of a fingerprint identification process in another fingerprint identification method according to an embodiment of the present invention; FIG.
图4是本发明实施例提供的一种终端的结构示意图;4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图5是本发明实施例提供的另一种终端的结构示意图;FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure;
图6是本发明实施例提供的另一种终端的结构示意图;FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure;
图7是本发明实施例提供的另一种终端的结构示意图。FIG. 7 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
具体实施方式 detailed description
本发明实施例提供一种指纹识别方法和终端,利用终端中的摄像头对指纹图像进行采集,省去了在终端中设置专门的模式识别模块。The embodiment of the invention provides a fingerprint identification method and a terminal, and uses the camera in the terminal to collect the fingerprint image, thereby eliminating the need to set a special pattern recognition module in the terminal.
为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明的一部分实施例,而非全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the object, the features and the advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包括。例如包括了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Moreover, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units not listed, or, optionally, Other steps or units inherent to these processes, methods, products or equipment.
本发明一种指纹识别方法的一个实施例,包括:接收指纹采集指令后,调用终端的摄像头获取包括指纹图像的采集图像;从所述采集图像中提取所述指纹图像,并对所述从所述采集图像中提取的所述指纹图像进行预处理,得到比对指纹图像;确定所述比对指纹图像与预设指纹图像是否匹配;若所述比对指纹图像与所述预设指纹图像匹配,则根据预设条件执行预设的操作。An embodiment of the fingerprint identification method of the present invention includes: after receiving a fingerprint acquisition instruction, calling a camera of the terminal to acquire a captured image including a fingerprint image; extracting the fingerprint image from the captured image, and extracting the fingerprint image from the captured image Performing preprocessing on the fingerprint image extracted in the captured image to obtain a comparison fingerprint image; determining whether the comparison fingerprint image matches the preset fingerprint image; if the comparison fingerprint image matches the preset fingerprint image , the preset operation is performed according to the preset condition.
首先参见图1,图1是本发明的一个实施例提供的一种指纹识别方法的流程示意图。其中,如图1所示,本发明的一个实施例提供的一种指纹识别方法,可包括:Referring first to FIG. 1, FIG. 1 is a schematic flowchart diagram of a fingerprint identification method according to an embodiment of the present invention. As shown in FIG. 1 , a fingerprint identification method provided by an embodiment of the present invention may include:
101、接收指纹采集指令后,调用终端的摄像头获取包括指纹图像的采集图像。101. After receiving the fingerprint collection instruction, the camera of the calling terminal acquires the collected image including the fingerprint image.
在本发明一些可能的实施方式中,当设定某项应用使用指纹识别功能,在应用中进行指纹识别时,则接收指纹采集指令。In some possible implementation manners of the present invention, when an application is set to use the fingerprint recognition function, and fingerprint recognition is performed in the application, the fingerprint collection instruction is received.
在本发明一些可能的实施方式中,终端的摄像头可以是自动对焦摄像头。In some possible implementations of the invention, the camera of the terminal may be an auto focus camera.
在本发明一些可能的实施方式中,可以对摄像头获取的采集图像进行检测,判断获取的采集图像中是否包括指纹图像,如果包括指纹图像则执行后续操作,如果不包括指纹图像则重新获取采集图像。具体地,可以判断采集图像 中是否有清晰的凹凸形状形成的清晰纹线,如果有,则确定摄像头获取的是包括指纹图像的采集图像。In some possible implementation manners of the present invention, the captured image acquired by the camera may be detected to determine whether the acquired captured image includes a fingerprint image, and if the fingerprint image is included, a subsequent operation is performed, and if the fingerprint image is not included, the acquired image is reacquired. . Specifically, the captured image can be judged Whether there is a clear ridge line formed by a clear concave-convex shape, and if so, it is determined that the camera acquires a captured image including a fingerprint image.
102、从所述采集图像中提取指纹图像,并对所述从所述采集图像中提取的指纹图像进行预处理,得到比对指纹图像。102. Extract a fingerprint image from the collected image, and perform pre-processing on the fingerprint image extracted from the collected image to obtain a comparison fingerprint image.
在本发明一些可能的实施方式中,从所述采集图像中提取指纹图像,并对所述指纹图像进行预处理,得到比对指纹图像,具体地,可以包括:In some possible implementations of the present invention, the fingerprint image is extracted from the captured image, and the fingerprint image is pre-processed to obtain a comparison fingerprint image. Specifically, the method may include:
从采集图像中提取指纹图像;Extracting a fingerprint image from the acquired image;
将所述指纹图像的背景分离,得到第六指纹图像;Separating the background of the fingerprint image to obtain a sixth fingerprint image;
对所述第六指纹图像进行方向信息提取或者纹线提取,得到第七指纹图像;Performing direction information extraction or ridge extraction on the sixth fingerprint image to obtain a seventh fingerprint image;
对所述第七指纹图像进行二值化处理,得到第八指纹图像;Performing a binarization process on the seventh fingerprint image to obtain an eighth fingerprint image;
对所述第八指纹图像进行图像细化及修复,得到第九指纹图像;Performing image refinement and repair on the eighth fingerprint image to obtain a ninth fingerprint image;
对所述第九指纹图像提取特征点,得到第十指纹图像,第十指纹图像为比对指纹图像。Extracting feature points from the ninth fingerprint image to obtain a tenth fingerprint image, and the tenth fingerprint image is a comparison fingerprint image.
需要说明的是,对采集图像进行的图像处理不限于上述图像处理过程,也可以采用其他的方法,只要能从采集图像中获得清晰的比对指纹图像既可。It should be noted that the image processing performed on the acquired image is not limited to the above image processing process, and other methods may be employed as long as a clear contrast fingerprint image can be obtained from the captured image.
103、确定所述比对指纹图像与预设指纹图像是否匹配。103. Determine whether the comparison fingerprint image matches the preset fingerprint image.
在本发明一些可能的实施方式中,当比对指纹图像中包括预设指纹图像中一定比例的特征点就可以认为比对指纹图像与预设指纹图像是匹配的。比如可以设定若比对指纹图像中包括预设指纹图像中80%以上的特征点,就认为比对指纹图像与预设指纹图像是匹配的。若比对指纹图像中包括预设指纹图像中85%的特征点时,就认为比对指纹图像与预设指纹图像匹配。若比对指纹图像中包括预设指纹图像中60%的特征点时,就认为比对指纹图像与预设指纹图像不匹配。其中,特征点可以是指纹图像中的:断点、叉点、毛刺、短线、或者小环等。In some possible implementation manners of the present invention, when the matching fingerprint image includes a certain proportion of feature points in the preset fingerprint image, the comparison fingerprint image and the preset fingerprint image may be considered to be matched. For example, it can be set that if the fingerprint image includes more than 80% of the feature points in the preset fingerprint image, it is considered that the matching fingerprint image matches the preset fingerprint image. If the matching fingerprint image includes 85% of the feature points in the preset fingerprint image, it is considered that the matching fingerprint image matches the preset fingerprint image. If the matching fingerprint image includes 60% of the feature points in the preset fingerprint image, it is considered that the comparison fingerprint image does not match the preset fingerprint image. The feature points may be in a fingerprint image: a breakpoint, a cross point, a burr, a short line, or a small ring.
104、若所述比对指纹图像与所述预设指纹图像匹配,则根据预设条件执行预设的操作。104. If the comparison fingerprint image matches the preset fingerprint image, perform a preset operation according to a preset condition.
其中,预设条件可以是:指纹识别通过后对终端进行解锁,则当比对指纹图像与预设指纹图像匹配时,预设的操作为:对锁定状态的终端进行解锁,显 示终端锁定前终端的显示界面或者显示终端的主界面。当然预设条件也可以是,指纹识别通过后启动某一应用程序,或者执行应用程序中的某项功能,比如通过指纹识别完成指纹支付等。The preset condition may be: unlocking the terminal after the fingerprint recognition is passed, and when the comparison fingerprint image matches the preset fingerprint image, the preset operation is: unlocking the locked state terminal, The terminal displays the display interface of the front terminal or the main interface of the display terminal. Of course, the preset condition may also be that after the fingerprint recognition is passed, an application is started, or a certain function in the application is executed, for example, fingerprint payment is completed through fingerprint recognition.
可以看出,本发明实施例的技术方案通过调用终端的摄像头获取包括指纹图像的采集图像,由于手机、电脑等终端中摄像头是标准配置,无需另外设置,因此本发明提供的技术方案提高了终端中摄像头的利用率,省去了在终端中设置专门的模式识别模块。It can be seen that the technical solution of the embodiment of the present invention acquires a captured image including a fingerprint image by calling a camera of the terminal. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required, so the technical solution provided by the present invention improves the terminal. The utilization of the middle camera eliminates the need to set up a special pattern recognition module in the terminal.
在本发明一些可能的实施方式中,如图2所示,指纹识别方法还可以包括:In some possible implementation manners of the present invention, as shown in FIG. 2, the fingerprint identification method may further include:
1001、接收指纹采集指令后,调用终端的摄像头获取包括指纹图像的原始图像。After receiving the fingerprint acquisition instruction, the camera of the calling terminal acquires an original image including a fingerprint image.
在本发明一些可能的实施方式中,当选定某项应用使用指纹识别功能时,进入指纹设置状态,以获取预设的指纹图像,则接收到指纹采集指令。In some possible implementation manners of the present invention, when an application is selected to use the fingerprint recognition function, the fingerprint setting state is entered to obtain a preset fingerprint image, and the fingerprint collection instruction is received.
其中,摄像头可以是终端中的自动对焦摄像头,当接收到指纹采集指令后,启动终端的摄像头,手指指纹对准摄像头,摄像头获取包括指纹图像的原始图像,在可能的实施方式中可以将获取的原始图像在预览框中显示出来。需要说明的是,指纹是指人的手指末端正面皮肤上凸凹不平产生的纹线。纹线有规律的排列形成不同的纹型。指纹具有不变性、唯一性和方便性,可用于生物特征识别。在各种应用中通过使用指纹信息可以提高安全性。The camera may be an autofocus camera in the terminal. After receiving the fingerprint acquisition command, the camera of the terminal is activated, the finger fingerprint is aligned with the camera, and the camera acquires an original image including the fingerprint image, which may be acquired in a possible implementation manner. The original image is displayed in the preview box. It should be noted that the fingerprint refers to a line generated by unevenness on the front surface of the finger end of a person's finger. The lines are regularly arranged to form different patterns. Fingerprints are invariant, unique and convenient and can be used for biometric identification. Security can be improved by using fingerprint information in various applications.
在实际应用中,可以设定终端中的某个应用使用指纹识别功能,比如,可以设定使用指纹识别对终端进行解锁、或者使用指纹识别启动终端的某个应用、或者使用指纹识别完成指纹支付等。In an actual application, an application in the terminal may be used to use the fingerprint recognition function. For example, the terminal may be unlocked by using fingerprint recognition, or an application of the terminal may be activated by using fingerprint recognition, or fingerprint payment may be completed by using fingerprint recognition. Wait.
在本发明一些可能的实施方式中,当选定某项应用使用指纹识别功能时,进入指纹设置状态,以获取预设的指纹图像,此时,使用摄像头对用于指纹识别的手指的指纹进行拍照,获取包括指纹图像的原始图像。In some possible implementation manners of the present invention, when an application is selected to use the fingerprint recognition function, the fingerprint setting state is entered to obtain a preset fingerprint image. At this time, the fingerprint of the finger used for fingerprint recognition is performed by using the camera. Take a photo and get the original image including the fingerprint image.
在本发明一些可能的实施方式中,可以设置多个应用使用指纹识别功能,具体地,每个应用对应不同的指纹。In some possible implementation manners of the present invention, multiple applications may be set to use a fingerprint recognition function, and specifically, each application corresponds to a different fingerprint.
在本发明一些可能的实施方式中,可以对摄像头获取的原始图像进行检测,判断获取的原始图像中是否包括指纹图像,如果包括指纹图像则对其进行 图像处理操作,如果不包括指纹图像则不对其进行图像处理操作。具体地,可以判断原始图像中是否有清晰的凹凸形状形成的清晰纹线,如果有,则确定摄像头获取的是包括指纹图像的原始图像。In some possible implementation manners of the present invention, the original image acquired by the camera may be detected to determine whether the captured original image includes a fingerprint image, and if the fingerprint image is included, The image processing operation does not perform an image processing operation if the fingerprint image is not included. Specifically, it can be determined whether there is a clear ridge line formed by a clear concave-convex shape in the original image, and if so, it is determined that the camera acquires the original image including the fingerprint image.
1002、从所述原始图像中提取所述指纹图像,并对所述从所述原始图像中提取的所述指纹图像进行预处理,得到预设指纹图像。1002. Extract the fingerprint image from the original image, and perform pre-processing on the fingerprint image extracted from the original image to obtain a preset fingerprint image.
具体地,可以利用终端的CPU对原始图像进行图像处理,得到预设指纹图像。Specifically, the original image may be image processed by the CPU of the terminal to obtain a preset fingerprint image.
在本发明一些可能的实施方式中,可以采用如下的方法对原始图像进行图像处理:In some possible implementation manners of the present invention, the original image may be image processed by the following method:
从原始图像中提取指纹图像;Extracting a fingerprint image from the original image;
将所述从原始图像中提取的指纹图像的背景分离,得到第一指纹图像;Separating the background of the fingerprint image extracted from the original image to obtain a first fingerprint image;
对所述第一指纹图像进行方向信息提取或者纹线提取,得到第二指纹图像;Performing direction information extraction or ridge extraction on the first fingerprint image to obtain a second fingerprint image;
对所述第二指纹图像进行二值化处理,得到第三指纹图像;Performing a binarization process on the second fingerprint image to obtain a third fingerprint image;
对所述第三指纹图像进行图像细化及修复,得到第四指纹图像;Performing image refinement and repair on the third fingerprint image to obtain a fourth fingerprint image;
对所述第四指纹图像提取特征点,得到第五指纹图像,第五指纹图像为预设指纹图像。Extracting feature points from the fourth fingerprint image to obtain a fifth fingerprint image, where the fifth fingerprint image is a preset fingerprint image.
需要说明的是,对原始图像进行的图像处理不限于上述图像处理过程,也可以采用其他的方法,只要能从原始图像中获得清晰的预设指纹图像既可。It should be noted that the image processing performed on the original image is not limited to the above image processing process, and other methods may be employed as long as a clear preset fingerprint image can be obtained from the original image.
在本发明一些可能的实施方式中,可以对摄像头获取的原始图像进行检测,判断获取的原始图像中是否包括指纹图像,如果包括指纹图像则对其进行图像处理操作,如果不包括指纹图像则重新获取原始图像。In some possible implementation manners of the present invention, the original image acquired by the camera may be detected to determine whether the captured original image includes a fingerprint image, and if the fingerprint image is included, the image processing operation is performed, if the fingerprint image is not included, Get the original image.
1003、将所述预设指纹图像保存在存储模块中。1003. Save the preset fingerprint image in a storage module.
在本发明一些可能的实施方式中,可以对预设指纹图片进行加密,加密后保存到存储模块中。In some possible implementation manners of the present invention, the preset fingerprint picture may be encrypted, encrypted, and saved to the storage module.
可以看出,本发明实施例的技术方案使用终端中的摄像头获取包括指纹图像的原始图像,经处理后得到预设指纹图像,由于手机、电脑等终端中摄像头是标准配置,无需另外设置,因此本发明提供的技术方案提高了终端中摄像头的利用率,省去了在终端中设置专门的模式识别模块,节约了成本。另外,现 有技术通过设置指纹识别模块获取预设指纹图像时,由于指纹识别模块较小,为了得到完整的指纹信息需要进行多次采集,本发明实施例中的技术方案通过摄像头可以一次获取指纹的完整信息,提高了指纹识别效率。It can be seen that the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire an original image including a fingerprint image, and obtains a preset fingerprint image after processing. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required. The technical solution provided by the invention improves the utilization rate of the camera in the terminal, and saves the special pattern recognition module in the terminal, thereby saving the cost. In addition, now When a preset fingerprint image is obtained by setting a fingerprint identification module, since the fingerprint identification module is small, in order to obtain complete fingerprint information, multiple acquisitions are required, and the technical solution in the embodiment of the present invention can obtain complete information of the fingerprint at a time through the camera. Improve the efficiency of fingerprint recognition.
为便于更好的理解和实施本发明实施例的上述方案,下面通过一些具体的应用场景进行举例说明。To facilitate a better understanding and implementation of the foregoing solution of the embodiments of the present invention, the following is exemplified by some specific application scenarios.
在该实施例中,预设条件为:当指纹识别通过时,使用指纹识别对终端进行解锁。预设的操作为:终端由锁定状态解锁。首先需要设置预设指纹图像,当需要进行解锁时,获取采集图像,得到比对指纹图像,确定比对指纹图像与预设指纹图像是否匹配,若匹配则对终端执行解锁操作,显示锁定前终端的显示界面或者显示终端的主界面。In this embodiment, the preset condition is: when the fingerprint recognition is passed, the terminal is unlocked using fingerprint recognition. The preset operation is: the terminal is unlocked by the locked state. First, a preset fingerprint image needs to be set. When the unlocking is needed, the acquired image is acquired, and the fingerprint image is obtained to determine whether the matching fingerprint image matches the preset fingerprint image. If the matching is performed, the terminal performs an unlocking operation to display the terminal before locking. The display interface or the main interface of the display terminal.
请参见图3-a和图3-b,其中,图3-a为本实施例设置预设指纹图像的流程示意图,图3-b为本实施例指纹识别过程的流程示意图。图3-a中设置预设指纹图像的流程示意图包括:Referring to FIG. 3-a and FIG. 3-b, FIG. 3-a is a schematic flowchart of setting a preset fingerprint image in the embodiment, and FIG. 3-b is a schematic flowchart of the fingerprint identification process in the embodiment. The flow diagram of setting a preset fingerprint image in Figure 3-a includes:
201、接收指令采集指令。201. Receive an instruction acquisition instruction.
202、调用终端的摄像头,摄像头获取当前图像。202. Call the camera of the terminal, and the camera acquires the current image.
203、确定摄像头获取的当前图像中是否包括指纹图像?203. Determine whether a fingerprint image is included in the current image acquired by the camera.
若否,则执行202;若是,则执行204。If no, execute 202; if yes, execute 204.
204、将摄像头获取的当前图像作为原始图像。204. Use the current image acquired by the camera as the original image.
205、对所述原始图像进行图像处理,从当前图像中提取指纹图像作为预设指纹图像。205. Perform image processing on the original image, and extract a fingerprint image from the current image as a preset fingerprint image.
206、对所述预设指纹图像进行加密处理。206. Perform encryption processing on the preset fingerprint image.
207、将加密处理后的预设指纹图像保存在存储模块中。207. Store the encrypted fingerprint image in the storage module.
当终端被锁定,需要进行解锁时,按照图3-b所示流程进行指纹识别验证。图3-b中验证指纹图像的流程示意图包括:When the terminal is locked and needs to be unlocked, perform fingerprint identification verification according to the flow shown in Figure 3-b. The flow diagram of verifying the fingerprint image in Figure 3-b includes:
208、接收指纹采集指令。208. Receive a fingerprint collection instruction.
209、调用终端的摄像头,摄像头启动后获取当前图像。209. Call the camera of the terminal, and obtain the current image after the camera is started.
210、确定摄像头获取的当前图像中是否包括指纹图像?210. Determine whether the fingerprint image is included in the current image acquired by the camera.
若是,则执行211;若否,则执行209。 If yes, execute 211; if no, execute 209.
211、将摄像头获取的当前图像作为采集图像。211. Use the current image acquired by the camera as the collected image.
212、对所述采集图像进行图像处理,从采集图像中提取指纹图像作为比对指纹图像。212. Perform image processing on the collected image, and extract a fingerprint image from the collected image as a comparison fingerprint image.
213、从存储模块中读取加密的预设指纹图像。213. Read an encrypted preset fingerprint image from the storage module.
214、对加密的预设指纹图像进行解密。214. Decrypt the encrypted preset fingerprint image.
215、判断比对指纹图像与解密后的预设指纹图像是否匹配。215. Determine whether the matching fingerprint image matches the decrypted preset fingerprint image.
216、若所述比对指纹图像与预设的指纹图像匹配,则根据预设条件对终端进行解锁。216. If the comparison fingerprint image matches the preset fingerprint image, unlock the terminal according to the preset condition.
解锁后,显示锁定前终端的显示界面或者显示终端的主界面。After unlocking, the display interface of the terminal before locking or the main interface of the display terminal is displayed.
可以看出,本发明实施例的技术方案使用终端中的摄像头获取包括指纹图像的原始图像,经处理后得到预设指纹图像,由于手机、电脑等终端中摄像头是标准配置,无需另外设置,因此本发明提供的技术方案提高了终端中摄像头的利用率,省去了在终端中设置专门的模式识别模块,节约了成本。另外,现有技术通过设置指纹识别模块获取预设指纹图像时,由于指纹识别模块较小,为了得到完整的指纹信息需要进行多次采集,本发明实施例中的技术方案通过摄像头可以一次获取指纹的完整信息,提高了指纹识别效率。It can be seen that the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire an original image including a fingerprint image, and obtains a preset fingerprint image after processing. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required. The technical solution provided by the invention improves the utilization rate of the camera in the terminal, and saves the special pattern recognition module in the terminal, thereby saving the cost. In addition, when the preset fingerprint image is obtained by setting the fingerprint identification module in the prior art, since the fingerprint identification module is small, in order to obtain complete fingerprint information, multiple acquisitions are required, and the technical solution in the embodiment of the present invention can obtain the fingerprint at one time through the camera. The complete information improves the efficiency of fingerprint recognition.
参见图4,图4是本发明的一个实施例提供的一种终端的结构示意图,其中,如图4所示,本发明的一个实施例提供的一种终端300可以包括:Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 4, a terminal 300 according to an embodiment of the present invention may include:
指令接收模块301,用于接收指纹采集指令。The instruction receiving module 301 is configured to receive a fingerprint collection instruction.
在可能的实施方式中,若采用指纹识别对终端进行解锁,可以设定当终端黑屏待机时,通过按压终端的电源键激活终端,同时触发发出指纹采集指令,指令接收模块接收终端发出的所述指纹采集指令。In a possible implementation manner, if the terminal is unlocked by using fingerprint identification, when the terminal black screen is in standby, the terminal is activated by pressing the power button of the terminal, and the fingerprint collection instruction is triggered, and the instruction receiving module receives the Fingerprint acquisition instructions.
摄像头302,用于所述指令接收模块301接收指令采集指令后,获取包括指纹图像的采集图像。The camera 302 is configured to acquire the captured image including the fingerprint image after the instruction receiving module 301 receives the instruction acquisition instruction.
需要说明的是,摄像头可以是自动对焦摄像头。It should be noted that the camera can be an auto focus camera.
在本发明一些可能的实施方式中,终端300还可以进一步地包括判断模块,用于对摄像头获取的采集图像进行检测,判断获取的采集图像中是否包括指纹图像,如果包括指纹图像,则将获取的采集图像传给第一处理模块303; 如果不包括指纹图像,则重新获取采集图像。具体地,可以判断采集图像中是否有清晰的凹凸形状形成的清晰纹线,如果有,则确定摄像头获取的是包括指纹图像的采集图像。In some possible implementation manners of the present invention, the terminal 300 may further include a determining module, configured to detect the captured image acquired by the camera, determine whether the captured image is included in the acquired captured image, and if the fingerprint image is included, The collected image is transmitted to the first processing module 303; If the fingerprint image is not included, the captured image is reacquired. Specifically, it can be determined whether there is a clear ridge line formed by the clear concave and convex shape in the captured image, and if so, it is determined that the captured image obtained by the camera is a captured image including the fingerprint image.
第一处理模块303,用于从所述采集图像中提取指纹图像,预处理后作为比对指纹图像。The first processing module 303 is configured to extract a fingerprint image from the acquired image, and preprocess the fingerprint image as a comparison image.
在本发明一些可能的实施方式中,第一处理模块303具体用于,In some possible implementation manners of the present invention, the first processing module 303 is specifically configured to:
从采集图像中提取指纹图像;Extracting a fingerprint image from the acquired image;
将所述指纹图像的背景分离,得到第六指纹图像;Separating the background of the fingerprint image to obtain a sixth fingerprint image;
对所述第六指纹图像进行方向信息提取或者纹线提取,得到第七指纹图像;Performing direction information extraction or ridge extraction on the sixth fingerprint image to obtain a seventh fingerprint image;
对所述第七指纹图像进行二值化处理,得到第八指纹图像;Performing a binarization process on the seventh fingerprint image to obtain an eighth fingerprint image;
对所述第八指纹图像进行图像细化及修复,得到第九指纹图像;Performing image refinement and repair on the eighth fingerprint image to obtain a ninth fingerprint image;
对所述第九指纹图像提取特征点,得到第十指纹图像,第十指纹图像为比对指纹图像。Extracting feature points from the ninth fingerprint image to obtain a tenth fingerprint image, and the tenth fingerprint image is a comparison fingerprint image.
确定模块304,用于判断所述比对指纹图像与预设指纹图像是否匹配。The determining module 304 is configured to determine whether the comparison fingerprint image matches the preset fingerprint image.
在本发明一些可能的实施方式中,当比对指纹图像中包括预设指纹图像中一定比例的特征点就可以认为比对指纹图像与预设指纹图像是匹配的。比如可以设定若比对指纹图像中包括预设指纹图像中80%以上的特征点,就认为比对指纹图像与预设指纹图像是匹配的。若比对指纹图像中包括预设指纹图像中85%的特征点时,就认为比对指纹图像与预设指纹图像匹配。若比对指纹图像中包括预设指纹图像中60%的特征点时,就认为比对指纹图像与预设指纹图像不匹配。其中,特征点可以是指纹图像中的:断点、叉点、毛刺、短线、或者小环等。In some possible implementation manners of the present invention, when the matching fingerprint image includes a certain proportion of feature points in the preset fingerprint image, the comparison fingerprint image and the preset fingerprint image may be considered to be matched. For example, it can be set that if the fingerprint image includes more than 80% of the feature points in the preset fingerprint image, it is considered that the matching fingerprint image matches the preset fingerprint image. If the matching fingerprint image includes 85% of the feature points in the preset fingerprint image, it is considered that the matching fingerprint image matches the preset fingerprint image. If the matching fingerprint image includes 60% of the feature points in the preset fingerprint image, it is considered that the comparison fingerprint image does not match the preset fingerprint image. The feature points may be in a fingerprint image: a breakpoint, a cross point, a burr, a short line, or a small ring.
执行模块305,用于若所述确定模块的判断结果为比对指纹图像与预设指纹图像匹配,则根据预设条件执行预设的操作。The executing module 305 is configured to perform a preset operation according to a preset condition if the determination result of the determining module is that the matching fingerprint image matches the preset fingerprint image.
其中,预设条件可以是:指纹识别通过后对终端进行解锁,则当比对指纹图像与预设指纹图像匹配时,执行模块305对锁定状态的终端进行解锁,显示终端锁定前终端显示界面或者显示终端的主界面。当然预设条件也可以是,指纹识别通过后启动某一应用程序,或者执行应用程序中的某项功能,比如通过 指纹识别完成指纹支付等。The preset condition may be: after the fingerprint recognition is performed, the terminal is unlocked, and when the comparison fingerprint image matches the preset fingerprint image, the execution module 305 unlocks the locked state terminal, and displays the terminal display interface before the terminal locks or Displays the main interface of the terminal. Of course, the preset condition may also be that after the fingerprint recognition is passed, an application is started, or a certain function in the application is executed, for example, Fingerprint recognition completes fingerprint payment and the like.
可以看出,本发明实施例的技术方案通过调用终端的摄像头获取包括指纹图像的采集图像,由于手机、电脑等终端中摄像头是标准配置,无需另外设置,因此本发明提供的技术方案提高了终端中摄像头的利用率,省去了在终端中设置专门的模式识别模块。It can be seen that the technical solution of the embodiment of the present invention acquires a captured image including a fingerprint image by calling a camera of the terminal. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required, so the technical solution provided by the present invention improves the terminal. The utilization of the middle camera eliminates the need to set up a special pattern recognition module in the terminal.
在本发明一些可能的实施方式中,如图5所示,相对于图4终端300还可以包括:In some possible implementation manners of the present invention, as shown in FIG. 5, the terminal 300 may further include:
第二处理模块306,用于从所述原始图像中提取指纹图像,并对所述从所述原始图像中提取的指纹图像进行预处理,得到预设指纹图像;a second processing module 306, configured to extract a fingerprint image from the original image, and perform pre-processing on the fingerprint image extracted from the original image to obtain a preset fingerprint image;
需要说明的是,在本发明一些可能的实施方式中,当选定某项应用使用指纹识别功能时,先获取预设的指纹图像,这时指令接收模块301接收到指纹采集指令。然后摄像头302启动,手指指纹对准摄像头302,摄像头302获取包括指纹图像的原始图像,在可能的实施方式中可以将获取的原始图像在终端300的显示屏中显示出来。在本发明一些可能的实施方式中,第二处理模块306可以采用如下的方法对原始图像进行图像处理:It should be noted that, in some possible implementation manners of the present invention, when an application is selected to use the fingerprint recognition function, the preset fingerprint image is acquired first, and then the instruction receiving module 301 receives the fingerprint collection instruction. The camera 302 is then activated, the finger fingerprint is aligned with the camera 302, and the camera 302 acquires the original image including the fingerprint image, which may be displayed in the display of the terminal 300 in a possible embodiment. In some possible implementation manners of the present invention, the second processing module 306 may perform image processing on the original image by using the following method:
从原始图像中提取指纹图像;Extracting a fingerprint image from the original image;
将所述指纹图像的背景分离,得到第一指纹图像;Separating the background of the fingerprint image to obtain a first fingerprint image;
对所述第一指纹图像进行方向信息提取或者纹线提取,得到第二指纹图像;Performing direction information extraction or ridge extraction on the first fingerprint image to obtain a second fingerprint image;
对所述第二指纹图像进行二值化处理,得到第三指纹图像;Performing a binarization process on the second fingerprint image to obtain a third fingerprint image;
对所述第三指纹图像进行图像细化及修复,得到第四指纹图像;Performing image refinement and repair on the third fingerprint image to obtain a fourth fingerprint image;
对所述第四指纹图像提取特征点,得到第五指纹图像,第五指纹图像为预设指纹图像。Extracting feature points from the fourth fingerprint image to obtain a fifth fingerprint image, where the fifth fingerprint image is a preset fingerprint image.
在本发明一些可能的实施方式中,终端300还可以进一步地包括判断模块,用于对摄像头获取的原始图像进行检测,判断获取的原始图像中是否包括指纹图案,如果包括指纹图案则对其进行图像处理操作,如果不包括指纹图案则不对其进行图像处理操作,重新获取原始图像。In some possible implementation manners of the present invention, the terminal 300 may further include a determining module, configured to detect an original image acquired by the camera, determine whether the acquired original image includes a fingerprint pattern, and if the fingerprint pattern is included, perform The image processing operation does not perform an image processing operation if the fingerprint pattern is not included, and reacquires the original image.
可以看出,本发明实施例的技术方案使用终端中的摄像头获取包括指纹图 像的原始图像,经处理后得到预设指纹图像,由于手机、电脑等终端中摄像头是标准配置,无需另外设置,因此本发明提供的技术方案提高了终端中摄像头的利用率,省去了在终端中设置专门的模式识别模块,节约了成本。另外,现有技术通过设置指纹识别模块获取预设指纹图像时,由于指纹识别模块较小,为了得到完整的指纹信息需要进行多次采集,本发明实施例中的技术方案通过摄像头可以一次获取指纹的完整信息,提高了指纹识别效率。It can be seen that the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire the fingerprint image. The original image of the image is processed to obtain a preset fingerprint image. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required, so the technical solution provided by the present invention improves the utilization rate of the camera in the terminal, and saves the A special pattern recognition module is set in the terminal, which saves cost. In addition, when the preset fingerprint image is obtained by setting the fingerprint identification module in the prior art, since the fingerprint identification module is small, in order to obtain complete fingerprint information, multiple acquisitions are required, and the technical solution in the embodiment of the present invention can obtain the fingerprint at one time through the camera. The complete information improves the efficiency of fingerprint recognition.
在本发明一些可能的实施方式中,如图6所示,相对于图5所示的终端300,终端300可以进一步地包括加密模块308和解密模块309。In some possible embodiments of the present invention, as shown in FIG. 6, the terminal 300 may further include an encryption module 308 and a decryption module 309 with respect to the terminal 300 shown in FIG.
其中,加密模块308,用于对预设指纹图像进行加密。相应地,存储模块307具体用于,保存加密模块308加密后的预设指纹图像。The encryption module 308 is configured to encrypt the preset fingerprint image. Correspondingly, the storage module 307 is specifically configured to save the preset fingerprint image encrypted by the encryption module 308.
解密模块309,用于对保存在存储模块307中的加密后的预设指纹图像进行解密。相应地,确定模块304具体用于,将比对指纹图像与解密模块309解密后的预设指纹图像进行比较,判断所述比对指纹图像与所述预设指纹图像是否匹配。The decryption module 309 is configured to decrypt the encrypted preset fingerprint image stored in the storage module 307. Correspondingly, the determining module 304 is specifically configured to compare the comparison fingerprint image with the preset fingerprint image decrypted by the decryption module 309, and determine whether the comparison fingerprint image matches the preset fingerprint image.
可以看出,本发明实施例的技术方案使用终端中的摄像头获取包括指纹图像的原始图像,经处理后得到预设指纹图像,由于手机、电脑等终端中摄像头是标准配置,无需另外设置,因此本发明提供的技术方案提高了终端中摄像头的利用率,省去了在终端中设置专门的模式识别模块,节约了成本。现有技术通过设置指纹识别模块获取预设指纹图像时,由于指纹识别模块较小,为了得到完整的指纹信息需要进行多次采集,本发明实施例中的技术方案通过摄像头可以一次获取指纹的完整信息,提高了指纹识别效率。另外,本发明实施例通过设置加密模块提高了终端使用指纹识别时的安全性。It can be seen that the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire an original image including a fingerprint image, and obtains a preset fingerprint image after processing. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required. The technical solution provided by the invention improves the utilization rate of the camera in the terminal, and saves the special pattern recognition module in the terminal, thereby saving the cost. When the preset fingerprint image is obtained by setting the fingerprint identification module, the fingerprint recognition module is small, and the multiple fingerprints are required to obtain the complete fingerprint information. The technical solution in the embodiment of the present invention can obtain the complete fingerprint at a time through the camera. Information improves fingerprint recognition efficiency. In addition, the embodiment of the present invention improves the security of the terminal when using the fingerprint identification by setting the encryption module.
请参阅图7,图7为本发明另一实施例提供的终端的结构示意图。如图7所示,本实施例中终端400包括:包括至少一个输入装置401,至少一个输出装置402,至少一个处理器403,例如CPU;和存储器404。上述输入装置401、输出装置402、处理器403和存储器404通过总线405连接。 Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a terminal according to another embodiment of the present invention. As shown in FIG. 7, the terminal 400 in this embodiment includes at least one input device 401, at least one output device 402, at least one processor 403, such as a CPU, and a memory 404. The input device 401, the output device 402, the processor 403, and the memory 404 are connected by a bus 405.
其中,上述输入装置401包括摄像头,还可以包括触控面板、触控屏、或者触控按钮等;通过输入装置触发指纹采集指令。The input device 401 includes a camera, and may further include a touch panel, a touch screen, or a touch button, etc.; the fingerprint collection instruction is triggered by the input device.
上述存储器404可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器404用于存储一组程序代码,上述输入装置401、输出装置402和处理器403用于调用存储器404中存储的程序代码,执行如下操作:The above memory 404 may be a high speed RAM memory or a non-volatile memory such as a disk memory. The memory 404 is used to store a set of program codes, and the input device 401, the output device 402, and the processor 403 are used to call the program code stored in the memory 404, and perform the following operations:
在输入装置401触发指纹采集指令之后,处理器403接收指纹采集指令,然后控制输入装置401中的摄像头处于工作状态,通过摄像头获取包括指纹图像的采集图像,在一些可行的实施方式中,摄像头获取的采集图像可以通过输出装置402显示出来。After the input device 401 triggers the fingerprint collection instruction, the processor 403 receives the fingerprint acquisition instruction, and then controls the camera in the input device 401 to be in an active state, and acquires a captured image including the fingerprint image through the camera. In some feasible implementation manners, the camera acquires The captured image can be displayed by output device 402.
处理器403还用于,从所述采集图像中提取指纹图像,并对所述从所述采集图像中提取的指纹图像进行预处理,得到比对指纹图像。以及判断所述比对指纹图像与预设指纹图像是否匹配;若所述比对指纹图像与预设指纹图像匹配,则根据预设条件执行预设的操作。比如执行对终端进行解锁的操作等。The processor 403 is further configured to: extract a fingerprint image from the acquired image, and perform pre-processing on the fingerprint image extracted from the acquired image to obtain a comparison fingerprint image. And determining whether the comparison fingerprint image matches the preset fingerprint image; if the comparison fingerprint image matches the preset fingerprint image, performing a preset operation according to the preset condition. For example, an operation of unlocking the terminal is performed.
在可行的实施方式中,处理器403还用于控制输入装置401中的摄像头处于工作状态,利用摄像头获取包括指纹图像的原始图像;在一些可行的实施方式中,摄像头获取的原始图像可以通过输出装置402显示出来。In a feasible implementation, the processor 403 is further configured to control the camera in the input device 401 to be in an active state, and use the camera to acquire an original image including a fingerprint image; in some feasible implementations, the original image acquired by the camera may be output through Device 402 is displayed.
处理器403还用于,从所述原始图像中提取指纹图像,并对所述从所述原始图像中提取的指纹图像进行预处理,得到预设指纹图像;将所述预设指纹图像保存在存储器404中。The processor 403 is further configured to: extract a fingerprint image from the original image, and perform pre-processing on the fingerprint image extracted from the original image to obtain a preset fingerprint image; and save the preset fingerprint image in In memory 404.
在可行的实施方式中,处理器403还可用于对预设指纹图像进行加密,加密后的预设指纹图像保存在存储器404中。In a feasible implementation manner, the processor 403 is further configured to encrypt the preset fingerprint image, and the encrypted preset fingerprint image is saved in the memory 404.
处理器403,还用于对保存在存储模块中的加密后的预设指纹图像进行解密;将比对指纹图像与所述解密后的预设指纹图像进行比较,判断所述比对指纹图像与所述预设指纹图像是否匹配。The processor 403 is further configured to: decrypt the encrypted preset fingerprint image stored in the storage module; compare the comparison fingerprint image with the decrypted preset fingerprint image, and determine the comparison fingerprint image and Whether the preset fingerprint images match.
在可行的实施方式中,处理器In a possible implementation, the processor
从原始图像中提取指纹图像;Extracting a fingerprint image from the original image;
将所述从原始图像中提取的指纹图像的背景分离,得到第一指纹图像;Separating the background of the fingerprint image extracted from the original image to obtain a first fingerprint image;
对所述第一指纹图像进行方向信息提取或者纹线提取,得到第二指纹图 像;Performing direction information extraction or ridge extraction on the first fingerprint image to obtain a second fingerprint image image;
对所述第二指纹图像进行二值化处理,得到第三指纹图像;Performing a binarization process on the second fingerprint image to obtain a third fingerprint image;
对所述第三指纹图像进行图像细化及修复,得到第四指纹图像;Performing image refinement and repair on the third fingerprint image to obtain a fourth fingerprint image;
对所述第四指纹图像提取特征点,得到第五指纹图像,第五指纹图像为预设指纹图像。Extracting feature points from the fourth fingerprint image to obtain a fifth fingerprint image, where the fifth fingerprint image is a preset fingerprint image.
具体实现中,本发明实施例中所描述的输入装置401、输出装置402和处理器403可执行本发明实施例提供的图1至图3b中所描述的指纹识别方法的各实施例中所描述的实现方式,也可执行本发明实施例提供的图4至图6中所描述的终端的实现方式,在此不再赘述。In a specific implementation, the input device 401, the output device 402, and the processor 403 described in the embodiments of the present invention may be described in various embodiments of the fingerprint identification method described in FIG. 1 to FIG. 3b provided by the embodiments of the present invention. The implementation manner of the terminal described in FIG. 4 to FIG. 6 provided by the embodiment of the present invention may also be implemented, and details are not described herein again.
可以看出,本发明实施例的技术方案使用终端中的摄像头获取包括指纹图像的原始图像,经处理后得到预设指纹图像,由于手机、电脑等终端中摄像头是标准配置,无需另外设置,因此本发明提供的技术方案提高了终端中摄像头的利用率,省去了在终端中设置专门的模式识别模块,节约了成本。现有技术通过设置指纹识别模块获取预设指纹图像时,由于指纹识别模块较小,为了得到完整的指纹信息需要进行多次采集,本发明实施例中的技术方案通过摄像头可以一次获取指纹的完整信息,提高了指纹识别效率。It can be seen that the technical solution of the embodiment of the present invention uses the camera in the terminal to acquire an original image including a fingerprint image, and obtains a preset fingerprint image after processing. Since the camera in the terminal such as a mobile phone or a computer is a standard configuration, no additional setting is required. The technical solution provided by the invention improves the utilization rate of the camera in the terminal, and saves the special pattern recognition module in the terminal, thereby saving the cost. When the preset fingerprint image is obtained by setting the fingerprint identification module, the fingerprint recognition module is small, and the multiple fingerprints are required to obtain the complete fingerprint information. The technical solution in the embodiment of the present invention can obtain the complete fingerprint at a time through the camera. Information improves fingerprint recognition efficiency.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
上述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described above as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
因此,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 Therefore, the above embodiments are only intended to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the spirit of the technical solutions of the embodiments of the present invention. And scope.

Claims (10)

  1. 一种指纹识别方法,其特征在于,所述方法包括:A fingerprint identification method, the method comprising:
    接收指纹采集指令后,调用终端的摄像头获取包括指纹图像的采集图像;After receiving the fingerprint collection instruction, the camera of the calling terminal acquires a captured image including the fingerprint image;
    从所述采集图像中提取所述指纹图像,并对所述指纹图像进行预处理,得到比对指纹图像;Extracting the fingerprint image from the captured image, and preprocessing the fingerprint image to obtain a comparison fingerprint image;
    确定所述比对指纹图像与预设指纹图像是否匹配;Determining whether the comparison fingerprint image matches a preset fingerprint image;
    若所述比对指纹图像与所述预设指纹图像匹配,则根据预设条件执行预设的操作。If the comparison fingerprint image matches the preset fingerprint image, the preset operation is performed according to the preset condition.
  2. 根据权利要求1所述的方法,其特征在于,所述接收指纹采集指令后,调用终端的摄像头获取包括指纹图像的采集图像之前,所述方法还包括:获取所述预设指纹图像的步骤,具体包括:The method according to claim 1, wherein after the receiving the fingerprint acquisition command, the camera of the calling terminal acquires the captured image including the fingerprint image, the method further includes: acquiring the preset fingerprint image, Specifically include:
    接收指纹采集指令后,调用终端的摄像头获取包括所述指纹图像的原始图像;After receiving the fingerprint collection instruction, the camera of the calling terminal acquires an original image including the fingerprint image;
    从所述原始图像中提取所述指纹图像,并对所述从所述原始图像中提取的所述指纹图像进行预处理,得到预设指纹图像;Extracting the fingerprint image from the original image, and preprocessing the fingerprint image extracted from the original image to obtain a preset fingerprint image;
    将所述预设指纹图像保存在存储模块中。The preset fingerprint image is saved in the storage module.
  3. 根据权利要求2所述的方法,其特征在于,所述将所述预设指纹图像保存在存储模块中,包括:The method according to claim 2, wherein the saving the preset fingerprint image in the storage module comprises:
    对所述预设指纹图像进行加密,Encrypting the preset fingerprint image,
    将加密后的预设指纹图像保存在存储模块中。The encrypted preset fingerprint image is saved in the storage module.
  4. 根据权利要求3所述的方法,其特征在于,所述判断所述比对指纹图像与预设指纹图像是否匹配;包括:The method according to claim 3, wherein the determining whether the comparison fingerprint image matches a preset fingerprint image comprises:
    对保存在存储模块中的加密后的预设指纹图像进行解密;Decrypting the encrypted preset fingerprint image saved in the storage module;
    将比对指纹图像与所述解密后的预设指纹图像进行比较,确定所述比对指纹图像与所述预设指纹图像是否匹配。Comparing the comparison fingerprint image with the decrypted preset fingerprint image to determine whether the comparison fingerprint image matches the preset fingerprint image.
  5. 根据权利要求2所述的方法,其特征在于,所述从所述原始图像中提取所述指纹图像,并对所述从所述原始图像中提取的所述指纹图像进行预处理,得到预设指纹图像;包括: The method according to claim 2, wherein said extracting said fingerprint image from said original image, and preprocessing said fingerprint image extracted from said original image to obtain a preset Fingerprint image; includes:
    从原始图像中提取指纹图像;Extracting a fingerprint image from the original image;
    将所述指纹图像的背景分离,得到第一指纹图像;Separating the background of the fingerprint image to obtain a first fingerprint image;
    对所述第一指纹图像进行方向信息提取或者纹线提取,得到第二指纹图像;Performing direction information extraction or ridge extraction on the first fingerprint image to obtain a second fingerprint image;
    对所述第二指纹图像进行二值化处理,得到第三指纹图像;Performing a binarization process on the second fingerprint image to obtain a third fingerprint image;
    对所述第三指纹图像进行图像细化及修复,得到第四指纹图像;Performing image refinement and repair on the third fingerprint image to obtain a fourth fingerprint image;
    所述第四指纹图像四提取特征点,得到第五指纹图像,所述第五指纹图像为所述预设指纹图像。The fourth fingerprint image extracts feature points to obtain a fifth fingerprint image, and the fifth fingerprint image is the preset fingerprint image.
  6. 一种终端,其特征在于,包括:A terminal, comprising:
    摄像头,用于在接收采集指纹指令后,获取包括指纹图像的采集图像;a camera, configured to acquire a captured image including a fingerprint image after receiving the fingerprint acquisition instruction;
    第一处理模块,用于从所述采集图像中提取所述指纹图像,并对所述指纹图像进行预处理,得到比对指纹图像;a first processing module, configured to extract the fingerprint image from the captured image, and perform pre-processing on the fingerprint image to obtain a comparison fingerprint image;
    确定模块,用于确定所述比对指纹图像与预设指纹图像是否匹配;a determining module, configured to determine whether the comparison fingerprint image matches a preset fingerprint image;
    执行模块,用于若所述确定模块的确定结果为比对指纹图像与所述预设指纹图像匹配,则根据预设条件执行预设的操作。And an execution module, configured to perform a preset operation according to the preset condition if the determination result of the determining module is that the matching fingerprint image matches the preset fingerprint image.
  7. 根据权利要求6所述的终端,其特征在于,The terminal of claim 6 wherein:
    所述摄像头,还用于获取包括所述指纹图像的原始图像;The camera is further configured to acquire an original image including the fingerprint image;
    所述终端还包括:The terminal further includes:
    第二处理模块,用于从所述原始图像中提取所述指纹图像,并对所述从所述原始图像中提取的所述指纹图像进行预处理,得到预设指纹图像;a second processing module, configured to extract the fingerprint image from the original image, and perform pre-processing on the fingerprint image extracted from the original image to obtain a preset fingerprint image;
    存储模块,用于保存所述预设指纹图像。a storage module, configured to save the preset fingerprint image.
  8. 根据权利要求7所述的终端,其特征在于,所述终端还包括:The terminal according to claim 7, wherein the terminal further comprises:
    加密模块,用于对所述预设指纹图像进行加密;An encryption module, configured to encrypt the preset fingerprint image;
    所述存储模块具体用于,保存所述加密模块加密后的预设指纹图像。The storage module is specifically configured to save the preset fingerprint image encrypted by the encryption module.
  9. 根据权利要求8所述的终端,其特征在于,所述终端还包括:The terminal according to claim 8, wherein the terminal further comprises:
    解密模块,用于对保存在存储模块中的加密后的预设指纹图像进行解密;a decryption module, configured to decrypt the encrypted preset fingerprint image stored in the storage module;
    所述确定模块具体用于,将比对指纹图像与所述解密模块解密后的预设指纹图像进行比较,确定所述比对指纹图像与所述预设指纹图像是否匹配。The determining module is specifically configured to compare the comparison fingerprint image with the preset fingerprint image decrypted by the decryption module, and determine whether the comparison fingerprint image matches the preset fingerprint image.
  10. 根据权利要求7所述终端,其特征在于, The terminal according to claim 7, wherein
    第二处理模块具体用于,从原始图像中提取指纹图像;将所述指纹图像的背景分离,得到第一指纹图像;对所述第一指纹图像进行方向信息提取或者纹线提取,得到第二指纹图像;对所述第二指纹图像进行二值化处理,得到第三指纹图像;对所述第三指纹图像进行图像细化及修复,得到第四指纹图像;对所述第四指纹图像提取特征点,得到第五指纹图像,所述第五指纹图像为所述预设指纹图像。 The second processing module is specifically configured to: extract a fingerprint image from the original image; separate the background of the fingerprint image to obtain a first fingerprint image; perform direction information extraction or ridge extraction on the first fingerprint image to obtain a second a fingerprint image; performing a binarization process on the second fingerprint image to obtain a third fingerprint image; performing image refinement and repair on the third fingerprint image to obtain a fourth fingerprint image; and extracting the fourth fingerprint image The feature point obtains a fifth fingerprint image, and the fifth fingerprint image is the preset fingerprint image.
PCT/CN2015/085820 2015-06-29 2015-07-31 Fingerprint recognition method and terminal WO2017000342A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510369655.0A CN105574389A (en) 2015-06-29 2015-06-29 Fingerprint identification method and terminal
CN201510369655.0 2015-06-29

Publications (1)

Publication Number Publication Date
WO2017000342A1 true WO2017000342A1 (en) 2017-01-05

Family

ID=55884510

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/085820 WO2017000342A1 (en) 2015-06-29 2015-07-31 Fingerprint recognition method and terminal

Country Status (2)

Country Link
CN (1) CN105574389A (en)
WO (1) WO2017000342A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590487A (en) * 2017-10-20 2018-01-16 西南财经大学 A kind of fingerprint identification method and system based on cloud computing
TWI825496B (en) * 2021-02-01 2023-12-11 大陸商中國銀聯股份有限公司 An information processing method and device

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912914A (en) * 2016-05-27 2016-08-31 广东欧珀移动通信有限公司 Fingerprint unlocking method and terminal equipment
CN106022055A (en) * 2016-05-27 2016-10-12 广东欧珀移动通信有限公司 Fingerprint unlocking control method and terminal equipment
CN106022056B (en) * 2016-05-27 2019-03-15 Oppo广东移动通信有限公司 A kind of processing method and user terminal of finger print information
CN105912915B (en) * 2016-05-27 2017-10-24 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and terminal
CN106096351A (en) * 2016-06-17 2016-11-09 宇龙计算机通信科技(深圳)有限公司 A kind of mobile terminal unlocking method, device and mobile terminal
CN106503515A (en) * 2016-09-28 2017-03-15 维沃移动通信有限公司 A kind of fingerprint decryption method and mobile terminal
CN106775061A (en) * 2016-11-25 2017-05-31 捷开通讯(深圳)有限公司 A kind of fingerprint identification device and its system, method based on touch display screen
CN106778164B (en) * 2016-11-30 2019-11-12 宇龙计算机通信科技(深圳)有限公司 Fingerprint method for authenticating, system and electronic equipment
CN106778580A (en) * 2016-12-07 2017-05-31 深圳市百通信息技术有限公司 Amplified by mobile phone camera, focusing function takes the fingerprint the system and method for image
CN106709457A (en) * 2016-12-27 2017-05-24 维沃移动通信有限公司 Task execution method based on fingerprint, and mobile terminal
CN109886162A (en) * 2019-01-30 2019-06-14 Oppo广东移动通信有限公司 Fingerprint authentication method and relevant apparatus
CN110941985A (en) * 2019-09-30 2020-03-31 珠海零边界集成电路有限公司 Mobile terminal, fingerprint verification method and system thereof
CN112506418A (en) * 2020-11-30 2021-03-16 珠海格力电器股份有限公司 Touch screen control method and device and touch screen
CN113766050B (en) * 2021-07-22 2022-09-13 荣耀终端有限公司 Fingerprint input method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901332A (en) * 2009-05-31 2010-12-01 上海点佰趣信息科技有限公司 Fingerprint identification system and method
CN203117990U (en) * 2013-03-21 2013-08-07 广东欧珀移动通信有限公司 Mobile terminal with fingerprint unlocking function
CN103269481A (en) * 2013-05-13 2013-08-28 广东欧珀移动通信有限公司 Method and system for encrypting and protecting procedure or file of portable electronic equipment
CN103324921A (en) * 2013-06-28 2013-09-25 华南理工大学 Mobile identification method based on inner finger creases and mobile identification equipment thereof
CN104598870A (en) * 2014-07-25 2015-05-06 北京智膜科技有限公司 Living fingerprint detection method based on intelligent mobile information equipment
US20150146943A1 (en) * 2013-11-22 2015-05-28 Samsung Electronics Co., Ltd. Method of recognizing contactless fingerprint and electronic device for performing the same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901332A (en) * 2009-05-31 2010-12-01 上海点佰趣信息科技有限公司 Fingerprint identification system and method
CN203117990U (en) * 2013-03-21 2013-08-07 广东欧珀移动通信有限公司 Mobile terminal with fingerprint unlocking function
CN103269481A (en) * 2013-05-13 2013-08-28 广东欧珀移动通信有限公司 Method and system for encrypting and protecting procedure or file of portable electronic equipment
CN103324921A (en) * 2013-06-28 2013-09-25 华南理工大学 Mobile identification method based on inner finger creases and mobile identification equipment thereof
US20150146943A1 (en) * 2013-11-22 2015-05-28 Samsung Electronics Co., Ltd. Method of recognizing contactless fingerprint and electronic device for performing the same
CN104598870A (en) * 2014-07-25 2015-05-06 北京智膜科技有限公司 Living fingerprint detection method based on intelligent mobile information equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590487A (en) * 2017-10-20 2018-01-16 西南财经大学 A kind of fingerprint identification method and system based on cloud computing
TWI825496B (en) * 2021-02-01 2023-12-11 大陸商中國銀聯股份有限公司 An information processing method and device

Also Published As

Publication number Publication date
CN105574389A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
WO2017000342A1 (en) Fingerprint recognition method and terminal
US10643055B2 (en) Fingerprint recognition method and system capable of improving fingerprint recognition rate
CN105488371B (en) Face recognition method and device
WO2015176494A1 (en) Non-contact gesture command authentication method and user equipment
US9122913B2 (en) Method for logging a user in to a mobile device
CN104778393A (en) Security fingerprint identification method for intelligent terminal
US20130246270A1 (en) Method and System for Multi-Modal Identity Recognition
CN104239815A (en) Electronic document encryption and decryption method and method based on iris identification
CN104751040A (en) Fingerprint detection method based on intelligent mobile information equipment
WO2013139221A1 (en) Authentication method, device and system based on biological characteristics
JP2017533517A (en) Production of fingerprint authentication template
CN102737194A (en) Mobile terminal with fingerprint unlocking function and fingerprint unlocking method of mobile terminal
CN104751113A (en) Fingerprint recognition method based on intelligent mobile information device
CN104239770A (en) Method and system for enabling mobile terminal to enter application program under standby state
US10963552B2 (en) Method and electronic device for authenticating a user
US20140347161A1 (en) Authorizing system and method of portable electronic device
CN104537290A (en) Password system and achievement method based on multi-fingerprint identification
JP2019527868A (en) Biological feature identification apparatus and method, and biological feature template registration method
TWI598828B (en) Electronic device and system and method of controlling access to the same
WO2018166484A1 (en) Data encryption and decryption methods and apparatuses, electronic device and readable storage medium
US20160188859A1 (en) Method and apparatus for authenticating user
WO2018161312A1 (en) Fingerprint identification method and apparatus
CN109543431B (en) Application encryption method and device, electronic equipment and storage medium
CN113033243A (en) Face recognition method, device and equipment
KR102539533B1 (en) Method and apparatus for preventing other people from photographing identification

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: 15896872

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/05/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15896872

Country of ref document: EP

Kind code of ref document: A1