Method for three-dimensional modeling and identification by scanning palm vein
Technical Field
The invention relates to the technical field of palm vein recognition, in particular to a method for scanning palm veins to perform three-dimensional modeling and recognition.
Background
The traditional identity authentication method comprises an identity identification object and identity identification knowledge, but the identity is easily faked or replaced by other people once the identity identification object and the identity identification knowledge are stolen or forgotten by the main help of the external object. Compared with the traditional identity authentication method, the biological identification technology has the advantages of safety, confidentiality and convenience. The biological characteristic recognition technology has the advantages of difficult forgetting, good anti-counterfeiting performance, difficult counterfeiting or theft, portable 'carrying' and availability at any time and any place, etc.
The biometric technology is a technology for performing recognition based on physiological or behavioral characteristics inherent to a human being. The applied biological characteristics include fingerprint recognition, iris recognition, palm geometry recognition, retina recognition, facial recognition, signature recognition, voice recognition and the like, and the corresponding biological characteristics include hand shape, fingerprint, iris, face shape, retina, pulse, auricle and the like, and the behavior characteristics include signature, voice, key strength and the like. The biological recognition technology can be widely applied to government, army, bank, social welfare guarantee, electronic commerce and security defense.
Vein recognition is one type of biometric identification. The implementation method is that a personal vein distribution diagram is obtained, and characteristic values are extracted from the vein distribution diagram according to a special comparison algorithm; in another mode, images of veins on the finger, palm and palm back are acquired through an infrared CCD camera, and digital images of the veins are stored in a computer system to realize characteristic value storage. And during vein comparison, vein images are adopted in real time, advanced filtering, image binarization and refinement means are used for extracting features of the digital images, and complex matching algorithms are adopted for comparison and matching with vein feature values stored in a host, so that identity authentication is carried out on individuals, and identity is confirmed.
The existing palm vein recognition technology is mostly based on an image processing technology, for example, a mode of extracting characteristic points and comparing the characteristic points is adopted, the gesture of the hand of a user is required to be in a stretching state during recognition, if other gestures are changed, the error is large, and recognition failure or recognition error is easy.
Disclosure of Invention
The invention provides a method for scanning a palm vein to carry out three-dimensional modeling and recognition, which solves the technical problems that the existing palm vein two-dimensional recognition technology has higher requirements on the gesture of a user hand and has more influencing factors of recognition accuracy.
In order to solve the technical problems, the invention provides a method for scanning palm veins to carry out three-dimensional modeling, which comprises the following steps:
s1, three-dimensional scanning is carried out on palm vein lines of a user;
s2, establishing a three-dimensional coordinate system by taking metacarpophalangeal joint points of the thumb as an origin;
s3, extracting a vascular vein stereogram of the palm in the three-dimensional coordinate system;
s4, preprocessing the vascular vein stereogram to obtain a standard palm vein stereomodel for comparison;
s5, fusing the standard palm vein three-dimensional models of all users to establish a standard palm vein three-dimensional model database.
Further, the step S2 specifically includes:
and establishing a three-dimensional rectangular coordinate system by taking a metacarpophalangeal joint point of the thumb as an origin, taking a fixed direction extending horizontally to the index finger as an X axis, taking a horizontal direction vertical to the X axis as a Y axis and taking a vertical direction vertical to the X axis as a Z axis.
Further, the step S3 specifically includes: and taking the metacarpophalangeal joint points of the five fingers of the palm as base points, and intercepting a vascular vein stereogram of the five fingers extending to the wrist.
Further, the step S4 specifically includes:
s41, screening a blood vessel with the largest side cross-sectional area in the blood vessel vein stereogram as a trunk;
s42, reserving a first-stage trunk extending outwards from a trunk as a reference, and removing other trunks extending outwards from the first-stage trunk to obtain a large vessel vein stereogram;
s43, establishing a space three-dimensional model of the large vessel vein three-dimensional map as a standard palm vein three-dimensional model.
Further, the step S1 specifically includes: and carrying out three-dimensional scanning on palm vein lines under the condition that the palm posture of the user is a natural straightening posture.
Further, the number of first-stage trunks, the number of nodes of the first-stage trunks, and the distances between the nodes of the large vessel vein stereogram in each standard palm vein stereomodel are calculated and stored in the standard palm vein stereomodel database in the step S5.
The invention also provides a method for three-dimensional identification of the scanned palm vein, which is based on the method for three-dimensional modeling of the scanned palm vein and comprises the following steps:
x1. three-dimensional scanning is carried out on palm vein lines of any posture of a user;
x2. executing the steps S2-S4 in the method for scanning the palm vein to carry out three-dimensional modeling to obtain a current palm vein three-dimensional model;
x3. comparing the current palm vein three-dimensional model with the standard palm vein three-dimensional model library, and outputting an identification result.
Further, the step X3 specifically includes the steps of:
x31 calculating the number of first-stage trunk, the number of nodes of the first-stage trunk and the distance between the nodes of the large-vessel vein stereogram in the current palm vein stereomodel;
and X32, judging whether the current user passes through the recognition according to the number of the first-stage trunk of the large blood vessel vein stereogram, the number of the nodes of the first-stage trunk and the number of the distances between the nodes in the standard palm vein stereogram library, wherein the number of the large blood vessel vein stereogram is the same as the number of the large blood vessel vein stereogram.
Further, in the step X32:
if the number of the matched large blood vessel vein stereograms is 1, outputting the basic information of the user corresponding to the matched large blood vessel vein stereograms and prompting the passing of recognition, if the number is 0, prompting the non-passing of recognition, and if the number is more than or equal to 2, entering a re-judging step.
Further, the re-judging step is as follows:
integrating the large blood vessel vein stereogram in the current palm vein stereomodel and the large blood vessel vein stereogram matched with the large blood vessel vein stereogram to obtain corresponding current large blood vessel vein volume and other large blood vessel vein volumes;
and finding out a large blood vessel vein stereogram of which the large blood vessel vein volume is only in the error range with the current large blood vessel vein volume in the other large blood vessel vein volumes, outputting the basic information of the corresponding user and prompting the passing of recognition, and prompting the failing of recognition if the basic information is not found out.
Further, after the prompt recognition fails, prompting the user to put the palm again for recognition, and if the recognition still fails, prompting the user to register.
According to the method for three-dimensional modeling of the scanned palm veins, provided by the invention, the palm vein lines of a user are subjected to three-dimensional scanning, a blood vessel vein three-dimensional image under a three-dimensional coordinate system is obtained, then the blood vessel vein three-dimensional image is preprocessed, and other veins except for a trunk and a first-stage trunk extending from the trunk in the blood vessel veins are removed, so that a standard palm vein three-dimensional model and a standard palm vein three-dimensional model database are obtained, and the palm veins of the user are acquired and three-dimensional modeling processes are completed.
After the three-dimensional modeling method is executed, after a standard palm vein three-dimensional model database of a user is established, the method performs the same scanning treatment process on the palm veins of the user to obtain a current palm vein three-dimensional model based on the characteristics that the number of blood vessels and the extending distance points among the blood vessels are unchanged after adult people, and the ratio of the trunk to the trunk is unchanged, performs first-stage comparison by searching the standard palm vein three-dimensional model database for the standard palm vein three-dimensional model with the strictly same first-stage trunk number, the node number of the first-stage trunk and the distances between the nodes, and further performs second-stage comparison by searching the standard palm vein three-dimensional model consistent with the current palm vein three-dimensional model in a way of integrating veins if comparison fails.
The method for three-dimensional modeling and identification of the scanned palm vein provided by the invention realizes three-dimensional modeling and identification of the palm vein of the user, can accurately identify the palm vein of the user no matter how the gesture of the hand of the user changes, enhances the use experience of the user and ensures the identification accuracy.
Drawings
Fig. 1 is a flowchart of steps of a method for three-dimensional modeling by scanning a palm vein according to embodiment 1 of the present invention;
FIG. 2 is a schematic view of a three-dimensional coordinate system provided in embodiment 1 of the present invention;
fig. 3 is a schematic diagram of a palm gesture corresponding to step S1 provided in embodiment 1 of the present invention;
fig. 4 is a flowchart of steps of a method for three-dimensional identification by scanning a palm vein according to an embodiment of the present invention.
Detailed Description
The following examples are given for the purpose of illustration only and are not to be construed as limiting the invention, including the drawings for reference and description only, and are not to be construed as limiting the scope of the invention as many variations thereof are possible without departing from the spirit and scope of the invention.
Example 1
The method for three-dimensional modeling by scanning the palm vein provided by the embodiment of the invention, as shown in the step flow chart of fig. 1, comprises the following steps:
s1, three-dimensional scanning is carried out on palm vein lines of a user;
s2, establishing a three-dimensional coordinate system by taking metacarpophalangeal joint points of the thumb as an origin;
s3, extracting a vascular vein stereogram of the palm in the three-dimensional coordinate system;
s4, preprocessing the vascular vein stereogram to obtain a standard palm vein stereomodel for comparison;
s5, fusing the standard palm vein three-dimensional models of all users to establish a standard palm vein three-dimensional model database.
Further, the step S2 specifically includes:
as shown in fig. 2, a three-dimensional rectangular coordinate system is established by taking a metacarpophalangeal joint point of a thumb as an origin O, taking a fixed direction extending horizontally to an index finger as an X-axis, taking a horizontal direction perpendicular to the X-axis as a Y-axis, and taking a vertical direction perpendicular to the X-axis as a Z-axis. In the three-dimensional rectangular coordinate system of this embodiment, the vertical direction is strictly taken as the Z axis, and in other embodiments, the X axis, the Y axis, and the Z axis of the three-dimensional rectangular coordinate system may be other directions, and the origin only needs to be kept unchanged. The coordinate system of the present embodiment includes, but is not limited to, a three-dimensional rectangular coordinate system, and other three-dimensional coordinate systems are also applicable.
Further, the step S3 specifically includes: and taking the metacarpophalangeal joint points of the five fingers of the palm as base points, intercepting a palm stereogram of the five fingers extending towards the wrist (stopping extending at the point with the biggest radian change between the wrist and the palm), and carrying out infrared scanning on the palm stereogram to obtain a corresponding vascular vein stereogram.
Further, the step S4 specifically includes:
s41, screening a blood vessel with the largest side cross-sectional area in the blood vessel vein stereogram as a trunk;
s42, reserving a first-stage trunk extending outwards from a trunk as a reference, and removing other trunks extending outwards from the first-stage trunk to obtain a large vessel vein stereogram;
s43, establishing a space three-dimensional model of the large vessel vein three-dimensional map as a standard palm vein three-dimensional model.
Further, the step S1 specifically includes: and (3) carrying out three-dimensional scanning on the palm vein lines under the condition that the palm posture of the user is the natural straightening posture as shown in fig. 1.
Further, the number of first-stage trunks, the number of nodes of the first-stage trunks, and the distances between the nodes of the large vessel vein stereogram in each standard palm vein stereomodel are calculated and stored in the standard palm vein stereomodel database in the step S5.
According to the method for three-dimensional modeling of the scanned palm vein, provided by the embodiment of the invention, the palm vein lines of the user are subjected to three-dimensional scanning, the blood vessel vein stereogram under a three-dimensional coordinate system is obtained, then the blood vessel vein stereogram is preprocessed, and other veins except the trunk and the first-stage trunk extending from the trunk in the blood vessel vein are removed, so that a standard palm vein three-dimensional model and a standard palm vein three-dimensional model database are obtained, and the palm vein acquisition and three-dimensional modeling process of the user is completed.
Example 2
The embodiment of the invention also provides a method for three-dimensional identification of the scanned palm vein, which is based on the method for three-dimensional modeling of the scanned palm vein, as shown in fig. 4, and comprises the following steps:
x1. three-dimensional scanning is carried out on palm vein lines of any posture of a user;
x2. executing the steps S2-S4 in the method for scanning the palm vein to carry out three-dimensional modeling to obtain a current palm vein three-dimensional model;
x3. comparing the current palm vein three-dimensional model with the standard palm vein three-dimensional model library, and outputting an identification result.
Further, the step X3 specifically includes the steps of:
x31 calculating the number of first-stage trunk, the number of nodes of the first-stage trunk and the distance between the nodes of the large-vessel vein stereogram in the current palm vein stereomodel;
and X32, judging whether the current user passes through the recognition according to the number of the first-stage trunk of the large blood vessel vein stereogram, the number of the nodes of the first-stage trunk and the number of the distances between the nodes in the standard palm vein stereogram library, wherein the number of the large blood vessel vein stereogram is the same as the number of the large blood vessel vein stereogram.
Further, in the step X32:
if the number of the matched large blood vessel vein stereograms is 1, outputting the basic information of the user corresponding to the matched large blood vessel vein stereograms and prompting the passing of recognition, if the number is 0, prompting the non-passing of recognition, and if the number is more than or equal to 2, entering a re-judging step.
Further, the re-judging step is as follows:
integrating the large blood vessel vein stereogram in the current palm vein stereomodel and the large blood vessel vein stereogram matched with the large blood vessel vein stereogram to obtain corresponding current large blood vessel vein volume and other large blood vessel vein volumes;
and finding out a large blood vessel vein stereogram of which the large blood vessel vein volume is only in the error range with the current large blood vessel vein volume in the other large blood vessel vein volumes, outputting the basic information of the corresponding user and prompting the passing of recognition, and prompting the failing of recognition if the basic information is not found out.
The above integration process is performed by integrating the volume of the large vessel vein according to the coordinate point cloud data of the large vessel vein in the large vessel vein stereogram, which can already be implemented in the mathematical field, and the integration process is not repeated in this embodiment.
Further, after the prompt recognition fails, the user is prompted to put the palm again for recognition, if the recognition still fails, the user is prompted to register (possibly a new user, a registration program needs to be started for inputting new palm vein data).
It should be noted that, in the standard palm vein three-dimensional model database, the user basic information corresponding to the user standard palm vein three-dimensional model one by one is also stored in a data link mode, so that the identity recognition can be completed, and the method is used in the fields of attendance checking or palm vein payment and the like.
After the method of three-dimensional modeling is executed, after a standard palm vein three-dimensional model database of a user is established, the method of three-dimensional model is carried out, based on the characteristics that the number of blood vessels and the extending distance points among the blood vessels are not changed after adult, and the ratio of the trunk and trunk of the blood vessels is not changed, the palm veins of the user which are currently identified are subjected to the same scanning treatment process to obtain a current palm vein three-dimensional model, the first-stage comparison is carried out by searching the standard palm vein three-dimensional model database for the standard palm vein three-dimensional model with strictly the same and unique first-stage trunk number, the node number of the first-stage trunk and the distances between the nodes, and if the comparison fails, the second-stage comparison is carried out by searching the standard palm vein three-dimensional model which is consistent with the current palm vein three-dimensional model in a vein integration mode.
The method for three-dimensional modeling and identification of the scanned palm vein provided by the embodiment of the invention realizes the three-dimensional modeling and identification of the palm vein of the user, can accurately identify the palm vein of the user no matter how the gesture of the hand of the user changes, enhances the use experience of the user and ensures the identification accuracy.
The above examples are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above examples, and any other changes, modifications, substitutions, combinations, and simplifications that do not depart from the spirit and principle of the present invention should be made in the equivalent manner, and the embodiments are included in the protection scope of the present invention.