Electronic apparatus

The electronic device addresses the inconvenience of manual data editing by using a trained model to extract and arrange item contents, generating structured data compatible with programming languages for easy data exchange.

JP2024147344AInactive Publication Date: 2024-10-16KYOCERA DOCUMENT SOLUTIONS INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023060295
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2024-10-16
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing document conversion technologies, such as those described in Patent Document 1, require users to manually edit electronic data into suitable data structures for later use, making the generated data inconvenient.

Method used

An electronic device with a data acquisition unit, character recognition unit, and trained model that learns the relationship between item content arrangement and item names, extracts and arranges item contents for each item name, generating structured data in a format compatible with programming languages.

Benefits of technology

The device creates structured electronic data that is convenient for later use, allowing easy data exchange between programming languages and applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024147344000001_ABST
    Figure 2024147344000001_ABST
Patent Text Reader

Abstract

To allow provision of a processing target document in a data structure and a data format that is convenient during use afterward.SOLUTION: An image forming apparatus 1 is to convert a processing target document, in which item content indicating the details of items is written, into electronic data, and comprises: a document reading unit 5 as a data acquisition unit that acquires image data of the processing target document; a character recognition unit 102 that recognizes characters written in the processing target document on the basis of the image data acquired by the data acquisition unit; and a processing unit 103 that extracts the item content written in the processing target document, by using a learned model having learned the relationship between an arrangement area of the item content on a document surface and the names of items in the item content, on the basis of character information obtained through the recognition made by the character recognition unit 102, and generates electronic data (structured data) in which the extracted item content and the names of items in the item content are associated with each other.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an electronic device that converts a document into electronic data. [Background technology]

[0002] In the accounting and legal affairs of companies, documents such as forms (e.g., invoices), supporting documents (e.g., contracts), financial statements, and employee forms are managed. Nowadays, many of these are managed on paper or as image data. The following Patent Document 1 describes a technology for scanning and analyzing documents and converting them into electronic data. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] US Patent Application Publication No. 2007 / 0168382 Summary of the Invention [Problem to be solved by the invention]

[0004] The technology disclosed in the above-mentioned Patent Document 1 only converts documents into electronic data, so in order for a user to use the electronic data for a desired purpose, the user must edit the electronic data into a data structure suited to the purpose or convert it into a data format suited to the purpose. As a result, the generated electronic data is not very convenient when considering future use.

[0005] The present invention has been made in consideration of the above circumstances, and has an object to provide a document to be processed in a data structure and data format that are highly convenient for later use. [Means for solving the problem]

[0006] An electronic device according to one aspect of the present invention comprises a data acquisition unit that acquires image data indicating a document to be processed in which item contents indicating the contents of each item are written; a character recognition unit that recognizes characters written in the document to be processed based on the image data acquired by the data acquisition unit; and a processing unit that uses a trained model that has learned the relationship between the placement area of ​​the item contents in the document to be processed and the item names of the item contents to extract item names written in the document to be processed and the item contents of the items indicated by the item names based on character information obtained by recognition by the character recognition unit, associates the extracted item contents with the item names of the item contents, and generates electronic data in a data format that enables data transfer between each program language, in which the associated item contents are arranged for each item name. Effect of the Invention

[0007] According to the present invention, electronic data showing the contents of a document to be processed is generated in a data format that allows data transfer between various programming languages, by associating the contents of items written in the document to the names of the items (item names) and arranging the associated contents of items for each item name (i.e., structured data), and the document to be processed can be provided in a data structure and data format that are convenient for later use. [Brief description of the drawings]

[0008] [Figure 1] 1 is a perspective view showing an external appearance of an image forming apparatus as an electronic device according to an embodiment of the present invention. [Diagram 2] 1 is a functional block diagram illustrating a schematic internal configuration of an image forming apparatus according to a first embodiment. [Diagram 3] 5A and 5B are diagrams showing an example of a document image represented by image data obtained by reading with a document reading section. [Figure 4] FIG. 2 is a diagram showing an example of a document image obtained by performing image processing; [Diagram 5]FIG. 5 is a diagram showing character strings extracted from the document shown in FIG. 4. [Figure 6] 5 is a diagram showing the relationship between item contents and item names written in the document shown in FIG. 4. [Figure 7] The structured data of the document shown in Figure 4 is shown in JSON format. [Figure 8] 5 is a flowchart illustrating an example of a process performed by a control unit of the image forming apparatus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] An electronic device according to an embodiment of the present invention will be described below with reference to the drawings. Fig. 1 is a perspective view showing the appearance of an image forming device as an electronic device according to an embodiment of the present invention. Fig. 2 is a functional block diagram showing the main internal configuration of the image forming device according to the first embodiment.

[0010] The image forming device 1 is a multifunction device having multiple functions such as a copy function, a printer function, a scanner function, and a facsimile function, and is configured such that a device main body 11 includes a control unit 10, a document feed section 6, a document reading section 5, an image forming section 12, a fixing section 13, a paper feed section 14, an operation section 47, a network interface section 91, and a storage section 8. The document reading section 5 is an example of a data acquisition section in the claims.

[0011] The document feeder 6 is configured to be openable and closable by a hinge or the like (not shown) on the top surface of the document reading unit 5, and functions as a document pressing cover when reading a document placed on a platen glass (not shown). The document feeder 6 is an automatic document feeder called an ADF (Auto Document Feeder), and includes a document placement tray 61. The document feeder 6 supplies documents placed on the document placement tray 61 to the document reading unit 5 one by one.

[0012] A description will be given of a case where a document reading operation is performed by the image forming apparatus 1. The document reading unit 5 optically reads an image of a document supplied to the document reading unit 5 by the document feeding unit 6 or a document placed on the platen glass, and generates image data. The image data generated by the document reading unit 5 is stored in an image memory or the like (not shown).

[0013] A description will be given of an image forming operation performed by the image forming apparatus 1. Based on image data generated by a document reading operation or image data received from a computer serving as an external device (e.g., a personal computer) connected via a network, the image forming unit 12 forms a toner image on a recording paper serving as a recording medium fed from a paper feed unit 14.

[0014] The fixing unit 13 is a fixing device that applies heat and pressure to the recording paper on which the toner image has been formed by the image forming unit 12, thereby fixing the toner image to the recording paper, and the recording paper that has been subjected to the fixing process is discharged to a discharge tray 151. The paper supply unit 14 includes a plurality of paper supply cassettes 141.

[0015] The operation unit 47 has operation keys consisting of hard keys for receiving various instructions, and receives instructions such as an image forming operation execution instruction for various operations and processes that can be executed by the image forming apparatus 1 in response to an operation of the operation keys by an operator. The operation unit 47 has a display unit 473 that displays operation guides and the like for the operator. The operation unit 47 also receives input of instructions from the user via a touch panel of the display unit 473, based on the user's operation (touch operation) on the operation screen displayed on the display unit 473 or the user's operation on the physical keys.

[0016] The display unit 473 is composed of an LCD (Liquid Crystal Display) or the like. The display unit 473 is equipped with a touch panel. When the operator touches a button or key displayed on the screen, the touch panel receives an instruction associated with the touched position.

[0017] The network interface unit 91 is a communication interface for transmitting and receiving various data to and from external devices within a local area or on the Internet.

[0018] The storage unit 8 is a large-capacity storage device such as a hard disk drive (HDD) or a solid state drive (SSD), and stores various control programs and the like.

[0019] The control unit 10 includes a processor, a RAM (Random Access Memory), a ROM (Read Only Memory), and a dedicated hardware circuit. The processor is, for example, a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), or an MPU (Micro Processing Unit). The control unit 10 includes a control unit 100, an image adjustment unit 101, a character recognition unit 102, a processing unit 103, and a notification unit 104.

[0020] The control unit 10 functions as a control unit 100, an image adjustment unit 101, a character recognition unit 102, a processing unit 103, and a notification unit 104 by the operation of the processor in accordance with a control program stored in the storage unit 8. However, the control unit 100 and the like can also be configured by hardware circuits, without relying on the operation of the control unit 10 in accordance with a control program. The same applies to each embodiment below unless otherwise stated.

[0021] The control unit 100 is responsible for controlling the overall operation of the image forming apparatus 1. The control unit 100 is connected to the document feeding unit 6, the document reading unit 5, the image forming unit 12, the fixing unit 13, the paper feeding unit 14, the operation unit 47, the network interface unit 91, and the storage unit 8, and performs drive control of these units. For example, the control unit 100 executes various processes necessary for image formation by the image forming apparatus 1.

[0022] The image adjustment unit 101 performs image processing on image data obtained by reading a document (an example of a document to be processed) by the document reading unit 5, or image data (an example of a document to be processed, such as jpeg or PDF) acquired by the network interface unit 91, to adjust image quality, etc. Figures 3(A) and (B) are diagrams showing examples of document images represented by these image data. The document image GA shown in Figure 3(A) is an example of a dark, tilted document, and the document image GB shown in Figure 3(B) is an example of a light image density.

[0023] The image adjustment unit 101 performs, for example, histogram equalization processing on image data representing the document images GA and GB to adjust the brightness of the document images GA and GB. The image adjustment unit 101 also calculates the amount of inclination of the document image GA using a known technique, and corrects the inclination of the document image GA by image processing based on the calculated amount of inclination. Note that, although it is preferable that the image adjustment unit 101 performs this processing, a form in which this processing is not performed is also an embodiment of the present invention.

[0024] Fig. 4 is a diagram showing an example of a document image that has been subjected to the above image processing. The document image G1 shown in Fig. 4 is the above image data, and shows a document whose subject is "INVOICE".

[0025] The character recognition unit 102 uses an existing OCR (Optical Character Recognition) technology to perform text recognition processing for recognizing characters written in the image data obtained by reading the document reading unit 5 or image data acquired by the network interface unit 91 as text data, and extracts the recognized text data as a character string. Fig. 5 is a diagram showing the character string extracted from the document image G1 shown in Fig. 4.

[0026] The processing unit 103 uses a trained model M that has learned the relationship between item names as the names of each item and the placement area on the document surface of the item contents indicating the contents of each item (for example, the area between two items is taken as the placement area), and processes character information consisting of text data obtained by recognition by the character recognition unit 102, extracts item names and corresponding item contents written in the document to be processed (for example, document D1), and generates electronic data in which the associated item contents are placed for each item name (i.e., data structured by sorting the corresponding item contents by item).

[0027] To create the trained model M, machine learning using artificial intelligence (AI) is used. Machine learning includes deep learning. For example, deep learning processing is executed on a personal computer, and the trained model M is created based on the determined characteristics of the document. The trained model M created on the personal computer is stored in the storage unit 8 of the image forming apparatus 1.

[0028] The processing unit 103 extracts, for example, "AAA COMPANY," "1234 Your Street...," "1-888-123-4567," and the like as item contents written in the document D1 as shown in Fig. 6. The trained model M stores, for example, "document name," "supplier_name (billing source)," "supplier_address (billing source address)," "supplier_phone (billing source telephone number)," and the like as items and their names.

[0029] The trained model M stores strings such as "INVOICE," "DEBIT," and "bill" as strings that are defined as "document names," and extracts strings that have a similarity higher than a predetermined value (e.g., 90%) compared with these strings as "document names."

[0030] In addition, the trained model M stores, as standard phrases, strings that meet the conditions for a "supplier_name (billing source)", such as "...COMPANY...", "...LLC...", "...LTD", and "... Co., Ltd...", and extracts, as strings that meet the conditions for the item name "supplier_name (billing source)", strings that are consecutive and contain groups of characters that are highly identical to these standard phrases, and have (i) a space, (ii) a group of characters indicating other items or item contents, or (iii) a punctuation mark, comma, or period in adjacent positions, and are sandwiched between any of (i) to (iii).

[0031] In addition, the trained model M stores, as standard phrases, strings that satisfy the conditions for "supplier_address (billing address)", such as "...Osaka City (city name)...", "...XXX chome, no. XX...", "...nnn" (n is a number), "...street...", "...avenue...", and "zip code nnn" (n is a number), and extracts, as strings that satisfy the conditions for the item name "supplier_address (billing address)", strings that contain consecutive characters that are highly identical to these standard phrases and have adjacent positions containing (i) a space, (ii) a character group indicating another item or item content, or (iii) a punctuation mark, comma, or period, and are sandwiched between any of (i) to (iii).

[0032] In addition, the trained model M stores, as standard phrases, for example, "06-nnnn-nnnn" and "+81nnnnnn" (n is a number) as strings that satisfy the conditions for "supplier_phone (billing source telephone number)", and extracts, as strings that satisfy the conditions for the item name "supplier_phone (billing source telephone number)", strings that are consecutive and contain groups of characters that are highly identical to these standard phrases, and have (i) spaces, (ii) groups of characters indicating other items or item contents, or (iii) punctuation marks, commas, or periods in adjacent positions, and are sandwiched between any of (i) to (iii).

[0033] The trained model M stores extraction methods defined for each item, such as those shown in parentheses in Figure 6, in the same manner as described above.

[0034] Furthermore, the processing unit 103 converts the generated electronic data into a predetermined data format that can be transferred between a plurality of program languages. The predetermined data format is, for example, JSON or CSV. Fig. 7 shows an example of electronic data generated by the processing unit 103, that is, electronic data in which text data recognized from the document image G1 is structured, in JSON format. General-purpose data formats such as JSON or CSV can be used in a variety of predetermined applications that can accept data in these data formats.

[0035] The notification unit 104 judges whether the processing unit 103 has extracted item contents corresponding to all required items from the document to be processed based on required item information indicating predetermined required items, and performs processing to notify the user of the fact that the item contents for all required items have not been extracted. For example, when the notification unit 104 judges that the item contents for all required items such as "billing source name" and "billing source address" have not been extracted by the processing unit 103, it causes the display unit 473 to display a message indicating that the item contents for the required items have not been extracted. The notification unit 104 stores the above-mentioned required item information in advance.

[0036] Next, an example of a process for converting a target document into electronic data in the image forming apparatus 1 will be described with reference to the flowchart shown in Fig. 8. This process is performed, for example, when the operation unit 47 receives an instruction from the user to convert a paper document (target document) placed on the document placement tray 61 or the platen glass into electronic data.

[0037] When the operation unit 47 receives the electronic data conversion instruction from the user, the control unit 100 causes the document reading unit 5 to read the document placed on the document placement tray 61 or the platen glass as the document to be processed (S1) and obtains image data of the document as a document image G1. Then, the image adjustment unit 101 performs image processing on the document image G1 obtained by reading by the document reading unit 5, and adjusts the image quality, etc. (S2).

[0038] Next, the character recognition unit 102 performs the above-mentioned text recognition process on the document image G1 obtained by reading by the document reading unit 5 to recognize characters written in the document image G1 (S3). Then, the processing unit 103 uses the trained model M to extract the item names and the corresponding item contents written in the document image G1 based on character information consisting of text data obtained by the above-mentioned text recognition process by the character recognition unit 102 (S4).

[0039] The notification unit 104 judges whether the processing unit 103 has extracted item contents associated with all required items from the document image G1 based on the required item information indicating the required items (S5). When the notification unit 104 judges that item contents for all required items have been extracted (YES in S5), the processing unit 103 associates the extracted item names with the corresponding item contents, arranges the associated item contents for each item name, generates electronic data converted into a JSON or CSV data format (S6), and stores the generated electronic data in the storage unit 8 (S7). After this, the process ends.

[0040] On the other hand, if the notification unit 104 determines that the processing unit 103 has not extracted the item contents for all required items from the document image G1 (i.e., there are insufficient items and item contents to be extracted) (NO in S5), the notification unit 104 causes the display unit 473 to display a message indicating that (S8). After that, the process ends.

[0041] According to the first embodiment, the item names written in the document to be processed and the corresponding item contents are associated with each other, and the associated item contents are arranged for each item name, and electronic data is generated in which the data format is converted into JSON or CSV. Therefore, the document to be processed is converted into easy-to-use structured data, not unstructured data. Furthermore, by converting the electronic data into the JSON or CSV data format in this way, data can be easily transferred between each program language, and the electronic data can be used not only in the image forming apparatus 1, but also in external devices such as personal computers and smartphones.

[0042] In the first embodiment, a case where a certain document type (invoice) is converted into electronic data has been described as an example, but in the second embodiment, the processing unit 103 may be provided with a trained model M corresponding to a plurality of document types (for example, invoices, delivery notes, contracts, etc.), and the processing unit 103 may identify the document type for each document to be processed based on document information obtained by recognition by the character recognition unit 102, and generate the above-mentioned structured data sorted by document type. In this case, even if a mixture of documents of a plurality of types such as invoices, delivery notes, and contracts is read by the document reading unit 5, the above-mentioned structured data sorted by document type can be obtained.

[0043] Furthermore, in each of the above embodiments, since the document to be processed is in a data format that allows data transfer between each program language, such as the JSON or CSV data format, it is possible to obtain the contents (in the case of an invoice, the billing party and the billing amount, etc.) described in the document to be processed, which is made of paper or image data, as electronic data, and to import the obtained electronic data into an application such as accounting software. Therefore, according to each of the above embodiments, the document to be processed can be provided in a data structure and data format that are highly convenient for later use.

[0044] The present invention is not limited to the configuration of the above embodiment, and various modifications are possible. In addition, in the above embodiment, the configuration and processing shown in the above embodiment using Figures 1 to 8 are merely one embodiment of the present invention, and the present invention is not limited to the configuration and processing. [Explanation of symbols]

[0045] 1. Image forming device 5 Document reading section 91 Network Interface Section 100 Control section 102 Character recognition section 103 Processing section 104 Announcement Department

Claims

1. a data acquisition unit for acquiring image data representing a document to be processed, the image data including item contents representing the contents of each item; a character recognition unit that recognizes characters written in the document to be processed based on the image data acquired by the data acquisition unit; an electronic device comprising: a processing unit that uses a trained model that has learned the relationship between the placement area of ​​the item contents in the document to be processed and the item names of the item contents, based on character information obtained by recognition by the character recognition unit, extracts item names written in the document to be processed and the item contents of the items indicated by the item names, associates the extracted item contents with the item names of the item contents, and generates electronic data in a data format that enables data to be transferred between each programming language, the electronic data arranging the associated item contents for each item name.

2. 2 . The electronic device according to claim 1 , wherein the processing unit generates the electronic data in a data format that enables data transfer between the programming languages ​​as a predetermined data format that can be used in a predetermined application.

3. The electronic device according to claim 1 , wherein the data acquisition unit is an original reading unit that reads an original.

4. The electronic device according to any one of claims 1 to 3, further comprising a notification unit that determines whether the processing unit has extracted the item contents corresponding to all of the required items from the document to be processed based on required item information indicating predetermined required items, and if the item contents for all of the required items have not been extracted, performs processing to notify a user of that fact.

5. The electronic device according to any one of claims 1 to 3, wherein the processing unit identifies a document type of the document to be processed based on character information obtained by recognition by the character recognition unit, and generates the electronic data sorted by document type using the trained model corresponding to the document type.

Citation Information

Patent Citations

  • Document analysis system for integration of paper records into a searchable electronic database

    US20070168382A1