A lock opening method based on vein entry and recognition and an intelligent lock
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-15
- Publication Date
- 2026-08-11
AI Technical Summary
[0006]本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种基于静脉录入与识别的开锁方法及智能锁,旨在解决现有技术中由于人脸识别的复杂性不够且易受外在环境影响,指纹识别容易被伪造复制、易受外在环境影响、易皮肤表面状况影响且老人小孩等指纹不清晰人群的指纹识别困难,声纹识别精度低且面临录音窃听,而虹膜识别采集困难且使用方式受限,即现有的生物识别技术不能满足识别过程中的安全与便利问题
[0017]有益效果:与现有技术相比,本发明提供了一种基于静脉录入与识别的开锁方法,首先获取目标部位的位置信息,调整所述目标部位的位置居于预设的位置识别范围,在所述位置识别范围内录入目标部位的静脉图像,所述静脉图像包括第一静脉图像和第二静脉图像;对录入的所述第一静脉图像进行处理,得到所述第一静脉图像的第一静脉特征,基于所述第一静脉特征构建特征图谱;对录入的所述第二静脉图像进行处理,得到所述第二静脉图像的第二静脉特征,将所述第二静脉特征与所述特征图谱中的第一静脉特征进行对比,根据对比结果确定开锁状态。本发明中是将静脉特征作为开锁的识别依据,因此,本发明提供的基于静脉录入与识别的开锁方法能够提高用户在身份认证时的安全性与准确性。
Smart Images

Figure CN122551455A_ABST
Abstract
Description
[0001] This invention is a divisional application of the invention entitled "An unlocking method and smart lock based on vein recording and recognition", filed on August 15, 2023, with application number 2023110314381 and titled "A method for unlocking based on vein recording and recognition". The original receiving agency was in China. Technical Field
[0002] This invention relates to the field of smart lock technology, and in particular to a lock unlocking method and smart lock based on vein recording and recognition. Background Technology
[0003] In existing technologies, biometric technology has gradually replaced traditional identity authentication methods such as magnetic cards and passwords, effectively avoiding the risks of loss and theft associated with traditional methods and improving the security and convenience of identity authentication. Biometric technology utilizes inherent physiological characteristics and behavioral features of the human body, combined with technologies such as optics, acoustics, sensors, pattern matching, and deep learning, to achieve personal identity verification. It mainly includes facial recognition, fingerprint recognition, voiceprint recognition, and iris recognition.
[0004] However, due to the lack of complexity of facial recognition and its susceptibility to external environmental influences, the ease with which fingerprint recognition can be forged and copied, the susceptibility to external environmental influences and skin surface conditions, and the difficulty in recognizing fingerprints of the elderly and children with unclear fingerprints, the low accuracy of voiceprint recognition and the vulnerability to recording and eavesdropping, and the difficulty in collecting iris recognition data and the limitations in its usage, existing biometric technologies cannot meet the requirements of security and convenience in the recognition process.
[0005] Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention
[0006] The technical problem to be solved by this invention is to provide an unlocking method and smart lock based on vein recording and recognition, addressing the above-mentioned deficiencies of the prior art. This invention aims to solve the problems of insufficient complexity and susceptibility to external environmental influences in the existing technologies, easy forgery and duplication of fingerprint recognition, susceptibility to external environmental influences and skin surface conditions, and difficulty in fingerprint recognition for people with unclear fingerprints such as the elderly and children, low accuracy of voiceprint recognition and vulnerability to recording and eavesdropping, and difficulty in iris recognition acquisition and limited usage. In other words, the existing biometric technologies cannot meet the security and convenience issues in the recognition process.
[0007] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: In a first aspect, the present invention provides an unlocking method based on vein recording and recognition, wherein the method includes: The location information of the target part is obtained, the position of the target part is adjusted to be within a preset location recognition range, and the vein image of the target part is recorded within the location recognition range. The vein image includes a first vein image and a second vein image. The first vein image is processed to obtain the first vein feature of the first vein image, and a feature map is constructed based on the first vein feature; The second vein image is processed to obtain the second vein feature of the second vein image. The second vein feature is compared with the first vein feature in the feature atlas, and the unlocking status is determined based on the comparison result.
[0008] In one implementation, the vein image of the target area is one or more of the following: a palm vein image, a finger vein image, and a wrist vein image.
[0009] In one implementation, obtaining the position information of the target part and adjusting the position of the target part to be within a preset position recognition range includes: Receive an input instruction and acquire the original image of the target area based on the input instruction; The original image is binarized and edge detected to obtain the image contour of the target part in the original image, and the center point position of the target part is determined based on the image contour. Based on the position of the center point, the position of the target part is adjusted to be within a preset position recognition range.
[0010] In one implementation, adjusting the position of the target part to fall within a preset position recognition range based on the center point position includes: The preset location identification range is divided into several regions to determine the region where the center point is located. Based on the region where the center point is located, calculate the region offset information of the region relative to the center of the preset location identification range; Based on the area offset information, the control angle control unit adjusts the recognition angle of the adjustable bracket so that the area where the center point is located is located at the center of the preset position recognition range.
[0011] In one implementation, the step of recording a vein image of a target location within the recognition range, the vein image including a first vein image and a second vein image, includes: Read the input mode to determine the type of vein image of the target input site; When the input mode is the registration mode, the vein image of the target area is determined as the first vein image; When the input mode is the recognition mode, the vein image of the input target site is determined as the second vein image.
[0012] In one implementation, processing the input first vein image to obtain a first vein feature of the first vein image, and constructing a feature map based on the first vein feature, includes: The first vein image is segmented to divide it into multiple feature regions. Extract and calculate the first vein information for each feature region, the first vein information including vein path location, bifurcation point information, direction information and terminal information; Record the valid information of the first vein information, and construct the feature map based on the valid information.
[0013] In one implementation, comparing the second vein feature with the first vein feature in the feature map and determining the unlocking state based on the comparison result includes: The second vein information of the second vein feature is compared with the first vein information of the first vein feature in the feature map to obtain a comparison score; If the comparison score is less than the preset score, the lock tongue drive unit is controlled to remain in the locked state; If the comparison score is greater than the preset score, the lock tongue drive unit is controlled to unlock.
[0014] Secondly, embodiments of the present invention also provide a smart lock based on vein recording and recognition, the smart lock comprising: The vein image input module is used to acquire the location information of the target site, adjust the position of the target site to be within a preset location recognition range, and input the vein image of the target site within the location recognition range. The vein image includes a first vein image and a second vein image. The feature map construction module is used to process the input first vein image to obtain the first vein feature of the first vein image, and construct a feature map based on the first vein feature; The unlocking state determination module is used to process the input second vein image to obtain the second vein feature of the second vein image, compare the second vein feature with the first vein feature in the feature map, and determine the unlocking state based on the comparison result.
[0015] Thirdly, embodiments of the present invention also provide a terminal device, wherein the terminal device includes a memory, a processor, and an unlocking program based on vein recording and recognition stored in the memory and executable on the processor. When the processor executes the unlocking program based on vein recording and recognition, it implements the steps of the unlocking method based on vein recording and recognition of any of the above solutions.
[0016] Fourthly, embodiments of the present invention also provide a computer-readable storage medium, wherein the computer-readable storage medium stores an unlocking program based on vein recording and recognition, and when the unlocking program based on vein recording and recognition is executed by a processor, it implements the steps of the unlocking method based on vein recording and recognition as described in any of the above schemes.
[0017] Beneficial Effects: Compared with existing technologies, this invention provides an unlocking method based on vein recording and recognition. First, the location information of the target site is acquired, and the position of the target site is adjusted to fall within a preset location recognition range. Within this range, vein images of the target site are recorded, including a first vein image and a second vein image. The first vein image is processed to obtain a first vein feature, and a feature map is constructed based on this first vein feature. The second vein image is processed to obtain a second vein feature, and the second vein feature is compared with the first vein feature in the feature map. The unlocking status is determined based on the comparison result. This invention uses vein features as the identification basis for unlocking; therefore, the unlocking method based on vein recording and recognition provided by this invention can improve the security and accuracy of user authentication. Attached Figure Description
[0018] Figure 1 A flowchart illustrating a specific implementation of the unlocking method based on vein recording and recognition provided in this invention.
[0019] Figure 2 This is a schematic diagram of a palm vein image recognition method provided in an embodiment of the present invention.
[0020] Figure 3 This is a schematic diagram of a finger vein image recognition method provided in an embodiment of the present invention.
[0021] Figure 4 This is a framework diagram of a vein lock system provided in an embodiment of the present invention.
[0022] Figure 5 This is a schematic diagram of the installation position of the adjustable bracket provided in an embodiment of the present invention.
[0023] Figure 6This is a functional principle diagram of a smart lock based on vein recording and recognition provided in an embodiment of the present invention.
[0024] Figure 7 A schematic diagram of a terminal device provided in an embodiment of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and effects of the present invention clearer and more explicit, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0026] Those skilled in the art will understand that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the invention. Unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. The term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0027] This embodiment provides an unlocking method based on vein recording and recognition. Specifically, this embodiment first acquires the location information of a target body part, adjusts the position of the target body part to a preset location recognition range, and records vein images of the target body part within this range. These vein images include a first vein image and a second vein image. Then, the recorded first vein image is processed to obtain a first vein feature, and a feature map is constructed based on this first vein feature. Finally, the recorded second vein image is processed to obtain a second vein feature, and this second vein feature is compared with the first vein feature in the feature map. The unlocking status is determined based on the comparison result. This embodiment improves the security and accuracy of user authentication by using vein features as the basis for unlocking.
[0028] Exemplary methods The unlocking method based on vein recording and recognition in this embodiment can be applied to a terminal device, which can be a pre-installed mobile terminal such as a mobile phone, tablet, or computer, or a smart device such as a smart TV. In this embodiment, the terminal device can be an external device connected to the smart lock based on vein recording and recognition, or it can be a device built into the smart lock based on vein recording and recognition. Figure 1 As shown in the figure, the unlocking method based on vein recording and recognition in this embodiment includes the following steps: Step S100: Obtain the location information of the target part, adjust the position of the target part to be within a preset location recognition range, and record the vein image of the target part within the location recognition range. The vein image includes a first vein image and a second vein image.
[0029] Since this embodiment uses the vein features in the recorded vein image as the basis for unlocking information, it first needs to acquire and record the vein image of the target area. In order to obtain comprehensive vein features, this embodiment needs to acquire a complete vein image, that is: acquire the location information of the target area, adjust the position of the target area to be within a preset location recognition range, and then record the vein image of the target area within the preset location recognition range, so as to acquire and record a complete vein image.
[0030] In one implementation, the vein image of the target area in this embodiment is one or more of the following: palm vein image, finger vein image, and wrist vein image.
[0031] Specifically, the smart lock based on vein recording and recognition in this embodiment can use any one of the palm, fingers, and wrist as the target site for recognition. This embodiment does not impose any specific limitations on the target site. Correspondingly, the vein image of the target site in this embodiment can be one or more of the following: palm vein image, finger vein image, and wrist vein image.
[0032] When the vein image of the target area is a palm vein image, the palm vein recognition method in this embodiment is as follows: Figure 2 As shown, the smart lock in this embodiment can collect palm vein features using a near-infrared spotlight and store the collected palm vein features in an image acquisition device. Vein recognition uses the intensity of reflected near-infrared light to identify the distribution and location of veins. When a near-infrared spotlight illuminates the palm, the sensor detects the light reflected from the palm. At the same time, hemoglobin in the red blood cells flowing into the veins absorbs near-infrared light with a wavelength of around 760nm, resulting in less reflection from the veins. This creates a vein pattern on the image, which is then stored in the image acquisition device.
[0033] When the vein image of the target area is a finger vein image, such as Figure 3As shown, there are two methods for finger vein recognition: reflective recognition (left) and through-beam recognition (right). In the reflective recognition method, the near-infrared spotlight and image collector of the smart lock in this embodiment are placed on the same side of the finger. The near-infrared spotlight is used to collect finger vein features, and the collected finger vein features are stored in the image collector. In the through-beam recognition method, the smart lock places the near-infrared spotlight and image collector on opposite sides of the finger. The near-infrared spotlight illuminates the finger, and the image is then collected and stored in the image collector.
[0034] Preferably, the vein recognition method in this embodiment is a non-contact sensing method. This non-contact vein recognition method reduces indirect contact between different users, making the unlocking method more hygienic and improving the user experience.
[0035] In one implementation, when obtaining the location information of the target part and adjusting the position of the target part to be within a preset location recognition range, the following steps are included: Step S101: Receive an input instruction and acquire the original image of the target area based on the input instruction; Step S102: Perform binarization and edge detection on the original image to obtain the image contour of the target part in the original image, and determine the center point position of the target part based on the image contour; Step S103: Adjust the position of the target part to be within a preset position recognition range based on the position of the center point.
[0036] Specifically, such as Figure 4As shown, the vein lock system framework of this embodiment includes five units: a human body sensing unit, a data acquisition and recognition unit, a vein angle control unit, a main control unit, and a bolt drive unit. When the human body sensing unit in this embodiment detects someone approaching, for example, when the distance between the human body and the smart lock is 5cm-100cm, it triggers an input command. After receiving the input command, the smart lock in this embodiment starts the vein acquisition and recognition unit to acquire the original image of the target area. The target area in this embodiment is the palm, as an example. When acquiring the original image of the palm based on the input command, the user places the palm into the vein acquisition and recognition unit of the smart lock. The vein acquisition and recognition unit first acquires the original image of the palm, and then performs binarization processing on the original image. The binarization processing is to set the grayscale of the points on the image to 0 or 255, that is, to obtain a binarized image that still reflects the overall and local features of the image by selecting an appropriate threshold from the 256 brightness levels of the grayscale image, so that the entire image presents a clear black and white effect. After binarization, this embodiment can obtain the outline of the palm and distinguish the palm outline in the original image from the background image. Preferably, in this embodiment, edge detection is performed on the original image to facilitate the division of regions and positions in the original image.
[0037] Furthermore, the vein acquisition and recognition unit in this embodiment determines the center point position of the target area, i.e., the palm position, based on the processed palm contour. To more quickly adjust the target area's position within a preset position recognition range, this embodiment uses the center point of the target area as a reference center for adjustment. In other words, this embodiment adjusts the palm position within a preset position recognition range based on the palm position, allowing for faster adjustment of the palm position to the optimal position recognition range.
[0038] In one implementation, step S103 of this embodiment specifically includes the following steps: Step S1: Divide the preset location identification range into several regions and determine the region where the center point is located; Step S2: Calculate the regional offset information of the region where the center point is located relative to the center of the preset location identification range, based on the region where the center point is located. Step S3: Based on the area offset information, control the angle control unit to adjust the recognition angle of the adjustable bracket so that the area where the center point is located is located in the center of the preset position recognition range.
[0039] Specifically, in this embodiment, the preset location recognition range is first divided into several regions. For example, when the preset location recognition range is rectangular, it is divided into four regions—the upper window region, the lower window region, the left window region, and the right window region—by the two diagonals of the preset location recognition range. Then, after determining the center point position of the target part based on the image contour, this embodiment further determines which region of the preset location recognition range the center point position is located in, and calculates the region offset information of the region relative to the center of the preset location recognition range based on the region where the center point position is located. The center of the preset location recognition range is the intersection of the two diagonals. In addition, when the vein acquisition and recognition unit of this embodiment acquires the original image of the target part, it can accurately acquire the specific location information in the original image. Based on this specific location information, the region offset information of the region where the center point position is located relative to the center of the preset location recognition range can be calculated through image processing. For example, the actual distance information of the palm position from the upper window border, the lower window border, the left window border, and the right window border. Finally, based on the actual distance information, the vein angle control unit is controlled to adjust the recognition angle of the adjustable stent so that the area where the center point is located is centered within a preset position recognition range. The installation position of the adjustable stent in the vein recognition component is as follows: Figure 5 As shown in the image.
[0040] In one implementation, this embodiment records a vein image of the target location within the recognition range. When the vein image includes a first vein image and a second vein image, the following steps are included: Step S111: Read the recording mode and determine the vein image type of the target site to be recorded; Step S112: When the input mode is the registration mode, determine the vein image of the input target site as the first vein image; Step S113: When the input mode is the recognition mode, determine the vein image of the input target site as the second vein image.
[0041] Specifically, in this embodiment, when the smart lock records a vein image of a target location, it first reads the recording mode and determines whether the current recording mode is a registration mode or a recognition mode. When the recording mode is a registration mode, the vein image of the target location is determined to be a first vein image. The features of the first vein image do not exist on the smart lock before registration, and the user needs to register the recorded vein features. When the recording mode is a recognition mode, the vein image of the target location is determined to be a second vein image. The second vein image is used to determine whether the user's vein features are the same as previously registered vein features.
[0042] Step S200: Process the input first vein image to obtain the first vein feature of the first vein image, and construct a feature map based on the first vein feature.
[0043] When the input mode is the registration mode, this embodiment will extract the first vein feature of the first vein image currently input, construct a feature map based on the first vein feature, and then save the feature map in the vein feature library so that there is a vein feature library for reference when matching user identity information in subsequent recognition modes.
[0044] In one implementation, step S200 of this embodiment specifically includes the following steps: Step S201: Segment the first vein image to divide it into multiple feature regions; Step S202: Extract and calculate the first vein information for each feature region. The first vein information includes the vein path location, bifurcation point information, direction information, and terminal information. Step S203: Record the valid information of the first vein information, and construct the feature map based on the valid information.
[0045] Specifically, the processing of the recorded first vein image in this embodiment mainly consists of image segmentation and feature extraction. The target area in this embodiment is the palm, as an example. First, the recorded first vein image of the palm is segmented into multiple feature regions. For example, the image can be divided into 4, 9, or 16 feature regions by dividing the entire first vein image equally, or segmented based on different parts of the palm; no specific limitation is made in this embodiment. Then, the first vein information of each feature region is extracted and calculated, including vein path location, bifurcation point information, direction information, and terminal information. The calculation includes image enhancement and correction. Image enhancement and correction can improve the accuracy of the extracted vein information for each feature region. Finally, based on the calculation results and the extracted feature information, it is determined whether the region is valid or invalid. Invalid regions may be caused by unclear image acquisition. The valid vein information, such as vein path location, bifurcation point information, direction information, and terminal information, of each feature region is then recorded to construct a feature map. Therefore, the feature map also has multiple feature regions.
[0046] Step S300: Process the entered second vein image to obtain the second vein feature of the second vein image, compare the second vein feature with the first vein feature in the feature atlas, and determine the unlocking state based on the comparison result.
[0047] Specifically, in this embodiment, the processing method for the recorded second vein image is the same as that for the first vein image. After obtaining the second vein feature, the unlocking status can be determined by comparing the second vein feature with the first vein feature in the feature map. That is to say, the first vein feature is used to register user identity information and provide comparison parameters when unlocking, while the second vein feature is used to match user identity information and determine the final unlocking status.
[0048] In one implementation, this embodiment compares the second vein feature with the first vein feature in the feature map, and determines the unlocked state based on the comparison result, including the following steps: Step S301: Compare the second vein information of the second vein feature with the first vein information of the first vein feature in the feature map to obtain a comparison score; Step S302: If the comparison score is less than the preset score, control the bolt drive unit to remain in the locked state; Step S303: If the comparison score is greater than the preset score, control the bolt drive unit to unlock.
[0049] In specific implementation, this embodiment determines the final unlocking state by comparing the second vein information with the first vein information and obtaining a comparison score. Since the feature map also has multiple feature regions, this embodiment compares the second vein information of each feature region in the second vein feature with the first vein information of multiple feature regions in the first vein feature of the feature map to obtain a comparison score. The preset score in this embodiment can be set by the user. For example, when there are four feature regions, the preset score can be that the comparison similarity of all four feature regions is greater than 90%. If the comparison score is less than the preset score, that is, at least one feature region in the comparison similarity between the second vein information and the first vein information has a comparison similarity of less than 90%, the user's identity information recognition fails, and the lock tongue drive unit is controlled to remain locked. If the comparison score is greater than the preset score, that is, the comparison similarity of all four feature regions in the comparison similarity between the second vein information and the first vein information is greater than 90%, the user's identity information recognition passes, and the lock tongue drive unit is controlled to unlock.
[0050] In summary, this embodiment provides an unlocking method based on vein recording and recognition. First, the location information of the target body part is acquired, and the position of the target body part is adjusted to fall within a preset location recognition range. Within this range, vein images of the target body part are recorded, including a first vein image and a second vein image. Then, the recorded first vein image is processed to obtain a first vein feature, and a feature map is constructed based on this first vein feature. Finally, the recorded second vein image is processed to obtain a second vein feature, and this second vein feature is compared with the first vein feature in the feature map. The unlocking status is determined based on the comparison result. This embodiment uses vein features as the basis for unlocking identification; therefore, the unlocking method based on vein recording and recognition provided in this embodiment can improve the security and accuracy of user authentication.
[0051] Exemplary device Based on the above embodiments, the present invention also provides a smart lock based on vein recording and recognition, such as... Figure 6 As shown, the smart lock includes: a vein image input module 10, a feature map construction module 20, and an unlocking status determination module 30. Specifically, the vein image input module 10 is used to acquire the location information of a target area, adjust the position of the target area to a preset location recognition range, and input a vein image of the target area within the location recognition range. The vein image includes a first vein image and a second vein image. The feature map construction module 20 is used to process the input first vein image to obtain a first vein feature of the first vein image, and construct a feature map based on the first vein feature. The unlocking status determination module 30 is used to process the input second vein image to obtain a second vein feature of the second vein image, compare the second vein feature with the first vein feature in the feature map, and determine the unlocking status based on the comparison result.
[0052] In one implementation, the vein image recording module 10 includes: A vein image determination unit is used to include one or more of palm vein images, finger vein images, and wrist vein images.
[0053] The original image acquisition unit is used to receive input instructions and acquire original images of the target area based on the input instructions; The center point location determination unit is used to perform binarization processing and edge detection on the original image to obtain the image contour of the target part in the original image, and determine the center point location of the target part based on the image contour; The target part position adjustment unit is used to adjust the position of the target part to be within a preset position recognition range based on the position of the center point.
[0054] A vein image type determination unit is used to read the recording mode and determine the vein image type of the target recording site; The first vein image determination unit is used to determine the vein image of the target location as the first vein image when the input mode is the registration mode; The second vein image determination unit is used to determine the vein image of the target location as the second vein image when the input mode is the recognition mode.
[0055] In one implementation, the target location adjustment unit includes: The region division subunit is used to divide the preset location identification range into several regions and determine the region where the center point is located. The region offset information calculation subunit is used to calculate the region offset information of the region relative to the center of the preset position identification range based on the region where the center point is located. The recognition angle adjustment subunit is used to control the angle control unit to adjust the recognition angle of the adjustable bracket based on the area offset information, so that the area where the center point is located is located in the center of the preset position recognition range.
[0056] In one implementation, the feature map construction module 20 includes: The feature region segmentation unit is used to segment the first vein image and divide the first vein image into multiple feature regions. The regional information calculation unit is used to extract and calculate the first vein information of each feature region. The first vein information includes the vein path location, bifurcation point information, direction information and terminal information. The feature map construction unit is used to record the effective information of the first vein information and construct the feature map based on the effective information.
[0057] In one implementation, the unlocking state determination module 30 includes: The comparison score acquisition unit is used to compare the second vein information of the second vein feature with the first vein information of the first vein feature in the feature map to obtain a comparison score; The locking determination unit is used to control the bolt drive unit to maintain the locking state if the comparison score is less than the preset score. The unlocking determination unit is used to control the bolt drive unit to unlock if the comparison score is greater than a preset score.
[0058] The working principle of each module in the smart lock based on vein recording and recognition in this embodiment is the same as the principle of each step in the above method embodiment, and will not be repeated here.
[0059] Based on the above embodiments, the present invention also provides a terminal device, the schematic diagram of which can be as follows: Figure 7 As shown. The terminal device may include one or more processors 100 ( Figure 7 (Only one is shown in the image), memory 101, and a computer program 102 stored in memory 101 and executable on one or more processors 100, such as a program for unlocking based on vein recording and recognition. When one or more processors 100 execute computer program 102, they can implement various steps in the embodiments of the unlocking method based on vein recording and recognition. Alternatively, when one or more processors 100 execute computer program 102, they can implement the functions of various modules / units in the embodiments of the smart lock based on vein recording and recognition, which is not limited here.
[0060] In one embodiment, the processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0061] In one embodiment, memory 101 may be an internal storage unit of an electronic device, such as a hard drive or RAM. Memory 101 may also be an external storage device of the electronic device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc. Furthermore, memory 101 may include both internal and external storage units. Memory 101 is used to store computer programs and other programs and data required by the terminal device. Memory 101 can also be used to temporarily store data that has been output or will be output.
[0062] Those skilled in the art will understand that Figure 7The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the terminal device to which the present invention is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0063] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, operational databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual operating data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0064] In summary, this invention discloses an unlocking method and a smart lock based on vein recording and recognition. The method includes: acquiring the location information of a target body part; adjusting the position of the target body part to be within a preset location recognition range; recording a vein image of the target body part within the location recognition range, the vein image including a first vein image and a second vein image; processing the recorded first vein image to obtain a first vein feature of the first vein image; constructing a feature map based on the first vein feature; processing the recorded second vein image to obtain a second vein feature of the second vein image; comparing the second vein feature with the first vein feature in the feature map; and determining the unlocking status based on the comparison result. This invention improves the security and accuracy of user authentication by using vein features as the basis for unlocking recognition.
[0065] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A lock-unlocking method based on vein recording and recognition, characterized in that, include: When the vein image of the target area is a palm vein image, the palm vein features are collected by a near-infrared searchlight. The palm vein features are vein images, which include a first vein image and a second vein image. The target area is located within a preset location recognition range, and the center of the preset location recognition range is the intersection of two diagonals. The first vein image is processed to obtain the first vein feature of the first vein image, and a feature map is constructed based on the first vein feature; The first vein feature is used to register user identity information and provide comparison parameters when unlocking; The second vein image is processed to obtain the second vein feature of the second vein image. The second vein feature is compared with the first vein feature in the feature map. The unlocking status is determined based on the comparison result. The second vein feature is used to match user identity information and determine the final unlocking status.
2. The unlocking method based on vein recording and recognition according to claim 1, characterized in that, The unlocking method based on vein recording and recognition also includes triggering a recording command when someone is detected approaching, the recording command being used to trigger the acquisition of the original image of the target area.
3. The unlocking method based on vein recording and recognition according to claim 1, characterized in that, The process of processing the first recorded vein image is divided into image segmentation and feature extraction.
4. The unlocking method based on vein recording and recognition according to claim 1, characterized in that, The unlocking method based on vein recording and recognition also includes: The palm vein features are stored in the image acquisition device.
5. A lock-unlocking method based on vein recording and recognition, characterized in that, include: When the vein image of the target area is a finger vein image, the finger vein features are collected using a reflective recognition method or a through-beam recognition method. The finger vein features are vein images, which include a first vein image and a second vein image. The target area is located within a preset location recognition range, and the center of the preset location recognition range is the intersection of two diagonals. The first vein image is processed to obtain the first vein feature of the first vein image, and a feature map is constructed based on the first vein feature; The first vein feature is used to register user identity information and provide comparison parameters when unlocking; The second vein image is processed to obtain the second vein feature of the second vein image. The second vein feature is compared with the first vein feature in the feature map. The unlocking status is determined based on the comparison result. The second vein feature is used to match user identity information and determine the final unlocking status.
6. The unlocking method based on vein recording and recognition according to claim 5, characterized in that, The reflective recognition method involves placing a near-infrared spotlight and an image acquisition device on the same side of the finger, and using the near-infrared spotlight to collect the vein features of the finger.
7. The unlocking method based on vein recording and recognition according to claim 5, characterized in that, The through-beam recognition method involves placing a near-infrared spotlight and an image acquisition device on either side of the finger. The near-infrared spotlight illuminates the finger, and the image is then collected and stored in the image acquisition device.
8. The unlocking method based on vein recording and recognition according to claim 5, characterized in that, The unlocking method based on vein recording and recognition also includes: The finger vein features are stored in the image acquisition device.
9. A terminal device, characterized in that, The terminal device includes a memory, a processor, and an unlocking program based on vein recording and recognition stored in the memory and executable on the processor. When the processor executes the unlocking program based on vein recording and recognition, it implements the steps of the unlocking method based on vein recording and recognition as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an unlocking program based on vein recording and recognition. When the unlocking program based on vein recording and recognition is executed by a processor, it implements the steps of the unlocking method based on vein recording and recognition as described in any one of claims 1-8.