Seal image authenticity identification method and device based on deep learning

Through deep learning technology, Siamese neural network and SE-Block structure are used to extract and register features of seal images, solving the problems of low efficiency and poor accuracy of seal image identification in the existing technology, and achieving more efficient identification of seal authenticity. .

CN117765561BActive Publication Date: 2024-10-29乌鲁木齐市公安局刑事侦查支队 +1

Patent Information

Application Number
CN202311547095.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2024-10-29
Estimated Expiration
2043-11-16

AI Technical Summary

Technical Problem

It is difficult to accurately and efficiently identify the authenticity of a seal image with existing technology. The traditional manual identification method is inefficient and relies on subjective judgment. The difficulty of forging a seal is reduced, and the differences in manually stamped seals are complicated.

Method used

A method based on deep learning is used to extract and register features of the seal image through the Siamese feature extraction neural network. It combines the SE-Block structure and the DenseNet structure to integrate deep and shallow features, and performs similarity measurement to identify the authenticity of the seal.

Benefits of technology

It improves the accuracy and efficiency of identifying the authenticity of seal images, can effectively extract the graphic features of seals, and enhances the ability to distinguish real and counterfeit seals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117765561B_ABST
    Figure CN117765561B_ABST
Patent Text Reader

Abstract

The invention provides a seal image authenticity identification method and device based on deep learning. The method comprises: obtaining a seal image to be identified and a corresponding reference image, wherein the reference image is a genuine seal image; performing image registration and alignment on the seal image to be identified and the reference image; performing feature extraction on the seal image to be identified and the reference image after image registration and alignment through a Siamese-based feature extraction neural network, so as to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network comprises at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure; and performing similarity measurement based on the deep learning features of the seal image to be identified and the deep learning features of the reference image to identify the authenticity of the seal image to be identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital image processing and recognition, and in particular to a seal image authenticity identification method and device based on deep learning. Background Art

[0002] Seals are widely used as symbols with legal significance, and are generally used on important documents to verify their authenticity. Due to the authority of seals in social and economic activities, criminals will use forged seals to forge important documents.

[0003] One of the main reasons for counterfeiting seals is the inability to accurately identify the authenticity of the seal image on the document. This is due to the following three reasons: (1) The traditional manual identification method itself has certain defects. The manual verification method is very inefficient and overly relies on the subjective judgment of the identifier; (2) Due to the development of science and technology, especially the increasing advancement of photoengraving and computer simulation technology, the difficulty of counterfeiting seals has been greatly reduced; (3) The seal images affixed by humans have certain differences, making it more difficult to distinguish between the real and the fake.

[0004] Therefore, how to identify the authenticity of seals more accurately and efficiently has become an urgent problem to be solved. Summary of the invention

[0005] The present invention provides a seal image authenticity identification method and device based on deep learning, so as to achieve more accurate and efficient seal authenticity identification.

[0006] The present invention provides a seal image authenticity identification method based on deep learning, comprising:

[0007] Acquire a seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image;

[0008] Performing image registration and alignment on the seal image to be identified and the reference image;

[0009] The feature extraction of the seal image to be identified and the reference image after image registration and alignment is performed through a Siamese-based feature extraction neural network to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure;

[0010] Based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, similarity measurement is performed to obtain the similarity between the seal image to be identified and the reference image;

[0011] Based on the similarity, the authenticity of the seal image to be identified is identified.

[0012] According to a seal image authenticity identification method based on deep learning provided by the present invention, the feature extraction of the seal image to be identified and the reference image after image registration and alignment is performed through a Siamese-based feature extraction neural network to obtain the deep learning features of the seal image to be identified and the deep learning features of the reference image, including:

[0013] The registered and aligned seal image and reference image are input into the Siamese-based feature extraction neural network, and the features extracted by each feature extraction sub-network are recalibrated through SE-Block;

[0014] The recalibrated features corresponding to the seal image to be identified and the recalibrated features corresponding to the reference image are fused respectively to obtain the deep learning features of the seal image to be identified and the deep learning features of the reference image.

[0015] According to a seal image authenticity identification method based on deep learning provided by the present invention, the seal image to be identified and the reference image after image registration and alignment are input into a Siamese-based feature extraction neural network, and the features extracted by each feature extraction subnetwork are recalibrated through SE-Block, including:

[0016] Inputting the seal image to be identified and the reference image after image registration and alignment into a Siamese-based feature extraction neural network to obtain a first set of features and a second set of features, wherein the first set of features includes features extracted by each feature extraction subnetwork from the seal image to be identified, and the second set of features includes features extracted by each feature extraction subnetwork from the reference image;

[0017] The absolute difference between the first set of features and the second set of features is obtained, and based on the absolute difference, the first set of features and the second set of features are compressed and stimulated by SE-Block, so as to complete the recalibration of the first set of features and the second set of features by using the difference information between the seal image to be identified and the reference image.

[0018] According to a seal image authenticity identification method based on deep learning provided by the present invention, the Siamese-based feature extraction neural network is trained based on the following method:

[0019] Acquire a seal authenticity data set, wherein the seal authenticity data set includes multiple sets of authenticity image pairs, each set of authenticity image pairs includes a genuine seal image and a fake seal image corresponding to the genuine seal image;

[0020] The Siamese-based initial feature extraction neural network is trained based on the seal image authenticity image set to obtain the Siamese-based feature extraction neural network.

[0021] According to a seal image authenticity identification method based on deep learning provided by the present invention, similarity measurement is performed based on the deep learning features of the seal image to be identified and the deep learning features of the reference image to obtain the similarity between the seal image to be identified and the reference image, including:

[0022] By using a measurement model, based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, similarity measurement is performed to obtain the similarity between the seal image to be identified and the reference image;

[0023] The measurement model adopts a single-layer fully connected network, and the measurement model is obtained by end-to-end training in combination with the Siamese-based feature extraction neural network.

[0024] According to a seal image authenticity identification method based on deep learning provided by the present invention, the loss function of the measurement model is expressed as follows:

[0025]

[0026] Wherein, y is the authenticity category of the seal image to be identified, y=0 means that the authenticity category of the seal image to be identified is false, and y=1 means that the authenticity category of the seal image to be identified is true; is the probability prediction value of the authenticity category of the seal image to be identified. The value range is [0,1].

[0027] The present invention also provides a seal image authenticity identification device based on deep learning, comprising:

[0028] An acquisition module, used for acquiring a seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image;

[0029] An alignment module, used for performing image registration and alignment between the seal image to be identified and the reference image;

[0030] A feature extraction module is used to extract features of the seal image to be identified and the reference image after image registration and alignment through a Siamese-based feature extraction neural network, so as to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure;

[0031] A similarity measurement module, used for performing similarity measurement based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, so as to obtain the similarity between the seal image to be identified and the reference image;

[0032] The identification module is used to identify the authenticity of the seal image to be identified based on the similarity.

[0033] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned methods for identifying authenticity of seal images based on deep learning are implemented.

[0034] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for identifying authenticity of seal images based on deep learning are implemented.

[0035] The present invention also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for identifying authenticity of seal images based on deep learning.

[0036] The seal image authenticity identification method and device based on deep learning provided by the present invention extract features of the seal image by adopting a Siamese-based feature extraction neural network, then measure the similarity between the deep learning features of the seal image to be identified and the reference image, and identify the authenticity of the seal image to be identified after obtaining the similarity between the two. The convolutional neural network is applied to the seal authenticity identification to extract features and then measure the similarity, and a network integrating deep and shallow features is designed, which greatly enhances the feature expression ability, can effectively extract features in the seal graphic, and improves the accuracy of the seal image authenticity identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 It is a flow chart of a seal image authenticity identification method based on deep learning provided by the present invention;

[0039] Figure 2 It is a basic structural diagram of the SE-Block provided by the present invention;

[0040] Figure 3 It is a schematic diagram of the structure of the Siamese-based feature extraction neural network provided by the present invention;

[0041] Figure 4 It is a structural schematic diagram of a seal image authenticity identification device based on deep learning provided by the present invention;

[0042] Figure 5 An example physical structure diagram of an electronic device is provided. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] The following describes the seal image authenticity identification method and device based on deep learning of the present invention in conjunction with the accompanying drawings.

[0045] Figure 1 The present invention provides a flow chart of a seal image authenticity identification method based on deep learning, wherein the method comprises:

[0046] Step 100, obtaining a seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image;

[0047] Specifically, when identifying the authenticity of a seal image to be identified, it is necessary to first obtain a genuine seal image corresponding to the seal image to be identified as a reference image, and then identify the authenticity of the seal image to be identified by comparing the difference between the seal image to be identified and the reference image.

[0048] Step 110, performing image registration and alignment on the seal image to be identified and the reference image;

[0049] Specifically, in order to compare the difference between the seal image to be identified and the reference image, it is first necessary to perform image registration on the seal image to be identified and the reference image;

[0050] Optionally, the image registration technology in the field of image processing can be used to extract feature points from the seal image to be identified and the reference image, and perform feature matching to achieve correction and alignment of the seal image to be identified, thereby aligning it with the reference image.

[0051] Optionally, image registration technology can be used to match the features of the two input seal images to be identified and the reference image, so as to translate the position of the seal image to be identified and rotate the angle so that the center position is the same as that of the reference image, and the rotation angle of the two about the center is the same, and finally the correction of the image to be identified is achieved. Image registration technology has a rigorous theoretical basis and mature algorithm results. The present invention applies it to seal image registration, which can effectively improve the accuracy of the subsequent identification process.

[0052] In one embodiment, the method for performing image registration between the seal image to be identified and the reference image includes:

[0053] (1) Extract the Surf features of two input color RGB images (the seal image to be identified and the reference image) to obtain a 128-dimensional feature vector;

[0054] (2) Use the RANSAC algorithm to match the Surf features and find the best matching feature point pair;

[0055] (3) Extract the coordinates of the optimal pairing points and generate a transformation matrix;

[0056] (4) Analyze the transformation matrix, perform translation and rotation transformation on the seal image to be identified, and realize correction so that it is aligned with the reference image.

[0057] Step 120, performing feature extraction on the seal image to be identified and the reference image after image registration and alignment through a Siamese-based feature extraction neural network to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure;

[0058] Specifically, the Siamese-based feature extraction neural network is an improved Siamese neural network convolution structure; SE-Block structure

[0059] Since the core of seal authenticity identification is to model the similarity between seal images, so that the similarity between the real seal image and the forged seal image is less than the similarity between the real seal images, it can be processed by the Siamese network. Siamese network is also known as "twin network", and its "twin" means that a network contains two sub-networks with exactly the same structure and shared parameters. The input of the traditional Siamese network is a pair of samples, and its training goal is to make samples with the same label closer in the feature space and samples with different labels farther away from each other. In addition, the traditional Siamese network expands the size of the training set by coupling and pairing the training samples during training, which can improve the problem of limited training samples for seal images. However, the traditional Siamese neural network also has two shortcomings:

[0060] (1) There is no information interaction between the two feature extraction sub-networks in the Siamese network, and the difference information between the reference image and the seal image to be identified cannot be fully utilized.

[0061] (2) When using convolutional neural networks for feature extraction, the deep convolutional layer features usually have more advanced semantic information, but the description of detailed information is insufficient and cannot meet the requirements of distinguishing small differences in images in seal authenticity identification.

[0062] The improved Siamese neural network convolution structure in the present invention, based on the traditional Siamese network, introduces the SE-Block structure to connect two feature extraction sub-networks to each other in the middle layer, and uses the difference information between the reference image and the image to be identified to recalibrate the features to enhance the feature's ability to distinguish between real seal images and skilled forged seal images; the basic network structure of the feature extraction sub-network in the present invention adopts the DenseNet structure, which can fuse the deep and shallow features in the feature extraction sub-network to enhance the network's feature expression ability and retain sufficient detail information.

[0063] Specifically, the present invention adopts a convolutional neural network based on deep learning to perform deep learning feature extraction on two aligned seal images to be identified and a reference image. The feature extraction network integrates deep and shallow features, greatly enhancing the expressive ability of the features.

[0064] It should be noted that the convolutional neural network based on deep learning used in the present invention performs feature extraction, which is essentially different from the traditional feature extraction method. Traditional features are all designed manually, and while researchers have conducted a large number of studies on them, performance improvement is still limited. Algorithms based on deep learning have achieved very good results in many image field studies. Among them, the use of convolutional neural networks (CNN) can automatically learn feature expression in a large number of image samples, which is also the main reason why deep learning algorithms perform well in image-related fields. This feature learning method is more efficient than artificially designed features, and the performance is generally higher. Therefore, the present invention applies convolutional neural networks to feature extraction in seal authenticity identification, and designs a network that integrates deep and shallow features, which greatly enhances the expression ability of features and can effectively extract features in seal graphics.

[0065] Step 130, performing similarity measurement based on the deep learning features of the seal image to be identified and the deep learning features of the reference image to obtain the similarity between the seal image to be identified and the reference image;

[0066] Specifically, the present invention measures the similarity of the deep learning features of the seal image to be identified and the reference image based on the metric learning technology, thereby quantifying the difference between the seal image to be identified and the reference image, and obtaining the similarity between the seal image to be identified and the reference image.

[0067] Step 140: based on the similarity, identify the authenticity of the seal image to be identified.

[0068] Specifically, the similarity between the seal image to be identified and the reference image can be compared with a preset threshold. If it is greater than or equal to the threshold, the seal image to be identified is considered to be the imprint of a real seal, otherwise it is the imprint of a fake seal.

[0069] The present invention extracts features of seal images by adopting a Siamese-based feature extraction neural network, then measures similarity between deep learning features of the seal image to be identified and the reference image, and identifies the authenticity of the seal image to be identified after obtaining the similarity between the two. The convolutional neural network is applied to seal authenticity identification to extract features and then measure similarity, and a network integrating deep and shallow features is designed, which greatly enhances the feature expression ability, can effectively extract features in seal graphics, and improves the accuracy of authenticity identification of seal images.

[0070] In some optional embodiments, the feature extraction of the seal image to be identified and the reference image after image registration and alignment is performed by a Siamese-based feature extraction neural network to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, including:

[0071] The registered and aligned seal image and reference image are input into the Siamese-based feature extraction neural network, and the features extracted by each feature extraction sub-network are recalibrated through SE-Block;

[0072] The recalibrated features corresponding to the seal image to be identified and the recalibrated features corresponding to the reference image are fused respectively to obtain the deep learning features of the seal image to be identified and the deep learning features of the reference image.

[0073] Specifically, the present invention recalibrates the features extracted by each DenseBlock (feature reuse) module in the DenseNet structure through SE-Block, and then fuses the multi-layer features for feature measurement. SE-Block automatically obtains the importance of each feature channel through learning, and then promotes useful features and suppresses features that are not very useful for the current task according to this importance.

[0074] In some optional embodiments, the stamp image to be identified and the reference image after image registration and alignment are input into a Siamese-based feature extraction neural network, and the features extracted by each feature extraction subnetwork are recalibrated through SE-Block, including:

[0075] Inputting the seal image to be identified and the reference image after image registration and alignment into a Siamese-based feature extraction neural network to obtain a first set of features and a second set of features, wherein the first set of features includes features extracted by each feature extraction subnetwork from the seal image to be identified, and the second set of features includes features extracted by each feature extraction subnetwork from the reference image;

[0076] The absolute difference between the first set of features and the second set of features is obtained, and based on the absolute difference, the first set of features and the second set of features are compressed and stimulated by SE-Block, so as to complete the recalibration of the first set of features and the second set of features by using the difference information between the seal image to be identified and the reference image.

[0077] Figure 2 is a basic structural diagram of the SE-Block provided by the present invention, such as Figure 2As shown in the figure, given an input of size h×w, the number of feature channels is C1, a feature map with the number of feature channels C2 is obtained after a series of general transformations such as convolution. Unlike traditional convolutional neural networks, the present invention recalibrates the previously obtained features through three operations:

[0078] (1) Squeeze operation: SE-Block compresses features along the spatial dimension and uses global average pooling to compress features, compressing each two-dimensional feature channel into a real number. This real number has a global receptive field to some extent, and the output dimension matches the number of input feature channels. It represents the global distribution of responses on the feature channels and enables the layers close to the input to also obtain a global receptive field.

[0079] (2) Excitation operation, which is a mechanism similar to gating in recurrent neural networks. The weights for each feature channel are generated through the parameter W, where the parameter W is learned to explicitly model the correlation between feature channels.

[0080] (3) Recalibration operation: SE-Block regards the output of the excitation operation as the importance coefficient of each feature channel after feature selection, and then weights it by multiplying it channel by channel with the previous features to complete the recalibration of the original features in the channel dimension.

[0081] In the improved Siamese network of the present invention, two inputs of the same size (the seal image to be identified and the reference image) are convolved to obtain two sets of feature maps (the first set of features and the second set of features), the absolute difference of the two sets of feature maps is calculated and a compression operation is performed, and then the SE-Block structure is used for excitation operation to calculate the recalibration weights and recalibrate the two sets of feature maps respectively.

[0082] The deep learning-based convolutional neural network structure of the present invention can greatly improve the sensitivity to the difference between two images in the feature learning process, thereby enhancing the accuracy of the seal authenticity identification algorithm.

[0083] In some optional embodiments, the Siamese-based feature extraction neural network is trained based on the following method:

[0084] Acquire a seal authenticity data set, wherein the seal authenticity data set includes multiple sets of authenticity image pairs, each set of authenticity image pairs includes a genuine seal image and a fake seal image corresponding to the genuine seal image;

[0085] The Siamese-based initial feature extraction neural network is trained based on the seal image authenticity image set to obtain the Siamese-based feature extraction neural network.

[0086] Specifically, the present invention uses a seal authenticity dataset consisting of multiple sets of authentic and authentic image pairs to train an improved Siamese convolutional neural network structure, and the input is an image pair consisting of a reference image ImgR and a rectified image ImgA. The goal is to train a feature extraction network that can make samples with the same label closer in the feature space and make samples with different labels farther away from each other.

[0087] Figure 3 : is a schematic diagram of the structure of the Siamese-based feature extraction neural network provided by the present invention, such as Figure 3 As shown, the Siamese-based initial feature extraction neural network uses a DenseNet structure. The extracted features in each DenseBlock module are recalibrated by SE-Block using the difference information of the true and false images, and then the multi-layer features are fused for feature measurement. Then, the Siamese-based initial feature extraction neural network is trained using the seal authenticity dataset to obtain the Siamese-based feature extraction neural network.

[0088] In some optional embodiments, the performing similarity measurement based on the deep learning features of the seal image to be identified and the deep learning features of the reference image to obtain the similarity between the seal image to be identified and the reference image includes:

[0089] By using a measurement model, based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, similarity measurement is performed to obtain the similarity between the seal image to be identified and the reference image;

[0090] The measurement model adopts a single-layer fully connected network, and the measurement model is obtained by end-to-end training in combination with the Siamese-based feature extraction neural network.

[0091] Specifically, the present invention calculates the similarity of the deep learning features of the seal reference image (SigR) and the image to be identified (SigQ) based on the metric learning technology. The present invention uses the feature metric method to model the similarity between SigR and SigQ. The higher the similarity, the higher the probability that the reference image and the image to be identified are stamped with the same seal, that is, the higher the probability that the image to be identified is stamped with a real seal. The present invention calculates the similarity between features by learning the feature metric through a convolutional neural network.

[0092] In the present invention, the deep learning features extracted from SigR and SigQ are respectively denoted as X R =[x1 (R) , x2 (R) , …, x n (R) ] T , X Q =[x1 (Q) , x2 (Q) , …, x n (Q) ] T , where n∈R is the feature dimension. Then, X R With X Q The metric between can be calculated as:

[0093] D(X R , X Q )=M(W m , b, |X R -X Q |);

[0094] Among them, |X R -X Q |=[|x1 (R) -x1 (Q) |,|x2 (R) -x2 (Q) |, ..., |x n (R) -x n (Q) |] T For X R With X Q The absolute difference, M(W m , b, ·) is the metric model. The present invention uses a single-layer fully connected network as the metric model to learn the metric, which can be calculated as:

[0095] M(W m , b, |X R -X Q |)=f(W m T |X R -X Q |+b)

[0096] Among them, W m and b are the parameters of the measurement model, f(·) is the activation function, and the present invention adopts the Sigmoid function as the activation function:

[0097]

[0098] The present invention enables the metric model to learn the importance of different dimensions of the feature vector, and then use this weighted calculation to obtain the similarity between the reference image and the image to be identified. In addition, since the Sigmoid function is used to activate the output of the network, the range of the metric value obtained by metric learning is limited to (0, 1), which is suitable for comparison with the set threshold.

[0099] It should be noted that the present invention adopts metric learning technology to measure the similarity of the deep learning features of the seal image to be identified and the reference image, so as to quantify the difference and similarity between the seal image to be identified and the reference image. It is essentially different from the traditional similarity measurement technology. For the features extracted by the convolutional neural network, the more commonly used distance metrics are Euclidean distance and cosine similarity. The present invention calculates the similarity between features by learning the feature metric through a neural network, and designs a metric model for learning, so that the metric model can learn the importance of different dimensions of the feature vector for seal identification, and then use this weighted calculation to obtain the similarity between the reference image and the image to be identified.

[0100] In some optional embodiments, the loss function of the measurement model is expressed as follows:

[0101]

[0102] Among them, y is the target category, y=0 means that the seal image to be identified is "false", that is, a forged seal, otherwise, y=1 means that the seal image to be identified is "true", that is, a real seal. is the probability prediction value that the seal to be identified is a real seal, The value range is [0,1].

[0103] In one embodiment, the seal image authenticity identification method based on deep learning includes the following process:

[0104] Step S1: extracting feature points;

[0105] First, input the reference image ImgR and the seal image to be identified ImgQ, both of which are color RGB images with a resolution of 640*640. Then extract the Surt feature points of the two images respectively, and each feature point corresponds to a 128-dimensional feature vector.

[0106] Step S2: Correcting the image to be identified;

[0107] The Ransac algorithm is used to match the features between the two images, extract the optimal pairing point set, and calculate the transformation matrix. The translation and rotation angle are parsed from the transformation matrix, and the image to be identified ImgQ is translated and rotated to generate the corrected image ImgA. ImgA has the same center position and rotation angle as the reference image ImgR, which means that the two are "aligned".

[0108] Step S3: training the Siamese neural network model and extracting deep learning features;

[0109] S3.1 The present invention uses a seal authenticity dataset consisting of true and false seal images to train an improved Siamese convolutional neural network structure, and the input is an image pair consisting of a reference image ImgR and a rectified image ImgA. The goal is to train a feature extraction network that can make samples with the same label closer in the feature space and make samples with different labels farther away from each other.

[0110] The structure of the S3.2 neural network is as follows Figure 3 As shown in the figure, the basic network uses the DenseNet structure. The extracted features in each DenseBlock module are recalibrated by SE-Block using the difference information between the reference image and the seal image to be identified, and then the multi-layer features are fused for feature measurement.

[0111] S3.3 After training the convolutional network with the seal authenticity dataset, the reference image ImgR and the rectified image ImgA can be input to obtain the deep learning features Sig of the two images. R With Sig Q , are all 512-dimensional feature vectors.

[0112] Step S4: training the measurement model and calculating feature similarity;

[0113] S4.1 The measurement model of the present invention adopts a single-layer fully connected network, which can be combined with the network in step S3 for end-to-end training. Since the seal identification result can only be "true" or "false", the measurement model is essentially a binary classification model, so the loss function can adopt the cross entropy loss function:

[0114]

[0115] S4.2 After training the measurement network with the seal authenticity dataset, the deep learning feature Sig obtained in step S3 can be input R With Sig Q , and then through the Sigmoid activation function, we can get the value of feature similarity, which ranges from (0,1).

[0116] Step S5: Compare with the threshold and output the identification result;

[0117] According to the empirical value, the threshold value can be set to 0.5. When the feature similarity is greater than or equal to 0.5, the image to be identified is considered to be the seal of a genuine seal, and the identification result is output as "true", otherwise the output is "false".

[0118] The seal image authenticity identification device based on deep learning provided by the present invention is described below. The seal image authenticity identification device based on deep learning described below and the seal image authenticity identification method based on deep learning described above can be referenced to each other.

[0119] Figure 4 is a schematic diagram of the structure of the seal image authenticity identification device based on deep learning provided by the present invention, such as Figure 4 As shown, the device 400 includes:

[0120] The acquisition module 410 is used to acquire the seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image;

[0121] The alignment module 420 is used to perform image registration and alignment between the seal image to be identified and the reference image;

[0122] The feature extraction module 430 is used to extract features of the seal image to be identified and the reference image after image registration and alignment through a Siamese-based feature extraction neural network, so as to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at the middle layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure;

[0123] The similarity measurement module 440 is used to perform similarity measurement based on the deep learning features of the seal image to be identified and the deep learning features of the reference image to obtain the similarity between the seal image to be identified and the reference image;

[0124] The identification module 450 is used to identify the authenticity of the seal image to be identified based on the similarity.

[0125] It should be noted that the seal image authenticity identification device based on deep learning provided by the present invention can implement the various embodiments of the above-mentioned seal image authenticity identification method based on deep learning and achieve the same technical effect, which will not be repeated here.

[0126] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the seal image authenticity identification method based on deep learning, including:

[0127] Acquire a seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image;

[0128] Performing image registration and alignment on the seal image to be identified and the reference image;

[0129] The feature extraction of the seal image to be identified and the reference image after image registration and alignment is performed through a Siamese-based feature extraction neural network to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure;

[0130] Based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, similarity measurement is performed to obtain the similarity between the seal image to be identified and the reference image;

[0131] Based on the similarity, the authenticity of the seal image to be identified is identified.

[0132] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0133] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the seal image authenticity identification method based on deep learning provided by the above methods, including:

[0134] Acquire a seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image;

[0135] Performing image registration and alignment on the seal image to be identified and the reference image;

[0136] The feature extraction of the seal image to be identified and the reference image after image registration and alignment is performed through a Siamese-based feature extraction neural network to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure;

[0137] Based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, similarity measurement is performed to obtain the similarity between the seal image to be identified and the reference image;

[0138] Based on the similarity, the authenticity of the seal image to be identified is identified.

[0139] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the seal image authenticity identification method based on deep learning provided by the above methods, including:

[0140] Acquire a seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image;

[0141] Performing image registration and alignment on the seal image to be identified and the reference image;

[0142] The feature extraction of the seal image to be identified and the reference image after image registration and alignment is performed through a Siamese-based feature extraction neural network to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure;

[0143] Based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, similarity measurement is performed to obtain the similarity between the seal image to be identified and the reference image;

[0144] Based on the similarity, the authenticity of the seal image to be identified is identified.

[0145] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A seal image authenticity identification method based on deep learning, characterized in that: include: Acquire a seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image; Performing image registration and alignment on the seal image to be identified and the reference image; Through a feature extraction neural network based on a Siamese neural network, feature extraction is performed on the seal image to be identified and the reference image after image registration and alignment, so as to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure; Based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, similarity measurement is performed to obtain the similarity between the seal image to be identified and the reference image; Based on the similarity, the authenticity of the seal image to be identified is identified; the feature extraction of the seal image to be identified and the reference image after image registration and alignment is performed by the Siamese-based feature extraction neural network to obtain the deep learning features of the seal image to be identified and the deep learning features of the reference image, including: The registered and aligned seal image and reference image are input into the Siamese-based feature extraction neural network, and the features extracted by each feature extraction sub-network are recalibrated through SE-Block; The recalibrated features corresponding to the seal image to be identified and the recalibrated features corresponding to the reference image are respectively fused to obtain the deep learning features of the seal image to be identified and the deep learning features of the reference image; the seal image to be identified and the reference image after image registration and alignment are input into a Siamese-based feature extraction neural network, and the features extracted by each feature extraction subnetwork are recalibrated through SE-Block, including: Inputting the seal image to be identified and the reference image after image registration and alignment into a Siamese-based feature extraction neural network to obtain a first set of features and a second set of features, wherein the first set of features includes features extracted by each feature extraction subnetwork from the seal image to be identified, and the second set of features includes features extracted by each feature extraction subnetwork from the reference image; The absolute difference between the first set of features and the second set of features is obtained, and based on the absolute difference, the first set of features and the second set of features are compressed and stimulated by SE-Block, so as to complete the recalibration of the first set of features and the second set of features by using the difference information between the seal image to be identified and the reference image.

2. The seal image authenticity identification method based on deep learning according to claim 1 is characterized in that: The Siamese-based feature extraction neural network is trained based on the following method: Acquire a seal authenticity data set, wherein the seal authenticity data set includes multiple sets of authenticity image pairs, each set of authenticity image pairs includes a genuine seal image and a fake seal image corresponding to the genuine seal image; The Siamese-based initial feature extraction neural network is trained based on the seal image authenticity image set to obtain the Siamese-based feature extraction neural network.

3. The seal image authenticity identification method based on deep learning according to claim 1 is characterized in that: The similarity measurement is performed based on the deep learning features of the seal image to be identified and the deep learning features of the reference image to obtain the similarity between the seal image to be identified and the reference image, including: By using a measurement model, based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, similarity measurement is performed to obtain the similarity between the seal image to be identified and the reference image; The measurement model adopts a single-layer fully connected network, and the measurement model is obtained by end-to-end training in combination with the Siamese-based feature extraction neural network.

4. The seal image authenticity identification method based on deep learning according to claim 3 is characterized in that: The loss function of the measurement model is expressed as follows: Wherein, y is the authenticity category of the seal image to be identified, y=0 means that the authenticity category of the seal image to be identified is false, and y=1 means that the authenticity category of the seal image to be identified is true; is the probability prediction value of the authenticity category of the seal image to be identified. The value range is [0,1].

5. A seal image authenticity identification device based on deep learning corresponding to the seal image authenticity identification method based on deep learning as claimed in claim 1, characterized in that: include: An acquisition module, used for acquiring a seal image to be identified and a reference image corresponding to the seal image to be identified, wherein the reference image is a genuine seal image; An alignment module, used for performing image registration and alignment between the seal image to be identified and the reference image; A feature extraction module is used to extract features of the seal image to be identified and the reference image after image registration and alignment through a Siamese-based feature extraction neural network, so as to obtain deep learning features of the seal image to be identified and deep learning features of the reference image, wherein the Siamese-based feature extraction neural network includes at least two feature extraction subnetworks interconnected at an intermediate layer through an SE-Block structure, and the network structure of the feature extraction subnetwork is a DenseNet structure; A similarity measurement module, used for performing similarity measurement based on the deep learning features of the seal image to be identified and the deep learning features of the reference image, so as to obtain the similarity between the seal image to be identified and the reference image; The identification module is used to identify the authenticity of the seal image to be identified based on the similarity.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the seal image authenticity identification method based on deep learning as described in any one of claims 1 to 4 are implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the seal image authenticity identification method based on deep learning as described in any one of claims 1 to 4 are implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the seal image authenticity identification method based on deep learning as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Deep forged image detection and model training method and device, equipment and medium

    CN112598643A

  • Dynamic target detection and tracking method

    CN114359689A

  • Image recognition method and device, computer equipment and storage medium

    CN114549849A

  • Seal identification method and device and storage medium

    CN115810196A

  • Deformable object similarity detection method based on Radon transformation and electronic equipment

    CN116310416A

Cited By

  • Method, system and equipment for identifying validity of voucher file and medium

    CN120877295A

  • A method, system, device, and medium for verifying the validity of a credential document.

    CN120877295B