IMAGE PROCESSING APPARATUS, IMAGE FORMING SYSTEM, IMAGE PROCESSING METHOD, AND PROGRAM
The image processing device effectively separates and matches character string regions to extract desired strings from forms with mixed handwritten and printed entries, enhancing accuracy and reliability.
Patent Information
- Application Number
- JP2020132464
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-04
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-08-04
AI Technical Summary
Existing methods struggle to accurately extract character strings from forms with multiple writing areas containing both handwritten and printed entries, as they cannot determine the correct area for extraction, leading to potential failure in identifying the desired string.
An image processing device that separates handwritten and printed character images, detects character string regions, and uses position information to match and extract character strings from forms with similar layouts, ensuring accurate extraction.
Enables the extraction of handwritten character strings from forms with multiple writing areas, improving accuracy and reliability in identifying desired strings.
Smart Images

Figure 0007570843000001 
Figure 0007570843000002 
Figure 0007570843000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a technique for extracting character strings of predetermined items from a scanned image. [Background technology]
[0002] There is a method to extract character strings in a scanned image as digital data by performing OCR (Optical Character Recognition) processing on the scanned image obtained by scanning a document. There is also a method to extract character strings of a specified item from the result of OCR processing by detecting the type of form indicated by the scanned image and identifying the position of a specified item according to the type of form.
[0003] Patent Document 1 describes a method of registering information about the characteristics of ruled lines of forms in a database, and identifying from the database forms whose ruled line characteristics match those of an input image. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2009-230498 A Summary of the Invention [Problem to be solved by the invention]
[0005] For example, in the case of a form with multiple writing areas for handwriting as shown in Fig. 3, a form with handwritten characters written in either writing area 301 or writing area 302 is subject to OCR processing. In such forms, the writing locations of the same item such as "phone number" and "email address" may be included in each writing area. Therefore, when trying to extract a character string of a specific item from a scanned image, it is not possible to determine from which writing area the character string should be extracted, and therefore there is a risk that the desired character string cannot be extracted. [Means for solving the problem]
[0006] The image processing device according to the technology disclosed herein includes an image acquisition unit that acquires a scanned image obtained by scanning a document; a separation unit for separating an image of handwritten characters and an image of an area other than handwritten characters from the read image; and detecting a character string area in each image obtained by the separation, A character string area of handwritten characters included in the scanned image a character string region of printed characters included in the scanned image; of each A detection means for detecting the A document has a plurality of areas for writing handwritten characters, and the handwritten characters are written in any one of the plurality of areas. No. 1 Location information and second position information of the character string area of the print character. A data acquisition means for acquiring form data including the form data; When a degree of coincidence between pixel information of a character string area of the form based on position information included in the form data and pixel information of the character string area of the scanned image exceeds a threshold value, it is determined that the arrangement of the character string area of the form and the character string area of the scanned image are similar. A means for identifying the When a character string region of printed characters on the form based on the second position information included in the form data and a character string region of printed characters detected from the read image are identified as being similar, a character string region of handwritten characters detected from the read image that is further identified as being similar to a character string region of handwritten characters on the form based on the first position information included in the form data is extracted from the character string region of handwritten characters detected from the read image. The form data The handwritten character The string of the given item that is associated with the string field Draw and an extracting means for extracting the same. Effect of the Invention
[0007] According to the technology disclosed herein, it is possible to extract a character string written by hand from a scanned image obtained by scanning a document having multiple areas for writing characters by hand in any of the areas. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a block diagram showing a configuration of an image forming system. [Diagram 2] FIG. 2 is a diagram showing the functional configuration of the image forming apparatus. [Diagram 3] FIG. 13 is a diagram showing an example of a blank form. [Figure 4] A diagram showing form data. [Diagram 5] 11 is a flowchart showing a process of extracting character information from metadata items. [Figure 6] 5A and 5B are diagrams showing an example of read image data and a processing result. [Figure 7] 5A and 5B are diagrams showing an example of read image data and a processing result. [Figure 8] FIG. 13 is a diagram showing an example of a content confirmation screen. [Figure 9] FIG. 13 is a diagram showing an example of a content confirmation screen. [Figure 10] FIG. 13 is a diagram showing an example of a correction confirmation screen. [Figure 11] A diagram showing form data. [Figure 12] 11 is a flowchart showing a process of extracting character information from metadata items. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, the embodiments of the technology of the present disclosure will be described in detail with reference to the drawings. Note that the following embodiments do not limit the technology of the present disclosure according to the claims, and not all of the combinations of features described in the following embodiments are necessarily essential to the solution of the technology of the present disclosure. Also, the same components are given the same reference numbers and descriptions are omitted.
[0010] <Embodiment 1> [Image formation system overview] FIG. 1 is a diagram showing a configuration of an image forming system. As shown in FIG. 1, the image forming system includes an image forming apparatus 100, a host computer 170, and a server 191 (which may be a cloud server). In this embodiment, the image forming apparatus 100 will be described as a multifunction printer (MFP) that integrates multiple functions such as a print function, a read function, and a FAX function. The server 191 will be described as having a document management function. The image forming apparatus 100, the host computer 170, and the server 191 are connected to a network 190 such as a LAN (Local Area Network) so that they can communicate with each other. A plurality of image forming apparatuses, host computers, and servers may be connected, or other devices may be connected. The network 190 may be a wired network, a wireless network, or a combination of these.
[0011] The image forming apparatus 100 includes a control device 110, a reader device 120, a printer device 130, an operation unit 140, and a storage device 150. The control device 110 is a control board (controller) that controls the image forming apparatus 100 in an integrated manner. The control device 110 includes a CPU 111, a ROM 112, a RAM 113, and an image processing unit 114. The CPU 111 controls each block in the control device 110 via a system bus (not shown). For example, the CPU 111 executes the functions of the image forming apparatus 100 by reading and executing a program stored in the ROM 112, the RAM 113, the storage device 150, or another storage medium. The ROM 112 stores, for example, a control program, and tables and setting data required to execute the functions of the image forming apparatus 100. The RAM 113 is used, for example, as a work memory for the CPU 111.
[0012] The image processing unit 114 performs various image processing such as conversion, correction, editing, compression / decompression, etc., on the read image data generated by the reader device 120 reading the document and on the image data received from the outside. The image processing unit 114 may be configured as hardware or may be realized as software. In this way, the image forming apparatus 100 of this embodiment also functions as an image processing apparatus.
[0013] The reader device 120 has a scanner engine configuration, and optically reads an original document set on a document table (not shown) or fed from an automatic document feeder (ADF) (not shown), and generates read image data. The printer device 130 has a printer engine configuration compatible with various recording methods such as an inkjet recording method and an electrophotographic method, and forms an image on a recording medium.
[0014] The storage device 150 stores, for example, device information such as image data, modes, and licenses, and user information such as an address book and customization. The operation unit 140 includes operation keys for accepting user operations and a liquid crystal panel for displaying various settings and a user interface screen, and outputs information such as accepted user operations to the control device 110. The image forming device 100 is not limited to the configuration shown in Fig. 1, and may include other configurations depending on the functions that the image forming device 100 can execute. For example, it may include a configuration necessary for executing a FAX function or a configuration that enables short-distance wireless communication.
[0015] The server 191 includes a control device 198, an operation unit 195, a storage device 196, and a display unit 197. The control device 198 is a control board (controller) that controls the server 191 in an integrated manner. The control device 198 includes a CPU 192, a ROM 193, and a RAM 194. The CPU 192 controls each block in the control device 198 via a system bus (not shown). For example, the CPU 192 executes the functions of the server 191 by reading and executing a program stored in the ROM 193, the RAM 194, the storage device 196, or another storage medium. The ROM 193 stores, for example, various control programs such as an operating system program (OS), and tables, setting data, and the like required to execute the functions of the server 191. The RAM 194 is used, for example, as a work memory for the CPU 192. The storage device 196 stores, for example, various application programs, data, user information, device information, and the like. The operation unit 195 includes a keyboard, a pointing device, and the like for accepting user operations, and outputs information on the accepted user operations, etc., to the control device 198. The display unit 197 is, for example, a liquid crystal display, and displays various user interface screens and information.
[0016] [Functional configuration of image forming device] 2 is a diagram for explaining a functional configuration related to the extraction process of metadata items of the image forming apparatus 100. The image forming apparatus 100 of this embodiment has an image data acquisition unit 201, a character string area detection unit 202, a character recognition unit 203, a handwritten character separation unit 204, a character information extraction unit 205, and a display control unit 206.
[0017] The image data acquisition unit 201 functions as an image acquisition unit that acquires read image data generated by the reader device 120 reading a document. The character string area detection unit 202 performs processing to detect a character string area present in the read image. The character string area may be detected by a known method, such as a method of extracting a rectangular area assumed to be a character from an image binarized with a certain threshold value.
[0018] The character recognition unit 203 performs optical character recognition processing (OCR processing) on the character string region. The character recognition unit 203 of this embodiment can perform OCR processing in an appropriate manner according to the classification of the character string region. For example, handwritten characters have a lower density than printed characters, and the difference in character shape between writers is large. For this reason, when performing OCR processing on handwritten characters, the character recognition unit 203 performs OCR processing in a manner different from that used when performing OCR processing on printed characters. As a method for character recognition of handwritten characters, OCR processing is performed by increasing contrast during binarization processing and strengthening noise removal. Alternatively, the character recognition unit 203 may perform OCR processing dedicated to handwritten characters using a recognition engine trained by a neural network including characters before and after the characters, rather than judging each character based on image feature points. By performing OCR processing dedicated to handwritten characters, it is possible to improve the recognition accuracy of both handwritten characters and printed characters.
[0019] The handwritten character separation unit 204 performs a process of separating handwritten characters from the read image, and generates a handwritten character image representing handwritten characters in the read image and an image other than handwritten characters. As a method of separating a handwritten character image from a read image, there is a method of registering an image of a form template, which is an image other than handwritten characters, in advance, and deriving a difference between that image and the image of the read image data. The method of separating handwritten characters is not limited to this method. Alternatively, for example, a method may be used in which a neural network learns handwritten character string areas and other background areas in the read image data, and whether each pixel or area is a handwritten character is determined, thereby generating a handwritten character image and an image other than handwritten characters.
[0020] The character information extraction unit 205 acquires form data, which will be described later, and identifies a character string area registered in the form data that has a similar arrangement to the character string area of the scanned image. The character information extraction unit 205 then performs processing for extracting character strings corresponding to metadata items such as a document name, a name, and a telephone number from character strings obtained as a result of character recognition processing by the character recognition unit 203. The processing of the character information extraction unit 205 will be described in detail later.
[0021] The display control unit 206 performs control for displaying the confirmation screen and the correction screen on the liquid crystal panel of the operation unit 140. The confirmation screen and the correction screen will be described later.
[0022] 2 are realized by the CPU 111 expanding program code stored in the ROM 112 or the storage device 150 into the RAM 113 and executing the program code. Alternatively, some or all of the functions of the components in FIG. 2 may be realized by hardware such as an ASIC or an electronic circuit.
[0023] [About forms that are subject to character information extraction processing] The image forming apparatus 100 performs a character information extraction process to extract character strings of specified items such as the document name, name, and telephone number from the image data of the scanned image obtained by reading a document that contains handwritten and printed characters, such as an application form.
[0024] In the character information extraction process, a character string area similar in layout to the character string area in the scanned image is identified from the position information of the character string area for each form registered in the database. Then, a character string in the scanned image that is recognized from the same area as the character string area of the item to be extracted that is associated with the character string area of the form data is extracted as the character string of the specified item. If no similar character string area is registered, the form indicated by the scanned image is registered as a new form.
[0025] 3 is a diagram showing a form 300 on which no handwritten characters have been written. As form 300 shows, the document to be read is based on a form in which information is handwritten in either the "individual member" writing area 301 or the "corporate member" writing area 302. The handwritten content differs between the "individual member" and "corporate member" writing areas of the form, but there are also common items such as "telephone number" and "email address."
[0026] The manuscript handwritten in the entry area 301 for "individual member" on the form 300 and the manuscript handwritten in the entry area 302 for "corporate member" have multiple areas for the same item, such as "phone number" and "email address." For this reason, it is not possible to determine whether the character string the user wishes to extract is a character string for an item included in entry area 301 or a character string for an item included in entry area 302, and there is a risk that the desired character string cannot be extracted.
[0027] In this embodiment, the information on the character string area of the printed characters included in the scanned image and the information on the character string area of the handwritten characters included in the scanned image are separated and each piece of information is registered in a database. When extracting a specific item from the scanned image, the document type is determined based on the information on the character string area of the printed characters included in the scanned image and the information on the character string area of the handwritten characters included in the scanned image, and the character string of the specific item in the scanned image is extracted.
[0028] [Regarding form data registration] 4 is a diagram showing an example of form data indicating information of a registered form (document) stored in the server 191. In the image forming apparatus 100, the form data is used to extract character strings of metadata items included in a read image.
[0029] The form data includes registered image information and metadata item information. Specifically, the image information includes image data, handwritten character BS, and printed character BS information. The scanned image 400 indicates data of a scanned image of a registered document. The handwritten character BS information and printed character BS information are position information indicating the arrangement of character string areas of the registered document. BS refers to block selection.
[0030] The handwritten character BS image 401 is an image that represents handwritten character BS information, which is position information of a character string area (handwritten character string area) containing handwritten characters of a registered document. A solid-line rectangular area in the handwritten character BS image 401 indicates the position and size of the handwritten character string area. The printed character BS image 402 is an image that represents printed character BS information, which is position information of a character string area (printed character string area) containing printed characters of a registered document. A solid-line rectangular area in the printed character BS image 402 indicates the position and size of the printed character string area.
[0031] In this manner, in this embodiment, the position information of the printed character string area and the handwritten character string area are registered as information on the character string area for the registered document. Hereinafter, the handwritten character BS image refers to the position information of the character string area of handwritten characters, and the printed character BS image refers to the position information of the character string area of printed characters.
[0032] The dashed rectangles in each of the handwritten character BS image 401 and the printed character BS image 402 indicate the position information of the character string area including the character string of the metadata item. The metadata items in this embodiment are "document name," "application date," "name," "corporate name," and "telephone number," and the position information corresponding to each item is registered as metadata item information. Position information 403 indicates the position corresponding to each of the items "document name," "application date," "name," and "telephone number." In addition, information is registered to the effect that the position information of "corporate name" is unknown.
[0033] In this embodiment, the image forming apparatus 100 is configured to acquire the registered form data from the server 191 every time a scan process is executed, thereby allowing the registered information to be shared among a plurality of image forming apparatuses. Alternatively, the registered form data may be stored in the storage device 150 of each image forming apparatus 100.
[0034] [Text information extraction process flow] Fig. 5 is a flowchart for explaining the details of the character information extraction process. The series of processes shown in the flowchart in Fig. 5 are performed by CPU 111 of image forming apparatus 100 expanding program code stored in ROM 112 into RAM 113 and executing it. Also, some or all of the functions of the steps in Fig. 5 may be realized by hardware such as ASIC or electronic circuits. Note that the symbol "S" in the explanation of each process indicates a step in the flowchart, and the same applies to the subsequent flowcharts.
[0035] In S501, when the CPU 111 receives an instruction to scan a document from a user via the operation unit 140, the CPU 111 instructs the reader device 120 to scan the document. The reader device 120 scans the document and generates read image data corresponding to the document. Then, the image data acquisition unit 201 acquires the read image data of the document from the reader device 120.
[0036] Fig. 6 is a diagram showing an example of data generated as a result of the processing of this flowchart. Scanned image 600 in Fig. 6 is a scanned image obtained by scanning an original document filled in "individual member" entry area 301 of form 300.
[0037] Fig. 7 is a diagram showing an example of data generated in the process of this flowchart for a document different from the document used to obtain the data shown in Fig. 6. A scanned image 700 in Fig. 7 is a scanned image obtained by scanning a document containing information written in the "Corporate Member" field 302 of the form 300.
[0038] In S502, the handwritten character separation unit 204 performs a process of separating handwritten characters from the read image data generated in S501, and generates a handwritten character image and an image other than handwritten characters. Note that before the process of S502 is performed, a position adjustment process of the read image may be performed by determining skew occurring during scanning, image misalignment when the document is set, and differences in image orientation. By performing the position adjustment process of the read image, the accuracy of extracting the difference image can be improved. By performing the process of this step on the read image 600 in FIG. 6, a handwritten character image 601 from which handwritten characters are extracted and an image other than handwritten characters 602 are obtained. In addition, by performing the process of this step on the read image 700 in FIG. 7, a handwritten character image 701 and an image other than handwritten characters 702 are obtained. Since the read image 600 and the read image 700 are images obtained by scanning documents on which handwritten descriptions are written on the same form of document, the image other than handwritten characters 602 and the image other than handwritten characters 702 are essentially the same image.
[0039] In S503, processing for character recognition is performed on the images 602 and 702 other than handwritten characters generated in S502. In this step, the character string area detection unit 202 performs block division processing before OCR processing, analyzes the form structure of the image, and performs BS processing to divide the image into a background area and rectangular areas (blocks) indicating the character string areas.
[0040] For the purpose of explanation, the printed character BS images 604, 704 are images that represent the coordinate information (position information) of the character string area obtained as a result of performing BS processing on the non-handwritten character images 602, 702. The character string area represented by a rectangle in the printed character BS images 604, 704 is the printed character string area. Since the non-handwritten character images 602, 702 are the same image, the printed character BS image 604 and the printed character BS image 704 are the same image.
[0041] The character recognition unit 203 then performs OCR processing on each of the character string areas of the printed character BS images 604 and 704. By acquiring the character code of the character string in the character string area, it is not necessary to perform OCR processing on areas other than the character string area. This reduces the processing load in the OCR processing and improves the accuracy of character recognition.
[0042] In S504, processing for character recognition is performed on the handwritten character images 601, 701 generated in S502. As in S503, the character string area detection unit 202 performs BS processing on the handwritten character images 601, 701 before OCR processing. Handwritten character BS images 603, 703 are diagrams in which, for the purpose of explanation, coordinate information of the handwritten character string area obtained as a result of performing BS processing on the handwritten character images 601, 701 is represented as an image. The rectangles in the diagrams represent the handwritten character string areas.
[0043] The character recognition unit 203 performs OCR processing on each character string area to obtain the character code of the character string in the character string area. The method of OCR processing in this step may be the same as the OCR processing in S503, or may be a different OCR processing method from S503 that is specialized for character recognition of handwritten characters.
[0044] In S505, character information extraction unit 205 acquires form data of the registered document described with reference to FIG.
[0045] In S506, the character information extraction unit 205 determines whether a print character string area similar in layout to the print character string area of the scanned image is registered in the form data. If a print character string area similar in layout to the print character string area of the scanned image is registered in the form data, the process proceeds to S507. If not, the process proceeds to S510.
[0046] In S507, the character information extraction unit 205 determines whether a handwritten character string area similar in layout to the handwritten character string area in the scanned image is registered in the form data. If a handwritten character string area similar in layout to the handwritten character string area in the scanned image is registered in the form data (YES in S507), the process proceeds to S508.
[0047] In the determinations in S506 and S507, character string areas with similar layouts are identified based on the degree of similarity of the layouts of the character string areas. For example, in S506, pixels of the print character string area based on the coordinate information of the print character string area in the scanned image are compared with pixels of the print character string area based on the coordinate information of each print character string area registered in the form data. If the comparison results in a print character string area registered in the form data with a degree of similarity exceeding a threshold, the layout of the print character string area in the scanned image is identified as similar to the layout of that print character string area registered in the form data.
[0048] Although the image data itself may be compared to identify character string areas with similar layouts, the processing load for similarity determination can be reduced by using the coordinate information of the character string areas. Also, by registering coordinate information as position information of the character string areas in the form data, the data size of the information registered as the form data can be reduced.
[0049] In S508, the character information extraction unit 205 acquires coordinate information indicating the position of each metadata item that is stored in association with the position information of the character string area registered in the form data and that is identified as similar in S506 and S507. Then, the character string recognized from the character string area of the scanned image that corresponds to the acquired coordinates is extracted as the character string of that item. The extracted character string is associated with the item and output to the display control unit 206 to display a screen for the user to confirm.
[0050] 8 is a diagram showing an example of a confirmation screen 800 for a user to confirm character strings for each metadata item extracted by character information extraction section 205. The confirmation screen is a screen displayed on the liquid crystal panel of operation section 140. Confirmation screen 800 in FIG. 8 is an image displayed as a result of performing the processes of S502 to S508 on scanned image 600 in FIG. 6. Scanned image 600 is displayed in a preview display area 801. Character strings for each item extracted by character information extraction section 205 are displayed in metadata item display areas 803 to 807.
[0051] At the start of this flowchart, the contents registered in the form data are assumed to be the contents shown in Fig. 4. In this case, it is determined that the layout of the print character string area indicated by the printed character BS image 604 in the scanned image 600 is similar to the layout of the print character string area indicated by the registered printed character BS image 402 in Fig. 4. It is also determined that the layout of the handwritten character string area indicated by the handwritten character BS image 603 in the scanned image 600 is similar to the layout of the handwritten character string area indicated by the registered handwritten character BS image 401 in Fig. 4.
[0052] Therefore, coordinates indicating the positions of the metadata items surrounded by dashed lines in the registered printed character BS image 402 and handwritten character BS image 401 in Fig. 4 are acquired. Then, among the character strings obtained as a result of OCR processing of the scanned image, the character string recognized in the character string area at the position of the metadata item is determined as the character string of the metadata item. As a result, the confirmation screen 800 in Fig. 8 is displayed.
[0053] Therefore, in the metadata item display area 803 on the confirmation screen 800, the character string in the character string area indicated by the position information 403 of the scanned image 600 is extracted and displayed as the character string of the document name "Membership Application Form". Similarly, "January 31, 2020" is extracted as the character string of the application date from the position information 404, and "Shimomaruko Taro" is extracted as the character string of the name from the position information 405, and displayed on the confirmation screen. In addition, "03-3758-XXXX" is extracted as the character string of the telephone number from the position information 406, and displayed on the confirmation screen. In this way, the character strings of the extracted metadata items can be displayed on the confirmation screen.
[0054] If a character string area similar in layout to the printed character string area is registered, but a character string area similar in layout to the handwritten character string area is not registered (NO in S507), the process proceeds to S509. In S509, the character information extraction unit 205 acquires coordinate information indicating the position of each metadata item stored in association with the printed character string area identified as similar. Then, a character string recognized from the character string area of the scanned image indicated by the acquired coordinates is extracted as the character string of that item. The extracted character string is associated with the item and output to the display control unit 206 to display a screen for the user to confirm.
[0055] Fig. 9 is a diagram showing an example of a confirmation screen for the user to confirm the character strings for each item extracted by the character information extraction unit 205 in S509. The confirmation screen 900 in Fig. 9 is an image displayed as a result of performing the processes of S502 to S507 and S509 on the scanned image 700 in Fig. 7. The scanned image 700 is displayed in a preview display area 901, and the character strings of the metadata items extracted in S509 are displayed in metadata item display areas 903 to 907.
[0056] At the start of this flowchart, the contents registered in the form data are as shown in Fig. 4. In this case, when the scanned image from which character information is extracted is the scanned image 700, it is determined that the layout of the printed character string area indicated by the printed character BS image 704 of the scanned image 700 is similar to the layout of the printed character string area indicated by the registered printed character BS image 402 in Fig. 4. However, the layout of the handwritten character string area indicated by the handwritten character BS image 703 of the scanned image 700 is not similar to the layout of the handwritten character string area indicated by the registered handwritten character BS image 401. For this reason, in the case of the scanned image 700, it is determined in S507 that the handwritten character string area similar in layout to the handwritten character string area of the scanned image is not registered in the form data. In this case, unlike the case of the scanned image 600, character strings of some metadata items are not extracted.
[0057] In the metadata item display area 903 on the confirmation screen 900, the character string in the print character string area indicated by the position information 403 in the scanned image 700 is extracted and displayed as the character string of the document name "Membership Application Form". Similarly, "January 31, 2020" is extracted and displayed as the character string of the application date from the print character string area indicated by the position information 403. However, in the registered printed character BS image 402, there are no character string areas in the position information 405, 406 of the name and phone number items. For this reason, the character information extraction unit 205 extracts only the character strings of some of the metadata items from the scanned image 700.
[0058] In S510, the display control unit 206 displays the above-mentioned confirmation screen on the liquid crystal panel of the operation unit 140, and accepts a correction operation or a registration operation from the user.
[0059] In the file name display areas 802, 902 of the confirmation screens 800, 900 in Fig. 8 and Fig. 9, file names using metadata items are displayed based on a preset naming rule. For example, assume that the naming rule is set to "document name_application date_name.pdf" or "document name_application date_corporate name.pdf". In the confirmation screen 900 in Fig. 9, neither the character string "name" nor "corporate name", which are metadata items required for naming a file name, has been extracted and is blank. For this reason, "*" is displayed in the file name, indicating that the metadata has not been obtained.
[0060] Confirmation screens 800 and 900 display an item modification button 508 and a registration completion button 509. When the item modification button 508 is pressed by the user, a modification screen for modifying the character strings displayed in each metadata item display area is displayed. The modification screen can accept a modification operation of a metadata item from the user. Also, in the confirmation screen 900 of FIG. 9, because some of the metadata required for the file name are blank, the registration completion button 509 is grayed out and set so that the user cannot press it.
[0061] Fig. 10 is a diagram showing a correction screen displayed on the liquid crystal panel of the operation unit 140 after a correction operation for a metadata item is accepted. The correction screen 1000 in Fig. 10 is a correction screen when the metadata item display area 906 for "Corporate Name" on the confirmation screen 900 in Fig. 9 is selected and the item correction button 508 is pressed.
[0062] In the correction screen 1000, character string areas that are included in the scanned image and that are selectable by the user are highlighted. In this embodiment, character string areas that are selectable by the user as character strings for metadata items are displayed as dashed frames superimposed on the scanned image 700. When the user selects the frame 1010 indicating "Corporate Name", the character string "XXX Corporation" that is character-recognized from the character string area indicated by the frame 1010 is displayed in the metadata item display area 1006. In this way, the character string of an item that the character information extraction unit 205 was unable to extract can be obtained by accepting an instruction from the user.
[0063] When the character string for the metadata item of the corporation name is accepted, a file name is determined based on the naming rules. This allows the user to press the registration completion button 509. Similarly, in the metadata item display area 1007, the selection of box 1011 by the user has been accepted, so the character string for the telephone number, "03-3756-XXXX", is displayed.
[0064] In S511, when the display control unit 206 accepts the user's pressing of the registration completion button 509, information indicating the contents of the correction instruction is transmitted to the storage device 196 of the server 191 via the I / F of the document management function of the server 191. Furthermore, if the printed characters BS indicating the printed character string area of the read image have not been registered, the image data of the read image and information on the printed characters BS and handwritten characters BS are transmitted as newly registered information. Furthermore, if the handwritten characters BS indicating the handwritten character string area of the read image have not been registered, the image data of the read image and information on the handwritten characters BS are transmitted as newly registered information.
[0065] The server 191 registers the correction contents or new information in the form data stored in the storage device 196. When the form data is stored in the image forming apparatus 100, the image forming apparatus 100 registers the correction contents or new information in the form data.
[0066] Fig. 11 is a diagram showing updated form data. Fig. 11 shows an example of form data that is updated as a result of performing the process of this flowchart on scanned image 700, from the form data shown in Fig. 4 at the start of this flowchart.
[0067] 11 and 4, image data of scanned image 700 has been registered as new information. Although scanned image 700 is a document of the same form as registered scanned image 400, the written area is different, and therefore scanned image 700 has been registered as new information. Furthermore, as handwritten character BS image 1101 shows, coordinate information of a handwritten character string area of scanned image 700, which is different from handwritten character BS image 401, is newly registered.
[0068] 11 and 4, new information indicated by the scanned image 700 has been newly registered, but the position information of the print character string area of the scanned image 700 has not been added to FIG. 11. The scanned image 700 is an image based on the same form as the scanned image 400. In such a case, the printed character BS image 402 indicating the same position information as the position information of the print character string area of the scanned image to be newly registered has already been registered. Therefore, it is not necessary to register the position information of the print character string area of the scanned image 700.
[0069] In this embodiment, information common to multiple images, such as the information on the print character string area indicated by the print character BS image, is registered as shared information. This makes it possible to reduce the data size of the form data. In addition, the data in the search range is also reduced, making it possible to reduce the processing load during searches.
[0070] If the determination in S506 is NO, the handwritten character string areas and printed character string areas similar in layout to those of the scanned image are not registered in the form data. Therefore, after the end of this flowchart, the position information of the handwritten character string area and the printed character string area of the scanned image are registered as form data for a new document.
[0071] 11, position information 1107 of "corporate name" and position information 1108 of "phone number", which were not registered in the form data of FIG. 4, are registered as position information of metadata items. Position information of metadata items may be registered for each registered scanned image, but in this embodiment, position information of common metadata items is registered in association with a plurality of scanned images that share information of a print character string area. That is, position information 403 to 406 of metadata items and position information 1107 and 1108 are associated with handwritten character BS image 401 of scanned image 400 and handwritten character BS image 1101 of scanned image 700 in FIG. 11. In this way, by associating position information of common metadata items with a plurality of scanned images, the data size of the form data to be registered can be reduced.
[0072] As shown in FIG. 11, by registering the scanned image 700 as new information, two pieces of location information, the location information 406 and the location information 1108, are registered as the metadata item of "phone number". In this way, when multiple character string areas of the same item are registered, the character string of that item is extracted from the one in which the character string area is detected in the scanned image to be processed. Alternatively, which of the location information 406 and the location information 1108 is used as the location information of "phone number" may be switched depending on whether the checkboxes located at "individual member" and "corporate member" are checked. Alternatively, the location information of the handwritten character string area of the scanned image to be processed is similar to either the registered handwritten character BS image 401 or the handwritten character BS image 1101.
[0073] When registering new scanned image data, instead of a normal PDF with the scanned image data embedded, the data obtained by converting the text information resulting from the OCR process into a document format such as a full-text searchable PDF may be registered as the scanned image data. Alternatively, the scanned image data may be registered in its original image format such as JPEG or PNG.
[0074] As described above, according to this embodiment, the position information of the printed character string area and the position information of the handwritten character string area of the scanned image are used to extract character strings of metadata items. Therefore, it is possible to extract desired character strings from scanned images of documents that were written in different writing areas of the same form.
[0075] 5 is performed on the image forming apparatus 100. Alternatively, in order to distribute the processing load, the scanned image data generated in S501 may be transmitted to the server 191 via the network 190, and the server 191 may perform processing other than accepting operations from the user.
[0076] In the above description, the OCR process is performed following the BS process in S503 and S504, but the OCR process may be performed after the character string area of the metadata item is extracted. In this case, the OCR process may be performed only on the character string area of the extracted metadata item. If a similar character string area cannot be identified from the form data, or if there is a metadata item from which a character string cannot be extracted, the OCR process may be performed on the entire detected character string area.
[0077] <Embodiment 2> In this embodiment, a character information extraction process using a method different from that of embodiment 1 will be described. The present embodiment will be described focusing on the differences from embodiment 1. The configuration and process are the same as those of embodiment 1 unless otherwise specified.
[0078] 12 is a flowchart for explaining the details of the character information extraction process of this embodiment. Since S1201 is the same process as S501, the description will be omitted.
[0079] In S1202, the character string area detection unit 202 performs BS processing on the scanned image data acquired in S1201 to detect the position of a character string area in the scanned image.
[0080] In S1203, the character information extraction unit 205 acquires the form data of the registered document stored in the storage device 196 of the server 191 via the I / F of the document management function of the server 191.
[0081] In S1204, the character information extraction unit 205 compares the position information of the character string area of the scanned image obtained as a result of the BS process in S1202 with the position information of the print character string area registered in the form data, and determines whether a print character string area similar in layout to the character string area of the scanned image is registered in the form data.
[0082] The method of determining similarity in this step may be the same as the method described in embodiment 1. Note that, in order to improve the accuracy of the determination, pixels of handwritten characters may be removed from pixels based on the coordinate information of the character string area of the scanned image before the determination process in this step is performed.
[0083] If a print character string area similar to the character string area of the scanned image is not registered (NO in S1204), the processes of S1207 to S1209 are performed. The processes of S1207 to S1209 are the same as the processes of S502 to S504, and therefore will not be described. Note that the same processes as S506 to S509 may be performed between S1209 and S1210.
[0084] In this manner, in this embodiment, only when the form data does not contain a print character string area whose layout is similar to that of the character string area contained in the scanned image, processing similar to that of S502 to S504 is performed. Processing time can be reduced by limiting the cases where a process for separating a handwritten character image from a scanned image and OCR processing is performed on each image.
[0085] On the other hand, if a printed character string area similar to the character string area in the scanned image is registered in the form data (YES in S1204), the process proceeds to S1205. In S1205, the character recognition unit 203 acquires position information of a metadata item associated with the character string area registered in the form data that has been identified as similar. Then, the character recognition unit 203 performs OCR processing on the character string area in the scanned image that corresponds to the position of the metadata item. If it is possible to determine whether the character string area in the scanned image is a handwritten character string area or a printed character string area, the OCR processing method may be switched for each character string area.
[0086] In S1206, the character information extraction unit 205 extracts character strings obtained as a result of OCR processing from the character string area of each metadata item as the character string for each item. The extracted character strings are associated with the items and output to the display control unit 206 to display a screen for the user to confirm. If there is a metadata item from which a character string cannot be extracted, the processes of S1207 to S1209 may be performed to make it possible to register the character string in the handwritten character string area. When the process of S1206 or S1209 is completed, the processes of S1210 to S1211 are performed. The processes of S1210 to S1211 are similar to the processes of S510 to S511, and therefore the description thereof will be omitted.
[0087] As described above, according to this embodiment, the processing time can be reduced by limiting the target of OCR processing to character string areas of metadata items.
[0088] <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]
[0089] 100 Image forming device 111 CPU 201 Image data acquisition unit 202 Character string area detection unit 205 Character Information Extraction Unit
Claims
1. an image acquisition means for acquiring a scanned image obtained by scanning a document; a separation means for separating an image of handwritten characters and an image of an area other than the handwritten characters included in the read image from the read image; a detection means for detecting character string regions in each of the images obtained by the separation, and detecting a character string region of handwritten characters included in the read image and a character string region of printed characters included in the read image, respectively; a data acquisition means for acquiring form data including first position information of a character string area of handwritten characters for each of a plurality of areas for writing handwritten characters and second position information of a character string area of printed characters for each of the areas of a document on which handwritten characters are written; a specifying means for specifying that an arrangement of the character string area of the document and an arrangement of the character string area of the scanned image are similar when a degree of coincidence between pixel information of the character string area of the document based on position information included in the form data and pixel information of the character string area of the scanned image exceeds a threshold value; an extraction means for extracting, when a character string region of printed characters on the form based on the second position information included in the form data and a character string region of printed characters detected from the read image are identified as being similar, a character string of a predetermined item associated with the character string region of handwritten characters in the form data from a character string region of handwritten characters detected from the read image which has been further identified as being similar to the character string region of handwritten characters on the form based on the first position information included in the form data; 13. An image processing device comprising:
2. The extraction means includes: A character string included in a character string area of the scanned image, which corresponds to the character string area of the predetermined item among the character string areas of the printed characters and the handwritten characters of the form data, is extracted as the character string of the predetermined item.
2. The image processing device according to claim 1,
3. character recognition means for performing character recognition processing on a character string area included in the read image; The extraction means includes: A character string obtained as a result of character recognition by the character recognition means for a character string area of handwritten characters detected from the scanned image, which corresponds to the character string area of the predetermined item among the character string areas of the form data, is extracted as the character string of the predetermined item.
3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing apparatus.
4. The character recognition means performs character recognition processing on a character string area of handwritten characters using a method different from the method for character recognition processing on a character string area of printed characters.
4. The image processing device according to claim 3.
5. The character recognition means If the specifying means is unable to specify the item, or if there is an item from which the extracting means cannot extract a character string among the predetermined items, character recognition processing is performed on all character string areas detected by the detecting means.
5. The image processing device according to claim 3, wherein the first and second inputs are input to the image processing apparatus.
6. a receiving means for receiving a character string area corresponding to the predetermined item included in the scanned image based on an instruction from a user; and a transmitting means for transmitting data for registering, in the form data, information indicating the arrangement of the character string areas of the printed characters and the character string areas of the handwritten characters included in the scanned image and information indicating the positions of the character string areas corresponding to the predetermined items.
6. The image processing device according to claim 1,
7. The display control means further includes a display control unit that controls displaying the read image on a display unit while emphasizing a character string area of the read image, The accepting unit accepts a character string area selected by a user from among the character string areas displayed in a highlighted manner on the display unit as a character string area of the scanned image corresponding to the predetermined item.
7. The image processing device according to claim 6,
8. The method further includes registering the data transmitted from the transmitting means into the form data, The registration means includes: When position information of a character string area of printed characters detected from the read image is registered in the form data and position information of a character string area of handwritten characters detected from the read image is not registered in the form data, the position information of the character string area of handwritten characters detected from the read image is registered as new information.
8. The image processing device according to claim 6, wherein the first and second inputs are input to the image processing device.
9. The image processing device according to claim 6 or 7, a server having a registration means for registering data transmitted from the transmission means of the image processing device in the form data; An image forming system comprising:
10. an image acquisition step of acquiring a scanned image obtained by scanning the document; a separation step of separating an image of handwritten characters and an image of an area other than handwritten characters included in the read image from the read image; a detection step of detecting character string regions in each image obtained by the separation, and detecting a character string region of handwritten characters included in the read image and a character string region of printed characters included in the read image, respectively; a data acquisition step of acquiring form data including first position information of a character string area of handwritten characters for each of a plurality of areas for writing handwritten characters and second position information of a character string area of printed characters for each of the areas of a document on which handwritten characters are written; a specifying step of specifying that an arrangement of the character string area of the form and an arrangement of the character string area of the read image are similar when a degree of coincidence between pixel information of the character string area of the form based on position information included in the form data and pixel information of the character string area of the read image exceeds a threshold value; an extraction step of extracting a character string of a predetermined item associated with the character string area of handwritten characters of the form data from a character string area of handwritten characters detected from the read image which has been further specified as being similar to a character string area of handwritten characters of the form data based on the first position information included in the form data when the character string area of printed characters of the form based on the second position information included in the form data and the character string area of printed characters detected from the read image have been specified as being similar; 13. An image processing method comprising:
11. A program for causing a computer to function as each of the means of the image processing apparatus according to any one of claims 1 to 8.
Citation Information
Patent Citations
Business form processing method, program, device, and system
JP2009230498A
Information processor
JP2017010069A
Device, method and program for setting information associated with scanned image
JP2019128727A
Business form layout analysis device, and analysis program and analysis method therefor
WO2020071558A1
