A contract scanner based on blockchain and image recognition and its operation method

By integrating blockchain and image recognition technology in the contract scanner, trustworthy storage and anti-counterfeiting identification of contract information are achieved, and the problem of difficult to reliably store and anti-counterfeiting in the existing technology is solved, and the security and reliability of contract information are improved.

CN115550519BActive Publication Date: 2025-03-04THE THIRD RES INST OF MIN OF PUBLIC SECURITY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211282554.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-19
Publication Date
2025-03-04
Estimated Expiration
2042-10-19

AI Technical Summary

Technical Problem

It is difficult for existing contract scanners to achieve trusted storage and anti-counterfeiting identification of contract information, and there are hidden dangers of transmission reliability and difficult to prevent counterfeiting.

Method used

A contract scanner based on blockchain and image recognition is adopted. The original contract image is encrypted and stored through the contract winding module, and the anti-counterfeiting identification module uses the anti-counterfeiting identification module to identify and compare the image of the encrypted original contract image to realize the anti-counterfeiting identification of the contract.

Benefits of technology

It realizes trusted storage, authentication and traceability of contract data, and provides the anti-counterfeiting and identification function of contracts, enhancing the reliability and security of contract information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115550519B_ABST
    Figure CN115550519B_ABST
Patent Text Reader

Abstract

The present invention provides a contract scanner based on blockchain and image recognition and its operation method, which relates to the technical field of blockchain trust and image recognition comparison, including: when receiving an external data chain instruction, scanning the original paper contract into the original contract image, and securely encrypting the original contract image to obtain the encrypted original contract image and chaining it to be stored in the blockchain; when receiving an external anti-counterfeiting identification instruction, scanning the paper contract to be identified into the contract image to be identified, and when the contract image to be identified is matched to the corresponding encrypted original contract image from the blockchain, image recognition and comparison are performed on the contract image to be identified and the encrypted original contract image to obtain the corresponding anti-counterfeiting identification result of the paper contract to be identified. The beneficial effect is that the contract scanner can realize the anti-counterfeiting identification of the contract while performing trustworthy storage, authentication and traceability of the scanned contract data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain trustworthiness and image recognition comparison technology, and in particular to a contract scanner based on blockchain and image recognition and an operation method thereof. Background Art

[0002] A contract scanner is an instrument used by organizations and individuals to scan signed paper contracts into electronic contracts. Currently, the known contract scanners themselves are generally not equipped with anti-counterfeiting modules, and some contract scanners have been used to transmit contract information by adding network modules, but there are hidden dangers in transmission reliability. In order to overcome the influence of factors such as forgery and tampering of current contract information, it is urgent to store contract information reliably and conduct anti-counterfeiting authentication. Summary of the invention

[0003] In view of the problems existing in the prior art, the present invention provides a contract scanner based on blockchain and image recognition, comprising:

[0004] The contract on-chain module is connected to the blockchain and the contract scanning module respectively. The contract on-chain module is used to control the contract scanning module to scan the original paper contract into an original contract image when receiving an external data on-chain instruction, and to securely encrypt the original contract image to obtain the encrypted original contract image and store it on the blockchain;

[0005] The anti-counterfeiting identification module is respectively connected to the contract scanning module and the blockchain. When receiving an external anti-counterfeiting identification instruction, the anti-counterfeiting identification module controls the contract scanning module to scan the paper contract to be identified into a contract image to be identified, and when the contract image to be identified is matched to the corresponding encrypted original contract image in the blockchain, the image recognition and comparison are performed on the contract image to be identified and the encrypted original contract image to obtain the corresponding anti-counterfeiting identification result of the paper contract to be identified.

[0006] Preferably, the contract on-chain module includes:

[0007] An identity identification unit, used to obtain the original contract image scanned by the contract scanning module, and associate the original contract image with the unique identity code of the contract scanner obtained in advance;

[0008] An encryption unit, connected to the identity identification unit, configured to encrypt and sign the original contract image associated with the unique identity code to obtain the encrypted original contract image;

[0009] The first on-chain unit is connected to the encryption unit and is used to store the encrypted original contract image on the chain in the blockchain.

[0010] Preferably, the encrypted original contract image contains the original contract code of the corresponding original paper contract; then the anti-counterfeiting identification module includes:

[0011] An extraction unit, used for acquiring the contract image to be identified scanned by the contract scanning module, and extracting the contract code to be identified of the paper contract to be identified from the contract image to be identified;

[0012] a query unit, connected to the extraction unit, configured to query the blockchain according to the contract code to be authenticated, and output the encrypted original contract image corresponding to the original contract code when the original contract code is matched in the blockchain;

[0013] A decryption unit, connected to the query unit, configured to decrypt the encrypted original contract image to obtain a decrypted original contract image;

[0014] A verification unit, connected to the decryption unit, for verifying the decrypted original contract image according to the unique identity code of the contract scanner obtained in advance, and outputting the corresponding original contract image after verification;

[0015] An image recognition unit, connected to the extraction unit and the verification unit, respectively, for performing image recognition on the original contract image and the contract image to be identified to obtain corresponding original contract data and contract data to be identified;

[0016] A data comparison unit, connected to the image recognition unit, is used to output the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is authentic when the original contract data is consistent with the contract data to be identified, and to output the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is fake when the original contract data is inconsistent with the contract data to be identified.

[0017] Preferably, the contract on-chain module is also connected to the anti-counterfeiting identification module, and the contract on-chain module also includes a second on-chain unit, which is used to store the anti-counterfeiting identification result on the chain in the blockchain.

[0018] The present invention also provides an operation method of a contract scanner based on blockchain and image recognition, which is applied to the above-mentioned contract scanner. The operation method includes a contract on-chain storage process, and the contract on-chain storage process includes:

[0019] When receiving an external data upload instruction, the contract scanner scans the original paper contract into an original contract image, securely encrypts the original contract image to obtain the encrypted original contract image, and uploads the encrypted image to the blockchain for storage;

[0020] The operation method further includes an anti-counterfeiting identification process, which includes:

[0021] When the contract scanner receives an external anti-counterfeiting identification instruction, it scans the paper contract to be identified into a contract image to be identified, and when the contract image to be identified is matched to the corresponding encrypted original contract image in the blockchain, it performs image recognition and comparison on the contract image to be identified and the encrypted original contract image to obtain the corresponding anti-counterfeiting identification result of the paper contract to be identified.

[0022] Preferably, the contract storage process includes the following steps:

[0023] Step A1, the contract scanner obtains the scanned original contract image, and associates the original contract image with the unique identity code of the contract scanner obtained in advance;

[0024] Step A2, the contract scanner encrypts and signs the original contract image associated with the unique identity code to obtain the encrypted original contract image;

[0025] Step A3, the contract scanner stores the encrypted original contract image on the blockchain.

[0026] Preferably, the anti-counterfeiting identification process includes the following steps:

[0027] Step B1, the contract scanner obtains the scanned contract image to be identified, and extracts the contract code to be identified of the paper contract to be identified from the contract image to be identified;

[0028] Step B2, the contract scanner queries the blockchain according to the contract code to be authenticated, and when the original contract code is matched in the blockchain, outputs the encrypted original contract image corresponding to the original contract code;

[0029] Step B3, the contract scanner decrypts the encrypted original contract image to obtain a decrypted original contract image;

[0030] Step B4, the contract scanner verifies the decrypted original contract image according to the unique identity code of the contract scanner obtained in advance, and outputs the corresponding original contract image after the verification is passed;

[0031] Step B5, the contract scanner performs image recognition on the original contract image and the contract image to be identified to obtain corresponding original contract data and contract data to be identified;

[0032] Step B6, the contract scanner determines whether the original contract data is consistent with the contract data to be authenticated:

[0033] If so, outputting the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is authentic;

[0034] If not, the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is fake is output.

[0035] Preferably, after executing step B6, the contract scanner also stores the anti-counterfeiting identification result in the blockchain.

[0036] The above technical solution has the following advantages or beneficial effects: combining blockchain technology and image recognition and comparison technology, the contract scanner can reliably store, authenticate and trace the scanned contract data while realizing anti-counterfeiting identification of the contract. It is easy to implement, not constrained by the original contract scanner structure, and has a wider range of applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a structural schematic diagram of a contract scanner based on blockchain and image recognition in a preferred embodiment of the present invention;

[0038] Figure 2 The figure is a flowchart of the process of storing contracts on the blockchain in a preferred embodiment of the present invention;

[0039] Figure 3 It is a flowchart of the anti-counterfeiting identification process in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0040] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The present invention is not limited to this embodiment, and other embodiments may also fall within the scope of the present invention as long as they conform to the gist of the present invention.

[0041] In a preferred embodiment of the present invention, based on the above problems existing in the prior art, a contract scanner based on blockchain and image recognition is provided. Figure 1 As shown, including:

[0042] The contract on-chain module 1 is connected to the blockchain 2 and the contract scanning module 3 respectively. The contract on-chain module 1 is used to control the contract scanning module 3 to scan the original paper contract into the original contract image when receiving the external data on-chain instruction, and to securely encrypt the original contract image to obtain the encrypted original contract image and store it on the blockchain;

[0043] The anti-counterfeiting identification module 4 is connected to the contract scanning module 3 and the blockchain 2 respectively. When receiving an external anti-counterfeiting identification instruction, the anti-counterfeiting identification module 4 is used to control the contract scanning module to scan the paper contract to be identified into a contract image to be identified, and when the contract image to be identified is matched to the corresponding encrypted original contract image in the blockchain, the image recognition and comparison are performed on the contract image to be identified and the encrypted original contract image to obtain the corresponding anti-counterfeiting identification result of the paper contract to be identified.

[0044] Specifically, in this embodiment, by configuring the contract chain module 1 in the contract scanner, the original contract image obtained by scanning the original paper contract is encrypted and stored on the blockchain 2, forming online searchable contract chain data, effectively solving the technical problem that the existing contract scanners are difficult to meet the requirements of trusted data storage, and realizing the trusted authentication, storage and traceability of contract data. By configuring the anti-counterfeiting identification module 4 in the contract scanner and based on the encrypted original contract image pre-stored in the blockchain 2, it is possible to perform anti-counterfeiting identification on the paper contract to be identified, effectively solving the technical problem that the existing contract scanners are difficult to achieve anti-counterfeiting identification. Moreover, this technical solution is easy to implement based on the existing contract scanners, is not constrained by the original structure, and has a wider range of applications.

[0045] More specifically, for the original paper contract, the contract chain module 1 includes:

[0046] An identity identification unit 11 is used to obtain the original contract image scanned by the contract scanning module 3, and associate the original contract image with the unique identity code of the contract scanner obtained in advance;

[0047] The encryption unit 12 is connected to the identity identification unit 11 and is used to encrypt and sign the original contract image associated with the unique identity code to obtain the encrypted original contract image;

[0048] The first on-chain unit 13 is connected to the encryption unit 12 and is used to store the encrypted original contract image on the blockchain 2.

[0049] Specifically, in this embodiment, the contract scanning module 3 is an existing functional module configured in the contract scanner, which is used to scan a paper contract into an electronic version of the contract in image format for subsequent chain storage and anti-counterfeiting identification. More specifically, when chain storage is required, the original paper contract is first scanned into an original contract image by the contract scanning module 3, and then the original contract image is associated with the unique identity code of the contract scanner for subsequent data authentication. Among them, the unique identity code can be the device code of the contract scanner. Finally, the original contract image associated with the unique identity code is encrypted and signed and then stored on the chain in the blockchain 2. The above encryption and signing can use the existing encryption signature algorithm, which is not limited here. By associating the original contract image with the unique identity code, encrypting and signing, it is possible to achieve trusted supervision of the entire remote collaboration process.

[0050] Furthermore, by scanning the original paper contract, the contract content, contract number, handwritten signature, seal and other contract data information of the contract can be obtained. Based on this, the encrypted original contract image contains the original contract code of the corresponding original paper contract; the anti-counterfeiting identification module 4 includes:

[0051] The extraction unit 41 is used to obtain the contract image to be identified scanned by the contract scanning module 3, and extract the contract code to be identified of the paper contract to be identified from the contract image to be identified;

[0052] The query unit 42 is connected to the extraction unit 41 and is used to query the blockchain according to the contract code to be authenticated, and when the original contract code is matched in the blockchain, output the encrypted original contract image corresponding to the original contract code;

[0053] The decryption unit 43 is connected to the query unit 42 and is used to decrypt the encrypted original contract image to obtain a decrypted original contract image;

[0054] The verification unit 44 is connected to the decryption unit 43 and is used to verify the decrypted original contract image according to the unique identity code of the contract scanner obtained in advance, and output the corresponding original contract image after the verification is passed;

[0055] The image recognition unit 45 is connected to the extraction unit 41 and the verification unit 44, respectively, and is used to perform image recognition on the original contract image and the contract image to be authenticated to obtain the corresponding original contract data and the contract data to be authenticated;

[0056] The data comparison unit 46 is connected to the image recognition unit 45, and is used to output an anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is authentic when the original contract data is consistent with the contract data to be identified, and to output an anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is fake when the original contract data is inconsistent with the contract data to be identified.

[0057] Specifically, in this embodiment, when it is necessary to conduct contract anti-counterfeiting identification, the contract scanning module 3 is first used to scan the paper contract to be identified into a contract image to be identified, and the contract number of the corresponding paper contract to be identified can be obtained based on the contract image to be identified. The contract number is unique, so the blockchain 2 is accessed according to the contract number, so that when the encrypted original contract image with the same contract number is not matched, it means that the original paper contract corresponding to the paper contract to be identified has not been stored on the chain, and the anti-counterfeiting identification cannot be performed, and when the encrypted original contract image with the same contract number is matched, it means that the original paper contract corresponding to the paper contract to be identified has been stored on the chain, and the encrypted original contract image stored in the blockchain 2 can be called through the contract code, and then the encrypted original contract image is decrypted and verified, and after authentication, the original contract image and the contract image to be identified are compared after image recognition based on the image recognition and comparison technology, and the contract data is accurately extracted, so that the anti-counterfeiting identification of the paper contract to be identified is performed according to the image recognition and comparison results, and further support can be provided for verifying the authenticity of the contract.

[0058] It can be understood that if the image recognition comparison result indicates that the contract data contained in the original contract image and the contract image to be identified are consistent, then the paper contract to be identified is authentic; otherwise, it means that the paper contract to be identified may have been tampered with and the paper contract to be identified is fake.

[0059] In a preferred embodiment of the present invention, the contract on-chain module 1 is also connected to the anti-counterfeiting identification module 4, and the contract on-chain module 1 also includes a second on-chain unit 14, which is used to store the anti-counterfeiting identification results on the blockchain 2.

[0060] The present invention also provides an operation method of a contract scanner based on blockchain and image recognition, which is applied to the above-mentioned contract scanner. The operation method includes a contract on-chain storage process, and the contract on-chain storage process includes:

[0061] When receiving the external data upload instruction, the contract scanner scans the original paper contract into the original contract image, and securely encrypts the original contract image to obtain the encrypted original contract image and uploads it to the blockchain for storage;

[0062] The operation method also includes an anti-counterfeiting identification process, which includes:

[0063] When the contract scanner receives an external anti-counterfeiting identification instruction, it scans the paper contract to be identified into a contract image to be identified, and when the contract image to be identified is matched to the corresponding encrypted original contract image in the blockchain, it performs image recognition and comparison on the contract image to be identified and the encrypted original contract image to obtain the corresponding anti-counterfeiting identification result of the paper contract to be identified.

[0064] In a preferred embodiment of the present invention, Figure 2 As shown in the figure, the contract storage process includes the following steps:

[0065] Step A1, the contract scanner obtains the scanned original contract image, and associates the original contract image with the unique identity code of the contract scanner obtained in advance;

[0066] Step A2, the contract scanner encrypts and signs the original contract image associated with the unique identity code to obtain an encrypted original contract image;

[0067] Step A3: The contract scanner stores the encrypted original contract image on the blockchain.

[0068] In a preferred embodiment of the present invention, Figure 3 As shown, the anti-counterfeiting authentication process includes the following steps:

[0069] Step B1, the contract scanner obtains the scanned image of the contract to be identified, and extracts the contract code of the paper contract to be identified from the image of the contract to be identified;

[0070] Step B2, the contract scanner queries the blockchain according to the contract code to be authenticated, and when the original contract code is matched in the blockchain, it outputs the encrypted original contract image corresponding to the original contract code;

[0071] Step B3, the contract scanner decrypts the encrypted original contract image to obtain a decrypted original contract image;

[0072] Step B4, the contract scanner verifies the decrypted original contract image according to the unique identity code of the contract scanner obtained in advance, and outputs the corresponding original contract image after the verification passes;

[0073] Step B5, the contract scanner performs image recognition on the original contract image and the contract image to be identified to obtain the corresponding original contract data and the contract data to be identified;

[0074] Step B6: The contract scanner determines whether the original contract data is consistent with the contract data to be authenticated:

[0075] If so, output the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is authentic;

[0076] If not, then the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is fake is output.

[0077] In a preferred embodiment of the present invention, after executing step B6, the contract scanner is also included to store the anti-counterfeiting identification result on the blockchain.

[0078] The above description is only a preferred embodiment of the present invention, and does not limit the implementation mode and protection scope of the present invention. For those skilled in the art, it should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the contents of this specification and illustrations should be included in the protection scope of the present invention.

Claims

1. A contract scanner based on blockchain and image recognition, characterized in that: include: The contract on-chain module is connected to the blockchain and the contract scanning module respectively. The contract on-chain module is used to control the contract scanning module to scan the original paper contract into an original contract image when receiving an external data on-chain instruction, and to securely encrypt the original contract image to obtain the encrypted original contract image and store it on the blockchain; an anti-counterfeiting identification module, connected to the contract scanning module and the blockchain, respectively, and configured to control the contract scanning module to scan the paper contract to be identified into a contract image to be identified when receiving an external anti-counterfeiting identification instruction, and when the contract image to be identified is matched to the corresponding encrypted original contract image in the blockchain, respectively perform image recognition and comparison on the contract image to be identified and the encrypted original contract image to obtain the corresponding anti-counterfeiting identification result of the paper contract to be identified; The contract chain module includes: An identity identification unit, used to obtain the original contract image scanned by the contract scanning module, and associate the original contract image with the unique identity code of the contract scanner obtained in advance; An encryption unit, connected to the identity identification unit, configured to encrypt and sign the original contract image associated with the unique identity code to obtain the encrypted original contract image; A first on-chain unit, connected to the encryption unit, for storing the encrypted original contract image on-chain in the blockchain; The encrypted original contract image contains the original contract code corresponding to the original paper contract; the anti-counterfeiting identification module includes: An extraction unit, used for acquiring the contract image to be identified scanned by the contract scanning module, and extracting the contract code to be identified of the paper contract to be identified from the contract image to be identified; a query unit, connected to the extraction unit, configured to query the blockchain according to the contract code to be authenticated, and output the encrypted original contract image corresponding to the original contract code when the original contract code is matched in the blockchain; A decryption unit, connected to the query unit, configured to decrypt the encrypted original contract image to obtain a decrypted original contract image; A verification unit, connected to the decryption unit, for verifying the decrypted original contract image according to the unique identity code of the contract scanner obtained in advance, and outputting the corresponding original contract image after verification; An image recognition unit, connected to the extraction unit and the verification unit, respectively, for performing image recognition on the original contract image and the contract image to be identified to obtain corresponding original contract data and contract data to be identified; A data comparison unit, connected to the image recognition unit, is used to output the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is authentic when the original contract data is consistent with the contract data to be identified, and to output the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is fake when the original contract data is inconsistent with the contract data to be identified.

2. The contract scanner according to claim 1, characterized in that: The contract on-chain module is also connected to the anti-counterfeiting identification module, and the contract on-chain module also includes a second on-chain unit, which is used to store the anti-counterfeiting identification result on the chain in the blockchain.

3. A method for operating a contract scanner based on blockchain and image recognition, characterized in that: Applied to the contract scanner as claimed in claim 1 or 2, the operation method includes a contract on-chain storage process, and the contract on-chain storage process includes: When receiving an external data upload instruction, the contract scanner scans the original paper contract into an original contract image, securely encrypts the original contract image to obtain the encrypted original contract image, and uploads the encrypted image to the blockchain for storage; The operation method further includes an anti-counterfeiting identification process, which includes: When the contract scanner receives an external anti-counterfeiting identification instruction, it scans the paper contract to be identified into a contract image to be identified, and when the contract image to be identified is matched to the corresponding encrypted original contract image from the blockchain, it performs image recognition and comparison on the contract image to be identified and the encrypted original contract image to obtain the corresponding anti-counterfeiting identification result of the paper contract to be identified; The contract storage process includes the following steps: Step A1, the contract scanner obtains the scanned original contract image, and associates the original contract image with the unique identity code of the contract scanner obtained in advance; Step A2, the contract scanner encrypts and signs the original contract image associated with the unique identity code to obtain the encrypted original contract image; Step A3, the contract scanner stores the encrypted original contract image in the blockchain; The anti-counterfeiting identification process includes the following steps: Step B1, the contract scanner obtains the scanned contract image to be identified, and extracts the contract code to be identified of the paper contract to be identified from the contract image to be identified; Step B2, the contract scanner queries the blockchain according to the contract code to be authenticated, and when the original contract code is matched in the blockchain, outputs the encrypted original contract image corresponding to the original contract code; Step B3, the contract scanner decrypts the encrypted original contract image to obtain a decrypted original contract image; Step B4, the contract scanner verifies the decrypted original contract image according to the unique identity code of the contract scanner obtained in advance, and outputs the corresponding original contract image after the verification is passed; Step B5, the contract scanner performs image recognition on the original contract image and the contract image to be identified to obtain corresponding original contract data and contract data to be identified; Step B6, the contract scanner determines whether the original contract data is consistent with the contract data to be authenticated: If so, outputting the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is authentic; If not, the anti-counterfeiting identification result indicating that the corresponding paper contract to be identified is fake is output.

4. The operating method according to claim 3, characterized in that: After executing step B6, the contract scanner also stores the anti-counterfeiting identification result in the blockchain.

Citation Information

Patent Citations

  • File verification method and device, electronic equipment and computer readable medium

    CN112417518A