OCR processing device, OCR processing method, and program

The OCR processing device enhances accuracy by specifying image areas and excluding noise elements at the corners of rectangular areas, addressing the challenge of noise within cells in specific forms, thereby improving OCR processing accuracy.

JP7532170B2Active Publication Date: 2024-08-13PFU LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020157543
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2024-08-13
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

Existing OCR technologies struggle to accurately process specific forms with noise elements, such as characters within cells, especially in semi-standard and non-standard OCR scenarios, leading to erroneous recognition results.

Method used

An OCR processing device that specifies image areas for processing and excludes noise elements, particularly those at the upper left or right corners of rectangular areas, by identifying colored pixel clusters and determining their separation distances to differentiate between noise and characters.

Benefits of technology

Improves the accuracy of character recognition by effectively removing noise elements, enhancing the precision of OCR processing on forms with structured fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007532170000001
    Figure 0007532170000001
  • Figure 0007532170000002
    Figure 0007532170000002
  • Figure 0007532170000003
    Figure 0007532170000003
Patent Text Reader

Abstract

To provide an OCR processor in which character recognition processing (OCR processing) accuracy is remarkably improved for a specific business form.SOLUTION: An OCR processor includes: a region identification section that identifies an image region, on which OCR processing is performed, from an input image; an element-to-be-excluded identification section that identifies an image element to be excluded from the image region identified by the region identification section on the basis of a position in the image region; and an OCR processing section that excludes the image element identified by the element-to-be-excluded identification section and performs OCR processing on the image region.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an OCR processing device, an OCR processing method, and a program. [Background technology]

[0002] For example, Patent Document 1 discloses an image processing device that includes an image input unit 1 that inputs image data read from a document, an image memory unit 2 that stores the image data input by the image input unit 1, a layout analysis unit 3 that detects character string areas for recognizing character strings from the image data in the image memory unit 2, a dictionary 7 for character recognition, a character recognition unit 4 that obtains a character code by performing character recognition on the character string areas detected by the layout analysis unit 3 using the dictionary 7, a microelement database 5 in which information on microelements contained in the character code is registered, and an image processing unit 6 that uses the character code of the character recognition result as a key to refer to the microelement database 5 to determine whether the character code contains a microelement, and for character codes that contain a microelement, removes the microelement and removes noise components from the image data in the image memory unit 2.

[0003] Furthermore, Patent Document 2 discloses a recognition target extraction device that extracts a recognition target area including characters from a processing target image, the recognition target extraction device comprising: a display means for displaying the processing target image; a recognition target area designation means for designating the outline of the recognition target area in the processing target image displayed on the display means; a comparison means for comparing the color of pixels of the processing target image at the outline designated by the recognition target area designation means with the color of pixels in the recognition target area; and a color conversion means for converting the color of the pixels of the recognition target area to a predetermined conversion color when the difference in color of the pixels compared by the comparison means is within a predetermined value.

[0004] Furthermore, Patent Document 3 discloses an image processing device that performs labeling on a desired group of pixels that contacts at least one of a row ruled line and a column ruled line in an extracted image area, identifies whether the group of pixels is pixels that form part of a ruled line, and removes the pixels that form part of the ruled line from the image area.

[0005] Patent Document 4 also discloses a method of erasing ruled lines in which the perpendicular portions of the lines are recognized and erased (302, 303), the length of the perpendicular black runs at the processing position is compared with the line thickness while moving the processing position in the vector direction of the line (309), black runs with a length other than the line thickness are erased (310), black runs significantly longer than the line thickness are not erased (312), and for black runs that are shorter than this, the deviation of the center of gravity from the line is detected (313), and when the deviation of the center of gravity is large, the end side opposite the direction of the center of gravity deviation is partially erased. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] Patent Publication 2006-106903 [Patent Document 2] Patent Publication No. 2005-267480 [Patent Document 3] Patent Publication No. 2003-016385 [Patent Document 4] Patent Publication No. 10-254991 Summary of the Invention [Problem to be solved by the invention]

[0007] To provide an OCR processing device that significantly improves the accuracy of character recognition processing (OCR processing) for specific forms. [Means for solving the problem]

[0008] The OCR processing device of the present invention has an area identification unit that identifies an image area to be OCR processed from an input image, an exclusion element identification unit that identifies image elements to be excluded from the image area identified by the area identification unit based on their positions within the image area, and an OCR processing unit that performs OCR processing on the image area by excluding the image elements identified by the exclusion element identification unit.

[0009] Preferably, the image processing unit further includes an exclusion processing unit that fills in the image elements identified by the exclusion element identification unit with a background color, and the OCR processing unit performs OCR processing on the image area that is partially filled in with the background color by the exclusion processing unit.

[0010] Preferably, the area identification unit identifies a rectangular area having a square shape from within the input image, and the excluded element identification unit identifies the upper left or upper right image element within the identified rectangular area as the excluded image element.

[0011] Preferably, the exclusion element specifying section specifies a cluster of colored pixels existing in the upper left or upper right corner of the specified rectangular area, and determines the image element to be excluded based on the bottom end position of this cluster.

[0012] In addition, the OCR processing method of the present invention includes an area identification step of identifying an image area to be OCR processed from an input image, an exclusion element identification step of identifying image elements to be excluded from the image area identified by the area identification step based on their positions within the image area, and an OCR processing step of excluding the image elements identified by the exclusion element identification step and performing OCR processing on the image area.

[0013] In addition, the program of the present invention causes a computer to execute an area identification step of identifying an image area to be OCR processed from an input image, an exclusion element identification step of identifying image elements to be excluded from the image area identified by the area identification step based on their positions within the image area, and an OCR processing step of excluding the image elements identified by the exclusion element identification step and performing OCR processing on the image area. Effect of the Invention

[0014] To provide an OCR processing device that significantly improves the accuracy of character recognition processing (OCR processing) for specific forms. [Brief description of the drawings]

[0015] [Figure 1] 1 is a diagram illustrating an example of the overall configuration of an image processing system 1. [Diagram 2] 2 is a diagram illustrating an example of a hardware configuration of an OCR processing device 2. FIG. [Diagram 3] 2 is a diagram illustrating an example of a functional configuration of an OCR processing device 2. FIG. [Figure 4] 11 is a flowchart illustrating an information extraction process (S1) performed by the OCR processing device 2. [Diagram 5] 5 is a flowchart illustrating the noise removal process (S20) of FIG. 4 in more detail. [Figure 6] 1 is an example of processing of a target region by information extraction processing (S1). [Figure 7] 13 is a processing example of a target region (cell) by noise removal processing (S20). [Figure 8] 13 is a processing example of a target area (two-line writing) by noise removal processing (S20). DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] [background] The background of the present invention will be described. A characteristic of forms in Japan is the culture of making fields for entering values ​​into cells (rectangles) surrounded by lines. In addition, in documents in certain fields (public, financial, etc.), characters indicating units or numbers in the document may be printed inside the cells (in this application, these are called noise) as shown in Fig. 6(A). In OCR (Optical Character Recognition) processing, cells are often used as markers for target areas, but in this case, the noise parts in the cells are in the way and must be removed.

[0017] There are two approaches from an OCR perspective: -Exclusion of specific areas As a general rule in OCR, it is often the case that which area is to be read is specified in advance for each form layout to be OCRed (this method is called standard OCR). With standard OCR, when specifying the area to be read, there is an approach that excludes certain areas from the OCR area at the same time, thereby eliminating noise. However, this approach cannot be adopted with processing methods that are not dependent on form layout, known as semi-standard OCR or non-standard OCR. - Exclude certain characters from the results after character recognition One approach would be to recognize the noise as well, and then exclude characters such as "dot" and "circle" from the OCR results. The problem with this approach is that if character recognition fails and the recognition result is an incorrect character, it cannot be excluded. For example, noise includes characters that are not the characters that are read by general OCR processing, such as characters surrounded by circles, so there is a high possibility of incorrect recognition results.

[0018] Next, from the viewpoint of noise removal, most of the conventional techniques are aimed at removing noise other than characters (dots and lines), and noise removal for characters has not been generalized. In the present invention, the recognition accuracy is improved by removing noise for specific forms, which can be applied to semi-standard OCR and non-standard OCR. Specifically, characters at the top left and right ends of a cell are always considered to be noise, and characters at the same height as the noise at the top left and right ends are also considered to be noise. However, if colored pixel clusters continue horizontally (in the X-axis direction) at regular intervals, the target area is likely to be a character to be OCR-targeted, so if the target black pixels are partially deemed to be noise, the corresponding part is not treated as noise.The noise is then removed by painting the area extracted as noise with white. Here, a color pixel is a pixel whose color is visually distinguishable from the background color, and a color pixel block is a block of adjacent color pixels. In this example, a document with black characters on a white background will be described as a specific example.

[0019] FIG. 1 is a diagram illustrating an example of the overall configuration of an image processing system 1. As shown in FIG. 1, the image processing system 1 includes an OCR processing device 2 and a plurality of scanner devices 4, which are connected to each other via a network 7. In this example, the OCR processing device 2 and the scanner devices 4 are connected to each other via the network 7, but the present invention is not limited to this. For example, the scanner device 4 may be directly connected to the OCR processing device 2 via a USB (Universal Serial Bus) cable, or the scanner device 4 may be connected to a computer terminal via a USB cable and transmit image data to the OCR processing device 2 via the computer terminal. The OCR processing device 2 is a computer terminal on which an OCR processing program 3 (FIG. 3) described later runs, and performs OCR processing on the input image (in this example, scanned data of a form) received from the scanner device 2, removing noise. The scanner device 4 is an image reading device that reads an image from a document (a slip). The network 7 is, for example, a LAN (Local Area Network).

[0020] FIG. 2 is a diagram illustrating an example of a hardware configuration of the OCR processing device 2. As shown in FIG. As illustrated in FIG. 2, the OCR processing device 2 includes a CPU 200, a memory 202, a HDD 204, a network interface 206 (network IF 206), a display device 208, and an input device 210, which are connected to each other via a bus 212. The CPU 200 is, for example, a central processing unit. The memory 202 is, for example, a volatile memory, and functions as a main storage device. The HDD 204 is, for example, a hard disk drive device, and serves as a non-volatile storage device for storing computer programs (for example, the OCR processing program 3 in FIG. 3) and other data files. The network IF 206 is an interface for wired or wireless communication. The display device 208 is, for example, a liquid crystal display. The input device 210 is, for example, a keyboard and a mouse.

[0021] FIG. 3 is a diagram illustrating an example of the functional configuration of the OCR processing device 2. As shown in FIG. 3, an OCR processing program 3 is installed in the OCR processing device 2. The OCR processing program 3 is stored in a recording medium such as a CD-ROM, and is installed in the OCR processing device 2 via this recording medium. The OCR processing program 3 has an area specifying unit 300, an excluded element specifying unit 310, an exclusion processing unit 320, and an OCR processing unit 330. The excluded element specifying unit 310 includes a colored pixel block specifying unit 312 and a reference determination unit 314. Note that a part or the whole of the OCR processing program 3 may be realized by hardware such as an ASIC, or may be realized by borrowing some of the functions of an OS (Operating System).

[0022] In the OCR processing program 3, the area identifying unit 300 identifies an image area (target area) to be OCR processed from an input image. For example, the area identifying unit 300 searches for ruled lines from the input image, and determines a target area (cell) for OCR processing from within an image area surrounded by the ruled lines that have been found. The area identifying unit 300 may also identify a target area (cell) for OCR processing based on definition information of a form.

[0023] The excluded element identifying unit 310 identifies an image element to be excluded from the image area identified by the area identifying unit 300, based on the position within the image area. For example, the excluded element identifying unit 310 identifies an image element (colored pixel block) at the top left or top right within the rectangular area identified by the area identifying unit 300 as the excluded image element.

[0024] More specifically, the color pixel block identifying section 312 identifies color pixel blocks (in this example, black runs) from the image area identified by the area identifying section 300. The reference determination unit 314 determines image elements to be excluded from the identified color pixel blocks based on the positions in the identified target region of the color pixel blocks identified by the color pixel block identification unit 312. Specifically, the reference determination unit 314 determines the color pixel block located in the upper left corner of the target region and the color pixel block located in the upper right corner of the target region as image elements to be excluded from the color pixel blocks identified by the color pixel block identification unit 312, and determines image elements to be excluded from the other color pixel blocks based on the bottom end positions of the color pixel block in the upper left corner or the color pixel block in the upper right corner.

[0025] The exclusion processing unit 320 removes noise by filling the image elements (noise) identified by the exclusion element identification unit 310 with the background color. For example, the exclusion processing unit 320 fills the image elements (noise) identified by the exclusion element identification unit 310 with white. The exclusion processing unit 320 may also fill the image elements (noise) identified by the exclusion element identification unit 310 with the color (average pixel value) of the vicinity of these image elements.

[0026] The OCR processing unit 330 performs OCR processing on the input image from which noise has been removed by the exclusion processing unit 320. The OCR processing unit 330 of this example performs OCR processing on the target region (cell) from which noise has been removed by the exclusion processing unit 320.

[0027] FIG. 4 is a flowchart illustrating the information extraction process (S1) performed by the OCR processing device 2. As illustrated in FIG. 4, in step 10 (S10), when the OCR processing program 3 (FIG. 3) of the OCR processing device 2 receives scanned image data of a document from the scanner device 4, the area identification unit 300 of the OCR processing program 3 identifies a target area (cell) to be subjected to OCR processing from the received scanned image data, as illustrated in FIG. 6 (A).

[0028] In step 20 (S20), the exclusion element specifying section 310 specifies image elements (noise) to be excluded from the target region (cell) specified by the region specifying section 300. As shown in FIG. 6B, the removal processing unit 320 paints the image elements (noise) identified by the removal element identification unit 310 with white color to remove the noise from the target region.

[0029] In step 30 (S30), the OCR processing section 330 performs OCR processing on the target area from which noise has been removed by the exclusion processing section 320, and obtains an OCR processing result as exemplified in FIG. 6(C).

[0030] FIG. 5 is a flowchart for explaining the noise removal process (S20) of FIG. 4 in more detail. FIG. 7 shows an example of processing of a target region (cell) by the noise removal process (S20). As illustrated in FIG. 5, in step 200 (S200), the color pixel block identifying section 312 performs binarization processing on the target region (cell) identified by the region identifying section 300. In step 210 (S210), the color pixel block identification unit 312 performs labeling on the binarized target region to identify blocks of consecutive black pixels (color pixel blocks), as shown in Fig. 7(A). Note that as shown in Fig. 7(B), a single image element (B surrounded by a circle) may be separated into multiple blocks as a result of labeling. In this case, the color pixel identification unit 312 combines pixels whose mutual distance is equal to or less than a threshold into a single black pixel block (black run).

[0031] In step 220 (S220), the criteria determination unit 314 extracts, from the black pixel clusters (black runs) identified by the color pixel cluster identification unit 312, the black pixel clusters that exist in the upper left and upper right corners of the target region as excluded image elements. In step 230 (S230), as illustrated in FIG. 7(C), the reference determination unit 314 sets the lower ends of the black pixel clusters in the upper left and upper right corners of the target area as reference positions, and extracts black pixel clusters (black runs) that exist above this reference position (above in the Y-axis direction) as excluded image elements.

[0032] In step 240 (S240), the reference determination unit 314 calculates the separation distance (distance to the nearest other black run) in the X-axis direction (left and right direction of the document) for black pixel clusters that exist above the reference position, and determines black pixel clusters whose separation distances are equal to or greater than a predetermined separation reference value as excluded image elements, and removes black pixel clusters (black runs) whose separation distances are less than the separation reference value from the excluded image elements. This is because if the separation distance in the X-axis direction is short, it is highly likely to be an input character string rather than noise. In step 250 (S250), the exclusion processing unit 320 fills in the black pixel blocks extracted as exclusion image elements by the criterion determination unit 314 with the background color (white), as shown in FIG. 7(D).

[0033] FIG. 8 shows another example of the noise removal process (S20). As shown in FIG. 8(A), if the numbers "100,000" are written above the bottom ends of the black pixel blocks (black runs) in the upper left and upper right corners of the target area, they will initially be extracted as excluded image elements in the processing at S230. However, in S240, the spacing between these numbers in the X-axis direction is less than the reference spacing value, so they are removed from the excluded image elements and remain as targets for OCR processing, as shown in FIG. 8(B).

[0034] As described above, according to the image processing system 1 of this embodiment, image elements (black runs) present in the upper left or upper right corner of a rectangular area to be subjected to OCR processing are excluded from the OCR processing, thereby making it possible to remove noise with a high probability for a specific document and improve the accuracy of the OCR processing. In addition, since noise may exist in addition to the image elements located in the upper left or upper right corner of the rectangular area, the OCR processing device 2 of this example uses the lower end of the image element (black run) located in the upper left or upper right corner of the rectangular area as a reference and removes the image elements (black run) located above this as noise. [Explanation of symbols]

[0035] 1. Image Processing System 2 OCR processing device 3. OCR Processing Programs 4 Scanner device

Claims

1. an area specifying unit that specifies a rectangular area having a quadrangular shape from an input image as an image area to be subjected to OCR processing; an exclusion element specification unit that specifies a cluster of colored pixels present in the upper left or upper right corner of the rectangular region specified by the region specification unit, and specifies an image element to be excluded based on the bottom end position of the cluster; an OCR processing unit that performs OCR processing on the image region by excluding the image elements identified by the excluded element identification unit; An OCR processing device having the above configuration.

2. an exclusion processing unit that fills the image elements identified by the exclusion element identification unit with a background color; and The OCR processing unit performs OCR processing on an image area that has been partially filled with a background color by the exclusion processing unit. The OCR processing device according to claim 1 .

3. A region specifying step of specifying a rectangular region having a quadrangular shape from the input image as an image region to be subjected to OCR processing; an exclusion element specifying step of specifying a cluster of colored pixels existing in the upper left or upper right corner of the rectangular region specified by the region specifying step, and specifying an image element to be excluded based on the bottom end position of the cluster; an OCR processing step of performing OCR processing on the image area by excluding the image elements identified by the excluded element identification step; 1. An OCR processing method comprising:

4. A region specifying step of specifying a rectangular region having a quadrangular shape from the input image as an image region to be subjected to OCR processing; an exclusion element specifying step of specifying a cluster of colored pixels existing in the upper left or upper right corner of the rectangular region specified by the region specifying step, and specifying an image element to be excluded based on the bottom end position of the cluster; an OCR processing step of performing OCR processing on the image area by excluding the image elements identified by the excluded element identification step; A program that causes a computer to execute the following.

Citation Information

Patent Citations

  • Character recognizing device

    JP1995013996A

  • Ruled line erasing method and mechanically readable medium

    JP1998254991A

  • Image processor, method, program and storage medium

    JP2003016385A

  • Recognition object segmentation device and method

    JP2005267480A

  • Image processor

    JP2006106903A