Information processing device, server, system, information processing method, and program
The system automates character recognition corrections using a learning model, allowing users to easily modify results on small screens, addressing the complexity of existing systems by reducing the need for manual area specification.
Patent Information
- Application Number
- JP2020095330
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-11-05
- Filing Date
- 2020-06-01
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2040-06-01
AI Technical Summary
Existing character recognition systems require complex user operations, such as using a mouse to specify areas on a small screen, making it difficult for users to correct recognition results, especially on devices like MFPs and mobile terminals.
An information processing device that uses a learning model to automatically identify and correct character strings and areas corresponding to predefined items, allowing users to modify results through intuitive touch inputs, reducing the need for complicated operations.
Simplifies user interactions by automating the correction of character recognition errors, improving usability on devices with small screens by enabling accurate and efficient input of data without manual area specification.
Smart Images

Figure 0007562292000001 
Figure 0007562292000002 
Figure 0007562292000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a technique for extracting a character string corresponding to a predetermined item based on an OCR processing result. [Background technology]
[0002] There are tasks where users input specific information written on paper forms into a computer. There are also input support systems that support this input task. In input support systems, character recognition processing is performed on the image data obtained by reading the form with a scanner, and the information required for input is extracted from the character recognition results.
[0003] Patent Document 1 describes a technique in which a user can specify an area on an image in which information required for input is displayed, thereby correcting the character recognition result. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2000-3403 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the technology of Patent Document 1, in order to correct the character recognition result, it is necessary to specify the area on the image where the information required for input is displayed using an input device such as a mouse, which requires a complicated operation for the user. In particular, when the screen size of the input device is small, such as a touch panel installed in an MFP or a mobile terminal, operations such as pinching to enlarge the screen and swiping to scroll the screen are required, making the user's operations even more complicated.
[0006] The technology disclosed herein aims to reduce the amount of user operations required when performing processing based on character recognition results. [Means for solving the problem]
[0007] The information processing device according to the present disclosure is configured to: Information about A processing result including the above; The system is trained to output information about character strings and character regions corresponding to each of the predefined items. Learning model In contrast Input the above processing results The output of Prescribed items Each of The character string and the character region in the image corresponding to Information about and including Extraction result of Based on the acquisition means and the extraction result, The above Prescribed items Each of the extraction result corrected by the correction means, as data for the learning model to learn from the learning model; a reception means for receiving from a user an instruction to correct the character string corresponding to any one of the specified items displayed on the display means; a correction means for determining a character area corresponding to the item instructed by the user to be corrected based on the corrected character string and the processing result, and correcting the extraction result based on the determination; and an output means for outputting the extraction result corrected by the correction means as data for the learning model to learn from. Effect of the Invention
[0008] According to the technology of the present disclosure, it is possible to reduce the amount of user operations required when performing processing based on character recognition results. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating a configuration of an input support system. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of a key-value extraction server. [Diagram 3] FIG. 2 illustrates an example of a hardware configuration of an MFP. [Figure 4] FIG. 2 is a diagram illustrating an example of a functional configuration of a key-value extraction server. [Diagram 5] FIG. 2 illustrates an example of the functional configuration of an MFP. [Figure 6] 1 is an example of an image of a document read by a scanner. [Figure 7] 13 is an example of a key-value extraction result. [Figure 8] FIG. 11 is a sequence diagram showing a process for determining a character area corresponding to a key. [Figure 9] FIG. 4 is a diagram showing a screen displayed on an operation panel. [Figure 10] 1 is an example of an image of a document read by a scanner. [Figure 11] 13 is an example of a key-value extraction result. [Figure 12] 1 is an example of an image of a document read by a scanner. [Figure 13] 13 is an example of a key-value extraction result. [Figure 14] 13 is an example of a corrected key-value extraction result. [Figure 15] 11A to 11C are diagrams illustrating transitions of screens displayed on an operation panel. [Figure 16] FIG. 2 is a diagram illustrating an example of a functional configuration of a key-value extraction server. [Figure 17] FIG. 11 is a sequence diagram showing a process for determining a character area corresponding to a key. [Figure 18] 13 is an example of a key-value extraction result. [Figure 19] 11A to 11C are diagrams illustrating transitions of screens displayed on an operation panel. [Figure 20] FIG. 11 is a sequence diagram showing a process for determining a character area corresponding to a key. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiment for carrying out the present invention will be described with reference to the drawings. Note that the embodiment does not limit the technology of the present disclosure, and all configurations described in the embodiment are not necessarily essential to the means for solving the problem. In addition, the following embodiment describes a preferred embodiment, but is not limited to the following embodiment, and various modifications and changes are possible within the scope of the gist.
[0011] <Embodiment 1> [System Configuration] Fig. 1 is a diagram showing the overall configuration of an input support system according to this embodiment. The input support system 100 will be described with reference to Fig. 1. The input support system 100 of this embodiment will be described as a system for providing input support by inputting required data on behalf of a user to an accounting server 103 that provides a service (accounting service) that processes accounting work for a company. Note that input support by the input support system is not limited to accounting services, and can be used as a system that supports general form input work.
[0012] The MFP 300 is an image forming apparatus that also functions as an information processing apparatus that can be connected to a network. The MFP 300 has a scanning function that converts paper documents into image data.
[0013] The key-value extraction server 200 is a server that functions as an information processing device that extracts information (value), such as a character string corresponding to a predetermined item (key), from a scanned image of a paper document. In the case of this embodiment, the item is an item required for accounting services. For example, the key-value extraction server 200 extracts the character string "2019 / 06 / 12", which is a value corresponding to the "date" item, from an image of an invoice.
[0014] The accounting server 103 is a server that provides an accounting service that performs accounting processing by inputting information on predetermined forms such as invoices. The MFP 300, the key-value extraction server 200, and the accounting server 103 are connected via the Internet 104.
[0015] [Hardware configuration] FIG. 2 is a block diagram showing the basic hardware configuration of the key-value extraction server 200 and the accounting server 103.
[0016] The CPU (Central Processing Unit) 201 is a unit that executes various programs and realizes various functions. The RAM (Random Access Memory) 202 is a unit that stores various information. The RAM 202 is also used as a temporary working memory area for the CPU 201. The ROM (Read Only Memory) 203 is a unit that stores various programs and the like. For example, the CPU 201 loads a program stored in the ROM 203 into the RAM 202 and executes the program.
[0017] The external storage unit 207 is composed of, for example, a flash memory, a hard disk drive (HDD), or a solid state disk (SSD), and stores various programs. The CPU 201 executes processing based on the programs stored in the external storage unit. This realizes the functional configuration constituting the key-value extraction server 200 as shown in FIG. 4 and the processing of each step in the sequence described below.
[0018] The input / output interface 204 is a unit that provides an interface with output devices such as a display device, and input devices such as a keyboard and a mouse.
[0019] The NIC (Network Interface Card) 205 is a unit for connecting the key-value extraction server 200 and the accounting server 103 to a network. The above-mentioned units are configured to be able to send and receive data via a bus 206.
[0020] Fig. 3 is a block diagram showing the basic hardware configuration of an MFP 300. A CPU 301, a RAM 302, a ROM 303, and a NIC 304 in Fig. 3 are similar to the CPU 201, the RAM 202, the ROM 203, and the NIC 205 in Fig. 2, respectively, and therefore description thereof will be omitted.
[0021] The scanner 305 is an input unit that converts a paper document into image data. The printer engine 306 is an output unit that prints the image data. The operation panel 307 is an input unit (input section) that accepts touch operations from a user, and is an output unit (display section) that displays information about the MFP 300 on a display. The above-mentioned units are configured to be able to transmit and receive data via a bus 308.
[0022] [Functional configuration of the key-value extraction server] Fig. 4 is a diagram showing a functional configuration of the key-value extraction server 200. The functions of the key-value extraction server 200 will be described with reference to Fig. 4.
[0023] The image data acquisition unit 401 acquires image data of a scanned image obtained by reading a document from the MFP 300 via the NIC 205. The OCR unit 402 is a character recognition processing unit that identifies a character area that is an area including a character string in an image indicated by the image data, and performs character recognition processing (OCR processing) on the character area. As a result of the character recognition processing, the OCR unit 402 outputs at least position information of the character area in the image and the character string included in the character area.
[0024] The key-value extraction unit 403 performs processing to extract a value (character string) corresponding to a key (item) included in the result of the character recognition processing by the OCR unit 402. The key (item) is defined in advance according to the input support performed by the input support system 100. The value (character string) corresponding to this key (item) is also called a key-value. The key-value extraction unit 403 extracts a key-value using the processing result of the character recognition processing and an extraction rule 409.
[0025] The extraction rule 409 of this embodiment will be described as a learning model that is machine-learned to output character strings corresponding to each item based on the characteristics of the processing result of the character recognition processing. The characteristics of the processing result of the character recognition processing include (1) characteristics obtained from the character string that has been recognized, (2) rectangular information of the character area, and (3) characteristics obtained from the character strings surrounding the character string.
[0026] In order for the key-value extraction unit 403 to extract a character string and a character area corresponding to a predetermined item, the extraction rule 409 receives the character area, which is the result of the character recognition process by the OCR unit 402, and the character string recognized in the character area. As a result, the extraction rule 409 is trained to output each character string and character area corresponding to each item. Therefore, the key-value extraction unit 403 can extract a character string and a character area corresponding to a predetermined item based on the output result. Alternatively, the extraction rule 409 may be trained to output a value related to the character string and the character area corresponding to the item, and the key-value extraction unit 403 may extract a character string and a character area corresponding to the item based on the output value.
[0027] The extraction rule 409 is a learning model generated by, for example, linking input data with teacher data and learning using an algorithm such as SVM (Support Vector Machine). Note that, instead of SVM, a decision tree or neural network algorithm may be used.
[0028] Furthermore, the key-value extraction unit 403 generates a key-value extraction result, which is data in which each item is associated with a character string and a character area corresponding to the item, as an extraction result. The key-value extraction result transmission unit 405 transmits the processing result of the character recognition process performed by the OCR unit 402 and the key-value extraction result to the MFP 300. Details of the key-value extraction result will be described later.
[0029] In this embodiment, when a character string or character area corresponding to an item is erroneously extracted by the key-value extraction unit 403, the user can instruct the MFP 300 to correct the character string and character area to the correct character string and character area corresponding to the item. The correction result acquisition unit 406 acquires data (correction result) from the MFP 300 indicating the correct character string and character area corresponding to the item corrected based on the user's instruction.
[0030] The learning unit 407 learns the extraction rule 409 based on the correction result acquired by the correction result acquisition unit 406. The learning unit 407 can further learn the extraction rule 409 of this embodiment so that the extraction rule 409 becomes suitable for the work of each user who uses the input support system 100.
[0031] For example, the learning unit 407 inputs the result of character recognition processing performed by the OCR unit 402 as input data to the extraction rules 409, and causes the extraction rules 409 to output values indicating a character string and character area corresponding to a certain item. The learning unit 407 then calculates the amount of deviation between the output result and the value indicating the actual correct character string and character area corresponding to the item. The learning unit 407 updates parameters and the like in the extraction rules 409 so as to reduce the amount of deviation. Data indicating the actual correct character string and character area corresponding to an item is called teacher data. Also, updating the parameters of the extraction rules 409 using data for learning, such as teacher data, is called learning.
[0032] In this embodiment, in the learning by learning unit 407, data in which predetermined items are associated with character regions and character strings corresponding to each item, which is the correction result acquired by correction result acquisition unit 406, may be used as training data. Therefore, if a character string or character region corresponding to a certain item is erroneously output by extraction rule 409, extraction rule 409 can be trained to output the correct character string and character region.
[0033] It should be noted that the extraction rule 409 is not limited to a learning model. For example, the extraction rule 409 may be a table in which the coordinates and size of a character area corresponding to each item are associated with each type of form. In this case, a correction unit (not shown) corrects the coordinates and size values of a character area including a character string indicating a specific item based on the correction result acquired by the correction result acquisition unit 406. In this way, the process is performed so that the process for extracting a character string corresponding to an item from among the character strings obtained by the character recognition process is performed correctly.
[0034] The area determination unit 404 determines (specifies) the correct character area corresponding to the item based on the character string corresponding to the item corrected by the user and the position in the scanned image specified by the user, and corrects the key-value extraction result. Details will be described later.
[0035] The key-value extraction result transmission unit 405 transmits the key-value extraction result to the MFP 300. The key-value data transmission unit 408 transmits each item and a character string corresponding to the item to the accounting server 103 via the NIC 205.
[0036] The functions of each unit in Fig. 4 are realized by the CPU of the key-value extraction server 200 expanding the program code stored in the ROM into the RAM and executing it. Alternatively, some or all of the functions of each unit in Fig. 4 may be realized by hardware such as ASIC or electronic circuitry.
[0037] [MFP functional configuration] Fig. 5 is a diagram showing the functional configuration of the MFP 300. The functions of the MFP 300 will be described with reference to Fig. 5.
[0038] The UI unit 501 has a function as a display control unit that causes the operation panel 307 to display a screen for giving a predetermined notification to the user, and a function as a reception unit that receives input from the user via the operation panel 307.
[0039] A scan execution unit 502 converts data obtained by reading an original document with the scanner 305 into image data. An image data transmission unit 503 transmits the image data of the original document to the key-value extraction server 200 via the NIC 304.
[0040] The key-value extraction result acquisition unit 504 acquires the key-value extraction result from the key-value extraction server 200 via the NIC 304 .
[0041] The area determination unit 506 obtains a corrected character string corresponding to an item instructed to be corrected by the user via the UI unit 501, and determines a correct character area corresponding to the item based on the obtained corrected character string. The area determination unit 506 reflects the determined character area in the key-value extraction result to correct the key-value extraction result. Details will be described later.
[0042] The modification result transmission unit 505 transmits (outputs) the modified key-value extraction result based on the modification made by the user via the UI unit 501 to the key-value extraction server 200 via the NIC 304. The modified key-value extraction result is used as data for the learning unit 407 to learn.
[0043] In this way, the MFP 300 of this embodiment also functions as an information processing device that performs predetermined processing based on the key-value extraction result transmitted from the key-value extraction server 200.
[0044] 5 are realized by the CPU of MFP 300 expanding program code stored in ROM into RAM and executing it. Alternatively, some or all of the functions of the units in FIG. 5 may be realized by hardware such as ASIC or electronic circuits.
[0045] [Key-value extraction results] Fig. 6 is a diagram showing an example of an image represented by image data of a paper document scanned by the scan execution unit 502 of the MFP 300. As shown in Fig. 6, the image is image data of a scanned image obtained by reading a paper document (original) on which information to be input to the accounting server 103, such as an estimate, is written.
[0046] FIG. 7 is a diagram showing a key-value extraction result 700 that includes character areas and character strings recognized as a result of character recognition processing, and a value indicating that the recognized character areas and character strings correspond to predefined items.
[0047] In the key-value extraction result 700, data in each column that holds a character area (column 701), a character recognition result indicating a character string recognized in the character area (column 702), and a label indicating an item name (column 703) are associated with each other on a record basis (row basis). A record is generated for each character area.
[0048] The character area in column 701 is a column that holds position information of the character area, which is a rectangular area that contains a character string in the image. The position information holds coordinate values indicating the position of the character area and values indicating the size of the character area. The coordinate system used for the coordinates in the image has an origin at the upper left, with the vertical direction extending in the y direction and the horizontal direction extending in the x direction. From the left, column 701 holds the x coordinate, the y coordinate, the size in the x direction (width), and the size in the y direction (height).
[0049] Column 702 is a column that holds character strings recognized as a result of OCR processing on a character region. The information held in columns 701 and 702 is the processing result of character recognition processing by the OCR unit 402 on image data.
[0050] Column 703 is a column for holding values indicating the name of an item (key). The value indicating the name of each item is called a label. Items in the accounting system are items required by accounting server 103, and the items in this embodiment are described as five items: the title of the scanned document, the billing telephone number, the document management number, the document issue date, and the total amount. Thus, in this embodiment, the key-value extraction result is described as including the processing result of the character recognition process, but the processing result of the character recognition process may be generated as separate data.
[0051] In column 703, records that hold character strings and character areas corresponding to the field indicating the document title are assigned a "Title" value (label). The field for the billing telephone number is assigned a "Phone Number" value. The field for the document management number is assigned a "Number" value. The field for the document issue date is assigned a "Date" value. The field for the total amount is assigned a "Amount" value.
[0052] The key-value extraction unit 403 inputs the character area in column 701 and the character string in column 702 into the extraction rule 409, and outputs the character string and character area corresponding to each item. Based on the output result of the extraction rule 409, the key-value extraction unit 403 assigns a label to indicate the name of the corresponding item to the records corresponding to each item among the records having the character string and character area in the processing result of the character recognition processing. In this way, the key-value extraction result 700 is generated. The key-value extraction result 700 is transmitted to the MFP 300.
[0053] The character strings in the character recognition results in rows 704 to 708 of the key-value extraction result 700 in Fig. 7 are character strings extracted as character strings (values) corresponding to items (keys). For this reason, a label indicating that the items are extraction targets is added to column 703 in rows 704 to 708.
[0054] The key-value extraction result 700 shown in FIG. 7 is an example in which the key-value extraction unit 403 correctly extracts a key value and the correct label is stored in the column 703. However, the label in the column 703 may be assigned to a record different from the record corresponding to the item. In other words, the extraction rule 409 may erroneously output a character string and a character area corresponding to the item. For example, when the telephone number of the billing destination is set as an item, it is conceivable that a telephone number other than that of the billing destination is output as a character string corresponding to that item. In this case, the user can input and correct the character string corresponding to the item. The user can also touch the screen to indicate the correct character area corresponding to the item.
[0055] If there is teacher data including a correct character string corresponding to an item and a correct character region corresponding to the item, learning unit 407 can learn extraction rule 409 and update extraction rule 409. In this way, by learning extraction rule 409, extraction rule 409 can be updated so that a correct key value is extracted. However, the screen size of operation panel 307 provided on MFP 300 may be small. For this reason, when a user tries to specify a correct character region via operation panel 307, the user's operation may become cumbersome.
[0056] In this embodiment, a character area corresponding to an item is determined based on a correct character string corresponding to the item input by the user, and the determined character area is output as data for learning. In addition, when the user touches the operation panel 307 to indicate a character area including a character string corresponding to the item, even if the touch position is not accurate, a correct character area corresponding to the item is determined.
[0057] [About character extraction and correction processing] Fig. 8 is a sequence diagram showing the processing in the input support system of this embodiment. The processing in each device shown in the sequence diagram of Fig. 8 is performed by the CPU of each device expanding the program code stored in the ROM into the RAM and executing it. In addition, some or all of the functions of the steps in Fig. 8 may be realized by hardware such as ASIC or electronic circuits. Note that the symbol "S" in the explanation of each process means that it is a step in the flow. For convenience of explanation, the user's actions will also be explained with the letter "S" attached.
[0058] In S801, the user issues an instruction to start scanning by placing an original (paper document) on the scanner 305 of the MFP 300. The user's operation in this step triggers the start of processing in the input support system.
[0059] In S802, the scan execution unit 502 of the MFP 300 executes scanning of a paper document and generates image data of the paper document. The image data transmission unit 503 transmits the generated image data to the key-value extraction server 200.
[0060] In S803, the image data acquisition unit 401 acquires the image data transmitted from the MFP 300, and the OCR unit 402 executes character recognition processing on the image data.
[0061] In S804, the key-value extraction unit 403 extracts character strings and character regions corresponding to each predefined item based on the results output by inputting the processing result of the character recognition process to the extraction rule 409. Then, the key-value extraction unit 403 assigns a label indicating the name of the item to records that include a character region and character string corresponding to an item among the records included in the processing result of the character recognition process, thereby generating the key-value extraction result 700 shown in FIG. 7. The key-value extraction result transmission unit 405 transmits the generated key-value extraction result 700 to the MFP 300.
[0062] In S805, the key-value extraction result acquisition unit 504 of the MFP 300 acquires the key-value extraction result 700 including the processing result of the character recognition processing. In addition, the UI unit 501 of the MFP 300 displays each item and each character string corresponding to the item on the operation panel 307 based on the acquired key-value extraction result.
[0063] 9 is a diagram showing a screen 901 displayed on operation panel 307 of MFP 300 in this step. Screen 901 is displayed so that the user can confirm and correct the key-value extraction results. Value display fields 902-906 are display fields that display character strings corresponding to the items displayed in key display fields 912-916.
[0064] In S806, the user checks the extraction results of the character strings corresponding to the respective items on a screen 901 displayed on the operation panel 307 of the MFP 300, and corrects any errors in the character strings.
[0065] When the user touches any of the value display fields 902 to 906 on the screen 901 displayed on the operation panel 307 of the MFP 300, the screen 901 switches to edit mode. In the edit mode, the user can correct the character string in the value display field by inputting the correct character string for the item in the touched value display field. In other words, the user can specify the item to be corrected by touching the value display field to be corrected. When the user presses the register button 907 after inputting the correction, the UI unit 501 accepts the registration of the corrected character string.
[0066] For example, on screen 901, "098-765-4321" is displayed as the extraction result as the value of "phone number" displayed in key display field 916. As shown in rectangle 605 in Fig. 6, the character string of the billing destination phone number that should be correctly extracted is "0123-45-6789". In this case, the user can touch value display field 906 and then input "0123-45-6789" to correct the character string corresponding to the item.
[0067] The cause of such an error in extraction of a key value that the user needs to correct may be that the character region corresponding to the item is erroneously extracted, or that the character recognition for the character region is incorrect even though the character region corresponding to the item is correctly extracted.
[0068] In S807, the area determination unit 506 of the MFP 300 judges whether the difference between the character string of the character recognition result corresponding to the item before correction and the character string after correction is within a predetermined range (tolerance range). In this embodiment, if the edit distance (Levenshtein distance) between the character string corresponding to the item before correction extracted by the key-value extraction unit 403 and the character string after correction by the user is equal to or less than a threshold, it is judged to be within the predetermined range. The threshold is, for example, 1.
[0069] For example, if the pre-correction character string corresponding to a certain item extracted by the key-value extraction unit 403 in S804 is "0123-45-6788" and the post-correction character string corrected by the user is "0123-45-6789", the edit distance is 1. Therefore, if the threshold value is 1, the difference between the pre-correction character string and the post-correction character string corresponding to the item is determined to be within a predetermined range.
[0070] If the difference between the character strings is within a predetermined range (YES in S807), the cause of the error in extracting the key-value is considered to be that the character area corresponding to the item was correctly extracted, but the character recognition process for the character area was incorrect. Therefore, the process proceeds to S815 without determining the correct character area corresponding to the item (described later).
[0071] If the difference between the character strings is not within a predetermined range (NO in S807), the cause of the error in extracting the key-value is considered to be that the character area corresponding to the item was erroneously extracted. In this case, the process proceeds to S808, where the area determination unit 506 determines a character string that is the same as the corrected character string from the processing result obtained by performing character recognition processing on the entire image data, and determines the character area in which the character string is recognized as the correct character area corresponding to the item. In this embodiment, since the processing result obtained by performing character recognition processing is included in the key-value extraction result, the area determination unit 506 determines the correct character area corresponding to the item from the key-value extraction result. Note that, here, "same" is not limited to characters that are exactly the same, but also includes characters that can be considered to be the same.
[0072] Fig. 10 is a diagram showing an example of a scanned image of a paper document different from that shown in Fig. 6, which is scanned by the scan execution unit 502 of the MFP 300 in S802. Fig. 11 shows a result of performing character recognition and key-value extraction on the image data of Fig. 10, which is a key-value extraction result different from that shown in Fig. 7. The processing of S808 will be described with reference to Figs. 10 and 11.
[0073] Rows 1102 to 1106 in FIG. 11 are records including the results of the character recognition process (character regions and character recognition results) to which labels indicating items are attached. Dotted rectangles 1001 to 1005 in FIG. 10 indicate extracted character regions corresponding to the items. However, the key-value extraction result in FIG. 11 includes an error in extraction by the key-value extraction unit 403. Specifically, the record in row 1106 holds a label of telephone number as a character region and character string corresponding to the item whose label is "telephone number", but the attachment of this label is assumed to be incorrect. For this reason, it is assumed that the user inputs "0123-45-6789", which is the correct character string corresponding to "telephone number", in S806. It is also assumed that the corrected character string "0123-45-6789" input by the user in S807 and the erroneously extracted character recognition result "098-765-4321" in row 1106 are not determined to be within the allowable range, and therefore the process transitions to S808.
[0074] In S808, the area determination unit 506 derives the edit distance between all character strings stored in the character recognition results in column 1108 and the corrected character string corrected by the user. If there is one character string in the character recognition results whose edit distance is equal to or less than a predetermined value, the area determination unit 506 considers that the character string equal to or less than the predetermined value and the corrected character string are the same, and determines that the correct character area corresponding to the item has been determined. The predetermined value is, for example, 1.
[0075] Column 1101 in FIG. 11 is a column that holds the edit distance between the character string of the character recognition result of each row and the character string "0123-45-6789" corrected by the user. In FIG. 11, the only character in column 1101 with an edit distance of 1 or less is the character recognition result held in row 1107. In other words, there is only one character string with an edit distance of 1 or less, which is a predetermined value. Therefore, in the example of FIG. 11, the correct character area corresponding to the "phone number" item can be determined to be the character area of row 1107. Dotted rectangle 1006 in FIG. 10 is the character area corresponding to the character area of row 1107 in FIG. 11.
[0076] In this manner, in this embodiment, when a character region corresponding to an item is erroneously extracted, the user does not need to search for and specify the correct character region from the key-value extraction result or the processing result of the character recognition process in order to correct the character region to the correct character region corresponding to the item. When the user inputs a correct character string corresponding to the item, the region determination unit 506 can determine the character region corresponding to the item based on the corrected character string.
[0077] In S809, it is determined whether a character region corresponding to the item has been determined based on the corrected character string input by the user in S808. For example, if there are multiple character strings whose edit distance from the corrected character string is less than a predetermined value, or if there is no character string whose edit distance is less than a predetermined value, the correct character region corresponding to the item specified by the user to be corrected (the item extracted incorrectly) is not determined in S808. In this case, it is determined that the correct character region has not been determined.
[0078] If the correct character area is not determined (NO in S809), in S810, the UI unit 501 displays a preview image based on the image data of the scanned document on the operation panel 307. Then, the UI unit 501 prompts the user to touch the preview image on the operation panel 307 to indicate the correct character area corresponding to the item that the user has instructed to be corrected.
[0079] In step S811, the user touches the preview screen displayed on the operation panel 307 of the MFP 300 to indicate the position of the correct character area of the item for which the user has instructed to correct, in which the corrected character string is entered.
[0080] In S812, the UI unit 501 of the MFP 300 accepts a touch by the user and detects the touch position on the operation panel 307. Then, the UI unit 501 displays a screen 1505 (see FIG. 15) on the operation panel 307 and accepts pressing of the register button 907 by the user. In the screen 1505 displayed at this time, a corrected character string is displayed in the value display field corresponding to the item instructed to be corrected by the user.
[0081] The correction result transmission unit 505 converts the touch position on the operation panel 307 touched by the user into touch position coordinates mapped to the coordinates of the image, and determines the touch position coordinates. The correction result transmission unit 505 transmits the character string after correction input by the user in S806 and the touch position coordinates to the key-value extraction server 200.
[0082] In S813, the correction result acquisition unit 406 of the key-value extraction server 200 acquires the touch position coordinates, the corrected character string, and its item transmitted from the MFP 300. The area determination unit 404 of the key-value extraction server 200 determines a correct character area corresponding to the item instructed to be corrected by the user, based on the touch position coordinates and the corrected character string.
[0083] Fig. 12 is a diagram showing an example of a scanned image scanned by scan execution unit 502 of MFP 300 in S802, which is a scanned image of a paper document different from those shown in Figs. 6 and 10. Fig. 13 is a table showing the results of performing character recognition and key-value extraction on the image data in Fig. 12, which is different from those shown in Figs. 7 and 11. The processing from S810 to S813 will be described with reference to Figs. 12 and 13.
[0084] 13 are records including the results of character recognition processing in which a label indicating an item is added as a character string (character area) corresponding to a specific item. However, it is assumed that the "phone number" in column 1312 is not added to the correct character string (character area).
[0085] Therefore, suppose that the character string in the "phone number" field is extracted as "098-765-4321" by the key-value extraction unit 403, but the user corrects the character string in the "phone number" field to "0123-45-6789". Column 1311 in FIG. 13 holds the edit distance between the character string "0123-45-6789" corrected by the user's input and the character string resulting from character recognition. In the example in FIG. 13, there are two character strings with an edit distance of 1 or less, so in S808 the region determination unit 506 was unable to determine the correct character region corresponding to the phone number field. For this reason, the process transitions to S810.
[0086] A touch position 1210 shown in FIG. 12 is the position touched by the user in S811, and the touch position coordinates are determined to be (x, y)=(1110, 493) in S812.
[0087] In S813, the area determination unit 404 of the key-value extraction server 200 derives the distance between the touch position coordinates and the character areas of all rows of the table of the key-value extraction result. Among the character areas whose distance is equal to or less than a predetermined value, the area determination unit 404 determines the character area in which the character string having the smallest edit distance with the corrected character string is recognized as the character area corresponding to the item instructed to be corrected by the user. The predetermined value is, for example, 100.
[0088] Column 1301 in FIG. 13 is a column that holds the distance between the position of a character area and the touch position in the image touched by the user, and indicates the distance from the character area when the touch position coordinates are (1110, 493). Rows 1307 to 1310 are records having character areas whose distance from the touch position coordinates is a predetermined value of 100 or less. Among these, region determination unit 404 determines that the character area in row 1308, which has the smallest edit distance in column 1311, is the correct character area corresponding to the item "phone number", which is the item instructed to be corrected by the user. Note that if there are two or more smallest distances, the character area with the smallest distance may be determined as the correct character area.
[0089] Thus, in this embodiment, when a user touches an image to indicate the correct character area corresponding to an item that the user has instructed to be corrected, the character area corresponding to that item is determined taking into consideration not only the touch position coordinates but also the edit distance with the corrected character string.
[0090] For example, in Fig. 13, the character area with the smallest distance from the touch position coordinates is the character area of line 1307 where the character string "TEL:" is recognized, but this is not a character area corresponding to an item. If the character area corresponding to an item is determined simply based on the touch position coordinates in this way, there is a risk that the correct character area cannot be determined if the user cannot touch accurately, such as when the screen is small. According to this embodiment, even if the user cannot touch accurately, the character area corresponding to the item can be determined.
[0091] In S814, the area determining unit 404 determines whether or not a correct character area corresponding to the item has been determined in S813.
[0092] If the correct character area is determined in S813 (YES in S814), or if the correct character area is determined in S808 (YES in S809), the process proceeds to S815.
[0093] In S815, the learning unit 407 causes the extraction rule 409 to learn using, as training data, data indicating position information of the correct character area corresponding to the item determined by the area determination units 404 and 506. The extraction rule 409 is updated by extracting and learning the features of the character recognition result included in the training data.
[0094] If the correct character area corresponding to the item instructed to be corrected by the user in S808 or S813 can be determined, the area determination units 404 and 506 correct the key-value extraction results so that a label is assigned to the record including the correct character area.
[0095] Fig. 14 is a diagram showing the key-value extraction result after the label in the key-value extraction result in Fig. 11 is corrected by MFP 300 based on the processing result of S808. The area determination unit 506 has determined that the character area in which "phone number" is an item is the character area in row 1107. Therefore, the area determination unit 506 corrects the key-value extraction result so that "phone number" is assigned to row 1107 in column 1401 as shown in Fig. 14.
[0096] Similarly, when a character region corresponding to an item is determined in S813, the region determination unit 404 corrects the key-value extraction result so that "phone number" in column 1312 in the key-value extraction result in Fig. 13 is assigned to row 1308. In this way, the region determination units 404 and 506 also have a function of correcting the key-value extraction result by reflecting the determined correct character region in the key-value extraction result.
[0097] In the learning in S815, for example, the corrected key-value extraction result as shown in Fig. 14 is used as data for learning. The corrected key-value extraction result as shown in Fig. 14 may be used as it is as teacher data for learning, or the corrected key-value extraction result may be processed and used as teacher data or input data for learning.
[0098] If the correct character area is not determined in S814 (NO in S814), the process proceeds to S816. For example, if there is no character area whose distance from the touch position coordinates is within a predetermined value, it is determined in S814 that the character area could not be determined. In this case, since the correct character area corresponding to the item specified by the user for correction could not be determined, the process proceeds to S816 without proceeding to the learning step in S815. This makes it possible to prevent data including an incorrect character area corresponding to an item from being used as learning data.
[0099] In S816, the key-value data sending unit 408 sends data on the items and character strings corresponding to each item to the accounting server 103. The character recognition result or the key-value extraction result with the label corrected may be sent to the accounting server 103, or records with labels may be extracted from the corrected key-value extraction result and only the data to be used by the accounting server 103 may be sent.
[0100] FIG. 15 shows the transition of screens displayed on operation panel 307 of MFP 300 in each step of the flow in FIG.
[0101] Screen 1501 is the same as screen 901 displayed as a result of the processing in S805. Screen 1502 shows the screen after the character string of the telephone number on screen 1501 has been corrected by user operation 1506 in S806.
[0102] Screen 1503 shows a preview image of the image data of a scanned document, which is displayed in S810 when the correct character area cannot be determined from the character string entered by the user. Screen 1504 shows how the correct character area corresponding to the item instructed to be corrected is touched by user operation 1507 in S811. Screen 1505 is a screen displayed after S811, and shows how the registration button 907 is pressed by user operation 1508.
[0103] 15 indicate screen transitions. Screen 1501 transitions to screen 1502, and if YES is determined in S807 or S809, screen 1502 transitions to screen 1505. If NO is determined in S807 and S809, screen 1502 transitions to screen 1503. Screen 1503 transitions to screen 1504, and screen 1504 transitions to screen 1505.
[0104] In the sequence diagram of Fig. 8, the flow is described for the case where the key-value is modified by the user. For example, if the key-value is not modified by the user in S806, the key-value is correctly extracted. Even in this case, the key-value extraction result may be used as data for learning to cause the extraction rule 409 to learn.
[0105] As described above, according to this embodiment, the correct character area corresponding to an item can be determined based on the corrected character string corresponding to the item input by the user. This eliminates the need for the user to perform a cumbersome operation such as inputting a character area corresponding to the item, thereby improving usability.
[0106] Even when a user touches the screen to specify a correct character area corresponding to a specific item, the correct character area corresponding to the item is determined based on the character string corrected by the user in addition to the touch position on the document image touched by the user. Therefore, even if the touch position is not accurate, the correct character area corresponding to the item can be determined.
[0107] In the above description, the area determination unit 506 of the MFP 300 determines the correct character area corresponding to the item instructed by the user to be corrected in S808, and the area determination unit 404 of the key-value extraction server 200 determines the correct character area corresponding to the item in S813. Alternatively, only one of the area determination units may determine the correct character area corresponding to the item in both steps S808 and S813. For example, the area determination unit 506 of the MFP 300 may determine the character area corresponding to the item not only in S808 but also in S813. Alternatively, the area determination unit 404 of the key-value extraction server 200 may determine the character area corresponding to the item not only in S813 but also in S808. The area determination unit 404 of the key-value extraction server 200 may determine the correct character area corresponding to the item when it is not possible to obtain position information of the correct character area corresponding to the item from the MFP 300.
[0108] In the present embodiment, the image data to be subjected to character recognition processing has been described as a scanned image. Alternatively, for example, the image data to be subjected to character recognition processing may be an image of a document generated as electronic data.
[0109] <Embodiment 2> In the first embodiment, the MFP 300 performs character recognition processing on all character areas of the image data obtained by scanning, and a key value is extracted based on the results. However, for reasons such as reducing the processing load of the character recognition processing, character recognition processing may be performed on only some character areas of the image data, and a key value may be extracted based on the results of the character recognition processing. For this reason, in this embodiment, a method for determining a correct character area corresponding to an item to be corrected based on a character string corrected by a user in such a case will be described. This embodiment will be described mainly with respect to the differences from the first embodiment. The configuration and processing are the same as those of the first embodiment unless otherwise specified.
[0110] [Functional configuration of the key-value extraction server] 16 is a diagram showing the functional configuration of the key-value extraction server 200 of this embodiment. The same components as those in embodiment 1 are given the same reference numerals and will not be described. The key-value extraction server 200 of this embodiment further includes a character region detection unit 1601.
[0111] The text area detection unit 1601 performs processing to detect text areas present in a scanned image represented by image data. The text area detection method may be a known method such as a method of extracting a rectangular area assumed to be a text area from an image binarized with a certain threshold value.
[0112] Furthermore, the key-value extraction unit 1602 of this embodiment estimates the form type of the scanned image from the output result of inputting the position information of the character area obtained as a result of processing by the character area detection unit 1601 to a learning model (not shown). The learning model is a learning model that has been machine-learned so as to output the form type of the image based on the characteristics of the position and size of the character area in the image. As another example, the key-value extraction unit 403 may estimate the type of the form by calculating the degree of agreement between the layout of the character area for each type of form stored in the database and the layout of the character area obtained as a result of processing by the character area detection unit 1601.
[0113] Then, the key-value extraction unit 1602 of this embodiment uses the type of the form to extract a character area including a key-value, which is a character string corresponding to a key (item).
[0114] The extraction rules 1603 of this embodiment will be described as a learning model that is trained to output information that can identify the character area containing the character string of each item based on the type of form and the characteristics of the character area in the image. The key-value extraction unit 1602 inputs the type of form and information such as the position of the character area of the scanned image obtained as a result of processing by the character area detection unit 1601 into the extraction rules 1603, and extracts the character area of each item in the scanned image based on the output result.
[0115] Alternatively, extraction rule 1603 may be a database in which position information such as coordinates indicating the position of the character area of each item and size is stored for each type of form. In that case, for example, key-value extraction unit 1602 may extract a character area in the scanned image that is located at the same position as or near the position of the character area of a certain item stored in extraction rule 1603, as the character area corresponding to that item.
[0116] Alternatively, extraction rules 1603 may be a learning model that is trained to output information identifying the character area of each item based only on the features of the character area in the image. In this case, estimation of the type of form does not need to be performed. In other words, key-value extraction unit 1602 may input information such as the position of the character area of the scanned image obtained as a result of processing by character area detection unit 1601 to extraction rules 1603, and extract the character area of each item in the scanned image based on the output result.
[0117] The OCR unit 402 then performs character recognition processing on the character regions of each item extracted by the key-value extraction unit 1602. Then, the character strings obtained as a result are output as character strings corresponding to each item.
[0118] [About character extraction and correction processing] 17 is a sequence diagram showing the processing in the input support system of this embodiment. S1701 to S1702 are the same as S801 to S802, so the description will be omitted.
[0119] In S1703, the image data acquisition unit 401 acquires the image data of the scanned image transmitted from the MFP 300, and the character region detection unit 1601 detects the character region of the acquired image data.
[0120] In S1704, the key-value extraction unit 1602 estimates the form type of the image data based on the information of the detected character area. Then, in S1705, the key-value extraction unit 1602 uses the extraction rule 1603 to extract character areas corresponding to each predefined item.
[0121] In S1706, the OCR unit 402 executes character recognition processing only on the character regions corresponding to each item detected in S1705, and extracts key values, which are character strings of each item. In this embodiment, the character recognition processing for extracting key values is performed on some character regions. This makes it possible to reduce the processing load when extracting key values.
[0122] Then, the key-value extraction unit 1602 assigns a label indicating the name of the item to the record (row) including the character area and character string corresponding to each item, and generates the key-value extraction result 1800 shown in Fig. 18. The key-value extraction result transmission unit 405 outputs the generated key-value extraction result 1800 to the MFP 300.
[0123] A key-value extraction result 1800 in Fig. 18 is obtained as a result of performing the processes in S1702 to S1706 on the form image in Fig. 6. The contents stored in columns 1801 to 1803 are the same as those in columns 701 to 703. The character strings of the character recognition results in rows 1804 to 1808 are character strings (key values) extracted as character strings corresponding to items. For this reason, labels indicating that these are items to be extracted are added to column 1803 in rows 1804 to 1808.
[0124] Also, as shown in FIG. 18, in this step, character recognition processing is not performed on character areas other than the character areas corresponding to the items, so the character recognition results in column 1802 for rows other than rows 1804 to 1808 contain “- ”, indicating that there is no character string.
[0125] S1707 to S1709 are similar to S805 to S807, and therefore the description will be omitted.
[0126] In S1709, if the difference between the character string corrected by the user and the character string of the item to be corrected in the original key-value extraction result is within a predetermined range (YES in S1709), the process proceeds to S1713. In other words, in this case, the character area corresponding to the item was correctly extracted in S1705. Therefore, the process proceeds to the learning step of S1713 without determining the correct character area corresponding to the item to be corrected instructed by the user, as described below.
[0127] In S1709, if the difference between the character string corrected by the user and the character string of the item to be corrected in the original key-value extraction result is not within a predetermined range (NO in S1709), proceed to S1710. In other words, in this case, it is considered that the character area corresponding to the item to be corrected was erroneously extracted in S1705. Therefore, a process is performed to determine the correct character area corresponding to the item to be corrected. The correction result transmission unit 505 transmits the corrected character string input by the user in S1708 to the key-value extraction server 200.
[0128] In S1710, the correction result acquisition unit 406 acquires the character string as the correction result transmitted from the MFP 300. Then, the OCR unit 402 executes character recognition processing on all the character areas of the scanned image detected in S1703.
[0129] In this embodiment, character recognition processing is performed on all character regions only when it is determined in S1709 that the difference between the character string corrected by the user and the character string of the item to be corrected in the key-value extraction result is not within a predetermined range. As a result, the key-value extraction result 1800 is updated so that the character string obtained as a result of character recognition in this step is held in the place where "-" was held in the character recognition result of column 1802 in the key-value extraction result 1800 in Fig. 18.
[0130] In S1711, the area determination unit 404 of the key-value extraction server 200 calculates the edit distance between the character strings of all the character recognition results recognized in S1710 and the character string corrected by the user.The area determination unit 404 then determines the character area of the item to be corrected based on the edit distance.For example, if there is only one character recognition result with an edit distance of 1 or less, it is determined that the correct character area has been determined.
[0131] For example, assume that the image in Fig. 10 is a scanned image obtained by scanning with scan execution unit 502 of MFP 300 in S1702. Also assume that the user has corrected the character string in the telephone number field, which is the field to be corrected, to "0123-45-6789." In this case, the edit distance between each character string obtained as a result of character recognition processing for all character regions detected from the scanned image in Fig. 10 and the corrected character string "0123-45-6789" is calculated.
[0132] Fig. 11 shows the key-value extraction result in which the character string obtained as a result of performing character recognition processing on all character areas is added to the character recognition result in column 1108, and the above-mentioned edit distance is added to column 1101. In Fig. 11, the only character string with an edit distance of 1 or less is "0123-45-6789" stored in the character recognition result in column 1108 in row 1107. Therefore, in Fig. 11, the character area in row 1107 is determined to be the correct character area.
[0133] In S1712, the area determining unit 404 determines whether or not the correct character area corresponding to the item to be corrected has been determined in S1711. If the correct character area has been determined in S1711 (YES in S1712), the process proceeds to S1713.
[0134] In S1713, the learning unit 407 updates the learning model by extracting and learning the features of the character region determined in S1711. Alternatively, if the extraction rule 1603 is a database, the extraction rule 1603 is modified and updated so that the position information of the character region determined by the region determination unit 404 is associated with the character region corresponding to the item to be modified.
[0135] If the correct character area is not determined in S1711 (NO in S1712), the process proceeds to S1714 without proceeding to S1713, which is a learning step. This prevents data that includes an incorrect character area corresponding to an item from being used as learning data. The details of step S1714 are the same as those of S816, so a description thereof will be omitted.
[0136] Fig. 19 shows the transition of screens displayed on operation panel 307 of MFP 300 in each step of the flow in Fig. 17. Screen 1901 is a screen displayed as a result of the processing of S1707. Screen 1902 shows the screen after the character string of the telephone number on screen 1901 has been corrected by user operation 1903 in S1708. Screen 1904 is a screen displayed after S1708, and shows the state in which the registration button is pressed by user operation 1905. The arrows in Fig. 19 show the screen transitions. Screen 1901 transitions to screen 1902, and screen 1902 transitions to screen 1904.
[0137] As described above, according to this embodiment, even when extracting key values by performing character recognition processing on some character regions, it is possible to determine the correct character region corresponding to the item to be corrected based on the corrected character string entered by the user. Therefore, since the user does not need to perform the troublesome operation of entering the character region corresponding to the item, usability can be improved.
[0138] In the above description, the key-value extraction server 200 detects the character area and performs character recognition processing, but the MFP 300 may have functions similar to those of the character area detection unit and the OCR unit. In that case, the detection of the character area and the character recognition processing described in the above sequence diagram may be performed by the MFP 300.
[0139] <Embodiment 3> In the third embodiment, as in the second embodiment, a method for determining the correct character area of an item to be corrected when extracting a key value based on the result of character recognition processing executed only on some character areas of a scanned image is described. However, in the third embodiment, a method for determining the correct character area corresponding to the item to be corrected using the position where the user touched the screen is also described. This embodiment is described mainly with respect to the differences from the second embodiment. The configuration and processing are the same as those of the second embodiment unless otherwise specified.
[0140] 20 is a sequence diagram showing the processing in the input support system of this embodiment. Since steps S2001 to S2009 are the same as steps S1701 to S1709, the description thereof will be omitted.
[0141] In this embodiment, if the difference between the character string corrected by the user and the character string of the item to be corrected in the key-value extraction result is not within a predetermined range (NO in S2009), the processes of S2010 to S2015 are performed. The processes of S2010 to S2012 are the same as the processes of S810 to S812.
[0142] That is, in S2010, the UI unit 501 displays a preview image based on the image data of the scanned document (document) on the operation panel 307. Then, the UI unit 501 prompts the user to touch the preview image on the operation panel 307 to indicate the correct character area corresponding to the item to be corrected that the user has instructed to correct.
[0143] In S2011, the user touches the preview screen displayed on operation panel 307 of MFP 300 to indicate the position of the correct character area of the item for which the user has instructed to correct, in which the corrected character string is entered.
[0144] In S2012, the UI unit 501 of the MFP 300 accepts a touch by the user and detects the touch position on the operation panel 307. The correction result transmission unit 505 converts the touch position on the operation panel 307 touched by the user into touch position coordinates mapped to the coordinates of the image, and determines the touch position coordinates. Then, the UI unit 501 displays a screen 1505 on the operation panel 307, and accepts pressing of a registration button by the user. The correction result transmission unit 505 transmits the corrected character string input by the user and the touch position coordinates to the key-value extraction server 200.
[0145] In S2013, the OCR unit 402 of the key-value extraction server 200 executes character recognition processing on all the character areas detected in S2003.
[0146] The process of S2014 is the same as S813. That is, in S2014, the correction result acquisition unit 406 of the key-value extraction server 200 acquires the touch position coordinates, the corrected character string, and the item to be corrected transmitted from the MFP 300. The area determination unit 404 of the key-value extraction server 200 derives the distance between the touch position coordinates and the character area of all lines of the key-value extraction result. The area determination unit 404 determines, among the character areas whose distance is equal to or less than a predetermined value, the character area in which the character string having the smallest edit distance with the corrected character string is recognized, as the correct character area corresponding to the item to be corrected. The predetermined value is, for example, 100.
[0147] For example, it is assumed that touch position 1210 shown in FIG. 12 is the position touched by the user in S2011, and the touch position coordinates are determined to be (x, y)=(1110, 493) in S2012.
[0148] Fig. 13 shows the results of performing character area detection, character recognition processing, and key-value extraction on the image data of Fig. 12. It is assumed that the label "phone number" in column 1312 is not assigned to the correct character area. Column 1311 in Fig. 13 holds the edit distance between the character string "0123-45-6789" corrected by the user's input and the character string resulting from the character recognition in Fig. 13.
[0149] Column 1301 in Fig. 13 is a column that holds the distance between the position of a character area and the touch position in the image touched by the user, and indicates the distance from the character area when the touch position coordinates are (1110, 493). Rows 1307 to 1310 are records having character areas whose distance from the touch position coordinates is a predetermined value of 100 or less. Of rows 1307 to 1310, area determination unit 404 determines that the character area in row 1308, which has the smallest edit distance in column 1311, is the correct character area corresponding to the "phone number" item that the user has instructed to correct.
[0150] Since steps S2015 to S2017 are similar to steps S1712 to S1714, the description thereof will be omitted.
[0151] Note that this embodiment may be applied in combination with the method of embodiment 2. For example, in the sequence diagram of Fig. 17 of embodiment 2, if the correct character area cannot be determined in S1711, steps S2010 to S2012 may be performed, the character recognition process of S2013 may be skipped, and the processes of S2014 to S2017 may be performed.
[0152] As described above, according to this embodiment, even when extracting a key value by performing character recognition processing on a part of the character area, it is possible to determine the correct character area corresponding to the item based on the corrected character string input by the user. Therefore, since the user does not need to perform a cumbersome operation such as inputting the character area corresponding to the item, usability can be improved.
[0153] <Other embodiments> The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]
[0154] 300 MFP 501 UI section 504 Key value extraction result acquisition part 506 Area determination section 505 Correction Result Transmission Unit
Claims
1. an acquisition means for acquiring an extraction result including a processing result including information on a character string in an image and a character area in which the character string is recognized, obtained by performing character recognition processing on image data of the image, and information on a character string and a character area in which the character string is recognized, in the image corresponding to each of the predetermined items, the information being output by inputting the processing result into a learning model trained to output information on a character string and a character area corresponding to each of the predetermined items; a display control means for displaying character strings corresponding to the respective predetermined items on a display unit based on the extraction result; a receiving means for receiving, from a user, an instruction to correct a character string corresponding to any one of the predetermined items displayed on the display unit; a correction means for determining a character area corresponding to an item for which a user has instructed correction based on the corrected character string and the processing result, and correcting the extraction result based on the determination; an output means for outputting the extraction result corrected by the correction means as data for learning the learning model; 13. An information processing device comprising:
2. The correction means is Among the character regions in the image recognized by the character recognition process, a character region in which a character string identical to the corrected character string is recognized is determined as a character region corresponding to the item instructed to be corrected by the user.
2. The information processing apparatus according to claim 1,
3. The correction means is When there is one character string, among the character strings recognized in the character recognition process, whose edit distance from the corrected character string is equal to or less than a predetermined value, the character region in which the character string, among the character regions in the image recognized in the character recognition process, is recognized and whose edit distance is equal to or less than the predetermined value is determined as the character region corresponding to the item instructed to be corrected by the user.
3. The information processing apparatus according to claim 1, wherein the information processing apparatus is a computer.
4. 4. The information processing apparatus according to claim 3, wherein the predetermined value is one.
5. The correction means is When a difference between a character string extracted based on the output result of the learning model corresponding to the item instructed by the user to be corrected and the corrected character string is within a predetermined range, the character region in the extraction result corresponding to the item instructed by the user to be corrected is not corrected.
5. The information processing apparatus according to claim 1, wherein the information processing apparatus is a computer.
6. The case where the character string is within the predetermined range means that the edit distance between the character string extracted based on the output result of the learning model and the corrected character string is 1 or less.
6. The information processing apparatus according to claim 5,
7. a second receiving means for receiving a touch position where the user touches the display unit as a position in the image corresponding to the item that the user has instructed to be corrected; and a second correction means for determining the character area corresponding to the item for which a user has instructed correction based on the touch position, the corrected character string, and the processing result, and correcting the extraction result based on the determination.
7. The information processing apparatus according to claim 1,
8. The second correction means includes: A distance is derived between a position in the image based on the touch position and a position of each character area in the image recognized by the character recognition process, and among the character areas where the distance is within a predetermined range, the character area in which a character string having a smallest edit distance with the corrected character string is recognized by the character recognition process is determined to be the character area corresponding to the item instructed to be corrected by the user.
8. The information processing apparatus according to claim 7,
9. when the correction means cannot determine a character area corresponding to the item instructed to be corrected by the user, the second correction means determines a character area corresponding to the item instructed to be corrected by the user; When the second correction means determines a character region corresponding to an item instructed by the user to be corrected, the output means outputs the extraction result corrected based on the determination by the second correction means as data for learning by the learning model.
9. The information processing apparatus according to claim 7, wherein the information processing apparatus is a computer.
10. The output means includes: When the second correction means cannot determine a character area corresponding to the item instructed by the user to be corrected, the data for learning is not output.
10. The information processing apparatus according to claim 9,
11. The image is a scanned image obtained by scanning an original, and the apparatus further includes an image data transmission unit for transmitting image data of the image to a server that performs the character recognition process.
11. The information processing device according to claim 1,
12. the extraction result acquired by the acquiring means is a table in which character strings in the image obtained by performing the character recognition process on the image data of the image, character areas in the image where the character strings are recognized, and values indicating which of the character strings corresponds to each of the predetermined items are associated with each other; When the table is modified, the output means outputs the table reflecting the modification as the data for learning.
12. The information processing apparatus according to claim 1,
13. character recognition means for performing character recognition processing on image data of an image; a transmitting means for transmitting to the information processing device according to any one of claims 1 to 12, the extraction result including a processing result including information on a character string in the image obtained by the character recognition processing by the character recognition means and a character area in which the character string is recognized, and information on a character string and a character area in the image corresponding to each of the predetermined items output by inputting the processing result into the learning model; A learning means for acquiring data for the learning model from the information processing device and training the learning model based on the data for learning; A server comprising:
14. a character string after correction in the item instructed by the user to be corrected, and a touch position where the user touched the display unit as a position in the image corresponding to the item instructed by the user to be corrected; A correction result acquisition means for acquiring the result; and a third correction means for determining a character area corresponding to an item for which the user has instructed to correct, based on the touch position, the corrected character string, and the processing result, and correcting the extraction result based on the determination. The learning means includes: When the data for the learning is not output from the information processing device, the learning model is trained based on the extraction result corrected by the third correction means.
14. The server according to claim 13.
15. A system including an information processing device and a server, The server, character recognition means for performing character recognition processing on image data of an image; a transmitting means for transmitting to the information processing device an extraction result including a processing result including information on a character string in the image obtained by character recognition processing by the character recognition means and a character area in which the character string is recognized, and information on a character string and a character area in the image corresponding to each of the predetermined items, which is output by inputting the processing result into a learning model trained to output information on a character string and a character area corresponding to each of the predetermined items defined in advance; having The information processing device an acquisition means for acquiring the extraction result transmitted from the transmission means; a display control means for displaying character strings corresponding to the respective predetermined items on a display unit based on the extraction result; a receiving means for receiving, from a user, an instruction to correct a character string corresponding to any one of the predetermined items displayed on the display unit; a correction means for determining a character area corresponding to an item for which a user has instructed correction based on the corrected character string and the processing result, and correcting the extraction result based on the determination; an output means for outputting the extraction result corrected by the correction means as data for learning the learning model; The server, The information processing device further includes a learning means for learning the learning model based on data for learning the learning model output from the output means of the information processing device. A system characterized by:
16. an acquisition step of acquiring an extraction result including a processing result including information on a character string in an image and a character area in which the character string is recognized, obtained by performing character recognition processing on image data of the image, and information on a character string and a character area in which the character string is recognized, in the image corresponding to each of the predetermined items, which is output by inputting the processing result into a learning model trained to output information on a character string and a character area corresponding to each of the predetermined items; a display control step of displaying character strings corresponding to the respective predetermined items on a display unit based on the extraction result; a receiving step of receiving, from a user, an instruction to correct a character string corresponding to any one of the predetermined items displayed on the display unit; a correction step of determining a character area corresponding to an item instructed by a user to be corrected based on the corrected character string and the processing result, and correcting the extraction result based on the determination; an output step of outputting the extraction result corrected in the correction step as data for learning by the learning model; 13. An information processing method comprising:
17. A program for causing a computer to function as each of the means of the information processing device according to any one of claims 1 to 12.
Citation Information
Patent Citations
Method for supporting slip input
JP2000003403A
Information processing system, control method, and program
JP2018195022A
