Method and apparatus for generating sample palm print image, and device, medium and program product
Through the generation method, candidate palmprint images are generated based on the preset palmprint main lines and fine line distribution rules, and the pre-collected labels are used to train the model, which solves the problem of insufficient data and poor authenticity in the field of palmprint recognition, and improves the palmprint recognition model. accuracy and robustness.
Patent Information
- Application Number
- PCT/CN2024/080278
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-19
- Filing Date
- 2024-03-06
- Publication Date
- 2024-10-24
AI Technical Summary
In the existing technology, the field of palmprint recognition lacks public data sets and the authenticity of randomly generated palmprint samples is poor, resulting in poor identity recognition results of the model.
The generation method is used to generate candidate palmprint images based on the preset palmprint main lines and fine line distribution rules, and the pre-collected palmprint image labels and candidate image labels are used to train the generation model, and the candidate palmprint images are adjusted to generate more realistic sample palms. Pattern images are used to improve the robustness of the palmprint recognition model.
It improves the authenticity and diversity of sample palmprint images, breaks through the limitation of a small number of palmprints, and improves the accuracy and robustness of the palmprint recognition model.
Smart Images

Figure CN2024080278_24102024_PF_FP_ABST
Abstract
Description
Method, device, equipment, medium and program product for generating sample palmprint image
[0001] Related applications
[0002] This application claims priority to Chinese Patent Application No. 2023104648718, filed on April 19, 2013, entitled “Method, Device, Equipment, Medium and Program Product for Generating Palmprint Samples,” which is hereby incorporated by reference in its entirety. Technical Field
[0003] The embodiments of the present application relate to the field of machine learning, and in particular to a method, apparatus, device, medium, and program product for generating a sample palmprint image. Background Art
[0004] With the rapid development of information technology, palmprint recognition technology is becoming increasingly widely used in various identity authentication scenarios due to its reliability and convenience. Palmprint recognition uses features such as the main lines, textures, and wrinkles in the palm to identify individuals. Compared to facial recognition, it is a non-invasive identification method and is more easily accepted by users.
[0005] In related technologies, when palmprints are recognized, machine learning methods are usually used to learn the inherent rules of palmprint information on the collected palmprint images, so as to enable the model to learn more discriminative potential features, and use the trained model to recognize palmprints to realize the identity recognition process.
[0006] However, due to the strong privacy of palmprint images, the palmprint recognition field lacks a large number of public data sets for model learning, and the authenticity of randomly generated palmprint samples is poor, which is not conducive to the model learning better identity information, resulting in poor identity recognition effect of the model.
[0007] Summary of the Invention
[0008] The present application provides a method for generating a sample palmprint image, which is executed by a computer device. The method includes:
[0009] generating at least one palmprint main line according to a preset palmprint main line distribution rule;
[0010] determining a palm print distribution area where the at least one palm print main line is located, and generating at least one palm print fine line in the palm print distribution area based on a preset palm print fine line distribution rule;
[0011] generating a candidate palmprint image based on the at least one palmprint main line and the at least one palmprint fine line within the palmprint distribution area, and labeling the candidate palmprint image with a candidate image label, wherein the candidate image label is used to represent the palmprint distribution of the candidate palmprint image, wherein the palmprint distribution includes at least one of a palmprint main line distribution and a palmprint fine line distribution;
[0012] The candidate palmprint image is input into a pre-trained palmprint generation model to obtain a sample palmprint image. The palmprint generation model is a model pre-trained by using the palmprint image labels of the pre-collected palmprint images and the candidate image labels. The palmprint image labels are used to indicate the palmprint distribution of the pre-collected palmprint images. The sample palmprint images are used to train the palmprint recognition model.
[0013] In another aspect, a device for generating a sample palmprint image is provided, the device comprising:
[0014] A main line generating module, configured to generate at least one palm print main line according to a preset palm print main line distribution rule;
[0015] a fine line generation module, configured to determine a palm print distribution area where the at least one palm print main line is located, and generate at least one palm print fine line in the palm print distribution area based on a preset palm print fine line distribution rule;
[0016] an image acquisition module, configured to generate a candidate palmprint image based on the at least one palmprint main line and the at least one palmprint fine line within the palmprint distribution area, and annotate the candidate palmprint image with a candidate image label, wherein the candidate image label is used to represent the palmprint distribution of the candidate palmprint image, wherein the palmprint distribution includes at least one of a palmprint main line distribution and a palmprint fine line distribution;
[0017] An image generation module is configured to input the candidate palmprint image into a pre-trained palmprint generation model to obtain a sample palmprint image. The palmprint generation model is a model pre-trained using palmprint image labels of pre-collected palmprint images and the candidate image labels. The palmprint image labels are used to indicate the palmprint distribution of the pre-collected palmprint image. The sample palmprint image is used to train a palmprint recognition model.
[0018] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method for generating a sample palmprint image as described in any of the above-mentioned embodiments of the present application.
[0019] On the other hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the method for generating a sample palmprint image as described in any of the above-mentioned embodiments of the present application.
[0020] In another aspect, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for generating a sample palmprint image as described in any of the above embodiments.
[0021] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0023] FIG1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
[0024] FIG2 is a flow chart of a method for generating a sample palmprint image provided by an exemplary embodiment of the present application;
[0025] FIG3 is a schematic diagram of palm prints provided by an exemplary embodiment of the present application;
[0026] FIG4 is a schematic diagram of a candidate palmprint image provided by an exemplary embodiment of the present application;
[0027] FIG5 is a flowchart of a palmprint generation model obtained by training according to an exemplary embodiment of the present application;
[0028] FIG6 is a flowchart of a method for generating a sample palmprint image provided by another exemplary embodiment of the present application;
[0029] FIG7 is a schematic diagram of a Bezier curve provided by an exemplary embodiment of the present application;
[0030] FIG8 is a flowchart of a method for generating a sample palmprint image provided by yet another exemplary embodiment of the present application;
[0031] FIG9 is a flowchart of a method for generating a sample palmprint image provided by another exemplary embodiment of the present application;
[0032] FIG10 is a flow chart of an application target palmprint recognition model provided by an exemplary embodiment of the present application;
[0033] FIG11 is an overall flow chart of a method for generating a sample palmprint image provided by an exemplary embodiment of the present application;
[0034] FIG12 is a schematic diagram of a third region provided by an exemplary embodiment of the present application;
[0035] FIG13 is a schematic diagram of determining a third area provided by an exemplary embodiment of the present application;
[0036] FIG14 is a schematic diagram of a candidate palmprint image provided by an exemplary embodiment of the present application;
[0037] FIG15 is a schematic diagram of a model of a generative adversarial network training phase provided by an exemplary embodiment of the present application;
[0038] FIG16 is a schematic diagram of a network structure of a generator provided by an exemplary embodiment of the present application;
[0039] FIG17 is a schematic diagram of a target palmprint recognition model obtained through training according to an exemplary embodiment of the present application;
[0040] FIG18 is a structural block diagram of a device for generating a sample palmprint image provided by an exemplary embodiment of the present application;
[0041] FIG19 is a structural block diagram of a device for generating a sample palmprint image provided by another exemplary embodiment of the present application;
[0042] FIG20 is a structural block diagram of a server provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0044] In the related art, when performing palmprint recognition, machine learning methods are typically used to learn the inherent patterns of palmprint information in the collected palmprint image, prompting the model to learn more discriminative potential features. The trained model is then used to recognize palmprints to achieve the identity recognition process. However, due to the strong privacy of palmprint images, the palmprint recognition field lacks a large number of public datasets for model learning. In addition, the authenticity of randomly generated palmprint samples is poor, which is not conducive to the model learning good identity information, resulting in poor identity recognition performance.
[0045] In an embodiment of the present application, a method for generating sample palmprint images is provided. After obtaining a large number of diverse candidate palmprint images, the generated candidate palmprint images can be constrained and adjusted using pre-collected palmprint images, thereby improving the authenticity of the generated sample palmprint images, thereby facilitating the improvement of the robustness of the palmprint recognition model. The method for generating sample palmprint images obtained through training in the present application can be applied in various scenarios, including palmprint recognition model training scenarios, palmprint encryption scenarios, and palmprint recognition scenarios. It is worth noting that the above application scenarios are only illustrative examples. The method for generating sample palmprint images provided in this embodiment can also be applied to other scenarios, and the embodiment of the present application is not limited to this.
[0046] It should be noted that before collecting the user's relevant data and during the process of collecting the user's relevant data, this application can display a prompt interface, pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information is used to remind the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining the user's relevant data after obtaining the user's confirmation operation on the prompt interface or pop-up window. Otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining the user's relevant data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application are collected with the user's consent and authorization, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0047] Next, the implementation environment involved in the embodiments of this application is described. The method for generating a sample palmprint image provided in the embodiments of this application can be implemented by a terminal alone, by a server, or by a terminal and a server through data interaction, which is not limited in this embodiment of the application. Optionally, the method for transmitting data interactively between a terminal and a server is used as an example for description.
[0048] Schematically, please refer to FIG. 1 , the implementation environment involves a terminal 110 and a server 120 , and the terminal 110 and the server 120 are connected via a communication network 130 .
[0049] In some embodiments, an application program with a palmprint image acquisition function is installed in the terminal 110. Illustratively, the terminal 110 is configured to send a palmprint image library to the server 120. The palmprint image library pre-stores a plurality of collected palmprint images. The server 120 can determine palmprint data information such as the distribution pattern of palmprint main lines and the distribution pattern of palmprint main line fine lines based on the palmprint image library.
[0050] Alternatively, an application program with a palm print image analysis function is installed in the terminal 110. Illustratively, the terminal 110 collects multiple palm print images, performs image analysis on the multiple palm print images, and determines palm print data information such as the distribution pattern of the main lines of the palm print and the distribution pattern of the main lines and fine lines of the palm print; the terminal 110 then sends the distribution pattern of the main lines of the palm print and the distribution pattern of the main lines and fine lines of the palm print to the server 120.
[0051] In some embodiments, the server 120 generates at least one palm print main line according to a preset palm print main line distribution rule, determines a palm print distribution area where the at least one palm print main line is located, generates at least one palm print fine line in the palm print distribution area based on a preset palm print fine line distribution rule, and combines the at least one palm print main line and the at least one palm print fine line into a candidate palm print image. The candidate palm print image is annotated with a candidate image label, and the candidate image label is used to represent the distribution of the palm print main line in the candidate palm print image.
[0052] Optionally, the server 120 inputs the candidate palmprint image into a pre-trained palmprint generation model to obtain a sample palmprint image. The palmprint generation model is a model pre-trained using palmprint image labels of pre-collected palmprint images and candidate image labels, where the palmprint image labels are used to indicate the palmprint distribution of the palmprint image.
[0053] In some embodiments, sample palmprint images processed by the palmprint generation model on candidate palmprint image models are used to train the palmprint recognition model 121, which is then used to perform palmprint recognition. Because the palmprint generation model is trained using collected palmprint images, the sample palmprint images are both numerous and highly accurate. Training the palmprint recognition model 121 with sample palmprint images, and then using the trained palmprint recognition model to perform palmprint recognition, improves the accuracy of palmprint recognition.
[0054] It is worth noting that the above-mentioned terminals include but are not limited to mobile terminals such as mobile phones, tablets, portable laptops, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, etc., and can also be implemented as desktop computers, etc.; the above-mentioned servers can be independent physical servers, or they can be server clusters or distributed systems composed of multiple physical servers, or they can be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0055] Cloud technology refers to a hosting technology that unifies hardware, applications, networks, and other resources within a wide or local area network (WAN) to enable data computing, storage, processing, and sharing. Cloud technology is a general term for network, information, integration, management platform, and application technologies used in the cloud computing business model. It can form a resource pool that can be used flexibly and conveniently on demand.
[0056] In some embodiments, the above-mentioned server can also be implemented as a node in a blockchain system.
[0057] In combination with the above-mentioned noun introduction and application scenarios, the method for generating a sample palmprint image provided by this application is described. Taking the application of this method to a server as an example, as shown in FIG2 , the method includes the following steps 210 to 240 .
[0058] Step 210: Generate at least one palmprint main line according to a preset palmprint main line distribution rule.
[0059] The palm print main line distribution pattern describes the distribution of the main lines within a palm print and is used to indicate the distribution of the main lines within the palm print. The palm print main line distribution pattern can include both the position pattern and the direction pattern of the main lines within the palm print. The position pattern describes the position of the main lines within the palm print, while the direction pattern describes the extension trend of the main lines within the palm print. The palm print main line distribution pattern can be derived by summarizing and inducing the palm prints of an individual through manual or artificial intelligence methods. The palm print main line distribution pattern can be referred to as the palm print main line distribution pattern or palm print main line distribution method.
[0060] Palm fine line distribution patterns describe the distribution of fine lines within a palm, indicating their distribution. These patterns can include both positional patterns and orientation patterns. Positional patterns describe the location of fine lines within the palm, while orientation patterns describe their extension trends within the palm. Palm fine line distribution patterns can be derived through manual or artificial intelligence analysis of biometric palm prints. These patterns can be referred to as palm fine line distribution patterns or palm fine line distribution methods.
[0061] Optionally, based on an analysis of palm prints of a large number of organisms, it is determined that palm prints mainly include main lines and fine lines, wherein the common characteristics of palm prints include at least one of the following: (1) the distribution of main lines is relatively certain, while the distribution of fine lines is relatively random; (2) the main lines usually have longer, thicker, and deeper texture features in the palm prints, while the fine lines have thinner, shorter, and shallower texture features than the main lines.
[0062] Optionally, when the palm print is a palm print, the distribution of the main lines of the palm print is generally diagonal, that is, the distribution pattern of the main lines of the palm print is a diagonal pattern. Schematically, taking the left palm as an example, the main lines of the palm print generally start at the upper left corner and end at the lower right corner; taking the right palm as an example, the main lines of the palm print generally start at the upper right corner and end at the lower left corner. As shown in Figure 3, it is a schematic diagram of the palm print of the left palm, wherein the palm area 310 includes main lines 320 and fine lines 330, the thicker lines are used to indicate the main lines 320, and the thinner lines are used to indicate the fine lines 330, that is, the palm area 310 includes three main lines 320 and 13 fine lines 330.
[0063] In some embodiments, within a preset range of the number of palmprint main lines, at least one palmprint main line is generated based on a distribution rule of the palmprint main lines.
[0064] For example, the range of the number of main palm lines is determined based on the analysis of palm prints of a large number of living beings. For example, based on the observation of palm print data of living beings, the number of main palm lines is generally 2 to 5.
[0065] In an optional embodiment, the positioning point data is generated according to a preset distribution pattern of the main lines of the palm print.
[0066] The positioning point data includes first data corresponding to the first main line positioning point and second data corresponding to the second main line positioning point.
[0067] The anchor point data is used to indicate the anchoring status of the mainline. It includes first and second data. Based on the first and second data, the starting and ending status of the mainline are determined, and the distribution of the mainline is roughly determined. Illustratively, the first data corresponds to the first mainline anchor point; the second data corresponds to the second mainline anchor point.
[0068] Optionally, the starting point of the palmprint main line is used as the first main line positioning point, and the ending point of the palmprint main line is used as the second main line positioning point.
[0069] In an optional embodiment, the adjustment point data is generated according to the curvature rule of the palm print main line.
[0070] The main line adjustment point corresponding to the adjustment point data is used to control the curvature of the main line formed by the first main line positioning point and the second main line positioning point.
[0071] The palmprint main line curvature pattern is used to indicate the curvature of the main line in the palmprint. For example, the palmprint main line is usually not a straight line segment, but a curve with a certain curvature. After determining the first and second main line positioning points, the curvature of the main line formed by the first and second main line positioning points is adjusted using the generated main line adjustment points.
[0072] In an optional embodiment, the adjustment point data is determined in the area between the first main line positioning point and the second main line positioning point according to the curvature rule of the palm print main line.
[0073] Schematically, the geometric appearance of the palm print is parameterized using a Bezier curve. Optionally, at least one Bezier curve is used to describe the main line of the palm print.
[0074] The Bezier curve is a mathematical curve used in two-dimensional graphics applications. It consists of line segments and nodes. Nodes are draggable fulcrums, while line segments are like stretchable rubber bands. When controlling the shape of a line segment, the curvature of the line segment is controlled by the nodes, resulting in the corresponding curve.
[0075] Alternatively, taking any palm print main line as an example, a second-order Bezier curve is used to construct the palm print main line, that is, three data (parameter points) are used in a two-dimensional (2D) plane to complete the determination of a palm print main line (Bezier curve). The three data are first data representing the first main line positioning point, the main line adjustment point, and second data representing the second main line positioning point.
[0076] In an optional embodiment, a palmprint main line is generated based on the first data, the second data and the adjustment point data, wherein the palmprint main line is a curve sequentially connecting the first main line positioning point, the main line adjustment point and the second main line positioning point.
[0077] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0078] Step 220 , determining a palm print distribution area where at least one palm print main line is located, and generating at least one palm print fine line in the palm print distribution area based on a preset palm print fine line distribution rule.
[0079] Illustratively, after generating at least one palmprint main line, a palmprint distribution area within which the at least one palmprint main line resides is determined. The palmprint distribution area is pre-set and can include the at least one palmprint main line. Specifically, a palmprint distribution area that accommodates the at least one palmprint main line can be determined on the plane within which the at least one palmprint main line resides, based on the shape of the pre-set palmprint distribution area. The at least one palmprint main line can be connected to a boundary of the palmprint distribution area, or the distance between each of the at least one palmprint main line and the boundary of the palmprint distribution area can be no greater than a pre-set distance.
[0080] For example, after generating a palmprint main line, the palmprint main line is used as a diagonal line, and a rectangular area that can include the palmprint main line is obtained as the palmprint distribution area; or, after generating multiple palmprint main lines, an area that can include multiple palmprint main lines is used as the palmprint distribution area, which can be a regular rectangular area or any irregular area.
[0081] In some embodiments, a palmprint generation area is pre-set, at least one palmprint main line is generated in the palmprint generation area, and the palmprint generation area is used as the palmprint distribution area.
[0082] Among them, the distribution law of palm fine lines is used to indicate the distribution of fine lines in the palm lines.
[0083] Optionally, based on analysis of palm prints from a large number of living beings, it is determined that palm prints include not only main lines but also fine lines. For example, compared to the more defined distribution of main lines, fine lines have a more random distribution; and compared to the longer, thicker, and deeper main lines, fine lines have thinner, shorter, and shallower texture characteristics.
[0084] Based on the distribution law of the palm fine lines, at least one palm fine line is generated in the palm distribution area.
[0085] Optionally, the palm fine line distribution rule includes multiple distribution rules such as palm fine line length rule, palm fine line coarseness rule, and palm fine line density rule.
[0086] Schematically, the palm fine line length rule is used to indicate the length limit of the palm fine line, for example: the length of the palm fine line is less than the shortest palm line among multiple palm main lines; or the length of the palm fine line is less than a preset length threshold (such as: 3 cm), etc.
[0087] Schematically, the palm fine line thickness rule is used to indicate the thickness limit of the palm fine lines, for example: the thickness of the palm fine lines is smaller than the thinnest palm main line among multiple palm main lines; or, the thickness of the palm fine lines is smaller than a preset thickness threshold (such as 1 mm).
[0088] Schematically, the palm print fine line density rule is used to indicate the mutual distribution of at least two palm print fine lines in the palm print generation area. For example, within a predetermined X area (preset area) in the palm print generation area, it is required to generate at least three palm print fine lines; or, the palm print generation area is divided into a number of sub-areas of unit length (1 cm), and it is required that each sub-area should have at least two palm print fine lines.
[0089] It is worth noting that the above-mentioned distribution rules can be applied individually or in combination. For example, only the length rule can be used to determine the fine lines of the palm print; or the length rule, the coarseness rule, and the density rule can be comprehensively considered to determine the fine lines of the palm print. The above-mentioned examples are merely illustrative and are not limited to the embodiments of the present application.
[0090] Step 230: Generate a candidate palmprint image based on at least one palmprint main line and at least one palmprint fine line in the palmprint distribution area, and annotate the candidate palmprint image with a candidate image label. The candidate image label is used to represent the palmprint distribution of the candidate palmprint image. The palmprint distribution includes at least one of the palmprint main line distribution and the palmprint fine line distribution.
[0091] The palm print distribution includes at least one of a palm print main line distribution and a palm print fine line distribution.
[0092] Illustratively, after obtaining at least one main palmprint line and at least one fine palmprint line, the palmprint distribution area including the at least one main palmprint line and the at least one fine palmprint line is used as a candidate palmprint image. In some embodiments, the palmprint distribution area including the at least one main palmprint line and the at least one fine palmprint line can be further processed to generate a candidate palmprint image. The further processing may include expanding the palmprint distribution area by a predetermined amount outward from the edge of the palmprint distribution area or adding noise.
[0093] For example, as shown in FIG4 , three palmprint main lines 410 (the long bold lines in FIG4 ) have been generated according to the preset palmprint main line distribution rule, and within the palmprint distribution area where the four palmprint main lines are located, 12 palmprint fine lines 410 (the short non-bold lines in FIG4 ) have been generated based on the preset palmprint fine line distribution rule. The area including the four palmprint main lines and the 12 palmprint fine lines is used as a candidate palmprint image, that is, the image shown in FIG4 is used as a candidate palmprint image.
[0094] The candidate palmprint image is annotated with a candidate image label, and the candidate image label is used to represent the palmprint distribution of the candidate palmprint image.
[0095] The palm print distribution includes at least one of a palm print main line distribution and a palm print fine line distribution. The palm print main line distribution may include description information of each palm print main line and the relative positional relationship of multiple palm print main lines. The description information of each palm print main line may include positional description information describing the position of the palm print main line or direction description information describing the direction of the palm print main line. The palm print fine line distribution may include description information of each palm print fine line and the relative positional relationship of multiple palm print fine lines. The description information of each palm print fine line may include positional description information describing the position of the palm print fine line or direction description information describing the direction of the palm print fine line.
[0096] In some embodiments, after generating a candidate palmprint image, a palmprint main line distribution in the candidate palmprint image is determined; and a candidate image label corresponding to the candidate palmprint image is determined based on the palmprint main line distribution. The palmprint main line distribution includes at least one of the following situations.
[0097] (1) Determine the palm print main line distribution based on the relative position relationship between the first main line positioning point and the second main line positioning point in the palm print main line
[0098] Illustratively, after obtaining at least one palm print main line, the first main line positioning point and the second main line positioning point corresponding to each palm print main line are determined. When determining the distribution of the target palm print main line in the at least one palm print main line, the first position of the first main line positioning point in the target palm print main line within the palm print distribution area is determined, and the second position of the second main line positioning point in the target palm print main line within the palm print distribution area is determined. The relative positional relationship between the first position and the second position within the palm print distribution area is determined, thereby obtaining the relative positional relationship corresponding to the target palm print main line. Based on this method, the relative positional relationship corresponding to at least one palm print main line is determined.
[0099] Optionally, the distribution of the palmprint main lines corresponding to the candidate palmprint image is determined by comprehensively considering the relative position relationship of at least one palmprint main line.
[0100] (2) Determine the distribution of palm print main lines based on the relative relationship between the main lines of multiple palm prints
[0101] Illustratively, when the candidate palmprint image includes multiple palmprint main lines, the mainline positions corresponding to the multiple palmprint main lines within the palmprint distribution area are determined to obtain multiple mainline positions. The relative positional relationships between the multiple mainline positions are determined within the palmprint distribution area. For example, mainline position A corresponding to palmprint main line 1 and mainline position B corresponding to palmprint main line 2 are parallel to each other; mainline position A corresponding to palmprint main line 1 and mainline position C corresponding to palmprint main line 3 are herringbone-shaped, etc.
[0102] Optionally, the relative positional relationships among multiple main line positions are integrated to determine the palmprint main line distribution corresponding to the candidate palmprint image.
[0103] In some embodiments, after generating a candidate palmprint image, the distribution of palm fine lines in the candidate palmprint image is determined; and a candidate image label corresponding to the candidate palmprint image is determined based on the distribution of palm fine lines.
[0104] Illustratively, the palm fine line distribution is determined based on the relative positional relationship between a plurality of palm fine lines; or, the palm fine line distribution is determined based on the intersection relationship between a plurality of palm fine lines, etc.
[0105] In some embodiments, after generating a candidate palmprint image, the palmprint main line distribution and the palmprint fine line distribution in the candidate palmprint image are determined; and a candidate image label corresponding to the candidate palmprint image is determined based on the palmprint main line distribution and the palmprint fine line distribution.
[0106] Schematically, the palmprint distribution corresponding to the candidate palmprint image is used to indicate the identity document (ID) indicated by the candidate palmprint image, that is, the candidate image label indicating the palmprint distribution can distinguish multiple candidate palmprint images.
[0107] Optionally, after generating multiple candidate palmprint images, candidate image labels are assigned to the candidate palmprint images based on the distribution of palmprint main lines and palmprint fine lines. For any two candidate palmprint images, if there is a difference in any aspect, such as the position or length of the palmprint main lines or palmprint fine lines, the candidate image labels are different, thereby enabling the multiple candidate palmprint images to be distinguished.
[0108] In some embodiments, a distribution variation range is pre-set, including a palm print main line distribution variation range and a palm print fine line distribution variation range. When the palm print main line distribution exceeds the palm print main line distribution variation range, a different candidate image label is marked; or when the palm print fine line distribution exceeds the palm print fine line distribution variation range, a different candidate image label is marked; or when the palm print main line distribution exceeds the palm print main line distribution variation range and the palm print fine line distribution exceeds the palm print fine line distribution variation range, a different candidate image label is marked, etc.
[0109] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0110] Step 240: Input the candidate palmprint image into the pre-trained palmprint generation model to obtain a sample palmprint image.
[0111] The palmprint generation model is a model obtained by pre-training the palmprint image labels and candidate image labels of the pre-collected palmprint images.
[0112] The palmprint image is used to represent an image having palmprint texture features. Optionally, the palmprint image is a single image collected in advance, or the palmprint image is a plurality of images collected in advance.
[0113] Optionally, the palmprint image is annotated with a palmprint image label, and the palmprint image label is used to indicate the palmprint distribution of the palmprint image.
[0114] The palmprint distribution includes at least one of a palmprint mainline distribution and a palmprint fineline distribution, and the palmprint distribution corresponding to the palmprint image is used to indicate the identity identification information indicated by the palmprint image.
[0115] Optionally, the palmprint main line is determined by at least a palmprint main line starting point, a palmprint main line ending point and an arc of the palmprint main line, and at least one palmprint main line is distributed as a palmprint image label corresponding to the palmprint image.
[0116] Illustratively, when there are multiple palm print main lines in a palm print image, the palm print image label corresponding to the palm print image is determined based on the longest palm print main line starting point, palm print main line ending point and the curvature of the palm print main line; or, when there are multiple palm print main lines in a palm print image, the palm print image label corresponding to the palm print image is determined by comprehensively considering the palm print main line starting points, palm print main line ending points and curvature of the palm print main lines corresponding to the multiple palm print main lines, etc.
[0117] Optionally, at least one fine palm line distribution is used as a palm print image label corresponding to the palm print image.
[0118] Schematically, in addition to indicating the distribution of palmprint main lines, palmprint image labels are also used to indicate the distribution of multiple palmprint fine lines in the palmprint image, such as: the position relationship of the palmprint fine lines in the palmprint image; or the number of palmprint fine lines in the palmprint image, etc.
[0119] Optionally, at least one palmprint fine line distribution and at least one palmprint main line distribution are used as palmprint image labels corresponding to the palmprint image.
[0120] The sample palmprint images are used to train the palmprint recognition model, and the palmprint recognition model is used to perform palmprint recognition.
[0121] Illustratively, after adjusting the candidate palmprint image, a sample palmprint image is obtained that is more consistent with the palmprint distribution pattern in the collected palmprint image.
[0122] In some embodiments, the palmprint recognition model to be trained is trained with the sample palmprint image; or, after mixing the sample palmprint image with multiple palmprint images in the palmprint image library, the palmprint recognition model to be trained is trained with multiple images (including the sample palmprint image and multiple palmprint images); or, after initially training the palmprint recognition model to be trained with the sample palmprint image, the palmprint recognition model after the initial training is trained with multiple palmprint images in the palmprint image library, thereby improving the robustness of the palmprint recognition model.
[0123] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0124] In summary, since the candidate palmprint images are images obtained based on the distribution law of palmprint main lines and the distribution law of palmprint fine lines, they have the characteristics of large quantity and diversity. At the same time, in order to make the candidate palmprint images more consistent with the real palmprint images, a palmprint generation model is pre-trained with the help of the palmprint image labels of the pre-collected palmprint images and the candidate image labels, and the palmprint generation model is used to generate sample palmprint images corresponding to the candidate palmprint images, so that the palmprint distribution in the sample palmprint images is more accurate, which not only breaks through the limitation of the small number of palmprints, but also improves the authenticity of the sample palmprint images, which is conducive to improving the robustness of the palmprint recognition model and improving the palmprint recognition accuracy of the palmprint recognition model.
[0125] In an optional embodiment, the palmprint generation model is a model obtained by performing model training on the candidate generation model. Schematically, as shown in FIG5 , the process of performing model training on the candidate generation model to obtain the palmprint generation model can be implemented as follows: steps 510 to 550 .
[0126] Step 510: Acquire a palmprint image library.
[0127] The palmprint image library pre-stores a plurality of collected palmprint images, and the plurality of palmprint images are respectively marked with palmprint image labels.
[0128] Illustratively, the multiple palmprint images are pre-collected images with palmprint texture features. For example, the palmprint image library stores palmprint images a1 and a2 of subject A, e.g., palmprint image a1 of subject A is the palmprint image of subject A's left hand, and palmprint image a2 of subject A is the palmprint image of subject A's right hand. The palmprint image library also stores palmprint images b1 and b2 of subject B, e.g., palmprint image b1 of subject B is the palmprint image of subject B's left hand, and palmprint image b2 of subject B is the palmprint image of subject B's other left hand.
[0129] The multiple palmprint images are respectively marked with palmprint image labels, and the palmprint image labels are used to indicate the palmprint distribution of the palmprint images.
[0130] Step 520: extract features from the palmprint image to obtain an image feature representation corresponding to the palmprint image.
[0131] Illustratively, image feature representations corresponding to at least one palmprint image are obtained, for example, by performing feature extraction on at least one palmprint image through an encoder to obtain image feature representations corresponding to at least one palmprint image.
[0132] Step 530: extract features from the candidate palmprint image to obtain a candidate feature representation corresponding to the candidate palmprint image.
[0133] Schematically, after obtaining the candidate palmprint image, the candidate palmprint image is downsampled to obtain the candidate feature representation corresponding to the candidate palmprint image; or, the candidate palmprint image is subjected to feature extraction by an encoder to obtain the candidate feature representation corresponding to the candidate palmprint image, etc.
[0134] In some embodiments, feature extraction is performed on the candidate palmprint image using the candidate generation model to be trained to obtain a candidate feature representation corresponding to the candidate palmprint image.
[0135] Step 540: Up-sampling is performed after fusing the candidate feature representation and the image feature representation through the candidate generation model to be trained to obtain a candidate sample palmprint image.
[0136] In some embodiments, a candidate generation model is used to perform feature fusion processing on the candidate feature representation and the image feature representation to obtain a fused feature representation.
[0137] The fused feature representation is used to represent the feature representation obtained by constraining and adjusting the candidate feature representation using at least one image feature representation.
[0138] Schematically, the candidate feature representation is subjected to a site-wise product operation with the image feature representation to obtain a fused feature representation. For example, if the feature dimension of the image feature representation is 64 and the feature dimension of the candidate feature representation is also 64, then the feature dimension of the fused feature representation is 64.
[0139] Optionally, feature fusion processing is performed on the candidate feature representations respectively through at least one image feature representation to obtain fused feature representations corresponding to the at least one image feature representation, that is, at least one fused feature representation is obtained.
[0140] Optionally, feature fusion processing is performed on multiple image feature representations and candidate feature representations to obtain a fused feature representation, which is used to represent the result of adjusting the candidate feature representation by the multiple image feature representations, etc.
[0141] In some embodiments, upsampling is performed on the fused feature representation to obtain a candidate sample palmprint image.
[0142] Optionally, after obtaining the fused feature representation, at least one fused feature representation is resized through an upsampling process to obtain a sample palmprint image corresponding to the at least one fused feature representation.
[0143] Step 550: Train the candidate generation model using the candidate sample palmprint images to obtain a palmprint generation model.
[0144] In an optional embodiment, a candidate palmprint image corresponding to the candidate sample palmprint image is determined, and the candidate image label corresponding to the candidate palmprint image is used as the sample image label of the candidate sample palmprint image.
[0145] Illustratively, a candidate sample palmprint image is an image obtained based on the candidate feature representation and the image feature representation, and thus the candidate sample palmprint image corresponds to the candidate palmprint image corresponding to the candidate feature representation. For example, candidate sample palmprint image A is an image obtained based on candidate feature representation a1 and image feature representation b1, and thus the candidate sample palmprint image corresponds to candidate palmprint image A1 corresponding to candidate feature representation a1.
[0146] Optionally, based on the correspondence between the candidate sample palmprint image and the candidate palmprint image, a candidate image label of the candidate palmprint image corresponding to the candidate sample palmprint image is determined, and the candidate image label is used as the sample image label of the candidate sample palmprint image.
[0147] Illustratively, the candidate image label of the candidate palmprint image A1 corresponding to the candidate sample palmprint image A is “label a”, and “label a” is used as the sample image label of the candidate sample palmprint image.
[0148] In an optional embodiment, the loss value corresponding to the candidate sample palmprint image is obtained based on the distribution difference between the palmprint distribution indicated by the sample image label and the palmprint distribution indicated by the palmprint image label.
[0149] Schematically, the loss values corresponding to the sample image label and at least one palmprint image label are calculated.
[0150] For example: obtain a first image feature representation corresponding to a sample image label, and a second image feature representation corresponding to at least one palmprint image respectively, and based on the vector distance between the first image feature representation and the second image feature representation in the vector space, obtain a loss value corresponding to at least one palmprint image label respectively.
[0151] In an optional embodiment, the candidate generation model is trained with the loss value to obtain a palmprint generation model.
[0152] Schematically, the candidate generation model is trained with at least one loss value until the training of the candidate generation model meets the training conditions, thereby obtaining a palmprint generation model.
[0153] The palmprint generation model is used to generate sample palmprint images, that is, the palmprint generation model is used in the process of generating sample palmprint images.
[0154] In summary, the palmprint generation model is pre-trained with the help of the palmprint image labels and candidate image labels of the pre-collected palmprint images, and the palmprint generation model is used to generate sample palmprint images corresponding to the candidate palmprint images, so that the palmprint distribution in the sample palmprint images is more accurate, which not only breaks through the limitation of the small number of palmprints, but also improves the authenticity of the sample palmprint images, which is conducive to improving the robustness of the palmprint recognition model and improving the palmprint recognition accuracy of the palmprint recognition model.
[0155] In an embodiment of the present application, a model training process for training a candidate generation model to obtain a palmprint generation model for generating sample palmprint images is described. The image feature representation corresponding to a pre-acquired palmprint image is fused with the candidate feature representation of the candidate palmprint image and then upsampled to obtain a candidate sample palmprint image after constraining the candidate feature representation using at least one image feature representation. Compared to the candidate palmprint image without palmprint image adjustment, the candidate sample palmprint image is closer to the palmprint texture features of the pre-acquired palmprint image. Furthermore, by training the candidate generation model using the candidate sample palmprint image, a more robust palmprint generation model can be obtained, which is conducive to generating more accurate and realistic sample palmprint images.
[0156] In an optional embodiment, in addition to directly obtaining a sample palmprint image based on a pre-trained palmprint generation model, the collected palmprint image and the generated candidate palmprint image can also be used to constrain and adjust the candidate palmprint image based on the label association relationship between the corresponding image labels, and thus obtain a sample palmprint image. Illustratively, the collected palmprint image and the generated candidate palmprint image are jointly input into the palmprint generation model, as shown in FIG6 , and can also be implemented as follows: Steps 610 to 640.
[0157] Step 610: Generate at least one palmprint main line according to a preset palmprint main line distribution rule.
[0158] In some embodiments, the palm print can be implemented as a palm print. The distribution of the main lines of the palm print in the palm print is usually diagonal, that is, the distribution pattern of the main lines of the palm print is diagonal.
[0159] In some embodiments, the palm prints can also be implemented as the palm prints of the soles of the feet. The distribution of the main lines of the palm prints in the soles of the feet usually presents a variety of palm print forms such as herringbone patterns, tortoise-shaped patterns, vertical patterns, etc. That is, the distribution pattern of the main lines of the palm prints of the soles of the feet can be determined by comparing with several common forms.
[0160] In an optional embodiment, the positioning point data is generated according to a preset distribution pattern of the main lines of the palm print.
[0161] The positioning point data includes first data corresponding to the first main line positioning point and second data corresponding to the second main line positioning point.
[0162] In an optional embodiment, the starting point of the palmprint main line is used as the first main line positioning point, and the ending point of the palmprint main line is used as the second main line positioning point.
[0163] (1) Random generation method
[0164] Schematically, within any coordinate region, the first data and the second data are randomly generated. Based on the length limit of the palm print main line, the line segment connecting the first main line positioning point and the second main line positioning point is scaled proportionally with the coordinate region to determine the first main line positioning point corresponding to the first data and the second main line positioning point corresponding to the second data.
[0165] (2) Generation method within the divided area
[0166] Optionally, a pre-set distribution area of palm print main lines is used as an example for illustration. Within the distribution area of the palm print main lines, the distribution area is divided into regions to obtain divided regions. Within the divided regions, first data and second data are randomly generated. Illustratively, after the distribution area is divided into regions, two divided regions are obtained. A first main line positioning point corresponding to the first data is generated in the first divided region, and a second main line positioning point corresponding to the second data is generated in the second divided region.
[0167] Optionally, after dividing the distribution area into regions, multiple divided regions are obtained, and the sum of the multiple divided regions can be realized as the entire distribution area or as a partial distribution area, that is, the divided region for generating the positioning point data can include the entire distribution area or only include a partial distribution area, etc.
[0168] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0169] In an optional embodiment, the adjustment point data is generated according to the curvature rule of the palm print main line.
[0170] The main line adjustment point corresponding to the adjustment point data is used to control the curvature of the main line formed by the first main line positioning point and the second main line positioning point.
[0171] In an optional embodiment, the adjustment point data is determined in the area between the first main line positioning point and the second main line positioning point according to the curvature rule of the palm print main line.
[0172] Schematically, as shown in Figure 7, a schematic diagram of determining the palmprint main line using the Bezier curve method is shown. The area enclosed by the horizontal and vertical axes is the generation area of the palmprint main line. The numbers marked on the horizontal and vertical axes are used to assist in determining the coordinate positions of the three data. Among them, the schematic diagram includes three palmprint main lines, each of which is determined by the first data, the main line adjustment point, and the second data. The "inverted triangle symbol" is used to indicate the first main line positioning point corresponding to the first data; the "star symbol" is used to indicate the main line adjustment point; and the "circle symbol" is used to indicate the second main line positioning point corresponding to the second data.
[0173] Illustratively, a first mainline anchor point corresponding to the first data and a second mainline anchor point corresponding to the second data are first generated. Then, a mainline adjustment point is generated between the first mainline anchor point and the second mainline anchor point. Optionally, the mainline adjustment point is generated based on a restricted relationship between the coordinate regions of the first and second mainline anchor points.
[0174] For example: the coordinates of the first main line positioning point of the palm print main line 710 are (0.0, 0.4), the coordinates of the main line adjustment point are (0.5, 0.6), and the coordinates of the second main line positioning point are (0.6, 1.0); the coordinates of the first main line positioning point of the palm print main line 720 are (0.0, 0.0), the coordinates of the main line adjustment point are (0.5, 0.3), and the coordinates of the second main line positioning point are (1.0, 1.0); the coordinates of the first main line positioning point of the palm print main line 730 are (0.3, 0.0), the coordinates of the main line adjustment point are (0.6, 0.3), and the coordinates of the second main line positioning point are (1.0, 0.3).
[0175] In an optional embodiment, at least one palmprint main line is generated based on the first data, the second data and the adjustment point data.
[0176] The palm print main line is a curve that sequentially connects the first main line positioning point, the main line adjustment point, and the second main line positioning point.
[0177] Schematically, as shown in FIG7 , the palm print main line 710 is obtained by sequentially connecting the first main line positioning point, the main line adjustment point, and the second main line positioning point, so that the palm print main line 710 presents an arc curve that is relatively convex upward; the palm print main line 720 is obtained by sequentially connecting the first main line positioning point, the main line adjustment point, and the second main line positioning point, so that the palm print main line 720 presents an arc curve that is relatively convex upward; the palm print main line 730 is obtained by sequentially connecting the first main line positioning point, the main line adjustment point, and the second main line positioning point, so that the palm print main line 730 presents a arc curve that is concave downward.
[0178] Step 620 , determining a palm print distribution area where at least one palm print main line is located, and generating at least one palm print fine line in the palm print distribution area based on a preset palm print fine line distribution rule.
[0179] In some embodiments, after generating at least one palm print main line, the palm print distribution area where the palm print main line is located is determined; or, after pre-determining the palm print distribution area where the palm print main line is located, at least one palm print main line is generated in the palm print distribution area, and the palm print distribution area is the palm print distribution area where the at least one palm print main line is located, etc.
[0180] In an optional embodiment, after generating at least one palm print main line in the palm print distribution area, at least one palm print fine line is generated based on a preset palm print fine line distribution rule; or, at least one palm print main line is generated based on the palm print main line distribution rule, and at least one palm print fine line is generated based on a preset palm print fine line distribution rule, etc.
[0181] Among them, the distribution law of palm fine lines is used to indicate the distribution of fine lines in the palm lines.
[0182] Illustratively, after generating three palm print main lines in the palm print distribution area, 13 palm print fine lines are generated based on the preset palm print fine line distribution law; or, the palm print main lines and palm print fine lines are generated based on the palm print main line distribution law and the palm print fine line distribution law at the same time, and a total of 4 palm print main lines and 22 palm print fine lines are generated.
[0183] Optionally, the main lines of the palm prints and the fine lines of the palm prints may intersect; furthermore, the main lines of the palm prints may intersect; furthermore, the fine lines of the palm prints may intersect, and so on.
[0184] In an optional embodiment, within a palm print distribution area where at least one palm print main line is located, a plurality of palm print fine line positioning points are determined based on a palm print fine line distribution rule.
[0185] The palm fine line positioning points are used to determine the generation range of the fine lines. Schematically, at least two palm fine line positioning points are generated according to the distribution law of the palm fine lines.
[0186] Optionally, the distribution pattern of the palm fine lines includes multiple distribution patterns such as length pattern, thickness pattern, density pattern, etc., and the multiple distribution patterns can be applied individually or in combination. For example, only the length pattern is used to determine the palm fine lines; or the length pattern, thickness pattern and density pattern are comprehensively considered to determine the palm fine lines, etc.
[0187] Optionally, in the palm print distribution, the distribution of the palm fine lines is relatively dispersed and random. Based on the distribution law of the palm fine lines and the palm print distribution of the palm print data stored in the palm print database, at least one of the following methods is used to generate at least one palm fine line in the palm print generation area.
[0188] (1) After determining at least one palm fine line location point, determine at least one remaining palm fine line location point based on the distribution pattern of the palm fine lines.
[0189] Illustratively, a preset length threshold for palm fine lines is predetermined to be 3 cm, and a preset thickness threshold for palm fine lines is predetermined to be 1 mm. Within the palm print generation area, a palm fine line location point is randomly generated, and at least one other palm fine line location point is determined within the preset length threshold and preset thickness threshold of the palm fine line, thereby obtaining at least two palm fine line location points. Alternatively, using the at least one other palm fine line location point as a reference, additional palm fine line location points are determined within the preset length threshold and preset thickness threshold of the palm fine line.
[0190] (2) Randomly determine at least two palm print fine line positioning points.
[0191] Schematically, within the palm print generation area, based on the distribution law of palm fine lines, at least two points are randomly generated as at least two palm fine line positioning points; or, after dividing the palm print generation area, at least two sub-areas are obtained, and palm fine line positioning points for generating palm fine lines are determined within the sub-areas.
[0192] In an optional embodiment, at least one palm fine line is generated based on a plurality of palm fine line positioning points.
[0193] Optionally, after obtaining at least two palm fine line positioning points, the palm fine lines are obtained in at least one of the following ways.
[0194] 1. Connect at least two of the multiple palm fine line positioning points to obtain at least one palm fine line.
[0195] Schematically, after obtaining multiple generated palm fine line positioning points, any two palm fine line positioning points are connected to obtain palm fine lines in the form of line segments; or, after connecting any multiple palm fine line positioning points, palm fine lines in the shape of irregular line segments are obtained; or, under the condition that the length of the fine lines is relatively short, any multiple (two or more) palm fine line positioning points are taken as a group of fine line positioning point groups to obtain palm fine lines within a certain length range, etc.
[0196] 2. Determine at least one palmprint sample based on the palmprint fine line adjustment points generated from the multiple palmprint fine line positioning points.
[0197] In an optional embodiment, the palm line fine line adjustment point is determined based on at least two palm line fine line positioning points.
[0198] The palm fine line adjustment point is used to control the arc between at least two palm fine line positioning points among the multiple palm fine line positioning points.
[0199] Illustratively, when generating palm fine lines, a Bezier curve method is used to determine the palm fine lines. That is, after generating at least two palm fine line positioning points, a palm fine line adjustment point is determined to adjust the curvature of the line segment between the at least two palm fine line positioning points. By moving the palm fine line adjustment point, different palm fine lines corresponding to different positions of the palm fine line adjustment point are obtained, such as a large arc or an irregular curve with a small curvature.
[0200] In an optional embodiment, within a preset range of the number of palm fine lines, the palm fine lines are determined based on at least two palm fine line positioning points and palm fine line adjustment points.
[0201] Optionally, in order to make the palm print situation in the generated palm print sample similar to the palm print situation of the living being, the number of palm print main lines and palm print fine lines is pre-set. Schematically, taking the observation results in a certain palm center area as an example, in the palm print situation of the living being, in the palm center area, the number of palm print main lines is 2 to 5, and the number of palm print fine lines is 5 to 15. For example: the number of palm print main lines is pre-set to a range of 2 to 5, and the number of palm print fine lines is pre-set to a range of 5 to 15. When determining the palm print main lines, the number of palm print main lines is controlled within the number range of 2 to 5, and a maximum of four situations of palm print main lines are obtained; when determining the palm print fine lines, the number of palm print fine lines is controlled within the number range of 5 to 15, and a maximum of eleven situations of palm print fine lines are obtained.
[0202] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0203] Step 630: Generate a candidate palmprint image based on at least one palmprint main line and at least one palmprint fine line within the palmprint distribution area, and annotate the candidate palmprint image with a candidate image label. The candidate image label is used to represent the palmprint distribution of the candidate palmprint image. The palmprint distribution includes at least one of the palmprint main line distribution and the palmprint fine line distribution.
[0204] In an optional embodiment, within a preset range of the number of palmprints, a candidate palmprint image including palmprint main lines and palmprint fine lines is generated.
[0205] The range of the number of palmprints includes at least one of a range of the number of main palmprint lines and a range of the number of fine palmprint lines. Optionally, the candidate palmprint image includes a certain number of main palmprint lines and fine palmprint lines, and when a palmprint sample is obtained based on the palmprint of a living being, the number of main palmprint lines and fine palmprint lines in the palmprint sample is similar to the number of main palmprint lines and fine palmprint lines of the living being.
[0206] For example, within a certain palm region, the number of palmprint main lines is controlled to be 2 to 5, and the number of palmprint fine lines is controlled to be 5 to 15, to obtain multiple candidate palmprint images. For example, the first candidate palmprint image has 3 palmprint main lines and 12 palmprint fine lines; the second candidate palmprint image has 5 palmprint main lines and 10 palmprint fine lines; the third candidate palmprint image has 4 palmprint main lines and 5 palmprint fine lines, and so on.
[0207] The candidate palmprint image is annotated with a candidate image tag, and the candidate image tag is used to represent the palmprint distribution of the candidate palmprint image. The palmprint distribution includes at least one of palmprint main line distribution and palmprint fine line distribution.
[0208] In an optional embodiment, the candidate image label corresponding to the candidate palmprint image is determined based on the relative positional relationship between the first data and the second data in the candidate palmprint image.
[0209] Schematically, the first data is used to indicate the data corresponding to the starting point of the palm print main line, and the second data is used to indicate the data corresponding to the ending point of the palm print main line. When determining the candidate image label corresponding to the candidate palm print image, multiple palm print main lines in the candidate palm print image are determined, and the palm print main line starting points and palm print main line ending points corresponding to the multiple palm print main lines are respectively determined. Based on the relative positional relationship between the palm print main line starting point and the palm print main line ending point corresponding to each palm print main line, the relative positional information corresponding to each palm print main line is determined. The relative positional information corresponding to the multiple palm print main lines is combined to obtain the candidate image label corresponding to the candidate palm print image.
[0210] In an optional embodiment, the candidate image label corresponding to the candidate palmprint image is determined based on the relative position relationship of multiple palm print fine line positioning points in the candidate palmprint image; or, the candidate image label corresponding to the candidate palmprint image is determined based on multiple palm print fine line positioning points and palm print fine line adjustment points, etc.
[0211] The candidate image labels annotated with the candidate palmprint images are used to represent the identity information indicated by the candidate palmprint images. For example, candidate palmprint image 1 is annotated with candidate image label a1 based on the palmprint mainline distribution and palmprint fineline distribution, and candidate palmprint image 2 is annotated with candidate image label a2 based on the palmprint mainline distribution and palmprint fineline distribution, etc.
[0212] Step 640: Input the candidate palmprint image and the palmprint image into the pre-trained palmprint generation model, and use the palmprint image to perform constraint adjustment on the candidate palmprint image to obtain a sample palmprint image.
[0213] In an optional embodiment, features are extracted from the candidate palmprint image to obtain a candidate feature representation corresponding to the candidate palmprint image.
[0214] Illustratively, after obtaining a candidate palmprint image consisting of generated palmprint main lines and generated palmprint fine lines, feature extraction is performed on the candidate palmprint image to obtain a candidate feature representation corresponding to the candidate palmprint image, which is used to indicate image information of the generated candidate palmprint image.
[0215] In some embodiments, the candidate palmprint image is downsampled to obtain a candidate feature representation corresponding to the candidate palmprint image; or the candidate palmprint image is passed through a general feature extraction model to obtain a candidate feature representation corresponding to the candidate palmprint image, etc.
[0216] In an optional embodiment, feature extraction is performed on the palmprint image to obtain image feature representations corresponding to at least one palmprint image.
[0217] Illustratively, in addition to feature extraction of the candidate palmprint images, feature extraction is also performed on at least one palmprint image in the palmprint image library. The at least one palmprint image can be implemented as multiple palmprint images in the palmprint image library or as at least one palmprint image arbitrarily selected from the multiple palmprint images.
[0218] Optionally, at least one palmprint image is input into an encoder to extract image feature representations corresponding to the at least one palmprint image, and the encoder is composed of a three-layer convolutional network.
[0219] In an optional embodiment, based on the differences in palmprint distribution indicated by the label association relationship, constraint adjustment is performed on the candidate feature representation using at least one image feature representation to obtain a sample palmprint image.
[0220] Illustratively, the candidate image label indicates the palmprint distribution of the candidate palmprint image, and the palmprint image label indicates the palmprint distribution of the palmprint image. Optionally, the label association relationship between the candidate image label and the palmprint image label is implemented as a label difference relationship, which is used to indicate the difference in palmprint distribution between the generated candidate palmprint image and the collected palmprint image.
[0221] In an optional embodiment, palmprint image tags corresponding to at least one image feature representation are determined.
[0222] Illustratively, after extracting and obtaining the image feature representations respectively corresponding to at least one palmprint image, the palmprint image labels respectively corresponding to the at least one image feature representations are determined.
[0223] In an optional embodiment, based on the difference in palmprint distribution indicated by the label association relationship, feature fusion is performed on at least one image feature representation and the candidate feature representation to obtain image fusion feature representations corresponding to the at least one image feature representation.
[0224] In some embodiments, upsampling is performed on at least one image fusion feature representation to obtain sample palmprint images corresponding to the at least one image fusion feature representation.
[0225] Optionally, after obtaining the fusion feature representation, at least one image fusion feature representation is resized through an upsampling process to obtain sample palmprint images corresponding to the at least one image fusion feature representation.
[0226] Since the image fusion feature representation is obtained by adjusting the candidate feature representation based on the palmprint feature representation corresponding to the collected palmprint image, it can better reflect the authenticity of the palmprint. The sample palmprint image obtained based on the fusion feature representation can also better reflect the authenticity of the palmprint.
[0227] In an optional embodiment, the feature fusion process for obtaining the image fusion feature representation is implemented by a generator (or called a palmprint generation model), that is: after obtaining the trained generator, the image feature representation corresponding to the palmprint image and the candidate feature representation corresponding to the candidate palmprint image are fused by the generator, and the image fusion feature representation is upsampled to obtain a sample palmprint image.
[0228] The sample palmprint images are used to train the palmprint recognition model, and the palmprint recognition model is used to perform palmprint recognition.
[0229] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0230] In summary, the palmprint generation model is pre-trained with the help of the palmprint image labels and candidate image labels of the pre-collected palmprint images, and the palmprint generation model is used to generate sample palmprint images corresponding to the candidate palmprint images, so that the palmprint distribution in the sample palmprint images is more accurate, which not only breaks through the limitation of the small number of palmprints, but also improves the authenticity of the sample palmprint images, which is conducive to improving the robustness of the palmprint recognition model and improving the palmprint recognition accuracy of the palmprint recognition model.
[0231] In the embodiments of this application, a method for generating candidate palmprint images has been improved. It is proposed that the candidate palmprint image and the palmprint image be input into a pre-trained palmprint generation model, and the palmprint image be used to perform constraint adjustments on the candidate palmprint image to obtain a sample palmprint image. This process enables a more targeted adjustment of the candidate palmprint image using the palmprint image in addition to the trained palmprint generation model, thereby combining the palmprint generation model and the palmprint image to improve the authenticity of the generated sample palmprint image.
[0232] In an optional embodiment, in addition to training the palmprint generation model and generating a sample palmprint image using the loss value determined between the candidate generation model and the palmprint image, a feature similarity calculation process is performed using the generated sample palmprint image and the palmprint image, and the identity consistency between the sample palmprint image and at least one palmprint image is constrained by the feature similarity calculation result. As shown schematically in FIG8 , this can also be implemented as the following steps 810 to 830.
[0233] Step 810: Obtain a target feature extraction model.
[0234] The target feature extraction model is a feature extraction model pre-trained through multiple palmprint images in a palmprint image library, that is, the training process of the target feature extraction model is associated with at least one palmprint image.
[0235] Step 820: Perform feature extraction on the sample palmprint image in training and at least one palmprint image using the target feature extraction model to obtain a first feature representation corresponding to the sample palmprint image in training and a second feature representation corresponding to the at least one palmprint image.
[0236] Schematically, after obtaining the sample palmprint image in training and at least one palmprint image, feature extraction is performed on the sample palmprint image in training using the target feature extraction model to obtain a first feature representation corresponding to the sample palmprint image in training; in addition, feature extraction is also performed on the at least one palmprint image using the target feature extraction model to obtain a second feature representation corresponding to the at least one palmprint image.
[0237] Step 830: Perform label constraints on the sample palmprint image based on the feature difference between the first feature representation and at least one second feature representation.
[0238] The label constraint is used to constrain the identity consistency between the sample palmprint image and at least one palmprint image, that is, to constrain the sample palmprint image and at least one palmprint image to indicate the same identity as much as possible.
[0239] Illustratively, after obtaining a first feature representation representing a sample palmprint image in training and a second feature representation representing a palmprint image, cosine similarity is calculated on the first feature representation and at least one second feature representation to obtain at least one feature similarity.
[0240] In some embodiments, label constraints are applied to the sample palmprint images based on at least one feature similarity.
[0241] Optionally, identity constraint features corresponding to at least one second feature representation are determined based on at least one feature similarity, and label constraints are performed on the sample palmprint image using the identity constraint features.
[0242] Schematically, the cosine similarity sim between any one of the at least one second feature representation and the first feature representation is calculated, and then (1-sim) is used as the identity constraint feature to constrain the identity consistency between the second feature representation and the first feature representation.
[0243] Among them, since the first feature representation indicates the sample palmprint image in training, the sample palmprint image in training will determine the identity information based on the candidate image label marked by the corresponding candidate palmprint image. When constraining the identity consistency between the second feature representation and the first feature representation, the identity constraint is performed based on the first feature representation.
[0244] Optionally, the feature distance between the second feature representation whose feature similarity is greater than a preset similarity threshold and the first feature representation is shortened, and the feature distance between the second feature representation whose feature similarity is less than the preset similarity threshold and the first feature representation is lengthened, thereby performing label constraints on the sample palmprint image corresponding to the first feature representation.
[0245] In some embodiments, the above-mentioned label constraint method is applied to the training process of the palmprint recognition model to establish an identity association relationship between the generated sample palmprint image and the stored palmprint image, thereby facilitating the palmprint recognition model to learn more identity information related to the identity association relationship and richer identity information. This is further conducive to determining the palmprint image corresponding to the object to be identified from the multiple palmprint images stored in the palmprint image library when applying the target palmprint recognition model, thereby improving the recognition accuracy of the target palmprint recognition model.
[0246] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0247] In summary, the palmprint generation model is pre-trained with the help of the palmprint image labels and candidate image labels of the pre-collected palmprint images, and the palmprint generation model is used to generate sample palmprint images corresponding to the candidate palmprint images, so that the palmprint distribution in the sample palmprint images is more accurate, which not only breaks through the limitation of the small number of palmprints, but also improves the authenticity of the sample palmprint images, which is conducive to improving the robustness of the palmprint recognition model and improving the palmprint recognition accuracy of the palmprint recognition model.
[0248] In the embodiments of this application, label constraints are applied to sample palmprint images using a target feature extraction model. Because the target feature extraction model is pre-trained using multiple palmprint images, it can focus more closely on the palmprint generation characteristics indicated by the palmprint images, improving the label constraint capabilities of the sample palmprint images. This, in turn, facilitates establishing an identity association between the generated sample palmprint images and the stored palmprint images, ensuring the authenticity of the sample generated images and avoiding inappropriate training of the palmprint recognition model using unrealistic sample generated images, which could affect the recognition accuracy of the palmprint recognition model.
[0249] In an optional embodiment, after obtaining the sample palmprint image, the palmprint recognition model is trained with the sample palmprint image to obtain a trained target palmprint recognition model. Schematically, as shown in FIG9 , the process after step 240 shown in FIG2 may further include steps 910 to 930 .
[0250] Step 910: training a palmprint recognition model using sample palmprint images to obtain a candidate palmprint recognition model.
[0251] The palmprint recognition model is a pre-acquired, trained model used to perform palmprint recognition to determine the palmprint information corresponding to the palmprint image. The palmprint information includes at least one of palmprint distribution information and palmprint identity information. The palmprint distribution information indicates the distribution of main lines and / or fine lines in the palmprint image, while the palmprint identity information indicates information about the object corresponding to the palmprint image.
[0252] Schematically, after obtaining the sample palmprint image, the palmprint recognition model is trained using the generated sample palmprint image to obtain a candidate palmprint recognition model.
[0253] Optionally, in response to the palmprint recognition model training meeting the training conditions, a candidate palmprint recognition model is obtained. For example, when the palmprint recognition model is trained with the generated sample palmprint images a predetermined number of times, the training conditions are considered to be met, and the candidate palmprint recognition model is obtained; or, when the palmprint recognition model is trained with the generated sample palmprint images a degree of convergence (e.g., the loss value of the training remains unchanged), the training conditions are considered to be met, and the candidate palmprint recognition model is obtained.
[0254] Step 920: Adjust the candidate palmprint recognition model using at least one palmprint image in the palmprint image library to obtain a target palmprint recognition model.
[0255] Among them, the target palmprint recognition model is used for palmprint recognition.
[0256] Illustratively, after obtaining a candidate palmprint recognition model, the candidate palmprint recognition model is adjusted using at least one palmprint image collected from the palmprint image library, thereby improving the recognition accuracy of the candidate palmprint recognition model for real palmprints, and thus obtaining a target palmprint recognition model with higher recognition accuracy.
[0257] Step 930: Input the target palmprint image into the target palmprint recognition model to obtain an image recognition result.
[0258] The target palmprint image is used to indicate the palmprint image to be recognized. Illustratively, after obtaining the target palmprint recognition model, the target palmprint image to be recognized is input into the target palmprint recognition model to obtain an image recognition result. The image recognition result is implemented as palmprint information corresponding to the target palmprint image, including at least one of palmprint distribution information and palmprint identity information.
[0259] Alternatively, a scenario where a target palmprint recognition model is applied to recognize hands to implement a payment process is used as an example. As shown in FIG10 , the target palmprint image is taken from an image captured by a terminal payment device 1010 as an example for illustration. The subject's hand image 1020 captured by the terminal payment device 1010 is used as the target palmprint image to be recognized. When recognizing the subject's hand image 1020, in order to accurately identify the region, the subject's hand image 1020 is first subjected to region extraction to obtain a region of interest 1030 in the subject's hand image 1020. For example, a 5 cm*5 cm region of the subject's palmprint image 1020 is cropped as the region of interest 1030. The region of interest 1030 includes the palmprint main line and the palmprint fine lines, and is the region of the subject's palmprint image in the subject's hand image 1020 that represents the palmprint content.
[0260] The target palmprint recognition model is used to extract features from the region of interest 1030 to obtain a feature representation of interest corresponding to the region of interest 1030. In addition, feature extraction is performed on multiple palmprint images collected in advance to obtain palmprint feature representations corresponding to the multiple palmprint images.
[0261] After obtaining the feature representation of interest and the palmprint feature representations corresponding to the plurality of palmprint images, cosine similarities corresponding to the feature representation of interest and the plurality of palmprint feature representations are calculated to obtain a plurality of cosine similarity results.
[0262] Optionally, the largest cosine similarity result is selected from the multiple cosine similarity results, and the palm print image corresponding to the largest cosine similarity result is determined, and the object information corresponding to the palm print image is used as the calculation result corresponding to the target palm print image 1020. For example, it is determined that the target palm print image 1020 is the object with an identity document (ID) of 36 among the multiple palm print images.
[0263] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0264] In summary, since the candidate palmprint images are obtained based on the distribution law of palmprint main lines and palmprint fine lines, they have the characteristics of large quantity and diversity. At the same time, in order to make the candidate palmprint images more consistent with the real palmprint images, the generated candidate palmprint images are constrained and adjusted with the palmprint images collected in advance, so that the palmprint distribution in the adjusted sample palmprint images is more accurate, which not only breaks through the limitation of the small number of palmprints, but also improves the authenticity of the sample palmprint images, which is conducive to improving the robustness of the palmprint recognition model and improving the palmprint recognition accuracy of the palmprint recognition model.
[0265] In the embodiments of the present application, a training process for training a palmprint recognition model using sample palmprint images is described. First, the palmprint recognition model is trained using generated sample palmprint images to obtain a candidate palmprint recognition model. The candidate palmprint recognition model is then adjusted using the captured palmprint images to improve the recognition authenticity of the candidate palmprint recognition model and obtain a target palmprint recognition model with higher recognition accuracy. Consequently, when the target palmprint recognition model is used to recognize the target palmprint image to be recognized, more accurate image recognition results are obtained, thereby increasing the application breadth of the target palmprint recognition model.
[0266] In an optional embodiment, the above-mentioned method for generating a sample palmprint image is referred to as “an identity-controllable palmprint generation method”, and the overall process of the method is shown in FIG11 .
[0267] (1) Generate candidate palmprint images 1110.
[0268] Schematically, based on observations of a large amount of real palmprint data, the following patterns have been discovered: A palm generally has 2-5 main lines. For the left hand, the main lines typically start at the upper left corner and end at the lower right corner, while the opposite is true for the right hand. There are more fine lines on the palm, which are shallower and shorter than the main lines.
[0269] In some embodiments, a second-order Bezier curve is used to parameterize the palm print to represent the main line and fine lines of the palm print. By setting three parameter points (a starting point, an end point, and an adjustment point) in a 2D plane, a Bezier curve is uniquely determined to simulate the texture of the palm print.
[0270] Optionally, the parameterized determination process of the palmprint texture is used as the identity control parameter to generate a Bezier identity control curve.
[0271] In an optional embodiment, the first area and the second area corresponding to the direction of the palm print main line are determined according to a preset distribution rule of the palm print main line.
[0272] Schematically, using palm prints as an example, the distribution of the main lines in a palm print follows a certain pattern. As shown in FIG3 , a schematic diagram of the distribution of palm prints is shown, wherein the main lines 320 of the palm print are generally presented in the form of a first main line positioning point at the upper left corner and a second main line positioning point at the lower right corner; alternatively, the lower right corner is regarded as the first main line positioning point of the main line 320 of the palm print, and the upper left corner is regarded as the second main line positioning point of the main line 320 of the palm print. Alternatively, the main lines of the palm print are analyzed in the form of a first main line positioning point at the upper left corner and a second main line positioning point at the lower right corner.
[0273] In an optional embodiment, a first vertex and a second vertex in a diagonal relationship are determined in a preset palm print generation area; a first area is determined in the palm print generation area with the first vertex as the center and a first preset length as the radius.
[0274] Illustratively, after determining the first vertex, the first region determined based on the first vertex is a sector-shaped region, wherein the point of the sector-shaped region is the first vertex, and the radius of the sector-shaped region is a first predetermined length. Alternatively, the sector-shaped region is considered to be a quarter of a circular region, wherein the midpoint of the circular region is the first vertex, and the radius of the circular region is the first predetermined length.
[0275] Optionally, the first preset length may be a fixed value set in advance, or a value determined based on the palmprint generation area.
[0276] Schematically, when the palmprint generation area is a square area of unit length, the dot is the third vertex. For the first main line positioning point, the coordinate definition of the first main line positioning point is as follows:
[0277] Among them, x is used to indicate the horizontal axis coordinate; y is used to indicate the vertical axis coordinate.
[0278] In an optional embodiment, a second area is determined within the palm print generation area with the second vertex as the center and the second preset length as the radius.
[0279] Optionally, the process of determining the second region based on the second vertex is similar to the process of determining the first region based on the first vertex. Schematically, the second preset length and the first preset length may be the same or different in length.
[0280] Schematically, when the palmprint generation area is a square area of unit length, as shown in FIG9 , the dot is the third vertex. For the first main line positioning point, the coordinate definition of the first main line positioning point is as follows:
[0281] Among them, x is used to indicate the horizontal axis coordinate; y is used to indicate the vertical axis coordinate.
[0282] Alternatively, when the second preset length and the first preset length have different length values, the second area formed with the second vertex as the center and the second preset length as the radius has a different area shape from the first area formed with the first vertex as the center and the first preset length as the radius. For example, when the palm print generation area is a square area, if the length value of the second preset length is larger and the length value of the first preset length is smaller, the second area corresponding to the second preset length is larger than the first area corresponding to the first preset length.
[0283] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0284] In an optional embodiment, after determining the first area, the first data corresponding to the first main line positioning point is determined in the first area by random selection; after determining the second area, the second data corresponding to the first main line positioning point is determined in the second area by random selection.
[0285] In some embodiments, the third area is determined according to the curvature of the palm print main line and based on the positional relationship between the first main line positioning point and the second main line positioning point.
[0286] In schematic form, the curvature of the palm line is used to indicate the curvature of the palm line. For example, the curvature of the palm line is small; the curvature of the palm line is relatively smooth.
[0287] Optionally, based on the positional relationship between the first main line positioning point and the second main line positioning point, a third area for generating the main line adjustment point is determined.
[0288] In an optional embodiment, the first main line positioning point and the second main line positioning point are connected to obtain the target line segment.
[0289] Schematically, as shown in FIG12 , in the palm print generation area 1210 , a first main line positioning point 1220 (represented by an “inverted triangle” symbol) and a second main line positioning point 1230 (represented by a “circle” symbol) are determined, and after connecting the first main line positioning point 1220 and the second main line positioning point 1230 , a target line segment 1240 is obtained.
[0290] Optionally, a rectangular area with a preset side length is used as the third area with the midpoint of the target line segment as the center.
[0291] Illustratively, the preset side length includes both a pre-set fixed value and a value determined based on the palmprint generation area.
[0292] For example, if the preset side length is a fixed value, when determining the third area based on the midpoint of the line segment, the third area is determined by taking the midpoint of the line segment as the center and the fixed value as the side length. The third area is a rectangular area determined within the palm print generation area. For example, the fixed values include the length a and the width b of the rectangle. With the midpoint of the line segment as the center, the length a of the rectangle is the length of the third area, and the width b of the rectangle is the width of the third area, thereby obtaining the third area.
[0293] Alternatively, the preset side length is a value determined based on the palmprint generation area (e.g., half of the side length in the palmprint generation area is used as the side length; or half of the target line segment in the palmprint generation area is used as the side length, etc.). When the first area is determined based on the midpoint of the line segment, the third area is determined within the palmprint generation area with the midpoint of the line segment as the center and the value determined based on the palmprint generation area as the side length.
[0294] For example, as shown in FIG12 , after the target line segment 1240 is obtained, the third area 1250 is obtained with the midpoint of the target line segment 1240 as the center and a preset fixed value as the side length.
[0295] In an optional embodiment, it is assumed that the midpoint coordinates of the target line segment connecting the first main line positioning point and the second main line positioning point are (x c ,y c ), with the midpoint coordinate (x c ,y c ) as the center and the target line segment as the judgment basis, the process of determining the third area is as follows.
[0296] Schematically, the length of the palm print generation area is unit length 1, and the third area to be obtained is a square area, the side length of the square area is pre-set to 2 / 3, then the third area is the midpoint coordinate (x c ,y c ) as the center, parallel to the target line segment and with a side length of 2 / 3.
[0297] Alternatively, the third area is enclosed by determining the equation of a straight line, which is uniquely determined by the main line positioning point and the second main line positioning point. Schematically, the straight line where the target line segment of the line connecting the first main line positioning point and the second main line positioning point is located is defined as straight line A, and straight line A is y=k1x+b1. Similarly, the coordinates of the midpoint (x c ,y c ) and the straight line B perpendicular to the straight line A is defined as y=k2x+b2.
[0298] Where k1 is used to indicate the slope of line A; b1 is used to indicate the intercept of line A; k2 is used to indicate the slope of line B; b2 is used to indicate the intercept of line B. The relationship among k1, b1, k2 and b2 is as follows:
[0299] That is: according to the straight line A and the midpoint coordinates (x c ,y c ), the straight line B can be uniquely determined.
[0300] Optionally, as shown in FIG13 , based on the midpoint coordinate 1310 (x c ,y c ), and the preset side length of the third area is 2 / 3, and two straight lines A11320 and A21330 are determined, which are parallel to the straight line A and have a vertical distance of 1 / 3 from the straight line A; and two straight lines B11340 and B213350 are determined, which are parallel to the straight line B and have a vertical distance of 1 / 3 from the straight line B.
[0301] The equation of straight line A11320 is: y=k1x+b3; the equation of straight line A21330 is: y=k1x+b4; the equation of straight line B11340 is: y=b2x+b5; the equation of straight line B21350 is: y=k2x+b6.
[0302] The above are merely illustrative examples, and the embodiments of the present application are not limited thereto.
[0303] Schematically, as shown in FIG13 , based on the above four straight lines: straight line A11320 , straight line A21330 , straight line B11340 and straight line B21350 , the values of the four straight lines can be uniquely determined, and the square area surrounded by the four straight lines can be determined, and the square area is used as the third area.
[0304] In an optional embodiment, the adjustment point data is generated within the third area.
[0305] Optionally, after determining the third region, adjustment point data for adjusting the curvature of the main line is generated from the third region. Schematically, the coordinate value range of the adjustment point data can be defined as follows:
[0306] Among them, k1 is used to indicate the slopes of straight line A11320 and straight line A21330; b3 is used to indicate the slopes of straight line A11320 and straight line A21330; 13 120 corresponding to the intercept; b4 is used to indicate the intercept corresponding to the line A21330; k2 is used to indicate the line B 13 140 and the slope corresponding to the straight line B21350; b5 is used to indicate the straight line B 13b6 is used to indicate the intercept corresponding to the straight line B21350.
[0307] Optionally, a palmprint main line is generated based on the first data, the second data and the adjustment point data.
[0308] The palm print main line is a curve that sequentially connects the first main line positioning point, the main line adjustment point, and the second main line positioning point.
[0309] Schematically, the palmprint main line is a curve formed by sequentially connecting the first main line positioning point, the main line adjustment point, and the second main line positioning point. The coordinate positions of the first and second main line positioning points are fixed, and the main line adjustment point can adjust the curvature of the line segment enclosed between the first and second main line positioning points to obtain different palmprint main lines. In other words, the position of the main line adjustment point is closely related to the formation of the palmprint main line.
[0310] In some embodiments, a candidate palmprint image including palmprint main lines and palmprint fine lines is generated.
[0311] Schematically, as shown in FIG14, multiple candidate palmprint images are generated using a second-order Bezier curve approach. The candidate palmprint images can also be referred to as Bezier curve images. For example, candidate palmprint image 1410 includes three main palmprint lines and five fine palmprint lines; candidate palmprint image 1420 includes four main palmprint lines and seven fine palmprint lines, etc.
[0312] (2) The candidate palmprint image 1110 and the palmprint image are input into the generative adversarial network 1120 for training, and a sample palmprint image is generated.
[0313] Schematically, after obtaining the generated candidate palmprint image and the collected palmprint image, the candidate palmprint image and the palmprint image are input into the generative adversarial network shown in FIG15 .
[0314] (1) The palmprint image is input into the encoder (f_encoder) 1510, and the image feature representation feature_encoder corresponding to the palmprint image is extracted. The encoder is composed of a three-layer convolutional network, and the image feature representation corresponding to the palmprint image is obtained, and the feature dimension is 64.
[0315] (2) The extracted image feature representation is used as a conditional probability and input into the generator (f_decoder) 1520 together with the candidate palmprint image (Bezier curve image bezier_img). The specific network structure of the generator 1520 is shown in FIG16 .
[0316] As shown in Figure 16, the model structure of the generator mainly consists of a 3-layer downsampling network structure and a 3-layer upsampling network structure.
[0317] The candidate palmprint image 1610 is first downsampled through three convolutional layers to extract the candidate feature representation (also called Bessel feature representation) corresponding to the candidate palmprint image 1610, whose feature dimension is consistent with the image feature representation extracted in (1), and the feature dimension is 64.
[0318] Optionally, a site-wise product operation is performed on the candidate feature representation and the image feature representation to obtain a fused feature representation 1620. The feature dimensions of the image feature representation and the candidate feature representation are both 64, so the feature dimension of the fused feature representation 1620 is also 64.
[0319] This step uses the image feature representation corresponding to the collected palmprint image to constrain the candidate feature representations, allowing the generator to learn the muscle texture information of the palmprint image. After upsampling the fused feature representation 1620 through a three-layer deconvolutional network, a sample palmprint image 1630 with muscles and palm lines is obtained.
[0320] (3) The generated sample palmprint image (simulated palmprint image) and the palmprint image are mixed and input into the palmprint recognition model for training.
[0321] Schematically, as shown in FIG15 , after obtaining the sample palmprint image, the loss value L1_loss between the generated sample palmprint image and the palmprint image is calculated using the following formula: L1_loss = |(sample_img,gather_img)|
[0322] Among them, sample_img is used to indicate the generated sample palmprint image; gather_img is used to indicate the collected palmprint image.
[0323] Schematically, the sample palmprint image is generated by the generator 1520. In the training phase of the palmprint generation model, the generator 1520 is trained by the above-mentioned loss value L1_loss until the training condition is met.
[0324] (4) Using the feature extraction model 1530 obtained by palmprint image training, feature extraction is performed on the collected palmprint image and the generated sample palmprint image respectively, and the palmprint feature representation feature_gt corresponding to the palmprint image and the sample feature representation feature_generated corresponding to the generated sample palmprint image are obtained. The cosine similarity sim between the palmprint feature representation and the sample feature representation is calculated, and (1-sim) is used as the identity constraint feature to constrain the identity consistency between the sample palmprint image and the palmprint image.
[0325] Schematically, during the application phase of the palmprint generation model, the generated candidate palmprint image is input into the generator 1320 to obtain a generated sample palmprint image. Optionally, the final generated sample palmprint image is implemented as the image shown in FIG14 , which includes not only palmprint texture information but also muscle texture information.
[0326] (3) Training the palmprint recognition model 1140
[0327] In an optional embodiment, as shown in FIG17 , the palmprint recognition model is pre-trained using a sample palmprint image 1710 .
[0328] Optionally, the model structure of the palmprint recognition model is implemented as a mobile face detection network (mobilefacenet), and the candidate recognition model 1720 is obtained based on model pre-training.
[0329] Afterwards, the candidate recognition model 1720 is fine-tuned using the pre-collected palmprint image 1730 to obtain a target palmprint recognition model.
[0330] It should be noted that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0331] As shown in the following table, it includes the recognition data of the target palmprint recognition model and the recognition data obtained by other palmprint recognition technologies.
[0332] Table 1
[0333] Table 1 shows the comparison of the recognition effects of the palmprint sample generation method provided in the embodiment of the present application and the traditional method in the field of palmprint recognition on the public dataset, and the evaluation index is the recall rate index (True Positive Rate, TPR).
[0334] Table 2
[0335] Table 2 shows the comparison of the recognition effects of the palmprint sample generation method provided by the embodiment of the present application and the traditional method in the field of palmprint recognition on the business data set, and the evaluation index is also TPR.
[0336] The baseline method used is ArcFace, a baseline method for palmprint recognition technology, and the backbone network is MobileFaceNet, a mobile phone network. It can be seen that the target palmprint recognition model trained using the palmprint sample generation method provided in the embodiments of this application outperforms the results of ArcFace recognition on both public and business datasets.
[0337] In summary, since the candidate palmprint images are obtained based on the distribution law of palmprint main lines and palmprint fine lines, they have the characteristics of large quantity and diversity. At the same time, in order to make the candidate palmprint images more consistent with the real palmprint images, the generated candidate palmprint images are constrained and adjusted with the palmprint images collected in advance, so that the palmprint distribution in the adjusted sample palmprint images is more accurate, which not only breaks through the limitation of the small number of palmprints, but also improves the authenticity of the sample palmprint images, which is conducive to improving the robustness of the palmprint recognition model and improving the palmprint recognition accuracy of the palmprint recognition model.
[0338] FIG18 is a block diagram of a device for generating a sample palmprint image according to an exemplary embodiment of the present application. As shown in FIG18 , the device includes the following components:
[0339] The main line generating module 1810 is configured to generate at least one palm print main line according to a preset palm print main line distribution rule;
[0340] a fine line generation module 1820 for determining a palm print distribution area where the at least one palm print main line is located, and generating at least one palm print fine line in the palm print distribution area based on a preset palm print fine line distribution rule;
[0341] An image acquisition module 1830 is configured to obtain a candidate palmprint image based on the at least one palmprint main line and the at least one palmprint fine line, wherein the candidate palmprint image is annotated with a candidate image label, and the candidate image label is used to represent a palmprint distribution of the candidate palmprint image, wherein the palmprint distribution includes at least one of a palmprint main line distribution and a palmprint fine line distribution;
[0342] Image generation module 1840 is used to input the candidate palmprint image into a pre-trained palmprint generation model to obtain a sample palmprint image. The palmprint generation model is a model pre-trained using palmprint image labels of pre-collected palmprint images and the candidate image labels. The palmprint image labels are used to indicate the palmprint distribution of the palmprint image. The sample palmprint image is used to train a palmprint recognition model, and the palmprint recognition model is used to perform palmprint recognition.
[0343] In an optional embodiment, the palmprint generation model is a model obtained by training a candidate generation model;
[0344] As shown in FIG19 , the device further includes:
[0345] The model training module 1850 is used to obtain a palmprint image library, in which a plurality of collected palmprint images are pre-stored, and each of the plurality of palmprint images is annotated with a palmprint image label; extract features from the palmprint image to obtain an image feature representation corresponding to the palmprint image; extract features from the candidate palmprint image to obtain a candidate feature representation corresponding to the candidate palmprint image; fuse the candidate feature representation and the image feature representation through a candidate generation model to be trained, and then upsample the fused representation to obtain a candidate sample palmprint image; train the candidate generation model through the candidate sample palmprint image to obtain the palmprint generation model, and the palmprint generation model is used to generate the sample palmprint image.
[0346] In an optional embodiment, the model training module 1850 is further used to determine a candidate palmprint image corresponding to the candidate sample palmprint image, and use the candidate image label corresponding to the candidate palmprint image as the sample image label of the candidate sample palmprint image; based on the distribution difference between the palmprint distribution indicated by the sample image label and the palmprint distribution indicated by the palmprint image label, obtain a loss value corresponding to the candidate sample palmprint image; and train the candidate generation model with the loss value to obtain the palmprint generation model.
[0347] In an optional embodiment, the model training module 1850 is further used to perform feature fusion processing on the candidate feature representation and the image feature representation through the candidate generation model to obtain a fused feature representation, wherein the fused feature representation is used to represent the feature representation obtained after constraining the candidate feature representation with at least one image feature representation; and upsample the fused feature representation to obtain the candidate sample palmprint image.
[0348] In an optional embodiment, the device further comprises:
[0349] The label constraint module 1860 is used to obtain a target feature extraction model, which is a feature extraction model pre-trained using multiple palmprint images in the palmprint image library; extract features from the sample palmprint image and the at least one palmprint image using the target feature extraction model to obtain a first feature representation corresponding to the sample palmprint image and a second feature representation corresponding to the at least one palmprint image; and perform label constraints on the sample palmprint image based on the feature difference between the first feature representation and the at least one second feature representation, wherein the label constraints are used to constrain the identity consistency between the sample palmprint image and the at least one palmprint image.
[0350] In an optional embodiment, the label constraint module 1860 is further configured to perform cosine similarity calculation on the first feature representation and the at least one second feature representation to obtain at least one feature similarity; and perform label constraint on the sample palmprint image based on the at least one feature similarity.
[0351] In an optional embodiment, the device further comprises:
[0352] The palmprint recognition model 1870 is used to train the palmprint recognition model with the sample palmprint image to obtain a candidate palmprint recognition model; and to adjust the candidate palmprint recognition model with at least one palmprint image in the palmprint image library to obtain a target palmprint recognition model, which is used for palmprint recognition.
[0353] In an optional embodiment, the image generation module 1840 is further configured to input the candidate palmprint image and the palmprint image into a pre-trained palmprint generation model, and perform constraint adjustment on the candidate palmprint image using the palmprint image to obtain the sample palmprint image.
[0354] In an optional embodiment, the main line generation module 1810 is further used to generate positioning point data according to a preset palm print main line distribution rule, the positioning point data including first data corresponding to a first main line positioning point and second data corresponding to a second main line positioning point; generate adjustment point data according to a palm print main line curvature rule, the main line adjustment point corresponding to the adjustment point data is used to control the curvature of the main line formed by the first main line positioning point and the second main line positioning point; generate the at least one palm print main line based on the first data, the second data and the adjustment point data, the palm print main line being a curve sequentially connecting the first main line positioning point, the main line adjustment point and the second main line positioning point.
[0355] In an optional embodiment, the fine line generation module 1820 is further used to determine the palm print distribution area where the at least one palm print main line is located, determine multiple palm print fine line positioning points in the palm print distribution area based on the palm print fine line distribution law; and generate the at least one palm print fine line in the palm print distribution area based on the multiple palm print fine line positioning points.
[0356] In summary, the palmprint generation model is pre-trained with the help of the palmprint image labels and candidate image labels of the pre-collected palmprint images, and the palmprint generation model is used to generate sample palmprint images corresponding to the candidate palmprint images, so that the palmprint distribution in the sample palmprint images is more accurate, which not only breaks through the limitation of the small number of palmprints, but also improves the authenticity of the sample palmprint images, which is conducive to improving the robustness of the palmprint recognition model and improving the palmprint recognition accuracy of the palmprint recognition model.
[0357] It should be noted that the device for generating sample palmprint images provided in the above embodiment is merely exemplified by the division of the aforementioned functional modules. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, i.e., the internal structure of the device can be divided into different functional modules to perform all or part of the functions described above. Furthermore, the device for generating sample palmprint images provided in the above embodiment and the method for generating sample palmprint images are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0358] Figure 20 shows a schematic diagram of the structure of a server provided by an exemplary embodiment of the present application. The server 2000 includes a central processing unit (CPU) 2001, a system memory 2004 including a random access memory (RAM) 2002 and a read-only memory (ROM) 2003, and a system bus 2005 connecting the system memory 2004 and the CPU 2001. The server 2000 also includes a non-volatile storage device 2006 for storing an operating system 2013, application programs 2014, and other program modules 2015.
[0359] The non-volatile storage device 2006 is connected to the central processing unit 2001 via a non-volatile storage controller (not shown) connected to the system bus 2005. The non-volatile storage device 2006 and its associated computer-readable medium provide non-volatile storage for the server 2000. That is, the non-volatile storage device 2006 may include a computer-readable medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0360] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other solid-state storage technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, tape cassettes, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above-mentioned ones. The above-mentioned system memory 2004 and non-volatile storage device 2006 can be collectively referred to as memory.
[0361] According to various embodiments of the present application, the server 2000 may also be connected to a remote computer on a network such as the Internet for operation. That is, the server 2000 may be connected to the network 2012 via the network interface unit 2011 connected to the system bus 2005, or the network interface unit 2011 may be used to connect to other types of networks or remote computer systems (not shown).
[0362] The memory also includes one or more programs, which are stored in the memory and configured to be executed by the CPU.
[0363] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the method for generating a sample palmprint image provided by the above-mentioned method embodiments.
[0364] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one instruction, at least one program, code set, or instruction set. The at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement the method for generating a sample palmprint image provided by the above-mentioned method embodiments.
[0365] The embodiments of the present application further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for generating a sample palmprint image described in any of the above embodiments.
[0366] Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0367] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0368] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
[0369] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0370] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A method for generating a sample palmprint image, executed by a computer device, the method include: generating at least one palmprint main line according to a preset palmprint main line distribution rule; Determine a palm print distribution area where the at least one palm print main line is located, and generate at least one palm print fine line in the palm print distribution area based on a preset palm print fine line distribution rule; Based on the at least one palmprint main line and the at least one palmprint fine line in the palmprint distribution area, a candidate palmprint image is generated, and a candidate image label is marked on the candidate palmprint image, wherein the candidate image label is used to represent the palmprint distribution of the candidate palmprint image, and the palmprint distribution includes at least one of palmprint main line distribution and palmprint fine line distribution; The candidate palmprint image is input into a pre-trained palmprint generation model to obtain a sample palmprint image. The palmprint generation model is a model pre-trained by using the palmprint image label of the pre-collected palmprint image and the candidate image label. The palmprint image label is used to indicate the palmprint distribution of the pre-collected palmprint image. The sample palmprint image is used to train the palmprint recognition model.
2. According to the method of claim 1, the palmprint generation model is a model obtained after model training of a candidate generation model; The method also include: Acquire a palmprint image library, wherein the palmprint image library pre-stores a plurality of collected palmprint images, wherein the plurality of palmprint images are respectively annotated with palmprint image labels; Extracting features from the palmprint image to obtain an image feature representation corresponding to the palmprint image; Extracting features from the candidate palmprint image to obtain a candidate feature representation corresponding to the candidate palmprint image; The candidate feature representation and the image feature representation are fused and then up-sampled by the candidate generation model to be trained to obtain a candidate sample palmprint image; The candidate generation model is trained by using the candidate sample palmprint image to obtain the palmprint generation model, and the palmprint generation model is used to generate the sample palmprint image.
3. The method according to claim 1 or 2, wherein the candidate generation model is trained by using the candidate sample palmprint image to obtain the palmprint generation model, include: Determine a candidate palmprint image corresponding to the candidate sample palmprint image, and use the candidate image label corresponding to the candidate palmprint image as the sample image label of the candidate sample palmprint image; acquiring a loss value corresponding to the candidate sample palmprint image based on a distribution difference between the palmprint distribution indicated by the sample image label and the palmprint distribution indicated by the palmprint image label; The candidate generation model is trained with the loss value to obtain the palmprint generation model.
4. The method according to any one of claims 1 to 3, wherein the candidate feature representation and the image feature representation are fused and then up-sampled by the candidate generation model to be trained to obtain a candidate sample palmprint image, include: Performing feature fusion processing on the candidate feature representation and the image feature representation through the candidate generation model to obtain a fused feature representation, wherein the fused feature representation is used to represent a feature representation obtained by constraining the candidate feature representation with at least one image feature representation; The fused feature representation is upsampled to obtain the candidate sample palmprint image.
5. The method according to any one of claims 1 to 4, further comprising: include: Acquire a target feature extraction model, wherein the target feature extraction model is a feature extraction model pre-trained through a plurality of palmprint images in the palmprint image library; Extracting features from the sample palmprint image and the at least one palmprint image respectively using the target feature extraction model to obtain a first feature representation corresponding to the sample palmprint image and a second feature representation corresponding to the at least one palmprint image; Based on the feature difference between the first feature representation and at least one second feature representation, a label constraint is performed on the sample palmprint image, and the label constraint is used to constrain the identity consistency between the sample palmprint image and at least one palmprint image.
6. The method according to any one of claims 1 to 5, wherein label constraints are applied to the sample palmprint image based on feature differences between the first feature representation and at least one second feature representation, include: Calculating cosine similarity between the first feature representation and the at least one second feature representation to obtain at least one feature similarity; The sample palmprint image is subjected to label constraints based on the at least one feature similarity.
7. The method according to any one of claims 1 to 6, wherein after inputting the candidate palmprint image into a pre-trained palmprint generation model to obtain a sample palmprint image, further include: Training the palmprint recognition model with the sample palmprint image to obtain a candidate palmprint recognition model; The candidate palmprint recognition model is adjusted with at least one palmprint image in the palmprint image library to obtain a target palmprint recognition model, and the target palmprint recognition model is used for palmprint recognition.
8. The method according to any one of claims 1 to 7, further comprising: include: The candidate palmprint image and the palmprint image are input into a pre-trained palmprint generation model, and the candidate palmprint image is constrained and adjusted using the palmprint image to obtain the sample palmprint image.
9. The method according to any one of claims 1 to 8, wherein at least one palmprint main line is generated according to a preset palmprint main line distribution rule, include: Generate positioning point data according to a preset palmprint main line distribution rule, wherein the positioning point data includes first data corresponding to a first main line positioning point and second data corresponding to a second main line positioning point; Generate adjustment point data according to the curvature rule of the palmprint main line, the main line adjustment point corresponding to the adjustment point data is used to control the curvature of the main line formed by the first main line positioning point and the second main line positioning point; The at least one palmprint main line is generated based on the first data, the second data and the adjustment point data, and the palmprint main line is a curve sequentially connecting the first main line positioning point, the main line adjustment point and the second main line positioning point.
10. The method according to any one of claims 1 to 9, wherein at least one palm fine line is generated in the palm fine line distribution area based on a preset palm fine line distribution rule, include: In the palm print distribution area, a plurality of palm print fine line positioning points are determined based on a preset palm print fine line distribution rule; The at least one palm fine line is generated in the palm print distribution area based on the multiple palm fine line positioning points.
11. A device for generating a sample palmprint image, the device include: A main line generation module, used to generate at least one palm print main line according to a preset palm print main line distribution rule; A fine line generation module, used to determine a palm print distribution area where the at least one palm print main line is located, and generate at least one palm print fine line in the palm print distribution area based on a preset palm print fine line distribution rule; An image acquisition module, used for generating a candidate palmprint image based on the at least one palmprint main line and the at least one palmprint fine line in the palmprint distribution area, and marking a candidate image label on the candidate palmprint image, wherein the candidate image label is used to represent the palmprint distribution of the candidate palmprint image, and the palmprint distribution includes at least one of palmprint main line distribution and palmprint fine line distribution; The image generation module is used to input the candidate palmprint image into a pre-trained palmprint generation model to obtain a sample palmprint image. The palmprint generation model is a model pre-trained by using the palmprint image label of the pre-collected palmprint image and the candidate image label. The palmprint image label is used to indicate the palmprint distribution of the pre-collected palmprint image. The sample palmprint image is used to train the palmprint recognition model.
12. A computer device, comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for generating a sample palmprint image according to any one of claims 1 to 10.
13. A computer-readable storage medium, wherein at least one program is stored in the storage medium, and the at least one program is loaded and executed by a processor to implement the method for generating a sample palmprint image according to any one of claims 1 to 10.
14. A computer program product, comprising a computer program or an instruction, wherein when the computer program or the instruction is executed by a processor, the method for generating a sample palmprint image according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Method and device used for generating images
CN107578017A
Generation method of training sample, and training method and device of deep learning model
CN114677564A
Sample image generation method and device, equipment, medium and program product
CN115239590A
Palm print sample generation method and device, equipment, medium and program product
CN115527079A
Deep palmprint recognition device and method
CN115830652A
