Invoice quota management system and method based on data retrieval
By building standard and corner diagram models on the server, combined with blockchain technology, automatic identification of paper invoice amounts and management of electronic invoice amounts are realized, solving the problem of inability to identify and manage existing systems, and improving the efficiency of enterprises. The convenience of invoice transition and the authenticity of invoicing requests.
Patent Information
- Application Number
- CN202410779986.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-10
AI Technical Summary
The existing electronic invoice issuance system cannot automatically identify and count the amount of paper invoices issued by the enterprise before, and cannot effectively manage the invoice limit, which makes the transition from paper invoices to electronic invoices inconvenient for enterprises.
The server builds invoice images based on standard graph models and corner graph models, combines the blockchain with invoice image classification and retrieval, detects text areas and performs text recognition, counts invoicing amounts, and receives invoicing requests for review and invoice issuance to ensure the amount. Management accuracy and effectiveness.
It realizes the automatic identification and statistics of the amount of paper invoices, simplifies the transition of enterprises from paper to electronic invoices, and ensures the authenticity of invoicing requests and the effective management of invoice amounts.
Smart Images

Figure CN118628265A
Abstract
Description
Technical Field
[0001] The present invention relates to invoice quota management, and in particular to an invoice quota management system and method based on data retrieval. Background Art
[0002] An invoice refers to a business voucher issued and collected by all units and individuals when buying and selling goods, providing or receiving services, and engaging in other business activities. It is the original basis for accounting and an important basis for law enforcement inspections by auditing and tax authorities.
[0003] With the rapid development of society, the existing invoice types mainly include paper invoices and electronic invoices. Since paper invoices require the use of specific paper and have poor security, electronic invoices are becoming more and more popular among the public. Therefore, an invoicing system for creating electronic invoices has emerged.
[0004] The existing electronic invoice issuance system cannot automatically identify and count the invoiced amounts of paper invoices previously issued by the enterprise, which brings inconvenience to the enterprise's transition from paper invoices to electronic invoices, and is unable to effectively manage the invoice amount. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the above-mentioned shortcomings of the prior art, the present invention provides an invoice amount management system and method based on data retrieval, which can effectively overcome the defects of the prior art that the invoice amount of paper invoices previously issued by the enterprise cannot be automatically identified and counted, and the invoice amount cannot be effectively managed.
[0007] (II) Technical solution
[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0009] An invoice quota management system based on data retrieval includes a server, wherein the server constructs a standard graph model of a standard invoice image based on corner points in a standard invoice image through a standard graph model construction module, and classifies and retrieves invoice images corresponding to invoices issued by various enterprises in a blockchain through an invoice retrieval module, wherein the server detects corner points in the invoice image through a corner point detection module, and constructs a corner graph model of the invoice image based on the corner points in the invoice image through a corner point graph model construction module, wherein the server detects text areas in the invoice image based on the corner point graph model and the standard graph model through a text area detection module, and performs text recognition on the text areas in the invoice image through a text recognition module, wherein the server counts the invoice quotas of various enterprises based on the text recognition results of the invoice image in combination with the invoice information stored on the chain through an invoice quota statistics module;
[0010] The server receives the invoicing request sent by the enterprise through the invoicing request receiving module, and uses the invoicing request review module to review the invoicing request. The server uses the invoicing amount judgment module to judge whether the invoicing amount of the enterprise corresponding to the reviewed invoicing request meets the invoicing amount corresponding to the reviewed invoicing request, and uses the invoice issuance storage module to issue the corresponding invoice based on the invoice amount judgment result, and stores the invoice on the chain at the same time.
[0011] Preferably, the standard image model construction module constructs a standard image model of the standard invoice image based on the corner points in the standard invoice image, including:
[0012] Establishing a second directed acyclic graph according to the corner points in the standard invoice image, and using the second directed acyclic graph as a standard graph model of the standard invoice image;
[0013] Among them, the vertices of the second directed acyclic graph correspond one-to-one to the corner points in the standard invoice image, the edges of the second directed acyclic graph describe the constraint relationship between the corner points in the standard invoice image, and the weights of the edges of the second directed acyclic graph represent the pixel distance between adjacent corner points in the standard invoice image.
[0014] Preferably, the corner point graph model building module builds a corner point graph model of the invoice image based on the corner points in the invoice image, including:
[0015] Establishing a first directed acyclic graph according to the corner points in the invoice image, and using the first directed acyclic graph as a corner point graph model of the invoice image;
[0016] Among them, the vertices of the first directed acyclic graph correspond one-to-one to the corner points in the invoice image, the edges of the first directed acyclic graph describe the constraint relationship between the corner points in the invoice image, and the weights of the edges of the first directed acyclic graph represent the pixel distance between adjacent corner points in the invoice image.
[0017] Preferably, after the standard image model building module builds the standard image model of the standard invoice image based on the corner points in the standard invoice image, it includes:
[0018] Based on the standard graph model, the missing vertices in the corner graph model are completed and the redundant vertices in the corner graph model are removed.
[0019] Preferably, the text region detection module detects the text region in the invoice image based on the corner graph model and the standard graph model, comprising:
[0020] Normalize the edge weights in the corner graph model, take subgraphs from the normalized corner graph model and the standard graph model, and perform similarity measurement on the subgraphs;
[0021] The corner graph model corresponding to the subgraph with the highest similarity and the most vertices is taken as the effective graph model, and the text area in the invoice image is detected based on the effective graph model.
[0022] Preferably, the text recognition module performs text recognition on the text area in the invoice image, including:
[0023] The trained long short-term memory network LSTM is used to perform text recognition on the text area in the invoice image to obtain the text recognition result of the invoice image.
[0024] Preferably, the invoicing request review module reviews the invoicing request, including:
[0025] According to the order number in the invoicing request, check whether there is order transaction information and logistics information related to the order number in the blockchain;
[0026] If there is relevant order transaction information and logistics information, determine whether the corresponding logistics status is abnormal based on the logistics information;
[0027] If the logistics status is normal, determine whether the invoicing amount in the invoicing request is consistent with the order transaction information;
[0028] If the invoicing amount is consistent with the order transaction information, the invoicing request is considered to have passed the review.
[0029] Preferably, the invoicing request includes the order number, invoicing items, invoicing amount, buyer information and seller information.
[0030] An invoice quota management method based on data retrieval comprises the following steps:
[0031] S1. constructing a standard graph model of a standard invoice image based on corner points in the standard invoice image;
[0032] S2. Classify and retrieve the invoice images corresponding to the invoices issued by each enterprise in the blockchain;
[0033] S3, detecting corner points in the invoice image, and constructing a corner point graph model of the invoice image based on the corner points in the invoice image;
[0034] S4, detecting the text area in the invoice image based on the corner graph model and the standard graph model, and performing text recognition on the text area in the invoice image;
[0035] S5. Based on the text recognition results of the invoice image and the invoicing information stored on the chain, the invoicing amount of each enterprise is counted;
[0036] S6. Receive the invoicing request sent by the enterprise and review the invoicing request;
[0037] S7. Determine whether the invoicing amount of the enterprise corresponding to the approved invoicing request meets the invoicing amount corresponding to the approved invoicing request. If so, issue the corresponding invoice and store the invoice on the chain.
[0038] Preferably, the text recognition result based on the invoice image in S5 is combined with the invoicing information stored on the chain to calculate the invoicing amount of each enterprise, including:
[0039] The enterprise submits an invoice claim request containing the claim amount and claimant information to the tax bureau node. When the tax bureau approves the invoice claim request, the claim amount, claimant information and invoice number are stored on the chain;
[0040] The text recognition results based on the invoice image are combined with the invoicing information stored on the chain to count the invoiced amount of each enterprise, and the corresponding invoicing amount is calculated based on the invoiced amount and claim amount of each enterprise.
[0041] (III) Beneficial effects
[0042] Compared with the prior art, the invoice quota management system and method based on data retrieval provided by the present invention has the following beneficial effects:
[0043] 1) The standard graph model construction module constructs a standard graph model of a standard invoice image based on the corner points in the standard invoice image. The invoice retrieval module classifies and retrieves the invoice images corresponding to the invoices issued by each enterprise in the blockchain. The corner point detection module detects the corner points in the invoice image. The corner point graph model construction module constructs a corner point graph model of the invoice image based on the corner points in the invoice image. The text area detection module detects the text area in the invoice image based on the corner point graph model and the standard graph model. The text recognition module performs text recognition on the text area in the invoice image. The invoice amount statistics module counts the invoice amount of each enterprise based on the text recognition result of the invoice image combined with the invoice information stored on the chain. The corner point graph model of the invoice image is constructed based on the corner points in the invoice image. By matching the corner point graph model with the standard graph model, the text area in the invoice image can be accurately detected, so that the invoiced amount of the paper invoice previously issued by the enterprise can be automatically identified and counted, which brings convenience to the transition from paper invoices to electronic invoices for enterprises.
[0044] 2) The invoice request receiving module receives the invoice request sent by the enterprise, the invoice request review module reviews the invoice request, the invoice amount judgment module judges whether the invoice amount of the enterprise corresponding to the reviewed invoice request meets the invoice amount corresponding to the reviewed invoice request, and the invoice issuance storage module issues the corresponding invoice based on the invoice amount judgment result, and stores the invoice on the chain. On the one hand, it can effectively review the invoice request to ensure the authenticity of the invoice request, and on the other hand, by establishing an invoice amount judgment mechanism, it can effectively manage the invoice amount of the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 It is a schematic diagram of the system of the present invention;
[0047] Figure 2 It is a schematic diagram of the process of the present invention;
[0048] Figure 3 This is a flow chart of the present invention for calculating the invoicing amount of each enterprise based on the text recognition result of the invoice image combined with the invoicing information stored on the chain. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] An invoice quota management system based on data retrieval, such as Figure 1 and Figure 3As shown, it includes a server, which constructs a standard graph model of a standard invoice image based on the corner points in the standard invoice image through a standard graph model construction module, and uses an invoice retrieval module to classify and retrieve invoice images corresponding to invoices issued by various enterprises in the blockchain. The server detects the corner points in the invoice image through a corner point detection module, and uses a corner graph model construction module to construct a corner graph model of the invoice image based on the corner points in the invoice image. The server detects the text area in the invoice image based on the corner graph model and the standard graph model through a text area detection module, and uses a text recognition module to perform text recognition on the text area in the invoice image. The server uses an invoice amount statistics module to count the invoice amount of each enterprise based on the text recognition result of the invoice image and the invoice information stored on the chain.
[0051] ① The standard graph model construction module constructs a standard graph model of the standard invoice image based on the corner points in the standard invoice image, including:
[0052] Establishing a second directed acyclic graph according to the corner points in the standard invoice image, and using the second directed acyclic graph as a standard graph model of the standard invoice image;
[0053] Among them, the vertices of the second directed acyclic graph correspond one-to-one to the corner points in the standard invoice image, the edges of the second directed acyclic graph describe the constraint relationship between the corner points in the standard invoice image, and the weights of the edges of the second directed acyclic graph represent the pixel distance between adjacent corner points in the standard invoice image.
[0054] ② The corner map model building module builds a corner map model of the invoice image based on the corner points in the invoice image, including:
[0055] Establishing a first directed acyclic graph according to the corner points in the invoice image, and using the first directed acyclic graph as a corner point graph model of the invoice image;
[0056] Among them, the vertices of the first directed acyclic graph correspond one-to-one to the corner points in the invoice image, the edges of the first directed acyclic graph describe the constraint relationship between the corner points in the invoice image, and the weights of the edges of the first directed acyclic graph represent the pixel distance between adjacent corner points in the invoice image.
[0057] Specifically, after the standard graph model building module builds the standard graph model of the standard invoice image based on the corner points in the standard invoice image, it includes:
[0058] Based on the standard graph model, the missing vertices in the corner graph model are completed and the redundant vertices in the corner graph model are removed.
[0059] ③ The text region detection module detects the text region in the invoice image based on the corner graph model and the standard graph model, including:
[0060] Normalize the edge weights in the corner graph model, take subgraphs from the normalized corner graph model and the standard graph model, and perform similarity measurement on the subgraphs;
[0061] The corner graph model corresponding to the subgraph with the highest similarity and the most vertices is taken as the effective graph model, and the text area in the invoice image is detected based on the effective graph model.
[0062] ④ The text recognition module performs text recognition on the text area in the invoice image, including:
[0063] The trained long short-term memory network LSTM is used to perform text recognition on the text area in the invoice image to obtain the text recognition result of the invoice image.
[0064] In the above technical solution, the standard graph model construction module constructs a standard graph model of the standard invoice image based on the corner points in the standard invoice image, the invoice retrieval module classifies and retrieves the invoice images corresponding to the invoices issued by each enterprise in the blockchain, the corner point detection module detects the corner points in the invoice image, the corner point graph model construction module constructs the corner point graph model of the invoice image based on the corner points in the invoice image, the text area detection module detects the text area in the invoice image based on the corner point graph model and the standard graph model, the text recognition module performs text recognition on the text area in the invoice image, the invoice amount statistics module counts the invoice amount of each enterprise based on the text recognition result of the invoice image combined with the invoice information stored on the chain, and constructs the corner point graph model of the invoice image based on the corner points in the invoice image. By matching the corner point graph model with the standard graph model, the text area in the invoice image can be accurately detected, so that the invoiced amount of the paper invoice previously issued by the enterprise can be automatically identified and counted, which brings convenience to the transition and connection of enterprises from paper invoices to electronic invoices.
[0065] like Figure 1 As shown, the server receives the invoicing request sent by the enterprise through the invoicing request receiving module, and uses the invoicing request review module to review the invoicing request. The server uses the invoicing amount judgment module to judge whether the invoicing amount of the enterprise corresponding to the reviewed invoicing request meets the invoicing amount corresponding to the reviewed invoicing request, and uses the invoice issuance storage module to issue the corresponding invoice based on the invoice amount judgment result, and stores the invoice on the chain at the same time.
[0066] The invoicing request review module reviews invoicing requests, including:
[0067] According to the order number in the invoicing request, check whether there is order transaction information and logistics information related to the order number in the blockchain;
[0068] If there is relevant order transaction information and logistics information, determine whether the corresponding logistics status is abnormal based on the logistics information;
[0069] If the logistics status is normal, determine whether the invoicing amount in the invoicing request is consistent with the order transaction information;
[0070] If the invoicing amount is consistent with the order transaction information, the invoicing request is considered to have passed the review.
[0071] Specifically, the invoicing request includes the order number, invoicing items, invoicing amount, buyer information, and seller information.
[0072] In the above technical solution, the invoice request receiving module receives the invoice request sent by the enterprise, the invoice request review module reviews the invoice request, the invoice amount judgment module judges whether the invoice amount of the enterprise corresponding to the reviewed invoice request meets the invoice amount corresponding to the reviewed invoice request, and the invoice issuance and storage module issues the corresponding invoice based on the invoice amount judgment result, and stores the invoice on the chain at the same time. On the one hand, it can effectively review the invoice request to ensure the authenticity of the invoice request, and on the other hand, by establishing an invoice amount judgment mechanism, it can effectively manage the invoice amount of the enterprise.
[0073] In the technical solution of this application, a method for managing invoice quota based on data retrieval is also disclosed, such as Figure 2 As shown, the following steps are included:
[0074] S1. constructing a standard graph model of a standard invoice image based on corner points in the standard invoice image;
[0075] S2. Classify and retrieve the invoice images corresponding to the invoices issued by each enterprise in the blockchain;
[0076] S3, detecting corner points in the invoice image, and constructing a corner point graph model of the invoice image based on the corner points in the invoice image;
[0077] S4, detecting the text area in the invoice image based on the corner graph model and the standard graph model, and performing text recognition on the text area in the invoice image;
[0078] S5. Based on the text recognition results of the invoice image and the invoicing information stored on the chain, the invoicing amount of each enterprise is counted;
[0079] S6. Receive the invoicing request sent by the enterprise and review the invoicing request;
[0080] S7. Determine whether the invoicing amount of the enterprise corresponding to the approved invoicing request meets the invoicing amount corresponding to the approved invoicing request. If so, issue the corresponding invoice and store the invoice on the chain.
[0081] The text recognition results based on the invoice image in S5 are combined with the invoicing information stored on the chain to calculate the invoicing amount of each enterprise, including:
[0082] The enterprise submits an invoice claim request containing the claim amount and claimant information to the tax bureau node. When the tax bureau approves the invoice claim request, the claim amount, claimant information and invoice number are stored on the chain;
[0083] The text recognition results based on the invoice image are combined with the invoicing information stored on the chain to count the invoiced amount of each enterprise, and the corresponding invoicing amount is calculated based on the invoiced amount and claim amount of each enterprise.
[0084] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An invoice quota management system based on data retrieval, characterized by: The server includes a server, which constructs a standard graph model of a standard invoice image based on the corner points in the standard invoice image through a standard graph model construction module, and classifies and retrieves the invoice images corresponding to the invoices issued by each enterprise in the blockchain through an invoice retrieval module. The server detects the corner points in the invoice image through a corner point detection module, and constructs a corner graph model of the invoice image based on the corner points in the invoice image through a corner point graph model construction module. The server detects the text area in the invoice image based on the corner point graph model and the standard graph model through a text area detection module, and performs text recognition on the text area in the invoice image through a text recognition module. The server counts the invoice amount of each enterprise based on the text recognition result of the invoice image and the invoice information stored on the chain through an invoice amount statistics module; The server receives the invoicing request sent by the enterprise through the invoicing request receiving module, and uses the invoicing request review module to review the invoicing request. The server uses the invoicing amount judgment module to judge whether the invoicing amount of the enterprise corresponding to the reviewed invoicing request meets the invoicing amount corresponding to the reviewed invoicing request, and uses the invoice issuance storage module to issue the corresponding invoice based on the invoice amount judgment result, and stores the invoice on the chain at the same time.
2. The invoice quota management system based on data retrieval according to claim 1 is characterized by: The standard graph model construction module constructs a standard graph model of the standard invoice image based on the corner points in the standard invoice image, including: Establishing a second directed acyclic graph according to the corner points in the standard invoice image, and using the second directed acyclic graph as a standard graph model of the standard invoice image; Among them, the vertices of the second directed acyclic graph correspond one-to-one to the corner points in the standard invoice image, the edges of the second directed acyclic graph describe the constraint relationship between the corner points in the standard invoice image, and the weights of the edges of the second directed acyclic graph represent the pixel distance between adjacent corner points in the standard invoice image.
3. The invoice quota management system based on data retrieval according to claim 2 is characterized by: The corner point graph model building module builds a corner point graph model of the invoice image based on the corner points in the invoice image, including: Establishing a first directed acyclic graph according to the corner points in the invoice image, and using the first directed acyclic graph as a corner point graph model of the invoice image; Among them, the vertices of the first directed acyclic graph correspond one-to-one to the corner points in the invoice image, the edges of the first directed acyclic graph describe the constraint relationship between the corner points in the invoice image, and the weights of the edges of the first directed acyclic graph represent the pixel distance between adjacent corner points in the invoice image.
4. The invoice quota management system based on data retrieval according to claim 3 is characterized by: After the standard graph model building module builds the standard graph model of the standard invoice image based on the corner points in the standard invoice image, it includes: Based on the standard graph model, the missing vertices in the corner graph model are completed and the redundant vertices in the corner graph model are removed.
5. The invoice quota management system based on data retrieval according to claim 3 is characterized by: The text region detection module detects the text region in the invoice image based on the corner graph model and the standard graph model, including: Normalize the edge weights in the corner graph model, take subgraphs from the normalized corner graph model and the standard graph model, and perform similarity measurement on the subgraphs; The corner graph model corresponding to the subgraph with the highest similarity and the most vertices is taken as the effective graph model, and the text area in the invoice image is detected based on the effective graph model.
6. The invoice quota management system based on data retrieval according to claim 5 is characterized by: The text recognition module performs text recognition on the text area in the invoice image, including: The trained long short-term memory network LSTM is used to perform text recognition on the text area in the invoice image to obtain the text recognition result of the invoice image.
7. The invoice quota management system based on data retrieval according to claim 1 is characterized by: The invoicing request review module reviews the invoicing request, including: According to the order number in the invoicing request, check whether there is order transaction information and logistics information related to the order number in the blockchain; If there is relevant order transaction information and logistics information, determine whether the corresponding logistics status is abnormal based on the logistics information; If the logistics status is normal, determine whether the invoicing amount in the invoicing request is consistent with the order transaction information; If the invoicing amount is consistent with the order transaction information, the invoicing request is considered to have passed the review.
8. The invoice quota management system based on data retrieval according to claim 7 is characterized in that: The invoicing request includes the order number, invoicing items, invoicing amount, buyer information and seller information.
9. A method for managing invoice quota based on data retrieval, applied to the invoice quota management system based on data retrieval according to claim 1, characterized in that: The following steps are involved: S1. constructing a standard graph model of a standard invoice image based on corner points in the standard invoice image; S2. Classify and retrieve the invoice images corresponding to the invoices issued by each enterprise in the blockchain; S3, detecting corner points in the invoice image, and constructing a corner point graph model of the invoice image based on the corner points in the invoice image; S4, detecting the text area in the invoice image based on the corner graph model and the standard graph model, and performing text recognition on the text area in the invoice image; S5. Based on the text recognition results of the invoice image and the invoicing information stored on the chain, the invoicing amount of each enterprise is counted; S6. Receive the invoicing request sent by the enterprise and review the invoicing request; S7. Determine whether the invoicing amount of the enterprise corresponding to the approved invoicing request meets the invoicing amount corresponding to the approved invoicing request. If so, issue the corresponding invoice and store the invoice on the chain.
10. The invoice quota management method based on data retrieval according to claim 9 is characterized in that: The text recognition results based on the invoice image in S5 are combined with the invoicing information stored on the chain to calculate the invoicing amount of each enterprise, including: The enterprise submits an invoice claim request containing the claim amount and claimant information to the tax bureau node. When the tax bureau approves the invoice claim request, the claim amount, claimant information and invoice number are stored on the chain; The text recognition results based on the invoice image are combined with the invoicing information stored on the chain to count the invoiced amount of each enterprise, and the corresponding invoicing amount is calculated based on the invoiced amount and claim amount of each enterprise.
