WO2021164481A1 - Neural network model-based automatic handwritten signature verification method and device - Google Patents
Neural network model-based automatic handwritten signature verification method and device Download PDFInfo
- Publication number
- WO2021164481A1 WO2021164481A1 PCT/CN2021/072021 CN2021072021W WO2021164481A1 WO 2021164481 A1 WO2021164481 A1 WO 2021164481A1 CN 2021072021 W CN2021072021 W CN 2021072021W WO 2021164481 A1 WO2021164481 A1 WO 2021164481A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- feature vector
- vector sequence
- signature image
- neural network
- network model
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/30—Writer recognition; Reading and verifying signatures
- G06V40/33—Writer recognition; Reading and verifying signatures based only on signature image, e.g. static signature recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/048—Activation functions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
Definitions
- This application relates to the field of artificial intelligence technology, and in particular to a method and device for automatic verification of handwritten signatures based on a neural network model.
- the signature scheme of the electronic signature link mainly includes two methods: check signature and handwritten signature on the tablet.
- checking the signature cannot verify whether the signature is the user's own signature; the current technology for writing tablet signatures only allows the user to sign by hand, but the content of the user's handwritten signature is not verified, and there is no verification method in the existing business scenario.
- the scenario of verifying whether the signature text in the user's handwritten signature is the name of the person.
- the embodiments of the present application provide a method and device for automatic verification of handwritten signatures based on a neural network model, aiming to solve the problem of the inability to verify user handwritten signatures in Chinese handwritten signatures in the prior art.
- an embodiment of the present application provides a method for automatic verification of a handwritten signature based on a neural network model, which includes:
- the name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- an embodiment of the present application provides an automatic verification device of a handwritten signature based on a neural network model, which includes:
- An image preprocessing unit for receiving a Chinese signature image input by a user, and preprocessing the Chinese signature image according to an image preprocessing model to obtain a preprocessed Chinese signature image;
- a first feature vector sequence generating unit configured to place the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence
- the second feature vector sequence generating unit is configured to input the feature vector sequence into a pre-trained bidirectional cyclic neural network model and output it to generate a second feature vector sequence;
- a third feature vector sequence generating unit configured to combine the first feature vector sequence and the second feature vector sequence with the feature vectors at the corresponding positions according to a preset splicing manner to generate a third feature vector sequence
- the classification and recognition unit is configured to classify and recognize the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;
- the verification unit is configured to verify the name according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- an embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the processor executes the Perform the following steps in the computer program:
- the name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- the embodiments of the present application also provide 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 processor executes the following steps :
- the name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- the embodiment of the application realizes end-to-end unconstrained Chinese character recognition under the premise of avoiding the segmentation of Chinese characters, solves the problem that the user's handwritten signature cannot be verified in the Chinese handwritten signature in the prior art, and improves The efficiency of automatic verification of Chinese handwritten signatures.
- FIG. 1 is a schematic flowchart of a method for automatically verifying a handwritten signature based on a neural network model provided by an embodiment of the application;
- FIG. 2 is a schematic diagram of an application scenario of a method for automatic verification of a handwritten signature based on a neural network model provided by an embodiment of the application;
- FIG. 3 is a schematic diagram of a sub-flow of a method for automatically verifying a handwritten signature based on a neural network model provided by an embodiment of the application;
- FIG. 4 is a schematic diagram of another sub-flow of the method for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the application;
- FIG. 5 is a schematic diagram of another sub-flow of the method for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the application;
- FIG. 6 is a schematic diagram of another sub-flow of the method for automatic verification of handwritten signatures based on neural network models provided by an embodiment of the application;
- FIG. 7 is a schematic block diagram of a device for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the application;
- FIG. 8 is a schematic block diagram of subunits of a device for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the application;
- FIG. 9 is a schematic block diagram of another sub-unit of the device for automatic verification of handwritten signatures based on neural network model provided by an embodiment of the application;
- FIG. 10 is a schematic block diagram of another sub-unit of the device for automatic verification of handwritten signatures based on neural network model provided by an embodiment of the application;
- FIG. 11 is a schematic block diagram of another sub-unit of the apparatus for automatic verification of handwritten signatures based on neural network model provided by an embodiment of the application;
- FIG. 12 is a schematic block diagram of a computer device provided by an embodiment of the application.
- Figure 1 is a schematic flowchart of a method for automatic verification of a handwritten signature based on a neural network model provided by an embodiment of the application
- Figure 2 is a handwritten signature based on a neural network model provided by an embodiment of the application
- Schematic diagram of the application scenario of the automatic verification method The method for automatic verification of handwritten signatures based on the neural network model is applied to the management server 10, and multiple user terminals 20 and external service terminals 30 establish network connections with the management server 10 to perform automatic verification of Chinese handwritten signatures.
- the management server 10 is used to recognize the Chinese handwritten signature of the user terminal 20 and verify whether the user's signature is his own signature. This method is executed by the application software installed in the management server 10.
- the method for automatic verification of handwritten signatures based on the neural network model of this application is based on the neural network, which can realize the automatic recognition of signatures and then automatically verify the signature.
- This application can be applied to scenarios that require automatic verification of signature files, such as applications In the existing online loan process, the link of manually reviewing the contract signature can be omitted and can effectively prevent the signatory's handwritten signature from being inconsistent with the actual situation. While improving the user experience, this application can realize fully automatic credit business contract signing without manual review, thereby improving the accuracy of review and processing efficiency.
- the method includes steps S110 to S160.
- S110 Receive a Chinese signature image input by a user, and preprocess the Chinese signature image according to an image preprocessing model to obtain a preprocessed Chinese signature image.
- the Chinese signature image input by the user is received, and the Chinese signature image is preprocessed according to the image preprocessing model to obtain the preprocessed Chinese signature image.
- the image preprocessing model is used to adjust each character to a uniform proportion of height and width, while simulating the trajectory of the characters in the Chinese signature image to make it easier to recognize later, so the image preprocessing model performs the process on the Chinese signature image. Pretreatment is an essential step.
- the image preprocessing model includes nonlinear regularization rules and character segment interpolation processing rules.
- step S110 includes substeps S111 and S112.
- the non-linear regularization rule changes the size of the Chinese signature image while keeping the overall shape of the Chinese signature image unchanged, so that the characters in the Chinese signature image can be maintained to a greater extent. , The distortion is small.
- the conversion formula is:
- W represents the original width of the character
- H represents the original height of the character
- W' represents the normalized width of the character
- H' represents the normalized height of the character
- m represents The conversion ratio of the width of the character
- n represents the conversion ratio of the height of the character.
- (x, y) represents the original point coordinates of the character
- (x′, y′) represents the original point coordinates of the character after regularization
- m represents the conversion ratio of the width of the character
- n represents Is the conversion ratio of the height of the character.
- S112 Perform interpolation processing on the normalized Chinese signature image according to the segment interpolation processing rule of the character to generate the preprocessed Chinese signature image.
- the normalized Chinese signature image is subjected to interpolation processing according to the segmented interpolation processing rule of the character to generate the preprocessed Chinese signature image. Due to the user’s writing habits or the interference of the external environment, the written characters lack strokes or jitter, which makes the distance between the characters in the Chinese signature image inconsistent, which makes the handwritten text in the Chinese signature image more difficult in the subsequent process. Recognition, the segment interpolation processing rule of the character can make the handwritten text of the Chinese signature image easier to be recognized after the Chinese signature image is subjected to the interpolation processing.
- the segment interpolation processing rule of the characters performs segment interpolation processing on the characters in the normalized Chinese signature image according to a specific function.
- the piecewise linear interpolation constructor is used to simulate the trajectory of characters, thereby improving the recognition rate of handwritten characters.
- ⁇ (x) is a polynomial of degree k;
- the ⁇ (x) function is a piecewise k-th order interpolation polynomial of f(x) on the interval [a, b].
- Piecewise linear interpolation is also called piecewise first-order interpolation.
- ⁇ (x) is a first-order interpolation polynomial. The formula is:
- x, x i , x i+1 are points on the interval [a, b]
- y, y i , y i+1 are functions f(x) corresponding to points x, x i , x i+1
- the function value of ⁇ (x) is a piecewise linear interpolation polynomial.
- the pre-processed Chinese signature image is placed in a pre-trained convolutional neural network model to generate a first feature vector sequence.
- a pre-trained convolutional neural network model is used to perform feature extraction on it to generate a feature map of the preprocessed Chinese signature image, and the feature The feature vector corresponding to the image is classified according to the sequence of feature extraction of the pre-processed Chinese signature image in the pre-trained convolutional neural network model to generate a first feature vector sequence, that is, the first feature
- the vector sequence is composed of feature vectors corresponding to the feature map.
- the convolutional neural network model in this application is composed of an input layer, a hidden layer and a classification layer. The input layer is used to input the preprocessed Chinese signature image.
- the hidden layer removes the fully connected layer and only contains the convolution Layer and pooling layer.
- the Chinese handwritten signature needs to be recognized in this application. Since the characters in the handwritten signature are Chinese characters, and Chinese characters are hieroglyphs, China's national standard GB2312-80 for Chinese characters defines 3755 commonly used Chinese characters as one Class-level font library, 3008 Chinese characters are used as the second-level font library. Among all the Chinese characters in the second-level font library, about 2500 Chinese characters are used daily. Therefore, the training selected in this application is in the process of training the convolutional neural network. Text Chinese characters include 3755 commonly used Chinese characters in the first-level font library and 2975 Chinese characters in the second-level font library.
- step S120 includes sub-steps S121, S122, and S123.
- the object of the convolution operation is a set of multi-dimensional matrices.
- the convolution is actually multiplying different parts of the matrix with the elements at each position of the convolution kernel matrix. Then sum up.
- pooling is a method of aggregating features of adjacent locations.
- the pooled features have certain translation and rotation invariance, at the same time it can reduce the number of features and increase the computational efficiency.
- Commonly used pooling operations generally have two methods: average pooling and maximum pooling, that is, take the maximum value of the corresponding area or average it as the element value after pooling, and finally obtain the vector matrix corresponding to the deep features of the Chinese signature image .
- the classification layer can be regarded as a specific activation function layer, used to classify the information obtained by the previous layer.
- the activation function used in the activation function layer is the Sigmoid function, and the Sigmoid function is unlikely to cause the problem of gradient disappearance during the back propagation process, making it easier to train the convolutional neural network model.
- the signature in the Chinese signature image in this embodiment is "Ma Dashuai"
- the processed Chinese signature image is set to be represented by a 64X96X1 three-dimensional array, and each dimension represents the processed Chinese signature.
- Set the convolutional neural network to consist of 14 layers and divide them into 5 groups. Each of the first four groups consists of a convolutional layer, an activation function layer, and a pooling layer. The last group contains only one convolutional layer and one activation. Function layer.
- Table 1 The detailed configuration is shown in Table 1:
- the first feature vector sequence is input into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence.
- the pre-trained bidirectional cyclic neural network model is composed of two cyclic neural networks with opposite directions, and the two cyclic neural networks with opposite directions respectively receive the first feature vector sequence, so that the two cyclic neural networks are in opposite directions.
- the cyclic neural network respectively outputs a set of feature vector sequences to obtain two sets of feature vector sequences, and the two sets of feature vector sequences are spliced in a head-to-tail splicing manner to finally obtain the second feature vector sequence.
- One of the advantages of the recurrent neural network is that it does not require the position of each element in the sequence target image during training and testing. Because the traditional recurrent neural network has a very good effect in dealing with time series problems, there are still some problems. The more serious one is that the gradient disappears or the gradient explodes easily.
- two reverse long and short-term memory networks receive the feature vector sequence output by the convolutional neural network and obtain an output feature vector sequence respectively.
- the feature vectors at the corresponding positions of the two output feature vector sequences are spliced to form
- the second feature vector sequence of the context information in the Chinese signature image is extracted.
- the selected Chinese character samples are 6,730 Chinese characters.
- the step of calculating the output information of the memory network of a certain second feature vector is divided into five steps, where the second feature vector sequence is composed of multiple second feature vectors.
- the calculation result of X t + b f can be calculated as x input activation function ⁇ to obtain f(t); W f , U f and b f are the parameter values of the formula in this cell; h t-1 is the value of the previous cell Output gate information; X t is the
- C t C t-1 ⁇ f(t)+i(t) ⁇ a(t)
- C is the cell memory information accumulated in each calculation process
- C t is the output of the current cell Cell memory information
- C t-1 is the cell memory information output by the previous cell
- ⁇ is the vector operator
- the calculation process of C t-1 ⁇ f(t) is to divide the value of each dimension in the vector C t-1 Multiplying by f(t), the calculated vector dimension is the same as the dimension in the vector C t-1.
- S140 Join the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence.
- the first feature vector sequence and the second feature vector sequence are spliced according to a preset splicing manner to generate a third feature vector sequence.
- a preset splicing manner to generate a third feature vector sequence.
- two sets of feature vector sequences can be obtained, that is, the first feature vector Sequence and the second feature vector sequence.
- the first feature vector sequence and the second feature vector sequence are spliced end to end to obtain the third feature vector sequence.
- the third feature vector sequence is classified and recognized according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image.
- One of the advantages of the recurrent neural network is that it does not require the position of each element in the sequence target image during training and testing.
- the selected Chinese character samples are 6,730 Chinese characters, and a stop character is also added.
- the stop character is mainly used to indicate the end of a character sequence, so this application uses The size of the character set of the training text is 6731.
- step S150 includes sub-steps S151 to S153.
- Input the third feature vector sequence into the cyclic neural network model to generate the hidden state of the cyclic neural unit specifically, input the third feature vector sequence into the cyclic neural unit in the cyclic neural network model .
- the cyclic neural unit calculates the third feature vector sequence to obtain the hidden state of the cyclic neural unit, wherein the hidden state is used to record that the feature vector sequence is input to the cyclic neural unit at the current moment And output data from the cyclic neural unit.
- the hidden state is received through a preset attention mechanism and the feature vector sequence related to the hidden state is searched to obtain the feature vector sequence input at the next moment and input it to the recurrent neural unit To update the hidden state.
- the attention mechanism receives the hidden state of the cyclic neural unit and searches for a feature vector sequence related to the hidden state of the cyclic neural unit, and compares the searched information related to the hidden state of the cyclic neural unit A weighted average calculation is performed on the feature vector sequence to obtain the feature vector sequence input to the recurrent neural unit at the next moment and input it to the recurrent neural unit to update the hidden state.
- the related formula is as follows:
- c i represents the feature vector sequence that can be used as the next input
- h j represents the feature vector sequence related to the hidden state
- a ij is the weight corresponding to h j at time i
- T x is the sequence corresponding to the hidden state.
- the number of state-related feature vector sequences, a ij can be regarded as the probability of being selected by h j
- c i is the expectation of the feature vector sequence related to the hidden state.
- the calculation formula of a ij is as follows:
- ⁇ is an evaluation function used to estimate the correlation between the feature vector sequence and the hidden state in the recurrent neural network
- s i-1 is the hidden state of the recurrent neural unit at time i-1.
- the classifier receives the hidden state and classifies and recognizes it to generate the name in the Chinese signature image.
- the classifier receives the hidden state and classifies and recognizes it to generate the name in the Chinese signature image. Specifically, the classifier uses a Sigmoid function to normalize the hidden state in the recurrent neural unit to predict the name in the Chinese signature image.
- a three-layer BP neural network with a 6731-dimensional vector output is used as the classifier and the hyperbolic tangent function is used as the activation function.
- the calculation process is as follows:
- h i d ij is the hidden state of the recurrent neural unit when h j is evaluated at time i
- e ij is the score
- w 11 and w 12 are the second-layer weights of the BP neural network with three layers
- b is The bias term
- w 21 is the weight of the third layer of the BP neural network with three layers.
- this embodiment uses the Sigmoid function to normalize e ij to obtain a ij .
- the name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes. Due to the differences between Chinese characters and English, numbers and other character forms, when Chinese characters are stored in the terminal device, the Chinese characters are converted into corresponding character codes, and the character codes are stored in a binary manner. From the management server To read the corresponding Chinese character in 10, the stored character code needs to be obtained, and the character code is parsed through the corresponding relationship between the character code and the Chinese character to obtain the Chinese character character.
- the code conversion rule can convert the characters contained in the name to obtain the character code corresponding to each character.
- the regular expression can be used to verify the converted character code. When a character fails the check, then This information is fed back to the front end and the user is prompted to sign again.
- the name verification model includes code conversion rules and regular expressions. As shown in FIG. 6, step S160 includes sub-steps S161 and S162.
- the name is converted into a character code corresponding to the name according to the code conversion rule.
- the encoding conversion rules include the rules for converting each Chinese character, that is, each character corresponds to a character encoding
- the encoding conversion rules are the rules for converting characters using Unicode character set encoding, including UTF-8.
- UTF-8 encoding method corresponds to the character encoding of commonly used Chinese characters.
- UTF-8 is convenient for different computers to use the network to transmit text in different languages and encodings.
- UTF-16 encoding method Corresponding to the character encoding of Chinese characters other than UTF-8, the character encoding is represented by hexadecimal number.
- Regular expression is a kind of logical formula for string manipulation, which is to use some pre-defined specific characters and the combination of these specific characters to form a regular string, and the regular string is used to express one of the string Kind of filtering logic.
- the regular expression can be used to verify the obtained name, which can be verified by whether the obtained name is consistent with the user information stored in the management server 10.
- the management service terminal feeds back this information To the front end, prompt the user to re-sign.
- the embodiment of the present application also provides an apparatus 100 for automatic verification of a handwritten signature based on a neural network model, which is used to execute any embodiment of the aforementioned method for automatic verification of a handwritten signature based on a neural network model.
- FIG. 7 is a schematic block diagram of the apparatus 100 for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the present application.
- the device can be configured in the management server 10.
- the device 100 for automatic verification of handwritten signatures based on the neural network model includes an image preprocessing unit 110, a first feature vector sequence generating unit 120, a second feature vector sequence generating unit 130, and a third feature vector sequence.
- the generation unit 140, the classification recognition unit 150, and the verification unit 160 includes an image preprocessing unit 110, a first feature vector sequence generating unit 120, a second feature vector sequence generating unit 130, and a third feature vector sequence.
- the image preprocessing unit 110 is configured to receive a Chinese signature image input by a user, and preprocess the Chinese signature image according to an image preprocessing model to obtain a preprocessed Chinese signature image.
- the image preprocessing unit 110 includes a non-linear regularization unit 111 and a character segment interpolation processing unit 112.
- the non-linear regularization unit 111 is configured to perform regularization processing on the Chinese signature image according to the non-linear regularization rule to enlarge or reduce the Chinese signature image.
- the character segment interpolation processing unit 112 is configured to perform interpolation processing on the normalized Chinese signature image according to the character segment interpolation processing rule to generate the preprocessed Chinese signature image.
- the first feature vector sequence generating unit 120 is configured to place the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence.
- the first feature vector sequence generating unit 120 includes an image shallow feature generating unit 121, an image deep feature generating unit 122 and a sequence generating unit 123.
- the image shallow feature generation unit 121 is configured to input the preprocessed Chinese signature image to the convolutional layer of the convolutional neural network model for convolution processing to obtain the corresponding shallow feature of the Chinese signature image Vector matrix.
- the image deep feature generation unit 122 is configured to input the vector matrix corresponding to the shallow features of the Chinese signature image to the pooling layer of the convolutional neural network model for pooling processing to obtain the deep features of the Chinese signature image The corresponding vector matrix.
- the sequence generating unit 123 is configured to input the vector matrix corresponding to the deep features of the Chinese signature image to the output layer of the convolutional neural network model for classification processing to form the first feature vector sequence.
- the second feature vector sequence generating unit 130 is configured to input the feature vector sequence into a pre-trained bidirectional cyclic neural network model and output it to generate a second feature vector sequence.
- the third feature vector sequence generating unit 140 is configured to combine the first feature vector sequence and the second feature vector sequence with the feature vectors at the corresponding positions according to a preset stitching manner to generate a third feature vector sequence.
- the classification and recognition unit 150 is configured to classify and recognize the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image.
- the classification recognition unit 150 includes a hidden state generation unit 151, a hidden state update unit 152 and a name generation unit 153.
- the hidden state generating unit 151 is configured to input the third feature vector sequence into the recurrent neural network model to generate the hidden state of the recurrent neural unit.
- the hidden state update unit 152 is configured to receive the hidden state through a preset attention mechanism and search for a feature vector sequence related to the hidden state to obtain the feature vector sequence input at the next moment and input it into the loop
- the neural unit updates the hidden state.
- the name generating unit 153 is configured to receive the hidden state through a classifier and classify and recognize it, so as to identify the name in the Chinese signature image.
- the verification unit 160 is configured to verify the name according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- the verification unit 160 includes a character code conversion unit 161 and a character code verification unit 162.
- the character code conversion unit 161 is configured to convert the name into a character code corresponding to the name according to the code conversion rule.
- the character encoding verification unit 162 is configured to verify the character encoding corresponding to the name with the corresponding character encoding of the name stored in advance according to the regular expression to obtain a verification of whether the Chinese signature image passes result.
- FIG. 12 is a schematic block diagram of a computer device according to an embodiment of the present application.
- the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
- the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
- the processor 502 can execute an automatic verification method of a handwritten signature based on a neural network model.
- the processor 502 is used to provide calculation and control capabilities, and support the operation of the entire computer device 500.
- the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503.
- the processor 502 can execute the automatic verification of the handwritten signature based on the neural network model.
- the network interface 505 is used for network communication, such as providing data information transmission.
- the specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
- the processor 502 is configured to run a computer program 5032 stored in a memory to implement any embodiment of the method for automatic verification of a handwritten signature based on a neural network model.
- the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors 502, or digital signal processors 502 (Digital Signal Processors, DSPs). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor 502 may be a microprocessor 502 or the processor 502 may also be any conventional processor 502 and the like.
- the computer program may be stored in a storage medium, and the storage medium may be a computer-readable storage medium.
- the computer program is executed by at least one processor in the computer system to implement the process steps of the foregoing method embodiment.
- the computer-readable storage medium may be non-volatile or volatile.
- the storage medium stores a computer program that, when executed by a processor, implements any embodiment of the method for automatic verification of a handwritten signature based on a neural network model.
- the computer-readable storage medium may be a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk, or an optical disk, and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Molecular Biology (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Character Discrimination (AREA)
Abstract
Disclosed in the present application are a neural network model-based automatic handwritten signature verification method and device. The method comprises: receiving a Chinese signature image input by a user, and preprocessing the Chinese signature image according to an image preprocessing model; placing in a convolutional neural network model to generate a first feature vector sequence; then inputting into a bidirectional recurrent neural network model to generate a second feature vector sequence; combining the first feature vector sequence and the second feature vector sequence in a preset combination mode to generate a third feature vector sequence; and placing in a recurrent neural network model to for classification and recognition to generate a name, and placing in a name verification model to verify the name. On the basis of the OCR technology, the present application solves the problem in the prior art that a handwritten signature of a user cannot be verified in a Chinese handwritten signature, and improves the automatic verification efficiency of Chinese handwritten signatures.
Description
本申请要求于2020年02月18日提交中国专利局、申请号为202010099130.0,发明名称为“基于神经网络模型的手写签名的自动校验的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on February 18, 2020, the application number is 202010099130.0, and the invention title is "Method and Device for Automatic Verification of Handwritten Signature Based on Neural Network Model", all of which The content is incorporated in this application by reference.
本申请涉及人工智能技术领域,尤其涉及一种基于神经网络模型的手写签名的自动校验的方法和装置。This application relates to the field of artificial intelligence technology, and in particular to a method and device for automatic verification of handwritten signatures based on a neural network model.
目前,实现电子签名的方法有多种技术手段,其中手写签名的模式识别属于电子签名中以生物特征统计学为基础的识别标识。现有技术中电子签署环节的签名方案主要有勾选签名和写字板手写签名两种方式。发明人发现,勾选签名无法验证是否是用户本人签名;写字板手写签名在当前的技术只是让用户手写签名,但是对于用户手写签名的内容没有做验证,同时现有的业务场景验证方式中没有验证用户手写签名里面的签名文字是否是本人姓名这一场景。At present, there are many technical methods for implementing electronic signatures, among which the pattern recognition of handwritten signatures belongs to the identification mark based on biometric statistics in electronic signatures. In the prior art, the signature scheme of the electronic signature link mainly includes two methods: check signature and handwritten signature on the tablet. The inventor found that checking the signature cannot verify whether the signature is the user's own signature; the current technology for writing tablet signatures only allows the user to sign by hand, but the content of the user's handwritten signature is not verified, and there is no verification method in the existing business scenario. The scenario of verifying whether the signature text in the user's handwritten signature is the name of the person.
发明内容Summary of the invention
本申请实施例提供了一种基于神经网络模型的手写签名的自动校验的方法和装置,旨在解决现有技术中的中文手写签名中存在无法对用户手写签名进行验证的问题。The embodiments of the present application provide a method and device for automatic verification of handwritten signatures based on a neural network model, aiming to solve the problem of the inability to verify user handwritten signatures in Chinese handwritten signatures in the prior art.
第一方面,本申请实施例提供了一种基于神经网络模型的手写签名的自动校验的方法,其包括:In the first aspect, an embodiment of the present application provides a method for automatic verification of a handwritten signature based on a neural network model, which includes:
接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像;Receiving the Chinese signature image input by the user, and preprocessing the Chinese signature image according to the image preprocessing model to obtain the preprocessed Chinese signature image;
将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列;Placing the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence;
在预先训练好的双向循环神经网络模型中输入所述第一特征向量序列以生成第二特征向量序列;Input the first feature vector sequence into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence;
按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列;Splicing the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence;
根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名;Classifying and recognizing the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;
根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
第二方面,本申请实施例提供了一种基于神经网络模型的手写签名的自动校验的装置,其包括:In the second aspect, an embodiment of the present application provides an automatic verification device of a handwritten signature based on a neural network model, which includes:
图像预处理单元,用于接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像;An image preprocessing unit for receiving a Chinese signature image input by a user, and preprocessing the Chinese signature image according to an image preprocessing model to obtain a preprocessed Chinese signature image;
第一特征向量序列生成单元,用于将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列;A first feature vector sequence generating unit, configured to place the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence;
第二特征向量序列生成单元,用于在预先训练好的双向循环神经网络模型中输入所述特征向量序列并将其输出以生成第二特征向量序列;The second feature vector sequence generating unit is configured to input the feature vector sequence into a pre-trained bidirectional cyclic neural network model and output it to generate a second feature vector sequence;
第三特征向量序列生成单元,用于按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列将对应位置的特征向量进行拼接以生成第三特征向量序列;A third feature vector sequence generating unit, configured to combine the first feature vector sequence and the second feature vector sequence with the feature vectors at the corresponding positions according to a preset splicing manner to generate a third feature vector sequence;
分类识别单元,用于根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名;The classification and recognition unit is configured to classify and recognize the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;
校验单元,用于根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The verification unit is configured to verify the name according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
第三方面,本申请实施例又提供了一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时执行以下步骤:In a third aspect, an embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the processor executes the Perform the following steps in the computer program:
接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像;Receiving the Chinese signature image input by the user, and preprocessing the Chinese signature image according to the image preprocessing model to obtain the preprocessed Chinese signature image;
将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列;Placing the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence;
在预先训练好的双向循环神经网络模型中输入所述第一特征向量序列以生成第二特征向量序列;Input the first feature vector sequence into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence;
按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列;Splicing the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence;
根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名;Classifying and recognizing the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;
根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
第四方面,本申请实施例还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行以下步骤:In a fourth aspect, the embodiments of the present application also provide 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 processor executes the following steps :
接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像;Receiving the Chinese signature image input by the user, and preprocessing the Chinese signature image according to the image preprocessing model to obtain the preprocessed Chinese signature image;
将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列;Placing the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence;
在预先训练好的双向循环神经网络模型中输入所述第一特征向量序列以生成第二特征向量序列;Input the first feature vector sequence into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence;
按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列;Splicing the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence;
根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名;Classifying and recognizing the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;
根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
本申请实施例在避免对中文字符进行分割的前提下,实现了端到端的无约束中文字符识别,解决了现有技术中的中文手写签名中存在无法对用户手写签名进行验证的问题,提高了中文手写签名的自动校验的效率。The embodiment of the application realizes end-to-end unconstrained Chinese character recognition under the premise of avoiding the segmentation of Chinese characters, solves the problem that the user's handwritten signature cannot be verified in the Chinese handwritten signature in the prior art, and improves The efficiency of automatic verification of Chinese handwritten signatures.
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1为本申请实施例提供的基于神经网络模型的手写签名的自动校验的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for automatically verifying a handwritten signature based on a neural network model provided by an embodiment of the application;
图2为本申请实施例提供的基于神经网络模型的手写签名的自动校验的方法的应用场景示意图;2 is a schematic diagram of an application scenario of a method for automatic verification of a handwritten signature based on a neural network model provided by an embodiment of the application;
图3为本申请实施例提供的基于神经网络模型的手写签名的自动校验的方法的子流程示意图;FIG. 3 is a schematic diagram of a sub-flow of a method for automatically verifying a handwritten signature based on a neural network model provided by an embodiment of the application;
图4为本申请实施例提供的基于神经网络模型的手写签名的自动校验的方法的另一子流程示意图;4 is a schematic diagram of another sub-flow of the method for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the application;
图5为本申请实施例提供的基于神经网络模型的手写签名的自动校验的方法的另一子流程示意图;FIG. 5 is a schematic diagram of another sub-flow of the method for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the application;
图6为本申请实施例提供的基于神经网络模型的手写签名的自动校验的方法的另一子流程示意图;6 is a schematic diagram of another sub-flow of the method for automatic verification of handwritten signatures based on neural network models provided by an embodiment of the application;
图7为本申请实施例提供的基于神经网络模型的手写签名的自动校验的装置的示意性框图;FIG. 7 is a schematic block diagram of a device for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the application;
图8为本申请实施例提供的基于神经网络模型的手写签名的自动校验的装置的子单元意性框图;FIG. 8 is a schematic block diagram of subunits of a device for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the application;
图9为本申请实施例提供的基于神经网络模型的手写签名的自动校验的装置的另一子单元意性框图;9 is a schematic block diagram of another sub-unit of the device for automatic verification of handwritten signatures based on neural network model provided by an embodiment of the application;
图10为本申请实施例提供的基于神经网络模型的手写签名的自动校验的装置的另一子单元意性框图;10 is a schematic block diagram of another sub-unit of the device for automatic verification of handwritten signatures based on neural network model provided by an embodiment of the application;
图11为本申请实施例提供的基于神经网络模型的手写签名的自动校验的装置的另一子单元意性框图;11 is a schematic block diagram of another sub-unit of the apparatus for automatic verification of handwritten signatures based on neural network model provided by an embodiment of the application;
图12为本申请实施例提供的计算机设备的示意性框图。FIG. 12 is a schematic block diagram of a computer device provided by an embodiment of the application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
请参阅图1-图2,图1是本申请实施例提供的基于神经网络模型的手写签名的自动校验的方法的流程示意图;图2为本申请实施例提供的基于神经网络模型的手写签名的自动校验的方法的应用场景示意图。基于神经网络模型的手写签名的自动校验的方法应用于管理服务器10中,多台用户终端20及外联服务终端30通过与管理服务器10建立网络连接以进行中文手写签名自动校验。其中,管理服务器10即是用于执行识别用户终端20中文手写签名并验证用户签名是否是本人签名,该方法通过安装于管理服务器10中的应用软件进行执行,用户终端20是具有将用户手写签名转化成图片并传输到管理服务器10的终端设备。本申请的基于神经网络模型的手写签名的自动校验的方法基于神经网络可实现签名的自动识别进而对签名进行自动校验,本申请能够应用于需要对签名文件进行自动审核的场景,例如应用到现有的线上贷款流程中,可以省去人工审核合同签名的环节并能有效防止签署人手写签名与实际不符。本申请在提升用户体验的同时,能够实现全自动无需人工审核的信贷业务合同签署,从而提高审核的准确性和处理效率。Please refer to Figures 1 to 2. Figure 1 is a schematic flowchart of a method for automatic verification of a handwritten signature based on a neural network model provided by an embodiment of the application; Figure 2 is a handwritten signature based on a neural network model provided by an embodiment of the application Schematic diagram of the application scenario of the automatic verification method. The method for automatic verification of handwritten signatures based on the neural network model is applied to the management server 10, and multiple user terminals 20 and external service terminals 30 establish network connections with the management server 10 to perform automatic verification of Chinese handwritten signatures. Among them, the management server 10 is used to recognize the Chinese handwritten signature of the user terminal 20 and verify whether the user's signature is his own signature. This method is executed by the application software installed in the management server 10. It is converted into a picture and transmitted to the terminal device of the management server 10. The method for automatic verification of handwritten signatures based on the neural network model of this application is based on the neural network, which can realize the automatic recognition of signatures and then automatically verify the signature. This application can be applied to scenarios that require automatic verification of signature files, such as applications In the existing online loan process, the link of manually reviewing the contract signature can be omitted and can effectively prevent the signatory's handwritten signature from being inconsistent with the actual situation. While improving the user experience, this application can realize fully automatic credit business contract signing without manual review, thereby improving the accuracy of review and processing efficiency.
如图1所示,该方法包括步骤S110~S160。As shown in Fig. 1, the method includes steps S110 to S160.
S110、接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像。S110: Receive a Chinese signature image input by a user, and preprocess the Chinese signature image according to an image preprocessing model to obtain a preprocessed Chinese signature image.
接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像。由于不同的用户书写习惯不一样,就算是同一个用户,在不同的书写环境下,写出来的手写文字也会有差异,加上不同的书写设备也会对手写文字的识别产生影响,所述图像预处理模型用于将每个字符调整为统一比例的高度和宽度,同时模拟所述中文签名图像中的字符的轨迹使得后续更易识别,故所述图像预处理模型对所述中文签名图像进行预处理是一个必不可少的步骤。The Chinese signature image input by the user is received, and the Chinese signature image is preprocessed according to the image preprocessing model to obtain the preprocessed Chinese signature image. Because different users have different writing habits, even the same user, in different writing environments, the handwritten text written will be different, and different writing devices will also have an impact on the recognition of handwritten text. The image preprocessing model is used to adjust each character to a uniform proportion of height and width, while simulating the trajectory of the characters in the Chinese signature image to make it easier to recognize later, so the image preprocessing model performs the process on the Chinese signature image. Pretreatment is an essential step.
在一实施例中,所述图像预处理模型包括非线性规整化规则和字符的分段插值处理规则,如图3所示,步骤S110包括子步骤S111和S112。In an embodiment, the image preprocessing model includes nonlinear regularization rules and character segment interpolation processing rules. As shown in FIG. 3, step S110 includes substeps S111 and S112.
S111、根据所述非线性规整化规则将所述中文签名图像进行规整化处理,以放大或缩小所述中文签名图像。S111. Perform regularization processing on the Chinese signature image according to the non-linear regularization rule to enlarge or reduce the Chinese signature image.
根据所述非线性规整化规则将所述中文签名图像进行规整化处理,以放大或缩小所述中文签名图像。所述非线性规整化规则在保持所述中文签名图像的整体形状不变的前提下,对所述中文签名图像的大小进行改变,能较大程度的保持所述中文签名图像中的字符的原样,失真度小。其转换公式为:Perform regularization processing on the Chinese signature image according to the non-linear regularization rule to enlarge or reduce the Chinese signature image. The non-linear regularization rule changes the size of the Chinese signature image while keeping the overall shape of the Chinese signature image unchanged, so that the characters in the Chinese signature image can be maintained to a greater extent. , The distortion is small. The conversion formula is:
其中,W表示的是字符的原始宽度,H表示的是字符的原始高度,W‘表示的是字符经规整化后的宽度,H‘表示的是字符经规整化后的高度,m表示的是字符的宽度的转化比率,n表示的是字符的高度的转化比率。Among them, W represents the original width of the character, H represents the original height of the character, W'represents the normalized width of the character, H'represents the normalized height of the character, and m represents The conversion ratio of the width of the character, n represents the conversion ratio of the height of the character.
假设所述中文签名图像中的字符点坐标为(x,y),则点坐标对应的线性规整化计算公式为:Assuming that the character point coordinates in the Chinese signature image are (x, y), the linear regularization calculation formula corresponding to the point coordinates is:
其中,(x,y)表示的是字符的原始点坐标,(x′,y′)表示的是字符经规整化后的原始点坐标,m表示的是字符的宽度的转化比率,n表示的是字符的高度的转化比率。Among them, (x, y) represents the original point coordinates of the character, (x′, y′) represents the original point coordinates of the character after regularization, m represents the conversion ratio of the width of the character, and n represents Is the conversion ratio of the height of the character.
S112、根据所述字符的分段插值处理规则将规整化处理后的中文签名图像进行插值处理以生成预处理后的所述中文签名图像。S112: Perform interpolation processing on the normalized Chinese signature image according to the segment interpolation processing rule of the character to generate the preprocessed Chinese signature image.
根据所述字符的分段插值处理规则将规整化处理后的中文签名图像进行插值处理以生成预处理后的所述中文签名图像。由于用户书写习惯或者外界环境的干扰使得书写字符出现缺少笔画或者抖动,使得所述中文签名图像中的字符之间的距离不一致,从而导致所述中文签名图像中的手写文字在后续过程中较难识别,所述字符的分段插值处理规则将所述中文签名图像进行插值处理后能使所述中文签名图像的手写文字更易被识别。The normalized Chinese signature image is subjected to interpolation processing according to the segmented interpolation processing rule of the character to generate the preprocessed Chinese signature image. Due to the user’s writing habits or the interference of the external environment, the written characters lack strokes or jitter, which makes the distance between the characters in the Chinese signature image inconsistent, which makes the handwritten text in the Chinese signature image more difficult in the subsequent process. Recognition, the segment interpolation processing rule of the character can make the handwritten text of the Chinese signature image easier to be recognized after the Chinese signature image is subjected to the interpolation processing.
所述字符的分段插值处理规则依据特定函数来对规整化处理后的所述中文签名图像中的字符进行分段插值处理。利用分段线性插值构造函数来模拟字符的轨迹,从而提高手写文字的识别率。The segment interpolation processing rule of the characters performs segment interpolation processing on the characters in the normalized Chinese signature image according to a specific function. The piecewise linear interpolation constructor is used to simulate the trajectory of characters, thereby improving the recognition rate of handwritten characters.
假设有区间[a,b],区间上存在点x
0,x
1,x
2,…x
n,,其大小为a=x
0<x
1<x
2<…<x
n=b,f(x)是定义在区间的函数,其对应的函数值为y
0,y
1,y
2,…y
n,如果函数φ(x)满足一下条件:a、在区间[a,b]上,φ(x)函数是连续函数;b、在每个子区间[x
i,x
i+1](i=0,1,2…,n-1)上,φ(x)是次数为k的多项式;则φ(x)函数是f(x)在区间[a,b]上的分段k次插值多项式。其中,当k=1时,为分段线性插值,当k=2时为分段抛物线插值。
Suppose there is an interval [a, b], and there are points x 0 , x 1 , x 2 ,...x n on the interval, and the size is a=x 0 <x 1 <x 2 <…<x n =b,f( x) is a function defined in the interval, and its corresponding function value is y 0 , y 1 , y 2 , ... y n , if the function φ(x) satisfies the following conditions: a. In the interval [a, b], φ (x) The function is a continuous function; b. In each subinterval [x i , x i+1 ] (i=0, 1, 2..., n-1), φ(x) is a polynomial of degree k; Then the φ(x) function is a piecewise k-th order interpolation polynomial of f(x) on the interval [a, b]. Among them, when k=1, it is piecewise linear interpolation, when k=2, it is piecewise parabolic interpolation.
分段线性插值也叫分段一次插值,在每个子区间[x
i,x
i+1](i=0,1,2…,n-1)上,φ(x)是一次插值多项式,其公式为:
Piecewise linear interpolation is also called piecewise first-order interpolation. In each subinterval [x i , x i+1 ] (i=0, 1, 2..., n-1), φ(x) is a first-order interpolation polynomial. The formula is:
其中,x,x
i,x
i+1为区间[a,b]上的点,y,y
i,y
i+1为函数f(x)在点x,x
i,x
i+1上对应的函数值,φ(x)为分段线性插值多项式。
Among them, x, x i , x i+1 are points on the interval [a, b], y, y i , y i+1 are functions f(x) corresponding to points x, x i , x i+1 The function value of φ(x) is a piecewise linear interpolation polynomial.
S120、将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列。S120. Place the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence.
将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列。具体的,所述中文签名图像在进行预处理后,使用预先训练好的卷积神经网络模 型对其进行特征提取以生成所述预处理后的所述中文签名图像的特征图,将所述特征图对应的特征向量按照所述预处理后的所述中文签名图像在预先训练好的卷积神经网络模型中进行特征提取的先后顺序进行分类以生成第一特征向量序列,即所述第一特征向量序列由所述特征图对应的特征向量组成。本申请中的卷积神经网络模型是由输入层、隐含层和分类层组成,输入层用于输入预处理后的所述中文签名图像,隐含层去掉了全连接层并只包含卷积层和池化层。The pre-processed Chinese signature image is placed in a pre-trained convolutional neural network model to generate a first feature vector sequence. Specifically, after the Chinese signature image is preprocessed, a pre-trained convolutional neural network model is used to perform feature extraction on it to generate a feature map of the preprocessed Chinese signature image, and the feature The feature vector corresponding to the image is classified according to the sequence of feature extraction of the pre-processed Chinese signature image in the pre-trained convolutional neural network model to generate a first feature vector sequence, that is, the first feature The vector sequence is composed of feature vectors corresponding to the feature map. The convolutional neural network model in this application is composed of an input layer, a hidden layer and a classification layer. The input layer is used to input the preprocessed Chinese signature image. The hidden layer removes the fully connected layer and only contains the convolution Layer and pooling layer.
在具体实施过程中,本申请所需要进行识别的为中文手写签名,由于手写签名中的字符为汉字,而汉字属于象形文字,我国关于汉字的国家标准GB2312-80定义了3755个常用汉字作为一级字库,3008个汉字作为二级字库,在二级字库的所有汉字中,大约有2500个汉字较少的被日常使用,因此本申请在对卷积神经网络进行训练的过程中,选取的训练文本汉字包括一级字库中的3755个常用汉字和二级字库中2975个汉字,其中二级字库中剩余的“丨、丿、匚、冂、亻、勹、亠、冫、冖、讠、廴、凵、厶、艹、彡、犭、忄、丬、彳、扌、囗、宀、辶、彐、氵、纟、屮、灬、钅、礻、疒、衤”33个生僻字体剔除,因此本申请在对卷积神经网络模型进行训练的过程中所选取的汉字样本为6730个汉字。In the specific implementation process, the Chinese handwritten signature needs to be recognized in this application. Since the characters in the handwritten signature are Chinese characters, and Chinese characters are hieroglyphs, China's national standard GB2312-80 for Chinese characters defines 3755 commonly used Chinese characters as one Class-level font library, 3008 Chinese characters are used as the second-level font library. Among all the Chinese characters in the second-level font library, about 2500 Chinese characters are used daily. Therefore, the training selected in this application is in the process of training the convolutional neural network. Text Chinese characters include 3755 commonly used Chinese characters in the first-level font library and 2975 Chinese characters in the second-level font library. Among them, the remaining "丨, 丿, 匚, 冂, 亻, 勹, 亠, 冫, 冖, 讠, 廴 in the second-class font , 凵, 厶, 艹, 彡, 犭, 忄, 帬, 彳, 扌, 囗, 宀, 艶, 囗, 氵, 纟, 屮, 灬, 钅, 礻, 疒, 衤" 33 uncommon fonts are eliminated, so The sample of Chinese characters selected in the process of training the convolutional neural network model in this application is 6,730 Chinese characters.
在一实施例中,如图4所示,步骤S120包括子步骤S121、S122和S123。In an embodiment, as shown in FIG. 4, step S120 includes sub-steps S121, S122, and S123.
S121、将预处理后的所述中文签名图像输入至所述卷积神经网络模型的卷积层进行卷积处理,以得到所述中文签名图像浅层特征相对应的向量矩阵。S121. Input the preprocessed Chinese signature image to the convolutional layer of the convolutional neural network model for convolution processing to obtain a vector matrix corresponding to the shallow features of the Chinese signature image.
在对预处理后的所述中文签名图像处理的过程中,卷积操作的对象是一组多维矩阵,此时卷积其实就是对矩阵的不同局部与卷积核矩阵各个位置的元素相乘,然后求和。In the process of processing the preprocessed Chinese signature image, the object of the convolution operation is a set of multi-dimensional matrices. At this time, the convolution is actually multiplying different parts of the matrix with the elements at each position of the convolution kernel matrix. Then sum up.
S122、将所述中文签名图像浅层特征相对应的向量矩阵输入至所述卷积神经网络模型的池化层进行池化处理,以得到所述中文签名图像深层特征相对应的向量矩阵。S122. Input the vector matrix corresponding to the shallow features of the Chinese signature image to the pooling layer of the convolutional neural network model for pooling processing to obtain the vector matrix corresponding to the deep features of the Chinese signature image.
在卷积神经网络模型的内部,池化是一个将相邻位置特征进行聚合的一种方法。池化后的特征具有一定的平移、旋转不变性,同时还能减少特征数量,增加计算效率。常用的池化操作一般有平均池化和最大池化两种方式,即取对应区域的最大值或者平均至作为池化后的元素值,最终得到所述中文签名图像深层特征相对应的向量矩阵。Within the convolutional neural network model, pooling is a method of aggregating features of adjacent locations. The pooled features have certain translation and rotation invariance, at the same time it can reduce the number of features and increase the computational efficiency. Commonly used pooling operations generally have two methods: average pooling and maximum pooling, that is, take the maximum value of the corresponding area or average it as the element value after pooling, and finally obtain the vector matrix corresponding to the deep features of the Chinese signature image .
S123、将所述中文签名图像深层特征相对应的向量矩阵输入至所述卷积神经网络模型的输出层进行分类处理,以形成所述第一特征向量序列。S123. Input the vector matrix corresponding to the deep features of the Chinese signature image to the output layer of the convolutional neural network model for classification processing to form the first feature vector sequence.
在卷积神经网络模型中,分类层可以看作是一个特定的激活函数层,用来将前一层得到的信息进行分类操作。在本实施例中,激活函数层中使用的激活函数为Sigmoid函数,Sigmoid函数在进行反向传播的过程中不易引起梯度消失的问题,使得更易对卷积神经网络模型进行训练。In the convolutional neural network model, the classification layer can be regarded as a specific activation function layer, used to classify the information obtained by the previous layer. In this embodiment, the activation function used in the activation function layer is the Sigmoid function, and the Sigmoid function is unlikely to cause the problem of gradient disappearance during the back propagation process, making it easier to train the convolutional neural network model.
例如,本实施例中所述中文签名图像中签名为“马大帅”,则将处理后的所述中文签名图像设定由一个64X96X1的三维数组表示,各维度分别代表了处理后的所述中文签名图像的高度、宽度和通道数。设置卷积神经网络由14层组成,并分成5组,前四组每组由一个卷积层,一个激活函数层,一个池化层依次构成,最后一组仅包含一个卷积层和一个激活函数层。 其详细配置如表1所示:For example, the signature in the Chinese signature image in this embodiment is "Ma Dashuai", then the processed Chinese signature image is set to be represented by a 64X96X1 three-dimensional array, and each dimension represents the processed Chinese signature. The height, width, and number of channels of the image. Set the convolutional neural network to consist of 14 layers and divide them into 5 groups. Each of the first four groups consists of a convolutional layer, an activation function layer, and a pooling layer. The last group contains only one convolutional layer and one activation. Function layer. The detailed configuration is shown in Table 1:
表1卷积神经网络的配置Table 1 Configuration of Convolutional Neural Network
S130、在预先训练好的双向循环神经网络模型中输入所述第一特征向量序列以生成第二特征向量序列。S130. Input the first feature vector sequence into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence.
在预先训练好的双向循环神经网络模型中输入所述第一特征向量序列以生成第二特征向量序列。具体的,所述预先训练好的双向循环神经网络模型是由两个方向相反的循环神经网络组成,两个方向相反的循环神经网络分别接收所述第一特征向量序列,使得两个方向相反的循环神经网络各自输出一组特征向量序列,从而得到两组特征向量序列,将两组特征向量序列按照首尾拼接的方式进行拼接,最终得到所述第二特征向量序列。The first feature vector sequence is input into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence. Specifically, the pre-trained bidirectional cyclic neural network model is composed of two cyclic neural networks with opposite directions, and the two cyclic neural networks with opposite directions respectively receive the first feature vector sequence, so that the two cyclic neural networks are in opposite directions. The cyclic neural network respectively outputs a set of feature vector sequences to obtain two sets of feature vector sequences, and the two sets of feature vector sequences are spliced in a head-to-tail splicing manner to finally obtain the second feature vector sequence.
循环神经网络的优点之一是在训练和测试中不需要序列目标图像中每个元素的位置。由于传统的循环神经网络处理时间序列的问题的效果具有很好的效果,但是仍然存在着一些问题,其中较为严重的是容易出现梯度消失或者梯度爆炸的问题。One of the advantages of the recurrent neural network is that it does not require the position of each element in the sequence target image during training and testing. Because the traditional recurrent neural network has a very good effect in dealing with time series problems, there are still some problems. The more serious one is that the gradient disappears or the gradient explodes easily.
本实施例中采用的是两个反向的长短时记忆网络接收卷积神经网络输出的特征向量序列并分别得到一个输出特征向量序列,将两个输出特征向量序列对应位置的特征向量进行拼接以提取所述中文签名图像中上下文信息的第二特征向量序列。同时在对双向循环神经网络模型进行训练的过程中,所选取的汉字样本为6730个汉字。In this embodiment, two reverse long and short-term memory networks receive the feature vector sequence output by the convolutional neural network and obtain an output feature vector sequence respectively. The feature vectors at the corresponding positions of the two output feature vector sequences are spliced to form The second feature vector sequence of the context information in the Chinese signature image is extracted. At the same time, in the process of training the bidirectional cyclic neural network model, the selected Chinese character samples are 6,730 Chinese characters.
例如,计算某一条第二特征向量的记忆网络输出信息的步骤分为五步,其中,第二特征向量序列由多个第二特征向量组成。①计算遗忘门输出信息:f(t)=σ(W
f×h
t-1+U
f×X
t+b
f),其中f(t)为遗忘门参数值,0≤f(t)≤1;σ为激活函数计算符号,σ可具体表示为f(x)=(e
x-e
-x)/(e
x+e
-x), 则将W
f×h
t-1+U
f×X
t+b
f的计算结果作为x输入激活函数σ即可计算得到f(t);W
f、U
f及b
f均为本细胞中公式的参数值;h
t-1为上一细胞的输出门信息;X
t为该特征信息中输入当前细胞的1×M维的向量,若当前细胞为长短期记忆网络中的第一个细胞,则h
t-1为“0”。②计算输入门信息:i(t)=σ(W
i×h
t-1+U
i×X
t+b
i);a(t)=tanh(W
a×h
t-1+U
a×X
t+b
a),其中i(t)为输入门参数值,0≤i(t)≤1;W
i、U
i、b
i、W
a、U
a及b
a均为本细胞中公式的参数值,a(t)为所计算得到的输入门向量值,a(t)为一个1×M维的向量。③更新细胞记忆信息:C
t=C
t-1⊙f(t)+i(t)⊙a(t),C为每一次计算过程所累计的细胞记忆信息,C
t为当前细胞所输出的细胞记忆信息,C
t-1为上一细胞所输出的细胞记忆信息,⊙为向量运算符,C
t-1⊙f(t)的计算过程为将向量C
t-1中每一维度值分别与f(t)相乘,所计算的得到的向量维度与向量C
t-1中的维度相同。④计算输出门信息:o(t)=σ(W
o×h
t-1+Uo×X
t+b
o);h
t=o(t)⊙tanh(C
t),o(t)为输出门参数值,0≤o(t)≤1;W
o、U
o及b
o均为本细胞中公式的参数值,h
t为本细胞的输出门信息,h
t为一个1×M维的第二特征向量。⑤计算当前细胞的输出信息:y(t)=σ(V×h
t+c),V及c均为本细胞中公式的参数值。每一个细胞均计算得到一个输出信息,综合N个细胞的输出信息即可得到一条第二特征向量的记忆网络输出信息,一条第二特征向量的记忆网络输出信息为一个1×N维的第二特征向量。
For example, the step of calculating the output information of the memory network of a certain second feature vector is divided into five steps, where the second feature vector sequence is composed of multiple second feature vectors. ①Calculate the output information of the forget gate: f(t)=σ(W f ×h t-1 +U f ×X t +b f ), where f(t) is the parameter value of the forget gate, 0≤f(t)≤ 1; σ is the activation function calculation symbol, σ can be specifically expressed as f(x)=(e x -e -x )/(e x +e -x ), then W f ×h t-1 +U f × The calculation result of X t + b f can be calculated as x input activation function σ to obtain f(t); W f , U f and b f are the parameter values of the formula in this cell; h t-1 is the value of the previous cell Output gate information; X t is the 1×M-dimensional vector input to the current cell in the feature information. If the current cell is the first cell in the long-short-term memory network, h t-1 is "0". ②Calculate the input gate information: i(t)=σ(W i ×h t-1 +U i ×X t +b i ); a(t)=tanh(W a ×h t-1 +U a ×X t + b a), where i (t) is a parameter value input gate, 0≤i (t) ≤1; W i, U i, b i, W a, U a and b a are present in the cells of the formula Parameter value, a(t) is the calculated input gate vector value, and a(t) is a 1×M-dimensional vector. ③Update cell memory information: C t =C t-1 ⊙f(t)+i(t)⊙a(t), C is the cell memory information accumulated in each calculation process, C t is the output of the current cell Cell memory information, C t-1 is the cell memory information output by the previous cell, ⊙ is the vector operator, and the calculation process of C t-1 ⊙f(t) is to divide the value of each dimension in the vector C t-1 Multiplying by f(t), the calculated vector dimension is the same as the dimension in the vector C t-1. ④Calculate the output gate information: o(t)=σ(W o ×h t-1 +Uo×X t +b o ); h t =o(t)⊙tanh(C t ), o(t) is the output Gate parameter value, 0≤o(t)≤1; W o , U o and b o are the parameter values of the formula in this cell, h t is the output gate information of the cell, and h t is a 1×M dimension The second feature vector. ⑤Calculate the output information of the current cell: y(t)=σ(V×h t +c), V and c are the parameter values of the formula in this cell. Each cell is calculated to obtain an output information, and the output information of N cells can be combined to obtain the output information of the memory network of the second feature vector, and the output information of the memory network of the second feature vector is a 1×N-dimensional second Feature vector.
S140、按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列。S140: Join the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence.
按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列。预处理后的所述中文签名图像在经过卷积神经网络模型特征向量序列的提取以及双向循环神经网络模型特征向量序列的提取之后,可得到两组特征向量序列,也就是所述第一特征向量序列和所述第二特征向量序列。在本实施例中,将所述第一特征向量序列和第二特征向量序列进行首尾拼接以得到所述第三特征向量序列。The first feature vector sequence and the second feature vector sequence are spliced according to a preset splicing manner to generate a third feature vector sequence. After the pre-processed Chinese signature image is extracted from the feature vector sequence of the convolutional neural network model and the feature vector sequence of the bidirectional cyclic neural network model, two sets of feature vector sequences can be obtained, that is, the first feature vector Sequence and the second feature vector sequence. In this embodiment, the first feature vector sequence and the second feature vector sequence are spliced end to end to obtain the third feature vector sequence.
S150、根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名。S150. Classify and recognize the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image.
根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名。循环神经网络的优点之一是在训练和测试中不需要序列目标图像中每个元素的位置。具体的,在对循环神经网络模型进行训练的过程中,所选取的汉字样本为6730个汉字,同时还添加了一个停止字符,停止字符主要用来表示一个字符序列的结束,因此本申请所使用的训练文本的字符集的大小为6731。The third feature vector sequence is classified and recognized according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image. One of the advantages of the recurrent neural network is that it does not require the position of each element in the sequence target image during training and testing. Specifically, in the process of training the cyclic neural network model, the selected Chinese character samples are 6,730 Chinese characters, and a stop character is also added. The stop character is mainly used to indicate the end of a character sequence, so this application uses The size of the character set of the training text is 6731.
在一实施例中,如图5所示,步骤S150包括子步骤S151~S153。In one embodiment, as shown in FIG. 5, step S150 includes sub-steps S151 to S153.
S151、将所述第三特征向量序列输入至所述循环神经网络模型中,生成循环神经单元的隐藏状态。S151. Input the third feature vector sequence into the recurrent neural network model to generate a hidden state of the recurrent neural unit.
将所述第三特征向量序列输入至所述循环神经网络模型中,生成循环神经单元的隐藏状态,具体的,所述第三特征向量序列输入至所述循环神经网络模型中的循环神经单元中,所述循环神经单元对所述第三特征向量序列进行计算,以获得所述循环神经单元的隐藏状态,其中,所述隐藏状态用来记录特征向量序列在当前时刻输入至所述循环神经单元并从所述循 环神经单元中输出的数据。Input the third feature vector sequence into the cyclic neural network model to generate the hidden state of the cyclic neural unit, specifically, input the third feature vector sequence into the cyclic neural unit in the cyclic neural network model , The cyclic neural unit calculates the third feature vector sequence to obtain the hidden state of the cyclic neural unit, wherein the hidden state is used to record that the feature vector sequence is input to the cyclic neural unit at the current moment And output data from the cyclic neural unit.
S152、通过预置的注意力机制接收所述隐藏状态并搜索与所述隐藏状态相关的特征向量序列以得到下一时刻输入的特征向量序列并将其输入至所述循环神经单元以更新所述隐藏状态。S152. Receive the hidden state through a preset attention mechanism and search for the feature vector sequence related to the hidden state to obtain the feature vector sequence input at the next moment and input it to the recurrent neural unit to update the Hidden status.
在本实施例中,通过预置的注意力机制接收所述隐藏状态并搜索与所述隐藏状态相关的特征向量序列以得到下一时刻输入的特征向量序列并将其输入至所述循环神经单元以更新所述隐藏状态。具体的,所述注意力机制接收所述循环神经单元的隐藏状态并搜索与所述循环神经单元的隐藏状态相关的特征向量序列,并将搜索到的与所述循环神经单元的隐藏状态相关的特征向量序列进行加权平均计算,以得到下一时刻输入至所述循环神经单元的特征向量序列并将其输入至所述循环神经单元以更新所述隐藏状态。其相关公式如下:In this embodiment, the hidden state is received through a preset attention mechanism and the feature vector sequence related to the hidden state is searched to obtain the feature vector sequence input at the next moment and input it to the recurrent neural unit To update the hidden state. Specifically, the attention mechanism receives the hidden state of the cyclic neural unit and searches for a feature vector sequence related to the hidden state of the cyclic neural unit, and compares the searched information related to the hidden state of the cyclic neural unit A weighted average calculation is performed on the feature vector sequence to obtain the feature vector sequence input to the recurrent neural unit at the next moment and input it to the recurrent neural unit to update the hidden state. The related formula is as follows:
其中,c
i表示可作为下一次输入的特征向量序列,h
j表示的是与所述隐藏状态相关的特征向量序列,a
ij为i时刻h
j对应的权值,T
x为与所述隐藏状态相关的特征向量序列的数量,a
ij可视为被h
j选中的概率,c
i为与所述隐藏状态相关的特征向量序列的期望。a
ij计算公式如下:
Among them, c i represents the feature vector sequence that can be used as the next input, h j represents the feature vector sequence related to the hidden state, a ij is the weight corresponding to h j at time i , and T x is the sequence corresponding to the hidden state. The number of state-related feature vector sequences, a ij can be regarded as the probability of being selected by h j , and c i is the expectation of the feature vector sequence related to the hidden state. The calculation formula of a ij is as follows:
a
ij=σ(s
i-1,j
j)
a ij =σ(s i-1 , j j )
其中,σ为评价函数,用于估算特征向量序列与循环神经网络中的隐藏状态的相关性,s
i-1为i-1时刻的循环神经单元的隐藏状态。
Among them, σ is an evaluation function used to estimate the correlation between the feature vector sequence and the hidden state in the recurrent neural network, and s i-1 is the hidden state of the recurrent neural unit at time i-1.
S153、所述分类器接收所述隐藏状态并对其进行分类识别,以生成所述中文签名图像中的姓名。S153. The classifier receives the hidden state and classifies and recognizes it to generate the name in the Chinese signature image.
所述分类器接收所述隐藏状态并对其进行分类识别,以生成所述中文签名图像中的姓名。具体的,所述分类器对所述循环神经单元中的隐藏状态使用Sigmoid函数进行归一化处理以预测所述中文签名图像中的姓名。The classifier receives the hidden state and classifies and recognizes it to generate the name in the Chinese signature image. Specifically, the classifier uses a Sigmoid function to normalize the hidden state in the recurrent neural unit to predict the name in the Chinese signature image.
本实施例中所采用一个输出为6731维向量的具有三层的BP神经网络作为分类器并使用双曲正切函数作为激活函数,计算过程如下:In this embodiment, a three-layer BP neural network with a 6731-dimensional vector output is used as the classifier and the hyperbolic tangent function is used as the activation function. The calculation process is as follows:
h
id
ij=tanh(w
11×h
j+w
12×s
t-1+b)
h i d ij =tanh(w 11 ×h j +w 12 ×s t-1 +b)
e
ij=h
id
ij×w
21
e ij = h i d ij × w 21
其中,h
id
ij为i时刻对h
j评估时的所述循环神经单元隐藏状态,e
ij为得分,w
11和w
12为具有三层的BP神经网络的第二层权值,b为偏置项,w
21为具有三层的BP神经网络的第三层权值。
Where h i d ij is the hidden state of the recurrent neural unit when h j is evaluated at time i, e ij is the score, w 11 and w 12 are the second-layer weights of the BP neural network with three layers, and b is The bias term, w 21 is the weight of the third layer of the BP neural network with three layers.
由于具有三层的BP神经网络输出为一个实数,而选择每个特征向量序列的概率之和应该为1,因此本实施例采用Sigmoid函数对e
ij进行归一化处理,即可得到a
ij。
Since the output of the BP neural network with three layers is a real number, and the sum of the probabilities for selecting each feature vector sequence should be 1, this embodiment uses the Sigmoid function to normalize e ij to obtain a ij .
S160、根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。S160. Verify the name according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验 结果。由于汉字字符与英文、数字等字符形式存在差异,在终端设备中对汉字字符进行存储时,均是将汉字字符转换为对应的字符编码,并采用二进制的方式对字符编码进行存储,从管理服务器10中读取对应的汉字字符,则需获取所存储的字符编码,并通过字符编码与汉字的对应关系对字符编码进行解析得到汉字字符。编码转换规则即可对姓名中所包含的字符进行转换以得到每一字符对应的字符编码,正则表达式即可用于对转换所得的字符编码进行校验,当某一字符校验不通过,则将此信息反馈至前端,提示用户重新签名。The name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes. Due to the differences between Chinese characters and English, numbers and other character forms, when Chinese characters are stored in the terminal device, the Chinese characters are converted into corresponding character codes, and the character codes are stored in a binary manner. From the management server To read the corresponding Chinese character in 10, the stored character code needs to be obtained, and the character code is parsed through the corresponding relationship between the character code and the Chinese character to obtain the Chinese character character. The code conversion rule can convert the characters contained in the name to obtain the character code corresponding to each character. The regular expression can be used to verify the converted character code. When a character fails the check, then This information is fed back to the front end and the user is prompted to sign again.
在一实施例中,所述姓名校验模型包括编码转换规则和正则表达式,如图6所示,步骤S160包括子步骤S161和S162。In an embodiment, the name verification model includes code conversion rules and regular expressions. As shown in FIG. 6, step S160 includes sub-steps S161 and S162.
S161、根据所述编码转换规则将所述姓名转换为与所述姓名相对应的字符编码。S161. Convert the name into a character code corresponding to the name according to the code conversion rule.
根据所述编码转换规则将所述姓名转换为与所述姓名相对应的字符编码。具体的,编码转换规则中包含对每一汉字进行转换的规则,也即是每一字符对应一个字符编码,编码转换规则即为采用Unicode字符集编码对字符进行转换的规则,其中包含UTF-8编码方式、UTF-16编码方式等多种转换规则,UTF-8编码方式对应常用汉字的字符编码,UTF-8便于不同的计算机之间使用网络传输不同语言和编码的文字,UTF-16编码方式对应除UTF-8之外的其他非常用汉字的字符编码,字符编码采用十六进制数进行表示。The name is converted into a character code corresponding to the name according to the code conversion rule. Specifically, the encoding conversion rules include the rules for converting each Chinese character, that is, each character corresponds to a character encoding, and the encoding conversion rules are the rules for converting characters using Unicode character set encoding, including UTF-8. There are multiple conversion rules such as encoding method and UTF-16 encoding method. UTF-8 encoding method corresponds to the character encoding of commonly used Chinese characters. UTF-8 is convenient for different computers to use the network to transmit text in different languages and encodings. UTF-16 encoding method Corresponding to the character encoding of Chinese characters other than UTF-8, the character encoding is represented by hexadecimal number.
S162、根据所述正则表达式将所述姓名相对应的字符编码与预先存储的姓名的相对应的字符编码进行校验以得到所述中文签名图像是否通过的校验结果。S162. Verify the character code corresponding to the name with the character code corresponding to the name stored in advance according to the regular expression to obtain a verification result of whether the Chinese signature image passes.
根据所述正则表达式将所述姓名相对应的字符编码与预先存储的姓名的相对应的字符编码进行校验以得到所述中文签名图像是否通过的校验结果。正则表达式是对字符串操作的一种逻辑公式,就是用事先定义好的一些特定字符、及这些特定字符的组合,组成一个规则字符串,所述规则字符串用来表达对字符串的一种过滤逻辑。所述正则表达式即可用于对所得到的姓名进行校验,可通过所得到的姓名与管理服务器10中存储的用户的信息是否一致来进行校验。According to the regular expression, the character code corresponding to the name and the character code corresponding to the name stored in advance are checked to obtain a check result of whether the Chinese signature image passes. Regular expression is a kind of logical formula for string manipulation, which is to use some pre-defined specific characters and the combination of these specific characters to form a regular string, and the regular string is used to express one of the string Kind of filtering logic. The regular expression can be used to verify the obtained name, which can be verified by whether the obtained name is consistent with the user information stored in the management server 10.
若所述姓名的校验结果为通过,则判定所述中文签名图像中的签名为用户本人签名且用户签名生效;若所述姓名的校验结果为不通过,则管理服务终端将此信息反馈至前端,提示用户重新签名。If the verification result of the name is passed, it is determined that the signature in the Chinese signature image is the user's own signature and the user signature is valid; if the verification result of the name is not passed, the management service terminal feeds back this information To the front end, prompt the user to re-sign.
本申请实施例还提供一种基于神经网络模型的手写签名的自动校验的装置100,该装置用于执行前述基于神经网络模型的手写签名的自动校验的方法的任一实施例。具体地,请参阅图7,图7是本申请实施例提供的基于神经网络模型的手写签名的自动校验的装置100的示意性框图。该装置可以配置于管理服务器10中。The embodiment of the present application also provides an apparatus 100 for automatic verification of a handwritten signature based on a neural network model, which is used to execute any embodiment of the aforementioned method for automatic verification of a handwritten signature based on a neural network model. Specifically, please refer to FIG. 7, which is a schematic block diagram of the apparatus 100 for automatic verification of handwritten signatures based on a neural network model provided by an embodiment of the present application. The device can be configured in the management server 10.
如图7所示,基于神经网络模型的手写签名的自动校验的装置100包括图像预处理单元110、第一特征向量序列生成单元120、第二特征向量序列生成单元130、第三特征向量序列生成单元140、分类识别单元150、校验单元160。As shown in FIG. 7, the device 100 for automatic verification of handwritten signatures based on the neural network model includes an image preprocessing unit 110, a first feature vector sequence generating unit 120, a second feature vector sequence generating unit 130, and a third feature vector sequence. The generation unit 140, the classification recognition unit 150, and the verification unit 160.
图像预处理单元110,用于接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像。The image preprocessing unit 110 is configured to receive a Chinese signature image input by a user, and preprocess the Chinese signature image according to an image preprocessing model to obtain a preprocessed Chinese signature image.
在其他发明实施例中,如图8所示,所述图像预处理单元110包括非线性规整化单元111和字符的分段插值处理单元112。In other embodiments of the invention, as shown in FIG. 8, the image preprocessing unit 110 includes a non-linear regularization unit 111 and a character segment interpolation processing unit 112.
非线性规整化单元111,用于根据所述非线性规整化规则将所述中文签名图像进行规整化处理,以放大或缩小所述中文签名图像。The non-linear regularization unit 111 is configured to perform regularization processing on the Chinese signature image according to the non-linear regularization rule to enlarge or reduce the Chinese signature image.
字符的分段插值处理单元112,用于根据所述字符的分段插值处理规则将规整化处理后的中文签名图像进行插值处理以生成预处理后的所述中文签名图像。The character segment interpolation processing unit 112 is configured to perform interpolation processing on the normalized Chinese signature image according to the character segment interpolation processing rule to generate the preprocessed Chinese signature image.
第一特征向量序列生成单元120,用于将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列。The first feature vector sequence generating unit 120 is configured to place the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence.
在其他发明实施例中,如图9所示,所述第一特征向量序列生成单元120包括图像浅层特征生成单元121、图像深层特征生成单元122和序列生成单元123。In other embodiments of the invention, as shown in FIG. 9, the first feature vector sequence generating unit 120 includes an image shallow feature generating unit 121, an image deep feature generating unit 122 and a sequence generating unit 123.
图像浅层特征生成单元121,用于将预处理后的所述中文签名图像输入至所述卷积神经网络模型的卷积层进行卷积处理,以得到所述中文签名图像浅层特征相对应的向量矩阵。The image shallow feature generation unit 121 is configured to input the preprocessed Chinese signature image to the convolutional layer of the convolutional neural network model for convolution processing to obtain the corresponding shallow feature of the Chinese signature image Vector matrix.
图像深层特征生成单元122,用于将所述中文签名图像浅层特征相对应的向量矩阵输入至所述卷积神经网络模型的池化层进行池化处理,以得到所述中文签名图像深层特征相对应的向量矩阵。The image deep feature generation unit 122 is configured to input the vector matrix corresponding to the shallow features of the Chinese signature image to the pooling layer of the convolutional neural network model for pooling processing to obtain the deep features of the Chinese signature image The corresponding vector matrix.
序列生成单元123,用于将所述中文签名图像深层特征相对应的向量矩阵输入至所述卷积神经网络模型的输出层进行分类处理,以形成所述第一特征向量序列。The sequence generating unit 123 is configured to input the vector matrix corresponding to the deep features of the Chinese signature image to the output layer of the convolutional neural network model for classification processing to form the first feature vector sequence.
第二特征向量序列生成单元130,用于在预先训练好的双向循环神经网络模型中输入所述特征向量序列并将其输出以生成第二特征向量序列。The second feature vector sequence generating unit 130 is configured to input the feature vector sequence into a pre-trained bidirectional cyclic neural network model and output it to generate a second feature vector sequence.
第三特征向量序列生成单元140,用于按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列将对应位置的特征向量进行拼接以生成第三特征向量序列。The third feature vector sequence generating unit 140 is configured to combine the first feature vector sequence and the second feature vector sequence with the feature vectors at the corresponding positions according to a preset stitching manner to generate a third feature vector sequence.
分类识别单元150,用于根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名。The classification and recognition unit 150 is configured to classify and recognize the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image.
在其他发明实施例中,如图10所示,所述分类识别单元150包括隐藏状态生成单元151、隐藏状态更新单元152和姓名生成单元153。In other embodiments of the invention, as shown in FIG. 10, the classification recognition unit 150 includes a hidden state generation unit 151, a hidden state update unit 152 and a name generation unit 153.
隐藏状态生成单元151,用于将所述第三特征向量序列输入至所述循环神经网络模型中,生成循环神经单元的隐藏状态。The hidden state generating unit 151 is configured to input the third feature vector sequence into the recurrent neural network model to generate the hidden state of the recurrent neural unit.
隐藏状态更新单元152,用于通过预置的注意力机制接收所述隐藏状态并搜索与所述隐藏状态相关的特征向量序列以得到下一时刻输入的特征向量序列并将其输入至所述循环神经单元以更新所述隐藏状态。The hidden state update unit 152 is configured to receive the hidden state through a preset attention mechanism and search for a feature vector sequence related to the hidden state to obtain the feature vector sequence input at the next moment and input it into the loop The neural unit updates the hidden state.
姓名生成单元153,用于通过分类器接收所述隐藏状态并对其进行分类识别,以识别出所述中文签名图像中的姓名。The name generating unit 153 is configured to receive the hidden state through a classifier and classify and recognize it, so as to identify the name in the Chinese signature image.
校验单元160,用于根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The verification unit 160 is configured to verify the name according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
在其他发明实施例中,如图11所示,所述校验单元160包括字符编码转换单元161和字 符编码校验单元162。In other embodiments of the invention, as shown in FIG. 11, the verification unit 160 includes a character code conversion unit 161 and a character code verification unit 162.
字符编码转换单元161,用于根据所述编码转换规则将所述姓名转换为与所述姓名相对应的字符编码。The character code conversion unit 161 is configured to convert the name into a character code corresponding to the name according to the code conversion rule.
字符编码校验单元162、用于根据所述正则表达式将所述姓名相对应的字符编码与预先存储的姓名的相对应的字符编码进行校验以得到所述中文签名图像是否通过的校验结果。The character encoding verification unit 162 is configured to verify the character encoding corresponding to the name with the corresponding character encoding of the name stored in advance according to the regular expression to obtain a verification of whether the Chinese signature image passes result.
请参阅图12,图12是本申请实施例提供的计算机设备的示意性框图。Please refer to FIG. 12, which is a schematic block diagram of a computer device according to an embodiment of the present application.
参阅图12,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。Referring to FIG. 12, the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032被执行时,可使得处理器502执行基于神经网络模型的手写签名的自动校验的方法。该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行基于神经网络模型的手写签名的自动校验的方法。该网络接口505用于进行网络通信,如提供数据信息的传输等。本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute an automatic verification method of a handwritten signature based on a neural network model. The processor 502 is used to provide calculation and control capabilities, and support the operation of the entire computer device 500. The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the automatic verification of the handwritten signature based on the neural network model. Methods. The network interface 505 is used for network communication, such as providing data information transmission. Those skilled in the art can understand that the structure shown in FIG. 12 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现上述基于神经网络模型的手写签名的自动校验的方法的任一实施例。Wherein, the processor 502 is configured to run a computer program 5032 stored in a memory to implement any embodiment of the method for automatic verification of a handwritten signature based on a neural network model.
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器502、数字信号处理器502(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器502可以是微处理器502或者该处理器502也可以是任何常规的处理器502等。It should be understood that, in this embodiment of the application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors 502, or digital signal processors 502 (Digital Signal Processors, DSPs). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor 502 may be a microprocessor 502 or the processor 502 may also be any conventional processor 502 and the like.
本领域普通技术人员可以理解的是实现上述实施例的方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成。该计算机程序可存储于一存储介质中,该存储介质可以为计算机可读存储介质。该计算机程序被该计算机系统中的至少一个处理器执行,以实现上述方法的实施例的流程步骤。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments may be implemented by computer programs instructing relevant hardware. The computer program may be stored in a storage medium, and the storage medium may be a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the foregoing method embodiment.
因此,本申请还提供了一种计算机可读存储介质。该计算机可读存储介质可以是非易失性,也可以是易失性。该存储介质存储有计算机程序,该计算机程序当被处理器执行时实现上述基于神经网络模型的手写签名的自动校验的方法的任一实施例。Therefore, this application also provides a computer-readable storage medium. The computer-readable storage medium may be non-volatile or volatile. The storage medium stores a computer program that, when executed by a processor, implements any embodiment of the method for automatic verification of a handwritten signature based on a neural network model.
该计算机可读存储介质可以是U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The computer-readable storage medium may be a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk, or an optical disk, and other media that can store program codes.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置、设备和方法,可以通过 其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置、设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。In the several embodiments provided in this application, it should be understood that the disclosed devices, equipment, and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, and the division of the units is only a logical function division, and there may be other division methods in actual implementation. Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working processes of the devices, equipment and units described above can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Anyone familiar with the technical field can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Claims (20)
- 一种基于神经网络模型的手写签名的自动校验的方法,包括:A method for automatic verification of handwritten signatures based on neural network models, including:接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像;Receiving the Chinese signature image input by the user, and preprocessing the Chinese signature image according to the image preprocessing model to obtain the preprocessed Chinese signature image;将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列;Placing the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence;在预先训练好的双向循环神经网络模型中输入所述第一特征向量序列以生成第二特征向量序列;Input the first feature vector sequence into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence;按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列;Splicing the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence;根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名;Classifying and recognizing the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- 根据权利要求1所述的基于神经网络模型的手写签名的自动校验的方法,其中,所述图像预处理模型包括非线性规整化规则和字符的分段插值处理规则,所述根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像的步骤包括:The method for automatic verification of handwritten signatures based on a neural network model according to claim 1, wherein the image preprocessing model includes non-linear regularization rules and character segment interpolation processing rules, and the image preprocessing is based on The model preprocesses the Chinese signature image, and the steps of obtaining the preprocessed Chinese signature image include:根据所述非线性规整化规则将所述中文签名图像进行规整化处理,以放大或缩小所述中文签名图像;Performing regularization processing on the Chinese signature image according to the non-linear regularization rule to enlarge or reduce the Chinese signature image;根据所述字符的分段插值处理规则将规整化处理后的中文签名图像进行插值处理以生成预处理后的所述中文签名图像。The normalized Chinese signature image is subjected to interpolation processing according to the segmented interpolation processing rule of the character to generate the preprocessed Chinese signature image.
- 根据权利要求1所述的基于神经网络模型的手写签名的自动校验的方法,其中,所述将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列,包括:The method for automatic verification of handwritten signatures based on a neural network model according to claim 1, wherein the pre-processed Chinese signature image is placed in a pre-trained convolutional neural network model to generate the first A sequence of feature vectors, including:将预处理后的所述中文签名图像输入至所述卷积神经网络模型的卷积层进行卷积处理,以得到所述中文签名图像浅层特征相对应的向量矩阵;Input the preprocessed Chinese signature image to the convolutional layer of the convolutional neural network model for convolution processing to obtain a vector matrix corresponding to the shallow features of the Chinese signature image;将所述中文签名图像浅层特征相对应的向量矩阵输入至所述卷积神经网络模型的池化层进行池化处理,以得到所述中文签名图像深层特征相对应的向量矩阵;Inputting the vector matrix corresponding to the shallow features of the Chinese signature image to the pooling layer of the convolutional neural network model for pooling processing to obtain the vector matrix corresponding to the deep features of the Chinese signature image;将所述中文签名图像深层特征相对应的向量矩阵输入至所述卷积神经网络模型的输出层进行分类处理,以形成所述第一特征向量序列。The vector matrix corresponding to the deep features of the Chinese signature image is input to the output layer of the convolutional neural network model for classification processing to form the first feature vector sequence.
- 根据权利要求1所述的基于神经网络模型的手写签名的自动校验的方法,其中,所述按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列,包括:The method for automatic verification of handwritten signatures based on a neural network model according to claim 1, wherein the first feature vector sequence and the second feature vector sequence are spliced according to a preset splicing manner to generate a first The sequence of three eigenvectors, including:将所述第一特征向量序列和第二特征向量序列进行首尾拼接以得到第三特征向量序列。The first feature vector sequence and the second feature vector sequence are spliced end to end to obtain a third feature vector sequence.
- 根据权利要求1所述的基于神经网络模型的手写签名的自动校验的方法,其中,所述根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述 中文签名图像中的姓名的步骤包括:The method for automatic verification of handwritten signatures based on a neural network model according to claim 1, wherein the third feature vector sequence is classified and recognized according to a pre-trained recurrent neural network model to identify all The steps to describe the name in the Chinese signature image include:将所述第三特征向量序列输入至所述循环神经网络模型中,生成循环神经单元的隐藏状态;Inputting the third feature vector sequence into the recurrent neural network model to generate a hidden state of the recurrent neural unit;通过预置的注意力机制接收所述隐藏状态并搜索与所述隐藏状态相关的特征向量序列以得到下一时刻输入的特征向量序列并将其输入至所述循环神经单元以更新所述隐藏状态;Receive the hidden state through a preset attention mechanism and search for the feature vector sequence related to the hidden state to obtain the feature vector sequence input at the next moment and input it to the recurrent neural unit to update the hidden state ;通过分类器接收所述隐藏状态并对其进行分类识别,以识别出所述中文签名图像中的姓名。The hidden state is received by a classifier and classified and recognized to recognize the name in the Chinese signature image.
- 根据权利要求5所述的基于神经网络模型的手写签名的自动校验的方法,其中,所述通过分类器接收所述隐藏状态并对其进行分类识别,包括:The method for automatic verification of handwritten signatures based on a neural network model according to claim 5, wherein the receiving the hidden state by a classifier and classifying and recognizing it includes:采用Sigmoid函数对所述隐藏状态进行归一化处理并将归一化处理后的隐藏状态输入至具有三层的BP神经网络中进行分类识别。The Sigmoid function is used to normalize the hidden state, and the normalized hidden state is input into a BP neural network with three layers for classification and recognition.
- 根据权利要求1所述的基于神经网络模型的手写签名的自动校验的方法,其中,所述姓名校验模型包括编码转换规则和正则表达式,所述根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果的步骤包括:The method for automatically verifying handwritten signatures based on a neural network model according to claim 1, wherein the name verification model includes code conversion rules and regular expressions, and the preset name verification model is The step of verifying the name to obtain the verification result of whether the Chinese signature image passes or not includes:根据所述编码转换规则将所述姓名转换为与所述姓名相对应的字符编码;Converting the name into a character code corresponding to the name according to the code conversion rule;根据所述正则表达式将所述姓名相对应的字符编码与预先存储的姓名的相对应的字符编码进行校验以得到所述中文签名图像是否通过的校验结果。According to the regular expression, the character code corresponding to the name and the character code corresponding to the name stored in advance are checked to obtain a check result of whether the Chinese signature image passes.
- 一种基于神经网络模型的手写签名的自动校验的装置,包括:A device for automatically verifying handwritten signatures based on a neural network model, including:图像预处理单元,用于接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像;An image preprocessing unit for receiving a Chinese signature image input by a user, and preprocessing the Chinese signature image according to an image preprocessing model to obtain a preprocessed Chinese signature image;第一特征向量序列生成单元,用于将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列;A first feature vector sequence generating unit, configured to place the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence;第二特征向量序列生成单元,用于在预先训练好的双向循环神经网络模型中输入所述特征向量序列并将其输出以生成第二特征向量序列;The second feature vector sequence generating unit is configured to input the feature vector sequence into a pre-trained bidirectional cyclic neural network model and output it to generate a second feature vector sequence;第三特征向量序列生成单元,用于按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列将对应位置的特征向量进行拼接以生成第三特征向量序列;A third feature vector sequence generating unit, configured to combine the first feature vector sequence and the second feature vector sequence with the feature vectors at the corresponding positions according to a preset splicing manner to generate a third feature vector sequence;分类识别单元,用于根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名;The classification and recognition unit is configured to classify and recognize the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;校验单元,用于根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The verification unit is configured to verify the name according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时执行以下步骤:A computer device includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the following steps when executing the computer program:接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像;Receiving the Chinese signature image input by the user, and preprocessing the Chinese signature image according to the image preprocessing model to obtain the preprocessed Chinese signature image;将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征 向量序列;Placing the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence;在预先训练好的双向循环神经网络模型中输入所述第一特征向量序列以生成第二特征向量序列;Input the first feature vector sequence into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence;按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列;Splicing the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence;根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名;Classifying and recognizing the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- 根据权利要求9所述的计算机设备,其中,所述图像预处理模型包括非线性规整化规则和字符的分段插值处理规则,所述根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像的步骤包括:9. The computer device according to claim 9, wherein the image preprocessing model includes nonlinear regularization rules and character segment interpolation processing rules, and the Chinese signature image is preprocessed according to the image preprocessing model, The steps to obtain the preprocessed Chinese signature image include:根据所述非线性规整化规则将所述中文签名图像进行规整化处理,以放大或缩小所述中文签名图像;Performing regularization processing on the Chinese signature image according to the non-linear regularization rule to enlarge or reduce the Chinese signature image;根据所述字符的分段插值处理规则将规整化处理后的中文签名图像进行插值处理以生成预处理后的所述中文签名图像。The normalized Chinese signature image is subjected to interpolation processing according to the segmented interpolation processing rule of the character to generate the preprocessed Chinese signature image.
- 根据权利要求9所述的计算机设备,其中,所述将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列,包括:9. The computer device according to claim 9, wherein said placing the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence comprises:将预处理后的所述中文签名图像输入至所述卷积神经网络模型的卷积层进行卷积处理,以得到所述中文签名图像浅层特征相对应的向量矩阵;Input the preprocessed Chinese signature image to the convolutional layer of the convolutional neural network model for convolution processing to obtain a vector matrix corresponding to the shallow features of the Chinese signature image;将所述中文签名图像浅层特征相对应的向量矩阵输入至所述卷积神经网络模型的池化层进行池化处理,以得到所述中文签名图像深层特征相对应的向量矩阵;Inputting the vector matrix corresponding to the shallow features of the Chinese signature image to the pooling layer of the convolutional neural network model for pooling processing to obtain the vector matrix corresponding to the deep features of the Chinese signature image;将所述中文签名图像深层特征相对应的向量矩阵输入至所述卷积神经网络模型的输出层进行分类处理,以形成所述第一特征向量序列。The vector matrix corresponding to the deep features of the Chinese signature image is input to the output layer of the convolutional neural network model for classification processing to form the first feature vector sequence.
- 根据权利要求9所述的计算机设备,其中,所述按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列,包括:9. The computer device according to claim 9, wherein the splicing the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence comprises:将所述第一特征向量序列和第二特征向量序列进行首尾拼接以得到第三特征向量序列。The first feature vector sequence and the second feature vector sequence are spliced end to end to obtain a third feature vector sequence.
- 根据权利要求9所述的计算机设备,其中,所述根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名的步骤包括:9. The computer device according to claim 9, wherein the step of classifying and recognizing the third feature vector sequence according to a pre-trained recurrent neural network model to recognize the name in the Chinese signature image comprises:将所述第三特征向量序列输入至所述循环神经网络模型中,生成循环神经单元的隐藏状态;Inputting the third feature vector sequence into the recurrent neural network model to generate a hidden state of the recurrent neural unit;通过预置的注意力机制接收所述隐藏状态并搜索与所述隐藏状态相关的特征向量序列以得到下一时刻输入的特征向量序列并将其输入至所述循环神经单元以更新所述隐藏状态;Receive the hidden state through a preset attention mechanism and search for the feature vector sequence related to the hidden state to obtain the feature vector sequence input at the next moment and input it to the recurrent neural unit to update the hidden state ;通过分类器接收所述隐藏状态并对其进行分类识别,以识别出所述中文签名图像中的姓名。The hidden state is received by a classifier and classified and recognized to recognize the name in the Chinese signature image.
- 根据权利要求13所述的计算机设备,其中,所述通过分类器接收所述隐藏状态并对其进行分类识别,包括:The computer device according to claim 13, wherein said receiving said hidden state by a classifier and classifying and identifying it comprises:采用Sigmoid函数对所述隐藏状态进行归一化处理并将归一化处理后的隐藏状态输入至具有三层的BP神经网络中进行分类识别。The Sigmoid function is used to normalize the hidden state, and the normalized hidden state is input into a BP neural network with three layers for classification and recognition.
- 根据权利要求9所述的计算机设备,其中,所述姓名校验模型包括编码转换规则和正则表达式,所述根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果的步骤包括:The computer device according to claim 9, wherein the name verification model includes code conversion rules and regular expressions, and the name is verified according to a preset name verification model to obtain the Chinese signature The steps of verifying the result of whether the image passes include:根据所述编码转换规则将所述姓名转换为与所述姓名相对应的字符编码;Converting the name into a character code corresponding to the name according to the code conversion rule;根据所述正则表达式将所述姓名相对应的字符编码与预先存储的姓名的相对应的字符编码进行校验以得到所述中文签名图像是否通过的校验结果。According to the regular expression, the character code corresponding to the name and the character code corresponding to the name stored in advance are checked to obtain a check result of whether the Chinese signature image passes.
- 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行以下步骤: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 following steps are executed:接收用户输入的中文签名图像,根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像;Receiving the Chinese signature image input by the user, and preprocessing the Chinese signature image according to the image preprocessing model to obtain the preprocessed Chinese signature image;将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列;Placing the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence;在预先训练好的双向循环神经网络模型中输入所述第一特征向量序列以生成第二特征向量序列;Input the first feature vector sequence into a pre-trained bidirectional cyclic neural network model to generate a second feature vector sequence;按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列;Splicing the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence;根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名;Classifying and recognizing the third feature vector sequence according to the pre-trained recurrent neural network model, so as to recognize the name in the Chinese signature image;根据预置的姓名校验模型对所述姓名进行校验以得到所述中文签名图像是否通过的校验结果。The name is verified according to a preset name verification model to obtain a verification result of whether the Chinese signature image passes.
- 根据权利要求16所述的计算机可读存储介质,其中,所述图像预处理模型包括非线性规整化规则和字符的分段插值处理规则,所述根据图像预处理模型对所述中文签名图像进行预处理,得到预处理后的中文签名图像的步骤包括:The computer-readable storage medium according to claim 16, wherein the image preprocessing model includes nonlinear regularization rules and character segment interpolation processing rules, and the Chinese signature image is processed according to the image preprocessing model. Preprocessing, the steps of obtaining the preprocessed Chinese signature image include:根据所述非线性规整化规则将所述中文签名图像进行规整化处理,以放大或缩小所述中文签名图像;Performing regularization processing on the Chinese signature image according to the non-linear regularization rule to enlarge or reduce the Chinese signature image;根据所述字符的分段插值处理规则将规整化处理后的中文签名图像进行插值处理以生成预处理后的所述中文签名图像。The normalized Chinese signature image is subjected to interpolation processing according to the segmented interpolation processing rule of the character to generate the preprocessed Chinese signature image.
- 根据权利要求16所述的计算机可读存储介质,其中,所述将预处理后的所述中文签名图像置于预先训练好的卷积神经网络模型中以生成第一特征向量序列,包括:15. The computer-readable storage medium according to claim 16, wherein said placing the pre-processed Chinese signature image in a pre-trained convolutional neural network model to generate a first feature vector sequence comprises:将预处理后的所述中文签名图像输入至所述卷积神经网络模型的卷积层进行卷积处理,以得到所述中文签名图像浅层特征相对应的向量矩阵;Input the preprocessed Chinese signature image to the convolutional layer of the convolutional neural network model for convolution processing to obtain a vector matrix corresponding to the shallow features of the Chinese signature image;将所述中文签名图像浅层特征相对应的向量矩阵输入至所述卷积神经网络模型的池化层进行池化处理,以得到所述中文签名图像深层特征相对应的向量矩阵;Inputting the vector matrix corresponding to the shallow features of the Chinese signature image to the pooling layer of the convolutional neural network model for pooling processing to obtain the vector matrix corresponding to the deep features of the Chinese signature image;将所述中文签名图像深层特征相对应的向量矩阵输入至所述卷积神经网络模型的输出层进行分类处理,以形成所述第一特征向量序列。The vector matrix corresponding to the deep features of the Chinese signature image is input to the output layer of the convolutional neural network model for classification processing to form the first feature vector sequence.
- 根据权利要求16所述的计算机可读存储介质,其中,所述按照预设的拼接方式将所述第一特征向量序列和第二特征向量序列进行拼接以生成第三特征向量序列,包括:15. The computer-readable storage medium according to claim 16, wherein the splicing the first feature vector sequence and the second feature vector sequence according to a preset splicing manner to generate a third feature vector sequence comprises:将所述第一特征向量序列和第二特征向量序列进行首尾拼接以得到第三特征向量序列。The first feature vector sequence and the second feature vector sequence are spliced end to end to obtain a third feature vector sequence.
- 根据权利要求16所述的计算机可读存储介质,其中,所述根据预先训练好的循环神经网络模型对所述第三特征向量序列进行分类识别,以识别出所述中文签名图像中的姓名的步骤包括:The computer-readable storage medium according to claim 16, wherein the third feature vector sequence is classified and recognized according to a pre-trained recurrent neural network model to identify the name of the name in the Chinese signature image The steps include:将所述第三特征向量序列输入至所述循环神经网络模型中,生成循环神经单元的隐藏状态;Inputting the third feature vector sequence into the recurrent neural network model to generate a hidden state of the recurrent neural unit;通过预置的注意力机制接收所述隐藏状态并搜索与所述隐藏状态相关的特征向量序列以得到下一时刻输入的特征向量序列并将其输入至所述循环神经单元以更新所述隐藏状态;Receive the hidden state through a preset attention mechanism and search for the feature vector sequence related to the hidden state to obtain the feature vector sequence input at the next moment and input it to the recurrent neural unit to update the hidden state ;通过分类器接收所述隐藏状态并对其进行分类识别,以识别出所述中文签名图像中的姓名。The hidden state is received by a classifier and classified and recognized to recognize the name in the Chinese signature image.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010099130.0A CN111428557A (en) | 2020-02-18 | 2020-02-18 | Method and device for automatically checking handwritten signature based on neural network model |
CN202010099130.0 | 2020-02-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021164481A1 true WO2021164481A1 (en) | 2021-08-26 |
Family
ID=71547154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/072021 WO2021164481A1 (en) | 2020-02-18 | 2021-01-15 | Neural network model-based automatic handwritten signature verification method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111428557A (en) |
WO (1) | WO2021164481A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114118075A (en) * | 2022-01-28 | 2022-03-01 | 北京易真学思教育科技有限公司 | Text recognition method and device, electronic equipment and storage medium |
CN114241463A (en) * | 2021-11-12 | 2022-03-25 | 中国南方电网有限责任公司 | Signature verification method and device, computer equipment and storage medium |
CN118247578A (en) * | 2024-05-21 | 2024-06-25 | 赛维森(广州)医疗科技服务有限公司 | Pathological image classification method and device based on weak supervision learning |
CN118267748A (en) * | 2024-05-31 | 2024-07-02 | 四川省农业科学院茶叶研究所 | Method for extracting secondary metabolites of tea trees |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111428557A (en) * | 2020-02-18 | 2020-07-17 | 深圳壹账通智能科技有限公司 | Method and device for automatically checking handwritten signature based on neural network model |
CN112036323B (en) * | 2020-09-01 | 2024-02-27 | 中国银行股份有限公司 | Signature handwriting authentication method, client and server |
CN112508684B (en) * | 2020-12-04 | 2023-03-07 | 中信银行股份有限公司 | Collecting-accelerating risk rating method and system based on joint convolutional neural network |
CN112733645B (en) * | 2020-12-30 | 2023-08-01 | 平安科技(深圳)有限公司 | Handwritten signature verification method, handwritten signature verification device, computer equipment and storage medium |
CN113887271A (en) * | 2021-06-24 | 2022-01-04 | 西华大学 | Online signature verification method and system |
CN113723303A (en) * | 2021-08-31 | 2021-11-30 | 中国平安人寿保险股份有限公司 | Handwriting verification method and device, computer equipment and storage medium |
CN113920589B (en) * | 2021-10-28 | 2024-09-27 | 平安银行股份有限公司 | Signature recognition method, device, equipment and medium based on artificial intelligence |
CN116030014B (en) * | 2023-01-06 | 2024-04-09 | 浙江伟众科技有限公司 | Intelligent processing method and system for soft and hard air conditioner pipes |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109389091A (en) * | 2018-10-22 | 2019-02-26 | 重庆邮电大学 | The character identification system and method combined based on neural network and attention mechanism |
US20190294910A1 (en) * | 2018-03-20 | 2019-09-26 | Konica Minolta Laboratory U.S.A., Inc. | Text image processing using word spacing equalization for icr system employing artificial neural network |
CN110717345A (en) * | 2019-10-15 | 2020-01-21 | 内蒙古工业大学 | Translation realignment recurrent neural network cross-language machine translation method |
CN111428557A (en) * | 2020-02-18 | 2020-07-17 | 深圳壹账通智能科技有限公司 | Method and device for automatically checking handwritten signature based on neural network model |
-
2020
- 2020-02-18 CN CN202010099130.0A patent/CN111428557A/en active Pending
-
2021
- 2021-01-15 WO PCT/CN2021/072021 patent/WO2021164481A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190294910A1 (en) * | 2018-03-20 | 2019-09-26 | Konica Minolta Laboratory U.S.A., Inc. | Text image processing using word spacing equalization for icr system employing artificial neural network |
CN109389091A (en) * | 2018-10-22 | 2019-02-26 | 重庆邮电大学 | The character identification system and method combined based on neural network and attention mechanism |
CN110717345A (en) * | 2019-10-15 | 2020-01-21 | 内蒙古工业大学 | Translation realignment recurrent neural network cross-language machine translation method |
CN111428557A (en) * | 2020-02-18 | 2020-07-17 | 深圳壹账通智能科技有限公司 | Method and device for automatically checking handwritten signature based on neural network model |
Non-Patent Citations (1)
Title |
---|
WEI HAIHONG: "Research on Handwritten Signature Identification Based on LSTM Neural Network", WANGFANG MASTER'S THESES DATABASE, 18 January 2019 (2019-01-18), XP055838782 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114241463A (en) * | 2021-11-12 | 2022-03-25 | 中国南方电网有限责任公司 | Signature verification method and device, computer equipment and storage medium |
CN114118075A (en) * | 2022-01-28 | 2022-03-01 | 北京易真学思教育科技有限公司 | Text recognition method and device, electronic equipment and storage medium |
CN118247578A (en) * | 2024-05-21 | 2024-06-25 | 赛维森(广州)医疗科技服务有限公司 | Pathological image classification method and device based on weak supervision learning |
CN118267748A (en) * | 2024-05-31 | 2024-07-02 | 四川省农业科学院茶叶研究所 | Method for extracting secondary metabolites of tea trees |
Also Published As
Publication number | Publication date |
---|---|
CN111428557A (en) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021164481A1 (en) | Neural network model-based automatic handwritten signature verification method and device | |
CN110162593B (en) | Search result processing and similarity model training method and device | |
CN108764195B (en) | Handwriting model training method, handwritten character recognition method, device, equipment and medium | |
CN110245557B (en) | Picture processing method, device, computer equipment and storage medium | |
CN112509690B (en) | Method, apparatus, device and storage medium for controlling quality | |
CN111667056B (en) | Method and apparatus for searching model structures | |
CN112989035B (en) | Method, device and storage medium for identifying user intention based on text classification | |
CN110866530A (en) | Character image recognition method and device and electronic equipment | |
WO2021208727A1 (en) | Text error detection method and apparatus based on artificial intelligence, and computer device | |
CN111352965A (en) | Training method of sequence mining model, and processing method and equipment of sequence data | |
WO2022142032A1 (en) | Handwritten signature verification method and apparatus, computer device, and storage medium | |
CN111783767B (en) | Character recognition method, character recognition device, electronic equipment and storage medium | |
US20210209482A1 (en) | Method and apparatus for verifying accuracy of judgment result, electronic device and medium | |
CN109086654A (en) | Handwriting model training method, text recognition method, device, equipment and medium | |
CN111062036A (en) | Malicious software identification model construction method, malicious software identification medium and malicious software identification equipment | |
CN111753744B (en) | Method, apparatus, device and readable storage medium for bill image classification | |
US20200159828A1 (en) | Robust key value extraction | |
Ching et al. | Learning image aesthetics by learning inpainting | |
CN112417886B (en) | Method, device, computer equipment and storage medium for extracting intention entity information | |
CN111126501B (en) | Image identification method, terminal equipment and storage medium | |
CN110738261B (en) | Image classification and model training method and device, electronic equipment and storage medium | |
CN112200216A (en) | Chinese character recognition method, device, computer equipment and storage medium | |
CN115983982A (en) | Credit risk identification method, credit risk identification device, credit risk identification equipment and computer readable storage medium | |
WO2023173546A1 (en) | Method and apparatus for training text recognition model, and computer device and storage medium | |
CN114565913A (en) | Text recognition method and device, equipment, medium and product thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21756678 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.01.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21756678 Country of ref document: EP Kind code of ref document: A1 |