Information processing system, information processing method, and information processing program
The system addresses the challenge of generating accurate form information in varied formats by classifying columns and rows in form images, ensuring precise amount calculations.
Patent Information
- Application Number
- JP2024066446
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2044-04-16
AI Technical Summary
Conventional information processing systems struggle to accurately generate form information, particularly amounts, when encountering new or varied formats of forms without pre-prepared templates.
An information processing system that includes a column classification unit to identify amount columns, a row acquisition unit to select relevant rows, and a form information generation unit to generate detailed information, utilizing a summation unit to sum up user-input amounts, even in various formats.
The system accurately generates form information including detailed amounts, even when forms are issued in diverse formats, by classifying columns and rows based on specific conditions and summing user-input data.
Smart Images

Figure 0007537044000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing system, an information processing method, and an information processing program for generating form information. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there is an information processing system that reads a form image, which is an image of a form such as an invoice, and generates form information based on the read form image.
[0003] For example, JP 2022-013524 A discloses a document information generation device that uses document information associated with similar past features of a target document image and character information read from the target document image, and generates document information by reading the "billing date" and "payment deadline" from a new document image using OCR. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent Publication No. 2022-013524 Summary of the Invention [Problem to be solved by the invention]
[0005] However, in actual transactions, while various formats of forms are used by different issuers, conventional information processing systems can have difficulty generating form information that includes accurate amount details, especially for new formats of forms for which no template form information is prepared in advance.
[0006] Therefore, an embodiment of the present invention aims to provide an information processing system, an information processing method, and an information processing program that more accurately generate document information including details of amounts corresponding to the document, even for documents issued in various formats. [Means for solving the problem]
[0007] The information processing system according to the embodiment includes a column classification unit, a row acquisition unit, a form information generation unit, , and the summation section The column classification unit corresponds to a table region of a form image, and classifies columns that satisfy a column classification condition for classifying an amount column in which amounts are stored, from table data in which elements having a text format are arranged in rows and columns, into the amount column. The row acquisition unit acquires a target row that is to be acquired from a body portion of the table data, based on the row acquisition condition. The form information generation unit generates form information having details including the amount column, based on the elements included in the target row. The summing unit sums up the amounts included in the acquisition target lines designated and input by a user, and generates detail lines for generating the form information.
[0008] In an information processing method according to an embodiment, a column classification unit classifies, from table data in which elements having a text format are arranged in rows and columns, columns that correspond to a table region of a form image and that satisfy a column classification condition for classifying an amount column in which amounts are stored, into the amount column; a row acquisition unit acquires a target row that is an acquisition target from a body portion of the table data based on the row acquisition condition; and a form information generation unit generates form information having details including the amount column based on the elements included in the target row. an accumulating unit accumulating the amounts included in the acquisition target lines designated and input by the user, and generating a statement line for generating the form information; do.
[0009] The information processing program according to the embodiment includes a code for a column classification unit, a code for a row acquisition unit, and a code for a form information generation unit. , and the summation code The code for the column classification unit corresponds to a table region of a form image, and classifies, from table data in which elements having a text format are arranged in rows and columns, the columns that satisfy a column classification condition for classifying an amount column in which amounts are stored, into the amount column. The code for the row acquisition unit acquires a target row to be acquired from a body portion of the table data based on the row acquisition condition. The code for the form information generation unit generates form information having details including the amount column based on the elements included in the target row. The code for the summing unit sums up the amounts included in the target lines input by a user and generates detail lines for generating the form information. Effect of the Invention
[0010] Embodiments of the present invention can provide an information processing system, an information processing method, and an information processing program that more accurately generate document information including details of amounts corresponding to the document, even for documents issued in various formats. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing an example of an overall configuration of an information processing system according to an embodiment. [Diagram 2] 1 is a block diagram showing an example of an internal configuration of an information processing system according to an embodiment. [Diagram 3] 11 is a diagram showing an example of a form image for acquiring table data by a table data acquiring unit in the information processing system according to the embodiment. FIG. [Figure 4] 13A and 13B are examples of table data acquired by a table data acquisition unit in an information processing system according to an embodiment. [Diagram 5] 11 is a table illustrating an example of column sorting conditions in the information processing system according to the embodiment. [Figure 6] FIG. 13 is a diagram illustrating an example of a form processing screen displayed by the information processing system according to the embodiment. [Figure 7] FIG. 4 is a partial enlarged view of a form processing screen displayed by the information processing system according to the embodiment. [Figure 8] 13 is a diagram showing an example of a total amount display on a form processing screen displayed by the information processing system according to the embodiment. FIG. [Figure 9] 13A to 13C are diagrams illustrating examples of input of account items and tax classifications on a form processing screen displayed by the information processing system according to the embodiment. [Figure 10] FIG. 11 is a diagram illustrating an example of a form information display screen displayed by the information processing system according to the embodiment. [Figure 11] 11 is a flowchart illustrating an example of a form reading process in the information processing system according to the embodiment. [Figure 12] 11 is a flowchart illustrating an example of a form information generating process in the information processing system according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] (Configuration of the embodiment) Hereinafter, an embodiment will be described with reference to the drawings. FIG. 1 is a block diagram showing an example of the overall configuration of an information processing system 1. As shown in FIG.
[0013] 1, the information processing system 1 includes a terminal device 10 and a server 20. The terminal device 10 is connected to the server 20 via a network such as a LAN, the Internet, or mobile communication. The terminal device 10 is used by a user such as an accountant in an organization such as a company.
[0014] FIG. 2 is a block diagram showing an example of the internal configuration of the information processing system 1. As shown in FIG.
[0015] 2, the terminal device 10 is, for example, an information terminal such as a personal computer or a smartphone. The terminal device 10 transmits a form image I to the server 20 based on an instruction input by a user. The terminal device 10 includes a control unit 11, a storage unit 12, a display unit 13, and an instruction input unit 14.
[0016] The control unit 11 has a processing device such as a CPU, and executes a program read from the storage unit 12 to realize its functions.
[0017] The storage unit 12 has storage elements such as a ROM, a RAM, a HDD, and an SSD, and stores various information for controlling the terminal device 10 and various programs that constitute the processing unit.
[0018] The display unit 13 is configured with an LCD, an LED, an OLED, or the like, and is capable of displaying various types of information input from the control unit 11.
[0019] The instruction input unit 14 has input devices such as a keyboard and a mouse, and outputs to the control unit 11 various instruction inputs input by the user.
[0020] The server 20 includes a control unit 21 and a storage unit 22 .
[0021] The control unit 21 has a processing device such as a CPU, and executes a program read from the storage unit 22 to realize its functions.
[0022] The storage unit 22 has storage elements such as a ROM, a RAM, an HDD, and an SSD, and stores various programs constituting a processing unit for controlling the server 20 and various information used by the programs. For example, the storage unit 22 stores programs for a table data acquisition unit P1, a column classification unit P2, a row acquisition unit P3, a table data selection unit P4, a form information generation unit P5, and an accumulation unit P6.
[0023] FIG. 3 is a diagram showing an example of a form image I.
[0024] As shown in Figure 3, the document image I from which table data T is acquired by the table data acquisition unit P1 is, for example, an invoice, and includes one or more table areas A as well as the invoice date, invoice number, registration number, issuer, subject, and invoice amount, etc.
[0025] 4 shows an example of table data T acquired by table data acquisition unit P1. Element E “6” in the fourth row of the first column of table data T1 shown in FIG. 4(A) shows an example in which “c” in form image I has been erroneously converted to text.
[0026] 4, the table data acquisition unit P1 acquires table data T in which elements E having a text format are arranged in rows and columns based on a table region A of a form image I. For example, the table data acquisition unit P1 acquires table data T by extracting text based on the form image I by a text extraction process and detecting a plurality of pieces of text arranged in a grid pattern from the positions of the extracted text. The table data acquisition unit P1 may also acquire table region A and elements E surrounded by ruled lines extracted from the form image I by a ruled line extraction technique such as a Hough transform, and acquire table data T converted into text for each element E.
[0027] When there are multiple table regions A in the form image I, the table data acquisition unit P1 also acquires multiple pieces of table data T. For example, in the form image I illustrated in FIG. 3, the table data acquisition unit P1 acquires, as table data T1, elements E "Summary", "Quantity", "Unit Price", and "Detailed Amount" in the header H in the first row, elements E "a", "1", "100", and "100" in the body part B in the second row, and elements E (element values omitted) in the body part B in each of the third to fifth rows from the table region A1. In addition, the table data acquisition unit P1 also acquires, as table data T2, "Subtotal" and "1,000 yen" in the first row, "Consumption Tax" and "100 yen" in the second row, and "Total" and "1,100 yen" in the third row from the table region A2. Hereinafter, when both or either one of the table data T1 and the table data T2 is indicated, it is referred to as table data T.
[0028] FIG. 5 is a table illustrating an example of column sorting conditions.
[0029] As shown in Figure 5, the column classification unit P2 classifies columns that satisfy the column classification conditions for classifying the amount column Cm, in which amounts are stored, into the amount column Cm from table data T, which corresponds to a table area A included in the document image I and in which elements E having text format are arranged in rows and columns.
[0030] More specifically, the column classification unit P2 sets the amount evaluation value of a column in the header H of the column contained in the table data T, where an element E contains a predetermined amount character indicating that it is an amount column Cm, to the first predetermined amount evaluation value. For example, the predetermined amount character is "amount" or "subtotal", and the first predetermined amount evaluation value is 1.0. Furthermore, the column classification unit P2 sets the amount evaluation value of a column in the body B of the column, where the ratio of the number of elements E containing numbers to the total number of elements E is equal to or greater than a predetermined amount threshold, to the second predetermined amount evaluation value. For example, the predetermined amount threshold is 0.7, and the second predetermined amount evaluation value is 0.6. The second predetermined amount evaluation value is set to a value lower than the first predetermined amount evaluation value.
[0031] In addition, the column classification unit P2 classifies columns that satisfy column classification conditions for classifying unit price columns Cu in which unit prices are stored into unit price columns Cu. In the header section H, the column classification unit P2 sets the evaluation value of the unit price of a column in which element E contains a predetermined unit price character indicating that it is a unit price column Cu to a predetermined unit price evaluation value. For example, the predetermined unit price character is "unit price". The predetermined unit price evaluation value is, for example, 1.0.
[0032] In addition, the column classification unit P2 classifies columns that satisfy column classification conditions for classifying quantity columns Cn in which quantities are stored into quantity columns Cn. In the header section H, the column classification unit P2 sets the evaluation value of the quantity of a column in which element E contains a predetermined quantity character indicating that it is a quantity column Cn to a predetermined quantity evaluation value. For example, the predetermined quantity character is "quantity". The predetermined quantity evaluation value is, for example, 1.0.
[0033] The column classification unit P2 also classifies columns that satisfy the column classification conditions for classifying the item column Ci in which items are stored, into the item column Ci. The column classification unit P2 sets the evaluation value of an item in a column in which an element E contains a first predetermined item character indicating that the item is an item column Ci in the header H to a first predetermined item evaluation value. For example, the first predetermined item character is "item", and the first predetermined item evaluation value is 1.0. The column classification unit P2 also sets the evaluation value of an item in a column in which an element E contains a second predetermined item character in the header H to a second predetermined item evaluation value. For example, the second predetermined item character is "summary", and the second predetermined item evaluation value is 0.8. The column classification unit P2 also sets the evaluation value of an item in a column in which the ratio of the number of elements E that do not contain numbers to the total number of elements E is equal to or greater than a predetermined item threshold value in the body part B of the column to a third predetermined item evaluation value. For example, the predetermined item threshold value is 0.7, and the third predetermined item evaluation value is 0.6. The first predetermined item evaluation value is the lowest, followed by the second predetermined item evaluation value and the third predetermined item evaluation value.
[0034] In addition, the column classification unit P2 classifies columns that satisfy column classification conditions for classifying date columns Cd in which dates are stored into date columns Cd. In the header section H, the column classification unit P2 sets the evaluation value of the date of a column in which element E contains a predetermined date character indicating that it is a date column Cd to a predetermined date evaluation value. The predetermined date character is, for example, "date". The predetermined date value is, for example, 1.0.
[0035] The string classification unit P2 can use a regular expression that specifies a forward match or a backward match, etc., to detect whether a specified amount character, a specified unit price character, a specified quantity character, a first specified item character, a second specified item character, and a specified date character are included in the string header H. In addition to the examples given here, the specified amount character, the specified unit price character, the specified quantity character, the first specified item character, the second specified item character, and the specified date character can be adjusted empirically or experimentally so that the string classification unit P2 can correctly classify the string.
[0036] The column classification unit P2 classifies, among the columns included in the table data T, the column with the highest evaluation value for the amount into an amount column Cm, the column with the highest evaluation value for the unit price into a unit price column Cu, the column with the highest evaluation value for the quantity into a quantity column Cn, the column with the highest evaluation value for the item into an item column Ci, and the column with the highest evaluation value for the date into a date column Cd.
[0037] For example, as shown in table data T1 in FIG. 4(A), in the fourth column, the ratio of the number of elements E containing numbers (4) to the total number of elements E (4) in the body part B is calculated to be 1.0, which is equal to or greater than the predetermined amount threshold (0.7), and therefore satisfies the condition for the amount evaluation value to be 0.6. However, since the header H contains the predetermined amount character "amount", the amount evaluation value is 1.0 overall. In the second and third columns, the elements E in the body part B all contain numbers, so the amount evaluation value is 0.6. In the first column, the ratio of the number of elements E containing numbers (1) to the total number of elements E (4) is calculated to be 0.25 due to the misrecognition "6" in the fourth row, but since it is less than the predetermined amount threshold (0.7), the amount evaluation value is 0. Therefore, the fourth column, which has the largest amount evaluation value among the first to fourth columns included in the table data T, is classified as the amount column Cm.
[0038] Additionally, for the unit price column Cu, the third column contains the specified unit price character "unit price", and the evaluation value of the unit price is 1.0. Meanwhile, the evaluation values of the unit prices of the first, second, and fourth columns are 0. Therefore, the third column, which has the maximum evaluation value of the unit price among the columns included in the table data T, is classified as the unit price column Cu.
[0039] Furthermore, for the quantity column Cn, the second column contains the predetermined quantity characters "quantity", and the quantity evaluation value is 1.0. Meanwhile, the first, third, and fourth columns have quantity evaluation values of 0. Therefore, the second column, which has the largest quantity evaluation value among the columns included in the table data T, is classified as quantity column Cn.
[0040] Furthermore, for item sequence Ci, the first column meets the condition for an item evaluation value of 0.6 because the ratio (0.75) of the number of elements E that do not contain numbers to the total number of elements E (4) due to the misrecognition of "6" in the fourth row in body part B is greater than the specified item threshold (0.7), but because it contains a second specified item character, the item evaluation value overall is 0.8. Meanwhile, columns 2 to 4 have item evaluation values of 0. Therefore, the first column, which has the largest item evaluation value among the columns included in table data T, is classified as item sequence Ci.
[0041] Furthermore, with regard to the date column Cd, none of the first to fourth columns of the table data T1 contain the predetermined date characters, and the table data T1 does not have the date column Cd.
[0042] As a result, the column classification unit P2 classifies the first column into an item column Ci, the second column into a unit price column Cu, the third column into a quantity column Cn, and the fourth column into an amount column Cm for the table data T1 obtained from the table area A1.
[0043] That is, the column classification condition includes a condition that the heading H of a column included in the table data T contains a predetermined amount character indicating that it is an amount column Cm. The column classification condition also includes a condition that the ratio of the number of elements E including numbers to the total number of elements E in the body part B of a column included in the table data T is equal to or greater than a predetermined amount threshold. The column classification condition is a condition that sets the evaluation value of a column in which elements E include predetermined amount characters indicating that it is an amount column Cm in the heading H of the column included in the table data T, the evaluation value of a column in which elements E include predetermined amount characters indicating that it is an amount column Cm in the body part B of the column, the evaluation value of a column in which the ratio of the number of elements E including numbers to the total number of elements E is equal to or greater than the predetermined amount threshold is set to a second predetermined amount evaluation value smaller than the first predetermined amount evaluation value, and classifies the column having the largest evaluation value among the columns included in the table data T as an amount column Cm.
[0044] The row acquisition unit P3 acquires a target row Tu to be acquired from the body part B of the table data T based on the row acquisition condition. The row acquisition condition is a condition for excluding rows containing an element E having a predetermined exclusion character from the row to be acquired. The row acquisition unit P3 acquires all elements E of the row to be processed from the body part B of the table data T, and when the acquired element E has the predetermined exclusion character, it excludes the row from the row to be acquired. Examples of the predetermined exclusion character are "subtotal", "total", "consumption tax", "withholding", and "tax amount". In addition to the examples given here, the predetermined exclusion character string can be adjusted empirically or experimentally so that the target row Tu can be correctly acquired.
[0045] Furthermore, the row acquisition unit P3 acquires all elements E of the row to be processed, and when the acquired element E has the characters "subtotal", it acquires the number stored in the amount column Cm of the row to be processed as the subtotal and stores it in the memory unit 22. Furthermore, the row acquisition unit P3 acquires all elements E of the row to be processed, and when the acquired element E has the characters "tax amount", it acquires the number stored in the amount column Cm of the row to be processed as the tax amount and stores it in the memory unit 22.
[0046] For example, in table data T1 in Fig. 4(A), all of the body part B is set as rows Tu to be acquired. In table data T2 in Fig. 4(B), the first row is determined to be a header H and is excluded from the acquisition target, the second row is excluded from the acquisition target because it contains the predetermined excluded characters "consumption tax", and the third row is excluded from the acquisition target because it contains the predetermined excluded characters "total", so that all rows are excluded from the acquisition target.
[0047] Fig. 6 is a diagram showing an example of the form processing screen G1. Fig. 7 is a partial enlarged view of the form processing screen G1. Fig. 8 is a diagram showing an example of a total display on the form processing screen G1. Fig. 9 is a diagram showing an example of input of account titles and tax classifications on the form processing screen G1.
[0048] When there are multiple pieces of table data T, the table data selection unit P4 accepts a selection input by the user of the table data T to be acquired. More specifically, as shown in FIG. 6, when multiple pieces of table data T are acquired, the table data selection unit P4 displays check boxes on the form processing screen G1 to enable the user to select and input the table data T to be selected. When the user inputs a selection, the table data selection unit P4 includes the selected table data T as the acquisition target. For example, in the example of FIG. 6, the table data T1 corresponding to the table area A1 displayed as "Table 1" on the form processing screen G1 is selected by the user and included as the acquisition target.
[0049] The form information generating unit P5 generates form information having details D including at least an amount column Cm based on the elements E included in the target rows Tu. The form information generating unit P5 displays the target rows Tu in the target row display area Gu on the upper side of the form processing screen G1, and displays detail rows Td in the detail row display area Gd on the lower side.
[0050] The user can specify and input the item of the detail line Td in which to set the element E of the classified column. In the example of Fig. 6, the upper part of the form processing screen G1 has columns for "item reflecting item," "item reflecting unit price," "item reflecting quantity," and "item reflecting amount," and the "item reflecting item" is specified and input in "summary" of the detail line Td, and the "item reflecting amount" is specified and input in "product amount" of the detail line Td.
[0051] 7, the form information generating unit P5 can exclude lines designated and input by the user from the detail lines Td. When the user checks the check box provided to the left of the target line Tu displayed in the target line display area Gu and clicks the "Do not reflect" button, the form information generating unit P5 excludes the checked line from the detail lines Td displayed in the detail line display area Gd.
[0052] The summing unit P6 sums up the amounts included in the acquisition target rows Tu specified and input by the user, and generates a detail line Td for generating the form information. In the example of Fig. 7, by checking the check box to the left of the table data T displayed on the form processing screen G1 and clicking the "Add" button, a detail line Td is generated that sums up the amounts of the acquisition target rows Tu that are checked in the form information, as shown in Fig. 8. The generated detail line Td is identified by the summation key.
[0053] The form information generating unit P5 accepts user input of account title and tax category in the detail line Td. The account title is information used for journal entry, and in the example input of FIG. 9, it is "consumable expenses." The tax category is information for classifying transactions related to consumption tax, and in the example input of FIG. 9, it is "taxable purchases 10%." When a tax category instruction such as "taxable purchases 10%" is input, the form information generating unit P5 multiplies the amount by the consumption tax rate indicated in the tax category to calculate and display the amount including tax. The form information generating unit P5 also accepts user input of corrections when the amount, etc., has been erroneously converted to text, etc.
[0054] FIG. 10 is a diagram showing an example of the form information display screen G2.
[0055] As shown in FIG. 10, when the user inputs the account title and tax category in the detail line Td and then clicks the "Reflect" button, the form information generating unit P5 generates form information having a detail D in which the amount is associated with the account title, and displays the form information display screen G2. In the example of FIG. 10, the detail D includes the amount including tax, the account title, and the tax category in addition to the amount. In addition to the detail D, the form information display screen G2 in FIG. 10 also displays information such as the business partner, the amount, the transaction date, the payment due date, the payment date, the payment method, the transfer account, the team (department), the person in charge, the tag, and the case. These pieces of information are displayed when they can be extracted by a predetermined text extraction process based on the form image I, and are left blank when they cannot be extracted. For example, in the case of a business partner, if the text extracted from the form image I is included in the business partner list stored in advance in the storage unit 22 from the form image I, it is displayed in the business partner column.
[0056] When the user inputs an instruction, the form information generating unit P5 externally outputs the form information including the details D. A business system such as an accounting system can read the form information including the details D and perform subsequent processing.
[0057] (operation) The form reading process will now be described. FIG. 11 is a flowchart showing an example of a form reading process.
[0058] When a user inputs an instruction via the instruction input unit 14 and transmits a form image I to the server 20, the server 20 starts processing in the table data acquisition unit P1.
[0059] The table data acquisition unit P1 acquires table data T in which elements E are arranged in rows and columns based on the form image I (S1). The column classification unit P2 classifies the columns included in the table data T into one of an amount column Cm, a unit price column Cu, a quantity column Cn, an item column Ci, or a date column Cd based on the column classification conditions (S2). The row acquisition unit P3 acquires all elements E of the row to be processed, and if any of the elements E has a predetermined exclusion character, it excludes that row from the row to be acquired, and the process proceeds to S5 (S3: NO). If none of the elements E has the predetermined exclusion character, it sets that row as the row to be acquired Tu, and the process proceeds to S4 (S4).
[0060] In S4, the target row Tu is obtained and a detail row Td is generated.
[0061] When rows to be processed remain, the process returns to S3 (S5: NO). On the other hand, when the processing of all rows to be processed has been completed, the process proceeds to S6 (S5: YES).
[0062] When table data T to be processed remains, the process returns to S2 (S6: NO). On the other hand, when the processing of all table data T to be processed has been completed, the process ends.
[0063] The processes of S1 to S6 constitute the document reading process.
[0064] Next, the form information generating process will be described. FIG. 12 is a flowchart showing an example of the form information generating process.
[0065] When multiple pieces of table data T are acquired by the table data acquisition unit P1, the table data selection unit P4 displays check boxes on the form processing screen G1 to allow the user to select and input the table data T to be processed (S11). When the user operates the check boxes, the table data selection unit P4 adds or deletes detail lines Td depending on the check state of the check boxes (S12: YES, S13). If the user does not operate the check boxes, S13 is skipped and the process proceeds to S14 (S12: NO).
[0066] When the user inputs an instruction to exclude the target row Tu, the form information generating unit P5 excludes the detail row Td corresponding to the target row Tu for which the instruction was input (S14: YES, S15). If the user does not input an instruction to exclude the target row Tu, S15 is skipped and the process proceeds to S16 (S14: NO).
[0067] When the user inputs an instruction to sum up the target rows Tu, the form information generating unit P5 generates and displays a statement line Td that sums up the amounts of the target rows Tu for which the instruction was input, and displays a sum key in the target rows Tu (S16: YES, S17).If the user does not input an instruction to sum up the target rows Tu, S17 is skipped and the process proceeds to S18.
[0068] When the user has not yet finished inputting the account title and tax category, the process returns to S11 (S18: NO). On the other hand, when the user has finished inputting the account title and tax category and has input an instruction to create form information, the form information generation unit P5 generates form information based on the detail line Td (S18: YES, S19).
[0069] The processes of S11 to S19 constitute the form information generation process.
[0070] As a result, the column classification unit P2 calculates evaluation values for the heading section H and the body section B based on the column classification conditions and performs classification, so that columns can be classified more accurately even if the form image I is of a new format or if characters are misrecognized when extracting text.
[0071] Even if a plurality of pieces of table data T are acquired from the form image I by the table data acquisition unit P1, the row acquisition unit P3 can exclude rows that are not necessary for generating the details D. Furthermore, the table data selection unit P4 can exclude table data T that the user has determined to be unnecessary.
[0072] The report information generation unit P5 can exclude target rows Tu that the user determines to be unnecessary, and the summation unit P6 can sum the target rows Tu that the user wishes to sum, thereby generating report information including more accurate details D.
[0073] According to the embodiment, the information processing system 1 can generate form information including detailed amounts D more accurately based on the form even if the form is issued in various formats.
[0074] In the embodiment, the document image I is an image of an invoice, but is not limited thereto. The document image I may be an image of a document such as a billing statement, an estimate, a delivery note, an insurance policy, or the like, or may be an image of another document.
[0075] In the embodiment, the column classification unit P2 classifies the columns in the table data T into any one of the amount column Cm, the unit price column Cu, the quantity column Cn, the item column Ci, and the date column Cd, but is not limited to this. The column classification unit P2 may classify the columns in the table data T into other classifications.
[0076] In the embodiment, an example having table data T1 and T2 has been described, but the number of table data T may be one, or three or more.
[0077] In addition, in the embodiment, an example has been described in which the table data acquisition unit P1 acquires table data T from the form image I by text extraction processing or the like, but when table data T is embedded in the form image I, the embedded table data T may be acquired directly from the form image I.
[0078] That is, the information processing system 1 has a column classification unit P2 that corresponds to the table area A of the document image I and classifies columns that satisfy column classification conditions for classifying the amount column Cm, in which amounts are stored, into amount columns Cm from table data T in which elements E having text format are arranged in rows and columns; a row acquisition unit P3 that acquires a target row Tu that is to be acquired from a body part B in the table data T based on the row acquisition conditions; and a document information generation unit P5 that generates document information having details D including the amount column Cm based on the elements E contained in the target row Tu.
[0079] The column classification condition includes a condition that the heading H of a column included in the table data T includes a predetermined amount character indicating that it is an amount column Cm.
[0080] The column classification condition includes a condition that the ratio of the number of elements E including numbers to the total number of elements E in the body part B of a column included in the table data T is equal to or greater than a predetermined monetary amount threshold.
[0081] The column classification condition is a condition that sets the evaluation value of a column in the heading part H of the column contained in the table data T, in which an element E contains a predetermined amount character indicating that it is an amount column Cm, to a first predetermined amount evaluation value, and sets the evaluation value of a column in the body part B of the column in which the ratio of the number of elements E containing numbers to the total number of elements E is equal to or greater than a predetermined amount threshold, to a second predetermined amount evaluation value that is smaller than the first predetermined amount evaluation value, and classifies the column with the largest evaluation value among the columns contained in the table data T as an amount column Cm.
[0082] The line acquisition condition is a condition for excluding lines that include an element E having a predetermined exclusion character from the line to be acquired.
[0083] When there are multiple pieces of table data T, the table data selection unit P4 accepts a selection input by the user of the table data T to be acquired.
[0084] The summing section P6 sums up the amounts included in the acquisition target lines Tu designated and input by the user, and generates a detail line Td for generating form information.
[0085] The form information generating unit P5 generates form information having detail lines Td in which amounts are associated with account items.
[0086] The information processing method includes a column classification unit P2 classifying columns that satisfy column classification conditions for classifying the amount column Cm, in which amounts are stored, from table data T, which corresponds to a table area A of a document image I and in which elements E having text format are arranged in rows and columns, into amount columns Cm; a row acquisition unit P3 acquires a target row Tu to be acquired from a body part B in the table data T based on the row acquisition conditions; and a document information generation unit P5 generates document information having details D including the amount column Cm based on the elements E contained in the target row Tu.
[0087] The information processing program causes a computer to execute the following code: a column classification unit P2 that classifies columns that satisfy column classification conditions for classifying an amount column Cm, in which amounts are stored, into an amount column Cm from table data T, which corresponds to a table region A of a form image I and in which elements E having text format are arranged in rows and columns; code for a row acquisition unit P3 that acquires a target row Tu, which is the target for acquisition, from a body portion B in the table data T based on the row acquisition conditions; and code for a form information generation unit P5 that generates form information having details D including the amount column Cm based on elements E contained in the target row Tu.
[0088] As described above, the embodiment of the present invention has been described, but the embodiment is not limited to this, and various changes, modifications, etc. are possible without departing from the gist of the present invention.
[0089] In addition, the steps of each procedure in the embodiments may be executed in a different order, may be executed simultaneously, or may be executed in a different order each time, as long as this is not contrary to the nature of the steps. Furthermore, all or part of the steps of each procedure in the embodiments may be realized by hardware or a program. [Explanation of symbols]
[0090] 1. Information Processing System 10. Terminal device 11. Control section 12...Storage section 13...Display section 14. Instruction input section 20 Server 21 Control section 22...Storage section B: Body part D...Details Cd...Date column Ci...Item sequence Cm...Amount column Cn...Quantity column Cu...Unit price column E element G1... Report processing screen G2 Report information display screen H Heading Gd...Detail line display area Gu... Display area of target lines I...Form Image A, A1, A2...Tablespace P1: Table data acquisition section P2... Column classification section P3...Row acquisition part P4: Table data selection section P5: Report information generation section P6...Total section T, T1, T2...table data Td...detail line Tu... row to be acquired
Claims
1. a column classification unit that classifies a column that satisfies a column classification condition for classifying an amount column in which amounts are stored, from table data in which elements having a text format are arranged in rows and columns, corresponding to a table region of the form image, into the amount column; a row acquisition unit that acquires rows to be acquired from a body portion of the table data based on row acquisition conditions; a form information generating unit that generates form information having details including the amount column based on the element included in the acquisition target row; an accumulating unit that sums up the amounts included in the acquisition target lines designated and input by a user, and generates a statement line for generating the form information; An information processing system having the above configuration.
2. The information processing system according to claim 1 , wherein the column classification condition includes a condition that a header of the column included in the table data contains a predetermined amount character indicating that the column is an amount column.
3. The information processing system according to claim 1 , wherein the column classification condition includes a condition that a ratio of the number of elements including numbers to the total number of elements in a body portion of the column included in the table data is equal to or greater than a predetermined monetary threshold.
4. The column sorting condition is: a first predetermined monetary evaluation value is set as an evaluation value of a column in which a predetermined monetary character indicating that the element is the monetary column is included in a heading of the column included in the table data; In the body portion of the column, the evaluation value of the column in which the ratio of the number of elements including numbers to the total number of elements is equal to or greater than a predetermined monetary threshold is set to a second predetermined monetary evaluation value that is smaller than the first predetermined monetary evaluation value; a condition for classifying the column having the maximum evaluation value among the columns included in the table data into the amount column, The information processing system according to claim 1 .
5. The information processing system according to claim 1 , wherein the line acquisition condition is a condition for excluding lines including the element having a predetermined exclusion character from the acquisition target.
6. A table data selection unit is provided, the table data selection unit accepts a selection input of the table data to be acquired by a user when there are a plurality of table data; The information processing system according to claim 1 .
7. The information processing system according to claim 1 , wherein the form information generating unit generates the form information having detail lines in which account items are associated with the amounts.
8. a column classification unit classifies, from table data in which elements having a text format are arranged in rows and columns, a column that satisfies a column classification condition for classifying an amount column in which an amount is stored, into the amount column; a row acquisition unit acquires rows to be acquired from a body portion of the table data based on row acquisition conditions; a form information generating unit generates form information having details including the amount column based on the element included in the acquisition target row; an accumulating unit accumulating the amounts included in the acquisition target lines designated and input by a user, and generating a statement line for generating the form information; Information processing methods.
9. a column classification unit code for classifying a column that satisfies a column classification condition for classifying an amount column in which amounts are stored, from table data in which elements having a text format are arranged in rows and columns, corresponding to a table region of the form image, into the amount column; code for a row acquisition unit that acquires rows to be acquired from a body portion of the table data based on row acquisition conditions; a code for a form information generating unit that generates form information having details including the amount column based on the element included in the target row; a code for an accumulating unit for accumulating the amounts included in the acquisition target lines designated and input by a user, and generating a statement line for generating the form information; An information processing program that causes a computer to execute the above.
Citation Information
Patent Citations
Information processor, image processing method and program
JP2010033177A
System, method and program for inputting account data
JP2015118488A
Report information generation device, method, and program
JP2022013524A
Information processing system, form recognition method, program, form recognition system
JP2023081132A
