Palm vein image acquisition and processing method and device, medium and electronic equipment

Palm vein images are collected and processed through multi-band light sources and asynchronous interruption technology, combined with image quality detection and effective area extraction, to solve the problem of poor image quality in the vein image acquisition system and improve recognition performance and efficiency.

CN118675207APending Publication Date: 2024-09-20SHANGHAI YINXIN HIGH-TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310253411.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

It is difficult for the existing vein image acquisition system to obtain clear vein images. Affected by the environment and image quality problems, the vein recognition performance is poor, and it is difficult for traditional systems to quickly and accurately obtain high-quality vein images.

Method used

Multi-band light source and asynchronous interrupt technology are used to collect and process palm vein images. Through image quality detection and effective area extraction, unqualified images are filtered out, and image parameters are dynamically adjusted to obtain high-quality palm vein images.

Benefits of technology

It improves the accuracy, reliability and efficiency of palm vein recognition, reduces image acquisition time, enhances recognition speed and accuracy, and ensures that clear palm vein images can be obtained in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675207A
    Figure CN118675207A
Patent Text Reader

Abstract

The invention provides a palm vein image acquisition and processing method and device, a medium and electronic equipment. The palm vein image acquisition and processing method comprises the following steps: acquiring a palm vein image; and performing image processing on the palm vein image to obtain a first target palm vein image. According to the invention, the palm vein image is rapidly acquired and processed, and the palm vein feature recognition speed and precision are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of biometric identification, and relates to an image acquisition and processing method, and in particular to a palm vein image acquisition and processing method and device, medium and electronic equipment. Background Art

[0002] Biometric technology is widely used due to its stability, uniqueness and convenience. For example, vein recognition technology is an emerging biometric technology that uses the vein distribution structure under the human skin as an inherent physiological feature of the human body for identity recognition.

[0003] Since veins are distributed under the human body's epidermis, it is difficult for existing image acquisition systems to obtain clear vein images, and image quality has a great impact on the performance of later vein recognition. For example, when taking a vein image, a series of quality problems may occur. For example, due to the influence of the acquisition environment, the acquired vein image may have bright spots, shadows, and image blur, and these quality problems may have an adverse effect on the vein recognition performance, resulting in poor vein recognition performance.

[0004] In addition, because the vein information of each person is different, the vein information of the left and right hands of the same person is also different, and even the vein information of twins is different. However, for different vein information, it is difficult for traditional vein image acquisition devices to quickly and accurately obtain clear and high-quality vein images. The quality of the acquired vein images often affects the subsequent algorithm analysis process of the vein image and the accuracy of the subsequent vein image recognition and authentication results. Summary of the invention

[0005] The present invention provides a palm vein image acquisition and processing method and device, medium and electronic equipment for obtaining qualified and high-quality palm vein images so as to improve the accuracy, reliability and recognition efficiency of palm vein recognition.

[0006] In a first aspect, the present invention provides a method for collecting and processing a palm vein image, the method comprising: collecting and acquiring a palm vein image; performing image processing on the palm vein image to obtain a first target palm vein image.

[0007] The present invention can realize the pre-detection of the quality of the palm vein image in the pre-processing stage of the palm vein recognition system, thereby filtering out unqualified and low-quality palm vein images, obtaining qualified and high-quality palm vein images, and then using the high-quality palm vein images for subsequent palm vein recognition, thereby improving the accuracy, reliability and recognition efficiency of palm vein recognition.

[0008] In an implementation of the first aspect, the acquiring of the palm vein image includes: controlling a multi-band light source to irradiate a palm vein object; the multi-band light source includes a first-band infrared light source and a second-band infrared light source; and controlling a camera to acquire the palm vein image of the palm vein object.

[0009] In an implementation of the first aspect, controlling a camera to acquire a palm vein image of the palm vein object includes: acquiring an original vein image stream; the original vein image stream includes a plurality of frames of original vein images input continuously; after detecting that the original vein image stream starts to input an initial frame of original vein image, performing an asynchronous interrupt and setting an asynchronous parameter set; sending the asynchronous parameter set to dynamically adjust relevant parameters of the current and subsequent input frame original vein images in the original vein image stream, and acquiring a target vein image set, that is, a set of the first target palm vein images.

[0010] In an implementation of the first aspect, performing image quality detection on the first target palm vein image includes: performing preliminary image screening on the first target palm vein image to obtain a palm vein image that is preliminarily determined to be qualified; performing image quality detection on the palm vein image that is preliminarily determined to be qualified to obtain a palm vein image that passes the detection; the image quality detection includes at least any one of the following: image brightness evaluation, palm edge evaluation, image noise evaluation, human hand posture estimation, and palm area evaluation.

[0011] In an implementation of the first aspect, performing palm vein effective area extraction according to the first target palm vein map or the qualified palm vein image includes: acquiring the first target palm vein map or the qualified palm vein image as a first palm image; performing image segmentation on the first palm image to acquire a second palm image; determining two target fixed points according to the second palm image; and extracting the palm vein effective area based on the first palm image and the two target fixed points.

[0012] In a second aspect, the present invention provides a palm vein image acquisition and processing device, characterized in that the palm vein image acquisition and processing device includes: an image acquisition module, used to acquire a palm vein image; and an image processing module, which is communicatively connected to the image acquisition module and is used to perform image processing on the palm vein image to obtain a first target palm vein image.

[0013] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by an electronic device, the above-mentioned method for collecting and processing palm vein images is implemented.

[0014] In a fourth aspect, the present invention provides an electronic device, characterized in that the electronic device comprises: a memory for storing a computer program; and a processor, communicatively connected to the memory, for implementing any of the above-mentioned methods for collecting and processing palm vein images when executing the computer program.

[0015] As described above, the palm vein image acquisition and processing method, device, medium and electronic device of the present invention have the following beneficial effects:

[0016] 1. The present invention can realize the pre-detection of the quality of the palm vein image in the preprocessing stage of the palm vein recognition system, thereby filtering out unqualified and low-quality palm vein images, obtaining qualified and high-quality palm vein images, and then using the high-quality palm vein images for subsequent palm vein recognition, thereby improving the accuracy, reliability and recognition efficiency of palm vein recognition.

[0017] 2. The present invention sets an asynchronous parameter set by setting an asynchronous interrupt process, and dynamically adjusts the relevant parameters of the original frame vein image, so as to achieve the purpose of quickly and accurately acquiring qualified, high-quality target vein images for different vein images, thereby improving the efficiency of vein image acquisition, and also improving the accuracy and reliability of subsequent vein image recognition.

[0018] 3. The present invention extracts the effective area of ​​palm veins, removes the image pixels outside the effective area that may be interfered with, and uses the effective area for subsequent feature information extraction, thereby improving the subsequent palm vein recognition speed and recognition accuracy.

[0019] 4. The present invention utilizes a light source of a specific wavelength to obtain a high-quality biometric vein image, and through a double-pass filter, it is possible to stably acquire clear palm vein images in real time under different acquisition environments. The image acquisition speed is fast, the time required is short, and the user experience is improved. In addition, the present invention can also utilize a radar detector to achieve the purpose of accurately locating a vein object. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1A Shown is a schematic diagram of a hardware application scenario of the vein image acquisition method described in an embodiment of the present invention.

[0021] Figure 1B Shown is a schematic diagram of the hardware structure for implementing vein image acquisition according to an embodiment of the present invention.

[0022] Figure 2 Shown is a flow chart of the palm vein image acquisition and processing method according to an embodiment of the present invention.

[0023] Figure 3A Shown is a schematic diagram of an implementation flow of the vein image acquisition method described in an embodiment of the present invention.

[0024] Figure 3B Shown is another implementation flow diagram of the vein image acquisition method described in an embodiment of the present invention.

[0025] Figure 4A Shown is a flow chart of the palm vein image acquisition control method according to an embodiment of the present invention.

[0026] Figure 4B Shown is a schematic diagram of the process of dynamically adjusting an initial vein image using an asynchronous parameter set according to an embodiment of the present invention.

[0027] Figure 4C It is a schematic diagram showing relevant parameters of dynamically adjusting an initial vein image using an asynchronous parameter set according to an embodiment of the present invention.

[0028] Figure 4D Shown is a schematic diagram of the process of acquiring a target vein image according to an embodiment of the present invention.

[0029] Figure 4E Shown is a schematic diagram of dynamic adjustment of asynchronous interrupts according to an embodiment of the present invention.

[0030] Figure 4F Shown is a flow chart of vein image processing according to another embodiment of the present invention.

[0031] Figure 5A Shown is a schematic diagram of an image of a palm involved in the initial image screening described in an embodiment of the present invention.

[0032] Figure 5B to Figure 5G Shown is a schematic diagram of an image involved in image brightness evaluation according to an embodiment of the present invention.

[0033] Figure 5H to Figure 5K Shown is a schematic diagram of an image involved in palm edge assessment according to an embodiment of the present invention.

[0034] Figure 5L and Figure 5M Shown is a schematic diagram of an image involved in image noise assessment according to an embodiment of the present invention.

[0035] Figure 5N Shown is a schematic diagram of 21 hand joints according to an embodiment of the present invention.

[0036] Fig.5O and Figure 5P Shown is a schematic diagram of images involved in palm area assessment according to an embodiment of the present invention.

[0037] Figure 5Q Shown is a block diagram of the working principle of the palm vein image quality detection method according to an embodiment of the present invention.

[0038] Fig. 6A Shown is a flow chart of a palm vein image quality detection method according to an embodiment of the present invention.

[0039] Figure 6B Shown is a flowchart of acquiring a palm vein image according to an embodiment of the present invention.

[0040] Figure 6C Shown is a flow chart of performing preliminary screening of palm vein images according to an embodiment of the present invention.

[0041] Fig.6D Shown is a flowchart of performing preliminary screening of palm vein images according to another embodiment of the present invention.

[0042] Fig. 6E Shown is a flow chart of performing image quality detection on a palm vein image that is preliminarily determined to be qualified according to an embodiment of the present invention.

[0043] Fig. 6F Shown is a flow chart of performing palm edge assessment on a palm vein image that is initially determined to be qualified according to an embodiment of the present invention.

[0044] Figure 6G Shown is a flow chart of acquiring a palm edge detection image based on a palm vein image that is preliminarily determined to be qualified according to an embodiment of the present invention.

[0045] Figure 6H Shown is a flow chart of performing image noise evaluation on a second image to obtain a third image whose image noise satisfies a preset noise condition according to an embodiment of the present invention.

[0046] Fig.6I Shown is a flow chart of estimating a human hand posture for a palm vein image that is preliminarily determined to be qualified according to an embodiment of the present invention.

[0047] Figure 6J Shown is a flow chart of performing palm area evaluation on a palm vein image that is preliminarily determined to be qualified according to an embodiment of the present invention.

[0048] Fig. 7A Shown is a schematic diagram of 21 evaluation points according to an embodiment of the present invention.

[0049] Figure 7B to Figure 7J Shown is a schematic diagram of palm-related images involved in the palm vein effective area extraction method according to an embodiment of the present invention.

[0050] Fig. 8A Shown is a flow chart of the palm vein effective area extraction method according to an embodiment of the present invention.

[0051] Figure 8B Shown is a flow chart of acquiring a first palm image according to an embodiment of the present invention.

[0052] Figure 8C Shown is a flow chart of acquiring a first palm image based on a palm grayscale image and multiple hand joint points according to an embodiment of the present invention.

[0053] Fig.8D Shown is a flow chart of determining two target fixed points according to the second palm image according to an embodiment of the present invention.

[0054] Fig. 8E Shown is a flowchart of extracting a palm vein effective area based on a first palm image and two target fixed points according to an embodiment of the present invention.

[0055] Figure 8F Shown is a flow chart of evaluating the palm width in the third palm image according to an embodiment of the present invention.

[0056] Figure 8G Shown is a flow chart of extracting a palm vein effective area from the first palm image or the third palm image according to the palm width and two target fixed points on a horizontal line according to an embodiment of the present invention.

[0057] Fig. 9A Shown is a structural diagram of a palm vein image acquisition and processing device according to a first embodiment of the present invention.

[0058] Fig. 9B Shown is a structural diagram of a palm vein image acquisition and processing device according to a second embodiment of the present invention.

[0059] Fig. 10A Shown is a structural diagram of a palm vein image acquisition and processing device according to a third embodiment of the present invention.

[0060] Fig. 10B Shown is a structural diagram of a palm vein image acquisition and processing device according to a fourth embodiment of the present invention. DETAILED DESCRIPTION

[0061] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0062] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0063] The following embodiments of the present invention provide a palm vein image acquisition and processing method and device, medium and electronic device. Compared with the prior art, the present invention realizes the rapid acquisition and processing of palm vein images, and improves the speed and accuracy of palm vein feature recognition. The present invention also realizes the evaluation of the quality of palm vein images in the preprocessing stage of the palm vein recognition system, and can filter out palm vein images of unqualified quality and obtain qualified, high-quality palm vein images, thereby improving the accuracy and reliability of subsequent palm vein recognition. At the same time, high-quality palm vein images are also conducive to improving the efficiency of palm vein recognition. The present invention also realizes the rapid extraction of palm vein effective areas, avoiding the interference of image pixels other than the palm vein effective area in the palm image on subsequent palm vein recognition, thereby improving the speed and accuracy of palm vein recognition.

[0064] like Figure 1A As shown, the present invention provides a schematic diagram of a hardware application scenario of a vein image acquisition method, wherein the CPU controls the light source 100 to irradiate a vein object, such as a palm, through a timing signal generator, and at the same time, the CPU controls the CMOS sensor and the lens to acquire an image of the vein object irradiated by a specific light source 100, i.e., a vein image. The CPU performs biometric feature recognition processing on the acquired vein image or the CPU transmits the acquired vein image to an external device, and the external device performs biometric feature recognition processing on the vein image.

[0065] like Figure 1B As shown. An embodiment of the present invention provides a schematic diagram of a hardware structure for realizing vein image acquisition, wherein the camera comprises a lens 102, a CMOS sensing module 104, a driving circuit 105 and a main control circuit 106; a double-pass filter 103 is provided between the lens 102 and the CMOS sensing module 104 for filtering light other than a specific wavelength; the main control circuit 106 is used to control the driving circuit 105 to drive the CMOS sensing module 104 to acquire the vein image. The camera also comprises a lens holder 107, which houses the lens 102, the CMOS sensing module 104, the driving circuit 105 and the main control circuit 106 in an internal enclosed space for protection and sealing. In addition, the present invention can also utilize a radar detector 101 to achieve the purpose of accurately locating a vein object.

[0066] Furthermore, the double-pass filter is an infrared double-pass filter, which is an optical element that allows two specific wavelengths of light to pass through and reflects (or attenuates) other wavelengths of light. As an isolation filter, it can also be used in infrared light illumination imaging fields such as night vision imaging, face recognition, and human iris recognition. The infrared double-pass filter used in the module efficiently passes 850nm or 940nm light (±5nm), deeply isolates other visible light and near-infrared light, resists external interference, and has stable performance.

[0067] The present invention utilizes a light source of a specific wavelength to obtain a high-quality biometric vein image, and through a double-pass filter, a clear palm vein image can be stably acquired in real time under different acquisition environments. The image acquisition speed is fast, the time required is short, and the user experience is improved.

[0068] The vein image acquisition method provided in the embodiment of the present invention can be further applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc., and can also be applied to databases, servers, and service response systems based on terminal artificial intelligence. The embodiment of the present invention does not impose any restrictions on the specific types of terminal devices.

[0069] For example, the terminal device can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next-generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN) or a mobile terminal in a future evolved Non-terrestrial Network (NTN), etc.

[0070] like Figure 2As shown, the present invention provides a method for collecting and processing a palm vein image, and the method for collecting and processing a palm vein image includes:

[0071] S21, acquiring a palm vein image;

[0072] S22, performing image processing on the palm vein image to obtain a first target palm vein image.

[0073] like Figure 3A As shown, in one embodiment of the present invention, the present invention provides a palm vein image acquisition method for collecting and acquiring a palm vein image, and the palm vein image acquisition method includes the following steps:

[0074] S201, controlling a multi-band light source to irradiate a vein object; the multi-band light source includes a first-band infrared light source and a second-band infrared light source;

[0075] S202, controlling a camera to acquire a vein image of the vein object.

[0076] See also Figure 3B As shown, in one embodiment of the present invention, the palm vein image acquisition method further includes:

[0077] S200, controlling the radar detector to sense whether the vein object appears in the capture area of ​​the camera;

[0078] If it occurs, the main control circuit of the camera controls the multi-band light source and the camera to enter the vein image acquisition working mode;

[0079] If not, the main control circuit of the camera controls the multi-band light source and the camera to enter a sleep mode.

[0080] In one embodiment of the present invention, the wavelength range of the first-band infrared light source is 845nm-855nm, and the wavelength range of the second-band infrared light source is 935nm-945nm.

[0081] Specifically, the wavelength of the first-band infrared light source may be selected as 845nm, 846nm, 847nm, 848nm, 849nm, 850nm, 851nm, 852nm, 853nm, 854nm or 855nm, particularly preferably 850nm.

[0082] The wavelength of the second-band infrared light source may be selected from 935nm, 936nm, 937nm, 938nm, 939nm, 940nm, 941nm, 942nm, 943nm, 944nm or 945nm, with 940nm being particularly preferred.

[0083] In one embodiment of the present invention, the first-band infrared light source is provided by an 850nm infrared light bead. The 850nm infrared light bead emits infrared light, has a maximum drive current of 1000mA, a low thermal resistance of 6°C / W, a wide viewing angle of 120°, and is made of In GaN / ALInGaP.

[0084] The absolute maximum ratings of the 850nm infrared lamp beads in a 25°C environment include: pulse current of 1200mA, peak current of 1000mA, junction temperature of 120°C, operating temperature of -40°C to +80°C, storage temperature of -40°C to +80°C, antistatic capability of 2000V HBM, and manual soldering temperature of 350±20 degrees for no more than 3 seconds.

[0085] The photoelectric parameters of the 850nm infrared light bead in a 25°C environment include: a light emitting angle of about 120deg, a thermal resistance of about 6°C / W, a forward voltage drop temperature coefficient of about -2mV / °C, a forward voltage of 1.4V to 1.8V, and a maximum reverse current of 5μA.

[0086] The infrared light and luminous flux characteristics of the 850nm infrared light lamp beads are: the luminous flux at 350mA is 360-310Lm, and the luminous flux at 700mA is 600-650Lm.

[0087] In one embodiment of the present invention, the second-band infrared light source is provided by a 940nm infrared light bead, which emits infrared light, has a maximum drive current of 1000mA, a low thermal resistance of 6°C / W, and a wide viewing angle of 120°.

[0088] The luminous color of the 940nm infrared light bead is infrared light, the maximum driving current is 1000mA, the thermal resistance is as low as 6°C / W, the viewing angle is as wide as 120°, and the material is In GaN / ALInGaP.

[0089] The absolute maximum ratings of the 940nm infrared lamp beads in a 25°C environment include: pulse current of 1200mA, peak current of 1000mA, junction temperature of 120°C, operating temperature of -40°C to +80°C, storage temperature of -40°C to +80°C, antistatic capability of 2000V HBM, and manual soldering temperature of 350±20 degrees for no more than 3 seconds.

[0090] The photoelectric parameters of the 940nm infrared light bead in a 25°C environment include: a light emitting angle of about 120deg, a thermal resistance of about 6°C / W, a forward voltage drop temperature coefficient of about -2mV / °C, a forward voltage of 1.4V to 1.8V, and a maximum reverse current of 5μA.

[0091] The infrared light and luminous flux characteristics of the 940nm infrared light lamp beads are as follows: the luminous flux at 700mA is 550-600Lm, and the luminous flux at 1000mA is 780-830Lm.

[0092] In one embodiment of the present invention, controlling a multi-band light source to irradiate a vein object includes: using a light source lamp bead board to carry the multi-band light source; the light source lamp bead board is arranged around the camera; the first-band infrared light source and the second-band infrared light source are evenly distributed on the light source lamp bead board.

[0093] like Figure 4A As shown, the camera is controlled to acquire the palm vein image of the palm vein object. The embodiment of the present invention provides a palm vein image acquisition control method, comprising the following steps:

[0094] Step S41, obtaining an original vein image stream; the original vein image stream includes a plurality of frames of original vein images input continuously;

[0095] Specifically, an original vein image stream captured by a camera is obtained, where the original vein image stream includes a plurality of frames of original vein images input continuously.

[0096] Step S42: after detecting that the original vein image stream starts to input the initial frame original vein image, an asynchronous interrupt is performed and an asynchronous parameter set is set;

[0097] Specifically, after it is detected that the original vein image stream starts to input the initial frame original vein image, an asynchronous interrupt is performed and an asynchronous parameter set is set.

[0098] In one embodiment of the present invention, setting the asynchronous parameter set includes: setting at least 2 asynchronous parameter sets; each asynchronous parameter set is used to adjust relevant parameters of a frame of original vein image; the core parameters of the asynchronous parameter set include exposure time parameters, white balance parameters and Gamma parameters.

[0099] Specifically, the asynchronous parameter set setting includes at least two asynchronous parameter sets, each asynchronous parameter set is used to adjust relevant parameters of a frame of original vein image, the core parameters of the asynchronous parameter set include exposure time parameters, white balance parameters and Gamma parameters, in other embodiments of the present invention, the core parameters of the asynchronous parameter set may also include black level correction parameters, circular lens attenuation correction parameters, noise reduction processing parameters, Bayer interpolation parameters, edge enhancement parameters, contrast adjustment parameters, ratio adjustment parameters, etc.

[0100] In detail, exposure time mainly refers to the photosensitivity time of the photo film. The longer the exposure time, the brighter the photo generated on the film, and vice versa.

[0101] White balance is to adjust the color circuit inside the camera under different color temperature conditions to offset the color cast of the captured image and make it closer to the visual habits of the human eye. White balance can be simply understood as the standard white captured by the camera lens under any color temperature condition is adjusted by the circuit so that the image remains white.

[0102] Gamma value is the gamma value, which is an optimization adjustment of the curve and an auxiliary function of brightness and contrast. Gamma is also called grayscale coefficient. Each display device has its own Gamma value, which is different. There is a formula: device output brightness = voltage Gamma power. The Gamma of any device is basically not equal to 1. Equal to 1 is an ideal linear state. The larger the number, the higher the brightness of the picture. If the picture is too dark or too bright, you can change the brightness of the picture by adjusting its size. From the color scale chart, it is like this to enter the color scale table: dark part -> midtone -> bright part without discontinuity.

[0103] In one embodiment of the present invention, setting the asynchronous parameter set includes: setting 4 asynchronous parameter sets; the exposure time parameters of the 4 asynchronous parameter sets are 0.5 milliseconds, 0.8 milliseconds, 1.5 milliseconds and 1.9 milliseconds respectively; the 4 asynchronous parameter sets adjust the relevant parameters of 4 consecutive frames of original vein images based on a preset order; wherein each asynchronous parameter set corresponds to adjusting one frame of original vein image.

[0104] Specifically, setting the asynchronous parameter set includes: setting 4 asynchronous parameter sets; the exposure time parameters of the 4 asynchronous parameter sets are 0.5 milliseconds, 0.8 milliseconds, 1.5 milliseconds and 1.9 milliseconds respectively; the 4 asynchronous parameter sets adjust the relevant parameters of 4 consecutive frames of original vein images based on a preset order; wherein each asynchronous parameter set corresponds to adjusting one frame of original vein image.

[0105] It should be noted that the asynchronous parameter set is set to at least two asynchronous parameter sets, which can be 2, 3, or 5, and there is no specific limitation here. At the same time, the exposure time of the asynchronous parameter set is also not specifically limited, and can also be other milliseconds.

[0106] Step S43: Send the asynchronous parameter set to dynamically adjust the relevant parameters of the original vein images of the current and subsequent input frames in the original vein image stream to obtain a target vein image set.

[0107] Specifically, the target vein image set is a set of the first target palm vein images.

[0108] In one embodiment of the present invention, sending the asynchronous parameter set to dynamically adjust relevant parameters of the original vein images of the current and subsequent input frames in the original vein image stream includes: the sending frequency of the asynchronous parameter set corresponds to the input frame rate of the original vein image stream, including: sending the asynchronous parameter set to adjust the relevant parameters of the original vein image of the current input frame in the original vein image stream; sending the asynchronous parameter set to adjust the relevant parameters of the original vein image of the next frame of the current input frame in the original vein image stream.

[0109] In one embodiment of the present invention, sending the asynchronous parameter set to dynamically adjust the relevant parameters of the original vein images of the current and subsequent input frames in the original vein image stream includes: when the number of the asynchronous parameter sets is 4, the sending frequency of the 4 asynchronous parameter sets corresponds to the input frame rate of the original vein image stream, including: sending the first asynchronous parameter set to adjust the relevant parameters of the original vein image of the current input frame in the original vein image stream; sending the second asynchronous parameter set to adjust the relevant parameters of the next frame of the original vein image of the current input frame in the original vein image stream; sending the third asynchronous parameter set to adjust the relevant parameters of the next two frames of the original vein images of the current input frame in the original vein image stream; sending the fourth asynchronous parameter set to adjust the relevant parameters of the next three frames of the original vein image of the current input frame in the original vein image stream.

[0110] Specifically, Figure 4B As shown, sending the asynchronous parameter set to dynamically adjust the relevant parameters of the current and subsequent input frames of the original vein image stream includes: when the number of the asynchronous parameter sets is 4, the sending frequency of the 4 asynchronous parameter sets corresponds to the input frame rate of the original vein image stream, including the following steps:

[0111] Step S431a, sending a first asynchronous parameter set to adjust relevant parameters of the original vein image of the current input frame in the original vein image stream;

[0112] Step S432a, sending a second asynchronous parameter set to adjust relevant parameters of the next frame of the original vein image of the current input frame in the original vein image stream;

[0113] Step S433a, sending a third asynchronous parameter set to adjust relevant parameters of the next two frames of original vein images of the current input frame in the original vein image stream;

[0114] Step S434a: Send a fourth asynchronous parameter set to adjust relevant parameters of the next three frames of original vein images of the current input frame in the original vein image stream.

[0115] In one embodiment of the present invention, a plurality of frames of original vein images are spaced between the current input frame original vein image in the original vein image stream and the initial frame original vein image inputted at the beginning of the original vein image stream.

[0116] Specifically, there are several frames of original vein images between the current input frame original vein image in the original vein image stream and the initial frame original vein image at the beginning of the input of the original vein image stream. The sending frequency of the asynchronous parameter set corresponds to the input frame rate of the original vein image stream, that is, one frame of original vein image is sent and the asynchronous parameter set is sent at the same time, and the two processes are synchronous, but after the asynchronous parameter set is sent, it takes a certain time for the asynchronous parameter set to be adjusted, for example, after 4 or 5 frames, several frames of original vein images have been sent, that is, there are several frames of original vein images between the current input frame original vein image in the original vein image stream and the initial frame original vein image at the beginning of the input of the original vein image stream. Therefore, the current frame vein image adjusted by the asynchronous parameter set at this time may be the next four or five frames of original vein image after the initial frame original vein image at the beginning of the input of the original vein image stream.

[0117] It should be noted that the camera collects enough original vein images within a certain period of time. The few frames of original vein images sent after the asynchronous parameter set is sent and between the asynchronous parameter set adjustment can be ignored. The subsequent original vein images are sufficient to find the target vein image accurately and quickly in the fastest time.

[0118] In one embodiment of the present invention, sending the asynchronous parameter set to dynamically adjust relevant parameters of the original vein images of the current and subsequent input frames in the original vein image stream includes: adjusting the exposure time of the original vein image according to the exposure time parameter of the asynchronous parameter set; adjusting the brightness of the original vein image according to the white balance parameter of the asynchronous parameter set; and adjusting the Gamma correction of the original vein image according to the Gamma parameter of the asynchronous parameter set.

[0119] Specifically, Figure 4C As shown, sending the asynchronous parameter set to dynamically adjust the relevant parameters of the original vein images of the current and subsequent input frames in the original vein image stream, the relevant parameter adjustment includes the following steps:

[0120] Step 431b, adjusting the exposure time of the original vein image according to the exposure time parameter of the asynchronous parameter set;

[0121] Step 432b, adjusting the brightness of the original vein image according to the white balance parameter of the asynchronous parameter set;

[0122] Step 433b: Adjust the Gamma correction of the original vein image according to the Gamma parameter of the asynchronous parameter set.

[0123] To be more specific, the settings of the white balance parameters and the gamma parameters can be set according to the exposure time parameters, that is, the exposure time parameters, the white balance parameters and the gamma parameters are bound to each other, or the exposure time parameters, the white balance parameters and the gamma parameters can be set separately, and no specific limitation is made here.

[0124] In one embodiment of the present invention, obtaining a target vein image set includes: obtaining a corresponding target vein image set according to the asynchronous parameter set; obtaining respective corresponding target vein image sets according to different asynchronous parameter sets; obtaining a periodic target image set according to different asynchronous parameter sets; wherein each frame image in each periodic target image set corresponds to a different asynchronous parameter set; and at least one frame image in each periodic target image set is a qualified image.

[0125] Specifically, Figure 4D As shown, obtaining the target vein image set includes the following steps:

[0126] Step S400, acquiring a corresponding target vein image set according to the asynchronous parameter set;

[0127] Specifically, a corresponding target vein image set is obtained according to each asynchronous parameter set;

[0128] Step S401, acquiring the corresponding target vein image sets according to different asynchronous parameter sets;

[0129] Specifically, the target vein image sets corresponding to the respective ones are obtained according to different asynchronous parameter sets;

[0130] Step S402, acquiring a periodic target image set according to different asynchronous parameter sets;

[0131] Specifically, a periodic target image set is obtained according to different asynchronous parameter sets.

[0132] Wherein, each frame image in each periodic target image set corresponds to a different asynchronous parameter set; and at least one frame image in each periodic target image set is a qualified image.

[0133] For example, Figure 4EAs shown, it is a schematic diagram of the dynamic adjustment of asynchronous interruption according to an embodiment of the present invention. In this embodiment, four asynchronous parameter sets are set, and the exposure time parameters of the four asynchronous parameter sets are 0.5 milliseconds, 0.8 milliseconds, 1.5 milliseconds and 1.9 milliseconds respectively, that is, parameter set 1: 0.5 milliseconds, parameter set 2: 0.8 milliseconds, parameter set 3: 1.5 milliseconds, parameter set 4: 1.9 milliseconds. The four asynchronous parameter sets adjust the relevant parameters of four consecutive frames of original vein images based on a preset order; considering that it takes a certain amount of time to adjust the asynchronous parameter set, parameter set 1 adjusts the relevant parameters of the original vein image of the current input frame in the original vein image stream, and there are several frames of original vein images between the original vein image of the current input frame in the original vein image stream and the initial frame of the original vein image at the beginning of the input of the original vein image stream, parameter set 2 adjusts the relevant parameters of the next frame of the original vein image of the current input frame, parameter set 3 adjusts the relevant parameters of the next two frames of the original vein image of the current input frame, and parameter set 4 adjusts the relevant parameters of the next three frames of the original vein image of the current input frame. Each asynchronous parameter set adjusts one frame of original vein image.

[0134] Specifically, the exposure time of the original vein image is adjusted according to the exposure time parameter of the asynchronous parameter set; the brightness of the original vein image is adjusted according to the white balance parameter of the asynchronous parameter set; and the gamma correction of the original vein image is adjusted according to the gamma parameter of the asynchronous parameter set. A target vein image set is obtained, and the target vein image set includes multiple periodic target vein image sets. Since the acquisition of the original vein image is continuous, the multiple periodic target vein image sets obtained are also continuous. Each frame image in each periodic target image set corresponds to a different asynchronous parameter set; at least one frame image in each periodic target image set is a qualified image.

[0135] In one embodiment of the present invention, the original vein image processing may also include other parameter processing, for example, Figure 4F As shown, it is a flow chart of vein image processing according to another embodiment of the present invention. The processing of the original vein image also includes black level correction, circular lens attenuation correction parameters, noise reduction processing parameters, Bayer interpolation parameters, edge enhancement parameters, contrast adjustment parameters, ratio adjustment parameters, etc., which are similar to the above-mentioned vein image processing process and will not be described in detail here.

[0136] The palm vein image acquisition control method provided by the embodiment of the present invention sets an asynchronous parameter set by setting an asynchronous interrupt process, and dynamically adjusts the relevant parameters of the original frame vein image, so as to achieve the purpose of quickly and accurately acquiring qualified and high-quality target vein images for different vein images, thereby improving the efficiency of vein image acquisition and also improving the accuracy and reliability of subsequent vein image recognition.

[0137] like Figures 5A to 5P As shown, the first target palm vein image is subjected to image quality detection. In this embodiment, a palm vein image quality detection method is provided. The working principle of the palm vein image quality detection method is as follows:

[0138] 1. Image screening

[0139] Since the camera (camera collects the original palm image, it is necessary to perform grayscale processing on the original palm image to obtain Figure 5A The palm vein image shown in the figure has a very fast acquisition speed, and the image screening function can be used to roughly eliminate images with unqualified image quality, which can not only obtain qualified images as soon as possible, but also improve the success rate of subsequent processing; specifically,

[0140] (11) Figure 5A As shown, edge regions with a width of 2 pixels are obtained at the left and right edges of the image, and the average pixel values ​​of the two edge regions are calculated.

[0141] When no palm enters the two edge regions and the influence of environmental factors is ignored, the average pixel value of the two edge regions is less than 15; if the palm partially enters the two edge regions, the average pixel value of the two edge regions will increase.

[0142] A certain threshold value is set. If the average pixel value of the two edge areas is greater than the threshold, the palm is judged to be beyond the image range; conversely, if the average pixel value of the two edge areas is not greater than the threshold, the palm is judged to be within the image range.

[0143] (12) Figure 5A As shown, first, find the middle position of the image height from top to bottom; then, at this middle height, along the X-axis direction of the image, at one-third of the image width, obtain a square area with a length of one-third of the image width; finally, calculate the average grayscale value and the maximum grayscale value of this square area.

[0144] If the average gray value is greater than 50 and the maximum gray value is less than 210, the image is appropriate, otherwise the image is too dark or overexposed.

[0145] After the above determination, if the palm does not exceed the image range and the image is appropriate, the palm vein image is preliminarily determined to be qualified.

[0146] The image initial screening function takes a very short time (a few milliseconds) to process the left and right edge areas and the middle square area. Therefore, it can quickly and effectively screen out more qualified images for the next function processing, thereby saving time for subsequent processing.

[0147] After the initial screening of the images, a palm vein image that is preliminarily identified as qualified is obtained; then, the image quality of the palm vein image that is preliminarily identified as qualified is tested; specifically, the following points are evaluated: whether the image is overexposed or too dark, whether the edge of the palm is clear, whether it contains noise, whether the palm is intact, whether the palm is fully open, and whether the palm area is too small.

[0148] 2. Image brightness evaluation

[0149] Due to the different colors and brightness of each point in the scene, each point on the black and white picture shows different degrees of gray. The white and black are divided into several levels according to the logarithmic relationship, which is called "grayscale". The range is generally from 0 to 255, white is 255, black is 0, so black and white pictures are also called grayscale images.

[0150] Overexposure or darkening of the palm vein image will affect the extraction and processing of the palm vein features. Therefore, an image brightness evaluation algorithm is used to filter out overexposed and darkened images, leaving normal images.

[0151] like Figures 5B to 5G As shown in FIG. 1 , the grayscale value of the pixel points of the entire palm vein image is determined by the histogram; wherein, Figure 5B The grayscale value of the pixel in the image is as follows Figure 5C As shown; Figure 5D The grayscale value of the pixel in the image is as follows Figure 5E As shown; Fig. 5F The grayscale value of the pixel in the image is as follows Figure 5G shown.

[0152] According to the histogram display of images with different brightness, the image pixels with grayscale values ​​less than 100 are classified as too dark pixels, and the pixels with grayscale values ​​greater than 200 are classified as too bright pixels.

[0153] Set the over-brightness threshold and the over-darkness threshold, traverse all the pixels of the image, if the ratio of the over-darkness pixel to the total pixel is greater than the over-darkness threshold, the image is judged to be too dark (such as Figure 5B If the ratio of overbright pixels to total pixels is greater than the overbright threshold, the image is judged to be exposed (as shown in Fig. 5F This allows images that are judged to be too dark or overexposed to be screened out.

[0154] 3. Palm Edge Assessment

[0155] If the palm edge information in the palm vein image captured by the camera is incomplete, it will affect the palm vein recognition effect. Therefore, the palm edge evaluation algorithm is used to filter out inappropriate images.

[0156] like Figure 5H to Figure 5K As shown, Figure 5HThe palm vein image I in the figure is subjected to Sobel edge detection. The Sobel operator is a combination of Gaussian smoothing and differential operation. It has strong noise resistance and is widely used. The Sobel operator uses fast convolution function for processing. It is simple, fast and effective, and the influence of the pixel position in the field is weighted. It has a good effect in reducing the degree of edge blur. The Sobel operator extracts the image edge in three steps: extraction Figure 5H The horizontal edge of the palm vein image in Fig.5I As shown; Extract Figure 5H The vertical edge of the palm vein image in Figure 5J As shown; the edge information in two directions is weighted averaged to obtain the edge of the entire image, that is, the edge detection image E, as shown Figure 5K shown.

[0157] Calculate the grayscale mean of image E to be m E and the grayscale mean of the palm vein image I is m I , calculate the Q value, the formula is as follows:

[0158]

[0159] Through experiments, it is found that the higher the Q value (the closer to 1), the clearer the edge.

[0160] The threshold k is set through experiments. If the Q value is less than k, it is determined that the edge of the palm is unclear.

[0161] IV. Image Noise Evaluation

[0162] If the acquired image contains too much noise, it will affect the subsequent image processing.

[0163] like Figure 5L and Figure 5M As shown, in this embodiment, first, the noise of the original acquired image L is removed by a filtering algorithm to obtain a filtered image K; then, the mean square error of the filtered image K and the original acquired image L is calculated; if the MSE is smaller, the noise of the original acquired image L is smaller.

[0164] MSE stands for "Mean Square Error", which means mean square error in Chinese. It is one of the indicators to measure image quality. Its principle is to sum and average the square of the difference between the true value (here refers to the original acquired image L) and the predicted value (here refers to the filtered image K). The formula is as follows:

[0165]

[0166] Wherein, M is the total number of pixels of the original acquired image L, and N is the total number of pixels of the filtered image K.

[0167] The smaller the MSE value, the more similar the images are, that is, the smaller the noise.

[0168] In this embodiment, different types of noise are added artificially, and mean square error is calculated by the above method, and the MSE threshold is selected as 4. If the calculated MSE value is greater than 4, it is determined that the image noise is too large.

[0169] 5. Hand Pose Estimation

[0170] The hand posture estimation algorithm is used to determine whether the hand exists, whether the palm is complete, whether each finger is complete, and whether the fingers are open.

[0171] Only images with a complete and fully open palm can correctly capture palm vein feature information.

[0172] After acquiring the palm vein image, first, it is determined whether there is a hand in the palm vein image; then, after determining that there is a hand in the palm vein image, the palm vein image is used to estimate the hand joint points.

[0173] like Figure 5N As shown, in this embodiment, the Mediapipe framework is used to predict and evaluate wrist joints.

[0174] MediaPipe is a data stream processing machine learning application development framework developed and open-sourced by Google. It is a graph-based data processing pipeline used to build data sources in various forms. It solves these problems by abstracting various perception models into modules and connecting them into maintainable graphs. Among them, MediaPipe Hands is a high-fidelity hand and finger tracking solution that uses machine learning (ML) to infer 21 3D landmarks of the hand from a frame.

[0175] After MediaPipe Hands estimates the hand joint points for the entire image, its hand landmark model accurately locates the key points of the 21 3D hand joint coordinates inside the detected hand area through regression (i.e. direct coordinate prediction). The model learns a consistent internal hand pose representation that is robust even to partially visible hands and self-occlusions. The coordinate positions of the 21 points detected are shown in 5N.

[0176] like Figure 5N As shown, the 21 hand joints are:

[0177] Point 0 is the wrist point;

[0178] {1,2,3,4} are the key points on the wrist to thumb skeleton;

[0179] {5,6,7,8} are the key points on the skeleton from wrist to index finger;

[0180] {9,10,11,12} are the key points on the skeleton from wrist to middle finger;

[0181] {13,14,15,16} are the key points on the skeleton from wrist to ring finger;

[0182] {17,18,19,20} are the key points on the skeleton from wrist to little finger;

[0183] Among them, {4,8,12,16,20} are fingertip points, and {5,9,13,17} are finger root points.

[0184] Each wrist joint point corresponds to a coordinate point.

[0185] It is determined whether the seven hand joint points 0, 5, 9, 13, 17, 4, and 20 are within the image range to determine whether the palm is complete; if one of the seven hand joint points is not within the image range, the palm is determined to be incomplete.

[0186] By calculating the line between hand joint point 0 and hand joint point 9 and the x-axis ( Figure 5N The angle 1 between the palm of the left hand and the x-axis (horizontally to the right in the figure), the angle 2 between the palm of the hand 0 and the palm of the hand 4 and the x-axis; if it is the palm image of the left hand, the angle 1 is greater than the angle 2 and less than the angle 2 plus 90 degrees; if it is the palm image of the right hand, the angle 1 is less than the angle 2 and greater than the angle 2 minus 90 degrees.

[0187] When judging whether the palm is fully open, two aspects are mainly considered. The first aspect is whether each finger is over-bent; the second aspect is to calculate the angle between each finger (index finger and middle finger, middle finger and ring finger, ring finger and little finger), and compare it with the finger opening threshold; if both aspects meet the conditions, it is judged that the palm is fully open, otherwise it will affect the subsequent palm vein recognition.

[0188] In this embodiment, for a finger, two adjacent wrist joint points are connected to form a line segment, and the angle between the two adjacent line segments is calculated. If the angle is less than 120°, the finger is defined as over-bent.

[0189] Such as Figure 5NAs shown, for the middle finger, wrist joint point 9 and wrist joint point 10 are connected to form a first line segment; wrist joint point 10 and wrist joint point 11 are connected to form a second line segment; wrist joint point 11 and wrist joint point 12 are connected to form a third line segment; the angle between the first line segment and the second line segment (the angle is calculated according to the coordinate points of the wrist joints), and the angle between the second line segment and the third line segment are calculated; it is determined whether the two angles are both less than 120°, if there is an angle less than 120°, it is determined that the middle finger is over-bent; only when the two angles are not less than 120°, it is determined that the middle finger is not over-bent, that is, the middle finger is normal (the middle finger is fully open).

[0190] 6. Palm Area Assessment

[0191] If the palm is far away from the camera and the captured palm image is small, the extracted palm area is also small. The feature information contained in the small palm area is not rich, which will affect the palm vein recognition effect. Therefore, in this embodiment, the palm area evaluation algorithm is used to filter out these images with small palm areas.

[0192] like Fig.5O As shown in the figure, first, the palm area evaluation algorithm performs binary processing on the palm vein image to obtain Fig.5O The binary image shown; then, the palm area evaluation algorithm performs weighted calculation on hand joint point 0, hand joint point 5, hand joint point 9, hand joint point 13 and hand joint point 17 to obtain the palm area radius; if the radius is less than a certain threshold, it is determined that the palm area is too small.

[0193] like Figure 5P As shown, the maximum inscribed circle of the palm is drawn according to the radius of the palm area calculated above.

[0194] like Figure 5Q As shown, the palm vein image quality detection method provided in this embodiment performs image quality detection on the palm vein image (such as Figure 5Q As shown in the dotted box in the figure, image brightness evaluation, palm edge evaluation and image noise evaluation are first performed. Because the processing speed of these three evaluation modules is fast, it is possible to quickly filter out unqualified images before finally obtaining qualified images. Then, the module enters the hand posture estimation module with relatively slow processing speed, which can better improve the user experience. Finally, the palm area evaluation module is entered. This is because the palm area evaluation algorithm needs to rely on the hand joints estimated in the hand posture estimation algorithm.

[0195] Through the above evaluation algorithm, the quality evaluation of palm vein images is realized in the preprocessing stage of the palm vein recognition system, which can filter out palm vein images of unqualified quality and obtain qualified, high-quality palm vein images, thereby improving the accuracy and reliability of subsequent palm vein recognition; at the same time, high-quality palm vein images are also conducive to improving the efficiency of palm vein recognition.

[0196] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0197] like Fig. 6A As shown, this embodiment provides a palm vein image quality detection method; specifically, the palm vein image quality detection method includes the following steps:

[0198] Step S61, acquiring a palm vein image.

[0199] like Figure 6B As shown, in one embodiment, obtaining a palm vein image includes the following steps:

[0200] Step S611, obtaining the original palm image.

[0201] In one embodiment, the original palm image is acquired from a camera.

[0202] Step S612: grayscale processing is performed on the original palm image to obtain a palm vein image.

[0203] Step S62: Perform a preliminary screening on the palm vein images to obtain palm vein images that are preliminarily determined to be qualified.

[0204] It should be noted that the palm vein image for the initial image screening may be the first target palm vein image described in the above embodiment, and the first target palm vein image is initially screened to obtain a palm vein image that is initially determined to be qualified.

[0205] like Figure 6C As shown, in one embodiment, the initial screening of the palm vein image includes the following steps:

[0206] Step S621: Acquire a first edge region and a second edge region of preset width from the palm vein image.

[0207] It should be noted that the preset width is pre-set, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios; for example, in the above embodiment, the preset width is set to 2 pixels.

[0208] In one embodiment, the first edge region and the second edge region are both located at the edge of the palm vein image and are opposite to each other.

[0209] Step S622: Calculate average pixel values ​​of the first edge area and the second edge area.

[0210] If the average pixel value meets the preset pixel condition, the palm vein image is preliminarily determined to be qualified; if the average pixel value does not meet the preset pixel condition, the palm vein image is preliminarily determined to be unqualified.

[0211] In one embodiment, the preset pixel condition is: the average pixel value is not greater than a preset pixel threshold.

[0212] It should be noted that the preset pixel threshold is pre-set, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios.

[0213] like Fig.6D As shown, in one embodiment, the initial screening of the palm vein image includes the following steps:

[0214] Step S623: Acquire the central area of ​​the palm vein image.

[0215] In one embodiment, at the middle height of the palm vein image, along the X-axis direction of the palm vein image, at one-third of the width of the palm vein image, a square area with a length of one-third of the image width is obtained, which is the central area of ​​the palm vein image.

[0216] Step S624: Calculate the average grayscale value and the maximum grayscale value of the central area.

[0217] If the average grayscale value and the maximum grayscale value meet the preset grayscale condition, the palm vein image is preliminarily determined to be qualified; if the average grayscale value and the maximum grayscale value do not meet the preset grayscale condition, the palm vein image is preliminarily determined to be unqualified.

[0218] In one embodiment, the preset grayscale condition is: the average grayscale value is greater than a first preset grayscale threshold, and the maximum grayscale value is less than a second preset grayscale threshold.

[0219] It should be noted that the first preset grayscale threshold and the second preset grayscale threshold are both pre-set, and their specific settings are not used as conditions to limit the present invention (for example, in the above embodiment, the first preset grayscale threshold is 50 and the second preset grayscale threshold is 210). In actual applications, they can be set according to specific application scenarios; the second preset grayscale threshold is greater than the first preset grayscale threshold.

[0220] Specifically, if the average grayscale value and the maximum grayscale value meet the preset grayscale condition, the palm vein image is determined to be appropriate; otherwise, the palm vein image is determined to be too dark or overexposed.

[0221] In one embodiment, the initial screening of the palm vein image includes the above-mentioned steps S621 to S624, that is, the palm vein image is preliminarily determined to be qualified only when the average pixel value meets the preset pixel condition and the average grayscale value and the maximum grayscale value meet the preset grayscale condition.

[0222] Step S63: performing image quality detection on the palm vein image that is initially determined to be qualified.

[0223] In one embodiment, the image quality detection includes at least but is not limited to any one of the following: image brightness assessment, palm edge assessment, image noise assessment, hand posture estimation, and palm area assessment.

[0224] It should be noted that when performing image quality detection on palm vein images that are preliminarily determined to be qualified, the order of image brightness assessment, palm edge assessment, image noise assessment, hand posture estimation and palm area assessment can be adjusted or swapped in actual application scenarios according to specific application scenarios.

[0225] like Fig. 6E As shown, in one embodiment, the image quality detection of the palm vein image preliminarily determined to be qualified includes the following steps:

[0226] Step S631: performing image brightness evaluation on the palm vein image that is initially determined to be qualified, and obtaining a first image whose image brightness satisfies a preset brightness condition.

[0227] In one embodiment, the palm vein image that is initially determined to be qualified is evaluated for image brightness and darkness, and the grayscale value of each pixel of the palm vein image is obtained.

[0228] In one embodiment, if the grayscale value of a pixel is less than a first preset value, the pixel is determined to be an overly dark pixel.

[0229] In one embodiment, if the grayscale value of a pixel is greater than a second preset value, the pixel is determined to be an over-bright pixel.

[0230] It should be noted that the first preset value and the second preset value are both pre-set, and their specific settings are not used as conditions to limit the present invention (for example, in the above embodiment, the first preset value is 100 and the second preset value is 200). In actual applications, they can be set according to specific application scenarios; the second preset value is greater than the first preset value.

[0231] In one embodiment, the preset brightness condition is: the ratio of the image too dark pixels to the total image pixels is less than the preset too dark threshold, and the ratio of the image too bright pixels to the total image pixels is less than the preset too bright threshold.

[0232] It should be noted that the preset too-dark threshold and the preset too-bright threshold are also preset, and their specific settings are not used as conditions to limit the present invention. In practical applications, they can be set according to specific application scenarios.

[0233] Step S632: perform palm edge evaluation on the first image to obtain a second image in which the palm edge meets a preset edge condition.

[0234] like Fig. 6F As shown, in one embodiment, when the image quality detection includes palm edge assessment, performing palm edge assessment on the palm vein image that is initially determined to be qualified includes the following steps:

[0235] Step S6321: Acquire a palm edge detection image based on the palm vein image that is preliminarily determined to be qualified.

[0236] like Figure 6G As shown, in one embodiment, obtaining a palm edge detection image based on the palm vein image that is initially determined to be qualified includes the following steps:

[0237] Step S63211: Acquire the horizontal edge based on the palm vein image that is preliminarily determined to be qualified.

[0238] Step S63212: Acquire the vertical edge based on the palm vein image that is preliminarily determined to be qualified.

[0239] Step S63213: perform weighted averaging on the edges in the horizontal direction and the edges in the vertical direction to obtain a palm edge detection image.

[0240] Step S6322: Determine whether the palm edge meets a preset edge condition based on the palm edge detection image and the palm vein image that is initially determined to be qualified.

[0241] In one embodiment, the Q value is calculated based on the palm edge detection image and the palm vein image that is initially determined to be qualified; the specific calculation formula is as follows:

[0242]

[0243] Among them, m E Represents the grayscale mean of the palm edge detection image; m I Indicates the grayscale mean of the palm vein image or the first image that is preliminarily determined to be qualified.

[0244] In this embodiment, judging whether the palm edge meets the preset edge condition according to the palm edge detection image and the palm vein image preliminarily determined to be qualified includes: judging whether the Q value meets the preset edge condition.

[0245] In one embodiment, the preset edge condition is: the Q value is greater than a preset edge threshold.

[0246] Specifically, if the Q value is greater than the preset edge threshold, it is determined that the palm edge meets the preset edge condition, that is, the palm edge is clear; otherwise, if the Q value is not greater than the preset edge threshold, it is determined that the palm edge does not meet the preset edge condition, that is, the palm edge is unclear.

[0247] It should be noted that the preset edge threshold is pre-set, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios.

[0248] Step S633: perform image noise evaluation on the second image to obtain a third image whose image noise meets a preset noise condition.

[0249] like Figure 6H As shown, in one embodiment, performing image noise evaluation on the second image to obtain a third image whose image noise satisfies a preset noise condition includes the following steps:

[0250] Step S6331: filter the second image to obtain a filtered image.

[0251] Step S6332: Calculate the mean square error of the filtered image and the second image to obtain the mean square error of the filtered image and the second image.

[0252] Specifically, the formula for calculating the mean square error is as follows:

[0253]

[0254] Wherein, M represents the total number of pixels of the second image L; N represents the total number of pixels of the filtered image K; MSE represents the mean square error between the filtered image K and the second image L.

[0255] Step S6333: determine whether the mean square error meets the preset noise condition.

[0256] In one embodiment, the preset noise condition is: a mean square error is less than a preset noise threshold.

[0257] It should be noted that the preset noise threshold is pre-set, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios (for example, in the above embodiment, the corresponding preset noise threshold is 4).

[0258] Specifically, when the mean square error satisfies the preset noise condition, it is determined that the image noise satisfies the preset noise condition; when the mean square error does not satisfy the preset noise condition, it is determined that the image noise does not satisfy the preset noise condition.

[0259] Step S634: estimate the hand posture of the third image to obtain a fourth image in which the hand posture meets a preset hand posture condition.

[0260] like Fig.6I As shown, in one embodiment, when the image quality detection includes human hand posture estimation, performing human hand posture estimation on the palm vein image that is initially determined to be qualified includes the following steps:

[0261] Step S6341: Determine whether a hand exists based on the palm vein image that is preliminarily determined to be qualified.

[0262] When the hand is present, execute step S6342.

[0263] Step S6342, estimate multiple wrist joint points.

[0264] In one embodiment, the Mediapipe framework is used to estimate multiple wrist joints.

[0265] In one embodiment, in step S6342, 21 wrist joint points are estimated, as follows: Figure 5N shown.

[0266] Step S6343: judging the palm posture based on the multiple hand joint points to determine whether the hand posture meets the preset hand posture condition.

[0267] In one embodiment, the palm posture determination includes at least but not limited to any one of the following: determining whether the palm is complete, determining whether the palm is a left palm or a right palm, and determining whether the palm is fully open.

[0268] In one embodiment, determining whether the palm is intact includes determining whether seven wrist joint points 0, 5, 9, 13, 17, 4, and 20 are within the range of an image (here referred to as the "third image") to determine whether the palm is intact.

[0269] If one of the seven hand joints is not within the image range, the palm is determined to be incomplete.

[0270] In one embodiment, determining whether the palm is a left palm or a right palm includes: calculating the line between the hand joint point 0 and the hand joint point 9 and Figure 5N The angle between the horizontal right direction in 1, the angle between the hand joint point 0 and the hand joint point 4 and Figure 5N The angle 2 between the horizontal right direction in the image; if angle 1 is greater than angle 2 and less than angle 2 plus 90 degrees, it is the palm image of the left hand; if angle 1 is less than angle 2 and greater than angle 2 minus 90 degrees, it is the palm image of the right hand.

[0271] In one embodiment, determining whether the palm is fully open includes: when determining whether the palm is fully open, two aspects are mainly considered, the first aspect is whether each finger is over-bent; the second aspect is to calculate the angle between each finger (index finger and middle finger, middle finger and ring finger, ring finger and little finger), and compare it with the finger opening threshold; if both aspects meet the conditions, it is determined that the palm is fully open, otherwise it will affect the subsequent palm vein recognition

[0272] In one embodiment, determining whether the palm is fully open includes: determining whether the curvature of each finger satisfies a preset curvature condition, and / or calculating the angle between two adjacent fingers to determine whether the angle satisfies a preset angle condition.

[0273] In one embodiment, the preset bending condition is: the bending degree is greater than the preset bending angle.

[0274] Specifically, if the curvature of the finger is greater than a preset curvature angle, it is determined that the finger is not over-bent; conversely, if the curvature of the finger is not greater than the preset curvature angle, it is determined that the finger is over-bent.

[0275] It should be noted that the preset bending angle is pre-set, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to the specific application scenario (for example, in the above embodiment, the corresponding preset bending angle is 120°).

[0276] In one embodiment, calculating the angle between two adjacent fingers includes respectively calculating the angles between the index finger and the middle finger, the middle finger and the ring finger, and the ring finger and the little finger.

[0277] In one embodiment, the preset angle condition is: the angle is greater than a preset angle threshold.

[0278] It should be noted that the preset angle threshold is pre-set, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios.

[0279] Step S635: perform palm area evaluation on the fourth image to obtain a fifth image whose palm area satisfies a preset palm area condition.

[0280] In this embodiment, the fifth image is a palm vein image that is finally determined to be qualified.

[0281] Considering that the processing speeds of image brightness evaluation, palm edge evaluation and image noise evaluation are relatively fast, and the palm area evaluation depends on the hand joints estimated in the hand posture estimation algorithm, in this embodiment, the image quality detection of the palm vein image is implemented in the order of image brightness evaluation, palm edge evaluation, image noise evaluation, hand posture estimation and palm area evaluation, so that unqualified images can be filtered out quickly before finally obtaining qualified high-quality palm vein images, thereby better improving the user experience.

[0282] like Figure 6J As shown, in one embodiment, when the image quality detection includes palm area assessment, performing palm area assessment on the palm vein image that is initially determined to be qualified includes the following steps:

[0283] Step S6351: Calculate the radius of the palm area based on the multiple hand joint points.

[0284] Specifically, weighted calculation is performed on hand joint point 0, hand joint point 5, hand joint point 9, hand joint point 13 and hand joint point 17 to obtain the radius of the palm area.

[0285] In this embodiment, the palm area is the largest inscribed circle of the palm.

[0286] Step S6352: Determine whether the radius satisfies a preset radius condition, so as to determine whether the palm area satisfies a preset palm area condition.

[0287] In one embodiment, the preset palm area condition is: the radius of the palm area satisfies the preset radius condition.

[0288] In one embodiment, the preset radius condition is: the radius is greater than a preset radius threshold.

[0289] It should be noted that the preset radius threshold is pre-set, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios.

[0290] In this embodiment, if the radius satisfies the preset radius condition, it is determined that the palm area satisfies the preset palm area condition; if the radius does not satisfy the preset radius condition, it is determined that the palm area does not satisfy the preset palm area condition.

[0291] The palm vein image quality detection method provided by the present invention is applied to a palm vein recognition system, and can realize preliminary detection of the palm vein image quality in the preprocessing stage of the palm vein recognition system, thereby filtering out unqualified and low-quality palm vein images, obtaining qualified and high-quality palm vein images, and then using the high-quality palm vein images for subsequent palm vein recognition, thereby improving the accuracy, reliability and recognition efficiency of palm vein recognition.

[0292] like 7A to 7J As shown, in this embodiment, the present invention proposes a palm vein effective area extraction method, and the working principle of the palm vein effective area extraction method is as follows:

[0293] 1) Rotate your palm

[0294] In the input palm image, the palm may be oriented in various directions. For subsequent unified processing, the palm is rotated to the positive direction.

[0295] The palm image is a palm image collected by a camera and meets image quality requirements.

[0296] like Fig. 7A and Figure 7B As shown, information of 21 evaluation points of the palm is obtained through Mediapipe.

[0297] Mediapipe is a framework for building machine learning pipelines for processing time series data such as video and audio. This cross-platform framework is suitable for desktop / server, Android, iOS and embedded devices such as Raspberry Pi and Jetson Nano.

[0298] Will Fig. 7A The evaluation points 0 and 9 in the figure are used as the basis for rotation, so that the two points after rotation are on a vertical line (at this time, the palm is considered to be facing the positive direction).

[0299] like Fig. 7A As shown, the 21 evaluation points are:

[0300] Point 0 is the wrist point;

[0301] {1,2,3,4} are the key points on the wrist to thumb skeleton;

[0302] {5,6,7,8} are the key points on the skeleton from wrist to index finger;

[0303] {9,10,11,12} are the key points on the skeleton from wrist to middle finger;

[0304] {13,14,15,16} are the key points on the skeleton from wrist to ring finger;

[0305] {17,18,19,20} are the key points on the skeleton from wrist to little finger;

[0306] Among them, {4,8,12,16,20} are fingertip points, and {5,9,13,17} are finger root points.

[0307] Specifically, a palm image is first input (the palm in the palm image is not facing forward); then the palm image is gray-processed to obtain a gray-scale image; then, 21 evaluation points are estimated by Mediapipe for the gray-scale image, and the 21 evaluation points are marked in the gray-scale image (such as Figure 7B Finally, the grayscale image is rotated according to the evaluation points 0 and 9 so that the palm in the grayscale image faces the positive direction (as shown in Figure 7C shown).

[0308] 2) Cut the image into palm size

[0309] According to the coordinates of the above 21 points, take the outermost points to form a rectangular frame, and multiply it by a coefficient to slightly expand the rectangular frame; then, use the rectangular frame to take out the original image (the above Figure 7C The corresponding palm in the corresponding image).

[0310] Considering that the rectangular frame determined according to the outermost points of the 21 points does not completely cover the entire palm area, the rectangular frame is multiplied by a coefficient here to slightly expand it, so that the obtained rectangular frame can completely cover the entire palm area.

[0311] This coefficient is a certain value obtained through training. Its specific value is not a condition to limit the present invention, as long as it is greater than 1. In practical applications, it can be set according to specific application scenarios.

[0312] Thus, the interference information far from the palm in the image can be excluded; then, in order to facilitate subsequent processing, the image is padded to make it a 512x512 (512 refers to the pixel point) square image (such as Fig.7D shown).

[0313] Here, the image may also be filled with a 1024×1024 square image, that is, 512x512 is not a condition limiting the present invention; in practical applications, the square image to be filled with the image may be selected according to the specific application scenario.

[0314] The larger the pixel size, the better the extraction effect of the subsequent effective palm vein area will be, but the extraction rate of the subsequent effective palm vein area will be slower.

[0315] 3) Image Segmentation

[0316] The purpose of image segmentation is to separate the palm from the background and obtain the approximate shape of the palm. The mask image obtained by segmentation is used for subsequent confirmation of finger joint points and assessment of palm width.

[0317] In this embodiment, the image segmentation adopts the Otsu method, and the segmentation result is as follows: Fig. 7E shown.

[0318] The Otsu method (OTSU) is an algorithm for determining the threshold for image binarization segmentation. It was proposed by Japanese scholar Otsu in 1979. Based on the principle of the Otsu method, this method is also called the maximum inter-class variance method, because after the image is binarized and segmented according to the threshold obtained by the Otsu method, the inter-class variance of the foreground and background images is the largest.

[0319] 4) Calculate the tangent line and tangent point between the two fingers

[0320] The function of this part is to determine two fixed points by two finger gaps; first, through image interception from the above Fig. 7E Two finger gap areas are captured from the corresponding image; the first finger gap area is the finger gap area between the index finger and the middle finger; the second finger gap area is the finger gap area between the ring finger and the little finger (these two finger gap areas are selected because the range of these two finger gap areas is relatively large when the fingers are open, which is convenient for subsequent processing); then, the lowest point is found in the first finger gap area, and starting from the lowest point, 100 points are extended forward along the edge of the index finger and backward along the edge of the middle finger to form a 200-point curve; the lowest point is found in the second finger gap area, and starting from the lowest point, 100 points are extended forward along the edge of the ring finger and backward along the edge of the little finger to form another 200-point curve; finally, the tangent lines of the two curves obtained from the two finger gaps are found, and the tangent points are calculated; the obtained tangent points are the reference points (i.e., fixed points), such as Figure 7F As shown, the first finger gap area is shown.

[0321] The number of points extending forward and backward from the lowest point is not a condition to limit the present invention, and in practical applications, it can be set according to specific application scenarios.

[0322] 5) Rotate your palm along the tangent line / point

[0323] like Figure 7G As shown, the coordinates of the reference point are rotated Fig.7D The corresponding images make the two reference points on the same horizontal line (even if the tangent is on the horizontal line, which is convenient for determining the subsequent palm print cutting area.

[0324] 6) Calculate the width of your palm

[0325] This function is to calculate the width of the palm, which is later used to determine the cutting size of the palm vein.

[0326] First, based on Figure 7G Corresponding to the image, use the Canny algorithm to get the edge contour of the palm, such as Figure 7HAs shown; then, starting from the horizontal line position where the two reference points are located, a horizontal scan is performed downward, and the distance between two relative edge points of the palm edge contour is recorded in turn, and finally the width of the palm is evaluated based on the distance.

[0327] Canny algorithm is a multi-level edge detection algorithm developed by John F. Canny in 1986. More importantly, Canny founded the computational theory of edge detection to explain how this technology works. Generally speaking, the purpose of edge detection is to significantly reduce the data size of the image while retaining the original image properties. There are many algorithms for edge detection. Although the Canny algorithm is old, it can be said that it is a standard algorithm for edge detection and is still widely used in research.

[0328] In one embodiment, when performing horizontal scanning, when the obtained distance changes suddenly, the scanning is stopped.

[0329] In this embodiment, evaluating the palm width according to the distance includes: taking the median of the distance as the palm width.

[0330] In one embodiment, a distance greater than a preset distance threshold is defined as a distance mutation.

[0331] The preset distance threshold is pre-set, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios.

[0332] In one embodiment, during horizontal scanning, when scanning reaches one evaluation point, the scanning is stopped.

[0333] In this embodiment, evaluating the palm width according to the distance includes: taking the minimum value of the distance as the palm width.

[0334] 7) Cutting the palm

[0335] like Fig.7I As shown, this part of the function first needs to calculate the cutting frame. The reference of the cutting frame is determined by the reference point of the finger gap. The size of the cutting frame is determined by multiplying the palm width by the cutting ratio.

[0336] The cutting ratio is preset, and its specific setting is not a condition to limit the present invention. In practical applications, it can be set according to specific application scenarios.

[0337] In one embodiment, the cutting ratio is less than 1.

[0338] In one embodiment, the cutting ratio is 0.8-0.9.

[0339] Then, if Figure 7J As shown, the effective area of ​​the palm vein can be obtained by applying the cutting box.

[0340] In this embodiment, the size of the palm vein effective area is 140×140.

[0341] In the present invention, by extracting the effective area of ​​palm veins, image pixels outside the effective area that may be disturbed are removed, and the effective area is used for subsequent feature information extraction, thereby improving the recognition speed and recognition accuracy of subsequent palm prints.

[0342] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0343] like Fig. 8A As shown, this embodiment provides a method for extracting a palm vein effective area, and the palm vein effective area extraction method includes the following steps:

[0344] Step S81, obtaining a first palm image.

[0345] like Figure 8B As shown, in one embodiment, obtaining the first palm image includes the following steps:

[0346] Step S811, obtaining the original palm image.

[0347] Specifically, the original palm image is obtained from the palm image captured by the camera.

[0348] The original palm image meets the image quality requirements.

[0349] In one embodiment, palm images that do not meet the image quality requirements are removed from the palm images captured by the camera, and original palm images are selected from the remaining palm images that meet the image quality requirements.

[0350] In one embodiment, the image quality requirement is a pre-set rule.

[0351] Specifically, the palm image that meets the rule is defined as meeting the image quality requirement; otherwise, the palm image that does not meet the rule is defined as not meeting the image quality requirement.

[0352] In one embodiment, the image quality requirement at least includes but is not limited to: the clarity is greater than a first preset value and / or the palm integrity is greater than a second preset value.

[0353] The first preset value and the second preset value are both pre-set values, and their specific values ​​are not used as conditions to limit the present invention.

[0354] Step S812: grayscale processing is performed on the original palm image to obtain a palm grayscale image.

[0355] Step S813: estimate multiple hand joints of the palm in the palm grayscale image.

[0356] It should be noted that the multiple hand joint points include at least but are not limited to: the wrist point (corresponding to the "0 evaluation point" in the above embodiment) and the finger base point on the wrist to middle finger skeleton (corresponding to the "9 evaluation point" in the above embodiment).

[0357] Step S814: Acquire the first palm image based on the palm grayscale image and the plurality of hand joint points.

[0358] like Figure 8C As shown, in one embodiment, the step of acquiring the first palm image based on the palm grayscale image and the plurality of hand joint points comprises the following steps:

[0359] Step S8141: Determine whether the palm orientation in the palm grayscale image is positive based on the wrist point and the finger base point on the wrist to middle finger skeleton.

[0360] In this embodiment, if the line connecting the wrist point and the finger base point on the wrist to middle finger skeleton is on a vertical line (i.e., the wrist point and the finger base point on the wrist to middle finger skeleton have the same horizontal coordinates), then the palm direction is positive.

[0361] When the palm is not facing the positive direction (ie, the horizontal coordinates of the wrist point and the finger base point on the wrist to middle finger skeleton are different), execute step S8142.

[0362] Step S8142: Rotate the palm grayscale image so that the palm faces forward, and obtain a forward palm image.

[0363] It should be noted that when the palm is facing forward, the palm grayscale image is the forward palm image.

[0364] Step S8143: Acquire the first palm image from the palm forward image according to the multiple hand joint points.

[0365] It should be noted that the first target palm vein map or the qualified palm vein image described in the above embodiment can be used as the first palm image, and the palm vein effective area can be extracted according to the first target palm vein map or the qualified palm vein image.

[0366] Step S82: performing image segmentation on the first palm image to obtain a second palm image.

[0367] In one embodiment, the Otsu method is used to perform image segmentation on the first palm image to obtain the second palm image.

[0368] Step S83: determine two target fixed points according to the second palm image.

[0369] like Fig.8D As shown, in one embodiment, determining two target fixed points according to the second palm image includes the following steps:

[0370] Step S831: determine the first lowest point of the first finger gap and the second lowest point of the second finger gap respectively based on the second palm image.

[0371] The first finger gap is the gap between the index finger and the middle finger; the second finger gap is the gap between the ring finger and the little finger.

[0372] Step S832: Starting from the first lowest point, extend multiple points along the edge of the index finger and the edge of the middle finger to form a first curve.

[0373] Step S833: Starting from the second lowest point, extend multiple points along the edge of the ring finger and the edge of the little finger to form a second curve.

[0374] Step S834: determine the tangents of the first curve and the second curve, and a first intersection point between the tangent and the first curve and a second intersection point between the tangent and the second curve.

[0375] It should be noted that the first intersection point and the second intersection point are two target fixed points (corresponding to the “reference points” in the above embodiment).

[0376] Specifically, a polygon tangent algorithm is used to find the tangents of the first curve and the second curve, and the intersection points of the tangents with the first curve and the second curve are the two target fixed points.

[0377] Step S84: extracting a palm vein effective area based on the first palm image and the two target fixed points.

[0378] like Fig. 8E As shown, in one embodiment, the step of extracting the effective area of ​​palm veins based on the first palm image and the two target fixed points includes the following steps:

[0379] Step S841, determine whether the connecting line between the two target fixed points is on a horizontal line.

[0380] When the connecting line of the two target fixed points is not on the horizontal line (ie, the vertical coordinates of the two target fixed points are different), step S842 is executed.

[0381] Step S842: rotate the first palm image so that the connection line between the two target fixed points is on a horizontal line, obtain a third palm image, and evaluate the palm width in the third palm image.

[0382] like Figure 8F As shown, in one embodiment, the evaluating the palm width in the third palm image comprises the following steps:

[0383] Step S8421: Acquire the edge contour of the palm in the third palm image.

[0384] In one embodiment, the Canny algorithm is used to obtain the edge contour of the palm in the third palm image.

[0385] Step S8422: Scan the edge contour based on the two target fixed points on the horizontal line to obtain multiple edge distances.

[0386] It should be noted that the edge distance is the distance between two opposite edge points in the edge profile.

[0387] Step S8423: Evaluate the palm width according to the multiple edge distances.

[0388] In one embodiment, a minimum edge distance is selected from a plurality of edge distances as the palm width.

[0389] In one embodiment, a median value is selected from a plurality of edge distances as the palm width.

[0390] When the connecting line of the two target fixed points is on a horizontal line (ie, the vertical coordinates of the two target fixed points are the same), step S843 is executed.

[0391] Step S843: Evaluate the palm width in the first palm image.

[0392] It should be noted that the evaluation of the palm width in the first palm image in step S843 is based on the same principle as the evaluation of the palm width in the third palm image in step S842, so the working principle will not be described in detail here.

[0393] Step S844: intercepting the palm vein effective area from the first palm image or the third palm image according to the palm width and the two target fixed points on the horizontal line.

[0394] like Figure 8G As shown, in one embodiment, the step of intercepting the palm vein effective area from the first palm image or the third palm image according to the palm width and the two target fixed points on the horizontal line includes the following steps:

[0395] Step S8441, determine the cutting width.

[0396] In one embodiment, the cutting width is the product of the palm width and a preset cutting ratio (corresponding to the “cutting ratio” in the above embodiment).

[0397] Step S8442: determine a target cutting range in the first palm image or the third palm image according to the cutting width and the two target fixed points on the horizontal line, so as to intercept the palm vein effective area from the first palm image or the third palm image based on the target cutting range.

[0398] In this embodiment, the target cutting range (corresponding to the “cutting frame” in the above embodiment) corresponds to the palm vein effective area.

[0399] In this embodiment, the working principle of the palm vein effective area extraction method is the same as that described above. Figure 7A to Figure 7J The working principle of the palm vein effective area extraction method provided in the corresponding embodiment is the same, so it will not be described in detail here.

[0400] The present invention provides a palm vein effective area extraction method, which extracts the palm vein effective area, removes image pixels outside the effective area that may be interfered with, uses the effective area for subsequent feature information extraction, and improves subsequent palm vein recognition speed and recognition accuracy.

[0401] An embodiment of the present invention further provides a palm vein image acquisition and processing device, which can implement the palm vein image acquisition and processing method described in the present invention. However, the implementation device of the palm vein image acquisition and processing device described in the present invention includes but is not limited to the structure of the palm vein image acquisition and processing device listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.

[0402] like Fig. 9A As shown, an embodiment of the present invention provides a palm vein image acquisition and processing device, which includes: an image acquisition module 91, used to acquire a palm vein image; an image processing module 92, which is communicatively connected to the image acquisition module 91, and is used to perform image processing on the palm vein image to obtain a first target palm vein image.

[0403] like Fig. 9BAs shown, the palm vein image acquisition and processing device also includes an image quality detection module 93, which is communicatively connected to the image processing module 92 and performs image quality detection on the first target palm vein image, including: the image quality detection module 93 performs an initial image screening on the first target palm vein image to obtain a palm vein image that is preliminarily determined to be qualified; performs image quality detection on the palm vein image that is preliminarily determined to be qualified to obtain a palm vein image that is qualified; the image quality detection includes at least any one of the following: image brightness evaluation, palm edge evaluation, image noise evaluation, hand posture estimation, and palm area evaluation.

[0404] like Fig. 10A and Fig. 10B As shown, the palm vein image acquisition and processing device also includes an effective area extraction module 94, such as Fig. 10A As shown, in one embodiment, the effective area extraction module 94 is connected to the image processing module 92 for communication, and performs palm vein effective area extraction according to the first target palm vein map; Fig. 10B As shown, in another embodiment, the effective area extraction module 94 is communicatively connected with the image quality detection module 93, and performs palm vein effective area extraction based on the palm vein image that has passed the detection.

[0405] Specifically, the effective area extraction module 94 obtains the first target palm vein map or the qualified palm vein image as the first palm image; performs image segmentation on the first palm image to obtain a second palm image; determines two target fixed points according to the second palm image; and extracts the palm vein effective area based on the first palm image and the two target fixed points.

[0406] It should be noted that the structures and principles of the image acquisition module 91, the image processing module 92, the image quality detection module 93 and the effective area extraction module 94 correspond one to one with the steps and embodiments in the above-mentioned palm vein image acquisition and processing method, so they are not repeated here.

[0407] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.

[0408] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0409] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0410] This embodiment further provides an electronic device, comprising: a memory, the memory being used to store a computer program; and a processor, the processor being used to execute the computer program so that the electronic device executes the above-mentioned palm vein effective area extraction method.

[0411] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by an electronic device, the above-mentioned palm vein effective area extraction method is implemented.

[0412] A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above-mentioned embodiment can be completed by instructing a processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above-mentioned storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a digital video disc (DVD)), or a semiconductor medium (for example, a solid-state disk (SSD)), etc.

[0413] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0414] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A palm vein image acquisition and processing method, characterized in that: The palm vein image acquisition and processing method includes: Acquire palm vein images; The palm vein image is processed to obtain a first target palm vein image.

2. The palm vein image acquisition and processing method according to claim 1, characterized in that: The acquisition of the palm vein image comprises: Controlling a multi-band light source to illuminate a palm vein object; the multi-band light source includes a first-band infrared light source and a second-band infrared light source; The camera is controlled to acquire a palm vein image of the palm vein object.

3. The palm vein image acquisition and processing method according to claim 2, characterized in that: Controlling a camera to acquire a palm vein image of the palm vein object includes: Acquire an original vein image stream; the original vein image stream includes a plurality of frames of original vein images input continuously; After detecting that the original vein image stream starts to input the initial frame original vein image, an asynchronous interrupt is performed and an asynchronous parameter set is set; The asynchronous parameter set is sent to dynamically adjust the relevant parameters of the original vein images of the current and subsequent input frames in the original vein image stream, and obtain a target vein image set, that is, a set of the first target palm vein images.

4. The palm vein image acquisition and processing method according to claim 1, characterized in that: Also includes: Performing image quality detection on the first target palm vein image includes: Performing a preliminary screening on the first target palm vein image to obtain a palm vein image that is preliminarily determined to be qualified; Performing image quality detection on the palm vein image that is preliminarily determined to be qualified to obtain a palm vein image that passes the detection; the image quality detection includes at least any one of the following: image brightness evaluation, palm edge evaluation, image noise evaluation, human hand posture estimation and palm area evaluation.

5. The palm vein image acquisition and processing method according to claim 1 or 4, characterized in that: Also includes: Extracting a palm vein effective area according to the first target palm vein map or the qualified palm vein image includes: Acquire the first target palm vein map or the detected qualified palm vein image as a first palm image; Performing image segmentation on the first palm image to obtain a second palm image; Determine two target fixed points according to the second palm image; A palm vein effective area is extracted based on the first palm image and the two target fixed points.

6. A palm vein image acquisition and processing device, characterized in that: The palm vein image acquisition and processing device comprises: An image acquisition module, used for acquiring palm vein images; The image processing module is communicatively connected with the image acquisition module and is used for performing image processing on the palm vein image to obtain a first target palm vein image.

7. The palm vein image acquisition and processing device according to claim 6, characterized in that: Also includes: An image quality detection module is communicatively connected with the image processing module and performs image quality detection on the first target palm vein image, including: The image quality detection module performs a preliminary screening on the first target palm vein image to obtain a palm vein image that is preliminarily determined to be qualified; Performing image quality detection on the palm vein image that is preliminarily determined to be qualified to obtain a palm vein image that passes the detection; the image quality detection includes at least any one of the following: image brightness evaluation, palm edge evaluation, image noise evaluation, human hand posture estimation and palm area evaluation.

8. The palm vein image acquisition and processing device according to claim 6 or 7, characterized in that: Also includes: The effective area extraction module is connected to the image processing module or the image quality detection module in communication, and extracts the effective area of ​​the palm vein according to the first target palm vein image or the qualified palm vein image, including: The effective area extraction module obtains the first target palm vein map or the qualified palm vein image as a first palm image; performs image segmentation on the first palm image to obtain a second palm image; determines two target fixed points according to the second palm image; and extracts a palm vein effective area based on the first palm image and the two target fixed points.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the palm vein image acquisition and processing method described in any one of claims 1 to 5 is implemented.

10. An electronic device, characterized in that: The electronic device comprises: Memory for storing computer programs; A processor is communicatively connected to the memory, and implements the palm vein image acquisition and processing method according to any one of claims 1 to 5 when executing the computer program.