Character recognition device, method and program

The character recognition device uses heat maps and similar character shape classification to enhance OCR accuracy and efficiency by visually determining the validity of recognition results, reducing the need for manual verification.

JP2024139561AActive Publication Date: 2024-10-09HITACHI INFORMATION & TELECOMM ENG LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023050559
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2024-10-09
Estimated Expiration
2043-03-27

AI Technical Summary

Technical Problem

Conventional optical character recognition (OCR) technologies face challenges in accurately distinguishing ambiguous, misshapen, or blurred characters, leading to inefficiencies in character recognition accuracy and the need for manual verification of questionable results.

Method used

A character recognition device that utilizes a heat map to represent the focus of the character recognition process, comparing it with a registered heat map pattern table to determine the validity of the recognition, and employs similar character shape classification to enhance accuracy, eliminating the need for threshold settings based on likelihood scores.

Benefits of technology

Improves the accuracy and efficiency of character recognition by visually representing the criteria for rejection, reducing the need for manual verification and streamlining the process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024139561000001_ABST
    Figure 2024139561000001_ABST
Patent Text Reader

Abstract

To provide a technique that can improve accuracy, efficiency and the like of character recognition including rejection regarding a character recognition technique.SOLUTION: A character recognition device has a rejection function that rejects recognized characters being characters of the result of character recognition from an image as an "unreadable" state on the basis of determination of the validity, calculates a heat map being image information that shows the degree of attention during character recognition for the recognized characters, compares the heat map of the recognized characters with a heat map pattern table that has a heat map pattern for each character registered in advance to determine whether there is matching, and rejects the recognized characters as the "unreadable" state when there is no matching in the heat map pattern table.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to character recognition technology. [Background technology]

[0002] Conventionally, there are character recognition technologies such as optical character recognition / optical character reading (sometimes written as OCR). OCR reads information such as characters and figures from images captured by a scanner or other device from forms and other paper. The characters in the read results (sometimes written as recognition results or identification results) may contain ambiguous characters that are difficult to distinguish, non-characters, characters with misshapen shapes, faint characters, crushed characters, etc.

[0003] Generally, in terms of basic performance such as character recognition accuracy, OCR needs to not only correctly recognize correct characters, but also to output a result indicating that the character recognition result is doubtful if there is doubt as to whether the character recognition result is correct.

[0004] In OCR technology, after first recognizing characters, a process of determining whether to reject the character recognition results may be performed. In the rejection process, if it is determined that the character recognition results are doubtful, the result is output as "unreadable" to indicate that the character recognition results are doubtful, in other words, that the characters cannot be read correctly. Characters that are in an "unreadable" state can be dealt with, for example, by the user visually checking them.

[0005] An example of the prior art is JP 2021-96378 A (Patent Document 1). Patent Document 1 describes an information processing device or the like that can reject only a part of a sequence in a recognition process on a sequence basis. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] Patent Publication No. 2021-96378 Summary of the Invention [Problem to be solved by the invention]

[0007] Patent Document 1 describes a function for setting a reject class in addition to a character class and outputting a result according to the likelihood.

[0008] In conventional OCR technology, a computer performs character recognition for each character image using a statistical method or a structural analysis method in the character recognition step. Next, if the computer has a rejection function, the computer performs a rejection process for the characters in the character recognition result in the rejection step, including a judgment as to whether the character recognition result is correct, i.e., whether to mark the characters as "unreadable."

[0009] Conventional rejection processes include, for example, a process of determining whether a character is “unreadable” by comparing a score (in other words, an evaluation value) such as the likelihood of the character obtained in the character recognition step with a threshold. Such rejection techniques have room for improvement in terms of accuracy, efficiency, etc.

[0010] An object of the present disclosure is to provide a technique capable of improving the accuracy, efficiency, and the like of character recognition including rejection, with respect to the character recognition technique such as the above-mentioned OCR. [Means for solving the problem]

[0011] A representative embodiment of the present disclosure has the following configuration: A character recognition device of the embodiment is a character recognition device that recognizes characters from an image, and has a rejection function that rejects a recognized character, which is a character resulting from character recognition from the image, as an "unreadable" state based on a judgment of validity, calculates a heat map that is image information representing the degree of attention paid to the recognized character during the character recognition, compares the heat map of the recognized character with a heat map pattern table having a heat map pattern for each character that is registered in advance to determine whether or not the recognized character matches, and rejects the recognized character as an "unreadable" state if the recognized character does not match in the heat map pattern table. Effect of the Invention

[0012] According to a representative embodiment of the present disclosure, it is possible to improve the accuracy and efficiency of character recognition, including rejection, in the character recognition technology such as the OCR. Problems, configurations, effects, and the like other than those described above are described in the description of the embodiment of the invention. [Brief description of the drawings]

[0013] [Figure 1] 1 is a diagram showing the configuration of a system including a character recognition device according to a first embodiment. [Diagram 2] FIG. 2 is a diagram showing a configuration of character recognition processing including rejection according to the first embodiment. [Diagram 3] FIG. 4 is a flowchart showing a character recognition process including rejection according to the first embodiment. [Figure 4] FIG. 4 is a diagram showing a specific example of heat map calculation according to the first embodiment. [Diagram 5] FIG. 4 shows a specific example of heat map comparison according to the first embodiment. [Figure 6] FIG. 4 is a diagram showing an example of a heat map comparison and determination method according to the first embodiment. [Figure 7] FIG. 4 is a diagram showing a determination of the degree of overlap in an example of a heat map comparison and determination method according to the first embodiment. [Figure 8]11 is a diagram showing a specific example (second example of misreading) of the character recognition process including rejection according to the first embodiment. FIG. [Figure 9] FIG. 4 shows a specific example of heat map comparison according to the first embodiment. [Figure 10] FIG. 4 is a diagram showing a specific example of similar character shape classification comparison in the first embodiment. [Figure 11] FIG. 2 is a diagram showing the structure of a similar character shape classification table according to the first embodiment. [Figure 12] FIG. 4 is a flowchart showing a process for classifying and comparing similar character shapes according to the first embodiment. [Figure 13] FIG. 13 is a diagram showing the configuration of a character recognition process including rejection in a comparative example. [Figure 14] 11A and 11B are diagrams showing a specific example (first example of misreading) of character recognition processing including rejection in the comparative example and the first embodiment. [Figure 15] FIG. 11 is a diagram showing a specific example of a recognition result in a comparative example. [Figure 16] FIG. 2 is a diagram showing an example of a GUI screen according to the first embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the drawings. In the drawings, the same parts are generally given the same reference numerals, and repeated explanations will be omitted. In the drawings, the representation of components may not represent the actual position, size, shape, range, etc., in order to facilitate understanding of the invention.

[0015] For the sake of explanation, when describing processing by a program, the program, functions, processing units, etc. may be described as the main components, but the main hardware components of these are the processor, or a controller, device, computer, system, etc. that is configured with the processor. The computer executes processing according to the program read into the memory by the processor, appropriately using resources such as memory and communication interfaces. This realizes predetermined functions, processing units, etc. The processor is configured with semiconductor devices such as a CPU / MPU or GPU, for example. Processing is not limited to software program processing, and can also be implemented by dedicated circuits. Dedicated circuits such as FPGA, ASIC, CPLD, etc. can be used.

[0016] The program may be pre-installed as data in the target computer, or may be distributed as data from a program source to the target computer. The program source may be a program distribution server on a communication network, or a non-transient computer-readable storage medium, such as a memory card or a disk. The program may be composed of multiple modules. The computer system may be composed of multiple devices. The computer system may be composed of a client-server system, a cloud computing system, an IoT system, etc. Various data and information are composed of structures such as, for example, tables and lists, but are not limited to these. Expressions such as identification information, identifiers, IDs, names, and numbers are mutually replaceable.

[0017] [Comparative Example] 13 shows a flow of character recognition processing including rejection in a character recognition device and method of a comparative example. The flow and overview of an example of character recognition processing corresponding to FIG. 13 are as follows.

[0018] (1) Image input and image processing in an image input unit 201. (2) A character line detection process and a single character detection process in the character segmentation unit 202, in other words, a character segmentation process. (3) Feature extraction processing in feature extraction unit 203. (4) A character recognition process in the character recognition unit 204 (in other words, a classification unit), in other words, a character recognition process or a classification process. (5) Rejection processing in the rejection unit 205. (6) Result output processing in the result output unit 206.

[0019] The character recognition unit 204 recognizes each character detected by the character segmentation unit 202 by using the character recognition dictionary 211 for the character features extracted by the feature extraction unit 203. During this character recognition process, the character recognition unit 204 calculates the likelihood of the character. The likelihood is denoted as d.

[0020] The rejection unit 205 uses information on the likelihood d of a character in the character recognition result by the character recognition unit 204 to determine whether the character satisfies a predetermined criterion for rejection (e.g., a rejection threshold) based on the likelihood d. For example, the rejection unit 205 compares the likelihood d of a character with the rejection threshold. If the criterion is not satisfied (e.g., if d is less than the threshold), the rejection unit 205 determines that the character is to be rejected as "unreadable," in other words, it makes the character unreadable.

[0021] The result output unit 206 outputs the character recognition result, including the rejection, to the user. For example, the user checks the rejection determination result on a display screen. The user does not need to check and confirm all the characters, and only needs to check and confirm the "unreadable" parts.

[0022] In order to realize character recognition including highly accurate rejection, it is necessary to clarify the judgment criteria. For example, in a conventional general example, when making a rejection decision, as described above, information on the likelihood in character recognition is used, and for example, a threshold related to the likelihood (in other words, a rejection threshold) is used.

[0023] However, in many cases, the basis for calculating the likelihood in character recognition, output criteria, etc. are unclear. In such cases, it is difficult to set a suitable threshold as a rejection criterion in the rejection function. In the example of FIG. 13, for example, a threshold related to the likelihood d is set as the rejection threshold. However, as described above, when the basis for calculating the likelihood d inside the character recognition unit 204 is unclear, it is difficult to set a suitable value.

[0024] In order to set a suitable threshold for the rejection function, it is necessary to refer to and analyze the discriminator, algorithm, etc. inside the character recognition process, which requires a lot of manual effort. For example, it is necessary for a person to visually confirm the likelihood criteria, and it takes a lot of time until the implementation and operation of OCR. Alternatively, when it is difficult to analyze the discriminator, etc. of the character recognition process, it becomes difficult to handle.

[0025] FIG. 14 shows a specific example of character recognition including rejection for a comparative example and an embodiment. A computer (image input unit 201 in FIG. 13), which is a character recognition device, inputs an image from a sheet 1401. In this example, it is assumed that an image 1402, which is a character image representing an address on the sheet 1401, is input. The computer (character extraction unit 202 in FIG. 13) performs a character extraction process on the image 1402. As a result, cut-out character images such as an image 1403, in other words, character images one by one, are obtained. In this example, the image 1403 is cut out as five character images.

[0026] The computer (feature extraction unit 203 and discrimination unit 204 in FIG. 13) performs discrimination based on features, in other words, character recognition, on each character image of the image 1403. As a result, for example, discriminated characters 1404 (in other words, character recognition result characters, read result characters) are obtained. In this example, the discriminated characters 1404 are five characters: "田", "川", "群", "細", "町". In this example, among these, the character "細" 1408 is an error (sometimes described as "misreading"), and the correct characters are the two characters "糸" and "田".

[0027] When there is no rejection function, the user needs to check all the characters in such a character recognition result, which is very laborious.

[0028] If the rejection function is available, the computer (rejection unit 205 in FIG. 13) performs a rejection process on identified characters 1404, which are the character recognition results of the recognition unit 204. As a result, a recognition result 1405 including the rejection result is obtained. In this recognition result 1405 including the rejection result, if the rejection function works normally, the misread character " (thin)" 1408 is converted to the specified symbol "?", which represents "unreadable", and is output.

[0029] The computer (result output unit 206 in FIG. 13) outputs output 1406 corresponding to classification result 1405 including rejection results to the user. For example, the user checks output 1406 including rejection results by looking at it on a display screen. At this time, the user only needs to check and confirm the "?" portion, which indicates "unreadable." For example, the user may realize that the two characters "ito" and "ta" could not be read correctly, and may then correct this portion. In this way, the presence of a rejection function can make OCR work more efficient.

[0030] Fig. 15 shows a specific example of a recognition result by character recognition unit 204 in a comparative example. In the table of Fig. 15, the extracted character images correspond to image 1403 of Fig. 14. In the table, for each extracted character image, characters that are candidates for character recognition (candidate characters) are shown in each row in order of highest score as the first place character, the second place character, the third place character, etc. The score here uses the likelihood d in character recognition. Among these, character image "thin" 1407 corresponds to a misread character in which two characters are erroneously read as one character, as shown in Fig. 14.

[0031] The rejection methods of the rejection unit 205 in the rejection function include, for example, statistical methods and structural analysis methods. The statistical method is a method of judging based on the magnitude or difference of the likelihood d. For example, for the character image "細" 1407, as the candidate character, the first candidate is the character "細", and the likelihood d = 85. Here, the likelihood d is a score from 0 to 100. For example, in the case of the method of judging by the magnitude (absolute value) of the likelihood d, the likelihood d = 85 of the character "細" is compared with the likelihood threshold. Suppose the likelihood threshold is 90. For each character image other than the character image "細" 1407, since the likelihood d of the first candidate is 90 or more, the character of the first candidate becomes the recognition result (in other words, it is not rejected). On the other hand, for the character image "細" 1407, the likelihood d = 85 of the character "細" is less than 90. Therefore, the candidate character "細" 1408 is determined to be rejected as "unreadable".

[0032] In the case of judging by the difference of the likelihood d as another method, for example, the difference of the likelihood d is judged among the likelihood d = 93 of the first candidate character, for example, "田", the likelihood d = 92 of "川", the likelihood d = 95 of "群", the likelihood d = 85 of "細", and the likelihood d = 92 of "町". For example, the difference between the likelihood d = 85 of "細" and the likelihoods of other characters is relatively large. Therefore, this character "細" is determined to be rejected as "unreadable".

[0033] In the case of the structural analysis method, for each cut-out character image, based on the image analysis process, it is judged whether the recognition result is correct or suspicious according to the length, angle, number of end points, etc. of the components of the character.

[0034] However, in the statistical method, when the basis for calculating the likelihood d is unclear, it is difficult to set a suitable likelihood threshold. Also, in the structural analysis method, for the rejection judgment regarding a large number of characters, it is necessary to stipulate and accumulate a huge number of rules for the structural analysis process, which is very laborious.

[0035] [Outline of the Embodiment] The character recognition device and method of the embodiment particularly have a contrivance regarding the rejection step after the character recognition step, in other words, the rejection function among the character recognition functions.

[0036] In the first embodiment, as a first feature, there is a function (also referred to as a first function) for performing heat map comparison and judgment. In the first embodiment, in the rejection process of the character recognition process, there is a heat map calculation unit that calculates a heat map for characters in the character recognition result, and a heat map comparison unit that compares and collates the heat map with a heat map pattern in a dictionary database to make a rejection decision. Information on heat map patterns is registered and stored in advance in the dictionary database (in other words, the rejection dictionary).

[0037] A heat map for characters in the character recognition results represents the characteristics of the identified characters, and is information that represents the points that the character recognition classifier emphasized during classification. The heat map is image information that visualizes the basis for calculating the likelihood of a character in character recognition, in other words, image information that visualizes the classifier's judgment basis and character features. Therefore, in the embodiment, the rejection process can be performed using the heat map without the need to refer to or analyze the internal algorithms of the character recognition process in the character recognition step. In the embodiment, there is no need to set a threshold value that depends on the likelihood calculated in the character recognition step.

[0038] In the embodiment, as a first feature, the above heat map is used to judge the validity of classification, in other words, the validity of rejection. Since the first embodiment is provided with such a rejection function, it is possible to realize highly accurate and efficient character recognition including rejection.

[0039] The second feature of the first embodiment is a function for performing a similar character shape classification comparison (also referred to as the second function). This function considers the arrangement, progression direction, and positional relationship of the identified characters, as well as character shape classification such as the configuration of radicals and radicals, to determine the validity of the identification, in other words, the validity of the rejection. This second function compares a group of identified characters before and after a character with similar character shape classification information registered in a dictionary database in advance, and determines whether or not to reject the group based on a comprehensive judgment that considers the positional relationship and character shape.

[0040] In the first embodiment, both the first function and the second function are provided, but the present invention is not limited to this, and an embodiment in which only one of the functions is provided is also possible.

[0041] <Embodiment 1> A character recognition device and method according to the first embodiment will be described with reference to Figs. 1 to 15. The character recognition method according to the first embodiment is a method having a rejection step. The character recognition device according to the first embodiment is a device having a rejection function. The character recognition method according to the first embodiment is executed by the character recognition device according to the first embodiment.

[0042] In the first embodiment, a case will be described in which the rejection step following the character recognition step does not require information on the character recognition step (e.g., likelihood). That is, in the rejection step, the rejection decision is made without using the likelihood, and there is no need to set a threshold value for the likelihood.

[0043] [System including character recognition device] FIG. 1 shows an example of the configuration of a system including the character recognition device of the first embodiment. The character recognition device 1, which is the character recognition device of the first embodiment, is, in other words, an OCR device and is configured by a computer. The system in FIG. 1 is a system in which the character recognition device 1 and the scanner device 2 are connected by a communication means such as a LAN. A user U1 operates the character recognition device 1 and the scanner device 2. The user U1 causes the scanner device 2 to read a form 3 (in other words, a sheet of paper), and causes the character recognition device 1 to process a form image file 4 corresponding to the image obtained by reading, thereby obtaining a character recognition result, etc.

[0044] The scanner device 2 is a device that optically scans the surface of a set document such as a document 3 to read an image. The scanner device 2 outputs a document image file 4 as a result of reading. The document image file 4 is transferred to the character recognition device 1 via a LAN. The character recognition device 1 receives and inputs the document image file 4 by a communication interface device 103, and stores it as read image data 122 in the storage device 102. The scanner device 2 may be a multifunction device having a scanner function and a printer function, etc.

[0045] Character recognition device 1 is a computer in which character recognition software (including programs, databases, etc.) is implemented. The program of embodiment 1 is a computer program that causes character recognition device 1, which is a computer, to execute processing corresponding to the character recognition method of embodiment 1. The program of embodiment 1 is included in control program 121. The program of embodiment 1 may be provided in a form stored in a storage medium such as a memory card, or may be downloaded from a server on a communication network, etc.

[0046] The character recognition device 1 is configured, for example, as a PC and software installed thereon, but is not limited to this and may be configured as a dedicated device such as an OCR or multifunction device. Also, in this example, the character recognition device 1 and the scanner device 2 are configured separately, but this is not limited to this and the image processing device 1 and the scanner device 2 may be configured as an integrated device.

[0047] The character recognition device 1 performs OCR processing, which is a character recognition process, on the read image data 122 corresponding to the input form image file 4. This OCR processing includes a rejection process, which will be described later. This character recognition device 1 has a rejection function that performs the rejection process. The character recognition device 1 performs character recognition processing on the read image data 122, and obtains character recognition result data 123 as the processing result output. The character recognition result data 123 includes rejection process result information.

[0048] The character recognition device 1 includes an arithmetic unit 101 (including a processor, etc.), a storage unit 102 (including a memory, etc.), a communication interface unit 103, an input / output interface unit 104, an input unit 105, an output unit 106, and an external storage unit 107, etc., which are interconnected and capable of communicating with each other via an architecture such as a bus.

[0049] The arithmetic device 101 is composed of, for example, a CPU / GPU, a ROM, a RAM, etc., and corresponds to a controller that controls the entire device and each part. The arithmetic device 101 has a form processing unit 11, an OCR processing unit 12, a display processing unit 13, and a setting unit 14 as functional blocks realized by software program processing.

[0050] The arithmetic unit 101 realizes each functional block by reading the control program 121 of the storage device 102 onto a memory and executing processing in accordance with the control program 121. The OCR processing unit 12 is realized based on the program of the first embodiment, in other words, it is a character recognition processing unit.

[0051] The storage device 102 is composed of a non-volatile storage device or the like, and stores various data and information handled by the arithmetic device 101 and the like. The storage device 102 stores a control program 121, read image data 122, character recognition result data 123, dictionary data 124, and the like. Although not shown, the control program 121 also includes setting information of the program and the user. The setting information includes, for example, setting information related to the character recognition function including a rejection function, such as threshold setting information. The character recognition result data 123 is data including recognized characters and rejection results obtained as a result of the character recognition process. The dictionary data 124 is data registered in advance for use in the character recognition process, as will be described later. Note that various data and information may be stored in a DB server, a storage device, or the like external to the character recognition device 1.

[0052] The communication interface device 103 is a part that performs communication processing via a predetermined communication interface with an external device such as the scanner device 2. The character recognition device 1 may transmit and receive data and information not only with the scanner device 2 but also with an external server, storage device, etc.

[0053] An input device 105, an output device 106, an external storage device 107, and the like are connected to the input / output interface device 104. The input device 105 may be, for example, a keyboard, a mouse, an operation panel, or a microphone. A user inputs instructions and the like through the input device 105. The output device 106 may be, for example, a display, a printer, or a speaker. The input device 105 and the output device 106 may be a touch panel. A screen with a predetermined graphical user interface (GUI) is displayed on the display screen. This screen allows settings and confirmations related to the OCR function. A user U1 can perform operations related to the OCR function through the screen.

[0054] Examples of the external storage device 107 include a disk device and a memory card device. The external storage device 107 can store image files and the like under the control of the arithmetic device 101. The character recognition device 1 may input image files and the like stored in the external storage device 107, or may store character recognition result data 123 and the like in the external storage device 107.

[0055] The form processing unit 11 receives and stores the form image file 4 from the scanner device 2 as read image data 122. The form processing unit 11 may perform predetermined form processing other than OCR on the read image data 122.

[0056] The OCR processing unit 12 performs character recognition processing (OCR processing) on ​​the target read image data 122 to generate character recognition result data 123 including information such as recognized characters, and stores the data in the storage device 102 .

[0057] Display processing unit 13 displays character recognition result information based on character recognition result data 123 together with a predetermined GUI on the screen of the display of output device 106. The character recognition result information includes rejection result information, which will be described later. Display processing unit 13 creates a screen (which may be in the form of a Web page, for example) related to the OCR function including the rejection function.

[0058] The user U1 can view the character recognition result information on the display screen and perform tasks such as confirmation, checking, and correction.

[0059] The setting unit 14 accepts user settings related to the OCR function via the GUI on the screen and stores them as setting information. The setting unit 14 is capable of setting a threshold related to the rejection function, for example.

[0060] Note that the system configuration is not limited to that shown in Fig. 1, and may be, for example, a client-server system configuration. In that case, the character recognition device 1 is configured as a server device, and a client terminal used by a user U1 is connected to the server via a communication network. The client terminal accesses the server, and the character recognition device 1, which is the server, transmits a GUI screen to the client terminal, which displays the GUI screen. The user U1 can check the OCR results, etc., on the GUI screen of the client terminal.

[0061] The character recognition device 1 has at least one processor and memory, and realizes processing of a predetermined function by the processor and memory, but is not limited to this. For example, the character recognition device 1 may realize a function by cooperating with a processor of a server or the like on a communication network. For example, the server on the communication network may perform processing such as machine learning that requires a large amount of computational resources. The character recognition device 1 may use a model or database obtained by the machine learning or the like. The business entity that provides the character recognition software or the like and the business entity that performs the machine learning may be separate entities.

[0062] [Character recognition device] Fig. 2 shows the configuration of character recognition processing including rejection in the character recognition method and device of embodiment 1. The configuration of Fig. 2 differs from the configuration of the comparative example in Fig. 13 mainly in the configuration related to rejection unit 205. Rejection unit 205 in Fig. 2 is different from rejection unit 205 in Fig. 13. The configuration of Fig. 2 is realized as processing by character recognition device 1, which is the computer in Fig. 1.

[0063] The rejection unit 205 performs rejection processing on the character recognition results of the character recognition unit 204 using the rejection dictionary 212, and stores and outputs the results. The rejection dictionary 212 includes a heat map pattern table T1 and a similar character shape classification table T2.

[0064] The rejection unit 205, for the first function, calculates a heat map for the character identified by the character recognition unit 204 based on image processing, and determines whether to reject the character as "unreadable" by comparing it with a pattern in the heat map pattern table T1. Also, for the second function, the rejection unit 205 determines whether to reject the character identified by the character recognition unit 204 as "unreadable" by comparing it with the similar character shape classification in the similar character shape classification table T2.

[0065] In the first embodiment, character recognition unit 204 calculates the likelihood d of an identified character as in the comparative example, but since rejection unit 205 uses a heat map, it is not necessary to use the likelihood d. Note that in a modified example, rejection unit 205 may further use the likelihood d.

[0066] The rejection unit 205 has, as more detailed functional blocks, a heat map calculation unit 207, a heat map comparison unit 208, and a similar character shape classification and comparison unit 209.

[0067] [Overall character recognition process flow] Fig. 3 shows the overall flow of the character recognition process in embodiment 1. The flow in Fig. 3 has steps S1 to S6.

[0068] Step S1 is image input and image processing. In step S1, the image input unit 201 (FIG. 2) of the computer which is the character recognition device 1 inputs a target image as in the example of FIG.

[0069] Step S2 is character line extraction and character detection, in other words, character segmentation processing. The character segmentation unit 202 (FIG. 2) of the computer segments a character string image from an input image, which is a target image, and segments character images for each character, as in the example of FIG.

[0070] Step S3 is feature extraction. The feature extraction unit 203 (FIG. 2) of the computer extracts features from each of the cut-out character images.

[0071] Step S4 is character recognition (or identification). The character recognition unit 204 (FIG. 2) of the computer recognizes characters from the extracted character image using the identification dictionary 211 and the features extracted in step S3.

[0072] Step S5 is a rejection process, in other words, an unreadable determination process, which will be described later.

[0073] Step S6 is character recognition result output, including rejection result output. Result output unit 206 (FIG. 2) of the computer outputs the character recognition result of step S4, including the rejection result of step S5, to the user. For example, the computer displays the character recognition result output, including the rejection result output, together with a GUI, on the display screen of a display device in output device 106 of FIG. 1. The user can check the rejection results, etc., by looking at the screen, and can perform correction work. An example of the GUI screen is similar to output 1406 of FIG. 14.

[0074] A detailed flow of step S5 includes steps S51 to S57. Step S51 is a heat map calculation process by the heat map calculation unit 207 in Fig. 2. The heat map calculation unit 207 calculates a heat map for the identified character (in other words, the target character) of the character recognition result in step S4, using a character image corresponding to the identified character. Note that this heat map calculation may be performed simultaneously with the identification process in step S4.

[0075] Step S52 is a heat map comparison process by the heat map comparison unit 208 in Fig. 2. The heat map comparison unit 208 compares and collates the heat map of the target character obtained in step S51 with the heat map patterns registered in the heat map pattern table T1, and determines whether or not a corresponding pattern is present.

[0076] Step S53 is a judgment of the heat map comparison result, and is a judgment of the presence or absence of a corresponding pattern. If the computer judges that there is no corresponding pattern (S53-Y), in other words, that the validity is low, it proceeds to step S54, where it marks the target character as "unreadable" and discards it. If the computer judges that there is a corresponding pattern (S53-N), in other words, that the validity is high, it proceeds to step S55.

[0077] Step S55 is a similar character shape classification comparison process performed by the similar character shape classification comparison unit 209 in Fig. 2. The similar character shape classification comparison unit 209 compares and collates the target character with the similar character shape classifications registered in the similar character shape classification table T2 to determine whether or not it corresponds.

[0078] Step S56 is a judgment of the similar character shape classification comparison result, and is a judgment of whether there is a match. If the computer judges that there is a match (S56-Y), it proceeds to step S57, where it marks the target character as "unreadable" and discards it. If the computer judges that there is no match (S56-N), it concludes that it is unable to judge whether to reject it, and proceeds to step S58.

[0079] Step S58 is a result output including the result of step S5, particularly step S56-N. The computer outputs to the user a result indicating that the target character cannot be rejected. The user can confirm the result on a display screen, for example, and confirm / check it by himself.

[0080] [Character Recognition Step] In the first embodiment, the character recognition method (algorithm, etc.) applied in the character recognition step of step S4 is not particularly limited. As the character recognition method, a known statistical method, for example, a machine learning method, or a structural analysis method may be applied. The method is a general term including a system, a method, a program, etc.

[0081] [First example of misreading] The character recognition software may make an error in character recognition in step S4 in Fig. 3. This may be referred to as a misreading, as mentioned above. There are several patterns of misreading.

[0082] A first example of a misreading is when two adjacent characters (letter A and character B) in an input source character string are mistakenly recognized as one character (letter C). In the example of FIG. 14, the character string "TagawagunItodamachi" in image 1402 is arranged horizontally (X direction), and in particular the progression direction (in other words, the reading direction) is from left to right. The two adjacent characters "ito" and "ta" are arranged side by side. However, in the example of FIG. 14, the two correct characters "ito" and "ta" are misread and identified as one character "hoso."

[0083] It is preferable that one of the misread characters "Thin" in the character recognition results be determined as "unreadable" and output using a rejection function.

[0084] In the first embodiment, a case such as the first example of misreading described above can be dealt with by using the first function, through the flow of the first rejection process leading to step S54 in the flow of FIG.

[0085] [Heatmap calculation] FIG. 4 shows a specific example of the heat map calculation in step S51 of FIG. 3. Image 401 is an example of a cut-out character image, which is the same as image 1403 in FIG. 14. Image 401 has character images cg1 to cg5 of the five characters "田", "川", "群", "細", and "町" shown in the figure. Image 402 shows a cut-out character image + heat map. In image 402, the heat map calculated in step S51 is superimposed on the character image of image 401. Image 403 is a heat map. Image 403 has heat maps hm1 to hm5 for each character image.

[0086] Such a heat map visualizes the discrimination criteria of the discriminator. In Embodiment 1, such a generated heat map is compared with a heat map pattern to determine the validity of discrimination and rejection. Also, since it is visualized as a heat map, setting a threshold value regarding rejection becomes easier than before.

[0087] [Heat Map] A heat map (or saliency map) is based on a known concept and is image information that visualizes and represents which parts of a character image are emphasized by a character recognition discriminator. The heat map in the embodiment is a map that represents from which region (or feature) of an input image (or character pattern) a character recognition discriminator (or model) estimates an output result. The heat map represents the features of the character's glyph. The image information in the heat map has a value representing the degree of attention and emphasis by the discriminator for each pixel. The darkness of the color in the heat map represents the probability that the discriminator strongly determines as important. The parameter values of the X-axis and Y-axis of the heat map are pixel values corresponding to the probability. In the illustrated example, the pixel values of the heat map are represented as luminance and color with gradation, and pixels with relatively darker colors mean that the degree of attention and emphasis is large.

[0088] In the first embodiment, existing technology can be applied to the heat map calculation itself in step S51. In the first embodiment, for example, the following can be applied. First, when rejection is performed taking into account internal information (e.g., likelihood d) of the character recognition classifier in step S4, Grad-CAM (Salvaraju 2017) can be applied to the heat map calculation. Also, when rejection is performed without taking into account internal information (e.g., likelihood d) of the character recognition classifier in step S4, LIME (Ribeiro 2016), SHAP (Lundberg 2017), or RISE (Petsiuk 2017) can be applied to the heat map calculation.

[0089] In particular, in the configuration example of the first embodiment, a heat map is generated and rejection is performed without the need to consider the internal information and processing process of the classifier in step S4. Therefore, in the first embodiment, any of LIME, SHAP, and RISE is applied. As a modified example, when a heat map is generated and rejection is performed while taking into account the internal information and processing process of the classifier, Grad-CAM is applied.

[0090] [About Kanji] In the first embodiment, a case where Chinese characters are included in the target characters / character strings for OCR is described, but the present invention is not limited to this and can be similarly applied to other types of characters.

[0091] In an experiment conducted by the present inventor, when heat map calculation was applied to Chinese characters, it was confirmed that a heat map as shown in FIG. 4 could be obtained.

[0092] In particular, Chinese characters have the characteristic that a single character / character shape can be divided and classified into radicals such as "radicals," "components," "crowns," and "legs," or into small regions, blocks, etc. The inventors have confirmed that rejection judgment using a heat map is effective at least when targeting Chinese characters having such characteristics.

[0093] [Heat map comparison] FIG. 5 shows a specific example of the heat map comparison in step S52. Here, the first example of misreading is used. The characters 501 are the correct two characters "thread" and "field". The image 502 is the result cut out from the characters 501. As an example of the cut-out character image, it is the aforementioned character image "thin" cg4. The glyph of this character image "thin" cg4 is a misreading pattern in which two characters are misread as one character.

[0094] The identification character 503 is the character "thin" as the reading result character due to the above misreading. The corresponding heat map 504 is the aforementioned heat map hm4 calculated from the image 502 (cg4).

[0095] The heat map comparison unit 208 of the computer compares and collates this identification character 503 (character "thin" cg4) and the heat map 504 (hm4) with the heat map pattern table T1 to determine validity.

[0096] The heat map pattern table T1 in FIG. 5 has a "character" column and a "heat map pattern" column. In the "character" column, characters (for example, character codes) that can be identification results are registered. In the "heat map pattern" column, the "heat map pattern" corresponding to the characters in the "character" column is registered. The "heat map pattern" is the result of pre-learning for a large number of the same characters.

[0097] The computer searches the heat map pattern table T1 using, for example, the identification character 503 "thin" as a key. Then, the row 505 containing the character "thin" is found. This row 505 has the heat map pattern hp4 of the character "thin".

[0098] The computer compares the target heat map hm4 with the corresponding heat map pattern hp4 to determine whether they match. For example, the computer determines the degree of similarity (in other words, the degree of coincidence) between the heat map hm4 and the heat map pattern hp4.

[0099] The details of the process for the comparison and judgment are not limited. Examples of the method for the heat map comparison and judgment include a pattern matching method and a method using the number and position of peaks.

[0100] As a result of the above comparison and judgment, in this example, the computer judges that the target heat map hm4 is dissimilar / mismatched to the heat map pattern hp4, the validity of the identification is low, and there is no corresponding pattern. As a result, in the flow of Fig. 3, step S53-Y is reached, and in step S54, the target identified character 503 "Thin" is rejected as "unreadable".

[0101] As described above, the first function of the first embodiment uses a heat map representing the characteristics of the character shape to determine rejection, making it possible to clarify the criteria for determination and to achieve highly accurate rejection. In the first embodiment, the classification unit 204 and the character segmentation unit 202 and feature extraction unit 203 in the preceding stage are described separately as shown in Figures 2 and 3, but these may be collectively regarded as a character recognition unit and character recognition processing. Regardless of whether these are configured separately or as an integrated unit, the rejection unit 205 in the first embodiment can achieve highly accurate rejection of the correct / incorrect results of the character recognition processing.

[0102] [Heat map comparison method] Fig. 6 shows a specific example of a technique applied to the heat map comparison and judgment in Fig. 5. In this embodiment, an example of pattern matching is used as a specific example of the heat map comparison and judgment technique.

[0103] The upper diagram 601 shows processing for the heat map hm4 of the extracted character image 502 (character image "thin" cg4). The lower diagram 602 shows processing for the heat map pattern hp4 of the character "thin" registered in the heat map pattern table T1.

[0104] (1) First, in the upper diagram 601, the computer generates a histogram for each of the two orthogonal directions, the X-axis direction and the Y-axis direction, which are the two perpendicular directions that make up the image, from the heat map hm4 of the character "thin." The computer calculates an X-axis direction histogram 611 and a Y-axis direction histogram 612 from the heat map hm4. The horizontal axis (X, Y) of the histogram represents pixels, and the vertical axis represents frequency.

[0105] In this example, a histogram is used, but the present invention is not limited to this. As another processing example, a Gaussian distribution or a normal distribution that is generated intermediately when generating a heat map may be used.

[0106] (2) In addition, in the lower diagram 602, the computer similarly generates histograms in the X-axis direction and the Y-axis direction from the heat map pattern hp4 of the character "thin." The computer calculates an X-axis direction histogram 621 and a Y-axis direction histogram 622 from the heat map pattern hp4. Note that the histograms may also be calculated in advance and registered in the heat map pattern table T1.

[0107] (3) Next, the computer calculates and determines the degree of overlap between the X-axis direction histogram 611 and the Y-axis direction histogram 612 of the heat map hm4 obtained in (1) above and the X-axis direction histogram 621 and the Y-axis direction histogram 622 of the heat map pattern hp4 obtained in (2) above.

[0108] In this example, as an example of a process for determining the degree of overlap, the computer calculates the overlap rate (denoted as R) between the histograms, as shown in Fig. 7. The overlap rate R in the X-axis direction is denoted as RX, and the overlap rate in the Y-axis direction is denoted as RY. The overlap rate RX in the X-axis direction is the overlap rate between the X-axis direction histogram 611 and the X-axis direction histogram 621. The overlap rate RY in the Y-axis direction is the overlap rate between the Y-axis direction histogram 612 and the Y-axis direction histogram 622.

[0109] In this example, the area of ​​the histograms is used to calculate the overlap rate. In FIG. 6, the area of ​​the X-axis histogram 611 is SX1, and the area of ​​the Y-axis histogram 612 is SY1. The area of ​​the X-axis histogram 621 is SX2, and the area of ​​the Y-axis histogram 622 is SY2. In FIG. 7, the computer aligns the axes and overlaps the histograms of each axis. The left diagram shows the overlap of the X-axis histograms (611, 621), and the right diagram shows the overlap of the Y-axis histograms (612, 622). The area SX3 is the area of ​​the overlapping portion (in other words, the common portion) of the two X-axis histograms (611, 621). The area SY3 is the area of ​​the overlapping portion (in other words, the common portion) of the two Y-axis histograms (612, 622).

[0110] The overlap rates RX and RY can be calculated, for example, by the following formula. RX=RX3 / (RX1+RX2-RX3) RY = RY3 / (RY1 + RY2 - RY3)

[0111] The computer uses the overlap rate R(RX,RY) obtained by calculation to make a rejection decision. If the overlap rate R is sufficiently large, the computer decides that the relevant pattern exists, and if the overlap rate R is small (for example, below a certain threshold), the computer decides that the relevant pattern does not exist. For example, the computer compares the overlap rate RX with a set threshold TX, and compares the overlap rate RY with a set threshold TY. As an example of a decision, if the overlap rate on either the X-axis or Y-axis is below a threshold, the computer rejects the identified character as "unreadable." In other words, if RX≦TX, or (OR), RY≦TY, the computer rejects the identified character as "unreadable."

[0112] As described above, in the case of the first example of misreading, appropriate rejection is possible by only using up to the first function using the heat map.

[0113] Next, hereinafter, examples of character strings that cannot be suitably rejected using only the first function will be described.

[0114] [Second Example of Misreading] As a second example of misreading, as shown in FIG. 8, there is a case where one character of the input source (assumed to be character D) is erroneously recognized as two adjacent characters (assumed to be characters E and F). For these two characters of the misread character recognition result, it is preferable that they can be determined and output as "not read" by the rejection function.

[0115] FIG. 8 shows a second example of misreading. Image 802 is an example of an image obtained by image input. In this example, it is assumed that the correct characters are "animal". Image 803 is an image of the cut-out characters obtained by cutting out the characters from Image 802. In this example, the computer (character cut-out unit 202 in FIG. 2) cuts out three parts p1, p2, and p3 shown by rectangles.

[0116] Identification character 804 indicates the characters of the character recognition result from Image 803. In this example, corresponding to the three parts p1, p2, and p3, they are identified as three characters "heavy", "force", and "object". Let these be character "heavy" c1, character "force" c2, and character "object" c3. These are cases where, although the correct characters are "move" and "object", one character "move" is erroneously misread as two characters "heavy" and "force".

[0117] In such a case, as the rejection function, it is preferable that the misread characters "heavy" and "force" can be determined and output as "not read". If that can be done, in the result of the rejection process, as shown in the identification result 805 including the rejection result, the misread character "heavy" and "force" parts are converted into the symbol "?" representing "not read". And in the result output 806, it is displayed as "? object". The user only needs to check the "not read" part.

[0118] The target glyph pattern in the second example of misreading above is a pattern in which one character is misread as two adjacent characters. In Embodiment 1, in the case like the second example of misreading above, it can be dealt with by the flow of the second rejection process leading to step S57 of the flow in FIG. 3 using the first function and the second function. A specific example will be described below.

[0119] [Heatmap Comparison and Similar Character Classification Comparison] FIG. 9 shows a specific example of determination using heatmap comparison and similar character classification comparison. In this example, the second example of misreading as shown in FIG. 8 is used. In FIG. 9, first, an example of the process up to heatmap comparison is shown.

[0120] The correct characters 901 are "動" and "物". The cut-out character image 902 is the aforementioned three parts p1, p2, and p3. For the correct single character "動", two parts p1 and p2 are cut out as errors. The identification characters 903 are the characters "重", "力", and "物" (c1, c2, c3) of the respective reading results from the three parts p1, p2, and p3. Correspondingly, the heatmap 904 is the heatmaps hm1, hm2, and hm3 obtained from each part of the cut-out character image 902.

[0121] Also, the computer grasps the positional relationship information 900 of the target character string during the character cut-out process. The second function, which will be described later, is a function that performs processing using such positional relationship information 900. The positional relationship information 900 is information representing the arrangement of the identification result character strings of the target character string (for example, "動物"), the progress direction, and the positional relationship of each character. For example, for the character string "動物", the arrangement is in the horizontal direction (X direction), and in particular, the progress direction (reading direction) is from left to right.

[0122] The heatmap comparison unit 208 of the computer compares and collates the heatmap 904 of the target identification character 903 with the pattern registered in the heatmap pattern table T1. In this example, first, from the identification character "重" c1 corresponding to the part p1, the row 905 of the character "重" in the heatmap pattern table T1 is applicable. The computer compares the heatmap hm1 corresponding to the part p1 with the heatmap pattern hp1 of the row 905 of the character "重" to determine the degree of similarity. As a result, it is determined that they are similar and the corresponding pattern exists with high validity.

[0123] Therefore, in the case of using only the first function (the case of the form up to step S54 in FIG. 3), in the processing result so far, it becomes step S53-N in the flow of FIG. 3. Therefore, for the second example of such misreading, in a specific example, for the character "重" c1, appropriate rejection cannot be achieved.

[0124] Therefore, in Embodiment 1, further, using the second function using similar glyph classification comparison, and using the flow from step S55 and later in FIG. 3, rejection is also realized for cases such as the second example of misreading.

[0125] [Similar glyph classification comparison] FIG. 10 shows a processing example of similar glyph classification comparison following FIG. 9. The similar glyph classification comparison unit 209 in FIG. 2 of the computer proceeds from step S53-N to step S55 in FIG. 3 corresponding to the result in FIG. 9 and performs processing as shown in FIG. 10. In FIG. 10, the explanation will be given by focusing on the part of the character "動". The cut-out character image 1001 is two parts p1 and p2 of the character image "動". The identification characters 1002 are the identification character "重" c1 of part p1 and the identification character "力" c2 of part p2. The positional relationship information 900 at the time of character cut-out is, as described above, information such as the progress direction (for example, the direction from left to right) of the character string "動物".

[0126] The similar glyph classification comparison unit 209 of the computer sets the character part to be focused on in processing as the nth, and the character part to be focused on next in the order of the character string based on the positional relationship information 900 as the (n + 1)th. In this example, the character "重" c1 is the nth and the character "力" c2 is the (n + 1)th. In this way, the similar glyph classification comparison unit 209 determines the target character string not only for one character but also for two or more adjacent characters in the order as a group.

[0127] The similar glyph classification comparison unit 209 of the computer first compares and collates the nth character "重" c1 with the similar glyph classification table T2. This process specifically has the following steps S21 to S24.

[0128] In FIG. 10, the similar glyph classification table T2 has a "Character (recognition result)" column, a "radical composition character type" column, a "radical composition glyph (focus position)" column, and an "adjacent recognition character" column. Details will be described in FIG. 11.

[0129] In step S21, the computer searches the similar glyph classification table T2 using the nth character "重" c1 as a key. As a result, the row 1010 containing the character "重" is found and extracted.

[0130] In step S22, the computer extracts, from that row 1010, the rows that contain the "radical composition glyph" existing on the left side corresponding to the reverse direction of the string progress direction (in this example, the direction from left to right). As a result, in this example, the row 1021 of the radical composition character type "動" and the row 1022 of the radical composition character type "勲" are extracted.

[0131] In step S23, the computer extracts, from the extracted rows 1021 and 1022, the rows that contain the (n + 1)th character "力" c2 in the "adjacent recognition character". As a result, in this example, the row 1021 of the radical composition character type "動" and the row 1022 of the radical composition character type "勲" are extracted.

[0132] In step S24, if there is one or more rows as the narrowed-down rows as a result of the above extraction, the computer rejects the target character. In this example, since rows 1021 and 1022 exist, the computer rejects the combination of the nth character "重" c1 and the adjacent (n + 1)th character "力" c2 as "unreadable".

[0133] In this example, in the row 1021 of the radical composition character type "動", in the radical composition glyph, there is "重" as a bias / part on the left position (left part), and there is "力" as a side / part on the right position (right part). This radical composition character type "動" corresponds to the correct character "動" of the cut-out character image 1001.

[0134] Note that in this example, line 1022 is also extracted. The character type "勲" (kanji with a specific radical composition) in line 1022 is different from the correct character "動" (move). Although it contains the radical "れっか" (fire radical) at the bottom, it is extracted because it contains "重" (heavy) in the left part (specifically, the upper left part) and "力" (power) in the right part (specifically, the upper right part). In Embodiment 1, since the rejection function is a function that performs a process of determining whether to reject the identification character, it is extracted including such suspicious cases.

[0135] As described above, in the second function, it is a grouping of characters adjacent before and after in the string order, and determines whether to reject considering the glyph and character type.

[0136] FIG. 11 shows a similar glyph classification table T2. The "radical composition character type" column comprehensively stores in each row the character types that include the identification character (e.g., "重") as a radical or a part. In this example, only six character types, "動" (move), "種" (seed), "腫" (swelling), "働" (work), "薫" (scent), and "勲" are shown. The "adjacent identification result" column is the character corresponding to the glyph adjacent in the string progress direction. For example, for the character type "動", the radical "力" is included in the right part corresponding to the right direction, which is the progress direction.

[0137] The "radical composition glyph (focus position)" column stores the glyph information corresponding to the "radical composition character type". In this example, as shown in the figure, the glyph information is represented by a square block. The square block is divided into smaller square blocks corresponding to the composition such as radicals. Among the square blocks of the glyph, the part shown in gray is the focus position / part. For example, the glyph 1101 in the row of the character type "動" has blocks for the left part 1111 and the right part 1112. The left part 1111 is the focus position and corresponds to the position where the nth identification character exists, and the right part 1112 corresponds to the position where the (n + 1)th identification character adjacent to the nth identification character in the progress direction exists. The left part 1111 corresponds to, for example, 偏 (slant), and the right part 1112 corresponds to, for example, 旁 (side).

[0138] In the example of the character type "動", the radical - composed glyph 1101 corresponds to a group in which the glyph "重" is configured as the bias or the left part. As another example, in the example of the character type "種", the corresponding radical - composed glyph corresponds to a group in which the glyph "重" is configured as the side or the right part.

[0139] In this example, the rejection function was explained using the case where the string arrangement is horizontal. However, the rejection function is not limited to this and is equally applicable when the string arrangement is vertical.

[0140] [Similar Glyph Classification and Comparison Processing Flow] Figure 12 shows a processing flow organized for the similar glyph classification and comparison processing as described above. Figure 12 has steps S201 - S204.

[0141] The computer first performs the processing of Loop 1. In step S201, the computer searches whether the n - th identification character in the target string exists in the "Character" column of the similar glyph classification table T2. If it exists (S201 - Y), the processing of Loop 2 is entered.

[0142] In step S202, for the extracted row in step S201, based on the positional relationship between the n - th identification character and the (n + 1)-th identification character in the positional relationship information 900, the computer searches in the similar glyph classification table T2 whether a pattern that matches this positional relationship exists in the "Radical - composed Glyph" column. This pattern that matches the positional relationship refers to a block of "Radical - composed Glyphs" having a shape and arrangement corresponding to the positional relationship (e.g., left part and right part) between the n - th identification character (i.e., glyph) and the (n + 1)-th identification character (i.e., glyph) in the progress direction of the string, as described above (Figure 10).

[0143] If the pattern exists, that is, if there is one or more rows that correspond to the "radical constituent character shape" (S202-Y), the process proceeds to loop 3. In step S203, the computer searches the extracted row in step S202 to see if a character (character code) the same as the n+1th identified character (character code) exists in the "adjacent identification result" column. In other words, the condition in step S203 indicates whether the nth identified character (in other words, character shape) and the n+1th identified character (in other words, character shape) are included as a radical or part in the "radical constituent character shape" with their positional relationship. In other words, the condition indicates whether two identified characters / character shapes adjacent in the progression direction form one character / character shape.

[0144] If the condition in step S203 is satisfied, i.e., if there is one or more lines that satisfy the condition (Y in S203), the process proceeds to step S204. In step S204, the computer discards the target identification characters, the n-th and (n+1)-th identification characters, as “unreadable.”

[0145] [GUI screen example] Fig. 16 shows an example of a GUI screen according to the first embodiment. In addition to outputting results such as output 1406 in Fig. 14 and output 806 in Fig. 8, the computer may display the following on the screen. The computer may display a heat map of a character image on the screen as shown in the figure. The computer may display the above-mentioned heat map pattern table T1 and similar character shape classification table T2 on the screen. The computer may display a threshold value for the above-mentioned heat map comparison judgment on the screen as shown in the figure, and allow the user to set it.

[0146] [Effects of the first embodiment] According to the first embodiment, the rejection function can be realized with high accuracy and high efficiency. According to the first embodiment, the rejection function can improve the accuracy and efficiency of outputting the result of "unreadable" when it is doubtful whether the character recognition result is correct (in other words, there is a high possibility that the character recognition result is not correct, or the character recognition result is not correct). Also, according to the first embodiment, in the rejection step, it is not necessary to set a threshold value or to perform a threshold comparison judgment process using information at the time of character recognition, such as likelihood. Therefore, it is not necessary to refer to or analyze an internal algorithm of the character recognition process, and it is possible to reduce the work of setting a threshold value by a person. In the rejection step, a heat map is used for judgment, so that it is possible to visualize the judgment criteria by the heat map, and it is also easy to set a threshold value. According to the first embodiment, it is possible to reduce the work required to set up an OCR suitable for the environment of the customer who uses the OCR, and to shorten the lead time.

[0147] In the first embodiment, a method using a heat map is applied in the rejection step of step S5 in FIG. 3, but this is not limited to this, and a similar method other than the heat map, such as a method using machine learning, may also be applied.

[0148] In the first embodiment, a case has been described in which a heat map comparison judgment is first performed using the first function, and then a similar character shape classification comparison judgment is performed using the second function in the rejection step of step S5 in Fig. 3, but this is not limiting. As a modified example, it is also possible to perform a similar character shape classification comparison judgment using the second function as shown in Fig. 8 before performing a heat map comparison judgment in the rejection step.

[0149] Although the embodiments of the present disclosure have been specifically described above, they are not limited to the above-described embodiments and can be modified in various ways without departing from the gist of the present disclosure. In each embodiment, components can be added, deleted, or replaced, except for essential components. Unless otherwise specified, each component can be singular or plural. A combination of each embodiment and its modified examples is also possible. [Explanation of symbols]

[0150] 1...character recognition device (computer), 204...classification unit, 205...rejection unit, 207...heat map calculation unit, 208...heat map comparison unit, 209...similar character shape classification comparison unit, 211...identification dictionary, 212...rejection dictionary, T1...heat map pattern table, T2...similar character shape classification table.

Claims

1. A character recognition device that recognizes characters from an image, a rejection function for rejecting recognized characters, which are characters resulting from character recognition from the image, as "unreadable" based on a judgment of validity; calculating a heat map, which is image information representing the degree of attention paid to the recognized characters during the character recognition; comparing the heat map of the recognized character with a heat map pattern table having a heat map pattern for each character registered in advance to determine whether or not it matches; If there is no match in the heat map pattern table, the recognized character is rejected as being in an "unreadable" state. Character recognition device.

2. 2. The character recognition device according to claim 1, The recognized character is compared with a similar character shape classification table that has information on character shapes for each character registered in advance, and a determination is made as to whether or not the recognized character matches; based on positional relationship information of a character string in which a plurality of recognized characters are arranged as the recognized characters, if the preceding and following recognized characters correspond to the character shape in the similar character shape classification table, the preceding and following recognized characters are rejected as being in an "unreadable" state; Character recognition device.

3. 2. The character recognition device according to claim 1, The process of comparing with the heat map and determining includes a process of calculating a degree of overlap between the heat map of the recognized character and a heat map pattern in the heat map pattern table, and determining that the degree of overlap is not applicable if the degree of overlap is smaller than a threshold value. Character recognition device.

4. 3. The character recognition device according to claim 2, The process of making a judgment by comparing with the similar character shape classification includes a process of determining whether the character corresponds to a character shape in which, when the preceding and following recognized characters are the nth recognized character and the n+1th recognized character, the nth recognized character is included in a part of the front side of the character shape in the similar character shape classification table and the n+1th recognized character is included in a part of the rear side. Character recognition device.

5. A character recognition method executed by a character recognition device that recognizes characters from an image, comprising: the character recognition device has a rejection function for rejecting a recognized character, which is a character resulting from character recognition from the image, as an "unreadable" state based on a determination of validity; The character recognition device executes the following steps: A step of calculating a heat map, which is image information representing the degree of attention paid to the recognized characters during the character recognition; A step of comparing the heat map of the recognized character with a heat map pattern table having a heat map pattern for each character registered in advance to determine whether or not it matches; If the recognized character does not match the heat map pattern table, the recognized character is rejected as "unreadable"; A character recognition method comprising:

6. A character recognition program that causes a character recognition device to execute processing to recognize characters from an image, the character recognition device has a rejection function for rejecting a recognized character, which is a character resulting from character recognition from the image, as an "unreadable" state based on a determination of validity; The process to be executed by the character recognition device is as follows: a heat map calculation process for calculating a heat map, which is image information representing the degree of attention paid to the recognized characters during the character recognition; a heat map comparison and determination process for comparing the heat map of the recognized character with a heat map pattern table having a heat map pattern for each character registered in advance to determine whether or not the heat map matches; a process of rejecting the recognized character as "unreadable" when the recognized character does not match the heat map pattern table; A character recognition program having

Citation Information

Patent Citations

  • Data extension system, data extension method and program

    JP2020197833A

  • Information processing unit, information processing method and program

    JP2021096378A