Bill verification method and device

By automatically extracting and verifying the characteristics of electronic bills, the problem of low manual verification efficiency is solved, efficient bill format verification is achieved, and labor costs and professional knowledge requirements are reduced.

CN113486792BActive Publication Date: 2025-08-15INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110759416.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-05
Publication Date
2025-08-15
Estimated Expiration
2041-07-05

AI Technical Summary

Technical Problem

In the prior art, the verification of bank bill format content mainly relies on manual labor, and there are problems such as low efficiency, high cost and high professional requirements.

Method used

By obtaining the feature information of electronic bills, the bill features are automatically extracted and the preset verification indicators are matched according to the bill type for verification, and the reference bill features are automatically checked to reduce the dependence on manual operations.

Benefits of technology

Automatic ticket format verification is realized, reducing labor costs and professional knowledge requirements, and improving verification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113486792B_ABST
    Figure CN113486792B_ABST
Patent Text Reader

Abstract

The present disclosure provides a bill verification method, applied to the field of artificial intelligence technology. The method comprises: obtaining an electronic bill and performing a feature information extraction operation on the electronic bill to obtain bill features from the electronic bill; determining the bill type to which the electronic bill belongs based on the bill features; determining bill features to be verified based on at least one preset verification indicator that matches the bill type; and verifying the bill features to be verified using reference bill features associated with each of the verification indicators to obtain a bill verification result. The present disclosure also provides a bill verification device, an electronic device, and a computer storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to a bill verification method and device. Background Art

[0002] Bank bills are bills issued by banks or paid by banks. Bank bills have extremely high requirements for the format and content of the bills. Standardized bill format and content are of great significance to ensuring the normal operation of banking business. Bill format and content verification is one of the important business contents of banks.

[0003] In the process of implementing the technical solution disclosed in the present invention, the inventors found that in the relevant bill format content verification work, the verification work mostly relies on manual work, which has the defects of low verification efficiency, high verification cost, and high professional requirements for verification personnel. Summary of the Invention

[0004] One aspect of the present disclosure provides a bill verification method, comprising: obtaining an electronic bill and performing a feature information extraction operation on the electronic bill to obtain bill features in the electronic bill; determining the bill type to which the electronic bill belongs based on the bill features; determining the bill features to be verified based on at least one preset verification indicator that matches the bill type; and verifying the bill features to be verified using reference bill features associated with each of the verification indicators to obtain a bill verification result.

[0005] Optionally, performing a feature information extraction operation on the electronic bill to obtain the bill features in the electronic bill includes: performing a table line extraction operation on the electronic bill to obtain the table line features in the electronic bill; and performing a text information extraction operation on the electronic bill to obtain the business text features in the electronic bill.

[0006] Optionally, the text information extraction operation is performed on the electronic invoice to obtain the business text features in the electronic invoice, including: calling a code control associated with the layout document type according to the layout document type to which the electronic invoice belongs; running the code control to separate the form template and business information in the electronic invoice to obtain the business text features in the electronic invoice.

[0007] Optionally, determining the bill type to which the electronic bill belongs based on the bill characteristics includes: determining the bill type to which the electronic bill belongs based on the table line characteristics; and / or determining the bill type to which the electronic bill belongs based on the field content of a preset position in the business text characteristics.

[0008] Optionally, determining the bill features to be verified based on at least one preset verification indicator that matches the bill type includes: dividing the business text features into category field features and content field features based on the table line features and business text features in the bill features; and determining the content field features to be verified based on the at least one preset verification indicator and the category field features as the bill features to be verified.

[0009] Optionally, before determining the content field characteristics to be verified based on the at least one preset verification indicator and the category field characteristics, it also includes: verifying whether the category field characteristics are consistent with the at least one preset verification indicator; if so, executing the operation of determining the content field characteristics to be verified.

[0010] Optionally, the method further includes: clustering a set of electronic invoices that fail the invoice verification to obtain a subset of electronic invoices associated with each business type in at least one business type; and assigning the subset of electronic invoices associated with each of the business types to a matching business object for re-verification.

[0011] Another aspect of the present disclosure provides a bill verification device, including: an acquisition module, used to obtain an electronic bill and perform a feature information extraction operation on the electronic bill to obtain the bill features in the electronic bill; a first processing module, used to determine the bill type to which the electronic bill belongs based on the bill features; a second processing module, used to determine the bill features to be verified based on at least one preset verification indicator matching the bill type; and a third processing module, used to verify the bill features to be verified using reference bill features associated with each of the verification indicators to obtain a bill verification result.

[0012] Optionally, the acquisition module includes: a first processing submodule, used to perform a table line extraction operation on the electronic invoice to obtain the table line features in the electronic invoice; and a second processing submodule, used to perform a text information extraction operation on the electronic invoice to obtain the business text features in the electronic invoice.

[0013] Optionally, the second processing sub-module includes: a first processing unit, used to call the code control associated with the layout document type according to the layout document type to which the electronic invoice belongs; a second processing unit, used to run the code control to separate the form template and business information in the electronic invoice to obtain the business text features in the electronic invoice.

[0014] Optionally, the first processing module includes: a third processing sub-module, used to determine the bill type of the electronic bill based on the table line characteristics; a fourth processing sub-module, used to determine the bill type of the electronic bill based on the field content of a preset position in the business text characteristics.

[0015] Optionally, the second processing module includes: a fifth processing sub-module, used to divide the business text features into category field features and content field features based on the table line features and business text features in the bill features; a sixth processing sub-module, used to determine the content field features to be verified based on the at least one preset verification indicator and the category field features, as the bill features to be verified.

[0016] Optionally, the second processing module also includes: a seventh processing submodule, used to verify whether the category field characteristics are consistent with the at least one preset verification indicator; and if so, triggering the sixth processing submodule to perform the operation of determining the content field characteristics to be verified.

[0017] Optionally, the device also includes: a fourth processing module, which is used to cluster the set of electronic invoices that fail the invoice verification to obtain a subset of electronic invoices associated with each business type in at least one business type; and assign the subset of electronic invoices associated with each of the business types to a matching business object for re-verification.

[0018] Another aspect of the present disclosure provides an electronic device, comprising one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method of an embodiment of the present disclosure.

[0019] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method of the embodiment of the present disclosure when executed.

[0020] Another aspect of the present disclosure provides a computer program product, comprising computer-readable instructions, wherein the computer-readable instructions are used to perform the bill verification method of an embodiment of the present disclosure when executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] For a more complete understanding of the present disclosure and its advantages, reference will now be made to the following description taken in conjunction with the accompanying drawings, in which:

[0022] Figure 1 The system architecture of the bill verification method and device according to the embodiment of the present disclosure is schematically shown;

[0023] Figure 2 A flowchart of a bill verification method according to an embodiment of the present disclosure is schematically shown;

[0024] Figure 3 A flowchart of another bill verification method according to an embodiment of the present disclosure is schematically shown;

[0025] Figure 4 A schematic diagram of an electronic bill according to an embodiment of the present disclosure is schematically shown;

[0026] Figure 5 A block diagram of a bill verification device according to an embodiment of the present disclosure is schematically shown;

[0027] Figure 6 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0028] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely illustrative and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0029] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "include," "comprising," etc. used herein indicate the presence of features, operations, operations, and / or components, but do not exclude the presence or addition of one or more other features, operations, operations, or components.

[0030] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0031] When expressions such as "at least one of A, B and C, etc." are used, they should generally be interpreted in accordance with the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0032] The accompanying drawings illustrate some block diagrams and / or flow charts. It should be understood that some blocks in the block diagrams and / or flow charts, or combinations thereof, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable bill validation device, so that when executed by the processor, these instructions may create a device for implementing the functions / operations described in these block diagrams and / or flow charts. The techniques of the present disclosure may be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the techniques of the present disclosure may take the form of a computer program product on a computer-readable storage medium storing instructions, which may be used by an instruction execution system or in conjunction with an instruction execution system.

[0033] Embodiments of the present disclosure provide a bill verification method and a verification device capable of applying the method. In this method, an electronic bill is first obtained and feature information is extracted from the electronic bill to obtain bill features from the electronic bill. Then, based on the bill features, the bill type of the electronic bill is determined. Furthermore, based on at least one preset verification indicator that matches the bill type, the bill features to be verified are determined. Finally, the bill features to be verified are verified using reference bill features associated with each verification indicator to obtain a bill verification result.

[0034] Figure 1 The system architecture of the bill verification method and device according to the embodiment of the present disclosure is schematically shown. It should be noted that, Figure 1 The examples shown are merely examples of system architectures to which the embodiments of the present disclosure may be applied, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure may not be used in other devices, systems, environments or scenarios.

[0035] like Figure 1 As shown, system architecture 100 may include a business terminal (multiple of which are shown in the figure, such as business terminals 101, 102, and 103), a network 104, and a bill verification system 105. Network 104 is used to provide a medium for communication links between business terminals 101, 102, and 103 and bill verification system 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables. Bill verification system 105 may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud computing, network services, and middleware services.

[0036] First, the bill verification system 105 obtains the electronic bill from the business end (such as business ends 101, 102, and 103) and performs feature information extraction operations on the electronic bill to obtain the bill features in the electronic bill. Then, the bill verification system 105 determines the bill type to which the electronic bill belongs based on the bill features, and determines the bill features to be verified based on at least one preset verification indicator that matches the bill type. Finally, the bill features to be verified are verified using the reference bill features associated with each verification indicator to obtain the bill verification results, and the bill verification results are returned to the business end (such as business ends 101, 102, and 103).

[0037] It should be noted that the bill verification method and device of the embodiment of the present disclosure can be used in the financial field, and can also be used in any field other than the financial field. The present disclosure will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0038] Figure 2 The flowchart of a bill verification method according to an embodiment of the present disclosure is schematically shown. Figure 2 As shown, method 200 may include operations S210 to S240.

[0039] In operation S210 , an electronic bill is acquired, and a feature information extraction operation is performed on the electronic bill to obtain bill features in the electronic bill.

[0040] Next, in operation S220, the bill type to which the electronic bill belongs is determined based on the bill characteristics.

[0041] Next, in operation S230, the characteristics of the bill to be verified are determined based on at least one preset verification indicator that matches the bill type.

[0042] Next, in operation S240, the reference bill features associated with each verification indicator are used to verify the features of the bill to be verified, and a bill verification result is obtained.

[0043] The specific process of each step of the bill verification method of this embodiment is described in detail below.

[0044] In operation S210 , an electronic bill is acquired, and a feature information extraction operation is performed on the electronic bill to obtain bill features in the electronic bill.

[0045] In this embodiment, an electronic invoice is obtained. The electronic invoice includes a form template and business information carried by the electronic invoice. The form template is composed of form lines, and the business information is indicated by business text information. Therefore, the feature information extraction operation performed on the electronic invoice includes extracting the form lines and business text information in the electronic invoice. The extracted electronic invoice features include form line features and business text features.

[0046] Next, in operation S220, the bill type to which the electronic bill belongs is determined based on the bill characteristics.

[0047] In this embodiment, the document type of the electronic document is determined based on the extracted document features. For example, the document types may include cashier's checks, bank drafts, and bank-issued checks. Specifically, based on the table line features within the document features, the document type corresponding to the form template type is determined based on the form line features. Alternatively, based on the business text features within the document features, the document type matching the field content at a preset location within the business text features is determined based on the field content. Exemplarily, the document type indicated by the field content is determined based on the field content at the document header or form page header within the business text features.

[0048] Next, in operation S230, the characteristics of the bill to be verified are determined based on at least one preset verification indicator that matches the bill type.

[0049] In this embodiment, the document features to be verified in the electronic invoice are determined based on at least one preset verification indicator that matches the document type. The business text features in the document features include category field features and content field features. The category field feature is a fixed field feature in the electronic invoice that indicates the category of business information in the electronic invoice. The content field feature is a variable field feature in the electronic invoice that indicates the details of the business information in the electronic invoice.

[0050] Exemplarily, the category field features include various features such as "opening bank and account number", "taxpayer identification number", "remitter's name", etc., and the content field features include specific data content corresponding to each category field feature such as "opening bank and account number", "taxpayer identification number", "remitter's name", etc.

[0051] Based on at least one preset verification indicator that matches the document type, a category field feature associated with each of the at least one verification indicator is determined as the field category to be verified. Then, content field features that match each of the aforementioned category field features are used as the document features in the electronic document to be verified.

[0052] Next, in operation S240, the reference bill features associated with each verification indicator are used to verify the features of the bill to be verified, and a bill verification result is obtained.

[0053] In this embodiment, specifically, based on the reference bill features associated with each verification indicator, it is verified whether the bill features to be verified are consistent with the corresponding reference bill features, and a bill verification result is obtained. The bill verification result includes bill verification passed and bill verification failed.

[0054] For a set of electronic invoices that failed verification, clustering is performed to obtain subsets of electronic invoices associated with each of at least one business type. Next, these subsets are assigned to matching business objects for reverification. Specifically, these business objects can be bill reviewers. This design reduces the financial expertise required of bill reviewers.

[0055] Through the disclosed embodiments, an electronic bill is obtained, and a feature information extraction operation is performed on the electronic bill to obtain the bill features in the electronic bill; based on the bill features, the bill type to which the electronic bill belongs is determined; based on at least one preset verification indicator that matches the bill type, the bill features to be verified are determined; using the reference bill features associated with each verification indicator, the bill features to be verified are verified to obtain a bill verification result. The bill features in the electronic bill are extracted automatically, the bill type to which the electronic bill belongs is determined based on the bill features, and based on the business rule template that matches the bill type, whether the content format of the electronic bill complies with the preset bill filling specifications is verified. This design is conducive to weakening the degree of dependence of electronic bill review on manual operation, is conducive to controlling the labor cost consumption of electronic bill review, reducing the professional knowledge requirements for bill reviewers, and improving the efficiency of electronic bill review.

[0056] Figure 3 The flowchart of another bill verification method according to an embodiment of the present disclosure is schematically shown. Figure 3 As shown, the method 300 may include operations S310 to S340 and operation S240.

[0057] In operation S310 , an electronic bill is acquired, and a table line extraction operation is performed on the electronic bill to obtain table line features in the electronic bill, and a text information extraction operation is performed on the electronic bill to obtain business text features in the electronic bill.

[0058] Next, in operation S320, the bill type of the electronic bill is determined based on the table line features and / or the field content at a preset position in the business text features.

[0059] Next, in operation S330, the business text features are divided into category field features and content field features according to the table line features and the business text features in the bill features.

[0060] Next, in operation S340, based on at least one preset verification indicator and the category field feature, content field features to be verified are determined as features of the bill to be verified.

[0061] Next, in operation S240, the reference bill features associated with each verification indicator are used to verify the features of the bill to be verified, and a bill verification result is obtained.

[0062] The specific process of each step of the bill verification method of this embodiment is described in detail below.

[0063] In operation S310 , an electronic bill is acquired, and a table line extraction operation is performed on the electronic bill to obtain table line features in the electronic bill, and a text information extraction operation is performed on the electronic bill to obtain business text features in the electronic bill.

[0064] In this embodiment, specifically, when the acquired electronic receipt is a receipt image, the receipt image is grayscaled, and then a table line extraction operation is performed on the grayscaled receipt image to obtain table line features in the electronic receipt. For example, a line extraction algorithm is used to identify and extract line segment features in the grayscaled receipt image to obtain table line features in the electronic receipt.

[0065] When extracting text information from an electronic invoice, you can call the code control associated with the layout document type based on the electronic invoice's layout document type. Then, run the code control to separate the form template and business information in the electronic invoice, thereby obtaining the business text features within the electronic invoice. Business information is key information used to distinguish different electronic invoices. For example, business information may include the issuer's full name, issuer's account number, payee's full name, issue amount, bill maturity date, payee's full name, payee's account number, payee's bank account number, payee's bank number, and payee's address.

[0066] Next, in operation S320, the bill type of the electronic bill is determined based on the table line features and / or the field content at a preset position in the business text features.

[0067] In this embodiment, specifically, since the form template types used for electronic invoices of different bill types may be different, the business information details contained in electronic invoices of different bill types may also be different. Therefore, the bill type that matches the form template type can be first determined based on the form template type indicated by the table line characteristics, as the bill type to which the electronic invoice belongs.

[0068] The business text features obtained for an electronic invoice contain the contents of different fields and their positions within the electronic invoice, specifically their positions within the form template. Therefore, the invoice type can be determined based on the content of fields at preset positions within the business text features. For example, the keyword "Bank Acceptance Bill" in the header of an electronic invoice can be used to determine that the electronic invoice is a bank draft.

[0069] Next, in operation S330, the business text features are divided into category field features and content field features according to the table line features and the business text features in the bill features.

[0070] In this embodiment, specifically, the business text feature indicates the field content and field position information in the electronic invoice, and the table line feature indicates the form template type used by the electronic invoice, and at the same time indicates the field position information in the electronic invoice. Therefore, the business text feature can be divided into category field features and content field features based on the table line features and business text features in the invoice features.

[0071] For any document type, a category field feature is a fixed field with unchanging position information. Its field content and position information remain unchanged in electronic documents of a fixed document type. A content field feature is a variable field in an electronic document and corresponds to a matching category field feature. For a content field feature of a fixed field category, its field position information remains unchanged in electronic documents of a fixed document type, but its field content may vary in different electronic documents.

[0072] Figure 4 A schematic diagram of an electronic bill according to an embodiment of the present disclosure is shown schematically. Figure 4 As shown, in electronic bill 400, header position keyword 402, "Bank Acceptance Bill," indicates that electronic bill 400 is a bank draft. Form template 401 of electronic bill 400 includes category field features (such as field feature 403) and content field features (such as field feature 404). The category field features in electronic bill 400 include features such as the issuer's full name, issuer's account number, payee's full name, issue amount, payee's full name, payee's account number, and payee's bank account. The content field features contain the business data corresponding to each category field feature.

[0073] Next, in operation S340, based on at least one preset verification indicator and the category field feature, content field features to be verified are determined as features of the bill to be verified.

[0074] In this embodiment, after determining the document type to which the electronic document belongs, content field features to be verified are determined based on at least one preset verification indicator associated with the document type, that is, based on the business rule template associated with the document type, to serve as the document features to be verified. Specifically, the at least one preset verification indicator indicates the category field features to be verified in the electronic document. Based on the at least one preset verification indicator, the category field features to be verified corresponding to each verification indicator are determined. Then, the content field features associated with each category field feature to be verified are used as the content field features to be verified, thereby obtaining the document features to be verified in the electronic document.

[0075] Optionally, before determining the content field characteristics to be verified, the electronic receipt's category field characteristics are verified to be consistent with at least one of the aforementioned preset verification indicators. Specifically, the electronic receipt is verified to be consistent with the category field characteristics corresponding to each of the at least one verification indicator, and the field information and field position information of each category field characteristic are verified to be identical to the corresponding verification indicator. If they are consistent, the operation of determining the content field characteristics to be verified is performed; if they are inconsistent, the electronic receipt verification result is determined to be verification failure.

[0076] Next, in operation S240, the reference bill features associated with each verification indicator are used to verify the features of the bill to be verified, and a bill verification result is obtained.

[0077] Specifically, in this embodiment, in actual applications, the characteristics of the document to be verified are verified using reference document characteristics associated with each verification indicator and the business information associated with the electronic document, resulting in a document verification result. For a set of electronic documents that failed verification, the impact and urgency of the error results vary depending on the error content and error type. Optionally, electronic documents that failed verification are sent back to the document entry client for modification.

[0078] As an optional method, the verification results of bills that have failed verification are divided into multiple result types with different influences and processing priorities. For example, they are divided into Class A top-priority problems with huge current impact (for example, problems involving account amounts higher than a preset threshold, and problems involving a number of application parties greater than a set threshold), Class B second-priority problems with small current impact or later impact (for example, problems involving business problems for a duration greater than a set threshold), and Class C problems that have no impact but are non-compliant and do not need to be processed for the time being (for example, problems involving unclear understanding of business rules or filling methods that the system cannot recognize).

[0079] Optionally, cluster electronic invoices that fail verification are processed, and alerts are issued for the business types with the highest frequency of issues in categories A and B, prompting a review of whether there are business loopholes or unreasonable business rules in these business types. Backend business rule review is initiated for the business types with the highest frequency of issues in categories A, B, and C, prompting clarification of unclear business rules, thereby reducing the error rate of invoices and improving invoice review efficiency.

[0080] Figure 5 The following schematically shows a block diagram of a bill verification device according to an embodiment of the present disclosure.

[0081] like Figure 5 As shown, the apparatus 500 includes an acquisition module 501 , a first processing module 502 , a second processing module 503 and a third processing module 504 .

[0082] Specifically, the acquisition module 501 is used to acquire the electronic bill and perform feature information extraction operations on the electronic bill to obtain the bill features in the electronic bill; the first processing module 502 is used to determine the bill type to which the electronic bill belongs based on the bill features; the second processing module 503 is used to determine the bill features to be verified based on at least one preset verification indicator that matches the bill type; the third processing module 504 is used to verify the bill features to be verified using the reference bill features associated with each verification indicator to obtain the bill verification result.

[0083] Through the disclosed embodiments, an electronic bill is obtained, and a feature information extraction operation is performed on the electronic bill to obtain the bill features in the electronic bill; based on the bill features, the bill type to which the electronic bill belongs is determined; based on at least one preset verification indicator that matches the bill type, the bill features to be verified are determined; using the reference bill features associated with each verification indicator, the bill features to be verified are verified to obtain a bill verification result. The bill features in the electronic bill are extracted automatically, the bill type to which the electronic bill belongs is determined based on the bill features, and based on the business rule template that matches the bill type, whether the content format of the electronic bill complies with the preset bill filling specifications is verified. This design is conducive to weakening the degree of dependence of electronic bill review on manual operation, is conducive to controlling the labor cost consumption of electronic bill review, reducing the professional knowledge requirements for bill reviewers, and improving the efficiency of electronic bill review.

[0084] As a feasible approach, the acquisition module includes: a first processing submodule, used to perform table line extraction operations on electronic invoices to obtain table line features in electronic invoices; a second processing submodule, used to perform text information extraction operations on electronic invoices to obtain business text features in electronic invoices.

[0085] As a feasible approach, the second processing sub-module includes: a first processing unit, used to call the code control associated with the layout document type according to the layout document type to which the electronic invoice belongs; a second processing unit, used to run the code control to separate the form template and business information in the electronic invoice to obtain the business text features in the electronic invoice.

[0086] As a feasible approach, the first processing module includes: a third processing sub-module, used to determine the bill type of the electronic bill based on the table line characteristics; a fourth processing sub-module, used to determine the bill type of the electronic bill based on the field content of the preset position in the business text characteristics.

[0087] As a feasible approach, the second processing module includes: a fifth processing sub-module, used to divide the business text features into category field features and content field features based on the table line features and business text features in the bill features; a sixth processing sub-module, used to determine the content field features to be verified based on at least one preset verification indicator and category field features, as the bill features to be verified.

[0088] As a feasible approach, the second processing module also includes: a seventh processing submodule, used to verify whether the category field characteristics are consistent with at least one preset verification indicator; and if so, triggering the sixth processing submodule to perform an operation of determining the content field characteristics to be verified.

[0089] As a feasible approach, the device also includes: a fourth processing module, which is used to cluster the set of electronic invoices that fail the invoice verification to obtain a subset of electronic invoices associated with each business type in at least one business type; and assign the subset of electronic invoices associated with each business type to a matching business object for re-verification.

[0090] It should be noted that, in the embodiments of the present disclosure, the implementation of the device part is the same as or similar to the implementation of the method part, and will not be repeated here.

[0091] According to the modules of the embodiments of the present invention, any multiple or at least part of the functions of any multiple thereof can be implemented in one module. According to the modules of the embodiments of the present invention, any one or more can be split into multiple modules for implementation. According to the modules of the embodiments of the present invention, any one or more can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware of any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Or according to the modules of the embodiments of the present invention, one or more can be at least partially implemented as a computer program module, which can perform the corresponding function when the computer program module is run.

[0092] For example, any multiple of the acquisition module 501, the first processing module 502, the second processing module 503 and the third processing module 504 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 501, the first processing module 502, the second processing module 503 and the third processing module 504 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. At least one of the acquisition module 501 , the first processing module 502 , the second processing module 503 and the third processing module 504 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.

[0093] Figure 6 The block diagram schematically shows an electronic device 600 suitable for implementing the processing method and processing device according to an embodiment of the present disclosure. Figure 6 The electronic device 600 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0094] like Figure 6As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0095] Various programs and data required for the operation of the electronic device 600 are stored in the RAM 603. The processor 601, ROM 602, and RAM 603 are connected to each other via a bus 604. The processor 601 executes the programs in the ROM 602 and / or RAM 603 to perform various operations of the method flow according to the embodiment of the present disclosure. It should be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also execute the programs stored in one or more memories to perform various operations of the method flow according to the embodiment of the present disclosure.

[0096] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage portion 608 including a hard disk; and a communication portion 609 including a network interface card such as a LAN card or a modem. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed in the drive 610 as needed, so that a computer program read therefrom can be installed into the storage portion 608 as needed.

[0097] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0098] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.

[0099] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, such as but not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0100] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, which contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the method for detecting file upload vulnerabilities provided by the embodiment of the present disclosure.

[0101] When the computer program is executed by the processor 601, the above functions defined in the system / device of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0102] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0103] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0105] The above describes the embodiments of the present disclosure. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A bill verification method, comprising: Acquire an electronic bill and perform a feature information extraction operation on the electronic bill to obtain bill features in the electronic bill; Determining the bill type of the electronic bill based on the bill characteristics; Determining characteristics of the bill to be verified based on at least one preset verification indicator matching the bill type; Using the reference bill features associated with each of the verification indicators, the features of the bill to be verified are verified to obtain a bill verification result. The step of extracting characteristic information from the electronic bill to obtain the bill characteristics of the electronic bill includes: performing a table line extraction operation on the electronic bill to obtain table line features in the electronic bill; and Performing a text information extraction operation on the electronic bill to obtain business text features in the electronic bill, Furthermore, determining the bill type of the electronic bill based on the bill characteristics includes: Determining the bill type of the electronic bill according to the form line feature, specifically comprising: determining the bill type corresponding to the form template type according to the form line feature; And / or, determining the bill type to which the electronic bill belongs based on the field content at a preset position in the business text feature.

2. The method according to claim 1, wherein The performing of a text information extraction operation on the electronic bill to obtain business text features in the electronic bill includes: According to the layout document type to which the electronic receipt belongs, calling the code control associated with the layout document type; The code control is run to separate the form template and the business information in the electronic invoice to obtain the business text features in the electronic invoice.

3. The method according to claim 1, wherein The step of determining the characteristics of the bill to be verified based on at least one preset verification indicator matching the bill type includes: According to the table line features and the business text features in the bill features, the business text features are divided into category field features and content field features; According to the at least one preset verification indicator and the category field characteristics, content field characteristics to be verified are determined as the bill characteristics to be verified.

4. The method according to claim 3, wherein: Before determining the content field feature to be verified based on the at least one preset verification indicator and the category field feature, the method further includes: Verifying whether the category field feature is consistent with the at least one preset verification indicator; If so, the operation of determining the characteristics of the content field to be verified is performed.

5. The method according to claim 1, further comprising: Clustering the set of electronic invoices that fail the invoice verification to obtain a subset of electronic invoices associated with each business type of at least one business type; The electronic invoice subset associated with each of the business types is assigned to a matching business object for re-verification.

6. A bill verification device comprising: an acquisition module, configured to acquire an electronic bill and perform a feature information extraction operation on the electronic bill to obtain bill features in the electronic bill; A first processing module, configured to determine the bill type of the electronic bill based on the bill characteristics; A second processing module is configured to determine a feature of the bill to be verified based on at least one preset verification indicator that matches the bill type; The third processing module is configured to verify the characteristics of the bill to be verified using the reference bill characteristics associated with each of the verification indicators to obtain a bill verification result. The step of extracting characteristic information from the electronic bill to obtain the bill characteristics of the electronic bill includes: performing a table line extraction operation on the electronic bill to obtain table line features in the electronic bill; and Performing a text information extraction operation on the electronic bill to obtain business text features in the electronic bill, Furthermore, determining the bill type of the electronic bill based on the bill characteristics includes: Determining the bill type of the electronic bill according to the form line feature, specifically comprising: determining the bill type corresponding to the form template type according to the form line feature; And / or, determining the bill type to which the electronic bill belongs based on the field content at a preset position in the business text feature.

7. An electronic device comprising: one or more processors; as well as a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to implement the method according to any one of claims 1 to 5.

9. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Data acquisition method, data acquisition device and storage medium

    CN109214385A

  • Bill verification method and apparatus

    CN110634223A