Data processing device, data processing method, and program
The data processing device effectively processes multiple vouchers by identifying common character strings and excluding non-common data, ensuring accurate and organized output, addressing the issue of incorrect processing in existing systems.
Patent Information
- Application Number
- PCT/JP2023/012981
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-03
AI Technical Summary
Existing data processing systems fail to accurately process information from multiple vouchers read simultaneously, as they often include non-target documents, leading to incorrect processing of character strings.
A data processing device and method that acquires voucher image data from multiple sources, identifies common character strings, and creates processed data by excluding non-common strings, using area data to specify character strings within specific areas of vouchers, and applying rules for data creation based on issuer names, issuance times, and product names.
Enables accurate processing of information from multiple vouchers by isolating common character strings and associating relevant data, improving data integrity and usability by creating organized and relevant processed data.
Smart Images

Figure JP2023012981_03102024_PF_FP_ABST
Abstract
Description
Data processing device, data processing method and program
[0001] The present invention relates to a data processing device, a data processing method, and a program.
[0002] 2. Description of the Related Art Conventionally, there has been known a device that creates journal data based on image data obtained by scanning evidence such as receipts, invoices, or bills (see, for example, Patent Document 1).
[0003] JP 2021-071991 A JP 2016-186773 A
[0004] In order to create processed data based on evidence image data using the device described in Patent Document 1, the user had to scan the evidence sheets one by one. As described in Patent Document 2, the user can process multiple evidence sheets collectively by scanning them all at once using a flatbed scanner or a digital camera. In this case, even if the multiple evidence sheets scanned by the user include evidence sheets that are not to be processed, the character strings written on those evidence sheets are also processed.
[0005] Therefore, the present invention has been made in consideration of these points, and aims to enable appropriate processing of information indicated by character strings contained in evidence based on image data created by simultaneously reading multiple evidence.
[0006] A data processing device of a first aspect of the present invention includes a data acquisition unit that acquires document image data created by simultaneously reading multiple documents, a string identification unit that identifies a common string that is included in multiple documents based on the document image data, and a data creation unit that creates processed data by processing at least a portion of multiple strings other than the common string that are included in the multiple documents based on predetermined rules that correspond to the common string.
[0007] The data creation unit may create the processed data including data contained in multiple vouchers that contain the common character string, and not including data contained in vouchers that do not contain the common character string.
[0008] The data creation unit may create first processed data based on data contained in multiple supporting documents that include the first common character string, and second processed data based on data contained in multiple supporting documents that include the second common character string.
[0009] The common string may be an issuer name common to multiple vouchers, or an issuer name in the same industry common to multiple vouchers, and the data creation unit may create the processed data in which data other than the common string contained in the multiple vouchers that include the issuer name is associated with the issuer name.
[0010] The common string is a string indicating an issuance date common to multiple vouchers, and the data creation unit may create the processed data in which data other than the common string contained in multiple vouchers that include an issuance date corresponding to the common string is associated with the issuance date.
[0011] The common string may be a string indicating an issuance date common to multiple vouchers, and the data creation unit may create the processed data in which strings indicating the amounts included in each of the multiple vouchers that contain an issuance date corresponding to the common string are arranged in order of the issuance date.
[0012] Each of the multiple supporting documents may be a receipt listing the name of the purchased product and the amount of the purchased product, the common string may be a string indicating the name of the purchased product, and the data creation unit may create the processed data in which the name of the purchased product is associated with a total amount obtained by adding up the amount for each purchased product name.
[0013] The data creation unit may create the processed data in which an account item corresponding to the purchased product name is associated with the total amount.
[0014] The data creation unit may create data indicating a warning when a plurality of character strings included in the plurality of evidences do not satisfy a predetermined condition.
[0015] The data creation unit may create data indicating the warning when there is no predetermined correlation between the plurality of character strings included in the plurality of evidences.
[0016] The data processing device may further have a memory unit that stores area data indicating the relationship between the position of a specified character string in the voucher and an area of the voucher, and the character string identification unit may identify multiple character strings contained in the area of each of the multiple vouchers, identified by referring to the area data associated with the identified common character string, as multiple voucher-specific character strings described on each of the multiple vouchers, and the data creation unit may create the processed data further based on the multiple voucher-specific character strings identified by the character string identification unit.
[0017] The area data is data indicating the positions of at least two vertices or three edges of the document based on the position of the specified character string, and the character string identification unit may identify the multiple document-specific character strings within an area surrounded by the three edges of the document identified based on the area data.
[0018] The area data is data indicating the positions of the four vertices or four sides of the voucher based on the position of the first specified character string above the center of the voucher and the position of the second specified character string below the center of the voucher, and the character string identification unit may identify the multiple voucher-specific character strings within an area surrounded by the four sides of the voucher identified based on the area data.
[0019] A data processing method of a second aspect of the present invention includes the steps of: acquiring document image data created by simultaneously reading a plurality of documents; identifying a common string contained in the plurality of documents based on the document image data; and creating processed data by processing at least a portion of a plurality of character strings other than the common string contained in the plurality of documents based on predetermined rules corresponding to the common string.
[0020] A third aspect of the program of the present invention is a program that causes a computer to function as a data acquisition unit that acquires document image data created by simultaneously reading multiple documents, a string identification unit that identifies a common string that is contained in multiple documents based on the document image data, and a data creation unit that creates processed data by processing at least some of the strings other than the common string that are contained in the multiple documents based on predetermined rules that correspond to the common string.
[0021] According to the present invention, it is possible to appropriately process information indicated by character strings included in evidence documents based on image data created by simultaneously reading a plurality of evidence documents.
[0022] 1 is a diagram for explaining an overview of the data processing system S. FIG. 1 is a diagram illustrating the configuration of the data processing device 1. FIG. 2 is a diagram illustrating an example of area data. FIG. 3 is a diagram illustrating another example of area data. FIG. 4 is a diagram illustrating an example of voucher image data created by reading a plurality of vouchers. FIG. 5 is a diagram illustrating another example of journalization data created by the data creation unit 133. FIG. 6 is a diagram illustrating an example of processed data created by the data creation unit 133 in which character strings are arranged in the order in which the vouchers were created. FIG. 7 is a diagram illustrating an example of multiple processed data created by the data creation unit 133. A flowchart illustrating the flow of processing in the data processing device 1. A flowchart illustrating the flow of processing (S15) executed by the data creation unit 133.
[0023] [Overview of Data Processing Device System S] Fig. 1 is a diagram illustrating an overview of the data processing system S. The data processing system S is a system for processing data contained in multiple vouchers, such as receipts, invoices, delivery notes, or invoices, scanned at once. Each of the multiple vouchers is, for example, a receipt that lists the issuer's name, the date of issue, the name of the purchased product, and the price of the purchased product. The data processing system S includes a data processing device 1 and an image reading device 2. The data processing device 1 creates processed data classified based on, for example, character strings (e.g., issuer's name, date of issue) that are commonly contained in the multiple vouchers scanned by the image reading device 2.
[0024] The image reading device 2 is, for example, a flatbed scanner or a digital camera. The data processing device 1 may obtain the evidence image data directly from the image reading device 2, or may obtain the evidence image data from another device (for example, a computer). The following description will be given taking as an example a case where the evidence is a receipt issued at a store.
[0025] 2 is a diagram showing the configuration of the data processing device 1. The data processing device 1 is, for example, a computer, and is used by a company that processes supporting documents and creates processed data. The data processing device 1 may also be a cloud server.
[0026] The data processing device 1 includes a communication unit 11, a storage unit 12, and a control unit 13. The control unit 13 includes a data acquisition unit 131, a character string specification unit 132, and a data creation unit 133.
[0027] The communication unit 11 has a communication interface for receiving evidence image data from an external device (e.g., the image reading device 2). The communication unit 11 inputs the received evidence image data to the data acquisition unit 131. The communication unit 11 also transmits the processed data created by the data creation unit 133 to an external device (e.g., a display, a printer, or a computer used by an accounting staff member).
[0028] The storage unit 12 has storage media such as a ROM (Read Only Memory), a RAM (Random Access Memory), and an SSD (Solid State Drive). The storage unit 12 stores programs executed by the control unit 13. The storage unit 12 also temporarily stores evidence image data received by the communication unit 11. The storage unit 12 stores various data used by the control unit 13 to create processed data.
[0029] The storage unit 12 stores, for example, a character string dictionary that the character string identification unit 132 uses to identify multiple character strings included in the evidence. The character string dictionary is dictionary data containing words that the character string identification unit 132 should recognize as character strings. The character string dictionary may contain information indicating the type of word for each of multiple words. Word types are, for example, organization names (including store names), product names, addresses, or invoice-specific terms (e.g., "consumption tax" and "total"). In the character string dictionary, multiple types may be associated with one word.
[0030] The storage unit 12 may store rules corresponding to common character strings included in multiple vouchers in association with character strings that identify the issuer of the voucher, such as the name of the issuer, the logo of the issuer, or the name of the store, character strings that indicate the time of issuance of the voucher, such as the date, or character strings that indicate the name of the product. The common character string is, for example, the name of the issuer, the time of issuance of the voucher, or the name of the product that is common to multiple vouchers.
[0031] The rule corresponding to the common character string is, for example, a rule that the data creation unit 133 uses to create processed data that includes a character string other than the common character string written on the voucher for each issuer, each issuance time of the voucher, or each product that is common to multiple vouchers. The rule corresponding to the common character string may also be a rule that the data creation unit 133 uses to create processed data for each industry of the issuer of the voucher. The issuance time is expressed by either a year, a month, a day, or a day of the week. Whether to use a year, a month, a day, or a day of the week as the issuance time may be set by a user (e.g., an accountant) who creates the processed data using the data processing device 1.
[0032] The storage unit 12 may store area data indicating the relationship between the position of a predetermined character string in the voucher and the area of the voucher, in association with each of multiple vouchers issued by multiple different organizations. The area data is data indicating the positions of at least two vertices or three sides of the voucher, based on the position of a common character string. The area data may also be data indicating the positions of four vertices or four sides of the voucher, based on the position of a first predetermined character string above the center of the voucher and the position of a second predetermined character string below the center of the voucher. The predetermined character string is a character string indicating the issuer of the voucher, such as the issuer's name, a mark indicating the issuer, or a catchphrase unique to the issuer.
[0033] FIG. 3 is a diagram illustrating an example of area data. As shown in FIG. 3( a), the area data includes, for example, a distance D1 from the left end of a character string indicating the issuer's name (e.g., a store name) to the left edge of the voucher, and a distance D2 from the right end of the character string indicating the issuer's name to the right edge of the voucher. As shown in FIG. 3( b), the area data may include a distance D3 from the top of a first predetermined character string indicating the issuer's name to the top edge of the voucher, and a distance D4 from the bottom of a second predetermined character string different from the store name (e.g., "total") to the bottom edge of the voucher. If there is variation in distances D1 to D4 even among vouchers issued by a single organization, the area data may include a value indicating the range of distances D1 to D4.
[0034] 4A shows another example of area data. The area data shown in FIG. 4A includes a horizontal distance D1 and a vertical distance D3 from the top left of the character string indicating the issuer's name to the top left vertex of the voucher, and a horizontal distance D2 and a vertical distance D3 from the top right of the character string indicating the issuer's name to the top right vertex of the voucher. The line segment connecting the two vertices becomes the top edge of the voucher, and two line segments that pass through each of the two vertices and intersect perpendicularly to the line segment connecting the two vertices become the left and right edges of the voucher.
[0035] The area data shown in Figure 4(b) further includes a horizontal distance D5 and a vertical distance D4 from the bottom left of the second predetermined character string "total" to the bottom left vertex of the voucher, and a horizontal distance D6 and a vertical distance D4 from the bottom right of "total" to the bottom right vertex of the voucher. The quadrangle formed by the four vertices becomes the outline of the voucher.
[0036] The storage unit 12 may store journal data used by the data creation unit 133 to create journal data. In the journal data, account items such as stationery expenses, food expenses, and communication expenses are associated with product names or service names.
[0037] The control unit 13 includes, for example, a CPU (Central Processing Unit). The control unit 13 executes the programs stored in the storage unit 12 to function as a data acquisition unit 131, a character string specification unit 132, and a data creation unit 133.
[0038] The data acquisition unit 131 acquires various data via the communication unit 11. For example, the data acquisition unit 131 acquires evidence image data created by simultaneously reading multiple evidence documents from the image reading device 2. The data acquisition unit 131 inputs the acquired evidence image data to the character string identification unit 132.
[0039] The data acquisition unit 131 may acquire instruction data indicating a user's instruction via the communication unit 11. The instruction data is, for example, data specifying the type of common character string. The instruction data may also be data indicating the content of the process to be executed by the data creation unit 133. The instruction data may also be data specifying a rule corresponding to the common character string. The data acquisition unit 131 notifies the character string specification unit 132 or the data creation unit 133 of the content of the instruction data. The data acquisition unit 131 may store the content of the instruction data in the memory unit 12.
[0040] The character string identification unit 132 executes an OCR (Optical Character Recognition) process to identify a plurality of characters included in the evidence image based on the evidence image data acquired by the data acquisition unit 131. The character string identification unit 132 refers to a character string dictionary stored in the storage unit 12 to identify a plurality of character strings based on the identified plurality of characters.
[0041] The character string identification unit 132 identifies a common character string that is included in multiple evidences from the identified multiple character strings. The character string identification unit 132 identifies multiple character strings that exist in the evidence image data as candidates for common character strings. From the candidates for common character strings, the character string identification unit 132 identifies, for example, a character string that indicates an issuer that is common to multiple evidences as a common character string. The character string identification unit 132 identifies a character string that matches a word in the character string dictionary whose word type is company name as a common character string that indicates the issuer of multiple evidences. The common character string may be a character string that indicates an issuance date that is common to multiple evidences.
[0042] The character string identification unit 132 may identify a character string as a common character string on the condition that the distance between each of the identified multiple common character string candidates is equal to or greater than the minimum vertical length and the minimum horizontal length of the document indicated by the size stored in the storage unit 12 as the minimum value of the size of one document. In this way, the character string identification unit 132 does not identify a character string that is included multiple times in one document, such as "circle," as a common character string, but can identify a character string that is included only once in each of multiple documents.
[0043] The character string identification unit 132 may identify the areas of each of the plurality of evidences corresponding to each of the plurality of identified common character strings by referring to area data associated with the identified common character string. The character string identification unit 132 identifies the plurality of character strings included in the areas of each of the identified plurality of evidences as the plurality of evidence-specific character strings described in each of the plurality of evidences.
[0044] The character string identification unit 132 identifies, for example, a plurality of character strings specific to a document within an area surrounded by three sides of the document identified based on the area data shown in Fig. 3. The character string identification unit 132 may also identify a plurality of character strings specific to a document within an area surrounded by four sides of the document identified based on the area data.
[0045] 5 and 6 are diagrams showing examples of evidence image data created by scanning multiple evidences. FIG. 5 shows images of four receipts issued by "Shop A." In this case, the character string identification unit 132 identifies the common character string "Shop A" and the common character string "Total," and identifies regions R1, R2, R3, and R4 as regions of each evidence by referring to the region data shown in FIG. 3 or 4. The character string identification unit 132 identifies the evidence-specific character strings included in each region. By identifying the regions in this manner, the character string identification unit 132 can correctly identify the region of each evidence even if the outline of each evidence is unclear in the evidence image data. As a result, the character string identification unit 132 can correctly identify the evidence-specific character string corresponding to each evidence.
[0046] In FIG. 6, the issuer of the receipts included in areas R1 and R2 is "Shop A," and the issuer of the receipts included in areas R3 and R4 is "Shop B." In this case, the character string identification unit 132 identifies areas R1 and R2 as areas corresponding to the common character string "Shop A," and areas R3 and R4 as areas corresponding to "Shop B." The character string identification unit 132 may identify areas R1 to R4 as areas containing the common character string "March 2023" or "Total." The character string identification unit 132 associates the voucher-specific character string identified for each identified area with the common character string and notifies the data creation unit 133.
[0047] The data creation unit 133 creates processed data by processing at least some of the multiple character strings other than the common character string contained in the multiple supporting documents (i.e., the multiple supporting document-specific character strings identified by the character string identification unit 132) based on predetermined rules corresponding to the common character strings.
[0048] As an example, if the common character string is an issuer name that is common to multiple vouchers, or an issuer name in the same industry that is common to multiple vouchers, the data creation unit 133 creates processed data in which data other than the common character string that is included in the multiple vouchers that include the issuer name is associated with the issuer name.The data creation unit 133 creates processed data in a tabular format in which, for example, multiple character strings that are defined as character strings to be extracted in a rule corresponding to "Shop A" identified as the common character string are arranged in a format defined in the rule.
[0049] For example, the data creation unit 133 creates processed data that includes data contained in multiple vouchers that contain a common character string indicating an issuer common to the multiple vouchers, but does not include data contained in vouchers that do not contain the common character string. In the example shown in Figure 5, the data creation unit 133 creates processed data that includes character strings contained in each of the four receipts issued by "Shop A." In the example shown in Figure 6, the data creation unit 133 creates processed data that includes character strings contained in each of the three receipts issued by "Shop A," but does not include character strings contained in the receipt issued by "Shop B."
[0050] If the business types of "Shop A" and "Shop B" are "convenience store," the data creation unit 133 may create processed data associated with "convenience store" that includes character strings contained in each of the three receipts issued by "Shop A" and character strings contained in the receipt issued by "Shop B." If processed data is created for each business type, the data creation unit 133 may create the processed data by processing based on rules corresponding to the business type.
[0051] Here, let us assume that the rule corresponding to "Shop A" is "Create journal data for products with a tax rate of 10%." In this case, the data creation unit 133 extracts character strings indicating products with a tax rate of 10% from the character strings contained in the multiple regions R1 to R4, and creates journal data based on the amounts corresponding to the extracted character strings.
[0052] 7A and 7B are diagrams showing examples of journal data created by the data creation unit 133. Fig. 7A shows journal data created by the data creation unit 133 based on the documented image data shown in Fig. 5, and Fig. 7B shows journal data created based on the documented image data shown in Fig. 6.
[0053] In the case of the evidence image data shown in Figure 5, the data creation unit 133 extracts "ballpoint pen 120 yen," "sticky notes 300 yen" from region R1, "copy paper 500 yen" from region R2, and "printer ink 1250 yen" from region R4 as character strings indicating products corresponding to a tax rate of 10%. The data creation unit 133 references the journalization data stored in the memory unit 12 and classifies the total amount of "ballpoint pen" and "sticky notes" of 420 yen under the account item "stationery expenses," and classifies the total amount of "copy paper" and "printer ink" of 1750 yen under the account item "printing expenses," thereby creating the journalization data shown in Figure 7(a).
[0054] In the case of the evidence image data shown in Fig. 6, the data creation unit 133 extracts "ballpoint pen 120 yen," "sticky notes 300 yen," and "copy paper 500 yen" from region R1 as character strings indicating products corresponding to a tax rate of 10%. The data creation unit 133 references the journalization data stored in the memory unit 12 and classifies the total amount of "ballpoint pen" and "sticky notes" of 420 yen under the account item "stationery expenses," and classifies the "copy paper" of 500 yen under the account item "printing expenses," thereby creating the journalization data shown in Fig. 7(b).
[0055] The character string identification unit 132 may identify a character string indicating an issuance date common to multiple vouchers as a common character string, and the data creation unit 133 may create processed data in which data other than the common character string contained in multiple vouchers that include an issuance date corresponding to the common character string is associated with the issuance date.
[0056] Fig. 8 is a diagram showing another example of journal data created by the data creation unit 133 based on the voucher image data shown in Fig. 6. The journal data shown in Fig. 8 is created when the issuance date (year and month) is specified as the common character string, and the character string identification unit 132 identifies March 2023 as the common character string. Here, it is assumed that the rule when the common character string is the issuance date is "to create journal data by classifying products included in vouchers issued at the time corresponding to the common character string into account items."
[0057] In this case, the data creation unit 133 creates the journal data shown in Fig. 8 by classifying the products listed on all receipts corresponding to regions R1 to R4 of the voucher image data shown in Fig. 6 into the corresponding account items. If part of the voucher image data includes vouchers issued in a month other than March 2023, the data creation unit 133 creates journal data that is not based on the voucher-specific character string corresponding to the voucher.
[0058] The data creation unit 133 may create processed data in which character strings indicating the amounts included in each of multiple vouchers whose issuance dates correspond to a common character string are arranged in the order of the issuance dates of the vouchers. FIG. 9 is a diagram showing an example of processed data created by the data creation unit 133 based on the voucher image data shown in FIG. 5 or 6, in which character strings are arranged in the order of the vouchers' creation. In the processed data shown in FIG. 9, the issuance date (year, month, and day) of the voucher, the product name, the amount, and the consumption tax amount are associated with each other. By creating such processed data, the data creation unit 133 can easily understand the contents of the multiple vouchers included in the voucher image data. This type of processed data, in which character strings are arranged in the order of the issuance dates, is suitable for settling expenses during business trips.
[0059] If the common character string is the issue date, the data creation unit 133 may create processed data by extracting pre-registered products and amounts. The pre-registered products are, for example, products that employees are authorized to invoice the company for. By creating such processed data, the data creation unit 133 can easily identify the expenses that should be paid to employees among the expenses listed on multiple receipts when an employee advances money to purchase products.
[0060] If the common character string is a character string indicating the name of a purchased product, the data creation unit 133 may create processed data in which the names of the purchased products are associated with a total amount obtained by adding up the amounts for each purchased product. For example, the data creation unit 133 creates processed data in which the account items corresponding to the names of the purchased products are associated with the total amount.
[0061] In the example of the evidence image data shown in FIG. 5 or 6 , the character string identification unit 132 identifies "tea" as a common character string, and the data creation unit 133 adds up the 500 yen for "tea" included in region R1 and the 200 yen for "tea" included in region R3 to create processed data in which "tea" is associated with "700 yen." The data creation unit 133 may also create processed data that further includes other product names and amounts. By creating such processed data by the data creation unit 133, the user can easily grasp the total amount of products when multiple evidence documents contain products with the same name.
[0062] The data creation unit 133 may create first processed data based on data included in the plurality of vouchers containing a first common character string, and second processed data based on data included in the plurality of vouchers containing a second common character string. The common character string may be the name of the issuer of the vouchers, the issuance date, or the product name.
[0063] Figure 10 shows examples of multiple processed data created by the data creation unit 133 based on the evidence image data shown in Figure 6. Figure 10(a) shows an example of first processed data based on receipts corresponding to regions R1 and R2 containing the first common character string "A Shop." Figure 10(b) shows an example of second processed data based on receipts corresponding to regions R3 and R4 containing the second common character string "B Shop."
[0064] If the multiple vouchers include a mixture of vouchers issued in March 2023 and vouchers issued in April 2023, the data creation unit 133 may create first processed data based on the multiple receipts that include the first common character string "March 2023" and second processed data based on the multiple receipts that include the second common character string "April 2023." In this way, the data creation unit 133 creates processed data corresponding to each of the multiple common character strings, thereby creating multiple processed data in which the character strings included in the multiple vouchers are classified according to the user's needs, making it easier for the user to utilize the data included in the vouchers.
[0065] The data creation unit 133 may create data indicating a warning when multiple character strings included in multiple evidences do not satisfy a predetermined condition. The predetermined condition is a condition specified by a user or a condition stored in advance in the storage unit 12. For example, the data creation unit 133 creates data indicating a warning when there is no predetermined correlation between multiple character strings included in multiple evidences.
[0066] As an example, the data creation unit 133 creates data indicating a warning when a common character string (e.g., "Shop A") contained in some of the multiple vouchers (vouchers in areas R1 and R2) is not contained in other vouchers (vouchers in areas R3 and R4), as in the voucher image data shown in Fig. 6. The data creation unit 133 may output a warning message indicating that a predetermined condition has not been met, or may output processed data containing a warning, via the communication unit 11.
[0067] The data creation unit 133 may create warning data when the account items to which some products included in some vouchers belong are different from the account items to which products included in other vouchers belong. For example, the data creation unit 133 creates warning data when the voucher image data includes multiple stationery receipts and only one receipt for taxi fare. The data creation unit 133 may create warning data when the distance between the locations of issuers (e.g., stores) of multiple vouchers is equal to or greater than a threshold, based on the addresses listed on the vouchers or the addresses corresponding to the issuer names stored in the memory unit 12.
[0068] The data creation unit 133 may output warning data including information for identifying evidence that does not satisfy predetermined conditions. In the case of the evidence image data shown in Fig. 6, the data creation unit 133 may output, as warning data, image data in which the areas R3 and R4 are displayed in a different display mode from the other areas, for example.
[0069] [Processing Flow in Data Processing Device 1] Fig. 11 is a flowchart showing the processing flow in the data processing device 1. The flowchart shown in Fig. 11 starts from the point when a user who has received multiple vouchers uses the image reading device 2 to read the multiple vouchers.
[0070] The data acquisition unit 131 acquires the evidence image data created by the image reading device 2 (S11). The character string identification unit 132 identifies a common character string included in the evidence image data (S12). The character string identification unit 132 identifies multiple evidence areas corresponding to the identified common character string by referring to the area data (S13). Next, the character string identification unit 132 identifies multiple character strings included in each of the identified multiple evidence areas as evidence-specific character strings (S14).
[0071] Next, the data creation unit 133 executes processing based on the identified multiple character strings (S15). The processing executed by the data creation unit 133 will be described in detail later. The data creation unit 133 creates processed data based on the results of the processing (S16), and outputs the created processed data via the communication unit 11 (S17).
[0072] 12 is a flowchart showing the flow of the process (S15) executed by the data creation unit 133. The data creation unit 133 determines whether or not to process multiple character strings by issuer (S151) based on the instruction data acquired by the data acquisition unit 131. If the data creation unit 133 determines that multiple character strings should be processed by issuer (YES in S151), it executes journalization processing based on the character strings indicating the product and the character strings indicating the amount included in vouchers issued by the same issuer (S152).
[0073] If the data creation unit 133 determines that multiple character strings should be processed by issuance date rather than by issuer (NO in S151, YES in S153), it executes journalization processing based on the character strings indicating the products and the character strings indicating the amounts included in multiple vouchers with the same issuance date (S154).If the data creation unit 133 determines that multiple character strings should not be processed by issuance date (NO in S153), it executes journalization processing based on all character strings indicating the products and the character strings indicating the amounts included in the voucher image data (S155).
[0074] [Effects of data processing device 1] As described above, the data processing device 1 has a string identification unit 132 that identifies a common string that is included in multiple vouchers based on the voucher image data created by simultaneously reading the multiple vouchers, and a data creation unit 133 that creates processed data by processing at least a portion of multiple strings other than the common string that are included in the multiple vouchers based on predetermined rules that correspond to the common string.
[0075] The present invention has been described above using embodiments, but the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. For example, all or part of the device can be configured by functionally or physically distributing or integrating in any unit. Furthermore, new embodiments resulting from any combination of multiple embodiments are also included in the embodiments of the present invention. The effects of the new embodiments resulting from the combination also have the effects of the original embodiments.
[0076] DESCRIPTION OF SYMBOLS 1 Data processing device 2 Image reading device 11 Communication unit 12 Storage unit 13 Control unit 131 Data acquisition unit 132 Character string identification unit 133 Data creation unit
Claims
1. A data processing device having: a data acquisition unit that acquires evidence image data created by simultaneously reading a plurality of evidences; a string identification unit that identifies a common string included in the plurality of evidences based on the evidence image data; and a data creation unit that creates processed data by processing at least a portion of a plurality of strings other than the common string included in the plurality of evidences based on predetermined rules corresponding to the common string.
2. The data processing device according to claim 1, wherein the data creation unit creates the processed data including data contained in a plurality of the evidences that include the common character string, and not including data contained in the evidences that do not include the common character string.
3. The data processing device according to claim 1, wherein the data creation unit creates the first processed data based on data contained in the multiple evidences including the first common character string, and the second processed data based on data contained in the multiple evidences including the second common character string.
4. The data processing device of claim 1, wherein the common character string is an issuer name common to multiple vouchers, or an issuer name of the same industry common to multiple vouchers, and the data creation unit creates the processed data in which data other than the common character string contained in the multiple vouchers containing the issuer name is associated with the issuer name.
5. A data processing device as described in claim 1, wherein the common string is a string indicating an issue date common to multiple evidences, and the data creation unit creates the processed data in which data other than the common string contained in multiple evidences that have an issue date corresponding to the common string is associated with the issue date.
6. The data processing device according to claim 1, wherein the common character string is a character string indicating an issue date common to multiple vouchers, and the data creation unit creates the processed data in which character strings indicating the amount contained in each of the multiple vouchers having an issue date corresponding to the common character string are arranged in order of the issue date.
7. A data processing device as described in claim 1, wherein each of the multiple vouchers is a receipt indicating the name of a purchased product and the amount of the purchased product, the common string is a string indicating the name of the purchased product, and the data creation unit creates the processed data in which the name of the purchased product is associated with a total amount obtained by adding up the amounts for each of the purchased product names.
8. The data processing device according to claim 7, wherein said data creation section creates said processed data in which an account item corresponding to said purchased product name is associated with said total amount.
9. The data processing device according to claim 1, wherein said data creation unit creates data indicating a warning when a plurality of character strings included in said plurality of evidences do not satisfy a predetermined condition.
10. The data processing device according to claim 9, wherein the data creation unit creates data indicating the warning when there is no predetermined correlation between the multiple character strings contained in the multiple evidences.
11. A data processing device as claimed in any one of claims 1 to 10, further comprising a memory unit that stores area data indicating a relationship between a position of a specified character string in the voucher and an area of the voucher, wherein the character string identification unit identifies a plurality of character strings contained within the area of each of the plurality of vouchers identified by referring to the area data associated with the identified common character string, as a plurality of voucher-specific character strings described on each of the plurality of vouchers, and the data creation unit creates the processed data further based on the plurality of voucher-specific character strings identified by the character string identification unit.
12. The data processing device according to claim 11, wherein the area data is data indicating the positions of at least two vertices or three edges of the evidence based on the position of the specified character string, and the character string identification unit identifies the multiple evidence-specific character strings within an area surrounded by three edges of the evidence identified based on the area data.
13. The data processing device of claim 11, wherein the area data is data indicating the positions of the four vertices or four sides of the voucher based on the position of a first specified character string that is above the center of the voucher and the position of a second specified character string that is below the center of the voucher, and the character string identification unit identifies the multiple voucher-specific character strings within an area surrounded by the four sides of the voucher identified based on the area data.
14. A data processing method executed by a computer, comprising the steps of: acquiring evidence image data created by simultaneously reading a plurality of evidences; identifying a common string contained in the plurality of evidences based on the evidence image data; and creating processed data by processing at least a portion of a plurality of character strings other than the common string contained in the plurality of evidences based on a predetermined rule corresponding to the common string.
15. A program for causing a computer to function as: a data acquisition unit that acquires evidence image data created by simultaneously reading multiple evidences; a string identification unit that identifies a common string contained in multiple evidences based on the evidence image data; and a data creation unit that creates processed data by processing at least a portion of multiple strings other than the common string contained in the multiple evidences based on predetermined rules corresponding to the common strings.
Citation Information
Patent Citations
Information processing system
JP2004126998A
Electronic accounting system equipped with voucher tracing function
JP2006268227A
Duty-free sales document preparation system, duty-free sales document preparation apparatus, duty-free sales document preparation program, and duty-free sales document preparation method
JP2017087572A
Image processing device, image processing method and program
JP2020184207A
