Information processing device and program

The information processing device addresses the limitation of conventional key-value extraction by using a dictionary to associate target character strings with related ones, enabling accurate and user-controlled extraction of target information from reference pages.

JP7562970B2Active Publication Date: 2024-10-08FUJIFILM BUSINESS INNOVATION CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020050658
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-03-23
Publication Date
2024-10-08
Estimated Expiration
2040-03-23

AI Technical Summary

Technical Problem

Conventional key-value extraction techniques fail to extract target information when it is not present in the vicinity of the target character string, as seen in documents like contracts where the information may be written around a different character string.

Method used

An information processing device that uses an association dictionary to link a target character string with related character strings, allowing extraction of target information from the position of the related character string in a reference page, and includes user interaction to create or modify this dictionary.

Benefits of technology

Enables the extraction of target information even when it is not directly adjacent to the target character string, improving accuracy and flexibility by allowing user-defined associations and reducing unwanted extractions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007562970000001
    Figure 0007562970000001
  • Figure 0007562970000002
    Figure 0007562970000002
  • Figure 0007562970000003
    Figure 0007562970000003
Patent Text Reader

Abstract

To extract target information with respect to a target character string even in the case where the target information does not exist in a region set with reference to a position of the target character string in a document image.SOLUTION: An information processing device includes a processor configured to: acquire a document image 100 illustrating a document; acquire a related character string (character strings 122 to 125) associated with a target character string (key 111) included in the document image 100; and extract target information (information 126-129) corresponding to the target character string from a region set with reference to a position of the related character string (character strings 122 to 125) in the document image 100.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 information processing device and a program. [Background technology]

[0002] There is a known technology that uses key-value extraction technology to extract target information from a document. For example, Patent Document 1 describes a technology that identifies an area that contains a keyword and performs character recognition processing on the identified area to extract a value. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-128996 A Summary of the Invention [Problem to be solved by the invention]

[0004] Conventional key-value extraction technology extracts target information from the vicinity of a target string. However, in documents such as contracts, there are cases where the target information does not exist around the target string, and the target information is written around a string different from the target string. For example, if the target string is "the land in question" and the target information for the target string is attribute information of the land in question, the target information for the target string may be written around strings indicating the attributes "location," "land number," "land area," and "land use." In this case, since there is no target information around the target string, conventional key-value extraction technology cannot extract the target information. An object of the present invention is to extract target information for a target character string even when the target information does not exist in an area based on the position of the target character string in a document image. [Means for solving the problem]

[0005] The invention of claim 1 is an information processing device comprising a processor and a memory, the memory storing an association dictionary associating a target string with a related string, the processor acquiring a document image representing a document, and when a reference string indicating a reference is included in an area based on the position of the target string included in the document image, acquiring the related string associated with the target string in the association dictionary from the referenced page that is different from the page containing the target string, and extracting target information for the target string from the area based on the position of the related string on the referenced page. The invention of claim 2 is characterized in that, in the information processing device described in claim 1, when the target string and the related string are not associated, the processor associates a string contained in the reference destination with the target string as the related string. The invention of claim 3 is an information processing device according to claim 2, wherein when the association dictionary in which the related string is associated with the target string is not stored in the memory, the processor extracts at least one string from the referenced page, displays on a display unit a selection screen for selecting the related string from the at least one extracted string, creates the association dictionary in which the related string selected by a user's operation on the selection screen is associated with the target string, and stores the association dictionary in the memory. The invention of claim 4 is characterized in that, in the information processing device described in claim 1, the processor acquires a plurality of related strings associated with the target string, and extracts a plurality of target information for the target string from a plurality of areas based on the positions of the plurality of related strings. The invention of claim 5 is characterized in that, in the information processing device described in claim 4, the processor extracts target information selected by a user's operation from the multiple target information included in the multiple areas, and disassociates the target string from related strings other than the related string corresponding to the selected target information from the multiple related strings. The invention of claim 6 is characterized in that, in the information processing device described in claim 1, a plurality of related strings are associated with the target string, and the processor acquires attribute information and acquires different related strings associated with the target string by the attribute information. The invention of claim 7 is characterized in that, in the information processing device described in claim 6, the attribute information includes a type of the document, a content of the document, a user identifier, or an identifier of an organization to which the user belongs. The invention of claim 8 provides a program for causing a computer to execute the steps of: acquiring a document image showing a document; and, when a reference string indicating a reference is included in an area based on the position of a target string included in the document image, acquiring a related string associated with the target string in an association dictionary stored in a memory from the referenced page that is different from the page including the target string; and extracting target information for the target string from an area based on the position of the related string on the referenced page. Effect of the Invention

[0014] According to the invention of claim 1, even if the target information does not exist in an area based on the position of the target character string in the document image, the target information for the target character string can be extracted. Claim 1 According to the present invention, the target information for the target string can be extracted even when the target information is included in the reference destination. Claim 2 According to the present invention, even if a related string is not associated with a target string in advance, target information in an area based on the position of the related string can be extracted. Claim 3 According to the present invention, even if a character string is included in a reference, if the character string is not desired by the user, it can be excluded from related character strings. Claim 4 According to the present invention, even when a plurality of pieces of target information exist for a target character string, these pieces of target information can be extracted. Claim 5 According to the present invention, it is possible to prevent target information that is not desired by the user from being extracted from the next time onwards. Claim 6 According to the present invention, different target information can be extracted depending on attribute information. Claim 7 According to the present invention, it is possible to extract different target information depending on the type of document, the content of the document, the user, or the organization to which the user belongs. Claim 8 According to the present invention, even if the target information does not exist in an area based on the position of the target character string in the document image, the target information for the target character string can be extracted. [Brief description of the drawings]

[0015] [Figure 1] 1 is a diagram illustrating an example of a configuration of an image processing device 10 according to an embodiment. [Diagram 2] FIG. 1 is a diagram showing an example of a document image 100. [Diagram 3] 4 is a flowchart showing an example of the operation of the image processing device 10. [Figure 4] 4 is a flowchart showing an example of the operation of the image processing device 10. [Diagram 5] 13 is a flowchart illustrating an example of a process for extracting a value from a reference destination. [Figure 6] FIG. 2 is a diagram showing an example of a related dictionary 130. [Figure 7] FIG. 13 is a diagram showing an example of a selection screen 135. [Figure 8] FIG. 13 is a diagram showing an example of a selection screen 140. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] 1. Configuration FIG. 1 is a diagram showing an example of the configuration of an image processing device 10 according to the present embodiment. The image processing device 10 is an example of an information processing device according to the present invention. The image processing device 10 scans and reads a document to obtain a document image. The document includes a fixed-form document such as a form, and an unfixed-form document such as an estimate or a contract. The image processing device 10 also has a character recognition function and extracts a value based on a key included in the document image. The key is a character string that serves as a marker for the value. The key includes at least one of a character, a number, and a symbol. The key is an example of a "target character string" according to the present invention. The value is information desired by a user. The value includes at least one of a character, a number, a symbol, and an image. The image may be a photograph, a seal, or a figure. The value is an example of a "target information" according to the present invention. Note that the "character string" here may include not only characters, but also numbers and symbols. The value extracted from the document image is used for various processes. For example, the value extracted from the document image may be used as a file name or folder name for the document image, or may be sent to a destination specified for the value.

[0017] The image processing device 10 includes a processor 11, a memory 12, an image reading unit 13, a storage unit 14, an operation unit 15, and a display unit 16. These hardware elements are connected via a bus 17. The processor 11 executes a program to control each unit of the image processing device 10 and extracts a value corresponding to a key from a document image. The processor 11 may be, for example, a central processing unit (CPU). The memory 12 stores a program executed by the processor 11. The memory 12 may be, for example, a read only memory (ROM) and a random access memory (RAM). The image reading unit 13 reads a document and generates a document image. The image reading unit 13 may be, for example, an image scanner. The storage unit 14 stores the document image generated by the image reading unit 13 and the value extracted from the document image. The storage unit 14 may be, for example, a hard disk drive or a solid state drive (SSD). The operation unit 15 is used for a user to operate the image processing device 10. A touch panel and buttons, for example, are used for the operation unit 15. The display unit 16 displays various screens used for user operations. The display unit 16 is, for example, a liquid crystal display.

[0018] Fig. 2 is a diagram showing an example of a document image 100. The document image 100 shown in Fig. 2 is an image showing a land purchase contract, and has multiple pages. The document image 100 includes a first page 110 and a fourth page 120. Here, the key is "(hereinafter referred to as "the land in question")" and the value is detailed information that can identify the contents of the land in question.

[0019] On page 110, key 111 "(hereinafter referred to as "the land in question")" is recorded. However, no value for key 111, i.e., no detailed information about the land in question, is recorded around key 111. Instead, in an area defined based on the position of key 111 (hereinafter referred to as the "surrounding area"), a reference string 112 indicating a reference to "Land in Attached Property Inventory" is recorded. This indicates that the value corresponding to key 111 is recorded on another page 120 titled "Property Inventory".

[0020] At the top of page 120, title 121 "Property Catalog" is written in a font size larger than the standard font size. However, page 120 does not contain key 111 "(hereinafter referred to as "the Land in Question")", reference string 112, or any of their substrings. Instead, page 120 contains string 122 "Location", string 123 "Land Number", string 124 "Land Use", string 125 "Land Area", which are related to key 111. All of these strings 122 to 125 indicate items of attribute information for the Land in Question. Furthermore, on page 120, within the area surrounding these character strings 122-125, detailed information on the land in question is written, namely, information 126 which is the location of the land in question, "XX-chome, Minatomirai, Nishi-ku, Yokohama," information 127 which is the land number of the land in question, information 128 which is the land use of the land in question, "residential land," and information 129 which is the area of ​​the land in question, "80.21 square meters." These pieces of information 126-129 are detailed information that can identify the contents of the land in question, and therefore are values ​​for key 111. Thus, key 111 has four values.

[0021] 2. Operation In the following description, when the processor 11 is described as the subject of processing, this means that processing is performed by the processor 11 performing calculations or controlling the operation of other hardware elements through cooperation between a program stored in memory 12 and the processor 11 executing this program.

[0022] 3 and 4 are flowcharts showing an example of the operation of the image processing device 10. The process shown in FIG. 3 is started in response to, for example, a user setting a document in the image processing device 10 and performing an operation to instruct the start of reading using the operation unit 15. In step S11, the processor 11 causes the image reading unit 13 to read the document in response to this operation. As a result, a document image showing the document is obtained. In the example shown in FIG. 2, a land purchase contract is read, and a document image 100 showing this land purchase contract is obtained.

[0023] In step S12, the processor 11 recognizes characters included in the document image obtained in step S11. For this character recognition, for example, OCR (Optical character recognition) is used.

[0024] In step S13, processor 11 searches for a target key on the target page of the document image. In the initial state, the target page is the first page, and the target key is the first key. Here, it is assumed that the first key is "(hereinafter referred to as "the land in question")". This key is registered in advance. In this case, the key "(hereinafter referred to as "the land in question")" is searched for on the first page.

[0025] In step S14, the processor 11 judges whether or not the target key is detected as a result of the search in step S13. If the target key is not detected (NO in step S14), the process proceeds to step S15, where the processor 11 judges whether or not the target page is the last page. If the target page is the last page (YES in step S15), the process proceeds to step S21 in FIG. 4. On the other hand, if the target page is not the last page (NO in step S15), the process proceeds to step S16, where the processor 11 sets the next page as the target page, and then returns to the above-mentioned step S13. This causes the processes in steps S13 to S14 to be repeated for the next page. On the other hand, if the target key is detected (YES in step S14), the process proceeds to step S17. In the example shown in FIG. 2, the key 111 "(hereinafter referred to as "this land")" is written on the first page 110, so this key 111 is detected and the process proceeds to step S17. The detected key 111 is stored in the memory 12.

[0026] In step S17, processor 11 searches for a reference string in the peripheral range of the target key detected in step S14. Here, the peripheral range is assumed to be between the target key and the nearest comma preceding the target key. Also, the reference string is assumed to be a string including "attached sheet". In step S18, processor 11 determines whether or not the reference string is detected as a result of the search in step S17. If the reference string is not detected (NO in step S18), the process proceeds to step S19, where processor 11 extracts a value from the peripheral range of the target key. If the format of the value is predetermined, information of the predetermined format included in the peripheral range is extracted as the value. The extracted value is then stored in memory 12.

[0027] On the other hand, if a reference string is detected in step S18 (determination in step S18 is YES), the process proceeds to step S20, where processor 11 performs a process of extracting a value corresponding to the target key from the reference destination indicated by the reference string detected in step S18. Here, it is assumed that the surrounding area of ​​key 111 is between key 111 and the nearest comma preceding key 111. In the example shown in FIG. 2, reference string 112, "Land in Attached Property List," is written in the surrounding area of ​​key 111. Therefore, this reference string 112 is detected in step S18. Then, in step S20, a process of extracting a value corresponding to the target key from the reference destination indicated by reference string 112 is performed.

[0028] FIG. 5 is a flowchart showing an example of the process of extracting a value from a reference destination performed in step S20. In step S31, the processor 11 detects a title from each page of the document image. Note that this detection of the title does not necessarily have to be performed for all pages, and may be performed for pages after the target page, and may not be performed for the target page. This detection of the title is performed, for example, based on the position on the page where the title is considered to be written and the font size considered to be used for the title. In the document image 100 shown in FIG. 2, the title is written at the top of each page in a font size larger than the reference font size. In this case, a character string with a font size larger than the reference font size written at the top of each page is detected as the title. For page 120, a character string "Property Catalog" is detected as the title 121. For other pages included in the document image 100, titles are detected in the same manner. Note that if a title is not detected, a character string written in the first line of the page may be used as the title. Also, if a title has already been detected in the above-mentioned step S12, step S31 may be skipped.

[0029] In step S32, processor 11 identifies the reference destination according to the title detected in step S31. For example, a page having a title corresponding to reference string 112 is identified as the reference destination. The title corresponding to reference string 112 may include a title that includes at least a part of reference string 112 or a title similar to reference string 112. In the example shown in FIG. 2, title 121 of page 120 includes the string "Property Catalog", which is part of reference string 112, "Land in Attached Property Catalog". In this case, page 120 having this title 121 is identified as the reference destination.

[0030] In step S33, processor 11 determines whether the pattern of reference string 112 is included in the reference identified in step S32. For example, moving to page 120 shown in FIG. 2, pattern matching is used to search for reference string 112 "Land in Attached Property List." For this pattern matching, for example, a substring of reference string 112 expressed by a regular expression, such as "Property," "List," or "Land," is used. Then, the substring of reference string 112 is searched for in reference page 120, and if the substring of reference string 112 is detected as a result of this search, it is determined that page 120 contains the pattern of reference string 112 (YES in step S33), and the process proceeds to step S34.

[0031] In step S34, processor 11 extracts a value from the peripheral range of the pattern of reference string 112 in the reference destination identified in step S32. If the format of the value is predetermined, information of the predetermined format included in the peripheral range is extracted as the value. The extracted value is then stored in memory 12.

[0032] On the other hand, in the example shown in FIG. 2, the main text of page 120 (excluding title 121) does not contain reference string 112 patterns such as "property," "catalog," or "land" (determination in step S33 is NO). In this case, proceed to step S35. In step S35, processor 11 determines whether or not a related string is associated with the target key. For example, if an associated dictionary 130 that associates the target key with a related string is stored in memory unit 14, it is determined that there is an associated dictionary 130 corresponding to the target key (determination in step S35 is YES), and proceed to step S39.

[0033] FIG. 6 is a diagram showing an example of the related dictionary 130. The related dictionary 130 includes keys and related character strings. One or more related character strings are associated with each key. In the example shown in FIG. 6, a character string 122 of "location", a character string 123 of "land number", a character string 124 of "land use", and a character string 125 of "land area" are associated with a key 111 of "(hereinafter referred to as "this land")". The association of the key with the related character strings is performed, for example, by an operation of a user or an administrator. Alternatively, a term that is a subordinate concept of the key may be extracted using a dictionary, and the extracted term may be associated with the key as a related character string. In this case, only a term selected from the terms that are subordinate concepts of the key in response to an operation of a user may be associated with the key as a related character string.

[0034] In step S39, the processor 11 searches for related character strings in the reference destination identified in step S32, using the relevance dictionary 130. In the example shown in Fig. 2, the page 120 of the reference destination is first moved to. In the relevance dictionary 130 shown in Fig. 6, the character strings 122 to 125 of "location", "lot number", "land use", and "area" are associated as related character strings with the key 111 of "(hereinafter referred to as "the land in question")". In this case, these character strings 122 to 125 are obtained from the relevance dictionary 130 as related character strings. Then, these character strings 122 to 125 are searched for in the reference destination page 120.

[0035] In step S40, the processor 11 judges whether or not a related character string is detected as a result of the search in step S39. If a related character string is not detected (NO in step S40), the process proceeds to step S41, where the processor 11 judges whether or not the reference destination is the last page. If the reference destination is the last page (YES in step S41), the process proceeds to step S21 shown in FIG. 5. On the other hand, if the reference destination is not the last page (NO in step S41), the process proceeds to step S42, where the processor 11 sets the next page as the reference destination, and then returns to the above-mentioned step S39. As a result, the processes from step S39 to S40 are repeated for the next page. On the other hand, if a related character string is detected in the above-mentioned step S40 (YES in step S40), the process proceeds to step S43. In the example shown in FIG. 2, the character strings 122 to 125, which are related character strings, are written on the page 120, and these character strings 122 to 125 are detected. Then, the process proceeds to step S43.

[0036] In step S43, the processor 11 extracts a value from the surrounding range of the related character string detected in step S40. Here, the surrounding range is an area extending in the left-right direction from the position of the related character string and having a size equal to or smaller than a predetermined distance. The direction and distance of the surrounding range may differ depending on the related character string. When the format of the value is predetermined, information of the predetermined format included in the surrounding range is extracted as the value. In the example shown in FIG. 2, information 126 "Yokohama City Nishi Ward Minatomirai XX chome" is extracted from the surrounding range of the character string 122 "Location" written on page 120. In addition, information 127 "XXX number" is extracted from the surrounding range of the character string 123 "Land number" written on page 120. Furthermore, information 128 "Residential land" is extracted from the surrounding range of the character string 124 "Land use" written on page 120. Furthermore, information 129, “80·21 square meters”, is extracted from the surrounding area of ​​character string 125, “land area”, written on page 120. The extracted information 126 to 129 is stored in memory 12 as the value for key 111.

[0037] On the other hand, in the above-mentioned step S35, for example, if the related dictionary 130 is not stored in the storage unit 14, it is determined that the related character string is not associated with the target key (NO in step S35), and the process proceeds to step S36. In step S36, the processor 11 extracts a character string from the reference destination identified in step S32. At this time, all character strings included in the page 120 may be extracted, or only some character strings included in the page 120 may be extracted according to a predetermined condition. Also, together with the character string, information in the surrounding area of ​​the character string may be extracted.

[0038] The predetermined condition may be, for example, a condition indicating that the character string is a character string that is predetermined for the target key. In this case, only the character string that is predetermined for the target key is extracted from the character strings included in the page 120. In another example, the predetermined condition may be a condition indicating that the character string is a subordinate concept of the target key. In this case, only the character string that is a subordinate concept of the target key is extracted from the character strings included in the page 120. The subordinate concept character string may be specified, for example, by using a dictionary. In another example, the predetermined condition may be a condition indicating that the character string is a noun character string. In this case, for example, by analyzing a document included in the page 120, only the character string that is a noun character string is extracted from the character strings included in the page 120. For example, morphological analysis may be used to analyze the document. In another example, if the page 120 includes a table, the predetermined condition may be a condition indicating that the character string is written in a specified column or row of the table. In this case, only the character string written in a specified column or row of the table is extracted from the character strings included in the page 120. In the example shown in FIG. 2, character strings including "location", "land number", "land use", and "land area" are extracted from the page 120.

[0039] In step S37, the processor 11 causes the display unit 16 to display a selection screen 135 used for an operation of selecting a related character string from the character strings extracted in step S36. FIG. 7 is a diagram showing an example of the selection screen 135. The selection screen 135 includes character strings 122-125, such as "Location", "Land number", "Land type", and "Land area", extracted in step S36, and information 126-129, such as "XX chome, Minatomirai, Nishi-ku, Yokohama", "XXX number", "Residential land", and "80-21 square meters", which are located in the surrounding area of ​​the character strings 122-125. The user uses the operation unit 15 to perform an operation of selecting a related character string corresponding to the key 111 from the character strings 122-125. For example, when the user wishes to use information 126-129 in the surrounding area of ​​character strings 122-125 such as "Location", "Land number", "Land type", and "Area" as values ​​for key 111, the user performs an operation to select these character strings 122-125 using operation unit 15, and then performs an operation to press "OK" button 136. As a result, these character strings 122-125 are selected as related character strings. Note that, in the selection screen 135, character strings other than the character strings extracted in step S36 may be added and selected in response to a user operation.

[0040] In step S38, the processor 11 creates the association dictionary 130 using the related character string selected by the user's operation on the selection screen 135. For example, when the character strings 122 to 125 of "location", "lot number", "land use", and "land area" are selected, as shown in FIG. 6, the association dictionary 130 is created in which the key 111 of "(hereinafter referred to as "the land in question")" is associated with the character strings 122 to 125 of "location", "lot number", "land use", and "land area". The association dictionary 130 created in this manner is stored in the storage unit 14. In this case, in step S39, the related character string is searched for in the reference destination using the association dictionary 130 created in step S38.

[0041] When the process of extracting values ​​from the reference destinations is completed, the process proceeds to step S21 shown in Fig. 4, where processor 11 determines whether values ​​corresponding to all keys have been extracted. If values ​​corresponding to all keys have not been extracted (determination in step S21 is NO), the process proceeds to step S22, where processor 11 sets the next key as the target key, and then returns to step S13 shown in Fig. 3. This causes the processes in steps S13 to S21 described above to be repeated for the next key. On the other hand, if values ​​corresponding to all keys have been extracted (determination in step S21 is YES), the process proceeds to step S23.

[0042] In step S23, processor 11 determines whether or not there is a key from which multiple values ​​have been extracted. For example, if one value has been extracted for each key (determination in step S23 is NO), the process proceeds to step S26. On the other hand, if multiple values ​​have been extracted for at least one key (determination in step S23 is YES), the process proceeds to step S24. In the example shown in FIG. 2, information 126 to 129 are extracted as values ​​for key 111, so the process proceeds to step S24.

[0043] In step S24, the processor 11 displays on the display unit 16 a selection screen 140 used for an operation of selecting a desired value from among a plurality of values. FIG. 8 is a diagram showing an example of the selection screen 140. The selection screen 140 includes information 126, "XX-chome, Minatomirai, Nishi-ku, Yokohama-shi", information 127, "XXX-banchi", information 128, "residential land", and information 129, "80-21 square meters", which are values ​​extracted for the key 111 shown in FIG. 2. For example, when selecting information 126, 128, and 129 from among the information 126 to 129, the user performs an operation of selecting the information 126, 128, and 129, and then performs an operation of pressing an "OK" button 141. It should be noted that the user does not necessarily need to select some of the information 126 to 129, and may select all of the information 126 to 129.

[0044] In step S25, the processor 11 selects a value from among a plurality of values ​​in accordance with a user's operation. For example, when an operation to select information 126, 128, and 129 is performed as shown in Fig. 8, the information 126, 128, and 129 are selected. In this case, the information 126, 128, and 129 are used as values ​​for the key 111, but the information 127 is not used as a value for the key 111.

[0045] In step S26, the processor 11 stores in the storage unit 14 a set of each key and the value extracted in step S19, S34, or S43. In the example shown in FIG. 8, a set of the key 111 "(hereinafter referred to as "the land in question")", the information 126 "XX chome, Minatomirai, Nishi-ku, Yokohama", the information 128 "residential land", and the information 129 "80-21 square meters" is stored. This set may include character strings 122, 124, and 125 of "location", "land use", and "land area" in association with the information 126, 128, and 129. In addition, this set of key and value may be added to the document image 100 as attribute information. After step S26, this process ends.

[0046] According to the embodiment described above, if a value does not exist in the peripheral range of a key but exists in the peripheral range of a related string of the key, a value is extracted from the peripheral range of the related string, so that even in such a case, a value for the key can be extracted. Also, even if the reference destination does not include the key, the reference string, or a substring thereof, a value for the key can be extracted. Furthermore, if a reference string indicating the reference destination exists in the peripheral range of the key, a value for the key is extracted in the reference destination, so that even in such a case, a value can be extracted. In this case, since the reference destination is moved to and the related string is searched for in the reference destination, the related string can be detected more quickly than when the entire document image is searched for the related string, and the detection accuracy of the related string is improved. Furthermore, if the related string is not previously associated with the key, the related dictionary 130 is created, and the value in the peripheral range of the related string is extracted using the related dictionary 130, so that even in such a case, a value in an area based on the position of the related string can be extracted. Furthermore, when the relevance dictionary 130 is created, only the character string selected by the user from among the character strings included in the reference destination is included as a related character string in the relevance dictionary 130, so that even if a character string is included in the reference destination, a character string that the user does not want can be excluded from the related character strings. Furthermore, when multiple related character strings are associated with one key, multiple values ​​are extracted, so that even when multiple values ​​exist for one key, these values ​​can be extracted.

[0047] 3. Variations The above-described embodiment is an example of the present invention. The present invention is not limited to the above-described embodiment. The above-described embodiment may be modified as in the following example. In this case, two or more of the following modified examples may be used in combination.

[0048] In the above embodiment, when a value is selected in step S25, among the related strings associated with the key, the related strings other than the related string corresponding to the selected value may be released from the association with the key. For example, as shown in FIG. 8, when the information 127 of "XXX number" is not selected, the association between the character string 123 of "land number" corresponding to this information 127 and the key 111 in the related dictionary 130 shown in FIG. 6 may be released. In this case, from the next time, when extracting a value for the key 111, the character string 123 of "land number" will not be used as a related string, and therefore the information 127 of "XXX number" will not be extracted as a value for the key 111. According to this modified example, it is possible to prevent values ​​that the user does not want from being extracted from the next time.

[0049] In the above-described embodiment, the processor 11 may acquire attribute information and acquire different associated character strings associated with the key by the attribute information. The attribute information includes, for example, the type of document, the contents of the document, the identifier of the user, or the identifier of the organization to which the user belongs. The document type includes, for example, a contract or a purchase order. The document type is input, for example, by the user's operation. For example, different associated character strings may be acquired when the document type is a contract and when the document type is a purchase order. The document content includes, for example, a content targeted for a dispatching contract and a content targeted for a sales contract. The document content is input, for example, by the user's operation. Alternatively, the document content may be determined by analyzing the document content. For example, different associated character strings may be acquired when the document content is targeted for a dispatching contract and when the document content is targeted for a sales contract. The user identifier includes, for example, a user ID. The user identifier is input, for example, by the user's operation. For example, different associated character strings may be acquired for a user who performs work related to licenses and a user who performs work related to a dispatching contract. The identifier of the organization to which the user belongs includes, for example, a department ID. The identifier of the organization may be obtained from a database in which the identifier of the user and the identifier of the organization to which the user belongs are associated, for example, by using the identifier of the user input by the user's operation. For example, different related strings may be obtained for a user who belongs to a department that performs work related to licenses and a user who belongs to a department that performs work related to a dispatch contract. As a method of obtaining different related strings depending on the attribute information, for example, a different related dictionary 130 may be created for each attribute information, and related strings may be obtained from the related dictionary 130 corresponding to the attribute information. Alternatively, the attribute information may be associated with the corresponding related strings in the related dictionary 130, and the related strings associated with the attribute information may be obtained. According to this modified example, different values ​​can be extracted depending on the attribute information. Also, different values ​​can be extracted depending on the type of document, the content of the document, the user, or the organization to which the user belongs.

[0050] In the above-described embodiment, the movement to the reference destination is not necessarily performed. For example, the related character string may be searched for in the entire document image 100. Even in this method, the value for the key can be extracted from the surrounding range of the related character string.

[0051] In the above-described embodiment, the relevance dictionary 130 may include a priority order. For example, the relevance strings may include similar strings such as "address" and "location." In this case, for example, the string "address" may be assigned a priority order of "1," and the string "location" may be assigned a priority order of "2," which is lower than "1." In this case, information within the surrounding range of the string "address" is extracted as a value, but information within the surrounding range of the string "location" is not extracted as a value.

[0052] In the above-described embodiment, the relevance dictionary 130 does not always need to be used. For example, whether or not to use the relevance dictionary 130 may be selected by a user's operation.

[0053] In the above-described embodiment, there is no related string associated with key 111 itself, "(hereinafter referred to as 'the land in question')", but if there is a related string associated with a partial string of key 111, the value for key 111 may be extracted using the related string associated with the partial string of key 111.

[0054] In the above-described embodiment, pattern matching may be used when searching for a target keyword, a reference string, or a related string. For example, when a related string is searched for using pattern matching, the related string is detected even if only a part of the related string is described in the reference.

[0055] In the above-described embodiment, the key and the value do not necessarily have to be written on different pages. For example, the related string and the value may be written at a location away from the key on a single page. For example, the key, the related string, and the value may be written in different lines, paragraphs, or chapters on a single page. In this case, for example, if a reference string is not detected in the surrounding area of ​​the target key on the target page (the determination in step S18 is NO), the related string of the target key may be searched for on the target page, and the value may be extracted from the surrounding area of ​​the related string.

[0056] In the above-described embodiment, the key and value are not limited to the above-described examples. For example, the value may be information that can identify the building that is the subject of the contract, and the key may be a character string that serves as a marker for this value. In other words, the value may be any information that is written in a document. Also, the key may be any character string that serves as a marker for the value.

[0057] In the above-described embodiment, an external device may have some of the functions of the image processing device 10. For example, a server device connected to the image processing device 10 via a communication line may perform a process of recognizing characters included in a document image.

[0058] In the above embodiment, the term "processor" refers to a processor in a broad sense, including general-purpose processors (e.g., CPU: Central Processing Unit, etc.) and dedicated processors (e.g., GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, programmable logic device, etc.).

[0059] In addition, the operations of the processor in the above embodiments may be performed not only by one processor, but also by multiple processors located at physically separate locations working together. The order of the operations of the processor is not limited to the order described in the above embodiments, and may be changed as appropriate.

[0060] The present invention may be provided as a program executed in the image processing device 10. The image processing device 10 is an example of a computer according to the present invention. This program may be downloaded via a communication line such as the Internet, or may be provided in a state recorded on a computer-readable recording medium such as a magnetic recording medium (magnetic tape, magnetic disk, etc.), an optical recording medium (optical disk, etc.), a magneto-optical recording medium, or a semiconductor memory. [Explanation of symbols]

[0061] 10: image processing device, 11: processor, 12: memory, 13: image reading unit, 14: storage unit, 15: operation unit, 16: display unit

Claims

1. A processor and a memory, The memory stores an association dictionary that associates a target string with an associated string; The processor, obtaining a document image indicative of the document; When a reference string indicating a reference destination is included in an area based on the position of the target string included in the document image, the related string associated with the target string in the related dictionary is obtained from the reference destination page different from the page including the target string; Extracting target information for the target character string from an area based on the position of the related character string on the reference page.

23. An information processing apparatus comprising:

2. When the target string and the related string are not associated with each other, the processor associates a string included in the reference destination with the target string as the related string.

2. The information processing apparatus according to claim 1,

3. The processor, If the memory does not store the related string in the related dictionary, extracting at least one character string from the referenced page; displaying a selection screen on a display unit for selecting the related character string from the at least one extracted character string; The association dictionary is created to associate the related character string selected by the user's operation on the selection screen with the target character string, and is stored in the memory.

3. The information processing apparatus according to claim 2.

4. The processor, obtaining a plurality of related strings associated with the target string; Extracting a plurality of pieces of target information for the target string from a plurality of regions based on the positions of the plurality of related strings.

2. The information processing apparatus according to claim 1,

5. The processor, Extracting target information selected by a user operation from the plurality of target information included in the plurality of areas; cancelling the association between the target string and related strings other than the related string corresponding to the selected target information among the plurality of related strings; 5. The information processing apparatus according to claim 4.

6. a plurality of related strings are associated with the target string; The processor, Get attribute information, Obtain a different related string associated with the target string according to the attribute information.

2. The information processing apparatus according to claim 1,

7. The attribute information includes a type of the document, a content of the document, an identifier of a user, or an identifier of an organization to which the user belongs.

7. The information processing apparatus according to claim 6,

8. On the computer, acquiring a document image indicative of the document; When a reference string indicating a reference destination is included in an area based on the position of a target string included in the document image, a related string associated with the target string in an association dictionary stored in a memory is obtained from the reference destination page different from the page including the target string; extracting target information for the target string from an area based on the position of the related string on the reference page; A program for executing.

Citation Information

Patent Citations

  • Image filing device

    JP1992048383A

  • Document processor and document processing method

    JP1999250041A

  • Image processing apparatus, image processing method and program

    JP2011141597A

  • Information processing device, control method, and program

    JP2018128996A

  • Image processing apparatus, image processing method and program

    JP2019049823A