CN110232761A - Door lock control method and related device based on finger vein recognition - Google Patents

Door lock control method and related device based on finger vein recognition Download PDF

Info

Publication number
CN110232761A
CN110232761A CN201910550877.0A CN201910550877A CN110232761A CN 110232761 A CN110232761 A CN 110232761A CN 201910550877 A CN201910550877 A CN 201910550877A CN 110232761 A CN110232761 A CN 110232761A
Authority
CN
China
Prior art keywords
finger vein
finger
door lock
vein image
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910550877.0A
Other languages
Chinese (zh)
Other versions
CN110232761B (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910550877.0A priority Critical patent/CN110232761B/en
Publication of CN110232761A publication Critical patent/CN110232761A/en
Application granted granted Critical
Publication of CN110232761B publication Critical patent/CN110232761B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00563Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys using personal physical data of the operator, e.g. finger prints, retinal images, voicepatterns
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)
  • Collating Specific Patterns (AREA)

Abstract

The embodiment of the application discloses a door lock control method and a related device based on finger vein recognition, which are applied to a mobile terminal of a door lock control system, wherein the door lock control system further comprises a door lock control terminal, the mobile terminal is provided with a vein recognition module, the mobile terminal establishes communication connection with the door lock control terminal, and the method comprises the following steps: receiving an unlocking request from a door lock control terminal, wherein the unlocking request carries safety level information; searching a first identification mode matched with the safety level information from at least one preset identification mode; acquiring a first finger vein image of a user through a vein recognition module; comparing the first finger vein image with a finger vein template corresponding to the first identification mode to judge whether the first finger vein image is successfully identified; and when the first finger vein image is successfully identified, an unlocking instruction is sent to the door lock control terminal, and the unlocking instruction is used for indicating the door lock control terminal to control unlocking. The embodiment of the application is favorable for improving the safety of the door lock control system.

Description

基于指静脉识别的门锁控制方法及相关装置Door lock control method and related device based on finger vein recognition

技术领域technical field

本申请涉及电子技术领域,具体涉及一种基于指静脉识别的门锁控制方法及相关装置。The present application relates to the field of electronic technology, and in particular to a door lock control method and related devices based on finger vein recognition.

背景技术Background technique

随着生活水平的不断提高,人们更加关注安全和便捷性问题,家居智能化系统的概念由此而产生。所谓智能家居是现代电子技术、自动化技术及通信技术相结合的产物。门锁的安全作为家居的核心,成为人们关心的主要问题。智能锁是指区别于传统机械锁,在用户识别、安全性、管理性方面更加智能化的锁具,使用非机械钥匙作为用户识别ID的成熟技术,例如:指纹锁、密码锁、虹膜识别锁、门禁磁卡等,其中指纹锁、密码锁、门禁磁卡等较为常见。With the continuous improvement of living standards, people pay more attention to safety and convenience issues, and the concept of home intelligent system is born. The so-called smart home is the product of the combination of modern electronic technology, automation technology and communication technology. As the core of the home, the safety of door locks has become the main concern of people. Smart locks refer to locks that are different from traditional mechanical locks and are more intelligent in terms of user identification, security, and management, and use non-mechanical keys as mature technologies for user identification IDs, such as fingerprint locks, password locks, iris recognition locks, Access control magnetic cards, etc., among which fingerprint locks, password locks, and access control magnetic cards are more common.

但是指纹锁、密码锁、门禁磁卡的安全性不高,指纹容易被仿造,磁卡容易丢失,密码容易泄露,而虹膜识别锁的安全性虽然较高,但是成本也高,所以现在大多数的智能锁都是采取指纹锁、密码锁或者门禁磁卡,智能锁的安全性较低。However, the security of fingerprint locks, password locks, and access control magnetic cards is not high. The locks are fingerprint locks, password locks or access control magnetic cards, and the security of smart locks is low.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种基于指静脉识别的门锁控制方法及相关装置,有利于提高门锁控制系统的安全性。The embodiments of the present application provide a door lock control method and related device based on finger vein recognition, which are beneficial to improve the security of the door lock control system.

第一方面,本申请实施例提供一种基于指静脉识别的门锁控制方法,应用于门锁控制系统的移动终端,所述门锁控制系统还包括门锁控制终端,所述移动终端设置有静脉识别模块,所述移动终端建立与所述门锁控制终端的通信连接,所述方法包括:In the first aspect, an embodiment of the present application provides a door lock control method based on finger vein recognition, which is applied to a mobile terminal of a door lock control system. The door lock control system further includes a door lock control terminal, and the mobile terminal is provided with The vein identification module, the mobile terminal establishes a communication connection with the door lock control terminal, and the method includes:

接收来自所述门锁控制终端的开锁请求,所述开锁请求携带安全等级信息;receiving an unlocking request from the door lock control terminal, where the unlocking request carries security level information;

从预设的至少一个识别方式中查找与所述安全等级信息匹配的第一识别方式;Search for a first identification mode matching the security level information from at least one preset identification mode;

通过所述静脉识别模块获取用户的第一指静脉图像;Obtain the first finger vein image of the user through the vein identification module;

将所述第一指静脉图像与所述第一识别方式对应的指静脉模板进行对比,以判断所述第一指静脉图像是否识别成功;Comparing the first finger vein image with the finger vein template corresponding to the first identification method to determine whether the first finger vein image is successfully identified;

当所述第一指静脉图像识别成功时,向所述门锁控制终端发送开锁指令,所述开锁指令用于指示所述门锁控制终端控制开锁。When the first finger vein image is successfully recognized, an unlocking instruction is sent to the door lock control terminal, where the unlocking instruction is used to instruct the door lock control terminal to control unlocking.

第二方面,本申请实施例提供一种基于指静脉识别的门锁控制的装置,应用于门锁控制系统的移动终端,所述门锁控制系统还包括门锁控制终端,所述移动终端设置有静脉识别模块,所述移动终端建立与所述门锁控制终端的通信连接,所述装置包括:In a second aspect, an embodiment of the present application provides a device for door lock control based on finger vein recognition, which is applied to a mobile terminal of a door lock control system, where the door lock control system further includes a door lock control terminal, and the mobile terminal sets There is a vein identification module, the mobile terminal establishes a communication connection with the door lock control terminal, and the device includes:

接收单元,用于接收来自所述门锁控制终端的开锁请求,所述开锁请求携带安全等级信息;a receiving unit, configured to receive an unlocking request from the door lock control terminal, where the unlocking request carries security level information;

查找单元,用于从预设的至少一个识别方式中查找与所述安全等级信息匹配的第一识别方式;a search unit, configured to search for a first identification mode matching the security level information from at least one preset identification mode;

获取单元,用于通过所述静脉识别模块获取用户的第一指静脉图像;an acquisition unit, configured to acquire the first finger vein image of the user through the vein identification module;

对比单元,用于将所述第一指静脉图像与所述第一识别方式对应的指静脉模板进行对比,以判断所述第一指静脉图像是否识别成功;A comparison unit, configured to compare the first finger vein image with the finger vein template corresponding to the first identification method, to determine whether the first finger vein image is successfully identified;

发送单元,用于当所述第一指静脉图像识别成功时,向所述门锁控制终端发送开锁指令,所述开锁指令用于指示所述门锁控制终端控制开锁。A sending unit, configured to send an unlock instruction to the door lock control terminal when the first finger vein image is successfully recognized, where the unlock instruction is used to instruct the door lock control terminal to control unlocking.

第三方面,本申请实施例提供一种移动终端,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, embodiments of the present application provide a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured to be processed by the above The above program includes instructions for executing steps in any method of the first aspect of the embodiments of the present application.

第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the computer program as described in the first embodiment of the present application. In one aspect some or all of the steps described in any method.

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

可以看出,本申请实施例中,移动终端接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息,移动终端从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式,获取用户的第一指静脉图像,将第一指静脉图像与第一识别方式对应的指静脉模板进行对比,以判断第一指静脉图像是否识别成功,当第一指静脉图像识别成功时,向门锁控制终端发送开锁指令,门锁控制终端控制开锁。可见,本申请实施例中,移动终端获取用户的第一指静脉图像,判断第一指静脉图像是否识别成功,识别成功才可以控制开锁,并且对于不同的安全等级,设置有不同的识别方式,在不同的安全等级下以不同方式识别,同样的,识别成功才可以控制开锁,这样,采用指静脉识别的方式,安全性较高,并且满足了不同安全等级下控制开锁的需求,有利于提高门锁系统的安全性。It can be seen that, in the embodiment of the present application, the mobile terminal receives an unlocking request from the door lock control terminal, the unlocking request carries the security level information, and the mobile terminal searches for the first identification matching the security level information from at least one preset identification method. method, obtain the first finger vein image of the user, and compare the first finger vein image with the finger vein template corresponding to the first recognition method to determine whether the first finger vein image is successfully recognized. When the first finger vein image is successfully recognized , send the unlock command to the door lock control terminal, and the door lock control terminal controls the unlocking. It can be seen that, in the embodiment of the present application, the mobile terminal obtains the user's first finger vein image, determines whether the first finger vein image is successfully recognized, and can control unlocking only after the recognition is successful, and for different security levels, different identification methods are set. It can be identified in different ways under different security levels. Similarly, the unlocking can be controlled only after the identification is successful. In this way, the finger vein identification method is used, which has high security and meets the needs of controlled unlocking under different security levels, which is conducive to improving The security of the door locking system.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本申请实施例提供的一种门锁控制系统的示意图;1 is a schematic diagram of a door lock control system provided by an embodiment of the present application;

图2是本申请实施例提供的一种基于指静脉识别的门锁控制方法的流程示意图;2 is a schematic flowchart of a door lock control method based on finger vein recognition provided by an embodiment of the present application;

图3是本申请实施例提供的另一种基于指静脉识别的门锁控制方法的流程示意图;3 is a schematic flowchart of another door lock control method based on finger vein recognition provided by an embodiment of the present application;

图4是本申请实施例提供的另一种基于指静脉识别的门锁控制方法的流程示意图;4 is a schematic flowchart of another door lock control method based on finger vein recognition provided by an embodiment of the present application;

图5是本申请实施例提供的一种移动终端的结构示意图;FIG. 5 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;

图6是本申请实施例提供的一种基于指静脉识别的门锁控制的装置的功能单元组成框图。FIG. 6 is a block diagram of functional units of an apparatus for door lock control based on finger vein recognition provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例提供基于指静脉识别的门锁控制方法及相关装置,有利于提高门锁系统的安全性。The embodiments of the present application provide a door lock control method and related device based on finger vein recognition, which are beneficial to improve the security of the door lock system.

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

需要说明的是,本申请的说明书和权利要求书及附图中的术语“第一”、“第二”、“第三”、“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", "third", "fourth", etc. in the description, claims and drawings of the present application are used to distinguish different objects, rather than used for Describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

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

请参阅图1,图1是本申请实施例提供的一种门锁控制系统100的示意图。其中,门锁控制系统100包括移动终端101和门锁控制终端102,移动终端101设置有静脉识别模块,移动终端101建立与门锁控制终端102的通信连接;Please refer to FIG. 1 . FIG. 1 is a schematic diagram of a door lock control system 100 provided by an embodiment of the present application. The door lock control system 100 includes a mobile terminal 101 and a door lock control terminal 102, the mobile terminal 101 is provided with a vein identification module, and the mobile terminal 101 establishes a communication connection with the door lock control terminal 102;

移动终端101接收来自门锁控制终端102的开锁请求,开锁请求携带安全等级信息;移动终端101从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式;移动终端101通过静脉识别模块获取用户的第一指静脉图像;移动终端101将第一指静脉图像与第一识别方式对应的指静脉模板进行对比,以判断第一指静脉图像是否识别成功;当第一指静脉图像识别成功时,移动终端101向门锁控制终端102发送开锁指令,开锁指令用于指示门锁控制终端102控制开锁。The mobile terminal 101 receives the unlocking request from the door lock control terminal 102, and the unlocking request carries the security level information; the mobile terminal 101 searches for the first identification method matching the security level information from at least one preset identification method; The identification module acquires the user's first finger vein image; the mobile terminal 101 compares the first finger vein image with the finger vein template corresponding to the first identification method to determine whether the first finger vein image is successfully identified; When the identification is successful, the mobile terminal 101 sends an unlock instruction to the door lock control terminal 102, and the unlock instruction is used to instruct the door lock control terminal 102 to control the unlocking.

本申请实施例提供的门锁控制系统,有利于提高门锁控制系统的安全性。其中,本示例中,门锁控制系统100包括移动终端101和门锁控制终端102,具体使用环境中,门锁控制系统100还包括其他组件。The door lock control system provided by the embodiments of the present application is beneficial to improve the security of the door lock control system. Wherein, in this example, the door lock control system 100 includes a mobile terminal 101 and a door lock control terminal 102, and in a specific use environment, the door lock control system 100 also includes other components.

其中,本申请实施例中的移动终端101可以包括各种具有无线通信功能的手持设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE)、移动台(Mobile Station,MS)、终端设备(terminal device)等等。The mobile terminal 101 in this embodiment of the present application may include various handheld devices, wearable devices, computing devices, or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on.

本申请实施例中的门锁控制终端102可以安装在多种场所,例如居民住宅、写字楼、办公室、学校、银行、医院等。The door lock control terminal 102 in the embodiment of the present application can be installed in various places, such as residential houses, office buildings, offices, schools, banks, hospitals, and the like.

请参阅图2,图2是本申请实施例提供的一种基于指静脉识别的门锁控制方法的流程示意图,应用于门锁控制系统的移动终端,所述门锁控制系统还包括门锁控制终端,所述移动终端设置有静脉识别模块,所述移动终端建立与所述门锁控制终端的通信连接,如图2所示,本实施例提供的基于指静脉识别的门锁控制方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a door lock control method based on finger vein recognition provided by an embodiment of the present application, which is applied to a mobile terminal of a door lock control system, and the door lock control system further includes a door lock control method. terminal, the mobile terminal is provided with a vein identification module, and the mobile terminal establishes a communication connection with the door lock control terminal. As shown in FIG. 2 , the door lock control method based on finger vein identification provided in this embodiment includes:

步骤201,接收来自所述门锁控制终端的开锁请求,所述开锁请求携带安全等级信息。Step 201: Receive an unlocking request from the door lock control terminal, where the unlocking request carries security level information.

具体的,用户需要控制开锁时,门锁控制终端向移动终端发送开锁请求,并且,开锁请求携带安全等级信息,安全等级信息根据门锁控制终端所安装的场所不同而不同。Specifically, when the user needs to control unlocking, the door lock control terminal sends an unlock request to the mobile terminal, and the unlock request carries security level information, which varies according to the place where the door lock control terminal is installed.

举例来说,如果门锁控制终端安装在居民住宅社区的正门、学校正门等场所,由于这些地方人流量较大,并且会有很多其他人员进入参观或者拜访,所以安全需求相对较低,对应的开锁请求携带的安全等级也相对较低,如果门锁控制终端安装在银行的保险柜、医院的药物储存室、科技公司的技术资料机房等场所,由于这些地方对人员进出的控制非常严格,所以安全需求相对较高,对应的开锁请求携带的安全等级也相对较高。For example, if the door lock control terminal is installed at the main entrance of a residential community, the main entrance of a school, etc., due to the large flow of people in these places, and many other people will enter or visit, the security requirements are relatively low, and the corresponding The security level of the unlock request is also relatively low. If the door lock control terminal is installed in the safe of the bank, the drug storage room of the hospital, the technical data room of the technology company, etc., because these places control the entry and exit of personnel is very strict, so The security requirements are relatively high, and the security level carried by the corresponding unlocking request is also relatively high.

步骤202,从预设的至少一个识别方式中查找与所述安全等级信息匹配的第一识别方式。Step 202: Search for a first identification mode matching the security level information from at least one preset identification mode.

具体的,移动终端存储了至少一个识别方式以及识别方式与安全等级信息的对应关系,对于较低的安全等级,对应的识别方式较为简单,例如可以是识别任意一根手指的指静脉图像,对于较高的安全等级,对于的识别方式较为复杂,例如可以是同时识别多根手指的指静脉图像,还可以是除了识别指静脉图像以外,还要进行辅助识别,只有多种识别都通过时,才确定识别成功。Specifically, the mobile terminal stores at least one identification method and the corresponding relationship between the identification method and the security level information. For a lower security level, the corresponding identification method is relatively simple. For example, it can identify the finger vein image of any finger. The higher the security level, the more complicated the recognition method is. For example, it can recognize the finger vein images of multiple fingers at the same time, or it can also perform auxiliary recognition in addition to the recognition of the finger vein images. Only when multiple recognitions pass, It is determined that the identification is successful.

步骤203,通过所述静脉识别模块获取用户的第一指静脉图像。Step 203: Acquire a first finger vein image of the user through the vein identification module.

具体的,移动终端设置有静脉识别模块,用户将手指置于移动终端的采集区域,移动终端通过静脉识别模块获取用户的第一指静脉图像,第一指静脉图像可以是用户的拇指、食指、中指、无名指、小指中的任意一根手指的指静脉图像。Specifically, the mobile terminal is provided with a vein identification module, the user places the finger in the collection area of the mobile terminal, and the mobile terminal obtains the user's first finger vein image through the vein identification module, and the first finger vein image may be the user's thumb, index finger, The finger vein image of any one of the middle finger, ring finger, and little finger.

步骤204,将所述第一指静脉图像与所述第一识别方式对应的指静脉模板进行对比,以判断所述第一指静脉图像是否识别成功。Step 204 , compare the first finger vein image with the finger vein template corresponding to the first identification method to determine whether the first finger vein image is successfully identified.

具体的,移动终端存储了多个指静脉模板,包括同一用户多根手指的指静脉模板、不同用户的指静脉模板等,移动终端获取与第一识别方式对应的指静脉模板,例如,当第一识别方式为识别食指的指静脉图像时,移动终端获取食指的指静脉模板,然后将已经获取的第一指静脉图像与食指的指静脉模板进行对比,从而判断第一指静脉图像是否识别成功。Specifically, the mobile terminal stores a plurality of finger vein templates, including finger vein templates of multiple fingers of the same user, finger vein templates of different users, etc., and the mobile terminal obtains the finger vein templates corresponding to the first identification method. When the identification method is to identify the finger vein image of the index finger, the mobile terminal obtains the finger vein template of the index finger, and then compares the obtained first finger vein image with the finger vein template of the index finger, so as to determine whether the first finger vein image is successfully identified. .

在一种可能的示例中,第一识别方式对应一个指静脉模板,则只有将第一指静脉图像与该指静脉模板进行对比,从而判断是否识别成功。In a possible example, the first identification method corresponds to a finger vein template, and only the first finger vein image is compared with the finger vein template to determine whether the identification is successful.

在另一种可能的示例中,第一识别方式对应多个指静脉模板,例如门锁控制系统设置了多个有效用户,移动终端存储了该多个有效用户的指静脉模板,那么需要将第一指静脉图像与该多个指静脉模板进行对比,只要第一指静脉图像与该多个指静脉模板中的任意一个指静脉模板对比成功时,即可以判断第一指静脉图像识别成功。In another possible example, the first identification method corresponds to multiple finger vein templates. For example, the door lock control system is set with multiple valid users, and the mobile terminal stores the finger vein templates of the multiple valid users. A finger vein image is compared with the plurality of finger vein templates. As long as the first finger vein image is successfully compared with any finger vein template among the plurality of finger vein templates, it can be determined that the first finger vein image is successfully recognized.

步骤205,当所述第一指静脉图像识别成功时,向所述门锁控制终端发送开锁指令,所述开锁指令用于指示所述门锁控制终端控制开锁。Step 205, when the first finger vein image is successfully recognized, send an unlock instruction to the door lock control terminal, where the unlock instruction is used to instruct the door lock control terminal to control unlocking.

具体的,当第一指静脉图像识别成功时,说明对应的用户为有效用户,移动终端向门锁控制终端发送开锁指令,门锁控制终端接收到该开锁指令时,控制开锁,用户即可以进入对应的场所。Specifically, when the first finger vein image is successfully recognized, it indicates that the corresponding user is a valid user, the mobile terminal sends an unlocking instruction to the door lock control terminal, and when the door lock control terminal receives the unlocking instruction, it controls the unlocking, and the user can enter corresponding place.

可以看出,本申请实施例中,移动终端接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息,移动终端从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式,获取用户的第一指静脉图像,将第一指静脉图像与第一识别方式对应的指静脉模板进行对比,以判断第一指静脉图像是否识别成功,当第一指静脉图像识别成功时,向门锁控制终端发送开锁指令,门锁控制终端控制开锁。可见,本申请实施例中,移动终端获取用户的第一指静脉图像,判断第一指静脉图像是否识别成功,识别成功才可以控制开锁,并且对于不同的安全等级,设置有不同的识别方式,在不同的安全等级下以不同方式识别,同样的,识别成功才可以控制开锁,这样,采用指静脉识别的方式,安全性较高,并且满足了不同安全等级下控制开锁的需求,有利于提高门锁系统的安全性。It can be seen that, in the embodiment of the present application, the mobile terminal receives an unlocking request from the door lock control terminal, the unlocking request carries the security level information, and the mobile terminal searches for the first identification matching the security level information from at least one preset identification method. method, obtain the first finger vein image of the user, and compare the first finger vein image with the finger vein template corresponding to the first recognition method to determine whether the first finger vein image is successfully recognized. When the first finger vein image is successfully recognized , send the unlock command to the door lock control terminal, and the door lock control terminal controls the unlocking. It can be seen that, in the embodiment of the present application, the mobile terminal obtains the user's first finger vein image, determines whether the first finger vein image is successfully recognized, and can control unlocking only after the recognition is successful, and for different security levels, different identification methods are set. It can be identified in different ways under different security levels. Similarly, the unlocking can be controlled only after the identification is successful. In this way, the finger vein identification method is used, which has high security and meets the needs of controlled unlocking under different security levels, which is conducive to improving The security of the door locking system.

与上述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的另一种基于指静脉识别的门锁控制方法的流程示意图,应用于门锁控制系统的移动终端,所述门锁控制系统还包括门锁控制终端,所述移动终端设置有静脉识别模块,所述移动终端建立与所述门锁控制终端的通信连接,如图3所示,本实施例提供的基于指静脉识别的门锁控制方法包括:Consistent with the embodiment shown in FIG. 2 above, please refer to FIG. 3. FIG. 3 is a schematic flowchart of another door lock control method based on finger vein recognition provided by an embodiment of the present application, which is applied to the movement of the door lock control system. The door lock control system further includes a door lock control terminal, the mobile terminal is provided with a vein identification module, and the mobile terminal establishes a communication connection with the door lock control terminal. As shown in FIG. 3, this embodiment The provided door lock control methods based on finger vein recognition include:

步骤301,移动终端接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息。Step 301, the mobile terminal receives an unlocking request from the door lock control terminal, and the unlocking request carries security level information.

具体的,用户需要控制开锁时,门锁控制终端向移动终端发送开锁请求,并且,开锁请求携带安全等级信息,安全等级信息根据门锁控制终端所安装的场所不同而不同。Specifically, when the user needs to control unlocking, the door lock control terminal sends an unlock request to the mobile terminal, and the unlock request carries security level information, which varies according to the place where the door lock control terminal is installed.

举例来说,如果门锁控制终端安装在居民住宅社区的正门、学校正门等场所,由于这些地方人流量较大,并且会有很多其他人员进入参观或者拜访,所以安全需求相对较低,对应的开锁请求携带的安全等级也相对较低,如果门锁控制终端安装在银行的保险柜、医院的药物储存室、科技公司的技术资料机房等场所,由于这些地方对人员进出的控制非常严格,所以安全需求相对较高,对应的开锁请求携带的安全等级也相对较高。For example, if the door lock control terminal is installed at the main entrance of a residential community, the main entrance of a school, etc., due to the large flow of people in these places, and many other people will enter or visit, the security requirements are relatively low, and the corresponding The security level of the unlock request is also relatively low. If the door lock control terminal is installed in the safe of the bank, the drug storage room of the hospital, the technical data room of the technology company, etc., because these places control the entry and exit of personnel is very strict, so The security requirements are relatively high, and the security level carried by the corresponding unlocking request is also relatively high.

步骤302,移动终端从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式,第一识别方式为识别第一手指的指静脉图像。Step 302, the mobile terminal searches for a first identification mode matching the security level information from at least one preset identification mode, where the first identification mode is to identify a finger vein image of a first finger.

具体的,移动终端存储了至少一个识别方式以及识别方式与安全等级信息的对应关系,对于较低的安全等级,对应的识别方式较为简单,例如可以是识别任意一根手指的指静脉图像,对于较高的安全等级,对于的识别方式较为复杂,例如可以是同时识别多根手指的指静脉图像,还可以是除了识别指静脉图像以外,还要进行辅助识别,只有多种识别都通过时,才确定识别成功。Specifically, the mobile terminal stores at least one identification method and the corresponding relationship between the identification method and the security level information. For a lower security level, the corresponding identification method is relatively simple. For example, it can identify the finger vein image of any finger. The higher the security level, the more complicated the recognition method is. For example, it can recognize the finger vein images of multiple fingers at the same time, or it can also perform auxiliary recognition in addition to the recognition of the finger vein images. Only when multiple recognitions pass, It is determined that the identification is successful.

步骤303,移动终端通过静脉识别模块获取用户的第一指静脉图像。Step 303, the mobile terminal acquires the first finger vein image of the user through the vein identification module.

具体的,移动终端设置有静脉识别模块,用户将手指置于移动终端的采集区域,移动终端通过静脉识别模块获取用户的第一指静脉图像,第一指静脉图像可以是用户的拇指、食指、中指、无名指、小指中的任意一根手指的指静脉图像。Specifically, the mobile terminal is provided with a vein identification module, the user places the finger in the collection area of the mobile terminal, and the mobile terminal obtains the user's first finger vein image through the vein identification module, and the first finger vein image may be the user's thumb, index finger, The finger vein image of any one of the middle finger, ring finger, and little finger.

步骤304,移动终端获取预先存储的第一手指的指静脉模板。Step 304, the mobile terminal acquires the pre-stored finger vein template of the first finger.

步骤305,移动终端将第一指静脉图像与第一手指的指静脉模板进行对比,以得到第一相似度。Step 305, the mobile terminal compares the first finger vein image with the finger vein template of the first finger to obtain a first similarity.

在一种可能的示例中,移动终端将第一指静脉图像与第一手指的指静脉模板进行对比,以得到第一相似度的方法可以是:In a possible example, the method for comparing the first finger vein image with the finger vein template of the first finger by the mobile terminal to obtain the first similarity may be:

分析第一指静脉图像的特征点分布;analyzing the feature point distribution of the first finger vein image;

按照M个不同圆心对第一指静脉图像进行圆形图像截取,得到M个圆形指静脉图像,所述M为大于3的整数;Perform circular image interception on the first finger vein image according to M different circle centers to obtain M circular finger vein images, where M is an integer greater than 3;

从M个圆形指静脉图像中选出目标圆形指静脉图像,目标圆形指静脉图像所包含的特征点的数量大于M个圆形指静脉图像中的其他圆形指静脉图像;The target circular finger vein image is selected from the M circular finger vein images, and the number of feature points contained in the target circular finger vein image is greater than that of other circular finger vein images in the M circular finger vein images;

将目标圆形指静脉图像与第一手指的指静脉模板进行特征点匹配,以得到第一相似度。Feature point matching is performed between the target circular finger vein image and the finger vein template of the first finger to obtain the first similarity.

可见,由于指静脉图像中除了包含特征点以外,还会包含其他无关信息,例如背景信息以及噪点,将指静脉图像中包含的所有信息都与第一手指的指静脉模板进行对比,会花费较长时间以及较多资源,并且可能会影响准确率,所以通过将指静脉图像进行截取,从中选取包含特征点最多的指静脉图像,将包含特征点最多的指静脉图像与指静脉模板进行对比,可以节约对比时间,并且对比准确率也较高。It can be seen that since the finger vein image contains not only the feature points, but also other irrelevant information, such as background information and noise, it will take a relatively long time to compare all the information contained in the finger vein image with the finger vein template of the first finger. It takes a long time and more resources, and may affect the accuracy, so by intercepting the finger vein image, select the finger vein image with the most feature points, and compare the finger vein image with the most feature points with the finger vein template. The comparison time can be saved, and the comparison accuracy is also high.

在一种可能的示例中,将目标圆形指静脉图像与第一手指的指静脉模板进行特征点匹配,以得到第一相似度的方法可以是:In a possible example, the method for performing feature point matching between the target circular finger vein image and the finger vein template of the first finger to obtain the first similarity may be:

当目标圆形指静脉图像的清晰度不小于预设清晰度阈值时,将目标圆形指静脉图像中所有的特征点与第一手指的指静脉模板进行特征点匹配,以得到第一相似度;When the definition of the target circular finger vein image is not less than the preset definition threshold, all feature points in the target circular finger vein image are matched with the finger vein template of the first finger to obtain the first similarity ;

当目标圆形指静脉图像的清晰度小于预设清晰度阈值时,将目标圆形指静脉图像中所有的特征点分为N类特征点,N为大于1的整数,N类特征点设置的权重不同;When the sharpness of the target circular finger vein image is less than the preset sharpness threshold, all the feature points in the target circular finger vein image are divided into N types of feature points, where N is an integer greater than 1, and the N types of feature points set different weights;

将N类特征点与第一手指的指静脉模板进行特征点匹配,以得到第一相似度。The N-type feature points are matched with the finger vein template of the first finger to obtain the first similarity.

具体的,在获取用户的指静脉图像时,有可能出现由于用户的指静脉较浅而导致获取的指静脉图像较为模糊的情况,如果直接将目标圆形指静脉图像中所有的特征点与第一手指的指静脉模板进行特征点匹配,会导致拒真率较高,即将有效用户识别成无效用户,所以需要先判断目标圆形指静脉图像的清晰度是否小于预设清晰度阈值,当目标圆形指静脉图像的清晰度不小于预设清晰度阈值时,将目标圆形指静脉图像中所有的特征点与第一手指的指静脉模板进行特征点匹配,以得到第一相似度;Specifically, when acquiring the user's finger vein image, the acquired finger vein image may be blurred because the user's finger vein is shallow. If all the feature points in the target circular finger vein image are directly compared with the first The feature point matching of the finger vein template of a finger will lead to a high rejection rate, that is, valid users will be identified as invalid users. Therefore, it is necessary to first determine whether the clarity of the target circular finger vein image is less than the preset clarity threshold. When the definition of the circular finger vein image is not less than the preset definition threshold, all feature points in the target circular finger vein image are matched with the finger vein template of the first finger to obtain the first similarity;

当目标圆形指静脉图像的清晰度小于预设清晰度阈值时,将目标圆形指静脉图像中所有的特征点分为N类特征点,N为大于1的整数,N类特征点设置的权重不同,对于特征点分布最为密集的一类特征点设置的权重最大,同理对于特征点分布最为分散的一类特征点设置的权重最小;When the sharpness of the target circular finger vein image is less than the preset sharpness threshold, all the feature points in the target circular finger vein image are divided into N types of feature points, where N is an integer greater than 1, and the N types of feature points set The weights are different. The weight is the largest for the type of feature points with the most dense distribution of feature points, and the smallest weight is set for the type of feature points with the most scattered feature points.

将N类特征点与第一手指的指静脉模板进行特征点匹配,得到N个相似度,按照N类特征点的权重对N个相似度进行综合,即可得到第一相似度。The N types of feature points are matched with the finger vein template of the first finger to obtain N similarities, and the first similarity can be obtained by integrating the N similarities according to the weights of the N types of characteristic points.

可见,由于用户的指静脉较浅而导致获取的指静脉图像较为模糊的情况下,判断清晰度是否小于预设清晰度阈值,如果小于预设清晰度阈值,则对特征点进行分类并设置不同的权重,这样可以使得计算得到的相似度的准确率更高,降低了拒真率。It can be seen that when the obtained finger vein image is blurred due to the shallowness of the user's finger vein, it is determined whether the definition is smaller than the preset definition threshold, and if it is smaller than the preset definition threshold, the feature points are classified and set to different The weight of , which can make the calculated similarity more accurate and reduce the false rejection rate.

步骤306,移动终端判断第一相似度是否超过预设相似度阈值。Step 306, the mobile terminal determines whether the first similarity exceeds a preset similarity threshold.

步骤307,若第一相似度超过预设相似度阈值,则确定第一指静脉图像识别成功。Step 307: If the first similarity exceeds a preset similarity threshold, it is determined that the first finger vein image is successfully recognized.

步骤308,若第一相似度不超过预设相似度阈值,则确定第一指静脉图像识别失败。Step 308, if the first similarity does not exceed the preset similarity threshold, it is determined that the first finger vein image recognition fails.

步骤309,当第一指静脉图像识别成功时,移动终端向门锁控制终端发送开锁指令。Step 309, when the first finger vein image is successfully recognized, the mobile terminal sends an unlock instruction to the door lock control terminal.

步骤310,门锁控制终端控制开锁。Step 310, the door lock control terminal controls unlocking.

可以看出,本申请实施例中,移动终端接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息,移动终端从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式,获取用户的第一指静脉图像,对第一指静脉图像进行截取,从中选取包含特征点最多的指静脉图像,将包含特征点最多的指静脉图像与第一识别方式对应的指静脉模板进行对比,并且,当指静脉图像较为模糊时,对特征点进行分类并且设置不同的权重,以判断第一指静脉图像是否识别成功,当第一指静脉图像识别成功时,向门锁控制终端发送开锁指令,门锁控制终端控制开锁。可见,本申请实施例中,移动终端获取用户的第一指静脉图像,判断第一指静脉图像是否识别成功,识别成功才可以控制开锁,有利于提高门锁系统的安全性,并且,将指静脉图像进行截取,从中选取包含特征点最多的指静脉图像,将包含特征点最多的指静脉图像与指静脉模板进行对比,可以节约对比时间,并且对比准确率也较高,由于用户的指静脉较浅而导致获取的指静脉图像较为模糊的情况下,判断清晰度是否小于预设清晰度阈值,如果小于预设清晰度阈值,则对特征点进行分类并设置不同的权重,这样可以使得计算得到的相似度的准确率更高,降低了拒真率。It can be seen that, in the embodiment of the present application, the mobile terminal receives an unlocking request from the door lock control terminal, the unlocking request carries the security level information, and the mobile terminal searches for the first identification matching the security level information from at least one preset identification method. method, obtain the first finger vein image of the user, intercept the first finger vein image, select the finger vein image with the most feature points, and compare the finger vein image with the most feature points with the finger vein template corresponding to the first recognition method Compare, and when the finger vein image is relatively blurred, classify the feature points and set different weights to determine whether the first finger vein image is successfully recognized, and when the first finger vein image is successfully recognized, report to the door lock control terminal. Send the unlock command, and the door lock control terminal controls the unlocking. It can be seen that in the embodiment of the present application, the mobile terminal obtains the user's first finger vein image, and determines whether the first finger vein image is successfully recognized. Only after the recognition can control the unlocking, it is beneficial to improve the security of the door lock system. The vein image is intercepted, the finger vein image with the most feature points is selected from it, and the finger vein image with the most feature points is compared with the finger vein template, which can save the comparison time and the comparison accuracy is also high. When the acquired finger vein image is too shallow and the obtained finger vein image is blurred, judge whether the sharpness is less than the preset sharpness threshold, if it is less than the preset sharpness threshold, classify the feature points and set different weights, which can make the calculation The obtained similarity is more accurate and reduces the false rejection rate.

与上述图3所示的实施例一致的,请参阅图4,图4是本申请实施例提供的另一种基于指静脉识别的门锁控制方法的流程示意图,应用于门锁控制系统的移动终端,所述门锁控制系统还包括门锁控制终端,所述移动终端设置有静脉识别模块,所述移动终端建立与所述门锁控制终端的通信连接,如图4所示,本实施例提供的基于指静脉识别的门锁控制方法包括:Consistent with the embodiment shown in FIG. 3 above, please refer to FIG. 4 . FIG. 4 is a schematic flowchart of another door lock control method based on finger vein recognition provided by an embodiment of the present application, which is applied to the movement of the door lock control system. The door lock control system further includes a door lock control terminal, the mobile terminal is provided with a vein identification module, and the mobile terminal establishes a communication connection with the door lock control terminal. As shown in FIG. 4 , this embodiment The provided door lock control methods based on finger vein recognition include:

步骤401,移动终端接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息。Step 401, the mobile terminal receives an unlocking request from the door lock control terminal, and the unlocking request carries security level information.

具体的,用户需要控制开锁时,门锁控制终端向移动终端发送开锁请求,并且,开锁请求携带安全等级信息,安全等级信息根据门锁控制终端所安装的场所不同而不同。Specifically, when the user needs to control unlocking, the door lock control terminal sends an unlock request to the mobile terminal, and the unlock request carries security level information, which varies according to the place where the door lock control terminal is installed.

步骤402,移动终端从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式,第一识别方式包括识别第一手指的指静脉图像。Step 402, the mobile terminal searches for a first identification mode matching the security level information from at least one preset identification mode, where the first identification mode includes identifying a finger vein image of the first finger.

具体的,移动终端存储了至少一个识别方式以及识别方式与安全等级信息的对应关系,对于较低的安全等级,对应的识别方式较为简单,例如可以是识别任意一根手指的指静脉图像,对于较高的安全等级,对于的识别方式较为复杂,例如可以是同时识别多根手指的指静脉图像,还可以是除了识别指静脉图像以外,还要进行辅助识别,只有多种识别都通过时,才确定识别成功。Specifically, the mobile terminal stores at least one identification method and the corresponding relationship between the identification method and the security level information. For a lower security level, the corresponding identification method is relatively simple. For example, it can identify the finger vein image of any finger. The higher the security level, the more complicated the recognition method is. For example, it can recognize the finger vein images of multiple fingers at the same time, or it can also perform auxiliary recognition in addition to the recognition of the finger vein images. Only when multiple recognitions pass, It is determined that the identification is successful.

步骤403,移动终端通过静脉识别模块获取用户的第一指静脉图像。Step 403, the mobile terminal acquires the first finger vein image of the user through the vein identification module.

具体的,移动终端设置有静脉识别模块,用户将手指置于移动终端的采集区域,移动终端通过静脉识别模块获取用户的第一指静脉图像,第一指静脉图像可以是用户的拇指、食指、中指、无名指、小指中的任意一根手指的指静脉图像。Specifically, the mobile terminal is provided with a vein identification module, the user places the finger in the collection area of the mobile terminal, and the mobile terminal obtains the user's first finger vein image through the vein identification module, and the first finger vein image may be the user's thumb, index finger, The finger vein image of any one of the middle finger, ring finger, and little finger.

步骤404,移动终端将第一指静脉图像与第一识别方式对应的指静脉模板进行对比,以判断第一指静脉图像是否识别成功。Step 404 , the mobile terminal compares the first finger vein image with the finger vein template corresponding to the first identification method to determine whether the first finger vein image is successfully identified.

步骤405,当第一指静脉图像识别成功时,获取用户的第一辅助识别信息,第一识别方式还包括辅助识别。Step 405 , when the first finger vein image recognition is successful, obtain the first auxiliary identification information of the user, and the first identification method further includes auxiliary identification.

具体的,第一识别方式除了识别第一手指的指静脉图像以外,还要进行辅助识别,第一辅助识别信息可以是用户预设的密码或者图案,也可以是用户的第一手指弯曲时的指静脉图像。Specifically, in addition to recognizing the finger vein image of the first finger, the first identification method also needs to perform auxiliary identification. The first auxiliary identification information may be a password or pattern preset by the user, or may be obtained when the user's first finger is bent. Finger vein image.

步骤406,移动终端将第一辅助识别信息与第一识别方式对应的辅助识别模板进行对比,以判断第一辅助识别信息是否识别成功。Step 406 , the mobile terminal compares the first auxiliary identification information with the auxiliary identification template corresponding to the first identification mode to determine whether the first auxiliary identification information is successfully identified.

在一种可能的示例中,第一辅助识别信息为用户输入的第一密码或者第一图案,将第一辅助识别信息与第一识别方式对应的辅助识别模板进行对比,以判断第一辅助识别信息是否识别成功的方法可以是:In a possible example, the first auxiliary identification information is the first password or the first pattern input by the user, and the first auxiliary identification information is compared with the auxiliary identification template corresponding to the first identification method to determine the first auxiliary identification The method of whether the information is successfully identified can be:

将用户输入的第一密码与预先存储的密码模板进行对比;comparing the first password input by the user with a pre-stored password template;

若第一密码与密码模板相同,则确定第一辅助识别信息识别成功;If the first password is the same as the password template, it is determined that the first auxiliary identification information is successfully identified;

若第一密码与密码模板不相同,则确定第一辅助识别信息识别失败;If the first password is different from the password template, it is determined that the first auxiliary identification information has failed to be identified;

或者,将用户输入的第一图案与预先存储的图案模板进行对比;Or, comparing the first pattern input by the user with a pre-stored pattern template;

若第一图案与图案模板相同,则确定第一辅助识别信息识别成功;If the first pattern is the same as the pattern template, it is determined that the first auxiliary identification information is successfully identified;

若第一图案与图案模板不相同,则确定第一辅助识别信息识别失败。If the first pattern is different from the pattern template, it is determined that the identification of the first auxiliary identification information fails.

可见,除了识别用户第一手指的指静脉图像以外,还要进行辅助识别,包括识别用户输入的密码或者图案,保证用户第一手指的指静脉图像和辅助识别都识别成功,有利于提高门锁控制系统的安全性。It can be seen that in addition to identifying the finger vein image of the user's first finger, auxiliary identification is also required, including identifying the password or pattern entered by the user, to ensure that the finger vein image and auxiliary identification of the user's first finger are successfully recognized, which is conducive to improving the door lock. Control system security.

在另一种可能的示例中,第一辅助识别信息为第一手指弯曲时的指静脉图像,将第一辅助识别信息与第一识别方式对应的辅助识别模板进行对比,以判断第一辅助识别信息是否识别成功的方法还可以是:In another possible example, the first auxiliary identification information is a finger vein image when the first finger is bent, and the first auxiliary identification information is compared with an auxiliary identification template corresponding to the first identification method to determine the first auxiliary identification The method of whether the information is successfully identified can also be:

获取预先存储的第一手指弯曲时的指静脉模板;Obtain the pre-stored finger vein template when the first finger is bent;

将第一手指弯曲时的指静脉图像与第一手指弯曲时的指静脉模板进行对比,以得到第二相似度;comparing the finger vein image when the first finger is bent with the finger vein template when the first finger is bent to obtain a second similarity;

判断第二相似度是否超过预设相似度阈值;judging whether the second similarity exceeds a preset similarity threshold;

若第二相似度超过预设相似度阈值,则确定第一辅助识别信息识别成功;If the second similarity exceeds the preset similarity threshold, it is determined that the first auxiliary identification information is successfully identified;

若第二相似度不超过预设相似度阈值,则确定第一辅助识别信息识别失败。If the second similarity does not exceed the preset similarity threshold, it is determined that the identification of the first auxiliary identification information fails.

可见,除了识别用户第一手指的指静脉图像以外,还要进行辅助识别,包括识别用户第一手指弯曲时的指静脉图像,由于用户第一手指在竖直状态和弯曲状态下的指静脉不同,所以获取的指静脉图像也不同,保证用户第一手指的指静脉图像和第一手指弯曲时的指静脉图像都识别成功,有利于提高门锁控制系统的安全性。It can be seen that in addition to identifying the finger vein image of the user's first finger, auxiliary identification is also required, including identifying the finger vein image when the user's first finger is bent. Since the finger vein of the user's first finger is different in the vertical state and the bent state , so the obtained finger vein images are also different, ensuring that both the finger vein image of the user's first finger and the finger vein image when the first finger is bent are successfully recognized, which is beneficial to improve the security of the door lock control system.

步骤407,移动终端确定第一辅助识别信息识别成功。Step 407, the mobile terminal determines that the first auxiliary identification information is successfully identified.

步骤408,移动终端向门锁控制终端发送开锁指令。Step 408, the mobile terminal sends an unlock instruction to the door lock control terminal.

步骤409,门锁控制终端控制开锁。Step 409, the door lock control terminal controls unlocking.

可以看出,本申请实施例中,移动终端接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息,移动终端从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式,获取用户的第一指静脉图像,将第一指静脉图像与第一识别方式对应的指静脉模板进行对比,以判断第一指静脉图像是否识别成功,当第一指静脉图像识别成功时,获取用户的第一辅助识别信息,将第一辅助识别信息与第一识别方式对应的辅助识别模板进行对比,以判断第一辅助识别信息是否识别成功,确定第一辅助识别信息识别成功,向门锁控制终端发送开锁指令,门锁控制终端控制开锁。可见,本申请实施例中,移动终端获取用户的第一指静脉图像,判断第一指静脉图像是否识别成功,并且,移动终端获取用户的第一辅助识别信息,只有指静脉图像和辅助识别信息都识别成功才可以控制开锁,这样,采用指静脉识别和辅助识别的方式,更加有利于提高门锁系统的安全性。It can be seen that, in the embodiment of the present application, the mobile terminal receives an unlocking request from the door lock control terminal, the unlocking request carries the security level information, and the mobile terminal searches for the first identification matching the security level information from at least one preset identification method. method, obtain the first finger vein image of the user, and compare the first finger vein image with the finger vein template corresponding to the first recognition method to determine whether the first finger vein image is successfully recognized. When the first finger vein image is successfully recognized , obtain the first auxiliary identification information of the user, compare the first auxiliary identification information with the auxiliary identification template corresponding to the first identification method, to determine whether the first auxiliary identification information is successfully identified, determine whether the first auxiliary identification information is successfully identified, and send the The door lock control terminal sends the unlock command, and the door lock control terminal controls the unlocking. It can be seen that, in this embodiment of the present application, the mobile terminal acquires the user's first finger vein image to determine whether the first finger vein image is successfully recognized, and the mobile terminal acquires the user's first auxiliary identification information, only the finger vein image and auxiliary identification information. The unlocking can be controlled only after the identification is successful. In this way, the method of finger vein identification and auxiliary identification is more conducive to improving the security of the door lock system.

与上述图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种移动终端500的结构示意图,如图所示,所述移动终端500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应用处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令;Consistent with the embodiments shown in FIG. 3 and FIG. 4 above, please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a mobile terminal 500 provided by an embodiment of the present application. As shown in the figure, the mobile terminal 500 includes an application A processor 510, a memory 520, a communication interface 530, and one or more programs 521, wherein the one or more programs 521 are stored in the above-mentioned memory 520 and configured to be executed by the above-mentioned application processor 510, the one or more programs 521 include instructions for performing the following steps;

接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息;Receive the unlocking request from the door lock control terminal, and the unlocking request carries the security level information;

从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式;Searching for a first identification mode matching the security level information from at least one preset identification mode;

通过静脉识别模块获取用户的第一指静脉图像;Obtain the user's first finger vein image through the vein identification module;

将第一指静脉图像与第一识别方式对应的指静脉模板进行对比,以判断第一指静脉图像是否识别成功;Comparing the first finger vein image with the finger vein template corresponding to the first identification method to determine whether the first finger vein image is successfully identified;

当第一指静脉图像识别成功时,向门锁控制终端发送开锁指令,开锁指令用于指示门锁控制终端控制开锁。When the first finger vein image is successfully recognized, an unlock instruction is sent to the door lock control terminal, and the unlock instruction is used to instruct the door lock control terminal to control unlocking.

可以看出,本申请实施例中,移动终端接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息,移动终端从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式,获取用户的第一指静脉图像,将第一指静脉图像与第一识别方式对应的指静脉模板进行对比,以判断第一指静脉图像是否识别成功,当第一指静脉图像识别成功时,向门锁控制终端发送开锁指令,门锁控制终端控制开锁。可见,本申请实施例中,移动终端获取用户的第一指静脉图像,判断第一指静脉图像是否识别成功,识别成功才可以控制开锁,并且对于不同的安全等级,设置有不同的识别方式,在不同的安全等级下以不同方式识别,同样的,识别成功才可以控制开锁,这样,采用指静脉识别的方式,安全性较高,并且满足了不同安全等级下控制开锁的需求,有利于提高门锁系统的安全性。It can be seen that, in the embodiment of the present application, the mobile terminal receives an unlocking request from the door lock control terminal, the unlocking request carries the security level information, and the mobile terminal searches for the first identification matching the security level information from at least one preset identification method. method, obtain the first finger vein image of the user, and compare the first finger vein image with the finger vein template corresponding to the first recognition method to determine whether the first finger vein image is successfully recognized. When the first finger vein image is successfully recognized , send the unlock command to the door lock control terminal, and the door lock control terminal controls the unlocking. It can be seen that, in the embodiment of the present application, the mobile terminal obtains the user's first finger vein image, determines whether the first finger vein image is successfully recognized, and can control unlocking only after the recognition is successful, and for different security levels, different identification methods are set. It can be identified in different ways under different security levels. Similarly, the unlocking can be controlled only after the identification is successful. In this way, the finger vein identification method is used, which has high security and meets the needs of controlled unlocking under different security levels, which is conducive to improving The security of the door locking system.

在一个可能的示例中,所述第一识别方式包括识别第一手指的指静脉图像,在所述将所述第一指静脉图像与所述第一识别方式对应的指静脉模板进行对比,以判断所述第一指静脉图像是否识别成功方面,所述程序中的指令具体用于执行以下操作:获取预先存储的所述第一手指的指静脉模板;将所述第一指静脉图像与所述第一手指的指静脉模板进行对比,以得到第一相似度;判断所述第一相似度是否超过预设相似度阈值;若所述第一相似度超过所述预设相似度阈值,则确定所述第一指静脉图像识别成功;若所述第一相似度不超过所述预设相似度阈值,则确定所述第一指静脉图像识别失败。In a possible example, the first recognition method includes recognizing a finger vein image of a first finger, and in the comparison of the first finger vein image with a finger vein template corresponding to the first recognition method, to obtain In terms of judging whether the recognition of the first finger vein image is successful, the instructions in the program are specifically used to perform the following operations: obtain a pre-stored finger vein template of the first finger; compare the first finger vein image with the comparing the finger vein templates of the first finger to obtain a first similarity; judging whether the first similarity exceeds a preset similarity threshold; if the first similarity exceeds the preset similarity threshold, then It is determined that the recognition of the first finger vein image is successful; if the first similarity does not exceed the preset similarity threshold, it is determined that the recognition of the first finger vein image fails.

在一个可能的示例中,在所述将所述第一指静脉图像与所述第一手指的指静脉模板进行对比,以得到第一相似度方面,所述程序中的指令具体用于执行以下操作:分析所述第一指静脉图像的特征点分布;按照M个不同圆心对所述第一指静脉图像进行圆形图像截取,得到M个圆形指静脉图像,所述M为大于3的整数;从所述M个圆形指静脉图像中选出目标圆形指静脉图像,所述目标圆形指静脉图像所包含的特征点的数量大于所述M个圆形指静脉图像中的其他圆形指静脉图像;将所述目标圆形指静脉图像与所述第一手指的指静脉模板进行特征点匹配,以得到所述第一相似度。In a possible example, in the aspect of comparing the first finger vein image with the finger vein template of the first finger to obtain the first similarity, the instructions in the program are specifically used to execute the following Operation: analyze the feature point distribution of the first finger vein image; perform circular image interception on the first finger vein image according to M different circle centers to obtain M circular finger vein images, where M is greater than 3 Integer; a target circular finger vein image is selected from the M circular finger vein images, and the number of feature points contained in the target circular finger vein image is greater than that of the other M circular finger vein images A circular finger vein image; feature point matching is performed between the target circular finger vein image and the finger vein template of the first finger to obtain the first similarity.

在一个可能的示例中,在所述将所述目标圆形指静脉图像与所述第一手指的指静脉模板进行特征点匹配,以得到所述第一相似度方面,所述程序中的指令具体用于执行以下操作:当所述目标圆形指静脉图像的清晰度不小于预设清晰度阈值时,将所述目标圆形指静脉图像中所有的特征点与所述第一手指的指静脉模板进行特征点匹配,以得到所述第一相似度;当所述目标圆形指静脉图像的清晰度小于所述预设清晰度阈值时,将所述目标圆形指静脉图像中所有的特征点分为N类特征点,所述N为大于1的整数,所述N类特征点设置的权重不同;将所述N类特征点与所述第一手指的指静脉模板进行特征点匹配,以得到所述第一相似度。In a possible example, in the aspect of performing feature point matching between the target circular finger vein image and the finger vein template of the first finger to obtain the first similarity, the instructions in the program Specifically, the following operations are performed: when the definition of the target circular finger vein image is not less than a preset definition threshold, compare all the feature points in the target circular finger vein image with the finger of the first finger. The vein template performs feature point matching to obtain the first similarity; when the definition of the target circular finger vein image is less than the preset definition threshold, all the The feature points are divided into N types of feature points, the N is an integer greater than 1, and the weights set for the N types of feature points are different; the feature points of the N types of feature points are matched with the finger vein template of the first finger. , to obtain the first similarity.

在一个可能的示例中,所述第一识别方式还包括辅助识别,在所述向所述门锁控制终端发送开锁指令之前,所述程序中的指令还用于执行以下操作:获取所述用户的第一辅助识别信息;将所述第一辅助识别信息与所述第一识别方式对应的辅助识别模板进行对比,以判断所述第一辅助识别信息是否识别成功;确定所述第一辅助识别信息识别成功。In a possible example, the first identification method further includes auxiliary identification, and before the unlocking instruction is sent to the door lock control terminal, the instructions in the program are further used to perform the following operations: obtaining the user the first auxiliary identification information; compare the first auxiliary identification information with the auxiliary identification template corresponding to the first identification method to judge whether the first auxiliary identification information is successfully identified; determine the first auxiliary identification Information identification succeeded.

在一个可能的示例中,所述第一辅助识别信息为所述用户输入的第一密码或者第一图案,在所述将所述第一辅助识别信息与所述第一识别方式对应的辅助识别模板进行对比,以判断所述第一辅助识别信息是否识别成功方面,所述程序中的指令用于执行以下操作:将所述用户输入的第一密码与预先存储的密码模板进行对比;若所述第一密码与所述密码模板相同,则确定所述第一辅助识别信息识别成功;若所述第一密码与所述密码模板不相同,则确定所述第一辅助识别信息识别失败;或者,将所述用户输入的第一图案与预先存储的图案模板进行对比;若所述第一图案与所述图案模板相同,则确定所述第一辅助识别信息识别成功;若所述第一图案与所述图案模板不相同,则确定所述第一辅助识别信息识别失败。In a possible example, the first auxiliary identification information is a first password or a first pattern input by the user, and in the auxiliary identification corresponding to the first auxiliary identification information and the first identification manner In terms of comparing the templates to determine whether the first auxiliary identification information is successfully identified, the instructions in the program are used to perform the following operations: compare the first password input by the user with a pre-stored password template; If the first password is the same as the password template, it is determined that the first auxiliary identification information is successfully identified; if the first password is not the same as the password template, it is determined that the first auxiliary identification information has failed to be identified; or , compare the first pattern input by the user with the pre-stored pattern template; if the first pattern is the same as the pattern template, it is determined that the first auxiliary identification information is successfully recognized; if the first pattern is the same as the pattern template If it is different from the pattern template, it is determined that the first auxiliary identification information fails to be identified.

在一个可能的示例中,所述第一辅助识别信息为所述第一手指弯曲时的指静脉图像,在所述将所述第一辅助识别信息与所述第一识别方式对应的辅助识别模板进行对比,以判断所述第一辅助识别信息是否识别成功方面,所述程序中的指令具体用于执行以下操作:获取预先存储的所述第一手指弯曲时的指静脉模板;将所述第一手指弯曲时的指静脉图像与所述第一手指弯曲时的指静脉模板进行对比,以得到第二相似度;判断所述第二相似度是否超过所述预设相似度阈值;若所述第二相似度超过所述预设相似度阈值,则确定所述第一辅助识别信息识别成功;若所述第二相似度不超过所述预设相似度阈值,则确定所述第一辅助识别信息识别失败。In a possible example, the first auxiliary identification information is a finger vein image when the first finger is bent, and in the auxiliary identification template corresponding to the first auxiliary identification information and the first identification manner In terms of comparing to determine whether the first auxiliary identification information is successfully identified, the instructions in the program are specifically used to perform the following operations: obtain a pre-stored finger vein template when the first finger is bent; A finger vein image when a finger is bent is compared with a finger vein template when the first finger is bent to obtain a second similarity; determine whether the second similarity exceeds the preset similarity threshold; if the If the second similarity exceeds the preset similarity threshold, it is determined that the first auxiliary identification information is successfully identified; if the second similarity does not exceed the preset similarity threshold, it is determined that the first auxiliary identification Message recognition failed.

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

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

图6是本申请实施例中所涉及的基于指静脉识别的门锁控制的装置600的功能单元组成框图。该基于指静脉识别的门锁控制装置600应用于门锁控制系统的移动终端,所述门锁控制系统还包括门锁控制终端,所述移动终端设置有静脉识别模块,所述移动终端建立与所述门锁控制终端的通信连接,该基于指静脉识别的门锁控制的装置600包括处理单元601和通信单元602,其中,FIG. 6 is a block diagram of functional units of an apparatus 600 for door lock control based on finger vein recognition involved in the embodiment of the present application. The door lock control device 600 based on finger vein recognition is applied to a mobile terminal of a door lock control system, the door lock control system further includes a door lock control terminal, the mobile terminal is provided with a vein recognition module, and the mobile terminal establishes a The communication connection of the door lock control terminal, the device 600 for door lock control based on finger vein recognition includes a processing unit 601 and a communication unit 602, wherein,

所述通信单元602,用于接收来自所述门锁控制终端的开锁请求,所述开锁请求携带安全等级信息;The communication unit 602 is configured to receive an unlocking request from the door lock control terminal, where the unlocking request carries security level information;

所述处理单元601,用于从预设的至少一个识别方式中查找与所述安全等级信息匹配的第一识别方式;The processing unit 601 is configured to search for a first identification mode matching the security level information from at least one preset identification mode;

以及用于通过所述静脉识别模块获取用户的第一指静脉图像;and for obtaining the first finger vein image of the user through the vein identification module;

以及用于将所述第一指静脉图像与所述第一识别方式对应的指静脉模板进行对比,以判断所述第一指静脉图像是否识别成功;and being used to compare the first finger vein image with the finger vein template corresponding to the first identification method, to determine whether the first finger vein image is successfully identified;

所述通信单元602,还用于当所述第一指静脉图像识别成功时,向所述门锁控制终端发送开锁指令,所述开锁指令用于指示所述门锁控制终端控制开锁。The communication unit 602 is further configured to send an unlock instruction to the door lock control terminal when the first finger vein image is successfully recognized, where the unlock instruction is used to instruct the door lock control terminal to control unlocking.

其中,所述基于指静脉识别的门锁控制的装置600还可以包括存储单元603,所述存储单元603用于存储移动终端的程序代码和数据。所述处理单元601可以是处理器,所述通信单元602可以是触控显示屏或者收发器,所述存储单元603可以是存储器。Wherein, the device 600 for door lock control based on finger vein recognition may further include a storage unit 603, and the storage unit 603 is used to store program codes and data of the mobile terminal. The processing unit 601 may be a processor, the communication unit 602 may be a touch screen display or a transceiver, and the storage unit 603 may be a memory.

可以看出,本申请实施例中,移动终端接收来自门锁控制终端的开锁请求,开锁请求携带安全等级信息,移动终端从预设的至少一个识别方式中查找与安全等级信息匹配的第一识别方式,获取用户的第一指静脉图像,将第一指静脉图像与第一识别方式对应的指静脉模板进行对比,以判断第一指静脉图像是否识别成功,当第一指静脉图像识别成功时,向门锁控制终端发送开锁指令,门锁控制终端控制开锁。可见,本申请实施例中,移动终端获取用户的第一指静脉图像,判断第一指静脉图像是否识别成功,识别成功才可以控制开锁,并且对于不同的安全等级,设置有不同的识别方式,在不同的安全等级下以不同方式识别,同样的,识别成功才可以控制开锁,这样,采用指静脉识别的方式,安全性较高,并且满足了不同安全等级下控制开锁的需求,有利于提高门锁系统的安全性。It can be seen that, in the embodiment of the present application, the mobile terminal receives an unlocking request from the door lock control terminal, the unlocking request carries the security level information, and the mobile terminal searches for the first identification matching the security level information from at least one preset identification method. method, obtain the first finger vein image of the user, and compare the first finger vein image with the finger vein template corresponding to the first recognition method to determine whether the first finger vein image is successfully recognized. When the first finger vein image is successfully recognized , send the unlock command to the door lock control terminal, and the door lock control terminal controls the unlocking. It can be seen that, in the embodiment of the present application, the mobile terminal obtains the user's first finger vein image, determines whether the first finger vein image is successfully recognized, and can control unlocking only after the recognition is successful, and for different security levels, different identification methods are set. It can be identified in different ways under different security levels. Similarly, the unlocking can be controlled only after the identification is successful. In this way, the finger vein identification method is used, which has high security and meets the needs of controlled unlocking under different security levels, which is conducive to improving The security of the door locking system.

在一个可能的示例中,所述第一识别方式包括识别第一手指的指静脉图像,在所述将所述第一指静脉图像与所述第一识别方式对应的指静脉模板进行对比,以判断所述第一指静脉图像是否识别成功方面,所述处理单元601具体用于:获取预先存储的所述第一手指的指静脉模板;将所述第一指静脉图像与所述第一手指的指静脉模板进行对比,以得到第一相似度;判断所述第一相似度是否超过预设相似度阈值;若所述第一相似度超过所述预设相似度阈值,则确定所述第一指静脉图像识别成功;若所述第一相似度不超过所述预设相似度阈值,则确定所述第一指静脉图像识别失败。In a possible example, the first recognition method includes recognizing a finger vein image of a first finger, and in the comparison of the first finger vein image with a finger vein template corresponding to the first recognition method, to obtain In terms of determining whether the first finger vein image is successfully recognized, the processing unit 601 is specifically configured to: obtain a pre-stored finger vein template of the first finger; associate the first finger vein image with the first finger The finger vein templates are compared to obtain a first similarity; determine whether the first similarity exceeds a preset similarity threshold; if the first similarity exceeds the preset similarity threshold, determine the first similarity A finger vein image is successfully recognized; if the first similarity does not exceed the preset similarity threshold, it is determined that the first finger vein image recognition fails.

在一个可能的示例中,在所述将所述第一指静脉图像与所述第一手指的指静脉模板进行对比,以得到第一相似度方面,所述处理单元601具体用于:分析所述第一指静脉图像的特征点分布;按照M个不同圆心对所述第一指静脉图像进行圆形图像截取,得到M个圆形指静脉图像,所述M为大于3的整数;从所述M个圆形指静脉图像中选出目标圆形指静脉图像,所述目标圆形指静脉图像所包含的特征点的数量大于所述M个圆形指静脉图像中的其他圆形指静脉图像;将所述目标圆形指静脉图像与所述第一手指的指静脉模板进行特征点匹配,以得到所述第一相似度。In a possible example, in the aspect of comparing the first finger vein image with the finger vein template of the first finger to obtain the first similarity, the processing unit 601 is specifically configured to: analyze the The feature point distribution of the first finger vein image; the circular image interception is performed on the first finger vein image according to M different circle centers to obtain M circular finger vein images, where M is an integer greater than 3; A target circular finger vein image is selected from the M circular finger vein images, and the number of feature points contained in the target circular finger vein image is greater than that of other circular finger veins in the M circular finger vein images image; perform feature point matching between the target circular finger vein image and the finger vein template of the first finger to obtain the first similarity.

在一个可能的示例中,在所述将所述目标圆形指静脉图像与所述第一手指的指静脉模板进行特征点匹配,以得到所述第一相似度方面,所述处理单元601具体用于:当所述目标圆形指静脉图像的清晰度不小于预设清晰度阈值时,将所述目标圆形指静脉图像中所有的特征点与所述第一手指的指静脉模板进行特征点匹配,以得到所述第一相似度;当所述目标圆形指静脉图像的清晰度小于所述预设清晰度阈值时,将所述目标圆形指静脉图像中所有的特征点分为N类特征点,所述N为大于1的整数,所述N类特征点设置的权重不同;将所述N类特征点与所述第一手指的指静脉模板进行特征点匹配,以得到所述第一相似度。In a possible example, in the aspect of performing feature point matching between the target circular finger vein image and the finger vein template of the first finger to obtain the first similarity, the processing unit 601 specifically Used for: when the definition of the target circular finger vein image is not less than a preset definition threshold, characterize all the feature points in the target circular finger vein image with the finger vein template of the first finger Point matching to obtain the first similarity; when the clarity of the target circular finger vein image is less than the preset definition threshold, all feature points in the target circular finger vein image are divided into N types of feature points, the N is an integer greater than 1, and the weights set for the N types of feature points are different; the N types of feature points are matched with the finger vein template of the first finger to obtain the Describe the first similarity.

在一个可能的示例中,所述第一识别方式还包括辅助识别,在所述向所述门锁控制终端发送开锁指令之前,所述处理单元601还具体用于:获取所述用户的第一辅助识别信息;将所述第一辅助识别信息与所述第一识别方式对应的辅助识别模板进行对比,以判断所述第一辅助识别信息是否识别成功;确定所述第一辅助识别信息识别成功。In a possible example, the first identification method further includes auxiliary identification, and before sending the unlocking instruction to the door lock control terminal, the processing unit 601 is further specifically configured to: obtain the first identification of the user. auxiliary identification information; compare the first auxiliary identification information with the auxiliary identification template corresponding to the first identification method to determine whether the first auxiliary identification information is successfully identified; determine that the first auxiliary identification information is successfully identified .

在一个可能的示例中,所述第一辅助识别信息为所述用户输入的第一密码或者第一图案,在所述将所述第一辅助识别信息与所述第一识别方式对应的辅助识别模板进行对比,以判断所述第一辅助识别信息是否识别成功方面,所述处理单元601具体用于:将所述用户输入的第一密码与预先存储的密码模板进行对比;若所述第一密码与所述密码模板相同,则确定所述第一辅助识别信息识别成功;若所述第一密码与所述密码模板不相同,则确定所述第一辅助识别信息识别失败;或者,将所述用户输入的第一图案与预先存储的图案模板进行对比;若所述第一图案与所述图案模板相同,则确定所述第一辅助识别信息识别成功;若所述第一图案与所述图案模板不相同,则确定所述第一辅助识别信息识别失败。In a possible example, the first auxiliary identification information is a first password or a first pattern input by the user, and in the auxiliary identification corresponding to the first auxiliary identification information and the first identification manner In terms of comparing the templates to determine whether the first auxiliary identification information is successfully identified, the processing unit 601 is specifically configured to: compare the first password input by the user with a pre-stored password template; If the password is the same as the password template, it is determined that the first auxiliary identification information is successfully identified; if the first password is not the same as the password template, it is determined that the first auxiliary identification information has failed to be identified; The first pattern input by the user is compared with a pre-stored pattern template; if the first pattern is the same as the pattern template, it is determined that the first auxiliary identification information is successfully recognized; If the pattern templates are different, it is determined that the first auxiliary identification information fails to be identified.

在一个可能的示例中,所述第一辅助识别信息为所述第一手指弯曲时的指静脉图像,在所述将所述第一辅助识别信息与所述第一识别方式对应的辅助识别模板进行对比,以判断所述第一辅助识别信息是否识别成功方面,所述处理单元601具体用于:获取预先存储的所述第一手指弯曲时的指静脉模板;将所述第一手指弯曲时的指静脉图像与所述第一手指弯曲时的指静脉模板进行对比,以得到第二相似度;判断所述第二相似度是否超过所述预设相似度阈值;若所述第二相似度超过所述预设相似度阈值,则确定所述第一辅助识别信息识别成功;若所述第二相似度不超过所述预设相似度阈值,则确定所述第一辅助识别信息识别失败。In a possible example, the first auxiliary identification information is a finger vein image when the first finger is bent, and in the auxiliary identification template corresponding to the first auxiliary identification information and the first identification manner In terms of comparing to determine whether the first auxiliary identification information is successfully identified, the processing unit 601 is specifically configured to: obtain a pre-stored finger vein template when the first finger is bent; Compare the finger vein image of the first finger with the finger vein template when the first finger is bent to obtain a second similarity; judge whether the second similarity exceeds the preset similarity threshold; if the second similarity If the preset similarity threshold is exceeded, it is determined that the first auxiliary identification information is successfully identified; if the second similarity does not exceed the preset similarity threshold, it is determined that the first auxiliary identification information has failed to be identified.

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

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

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

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

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

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

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

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

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

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

Claims (10)

1. a kind of based on the control method for door lock for referring to hand vein recognition, which is characterized in that the mobile end applied to door lock control system End, the door lock control system further includes door lock controlling terminal, and the mobile terminal is provided with hand vein recognition module, the movement Terminal establishes the communication connection with the door lock controlling terminal, which comprises
The unlocking request from the door lock controlling terminal is received, class information safe to carry is requested in the unlocking;
It is searched and matched first identification method of the safety level information from least one preset identification method;
Obtain user by the hand vein recognition module first refers to vein image;
First finger vein image finger vein template corresponding with first identification method is compared, described in judgement Whether the first finger vein image identifies success;
When the first finger vein image identifies successfully, Xiang Suoshu door lock controlling terminal sends unlocking instruction, and the unlocking refers to Order is used to indicate the door lock controlling terminal control and unlocks.
2. the method according to claim 1, wherein first identification method includes the finger for identifying the first finger Vein image, it is described to compare the first finger vein image finger vein template corresponding with first identification method, To judge whether the first finger vein image identifies success, include:
Obtain the finger vein template of pre-stored first finger;
The finger vein template of first the finger vein image and first finger is compared, to obtain the first similarity;
Judge whether first similarity is more than default similarity threshold;
If first similarity is more than the default similarity threshold, it is determined that the first finger vein image identifies successfully;
If first similarity is no more than the default similarity threshold, it is determined that described first refers to that vein image identification is lost It loses.
3. according to the method described in claim 2, it is characterized in that, it is described by it is described first refer to vein image with it is described first-hand The finger vein template of finger compares, to obtain the first similarity, comprising:
Analyze the described first characteristic point distribution for referring to vein image;
Refer to that vein image carries out circular image interception to described first according to a not concentric of M, obtains M circle and refer to vein figure Picture, the M are the integer greater than 3;
Refer to that target circle is selected in vein image refers to vein image from the M circle, the target circle refers to vein image institute The quantity for the characteristic point for including is greater than the M circle and refers to that other circles in vein image refer to vein image;
The target circle is referred to that the finger vein template of vein image and first finger carries out Feature Points Matching, to obtain State the first similarity.
4. according to the method described in claim 3, it is characterized in that, described refer to vein image and described for the target circle The finger vein template of one finger carries out Feature Points Matching, to obtain first similarity, comprising:
When the target circle refers to the clarity of vein image not less than default clarity threshold, the target circle is referred to quiet All characteristic points and the finger vein template of first finger carry out Feature Points Matching in arteries and veins image, to obtain first phase Like degree;
When the target circle refers to the clarity of vein image less than the default clarity threshold, the target circle is referred to All characteristic points are divided into N category feature point in vein image, and the N is the integer greater than 1, the power of the N category feature point setting Weight is different;
The finger vein template of the N category feature point and first finger is subjected to Feature Points Matching, to obtain first phase Like degree.
5. according to the described in any item methods of claim 2 to 4, which is characterized in that first identification method further includes auxiliary It identifies, before the transmission unlocking instruction to the door lock controlling terminal, the method also includes:
Obtain the first auxiliary identification information of the user;
First auxiliary identification information template that assists in identifying corresponding with first identification method is compared, with judgement Whether first auxiliary identification information identifies success;
Determine that first auxiliary identification information identifies successfully.
6. according to the method described in claim 5, it is characterized in that, first auxiliary identification information is user input First password or the first pattern, it is described to know first auxiliary identification information auxiliary corresponding with first identification method Other template compares, to judge whether first auxiliary identification information identifies success, comprising:
The first password that the user inputs is compared with pre-stored cipher template;
If the first password is identical as the cipher template, it is determined that first auxiliary identification information identifies successfully;
If the first password and the cipher template be not identical, it is determined that the first auxiliary identification information recognition failures;
Alternatively, the first pattern that the user inputs is compared with pre-stored pattern template;
If first pattern is identical as the pattern template, it is determined that first auxiliary identification information identifies successfully;
If first pattern and the pattern template be not identical, it is determined that the first auxiliary identification information recognition failures.
7. according to the method described in claim 5, it is characterized in that, first auxiliary identification information is that first finger is curved Finger vein image when bent, it is described to assist in identifying mould for first auxiliary identification information is corresponding with first identification method Plate compares, to judge whether first auxiliary identification information identifies success, comprising:
Obtain finger vein template when pre-stored first digital flexion;
Finger vein image when by first digital flexion is compared with finger vein template when first digital flexion, To obtain the second similarity;
Judge whether second similarity is more than the default similarity threshold;
If second similarity is more than the default similarity threshold, it is determined that first auxiliary identification information is identified as Function;
If second similarity is no more than the default similarity threshold, it is determined that the first auxiliary identification information identification is lost It loses.
8. a kind of device based on the door lock control for referring to hand vein recognition, which is characterized in that the movement applied to door lock control system Terminal, the door lock control system further include door lock controlling terminal, and the mobile terminal is provided with hand vein recognition module, the shifting Dynamic terminal establishes the communication connection with the door lock controlling terminal, and described device includes communication unit and processing unit, wherein
The communication unit, for receiving the unlocking request from the door lock controlling terminal, the unlocking request is safe to carry Class information;
The processing unit, for being searched from least one preset identification method and the safety level information matched the One identification method;And refer to vein image for obtaining the first of user by the hand vein recognition module;And it is used for institute It states the first finger vein image finger vein template corresponding with first identification method to compare, to judge that first finger is quiet Whether arteries and veins image identifies success;
The communication unit is also used to when the first finger vein image identifies successfully, and Xiang Suoshu door lock controlling terminal is sent Unlocking instruction, the unlocking instruction are used to indicate the door lock controlling terminal control and unlock.
9. a kind of mobile terminal, which is characterized in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet Include the instruction for executing the step in method as described in any one of claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute method as described in any one of claim 1 to 7.
CN201910550877.0A 2019-06-24 2019-06-24 Door lock control method and related device based on finger vein recognition Expired - Fee Related CN110232761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910550877.0A CN110232761B (en) 2019-06-24 2019-06-24 Door lock control method and related device based on finger vein recognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910550877.0A CN110232761B (en) 2019-06-24 2019-06-24 Door lock control method and related device based on finger vein recognition

Publications (2)

Publication Number Publication Date
CN110232761A true CN110232761A (en) 2019-09-13
CN110232761B CN110232761B (en) 2021-05-07

Family

ID=67857240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910550877.0A Expired - Fee Related CN110232761B (en) 2019-06-24 2019-06-24 Door lock control method and related device based on finger vein recognition

Country Status (1)

Country Link
CN (1) CN110232761B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625795A (en) * 2020-05-14 2020-09-04 重庆智脉通科技有限公司 Login authentication system and method based on finger veins
CN113516817A (en) * 2021-07-06 2021-10-19 深圳市联洲国际技术有限公司 Anti-theft device control method, device, electronic device and anti-theft device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8675928B2 (en) * 2011-06-14 2014-03-18 Moon J. Kim Multiple charge-coupled biometric sensor array
CN105389879A (en) * 2015-12-25 2016-03-09 成都比善科技开发有限公司 Intelligent entrance guard system and control method thereof
CN106033625A (en) * 2015-03-10 2016-10-19 阿里巴巴集团控股有限公司 Lock, mobile terminal, lock control method, and lock control system
CN107465512A (en) * 2017-07-13 2017-12-12 广东欧珀移动通信有限公司 Authorization processing method and Related product
CN207586942U (en) * 2017-08-29 2018-07-06 广州微盾科技股份有限公司 A kind of finger hand vein recognition module for mobile terminal
CN207892381U (en) * 2018-02-07 2018-09-21 上海享服信息技术有限公司 Based on the intelligent lock system for referring to hand vein recognition
CN109615738A (en) * 2018-11-30 2019-04-12 深圳绿米联创科技有限公司 Door lock management method, device, electronic device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8675928B2 (en) * 2011-06-14 2014-03-18 Moon J. Kim Multiple charge-coupled biometric sensor array
CN106033625A (en) * 2015-03-10 2016-10-19 阿里巴巴集团控股有限公司 Lock, mobile terminal, lock control method, and lock control system
CN105389879A (en) * 2015-12-25 2016-03-09 成都比善科技开发有限公司 Intelligent entrance guard system and control method thereof
CN107465512A (en) * 2017-07-13 2017-12-12 广东欧珀移动通信有限公司 Authorization processing method and Related product
CN207586942U (en) * 2017-08-29 2018-07-06 广州微盾科技股份有限公司 A kind of finger hand vein recognition module for mobile terminal
CN207892381U (en) * 2018-02-07 2018-09-21 上海享服信息技术有限公司 Based on the intelligent lock system for referring to hand vein recognition
CN109615738A (en) * 2018-11-30 2019-04-12 深圳绿米联创科技有限公司 Door lock management method, device, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625795A (en) * 2020-05-14 2020-09-04 重庆智脉通科技有限公司 Login authentication system and method based on finger veins
CN113516817A (en) * 2021-07-06 2021-10-19 深圳市联洲国际技术有限公司 Anti-theft device control method, device, electronic device and anti-theft device

Also Published As

Publication number Publication date
CN110232761B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
EP3480727B1 (en) Method and apparatus for identity recognition
KR102334209B1 (en) Method for authenticating user and electronic device supporting the same
CN104123161B (en) The method that a kind of unlocking screen of utilization human eye fixation point and application start
US20120117633A1 (en) Enhanced Security For Pervasive Devices Using A Weighting System
CN105429969B (en) A user authentication method and device
CN103186769A (en) Method and system for fingerprint verification, and fingerprint collector
US20100045787A1 (en) Authenticating apparatus, authenticating system, and authenticating method
WO2015197008A1 (en) Biometric authentication method and terminal
CN107657161A (en) Mobile payment method and related products based on face recognition
CN104580260B (en) A kind of safety method suitable for Intelligent terminal for Internet of things
TWI679586B (en) Handwriting data processing method and device
CN105205380A (en) Unlocking method and device of mobile terminal
CN203276380U (en) Distributed door access authentication system based on palm veins
CN111274563A (en) Security authentication method and related device
CN107368722A (en) Biological image verification method, computer readable storage medium, mobile terminal
CN111966991A (en) Equipment unlocking method, device, equipment and storage medium
CN108877098B (en) Cardless withdrawal method, device, system, storage medium and electronic equipment
CN116437355A (en) Method and device for wireless device identity authentication based on radio frequency fingerprint
CN104253818A (en) Server and terminal authentication method, server, terminal
CN105117633A (en) Face recognition login validation system for Windows system
CN110232761A (en) Door lock control method and related device based on finger vein recognition
CN111582228A (en) Recognition method, device, device and storage medium of living palm print
CN203224925U (en) Palm vein-based centralized entrance guard authentication system
CN110546638A (en) Improvements in biometric authentication
CN112581664A (en) Control method and device based on intelligent identification, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210507

CF01 Termination of patent right due to non-payment of annual fee