Data processing system and control method thereof
The system addresses the challenges of accurately identifying entry areas and attributes in handwritten forms by using item labels and dictionaries to automate the process, reducing operator burden and enhancing recognition accuracy.
Patent Information
- Application Number
- JP2023021392
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing handwritten character recognition systems struggle with accurately identifying entry areas on forms without ruled lines and can incorrectly assign attributes due to nearby printed character strings, increasing operator burden.
A data processing system that includes input means for item labels, setting means for attribute estimation, storage for layout information, and recognition means to minimize operator burden by automatically determining entry areas and attributes using item labels and dictionaries.
The system achieves high-accuracy reading of handwritten information with reduced operator effort by automatically generating entry areas and attributes, seamlessly processing from data input to recognition and aggregation.
Smart Images

Figure 2024115651000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a data processing system and a control method thereof. [Background technology]
[0002] Traditionally, handwritten character recognition software that recognizes handwritten information written on paper such as forms and outputs text data has been used on personal computers (PCs). At this time, the formats and layouts of forms that are handwritten are various, and in order to read such forms with a scanner or other device and perform character recognition, it is necessary to specify the area where characters are written to the software. The most common method of specification is, for example, to display the scanned data on a PC screen and have the operator use a mouse to specify the rectangular coordinates of the writing area.
[0003] Also, when performing character recognition, there is a method of improving the recognition accuracy by specifying the attribute of the writing area. For example, if the writing area is an address entry field, the recognition rate can be improved by applying an address DB as a recognition dictionary to correct recognition errors. Therefore, a common method is for the operator to set the attribute "address" to this writing area in advance, and then the recognition result is corrected by referring to a place name dictionary.
[0004] In either case, however, the burden on the operator is large, limiting the scope of application of the handwritten character input method. To reduce the burden on the operator, the following technologies have been proposed: Patent Document 1 proposes a technique in which software identifies ruled line information on a form and automatically extracts a writing area. Patent Document 2 proposes a technique for estimating a writing area of a scanned form image, and at the same time extracting a character string in the vicinity of the area and automatically assigning attributes of the writing area. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent No. 6773400 [Patent Document 2] Patent No. 6896260 Summary of the Invention [Problem to be solved by the invention]
[0006] However, the technology in Patent Document 1 has the problem that it cannot necessarily extract all handwritten entry areas correctly, and it cannot handle entry boxes that are not surrounded by lines, or handwritten information such as circles or check boxes. Furthermore, with the technology of Patent Document 2, when there are multiple character strings of printed characters near an entry area, a character string different from the original may be associated with the entry area, resulting in the wrong attribute being assigned.
[0007] The present invention has been made to solve the above problems, and aims to provide a mechanism that makes it possible to build a system that can read handwritten information with high accuracy while minimizing the burden on the operator of setting the position of the handwritten entry area and the entry attributes. [Means for solving the problem]
[0008] The present invention is a data processing system that recognizes handwritten information entered on a form and extracts the information, and is characterized by having an input means for inputting a character string as an item label of the handwritten information to be extracted, a setting means for estimating attribute information of the handwritten information to be extracted from the character string input as the item label and controlling to set a writing area into which the handwritten information to be extracted is entered according to the estimated attribute information, a storage means for determining the layout of the form according to the set writing area and storing the coordinates and attribute information of the laid out writing area in association with the item label, and a recognition means for recognizing the handwritten information using the coordinates and attribute information of the writing area for image data read from a form printed according to the layout and on which handwritten information is entered. Effect of the Invention
[0009] According to the present invention, it is possible to provide a mechanism that can construct a system that can read handwritten information with high accuracy while minimizing the burden on the operator of setting the position of the handwritten entry area and the entry attributes. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram illustrating an example of the overall configuration of a system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating an example of the hardware configuration of an MFP. [Diagram 3] FIG. 2 is a diagram illustrating an example of the hardware configuration of a client PC and an MFP cooperation service. [Figure 4] FIG. 1 is a diagram for explaining the software configuration of a system according to an embodiment of the present invention. [Diagram 5] 4 is a flowchart illustrating an example of an overall operation procedure of the present embodiment. [Figure 6] 5 is a flowchart showing details of a process for generating and saving a form layout according to the present embodiment. [Figure 7] FIG. 4 is a diagram showing an example of an estimation result display screen according to the embodiment. [Figure 8]FIG. 4 is a diagram showing an example of a form image automatically generated in the embodiment. [Figure 9] 11 is a diagram showing an example of a difference image between a scanned image of a handwritten form and an unwritten form; [Figure 10] FIG. 13 is a diagram illustrating a selection input frame laid out in the second embodiment. [Figure 11] FIG. 13 is a diagram for explaining details of an entry attribute estimation unit 411 according to the third embodiment. [Figure 12] FIG. 13 is a diagram showing another example of the entry box according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, the embodiments of the present invention will be described with reference to the drawings. Note that the following embodiments do not limit the invention according to the claims, and all of the combinations of features described in the embodiments are not necessarily essential to the solution of the invention.
[0012] [First embodiment] [Overall configuration] FIG. 1 is a diagram illustrating an example of the overall configuration of a system according to an embodiment of the present invention. The image processing system (data processing system) of this embodiment is a system in which a server PC 110, a storage 120, an MFP 130, a client PC 140, and a wireless LAN access point (AP) 160 can communicate with each other via a network (LAN). Note that MFP stands for Multifunction Peripheral.
[0013] The server PC 110 provides computational resources on a network. Specifically, the server PC 110 has a function of storing an image file scanned by the MFP 130 on its own server or transferring it to another storage 120 or the like, and provides services and functions requested by the client PC 140 or the smartphone 150.
[0014] Storage 120 is a network storage device that stores various data. Storage 120 stores files received via the network. Storage 120 also enables files stored in storage 120 to be downloaded in response to a request from a web browser.
[0015] The MFP 130 is a multifunction device having multiple functions such as a scanner and a printer, and scans and prints paper documents. The client PC 140 has a local user interface (UI). A wireless LAN access point (AP) 160 communicates with the smartphone 150 and connects the smartphone 150 to a network (LAN). The client PC 140 or the smartphone 150 is a computer or a mobile device that requests processing from the server PC 110 or receives services, and executes the application of this embodiment.
[0016] The image processing system of this embodiment is configured to include, but is not limited to, an MFP, a client PC, a server PC, storage, and a smartphone. For example, the client PC may also function as the server PC. In addition, the server PC and storage may be connected on the Internet rather than on a LAN.
[0017] [MFP hardware configuration] FIG. 2 is a diagram illustrating an example of the hardware configuration of the MFP 130. As shown in FIG. The MFP 130 includes a control unit 210 , an operation unit 219 , a printer unit 220 , and a scanner unit 221 .
[0018] The control unit 210 controls the overall operation of the MFP 130 . In the control unit 210, a CPU 211 reads out a control program stored in a ROM 212, a HDD 214, or the like, and executes and controls various functions of the MFP 130, such as reading, printing, and communication. The HDD 214 is a large-capacity storage unit that stores image data and various programs. Note that the configuration may include other storage devices such as a solid state drive (SSD) or an embedded multimedia card (eMMC) instead of or in combination with the hard disk drive (HDD).
[0019] The operation unit IF 215 is an interface that connects the operation unit 219 and the control unit 210. The operation unit 219 is provided with a touch panel, a keyboard, and the like, and receives operations / inputs / instructions from a user. The printer IF 216 is an interface that connects the printer unit 220 and the control unit 210. Image data to be printed is transferred from the control unit 210 to the printer unit 220 via the printer IF 216, and is printed on a recording medium.
[0020] The scanner IF 217 is an interface that connects the scanner unit 221 and the control unit 210. The scanner unit 221 reads an original placed on a platen or an ADF (Auto Document Feeder), not shown, generates image data, and inputs the image data to the control unit 210 via the scanner IF 217. The MFP 130 can print (copy) the image data generated by the scanner unit 221 from the printer unit 220, as well as transmit the image data as a file or by email.
[0021] The network IF 218 is an interface that connects the control unit 210 to a LAN. In response to a print instruction from the client PC 140 via the network IF 218, the MFP 130 outputs an image from the printer, or transmits image data scanned by the scanner to the client PC 140 or the storage 120.
[0022] [Client PC hardware configuration] FIG. 3 is a diagram illustrating an example of a hardware configuration of the client PC 140. As shown in FIG. The client PC 140 has a CPU 311, a ROM 312, a RAM 313, a HDD 314, an HDMI (registered trademark) module 315 and a display device 316 such as an LCD connected thereto, a USB module 317 and a keyboard 318, a mouse 319, and a network IF 320 connected thereto.
[0023] The CPU 311 controls the overall operation by reading out control programs stored in the ROM 312, the HDD 314, etc. and executing various processes. The RAM 313 is used as a temporary storage area such as the main memory and work area of the CPU 311. The HDD 314 is a large-capacity storage unit that stores image data and various programs. Note that the configuration may include other storage devices such as an SSD or eMMC instead of or in combination with the HDD.
[0024] The network IF 320 is an interface that connects the control unit 310 to a LAN. The client PC 140 transmits and receives various information to and from other devices (such as the server PC 110, the storage 120, and the MFP 130) via the network IF 320 in accordance with keyboard input and display on the display.
[0025] Although the hardware configuration of the smartphone 150 differs in that the HDD is replaced with an SSD, and the main unit has a touch panel display that integrates a display, keyboard, and mouse, the functions and roles in this embodiment are generally the same as those of the client PC 140.
[0026] [Software configuration] 4 is a diagram for explaining the software configuration of the system of this embodiment. Here, a software structure is assumed in which functions are shared between the server PC 110 and the client PC 140, but functions may be consolidated in either PC.
[0027] The server PC 110 has functional units indicated by 410 to 419. Each of the functional units indicated by 410 to 419 is realized by the CPU 311 of the server PC 110 reading and executing a program stored in the HDD 314 or the like. The request control unit 410 receives a request sent from the client PC 140 and controls the execution of a process according to the request. For example, the request control unit 410 transmits and receives image data and the like to and from the storage 120 on the network via the storage access unit 419 in response to a request from the client PC 140. The functional units 411 to 418 will be described later.
[0028] The client PC 140 has functional units indicated by 420 to 424. The functional units indicated by 420 to 424 are realized by the CPU 311 of the client PC 140 reading and executing a program stored in the HDD 314 or the like. The request transmission / reception unit 420 transmits requests and responses generated in response to an operation by an operator to the server PC 110. The storage access unit 421 transmits and receives image data and the like to the storage 120 on the network. The functional units 422 to 424 will be described later.
[0029] The process of generating a form layout in the operation of the software shown in FIG. 4 will be described below with reference to the flowcharts of FIG. 5 and FIG. 5 is a flowchart for explaining an example of the overall operation procedure of this embodiment. Note that operations other than the operation of entering handwritten items in S503 and the operation of scanning the filled-out form in S504 are executed under the software configuration in FIG.
[0030] First, in "Generate and save form layout" in S501, the client PC 140 and the server PC 110 set a number of items to be handwritten input, and generate and save form layout information and form images for handwritten input based on the settings. This will be described in detail below with reference to FIG. 6.
[0031] FIG. 6 is a flowchart showing the details of "Generating and saving a form layout" in S501 of FIG. [Report generation process] The entire software in Figure 4 is configured to be operated by an operator from a client PC, and the operation of the entire software is explained together with the flowchart in Figure 6. 6, steps written on the left side indicate processing on the client PC 140 side, and are executed by the functions of client PC 140 shown in Fig. 4. Steps written on the right side indicate processing on the server PC 110 side, and are executed by the functions of server PC 110 shown in Fig. 4.
[0032] First, in S601 of FIG. 6, in response to an operator's instruction to start the form generation process, the CPU 311 of the client PC 140 starts a program stored in the HDD 314, and the process proceeds to S602.
[0033] In S602, the CPU 311 of the client PC 140 initializes a variable K, which is a serial number of a plurality of items to be set, to "1". Next, in S603, the item label input unit 422 accepts input of an item label character string corresponding to the Kth item by the operator via the keyboard 318 of the client PC 140. Here, the item label is a character string that is added near the entry area for handwritten input in order to clarify the content to be entered in the entry area. For example, when requesting the entry of the name of the person entering, character strings such as "Name", "Name of the person entering", and "Name of the person entering" correspond to the item label. Also, when requesting the entry of a date, character strings such as "Date of birth", "Application date", and "Expected date" are input according to the content. The request transmission / reception unit 420 sends the item label character string entered in S603 to the request control unit 410 of the server PC 110, and requests (demands) attribute estimation of the item label character string.
[0034] Next, in S604, the request control unit 410 of the server PC 110 requests the entry attribute estimation unit 411 to estimate the attributes of the item label character string received from the client PC 140, and the entry attribute estimation unit 411 estimates the attributes of the item label. Here, the attribute means information that assists in recognizing the handwritten entry content corresponding to the item label, and may be information indicating the character type such as kanji, alphabet, or numbers, or information of an applicable recognition dictionary such as a place name dictionary or a postal code dictionary. In addition, information such as the shape and size of the entry box for handwriting entry may also be included in the attribute. For example, the entry attribute estimation unit 411 determines, based on a keyword, which attribute name (e.g., address, postal code, telephone number, name, date, company name, email address, ...) in the attribute database 415 as shown in Table 2 described later corresponds to the item label character string. Then, the entry attribute estimation unit 411 acquires the attribute according to this determination result by referring to the attribute database 415, the entry box template 416, etc.
[0035] In S605, the form image generation unit 412 generates an inference result display screen based on the result of the attribute estimation in S604 (attribute estimation result), and the request control unit 410 returns the inference result display screen to the client PC 140 as the result of attribute estimation. As a result, the attribute confirmation unit 423 of the client PC 140 displays the inference result display screen on the display of the client PC 140, and prompts the user to confirm whether or not the attribute estimation result needs to be corrected. The inference result display screen and the change of the attribute estimation result will be specifically described below with reference to FIG. 7.
[0036] 7 is a diagram showing an example of an estimation result display screen when "date of birth" is entered as an item label character string. Here, the entry attribute estimation unit 411 estimates that the character string "date of birth" is a character string representing the "date" attribute in the attribute database 415. This is because the thesaurus contained in the entry attribute estimation unit 411 can determine that date of birth is a type of date, and this makes it possible to define the character type of the entry item, the applicable dictionary, and an appropriate entry frame.
[0037] On the estimation result display screen, 701 corresponds to the display of the item label character string input by the user in S602 of FIG. 6, and in this example, "Date of Birth" is displayed. 702 to 704 correspond to displaying the attribute estimation results. Reference numeral 702 denotes an indication of the estimated character type, which in this example is estimated to be "number." Reference numeral 703 denotes a display showing the presumed applicable dictionary, which in this example is presumed to be "Date Dictionary." 704 is a display showing an image of the estimated entry box. In the character recognition process shown in S505 at the following stage, recognition is limited to numbers based on these attributes, and a process is performed to determine whether the date is correct including the era name, etc. Also, in the entry box 704, the era name selection and the characters for the year, month, and day are preset in advance, indicating that only the era name selection and the input of numbers are required.
[0038] If these attributes are not appropriate or require correction, the operator clicks on correction buttons 705, 706, 707 with the mouse 319 or the like, which is accepted by the attribute confirmation unit 423. In response to the acceptance of this correction button operation, the attribute confirmation unit 423 determines that the results need to be corrected (No in S606), and displays other candidates on the display 316 so that changes, additions, etc. can be made (S607).
[0039] For example, when the attribute confirmation unit 423 receives a click on the character type correction button 705, it displays other character type candidates (kanji, kana, alphabet, symbols, etc.) and enables any item to be replaced, added, or deleted. Also, when the attribute confirmation unit 423 receives a click on the applicable dictionary correction button 706, it displays dictionaries (place name dictionary, name dictionary, postal code dictionary, etc.) that are applied to a specific attribute stored in the attribute database 415 and enables any dictionary to be replaced, added, or deleted.
[0040] Furthermore, when the attribute confirmation unit 423 receives a click on the edit box button 707, in addition to the entry boxes with preset auxiliary characters such as entry box 704, it also displays, for example, entry boxes that are simply blank or entry boxes without the character string "year", and makes it possible to select and replace the appropriate entry box. In addition, the entry frame is designed to surround the entry area with a solid circumscribing rectangular frame, but it is also possible to select a dotted rectangle, an underline, or no frame at all.
[0041] If such corrections are not required or if the corrections are complete, the attribute confirmation unit 423 confirms the attribute settings when it receives a click of the Confirm button 708. In response to receiving the operation of this Confirm button 708, the attribute confirmation unit 423 determines that the result does not need to be corrected (No in S606) or that the corrections are complete, and proceeds to S608.
[0042] In S608, the CPU 311 of the client PC determines whether or not to end the input of the item label. If an operation to continue input of the item label is performed, the CPU 311 of the client PC determines to continue input of the item label (No in S608), and proceeds to S609. In S609, the CPU 311 of the client PC increments K, returns the process to S603, and controls the process to continue the same procedure.
[0043] On the other hand, if an operation to end the input of item labels has been performed, the CPU 311 of the client PC determines that the input and acceptance of all item labels has been completed (Yes in S608), and advances the process to S610.
[0044] In S610, the CPU 311 of the client PC sends the label string and various attribute information determined in the processing up to this point to the server PC 110, and the form image generation unit 412 of the server PC 110 automatically generates the layout of the form (i.e., the fill-in form) and generates a form image.
[0045] Next, in S612, the form image generating unit 412 stores the form image generated in S610 in the form image storage unit 413 together with an ID number for distinguishing between multiple forms. Furthermore, the form image generating unit 412 stores the layout information and attribute information for each item in the layout information storage unit 417 together with the ID number. Then, the CPU 311 of the server PC 110 ends the processing of this flowchart.
[0046] In the flow of Fig. 6, a series of steps are performed sequentially for each item. However, it is also possible to input all item labels first, and then perform attribute estimation and correction / confirmation processing for each of them all at once after input, or to process them separately for multiple items.
[0047] In the above explanation, the operator's operations are performed on the client PC 140, but similar operations can also be performed by accessing the server PC 110 from the smartphone 150 in Fig. 1 via a wireless LAN-AP (access point). In this case, the operator's operations are performed via the touch panel display of the smartphone. Note that similar operations are possible not only with smartphones but also with tablet-type devices.
[0048] [Form layout generation] Here, the layout information will be described in detail, including the automatic generation process of the form layout. Fig. 8 is a diagram showing an example of an automatically generated form image. This example corresponds to the example of a form image that is automatically generated by setting five handwritten items according to the flowchart in Fig. 6, and shows an example that is assumed to be printed on A4 size paper.
[0049] In FIG. 8, reference numeral 801 denotes markers for aligning an image when handwritten information is recognized from an image scanned in S504 and S505 of FIG. 5, which will be described later, and are formed in three places on the image.
[0050] Reference numeral 802 denotes a character string such as the name of the form, which can be input in advance when the form generation process starts. 803 to 807 are item label character strings input in S603 of FIG. 6 and correspond to K=1 to 5.
[0051] 808 to 812 represent handwritten information entry frames estimated and confirmed in S604 in FIG. 6. The meaning of each label character string is estimated and adopted from the entry frame template 416, and the item label character string and entry frame are arranged from the top of the paper in consideration of the character size and entry frame size. For example, 808 adopts a template in which the surname and first name of the name are entered separately, but it can be modified to change to an entry frame template in which both are entered together. 809 is an address entry template in which prefectures and cities, wards, towns, and villages are embedded in the form so that they can be selected by circling them, but it can also be changed to a different type of entry frame, such as a template in which all addresses are entered by hand. 810 represents the entry frame for the date of birth described in FIG. 7. 811 corresponds to the entry frame for the email address, and since the email address string contains "@" as an attribute, "@" is embedded in advance. Note that numbers, alphabets, and symbols are set as character type attributes for 811. In the field 812, it is assumed that this is a free entry area based on the description of "100 characters or less" in the label string, and two entry frames are set with 50 characters per line.
[0052] Reference numeral 813 denotes a barcode (here, a two-dimensional code) for identifying the generated form, and corresponds to the ID number stored in the form image storage unit 413 and the layout information storage unit 417 .
[0053] Here, the layout information refers to not only the attribute information already set for each item, but also the coordinate information on the form image of each entry area as an additional attribute. For example, in the entry box 808, there are two entry areas for the last name and first name for the item label "Name". This entry area is selected from the entry box template 416, and its size and shape are stored as template information. In addition, the form image generating unit 412 manages where it is placed on the form, so the start and end positions of the entry area can be determined in pixel units on the image. Therefore, the coordinate information is converted into the start point (upper left) and end point (lower right) of each rectangular area surrounded by solid lines of the two entry areas described in relative coordinates with the three markers, and saved as layout information.
[0054] The relative coordinates referred to here are those that use the pixel position of the center point of the three marker squares as the marker reference point. In other words, the upper left marker reference point is the coordinate origin, and the number of pixels between the upper right and lower left marker reference points and the coordinate origin is normalized as the normalization standard in the horizontal direction (X direction) and vertical direction (Y direction), respectively. In other words, the coordinates on the image data are expressed as pixel positions in a two-dimensional pixel array, but are expressed as real-valued relative coordinate values with the coordinate origin as coordinates (0.0,0.0), the upper right marker reference point as (1.0,0.0), and the lower left marker reference point as (0.0,1.0). This is because the absolute values of the coordinates on the image change depending on the printing conditions of the form and the resolution at the time of scanning.
[0055] In addition, if you select an underlined or unlined writing area instead of a circumscribing rectangular frame in the writing frame setting procedure in Figure 7 described above, you should enter start and end coordinates that are wider than the writing area when surrounded by a solid rectangular frame, with a certain margin. This is because the range of the writing area is less clear than when there is a rectangular writing frame, so there is a possibility that the area actually written by hand will be wider.
[0056] 809 to 812 are similar to 808, but in this example, since the handwritten area is divided by the embedded character, the embedded character and the position of the rectangular frame are taken into consideration and the coordinates of the dotted line area (814, 815, 816) of 809, for example, are adopted. In addition, for the portion selected by a circle, the position coordinates of which circle detected by the recognition process corresponds to which character must be recorded together with the corresponding text, as described later.
[0057] Table 1 shows an example of layout information actually stored in layout information storage unit 417, corresponding to Fig. 8. This layout information is automatically generated by entry attribute estimation unit 411 by simply inputting the character strings of the item labels in the second column, with reference to the information stored in attribute database 415 and entry box template 416 and the form layout. [Table 1]
[0058] The layout information in Table 1 stores the item label corresponding to the item number K, the subitems and entry attributes (free entry or circle selection) defined in the entry box template in the case of entry boxes with divided areas, the entry box coordinates (start point, end point) for each subitem determined by the layout arrangement, the character type defined in the attribute database, the applicable dictionary, etc. Here, X and Y are the relative coordinate values in the horizontal and vertical directions of the form image, as mentioned above.
[0059] Here, if the entry attribute is a circle, the description method is slightly different. For example, in the case of selecting "Prefectures", the rectangular coordinates surrounding the area in which each of the characters "To, Do, Fu, Ken" is written are written as the start point (Xs4a, Ys4a), (Xs4b, Ys4b), (Xs4c, Ys4c), (Xs4d, Ys4d) and the end point (Xe4a, Ye4a), (Xe4b, Ye4b), (Xe4c, Ye4c), (Xe4d, Ye4d) in the start coordinates and end coordinates. In addition, the character type is set to "To, Do, Fu, Ken", with four characters separated by commas. In the recognition process described later, by recognizing which of the four rectangular coordinates the circle was written, it is possible to identify which of the characters separated by commas in the character type was selected and output it as text.
[0060] As shown in Figure 8, each item label and entry frame is laid out in order from the top of the image on a blank image equivalent to a form paper of a specified size, starting with item number (K) 1, but it is possible that they will not fit on one sheet of paper due to the number of items, the length of the item label strings, the size of the entry frames, etc. In other words, while the area can be controlled in the horizontal direction by setting the entry frames in advance so that they fit the paper size and by appropriately breaking long item label strings, no such control can be performed in the vertical direction. Therefore, if it is not possible to arrange all items on one page, it is necessary to add a form image as a new page.
[0061] Here, the layout is generated with the initial settings for the font size of the item label and the vertical size of one line of the entry box, which are 12 points and 1 cm, the standard size of handwritten characters, when printed on A4 paper. With the default settings, if all items cannot fit on a single form image, the form image generation unit 412 presents the operator with the following options and generates a form image based on the instructions selected by the operator. (1) Place items with default settings (displays the number of pages required) (2) Reduce the image and place it on a single form (display the font size and entry box size for this purpose) Another possible method would be for the operator to input the desired number of pages, and the system would automatically calculate the font size and entry frame size that can be arranged that way to generate the form layout.It is also possible to display a warning if the number of items does not fit on one page, and to encourage the operator to reduce the number of items.
[0062] [Handwritten information recognition and output] When the CPU 311 of the client PC 140 accepts a print instruction from an operator, in S502 of FIG. 5, the MFP cooperation control unit 424 transmits the form layout image generated as described above to the MFP 130, and causes it to be printed on a predetermined sheet of paper.
[0063] In S503, the target person writes handwritten information on the printed paper. The operator places this paper on a platen or ADF (not shown) of the MFP 130 and issues an instruction to execute scanning. Then, in S504, the MFP cooperation control unit 424 issues an instruction to the MFP 130 to scan the form, and the MFP 130 executes the scan. The scanned image data is transmitted from the MFP 130 to the client PC 140. The request transmission / reception unit 420 transmits this image data to the handwriting recognition processing unit 414 of the server PC 110.
[0064] In S505, the handwriting recognition processing unit 414 recognizes handwritten information as described below. Furthermore, in S506, the handwriting recognition processing unit 414 sends the recognition result to the recognition result storage unit 418 and stores it. The scanned image data may be stored in the storage 120 on the network and transmitted or received via the storage access unit 419 or 421 .
[0065] The form layout image generated as described above is sent from the MFP cooperation control unit 424 to the MFP 130 in response to a print instruction from the operator in S502 of Fig. 5, and is printed on a predetermined sheet of paper. The target person writes handwritten information on the printed sheet. In response to a scan instruction from the operator in S504 of Fig. 5, the MFP cooperation control unit 424 issues a form scan instruction to the MFP 130, and the filled-in form is scanned by the MFP 130. The request transmission / reception unit 420 sends the scanned image data to the handwriting recognition processing unit 414 of the server PC. The handwriting recognition processing unit 414 recognizes the handwritten information as described below, and sends the recognition result to the recognition result storage unit 418 to store it. The scanned image data may be stored in the storage 120 on the network and transmitted / received via the storage access unit 419 or 421 .
[0066] Here, the handwriting recognition processor 414 will be described in detail. The handwriting recognition processor 414 first recognizes the barcode for identifying the form from the image data generated by scanning the form, and obtains the form ID number. Next, the handwriting recognition processing unit 414 reads out the form image corresponding to the form ID number from the form image storage unit 413 and sets it as a reference image. The scanned image data can be corrected for position, magnification, and inclination so that it overlaps with the reference image by detecting the coordinates of three markers, and a difference image between the corrected image and the reference image is generated. This makes it possible to extract information added by hand to the original form image. In addition, since the coordinates of three markers have been detected, it is possible to determine relative coordinates using the aforementioned marker coordinates on the differential image as the reference point, and to associate them with the relative coordinates of the start point and end point of the handwritten entry area stored in the layout information storage unit 417.
[0067] FIG. 9 is a diagram showing an example of a scan image of a handwritten form and a difference image between an unwritten form. FIG. 9(a) is a scanned image of a handwritten form. FIG. 9(b) shows a differential image generated between FIG. 9(a) and a reference image, in which the start and end points of the handwritten entry area stored in the layout information are displayed as overlapping dotted rectangles.
[0068] As described above, by recognizing the handwritten characters in the dotted rectangular area shown in Fig. 9(b), it is possible to obtain and recognize character strings corresponding to item labels or sub-items within the item labels described in Table 1. At this time, the recognition accuracy can be improved by applying the corresponding character types and dictionaries defined in Table 1 for each item.
[0069] As for the circled portion, as explained above, the coordinates of the rectangle surrounding the circled candidate characters and the corresponding text to be output are described in the layout information, so if the center coordinates of the circled area are detected, the corresponding character string (here, one of the prefectures) can be output. In the example of Figure 9, the text "Prefecture", "City", and "Akira" will be output.
[0070] For items divided by subitems in Table 1, text information corresponding to the item label can be obtained by concatenating the items in order, including the text selected in a circle, and outputting them as one. For email addresses, when combining the first and second half of the recognition results into a single text, it is necessary to insert an "@" between the two. This kind of special processing also needs to be stored as information in the email address entry box of the entry box template.
[0071] The handwritten information recognized in the above manner is stored in the recognition result storage unit 418 as text information corresponding to each item label (S506). The format for storing the recognition results may be, for example, a CSV file with multiple item labels in the first row, which is created in advance, and the text data resulting from scanning and recognizing multiple forms is added and stored in columns corresponding to the item labels. This can reduce the effort required for subsequent tabulation work using a spreadsheet program or the like.
[0072] As described above, according to the first embodiment, it is possible to provide an environment in which the entry area, entry frame, entry attributes, etc. of a handwritten form are automatically generated according to the input of the item label character string by the operator, and the process of reading, recognizing, and tallying the handwritten form can be seamlessly performed according to the generated entry area, recognition, and tallying. This makes it possible to read and recognize handwritten information for items to be acquired reliably and with high accuracy with simple settings and operations, without the need for cumbersome tasks such as setting the entry area and entry attributes of a handwritten form, and output the information as text data. This makes it possible to remarkably improve the usability of a system for reading and recognizing handwritten information entered on a form and extracting text data with high accuracy.
[0073] Second Embodiment In the above first embodiment, the format of handwritten character input and predetermined circled selection input was described, but there are also cases where selection input from arbitrary options is required. In such cases, in this embodiment, the item label string includes "multiple selections allowed" or "multiple selections not allowed" as a string representing the selection format. For example, the following string is input as the item label string. "Please select the purpose of joining. (Multiple choices possible) Training, dieting, maintaining health, anti-aging, pool use." "Please rate your satisfaction on a 5-point scale (multiple answers not accepted): 1 (very bad), 2 (bad), 3 (average), 4 (good), 5 (very good)."
[0074] When the operator inputs the above character string from the item label input unit 422, the request transmission / reception unit 420 sends the input character string to the entry attribute estimation unit 411 via the request control unit 410. The entry attribute estimation unit 411 can understand that the input is a multiple-choice input from the character string "(multiple selections)". The entry attribute estimation unit 411 also interprets the syntax of the character string and understands that the first half of the character string represents the item label to be written on the form, and the second half represents the options separated by commas. The entry attribute estimation unit 411 can also distinguish between "(multiple selections allowed)" and "(multiple selections not allowed)". When multiple selections are allowed, the entry attribute estimation unit 411 selects a checkmark-type entry box template from the entry box template 416 and applies the option character string. When multiple selections are not allowed, the entry attribute estimation unit 411 selects a circle-type entry box template from the entry box template 416 and applies the option character string.
[0075] FIG. 10 is a diagram showing an example of a layout of a selection input frame, in which the same elements as those in FIG. 8 are given the same reference numerals. 1001 and 1002 are item labels, and 1003 and 1004 are entry boxes corresponding to the item labels 1001 and 1002, respectively.
[0076] For entry box 1003, multiple selections are allowed, so a template is used that allows you to select by filling in (i.e., marking) a rectangle at the beginning of the character string with a check mark or the like (filling in is also acceptable). For entry box 1004, multiple selections are not allowed, so a template is used that allows you to circle one of the options to select it. Here, the options are arranged so that line breaks occur at appropriate positions, taking into account the length of the character string and the horizontal size of the document. In this case, the layout information is stored in the layout information storage unit 417 in such a manner that the character string of each option and the start / end coordinates of the area in which the check box exists correspond to the character string of each option. This is the same as the layout information set in the selection of "Prefecture" in the first embodiment.
[0077] In this way, when a difference between the scanned image of the filled-in form and the blank form image is generated in the handwritten information recognition step of S505 in Fig. 5, it is possible to determine whether or not handwritten writing (circle or check mark) exists in the coordinate area. If handwritten writing exists, the option character string stored in the layout information in correspondence with the coordinate information can be output as the recognition result text.
[0078] In the above description, multiple character strings set as options are written in the item label string separated by commas, but if it is determined that the item label contains the character string "select", the operator may be prompted to input a separate character string for the option. As described above, according to the second embodiment, it is possible to provide an environment similar to that of the first embodiment for information recognition based on handwritten input such as circles and check boxes other than handwritten characters.
[0079] Third Embodiment In each of the above embodiments, the entry attribute estimation unit 411 has been described as estimating item attributes based on keywords such as "address," "name," and "multiple selection," but estimation may also be performed using a thesaurus search of the item label string, syntactic analysis in which the string is interpreted as a sentence, semantic analysis, or the like.
[0080] FIG. 11 is a diagram for explaining details of the entry attribute estimation unit 411 of the third embodiment and the operations of related software modules 410, 415, and 416. When an item label character string is input from the request control unit 410, attribute estimation is performed in the attribute estimation unit 1101 of the entry attribute estimation unit 411. For example, when a character string such as "Name", "Name of the person", or "Name of the person concerned" is input as an item label, the entry attribute estimation unit 411 searches the thesaurus 1102 to see if it is a synonym of the attribute registered in the attribute database 415. Here, the attribute "Name" can be assigned. Similarly, the attribute "Date" can be assigned to inputs such as "Date of Birth", "Application Date", and "Expected Date" by referring to the thesaurus.
[0081] Moreover, if the item label character string is the sentence "Would you like to use it again next time?", the morphological analysis unit 1103 and the syntax analysis unit 1104 can understand that the content is an inquiry about the customer's request. Furthermore, the semantic analysis unit 1105 can understand that the answer required is Yes, No, or something in between. Therefore, the entry attribute estimation unit 411 selects an entry box (multiple selections not allowed) in a three-choice circle format that corresponds to the above wording from the handwritten entry box template 416, and places it on the form layout. Here, for example, an entry box like the one shown in FIG. 12(a) is used. FIG. 12 is a diagram showing another example of the entry box of this embodiment.
[0082] For the multiple choice item labels described in the second embodiment, the boundary between the first half of the question sentence and the second half of the options can be determined by sentence syntactic analysis, but even if an item label in natural language format is specified without presenting options, the meaning can be understood and the entry box can be estimated. Here, even if an item label such as "Please rate your satisfaction with the product on a 5-point scale" is entered, a 5-point scale entry box template such as that shown in Fig. 12(b) can be adopted by syntactic and semantic analysis.
[0083] In this way, the thesaurus for the input item label character string is searched for and the attribute database 415 is referenced, the character string is interpreted as a meaningful sentence, its meaning is understood, and the appropriate attribute and entry box format can be selected. As described above, according to the third embodiment, semantic analysis is possible by treating item label strings as sentences, the accuracy of estimating item attributes and entry boxes is improved, and the burden on the operator can be further reduced.
[0084] [Fourth embodiment] In the fourth embodiment, new attributes and entry boxes can be defined and registered in the attribute database 415 and entry box template 416 for use. An attribute database is a table that stores, for each attribute, information that helps improve the accuracy of information recognition, and can be expressed in a tabular format such as Table 2.
[0085] [Table 2] Here, special characters and symbols refer to characters that may be used simultaneously with characters other than those of a particular character type, and the recognition rate can be expected to improve by using this attribute information as well.
[0086] It is possible to define and use new attributes in such an attribute database 415. For example, an attribute that is frequently used in a specific usage situation can be registered as a new attribute name in the database together with the character type, applicable dictionary, and the like, and used. Furthermore, in the entry box template 416, a plurality of types of entry boxes corresponding to the attribute names in the attribute database 415 are registered in advance in the form of images, and are configured to be selectable from the estimated attributes. It is also possible to use the entry box template 416 by registering a template that is frequently used for a specific purpose in association with an arbitrary attribute name or the newly added attribute name described above in the entry box template 416.
[0087] As described above, according to the fourth embodiment, by defining information that can be set as attributes and entry boxes, it becomes possible to provide a highly convenient environment for each user.
[0088] As described above, according to each embodiment, it is possible to provide a mechanism that can construct a system that can read handwritten information with high accuracy while minimizing the burden of setting the position of the handwritten entry area and the entry attributes by the operator. Specifically, by simply inputting the label string of the item to be handwritten, the meaning of the keywords and sentences contained in the string can be understood, and the layout and recognition attributes of the entry area can be automatically generated. Furthermore, since the handwritten information of the filled-in form is recognized based on this information, it is possible to obtain text data with high recognition accuracy without the burden of troublesome settings. As a result, it is possible to provide an environment in which the entry area, entry frame, entry attributes, etc. of the handwritten form are automatically generated according to the input of the item label string by the operator, with a simple task of the operator simply inputting the label string of the item to be handwritten, and the reading, recognition, and tabulation of the handwritten entry form can be performed seamlessly according to them. In other words, it is possible to significantly improve the usability of a system that reads and recognizes handwritten information entered on a form to extract text data.
[0089] It goes without saying that the configurations and contents of the various data described above are not limited to those described above, and the data may have various configurations and contents depending on the application and purpose. Although one embodiment has been described above, the present invention can be embodied, for example, as a system, an apparatus, a method, a program, a storage medium, etc. Specifically, the present invention may be applied to a system composed of multiple devices, or may be applied to an apparatus composed of a single device. Furthermore, any combination of the above-described embodiments is also included in the present invention.
[0090] (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. Furthermore, the present invention may be applied to a system made up of a plurality of devices, or to an apparatus made up of a single device. The present invention is not limited to the above-mentioned embodiment, and various modifications (including organic combinations of the embodiments) are possible based on the spirit of the present invention, and are not excluded from the scope of the present invention. In other words, the present invention includes all configurations that combine the above-mentioned embodiments and their modifications.
[0091] The disclosure of this embodiment includes the following configurations and methods. (Configuration 1) A data processing system for recognizing handwritten information entered on a form and extracting the information, comprising: an input means for inputting a character string as an item label of handwritten information to be extracted; a setting means for estimating attribute information of the handwritten information to be extracted from a character string input as the item label, and for controlling to set an entry area in which the handwritten information to be extracted is to be entered in accordance with the estimated attribute information; a storage means for determining a layout of the entry form in accordance with the set entry areas, and storing coordinates and attribute information of the laid out entry areas in association with the item labels; a recognition means for recognizing handwritten information using coordinates and attribute information of the writing area for image data read from a writing form printed according to the layout and on which handwritten information is written; A data processing system comprising: (Configuration 2) The data processing system according to configuration 1, wherein the setting means estimates attribute information of the handwritten information to be extracted by applying a thesaurus search and / or a semantic analysis in which the character string input as the item label is regarded as a sentence. (Configuration 3) the input means is capable of inputting a character string representing a selection formula and a character string corresponding to a plurality of options as the character string as the item label; The data processing system according to configuration 1 or 2, characterized in that when the character string input as the item label contains a character string representing the multiple-choice question, the setting means estimates that the attribute information of the handwritten information to be extracted is a multiple-choice question, and sets a plurality of options contained in the character string in the entry area. (Configuration 4) The character string representing the selection formula includes a first character string representing that multiple selections are possible and a second character string representing that multiple selections are not possible, The setting means is When the character string input as the item label includes the first character string, a plurality of options included in the character string are set in the entry area in a form of being selected by marking the options; When the second character string is included, the character string is set in the entry area in a manner that allows the user to select one of a plurality of options included in the character string by circling it. 4. The data processing system according to configuration 3. (Configuration 5) 5. The data processing system according to any one of configurations 1 to 4, wherein the setting means estimates the attribute information using an attribute database that stores attribute information. (Configuration 6) 6. The data processing system according to configuration 5, wherein the attribute database is changeable. (Configuration 7) 7. The data processing system according to any one of configurations 1 to 6, wherein the setting means sets the writing area by using a template of a writing frame. (Configuration 8) 8. The data processing system according to claim 7, wherein the template of the entry frame is changeable. (Configuration 9) a printing means for printing the form according to the layout; 9. The data processing system according to any one of configurations 1 to 8, further comprising: a reading means for reading image data from the form on which handwritten information has been written in the writing area. (Method 1) A method for controlling a data processing system that recognizes handwritten information entered on a form and extracts the information, comprising the steps of: an input step of inputting a character string as an item label of handwritten information to be extracted; a setting step of estimating attribute information of the handwritten information to be extracted from a character string input as the item label, and controlling to set an entry area in which the handwritten information to be extracted is to be entered in accordance with the estimated attribute information; determining a layout of the entry form in accordance with the set entry areas, and storing the coordinates and attribute information of the laid out entry areas in a storage means in association with the item labels; a recognition step of recognizing the handwritten information using the coordinates and attribute information of the writing area for image data read from a writing form printed according to the layout and on which handwritten information is written; 13. A method for controlling a data processing system comprising: [Explanation of symbols]
[0092] 110 Server PC 130 MFP 140 Client PCs 411 Entry attribute estimation section 412 Form Image Generation Unit 415 Attribute Database 416 Fill-in Box Template 422 Item label input section
Claims
1. A data processing system for recognizing handwritten information entered on a form and extracting the information, comprising: an input means for inputting a character string as an item label of handwritten information to be extracted; a setting means for estimating attribute information of the handwritten information to be extracted from a character string input as the item label, and for controlling to set an entry area in which the handwritten information to be extracted is to be entered in accordance with the estimated attribute information; a storage means for determining a layout of the entry form in accordance with the set entry areas, and storing coordinates and attribute information of the laid out entry areas in association with the item labels; a recognition means for recognizing handwritten information using coordinates and attribute information of the writing area for image data read from a writing form printed according to the layout and on which handwritten information is written; A data processing system comprising:
2. The data processing system according to claim 1, wherein the setting means estimates attribute information of the handwritten information to be extracted by applying a thesaurus search and / or semantic analysis to the character string input as the item label, the character string being regarded as a sentence.
3. the input means is capable of inputting a character string representing a selection formula and a character string corresponding to a plurality of options as the character string as the item label; The data processing system according to claim 1, characterized in that, when a character string input as the item label contains a character string representing the multiple-choice question, the setting means infers that the attribute information of the handwritten information to be extracted is a multiple-choice question, and sets multiple options contained in the character string in the entry area.
4. The character string representing the selection formula includes a first character string representing that multiple selections are possible and a second character string representing that multiple selections are not possible, The setting means is When the character string input as the item label includes the first character string, a plurality of options included in the character string are set in the entry area in a form of being selected by marking the options; When the second character string is included, one of a plurality of options included in the character string is selected by circling it in the entry area.
4. The data processing system of claim 3.
5. 2. The data processing system according to claim 1, wherein said setting means estimates said attribute information using an attribute database that stores attribute information.
6. 6. The data processing system of claim 5, wherein said attribute database is modifiable.
7. 2. The data processing system according to claim 1, wherein said setting means sets said writing area using a template of a writing frame.
8. 8. The data processing system according to claim 7, wherein the template of the entry box is changeable.
9. a printing means for printing the form according to the layout; 9. The data processing system according to claim 1, further comprising: a reading unit for reading image data from the form on which handwritten information has been written in the writing area.
10. A method for controlling a data processing system that recognizes handwritten information entered on a form and extracts the information, comprising the steps of: an input step of inputting a character string as an item label of handwritten information to be extracted; a setting step of estimating attribute information of the handwritten information to be extracted from a character string input as the item label, and controlling to set an entry area in which the handwritten information to be extracted is to be entered in accordance with the estimated attribute information; determining a layout of the entry form in accordance with the set entry areas, and storing the coordinates and attribute information of the laid out entry areas in a storage means in association with the item labels; a recognition step of recognizing the handwritten information using the coordinates and attribute information of the writing area for image data read from a writing form printed according to the layout and on which handwritten information is written; 13. A method for controlling a data processing system comprising:
Citation Information
Patent Citations
Form recognition device, form recognition system, form recognition system program, form recognition system control method, and recording medium containing form recognition system program
JP6773400B2
Layout analysis device, analysis program thereof, and analysis method thereof
JP6896260B1
