Information processing apparatus, extraction processing apparatus, image processing system, control method of information processing apparatus, and program

JP2023030811A5Active Publication Date: 2024-08-29CANON KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021136149
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-08-24
Publication Date
2024-08-29
Estimated Expiration
2041-08-24

AI Technical Summary

Technical Problem

Existing image processing devices face challenges in creating robust learning data that accounts for various types of noise, particularly scan noise, which occurs randomly and affects the accuracy of extracting handwritten characters.

Method used

A mechanism is implemented to generate learning data by synthesizing handwritten images with noise images, using a correct label generation process to create pairs for training a neural network to estimate handwritten pixels, thereby enhancing robustness against noise.

Benefits of technology

This approach allows for the creation of learning data that effectively accounts for various noise types, improving the accuracy of extracting handwritten characters by mitigating the impact of scan noise.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

To provide an information processing apparatus configured so that learning data with various noises can be generated, and robust learning against noises can be performed, as a result, the influence of noises caused by scanning or the like can be sufficiently learned, and the deterioration of extraction accuracy of handwritten characters caused by the influence of noises can be suppressed, an extraction processing apparatus, an image processing system, a control method of the information processing apparatus, and a program.SOLUTION: A learning apparatus synthesizes a handwriting image (a foreground image obtained by randomly cut out in S501 to S505) with a noise image (a noise image randomly cut out in S507 to S508) to generate a synthesized image (S509), generates a correct label indicative of handwriting pixels in the handwriting image (S506), and associates the synthesized image with the correct label, as learning data for learning of a model which estimates handwriting pixels from an image (S510).SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an information processing apparatus, an extraction processing apparatus, an image processing system, a control method for an information processing apparatus, and a program.

Background Art

[0002] In recent years, due to changes in the working environment associated with the spread of computers, the digitization of business documents has been progressing. The targets of such digitization also include documents with handwritten characters, and technologies for extracting and digitizing handwritten characters have been studied.

[0003] In Patent Document 1, a technique is disclosed for extracting a handwritten area in insurance document inspection and changing the number of manual checks according to the possibility of character recognition of the content. According to this technique, it becomes possible to extract valuable handwritten characters entered in the handwritten area of a printed document. In tasks such as extracting a specific object (handwritten characters in Patent Document 1) from an image, technologies for processing an image so that the shape of the extraction target and the type of background can be learned under various conditions and enhancing learning data have been proposed (Patent Document 2).

[0004] In Patent Document 2, an object to be recognized is extracted from an image, and efficient learning is realized by creating learning data by pasting an image subjected to image conversion such as rotation and scaling onto another background image.

Prior Art Documents

Patent Documents

[0005]

Patent Document 1

Patent Document 2

Non-Patent Documents

[0006]

Non-Patent Document 1

[0007] When documents are digitized using image processing equipment such as MFPs (Multifunction Peripherals), noise (dirt on the document platen, streaks, dust, etc.) is generated in the image with each scan. This type of noise is unique to devices with scanning capabilities and will be referred to as "scan noise" from now on. Since this scan noise occurs at random locations with each scan, it is preferable to generate images in a variety of locations when creating training data.

[0008] However, when training data is created using a method that enhances scanned images, as described in Patent Document 2, the location of scan noise becomes fixed, making it difficult to perform robust training against the effects of noise. Therefore, when training is performed using training data created as described in Patent Document 2, the effects of noise caused by scanning and other factors cannot be sufficiently learned, and there is a possibility that the accuracy of handwritten character extraction will decrease due to the effects of noise.

[0009] This invention was made to solve the above-mentioned problems. The purpose of this invention is to provide a mechanism that can create training data for various types of noise and enable robust training against noise. [Means for solving the problem]

[0010] The present invention is characterized by comprising: a first acquisition means for acquiring a handwritten image; a second acquisition means for acquiring a noise image; a synthesis means for generating a composite image by superimposing the handwritten image and the noise image; a ground truth label generation means for generating ground truth labels indicating handwritten pixels in the handwritten image; and a data generation means for generating data of the composite image and the ground truth labels paired together as training data for training a model that estimates handwritten pixels from an image. [Effects of the Invention]

[0011] According to the present invention, it is possible to create training data for various types of noise, enabling robust learning against noise. As a result, the effects of noise caused by factors such as scanning can be sufficiently learned, and the decrease in the accuracy of handwritten character extraction due to the effects of noise can be suppressed. [Brief explanation of the drawing]

[0012] [Figure 1] A diagram showing an example of the configuration of the image processing system according to this embodiment. [Figure 2] Hardware configuration diagram of the image processing device, learning device, and image processing server. [Figure 3] A block diagram illustrating the logical configuration of the learning device. [Figure 4] A flowchart illustrating the learning process in the first embodiment. [Figure 5] A flowchart illustrating the training data generation process in the first embodiment. [Figure 6] A figure showing an example of a foreground source image in the first embodiment. [Figure 7] A figure showing an example of a noise source image in the first embodiment. [Figure 8A] A diagram illustrating the synthesis of a foreground image and a noise image in the first embodiment. [Figure 8B] A diagram illustrating the synthesis of a foreground image and a noise image in the first embodiment. [Figure 9]Flowchart for explaining the handwritten extraction request process and handwritten extraction process in the first embodiment. [Figure 10] Diagram illustrating the processing target image in the first embodiment and the result of estimating handwritten pixels from the processing target image. [Figure 11] Diagram illustrating the handwritten extraction image and the background extraction image in the first embodiment. [Figure 12] Diagram for explaining the synthesis of the background original image and the learning image in the second embodiment.

Embodiments for Carrying Out the Invention

[0013] Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. Hereinafter, a method for extracting handwritten characters from a form filled in by hand using a neural network that performs handwritten extraction learned using learning data generated including noise, recognizing the filled-in content as characters, and storing it in a database or the like will be described.

[0014] 〔First Embodiment〕 FIG. 1 is a diagram showing an example of the configuration of an image processing system showing an embodiment of the present invention. The image processing system 100 of the present embodiment includes an image processing device 101, a learning device 102, and an image processing server 103. The image processing device 101, the learning device 102, and the image processing server 103 are connected via a network 104.

[0015] The image processing device 101 is a digital multi-function device or the like and has a scanning function and a printing function. The image processing device 101 scans a document with only handwritten content on white paper using the scanning function to generate image data (hereinafter, this image is referred to as the "foreground original image"). The image processing device 101 scans a plurality of such documents to generate a plurality of foreground original images. In addition, the image processing device 101 scans a document of white paper or the like to generate image data including noise generated by scanning (hereinafter, this image is referred to as the "noise original image"). The image processing device 101 then transmits the foreground source image and noise source image generated as described above to the learning device 102 via the network 104.

[0016] The learning device 102 generates training data for training a neural network that performs handwriting detection from the foreground source image and noise source image generated by the image processing device 101. Then, the learning device 102 trains the neural network using the generated training data and generates training results (such as neural network parameters). The learning device 102 transmits the training results to the image processing server 103 via the network 104.

[0017] Furthermore, when performing handwriting extraction, the image processing device 101 scans the document containing the handwriting to obtain scanned image data to be processed (hereinafter, this scanned image data will be referred to as the "image to be processed"). The image processing device 101 then transmits the image to be processed to the image processing server 103, which was acquired as described above, via the network 104.

[0018] The image processing server 103 performs handwriting extraction on the image to be processed generated by the image processing device 101. The image processing device 101 uses the learning results generated by the learning device 102 to perform inference using a neural network to extract handwritten pixels from the image to be processed, and generates images that separate the handwritten portion from the printed portion (background portion) (image of the handwritten portion, image of the printed portion). The image processing server 103 may also be configured to send the images generated as described above (images of the handwritten portion and images of the printed portion) to a handwritten OCR server (not shown) and a printed OCR server (not shown), respectively, and receive the OCR processing results. OCR stands for Optical Character Recognition.

[0019] The hardware configuration of the image processing device 101, the learning device 102, and the image processing server 103 will be described below using Figure 2. Figure 2(a) is a block diagram showing an example of the hardware configuration of the image processing device 101. The image processing device 101 includes a CPU 201, ROM 202, RAM 204, printer device 205, scanner device 206, document transport device 207, storage 208, input device 209, display device 210, and external interface 211. These devices are interconnected via a data bus 203.

[0020] The CPU 201 is a controller for the overall control of the image processing unit 101. The CPU 201 starts the OS (operating system) stored in the storage unit 208 via a boot program stored in the ROM 202. On this OS, the controller program stored in the storage unit 208 is executed. The controller program is a program for controlling the image processing unit 101. The CPU 201 comprehensively controls each device connected by the data bus 203. The RAM 204 operates as the main memory and temporary storage area for the CPU 201, such as the work area.

[0021] The printer device 205 prints image data onto paper (recording material). This can be done using electrophotographic printing methods that use a photosensitive drum or photosensitive belt, or inkjet methods that eject ink from a micro-nozzle array to print the image directly onto the paper; any method is acceptable.

[0022] The scanner device 206 uses an optical reading device such as a CCD (Charge Coupled Device) to scan a document such as paper, obtains electrical signal data, converts it, and generates scanned image data. The document transport device 207, such as an ADF (Automatic Document Feeder), transports documents placed on the document tray on the document transport device 207 to the scanner device 206 one by one.

[0023] Storage 208 is a non-volatile memory that can be read and written to, such as an HDD (Hard Disk Drive) or SSD (Solid State Drive), and various data, including the controller program mentioned above, is stored here. The input device 209 is an input device consisting of a touch panel, hard keys, etc. The input device 209 receives user operation instructions and transmits instruction information, including the instruction position, to the CPU 201.

[0024] The display device 210 is a display device such as an LCD or CRT. The display device 210 displays the display data generated by the CPU 201. The CPU 201 determines which operation has been performed based on the instruction information received from the input device 209 and the display data displayed on the display device 210. Based on this determination, the CPU 201 controls the image processing device 101 and generates new display data to display on the display device 210.

[0025] The external interface 211 transmits and receives various types of data, including image data, to and from external devices via networks such as LANs, telephone lines, and infrared wireless communication. The external interface 211 receives PDL data from external devices such as the learning device 102 and a PC (not shown). The CPU 201 interprets the PDL data received by the external interface 211 and generates an image. The generated image can be printed by the printer device 205 or stored in the storage 208. The external interface 211 also receives image data from external devices such as the image processing server 103. The CPU 201 prints the received image data by the printer device 205, stores it in the storage 208, or transmits it to other external devices via the external interface 211. Furthermore, the external interface 211 transmits image data generated by the scanner device 206 and image data stored in the storage 208 to external devices such as the learning device 102 and the image processing server 103.

[0026] Figure 2(b) is a block diagram showing an example of the hardware configuration of the learning device 102. The learning device 102 includes a CPU 231, ROM 232, RAM 234, storage 235, input device 236, display device 237, external interface 238, and GPU 239. Each of these components can send and receive data from one another via a data bus 233.

[0027] The CPU 231 is a controller for controlling the entire learning device 102. The CPU 231 starts the OS stored in storage 235 using a boot program stored in ROM 232, which is non-volatile memory. On this OS, it executes the learning data generation program and the learning program stored in storage 235. The CPU 231 generates learning data by executing the learning data generation program. The CPU 231 also trains a neural network that performs handwriting recognition by executing the learning program. The CPU 231 controls each part via buses such as the data bus 233.

[0028] RAM234 operates as a temporary storage area for the CPU231, such as the main memory or work area. Storage 235 is a non-volatile memory that can be read and written to, such as an HDD or SSD, and various types of data, including the aforementioned training data generation program and training program, are stored on it.

[0029] The input device 236 is an input device consisting of a mouse, keyboard, etc. The display device 237 is the same as the display device 210 described using Figure 2(a). External interface 238 is the same as external interface 211, which was described using Figure 2(a). The GPU239 is an image processing processor that works in cooperation with the CPU231 to generate image data and train neural networks.

[0030] Figure 2(c) is a block diagram showing an example of the hardware configuration of the image processing server 103. The image processing server 103 includes a CPU 261, ROM 262, RAM 264, storage 265, input device 266, display device 267, and external interface 268. Each of these components can send and receive data from one another via the data bus 263.

[0031] The CPU 261 is the controller for the entire image processing server 103. The CPU 261 starts the OS stored in storage 265 using a boot program stored in ROM 262, which is non-volatile memory. On this OS, it executes the image processing server program stored in storage 265. By executing this image processing server program, the CPU 261 extracts and erases handwritten pixels from the image to be processed. The CPU 261 controls various parts via buses such as the data bus 263.

[0032] RAM264 is used as a temporary storage area for the CPU261, such as the main memory and work area. It is a working object. Storage 265 is a non-volatile memory that can be read from and written to, such as an HDD or SSD, and various types of data, including the aforementioned image processing program, are stored on it.

[0033] Input device 266 is the same as input device 236 described using Figure 2(b). Display device 267 is the same as display device 210 described using Figure 2(a). External interface 268 is the same as external interface 211, which was described using Figure 2(a).

[0034] The learning device 102 and the image processing server 103 are information processing devices, and may be implemented by a single computer or by multiple computers. For example, the learning device 102 and the image processing server 103 may be implemented using cloud computing technology. The learning device 102 and the image processing server 103 may also be implemented using cloud services or the like.

[0035] Figure 3 is a block diagram illustrating the schematic logical configuration of the learning device 102. The training data generation unit 301 generates training data for training the neural network. The training data generation unit 301 is realized when the CPU 231 loads the training data generation program into the RAM 234 and executes it.

[0036] The learning unit 302 trains the neural network using the training data generated by the training data generation unit 301. The learning unit 302 is realized when the CPU 231 loads the training program into the RAM 234 and executes it. Alternatively, the CPU 231 may be configured to perform some of the computational processing carried out by the training data unit 301 and the training unit 302 in cooperation with the GPU 239.

[0037] Next, we will explain the learning process performed by the learning device 102. Figure 4 is a flowchart illustrating the learning process in the first embodiment. This process is implemented by the learning unit 302 of the learning device 102, etc. Specifically, it is implemented by the CPU 231 loading the learning program, etc., into the RAM 234 and executing it. This learning process is initiated when the user performs a predetermined operation via the input device 209 of the image processing device 101. In this embodiment, the mini-batch method is used for training the neural network, but it is not limited to this. In addition to the above-described means, the learning process may also be initiated by triggering input received from a PC (not shown) or the like via the network 104.

[0038] First, in S401, the CPU 231 initializes the neural network. That is, the CPU 231 constructs the neural network and initializes the values ​​of each parameter included in the neural network by randomly determining them. Various structures can be used for the neural network to be constructed, but for example, it can take the form of an FCN (Fully Convolutional Network) as shown in Non-Patent Literature 1.

[0039] Next, in S402, the CPU 231 acquires training data. The CPU 231 executes the training data generation process described later to acquire a predetermined number (mini-batch size, for example, "10") of training data. In this case, it is also possible to acquire training data that has been previously generated by the training data generation unit 301 and stored in the storage 235 or the like.

[0040] Next, in steps S403-S404, CPU231 performs training on the neural network. First, in S403, CPU231 calculates the error of the neural network. First, CPU231 inputs the input images included in each training data into the neural network and obtains an output. This output is an image of the same size as the input image, and as a prediction result, pixels determined to be handwritten have a pixel value indicating handwritten, and pixels determined not to be handwritten have a pixel value indicating that they are not handwritten. Then, CPU231 evaluates the difference between this output and the correct label image to find the error. Cross-entropy can be used as an index for this evaluation.

[0041] Next, in S404, CPU231 adjusts the parameters of the neural network. Specifically, CPU231 changes the parameter values ​​of the neural network using the backpropagation method based on the error calculated in S403.

[0042] Next, in S405, the CPU 231 determines whether or not to terminate the learning process. Specifically, the CPU 231 determines whether or not the processes in S402 to S404 have been performed a predetermined number of times (for example, "60,000 times"). This predetermined number of times can be determined by user input at the start of the learning process. If the predetermined number of times has not yet been performed, the CPU 231 determines not to terminate (determines NO in S405), proceeds to S402, and continues learning the neural network.

[0043] On the other hand, if the predetermined number of times has already been performed, CPU231 decides to terminate (if YES is given in S405), and CPU231 transitions to S406. In S406, the CPU 231 sends the neural network parameters adjusted in S404 above to the image processing server 103 as the learning result, and terminates the processing of this flowchart.

[0044] Next, we will explain the training data generation process by the learning device 102. Figure 5 is a flowchart illustrating the training data generation process in the first embodiment. This process is implemented by the training data generation unit 301 of the learning device 102. Specifically, it is implemented by the CPU 231 expanding the training data generation into the RAM 234 and executing the process.

[0045] First, in S501, the CPU 231 selects and reads the foreground source image stored in the storage 235. This foreground source image will be explained using Figure 6. Figure 6 shows an example of a foreground source image. As shown in Figure 6, the foreground source image is an image in which characters and other elements are written solely by hand. The foreground source image is generated, for example, by scanning a document with handwritten characters 601-603 written on a blank sheet of paper 600, as shown in Figure 6, using the image processing device 101. The learning device 102 is assumed to have previously received multiple foreground source images generated as described above from the image processing device 101 and stored them in the storage 235. In S501 above, one is randomly selected from among them.

[0046] Next, in S502, the CPU 231 rotates and processes the foreground source image read in S501. The rotation angle is randomly selected from a predetermined range (for example, between -10 degrees and +10 degrees). Next, in S503, the CPU 231 generates image data by cutting out a portion of the foreground source image that was rotated in S502 (for example, with dimensions of "height × width = 512 × 512"). (Hereafter, this image data will be referred to as the "foreground image"). The position from which the image is cut out is determined randomly.

[0047] Next, in S504, the CPU 231 processes the foreground image generated in S503 by scaling it. The scaling factor is randomly selected from a predetermined range (for example, "between 50% and 150%"). Furthermore, a portion of the scaled foreground image (for example, with dimensions of "height × width = 256 × 256") is cropped from the center or elsewhere, and the foreground image is updated.

[0048] Next, in S505, the CPU 231 processes the foreground image by changing the brightness of each pixel. Specifically, the CPU 231 converts the foreground image to grayscale and then changes the brightness of the foreground image using gamma correction. The gamma value is determined by randomly selecting from a predetermined range (for example, between 0.1 and 10.0).

[0049] Next, in S506, the CPU 231 generates a ground truth label image for the foreground image (ground truth label generation process). First, the CPU 231 performs a binarization process on the foreground image. The CPU 231 sets the values ​​of pixels that are lower than a predetermined threshold to indicate handwritten text (for example, "255" and subsequent values ​​are similar), and sets the values ​​of other pixels to indicate that they are not handwritten text (for example, "0" and subsequent values ​​are similar), generating image data as the ground truth label image for the foreground image. The binarization method is not limited to a threshold-based method; known binarization methods can be applied.

[0050] Next, in S507, the CPU 231 selects and reads the noise source image stored in the storage 235. This noise source image will be explained using Figure 7. Figure 7 shows an example of a source image with noise. The noise source image is an image containing noise that appears when scanning documents or other forms, for example, by scanning a blank sheet of paper with the image processing device 101. The learning device 102 is assumed to have previously received the noise source image generated as described above from the image processing device 101 and stored it in the storage device 235.

[0051] Figure 7 shows an example in which noise 704 and noise 705 are generated in a scanned image 702 obtained by scanning a blank sheet of paper 701 via the scanning function of the image processing device 101. Noise 704 represents, for example, scan noise that appears randomly during scanning. Noise 705 represents, for example, streaky noise caused by dirt on the image processing device 101. In addition to these, noise also includes noise specific to the reading device (CCD, line sensor) and compression noise due to image compression applied during the image processing process.

[0052] Next, in S508, the CPU 231 generates image data by cutting out a portion of the noise source image acquired in S507 (for example, an image with dimensions of "vertical × horizontal = 512 × 512"). (Hereafter, this image data will be referred to as the "noise image"). The cutting position is determined randomly. At this time, the pixel values ​​of the cut-out noise image are evaluated, and noise images that do not contain a certain amount of noise may not be adopted, and a different position may be used for cutting. For example, if the brightness value of a pixel falls below a threshold (for example, "200"), it may be assumed that noise is present in the pixel, and a judgment is made for each pixel in the cut-out image. If the value falls below a predetermined percentage (for example, "10%" of the number of pixels), the cut-out noise image may not be adopted, and another noise image may be cut out. Note that the noise judgment process is not limited to this form, and other forms of evaluating the presence or absence of noise may be used.

[0053] Next, in S509, the CPU 231 generates an image by combining the foreground image acquired in S501 to S505 with the noise image acquired in S507 to S508 (hereinafter, this image will be referred to as the "composite image"). For example, the CPU 231 combines images by comparing the same coordinates in the foreground image and the noise image, and creating a new image using the pixel value of the one with lower brightness. Note that the means of combination are not limited to the above; for example, the pixel value may be determined by blending pixels at the same coordinates in each image at a certain ratio.

[0054] Next, in S510, the CPU 231 associates the synthesized image generated in S509 with the ground truth label image generated in S506 and stores it as training data in a predetermined area of ​​the storage 235.

[0055] Next, in S511, the CPU231 determines whether or not to terminate the training data generation process. If it has not yet generated the predetermined number of training data, the CPU231 decides not to terminate yet (determines NO in S511) and proceeds to S501. On the other hand, if the CPU 231 has already generated the predetermined number of training data, it will decide to terminate (determine YES in S511) and end the processing of this flowchart.

[0056] The training data generated as described above will be explained below using Figures 8A and 8B. Figures 8A and 8B show an example of a composite image obtained by combining a foreground image and a noise image in the first embodiment. Hereafter, Figures 8A and 8B will be collectively referred to as Figure 8.

[0057] Figure 8(a) shows a composite image of the training images in the first embodiment. Foreground image 801 is an example of a foreground image generated by steps S501 to S505 in Figure 5. This is an image in which handwritten characters 601 from the foreground source image 600 illustrated in Figure 6 have been partially cut out and processed, such as by rotation. Noise image 802 is an example of a noise image generated by steps S507-S508 in Figure 5. This image was generated by partially extracting noise 704 from the source noise image 702 illustrated in Figure 7.

[0058] The composite image 803 is an example of a composite image generated by S508 in Figure 5. It is an image generated by comparing the pixel values ​​of the same coordinates with the foreground image 801 and the noise image 802. The correct label image 804 is an example of a correct label image generated by S506 in Figure 5. The pixels are configured to represent the handwritten character portion of image 801, and it is treated as training data in conjunction with the composite image 803.

[0059] Figures 8(b) to 8(d) show the composite image at the pixel level. Figures 8(b), 8(c), and 8(d) are partial images extracted from the foreground image 801, noise image 802, and composite image 803 at the same coordinates (width: x1 to x2, height: y1 to y2), respectively. The rectangles represent pixels that make up the image.

[0060] Each pixel in the composite image 807 is determined based on the pixel values ​​at the same coordinates in the foreground image 805 and the noise image 806, which are to be composited, as described above. For pixel 810 in the composite image 807, the brightness values ​​of pixel 808 in the foreground image 805 and pixel 809 in the noise image 806, which are at the same coordinates, are compared, and the brightness value of the lower pixel is adopted. In the case of pixel 810, the brightness value of pixel 808 in the foreground image 805 is determined to be lower, and is adopted as the brightness value of pixel 810. On the other hand, in the case of pixel 813, pixel 811 in the foreground image 805 and pixel 812 in the noise image 806 are compared, and pixel 812 in the noise image 806, which is determined to have a lower brightness value, is adopted as pixel 813 in the composite image 807.

[0061] As described above, in this embodiment, a composite image is generated by overlaying a handwritten character image (foreground image) and a noise image, and training data is generated by combining the composite result with the label information of the handwritten character (ground truth label image). This makes it possible to create training data for various types of noise, and enables robust training against noise.

[0062] Next, we will describe an example in which the image processing device 101 reads image data from a document using its scanning function and the image processing server 103 extracts handwritten characters. First, the image processing device 101 scans the original document containing both printed and handwritten characters to obtain an image to be processed. Then, it sends the image to the image processing server 103 to request the extraction of handwritten characters. The following explanation will be given using Figure 9(a).

[0063] Figure 9(a) is a flowchart showing an example of a handwritten text extraction request process performed by the image processing device 101. This process is achieved when the CPU 201 of the image processing device 101 reads the controller program stored in the storage 208, loads it into the RAM 204, and executes it. This process is started when the user performs a predetermined operation via the input device 209 of the image processing device 101.

[0064] First, in S901, the CPU 201 controls the scanner device 206 and the document transport device 207 to scan the document and generate the image to be processed. The image to be processed is generated as full-color (RGB 3-channel) image data. The document to be scanned here is, for example, a form such as an order form as shown in Figure 10(a), with handwritten values ​​to the right of each item. Next, in S902, the CPU 201 sends the handwritten data to be extracted in S901 to the image processing server 103 via the external interface 211.

[0065] Next, we will explain the handwriting extraction process performed by the image processing server 103. The image processing server 103 receives the image to be processed from the image processing device 101 and obtains image data in which handwritten characters contained in the scanned image data are extracted. The following explanation will be given using Figure 9(b).

[0066] Figure 9(b) is a flowchart showing an example of handwritten character extraction processing by the image processing server 103. This process is achieved when the CPU 261 reads the image processing server program stored in the storage 265, loads it into the RAM 264, and executes it. This process starts, for example, when the user turns on the power to the image processing server 103.

[0067] First, in S911, the CPU 261 loads a neural network for handwriting detection. The CPU 261 first constructs the same neural network as in S401 in Figure 4. Then, in S406 in Figure 4, the training results (neural network parameters) transmitted from the learning device 102 are reflected in the constructed neural network. This generates a trained model for estimating handwritten pixels from an image. It should be assumed that the image processing server 103 has already received the learning results transmitted from the learning device 102 in step S406 of Figure 4 and stored them in the storage 265.

[0068] Next, in S912, the CPU 261 determines whether it has received and acquired the image to be processed from the image processing device 101. If the image to be processed has been acquired via the external interface 268 (YES in S912), the CPU 261 proceeds to S913. Otherwise (NO in S912), the CPU 261 proceeds to S917.

[0069] In S913, the CPU 261 extracts handwritten pixels from the image to be processed received from the image processing device 101. First, the CPU 261 converts the image to be processed to grayscale. Then, this grayscale image to be processed is input to the neural network constructed in S911 to estimate the handwritten pixels. That is, the trained model generated in S911 is used to estimate the handwritten pixels. As a result, image data is obtained in which pixels that are the same size as the image to be processed and are determined to be handwritten are recorded with a value indicating that they are handwritten (e.g., "1"), and pixels that are determined not to be handwritten are recorded with a value indicating that they are not handwritten (e.g., "0"). The following explanation will be given using Figure 10. Figure 10(b) shows the image obtained by estimating the handwritten pixels, using the image in Figure 10(a) as the "processing image". In Figure 10, pixels with a value of "0" are represented in black, and pixels with a value of "1" are represented in white, for easier viewing of the results. Hereafter, this image data will be referred to as the "estimation result".

[0070] Next, in S914, the CPU 261 uses the estimation results created in S913 as a mask to extract the parts corresponding to handwriting from the image to be processed and create an image containing only handwriting. Specifically, it creates an image of the same size as the image to be processed, where the pixel values ​​of the image to be processed are substituted for the coordinates (pixels) where the estimation result is handwriting, and "255" is substituted for the coordinates (pixels) where the estimation result is not handwriting. Hereafter, this image will be referred to as the "handwriting extraction image". An example of the handwriting extraction image created here is shown in Figure 11(a).

[0071] Next, in S915, the CPU 261 uses the estimation result created in S913 as a mask to extract the portion corresponding to the background from the image to be processed and create an image containing only the background. Specifically, it creates an image of the same size as the image to be processed, where the pixel values ​​of the image to be processed are substituted for the coordinates (pixels) where the estimation result is not handwritten, and "255" is substituted for the coordinates (pixels) where the estimation result is handwritten. Hereafter, this image will be referred to as the "background extraction image". An example of the background extraction image created here is shown in Figure 11(b).

[0072] Next, in S916, the CPU 261 outputs the handwritten image and the background image. Specifically, the CPU 261 transmits the handwritten image obtained in S914 and the background image obtained in S915 to the image processing device 101 via the external interface 268.

[0073] Next, in S917, the CPU 261 determines whether or not to terminate the process. If the user performs a predetermined operation, such as turning off the power of the image processing server 103, the CPU 261 determines to terminate the process (determines YES in S917) and terminates the process in this flowchart. Otherwise, the CPU 261 determines not to terminate the process (determines NO in S917) and proceeds to S912.

[0074] In addition, although the handwriting extraction result is sent to the image processing device 101 in S916 above, it may be configured to perform other processing. For example, the handwriting extraction image and background extraction image may be sent via the external interface 268 to a handwriting OCR server (not shown) and a printed OCR server (not shown), respectively, to be used as input for each OCR, or they may be sent to a DB server (not shown) for storage. Thus, the output destination of the handwriting extraction result is not limited.

[0075] As described above, training data for training a neural network that performs handwritten character extraction is generated by combining image data containing only handwritten characters and image data containing only noise, so that the handwritten characters and noise overlap. Then, the neural network is trained using the generated training data, and the results of this training make it possible to extract the regions of handwritten characters from scanned images. At this time, by combining noise images with the training data, it is possible to obtain accurate extraction results regardless of the influence of noise generated during scanning.

[0076] In this embodiment, the learning data generation unit 301 and the learning unit 302 are implemented in the learning device 102, but they may be implemented in separate devices. In this case, the device implementing the learning data generation unit 301 transmits the learning data generated by the learning data generation unit 301 to the device implementing the learning unit 302. The learning unit 302 then learns the neural network based on the received learning data. Furthermore, although the image processing device 101 and image processing server 103 have been described as separate devices, the configuration is not limited to this; multiple functions may be integrated into a single device.

[0077] Furthermore, in this embodiment, training data was generated by calling a training data generation process during the training process. However, it is also possible to generate a large amount of training data in advance using a training data generation process, and then sample a mini-batch size from that data as needed during the training process.

[0078] Alternatively, a foreground source image may be generated by scanning a document with only a seal impression (a document with only a seal impression on a blank sheet of paper), or by scanning the back of a thin sheet of paper on which an electronic document has been printed. By doing so, training data for training a neural network that detects pixels corresponding to the seal impression or bleed-through can be synthesized and generated.

[0079] Alternatively, the foreground images obtained in steps S505 and S506 in Figure 5, and their corresponding ground truth label images, may be included in the training data. Alternatively, the noise image obtained in step S508 in Figure 5, and its corresponding ground truth label image, may be generated and included in the training data. This image may have the same size as the noise image and contain values ​​indicating that not all pixels are handwritten.

[0080] In this embodiment, the input image was generated as a grayscale image, but it may also be generated in other formats, such as a full-color image. In this embodiment, no image processing such as rotation is performed on the noisy image. However, methods may be used to generate the image including image processing (such as steps S502, S504, and S505 in Figure 5) similar to the foreground image.

[0081] [Second Embodiment] In the first embodiment, a noise image was composited onto a foreground image, which was a handwritten image. However, it is also possible to configure the system to composite an image containing background information such as printed characters or ruled lines (hereinafter referred to as the "background source image") with the foreground image, and then composite a noise image onto the resulting composite image. This embodiment will be described below with reference to Figure 12.

[0082] Figure 12(a) is a diagram illustrating the background source image in the second embodiment. The background source image 1201 shows the format of the form. In the second embodiment, as shown in Figure 12(a), an image containing typefaces 1202 representing input items of the form such as "furigana" and ruled lines 1203 is used as background information and material for the composite.

[0083] Figure 12(b) shows a composite image of the training images in the second embodiment, illustrating a composite example in which a background image is added to the example of the first embodiment which uses a foreground image and a noise image. In the example shown in Figure 12(b), the foreground image 1211 and background image 1212 are first combined to generate a combined image 1213. For the background image 1212, the original background image (for example, background image 1201) is processed in the same way as in steps S501 to S505 in Figure 5 of the first embodiment, and a partially extracted portion is used. Then, the noise image 1214 is further combined with the generated combined image 1213 to generate the final training data image 1215. The method for generating the foreground image and noise image described above is the same as in the first embodiment.

[0084] Furthermore, in the training data generation process of each of the above embodiments, when combining a noise image with a foreground image or a composite image obtained by combining a foreground image and a background image, a certain percentage of images may be provided in which the noise image is not combined. This makes it possible to include training data in cases where the effect of noise is small.

[0085] In the embodiments described above, a neural network model is used as an example for estimating handwritten pixels from an image, but the invention is not limited to this.

[0086] In each embodiment described above, a configuration was explained in which a composite image is generated using handwritten character images and images containing only noise, and the composite result is combined with the label information of the handwritten characters for learning. This makes it possible to create training data for various types of noise and to perform learning that is robust to noise. As a result, the effects of noise caused by factors such as scanning can be sufficiently learned, and the decrease in the accuracy of handwritten character extraction due to the effects of noise can be suppressed.

[0087] It should be noted that the structure and content of the various data described above are not limited to those mentioned, and it goes without saying that they can be composed of various structures and contents depending on the use and purpose. Although one embodiment has been described above, the present invention can take the form of, for example, a system, apparatus, method, program, or storage medium. Specifically, it may be applied to a system consisting of multiple devices, or to an apparatus consisting of a single device. Furthermore, any configurations combining the above embodiments are also included in the present invention.

[0088] (Other embodiments) The present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions. Furthermore, the present invention may be applied to a system consisting of multiple devices or to a device consisting of a single device. The present invention is not limited to the embodiments described above, and various modifications (including organic combinations of each embodiment) are possible based on the spirit of the invention, and these are not excluded from the scope of the invention. That is, all configurations that combine the above-described embodiments and their modified forms are included in the present invention. [Explanation of symbols]

[0089] 101 Image Processing Device 102 Learning device 103 Image Processing Server

Claims

1. A first acquisition means for acquiring a handwritten image; A second acquisition means for acquiring a noise image; a synthesis means for generating a synthesis image by synthesizing the handwritten image and the noise image; a correct label generating means for generating correct labels indicating handwritten pixels in the handwritten image; a data generating means for generating training data for generating a trained model for estimating handwritten pixels from an image based on the synthetic image and the correct answer label; 13. An information processing device comprising:

2. 2 . The information processing apparatus according to claim 1 , wherein the second acquisition means acquires, as the noise image, an image randomly cut out from an image generated by scanning a blank document.

3. 2 . The information processing apparatus according to claim 1 , wherein the first acquisition means acquires, as the handwritten image, an image randomly cut out from an image generated by reading a handwritten document.

4. 4. The information processing device according to claim 1, wherein pixel values ​​of the composite image generated by the synthesis means are determined by comparing pixel values ​​of corresponding pixels of the handwritten image and the noise image, respectively.

5. 5. The information processing apparatus according to claim 1, wherein the correct label generating means generates the correct label by binarizing the handwritten image.

6. 6. The information processing apparatus according to claim 1, wherein the synthesis means generates the synthetic image by synthesizing the handwritten image, an image including background information, and the noise image.

7. An information processing device as described in any one of claims 1 to 6, further comprising a model generation means for generating the trained model that estimates handwritten pixels from an image using the training data generated by the data generation means.

8. 7. An extraction processing device comprising: an estimation means for estimating handwritten pixels from an image to be processed, using the trained model generated using the training data generated by the data generation means of the information processing device according to any one of claims 1 to 6.

9. 9. The extraction processing device according to claim 8, further comprising a creation means for creating an image in which a portion corresponding to handwriting is extracted from the image to be processed and an image in which a portion corresponding to a background is extracted, based on a result of estimation by the estimation means.

10. 10. An image processing system comprising: an information processing device according to claim 1; and an extraction processing device according to claim 8.

11. A first acquisition step of acquiring a handwritten image; A second acquisition step of acquiring a noise image; a combining step of combining the handwritten image and the noise image to generate a combined image; a step of generating a correct answer label indicating a handwritten pixel in the handwritten image; a data generation step of generating training data for generating a trained model for estimating handwritten pixels from an image based on the synthetic image and the ground truth label; 13. A method for controlling an information processing apparatus comprising the steps of:

12. A program for causing a computer to function as each of the means according to any one of claims 1 to 7.