CN111984734A - Data processing method, device and equipment based on block chain and storage medium - Google Patents

Data processing method, device and equipment based on block chain and storage medium Download PDF

Info

Publication number
CN111984734A
CN111984734A CN202010914303.XA CN202010914303A CN111984734A CN 111984734 A CN111984734 A CN 111984734A CN 202010914303 A CN202010914303 A CN 202010914303A CN 111984734 A CN111984734 A CN 111984734A
Authority
CN
China
Prior art keywords
data
target
information
block chain
structured data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010914303.XA
Other languages
Chinese (zh)
Inventor
何万涛
杨扬
鲁睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010914303.XA priority Critical patent/CN111984734A/en
Publication of CN111984734A publication Critical patent/CN111984734A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data processing method, a device, equipment and a storage medium based on a block chain, which are applied to the field of the block chain, wherein the method comprises the following steps: receiving a target data uplink request carrying user information and a data associated image, calling an image identification model to identify the data associated image through a pre-deployed intelligent contract, determining structured data corresponding to the data associated image based on an identification result, performing consensus verification on the structured data through a consensus node in a block chain network, and writing the structured data and the user information into a block chain corresponding to the block chain network after the consensus verification is passed. The extraction and storage of the structured data are realized on the block chain by combining the non-tamper-proof property of the block chain, the transparency of the whole process can be improved, the problem that the structured data is tampered is prevented, and the accuracy and the reliability of the extracted structured data are improved.

Description

Data processing method, device and equipment based on block chain and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing data based on a block chain.
Background
At present, different processing is generally required to be performed by using various target data in daily life of people, but in a real scene, a user generally provides a data-related image obtained by photographing the target data or a data-related image obtained by printing, and when the user wants to acquire corresponding structured data from the data-related image, the user generally enters the data manually. Taking target data as bill data (e.g., data of an invoice, a shopping receipt, a receipt, etc.), people often use various bills to reimburse or perform statistical processing, in a scene of reimbursement or statistics of bills, structured data of bills (e.g., an invoice code, an invoice amount, invoice issuing enterprise information, etc.) is usually required, but in a real scene, generally, a user can only provide a bill image obtained by photographing the bills or a printed bill (i.e., the data-related image), and the structured data corresponding to the bills is required to be acquired, often in a manner of manual entry by the user. Therefore, the existing mode of acquiring the structured data from the data-associated image is low in efficiency, risks of tampering exist, and accuracy and credibility of the data are difficult to guarantee.
Disclosure of Invention
The embodiment of the application provides a data processing method, a device, equipment and a storage medium based on a block chain, and on one hand, the efficiency of acquiring structured data corresponding to a data-associated image is improved by combining an image recognition technology; on the other hand, the extraction and storage of the structured data on the block chain are realized by combining the non-tamper-proof property of the block chain, so that the transparency of the whole process can be improved, the problem that the structured data is tampered is prevented, and the accuracy and the reliability of the extracted structured data are improved.
In one aspect, an embodiment of the present application provides a data processing method based on a block chain, which is applied to a node of a block chain network, and the method includes:
receiving a target data uplink request, wherein the target data uplink request carries user information and a data associated image;
calling an image recognition model through a pre-deployed intelligent contract to recognize the data associated image, and determining structured data corresponding to the data associated image based on a recognition result;
performing consensus verification on the structured data through a consensus node in the blockchain network;
and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated mode.
In another aspect, an embodiment of the present application provides a data processing apparatus based on a block chain, where the apparatus includes:
a communication module, configured to receive a target data uplink request, where the target data uplink request carries user information and a data associated image;
the processing module is used for calling an image recognition model through a pre-deployed intelligent contract to recognize the data correlation image and determining the structural data corresponding to the data correlation image based on a recognition result;
the processing module is further configured to perform consensus verification on the structured data through a consensus node in the blockchain network, and after the consensus verification is passed, associate and write the structured data and the user information into a blockchain corresponding to the blockchain network.
In another aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a communication interface, where the processor, the memory, and the communication interface are connected to each other, where the memory is used to store a computer program that supports a terminal to execute the foregoing method, the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps:
receiving a target data uplink request through a communication interface, wherein the target data uplink request carries user information and a data associated image;
calling an image recognition model through a pre-deployed intelligent contract to recognize the data associated image, and determining structured data corresponding to the data associated image based on a recognition result;
performing consensus verification on the structured data through a consensus node in the blockchain network;
and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated mode.
In yet another aspect, the present application provides a computer-readable storage medium, in which computer program instructions are stored, and when executed by a processor, the computer program instructions are configured to perform the method for processing data based on a blockchain according to the first aspect.
In the embodiment of the application, a node of a block chain network can receive a target data uplink request carrying user information and a data associated image, call an image recognition model to recognize the data associated image through a pre-deployed intelligent contract, and determine structured data corresponding to the data associated image based on a recognition result. Further, the consensus node in the block chain network performs consensus verification on the structured data, and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated manner. On one hand, the efficiency of acquiring the structured data corresponding to the data associated image is improved by combining the image identification technology; on the other hand, the extraction and storage of the structured data on the block chain are realized by combining the non-tamper-proof property of the block chain, so that the transparency of the whole process can be improved, the problem that the structured data is tampered is prevented, and the accuracy and the reliability of the extracted structured data are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a block chain according to an embodiment of the present disclosure;
FIG. 2 is a block diagram of a data processing system according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a data processing method based on a block chain according to another embodiment of the present application;
FIG. 5 is a block diagram of an alternative data processing system according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a data processing apparatus based on a block chain according to an embodiment of the present application;
fig. 7 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The data processing method based on the block chain provided by the embodiment of the application can be applied to various scenes in which structured data need to be extracted from data-related images and stored, taking the field of bills as an example, the data-related images described in the application can be bill images, such as images obtained by shooting bills or printing the bills. The structured data corresponding to the data association image can be, for example, a ticket code, an amount of the issued ticket, ticket issuing enterprise information, and the like. In order to better understand the embodiments of the present application, the following description will be given by taking the application to the field of documents as an example, unless otherwise specified.
The embodiment of the application provides a data processing method based on a block chain, which can be applied to a node of a block chain network, wherein the node can be any node accessed into the block chain network, and the node can be any form of electronic equipment, such as a server, a user terminal and the like. In one embodiment, a node may receive a target data uplink request carrying user information and a data associated image, call an image recognition model to recognize the data associated image through a pre-deployed intelligent contract, and determine structured data corresponding to the data associated image based on a recognition result. Further, the consensus node in the block chain network performs consensus verification on the structured data, and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated manner. On one hand, the efficiency of acquiring the structured data corresponding to the data-associated image is improved by combining the image recognition technology; on the other hand, the extraction and storage of the structured data on the block chain are realized by combining the non-tamper-proof property of the block chain, so that the transparency of the whole process can be improved, the problem that the structured data is tampered is prevented, and the accuracy and the reliability of the extracted structured data are improved.
The Block Chain (Block Chain) is a Chain data structure which combines data blocks in a sequential connection mode according to a time sequence and is a distributed book which is cryptographically used for ensuring that the data cannot be tampered and forged. Multiple independent distributed nodes (i.e., block-linked node devices) maintain the same record. The blockchain technology realizes decentralization and becomes a foundation for credible digital asset storage, transfer and transaction.
Taking the block chain structure diagram shown in fig. 1 as an example, when new data needs to be written into the block chain, the data is collected into a block (block) and added to the end of the existing block chain, and the newly added block of each node is ensured to be identical through a consensus algorithm. A plurality of transaction records are recorded in each block, and the transaction records also comprise the hash (hash) value of the previous block, and all blocks store the hash value of the previous block in the way and are connected in sequence to form a block chain. The hash value of the previous block is stored in the block head of the next block in the block chain, and when the transaction data in the current block changes, the hash value of the block is changed, so that the transaction data uploaded to the block chain network is difficult to tamper, the transaction is carried out on the block chain, the transaction process is transparent, and the reliability of the transaction data is improved.
In order to better understand a data processing method based on a block chain disclosed in the embodiment of the present application, a block chain system applicable to the embodiment of the present application is first described below.
Referring to fig. 2, fig. 2 is a schematic diagram of an architecture of a data processing system according to an embodiment of the present disclosure. As shown in fig. 2, the data processing system comprises at least one terminal device 201, a first node 202, at least one second node 203 of a blockchain network. It should be noted that the blockchain network shown in fig. 2 is composed of one first node 202 and two second nodes 203, which is only for example and does not constitute a limitation to the embodiment of the present application. For example, in another example, a blockchain network may be comprised of one first node 202 and four second nodes 203.
In an embodiment, the first node 202 may be any one of the blockchain node devices in the blockchain network, the first node 202 may also be the blockchain node device closest to the terminal device 201, and the first node 202 may also be the blockchain node device with the best communication quality with the terminal device 201, which is not limited herein.
In one embodiment, the first nodes 202 are selected from all first nodes in the blockchain network according to a consensus algorithm, wherein the consensus algorithm includes, but is not limited to, a Proof of workload (Proof of Work, PoW) algorithm, a Proof of rights (Proof of stamp, PoS) algorithm, a granted Proof of rights (DPoS) algorithm, a Practical Byzantine Fault Tolerant (PBFT) algorithm, and the like. The first node 202 may also be obtained by periodic election through a consensus algorithm, and the first nodes 202 obtained by different periodic elections may be the same or different.
In one embodiment, when a user wants to upload a data-associated image, the user may send a target data uplink request to the first node 202 in the blockchain network through the terminal apparatus 201, where the target data uplink request carries user information and the data-associated image of the user. Further, the first node 202 may invoke an image recognition model through the pre-deployed intelligent contract to recognize the data-associated image and determine the corresponding structured data of the data-associated image based on the recognition result. Further, the consensus node in the block chain network performs consensus verification on the structured data, and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated manner.
It is to be understood that the data processing system described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation to the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows that along with the evolution of the system architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
Referring to fig. 3, it is a flowchart illustrating a data processing method based on a blockchain according to an embodiment of the present disclosure, where the method according to the embodiment of the present disclosure may be executed by a node (e.g., a first node in fig. 2) of a blockchain network. The method of an embodiment of the present application includes the following steps.
S301: receiving a target data uplink request, wherein the target data uplink request carries user information and a data associated image. In a specific implementation, any user can send a target data uplink request to a node in a blockchain network through a terminal device of the user, where the target data uplink request carries user information of the user and an uploaded data associated image.
S302: and calling an image recognition model to recognize the data associated image through the pre-deployed intelligent contract, and determining the structured data corresponding to the data associated image based on the recognition result. The data-related image is taken as an image corresponding to the invoice as an example, and the structured data comprises information such as invoice codes, invoice amount, invoice issuing enterprise information and the like.
In one embodiment, an intelligent contract may be pre-deployed on the blockchain, the intelligent contract providing that upon receiving any one target data uplink request, an image recognition model is invoked to identify a data-associated image carried in the target data uplink request. The image recognition model is obtained by training a large number of training samples in advance, corresponding structured data can be well extracted from the data association image, and the image recognition model can be a neural network model.
In consideration of the fact that some data-related images are folded or damaged corresponding to target objects (such as bills), some field details may not be recognized on the data-related images in the process of recognizing the data-related images, so that the recognition result for the data-related images is inaccurate. According to the embodiment of the application, before the structured data corresponding to the data associated image is determined based on the identification result, whether the identification result includes the preset key information or not is detected, if the identification result includes the preset key information, it is indicated that the target object corresponding to the data associated image may not be folded or damaged, and the identification result can be directly determined as the structured data corresponding to the data associated image. The preset key information includes that configuration can be made according to business needs, the data-associated image is taken as an image corresponding to the invoice as an example, and the preset key information can be invoicing date, invoice code, invoice number, invoice amount and the like.
Or, if it is detected that the recognition result includes the preset key information, indicating that the target object corresponding to the data associated image may be folded or damaged, acquiring identification information (e.g., a ticket number) of the target object corresponding to the data associated image from the recognition result, sending a ticket data request including the identification information to a target node in the blockchain network, where the ticket data request indicates the target node to acquire object data of the target object based on the identification information, and returning the object data of the target object. Further, object data returned by the target node can be received, and structured data corresponding to the data association image can be determined based on the object data. The target node is a node associated with a service corresponding to a target object in the blockchain network, taking the target object as a bill as an example, the target node may refer to a node corresponding to a tax bureau, and the target data is bill detail data (such as a bill code, a billing amount, bill billing enterprise information, and the like). By adopting the mode, the accuracy of the obtained structured data can be improved by combining the target node.
By taking the target object corresponding to the data associated image as the invoice and the target node as the tax node as an example, in the process of determining the structured data corresponding to the data associated image, the tax node can be combined, and by identifying the number of the invoice and calling the tax interface, the detail is further inquired, and the identification accuracy is improved. The tax interface needs to be charged, so that the cost is high, the service promotion is inconvenient, and the tax interface is recommended to be called only under the condition that the invoice identification accuracy is not high.
The judging mode that the invoice identification accuracy is not high is as follows: because some bills are folded or damaged, some field details may not be identified on the invoice image in the process of identifying the invoice image. If the identification result of the invoice image is detected not to include the key information, it can be determined that the invoice identification accuracy is low. The key information may include invoicing date, invoice code, invoice number, invoice amount, and the like. The key fields can be configured according to the service requirements.
S303: and performing consensus verification on the structured data through a consensus node in the block chain network, and writing the structured data and the user information into a block chain corresponding to the block chain network in an associated manner after the consensus verification is passed.
The method for writing the structural data and the user information into the block chain corresponding to the block chain network in the associated manner comprises the following steps:
in the first mode, a new block can be generated in the block chain, and the structured data and the user information can be written in the new block.
And secondly, extracting receiver information of a target object corresponding to the data association image from the structured data, determining a target block matched with the receiver information from a plurality of blocks on the block chain, and associating and writing the structured data and the user information into the target block. Wherein, assuming that the data-associated image corresponds to the ticket a of the target object, the recipient information may be information of the recipient of the ticket a, such as a business name.
The specific implementation manner of the second mode is as follows: each receiver (e.g., each enterprise) may register its own tile in the tile chain in advance, and when the node performs the step S303 to write the structured data into the tile chain, the receiver information may be obtained from the structured data, and the receiver information may be analyzed to determine an intended receiver corresponding to the structured data. Further, the block which is registered on the block chain in advance by the target receiver is determined as a target block, and the structured data and the user information are associated and written into the target block.
Subsequently, the target receiving party can obtain all the structured data submitted to the target receiving party from the target block of the target receiving party, retrieve the data related to the target receiving party, and continue the related business processing, such as accounting financial statement or invoice reimbursement and the like. Without having to look up in all blocks of the block chain.
The specific implementation of performing consensus verification on the structured data through the consensus node in the block chain network may be that the node sends the structured data, the data associated image and the user information to other nodes in the block chain network, the other nodes may perform block chain consensus on the structured data, the data associated image and the user information, and if the structural data, the data associated image and the user information are confirmed to pass through by more than a preset number of other nodes in the block chain network, it is determined that the consensus verification on the structured data passes through. Wherein the preset number is preset by a developer based on experimental measurement and calculation data.
In the embodiment of the application, a node in a block chain network can receive a target data uplink request carrying user information and a data associated image, call an image recognition model to recognize the data associated image through a pre-deployed intelligent contract, and determine structured data corresponding to the data associated image based on a recognition result. Further, the consensus node in the block chain network performs consensus verification on the structured data, and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated manner. On one hand, the efficiency of acquiring the structured data corresponding to the data-associated image is improved by combining the image recognition technology; on the other hand, the extraction and storage of the structured data on the block chain are realized by combining the non-tamper-proof property of the block chain, so that the transparency of the whole process can be improved, the problem that the structured data is tampered is prevented, and the accuracy and the reliability of the extracted structured data are improved.
Referring to fig. 4, which is a schematic flow chart of a data processing method based on a blockchain according to another embodiment of the present application, where the method according to the embodiment of the present application may be executed by a node of a blockchain network, as shown in fig. 4, the method includes:
s401: receiving a target data uplink request, wherein the target data uplink request carries user information and a data associated image.
S402: and calling an image recognition model to recognize the data associated image through the pre-deployed intelligent contract, and determining the structured data corresponding to the data associated image based on the recognition result.
S403: performing consensus verification on the structured data through a consensus node in the blockchain network, and after the consensus verification is passed, writing the structured data and the user information into a blockchain corresponding to the blockchain network in an associated manner, where specific implementation manners of steps S401 to S403 may refer to relevant descriptions of steps S301 to S303 in the foregoing embodiment, which are described herein again.
S404: and receiving an association operation request of the target data, wherein the association operation request comprises operation information and processing system information of a target object corresponding to the data association image, and the processing system information is used for indicating a target processing system for processing the target object. Taking target data as invoice data as an example, assuming that data is associated with a bill A of a target object corresponding to an image, the associated operation request of the target data can indicate a bill reimbursement request, the operation information can indicate reimbursement information required for reimbursement of the bill A, and the reimbursement information comprises information such as an invoice number, an invoice issuing enterprise unified social code, an invoice receiving enterprise unified social code and the like; the processing system information indicates a reimbursement processing system (i.e., the target processing system) for reimbursement processing the ticket a, and may be, for example, a financial system of a certain enterprise.
The method proposed in the embodiments of the present application may be applied to a data processing system shown in fig. 5, where the data processing system includes at least one terminal device 201, a first node 202 of a blockchain network, at least one second node 203, and at least one processing system 204. In a specific implementation, taking an invoice reimbursement scene as an example, assuming that the data is associated with a bill a of a target object corresponding to the image, when a user wants to reimburse the bill a, the user may send a bill reimbursement request (i.e., the associated operation request) to a node in the blockchain network through the terminal device, where the bill reimbursement request includes reimbursement information of the bill a and processing system information capable of processing reimbursement of the target bill (e.g., a financial system of an enterprise corresponding to the user). Alternatively, when a user submits an reimbursement request (the reimbursement request includes reimbursement information of the ticket a and processing system information) on a target processing system to which the user belongs, and a processing person checks the reimbursement request, the ticket reimbursement request may be sent to the node in order to verify the authenticity of the ticket a or to obtain details of the ticket a.
S405: structured data and user information associated with the target object are obtained from the blockchain based on the operational information, and the target processing system is determined as indicated by the processing system information.
As can be seen from the above description, through steps S401 to S403, any user can link up the structured data of the target object (e.g., the ticket) corresponding to the user information and the data-related image of the user, that is, the block chain stores the structured data of each target object. In a specific implementation, the operation information includes an identifier of the target object, and when step S405 is executed, structured data and user information corresponding to the identifier may be searched for on the blockchain based on the identifier (e.g., a ticket number), that is, the structured data and the user information associated with the target object.
S406: and sending the structured data and the user information associated with the target object to a target processing system so that a processing person corresponding to the target processing system can check and process the target object based on the structured data and the user information associated with the target object. Taking an invoice reimbursement scene as an example, assuming that the target object is the bill a, the auditing process here may refer to reimbursement auditing for the bill a.
In one embodiment, the processing person may log in the target processing system to view the structured data and the user information associated with the target object sent by the node in step S406, perform an audit on the target object based on the structured data and the user information associated with the target object, and after the audit is passed, may send a transaction request to the node, where the transaction request includes confirmation indication information, where the confirmation indication information includes a virtual resource transfer amount, an asset account of the requesting user corresponding to the association operation request, and an asset account of a recipient of the target object.
Further, after receiving the transaction request sent by the target processing system, the node may obtain the asset account of the requesting user and the asset account of the receiving party, and transfer the virtual resource transfer amount from the asset account of the receiving party to the asset account of the requesting user, thereby implementing online related processing. By taking a bill reimbursement scene as an example, the online bill reimbursement processing can be realized through the mode.
The asset account may refer to a bank account (e.g., a bank card number), or may refer to a platform account corresponding to a service platform in the blockchain network of the requesting user or the receiving party.
Illustratively, assuming the virtual resource transfer amount is 400-tuple, the above asset accounts are the bank card numbers of the requesting user and the recipient, the bank card number of the requesting user is XXXXXXXXX02, and the bank card number of the recipient is XXXXXXXXXXXXX 03. In this case, the node may send a transfer request to the bank corresponding to the recipient's bank card requesting the bank to transfer the 400-tuple from the recipient's bank card xxxxxxxx03 to the requesting user's bank card xxxxxxxxxxxx 02.
In one embodiment, after the structured data and the user information associated with the target object are sent to the target processing system, audit confirmation information sent by the target processing system may also be received, and the audit confirmation information is used for indicating that the audit processing of the target object by the processing personnel is passed. Further, a failed flag may be added to the structured data corresponding to the target object on the blockchain. Subsequent reuse of the target object can be prevented. Taking a ticket reimbursement scenario as an example, the expired tag may be a reimbursed tag for indicating that the corresponding target object has reimbursed, thereby preventing reimbursement of the ticket. In this case, in this embodiment of the present application, it is also possible to query whether a certain ticket is marked as reimbursed on the blockchain subsequently before reimbursement is performed on the certain ticket, so as to prevent reimbursement of the ticket.
In the embodiment of the application, a node in a block chain network can receive a target data uplink request carrying user information and a data associated image, call an image recognition model to recognize the data associated image through a pre-deployed intelligent contract, and determine structured data corresponding to the data associated image based on a recognition result. Further, the consensus node in the block chain network performs consensus verification on the structured data, and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated manner. Further, the association operation request may be received, the structured data and the user information associated with the target object may be obtained from the blockchain based on the operation information, the target processing system may be determined according to the indication of the processing system information, and the structured data and the user information associated with the target object may be sent to the target processing system, so that a processing person corresponding to the target processing system may perform an audit process on the target object based on the structured data and the user information associated with the target object. The block chain technology can be combined to assist a processor in carrying out related processing on the target object, so that the transparency of the whole process can be improved, the problem that the structured data corresponding to the target object is tampered is solved, and the efficiency and the reliability of the related processing on the target object are improved.
The embodiment of the present application further provides a computer storage medium, in which program instructions are stored, and when the program instructions are executed, the computer storage medium is used for implementing the corresponding method described in the above embodiment.
Based on the above description of the embodiment of the data processing method based on the blockchain, an embodiment of the present application further provides a data processing apparatus based on the blockchain, where the data processing apparatus based on the blockchain may be a computer program (including program code) running in the above node. The block chain based data processing apparatus may be configured to perform the block chain based data processing method shown in fig. 3 and 4, and referring to fig. 6, the block chain based data processing apparatus may include: a communication module 60 and a processing module 61.
A communication module 60, configured to receive a target data uplink request, where the target data uplink request carries user information and a data associated image;
the processing module 61 is configured to invoke an image recognition model to recognize the data-related image through a pre-deployed intelligent contract, and determine structured data corresponding to the data-related image based on a recognition result;
the processing module 61 is further configured to perform consensus verification on the structured data through a consensus node in the blockchain network, and after the consensus verification is passed, associate and write the structured data and the user information into a blockchain corresponding to the blockchain network.
In an embodiment, the processing module 61 is specifically configured to obtain identification information of a target object corresponding to the data association image from the recognition result, send a ticket data request including the identification information to a target node in the blockchain network through the communication module 60, where the ticket data request indicates that the target node obtains object data of the target object based on the identification information and returns the object data of the target object, receive the object data returned by the target node through the communication module 60, and determine structured data corresponding to the data association image based on the object data, where the target node is a node associated with a service corresponding to the target object in the blockchain network.
In an embodiment, the processing module 61 is further configured to detect whether the identification result includes preset key information; and if the preset key information is not included in the identification result, triggering and executing the step of acquiring the identification information of the target object corresponding to the data-associated image from the identification result.
In one embodiment, the processing module 61 is further configured to receive, through the communication module 60, an association operation request of target data, where the association operation request includes operation information and processing system information of a target object corresponding to the data association image, and the processing system information is used to indicate a target processing system for processing reimbursement of the target object; acquiring the structured data and user information associated with the target object from a block chain based on the operation information; determining the target processing system in accordance with the indication of processing system information; the structured data and the user information associated with the target object are sent to the target processing system through the communication module 60, so that a processing person corresponding to the target processing system can perform auditing processing on the target object based on the structured data and the user information associated with the target object.
In one embodiment, the processing module 61 is further configured to receive, through the communication module 60, a transaction request sent by the target processing system, where the transaction request is sent by the target processing system after the processing personnel passes the auditing process of the target object, and the transaction request includes confirmation indication information, where the confirmation indication information includes a virtual resource transfer amount, an asset account of a requesting user corresponding to the association operation request, and an asset account of a receiving party; acquiring the asset account of the requesting user and the asset account of the receiving party; transferring the virtual resource transfer amount from the asset account of the recipient to the asset account of the requesting user.
In one embodiment, the processing module 61 is further configured to receive, through the communication module 60, audit confirmation information sent by the target processing system, where the audit confirmation information is used to indicate that the audit processing on the target object by a processing person passes; and adding a failed mark to the structured data corresponding to the target object on the block chain.
In an embodiment, the processing module 61 is further specifically configured to extract, from the structured data, recipient information of a target object corresponding to the data associated image; determining a target block matching the receiver information from a plurality of blocks on a blockchain; and writing the structural data and the user information into the target block in an associated manner.
In the embodiment of the application, the data processing device can receive a target data uplink request carrying user information and a data associated image, call an image recognition model to recognize the data associated image through a pre-deployed intelligent contract, and determine structured data corresponding to the data associated image based on a recognition result. Further, the consensus node in the block chain network performs consensus verification on the structured data, and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated manner. On one hand, the efficiency of acquiring the structured data corresponding to the data associated image is improved by combining the image identification technology; on the other hand, the extraction and storage of the structured data on the block chain are realized by combining the non-tamper-proof property of the block chain, so that the transparency of the whole process can be improved, the problem that the structured data is tampered is prevented, and the accuracy and the reliability of the extracted structured data are improved.
Referring to fig. 7 again, the structure of an electronic device according to an embodiment of the present disclosure is schematically illustrated, where the electronic device may be any node in a blockchain network, and the electronic device according to the embodiment of the present disclosure includes a power supply module and the like, and includes a processor 701, a memory 702, and a communication interface 703. Data can be interacted among the processor 701, the memory 702 and the communication interface 703, and the processor 701 realizes a corresponding root certificate management function.
The memory 702 may include volatile memory (volatile memory), such as random-access memory (RAM); the memory 702 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), etc.; the memory 702 may also comprise a combination of memories of the above-mentioned kinds.
The processor 701 may be a Central Processing Unit (CPU) 701. In one embodiment, the processor 701 may also be a Graphics Processing Unit (GPU) 701. The processor 701 may also be a combination of a CPU and a GPU. In the electronic device, a plurality of CPUs and GPUs may be included as necessary to perform corresponding root certificate management. In one embodiment, the memory 702 is used to store program instructions. The processor 701 may invoke the program instructions to implement the various methods as described above in the embodiments of the present application.
In one embodiment, the processor 701 of the electronic device invokes a program instruction stored in the memory 702 for receiving a target data uplink request through the communication interface 703, where the target data uplink request carries user information and a data associated image; calling an image recognition model through a pre-deployed intelligent contract to recognize the data associated image, and determining structured data corresponding to the data associated image based on a recognition result; performing consensus verification on the structured data through a consensus node in the blockchain network; and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated mode.
In an embodiment, the processor 701 is specifically configured to obtain identification information of a target object corresponding to the data association image from the recognition result, send a ticket data request including the identification information to a target node in the blockchain network through the communication interface 703, where the ticket data request indicates that the target node obtains object data of the target object based on the identification information and returns the object data of the target object, receive the object data returned by the target node through the communication interface 703, and determine structured data corresponding to the data association image based on the object data, where the target node is a node associated with a service corresponding to the target object in the blockchain network.
In an embodiment, the processor 701 is further configured to detect whether the identification result includes preset key information; and if the preset key information is not included in the identification result, triggering and executing the step of acquiring the identification information of the target object corresponding to the data-associated image from the identification result.
In one embodiment, the processor 701 is further configured to receive an association operation request of target data through the communication interface 703, where the association operation request includes operation information and processing system information of a target object corresponding to the data association image, and the processing system information is used to indicate a target processing system that processes reimbursement of the target object; acquiring the structured data and user information associated with the target object from a block chain based on the operation information; determining the target processing system in accordance with the indication of processing system information; the structured data and the user information associated with the target object are sent to the target processing system through the communication interface 703, so that a processing person corresponding to the target processing system can perform auditing processing on the target object based on the structured data and the user information associated with the target object.
In one embodiment, the processor 701 is further configured to receive, through the communication interface 703, a transaction request sent by the target processing system, where the transaction request is sent by the target processing system after the processing personnel passes the auditing process of the target object, and the transaction request includes confirmation indication information, where the confirmation indication information includes a virtual resource transfer amount, an asset account of a requesting user corresponding to the association operation request, and an asset account of a receiving party; acquiring the asset account of the requesting user and the asset account of the receiving party; transferring the virtual resource transfer amount from the asset account of the recipient to the asset account of the requesting user.
In one embodiment, the processor 701 is further configured to receive, through the communication interface 703, audit confirmation information sent by the target processing system, where the audit confirmation information is used to indicate that an audit process on the target object by a processor is passed; and adding a failed mark to the structured data corresponding to the target object on the block chain.
In an embodiment, the processor 701 is further specifically configured to extract, from the structured data, recipient information of a target object corresponding to the data associated image; determining a target block matching the receiver information from a plurality of blocks on a blockchain; and writing the structural data and the user information into the target block in an associated manner.
In the embodiment of the present application, the specific implementation of the processor 701 may refer to the description of relevant contents in the embodiments corresponding to the foregoing drawings.
In the embodiment of the application, the electronic device can receive a target data uplink request carrying user information and a data associated image, call an image recognition model to recognize the data associated image through a pre-deployed intelligent contract, and determine structured data corresponding to the data associated image based on a recognition result. Further, the consensus node in the block chain network performs consensus verification on the structured data, and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated manner. On one hand, the efficiency of acquiring the structured data corresponding to the data associated image is improved by combining the image identification technology; on the other hand, the extraction and storage of the structured data on the block chain are realized by combining the non-tamper-proof property of the block chain, so that the transparency of the whole process can be improved, the problem that the structured data is tampered is prevented, and the accuracy and the reliability of the extracted structured data are improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a particular embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for processing data based on a blockchain, the method being applied to a node of a blockchain network, the method comprising:
receiving a target data uplink request, wherein the target data uplink request carries user information and a data associated image;
calling an image recognition model through a pre-deployed intelligent contract to recognize the data associated image, and determining structured data corresponding to the data associated image based on a recognition result;
performing consensus verification on the structured data through a consensus node in the blockchain network;
and after the consensus verification is passed, the structured data and the user information are written into the block chain corresponding to the block chain network in an associated mode.
2. The method of claim 1, wherein determining the structured data corresponding to the data-associated image based on the recognition result comprises:
acquiring identification information of a target object corresponding to the data associated image from the identification result;
sending a bill data request including the identification information to a target node in the block chain network, wherein the bill data request indicates that the target node acquires object data of the target object based on the identification information and returns the object data of the target object, and the target node is a node related to a service corresponding to the target object in the block chain network;
and receiving the object data returned by the target node, and determining the structured data corresponding to the data association image based on the object data.
3. The method according to claim 2, wherein before the obtaining of the identification information of the target object corresponding to the data-related image from the recognition result, the method further comprises:
detecting whether the identification result comprises preset key information or not;
and if the preset key information is not included in the identification result, triggering and executing the step of acquiring the identification information of the target object corresponding to the data-associated image from the identification result.
4. The method of claim 1, wherein after writing the association between the structured data and the user information into the corresponding blockchain of the blockchain network, the method further comprises:
receiving an association operation request of the target data, wherein the association operation request comprises operation information and processing system information of a target object corresponding to the data association image, and the processing system information is used for indicating a target processing system for processing the target object;
acquiring the structured data and user information associated with the target object from a block chain based on the operation information;
determining the target processing system in accordance with the indication of processing system information;
and sending the structured data and the user information associated with the target object to the target processing system so that a processing person corresponding to the target processing system can check and process the target object based on the structured data and the user information associated with the target object.
5. The method of claim 4, wherein after sending the structured data associated with the target object and the user information to the target processing system, the method further comprises:
receiving a transaction request sent by the target processing system, wherein the transaction request is sent by the target processing system after the target object is approved by the processing personnel, and the transaction request comprises confirmation indication information, and the confirmation indication information comprises virtual resource transfer amount, an asset account of a request user corresponding to the associated operation request and an asset account of a receiver of the target object;
acquiring the asset account of the requesting user and the asset account of the receiving party;
transferring the virtual resource transfer amount from the asset account of the recipient to the asset account of the requesting user.
6. The method of claim 4, wherein after sending the structured data associated with the target object and the user information to the target processing system, the method further comprises:
receiving audit confirmation information sent by the target processing system, wherein the audit confirmation information is used for indicating that the processing personnel passes the audit on the target object;
and adding a failed mark to the structured data corresponding to the target object on the block chain.
7. The method of claim 1, wherein the writing the association between the structured data and the user information into the blockchain corresponding to the blockchain network comprises:
extracting receiver information of a target object corresponding to the data associated image from the structured data;
determining a target block matching the receiver information from a plurality of blocks on a blockchain;
and writing the structural data and the user information into the target block in an associated manner.
8. A blockchain-based data processing apparatus, comprising:
a communication module, configured to receive a target data uplink request, where the target data uplink request carries user information and a data associated image;
the processing module is used for calling an image recognition model through a pre-deployed intelligent contract to recognize the data correlation image and determining the structural data corresponding to the data correlation image based on a recognition result;
the processing module is further configured to perform consensus verification on the structured data through a consensus node in the blockchain network, and after the consensus verification is passed, associate and write the structured data and the user information into a blockchain corresponding to the blockchain network.
9. An electronic device comprising a processor, a memory and a communication interface, the processor, the memory and the communication interface being interconnected, wherein the memory is configured to store computer program instructions and the processor is configured to execute the program instructions to implement the method of any one of claims 1-7.
10. A computer-readable storage medium, having stored thereon computer program instructions, which, when executed by a processor, are adapted to perform the method of blockchain-based data processing according to any one of claims 1 to 7.
CN202010914303.XA 2020-09-02 2020-09-02 Data processing method, device and equipment based on block chain and storage medium Pending CN111984734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010914303.XA CN111984734A (en) 2020-09-02 2020-09-02 Data processing method, device and equipment based on block chain and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010914303.XA CN111984734A (en) 2020-09-02 2020-09-02 Data processing method, device and equipment based on block chain and storage medium

Publications (1)

Publication Number Publication Date
CN111984734A true CN111984734A (en) 2020-11-24

Family

ID=73447492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010914303.XA Pending CN111984734A (en) 2020-09-02 2020-09-02 Data processing method, device and equipment based on block chain and storage medium

Country Status (1)

Country Link
CN (1) CN111984734A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506860A (en) * 2020-12-15 2021-03-16 中国银行股份有限公司 Block chain based collaborative audit method, device and system
CN113032594A (en) * 2021-02-26 2021-06-25 广东核电合营有限公司 Label image storage method and device, computer equipment and storage medium
CN115114603A (en) * 2021-03-17 2022-09-27 中国移动通信集团福建有限公司 Base station equipment data management method and device and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506860A (en) * 2020-12-15 2021-03-16 中国银行股份有限公司 Block chain based collaborative audit method, device and system
CN112506860B (en) * 2020-12-15 2024-02-27 中国银行股份有限公司 Collaborative audit method, device and system based on blockchain
CN113032594A (en) * 2021-02-26 2021-06-25 广东核电合营有限公司 Label image storage method and device, computer equipment and storage medium
CN113032594B (en) * 2021-02-26 2023-12-08 广东核电合营有限公司 Label image storage method, apparatus, computer device and storage medium
CN115114603A (en) * 2021-03-17 2022-09-27 中国移动通信集团福建有限公司 Base station equipment data management method and device and electronic equipment
CN115114603B (en) * 2021-03-17 2024-06-11 中国移动通信集团福建有限公司 Base station equipment data management method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US11663654B2 (en) System and method for processing transaction records for users
CN111984734A (en) Data processing method, device and equipment based on block chain and storage medium
CN111475513A (en) Form generation method and device, electronic equipment and medium
CN110264325A (en) A kind of invoice checking method and device based on block chain
US20130332374A1 (en) Fraud prevention for real estate transactions
CN114626102A (en) Block chain-based electronic certificate transfer method, device, equipment and storage medium
CN114218110A (en) Account checking test method and device for financial data, computer equipment and storage medium
CN110245182B (en) Method, apparatus, device and medium for processing distributed data
CN109886076B (en) Invoice storage method
CN114445079A (en) Document processing method, device, equipment and storage medium
CN111784342A (en) Centralized payment dynamic monitoring management system based on big data
CN111476597A (en) Resource quantity estimation result processing method and related equipment
CN111461191A (en) Method and device for determining image sample set for model training and electronic equipment
CN111242785A (en) Bill processing method and device, electronic equipment and storage medium
CN116503184A (en) Financial tax ticketing integrated management platform
CN113051257B (en) Service data cleaning method and device
US12019594B2 (en) Systems and method of managing documents
JP5853233B2 (en) Duplicate application determination method and system
CN111797590A (en) Data checking method, device and equipment
CN108960828B (en) Bill management method, device, server and storage medium based on block chain
CN113868345B (en) Method and device for classifying business data in main body
CN111738381B (en) Banknote transfer method and device
CN114240525A (en) Message generation method and device and server
CN115187339A (en) Business order information processing method and device based on artificial intelligence
CN116109391A (en) Receipt file generation method, device, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: ONECONNECT FINANCIAL TECHNOLOGY Co.,Ltd. (SHANGHAI)

Address before: Room 201, Building A, No. 1 Qianwan Road, Qianhaisheng Cooperation Zone, Shenzhen City, Guangdong Province, 518000

Applicant before: ONECONNECT FINANCIAL TECHNOLOGY Co.,Ltd. (SHANGHAI)

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination