Handwritten signature processing method and device, terminal equipment and storage medium
Through blockchain technology and main-side chain structure, combined with deep learning models, accurate verification of electronic handwritten signatures is achieved, which solves the problem of low accuracy of handwritten signature verification in the existing technology and improves the accuracy of verification. and security.
Patent Information
- Application Number
- CN202311799750.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2024-10-22
AI Technical Summary
Existing handwritten signature verification technology is based on simple image features, making it difficult to comprehensively and accurately verify electronic handwritten signatures, resulting in low verification accuracy.
Blockchain technology is used combined with the main and side chain structure to store the user's electronic handwritten signature. During the user's handwriting operation, accurate verification is completed based on the data in the side chain block through the matching requirements of the complete pixel positions stored in the main chain. Obtain the target pixel position and identity of the current handwritten data, and match the similarity to determine the verification result.
It improves the verification accuracy of electronic handwritten signatures, enhances the accuracy and security of verification, and prevents illegal tampering.
Smart Images

Figure CN118823883A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a handwritten signature processing method, apparatus, terminal device, and storage medium. Background Art
[0002] With the acceleration of digital transformation, electronic signing has become an indispensable part of business cooperation and personal transactions.
[0003] Existing handwritten signature verification technology generally obtains an image of the handwritten signature and the face to be verified. The image is then fed into a pre-trained deep learning neural network model for feature extraction, obtaining the signature image features. The signature's validity is then determined by comparing the signature image features with a pre-set database of user signature images. However, these methods rely on simple image features and are unable to fully and accurately verify electronic handwritten signatures.
[0004] Therefore, it is necessary to propose a solution to improve the accuracy of handwritten signature verification. Summary of the Invention
[0005] The main purpose of this application is to provide a handwritten signature processing method, apparatus, terminal device and storage medium, aiming to solve the technical problem of low accuracy in electronic handwritten signature verification.
[0006] To achieve the above objectives, the present application provides a handwritten signature processing method, which includes:
[0007] During the process of a user performing a handwritten signature, in response to a handwriting operation, a target pixel position predicted based on current handwriting data corresponding to the handwriting operation and the user's identity are obtained; in a pre-constructed blockchain storage structure, a main chain block corresponding to the identity is matched to obtain several pixel positions stored in the main chain block, as well as a matching degree and pre-stored handwriting data corresponding one-to-one to the several pixel positions in a side chain attached to the main chain block; when the similarity between the target pixel position and the several pixel positions meets the matching degree, a verification result of the handwriting operation is obtained based on the pre-stored handwriting data and the current handwriting data.
[0008] The present application solution is based on the storage structure of handwritten signatures of blockchain technology, and combines the main-side chain structure to store the user's electronic handwritten signature. When responding to the user's handwriting operation, it can complete accurate verification based on the matching requirements of the complete pixel position stored in the main chain and the data in the side chain block. This can solve the technical problem of low accuracy in electronic handwritten signature verification and improve the verification accuracy of electronic handwritten signatures.
[0009] In the process of a user performing a handwritten signature, in response to a handwriting operation, obtaining a target pixel position predicted based on current handwriting data corresponding to the handwriting operation, and an identity identifier of the user;
[0010] In a pre-built blockchain storage structure, the main chain block corresponding to the identity identifier is matched to obtain a number of pixel positions stored in the main chain block, as well as the matching degree and pre-stored handwritten data corresponding to the number of pixel positions in the side chain attached to the main chain block;
[0011] When the similarity between the target pixel position and the plurality of pixel positions satisfies the matching degree, a verification result of the handwriting operation is obtained according to the pre-stored handwriting data and the current handwriting data.
[0012] Optionally, the step of obtaining a verification result of the handwriting operation according to the pre-stored handwriting data and the current handwriting data includes:
[0013] Determining a current pixel position of the handwriting operation, and intercepting the handwriting data to be verified at the current pixel position from the pre-stored handwriting data;
[0014] Comparing the current handwritten data with the handwritten data to be verified to obtain a comparison result;
[0015] When the comparison result meets the preset matching condition, a verification success result is obtained.
[0016] Optionally, the step of obtaining a target pixel position predicted based on current handwriting data corresponding to the handwriting operation includes:
[0017] Acquire the current handwriting data;
[0018] The current handwriting data is input into a pre-trained prediction model, and a forward propagation method is used to perform prediction to obtain the target pixel position.
[0019] Optionally, the step of inputting the current handwritten data into a pre-trained prediction model and using a forward propagation method to perform prediction to obtain the target pixel position includes:
[0020] Inputting the current handwriting data into a pre-trained prediction model and performing prediction using a forward propagation method to obtain the target pixel position and the predicted completion time;
[0021] When the comparison result satisfies the preset matching condition, the step of obtaining a verification success result includes:
[0022] When the comparison result satisfies the matching condition, obtaining the pre-stored completion duration from the end block of the side chain;
[0023] When the difference between the pre-stored completion time and the predicted completion time is less than a preset threshold, a verification success result is obtained.
[0024] Optionally, the process of creating the pre-trained prediction model includes:
[0025] Obtaining sample handwriting data of a sample handwritten signature;
[0026] Preprocessing the sample handwriting data to obtain processed sample handwriting data;
[0027] Performing feature extraction on the processed sample handwriting data to obtain corresponding sample handwriting features;
[0028] An initial prediction model is constructed, and the initial prediction model is trained based on the sample handwriting features to obtain a pre-trained prediction model.
[0029] Optionally, before the step of matching the main chain block corresponding to the identity identifier in the pre-built blockchain storage structure, the method further includes:
[0030] Obtaining the user's pre-stored handwritten signature and the identity identifier;
[0031] According to the pre-stored handwritten signature, the corresponding pixel positions and the one-to-one matching degree of the pixel positions and the pre-stored handwritten data are obtained; wherein the pre-stored handwritten data includes a pre-stored handwritten signature image, a pre-stored speed value, and a pre-stored pressure value;
[0032] In the blockchain storage structure, the main chain block is constructed based on the identity identifier, and the side chain is constructed under the main chain block;
[0033] The plurality of pixel positions are stored in the main chain block, and the matching degrees and the pre-stored handwriting data corresponding to the plurality of pixel positions are sequentially stored in the plurality of blocks of the side chain.
[0034] Optionally, after the steps of storing the plurality of pixel positions in the main chain block, and sequentially storing the one-to-one corresponding matching degrees and the pre-stored handwritten data of the plurality of pixel positions in the plurality of blocks of the new side chain, the method further includes:
[0035] In response to the user's signature update instruction, obtaining corresponding multiple newly added pixel positions and newly added matching degrees and newly added handwritten data corresponding to the multiple newly added pixel positions;
[0036] Locating the main chain block according to the identity identifier;
[0037] Constructing a new side chain under the main chain block, storing the newly added pixel positions in the main chain block, and assigning a one-to-one correspondence between the newly added pixel positions and the newly added matching degree and handwritten data blocks;
[0038] Optionally, the step of matching the main chain block corresponding to the identity identifier in the pre-built blockchain storage structure to obtain a number of pixel positions stored in the main chain block, and the matching degrees and pre-stored handwritten data corresponding to the number of pixel positions in the side chain attached to the main chain block include:
[0039] In the blockchain storage structure, the main chain block corresponding to the identity identifier is matched to obtain the several newly added pixel positions stored in the main chain block, as well as the newly added matching degrees and newly added handwritten data corresponding to the several newly added pixel positions hanging under the main chain block.
[0040] The present application also provides a handwritten signature processing device, which includes:
[0041] an acquisition module for acquiring, in response to a handwriting operation, a target pixel position predicted based on current handwriting data corresponding to the handwriting operation and an identity identifier of the user during the process of the user performing a handwriting signature;
[0042] A matching module is configured to match the main chain block corresponding to the identity identifier in a pre-built blockchain storage structure, and obtain a number of pixel positions stored in the main chain block, as well as a matching degree and pre-stored handwritten data corresponding to the number of pixel positions in a side chain attached to the main chain block;
[0043] The verification module is configured to obtain a verification result of the handwriting operation according to the pre-stored handwriting data and the current handwriting data when the similarity between the target pixel position and the plurality of pixel positions satisfies the matching degree.
[0044] An embodiment of the present application also proposes a terminal device, which includes a memory, a processor, and a handwritten signature processing program stored in the memory and executable on the processor. When the handwritten signature processing program is executed by the processor, the steps of the handwritten signature processing method described above are implemented.
[0045] An embodiment of the present application further provides a computer-readable storage medium, on which a handwritten signature processing program is stored. When the handwritten signature processing program is executed by a processor, the steps of the handwritten signature processing method described above are implemented.
[0046] The handwritten signature processing method, apparatus, terminal device, and storage medium proposed in the embodiments of the present application obtain, in the process of a user performing a handwritten signature, a target pixel position predicted based on the current handwritten data corresponding to the handwriting operation, and the identity of the user in response to the handwriting operation; in a pre-constructed blockchain storage structure, the main chain block corresponding to the identity is matched to obtain several pixel positions stored in the main chain block, as well as the matching degree and pre-stored handwritten data corresponding one-to-one to the several pixel positions in the side chain hanging under the main chain block; when the similarity between the target pixel position and the several pixel positions meets the matching degree, the verification result of the handwriting operation is obtained based on the pre-stored handwritten data and the current handwritten data.
[0047] The present application solution is based on the storage structure of handwritten signatures of blockchain technology, and combines the main-side chain structure to store the user's electronic handwritten signature. When responding to the user's handwriting operation, it can complete accurate verification based on the matching requirements of the complete pixel position stored in the main chain and the data in the side chain block. This can solve the technical problem of low accuracy in electronic handwritten signature verification and improve the verification accuracy of electronic handwritten signatures. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a schematic diagram of the functional modules of the terminal device to which the handwritten signature processing device of this application belongs;
[0049] Figure 2 This is a flowchart of a first exemplary embodiment of a method for processing handwritten signatures of this application;
[0050] Figure 3 This is a flow chart of a second exemplary embodiment of the handwritten signature processing method of this application;
[0051] Figure 4 This is a flowchart of a third exemplary embodiment of the handwritten signature processing method of this application;
[0052] Figure 5 This is a flowchart of a fourth exemplary embodiment of the handwritten signature processing method of this application;
[0053] Figure 6 This is a flowchart of the fifth exemplary embodiment of the handwritten signature processing method of this application.
[0054] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0056] The main solution of the embodiment of the present application is: when a user performs a handwritten signature, in response to a handwriting operation, a target pixel position predicted based on the current handwriting data corresponding to the handwriting operation and the identity of the user are obtained; in a pre-constructed blockchain storage structure, a main chain block corresponding to the identity is matched to obtain several pixel positions stored in the main chain block, as well as a one-to-one matching degree and pre-stored handwriting data corresponding to the several pixel positions in the side chain attached to the main chain block; when the similarity between the target pixel position and the several pixel positions meets the matching degree, a verification result of the handwriting operation is obtained based on the pre-stored handwriting data and the current handwriting data.
[0057] The embodiments of the present application take into account that there are many well-known technologies in the field of electronic signing, such as:
[0058] Handwritten signature capture technology: Traditionally, handwritten signatures are scanned or photographed and digitally saved so they can be applied to electronic documents. This approach often neglects to assess the quality and accuracy of the signature itself;
[0059] Image processing technology: There are many methods in the field of image processing for segmentation, enhancement, denoising, etc. of handwritten signatures to improve image quality, but these methods are often independent of the meaning and characteristics of the signature;
[0060] Handwriting recognition technology: Traditional handwriting recognition methods can be used to identify signatures, but they often lack the ability to handle the special properties of signatures and are unable to meet the needs of the electronic signing field.
[0061] In addition, existing technologies can also obtain handwritten signature images and facial images to be verified, then input the handwritten signature images to be verified into a pre-trained deep learning neural network model for feature extraction to obtain handwritten signature image features; and then determine the validity of the handwritten signature by comparing the handwritten signature image features with a preset user signature image database. In this solution, the features extracted from the handwritten signature image and the facial image to be verified are directly compared with the image features retrieved from the preset user signature image database, thereby achieving handwritten signature verification.
[0062] However, handwritten signatures are stored as handwritten signature images. When verification is required, the signature to be verified is directly compared with the complete, pre-set user signature image stored in the database for feature similarity calculation. Because this verification method directly stores the handwritten signature without any secondary processing, an unauthorized user can easily replace or modify the pre-set user signature image stored in the database, providing a viable channel for illegal operations.
[0063] Therefore, the present application solution is based on the storage structure of handwritten signatures of blockchain technology, combined with the main-side chain structure to store the user's electronic handwritten signature. When responding to the user's handwriting operation, it can complete the precise verification based on the matching requirements of the complete pixel position stored in the main chain and the data in the side chain block. This can solve the technical problem of low accuracy of electronic handwritten signature verification and improve the verification accuracy of electronic handwritten signatures.
[0064] Specifically, refer to Figure 1 , Figure 1 This is a schematic diagram of the functional modules of the terminal device to which the handwritten signature processing device of this application belongs. The handwritten signature processing device can be a device independent of the terminal device that can process handwritten signatures and can be hosted on the terminal device in the form of hardware or software. The terminal device can be a smart mobile terminal with data processing capabilities, such as a mobile phone or tablet computer, or a fixed terminal device or server with data processing capabilities.
[0065] In this embodiment, the terminal device to which the handwritten signature processing apparatus belongs includes at least an output module 110 , a processor 120 , a memory 130 and a communication module 140 .
[0066] The memory 130 stores an operating system and a handwritten signature processing program. The handwritten signature processing device can obtain a target pixel position predicted based on the current handwritten data corresponding to the handwriting operation in response to a user's handwriting operation, as well as the user's identity; the main chain block corresponding to the matching identity in a pre-built blockchain storage structure; the obtained pixel positions stored in the main chain block; and the matching degree and pre-stored handwritten data corresponding to the pixel positions in the side chain attached to the main chain block. When the similarity between the target pixel position and the pixel positions meets the matching degree, the handwriting operation verification result obtained based on the pre-stored handwritten data and the current handwritten data is stored in the memory 130. The output module 110 can be a display screen, etc. The communication module 140 can include a Wi-Fi module, a mobile communication module, and a Bluetooth module, etc., and communicates with external devices or servers through the communication module 140.
[0067] When the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are implemented:
[0068] In the process of a user performing a handwritten signature, in response to a handwriting operation, obtaining a target pixel position predicted based on current handwriting data corresponding to the handwriting operation, and an identity identifier of the user;
[0069] In a pre-built blockchain storage structure, the main chain block corresponding to the identity identifier is matched to obtain a number of pixel positions stored in the main chain block, as well as the matching degree and pre-stored handwritten data corresponding to the number of pixel positions in the side chain attached to the main chain block;
[0070] When the similarity between the target pixel position and the plurality of pixel positions satisfies the matching degree, a verification result of the handwriting operation is obtained according to the pre-stored handwriting data and the current handwriting data.
[0071] Furthermore, when the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are also implemented:
[0072] Determining a current pixel position of the handwriting operation, and intercepting the handwriting data to be verified at the current pixel position from the pre-stored handwriting data;
[0073] Comparing the current handwritten data with the handwritten data to be verified to obtain a comparison result;
[0074] When the comparison result meets the preset matching condition, a verification success result is obtained.
[0075] Furthermore, when the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are also implemented:
[0076] Acquire the current handwriting data;
[0077] The current handwriting data is input into a pre-trained prediction model, and a forward propagation method is used to perform prediction to obtain the target pixel position.
[0078] Furthermore, when the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are also implemented:
[0079] Inputting the current handwriting data into a pre-trained prediction model and performing prediction using a forward propagation method to obtain the target pixel position and the predicted completion time;
[0080] Furthermore, when the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are also implemented:
[0081] When the comparison result satisfies the matching condition, obtaining the pre-stored completion duration from the end block of the side chain;
[0082] When the difference between the pre-stored completion time and the predicted completion time is less than a preset threshold, a verification success result is obtained.
[0083] Furthermore, when the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are also implemented:
[0084] Obtaining sample handwriting data of a sample handwritten signature;
[0085] Preprocessing the sample handwriting data to obtain processed sample handwriting data;
[0086] Performing feature extraction on the processed sample handwriting data to obtain corresponding sample handwriting features;
[0087] An initial prediction model is constructed, and the initial prediction model is trained based on the sample handwriting features to obtain a pre-trained prediction model.
[0088] Furthermore, when the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are also implemented:
[0089] Obtaining the user's pre-stored handwritten signature and the identity identifier;
[0090] According to the pre-stored handwritten signature, the corresponding pixel positions and the one-to-one matching degree of the pixel positions and the pre-stored handwritten data are obtained; wherein the pre-stored handwritten data includes a pre-stored handwritten signature image, a pre-stored speed value, and a pre-stored pressure value;
[0091] In the blockchain storage structure, the main chain block is constructed based on the identity identifier, and the side chain is constructed under the main chain block;
[0092] The plurality of pixel positions are stored in the main chain block, and the matching degrees and the pre-stored handwriting data corresponding to the plurality of pixel positions are sequentially stored in the plurality of blocks of the side chain.
[0093] Furthermore, when the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are also implemented:
[0094] In response to the user's signature update instruction, obtaining corresponding multiple newly added pixel positions and newly added matching degrees and newly added handwritten data corresponding to the multiple newly added pixel positions;
[0095] Locating the main chain block according to the identity identifier;
[0096] Constructing a new side chain under the main chain block, storing the newly added pixel positions in the main chain block, and assigning a one-to-one correspondence between the newly added pixel positions and the newly added matching degree and handwritten data blocks;
[0097] Furthermore, when the handwritten signature processing program in the memory 130 is executed by the processor, the following steps are also implemented:
[0098] In the blockchain storage structure, the main chain block corresponding to the identity identifier is matched to obtain the several newly added pixel positions stored in the main chain block, as well as the newly added matching degrees and newly added handwritten data corresponding to the several newly added pixel positions hanging under the main chain block.
[0099] This embodiment adopts the above-mentioned scheme, specifically by obtaining, in response to a handwriting operation during the process of a user performing a handwritten signature, a target pixel position predicted based on current handwriting data corresponding to the handwriting operation, and the identity of the user; matching the main chain block corresponding to the identity in a pre-constructed blockchain storage structure, obtaining several pixel positions stored in the main chain block, and the matching degree and pre-stored handwriting data corresponding one-to-one to the several pixel positions in the side chain attached to the main chain block; and obtaining a verification result of the handwriting operation based on the pre-stored handwriting data and the current handwriting data when the similarity between the target pixel position and the several pixel positions meets the matching degree.
[0100] The present application solution is based on the storage structure of handwritten signatures of blockchain technology, and combines the main-side chain structure to store the user's electronic handwritten signature. When responding to the user's handwriting operation, it can complete accurate verification based on the matching requirements of the complete pixel position stored in the main chain and the data in the side chain block. This can solve the technical problem of low accuracy in electronic handwritten signature verification and improve the verification accuracy of electronic handwritten signatures.
[0101] Based on the above terminal device architecture but not limited to the above architecture, an embodiment of the method of the present application is proposed.
[0102] Reference Figure 2 , Figure 2 This is a flowchart of the first exemplary embodiment of the handwritten signature processing method of this application. The handwritten signature processing method includes:
[0103] Step S210, in the process of the user performing a handwritten signature, in response to the handwriting operation, obtaining a target pixel position predicted based on current handwriting data corresponding to the handwriting operation, and an identity identifier of the user;
[0104] The execution subject of the method of this embodiment can be a handwritten signature processing device, or a handwritten signature processing terminal device or server. This embodiment takes a handwritten signature processing device as an example. The handwritten signature processing device can be integrated into terminal devices such as smart phones and tablet computers with data processing functions.
[0105] Specifically, the embodiments of this application take into account that existing technologies for verifying handwritten signatures lack targeted processing of the signature's inherent characteristics, making it difficult to fully capture the dynamic characteristics and individual differences of signatures. Therefore, during the signing process, the system responds to the user's handwriting operation in real time to capture the user's handwriting in real time and recognize the current handwriting data as well as the target pixel position and user identity predicted by the deep learning model.
[0106] Among them, the target pixel position is the predicted target pixel position of the user's handwriting operation, that is, the specific pixel position where the user is expected to sign; the user identity identifier is used to identify the user's identity information, which is used to locate and obtain the corresponding data in the blockchain.
[0107] Step S220: Match the main chain block corresponding to the identity identifier in the pre-built blockchain storage structure, obtain a number of pixel positions stored in the main chain block, and the matching degree and pre-stored handwritten data corresponding to the number of pixel positions in the side chain attached to the main chain block;
[0108] Specifically, according to the user identity, the complete pixel position features, the matching value data corresponding to the side chain block and the pre-stored handwriting data are obtained from the main chain.
[0109] The matching value is the verification accuracy requirement pre-set by the user. For example, a user-set verification accuracy of 95% corresponds to a matching value of 0.95. The blockchain storage structure can be a pre-built data storage system, including a main chain and side chains, for storing user handwritten signature data. The main chain blocks can store information such as hash values of different user identities, pixel locations of handwritten signatures, and matching values. The side chains can be data storage chains attached to the main chain blocks, storing handwritten signature data and matching values corresponding to specific pixel locations in the main chain blocks.
[0110] Step S230 : When the similarity between the target pixel position and the plurality of pixel positions satisfies the matching degree, a verification result of the handwriting operation is obtained according to the pre-stored handwriting data and the current handwriting data.
[0111] Specifically, the obtained complete pixel position feature is calculated to have a similarity with the complete pixel position of the predicted handwritten signature. When the calculated similarity value is greater than the matching value, the following steps are continued: obtaining the verification result of the handwriting operation based on the pre-stored handwriting data and the current handwriting data. When the calculated similarity value is less than or equal to the matching value, the execution returns to step S210. In the process of the user performing a handwritten signature, in response to the handwriting operation, the target pixel position predicted based on the current handwriting data corresponding to the handwriting operation, as well as the identity of the user, and subsequent steps are obtained.
[0112] Then, based on the comparison results, a verification result of the handwriting operation can be generated. If the current handwriting data is consistent with the pre-stored handwriting data and the similarity meets the matching requirements, the verification result is successful; otherwise, the verification result is failed, indicating that the handwritten signature may have been tampered with or has an anomaly.
[0113] For example, before a user performs a handwritten signature, they must register an account with a financial institution, enter a pre-stored handwritten signature as part of their identity verification, and upload it to the blockchain storage structure. When a user conducts a significant transaction (e.g., a transfer or large-value payment), the system requires the user to provide a handwritten signature for authorization. Specifically, during the user's handwritten signature process, the system captures the handwriting in real time, obtaining the current handwritten data, including the target pixel location and identity identifier. Based on the user's identity identifier, the system locates the corresponding main chain block on the blockchain and obtains the pre-stored handwritten signature data, including pixel locations, matching degree, and side chain data. The system compares the current handwritten data with the pre-stored data to ensure that the matching degree meets the preset accuracy requirements. If the similarity matches, the system generates a verification result and allows the transaction to proceed. If the match fails, the transaction is rejected and the user is notified. The user's pre-stored handwritten signature data can be encrypted and stored, ensuring the privacy of the user's identity. Each transaction authorization leaves an immutable record on the blockchain, providing a basis for future audits.
[0114] This embodiment uses the above-mentioned solution to specifically use a storage structure for handwritten signatures based on blockchain technology, combined with a main-side chain structure to store the user's electronic handwritten signature. When responding to the user's handwriting operation, it can meet the matching requirements of the complete pixel position stored in the main chain, and then complete accurate verification based on the data in the side chain block. This can solve the technical problem of low accuracy in electronic handwritten signature verification and improve the verification accuracy of electronic handwritten signatures.
[0115] Reference Figure 3 , Figure 3 This is a flow chart of the second exemplary embodiment of the handwritten signature processing method of this application. Figure 2 In the embodiment shown, step S220, before matching the main chain block corresponding to the identity identifier in the pre-built blockchain storage structure, further includes:
[0116] Step S310, obtaining the user's pre-stored handwritten signature and the identity identifier;
[0117] The embodiments of the present application take into account the lack of security in the storage and verification process. For example, if a handwritten signature image is directly stored in a preset user signature image database, if an unauthorized user logs into the database and modifies the user signature image database, the preset user signature image will become invalid, allowing the unauthorized user to easily complete verification using their handwritten signature, thereby causing property and data loss to the user. Therefore, the embodiments of the present application adopt a storage structure for handwritten signatures based on blockchain technology, which can provide a more secure storage environment and greatly improve the credibility of electronic signatures.
[0118] Step S320: obtaining the corresponding pixel positions and the one-to-one matching degree of the pixel positions and the pre-stored handwritten data based on the pre-stored handwritten signature; wherein the pre-stored handwritten data includes a pre-stored handwritten signature image, a pre-stored speed value, and a pre-stored pressure value;
[0119] Specifically, after processing the user's pre-set handwritten signature image, pixel position information can be extracted. Simultaneously, the system records the speed and pressure values used when the user wrote the pre-set signature at each pixel position. This pre-stored handwritten signature data, including important information such as the image, speed, and pressure, is used during the subsequent signature verification process to compare it with the user's real-time handwritten data to ensure signature consistency.
[0120] Step S330: In the blockchain storage structure, construct the main chain block based on the identity identifier, and construct the side chain under the main chain block;
[0121] Specifically, a blockchain storage structure consisting of a main chain and side chains can be established. Each block of the main chain includes the identity hash value of each user, the complete pixel position characteristics of the user's preset handwritten signature, the matching value corresponding to the attached side chain block, and the modification record of the side chain.
[0122] The blockchain storage structure provides a secure and distributed database that ensures data immutability. The construction of main chain blocks and side chains helps organize and associate users' handwritten signature data, making it easy to retrieve and manage.
[0123] Step S340 : storing the plurality of pixel positions in the main chain block, and sequentially storing the one-to-one corresponding matching degrees of the plurality of pixel positions and the pre-stored handwritten data in a plurality of blocks of the side chain.
[0124] Specifically, the user's preset handwritten signature data is uploaded to the blockchain. Each main chain block is linked to a corresponding side chain, and the first block of the side chain contains the creation time of the side chain. Subsequent side chain blocks (such as block 1, block 2, etc.) save the handwritten signature information of different pixel positions one by one, including the hash value of the pixel position, the speed value and pressure value of the handwritten signature, and the handwritten signature image up to the current pixel position. Therefore, when verifying the user's handwritten signature, the main chain block is located according to the identity identifier, and then the matching degree and pre-stored handwritten data are obtained in the side chain for detailed verification.
[0125] Furthermore, as a supplementary solution, a special end block can be included at the end of the side chain, that is, after the block corresponding to the ending pixel position. This end block can record the total time it takes the user to complete the preset handwritten signature, providing complete information for the entire process.
[0126] Exemplarily, first, the pixel position of the handwritten signature image preset by the user is extracted, and the speed value and pressure value of the user completing the preset handwritten signature are obtained;
[0127] Then, a blockchain storage structure is constructed, including a main chain and side chain, and the preset handwritten signature data is uploaded. The blocks in the main chain include the hash values of different user identities, the complete pixel location features of the handwritten signature preset for that user identity, the matching value of the corresponding data in the block on the attached side chain, and the modification history of the side chain.
[0128] Finally, each main chain block is linked to its corresponding side chain. Block 0 in the side chain includes the creation time of the side chain, and Block 1 includes the hash value of the first pixel position, the speed and pressure values of the handwritten signature corresponding to the pixel position, and the handwritten signature image up to the current pixel position. Blocks 2, 3, ..., and n in the side chain successively store the speed and pressure values of the handwritten signature corresponding to the second pixel position, the third pixel position, ..., the ending pixel position, and the handwritten signature image up to the current pixel position. Following the block corresponding to the ending pixel position, there is also an ending block, which stores the time data for the user to complete the preset handwritten signature.
[0129] Through the above-mentioned solution, this embodiment, specifically through pre-stored handwritten signatures, constructs an effective handwritten signature storage and verification mechanism in the blockchain storage structure. That is, a main chain block is constructed through the user's identity identification, and a side chain is created under the main chain block. The pixel position related to the user's pre-stored handwritten signature is stored in the main chain block, and the matching degree and pre-stored handwritten data are stored in the side chain, which can ensure the security and non-tamperability of the user's handwritten signature data.
[0130] Reference Figure 4 , Figure 4This is a flow chart of the third exemplary embodiment of the handwritten signature processing method of this application. Figure 3 In the embodiment shown, after step S340 of storing the plurality of pixel positions in the main chain block and sequentially storing the one-to-one correspondence of the plurality of pixel positions and the pre-stored handwritten data in the plurality of blocks of the side chain, the method further includes:
[0131] Step S410, in response to the signature update instruction of the user, obtaining corresponding multiple newly added pixel positions and newly added matching degrees and newly added handwritten data corresponding to the multiple newly added pixel positions;
[0132] Specifically, when a user's pre-stored handwritten signature data is modified, the system locates the corresponding block in the main chain based on the user's identity. A new sidechain can be created under the user's main chain block to store the updated handwritten signature data. This sidechain's block structure is the same as other sidechains, including creation time, hash value, speed value, pressure value, and handwritten signature image.
[0133] When the user issues a signature update instruction, the system can respond in a timely manner and capture the newly added handwriting data, including the newly added pixel position, matching degree and handwriting data.
[0134] Step S420, locating the main chain block according to the identity identifier;
[0135] Specifically, through the user's identity, the system needs to be able to accurately locate the block corresponding to the user in the main chain so as to update the data under that block.
[0136] Step S430: construct a new side chain under the main chain block, store the newly added pixel positions in the main chain block, and assign one-to-one correspondence between the newly added pixel positions and the newly added matching degree and handwritten data blocks;
[0137] Specifically, to maintain the integrity of the main chain, the system can update the side chain's modification record in the located main chain block. This modification record includes the hash value of the newly uploaded user's handwritten signature image, so as to track changes in the handwritten signature data. The newly added pixel position information needs to be stored in the main chain block, and the newly added matching degree and handwritten data are stored in several blocks of the side chain according to the newly added pixel position.
[0138] Furthermore, to effectively manage storage space, the blockchain platform periodically recycles previously created sidechains. This recycling process is based on the creation time stored in block 0 under each block, ensuring that no longer needed sidechains are released promptly, effectively conserving storage resources.
[0139] Furthermore, step S220 matches the main chain block corresponding to the identity identifier in the pre-built blockchain storage structure, obtains a number of pixel positions stored in the main chain block, and the matching degree and pre-stored handwritten data corresponding to the number of pixel positions in the side chain attached to the main chain block, including:
[0140] In step S440, in the blockchain storage structure, the main chain block corresponding to the identity identifier is matched to obtain the newly added pixel positions stored in the main chain block, as well as the newly added matching degrees and newly added handwritten data corresponding to the newly added pixel positions under the main chain block.
[0141] Specifically, after the newly added side chain is constructed, when the system responds to the user's handwriting operation, it can match the corresponding main chain block according to the user's identity identifier, and then obtain the newly added handwriting data stored in the main chain block, including the newly added pixel position, matching degree and handwriting data.
[0142] For example, when a user's pre-stored handwritten signature data is modified, the main chain block location can be located based on the user's identity. A new side chain is created under the located block to store the updated handwritten signature data. The corresponding block structure is the same as that of other side chains. Simultaneously, a record of the side chain's modification is updated in the main chain block. This modification record can include the hash value of the newly uploaded user's handwritten signature image. Periodically, the blockchain platform recycles older side chains based on the creation time stored in block 0 under each block, thereby saving storage space.
[0143] Through the above-mentioned scheme, this embodiment specifically responds to the user signature update instruction in a timely manner and utilizes the user identity identifier so that the system can accurately locate the corresponding block in the main chain, ensuring that the newly added handwritten data is correctly associated with the user's identity; constructs a new side chain under the main chain block, and stores the newly added pixel position, matching degree and handwritten data in several blocks of the side chain respectively to maintain the structure and historical records of these data; thereby, the system can instantly obtain the current handwritten data according to the user's handwriting operation and predict the target pixel position, thereby improving the response speed and real-time performance of the system; furthermore, when verifying the user's handwriting operation, by matching the user identity identifier, the system can accurately retrieve the newly added pixel position, matching degree and handwritten data stored in the main chain block, and further, when verifying the electronic handwritten signature, auxiliary information such as handwriting speed and pressure can be used to improve the verification accuracy.
[0144] Reference Figure 5 , Figure 5 This is a flow chart of the fourth exemplary embodiment of the handwritten signature processing method of this application. Figure 2In the illustrated embodiment, step S230, when the similarity between the target pixel position and the plurality of pixel positions satisfies the matching degree, obtaining a verification result of the handwriting operation based on the pre-stored handwriting data and the current handwriting data, includes:
[0145] Step S510, when the similarity between the target pixel position and the plurality of pixel positions satisfies the matching degree, determining the current pixel position of the handwriting operation, and intercepting the handwriting data to be verified at the current pixel position from the pre-stored handwriting data;
[0146] Specifically, the embodiments of the present application take into account that traditional methods are generally based on simple image features and are difficult to fully and accurately achieve signature verification. Therefore, the embodiments of the present application improve verification accuracy by using auxiliary information such as the speed and pressure of the user's handwritten signature during the electronic signing process.
[0147] Through accurate verification, users can complete relevant business operations based on electronic signatures more quickly, thereby reducing the number of signature adjustments and re-signings, improving transaction efficiency, and saving time and costs.
[0148] Step S520, comparing the current handwritten data with the handwritten data to be verified to obtain a comparison result;
[0149] Specifically, since the current handwritten data includes the current handwritten signature image, the current speed value, and the current pressure value at the current pixel position, and the pre-stored handwritten data includes the pre-stored handwritten signature image, the pre-stored speed value, and the pre-stored pressure value, as an embodiment, when implementing step S520, the first result, the second result, and the third result are obtained by comparing the current handwritten signature image with the pre-stored handwritten signature image, the current speed value with the pre-stored speed value, and the current pressure value with the pre-stored pressure value, respectively.
[0150] Step S530: When the comparison result meets the preset matching condition, a verification success result is obtained.
[0151] Specifically, when the first result meets the preset first matching condition, the second result meets the preset second matching condition, and the third result meets the preset third matching condition, that is, when the handwritten signature image, speed value, and pressure value all meet their respective corresponding matching conditions, a successful verification result can be obtained.
[0152] Among them, the verification conditions of the handwritten signature image, speed value, and pressure value can be set separately. For example, the handwritten signature image can have a feature similarity value greater than a set value, the speed value can have a consistent speed change curve, and the pressure value can remain constant.
[0153] Through the above-mentioned scheme, this embodiment can verify with pixel-level accuracy by comparing the handwriting data acquired in real time with the intercepted handwriting data to be verified; the handwriting data to be verified is intercepted according to the current pixel position, which can adapt to handwriting operations of different positions and sizes; by determining the current pixel position in real time, verification can be performed while the user's handwriting operation is in progress, thereby improving real-time performance; by setting preset matching conditions, it helps to filter out non-standard or ambiguous handwriting operations, thereby improving the reliability of legal handwriting input.
[0154] Reference Figure 6 , Figure 6 This is a flowchart of the fifth exemplary embodiment of the handwritten signature processing method of this application. Figure 2 In the illustrated embodiment, step S210, obtaining a target pixel position predicted based on current handwriting data corresponding to the handwriting operation, includes:
[0155] Step S610, obtaining the current handwriting data;
[0156] Step S620: input the current handwritten data into a pre-trained prediction model, and use the forward propagation method to perform prediction to obtain the target pixel position.
[0157] Specifically, the user's real-time handwritten signature image, along with the speed and pressure values of the handwritten signature, can be input into a trained convolutional neural network model. Using a forward propagation algorithm, the image is inferred within the network to produce a prediction result.
[0158] Furthermore, in step S620, the current handwritten data is input into a pre-trained prediction model and a forward propagation method is used to perform prediction to obtain the target pixel position, including:
[0159] Step S621: input the current handwritten data into a pre-trained prediction model, and use the forward propagation method to perform prediction to obtain the target pixel position and the prediction completion time;
[0160] Specifically, the predicted completion time may be a value predicted by a prediction model based on current handwriting data, indicating a predicted time required to complete the current handwriting operation.
[0161] Furthermore, in step S530, when the comparison result satisfies a preset matching condition, obtaining a verification success result includes:
[0162] S631, when the comparison result meets the matching condition, obtaining the pre-stored completion duration from the end block of the side chain;
[0163] Specifically, the matching condition can be a set of conditions that are set to determine whether the predicted result and the pre-stored data are sufficiently matched, such as a specific similarity or error range. The pre-stored completion time can be the user's pre-stored handwritten signature completion time data stored in the side chain end block when the user pre-stores the handwritten signature.
[0164] S631: When the difference between the pre-stored completion time and the predicted completion time is less than a preset threshold, a verification success result is obtained.
[0165] Specifically, the preset threshold may be a pre-set value used to determine whether the difference between the pre-stored completion time and the predicted completion time is within an acceptable range. When the difference between the pre-stored completion time and the predicted completion time is less than the preset threshold and the matching condition is met, the handwritten signature verification is considered a successful result.
[0166] Based on the above embodiment, an implementation scheme is exemplarily given, and the specific steps may include:
[0167] Step 2-1, real-time recognition and analysis: During the signing process, the system captures the user's handwriting in real time, thereby obtaining the user's real-time handwritten signature image, handwritten signature speed and pressure values;
[0168] In step 2-2, a pre-trained convolutional neural network (CNN) model is used to predict the pixel position, speed value, and pressure value of the handwritten signature based on the real-time handwritten signature image, speed value, and pressure value of the handwritten signature. If necessary, the CNN model can also be used to predict the time it takes for the user to complete the handwritten signature.
[0169] The convolutional neural network (CNN) model consists of multiple convolutional layers, pooling layers, and fully connected layers to capture the different characteristics of signatures. The model has learned the styles and characteristics of various signatures during training.
[0170] Step 2-2: Based on the user identity, obtain the complete pixel position features and the matching value data of the corresponding data of the attached side chain block from the main chain block corresponding to the user identity;
[0171] The matching value is the verification accuracy requirement preset by the user. For example, if the verification accuracy set by the user is 95%, the corresponding matching value is 0.95.
[0172] Step 2-3: Calculate the similarity between the acquired complete pixel position feature and the complete pixel position of the handwritten signature determined by a pre-trained convolutional neural network (CNN) model based on the user's real-time handwritten signature image, the speed value, and the pressure value of the handwritten signature;
[0173] Similarity calculation can be achieved by using the feature distance calculation method in the existing technology, such as Euclidean distance, etc.
[0174] In step 2-4, if the calculated similarity value is greater than the matching value of the corresponding data of the attached side chain block, proceed to step 2-5; if it is less than the matching value, return to step 2-1;
[0175] Step 2-5: Based on the current pixel position, obtain the handwritten signature image up to the current pixel position, and the speed value and pressure value of the handwritten signature corresponding to the pixel position from the corresponding block;
[0176] Step 2-6: Compare the handwritten signature image up to the current pixel position, the speed value and pressure value of the handwritten signature corresponding to the pixel position, obtained from the side chain block, with the user's real-time handwritten signature image, speed value and pressure value of the handwritten signature obtained in step 2-1, to obtain a handwritten signature image comparison result, a speed value comparison result, and a pressure value comparison result, respectively;
[0177] Step 2-7: When any of the handwritten signature image comparison result, the speed value comparison result, and the pressure value comparison result does not meet the set conditions, a verification failure result is returned;
[0178] Among them, the verification conditions of the handwritten signature image, speed value, and pressure value can be set separately. For example, the handwritten signature image can have a feature similarity value greater than a set value, the speed value can have a consistent speed change curve, and the pressure value can remain constant.
[0179] Step 2-8: If all three conditions are met, the verification result is returned successfully.
[0180] As an improved solution, in steps 2-8, the following can also be done:
[0181] When the handwritten signature image comparison results, speed value comparison results, and pressure value comparison results all meet the set conditions, the predicted time value of the user's completed handwritten signature output by the CNN model can also be verified based on the time data obtained from the side chain end block. When the time difference is less than the set value, the authentication result is output; when it is greater than the set value, it returns to step 2-1.
[0182] Furthermore, the process of creating the pre-trained prediction model includes:
[0183] Step A10, obtaining sample handwritten data of the sample handwritten signature;
[0184] Specifically, a digital camera, a scanner or an electronic device is used to obtain image data, handwriting speed data and pressure data of the handwritten signature.
[0185] Step A20, pre-processing the sample handwriting data to obtain processed sample handwriting data;
[0186] Specifically, the collected handwritten signature image is preprocessed, including grayscale conversion, binarization, and denoising, to improve the effect of subsequent processing. At the same time, the velocity data and pressure data are vectorized according to the pixel position to obtain a one-dimensional vector.
[0187] Step A30, performing feature extraction on the processed sample handwriting data to obtain corresponding sample handwriting features;
[0188] Specifically, the preprocessed handwritten signature image, speed data, and pressure data are fed into a convolutional neural network model. Through multiple layers of convolutional layers, pooling layers, and activation functions, abstract features are extracted from the handwritten signature image, which is fused with the speed and pressure data.
[0189] The extracted features are learned and optimized using a deep learning algorithm based on a convolutional neural network to improve the model's ability to represent and classify handwritten signatures.
[0190] Step A40: construct an initial prediction model, and train the initial prediction model based on the sample handwriting features to obtain a pre-trained prediction model.
[0191] Specifically, based on the convolutional neural network model, design a suitable network structure, including convolutional layers, pooling layers, fully connected layers, etc. Determine the number of network layers and the number of neurons in each layer based on actual conditions.
[0192] Then, using the training set data, the network model is trained through backpropagation and optimization algorithms (such as gradient descent). The network parameters are optimized so that it can accurately identify the categories of different handwritten signatures.
[0193] The embodiment of the present application adopts the above-mentioned scheme, which is specifically based on the storage structure of handwritten signatures. Through the storage accuracy requirements in the main chain and combined with the deep learning model, signature verification can be quickly implemented, and then accurate verification is completed based on the data in the side chain block, which greatly improves the verification accuracy and efficiency of handwritten signatures.
[0194] In addition, an embodiment of the present application further provides a handwritten signature processing device, the handwritten signature processing device comprising:
[0195] an acquisition module for acquiring, in response to a handwriting operation, a target pixel position predicted based on current handwriting data corresponding to the handwriting operation and an identity identifier of the user during the process of the user performing a handwriting signature;
[0196] A matching module is configured to match the main chain block corresponding to the identity identifier in a pre-built blockchain storage structure, and obtain a number of pixel positions stored in the main chain block, as well as a matching degree and pre-stored handwritten data corresponding to the number of pixel positions in a side chain attached to the main chain block;
[0197] The verification module is configured to obtain a verification result of the handwriting operation according to the pre-stored handwriting data and the current handwriting data when the similarity between the target pixel position and the plurality of pixel positions satisfies the matching degree.
[0198] For the principle and implementation process of handwritten signature processing implemented in this embodiment, please refer to the above embodiments and will not be repeated here.
[0199] In addition, an embodiment of the present application also proposes a terminal device, which includes a memory, a processor, and a handwritten signature processing program stored on the memory and runnable on the processor. When the handwritten signature processing program is executed by the processor, the steps of the handwritten signature processing method described above are implemented.
[0200] Since this handwritten signature processing program adopts all the technical solutions of all the aforementioned embodiments when executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.
[0201] In addition, an embodiment of the present application further proposes a computer-readable storage medium, on which a handwritten signature processing program is stored. When the handwritten signature processing program is executed by a processor, the steps of the handwritten signature processing method described above are implemented.
[0202] Since this handwritten signature processing program adopts all the technical solutions of all the aforementioned embodiments when executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.
[0203] Compared with the existing technology, the handwritten signature processing method, apparatus, terminal device and storage medium proposed in the embodiments of the present application obtain, in the process of the user performing a handwritten signature, a target pixel position predicted based on the current handwritten data corresponding to the handwriting operation and the identity of the user in response to the handwriting operation; in a pre-constructed blockchain storage structure, the main chain block corresponding to the identity is matched to obtain several pixel positions stored in the main chain block, as well as the matching degree and pre-stored handwritten data corresponding to the several pixel positions in the side chain hanging under the main chain block; when the similarity between the target pixel position and the several pixel positions meets the matching degree, the verification result of the handwriting operation is obtained based on the pre-stored handwritten data and the current handwritten data.
[0204] The present application solution is based on the storage structure of handwritten signatures of blockchain technology, and combines the main-side chain structure to store the user's electronic handwritten signature. When responding to the user's handwriting operation, it can complete accurate verification based on the matching requirements of the complete pixel position stored in the main chain and the data in the side chain block. This can solve the technical problem of low accuracy in electronic handwritten signature verification and improve the verification accuracy of electronic handwritten signatures.
[0205] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0206] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0207] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as mentioned above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the method of each embodiment of the present application.
[0208] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for processing handwritten signatures, characterized in that: The handwritten signature processing method comprises the following steps: In the process of the user performing handwritten signature, in response to the handwriting operation, obtaining the target pixel position predicted based on the current handwriting data corresponding to the handwriting operation, and the identity of the user; In a pre-built blockchain storage structure, the main chain block corresponding to the identity identifier is matched to obtain a number of pixel positions stored in the main chain block, and a matching degree and pre-stored handwritten data corresponding to the number of pixel positions in a side chain attached to the main chain block; When the similarity between the target pixel position and the plurality of pixel positions satisfies the matching degree, a verification result of the handwriting operation is obtained according to the pre-stored handwriting data and the current handwriting data.
2. The handwritten signature processing method according to claim 1, characterized in that: The step of obtaining the verification result of the handwriting operation according to the pre-stored handwriting data and the current handwriting data comprises: Determine the current pixel position of the handwriting operation, and intercept the handwriting data to be verified at the current pixel position from the pre-stored handwriting data; Comparing the current handwritten data with the handwritten data to be verified to obtain a comparison result; When the comparison result meets the preset matching condition, a verification success result is obtained.
3. The handwritten signature processing method according to claim 2, characterized in that: The step of obtaining the target pixel position predicted based on the current handwriting data corresponding to the handwriting operation comprises: Acquire the current handwriting data; The current handwriting data is input into a pre-trained prediction model, and a forward propagation method is used to perform prediction to obtain the target pixel position.
4. The handwritten signature processing method according to claim 3, characterized in that: The step of inputting the current handwriting data into a pre-trained prediction model and using a forward propagation method to perform prediction to obtain the target pixel position comprises: Input the current handwriting data into a pre-trained prediction model, use the forward propagation method to perform prediction, and obtain the target pixel position and the prediction completion time; When the comparison result meets the preset matching condition, the step of obtaining a verification success result includes: When the comparison result satisfies the matching condition, obtaining the pre-stored completion duration from the end block of the side chain; When the difference between the pre-stored completion time and the predicted completion time is less than a preset threshold, a verification success result is obtained.
5. The handwritten signature processing method according to claim 3, characterized in that: The process of creating the pre-trained prediction model includes: Obtaining sample handwriting data of a sample handwritten signature; Preprocessing the sample handwriting data to obtain processed sample handwriting data; Performing feature extraction on the processed sample handwriting data to obtain corresponding sample handwriting features; An initial prediction model is constructed, and based on the sample handwriting features, the initial prediction model is trained to obtain a pre-trained prediction model.
6. The handwritten signature processing method according to claim 1, characterized in that: Before the step of matching the main chain block corresponding to the identity identifier in the pre-built blockchain storage structure, the method further includes: Obtaining the user's pre-stored handwritten signature and the identity identifier; According to the pre-stored handwritten signature, the corresponding plurality of pixel positions and the one-to-one matching degree of the plurality of pixel positions and the pre-stored handwritten data are obtained; wherein the pre-stored handwritten data includes a pre-stored handwritten signature image, a pre-stored speed value and a pre-stored pressure value; In the blockchain storage structure, the main chain block is constructed based on the identity identifier, and the side chain is constructed under the main chain block; The plurality of pixel positions are stored in the main chain block, and the matching degrees and the pre-stored handwriting data corresponding to the plurality of pixel positions are stored in sequence in the plurality of blocks of the side chain.
7. The handwritten signature processing method according to claim 6, characterized in that: After the step of storing the plurality of pixel positions in the main chain block, and storing the matching degrees and the pre-stored handwritten data corresponding to the plurality of pixel positions one by one in sequence in the plurality of blocks of the new side chain, the method further includes: In response to the signature update instruction of the user, a corresponding number of newly added pixel positions and newly added matching degrees and newly added handwritten data corresponding to the number of newly added pixel positions are obtained; Locating the main chain block according to the identity identifier; Constructing a new side chain under the main chain block, storing the several new pixel positions in the main chain block, and placing the several new pixel positions in a one-to-one correspondence in several blocks of new matching degrees and new handwritten data; The step of matching the main chain block corresponding to the identity identifier in the pre-built blockchain storage structure, obtaining a plurality of pixel positions stored in the main chain block, and the matching degree and pre-stored handwritten data corresponding to the plurality of pixel positions in the side chain under the main chain block comprises: In the blockchain storage structure, the main chain block corresponding to the identity identifier is matched to obtain the several newly added pixel positions stored in the main chain block, and the newly added matching degrees and newly added handwritten data corresponding to the several newly added pixel positions hanging under the main chain block.
8. A handwritten signature processing device, characterized in that: The handwritten signature processing device comprises: An acquisition module, used for acquiring, in response to a handwriting operation, a target pixel position predicted based on current handwriting data corresponding to the handwriting operation and an identity identifier of the user during the process of the user performing a handwriting signature; A matching module, used to match the main chain block corresponding to the identity identifier in a pre-built blockchain storage structure, and obtain a number of pixel positions stored in the main chain block, as well as a matching degree and pre-stored handwritten data corresponding to the number of pixel positions in a side chain attached to the main chain block; The verification module is used to obtain the verification result of the handwriting operation according to the pre-stored handwriting data and the current handwriting data when the similarity between the target pixel position and the plurality of pixel positions meets the matching degree.
9. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a handwritten signature processing program stored in the memory and executable on the processor. When the handwritten signature processing program is executed by the processor, the steps of the handwritten signature processing method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a handwritten signature processing program, and when the handwritten signature processing program is executed by a processor, the steps of the handwritten signature processing method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Electronic contract generation method and device, computer equipment and storage medium
CN112818300A
Electronic license reading method and device, equipment and storage medium
CN114726541A
Bank online handwritten signature identity verification method and related equipment
CN115050036A
Target object tracking method and device, computer equipment and storage medium
CN116681730A
