Digital bill supervision method and platform based on blockchain
Through the blockchain-based digital bill supervision method, the problem of lack of unified supervision of digital bills in the existing technology is solved, real-time supervision and security records of digital bills are realized, and data security and regulatory effects are improved.
Patent Information
- Application Number
- CN202410904104.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The lack of unified supervision of digital notes in the prior art leads to information leakage and may cause economic losses.
Using a digital bill supervision method based on blockchain, the transaction amount in the bill blockchain is obtained in real time, the invoice record area and payment record area are generated, and the upload area is determined based on the information type and amount proportion of the electronic form to realize the electronic form fill and record.
It has realized unified supervision of digital bills, improved data security and regulatory effectiveness, prevented information leakage, and reduced economic losses.
Smart Images

Figure CN118690733B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technology, and in particular to a digital bill supervision method and platform based on blockchain. Background Art
[0002] Digital bills refer to bills that are generated, stored, transmitted and displayed in electronic form, which can replace traditional paper bills. Digital bills usually have security features such as digital signatures and timestamps to ensure their authenticity, integrity and non-repudiation. Using digital bills can improve efficiency, save costs and benefit environmental protection.
[0003] The usage scenarios of digital invoices are often corresponding to commercial transactions. That is, when Party B provides corresponding service content to Party A, Party B can also provide Party A with corresponding billing documents such as service invoices, and Party A will make corresponding payments to Party B based on the billing documents, and provide corresponding receipt documents such as payment receipts. However, in the prior art, there is no unified supervision of digital invoices, and because digital invoices may include sensitive information that needs to be kept confidential, if the same supervision is not carried out, corresponding information leakage problems will occur, which may cause greater economic losses. Summary of the invention
[0004] Based on the above problems, the present invention is proposed to provide a blockchain-based digital bill supervision method and platform that overcomes the above problems or at least partially solves the above problems.
[0005] According to one aspect of the present invention, a blockchain-based digital bill supervision method is provided, comprising the following steps:
[0006] In response to the supervision request of the user node, the corresponding transaction amount in the bill blockchain is obtained in real time, and the billing record area of the corresponding bill type and the payment record area of the corresponding receipt type are generated in the retrieved bill record interface;
[0007] Determining the information type of the first electronic form received for the first time, and determining a first upload area and a second upload area corresponding to the first electronic form in the billing record area and the payment record area based on the information type of the first electronic form;
[0008] Determine a first form amount involved in the first electronic form, and determine a ratio of the first form amount to the transaction amount as a first area occupancy ratio corresponding to the first upload area;
[0009] Based on the first area occupation ratio, generating a first transaction sub-area for filling the first electronic form in the first upload area, and generating a second transaction sub-area corresponding to the first transaction sub-area in the second upload area;
[0010] In response to receiving a second electronic form having an information type different from that of the first electronic form, determining the amount of the second form involved, obtaining the ratio of the amount between the second form amount and the first form amount to determine the second area occupancy ratio, and generating a form filling slot in the second transaction sub-area for filling the second electronic form based on the second area occupancy ratio.
[0011] Optionally, in the method according to the present invention, determining the information type of the first electronic form received for the first time includes:
[0012] Create a transparent contrast layer, and retrieve a receipt template and a bill template, wherein the receipt template includes a receipt frame line, and the bill template includes a bill frame line;
[0013] Determine all electronic characters in the first electronic form, and clear the electronic characters to obtain first processing information including electronic frame lines;
[0014] Placing the first processing information on the transparent contrast layer, and determining the center point of the form of the first processing information;
[0015] Based on the center point of the form, any one of the receipt template and the bill template is placed on the first processed information, and the electronic frame lines included in the first processed information and the frame lines corresponding to the template placed on the first processed information are mapped to the transparent contrast layer respectively, and the information type of the first electronic form is determined based on a preset frame line comparison strategy.
[0016] Optionally, in the method according to the present invention, placing any one of the receipt template and the bill template on the first processed information based on the center point of the form, mapping the electronic frame lines included in the first processed information and the frame lines corresponding to the template placed on the first processed information to the transparent contrast layer, and determining the information type of the first electronic form based on a preset frame line contrast strategy, including:
[0017] Performing grayscale processing on the first processed information to obtain second processed information, acquiring each electronic pixel point constituting the second processed information, and determining each electronic pixel value corresponding to each electronic pixel point;
[0018] Retrieving a preset pixel interval, and dividing the preset pixel interval into a first sub-interval and a second sub-interval based on a middle value of pixels in the preset pixel interval;
[0019] Calculate the average value based on each electronic pixel value to obtain a pixel average value, and determine whether there is a contained relationship between the pixel average value and the first sub-interval and the second sub-interval;
[0020] Determine a subinterval without an inclusion relationship as a target subinterval, and divide the target subinterval into equal parts based on a first interval edge value and a second interval edge value of the target subinterval to obtain a first adjusted pixel value and a second adjusted pixel value;
[0021] Respectively configuring the pixel values of the receipt template and the bill template based on the first adjusted pixel value and the second adjusted pixel value, and mapping the electronic frame line included in the second processing information to the transparent contrast layer;
[0022] Placing any one of the receipt template and the bill template on the second processed information based on the center point of the form, and mapping the frame line corresponding to any one of the receipt template and the bill template to the transparent contrast layer to obtain a mapped contrast layer;
[0023] Determine whether there is a pixel point corresponding to the first adjusted pixel value or the second adjusted pixel value in the mapping comparison layer;
[0024] If not, determining the first electronic form as having the same information type as the template placed on the first electronic form;
[0025] If so, the first electronic form is determined to have the same information type as the template that is not placed on the first electronic form.
[0026] Optionally, in the method according to the present invention, determining a first form amount involved in the first electronic form, and determining a ratio of the first form amount to the transaction amount as a first area occupancy ratio corresponding to the first upload area, comprises:
[0027] Retrieving a comparison table of amount frameworks, wherein the comparison table of amount frameworks includes different information types and amount framework coordinate groups corresponding to the different information types;
[0028] Determine a corresponding amount framework coordinate group in the financial framework comparison table based on the information type of the first electronic form, and establish a form coordinate system based on the first electronic form;
[0029] Determining the amount frame in the first electronic form according to each frame coordinate point in the amount frame coordinate group in the form coordinate system, and performing text extraction on the financial frame;
[0030] Determine the first form amount involved in the first electronic form based on the result of text extraction, and compare the first form amount with the transaction amount to determine the amount ratio;
[0031] The amount ratio is determined as the first area occupancy ratio corresponding to the first uploading area.
[0032] Optionally, in the method according to the present invention, generating a first transaction sub-area for filling the first electronic form in the first upload area based on the occupation ratio of the first area, and generating a second transaction sub-area corresponding to the first transaction sub-area in the second upload area includes:
[0033] Determine a longitudinal size of the first uploading area, and determine an occupied size corresponding to an occupied ratio of the first area based on the longitudinal size;
[0034] Based on the occupied size, a transverse area line is formed in the first upload area, and the transverse area line is extended to the second upload area to obtain a first transaction sub-area corresponding to the first upload area and a second transaction sub-area corresponding to the second upload area;
[0035] The first electronic form is resized based on the occupied size, and the resized first electronic form is filled into the first transaction sub-area.
[0036] Optionally, the method according to the present invention further comprises:
[0037] In response to the sum of the amounts of each form corresponding to all the filled electronic forms with the same information type being less than the transaction amount, obtaining the amounts of each form and the proportions of each form corresponding to all the filled electronic forms, and generating an electronic sequence corresponding to the filled electronic forms based on the amounts of each form and the proportions of each form;
[0038] Generate a form key corresponding to the electronic sequence based on a hash encryption algorithm;
[0039] In response to the sum of the amounts of the forms corresponding to all the filled electronic forms with the same information type being equal to the transaction amount, all the form amounts and all the occupancy ratios corresponding to all the electronic forms are obtained, and an electronic sequence corresponding to the information type is generated based on all the form amounts and all the occupancy ratios;
[0040] A type key corresponding to the information type is generated based on a hash encryption algorithm.
[0041] Optionally, the method according to the present invention further comprises:
[0042] Determine a terminal that accesses the billing record area as a first access terminal, and determine a terminal that accesses the payment record area as a second access terminal;
[0043] Sending all form keys and type keys corresponding to the ticket type to the first access terminal, and generating corresponding access verification links and verification identity sets;
[0044] Sending all form keys and type keys corresponding to the receipt type to the second access terminal, and generating corresponding access verification links and verification identity sets;
[0045] In response to any access terminal accessing data based on the corresponding access verification link, access verification is performed based on the corresponding key and verification identity set, and an electronic form corresponding to the key is fed back to the access terminal if the verification passes.
[0046] Optionally, the method according to the present invention further comprises:
[0047] Generating a time recording area in the bill recording interface, wherein the time recording area is located between the billing recording area and the payment recording area;
[0048] An interface coordinate system is established based on the bill recording interface, and each form coordinate group corresponding to each electronic form located in the bill recording interface is determined based on the interface coordinate system;
[0049] Determine a first coordinate point with a maximum longitudinal coordinate value and a second coordinate point with a minimum longitudinal coordinate value in each form coordinate group, and generate a first auxiliary line and a second auxiliary line along a transverse direction based on the first coordinate point and the second coordinate point respectively;
[0050] Generate a time recording axis extending in the longitudinal direction in the time recording area with the second auxiliary line as the starting point and the first auxiliary line as the end point;
[0051] The upload time corresponding to each electronic form in the ticket record interface is obtained respectively, and the time corresponding to the electronic form is recorded on the time record axis based on the upload time.
[0052] Optionally, in the method according to the present invention, performing a time record corresponding to the electronic form on the time record axis at the upload time includes:
[0053] Determine a horizontal form center line located in the electronic form, and establish a time record line in the time record axis that is aligned with the horizontal form center line;
[0054] Determining the information type of the electronic form, and configuring the color of the time record line based on the information type;
[0055] Creating a time record slot, filling the upload time into the time record slot, and establishing an interactive link relationship between the time record slot and the time record line;
[0056] In response to any access terminal's interaction with the time record line, the time record slot is retrieved for display.
[0057] Optionally, the method according to the present invention further comprises:
[0058] In response to a cancellation request initiated by the supervisory end based on any electronic form, determining an upload area corresponding to the electronic form, and generating a cancellation display area corresponding to the upload area;
[0059] Generating a moving path extending from an upload area corresponding to the electronic form to the voided display area in the ticket record interface;
[0060] In response to the received refund voucher, determining a refund amount corresponding to the refund voucher, and determining a refund ratio between the refund amount and a form amount corresponding to the electronic form as a mobile ratio;
[0061] The electronic form is moved to a corresponding position along the moving path based on the moving proportion.
[0062] According to another aspect of the present invention, a blockchain-based digital bill supervision platform is provided, comprising:
[0063] A generation module is configured to respond to the supervision request of the user node, obtain the corresponding transaction amount in the bill blockchain in real time, and generate a billing record area of the corresponding bill type and a payment record area of the corresponding receipt type in the retrieved bill record interface;
[0064] A first determination module is configured to determine the information type of the first electronic form received for the first time, and determine a first upload area and a second upload area corresponding to the first electronic form in the invoicing record area and the payment record area based on the information type of the first electronic form;
[0065] A second determination module is configured to determine a first form amount involved in the first electronic form, and determine a ratio of the first form amount to the transaction amount as a first area occupancy ratio;
[0066] A first filling module is configured to generate a first transaction sub-area for filling the first electronic form in the first upload area based on the occupation ratio of the first area, and to generate a second transaction sub-area corresponding to the first transaction sub-area in the second upload area;
[0067] The second filling module is configured to determine the amount of the second form involved in response to receiving a second electronic form with a different information type from the first electronic form, obtain the ratio of the amount of the second form to the amount of the first form to determine the occupancy ratio of the second area, and generate a form filling slot in the second transaction sub-area for filling the second electronic form based on the occupancy ratio of the second area.
[0068] According to the solution of the present invention, after receiving the supervision request of the user node, the transaction amount in the bill blockchain can be obtained in real time, and the bill record interface can be called accordingly; the uploaded electronic form with different bill information is filled and recorded based on the bill record interface; and in the filling process, the financial ratio between the corresponding first form amount and the transaction amount is determined based on the first electronic form received for the first time, and the first transaction sub-area for filling the first electronic form is generated in the corresponding first upload area based on the financial ratio; and when the second electronic form is received, the financial ratio between the corresponding second form amount and the first form amount is determined, and the form filling slot for filling the second electronic form is generated in the second transaction sub-area corresponding to the first transaction sub-area based on the financial ratio, which can not only record the upload of all electronic forms corresponding to different information types, but also realize the side display of the corresponding form amount based on the proportion angle while recording, and at the same time, the corresponding data security and data supervision effect can be improved based on the perspective of blockchain. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 A flowchart of a blockchain-based digital bill supervision method according to an embodiment of the present invention is shown;
[0070] Figure 2 A schematic diagram of the interface of the bill recording interface in this embodiment is shown;
[0071] Figure 3 A structural block diagram of a blockchain-based digital bill supervision platform according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0072] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0073] Digital bills refer to bills that are generated, stored, transmitted and displayed in electronic form, which can replace traditional paper bills. Digital bills usually have security features such as digital signatures and timestamps to ensure their authenticity, integrity and non-repudiation. Using digital bills can improve efficiency, save costs and benefit environmental protection.
[0074] The usage scenarios of digital invoices are often corresponding to commercial transactions. That is, when Party B provides corresponding service content to Party A, Party B can also provide Party A with corresponding billing documents such as service invoices, and Party A will make corresponding payments to Party B based on the billing documents, and provide corresponding receipt documents such as payment receipts. However, in the prior art, there is no unified supervision of digital invoices, and because digital invoices may include sensitive information that needs to be kept confidential, if the same supervision is not carried out, corresponding information leakage problems will occur, which may cause greater economic losses.
[0075] In order to solve the problems existing in the above-mentioned prior art, the inventor proposes the solution of the present invention. One embodiment of the present invention provides a digital bill supervision method based on blockchain, which can be executed in a computing device.
[0076] Figure 1 A flowchart of a blockchain-based digital bill supervision method according to an embodiment of the present invention is shown, and the method is suitable for execution in a computing device, wherein the computing device can be understood as a terminal with data processing capabilities, such as a mobile phone or a computer.
[0077] like Figure 1 As shown, the blockchain-based digital bill supervision method proposed in this embodiment starts from S101, wherein S101 includes the following contents:
[0078] In response to the supervision request of the user node, the corresponding transaction amount in the bill blockchain is obtained in real time, and the billing record area of the corresponding bill type and the payment record area of the corresponding receipt type are generated in the retrieved bill record interface.
[0079] For example, in this embodiment, when the user needs to conduct corresponding supervision on the digital bills he is responsible for, he can send a corresponding supervision request to the server, so that the server can obtain the transaction amount corresponding to the user node in the bill blockchain based on the obtained supervision request, and at the same time call up the corresponding bill record interface, wherein it can be explained that the bill record interface is preset and stored in the server, and the bill record interface is mainly used to record transactions corresponding to the same transaction amount. Therefore, the billing record area of the corresponding bill type and the payment record area of the corresponding receipt type can be generated based on the called bill record interface; here, the billing record area is used to record each billing bill for the transaction amount, and the payment record area is used to record each payment receipt for the transaction amount, thereby realizing online recording of transaction transactions, and can also help users such as financial personnel to perform corresponding reconciliation and improve the corresponding user experience.
[0080] For example, Figure 2 As shown, Figure 2 Schematic diagram of the interface of the bill record interface in this embodiment is shown in FIG, which includes a corresponding billing record area and a payment record area.
[0081] In S102, the following contents are included:
[0082] The information type of the first electronic form received for the first time is determined, and based on the information type of the first electronic form, a first upload area and a second upload area corresponding to the first electronic form are determined in the billing record area and the payment record area.
[0083] For example, in this embodiment, since the transaction amount is generally determined based on the corresponding business contract, and in the process of performing the business contract, the payee may first issue an invoicing document and the payer may make payment later. It is also possible that the payer makes payment first and the payee issues the relevant invoicing document after receiving the payment. Therefore, based on the existence of these two different situations, it is necessary to determine the information type of the first electronic form received for the first time after completing the call of the invoice record interface, and judge whether its information type is a bill type or a receipt type. After completing the determination of the corresponding information type, it is necessary to determine the corresponding first upload area and second upload area in the invoice record interface based on the information type of the first electronic form, wherein the first upload area and the second upload area correspond to the invoice record area and the payment record area, respectively.
[0084] Furthermore, in this embodiment, the above-mentioned “determining the information type of the first electronic form received for the first time” may also include the following steps:
[0085] Create a transparent contrast layer, and retrieve a receipt template and a bill template, wherein the receipt template includes a receipt frame line, and the bill template includes a bill frame line;
[0086] Determine all electronic characters in the first electronic form, and clear the electronic characters to obtain first processing information including electronic frame lines;
[0087] Placing the first processing information on the transparent contrast layer, and determining the center point of the form of the first processing information;
[0088] Based on the center point of the form, any one of the receipt template and the bill template is placed on the first processed information, and the electronic frame lines included in the first processed information and the frame lines corresponding to the template placed on the first processed information are mapped to the transparent contrast layer respectively, and the information type of the first electronic form is determined based on a preset frame line comparison strategy.
[0089] For example, in this embodiment, determining the information type of the first electronic form received for the first time can be performed specifically through the following process:
[0090] First, a transparent contrast layer can be created. Here, the transparent contrast layer can be understood as a layer with transparent characteristics. At the same time, the corresponding receipt template and bill template need to be retrieved from the server, wherein the receipt template includes the corresponding receipt frame line, and the bill template includes the corresponding bill frame line. It should be noted that the receipt template can be understood as a template corresponding to the payment receipt without content filling, and the bill template can be understood as a template corresponding to the payment receipt without content filling. Moreover, since the bill template corresponds to a bill type, and the receipt template corresponds to a receipt type, based on the different bill types, it can be determined that the corresponding bill structures of the two are different, so the corresponding receipt frame line and bill frame line are also different.
[0091] Next, the received first electronic form may be subjected to information recognition, thereby determining all electronic characters therein, and further performing a clearing process on all electronic characters, thereby obtaining first processed information including only electronic frame lines;
[0092] Next, the first processing information may be placed on a transparent contrast layer, and a center point of the form corresponding to the first processing information may be determined;
[0093] Finally, select one from the receipt template and the bill template and place it on the first processed information. Here, the placement operation needs to be performed based on the center point of the form, that is, it is necessary to ensure that the template center point of the corresponding template coincides with the center point of the form; at the same time, the electronic frame lines included in the first processing information and the frame lines corresponding to the template placed on the first processing information are respectively mapped on the transparent contrast layer, so as to perform frame line comparison on the mapped transparent contrast layer based on the preset frame line comparison strategy to determine the information type corresponding to the first form.
[0094] In this embodiment, by selecting any template, the selected template is overlapped with the first processing information, and the frame line corresponding to the selected template and the electronic frame line corresponding to the second processing information are further mapped in the transparent contrast layer, so that the frame line overlap can be determined based on the transparent contrast layer, thereby completing the determination of the information type of the first electronic form, which can not only determine the corresponding determination accuracy, but also can correspondingly improve the data processing speed because only one comparison is performed.
[0095] Furthermore, in this embodiment, the above-mentioned "placing any one of the receipt template and the bill template on the first processed information based on the center point of the form, mapping the electronic frame line included in the first processed information and the frame line corresponding to the template placed on the first processed information to the transparent contrast layer, and determining the information type of the first electronic form based on a preset frame line comparison strategy" may also include the following steps:
[0096] Performing grayscale processing on the first processed information to obtain second processed information, acquiring each electronic pixel point constituting the second processed information, and determining each electronic pixel value corresponding to each electronic pixel point;
[0097] Retrieving a preset pixel interval, and dividing the preset pixel interval into a first sub-interval and a second sub-interval based on a middle value of pixels in the preset pixel interval;
[0098] Calculate the average value based on each electronic pixel value to obtain a pixel average value, and determine whether there is a contained relationship between the pixel average value and the first sub-interval and the second sub-interval;
[0099] Determine a subinterval without an inclusion relationship as a target subinterval, and divide the target subinterval into equal parts based on a first interval edge value and a second interval edge value of the target subinterval to obtain a first adjusted pixel value and a second adjusted pixel value;
[0100] Respectively configuring the pixel values of the receipt template and the bill template based on the first adjusted pixel value and the second adjusted pixel value, and mapping the electronic frame line included in the second processing information to the transparent contrast layer;
[0101] Placing any one of the receipt template and the bill template on the second processed information based on the center point of the form, and mapping the frame line corresponding to any one of the receipt template and the bill template to the transparent contrast layer to obtain a mapped contrast layer;
[0102] Determine whether there is a pixel point corresponding to the first adjusted pixel value or the second adjusted pixel value in the mapping comparison layer;
[0103] If not, determining the first electronic form as having the same information type as the template placed on the first electronic form;
[0104] If so, the first electronic form is determined to have the same information type as the template that is not placed on the first electronic form.
[0105] For example, in this embodiment, first, since the first processed information may correspond to a bill type or a receipt type, and electronic forms corresponding to different information types may have different pixel value configurations, in order to perform unified processing, it is necessary to perform grayscale processing on the first processed information, eliminate the pixel value configuration corresponding thereto, obtain the second processed information, and simultaneously obtain each electronic pixel point constituting the second processed information, and determine each electronic pixel value corresponding to each electronic pixel point; then, the preset pixel interval pre-stored in the server can be retrieved, and the preset pixel interval can be divided into a first sub-interval and a second sub-interval based on the pixel middle value in the preset pixel interval; then, the mean value can be calculated based on each electronic pixel value obtained above to obtain the pixel mean value corresponding to the second processed information, and at the same time, it is determined whether there is an inclusion relationship between the pixel mean value and the first sub-interval and the second sub-interval; then, the sub-interval determined to have no inclusion relationship is determined as the target sub-interval , and further divide the target sub-interval into equal parts based on the first interval edge value and the second interval edge value of the target sub-interval to obtain the corresponding first pixel adjustment value and the second pixel adjustment value; then, the receipt template and the bill template can be configured with different first adjustment pixel values and second adjustment pixel values, respectively, and the electronic frame line included in the second processing information can be mapped to the corresponding transparent contrast layer; then, based on the form center point obtained above, the corresponding receipt template or bill template can be placed on the second processing information, and the frame line corresponding to it can be mapped in the transparent contrast layer to obtain a mapping contrast layer. Here, since the second processing information and the frame line of the corresponding template are both mapped on the mapping contrast layer, the electronic frame line corresponding to the second processing information and the frame line corresponding to the template exist in the mapping contrast layer at the same time, wherein the pixel value of the corresponding electronic frame line is the pixel average, and the pixel value of the frame line of the corresponding template may be the first adjustment pixel value or the second adjustment pixel value;
[0106] Finally, it can be determined whether there is a pixel point corresponding to the first adjustment pixel value or the second adjustment pixel value in the mapping comparison layer. If so, it indicates that there is an overlapping part between the two, and the corresponding template and the first electronic form are not in a conforming relationship, that is, the type of the first electronic form has the same information type as the template that has not been placed; and when there is no corresponding first adjustment pixel value or the corresponding second adjustment pixel value, it indicates that the two are completely overlapped, resulting in the corresponding first adjustment pixel value or the second adjustment pixel value being superimposed on the electronic pixel value, therefore, the corresponding template and the first electronic form are in a conforming relationship, that is, the type of the first electronic form has the same information type as the template to be placed.
[0107] For example, in this embodiment, different pixel values are set based on different templates, and the corresponding second processing information and any template are respectively mapped in the same transparent contrast layer to perform corresponding pixel value comparisons, so that the information type of the first processing information can be quickly determined, thereby improving the corresponding data processing speed. Compared with the traditional method of determining the first processing information based on image recognition, since there is no need to compare the actual content, the corresponding data calculation amount can also be greatly reduced.
[0108] In S103, the following contents are included:
[0109] A first form amount involved in the first electronic form is determined, and a ratio of the first form amount to the transaction amount is determined as a first area occupancy ratio.
[0110] For example, in this embodiment, after determining the corresponding first upload area based on the received first electronic form, the first form amount involved in the first electronic form can be further determined. At the same time, since the area sizes of the corresponding invoicing record area and the payment record area are fixed, the corresponding first area occupancy ratio can be determined based on the ratio of the first form amount to the transaction amount, so that the corresponding first electronic form can be filled into the first upload area according to the first area occupancy ratio in the future. Not only can the corresponding area be utilized within a reasonable range, but also after completing the corresponding content filling, the corresponding first form amount can be roughly determined based on the corresponding first area occupancy ratio, thereby further improving the corresponding information display effect.
[0111] Furthermore, in this embodiment, the above-mentioned “determining the first form amount involved in the first electronic form, and determining the ratio of the amount between the first form amount and the transaction amount as the first area occupancy ratio” may also include the following steps:
[0112] Retrieving a comparison table of amount frameworks, wherein the comparison table of amount frameworks includes different information types and amount framework coordinate groups corresponding to the different information types;
[0113] Determine a corresponding amount framework coordinate group in the financial framework comparison table based on the information type of the first electronic form, and establish a form coordinate system based on the first electronic form;
[0114] Determining the amount frame in the first electronic form according to each frame coordinate point in the amount frame coordinate group in the form coordinate system, and performing text extraction on the financial frame;
[0115] Determine the first form amount involved in the first electronic form based on the result of text extraction, and compare the first form amount with the transaction amount to determine the amount ratio;
[0116] The amount ratio is determined as the first area occupancy ratio corresponding to the first uploading area.
[0117] For example, in this embodiment, the determination of the occupation ratio of the first area can be achieved by the following scheme:
[0118] First, the amount frame comparison table pre-stored in the server can be retrieved, wherein the amount frame comparison table includes different information types and amount frame coordinate groups corresponding to the different information types. It should be noted that the acquisition of the amount frame coordinate group can be based on coordinateization of electronic forms of different information types, and each frame coordinate point constituting the corresponding amount frame is determined as the amount frame coordinate group, that is, by acquiring the corresponding amount frame coordinate group, the amount frame located in the electronic form can be quickly located, thereby further determining the form amount corresponding to the electronic form;
[0119] Next, based on the information type of the first electronic form, a corresponding amount framework coordinate group is determined in the amount framework comparison table, and the first electronic form is coordinateized, that is, a corresponding form coordinate system is established;
[0120] Next, the amount frame in the first electronic form can be quickly located in the form group coordinate system according to each frame coordinate point in the amount frame coordinate group, and corresponding text extraction can be performed on the located amount frame;
[0121] Then, after performing the corresponding text extraction, the first form amount involved in the first electronic form can be determined, so as to further compare the first form amount with the transaction amount to determine the corresponding amount ratio;
[0122] Finally, since the invoicing record area and the payment record area each have a fixed size, after one of them is determined as the first upload area corresponding to the first electronic form, the amount ratio can be determined as the first area occupancy ratio corresponding to the first upload area.
[0123] In S104, the following contents are included:
[0124] A first transaction sub-area for filling the first electronic form is generated in the first upload area based on the first area occupancy ratio, and a second transaction sub-area corresponding to the first transaction sub-area is generated in the second upload area.
[0125] For example, in this embodiment, after the corresponding first area occupancy ratio is obtained based on the aforementioned scheme, a corresponding first transaction sub-area can be generated in the first upload area corresponding to the first electronic form, wherein the first transaction sub-area can be used to fill in the first electronic form. Similarly, in order to be able to fill in the second electronic form with a different information type from the first electronic form, it is also necessary to generate a second transaction sub-area corresponding to the first transaction sub-area in the second upload area.
[0126] Further, in this embodiment, the above-mentioned “generating a first transaction sub-area for filling the first electronic form in the first upload area based on the occupation ratio of the first area, and generating a second transaction sub-area corresponding to the first transaction sub-area in the second upload area” may also include the following steps:
[0127] Determine a longitudinal size of the first uploading area, and determine an occupied size corresponding to an occupied ratio of the first area based on the longitudinal size;
[0128] Based on the occupied size, a transverse area line is formed in the first upload area, and the transverse area line is extended to the second upload area to obtain a first transaction sub-area corresponding to the first upload area and a second transaction sub-area corresponding to the second upload area;
[0129] The first electronic form is resized based on the occupied size, and the resized first electronic form is filled into the first transaction sub-area.
[0130] For example, in this embodiment, since the billing record area and the payment record area have fixed sizes respectively, and each electronic form is filled in the bill record interface in a vertical arrangement, the longitudinal size of the first upload area corresponding to the first electronic form can be determined, and the occupied size corresponding to the occupied ratio of the first area can be determined based on the longitudinal size; after obtaining the corresponding occupied size, a horizontal area line located in the first upload area can be formed, where the role of the horizontal area line is to divide the first upload area, and since the horizontal area line corresponds to the occupied size, the divided area is the first transaction sub-area used to fill the first electronic form, and in order to form a second transaction sub-area corresponding to the first transaction sub-area in the corresponding second upload area, the horizontal area line can be extended to the second upload area, thereby completing the division of the second upload area and obtaining the corresponding second transaction sub-area; finally, since the received first electronic form may not match the size of the divided first transaction sub-area, it is necessary to change the size of the first electronic form based on the occupied size, so that the first electronic form after the size change can be completely filled into the first transaction sub-area, thereby improving the corresponding data display integrity and data display effect.
[0131] In S105, the following steps are included:
[0132] In response to receiving a second electronic form having an information type different from that of the first electronic form, determining the amount of the second form involved, obtaining the ratio of the amount between the second form amount and the first form amount to determine the second area occupancy ratio, and generating a form filling slot in the second transaction sub-area for filling the second electronic form based on the second area occupancy ratio.
[0133] For example, in this embodiment, when a second electronic form with an information type different from that of the first electronic form is received at a time point after the first electronic form is received, the second form amount involved in the second electronic form can be determined based on a similar method as described above, and the ratio of the amount between the second form amount and the first form amount can be obtained to determine the occupancy ratio of the second area, and a form filling slot for filling the second electronic form in the second transaction sub-area is generated according to the occupancy ratio of the second area.
[0134] Next, this method is further introduced in combination with actual application scenarios:
[0135] For example, when the information type corresponding to the first electronic form is a bill type, the invoicing record area is determined as the first upload area corresponding to the first electronic form, and the payment record area is determined as the second upload area corresponding to the receipt type. The first transaction sub-area is determined in the first upload area according to the proportion of the corresponding first area, and the corresponding first electronic form is filled in the first transaction sub-area; and after receiving the corresponding second electronic form, the amount of the first form can be compared with the amount of the second form to determine the corresponding amount ratio. It should be noted that, under normal circumstances, when any party first sends the corresponding electronic form, the other party generally sends other electronic forms with the same amount value as the electronic form, or sends other electronic forms with a smaller amount value than the electronic form. When the amount value of the electronic form is less than the electronic form, the other party may send another electronic form with the same amount value as the electronic form. When other electronic forms are received, it indicates that multiple electronic forms will be sent subsequently to achieve the same value as the electronic form sent by the other party; therefore, under this premise, when the corresponding first electronic form is received, the amount value of the corresponding second electronic form may be less than or equal to the amount value corresponding to the first electronic form; at this time, the corresponding second area occupancy ratio can be determined according to the ratio of the amounts between the two, and the corresponding form filling slot can be generated in the corresponding second transaction sub-area based on the second area occupancy ratio to fill the second electronic form in the corresponding form filling slot, so that not only can the corresponding area be used within a reasonable range, but also after the corresponding content is filled, the corresponding second form amount can be roughly determined based on the corresponding second area occupancy ratio, further improving the corresponding information display effect.
[0136] For example, see Figure 2 , when the first electronic form corresponds to a first form amount of 1500 yuan, and the corresponding second electronic form includes 3 sheets, and the amount of each second form corresponding to each sheet is 500 yuan, then for example Figure 2 The bills are filled in the filling manner shown to achieve matching of corresponding sizes.
[0137] Furthermore, since financial data is relatively sensitive, the requirement for data security is relatively high. In order to ensure confidentiality of each uploaded electronic form, the present embodiment may further include the following steps:
[0138] In response to the sum of the amounts of each form corresponding to all the filled electronic forms with the same information type being less than the transaction amount, obtaining the amounts of each form and the proportions of each form corresponding to all the filled electronic forms, and generating an electronic sequence corresponding to the filled electronic forms based on the amounts of each form and the proportions of each form;
[0139] Generate a form key corresponding to the electronic sequence based on a hash encryption algorithm;
[0140] In response to the sum of the amounts of the forms corresponding to all the filled electronic forms with the same information type being equal to the transaction amount, all the form amounts and all the occupancy ratios corresponding to all the electronic forms are obtained, and an electronic sequence corresponding to the information type is generated based on all the form amounts and all the occupancy ratios;
[0141] A type key corresponding to the information type is generated based on a hash encryption algorithm.
[0142] For example, in this embodiment, the specific encryption process may include the following steps:
[0143] First, when the sum of the amounts of the forms corresponding to all the filled electronic forms with the same information type is less than the transaction amount, the amounts and the proportions of the forms corresponding to all the filled electronic forms are obtained for each filling of the electronic forms with the same information type, and a corresponding electronic sequence is further generated, that is, when each filling is performed, the length of the corresponding electronic sequence increases;
[0144] Next, after obtaining the electronic sequences corresponding to different sequence lengths obtained after each filling, the form keys corresponding to the electronic sequences can be generated based on the hash encryption algorithm;
[0145] Next, when the sum of the form amounts corresponding to all filled electronic forms of the same information type is equal to the transaction amount, it indicates that all electronic forms for this business transaction have been uploaded. At this time, all form amounts and all occupation ratios corresponding to all electronic forms can be obtained, and an electronic sequence corresponding to the information type can be further generated;
[0146] Finally, a type key corresponding to the information type may be generated based on a hash encryption algorithm.
[0147] It should be noted that in this embodiment, the corresponding keys can be generated for two situations respectively. The first situation is that when the sum of the amounts corresponding to all the filled electronic forms with the same information type is less than the transaction amount, a corresponding electronic sequence is generated in response to the filling of each electronic form with the same information type, and a form key corresponding to the electronic form is further generated based on the electronic sequence. When any terminal wants to view the electronic form, it needs to decrypt the type key before it can have the corresponding access right; the second situation is that when the corresponding electronic sequence is generated in response to the filling of all the electronic forms with the same information type, a type key corresponding to the information type is further generated based on the electronic sequence, so that when any terminal wants to view all the electronic forms with the same information type, it needs to decrypt the type key before it can have the corresponding access right.
[0148] It should be noted that, in the present embodiment, since the first method generates a corresponding form key based on the filling of each electronic information having the same information type, that is, when only one electronic form is filled, a corresponding form key will be formed based on one electronic form, and if the electronic form needs to be accessed, it is necessary to decrypt based on the form key; and when two or more electronic forms are filled, a corresponding form key will be formed based on all the filled electronic forms, and if all the filled electronic forms need to be accessed, it is necessary to decrypt based on the form key, thereby allowing all the filled electronic forms to be viewed at the same time.
[0149] For example, in this embodiment, the two encryption methods proposed above can improve the corresponding encryption flexibility and also provide security protection for data.
[0150] Furthermore, in this embodiment, after obtaining the corresponding type key and / or form key, the permissions can be configured based on the terminals of each party, so that the terminals can view the encrypted data based on the corresponding keys, wherein the corresponding specific process may include the following steps:
[0151] Determine a terminal that accesses the billing record area as a first access terminal, and determine a terminal that accesses the payment record area as a second access terminal;
[0152] Sending all form keys and type keys corresponding to the ticket type to the first access terminal, and generating corresponding access verification links and verification identity sets;
[0153] Sending all form keys and type keys corresponding to the receipt type to the second access terminal, and generating corresponding access verification links and verification identity sets;
[0154] In response to any access terminal accessing data based on the corresponding access verification link, access verification is performed based on the corresponding key and verification identity set, and an electronic form corresponding to the key is fed back to the access terminal if the verification passes.
[0155] For example, in this embodiment, the corresponding decryption authority can be configured based on the payee and the payee, and the terminal used by the payee who is allowed to access the invoicing record area is used as the first access terminal, and the terminal used by the payee who is allowed to access the payment record area is used as the second access terminal; after completing the determination of the first access terminal and the second access terminal corresponding to different information types, all form keys and type keys of the corresponding bill type can be sent to the first access terminal, and the corresponding access verification link and verification identity set can be generated. At the same time, all form keys and type keys of the corresponding receipt type can be sent to the second access terminal, and the corresponding access verification link and verification identity set can be generated; finally, data access can be performed in response to any terminal to the received access verification link, and access verification can be further performed based on the corresponding key and verification identity set, so that when the verification is passed, the electronic form corresponding to the key can be fed back to the corresponding access terminal for corresponding data viewing, which not only improves the corresponding data security, but also makes the data viewing method more flexible.
[0156] Furthermore, in the process of managing financial data, it is particularly important to record the generation time of various types of data, which can help to perform corresponding financial analysis. Since each electronic form filled in the first upload area and the second upload area also has a different corresponding upload time, in order to visualize the upload time, in this embodiment, the following steps may also be included:
[0157] Generating a time recording area in the bill recording interface, wherein the time recording area is located between the billing recording area and the payment recording area;
[0158] An interface coordinate system is established based on the bill recording interface, and each form coordinate group corresponding to each electronic form located in the bill recording interface is determined based on the interface coordinate system;
[0159] Determine a first coordinate point with a maximum longitudinal coordinate value and a second coordinate point with a minimum longitudinal coordinate value in each form coordinate group, and generate a first auxiliary line and a second auxiliary line along a transverse direction based on the first coordinate point and the second coordinate point respectively;
[0160] Generate a time recording axis extending in the longitudinal direction in the time recording area with the second auxiliary line as the starting point and the first auxiliary line as the end point;
[0161] The upload time corresponding to each electronic form in the ticket record interface is obtained respectively, and the time corresponding to the electronic form is recorded on the time record axis based on the upload time.
[0162] For example, in this embodiment, in order to record the upload time of each electronic form on the bill record interface, a corresponding time record area can be first generated in the bill record interface. In order to facilitate the recording of the upload time of the electronic forms uploaded in the invoicing record area and the payment record area at the same time, the time record area can be located between the invoicing record area and the payment record area. Then, a corresponding interface coordinate system can be established based on the bill record interface, and each form coordinate group of each electronic form located in each bill record interface can be determined based on the interface coordinate system. A first coordinate point with a maximum longitudinal coordinate value and a second coordinate point with a minimum longitudinal coordinate value can be determined based on each form coordinate group. Further, a corresponding first auxiliary line and a second auxiliary line can be generated along the horizontal direction based on the first coordinate point and the second coordinate point. Then, a time record axis extending along the longitudinal direction can be generated in the time record area with the second auxiliary line as the starting point and the first auxiliary line as the end point. Finally, the corresponding time can be recorded on the time record axis according to the uploaded time corresponding to each electronic form obtained.
[0163] It should be noted that see Figure 2 As shown, Figure 2 The bill record area includes an electronic form corresponding to 1,500 yuan and an electronic form corresponding to 750 yuan. By checking the time record area, it can be found that the electronic form corresponding to 1,500 yuan corresponds to a time record axis, and the electronic form corresponding to 750 yuan also corresponds to a time record axis; here, by determining the corresponding first coordinate point and the second coordinate point based on the form coordinate group, the vertical relative position of the corresponding electronic form can be obtained, so that the time record axis with a corresponding position relationship with the electronic form can be generated based on the relative position, thereby strengthening the image correlation between the two and improving the corresponding display effect.
[0164] Furthermore, in this embodiment, the above-mentioned “performing a time record corresponding to the electronic form on the time record axis based on the upload time” may also include the following contents:
[0165] Determine a horizontal form center line located in the electronic form, and establish a time record line in the time record axis that is aligned with the horizontal form center line;
[0166] Determining the information type of the electronic form, and configuring the color of the time record line based on the information type;
[0167] Creating a time record slot, filling the upload time into the time record slot, and establishing an interactive link relationship between the time record slot and the time record line;
[0168] In response to any access terminal's interaction with the time record line, the time record slot is retrieved for display.
[0169] For example, in this embodiment, first, the horizontal form center line of the electronic form located in the upload area can be determined; then, based on the obtained horizontal form center line, a time record line having a corresponding relationship with it is established in the time record axis; then, since the time record area is located between the invoicing record area and the payment record area, when both sides of the time record line include two electronic forms at the same time, it may be impossible to determine which electronic form it corresponds to. At this time, different colors can be configured for different information types in advance, and the time record line can be color configured based on the color corresponding to the information type, that is, the time record line can be determined by color to which information type of electronic form it corresponds; then, after completing the corresponding color configuration, a time record slot can be created, and the obtained upload time can be filled into the time record slot, and an interactive link relationship between the time record slot and the time record line can be further established; finally, when any access terminal wants to obtain the upload time corresponding to a certain electronic form, it can directly interact with the time record line through interactive methods such as clicking and touching, so as to call up the corresponding time record slot for display.
[0170] For example, in Figure 2 In the example, you can see that there are three time record lines on the time record axis of the electronic form corresponding to 1,500 yuan ( Figure 2 The dotted line in the figure), wherein the time record line corresponding to the electronic form located in the middle of the payment record area overlaps with the time record line of the electronic form corresponding to 1,500 yuan in the invoicing record area. Therefore, the corresponding displayed color will be the corresponding mixed color, and when the access terminal clicks on this time record line, a corresponding determination request can be sent to the access terminal, so that the access terminal selects access between the two time record lines based on the determination request.
[0171] In addition, considering that when the form information of the relevant electronic form is wrong after the upload is completed, it is necessary to invalidate the relevant electronic form and record and display it in the corresponding ticket record interface. Therefore, in this embodiment, the following steps may also be included:
[0172] In response to a cancellation request initiated by the supervisory end based on any electronic form, determining an upload area corresponding to the electronic form, and generating a cancellation display area corresponding to the upload area;
[0173] Generating a moving path extending from an upload area corresponding to the electronic form to the voided display area in the ticket record interface;
[0174] In response to the received refund voucher, determining a refund amount corresponding to the refund voucher, and determining a refund ratio between the refund amount and a form amount corresponding to the electronic form as a mobile ratio;
[0175] The electronic form is moved to a corresponding position along the moving path based on the moving proportion.
[0176] For example, in this embodiment, when the supervisory end is checking the content of an uploaded electronic form and finds that the content of a certain electronic form is incorrect and needs to be invalidated, the supervisory end will initiate a corresponding invalidation request based on the electronic form, determine the upload area corresponding to the electronic form, and create an invalidation display area corresponding to the upload area; further, a moving path extending from the upload area corresponding to the electronic form to the invalidation display area will be generated in the ticket record interface; and since the electronic form is in an invalidated state, the corresponding form amount should also be refunded, and when the corresponding refund voucher is received, it indicates that the refund operation for the relevant form amount has been completed. At this time, the server will determine the refund amount corresponding to the refund voucher, and determine the refund ratio between the refund amount and the form amount corresponding to the electronic form as the moving ratio; and finally move the electronic form along the moving path to the corresponding position based on the moving ratio.
[0177] That is, in actual operations, for refunds involving larger form amounts, in order to improve the corresponding refund security, the refund may be made in multiple times. For example, if the form amount is 1 million, it can be refunded in four times, 250,000 each time. When the first refund is completed, the corresponding refund ratio should be 25%. At this time, the electronic form will be controlled to move along the moving path to the position corresponding to 25%. After the refund of the entire form amount is completed, the electronic form will be controlled to move completely to the corresponding invalid display area, thereby realizing the dynamic linkage display of the refund progress and improving the corresponding display effect and data acquisition effect.
[0178] For example, in Figure 2 In the example of FIG. 1 , an electronic form located in the payment record area is in the process of being voided, so a moving path extending from the payment record area to the voided display area is generated (as shown by the dotted line).
[0179] In summary, after receiving the supervision request of the user node, the transaction amount in the bill blockchain can be obtained in real time, and the bill record interface can be called accordingly; based on the bill record interface, the uploaded electronic form with different bill information is filled and recorded; and in the filling process, the first electronic form received for the first time is used as a benchmark to determine the financial ratio between the corresponding first form amount and the transaction amount, and based on the financial ratio, a first transaction sub-area for filling the first electronic form is generated in the corresponding first upload area; and when the second electronic form is received, the financial ratio between the corresponding second form amount and the first form amount is determined, and based on the financial ratio, a form filling slot for filling the second electronic form is generated in the second transaction sub-area corresponding to the first transaction sub-area, which can not only record the upload of all electronic forms corresponding to different information types, but also realize the side display of the corresponding form amount based on the proportion angle while recording, and at the same time, based on the perspective of blockchain, the corresponding data security and data supervision effect can be improved.
[0180] Another embodiment of the present invention provides a digital bill supervision platform based on blockchain. Figure 3 As the corresponding system block diagram, the system includes:
[0181] A generation module is configured to respond to the supervision request of the user node, obtain the corresponding transaction amount in the bill blockchain in real time, and generate a billing record area of the corresponding bill type and a payment record area of the corresponding receipt type in the retrieved bill record interface;
[0182] A first determination module is configured to determine the information type of the first electronic form received for the first time, and determine a first upload area and a second upload area corresponding to the first electronic form in the invoicing record area and the payment record area based on the information type of the first electronic form;
[0183] A second determination module is configured to determine a first form amount involved in the first electronic form, and determine a ratio of the first form amount to the transaction amount as a first area occupancy ratio;
[0184] A first filling module is configured to generate a first transaction sub-area for filling the first electronic form in the first upload area based on the occupation ratio of the first area, and to generate a second transaction sub-area corresponding to the first transaction sub-area in the second upload area;
[0185] The second filling module is configured to determine the amount of the second form involved in response to receiving a second electronic form with a different information type from the first electronic form, obtain the ratio of the amount of the second form to the amount of the first form to determine the occupancy ratio of the second area, and generate a form filling slot in the second transaction sub-area for filling the second electronic form based on the occupancy ratio of the second area.
[0186] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the preferred embodiment of the present invention.
[0187] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0188] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0189] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0190] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0191] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0192] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0193] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0194] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative and not restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.
Claims
1. A digital bill supervision method based on blockchain, characterized in that: The following steps are involved: In response to the supervision request of the user node, the corresponding transaction amount in the bill blockchain is obtained in real time, and the billing record area of the corresponding bill type and the payment record area of the corresponding receipt type are generated in the retrieved bill record interface; Determining the information type of the first electronic form received for the first time, and determining a first upload area and a second upload area corresponding to the first electronic form in the billing record area and the payment record area based on the information type of the first electronic form; Determine a first form amount involved in the first electronic form, and determine a ratio of the first form amount to the transaction amount as a first area occupancy ratio corresponding to the first upload area; Based on the first area occupation ratio, generating a first transaction sub-area for filling the first electronic form in the first upload area, and generating a second transaction sub-area corresponding to the first transaction sub-area in the second upload area; In response to receiving a second electronic form having an information type different from that of the first electronic form, determining a second form amount involved, obtaining a ratio of the amount of the second form to the amount of the first form to determine a second area occupancy ratio, and generating a form filling slot for filling the second electronic form in the second transaction sub-area based on the second area occupancy ratio; Determining the information type of the first electronic form received for the first time, including: Create a transparent contrast layer, and retrieve a receipt template and a bill template, wherein the receipt template includes a receipt frame line, and the bill template includes a bill frame line; Determine all electronic characters in the first electronic form, and clear the electronic characters to obtain first processing information including electronic frame lines; Placing the first processing information on the transparent contrast layer, and determining the center point of the form of the first processing information; Based on the center point of the form, any one of the receipt template and the bill template is placed on the first processed information, and the electronic frame lines included in the first processed information and the frame lines corresponding to the template placed on the first processed information are mapped to the transparent contrast layer respectively, and the information type of the first electronic form is determined based on a preset frame line comparison strategy.
2. The blockchain-based digital bill supervision method according to claim 1 is characterized in that: Placing any one of the receipt template and the bill template on the first processed information based on the center point of the form, mapping the electronic frame lines included in the first processed information and the frame lines corresponding to the template placed on the first processed information to the transparent contrast layer, and determining the information type of the first electronic form based on a preset frame line contrast strategy, including: Performing grayscale processing on the first processed information to obtain second processed information, acquiring each electronic pixel point constituting the second processed information, and determining each electronic pixel value corresponding to each electronic pixel point; Retrieving a preset pixel interval, and dividing the preset pixel interval into a first sub-interval and a second sub-interval based on a middle value of pixels in the preset pixel interval; Calculate the average value based on each electronic pixel value to obtain a pixel average value, and determine whether there is a contained relationship between the pixel average value and the first sub-interval and the second sub-interval; Determine a subinterval without an inclusion relationship as a target subinterval, and divide the target subinterval into equal parts based on a first interval edge value and a second interval edge value of the target subinterval to obtain a first adjusted pixel value and a second adjusted pixel value; Respectively configuring the pixel values of the receipt template and the bill template based on the first adjusted pixel value and the second adjusted pixel value, and mapping the electronic frame line included in the second processing information to the transparent contrast layer; Placing any one of the receipt template and the bill template on the second processed information based on the center point of the form, and mapping the frame line corresponding to any one of the receipt template and the bill template to the transparent contrast layer to obtain a mapped contrast layer; Determine whether there is a pixel point corresponding to the first adjusted pixel value or the second adjusted pixel value in the mapping comparison layer; If not, determining the first electronic form as having the same information type as the template placed on the first electronic form; If so, the first electronic form is determined to have the same information type as the template that is not placed on the first electronic form.
3. The blockchain-based digital bill supervision method according to claim 1 is characterized in that: Determining a first form amount involved in the first electronic form, and determining a ratio of the first form amount to the transaction amount as a first area occupancy ratio corresponding to the first upload area, includes: Retrieving a comparison table of amount frameworks, wherein the comparison table of amount frameworks includes different information types and amount framework coordinate groups corresponding to the different information types; Determine a corresponding amount framework coordinate group in the financial framework comparison table based on the information type of the first electronic form, and establish a form coordinate system based on the first electronic form; Determining the amount frame in the first electronic form according to each frame coordinate point in the amount frame coordinate group in the form coordinate system, and performing text extraction on the financial frame; Determine the first form amount involved in the first electronic form based on the result of text extraction, and compare the first form amount with the transaction amount to determine the amount ratio; The amount ratio is determined as the first area occupancy ratio corresponding to the first uploading area.
4. The blockchain-based digital bill supervision method according to claim 3 is characterized in that: Generating a first transaction sub-area for filling the first electronic form in the first upload area based on the occupation ratio of the first area, and generating a second transaction sub-area corresponding to the first transaction sub-area in the second upload area, including: Determine a longitudinal size of the first uploading area, and determine an occupied size corresponding to an occupied ratio of the first area based on the longitudinal size; Based on the occupied size, a transverse area line is formed in the first upload area, and the transverse area line is extended to the second upload area to obtain a first transaction sub-area corresponding to the first upload area and a second transaction sub-area corresponding to the second upload area; The first electronic form is resized based on the occupied size, and the resized first electronic form is filled into the first transaction sub-area.
5. The blockchain-based digital bill supervision method according to claim 1 is characterized in that: Also includes: In response to the sum of the amounts of each form corresponding to all the filled electronic forms with the same information type being less than the transaction amount, obtaining the amounts of each form and the proportions of each form corresponding to all the filled electronic forms, and generating an electronic sequence corresponding to the filled electronic forms based on the amounts of each form and the proportions of each form; Generate a form key corresponding to the electronic sequence based on a hash encryption algorithm; In response to the sum of the amounts of the forms corresponding to all the filled electronic forms with the same information type being equal to the transaction amount, all the form amounts and all the occupancy ratios corresponding to all the electronic forms are obtained, and an electronic sequence corresponding to the information type is generated based on all the form amounts and all the occupancy ratios; A type key corresponding to the information type is generated based on a hash encryption algorithm.
6. The blockchain-based digital bill supervision method according to claim 5 is characterized in that: Also includes: Determine a terminal that accesses the billing record area as a first access terminal, and determine a terminal that accesses the payment record area as a second access terminal; Sending all form keys and type keys corresponding to the ticket type to the first access terminal, and generating corresponding access verification links and verification identity sets; Sending all form keys and type keys corresponding to the receipt type to the second access terminal, and generating corresponding access verification links and verification identity sets; In response to any access terminal accessing data based on the corresponding access verification link, access verification is performed based on the corresponding key and verification identity set, and an electronic form corresponding to the key is fed back to the access terminal if the verification passes.
7. The blockchain-based digital bill supervision method according to claim 6 is characterized in that: Also includes: Generating a time recording area in the bill recording interface, wherein the time recording area is located between the billing recording area and the payment recording area; An interface coordinate system is established based on the bill recording interface, and each form coordinate group corresponding to each electronic form located in the bill recording interface is determined based on the interface coordinate system; Determine a first coordinate point with a maximum longitudinal coordinate value and a second coordinate point with a minimum longitudinal coordinate value in each form coordinate group, and generate a first auxiliary line and a second auxiliary line along a transverse direction based on the first coordinate point and the second coordinate point respectively; Generate a time recording axis extending in the longitudinal direction in the time recording area with the second auxiliary line as the starting point and the first auxiliary line as the end point; The upload time corresponding to each electronic form in the ticket record interface is obtained respectively, and the time corresponding to the electronic form is recorded on the time record axis based on the upload time.
8. The blockchain-based digital bill supervision method according to claim 7 is characterized in that: Recording a time corresponding to the electronic form on the time record axis based on the upload time includes: Determine a horizontal form center line located in the electronic form, and establish a time record line in the time record axis that is aligned with the horizontal form center line; Determining the information type of the electronic form, and configuring the color of the time record line based on the information type; Creating a time record slot, filling the upload time into the time record slot, and establishing an interactive link relationship between the time record slot and the time record line; In response to any access terminal's interaction with the time record line, the time record slot is retrieved for display.
9. The blockchain-based digital bill supervision method according to claim 1 is characterized in that: Also includes: In response to a cancellation request initiated by the supervisory end based on any electronic form, determining an upload area corresponding to the electronic form, and generating a cancellation display area corresponding to the upload area; Generating a moving path extending from an upload area corresponding to the electronic form to the voided display area in the ticket record interface; In response to the received refund voucher, determining a refund amount corresponding to the refund voucher, and determining a refund ratio between the refund amount and a form amount corresponding to the electronic form as a mobile ratio; The electronic form is moved to a corresponding position along the moving path based on the moving proportion.
10. A digital bill supervision platform based on blockchain, characterized in that: include: A generation module is configured to respond to the supervision request of the user node, obtain the corresponding transaction amount in the bill blockchain in real time, and generate a billing record area of the corresponding bill type and a payment record area of the corresponding receipt type in the retrieved bill record interface; A first determination module is configured to determine the information type of the first electronic form received for the first time, and determine a first upload area and a second upload area corresponding to the first electronic form in the invoicing record area and the payment record area based on the information type of the first electronic form; A second determination module is configured to determine a first form amount involved in the first electronic form, and determine a ratio of the first form amount to the transaction amount as a first area occupancy ratio; A first filling module is configured to generate a first transaction sub-area for filling the first electronic form in the first upload area based on the occupation ratio of the first area, and to generate a second transaction sub-area corresponding to the first transaction sub-area in the second upload area; A second filling module is configured to determine the amount of the second form involved in response to receiving a second electronic form having an information type different from that of the first electronic form, obtain the amount ratio between the amount of the second form and the amount of the first form to determine the second area occupancy ratio, and generate a form filling slot for filling the second electronic form in the second transaction sub-area based on the second area occupancy ratio; Determining the information type of the first electronic form received for the first time, including: Create a transparent contrast layer, and retrieve a receipt template and a bill template, wherein the receipt template includes a receipt frame line, and the bill template includes a bill frame line; Determine all electronic characters in the first electronic form, and clear the electronic characters to obtain first processing information including electronic frame lines; Placing the first processing information on the transparent contrast layer, and determining the center point of the form of the first processing information; Based on the center point of the form, any one of the receipt template and the bill template is placed on the first processed information, and the electronic frame lines included in the first processed information and the frame lines corresponding to the template placed on the first processed information are mapped to the transparent contrast layer respectively, and the information type of the first electronic form is determined based on a preset frame line comparison strategy.
Citation Information
Patent Citations
Bill processing method and device based on blockchain network
CN110428334A
Typesetting device, typesetting method and typesetting processing program
JP2009218702A