Method, device, equipment and storage medium for identifying living palm prints
By obtaining and processing the similarity of palmprint images, and using classification models for live recognition, the problem of low security and difficulty in live recognition of palmprints is solved, and contactless, high-security recognition is achieved.
Patent Information
- Application Number
- CN202010433385.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-20
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-05-20
AI Technical Summary
Existing palmprint liveness identification methods have problems such as low security and high difficulty. They are easy to be stolen and require additional equipment support. Ordinary mobile phones and access control cameras are difficult to carry out liveness identification.
By acquiring multiple frames of images of the palmprint to be recognized, extracting the signals of the palm image and the background image, calculating the similarity and inputting it into the classification model, it determines whether it is a living body mark, and if it is a living body, it will be recognized, and no contact equipment is required, reducing the cost to increase identification difficulty and improve security.
It achieves live palmprint identification without using contact equipment, avoids the risk of theft, improves security and identification difficulty, and reduces dependence on additional equipment.
Smart Images

Figure CN111582228B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of biometric identification technology, and in particular to a method, device, equipment and storage medium for identifying a living palm print. Background Art
[0002] With the development of computer technology, more and more technologies are being applied in the financial field. The traditional financial industry is gradually transforming into financial technology (Fintech), and biometric technology is no exception. However, due to the security and real-time requirements of the financial industry, higher requirements are also placed on biometric technology.
[0003] With the development of science and technology, the application of biometric technology is becoming more and more extensive. Palmprints are a type of biometric feature. Palmprint images can be used for authentication and identification of users. Compared with facial information, palmprint information protects user privacy to a certain extent. Most of the current palmprint collection technologies use contact collection methods, which require specific hardware equipment support. There is also a risk that the information retained on the surface of the contact device will be stolen. On the other hand, in order to improve the security of identity authentication, liveness detection is required at the same time as authentication to verify whether the user is the real live person operating, rather than using stolen palmprints of others to impersonate. However, the current palmprint liveness recognition method usually requires additional equipment support such as infrared cameras. It is difficult for ordinary mobile phones and access control cameras to perform liveness recognition on palmprints.
[0004] It can be seen that in the current palm print liveness process, palm prints are easily stolen, the security is low, and palm print liveness recognition is difficult. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for identifying live palm prints, aiming to solve the technical problems in the existing palm print live process that palm prints are easily stolen, have low security, and are difficult to identify live palm prints.
[0006] To achieve the above object, the present invention provides a method for identifying a living body palm print, the method comprising the steps of:
[0007] Acquire at least two frames of palmprint images corresponding to the palmprint to be identified, and acquire the palm image and background image corresponding to each frame of the palmprint image;
[0008] Determine image signals corresponding to each of the palm images and each of the background images;
[0009] Calculating the similarity between any two image signals, and inputting the similarity into a preset classification model to obtain a classification identifier output by the classification model;
[0010] If the classification mark is a live mark, it is determined that the palm print to be identified is a live palm print.
[0011] Optionally, if the classification mark is a live mark, after the step of determining that the palm print to be identified is a live palm print, the step further includes:
[0012] Determine a target frame image in each frame of the palm image;
[0013] If a target palm print that is paired with the palm print to be identified is identified according to the target frame image based on a preset palm print recognition algorithm, it is determined that the palm print to be identified is successfully identified.
[0014] Optionally, the step of determining a target frame image in each frame of the palm image includes:
[0015] Obtain image data corresponding to the palm image of each frame, and obtain weights corresponding to each image data;
[0016] Calculate the quality value corresponding to the palm image of each frame according to the image data and the weight;
[0017] A target frame image is determined in each frame of the palm image according to the quality value.
[0018] Optionally, if a target palm print paired with the palm print to be identified is identified according to the target frame image based on a preset palm print recognition algorithm, after determining that the palm print to be identified is successfully identified, the method further includes:
[0019] If it is determined that the operation instruction corresponding to the palm print to be identified is an unlock instruction, the door lock corresponding to the palm print to be identified is controlled to change from a locked state to an unlocked state according to the unlock instruction.
[0020] Optionally, the step of determining the image signals corresponding to each of the palm images and each of the background images includes:
[0021] Extracting a region of interest ROI corresponding to each of the palm images and each of the background images;
[0022] The image signal is extracted in each of the ROIs using a preset signal extraction algorithm.
[0023] Optionally, the step of extracting ROIs corresponding to each of the palm images and each of the background images includes:
[0024] Determine a first extraction position for extracting the ROI in the palm image of each frame, wherein the first extraction position in the palm image of each frame is the same;
[0025] Determine a second extraction position for extracting the ROI in the background image of each frame, wherein the second extraction position in the background image of each frame is the same;
[0026] The ROI is extracted at a first extraction position in the palm image of each frame and a second extraction position in the background image of each frame.
[0027] Optionally, after the step of calculating the similarity between any two image signals and inputting the similarity into a preset classification model to obtain a classification identifier output by the classification model, the method further includes:
[0028] If it is determined that the classification mark is a non-living mark, it is prohibited to respond to the operation instruction corresponding to the palm print to be identified, and an alarm message is generated;
[0029] The warning information is sent to a mobile terminal so that the mobile terminal outputs the received warning information, and prompts the mobile terminal user that the palm print to be identified is a non-living palm print according to the warning information.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a living body palm print recognition device, the living body palm print recognition device comprising:
[0031] An acquisition module, used to acquire at least two frames of palm print images corresponding to the palm print to be identified, and to acquire a palm image and a background image corresponding to each frame of the palm print image;
[0032] A determination module, used to determine image signals corresponding to each of the palm images and each of the background images;
[0033] A calculation module, used for calculating the similarity between any two image signals;
[0034] An input module, used to input the similarity into a preset classification model to obtain a classification identifier output by the classification model;
[0035] The determination module is further configured to determine that the palm print to be identified is a live palm print if the classification identifier is a live identifier.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a live palm print recognition device, which includes a memory, a processor, and a live palm print recognition program stored in the memory and executable on the processor. When the live palm print recognition program is executed by the processor, the steps of the live palm print recognition method corresponding to the federated learning server are implemented.
[0037] In addition, to achieve the above purpose, the present invention also provides a computer-readable storage medium, on which a live palm print recognition program is stored. When the live palm print recognition program is executed by a processor, the steps of the live palm print recognition method as described above are implemented.
[0038] The present invention obtains at least two frames of palm print images corresponding to the palm print to be identified, determines the palm image and background image corresponding to each frame of palm print image, determines the image signal corresponding to each palm image and each background image, calculates the similarity between any two image signals, and inputs the similarity into a preset classification model to obtain a classification identifier output by the classification model. If the classification identifier is a live identifier, the palm print to be identified is determined to be a live palm print. In the process of live identification of palm prints, it is realized that there is no need to collect palm prints through contact equipment, but only to extract palm print images, thereby avoiding the risk of palm prints being stolen and improving the security of palm prints in the process of live identification of palm prints; and in the process of palm print identification, no additional equipment support is required, thereby reducing the difficulty of live identification of palm prints. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic flow chart of the first embodiment of the method for identifying living palm prints of the present invention;
[0040] Figure 2 is a schematic diagram of a palm image and a background image corresponding to a palmprint image according to an embodiment of the present invention;
[0041] Figure 3 It is a schematic diagram of extracting corresponding ROIs from each frame of palm image and each frame of background image by the palm image and background image corresponding extraction instruction in the embodiment of the present invention;
[0042] Figure 4 is a schematic diagram of the similarity between any two image signals in an embodiment of the present invention;
[0043] Figure 5 1 is a flow chart of a second embodiment of a method for identifying a living palm print according to the present invention;
[0044] Figure 6 It is a functional schematic diagram module diagram of a preferred embodiment of the living palm print recognition device of the present invention;
[0045] Figure 7 It is a structural diagram of the hardware operating environment involved in the embodiment of the present invention.
[0046] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0048] The present invention provides a method for identifying a living palm print. Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of a method for identifying a living palm print according to the present invention.
[0049] The embodiment of the present invention provides an embodiment of a method for identifying a live palm print. It should be noted that although a logical sequence is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0050] The method for identifying a live palm print is applied to a server or a terminal, and the terminal may include a mobile terminal such as a mobile phone, a tablet computer, a laptop computer, a PDA, and a fixed terminal such as a digital TV and a desktop computer. In each embodiment of the method for identifying a live palm print, for the sake of convenience of description, the execution subject is omitted to illustrate each embodiment. The method for identifying a live palm print includes:
[0051] Step S10, obtaining at least two frames of palm print images corresponding to the palm print to be identified, and obtaining the palm image and background image corresponding to each frame of the palm print image.
[0052] After the palmprint liveness recognition instruction is detected, at least two palmprint images corresponding to the palmprint to be recognized are obtained. In this embodiment, the obtained palmprint images can be regarded as an image sequence, and the image sequence can also be regarded as video data of a certain length. It can be understood that one frame of palmprint image is a palmprint image. This embodiment does not limit the number of frames of the obtained palmprint image, such as 3 frames of palmprint images, 5 frames of palmprint images, or 6 frames of palmprint images. The recognition instruction can be automatically triggered when palmprint liveness detection is required, such as when it is necessary to unlock the door through the palmprint image, open the door control, or unlock certain electronic devices through the palmprint, the recognition instruction is automatically triggered. Specifically, the palmprint image is obtained through the corresponding camera device, which can be a camera connected to the door lock or electronic device, or a camera set inside the door lock or electronic device.
[0053] After the palm print image is obtained, a pre-set segmentation algorithm is obtained, and each frame of the palm print image is segmented by the segmentation algorithm to obtain the palm image and background image corresponding to each frame of the palm print image. It can be understood that each frame of the palm print image has a corresponding palm image and background image. Figure 2 , Figure 2 is a schematic diagram of a palm image and a background image corresponding to a palmprint image according to an embodiment of the present invention. Figure 2 In , "1" represents the palm image and "2" represents the background image. The segmentation algorithm can be a mean iteration segmentation algorithm, a maximum entropy segmentation algorithm, and a semantic segmentation algorithm based on deep learning. The mean iteration segmentation algorithm iteratively calculates a T so that the threshold T can segment the grayscale image into two categories, A and B, where A is the object and B is the background, and the condition is satisfied: the average of the grayscale mean T1 of A plus the grayscale mean T2 of B is equal to T. The maximum entropy segmentation algorithm is information entropy. When the system is more chaotic and the uncertainty is greater, the information entropy is greater. When the system is more orderly and the certainty is higher, the information entropy is smaller. Therefore, this method can be used to segment objects and backgrounds. It can be understood that in this embodiment, the palm image is the object and the background image is the background. In this embodiment, the semantic segmentation algorithm based on deep learning is preferred, which can separate the palm area from the background area more finely.
[0054] Step S20, determining image signals corresponding to each of the palm images and each of the background images.
[0055] After obtaining the palm print image and the background image corresponding to each frame of the palm print image, the image signal corresponding to each frame of the palm print image and each frame of the background image is determined. It can be understood that the image signal in this embodiment includes the image signal extracted from each frame of the palm print image and the image signal extracted from each frame of the background image.
[0056] Further, step S20 includes:
[0057] Step a: extracting the region of interest ROI corresponding to each of the palm images and each of the background images.
[0058] Further, after determining each frame of palm image and each frame of background image, the extraction parameters corresponding to each frame of palm image are obtained, and ROI (region of interest) is extracted from the palm image according to the extraction parameters corresponding to each frame of palm image, and the extraction parameters corresponding to each frame of background image are obtained, and ROI is extracted from the background image according to the extraction parameters corresponding to each frame of background image, so as to determine the ROI corresponding to each palm image and background image. In this embodiment, at least one ROI is extracted from each frame of palm image, and at least one ROI is extracted from each frame of background image, and the number of ROIs in each frame of palm image and the number of ROIs in each frame of background image can be the same or different. In this embodiment, the extraction parameters of the ROI corresponding to the palm image and the background image can be pre-set, and the extraction parameters include extraction positions and extraction quantities. It can be understood that the extraction parameters corresponding to the palm image and the extraction parameters corresponding to the background image are different, specifically, the extraction positions in the extraction parameters corresponding to the palm image and the extraction positions in the extraction parameters corresponding to the background image are different, but the extraction quantities in the extraction parameters corresponding to the palm image and the extraction quantities in the extraction parameters corresponding to the background image can be the same or different.
[0059] Furthermore, after determining each frame of palm image and each frame of background image, an extraction instruction can be triggered as needed, and the corresponding ROI can be extracted from each frame of palm image and each frame of background image according to the extraction instruction, thereby obtaining the ROI corresponding to each frame of palm image and the ROI corresponding to each frame of background image. It can be understood that the extraction instruction carries the extraction parameters of the ROI corresponding to the palm image and the background image, so the corresponding ROI can be extracted from each frame of palm image and each frame of background image through the extraction instruction. Specifically, refer to Figure 3 , Figure 3 This is a schematic diagram of an embodiment of the present invention in which a palm image and background image corresponding extraction instruction extracts corresponding ROIs from each frame of palm image and each frame of background image. Figure 3 In the figure, there are 5 ROIs in the palm image, namely F1, F2, F3, F4 and F5, and there are 3 ROIs in the background image, namely B1, B2 and B3.
[0060] Further, step a comprises:
[0061] Step a1, determining a first extraction position for extracting ROI in the palm image of each frame, wherein the first extraction position in the palm image of each frame is the same.
[0062] Step a2, determining a second extraction position for extracting the ROI in the background image of each frame, wherein the second extraction position in the background image of each frame is the same.
[0063] Step a3: extracting ROI at the first extraction position of the palm image in each frame and the second extraction position in the background image in each frame.
[0064] Further, after each frame of palm image and each frame of background image, the first extraction position for extracting ROI in each frame of palm image is determined, wherein the first extraction position in each frame of palm image is the same, and the second extraction position for extracting ROI in each frame of background image is determined, wherein the second extraction position in each frame of background image is the same. After determining the first extraction position and the second extraction position, ROI is extracted at the first extraction position of each frame of palm image, and ROI is extracted at the second extraction position of each frame of background image, thereby obtaining ROI corresponding to each frame of palm image and each frame of background image. It can be understood that at this time, the extraction parameters corresponding to ROI corresponding to different frames of palm image are the same, and the extraction parameters corresponding to ROI of different frames of background image are also the same.
[0065] Step b: extracting image signals in each of the ROIs using a preset signal extraction algorithm.
[0066] After obtaining the ROI corresponding to each frame of the palm image and each frame of the background image, a pre-stored signal extraction algorithm is obtained, and the image signal is extracted in each ROI by the signal extraction algorithm. In this embodiment, an rPPG (remote photoplethysmography) signal extraction algorithm is used to extract the image signal in each ROI. It can be understood that the extracted image signal is an rPPG signal, and the rPPG signal is generally a one-dimensional vector. In other embodiments, a signal extraction algorithm having the same function as the rPPG signal extraction algorithm can also be used to extract the image signal in each ROI.
[0067] Furthermore, if the extraction parameters of the ROIs corresponding to the palm images of each frame are different, and the extraction parameters of the ROIs corresponding to the background images of each frame are different, after obtaining the ROIs corresponding to the palm images of each frame and the background images of each frame, all ROIs can be traversed to extract the first target ROI at the same position in the palm images of each frame, and the second target ROI at the same position in the background images of each frame, and then the corresponding image signals can be extracted in the first target ROI and the second target ROI through the image signal extraction algorithm.
[0068] Step S30, calculating the similarity between any two image signals, and inputting the similarity into a preset classification model to obtain a classification identifier output by the classification model.
[0069] Step S40: If the classification mark is a live mark, determine that the palm print to be identified is a live palm print.
[0070] After the image signals corresponding to each ROI are obtained, the similarity between any two image signals is calculated. Specifically, in this embodiment, a convolution algorithm or a cross-correlation algorithm may be used to calculate the similarity between any two image signals. Specifically, in this embodiment, if the image signal extracted from the ROI corresponding to the palm image is recorded as the first signal, and the image signal extracted from the ROI corresponding to the background image is recorded as the second signal, the similarity includes the similarity between the first signal and the first signal, the similarity between the first signal and the second signal, and the similarity between the second signal and the second signal. It should be noted that the image signal in this embodiment is a one-dimensional signal, or a one-dimensional signal that can be vectorized.
[0071] After calculating the similarity between any two image signals, all the calculated similarities are input into a pre-set classification model to obtain a classification mark output by the classification model. In this embodiment, there are two types of classification marks output by the classification model, one is a live mark indicating that the palm print to be identified is a live palm print, and the other is a non-live mark indicating that the palm print to be identified is a non-live palm print. This embodiment does not limit the expression form of the classification mark, such as the classification mark can be represented by numbers and / or letters. If it is determined that the classification mark output by the classification model is a live mark, then it is determined that the palm print to be identified is a live palm print.
[0072] Furthermore, the classification model is obtained by training a random forest or convolutional neural network. Specifically, training sample data is obtained, and the training sample data is also the similarity between two image signals. Each training sample data has a corresponding classification identifier, and the classification identifier can be used to determine whether each training sample data corresponds to a live palm print or a non-live palm print. After the training sample data is obtained, the training sample data is input into a random forest or convolutional neural network to train the random forest or convolutional neural network to obtain a classification model.
[0073] For ease of understanding, the following example uses F i (i≥1) represents the ROI corresponding to the palm image, and B j (j≥1) represents the ROI corresponding to the background image, and the image signal extracted from the ROI corresponding to the palm image is recorded as The image signal extracted from the ROI corresponding to the background image is recorded as Define the function F(S i ,S j ), through the function F(S i ,S j ) represents the similarity between two image signals. Specifically, refer to Figure 4 , Figure 4is a schematic diagram of the similarity between any two image signals in an embodiment of the present invention. Figure 4 It can be seen that if there are n image signals in the palm image and m image signals in the background image, then Figure 4 The size of the table in is (n+m)×(n+m), that is, a total of (n+m)×(n+m) similarities can be obtained. If (n+m)×(n+m) similarities are recorded as {F i,j}, then {F i,j} is input into the classification model to obtain the output of the classification model. It can be understood that the similarity calculated from any two image signals is a one-dimensional vector.
[0074] This embodiment obtains at least two frames of palm print images corresponding to the palm print to be identified, determines the palm image and background image corresponding to each frame of palm print image, determines the image signal corresponding to each palm image and each background image, calculates the similarity between any two image signals, and inputs the similarity into a preset classification model to obtain a classification identifier output by the classification model. If the classification identifier is a live identifier, the palm print to be identified is determined to be a live palm print. In the process of live identification of palm prints, it is realized that there is no need to collect palm prints through contact equipment, but only to extract palm print images, thereby avoiding the risk of palm prints being stolen and improving the security of palm prints in the process of live identification of palm prints; and in the process of palm print identification, no additional equipment support is required, thereby reducing the difficulty of live identification of palm prints.
[0075] Furthermore, it should be noted that directly using rPPG signals (image signals) to identify whether a palm print is a live palm print or a non-live palm print may result in non-live palm prints being identified as live palm prints due to factors such as illumination and palm movement during the palm print image acquisition process. However, this embodiment uses rPPG signals of different regions (rPPG signals of ROI corresponding to the palm image and the background image) to calculate the similarity between the two rPPG signals, and determines whether the palm print to be identified is a live palm print or a non-live palm print based on the similarity, thereby reducing the interference of factors such as illumination and palm movement during palm print live recognition on palm print live recognition, and improving the robustness of palm print live recognition.
[0076] Furthermore, the method for identifying a living palm print also includes:
[0077] Step c: if it is determined that the classification mark is a non-living mark, it is prohibited to respond to the operation instruction corresponding to the palm print to be identified, and an alarm message is generated.
[0078] Furthermore, if the classification identifier is determined to be a non-living identifier, it is prohibited to respond to the operation instruction corresponding to the palm print to be identified, and an alarm message is automatically generated, wherein the operation instruction corresponding to the palm print to be identified may be an opening instruction for opening an electronic device or an opening instruction for opening a door lock, etc.
[0079] Step d: sending the warning information to a mobile terminal so that the mobile terminal can output the received warning information, and prompting the mobile terminal user that the palm print to be identified is a non-living palm print according to the warning information.
[0080] After the alarm information is generated, the alarm information is sent to a mobile terminal, which may be a mobile terminal of the user corresponding to the palm print to be identified, or a mobile terminal pre-set to receive the alarm information, such as a mobile terminal held by the owner of the house corresponding to the door lock. After the mobile terminal receives the alarm information, it outputs the alarm information to prompt the mobile terminal user that the palm print to be identified is a non-live palm print according to the alarm information. In this embodiment, the output method of the alarm information is not limited, such as the alarm information can be output in voice and / or text. Furthermore, after the alarm information is generated, the alarm information can also be automatically output to prompt the user corresponding to the palm print to be identified that the palm print to be identified is a non-live palm print through the alarm information.
[0081] This embodiment improves the security of executing the operation instruction corresponding to the palm print to be identified by prohibiting the response to the operation instruction corresponding to the palm print to be identified when it is determined that the palm print to be identified is a non-living palm print, and outputs an alarm message to the mobile terminal when it is determined that the palm print to be identified is a non-living palm print, so that the mobile terminal user can be informed of the existence of an illegal intruder in a timely manner.
[0082] Furthermore, a second embodiment of the method for identifying a live palm print of the present invention is proposed. The difference between the second embodiment of the method for identifying a live palm print and the first embodiment of the method for identifying a live palm print is that, Figure 5 The method for identifying living palm prints also includes:
[0083] Step S50, determining a target frame image in each frame of the palm image.
[0084] After obtaining each frame of palm image, the target frame image in each frame of palm image is determined. It should be noted that the number of the target frame images may be less than or equal to the number of the palm images.
[0085] Further, step S50 includes:
[0086] Step e: obtaining image data corresponding to the palm image of each frame, and obtaining weights corresponding to each image data.
[0087] Furthermore, image data corresponding to each frame of the palm image is obtained, wherein the image data includes at least one of the following: image blur, image brightness, image contrast, first-order gradient, and second-order gradient. Image brightness refers to the brightness of the picture, and the unit is candela per square meter (cd / m2) or nits. Image contrast refers to the measurement of different brightness levels between the brightest white and the darkest black in the light and dark areas of an image, that is, the magnitude of the grayscale contrast of an image. Image gradient regards the image as a two-dimensional discrete function. The image gradient is actually the derivative of this two-dimensional discrete function. The first-order gradient is the first-order derivative of the image, and the second-order gradient is the second-order derivative of the image. Image blur can be calculated by gradient functions such as Brenner gradient function, Tenengrad gradient function, and Laplacian gradient function.
[0088] After obtaining the image data corresponding to each frame of the palm image, the weight corresponding to each image data is obtained. It should be noted that the weight corresponding to the same image data in different frames of palm images is the same. For example, for image blur, the corresponding weight in the palm image of frame A and the palm image of frame B is the same.
[0089] Step f: Calculate the quality value corresponding to the palm image of each frame according to the image data and the weight.
[0090] After obtaining the image data corresponding to each frame of palm image and the weight corresponding to each image data, the quality value corresponding to each frame of palm image is calculated according to the image data and the weight. Specifically, the image data of each frame of palm image is multiplied by the corresponding weight to obtain the corresponding product, and then the obtained products are added to obtain the quality value corresponding to the frame of palm image. If the image blur is recorded as A1, the image brightness is recorded as A2, the image contrast is recorded as A3, the first-order gradient is recorded as A4, and the second-order gradient is recorded as A5, the weight corresponding to the image blur is recorded as a1, the weight corresponding to the image brightness is recorded as a2, the weight corresponding to the image contrast is recorded as a3, the weight corresponding to the first-order gradient is recorded as a4, and the weight corresponding to the second-order gradient is recorded as a5, then the calculation formula for the quality value corresponding to each frame of palm image is: A1×a1+A2×a2+A3×a3+A4×a4+A5×a5.
[0091] Step g: determining a target frame image in each frame of the palm image according to the quality value.
[0092] After obtaining the quality value corresponding to each frame of palm image, determine the number of images corresponding to the target frame image, and select the palm image with a larger quality value from each frame of palm image according to the number of images to determine it as the target frame image. Specifically, the palm images can be sorted from large to small according to the quality value to obtain the sorted palm images, and then select the palm images with the largest number of images from the sorted palm images from front to back as the target frame images. It can be understood that in other embodiments, the palm images can also be sorted from small to large according to the quality value. In this case, when determining the target frame image, it is selected from back to front. Among them, the number of images is pre-set, and this embodiment does not specifically limit the number of images.
[0093] Further, after the image data corresponding to each frame of palm image is obtained, the image target data in the image data is determined, wherein the image target data is pre-set, such as image blur and image brightness can be set as image target data, or image blur, image brightness and image contrast can be set as image target data. After the image target data is determined, the palm image corresponding to the optimal image target data is selected from each frame of palm image according to the image target data as the target frame image, such as determining the palm image with the smallest image blur among all palm images as the target frame image, and determining the palm image with the largest image contrast among all palm images as the target frame image, or determining the palm image with the largest image brightness among all palm images as the target frame image.
[0094] Step S60: If a target palm print paired with the palm print to be recognized is recognized according to the target frame image based on a preset palm print recognition algorithm, it is determined that the palm print to be recognized is recognized successfully.
[0095] After the target frame image is determined, a pre-stored palmprint recognition algorithm is obtained, wherein the palmprint recognition algorithm may be a recognition algorithm based on the point and line features of the palmprint, a recognition algorithm based on the texture features of the palmprint, or a recognition algorithm based on the hierarchical feature fusion of the palmprint.
[0096] After the palmprint recognition algorithm is obtained, the target frame image is compared with each pre-stored palmprint image in the palmprint database through the palmprint recognition algorithm. If it is determined that the similarity between the pre-stored palmprint image in the palmprint database and the target frame image is greater than the preset similarity, it is determined that the target palmprint paired with the palmprint to be recognized is recognized, that is, the palmprint to be recognized is determined to be recognized. It can be understood that at this time, the palmprint corresponding to the pre-stored palmprint image with a similarity greater than the preset similarity with the target frame image is the target palmprint; if it is determined that the similarity between all pre-stored palmprint images in the palmprint database and the target frame image is less than or equal to the preset similarity, it is determined that the target palmprint paired with the palmprint to be recognized is not recognized, that is, it is determined that the palmprint to be recognized fails to be recognized. Among them, the preset similarity can be set according to specific needs, such as the preset similarity can be set to 60%, 70% or 95%. Palmprint images are pre-stored in the palmprint database, and this embodiment records the palmprint images pre-stored in the palmprint data as pre-stored palmprint images.
[0097] It is understandable that in the process of calculating the similarity between the pre-stored palmprint image and the target frame image, the similarity between different features is calculated according to different palmprint recognition algorithms. For example, for the palmprint-based texture feature recognition algorithm, the texture features in the pre-stored palmprint image and the target frame image are extracted by the palmprint-based texture feature recognition algorithm, and then the texture features corresponding to the pre-stored palmprint image are compared with the texture features corresponding to the target frame image to obtain the similarity between the texture features corresponding to the pre-stored palmprint image and the texture features corresponding to the target frame image.
[0098] Further, when there are at least two target frame images, it can be set that the target palm print paired with the to-be-recognized palm print is determined to be recognized only when the similarity between all target frame images and a pre-stored palm print image is greater than a preset similarity, otherwise, it is determined that the target palm print paired with the to-be-recognized palm print is not recognized. Further, it can also be set that as long as the similarity between a certain number of target frame images and a pre-stored palm print image is greater than a preset similarity, it is determined that the target palm print paired with the to-be-recognized palm print is recognized.
[0099] Furthermore, it should be noted that step S50 and step S60 may be performed after step S40 or before step S40, such as after step S10 or after step S20.
[0100] This embodiment determines the target frame image in each frame of palm image, and then performs palmprint recognition according to the target frame image based on the palmprint recognition algorithm, so that the corresponding user does not need to contact the palmprint recognition device during the palmprint recognition process, thereby avoiding the theft of the palmprint and improving the security of the palmprint used for palmprint recognition during the palmprint recognition process; further, this embodiment avoids the interference caused by the background image in the palmprint image by only using the palm image for palmprint recognition, thereby improving the accuracy of palmprint recognition; further, this embodiment can select multiple frames of target frame images with large quality values for palmprint recognition, reduce the interference of factors such as illumination and motion blur on palmprint recognition, and improve the robustness of palmprint recognition.
[0101] Furthermore, a third embodiment of the method for identifying a live palm print of the present invention is proposed. The difference between the third embodiment of the method for identifying a live palm print and the second embodiment of the method for identifying a live palm print is that the method for identifying a live palm print further includes:
[0102] Step i: if it is determined that the operation instruction corresponding to the palm print to be identified is an unlock instruction, then according to the unlock instruction, the door lock corresponding to the palm print to be identified is controlled to change from a locked state to an unlocked state.
[0103] In this embodiment, the palm print to be identified is obtained when the user corresponding to the palm print to be identified unlocks the door through the palm print, that is, the operation instruction corresponding to the palm print to be identified is an unlock instruction. After determining that the operation instruction corresponding to the palm print to be identified is an unlock instruction, and determining that the palm print to be identified is a live palm print, and determining that the palm print to be identified is successfully identified, the door lock corresponding to the palm print to be identified is controlled to change from a locked state to an unlocked state according to the unlock instruction, that is, the door lock is opened by the palm print to be identified. Further, if it is determined that the palm print to be identified is a non-live palm print, and / or the palm print to be identified fails to be identified, the unlock instruction is not responded to.
[0104] This embodiment controls the door lock corresponding to the palm print to be identified to change from a locked state to an unlocked state after determining that the operation instruction corresponding to the palm print to be identified is an unlocking instruction, determining that the palm print to be identified is a live palm print, and determining that the palm print to be identified is successfully identified, thereby preventing illegal elements from using non-live palm prints to unlock the door, and improving the security of unlocking the door by palm prints.
[0105] In addition, the present invention also provides a living palm print recognition device, referring to Figure 6 , the living palmprint recognition device comprises:
[0106] An acquisition module 10 is used to acquire at least two frames of palm print images corresponding to the palm print to be identified, and acquire a palm image and a background image corresponding to each frame of the palm print image;
[0107] A determination module 20, configured to determine image signals corresponding to each of the palm images and each of the background images;
[0108] A calculation module 30, used to calculate the similarity between any two image signals;
[0109] An input module 40, used to input the similarity into a preset classification model to obtain a classification identifier output by the classification model;
[0110] The determination module 20 is further configured to determine that the palm print to be identified is a live palm print if the classification mark is a live mark.
[0111] Furthermore, the determination module 20 is also used to determine the target frame image in each frame of the palm image; if based on a preset palmprint recognition algorithm, a target palmprint paired with the palmprint to be recognized is recognized according to the target frame image, it is determined that the palmprint to be recognized is recognized successfully.
[0112] Furthermore, the determining module 20 includes:
[0113] An acquisition unit, used to acquire image data corresponding to the palm image of each frame, and acquire a weight corresponding to each image data;
[0114] A calculation unit, configured to calculate a quality value corresponding to the palm image of each frame according to the image data and the weight;
[0115] A determination unit is used to determine a target frame image in each frame of the palm image according to the quality value.
[0116] Furthermore, the living palmprint recognition device comprises:
[0117] The transformation module is used for controlling the door lock corresponding to the palm print to be identified to transform from a locked state to an unlocked state according to the unlocking instruction if it is determined that the operation instruction corresponding to the palm print to be identified is an unlocking instruction.
[0118] Furthermore, the determination module 20 is further configured to extract a region of interest ROI corresponding to each of the palm images and each of the background images; and extract an image signal in each of the ROIs using a preset signal extraction algorithm.
[0119] Furthermore, the determination module 20 is also used to determine a first extraction position for extracting the ROI in the palm image of each frame, wherein the first extraction position in the palm image of each frame is the same; determine a second extraction position for extracting the ROI in the background image of each frame, wherein the second extraction position in the background image of each frame is the same; and extract the ROI at the first extraction position of the palm image of each frame and the second extraction position in the background image of each frame.
[0120] Furthermore, the living palmprint recognition device also includes:
[0121] a prohibition module, for prohibiting responding to the operation instruction corresponding to the palm print to be identified if it is determined that the classification mark is a non-living mark;
[0122] A generation module, used for generating alarm information;
[0123] The sending module is used to send the warning information to the mobile terminal so that the mobile terminal can output the received warning information, and prompt the mobile terminal user that the palm print to be identified is a non-living palm print according to the warning information.
[0124] The specific implementation of the living body palm print recognition device of the present invention is basically the same as the above-mentioned living body palm print recognition method embodiments, and will not be repeated here.
[0125] In addition, the present invention also provides a living palm print recognition device. Figure 7 As shown, Figure 7 It is a structural diagram of the hardware operating environment involved in the embodiment of the present invention.
[0126] It should be noted that Figure 7 The structure diagram of the hardware operating environment of the living body palm print recognition device is shown in FIG. The living body palm print recognition device of the embodiment of the present invention can be a terminal device such as a PC, a portable computer, etc.
[0127] like Figure 7 As shown, the live palm print recognition device may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0128] Those skilled in the art will understand that Figure 7 The structure of the live palm print recognition device shown in the figure does not constitute a limitation on the live palm print recognition device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0129] like Figure 7As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a live palm print recognition program. The operating system is a program that manages and controls the hardware and software resources of the live palm print recognition device, and supports the operation of the live palm print recognition program and other software or programs.
[0130] exist Figure 7 In the living palm print recognition device shown, the user interface 1003 is mainly used to connect to the terminal device and communicate data with the terminal device, such as sending alarm information to the mobile terminal; the network interface 1004 is mainly used for the background server and communicates data with the background server; the processor 1001 can be used to call the living palm print recognition program stored in the memory 1005 and execute the steps of the living palm print recognition method as described above.
[0131] The specific implementation of the living body palm print recognition device of the present invention is basically the same as the above-mentioned living body palm print recognition method embodiments, and will not be repeated here.
[0132] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a live palm print recognition program is stored. When the live palm print recognition program is executed by a processor, the steps of the live palm print recognition method described above are implemented.
[0133] The specific implementation of the computer-readable storage medium of the present invention is basically the same as the above-mentioned embodiments of the method for recognizing living palm prints, and will not be described in detail here.
[0134] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0135] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0137] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for identifying a living palm print, characterized in that: The method for identifying the living palm print comprises the following steps: Acquire at least two frames of palmprint images corresponding to the palmprint to be identified, and acquire the palm image and background image corresponding to each frame of the palmprint image; Extracting a region of interest ROI corresponding to each of the palm images and each of the background images; Extracting image signals in each of the ROIs using a preset signal extraction algorithm; Calculating the similarity between any two image signals, and inputting the similarity into a preset classification model to obtain a classification identifier output by the classification model; If the classification mark is a live mark, determining that the palm print to be identified is a live palm print; Determine a target frame image in each frame of the palm image; If based on a preset palmprint recognition algorithm, a target palmprint paired with the palmprint to be recognized is recognized according to the target frame image, it is determined that the palmprint to be recognized is recognized successfully, wherein the preset palmprint recognition algorithm is a recognition algorithm based on the point and line features of the palmprint, or a recognition algorithm based on the texture features of the palmprint, or a recognition algorithm based on the hierarchical feature fusion of the palmprint.
2. The method for identifying a living palm print as claimed in claim 1, characterized in that: The step of determining the target frame image in each frame of the palm image comprises: Obtain image data corresponding to the palm image of each frame, and obtain weights corresponding to each image data; Calculate the quality value corresponding to the palm image of each frame according to the image data and the weight; A target frame image is determined in each frame of the palm image according to the quality value.
3. The method for identifying a living palm print as claimed in claim 1, characterized in that: After the step of determining that the palm print to be identified is successfully identified if a target palm print paired with the palm print to be identified is identified according to the target frame image based on a preset palm print recognition algorithm, the method further includes: If it is determined that the operation instruction corresponding to the palm print to be identified is an unlocking instruction, the door lock corresponding to the palm print to be identified is controlled to change from a locked state to an unlocked state according to the unlocking instruction.
4. The method for identifying a living palm print as claimed in claim 1, characterized in that: The step of extracting the region of interest ROI corresponding to each of the palm images and each of the background images comprises: Determine a first extraction position for extracting the ROI in the palm image of each frame, wherein the first extraction position in the palm image of each frame is the same; Determine a second extraction position for extracting the ROI in the background image of each frame, wherein the second extraction position in the background image of each frame is the same; The ROI is extracted at a first extraction position in the palm image of each frame and a second extraction position in the background image of each frame.
5. The method for identifying living palm prints according to claim 1, characterized in that: After the step of calculating the similarity between any two image signals and inputting the similarity into a preset classification model to obtain a classification identifier output by the classification model, the method further includes: If it is determined that the classification mark is a non-living mark, it is prohibited to respond to the operation instruction corresponding to the palm print to be identified, and an alarm message is generated; The warning information is sent to a mobile terminal so that the mobile terminal outputs the received warning information, and prompts the mobile terminal user that the palm print to be identified is a non-living palm print according to the warning information.
6. A living palm print recognition device, characterized in that: The living palm print recognition device comprises: An acquisition module, used to acquire at least two frames of palm print images corresponding to the palm print to be identified, and to acquire a palm image and a background image corresponding to each frame of the palm print image; A determination module, used to extract a region of interest ROI corresponding to each of the palm images and each of the background images; extracting an image signal in each of the ROIs using a preset signal extraction algorithm; A calculation module, used for calculating the similarity between any two image signals; An input module, used to input the similarity into a preset classification model to obtain a classification identifier output by the classification model; The determination module is further configured to determine that the palm print to be identified is a live palm print if the classification mark is a live mark; Wherein, the living palmprint recognition device also includes: Determine a target frame image in each frame of the palm image; if a target palm print paired with the palm print to be identified is identified according to the target frame image based on a preset palm print recognition algorithm, then determine that the palm print to be identified is identified successfully, wherein the preset palm print recognition algorithm is a recognition algorithm based on point and line features of the palm print, or a recognition algorithm based on texture features of the palm print, or a recognition algorithm based on hierarchical feature fusion of the palm print.
7. A living palm print recognition device, characterized in that: The living palm print recognition device comprises a memory, a processor and a living palm print recognition program stored in the memory and executable on the processor. When the living palm print recognition program is executed by the processor, the steps of the living palm print recognition method as claimed in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a live palm print recognition program, and when the live palm print recognition program is executed by the processor, the steps of the live palm print recognition method according to any one of claims 1 to 5 are implemented.
