Method and device for aligning three-dimensional palm image
By identifying key points in the palm image, constructing and matching graphic models for stretching processing, the problem of straightening the tilted palm image is solved, the accuracy of palmprint recognition is improved, and it provides a foundation for the promotion of palmprint recognition technology.
Patent Information
- Application Number
- CN201910390793.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-10
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-05-10
AI Technical Summary
It is difficult for the existing technology to effectively correct the tilted palm image, causing the palmprint recognition operation to fail to proceed normally.
By identifying at least four key points in the palm image, an initial key point graphical model is constructed, matched with a pre-calibrated standard key point graphical model, and stretched to straighten the palm image.
It realizes the straightening of tilted palm images, improves the accuracy and reliability of palmprint recognition, can be widely used in mobile phone general-purpose terminals, and promotes the market promotion of palmprint recognition technology.
Smart Images

Figure CN110276249B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of biometric identification, and in particular to a method and device for correcting a three-dimensional palm image. Background Art
[0002] In recent years, industry and academia have been committed to improving the verification effect of identity information to meet the stringent requirements for identifying people in many different fields such as access control, aviation security, and electronic banking. Biometric-based recognition methods are attracting more and more attention, and palmprint recognition is one of the most representative biometric recognition methods. Palmprint recognition methods have many advantages such as high discrimination, strong robustness, and user-friendliness. Palmprints refer to the skin texture on the surface of the palm, which mainly includes two types of features: friction ridges and flexion lines. These two features are constant, permanent, and unique to human individuals.
[0003] Generally speaking, the placement of the three-dimensional palm in the palm image is likely to be tilted relative to the shooting angle, but this causes the palm print presented in the tilted palm image to be greatly deformed, making the subsequent palm print recognition operation unable to proceed normally.
[0004] Therefore, how to level and level the palm of the inclined surface relative to the horizontal plane is a technical problem that needs to be solved urgently in the industry. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a method and device for straightening a 3D palm image, so as to straighten and level a tilted palm in an image, thereby ensuring that subsequent palmprint recognition operations can be performed normally.
[0006] In order to achieve the above-mentioned purpose, an embodiment of the present invention provides a three-dimensional palm image correction method on the one hand, including: obtaining a palm image to be processed; identifying at least four palm key points in the palm image; constructing an initial key point graphic model according to each of the palm key points, wherein the key point graphic model constructed by the palm key points can cover the palm area; based on the initial key point graphic model and a pre-calibrated standard key point graphic model, stretching the palm image to correct the palm image, wherein the standard key point graphic model is a key point graphic model corresponding to a situation where there is no palm tilt.
[0007] On the other hand, an embodiment of the present invention provides a three-dimensional palm image correction device, including: an acquisition unit, used to acquire a palm image to be processed; a key point recognition unit, used to recognize at least four palm key points in the palm image; a graphic model construction unit, used to construct an initial key point graphic model according to each of the palm key points, wherein the key point graphic model constructed by the palm key points can cover the palm area; a stretching and correction unit, used to match the initial key point graphic model with a pre-calibrated standard key point graphic model, and stretch the palm image to correct the palm image, wherein the standard key point graphic model is a key point graphic model corresponding to a situation where there is no palm tilt.
[0008] Another aspect of an embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned method of the present application when executing the computer program.
[0009] Another aspect of an embodiment of the present invention provides a computer storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above-mentioned method of the present application when executed by a processor.
[0010] Through the above technical solution, based on the feature that the palm is square-like, at least four palm key points of the palm area are covered by the palm image, and the corresponding initial key point graphic model is constructed, and the initial key point graphic model is matched with the standard key point graphic model corresponding to the non-tilted situation, so as to determine whether the palm in the palm image is tilted, and stretch the tilted image to straighten the palm image. Thus, after key point recognition, model construction and model matching, and stretching of the tilted palm, the tilted palm in the palm image is straightened, which can be more widely used in universal terminals such as mobile phones, providing a basis for the promotion of palmprint recognition technology in the daily application market.
[0011] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0013] Figure 1 is a flow chart of a method for correcting a three-dimensional palm image according to an embodiment of the present invention;
[0014] Figure 2A Shown is a schematic diagram of an example human hand image;
[0015] Figure 2B The present invention is applied to the method for correcting the three-dimensional palm image according to the embodiment of the present invention. Figure 2A A schematic diagram of an initial key point graphic model constructed from a palm image shown;
[0016] Figure 2C What is shown is a schematic diagram of a standard key point graphic model used in a three-dimensional palm image correction method according to an embodiment of the present invention;
[0017] Figure 3 Flowchart for constructing an initial key point graphic model in the three-dimensional palm image correction method of an embodiment of the present invention:
[0018] Figure 4 is a flow chart for stretching and straightening a palm image in a three-dimensional palm image straightening method according to an embodiment of the present invention;
[0019] Figure 5 is a flow chart of a training process for a convolutional neural network in a method for straightening a three-dimensional palm image according to an embodiment of the present invention;
[0020] Figure 6 is a principle flow chart of a method for correcting a three-dimensional palm image according to an embodiment of the present invention;
[0021] Figure 7 is a structural block diagram of a three-dimensional palm image correction device according to an embodiment of the present invention;
[0022] Figure 8 is a structural block diagram of a three-dimensional palm image correction device according to another embodiment of the present invention;
[0023] Fig. 9 It is a structural block diagram of a physical device equipped with a three-dimensional palm image correction device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0025] like Figure 1 As shown, a method for correcting a 3D palm image according to an embodiment of the present invention includes:
[0026] S11, obtaining a palm image to be processed.
[0027] Regarding the implementing subject of the method of the embodiment of the present invention, on the one hand, it can be a dedicated integrated component, a dedicated server or a dedicated terminal, etc., which is dedicated for palmprint recognition or three-dimensional palm image correction; on the other hand, it can also be a general-purpose server or terminal, wherein the general-purpose server or terminal (such as a smart phone, a tablet computer, etc.) can be installed with a module for palmprint recognition or three-dimensional palm image correction or configured with a program code for three-dimensional palm image correction, and all of the above belong to the protection scope of the present invention.
[0028] Regarding the method of acquiring the palm image, it can be to call the terminal's camera to collect the palm image, or the terminal or server can receive the palm image uploaded from the bottom layer. Therefore, the application of the embodiment of the present invention is not limited to fixed palm print collection devices, but can be extended to applications on mobile terminals.
[0029] S12. Identify at least four palm key points in the palm image.
[0030] Exemplarily, the palm key points include key point types selected from any one of the following: finger tips, finger knuckles, finger crotch points, finger bases, wrist line midpoints, and wrist line endpoints.
[0031] It should be noted that because the shape of the palm area is nearly a quadrilateral, and choosing a triangle to cover the palm area will result in a large amount of blank area and cause errors, it is recommended in the embodiment of the present invention to use greater than or equal to four key points to ensure that the key point graphic model subsequently constructed by the palm key points (including the initial key point graphic type constructed based on detection and the preset standard key point graphic model) can cover the palm area, such as constructing a quadrilateral, pentagon and hexagon.
[0032] Among them, palm key points can also be used to represent palm feature points, for example, one or more of the palm line features (finger knuckles and finger roots), endpoint features (such as finger tips), and palm features (such as finger crotch points, wrist line midpoints, and wrist line endpoints) can be used as palm key points for identification. In addition, the palm key point recognition method can be implemented by the key point recognition technology in the current related technology, and it can also be implemented by the method introduced hereinafter, and both belong to the protection scope of the present invention.
[0033] S13. Construct an initial key point graphic model according to each palm key point, wherein the key point graphic model constructed by the palm key points can cover the palm area.
[0034] The initial key point graphic model may be customized according to requirements, and may be determined by different key point types, such as a quadrilateral, a pentagon, and the like.
[0035] S14. Based on matching the initial key point graphic model with a pre-calibrated standard key point graphic model, the palm image is stretched to straighten the palm image, wherein the standard key point graphic model is a key point graphic model corresponding to a situation where there is no palm tilt.
[0036] Exemplarily, the palm image may be straightened by stretching the initial key point graphic model toward the standard key point graphic model so that the stretched initial key point graphic model is identical to or matches the standard key point graphic model.
[0037] like Figure 2A Shown is an example of a palm image. Figure 2B The corresponding Figure 2A An example of an initial keypoint graphics model for the palm image shown, Figure 2C The example of the standard key point graphic model is shown in FIG. The key points selected include the tip of the middle finger, the base of the index finger, the base of the little finger and the midpoint of the wrist line. These four palm key points form a quadrilateral for covering the palm area. Furthermore, because Figure 2B The palm is tilted, which can be based on Figure 2C The standard key point graphics model in Figure 2B The initial key point graphics model in is stretched to straighten the palm image with the tilted palm.
[0038] It should be noted that, although when the key point graphic model is a quadrilateral model, the key point types required by the key point graphic model include the tip of the middle finger, the base of the index finger, the base of the little finger, and the midpoint of the wrist line, it is understandable that it may also include other key point types, or when the key point graphic model is other graphics (such as a pentagon or a hexagon), it may also require more different key point types, and all of them belong to the protection scope of the present invention.
[0039] In some embodiments, it can be by Figure 3 The process shown is used to build the initial key point graphics model:
[0040] S31. Determine the key point type corresponding to each identified palm key point.
[0041] Among them, the key point types (or key point names) corresponding to the palm key points are diverse, including fingertips, finger knuckles, finger crotch points, finger bases, wrist line midpoints and wrist line endpoints of the five fingers.
[0042] S32: Select a palm key point whose determined key point type matches the key point type required by the key point graphic model as a target palm key point.
[0043] For example, all palm key points in the palm image may be identified through key point recognition technology, and the corresponding key point types may be determined; then, the identified palm key points that match the key point types required by the model are selected as target palm key points.
[0044] S33. Based on the target palm key points, a corresponding initial key point graphic model is constructed.
[0045] The graphic model can be established by connecting the target palm key points through line segments. Then, the initial key point graphic model is the original graphic model indicated by the palm image (such as Figure 2B The quadrilateral shown in ), which needs to be based on the standard model (such as Figure 2C Stretch and straighten the quadrilateral shown.
[0046] In some embodiments, it can be by Figure 4 The process shown is used to stretch and straighten the palm image, specifically including:
[0047] S41, determining the key point coordinates corresponding to each palm key point in the initial key point graphic model in a constant coordinate system, wherein the position of the constant coordinate system remains constant in different palm images.
[0048] It should be noted that the position of the constant coordinate system constructed in the palm image in each different palm image (including the origin of the coordinate system and the coordinate axis) can be pre-calibrated, which can be the same and does not change with the change of the image. In addition, regarding the process of determining the coordinates of each palm key point in the world coordinate system constructed in the image, it can be determined according to the horizontal distance and vertical distance of each palm key point from the origin of the coordinate system. Specifically, a point at a specific physical position of the palm image can be selected as the coordinate origin, and a coordinate system can be constructed based on the coordinate origin, for example, the point at the lower left corner of each palm image is used as the coordinate origin, and a constant coordinate system is constructed with the coordinate origin.
[0049] S42. Calculate the initial side length ratio corresponding to the side length of each side in the initial key point graphic model according to the coordinates of each key point.
[0050] S43. When the initial side length ratio does not match the standard side length ratio corresponding to the side lengths of each side in the standard key point graphic model, a stretching calculation is performed on the coordinates of each key point so that the stretching side length ratio corresponding to each first key point after the stretching calculation matches the standard side length ratio.
[0051] Accordingly, when the initial side length ratio matches the standard side length ratio, it can be determined that the palm in the current palm image is not tilted, and there is no need to perform a straightening operation.
[0052] As an example, the ratio of the four sides of a standard quadrilateral model is 1:1:1:1, and the angle between the central axis and the horizontal plane is 90 degrees; the coordinates of the four points in the current quadrilateral model are A(a x1 ,a y1 )、B(b x1 ,b y1 )、C(c x1 、c y1 ) and D(d x1 ,d y1 ) (not shown). First, the direction of vector AC needs to be found and whether the direction is perpendicular to the horizontal plane. If not, the coordinates need to be converted by the rotation axis to obtain the coordinates of points A, B, C and D when the AC direction is perpendicular to the horizontal plane (a x2 ,a y2 )、B(b x2 ,b y2 )、C(c x2 、c y2 ) and D(d x2 ,d y2 ), and then calculate the lengths AB, BC, CD, and AD of the current quadrilateral model. At this time, the length ratio of each side can be obtained. When the length ratio is not 1:1:1:1, it is necessary to convert the length ratio (wherein, the length ratio conversion process can be: the length ratio corresponding to each side of the quadrilateral currently obtained is AB:BC:CD:AD=1:2:2:3, at this time, the coordinates corresponding to each key point of the hand when AB:BC:CD:AD=1:1:1:1 can be obtained by conversion. The conversion process can refer to the image stretching algorithm, such as the direct linear stretching algorithm or the cropping linear stretching algorithm. In the process of stretching algorithm calculation, it should be ensured that the length lost or increased by each side is the shortest when the length of each side is 1:1:1:1; the invention point involved is to use the length ratio feature of the calibrated quadrilateral to correct the quadrilateral corresponding to the current human hand image to achieve the correction transformation of the human hand image) to obtain the coordinates of points A, B, C, and D corresponding to the length ratio of 1:1:1:1 (a x3 ,a y3 )、B(b x3 ,b y3 )、C(c x3 、c y3 ) and D(d x3 ,d y3 After completing the above calculations, directly transform according to the coordinate points, A: (a x1 ,a y1)-(a x3 ,a y3 ), B: (b x1 ,b y1 )-(b x3 ,b y3 ), C:(c x1 、c y1 )-(c x3 、c y3 ), D:(d x1 ,d y1 )-(d x3 ,d y3 ). Then, based on the coordinate conversion of each palm key point, a corrected key point graphic model can be obtained, and the palm in the palm image is corrected accordingly.
[0053] It should be noted that in the embodiment of the present invention, the matching operation between the initial key point graphic model and the standard key point graphic model is performed according to the side length ratio of the graphic as a reference feature, which is simple to operate and can achieve high accuracy. It is understandable that other features (such as angles, etc.) of the key point graphic model (or quadrilateral) can also be used as reference features to supplement or replace the side length ratio feature, and all of them belong to the protection scope of the present invention.
[0054] Correspondingly, it is also possible to detect whether the first key point graphic model composed of various first key points matches the placement angle indicated by the standard key point graphic model; on the one hand, when the placement angles match, there is no need to change the angle of the key point graphic model; on the other hand, when the placement angles do not match, the vector direction of the first key point graphic model is changed so that the second key point graphic model after the vector direction change matches the placement angle indicated by the standard key point graphic model. For example, Figure 2B The angle indicated by the palm of the hand is the same as Figure 2C There is a tilt or mismatch between the placement angles indicated by the indicated standard key point graphic model, and a vector direction change is required. For example, the vector directions of the corresponding side lengths (for example, both corresponding to side length AB) in the first key point graphic model and the standard key point graphic model can be compared. If the vector directions match, it proves that the placement angles are matched; if the vector directions do not match, it is necessary to change the vector directions of the respective side lengths of the first key point graphic model so that the vector directions of the respective corresponding side lengths between the two models can be the same.
[0055] In some embodiments, the palm key points are identified through a convolutional neural network. Therefore, the convolutional neural network technology can be used to identify the palm key points, thereby improving the reliability and timeliness of the key point identification results.
[0056] like Figure 5 As shown, the training process for the convolutional neural network in the 3D palm image correction method according to one embodiment of the present invention includes:
[0057] S51, acquiring a plurality of training palm images to form a training palm image set, wherein each training palm image is pre-labeled with a corresponding palm key point.
[0058] Regarding training palm images, it can be by collecting images related to human hands generated by taking pictures with a camera (such as a mobile phone camera), which can be manually taken, or downloaded from a keyword search on the Internet, etc., without limitation here; then, the human hand area is identified through object recognition technology (such as a semantic segmentation model), and the human hand area in the image is cropped to obtain a palm image. Furthermore, through manual annotation, the key points in each palm image are annotated on the palm image, such as the knuckles or bases of the fingers in the palm image. The image with the palm key points annotated is input into the convolutional neural network for training.
[0059] S52: Input the training palm image set into the convolutional neural network to train the convolutional neural network, so that the trained convolutional neural network can recognize palm key points from the palm images.
[0060] Specifically, during the training process, the training palm image set can be divided into a training set and a validation set, and then based on the training set, the convolutional neural network is iteratively trained, so that when the detection rate of the iteratively trained network on the validation set exceeds a preset detection threshold, and the false alarm rate is less than a preset false alarm threshold, it is determined that the training operation for the convolutional neural network is completed. In this way, the training process for the convolutional neural network is accelerated and stabilized, ensuring that the trained convolutional neural network has better performance, and can quickly and accurately detect the palm key points in the palm image.
[0061] In some embodiments, the convolutional neural network may be an openpose network, and thus the openpose network model may be used to implement a heat map of palm key points and wrist lines, wherein the finger joints may correspond to the four joint points of each finger, including the finger tip, the upper knuckle, the middle knuckle, and the base of the finger. However, in the present technical solution, it may not be necessary to apply all the joint points, and the palm key points may be automatically annotated from the identified palm joint points according to the preset joint point requirement setting, wherein the joint point requirement setting includes a specific combination of one or more of the finger tip, upper knuckle, middle knuckle, base, and wrist line midpoint for each finger, such as Figure 2A and 2B As described in, four key points may be used, namely the tip of the middle finger + the base of the index finger + the base of the little finger + the midpoint of the wrist line.
[0062] The openpose network model used in this embodiment can be based on the more mature openpose network model currently on the market, but it needs to be improved. First, in the training data set, openpose should use palm images that are pre-annotated with palm key points. These palm key points can be the 20 joint points in general gesture recognition, but they can also be the 5 points shown in the above figure, with less data to improve training efficiency. In this embodiment, the openpose network model can be a fully convolutional structure, and batch normalization can also be used to speed up and stabilize the training process; in addition, the detector (i.e., the openpose network model) can be trained by creating a data set, where the data set includes a training set and a validation set.
[0063] Specifically, the data set may contain projects with 10 different indoor environments, where the palm images in the validation set are manually annotated with palm key points, while the palm images in the training set correspond to the palm key points of the palm images in the same indoor environment project that are automatically annotated by OpenPose; before training the network, the data set is divided into a training set of about 10,000 frames and a validation set of about 1,000 frames; the network is trained for 20,000 iterations; when the detection rate of the retrained network on the validation set exceeds 95.0% and the false alarm rate is less than 2.1%, it can be determined that the openpose network model has been trained and converged. Finally, the trained openpose network model can detect the palm key points in the palm image within the agreed time.
[0064] In an embodiment of the present invention, multiple palm key points on the palm are identified and constitute a current palm key point graphic model, and the current palm key point graphic model is corrected according to the standard palm graphic model. The correction or stretching process is based on multiple points or the entire model, so that the model transformation process can be more accurate and reliable compared to single-point transformation.
[0065] In an embodiment of the present invention, by selecting more than a plurality of key points (greater than or equal to four) on the palm, using the plurality of key points to find the palm area, and straightening the palm area indicated by the key points, the problem of low palm print recognition rate caused by deformation of the palm print of a tilted palm is solved.
[0066] like Figure 6 As shown, the principle flow of the 3D palm image correction method according to an embodiment of the present invention includes:
[0067] S61, obtaining a palm image to be processed.
[0068] The method of the embodiment of the present invention can be applied to recognize the palm position of a non-horizontally placed palm, so the palm image in the technical solution can not only be used in a fixed palmprint recognition device to collect the palm image of a horizontally placed palm. In addition, it can also be used to collect the palm position of a palm that is placed irregularly (for example, at a certain angle to the horizontal plane).
[0069] In one application scenario, the user may open the palm print recognition APP and activate the camera module through further operations to capture the palm image.
[0070] S62: Identify multiple palm key points in the palm image, and establish a current palm print image model based on the key points.
[0071] Regarding the number of key points, it needs to be greater than four. The purpose of key point selection is to enable the graphics composed of the selected key points to basically cover the palm or indicate the placement feature information of the palm. In general, the shape of the palm is the most compatible with the key point combination features of the quadrilateral through matching, at least the easiest, such as the middle finger tip + index finger root + little finger root + wrist line midpoint selected in the figure below, so that the quadrilateral composed of the above four points can cover the palm. Of course, other key point combination methods can also be used, such as all key points are identified and combined. Regarding the type of palm key points, it can be the knuckles of the indicating fingers (including upper, middle and lower knuckles), etc., and specifically it can also be the midpoint of the root of each type of finger (such as index finger, middle finger, etc.). In the present technical solution, a current key point graphic model is constructed by marking multiple key points that can cover the entire palm in the palm image to be identified; the current key point graphic model is compared with a pre-calibrated standard key point graphic model to determine the stretching ratio between the current key point graphic model and the standard key point graphic model, so that the current key point graphic model can finally be stretched according to the stretching ratio, thereby realizing the straightening of the tilted three-dimensional palm image.
[0072] The number of palm key points and the type of graphics formed between the palm key points should not be limited here. For example, it can be the quadrilateral selected in the example in the above figure, and the four points are "middle finger tip + index finger root + little finger root + wrist line midpoint". In this way, the spatial form of the quadrilateral can directly reflect the spatial form of the palm. By stretching the quadrilateral relative to the pre-calibrated straightened quadrilateral with the quadrilateral as the target, the stretching and straightening of the palm image can be driven; therefore, according to the above principle, the basic condition for the selection of key points is that the graphics formed should be able to cover the palm. In some alternative embodiments, it can also be a graphic formed by selecting more key point combinations, such as a hexagon composed of "five finger tips + wrist line midpoints", which can also meet the requirements. However, the prerequisite is that these key points must be points that can be identified, generally points with texture features (such as finger joints), and the specific identification means will be expanded below.
[0073] It should be noted that the area formed by the combination of key points should be able to cover the palm print area. Four key points are selected for the quadrilateral, one of which is the top point of the middle finger, one is the midpoint of the base of the little finger, one is the midpoint of the base of the index finger, and the last point is the midpoint of the wrist line. The quadrilateral outlined by connecting these four points in sequence (this quadrilateral is the corresponding current key point graphic model) can cover the palm print area of the palm.
[0074] Regarding the specific key point recognition process, it can be realized by a convolutional neural network: a palm image with palm key points annotated is used as a training palm image, and the training palm image is input into a convolutional neural network for training, so that when the trained convolutional neural network is used for image recognition, the key points in the palm can be found. It can be by collecting images related to human hands generated by taking pictures with a camera (such as a mobile phone camera), which can be taken manually or downloaded from a keyword search on the Internet; then, the human hand area is identified by object recognition technology (such as a semantic segmentation model), and the human hand area in the image is cropped to obtain a human hand image. Furthermore, through manual annotation, the key points in each human hand image are annotated on the human hand image, such as the knuckles or the midpoints of the finger roots in the human hand image. The image annotated with the key points of the human body is input into a convolutional neural network for training, so that the convolutional neural network is trained into a human hand key point detection network to realize the detection of the key points of the human hand.
[0075] Among them, the function realized by the convolutional neural network is to classify and distinguish between human key points and non-human key points in the image. Specifically, the training process for the convolutional neural network can be: first, pre-process the training hand image samples; wherein, the training hand image samples include hand images corresponding to hands at various irregular angles, and manually label the key points existing in each hand image sample (which can be the human key points we need, such as the middle finger tip / index finger root in the quadrilateral image, etc.). Then, the hand image with the human key point label is input into the tilt detection neural network. Therefore, through this training process, it is achieved that the human key points can be identified from the hand image by applying the trained convolutional neural network.
[0076] S63: Correct the current palmprint image model according to the structural feature information of the preset standard palmprint image model.
[0077] Specifically, the standard key point graphic model can be pre-set as a quadrilateral, and the structural feature information indicated can be the proportional relationship between the lengths of the respective sides of the quadrilateral, and the angle of the central axis relative to the horizontal plane. Specifically, the current key point graphic model can be corrected or stretched until the respective sides of the current key point graphic model also have the above-mentioned proportional relationship, and the angle of the central axis relative to the horizontal plane.
[0078] In some embodiments, the above-mentioned model correction process can also be implemented based on coordinate calculation transformation. First of all, there is still a same constant coordinate system for each hand image, that is, the position of the constant coordinate system in each image is pre-calibrated, is the same and does not change with the change of the image. Then, the coordinates of each hand key point in the world coordinate system constructed in the image are determined, for example, the coordinates of each hand key point are determined according to the horizontal distance and vertical distance of each hand key point from the origin of the coordinate system. Specifically, a point at a specific position of the hand image can be selected as the coordinate origin, and a coordinate system can be constructed based on the coordinate origin, for example, the point at the lower left corner of each hand image is used as the coordinate origin, and a constant coordinate system is constructed with the coordinate origin.
[0079] In an embodiment of the present invention, multiple palm key points on the palm are identified and constitute a current palm key point graphic model, and the current palm key point graphic model is corrected according to the standard palm graphic model. The correction or stretching process is based on multiple points or the entire model, so that the model transformation process can be more accurate and reliable compared to single-point transformation.
[0080] like Figure 7 As shown, a three-dimensional palm image correction device according to an embodiment of the present invention comprises:
[0081] An acquisition unit 701 is used to acquire a palm image to be processed;
[0082] A key point identification unit 702 is used to identify at least four palm key points in the palm image, wherein the palm key points include key point types selected from any one of the following: finger tips, finger knuckles, finger crotch points, finger bases, wrist line midpoints, and wrist line endpoints;
[0083] A graphic model construction unit 703 is used to construct a corresponding initial key point graphic model according to each of the palm key points, wherein the key point graphic model constructed by the palm key points can cover the palm area;
[0084] The stretching and straightening unit 704 is used to stretch the palm image based on matching the initial key point graphic model with a pre-calibrated standard key point graphic model to straighten the palm image, wherein the standard key point graphic model is a key point graphic model corresponding to a situation where there is no palm tilt.
[0085] Preferably, the graphic model construction unit 703 is also used to determine the key point type corresponding to each identified palm key point, and select the palm key point whose determined key point type matches the key point type required by the key point graphic model as the target palm key point, and, based on the target palm key point, construct the corresponding initial key point graphic model.
[0086] Preferably, when the key point graphic model is a quadrilateral model, the key point types required by the key point graphic model include the tip of the middle finger, the base of the index finger, the base of the little finger and the midpoint of the wrist line.
[0087] Preferably, the stretching and straightening unit 704 is also used to determine the key point coordinates corresponding to each palm key point in the initial key point graphic model in a constant coordinate system, wherein the position of the constant coordinate system remains constant in different palm images, and calculate the initial side length ratio corresponding to each side length in the initial key point graphic model based on each key point coordinate, and when the initial side length ratio does not match the standard side length ratio corresponding to each side length in the standard key point graphic model, perform stretching calculation on each key point coordinate so that the stretched side length ratio corresponding to each first key point after the stretching calculation matches the standard side length ratio.
[0088] In specific application scenarios, such as Figure 8As shown, the palm key points are identified by a convolutional neural network, and the device also includes a training unit 705, wherein the training unit 705 is used to obtain multiple training palm images to form a training palm image set, wherein each of the training palm images is pre-labeled with corresponding palm key points; and, the training palm image set is input into the convolutional neural network to train the convolutional neural network, so that the trained convolutional neural network can identify palm key points from the palm images.
[0089] Preferably, the training unit 705 is also used to divide the training palm image set into a training set and a validation set, iteratively train the convolutional neural network based on the training set, and when the detection rate of the iteratively trained network on the validation set exceeds a preset detection threshold and the false alarm rate is less than a preset false alarm threshold, it is determined that the training operation for the convolutional neural network is completed.
[0090] In some embodiments, the convolutional neural network is an openpose network.
[0091] It should be noted that for other corresponding descriptions of the functional units involved in the three-dimensional palm image correction device provided in the embodiment of the present invention, reference can be made to Figure 1-6 The corresponding description in will not be repeated here.
[0092] Based on the above Figure 1-6 The method shown in the figure, accordingly, the embodiment of the present invention also provides a storage device on which a computer program is stored, and when the program is executed by a processor, the above-mentioned Figure 1-6 The method for correcting the three-dimensional palm image is shown.
[0093] Based on the above Figure 1-6 The method shown and Figure 7 , 8 In order to achieve the above-mentioned purpose, the embodiment of the virtual device shown in FIG. Fig. 9 As shown, the embodiment of the present invention further provides a physical device 90 of a 3D palm image correction device, the physical device 90 comprising a storage device 901 and a processor 902; the storage device 901 is used to store a computer program; the processor 902 is used to execute the computer program to implement the above-mentioned Figure 1-6 The method for correcting the three-dimensional palm image is shown.
[0094] By applying the technical solution of the present invention, based on the feature that the palm is similar to a square, at least four palm key points of the palm area are covered by the palm image, and a corresponding initial key point graphic model is constructed, and the initial key point graphic model is matched with the standard key point graphic model corresponding to the non-tilted situation, so as to determine whether the palm in the palm image is tilted, and stretch the tilted image to straighten the palm image. Thus, after key point recognition, model construction and model matching, and stretching of the tilted palm, the tilted palm in the palm image is straightened, and it can be more widely used in general-purpose mobile phone terminals, such as mobile phone terminals with specific application APPs installed, providing a basis for the promotion of palmprint recognition technology in the daily application market.
[0095] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0096] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0097] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0098] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0099] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.
Claims
1. A method for correcting a three-dimensional palm image, characterized in that: include: Obtaining a palm image to be processed; Identifying at least four palm key points in the palm image; According to each of the palm key points, construct an initial key point graphic model, wherein the key point graphic model constructed by the palm key points can cover the palm area; Based on matching the initial key point graphic model with a pre-calibrated standard key point graphic model, stretching the palm image to straighten the palm image, wherein the standard key point graphic model is a key point graphic model corresponding to a situation where there is no palm tilt, including: Determine the key point coordinates corresponding to each of the palm key points in the initial key point graphic model in a constant coordinate system, wherein the position of the constant coordinate system remains constant in different palm images; Calculating the initial side length ratio corresponding to the side length of each side in the initial key point graphic model according to the coordinates of each key point; When the initial side length ratio does not match the standard side length ratio corresponding to the side lengths of each side in the standard key point graphic model, stretching calculation is performed on the coordinates of each key point so that the stretching side length ratio corresponding to each first key point after the stretching calculation matches the standard side length ratio; Detecting whether the first key point graphic model composed of the first key points matches the placement angle indicated by the standard key point graphic model; If they do not match, the vector direction of the first key point graphic model is changed so that the second key point graphic model after the vector direction change matches the placement angle indicated by the standard key point graphic model.
2. The method according to claim 1, characterized in that The step of constructing a corresponding initial key point graphic model according to each of the palm key points includes: Determining a key point type corresponding to each identified palm key point; Selecting a palm key point whose determined key point type matches the key point type required by the key point graphics model as a target palm key point; and Based on the target palm key points, a corresponding initial key point graphic model is constructed.
3. The method according to claim 2, characterized in that When the key point graphic model is a quadrilateral model, the key point types required by the key point graphic model include the tip of the middle finger, the base of the index finger, the base of the little finger and the midpoint of the wrist line.
4. The method according to claim 1, characterized in that: The palm key points are identified by a convolutional neural network, wherein the method further includes a training process for the convolutional neural network, and the training process for the convolutional neural network includes: Acquire multiple training palm images to form a training palm image set, wherein each of the training palm images is pre-labeled with corresponding palm key points; The training palm image set is input into the convolutional neural network to train the convolutional neural network, so that the trained convolutional neural network can identify palm key points from the palm images.
5. The method according to claim 4, characterized in that Inputting the training palm image set into the convolutional neural network to train the convolutional neural network comprises: Dividing the training palm image set into a training set and a validation set; Iteratively training the convolutional neural network based on the training set; When the detection rate of the iteratively trained network on the verification set exceeds a preset detection threshold and the false alarm rate is less than a preset false alarm threshold, it is determined that the training operation for the convolutional neural network is completed.
6. The method according to claim 4, characterized in that The convolutional neural network includes an openpose network, wherein the recognition operation for the palm key points includes: Identify each palm joint point in the palm image based on the openpose network; and Finger key points are automatically annotated from the identified palm joint points according to a preset joint point requirement setting, wherein the joint point requirement setting includes a specific combination of one or more of the fingertips, upper knuckles, middle knuckles, bases and wrist line midpoints of each finger.
7. A three-dimensional palm image correction device, characterized in that: include: An acquisition unit, used for acquiring a palm image to be processed; A key point recognition unit, used to recognize at least four palm key points in the palm image; A graphic model construction unit, configured to construct an initial key point graphic model according to each of the palm key points, wherein the key point graphic model constructed by the palm key points can cover the palm area; a stretching and straightening unit, configured to stretch the palm image to straighten the palm image based on matching the initial key point graphic model with a pre-calibrated standard key point graphic model, wherein the standard key point graphic model is a key point graphic model corresponding to a situation where there is no palm tilt; The stretching and straightening unit is also used for: Determine the key point coordinates corresponding to each of the palm key points in the initial key point graphic model in a constant coordinate system, wherein the position of the constant coordinate system remains constant in different palm images; Calculating the initial side length ratio corresponding to the side length of each side in the initial key point graphic model according to the coordinates of each key point; When the initial side length ratio does not match the standard side length ratio corresponding to the side lengths of each side in the standard key point graphic model, stretching calculation is performed on the coordinates of each key point so that the stretching side length ratio corresponding to each first key point after the stretching calculation matches the standard side length ratio; Detecting whether the first key point graphic model composed of the first key points matches the placement angle indicated by the standard key point graphic model; If they do not match, the vector direction of the first key point graphic model is changed so that the second key point graphic model after the vector direction change matches the placement angle indicated by the standard key point graphic model.
8. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.
9. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Positioning method and device for region of interest of palm
CN107016323A
Convolutional neural network based palm key point positioning method
CN108537203A
Palm position detection device, palm print authentication device, cellphone terminal, program and palm position detection method
JP2010026658A
Method and Computer Program Product for Extracting Feature Vectors from a Palm Image
US20130011022A1
