CN110163186B - Unlocking method based on vein recognition and related product - Google Patents

Unlocking method based on vein recognition and related product Download PDF

Info

Publication number
CN110163186B
CN110163186B CN201910472661.7A CN201910472661A CN110163186B CN 110163186 B CN110163186 B CN 110163186B CN 201910472661 A CN201910472661 A CN 201910472661A CN 110163186 B CN110163186 B CN 110163186B
Authority
CN
China
Prior art keywords
matrix
matching
vein
value matrix
ratio
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.)
Active
Application number
CN201910472661.7A
Other languages
Chinese (zh)
Other versions
CN110163186A (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 CN201910472661.7A priority Critical patent/CN110163186B/en
Publication of CN110163186A publication Critical patent/CN110163186A/en
Application granted granted Critical
Publication of CN110163186B publication Critical patent/CN110163186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/14Vascular patterns

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Image Input (AREA)

Abstract

The embodiment of the application discloses an unlocking method based on vein identification and a related product, wherein the method comprises the following steps: when vein unlocking is adopted, a first vein image of a part to be identified is obtained; acquiring a first gray value matrix of the first vein image, and matching the first gray value matrix with a template matrix to obtain a first matching value matrix; determining a first ratio, wherein the first ratio is the ratio of the number of the matching values which are greater than a preset threshold value in the first matching value matrix to the total number of the matching values in the first matching value matrix; and executing an unlocking operation corresponding to the first proportion. The vein identification method and the vein identification device are beneficial to improving the accuracy of vein identification.

Description

Unlocking method based on vein recognition and related product
Technical Field
The application relates to the technical field of electronics, in particular to an unlocking method based on vein recognition and a related product.
Background
Biometric recognition is a very important technology for protecting rights in future cyber societies, such as fingerprint recognition technology and vein recognition technology. A vein recognition technology, which is expected to be a next-generation authentication technology with fewer problems, is currently widely studied, which performs identification using a vein image by providing a lens array in a vein imaging apparatus, irradiating a living body part with a plurality of near-infrared irradiation light sources, collecting near-infrared light reflected by the vein part by the lens array, sending the reflected near-infrared light to an image generation module in the vein imaging apparatus, obtaining the vein image. The vein image acquisition device has the advantages that the vein image acquisition device can be influenced by the external environment of the acquisition part when acquiring the vein image, so that the acquired vein image information is incomplete, in the prior art, the vein image can be unlocked by successfully matching the vein image when the vein image is unlocked, and the vein image cannot be unlocked if the vein image is not successfully matched, so that the vein unlocking method in the prior art is single and low in success rate.
Disclosure of Invention
The embodiment of the application provides an unlocking method based on vein identification and a related product, and aims to improve the success rate of vein unlocking by setting different unlocking modes.
In a first aspect, an embodiment of the present application provides an unlocking method based on vein identification, where the method includes:
when vein unlocking is adopted, a first vein image of a part to be identified is obtained;
acquiring a first gray value matrix of the first vein image, and matching the first gray value matrix with a template matrix to obtain a first matching value matrix;
determining a first ratio, wherein the first ratio is the ratio of the number of the matching values which are greater than a preset threshold value in the first matching value matrix to the total number of the matching values in the first matching value matrix;
and executing an unlocking operation corresponding to the first proportion.
In a second aspect, an embodiment of the present application provides an electronic device based on vein recognition, including:
the vein unlocking device comprises an acquisition unit, a judgment unit and a control unit, wherein the acquisition unit is used for acquiring a first vein image of a part to be identified when vein unlocking is adopted;
the matching unit is used for acquiring a first gray value matrix of the first vein image, and matching the first gray value matrix with a template matrix to obtain a first matching value matrix;
a determining unit, configured to determine a first ratio, where the first ratio is a ratio of the number of matching values greater than a preset threshold in the first matching value matrix to the total number of matching values in the first matching value matrix;
and the unlocking unit is used for executing unlocking operation corresponding to the first proportion.
In a third aspect, embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the steps in the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program, where the computer program makes a computer execute the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer being operable to cause a computer to perform the method according to the first aspect.
The embodiment of the application has the following beneficial effects:
it can be seen that, in the embodiment of the present application, a first vein image of a to-be-identified portion is obtained, a first gray value matrix of the first vein image is obtained, then, the first gray value matrix is matched to obtain a matching value matrix, a ratio is obtained based on the matching value, a corresponding unlocking operation is executed based on the ratio, when vein unlocking is performed, an unlocking operation corresponding to the ratio can be executed, and an unlocking mode is expanded; in addition, vein unlocking is adopted, only a living body can acquire a vein image, and the problem of low safety during non-living body unlocking is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 1B is a schematic flowchart of an unlocking method based on vein recognition according to an embodiment of the present application;
fig. 1C is a matching method in vein recognition according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another unlocking method based on vein recognition according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another unlocking method based on vein recognition according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device based on vein recognition according to an embodiment of the present application;
fig. 5 is a block diagram illustrating functional units of an electronic device based on vein recognition according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device in the present application may include a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a Mobile Internet device MID (Mobile Internet Devices, abbreviated as MID), a wearable device, and the like, and the electronic Devices are merely examples, but not exhaustive, and include but are not limited to the electronic Devices, and for example, the electronic Devices may further include: intelligent vehicle-mounted terminal, computer equipment and the like.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 includes: the vein recognition module comprises a shell 110, a circuit board 120 arranged in the shell 110, a display screen 130 arranged on the shell 110, a vein recognition module 140, and a processor 121 and a memory 122 arranged on the circuit board 120.
The vein recognition module 140 may be integrated under the display screen, or the vein recognition module 140 may also be disposed on the back of the electronic device housing. Specifically, the vein recognition module 140 may include a vein image generation module, a near-infrared light source 142, and a lens array 141, where the lens array 141 includes at least one lens, the near-infrared light source 142 includes at least one near-infrared lamp, the lens array 141 is disposed opposite to the near-infrared light source 142, so that when the near-infrared light source emits near-infrared light, the near-infrared light reaches a to-be-recognized region through the lens array 141, after the near-infrared light is emitted to the to-be-recognized region, the near-infrared light may pass through skin, and a vein may reflect the near-infrared light, thereby forming a vein pattern, the vein image generation module receives the near-infrared light reflected by the vein, generates a vein image based on the reflected near-infrared light, the vein image generation module sends the generated vein image to the processor 121 for processing, the processor 121 obtains a first gray value matrix of the first vein image, and matches the first gray value matrix with the, obtaining a first matching value matrix, determining a first proportion, wherein the first proportion is the proportion of the number of the matching values which are larger than a preset threshold value in the first matching value matrix relative to the total number of the matching values in the first matching value matrix, and determining the first proportion, and the first proportion is the proportion of the number of the matching values which are larger than the preset threshold value in the first matching value matrix relative to the total number of the matching values in the first matching value matrix, so that a vein unlocking mode is increased, and user experience is improved.
Referring to fig. 1B, fig. 1B is a diagram illustrating an unlocking method based on vein recognition according to an embodiment of the present application, where the unlocking method is applied to an electronic device, and the electronic device includes a vein recognition module, where the vein recognition module is provided with at least one infrared light source, and the infrared light source is used for emitting infrared light; the method comprises the following steps:
101: when vein unlocking is adopted, the electronic equipment acquires a first vein image of a part to be identified.
The electronic device obtains a first vein image of a part to be identified, and specifically, when the electronic device detects that a vein is unlocked, infrared light is emitted to the part to be identified through an infrared light source in a vein identification module, the infrared light irradiates the part to be identified through a lens array, the vein of the part to be identified reflects the infrared light, a vein imaging module in the vein identification module receives the infrared light reflected by the vein, and the reflected near-infrared light is used for generating the first vein image.
The part to be identified may be a wrist, a palm, a finger, a back of the hand, etc., or may be other parts of the body.
102: the electronic equipment acquires a first gray value matrix of the first vein image, and matches the first gray value matrix with a template matrix to obtain a first matching value matrix.
Optionally, the electronic device performs gray scale conversion on the first vein image to obtain a first gray scale value matrix of the first vein image.
Optionally, the matching of the first gray value matrix and the template matrix to obtain the first matching value matrix may be implemented as follows: the electronic equipment determines a body part corresponding to the part to be identified according to the first vein image; acquiring first brightness of an infrared light source; obtaining a first template matrix corresponding to the body part and the first brightness; matching the first gray value matrix with the first template matrix to obtain a first matching value matrix; sliding the first gray value matrix on the first template matrix according to a preset sliding step length; determining the first gray value matrix and sliding on the first template matrix each time; and determining a matching value of the first gray value matrix and a matrix framed and selected when the first gray value matrix slides on the first template matrix every time to obtain a first matching value matrix.
As shown in fig. 1C, the left side is a first gray value matrix, the right side is a template matrix, the first gray value matrix is sequentially slid in the template matrix according to a preset step length, one matrix is framed on the template matrix during each sliding, the matching values of the first gray value matrix and the framed matrix are calculated, and after the first gray value matrix and the template matrix are sequentially slid in the row direction and the column direction, the first matching value matrix of the first gray value matrix and the template matrix is obtained. The preset step may be one pixel unit, two pixel units, or other values.
Optionally, a matching value of the first gray-scale matrix and the matrix selected by the frame is calculated, specifically, the matching value is obtained by calculating a euclidean distance or a manhattan distance or a Jaccard coefficient of the first gray-scale matrix and the matrix selected by the frame, and a detailed calculation process thereof is the prior art and is not repeated herein.
The principle of determining the body part corresponding to the part to be identified according to the first vein image is that the blood flow speed is different due to different body parts and different blood vessel thicknesses, and the vein image reflects the body part corresponding to the part to be identified to a certain extent due to correlation between vein imaging and the blood vessel thicknesses and the blood flow speed, so that vein lines in the first vein image can be extracted; acquiring the characteristics of the vein lines (such as the thickness of the lines, the density of the lines and the like), determining body parts matched with the characteristics of the vein lines, and taking the body parts matched with the characteristics of the vein lines as body parts corresponding to the parts to be identified.
In some possible embodiments, matching the first gray value matrix with the template matrix to obtain a first matching value matrix may further include: analyzing the feature point distribution of the first vein image; performing circular image interception on the first vein image according to M different circle centers to obtain M circular vein area images, wherein M is an integer larger than 3; selecting a target circular vein region image from the M circular vein region images, wherein the number of characteristic points contained in the target circular vein region image is larger than that of other circular vein region images in the M circular vein region images; dividing the target circular vein area image to obtain N circular rings, wherein the widths of the N circular rings are the same; acquiring N gray value matrixes corresponding to the N circular rings from the circular ring with the smallest radius in the N circular rings, and performing feature matching on each gray value matrix and the template matrix to obtain a matching value matrix corresponding to each circular ring; obtaining the maximum matching value in each matching value matrix, if the maximum matching value is larger than the matching value threshold, determining that the circular rings are successfully matched, accumulating the successfully matched circular rings to obtain the number of the successfully matched circular rings, determining the ratio of the number of the successfully matched circular rings to the total number of the N circular rings, and taking the ratio as a first ratio.
103: the electronic equipment determines a first ratio, wherein the first ratio is the ratio of the number of the matching values in the first matching value matrix, which are greater than a preset threshold value, to the total number of the matching values in the first matching value matrix.
The preset threshold may be 60, 70%, 80%, or other values.
104: and the electronic equipment executes unlocking operation corresponding to the first matching value.
Optionally, the implementation process of the electronic device executing the unlocking operation corresponding to the first proportion may be: if the first proportion is smaller than a first threshold value, displaying prompt information of unlocking failure; if the first ratio is larger than the first threshold and smaller than a second threshold, unlocking a preset application set; and if the first ratio is larger than or equal to the second threshold value, unlocking all the applications.
The unlocking of the preset application set can be realized by only displaying application icons corresponding to the preset application set on a touch display screen of the electronic equipment; alternatively, application icons of all applications are displayed, but other applications than the preset application set are locked.
The preset application set is an application set with a lower authority level, the authority level may be divided according to whether the application includes privacy information, for example, the authority level of applications such as default QQ, WeChat, and phone book is higher, the authority level of applications such as default Mei Tuo, hungry, and Jingdong is lower, in addition, the application set may be set by a user autonomously, or may be set by a system automatically, or the application with the lower frequency of use may be divided into the preset application set according to the frequency of use division of each application, and the like, which is not limited in the present application.
Wherein the first threshold may be 50%, 55%, or other values;
wherein the second threshold may be 80%, 85%, or other values.
It can be understood that when the first matching value is smaller than the first threshold, 100% confidence is that the first vein image is not matched with the vein image, and when the first matching value is larger than the first threshold and smaller than the second threshold, the first vein image is considered to be possibly matched with the vein image, and at this time, for the convenience of the user, the application with lower authority is unlocked; and when the current user is determined to be the user of the electronic equipment, unlocking all the applications.
It can be seen that in the implementation of the application, a first vein image of a part to be identified is obtained, a first gray value matrix of the first vein image is obtained, then the first gray value matrix is matched to obtain a matching value matrix, a ratio is obtained based on the matching value, a corresponding unlocking operation is executed based on the ratio, when vein unlocking is performed, when the ratio is relatively low, partial application can be unlocked, when the ratio is relatively high, all application is unlocked, the unlocking mode is widened, and user experience is improved; in addition, vein unlocking is adopted, only a living body can acquire a vein image, and the problem of low safety during non-living body unlocking is solved.
In some possible embodiments, after performing the unlocking operation corresponding to the first duty ratio, the method further includes: when the first proportion is larger than the first threshold and smaller than the second threshold, if an unlocking instruction for other applications outside the preset application set is received, adjusting the current first brightness of the infrared light source to be a second brightness; obtaining the vein image again to obtain a second vein image; acquiring a second gray matrix of the second vein image, and matching the second gray matrix with a second template matrix to obtain a second matching value matrix, wherein the second template matrix is a template matrix corresponding to the second brightness and the part to be identified; determining a second ratio, wherein the second ratio is the ratio of the matching values in the second matching value matrix which are larger than the preset threshold value to the total number of the matching values in the second matching value matrix; and if the second ratio is larger than the second threshold value, unlocking all the applications. . It can be seen that, in the embodiment, after the partial application is unlocked for the first time, if the application with higher authority needs to be unlocked, the electronic device automatically adjusts the brightness of the light source to acquire a more complete vein image, so that the influence of environmental factors during vein identification is reduced, and the accuracy of vein identification is improved; moreover, through the matching of the second vein image, double identity authentication is added, and the safety of the electronic equipment in use is ensured.
Determining a body part corresponding to the part to be identified based on the second vein image; acquiring a second template matrix corresponding to the second brightness and the body part, and matching a second gray matrix of the second vein image with the second template matrix to obtain a second matching value matrix;
in some possible embodiments, the adjusting the current first brightness of the infrared light source to the second brightness may be: acquiring the number of first vein lines in the first vein image; determining a body part corresponding to the part to be identified based on the first vein image; acquiring the number of preset vein lines corresponding to the body part; determining the difference value between the number of the preset vein lines and the number of the first vein lines; determining a brightness adjustment amplitude of the infrared light source based on the difference value; and adjusting the driving voltage of the near-infrared light source based on the brightness adjusting amplitude so as to adjust the current first brightness of the infrared light source to be the second brightness. The mapping relation among the preset infrared light brightness, the body part and the vein line number is preset, and the preset vein line number corresponding to the part to be recognized is determined according to the mapping relation, so that the part to be recognized is subjected to targeted processing, and the regulation of the infrared light source is more targeted.
In some possible embodiments, before obtaining the preset number of vein lines corresponding to the body part, the method further comprises: acquiring physiological parameter information of a user; the obtain with the preset vein line quantity that the body part corresponds includes: determining a blood flow velocity based on the physiological parameter information; and acquiring the number of preset vein lines corresponding to the body part and the blood flow speed.
Wherein the physiological parameter information may include: heart rate, blood oxygen, or other parameters.
Wherein the physiological parameter information may be from a wearable device worn by the user or obtained based on monitoring of an exercise APP installed on the electronic device, and the like.
Optionally, the blood flow rate corresponding to the physiological parameter information is determined according to a mapping relationship between blood oxygen and heart rate and the blood flow rate.
Since the principle of the vein identification technology is that vein image acquisition is performed according to the characteristic that hemoglobin in blood absorbs infrared light, only blood flowing can acquire vein features, so in the embodiment, physiological parameter information is acquired first, and blood flowing speeds are different for different physiological parameters, so that the content of hemoglobin in blood is different, and vein grains in generated vein images are different, and therefore different preset vein grain quantities are set for different blood flowing speeds. For example, the number of vein lines preset in a normal state is different from the number of vein lines preset after exercise. Different preset vein grain numbers are set for different blood flowing speeds, so that the adjustment of the infrared light source can adapt to various scenes, and the precision is higher when the vein image recognition is carried out for the second time under various scenes.
In some possible embodiments, after unlocking the entire application, the method further comprises:
acquiring an encryption mode of each application in all the applications; matching the second gray matrix with a template matrix corresponding to a target application to obtain a third matching matrix, and determining a third ratio, wherein the third ratio is the ratio of matching values in the third matching value matrix, which are larger than the preset threshold value, to the total number of matching values in the third matching value matrix, and the target application is an application in which an encryption mode in all applications is vein encryption; and if the third percentage is larger than the second threshold, removing the encryption of the target application. It can be seen that, in this embodiment, after the second vein image is successfully identified, the current user is considered to be the electronic device user himself, the second vein image can be matched with the encryption template of the target application, the target application is unlocked in advance when the matching is successful, and when the target application is operated, the target application does not need to be unlocked again, so that the operation speed of the target application is increased, and the user experience is improved.
In some possible embodiments, dividing the vein image into a plurality of sub-images, where each sub-image corresponds to a sub-vein region, each sub-vein region corresponds to an infrared light source, the infrared light source corresponding to each sub-vein region illuminates the sub-vein region, and infrared light is emitted through veins of the sub-vein region, so as to generate the sub-image corresponding to the sub-vein region, where the adjusting the current first brightness of the infrared light source to the second brightness may be implemented by: matching the gray matrix of each sub-image with the template matrix to obtain a matching value matrix of each sub-image, and acquiring the sub-images which are not successfully matched, wherein the sub-images which are not successfully matched are that the maximum matching value in the matching value matrix corresponding to the sub-images is smaller than a preset threshold (such as 10%, 15% or other values); the method comprises the steps of extracting the number of vein lines in the subimage, determining the difference value between the number of the vein lines and the number of preset vein lines, determining the brightness adjusting amplitude of a sub-vein region corresponding to the subimage based on the difference value, and adjusting the current first brightness of an infrared light source corresponding to the sub-vein region to be the second brightness based on the brightness adjusting amplitude. It can be seen that, in the embodiment, the infrared light sources are adjusted in a partitioned manner, all the infrared light sources do not need to be adjusted, extra power consumption is avoided, and after adjustment, the light source brightness of each area meets the identification requirement, so that the identification precision is improved.
Referring to fig. 2, fig. 2 is another unlocking method based on vein recognition, which is provided in an embodiment of the present application and applied to an electronic device, where the electronic device includes a vein recognition module, and the vein recognition module is provided with at least one infrared light source, and the infrared light source is used for emitting infrared light; the method comprises the following steps:
201: when the electronic equipment adopts vein unlocking, a first vein image of a part to be identified is obtained.
202: the electronic equipment acquires a first gray value matrix of the first vein image, and matches the first gray value matrix with a template matrix to obtain a first matching value matrix.
203: the electronic equipment determines a first ratio, wherein the first ratio is the ratio of the number of the matching values in the first matching value matrix, which are greater than a preset threshold value, to the total number of the matching values in the first matching value matrix.
204: and if the first occupation ratio is larger than the first threshold and smaller than a second threshold, the electronic equipment unlocks a preset application set.
205: if an unlocking instruction for other applications outside the preset application set is received, the electronic equipment adjusts the current first brightness of the infrared light source to be the second brightness.
206: the electronic device acquires the vein image again to obtain a second vein image.
207: and the electronic equipment acquires a second gray matrix of the second vein image, and matches the second gray matrix with a second template matrix to obtain a second matching value matrix.
208: the electronic equipment determines a second ratio, wherein the second ratio is the ratio of the matching values in the second matching value matrix which are larger than the preset threshold value to the total number of the matching values in the second matching value matrix.
209: and if the second ratio is larger than the second threshold value, the electronic equipment unlocks all the applications.
It can be seen that, in the embodiment of the application, a first vein image of a to-be-identified part is obtained, a first gray value matrix of the first vein image is obtained, then the first gray value matrix is matched to obtain a matching value matrix, a ratio is obtained based on the matching value, a corresponding unlocking operation is executed based on the ratio, when vein unlocking is performed, when the ratio is relatively low, partial application can be unlocked, when the ratio is relatively high, all application is unlocked, an unlocking mode is widened, and user experience is improved; moreover, when the application with higher unlocking authority is used, the infrared brightness is increased so as to acquire a clearer vein image, and the vein identification precision is improved; in addition, vein unlocking is adopted, only a living body can acquire a vein image, and the problem of low safety during non-living body unlocking is solved.
It should be noted that, for the specific implementation of the steps of the method shown in fig. 2, reference may be made to the specific implementation of the method described in fig. 1B, and a description thereof is omitted here.
Referring to fig. 3, fig. 3 is another unlocking method based on vein recognition, which is provided in an embodiment of the present application and applied to an electronic device, where the electronic device includes a vein recognition module, and the vein recognition module is provided with at least one infrared light source, and the infrared light source is used for emitting infrared light; the method comprises the following steps:
301: when the electronic equipment adopts vein unlocking, a first vein image of a part to be identified is obtained.
302: the electronic equipment acquires a first gray value matrix of the first vein image, and matches the first gray value matrix with a template matrix to obtain a first matching value matrix.
303: the electronic equipment determines a first ratio, wherein the first ratio is the ratio of the number of the matching values in the first matching value matrix, which are greater than a preset threshold value, to the total number of the matching values in the first matching value matrix.
304: and if the first occupation ratio is larger than the first threshold and smaller than a second threshold, the electronic equipment unlocks a preset application set.
305: if an unlocking instruction for other applications outside the preset application set is received, the electronic equipment adjusts the current first brightness of the infrared light source to be the second brightness.
306: the electronic device acquires the vein image again to obtain a second vein image.
307: and the electronic equipment acquires a second gray matrix of the second vein image, and matches the second gray matrix with a second template matrix to obtain a second matching value matrix.
308: the electronic equipment determines a second ratio, wherein the second ratio is the ratio of the matching values in the second matching value matrix which are larger than the preset threshold value to the total number of the matching values in the second matching value matrix.
309: and if the second ratio is larger than the second threshold value, the electronic equipment unlocks all the applications.
310: and the electronic equipment acquires the encryption mode of each application in all the applications.
311: and the electronic equipment matches the second gray matrix with a template matrix corresponding to a target application to obtain a third matching matrix, and determines a third ratio, wherein the third ratio is the ratio of the matching values in the third matching value matrix, which are larger than the preset threshold value, to the total number of the matching values in the third matching value matrix, and the target application is the application in which the encryption mode in all applications is vein encryption.
312: if the third percentage is greater than the second threshold, the electronic device de-encrypts the target application.
It can be seen that, in the embodiment of the application, a first vein image of a to-be-identified part is obtained, a first gray value matrix of the first vein image is obtained, then the first gray value matrix is matched to obtain a matching value matrix, a ratio is obtained based on the matching value, a corresponding unlocking operation is executed based on the ratio, when vein unlocking is performed, when the ratio is relatively low, partial application can be unlocked, when the ratio is relatively high, all application is unlocked, an unlocking mode is widened, and user experience is improved; moreover, when the application with higher unlocking authority is used, the infrared brightness is increased so as to acquire a clearer vein image, and the vein identification precision is improved; in addition, vein unlocking is adopted, only a living body can acquire a vein image, and the problem of low safety when a non-living body is unlocked is solved; in addition, after all applications are unlocked, the encryption mode of the target application is automatically released, the complicated process of re-unlocking the target application when the application is operated is avoided, and the user experience is improved.
It should be noted that, for the specific implementation of the steps of the method shown in fig. 3, reference may be made to the specific implementation of the method described in fig. 1B, and a description thereof is omitted here.
Referring to fig. 4, in accordance with the embodiments shown in fig. 1B, fig. 2, and fig. 3, fig. 4 is a schematic structural diagram of an electronic device 400 based on vein recognition according to an embodiment of the present application, and as shown in fig. 4, the electronic device 400 includes a vein recognition module, a processor, a memory, a communication interface, and one or more programs, where the one or more programs are different from the one or more application programs, and the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:
when vein unlocking is adopted, a first vein image of a part to be identified is obtained;
acquiring a first gray value matrix of the first vein image, and matching the first gray value matrix with a template matrix to obtain a first matching value matrix;
determining a first ratio, wherein the first ratio is the ratio of the number of the matching values which are greater than a preset threshold value in the first matching value matrix to the total number of the matching values in the first matching value matrix;
and executing an unlocking operation corresponding to the first proportion.
In some possible embodiments, in the aspect of matching the first gray value matrix with the template matrix to obtain the first matching value matrix, the above program is specifically configured to execute the following instructions:
determining a body part corresponding to the part to be identified according to the first vein image;
acquiring first brightness of an infrared light source;
obtaining a first template matrix corresponding to the body part and the first brightness;
sliding the first gray value matrix on the first template matrix according to a preset sliding step length;
and determining a matching value of the first gray value matrix and a matrix framed and selected when the first gray value matrix slides on the first template matrix every time to obtain a first matching value matrix.
In some possible embodiments, the program is in particular for executing the instructions of the following steps in terms of performing an unlocking operation corresponding to the first proportion:
if the first proportion is smaller than a first threshold value, displaying prompt information of unlocking failure;
if the first ratio is larger than the first threshold and smaller than a second threshold, unlocking a preset application set;
and if the first ratio is larger than or equal to the second threshold value, unlocking all the applications.
In some possible embodiments, the program is further for executing the instructions of:
when the first proportion is larger than the first threshold and smaller than the second threshold, if an unlocking instruction for other applications outside the preset application set is received, adjusting the current first brightness of the infrared light source to be a second brightness;
obtaining the vein image again to obtain a second vein image;
acquiring a second gray matrix of the second vein image, and matching the second gray matrix with a second template matrix to obtain a second matching value matrix
Determining a second ratio, wherein the second ratio is the ratio of the matching values in the second matching value matrix which are larger than the preset threshold value to the total number of the matching values in the second matching value matrix;
and if the second ratio is larger than the second threshold value, unlocking all the applications.
In some possible embodiments, the program is specifically configured to execute the following steps in adjusting the current first brightness of the infrared light source to the second brightness:
acquiring the number of first vein lines in the first vein image;
determining a body part corresponding to the part to be identified based on the first vein image;
acquiring the number of preset vein lines corresponding to the body part;
determining the difference value between the number of the preset vein lines and the number of the first vein lines;
determining a brightness adjustment amplitude of the infrared light source based on the difference value;
and adjusting the driving voltage of the near-infrared light source based on the brightness adjusting amplitude so as to adjust the current first brightness of the infrared light source to be the second brightness.
In some possible embodiments, the program is further configured to, before obtaining the predetermined number of vein lines corresponding to the body part, execute the following steps:
acquiring physiological parameter information of a user;
the obtain with the preset vein line quantity that the body part corresponds includes:
determining a blood flow velocity based on the physiological parameter information;
and acquiring the number of preset vein lines corresponding to the body part and the blood flow speed.
In some possible embodiments, the program is further for executing the instructions of:
after all the applications are unlocked, acquiring the encryption mode of each application in all the applications;
matching the second gray matrix with a template matrix corresponding to a target application to obtain a third matching matrix, and determining a third ratio, wherein the third ratio is the ratio of matching values in the third matching value matrix, which are larger than the preset threshold value, to the total number of matching values in the third matching value matrix, and the target application is an application in which an encryption mode in all applications is vein encryption;
and if the third percentage is larger than the second threshold, removing the encryption of the target application.
Referring to fig. 5, fig. 5 is a block diagram showing a possible functional unit composition of the electronic device 500 based on vein recognition according to the above embodiment, where the electronic device 500 includes: an obtaining unit 510, a matching unit 520, a determining unit 530 and an unlocking unit 540, wherein:
the vein unlocking device comprises an acquisition unit, a judgment unit and a control unit, wherein the acquisition unit is used for acquiring a first vein image of a part to be identified when vein unlocking is adopted;
the matching unit is used for acquiring a first gray value matrix of the first vein image, and matching the first gray value matrix with a template matrix to obtain a first matching value matrix;
a determining unit, configured to determine a first ratio, where the first ratio is a ratio of the number of matching values greater than a preset threshold in the first matching value matrix to the total number of matching values in the first matching value matrix;
and the unlocking unit is used for executing unlocking operation corresponding to the first proportion.
In some possible embodiments, in the aspect of matching the first gray value matrix with the template matrix to obtain a first matching value matrix, the matching unit 520 is specifically configured to:
determining a body part corresponding to the part to be identified according to the first vein image;
acquiring first brightness of an infrared light source;
obtaining a first template matrix corresponding to the body part and the first brightness;
sliding the first gray value matrix on the first template matrix according to a preset sliding step length;
and determining a matching value of the first gray value matrix and a matrix framed and selected when the first gray value matrix slides on the first template matrix every time to obtain a first matching value matrix.
In some possible embodiments, in terms of performing the unlocking operation corresponding to the first proportion, the unlocking unit 540 is specifically configured to:
if the first proportion is smaller than a first threshold value, displaying prompt information of unlocking failure;
if the first ratio is larger than the first threshold and smaller than a second threshold, unlocking a preset application set;
and if the first ratio is larger than or equal to the second threshold value, unlocking all the applications.
In some possible embodiments, the electronic device 500 further comprises an adjustment unit 550; :
when the first percentage is greater than the first threshold and less than the second threshold, if an unlocking instruction for another application outside the preset application set is received, the adjusting unit 550 is configured to adjust the current first brightness of the infrared light source to a second brightness;
obtaining the vein image again to obtain a second vein image;
and acquiring a second gray matrix of the second vein image, and matching the second gray matrix with a second template matrix to obtain a second matching value matrix.
Determining a second ratio, wherein the second ratio is the ratio of the matching values in the second matching value matrix which are larger than the preset threshold value to the total number of the matching values in the second matching value matrix;
and if the second ratio is larger than the second threshold value, unlocking all the applications.
In some possible embodiments, in adjusting the current first brightness of the infrared light source to the second brightness, the adjusting unit 550 is specifically configured to:
acquiring the number of first vein lines in the first vein image;
determining a body part corresponding to the part to be identified based on the first vein image;
acquiring the number of preset vein lines corresponding to the body part;
determining the difference value between the number of the preset vein lines and the number of the first vein lines;
determining a brightness adjustment amplitude of the infrared light source based on the difference value;
and adjusting the driving voltage of the near-infrared light source based on the brightness adjusting amplitude so as to adjust the current first brightness of the infrared light source to be the second brightness.
In some possible embodiments, before obtaining the preset number of vein lines corresponding to the body part, the obtaining unit 510 is further configured to: acquiring physiological parameter information of a user;
in obtaining the number of preset vein lines corresponding to the body part, the obtaining unit 510 is specifically configured to: determining a blood flow velocity based on the physiological parameter information; and acquiring the number of preset vein lines corresponding to the body part and the blood flow speed.
In some possible embodiments, the matching unit 520 is further configured to:
after all the applications are unlocked, acquiring the encryption mode of each application in all the applications;
matching the second gray matrix with a template matrix corresponding to a target application to obtain a third matching matrix, and determining a third ratio, wherein the third ratio is the ratio of matching values in the third matching value matrix, which are larger than the preset threshold value, to the total number of matching values in the third matching value matrix, and the target application is an application in which an encryption mode in all applications is vein encryption;
and if the third percentage is larger than the second threshold, removing the encryption of the target application.
As shown in fig. 6, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a POS (point of sales), a vehicle-mounted computer, etc., taking the electronic device as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, Wireless Fidelity (Wi-Fi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display screen 941, and optionally, the Display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, pressure sensor, temperature sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor (also referred to as a light sensor) that can adjust the backlight brightness of the mobile phone according to the brightness of ambient light, and thus adjust the brightness of the display screen 941, and a proximity sensor that can turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of a mobile phone; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then processes the audio data by the audio data playing processor 980, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 970, and provides wireless broadband internet access for the user. Although fig. 6 shows the Wi-Fi module 970, it is understood that it does not belong to the essential constitution of the cellular phone and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor AP, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
The mobile phone may further include a camera 9100, and the camera 9100 is used for shooting images and videos and transmitting the shot images and videos to the processor 980 for processing.
The mobile phone may further include a bluetooth module, etc., which will not be described herein.
Embodiments of the present application further provide a computer storage medium, where the computer storage medium stores a computer program, and the computer program is executed by a processor to implement part or all of the steps of any one of the vein recognition based unlocking methods described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any vein recognition based unlocking method as recited in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A vein recognition based unlocking method, the method comprising:
when vein unlocking is adopted, a first vein image of a part to be identified is obtained;
acquiring a first gray value matrix of the first vein image, and matching the first gray value matrix with a template matrix to obtain a first matching value matrix;
determining a first ratio, wherein the first ratio is the ratio of the number of the matching values which are greater than a preset threshold value in the first matching value matrix to the total number of the matching values in the first matching value matrix;
executing an unlocking operation corresponding to the first proportion;
the matching the first gray value matrix with the template matrix to obtain a first matching value matrix includes:
determining a body part corresponding to the part to be identified according to the first vein image;
acquiring first brightness of an infrared light source;
obtaining a first template matrix corresponding to the body part and the first brightness;
sliding the first gray value matrix on the first template matrix according to a preset sliding step length;
and determining a matching value of the first gray value matrix and a matrix framed and selected when the first gray value matrix slides on the first template matrix every time to obtain a first matching value matrix.
2. The method of claim 1, wherein the performing an unlocking operation corresponding to the first percentage comprises:
if the first proportion is smaller than a first threshold value, displaying prompt information of unlocking failure; if the first ratio is larger than the first threshold and smaller than a second threshold, unlocking a preset application set; and if the first ratio is larger than or equal to the second threshold value, unlocking all the applications.
3. The method of claim 2, further comprising:
when the first proportion is larger than the first threshold and smaller than the second threshold, if an unlocking instruction for other applications outside the preset application set is received, adjusting the current first brightness of the infrared light source to be a second brightness;
obtaining the vein image again to obtain a second vein image;
acquiring a second gray matrix of the second vein image, and matching the second gray matrix with a second template matrix to obtain a second matching value matrix;
determining a second ratio, wherein the second ratio is the ratio of the matching values in the second matching value matrix which are larger than the preset threshold value to the total number of the matching values in the second matching value matrix;
and if the second ratio is larger than the second threshold value, unlocking all the applications.
4. The method of claim 3, wherein adjusting the current first brightness of the infrared light source to the second brightness comprises:
acquiring the number of first vein lines in the first vein image;
determining a body part corresponding to the part to be identified based on the first vein image;
acquiring the number of preset vein lines corresponding to the body part;
determining the difference value between the number of the preset vein lines and the number of the first vein lines;
determining a brightness adjustment amplitude of the infrared light source based on the difference value;
and adjusting the driving voltage of the infrared light source based on the brightness adjusting amplitude so as to adjust the current first brightness of the infrared light source to be the second brightness.
5. The method of claim 4, wherein prior to said obtaining a predetermined number of vein lines corresponding to said body part, said method further comprises:
acquiring physiological parameter information of a user;
the obtain with the preset vein line quantity that the body part corresponds includes:
determining a blood flow velocity based on the physiological parameter information;
and acquiring the number of preset vein lines corresponding to the body part and the blood flow speed.
6. The method according to any one of claims 3-5, further comprising:
after all the applications are unlocked, acquiring the encryption mode of each application in all the applications;
matching the second gray matrix with a template matrix corresponding to a target application to obtain a third matching matrix, and determining a third ratio, wherein the third ratio is the ratio of matching values in the third matching value matrix, which are larger than the preset threshold value, to the total number of matching values in the third matching value matrix, and the target application is an application in which an encryption mode in all applications is vein encryption;
and if the third percentage is larger than the second threshold, removing the encryption of the target application.
7. An electronic device based on vein recognition, the electronic device comprising:
the vein unlocking device comprises an acquisition unit, a judgment unit and a control unit, wherein the acquisition unit is used for acquiring a first vein image of a part to be identified when vein unlocking is adopted;
the matching unit is used for acquiring a first gray value matrix of the first vein image, and matching the first gray value matrix with a template matrix to obtain a first matching value matrix;
a determining unit, configured to determine a first ratio, where the first ratio is a ratio of the number of matching values greater than a preset threshold in the first matching value matrix to the total number of matching values in the first matching value matrix;
an unlocking unit configured to perform an unlocking operation corresponding to the first proportion;
the matching the first gray value matrix with the template matrix to obtain a first matching value matrix includes:
determining a body part corresponding to the part to be identified according to the first vein image;
acquiring first brightness of an infrared light source;
obtaining a first template matrix corresponding to the body part and the first brightness;
sliding the first gray value matrix on the first template matrix according to a preset sliding step length;
and determining a matching value of the first gray value matrix and a matrix framed and selected when the first gray value matrix slides on the first template matrix every time to obtain a first matching value matrix.
8. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method according to any one of claims 1-6.
CN201910472661.7A 2019-05-31 2019-05-31 Unlocking method based on vein recognition and related product Active CN110163186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910472661.7A CN110163186B (en) 2019-05-31 2019-05-31 Unlocking method based on vein recognition and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910472661.7A CN110163186B (en) 2019-05-31 2019-05-31 Unlocking method based on vein recognition and related product

Publications (2)

Publication Number Publication Date
CN110163186A CN110163186A (en) 2019-08-23
CN110163186B true CN110163186B (en) 2021-05-04

Family

ID=67630607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910472661.7A Active CN110163186B (en) 2019-05-31 2019-05-31 Unlocking method based on vein recognition and related product

Country Status (1)

Country Link
CN (1) CN110163186B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101002682A (en) * 2007-01-19 2007-07-25 哈尔滨工程大学 Method for retrieval and matching of hand back vein characteristic used for identification of status
US9858401B2 (en) * 2011-08-09 2018-01-02 Biogy, Inc. Securing transactions against cyberattacks
CN103744506A (en) * 2013-12-26 2014-04-23 乐视致新电子科技(天津)有限公司 Electronic device and gesture unlocking method
CN103839053B (en) * 2014-03-05 2018-04-13 广州微盾科技股份有限公司 A kind of finger vena lock and its implementation
CN105279547B (en) * 2015-11-12 2018-09-04 大唐微电子技术有限公司 A kind of bio-identification IC card and its control method
CN105930707A (en) * 2016-04-14 2016-09-07 北京小米移动软件有限公司 Method and device for switching systems
CN107451450B (en) * 2017-07-24 2020-05-26 Oppo广东移动通信有限公司 Biometric identification method and related product
CN107423605A (en) * 2017-07-31 2017-12-01 深圳市信恳智能电子股份有限公司 A kind of input of finger venous information and processing method for mobile terminal
CN108171188B (en) * 2018-01-04 2021-11-23 天津大学 MCM method for quickly matching and identifying finger veins
CN108960187A (en) * 2018-07-20 2018-12-07 珠海格力电器股份有限公司 Permission determination method and device

Also Published As

Publication number Publication date
CN110163186A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
US10169639B2 (en) Method for fingerprint template update and terminal device
US10331965B2 (en) Method, device and computer-readable medium for updating sequence of fingerprint templates for matching
CN110245601B (en) Eyeball tracking method and related product
CN107480489B (en) unlocking control method and related product
CN106022069B (en) A kind of solution lock control method and mobile terminal
CN110162954B (en) Authority management method and related product
CN110209245B (en) Face recognition method and related product
CN107609379B (en) A kind of solution lock control method and mobile terminal
WO2019015575A1 (en) Unlocking control method and related product
CN108388340B (en) Electronic equipment control method and related product
CN107451450B (en) Biometric identification method and related product
CN109409235B (en) Image recognition method and device, electronic equipment and computer readable storage medium
CN110310399B (en) Unlocking method of vein door lock and related product
CN107451443A (en) Iris identification method and related product
CN106055954B (en) A kind of unlocking method and terminal of terminal
CN107864299B (en) Picture display method and related product
CN110298261B (en) Vein identification method and related product
CN106022066B (en) A kind of unlocking method and terminal of terminal
CN110175594B (en) Vein identification method and related product
CN107657160B (en) Face information acquisition method and related product
CN107358183B (en) Iris living body detection method and related product
WO2019015574A1 (en) Unlocking control method and related product
US11302115B2 (en) Method for facial information preview and related products
CN110163186B (en) Unlocking method based on vein recognition and related product
CN110197161B (en) Vein identification method and related product

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