Fingerprint image indexing method, device, equipment and storage medium
By dividing the fingerprint image into blocks and processing the feature extraction network, and using Hamming distance to evaluate the similarity, the problem of large computational load in fingerprint identification is solved and the efficiency of fingerprint identification is improved.
Patent Information
- Application Number
- CN202410825786.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In existing fingerprint recognition technology, the fingerprint feature point extraction and comparison process involves complex calculations, which results in a long identification time and affects efficiency.
Using the fingerprint image indexing method, the fingerprint image to be indexed is divided into blocks, edge feature detection is performed, feature extraction network is used for feature extraction and splicing, and the Hamming distance is used for similarity evaluation to obtain the indexing results.
It reduces the computational load in the fingerprint identification process, improves the efficiency of fingerprint identification, and can quickly index fingerprints that require fine comparison from a large number of fingerprints to be matched.
Smart Images

Figure CN118379767B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a fingerprint image indexing method, device, equipment and storage medium. Background Art
[0002] Biometric technology is an important means to achieve identity recognition by comparing people's unique biological characteristics. Among them, fingerprint recognition technology is the mainstream recognition technology in the market.
[0003] Among the related technologies, fingerprint recognition technologies include optical method, capacitance method, ultrasonic method, etc. The optical method is widely used in imaging, sensing, storage and other fields due to its fast response speed. The main steps of optical fingerprint recognition technology include fingerprint collection, preprocessing of the collected fingerprint pattern (such as grayscale processing, filtering enhancement, etc.), feature point extraction of the preprocessed fingerprint, and comparison of the extracted feature points to achieve fingerprint recognition.
[0004] However, the process of extracting and comparing the feature points of a fingerprint involves complex computations and requires a long recognition time, thereby affecting the efficiency of fingerprint recognition. Summary of the invention
[0005] The purpose of this application is to provide a fingerprint image indexing method, device, equipment and storage medium, aiming to reduce the amount of calculation in the fingerprint recognition process to improve the efficiency of fingerprint recognition.
[0006] The present application embodiment provides a fingerprint image indexing method, including:
[0007] Obtain at least two fingerprint images to be indexed;
[0008] Dividing the fingerprint image to be indexed into blocks to obtain a plurality of fingerprint image blocks to be indexed;
[0009] Performing edge feature detection on the fingerprint image block to be indexed to obtain a plurality of edge information feature maps;
[0010] Using a feature extraction network, feature extraction and feature vector concatenation are performed on the edge information feature map to obtain a high-dimensional feature vector; the high-dimensional feature vector contains local feature information and global feature information related to the fingerprint in the fingerprint image to be indexed;
[0011] Performing similarity evaluation on at least two of the fingerprint images to be indexed according to the Hamming distance between the high-dimensional feature vectors to obtain a similarity evaluation result;
[0012] According to the similarity evaluation result, an index result of the fingerprint image to be indexed is obtained.
[0013] In some embodiments, the edge feature detection is performed on the fingerprint image block to be indexed to obtain a plurality of edge information feature maps, including:
[0014] Using a preset Sobel operator to perform convolution with the fingerprint image block to be indexed, to obtain a Sobel transverse gradient feature map and a Sobel longitudinal gradient feature map;
[0015] Generate a Sobel gradient direction feature map and a Sobel gradient amplitude feature map according to the Sobel transverse gradient feature map and the Sobel longitudinal gradient feature map;
[0016] The preset Laplace operator is used to perform convolution with the fingerprint image block to be indexed to obtain a Laplace response feature map.
[0017] In some embodiments, the feature extraction network includes a local feature extraction layer and a global feature extraction layer, and the feature extraction network is used to extract features and concatenate feature vectors on the edge information feature map to obtain a high-dimensional feature vector, including:
[0018] Stacking the fingerprint image block to be indexed and each edge information feature map to obtain an edge information tensor map;
[0019] Inputting the edge information tensor map into the local feature extraction layer, performing multi-scale local feature extraction on the edge information tensor map through continuous convolution operations, and obtaining a first intermediate feature vector;
[0020] Inputting the first intermediate feature vector into the global feature extraction layer, performing iterative global feature extraction on the edge information tensor graph based on an attention mechanism, and obtaining a second intermediate feature vector;
[0021] The second intermediate feature vectors corresponding to the fingerprint image blocks to be indexed are concatenated to obtain high-dimensional feature vectors corresponding to the fingerprint images to be indexed.
[0022] In some embodiments, the expression for iteratively extracting global features from the edge information tensor graph is:
[0023] ;
[0024] ;
[0025] ;
[0026] ;
[0027] ;
[0028] in, and They are the global feature extraction layer The output vector and input vector of the fingerprint image block to be indexed in the i-th row and j-th column of the layer are: The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The integrated information vector of the layer, is the global feature extraction layer Layers of multi-layer perceptron, is the vector concatenation operation, is the fingerprint image block to be indexed in the sth row and tth column relative to the fingerprint image block to be indexed in the ith row and jth column in the global feature extraction layer. The attention weights of the layers, The fingerprint image block to be indexed in the sth row and tth column is in the global feature extraction layer The transition feature vector of the layer, G is a complete graph with the fingerprint image block to be indexed as the vertex, For the general The real vector is converted to Operations on real matrices, D is a constant, is the linear transformation matrix obtained through learning, E is the unit matrix, is the average Sobel gradient direction of the fingerprint image block to be indexed in the i-th row and j-th column, is the pixel grayscale mean calculation operation, The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The query vector of the layer, The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The key vector of the layer, The fingerprint image block to be indexed in the sth row and tth column is in the global feature extraction layer The key vector of the layer, The fingerprint image block to be indexed in the αth row and βth column is in the global feature extraction layer The key vector of the layer, , , , , and are the parameters that need to be learned. is the Sobel lateral gradient feature map of the fingerprint image block to be indexed in the i-th row and j-th column, is the Sobel longitudinal gradient feature map of the fingerprint image block to be indexed in the i-th row and j-th column, i∈[1,n1], s∈[1,n1], α∈[1,n1], j∈[1,n2], t∈[1,n2], β∈[1,n2], n1 is the number of fingerprint image blocks to be indexed obtained by blocking in each row, and n2 is the number of fingerprint image blocks to be indexed obtained by blocking in each column.
[0029] In some embodiments, the feature extraction network further includes a feature mapping layer, and the second intermediate feature vectors corresponding to each of the fingerprint image blocks to be indexed are concatenated to obtain a high-dimensional feature vector corresponding to each of the fingerprint images to be indexed, including:
[0030] According to the position of the to-be-indexed fingerprint image block in the to-be-indexed fingerprint image, the second intermediate feature vectors are concatenated to obtain a third intermediate feature vector;
[0031] The third intermediate feature vector is input into the feature mapping layer to map the third intermediate feature vector to a preset real vector space to obtain the high-dimensional feature vector.
[0032] In some embodiments, performing similarity evaluation on at least two of the fingerprint images to be indexed according to the Hamming distance between the high-dimensional feature vectors to obtain a similarity evaluation result includes:
[0033] Projecting the high-dimensional feature vector to a binary Hamming space to obtain a binary feature representation of the fingerprint image to be indexed in the binary Hamming space;
[0034] According to the binary feature representation, the Hamming distance between the high-dimensional feature vectors is calculated to perform similarity evaluation on at least two of the fingerprint images to be indexed to obtain the similarity evaluation result.
[0035] In some embodiments, the fingerprint image indexing method further includes:
[0036] A preset deep neural network is trained and tested using a training image set; the training image set includes a plurality of training image subsets, the training image subsets include a first training image, a second training image, and a third training image, the first training image and the second training image respectively include local fingerprint information of the same finger and have the same fingerprint information of a preset ratio, and the first training image and the third training image respectively include local fingerprint information of different fingers;
[0037] Based on the results of the training and testing, one of the multi-scale sub-networks that meets a predetermined condition is selected from the plurality of multi-scale sub-networks, and the training is terminated when the model loss information of the deep neural network meets the predetermined condition to obtain the feature extraction network;
[0038] The calculation formula of the model loss information is:
[0039] ;
[0040] ;
[0041] ;
[0042] Among them, Loss(d a ,d p ,d n ) is the model loss information, Margin is the hyperparameter, d a is the high-dimensional feature vector obtained by inputting the first training image into the deep neural network, d p is the high-dimensional feature vector obtained by inputting the second training image into the deep neural network, d n A high-dimensional feature vector is obtained by inputting the third training image into the deep neural network.
[0043] The present application also provides a fingerprint image indexing device, including:
[0044] The first module is used to obtain at least two fingerprint images to be indexed;
[0045] The second module is used to divide the fingerprint image to be indexed into blocks to obtain multiple fingerprint image blocks to be indexed;
[0046] The third module is used to perform edge feature detection on the fingerprint image block to be indexed to obtain a plurality of edge information feature maps;
[0047] The fourth module is used to use a feature extraction network to perform feature extraction and feature vector splicing on the edge information feature map to obtain a high-dimensional feature vector; the high-dimensional feature vector contains local feature information and global feature information related to the fingerprint in the fingerprint image to be indexed;
[0048] A fifth module is used to perform similarity evaluation on at least two of the fingerprint images to be indexed according to the Hamming distance between the high-dimensional feature vectors to obtain a similarity evaluation result;
[0049] The sixth module is used to obtain the index result of the fingerprint image to be indexed according to the similarity evaluation result.
[0050] An embodiment of the present application further provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned fingerprint image indexing method when executing the computer program.
[0051] The embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned fingerprint image indexing method is implemented.
[0052] The beneficial effects of the present application are as follows: by performing edge feature detection on the fingerprint image blocks to be indexed obtained by block division, a number of edge information feature maps are obtained, and feature extraction and feature vector splicing are performed on the edge information feature maps using a feature extraction network to obtain a high-dimensional feature vector, and based on the Hamming distance between the high-dimensional feature vectors, a similarity evaluation is performed on at least two fingerprint images to be indexed to obtain a similarity evaluation result, and based on the similarity evaluation result, an index result of the fingerprint image to be indexed is obtained. Since feature extraction and feature vector splicing are performed at the level of the fingerprint image blocks to be indexed, and then the similarity between the high-dimensional feature vectors corresponding to the fingerprint image blocks to be indexed is evaluated, a number of fingerprints to be matched that require fine comparison can be quickly indexed from a large number of fingerprints to be matched, and the amount of calculation in the fingerprint recognition process can be reduced to improve the efficiency of fingerprint recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a flow chart of the fingerprint image indexing method provided in the embodiment of the present application.
[0054] Figure 2 It is a flowchart of the specific method of step S103 provided in an embodiment of the present application.
[0055] Figure 3 It is a flowchart of the specific method of step S104 provided in an embodiment of the present application.
[0056] Figure 4 It is a structural schematic diagram of the fingerprint image indexing device provided in an embodiment of the present application.
[0057] Figure 5 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown can be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second" and the like in the specification, claims and drawings are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0061] See also Figure 1 , Figure 1 is a flow chart of a fingerprint image indexing method provided in an embodiment of the present application. In some embodiments of the present application, Figure 1 The method may specifically include but is not limited to steps S101 to S106. Figure 1 These six steps are introduced in detail.
[0062] Step S101, obtaining at least two fingerprint images to be indexed.
[0063] It is understandable that the fingerprint image to be indexed includes fingerprint information obtained by collecting the fingerprint of one finger, and the fingerprint information in two fingerprint images to be indexed may be from the same finger or from different fingers.
[0064] In step S101, the fingerprint can be collected by the fingerprint collection device to obtain a fingerprint image to be indexed, and the collected fingerprint image to be indexed is stored in the fingerprint database. By calling the fingerprint database and the currently collected fingerprint image to be indexed, at least two fingerprint images to be indexed can be obtained. For example, when using fingerprint attendance clocking, multiple fingerprint images are stored on the attendance machine. When an employee clocks in, he can enter his fingerprint on the attendance machine. The attendance machine collects the fingerprint and obtains a fingerprint image. The currently entered fingerprint image and at least one pre-stored fingerprint image are obtained to obtain at least two fingerprint images to be indexed.
[0065] Step S102, dividing the fingerprint image to be indexed into blocks to obtain a plurality of fingerprint image blocks to be indexed.
[0066] In step S102, the fingerprint image to be indexed having the same image size is divided to obtain a plurality of image blocks having the same image size, that is, a plurality of fingerprint image blocks to be indexed.
[0067] For example, suppose the size of the fingerprint image to be indexed is , which is divided into multiple fingerprint image blocks to be indexed without overlapping areas. The size of each fingerprint image block to be indexed is In a specific embodiment, the size of the fingerprint image to be indexed is , If the value is 32, each fingerprint image to be indexed is divided into The fingerprint image blocks to be indexed.
[0068] Step S103, edge feature detection is performed on the fingerprint image block to be indexed to obtain a plurality of edge information feature maps.
[0069] It can be understood that the edge of an image refers to the area where the grayscale value of pixels in the image suddenly changes. If each row and column of pixels in the image is described as a function of the grayscale value, then the edge of the image corresponds to the area in the grayscale value function where the function value suddenly increases. The changing trend of the function value can be described by the derivative of the function. When the function value suddenly increases, the derivative will inevitably increase as well. In areas where the function value changes more slowly, the derivative value is also relatively small. Therefore, the area with sudden changes in the function can be found by looking for areas with larger derivative values, thereby determining the edge position in the image.
[0070] In step S103, edge feature detection is performed using a search-based edge detection method and a zero-crossing-based edge detection method. The search-based edge detection method first calculates the edge strength of the fingerprint image block to be indexed, using a first-order derivative representation, such as a gradient modulus, and then calculates the local direction of the estimated edge, using the direction of the gradient, and using this direction to find the maximum value of the local gradient modulus. The zero-crossing-based edge detection method locates the edge by finding the zero-crossing point of the second-order derivative obtained from the fingerprint image block to be indexed, using the zero-crossing point of the Laplace operator or a nonlinear differential equation.
[0071] See also Figure 2 In a specific embodiment, step S103 may specifically include but is not limited to steps S201 to S203. Figure 2 These three steps are introduced in detail.
[0072] Step S201, convolving the preset Sobel operator with the fingerprint image block to be indexed to obtain a Sobel transverse gradient feature map and a Sobel longitudinal gradient feature map.
[0073] Step S202, generating a Sobel gradient direction feature map and a Sobel gradient amplitude feature map according to the Sobel transverse gradient feature map and the Sobel longitudinal gradient feature map.
[0074] Step S203, using a preset Laplacian operator to perform convolution on the fingerprint image block to be indexed, to obtain a Laplacian response feature map.
[0075] In a specific embodiment, the expression of the Sobel lateral gradient feature map is:
[0076] ;
[0077] The expression of Sobel longitudinal gradient feature map is:
[0078] ;
[0079] The expression of Sobel gradient directional feature map is:
[0080] ;
[0081] The expression of the Sobel gradient amplitude characteristic map is:
[0082] ;
[0083] The expression of the Laplace response characteristic map is:
[0084] ;
[0085] Among them, B[i,j] is the fingerprint image block to be indexed in the i-th row and j-th column. is the Sobel lateral gradient feature map of the fingerprint image block to be indexed in the i-th row and j-th column, is the Sobel longitudinal gradient feature map of the fingerprint image block to be indexed in the i-th row and j-th column, Dir[i,j] is the Sobel gradient directional feature map of the fingerprint image block to be indexed in the i-th row and j-th column, Amp[i,j] is the Sobel gradient amplitude feature map of the fingerprint image block to be indexed in the i-th row and j-th column, Lap[i,j] is the Laplace response feature map of the fingerprint image block to be indexed in the i-th row and j-th column, i∈[1,n1], j∈[1,n2], n1 is the number of fingerprint image blocks to be indexed obtained by blocking each row, n2 is the number of fingerprint image blocks to be indexed obtained by blocking each column, and * is the convolution operation.
[0086] Step S104, using a feature extraction network, extracting features and concatenating feature vectors from the edge information feature map to obtain a high-dimensional feature vector, wherein the high-dimensional feature vector contains local feature information and global feature information related to the fingerprint in the fingerprint image to be indexed.
[0087] In step S104, the edge information feature map is input into the feature extraction network, local feature extraction is performed through continuous convolution operations in the feature extraction network, and global feature extraction is performed by a multi-layer perceptron based on the attention mechanism. The extracted local feature vectors and global feature vectors are concatenated and mapped to a real vector space to obtain a high-dimensional feature vector.
[0088] See also Figure 3 In a specific embodiment, the feature extraction network includes a local feature extraction layer and a global feature extraction layer. Step S104 may include but is not limited to steps S301 to S304. Figure 3 These four steps are introduced in detail.
[0089] Step S301, stacking the fingerprint image block to be indexed and each edge information feature map to obtain an edge information tensor map.
[0090] Step S302: input the edge information tensor map into the local feature extraction layer, perform multi-scale local feature extraction on the edge information tensor map through continuous convolution operations, and obtain a first intermediate feature vector.
[0091] Step S303: input the first intermediate feature vector into the global feature extraction layer, perform iterative global feature extraction on the edge information tensor graph based on the attention mechanism, and obtain the second intermediate feature vector.
[0092] Step S304: concatenate the second intermediate feature vectors corresponding to the fingerprint image blocks to be indexed to obtain high-dimensional feature vectors corresponding to the fingerprint images to be indexed.
[0093] In this embodiment, the specific structure of the local feature extraction layer is shown in Table 1 below, where Conv represents a convolution sublayer, DS Conv represents a depthwise separable convolution sublayer, BN represents a normalization sublayer, PReLU represents a PReLU nonlinear activation function sublayer, MP represents a maximum pooling sublayer, AP represents a mean pooling sublayer, RB represents a residual module, and the kernel of the residual module RB is x+(Conv(1×1)+DW Conv+Conv(1×1))(x), and DW Conv is a channel-by-channel convolution sublayer.
[0094] Table 1
[0095] Sublayer Type Kernel structure Input size Conv+BN+PReLU 3×3×6×16 32×32×6 Conv+BN+PReLU+MP 3×3×16×32,2×2 32×32×16 RB 32×64,3×3×64,64×32 16×16×32 DS Conv+BN+PReLU+MP 3×3×32,32×64,2×2 16×16×32 RB 64×128,3×3×128,128×64 8×8×64 DS Conv+BN+PReLU+MP 3×3×64,64×128,2×2 8×8×64 RB 128×256,3×3×256,256×128 4×4×128 RB 128×256,3×3×256,256×128 4×4×128 AP 4×4 4×4×128
[0096] The fingerprint image block to be indexed and each edge information feature map are stacked to obtain a W×W×6 edge information tensor map (W is the length and width of the fingerprint image block to be indexed), and the edge information tensor map is input into the above-mentioned local feature extraction layer, and multi-scale continuous convolution operations are performed to extract multi-scale local features of the edge information tensor map to extract multi-scale local feature information. Finally, the local feature extraction layer outputs the first intermediate feature vector. The first intermediate feature vector is input into the global feature extraction layer. The global feature extraction layer is a network designed with a Transformer structure and is configured with multiple multi-layer perceptrons based on the attention mechanism. In the global feature extraction layer, the output vector of the previous multi-layer perceptron is iteratively used as input based on the attention mechanism to generate the output vector of the next multi-layer perceptron. Finally, the global feature extraction layer outputs the second intermediate feature vector. The second intermediate feature vectors corresponding to each fingerprint image block to be indexed are spliced to obtain the high-dimensional feature vector corresponding to each fingerprint image to be indexed.
[0097] In a specific embodiment, the expression for iterative global feature extraction of the edge information tensor graph is:
[0098] ;
[0099] ;
[0100] ;
[0101] ;
[0102] ;
[0103] in, and They are the global feature extraction layer The output vector and input vector of the fingerprint image block to be indexed in the i-th row and j-th column of the layer are: The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The integrated information vector of the layer, The global feature extraction layer Layers of multi-layer perceptron, is the vector concatenation operation, is the fingerprint image block to be indexed in the sth row and tth column relative to the fingerprint image block to be indexed in the ith row and jth column in the global feature extraction layer. The attention weights of the layers, The fingerprint image block to be indexed in the sth row and tth column is in the global feature extraction layer The transition feature vector of the layer, G is a complete graph with the fingerprint image block to be indexed as the vertex, For the general The real vector is converted to Operations on real matrices, D is a constant, is the linear transformation matrix obtained through learning, E is the unit matrix, is the average Sobel gradient direction of the fingerprint image block to be indexed in the i-th row and j-th column, is the pixel grayscale mean calculation operation, The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The query vector of the layer, The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The key vector of the layer, The fingerprint image block to be indexed in the sth row and tth column is in the global feature extraction layer The key vector of the layer, The fingerprint image block to be indexed in the αth row and βth column is in the global feature extraction layer The key vector of the layer, , , , , and are the parameters that need to be learned. is the Sobel lateral gradient feature map of the fingerprint image block to be indexed in the i-th row and j-th column, is the Sobel longitudinal gradient feature map of the fingerprint image block to be indexed in the i-th row and j-th column, i∈[1,n1], s∈[1,n1], α∈[1,n1], j∈[1,n2], t∈[1,n2], β∈[1,n2], n1 is the number of fingerprint image blocks to be indexed obtained by blocking in each row, and n2 is the number of fingerprint image blocks to be indexed obtained by blocking in each column.
[0104] In a specific embodiment, the feature extraction network further includes a feature mapping layer, which may be a multi-layer perceptron. Step S304 specifically includes:
[0105] According to the position of the fingerprint image block to be indexed in the fingerprint image to be indexed, the second intermediate feature vectors are concatenated to obtain a third intermediate feature vector;
[0106] The third intermediate feature vector is input into the feature mapping layer to map the third intermediate feature vector to a preset real vector space to obtain a high-dimensional feature vector.
[0107] Specifically, the second intermediate feature vectors are spliced in sequence from top to bottom and from left to right according to the positions of the fingerprint image blocks to be indexed corresponding to them in the fingerprint image to be indexed, so as to obtain a 9×D-dimensional third intermediate feature vector (the fingerprint image to be indexed is divided into 9 fingerprint image blocks to be indexed), and the third intermediate feature vector is input into the feature mapping layer, and the third intermediate feature vector is mapped to a 4×D-dimensional real vector space through the feature mapping layer, and the third intermediate feature vector is reduced in dimension to obtain a high-dimensional feature vector.
[0108] In a specific embodiment, the expression of the high-dimensional feature vector is:
[0109] ;
[0110] Among them, d is a high-dimensional feature vector, is the feature map layer pair The mapping operation, is the third intermediate eigenvector.
[0111] In a specific embodiment, the feature extraction network is trained by the following method:
[0112] Use the training image set to train and test the preset deep neural network;
[0113] Based on the results of training and testing, a multi-scale sub-network that meets predetermined conditions is selected from multiple multi-scale sub-networks, and the training is terminated when the model loss information of the deep neural network meets the predetermined conditions to obtain a feature extraction network.
[0114] The training image set includes multiple training image subsets, the training image subsets include a first training image, a second training image and a third training image, the first training image and the second training image respectively include local fingerprint information of the same finger and have the same fingerprint information of a preset proportion, and the first training image and the third training image respectively include local fingerprint information of different fingers.
[0115] Specifically, a subset of training images is input into a preset deep neural network for training to obtain a high-dimensional feature vector predicted by the deep neural network. The model loss information is determined through a preset reference feature vector. The learning gradient of the high-dimensional feature vector is calculated through the model loss information. The learning gradient of the high-dimensional feature vector is back-propagated using a small batch stochastic gradient descent method. Each parameter in the entire deep neural network (including the local feature extraction layer and the global feature extraction layer) is iteratively updated. When the model loss information no longer shows an obvious downward trend, it indicates that the learning is sufficient, and the above-mentioned feature extraction network is obtained.
[0116] The calculation formula of model loss information is:
[0117] ;
[0118] ;
[0119] ;
[0120] Among them, Loss(d a ,d p ,d n ) is the model loss information, Margin is the hyperparameter, d a is the high-dimensional feature vector obtained by inputting the first training image into the deep neural network, d p is the high-dimensional feature vector obtained by inputting the second training image into the deep neural network, d n A high-dimensional feature vector is obtained by inputting the third training image into the deep neural network.
[0121] It can be understood that Margin represents "certain difference". When Margin is 0, it means that the high-dimensional feature vectors of different fingers only need to be different. The larger the Margin, the greater the required difference, and the more difficult the training and learning. In this embodiment, Margin is 1.0, which means that the angle between the high-dimensional feature vectors of the same finger is required to be 90 degrees smaller than the angle between the high-dimensional feature vectors of different fingers.
[0122] Step S105: performing similarity evaluation on at least two fingerprint images to be indexed according to the Hamming distance between the high-dimensional feature vectors to obtain a similarity evaluation result.
[0123] In a specific embodiment, step S105 specifically includes:
[0124] Project the high-dimensional feature vector to the binary Hamming space to obtain the binary feature representation of the fingerprint image to be indexed in the binary Hamming space;
[0125] According to the binary feature representation, the Hamming distance between the high-dimensional feature vectors is calculated to perform similarity evaluation on at least two fingerprint images to be indexed, and obtain a similarity evaluation result.
[0126] The calculation formula for binary feature representation is:
[0127] ;
[0128] in, is the binary feature representation of the fingerprint image to be indexed, t=1,2,3,...,n3, n3 is the dimension of the high-dimensional feature vector of a single fingerprint image to be indexed.
[0129] The calculation formula for calculating the Hamming distance between high-dimensional feature vectors is:
[0130] ;
[0131] Among them, S is the similarity evaluation result, For the first fingerprint image to be indexed for similarity evaluation, The second fingerprint image to be indexed for similarity evaluation, Is the exclusive OR operator.
[0132] Step S106, obtaining an index result of the fingerprint image to be indexed according to the similarity evaluation result.
[0133] In step S106, if the similarity evaluation result is closer to 1, the two fingerprint images to be indexed are more similar; if the similarity evaluation result is closer to 0, the two fingerprint images to be indexed are less similar; when the similarity evaluation result is greater than a preset similarity threshold, the index result is obtained that the fingerprint information of the two fingerprint images to be indexed comes from the same finger.
[0134] See also Figure 4 The present application also provides a fingerprint image indexing device, which can implement the above-mentioned fingerprint image indexing method, and the device includes:
[0135] The first module 401 is used to obtain at least two fingerprint images to be indexed;
[0136] The second module 402 is used to divide the fingerprint image to be indexed into blocks to obtain multiple fingerprint image blocks to be indexed;
[0137] The third module 403 is used to perform edge feature detection on the fingerprint image block to be indexed to obtain a plurality of edge information feature maps;
[0138] The fourth module 404 is used to use the feature extraction network to perform feature extraction and feature vector concatenation on the edge information feature map to obtain a high-dimensional feature vector; the high-dimensional feature vector contains local feature information and global feature information related to the fingerprint in the fingerprint image to be indexed;
[0139] The fifth module 405 is used to perform similarity evaluation on at least two fingerprint images to be indexed according to the Hamming distance between the high-dimensional feature vectors to obtain a similarity evaluation result;
[0140] The sixth module 406 is used to obtain the index result of the fingerprint image to be indexed according to the similarity evaluation result.
[0141] The specific implementation of the fingerprint image indexing device is substantially the same as the specific implementation of the fingerprint image indexing method described above, and will not be described in detail herein.
[0142] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment.
[0143] Refer to the following Figure 5 The electronic device 500 according to this embodiment of the present disclosure is described. Figure 5 The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0144] like Figure 5 As shown, the electronic device 500 is in the form of a general computing device. The components of the electronic device 500 may include, but are not limited to: at least one processing unit 510, at least one storage unit 520, a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510), a display unit 540, etc.
[0145] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 executes the steps according to various exemplary embodiments of the present disclosure described in the above fingerprint image indexing method section of this specification.
[0146] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202 , and may further include a read-only storage unit (ROM) 5203 .
[0147] The storage unit 520 may also include a program / utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0148] Bus 530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0149] The electronic device 500 may also communicate with one or more external devices 500' (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 500, and / or communicate with any device that enables the electronic device 500 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 550. Furthermore, the electronic device 500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 560. The network adapter 560 may communicate with other modules of the electronic device 500 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0150] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned fingerprint image indexing method is implemented.
[0151] The fingerprint image indexing method, device, equipment and storage medium provided in the embodiments of the present application perform edge feature detection on the fingerprint image blocks to be indexed obtained by segmentation to obtain a number of edge information feature maps, use a feature extraction network to perform feature extraction and feature vector splicing on the edge information feature maps to obtain a high-dimensional feature vector, perform similarity evaluation on at least two fingerprint images to be indexed based on the Hamming distance between the high-dimensional feature vectors, obtain a similarity evaluation result, and obtain an index result of the fingerprint image to be indexed based on the similarity evaluation result. Since feature extraction and feature vector splicing are performed at the level of the fingerprint image blocks to be indexed, and then the similarity between the high-dimensional feature vectors corresponding to the fingerprint image blocks to be indexed is evaluated, a number of fingerprints to be matched that require fine comparison can be quickly indexed from a large number of fingerprints to be matched, which can reduce the amount of calculation in the fingerprint recognition process to improve the efficiency of fingerprint recognition.
[0152] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the implementation of the present disclosure.
[0153] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0154] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0155] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0156] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
[0157] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0158] The exemplary embodiments of the present disclosure are specifically shown and described above. It should be understood that the present disclosure is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present disclosure is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.
Claims
1. A fingerprint image indexing method, characterized in that: include: Obtain at least two fingerprint images to be indexed; Dividing the fingerprint image to be indexed into blocks to obtain a plurality of fingerprint image blocks to be indexed; Performing edge feature detection on the fingerprint image block to be indexed to obtain a plurality of edge information feature maps; Using a feature extraction network, feature extraction and feature vector concatenation are performed on the edge information feature map to obtain a high-dimensional feature vector; the high-dimensional feature vector contains local feature information and global feature information related to the fingerprint in the fingerprint image to be indexed; Performing similarity evaluation on at least two of the fingerprint images to be indexed according to the Hamming distance between the high-dimensional feature vectors to obtain a similarity evaluation result; Obtaining an index result of the fingerprint image to be indexed according to the similarity evaluation result; The feature extraction network includes a local feature extraction layer and a global feature extraction layer. The feature extraction network is used to extract features and concatenate feature vectors on the edge information feature map to obtain a high-dimensional feature vector, including: Stacking the fingerprint image block to be indexed and each edge information feature map to obtain an edge information tensor map; Inputting the edge information tensor map into the local feature extraction layer, performing multi-scale local feature extraction on the edge information tensor map through continuous convolution operations, and obtaining a first intermediate feature vector; Inputting the first intermediate feature vector into the global feature extraction layer, performing iterative global feature extraction on the edge information tensor graph based on an attention mechanism, and obtaining a second intermediate feature vector; The second intermediate feature vectors corresponding to the fingerprint image blocks to be indexed are concatenated to obtain high-dimensional feature vectors corresponding to the fingerprint images to be indexed.
2. The fingerprint image indexing method according to claim 1, characterized in that: The edge feature detection is performed on the fingerprint image block to be indexed to obtain a plurality of edge information feature maps, including: Using a preset Sobel operator to perform convolution with the fingerprint image block to be indexed, to obtain a Sobel transverse gradient feature map and a Sobel longitudinal gradient feature map; Generate a Sobel gradient direction feature map and a Sobel gradient amplitude feature map according to the Sobel transverse gradient feature map and the Sobel longitudinal gradient feature map; The preset Laplace operator is used to perform convolution with the fingerprint image block to be indexed to obtain a Laplace response feature map.
3. The fingerprint image indexing method according to claim 1, characterized in that: The expression for iterative global feature extraction of the edge information tensor graph is: , , , , , in, and They are the global feature extraction layer The output vector and input vector of the fingerprint image block to be indexed in the i-th row and j-th column of the layer are: The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The integrated information vector of the layer, The global feature extraction layer Layers of multi-layer perceptron, is the vector concatenation operation, is the fingerprint image block to be indexed in the sth row and tth column relative to the fingerprint image block to be indexed in the ith row and jth column in the global feature extraction layer. The attention weights of the layers, The fingerprint image block to be indexed in the sth row and tth column is in the global feature extraction layer The transition feature vector of the layer, G is a complete graph with the fingerprint image block to be indexed as the vertex, For the general The real vector is converted to Operations on real matrices, D is a constant, is the linear transformation matrix obtained through learning, E is the unit matrix, is the average Sobel gradient direction of the fingerprint image block to be indexed in the i-th row and j-th column, is the pixel grayscale mean calculation operation, The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The query vector of the layer, The fingerprint image block to be indexed in the i-th row and j-th column is in the global feature extraction layer The key vector of the layer, The fingerprint image block to be indexed in the sth row and tth column is in the global feature extraction layer The key vector of the layer, The fingerprint image block to be indexed in the αth row and βth column is in the global feature extraction layer The key vector of the layer, , , , , and are the parameters that need to be learned. is the Sobel lateral gradient feature map of the fingerprint image block to be indexed in the i-th row and j-th column, is the Sobel longitudinal gradient feature map of the fingerprint image block to be indexed in the i-th row and j-th column, i∈[1,n1], s∈[1,n1], α∈[1,n1], j∈[1,n2], t∈[1,n2], β∈[1,n2], n1 is the number of fingerprint image blocks to be indexed obtained by blocking in each row, and n2 is the number of fingerprint image blocks to be indexed obtained by blocking in each column.
4. The fingerprint image indexing method according to claim 1, characterized in that: The feature extraction network further includes a feature mapping layer, which concatenates the second intermediate feature vectors corresponding to the fingerprint image blocks to be indexed to obtain the high-dimensional feature vectors corresponding to the fingerprint images to be indexed, including: According to the position of the to-be-indexed fingerprint image block in the to-be-indexed fingerprint image, the second intermediate feature vectors are concatenated to obtain a third intermediate feature vector; The third intermediate feature vector is input into the feature mapping layer to map the third intermediate feature vector to a preset real vector space to obtain the high-dimensional feature vector.
5. The fingerprint image indexing method according to claim 1, characterized in that: The performing similarity evaluation on at least two of the fingerprint images to be indexed according to the Hamming distance between the high-dimensional feature vectors to obtain a similarity evaluation result includes: Projecting the high-dimensional feature vector to a binary Hamming space to obtain a binary feature representation of the fingerprint image to be indexed in the binary Hamming space; According to the binary feature representation, the Hamming distance between the high-dimensional feature vectors is calculated to perform similarity evaluation on at least two of the fingerprint images to be indexed to obtain the similarity evaluation result.
6. The fingerprint image indexing method according to any one of claims 1 to 5, characterized in that: The fingerprint image indexing method further includes: A preset deep neural network is trained and tested using a training image set; the training image set includes a plurality of training image subsets, the training image subsets include a first training image, a second training image, and a third training image, the first training image and the second training image respectively include local fingerprint information of the same finger and have the same fingerprint information of a preset ratio, and the first training image and the third training image respectively include local fingerprint information of different fingers; Based on the results of the training and testing, one of the multi-scale sub-networks that meets a predetermined condition is selected from the plurality of multi-scale sub-networks, and the training is terminated when the model loss information of the deep neural network meets the predetermined condition to obtain the feature extraction network; The calculation formula of the model loss information is: , , , Among them, Loss(d a ,d p ,d n ) is the model loss information, Margin is the hyperparameter, d a is the high-dimensional feature vector obtained by inputting the first training image into the deep neural network, d p is the high-dimensional feature vector obtained by inputting the second training image into the deep neural network, d n A high-dimensional feature vector is obtained by inputting the third training image into the deep neural network.
7. A fingerprint image indexing device, characterized in that: include: The first module is used to obtain at least two fingerprint images to be indexed; The second module is used to divide the fingerprint image to be indexed into blocks to obtain multiple fingerprint image blocks to be indexed; The third module is used to perform edge feature detection on the fingerprint image block to be indexed to obtain a plurality of edge information feature maps; The fourth module is used to use a feature extraction network to perform feature extraction and feature vector splicing on the edge information feature map to obtain a high-dimensional feature vector; the high-dimensional feature vector contains local feature information and global feature information related to the fingerprint in the fingerprint image to be indexed; A fifth module is used to perform similarity evaluation on at least two of the fingerprint images to be indexed according to the Hamming distance between the high-dimensional feature vectors to obtain a similarity evaluation result; The sixth module is used to obtain the index result of the fingerprint image to be indexed according to the similarity evaluation result; The feature extraction network includes a local feature extraction layer and a global feature extraction layer. The feature extraction network is used to extract features and concatenate feature vectors on the edge information feature map to obtain a high-dimensional feature vector, including: Stacking the fingerprint image block to be indexed and each edge information feature map to obtain an edge information tensor map; Inputting the edge information tensor map into the local feature extraction layer, performing multi-scale local feature extraction on the edge information tensor map through continuous convolution operations, and obtaining a first intermediate feature vector; Inputting the first intermediate feature vector into the global feature extraction layer, performing iterative global feature extraction on the edge information tensor graph based on an attention mechanism, and obtaining a second intermediate feature vector; The second intermediate feature vectors corresponding to the fingerprint image blocks to be indexed are concatenated to obtain high-dimensional feature vectors corresponding to the fingerprint images to be indexed.
8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the fingerprint image indexing method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the fingerprint image indexing method according to any one of claims 1 to 6 is implemented.
