Character recognition program, character recognition method and character recognition apparatus
The character recognition device improves accuracy by evaluating image quality and identifying key factors contributing to misrecognition, offering users actionable feedback to enhance image capture for better recognition results.
Patent Information
- Application Number
- JP2023024548
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Low image quality of captured images leads to inaccurate character recognition, and users struggle to identify how to improve the shooting environment or method to prevent erroneous recognition.
A character recognition device evaluates the image quality for each partial region of a captured image, identifies the evaluation type with the highest degree of influence on misrecognition, and presents this information to the user to improve future shooting conditions.
Enhances character recognition accuracy by providing users with specific feedback on how to adjust their shooting environment or method to reduce misrecognition.
Smart Images

Figure 2024118226000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a character recognition program, a character recognition method, and a character recognition device. [Background technology]
[0002] In recent years, technology that recognizes characters from images captured by image scanners or cameras has become widespread. This technology is sometimes called OCR (Optical Character Recognition). In particular, OCR applications for mobile terminals such as smartphones have become widespread in recent years, allowing users to take images using the cameras installed in their mobile devices and have the characters recognized from the taken images.
[0003] Regarding character recognition, the following technologies have been proposed. For example, a device has been proposed that repeatedly executes an image evaluation process including a process of generating text corresponding to each section obtained by segmenting a plurality of images through OCR processing and a process of calculating a statistical score from errors in the text identified using a language database until the statistical score becomes smaller than a threshold. Also proposed is a device that accepts a user's correction of a recognized character string, obtains the corrected character string, and executes correction characteristics in a difference part between the recognized character string and the corrected character string only when the reliability of character recognition in the difference part is less than a threshold. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] US Patent Application Publication No. 2020 / 0184208 [Patent Document 2] JP 2022-137634 A Summary of the Invention [Problem to be solved by the invention]
[0005] Generally, the lower the quality of a captured image, the lower the accuracy of character recognition from the captured image. However, when a character is misrecognized, it is difficult for the photographer to accurately determine how to change the shooting environment or shooting method to improve the image quality and prevent the misrecognition.
[0006] In one aspect, the present invention aims to provide a character recognition program, a character recognition method, and a character recognition device that can present information that can improve character recognition accuracy. [Means for solving the problem]
[0007] In one proposal, a character recognition program is provided that causes a computer to execute a process of recognizing multiple characters from a captured image, obtaining detection results of misrecognition for the multiple characters, outputting evaluation results for each of multiple evaluation types for evaluating image quality for each partial area of the captured image that each contains multiple characters, and when one or more first characters among the multiple characters are misdetected in the detection results, comparing the evaluation results for each of the multiple evaluation types between the one or more first characters and one or more second characters among the multiple characters that have not been misrecognized, and based on the comparison of the evaluation results, identifying from the multiple evaluation types the evaluation type that has the greatest impact on misrecognition and displaying it on a display device.
[0008] Also, one proposal provides a character recognition method in which a computer executes a process similar to the process based on the character recognition program described above. Furthermore, in one proposal, a character recognition device is provided that executes processing similar to the processing based on the above character recognition program. Effect of the Invention
[0009] In one aspect, information that can improve the accuracy of character recognition can be presented. [Brief description of the drawings]
[0010] [Figure 1]1 is a diagram illustrating a configuration example and a processing example of a character recognition device according to a first embodiment; [Diagram 2] FIG. 13 illustrates an example of a configuration of an information processing device according to a second embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of a configuration of processing functions included in an information processing device. [Figure 4] FIG. 11 is a diagram illustrating an example of quality characteristic definition information. [Diagram 5] FIG. 11 is a first diagram showing a comparative example of a presentation process of quality types. [Figure 6] FIG. 2 is a second diagram showing a comparative example of the presentation process of quality types. [Figure 7] FIG. 11 illustrates an example of a calculation process of quality features in the second embodiment; [Figure 8] FIG. 13 is a diagram illustrating an example of a presentation process of quality types in the second embodiment. [Figure 9] 13 is a first example of a flowchart illustrating a procedure of a shooting support process according to a second embodiment. [Figure 10] 13 is a second example of a flowchart illustrating a procedure of a shooting support process according to the second embodiment. [Figure 11] 13 is a flowchart illustrating an example of a process for identifying a quality type with a high degree of error influence; [Figure 12] FIG. 13 is a diagram illustrating an example of a calculation process of an error influence degree in the third embodiment. [Figure 13] FIG. 13 is a diagram illustrating an example of a presentation process of quality types in the third embodiment. [Figure 14] 13 is an example of a flowchart illustrating a shooting support processing procedure according to a third embodiment. [Figure 15] 13 is a configuration example of processing functions included in an information processing device according to a fourth embodiment. [Figure 16] 13 is an example of a flowchart showing a procedure for displaying a warning image. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. First Embodiment 1 is a diagram showing an example of the configuration and processing of a character recognition device according to a first embodiment. A camera 2 and a display device 3 are connected to the character recognition device 1. At least one of the camera 2 and the display device 3 may be built into the character recognition device 1.
[0012] Character recognition device 1 recognizes characters from an image captured by camera 2. Furthermore, when erroneous character recognition occurs, character recognition device 1 is capable of displaying information capable of improving the accuracy of character recognition on display device 3 based on the captured image and the character recognition result. This information is, for example, information that can suggest to the user how to change the shooting environment or shooting method in order to improve the image quality of the captured image and increase the accuracy of character recognition the next time shooting is performed for character recognition.
[0013] The character recognition device 1 includes a processing unit 1a. The processing unit 1a is, for example, a processor. The processing unit 1a executes the following processes. Note that the following processes by the processing unit 1a are realized, for example, by the processing unit 1a executing a predetermined program.
[0014] The processing unit 1a acquires a photographed image captured by the camera 2, and recognizes characters from the acquired photographed image. The processing unit 1a also acquires a detection result of erroneous recognition of the recognized characters. In the following description, it is assumed, as an example, that four characters are recognized from the photographed image 4, and the second character among them is erroneously recognized. Specifically, it is assumed that the photographed image 4 shows four characters, "a", "b", "c", and "d", and that "b" among them is erroneously recognized as "g". In the following description, the erroneously recognized character may be referred to as an "incorrect character", and the correctly recognized character may be referred to as a "correct character".
[0015] The processing unit 1a identifies partial regions 4a-4d each including a recognized character from the region of the captured image 4. The processing unit 1a evaluates the image quality of each of the partial regions 4a-4d and outputs the evaluation results. This image quality evaluation is performed for each of a plurality of evaluation types. Therefore, the evaluation results are output for each evaluation type for each of the partial regions 4a-4d.
[0016] In the example of FIG. 1, image quality is evaluated using three types of evaluation types A to C. As an example, information indicating whether the image quality is appropriate for correctly executing character recognition is output as the evaluation result. Such information is output, for example, as follows. In the image quality evaluation process, an evaluation value indicating the level of image quality is calculated for each of the evaluation types A to C. Also, for each of the evaluation types A to C, an appropriate range of evaluation values within which the character recognition is likely to be correctly executed is defined in advance. If the calculated evaluation value falls within the appropriate range, it is evaluated as "appropriate", and if the evaluation value does not fall within the appropriate range, it is evaluated as "inappropriate".
[0017] The processing unit 1a compares the evaluation results for each of a plurality of evaluation types between the incorrectly recognized incorrect characters and the correctly recognized correct characters. Then, based on the comparison result of the evaluation results, the processing unit 1a specifies at least the evaluation type having the highest influence on the incorrect recognition from among the plurality of evaluation types, and causes the display device 3 to display the specified evaluation type.
[0018] In comparing the evaluation results, for example, the correlation between the character recognition result (accuracy) and the evaluation result (image quality) is determined for each evaluation type. It is estimated that the higher the correlation, the higher the impact of erroneous character recognition on the evaluation type.
[0019] In the example of FIG. 1, for evaluation types A and B, the evaluation results are the same for the incorrect characters and the correct characters. On the other hand, for evaluation type C, the evaluation result for the incorrect characters is "inappropriate," but the evaluation result for the correct characters is "appropriate." In this case, it can be estimated that the degradation of image quality evaluated in evaluation type C is the greatest cause of erroneous recognition of characters in partial region 4b. For this reason, processing unit 1a identifies evaluation type C as the evaluation type that has the greatest influence on erroneous recognition, and causes display device 3 to display image 5 presenting identified evaluation type C.
[0020] This allows the character recognition device 1 to present to the user information that can improve the accuracy of character recognition. For example, by recognizing the evaluation type that has the highest influence on erroneous recognition, the user can recognize how to change the shooting environment or shooting method the next time he or she takes a picture for character recognition. By the user changing the shooting environment or shooting method, the accuracy of character recognition the next time can be improved. For example, the user can immediately change the shooting environment or shooting method according to the recognized evaluation type and take a picture again, allowing the character recognition device 1 to correctly recognize characters with a high probability.
[0021] Second Embodiment Fig. 2 is a diagram showing a configuration example of an information processing device according to a second embodiment. The information processing device 100 shown in Fig. 2 is an example of the character recognition device 1 shown in Fig. 1, and is a portable information processing terminal equipped with a camera 101. For example, the information processing device 100 is a smartphone, a tablet terminal, a notebook PC (Personal Computer), etc. The information processing device 100 has a function of recognizing characters from an image captured by the camera 101, and a function of supporting a user in capturing an image for character recognition by presenting useful information for improving character recognition accuracy.
[0022] The information processing device 100 has, for example, the following hardware configuration: The information processing device 100 has a processor 102, a random access memory (RAM) 103, a solid state drive (SSD) 104, a display device 105, an input device 106, a reader 107, and a communication interface (I / F) 108.
[0023] The processor 102 performs overall control of the information processing device 100. The processor 102 is, for example, a central processing unit (CPU), a micro processing unit (MPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or a programmable logic device (PLD). The processor 102 may also be a combination of two or more elements of a CPU, an MPU, a DSP, an ASIC, or a PLD. The processor 102 is an example of the processing unit 1a shown in FIG. 1.
[0024] The RAM 103 is used as a main storage device of the information processing device 100. The RAM 103 temporarily stores at least a part of an OS (Operating System) program and application programs to be executed by the processor 102. The RAM 103 also stores various data necessary for processing by the processor 102.
[0025] The SSD 104 is used as an auxiliary storage device for the information processing device 100. An OS program, an application program, and various data are stored in the SSD 104. Note that other types of non-volatile storage devices such as a hard disk drive (HDD) can also be used as the auxiliary storage device.
[0026] The display device 105 displays an image according to an instruction from the processor 102. The display device 105 is, for example, a liquid crystal display or an organic EL (ElectroLuminescence) display.
[0027] The input device 106 accepts an input operation from a user and transmits a signal corresponding to the input operation to the processor 102. The input device 106 is, for example, a keyboard or a pointing device. Examples of pointing devices include a mouse, a touch panel, a tablet, a touch pad, and a trackball.
[0028] A portable recording medium 107a is detachably attached to the reading device 107. The reading device 107 reads data recorded on the portable recording medium 107a and transmits the data to the processor 102. The portable recording medium 107a may be a semiconductor memory, an optical disk, or the like.
[0029] The communication interface 108 transmits and receives data to and from other devices via a network 108a. The communication interface 108 may be a wireless interface. The processing functions of the information processing device 100 can be realized by the above hardware configuration.
[0030] 3 is a diagram showing an example of the configuration of processing functions of an information processing device 100. The information processing device 100 includes a storage unit 110, an image input unit 121, a character recognition unit 122, an error correction unit 123, a recognition result output unit 124, an image quality evaluation unit 125, an error influence determination unit 126, and a quality feature display unit 127.
[0031] The storage unit 110 is a storage area secured in a storage device included in the information processing device 100, such as the RAM 103 or the SSD 104. The storage unit 110 stores quality feature definition information 111. The quality feature definition information 111 registers definition information related to features (quality feature) for evaluating the quality of an input image that is the subject of character recognition. The quality feature definition information 111 registers an appropriate range of the quality feature for each type (quality type) for quality evaluation.
[0032] The processing of the image input unit 121, character recognition unit 122, error correction unit 123, recognition result output unit 124, image quality evaluation unit 125, error impact determination unit 126 and quality characteristic display unit 127 is realized, for example, by the processor 102 executing a predetermined application program.
[0033] The image input unit 121 accepts input of an image captured by the camera 101. The character recognition unit 122 executes character recognition processing on the input captured image and outputs character codes of recognized characters. The error correction unit 123 corrects errors in the character recognition results. The recognition result output unit 124 outputs the character recognition results. When an error is corrected by the error correction unit 123, the recognition result output unit 124 outputs the recognition result after the error correction.
[0034] For example, the error correction unit 123 displays an image including the recognized characters on the display device 105 and accepts an input operation from the user. This image includes, for example, a confirmation button for confirming the character recognition result. If there is no erroneous recognition of the characters, the user presses the confirmation button. This confirms the recognition result, and the recognition result output unit 124 outputs the confirmed recognition result. On the other hand, if there is erroneous recognition of the characters, the user corrects the erroneously recognized characters and then presses the confirmation button. In this case, the recognition result output unit 124 outputs the corrected recognition result. At the same time, the error correction unit 123 notifies the image quality evaluation unit 125 of the erroneously recognized characters.
[0035] When a character recognition error occurs, image quality evaluation unit 125 acquires the position where each character is recognized in the captured image from character recognition unit 122, and extracts character areas including each recognized character from the captured image. The character area is specified as, for example, a rectangular area inscribed with the character, or a rectangular area obtained by enlarging the rectangular area by a predetermined amount in all directions.
[0036] The image quality evaluation unit 125 evaluates the image quality of each cut-out character region for each quality type defined in the quality feature definition information 111, and outputs the evaluation result to the error influence determination unit 126. At this time, the image quality evaluation unit 125 also outputs to the error influence determination unit 126 information indicating the presence or absence of a recognition error for each character region (i.e., for each recognized character).
[0037] The error influence determination unit 126 compares the evaluation results output from the image quality evaluation unit 125 between erroneously recognized incorrect characters and correctly recognized correct characters. Based on the result of this comparison, the error influence determination unit 126 calculates an error influence indicating the influence of each quality type on the erroneous recognition of characters, and outputs the error influence for each quality type to the quality feature display unit 127.
[0038] The quality characteristic display unit 127 causes the display device 105 to display at least the quality type having the highest error influence degree among the quality types defined in the quality characteristic definition information 111 . 4 is a diagram showing an example of quality feature definition information 111. In the quality feature definition information 111, a plurality of quality types for evaluating the quality of an input image and appropriate ranges of quality feature amounts corresponding to each quality type are registered.
[0039] The quality type indicates a characteristic phenomenon of the input image that may cause erroneous character recognition. In the example of Fig. 4, "low contrast," "blackout," "blur," and "shadow" are registered as quality types. The quality feature quantity corresponding to each quality type indicates a physical quantity obtained by performing a specified image processing on the input image.
[0040] The appropriate range registered in the quality feature definition information 111 indicates the range of quality features for which the quality of the input image is determined to be high (i.e., the above-mentioned phenomenon does not occur). When a quality feature is included in the appropriate range, it is estimated that character recognition errors are unlikely to occur due to the phenomenon indicated by the corresponding quality type. The appropriate range is determined in advance for each quality type. Note that in the example of FIG. 4, the possible range of quality features for each quality type is from 0 to 100. The appropriate range is also determined in advance for each quality type.
[0041] For example, "low contrast" is a phenomenon in which the ratio of brightness between characters and the background is small. The quality feature corresponding to "low contrast" is calculated, for example, as the difference between the brightness of the character region (e.g., the average or minimum brightness value) and the brightness of the background region (e.g., the average or maximum brightness value). When the quality feature is less than a predetermined threshold, it is determined to be "inappropriate" (i.e., in a "low contrast" state).
[0042] The quality feature values corresponding to "blackout" and "shadow" are calculated based on the distribution of luminance in the input image, for example. The quality feature value corresponding to "blur" is obtained by calculating the rate of change (slope) of luminance at the boundary between the character and the background, for example, using an edge filter.
[0043] The information processing device 100 presents to the user at least the quality type with the highest error influence degree among the above quality types. Basically, the presented quality type is the quality type determined to be inappropriate in the character area corresponding to the erroneously recognized character. Based on the presented quality type, the user can estimate the cause of the erroneous character recognition and remove the estimated cause at the next shooting to perform more appropriate shooting.
[0044] For example, when "low contrast" is displayed, the user can increase the contrast and make erroneous recognition less likely to occur by taking measures such as increasing the brightness of the lighting and moving the camera 101 closer to the subject. Also, when "shadows are present" is displayed, the user can prevent the occurrence of shadows and make erroneous recognition less likely to occur by taking measures such as removing obstacles between the lighting and the subject.
[0045] Next, a comparative example of a process for presenting quality types that have a high degree of influence on the occurrence of erroneous recognition will be described with reference to FIGS. 5 and 6. FIG. FIG. 5 is a first diagram showing a comparative example of a quality type presentation process. In FIG. 5, it is assumed that a photographed image 12 showing the letters "a", "b", "c", and "d" is captured by photographing a subject 11 on which the letters "a", "b", "c", and "d" are present. However, the color of the letters in the photographed image 12 is a little light, and the contrast between the letters and the background is low. In addition, a shadow of a light is cast on the photographed image 12, and the boundary of the shadow overlaps with the character area. For this reason, it is assumed that the letter "b" is erroneously recognized as "g", and the recognition result "g" is corrected to "b" by a user's operation.
[0046] 5, when a character recognition error occurs, the image quality is evaluated for a partial area of the captured image 12 that contains at least the entire characters "a", "b", "c", and "d", and the quality feature amount is calculated for each of the above quality types. Then, depending on whether the calculated quality feature amount is within the appropriate range for the corresponding quality type, the quality is judged to be appropriate or inappropriate for each quality type.
[0047] In the example of Fig. 5, it is assumed that "blackout" and "blur" are judged to be appropriate, while "low contrast" and "shadows" are judged to be inappropriate. In this case, it is estimated that "low contrast" and "shadows" among the quality types may have influenced the occurrence of the misrecognition. For this reason, image 13 is displayed, which shows "low contrast" and "shadows" as possible causes of the misrecognition.
[0048] FIG. 6 is a second diagram showing a comparative example of the quality type presentation process. In FIG. 6, it is assumed that a photographed image 22 showing the characters "a", "b", "c", and "d" is taken by photographing a subject 21 having the characters "a", "b", "c", and "d" as in FIG. 5. However, the color of the characters in the photographed image 22 is a little light, and the contrast between the characters and the background is low. In addition, a shadow of a light is cast on the photographed image 22, and the boundary of the shadow overlaps with the character area. Furthermore, the subject 21 is not in focus, and blurring occurs. For this reason, it is assumed that the character "b" is erroneously recognized as "g", and the recognition result "g" is corrected to "b" by a user's operation.
[0049] In this case, in the example of Fig. 6, similarly to Fig. 5, image quality is evaluated for partial areas of the captured image 22 in which at least the entire characters "a", "b", "c", and "d" are captured, and quality feature quantities are calculated for each of the above quality types. Then, depending on whether the calculated quality feature quantities are within the appropriate range for the corresponding quality type, it is determined whether the quality is appropriate or inappropriate for each quality type.
[0050] In the example of Fig. 6, it is assumed that "blackout" is judged to be appropriate, while "low contrast", "blur" and "shadow" are judged to be inappropriate. In this case, it is estimated that "low contrast", "blur" and "shadow" among the quality types may have influenced the occurrence of the misrecognition. For this reason, image 23 is displayed showing "low contrast", "blur" and "shadow" as possible causes of the misrecognition.
[0051] In this way, according to the comparative example of FIG. 5 and FIG. 6, the quality type that may have influenced the occurrence of the erroneous recognition is presented to the user. However, as in the example of FIG. 5 and FIG. 6, a plurality of applicable quality types may be presented. In this case, the user cannot recognize the quality type that has most influenced the occurrence of the erroneous recognition, and cannot understand which quality type should be dealt with as a priority. This makes it difficult for the user to take appropriate measures. Alternatively, the user may have to deal with each of the presented quality types, and it may take a long time until the erroneous recognition stops occurring.
[0052] In view of the above-mentioned problems, the information processing device 100 of this embodiment makes it possible to present the quality type that has had the greatest impact on the occurrence of erroneous recognition, and to present the quality types by assigning them a priority order.
[0053] Fig. 7 is a diagram showing an example of a calculation process of quality features in the second embodiment. In Fig. 7, it is assumed that an image 32 containing the characters "a", "b", "c", and "d" is captured by capturing an image of a subject 31 containing the characters "a", "b", "c", and "d" in the same manner as in Figs. 5 and 6. It is also assumed that the character "b" is erroneously recognized as "g", and the user corrects the recognition result of "g" to "b".
[0054] In this case, the image quality evaluation unit 125 cuts out partial regions each including one of the recognized characters from the captured image 32. In the example of Fig. 7, partial region 33a including the character "a", partial region 33b including the character "b", partial region 33c including the character "c", and partial region 33d including the character "d" are cut out. Each of partial regions 33a to 33d is specified as a rectangular region inscribed with the corresponding character, or as a rectangular region obtained by enlarging the rectangular region by a predetermined amount in all directions.
[0055] The image quality assessment unit 125 assesses the image quality of each of the cut-out partial regions 33a to 33d for each quality type, and calculates a quality feature amount for each quality type. Fig. 8 is a diagram showing an example of a quality type presentation process in the second embodiment. The image quality evaluation unit 125 outputs a judgment result indicating appropriateness / inappropriateness for each quality type by judging whether the quality feature amount calculated by the process in Fig. 7 is included in an appropriate range defined for the corresponding quality type. The error influence judgment unit 126 compares these judgment results between incorrectly recognized incorrect characters and correctly recognized correct characters, and calculates an error influence for each quality type based on the comparison result.
[0056] In the example of FIG. 8, it is determined whether the judgment results of the same quality type are the same between the incorrect character and the correct character, and if the judgment results are the same, the error influence degree is calculated as "0", and if the judgment results are different, the error influence degree is calculated as "1". In FIG. 8, for the quality types "low contrast", "blackout", and "blur", the judgment results are the same between the incorrect character "b" and the correct characters "a", "c", and "d", and the error influence degree is calculated as "0". On the other hand, for "shadow", the judgment result for the incorrect character "b" is "inappropriate", whereas the judgment result for the correct characters "a", "c", and "d" is "appropriate". Therefore, the error influence degree for "shadow" is calculated as "1".
[0057] The quality characteristics display unit 127 recognizes the quality type with the highest error influence as "shadow present", and causes the display device 105 to display an image 34 indicating "shadow present". In this way, the information processing device 100 of this embodiment calculates quality features for each partial region including each character, and compares the judgment results for each quality type between the incorrect character and the correct character. The information processing device 100 then judges the quality type for which the judgment results are different as having the highest degree of error influence, and presents the quality type to the user. In this way, the information processing device 100 can identify the quality type that is estimated to have had the greatest influence among the quality types that are estimated to have influenced the erroneous recognition of the character, and present it to the user.
[0058] The user can take an action according to the presented quality type and then capture the image, thereby enabling highly accurate character recognition to be performed by the information processing device 100. In addition, compared to the processes shown in Fig. 5 and Fig. 6, a small number of quality types with high importance are presented to the user, so that the user can quickly take appropriate action.
[0059] 9 and 10 are an example of a flowchart showing a procedure of a shooting support process in the second embodiment. [Step S11] When an image is captured by the camera 101, the image input unit 121 receives input of the captured image.
[0060] [Step S12] The character recognition unit 122 performs character recognition processing on the input captured image to recognize characters. [Step S13] The error correction unit 123 causes the display device 105 to display the recognition result (i.e., the recognized characters).
[0061] [Step S14] The error correction unit 123 determines whether a character recognition error has occurred. For example, if the displayed character is corrected by the user's input operation, it is determined that a recognition error has occurred. If a recognition error has not occurred, the process ends. On the other hand, if a recognition error has occurred, the error correction unit 123 notifies the image quality evaluation unit 125 of identification information indicating the erroneously recognized character. Then, the process proceeds to step S15.
[0062] The occurrence of erroneous recognition may be determined by the following method. For example, when recognizing a character, the character recognition unit 122 calculates the accuracy level indicating the degree of accuracy of the recognized character for each recognized character. The error correction unit 123 determines that a character having an accuracy level equal to or lower than a predetermined threshold among the recognized characters is an erroneously recognized character. In this case, the result of step S14 is "Yes," and identification information indicating the erroneously recognized character is notified to the image quality evaluation unit 125.
[0063] [Step S15] The image quality assessment unit 125 selects one of the recognized characters, and acquires the position on the captured image where the selected character is recognized from the character recognition unit 122. Based on the acquired position, the image quality assessment unit 125 cuts out a partial area including the selected character from the captured image.
[0064] [Step S16] The image quality assessment unit 125 processes the extracted partial region, assesses the image quality for each quality type, and calculates a quality feature amount for each quality type. [Step S17] The image quality assessment unit 125 refers to the quality feature definition information 111, and judges whether the calculated quality feature is within an appropriate range defined for the corresponding quality type, and judges appropriate / inappropriate for each quality type. If the quality feature is within the appropriate range, it is judged as "appropriate", and if not, it is judged as "inappropriate".
[0065] [Step S18] The image quality assessment unit 125 determines whether all recognized characters have been selected. If there are unselected characters, the process proceeds to step S15, where one of the unselected characters is selected. On the other hand, if all characters have been selected, the process proceeds to step S19.
[0066] [Step S19] The error influence determination unit 126 identifies a quality type for which the judgment results of correct / incorrect are different between the incorrect characters and the correct characters. Note that in this process, it is desirable to identify a quality type for which the judgment result of the incorrect characters is "incorrect" and the judgment result of the correct characters is "correct."
[0067] [Step S20] The quality characteristics display unit 127 determines whether the corresponding quality type was identified in step S 19. If the corresponding quality type was identified, the process proceeds to step S21. If the corresponding quality type was not identified, the process ends.
[0068] [Step S21] The quality characteristics display unit 127 causes the display device 105 to display the quality type identified in step S19. According to the second embodiment described above, the quality type that has the greatest effect on the character recognition error can be identified and presented to the user. The user can take appropriate measures according to the presented quality type and retake the image for character recognition. As a result, it is possible to improve the character recognition accuracy.
[0069] Incidentally, the process of step S19 in FIG. 10 may be executed, for example, according to the procedure shown in FIG. FIG. 11 is a flowchart showing an example of a process for identifying a quality type with a high degree of error influence.
[0070] [Step S19a] The error influence determination unit 126 selects one quality type for which the determination result for the incorrect characters in step S17 is "inappropriate." If there are multiple incorrect characters, for example, a quality type for which the determination result for at least one incorrect character is "inappropriate" is selected.
[0071] [Step S19b] The error influence determination unit 126 acquires the determination result of the correct character for the selected quality type, and determines whether the acquired determination result is "correct." If the determination result is "correct," the process proceeds to step S19c, and if the determination result is "incorrect," the process proceeds to step S19d. Note that if there are multiple correct characters, for example, if the determination result for at least one correct character is "correct," the result is determined to be "Yes."
[0072] As another example, in step S19a, a quality type for which the judgment result for a predetermined percentage or more (e.g., half or more) of the total number of incorrect characters is "inappropriate" may be selected. In this case, in step S19b, if the judgment result for a predetermined percentage or more (e.g., half or more) of the total number of correct characters is "appropriate", the judgment may be "Yes".
[0073] [Step S19c] The error influence determining unit 126 determines the selected quality type as the display target. [Step S19d] The error influence determination unit 126 determines whether all quality types that meet the conditions shown in step S19a have been selected. If there is an unselected quality type among the applicable quality types, the process proceeds to step S19a, where one of the unselected quality types is selected. On the other hand, if all applicable quality types have been selected, the process of FIG. 11 ends, and the process proceeds to step S20 in FIG. 10.
[0074] Thereafter, in step S21 of FIG. 10, the quality types determined to be displayed in step S19c are displayed on the display device 105. According to the above process of FIG. 11, when there are a plurality of incorrect characters and correct characters, it is possible to appropriately identify the quality type with the highest error influence degree.
[0075] Third embodiment In the above-described second embodiment, the quality based on the quality feature quantity is judged as a binary value of appropriate / inappropriate, and the error influence degree for each quality type is calculated as binary data. Therefore, it is not possible to present to the user a number of quality types that have influenced the misrecognition in order of their influence. Therefore, in the third embodiment, a part of the process of the information processing device 100 according to the second embodiment is modified so that the quality types can be presented to the user in order of their influence on the misrecognition.
[0076] Fig. 12 is a diagram showing an example of calculation processing of the error influence degree in the third embodiment. In Fig. 12, it is assumed that partial regions 33a to 33d corresponding to four recognized characters are cut out from the photographed image 32 in the procedure shown in Fig. 7. The image quality evaluation unit 125 evaluates the image quality for each quality type for each of the cut out partial regions 33a to 33d, and calculates a quality feature amount for each quality type.
[0077] The image quality evaluation unit 125 calculates the low quality level as multi-value data indicating the judgment result of the image quality based on the calculated quality feature amount. The low quality level is a value indicating the degree of low quality, and is expressed as the distance of the quality feature amount to the appropriate range. As a specific example, if the lower limit threshold of the appropriate range is THmin, the upper limit threshold is THmax, and the calculated quality feature amount is Vf, the low quality level Vq is calculated by the following formula (1). Vq=MIN(V0,MIN(|Vf-THmin|,|Vf-THmax|) / (THmax-THmin) ···(1) In formula (1), MIN(x, y) indicates the smaller of x and y. The set value V0 is a value that determines the upper limit of the low quality level Vq. The set value V0 prevents the low quality level Vq from becoming too large, and can prevent the low quality level Vq from having an excessive effect on the calculation of the error impact level. The set value V0 may be set for each quality type. According to formula (1), when the quality feature amount Vf is included in the appropriate range, the low quality level Vq is calculated to be 0.
[0078] The error influence determination unit 126 compares the low quality degree for each quality type between the incorrect characters and the correct characters. In this process, the error influence determination unit 126 calculates the average value of the low quality degree for each quality type for the incorrect characters and the correct characters. Then, the error influence determination unit 126 calculates a difference value for each quality type by subtracting the average value for the correct characters from the average value for the incorrect characters, and sets the calculated difference value as the error influence degree for each quality type. In this way, the error influence degree is calculated as multi-value data.
[0079] 13 is a diagram showing an example of a quality type presentation process in the third embodiment. The quality characteristic display unit 127 executes a quality type presentation process based on the error influence degree calculated as multi-valued data. The quality characteristic display unit 127 generates an image showing at least the quality type having the largest error influence degree among the quality types, and causes the display device 105 to display it.
[0080] For example, the quality characteristics display unit 127 may generate an image 41 showing only the quality type with the highest error influence degree, and display it on the display device 105. Alternatively, the quality characteristics display unit 127 may generate an image 42 showing the quality types arranged in descending order of error influence degree, and display it on the display device 105.
[0081] 12, if the error influence degree is greater than 0, the corresponding quality type may have influenced the erroneous recognition. For this reason, image 42 may arrange quality types whose error influence degree is greater than 0 in order of increasing error influence degree. Image 42 may also show a predetermined number of quality types in order of increasing error influence degree, or may show quality types up to a predetermined rank in order of increasing error influence degree. Furthermore, as in the example of FIG. 13, image 42 may show error influence degrees together with the quality types.
[0082] 14 is a flowchart showing an example of a shooting support process procedure in the third embodiment. In the third embodiment, the process in FIG. 10 is changed as shown in FIG. [Step S31] The image quality assessment unit 125 selects one of the recognized characters, and acquires the position on the captured image where the selected character is recognized from the character recognition unit 122. Based on the acquired position, the image quality assessment unit 125 cuts out a partial area including the selected character from the captured image.
[0083] [Step S32] The image quality assessment unit 125 processes the extracted partial region, assesses the image quality for each quality type, and calculates a quality feature amount for each quality type. [Step S33] The image quality assessment unit 125 calculates a low-quality level for each quality type based on the calculated quality feature amount and using the above-mentioned formula (1).
[0084] [Step S34] The image quality assessment unit 125 determines whether all recognized characters have been selected. If there are unselected characters, the process proceeds to step S31, where one of the unselected characters is selected. On the other hand, if all characters have been selected, the process proceeds to step S35.
[0085] [Step S35] The error influence determining unit 126 calculates the average low-quality level for each quality type of the incorrect characters. [Step S36] The error influence determining unit 126 calculates the average low-quality level for each quality type for the correct characters.
[0086] [Step S37] The error influence determination unit 126 calculates a difference value by subtracting the average value for correct characters from the average value for incorrect characters for each quality type, and sets the calculated difference value as the error influence degree for each quality type.
[0087] [Step S38] Based on the calculated error influence degree, the quality characteristics display unit 127 causes the display device 105 to display the quality type using the method shown in FIG. In the third embodiment described above, the error influence degree corresponding to each quality type is calculated as multi-valued data. Therefore, the quality types can be presented to the user in a state in which they are ranked according to the magnitude of the error influence degree. The user can recognize the quality types that affect the recognition error together with the magnitude of the influence, so that the user can effectively take measures to prevent the recognition error.
[0088] [Fourth embodiment] Fig. 15 is a configuration example of processing functions provided in an information processing device according to a fourth embodiment. The information processing device 100a shown in Fig. 15 includes an error influence history storage unit 128 and a quality feature warning display unit 129 in addition to the processing functions of the information processing device 100 according to the third embodiment. The processes of the error influence history storage unit 128 and the quality feature warning display unit 129 are realized, for example, by the processor 102 executing a predetermined application program. Moreover, the memory unit 110 further stores error influence history information 112.
[0089] The error influence history storage unit 128 registers the error influence calculated for each quality type by the error influence determination unit 126 in the error influence history information 112. As a result, the calculated error influence is accumulated for each quality type in the error influence history information 112. For example, the error influence history information 112 may accumulate only the error influences for a predetermined number of times in the past. Also, the error influence history information 112 may accumulate only the error influences for a predetermined number of days in the past.
[0090] Before photographing for character recognition, the quality feature warning display unit 129 identifies a quality type that requires attention when photographing based on the error impact history information 112, and causes the display device 105 to display a warning image indicating the identified quality type.
[0091] Fig. 16 is an example of a flowchart showing a display process procedure of a warning image. The process of Fig. 16 is executed, for example, when an image recognition application that realizes the processing function shown in Fig. 15 is started. Alternatively, the process of Fig. 16 may be executed when a user performs an operation to start capturing an image for character recognition. In either case, after the process of Fig. 16 is executed and a warning image is displayed, the user is allowed to perform a capture operation (press the shutter button) to capture a still image for character recognition.
[0092] [Step S41] The quality characteristic warning display unit 129 selects one quality type. [Step S42] The quality feature warning display unit 129 acquires an error impact corresponding to the selected quality type from the error impact history information 112. In this process, all error impacts stored in the error impact history information 112 may be acquired. Alternatively, a predetermined number of error impacts may be acquired in reverse chronological order from among the error impacts stored in the error impact history information 112, or the error impacts for a predetermined number of days in the past may be acquired.
[0093] [Step S43] The quality characteristic warning display unit 129 calculates the average value of the acquired error influence degrees. [Step S44] The quality feature warning display unit 129 determines whether all quality types have been selected. If there are unselected quality types, the process proceeds to step S41, where one of the unselected quality types is selected. On the other hand, if all quality types have been selected, the process proceeds to step S45.
[0094] [Step S45] The quality feature warning display unit 129 generates a warning image indicating the quality type based on the calculated average value, and displays the warning image on the display device 105. The warning image shows at least the quality type with the largest average value among the quality types. For example, a warning image is generated that shows only the quality type with the largest average value. However, if the maximum average value is equal to or smaller than a predetermined threshold value, the warning image may not be displayed. Furthermore, the warning image may display quality types whose average values exceed a predetermined threshold value in order of largest average value.
[0095] According to the fourth embodiment described above, the quality type that has a large influence on the erroneous recognition of characters can be presented to the user immediately before shooting. The user can recognize points to be careful about in shooting based on the presented quality type and shoot in that state. As a result, the possibility of erroneous recognition of characters can be reduced.
[0096] The processing functions of the devices (e.g., character recognition device 1, information processing device 100, 100a) shown in each of the above embodiments can be realized by a computer. In this case, a program describing the processing contents of the functions that each device should have is provided, and the above processing functions are realized on the computer by executing the program on a computer. The program describing the processing contents can be recorded on a computer-readable recording medium. Examples of computer-readable recording media include magnetic storage devices, optical discs, and semiconductor memories. Examples of magnetic storage devices include hard disk drives (HDDs) and magnetic tapes. Examples of optical discs include CDs (Compact Discs), DVDs (Digital Versatile Discs), and Blu-ray Discs (BD, registered trademark).
[0097] When distributing a program, for example, the program is recorded on a portable recording medium such as a DVD or CD and then sold. The program can also be stored in a storage device of a server computer and transferred from the server computer to other computers via a network.
[0098] A computer that executes a program stores, for example, a program recorded on a portable recording medium or a program transferred from a server computer in its own storage device. The computer then reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from a portable recording medium and execute processing according to the program. The computer can also execute processing according to the received program each time a program is transferred from a server computer connected via a network. [Explanation of symbols]
[0099] 1 Character recognition device 1a Processing section 2 Camera 3 Display device 4. Photographed images 4a~4d partial area 5 Images
Claims
1. On the computer, Recognize multiple characters from the captured image, obtaining a detection result of misrecognition of the plurality of characters; outputting an evaluation result for each of a plurality of evaluation types for evaluating image quality for each partial region of the captured image that includes the plurality of characters; when one or more first characters among the plurality of characters are erroneously detected in the detection result, comparing the evaluation results for each of the plurality of evaluation types between the one or more first characters and one or more second characters among the plurality of characters that are not erroneously recognized; identifying an evaluation type having the highest influence on erroneous recognition from the plurality of evaluation types based on a comparison result of the evaluation results, and displaying the identified evaluation type on a display device; A character recognition program to carry out the process.
2. Identifying, among the plurality of evaluation types, an evaluation type in which the evaluation result differs between the one or more first characters and the one or more second characters as the evaluation type having the highest degree of influence.
2. The character recognition program according to claim 1.
3. Among the plurality of evaluation types, an evaluation type in which at least one of the one or more first characters is evaluated as having a low image quality and at least one of the one or more second characters is evaluated as having a high image quality is identified as the evaluation type having the highest degree of influence.
2. The character recognition program according to claim 1.
4. outputting an evaluation value for each of the plurality of evaluation types as the evaluation result; Calculating a degree of low quality for each of the plurality of evaluation types based on a comparison between an appropriate range defined for each of the plurality of evaluation types and the evaluation value for each of the plurality of characters; calculating the degree of influence based on a comparison result between the degree of low quality for the one or more first characters and the degree of low quality for the one or more second characters for each of the plurality of evaluation types; 2. The character recognition program according to claim 1.
5. calculating, for each of the plurality of evaluation types, a difference value between an average value of the low quality levels for the one or more first characters and an average value of the low quality levels for the one or more second characters as the degree of influence; 5. The character recognition program according to claim 4.
6. displaying, on the display device, two or more evaluation types having high influence among the plurality of evaluation types, in a ranking according to the influence; 2. The character recognition program according to claim 1.
7. The computer includes: Calculating the degree of influence for each of the plurality of evaluation types based on a comparison result of the evaluation results, and registering the calculated degree of influence in history information stored in a storage unit; when photographing for character recognition is performed again, an average value of the influence degree for each of the plurality of evaluation types is calculated based on the history information, and the evaluation type having the largest average value among the plurality of evaluation types is displayed on the display device.
2. The character recognition program according to claim 1, which executes a process.
8. The computer Recognize multiple characters from the captured image, obtaining a detection result of misrecognition of the plurality of characters; outputting an evaluation result for each of a plurality of evaluation types for evaluating image quality for each partial region of the captured image that includes the plurality of characters; when one or more first characters among the plurality of characters are erroneously detected in the detection result, comparing the evaluation results for each of the plurality of evaluation types between the one or more first characters and one or more second characters among the plurality of characters that are not erroneously recognized; identifying an evaluation type having the highest influence on erroneous recognition from the plurality of evaluation types based on a comparison result of the evaluation results, and displaying the identified evaluation type on a display device; Character recognition method.
9. Recognize multiple characters from the captured image, obtaining a detection result of misrecognition of the plurality of characters; outputting an evaluation result for each of a plurality of evaluation types for evaluating image quality for each partial region of the captured image that includes the plurality of characters; when one or more first characters among the plurality of characters are erroneously detected in the detection result, comparing the evaluation results for each of the plurality of evaluation types between the one or more first characters and one or more second characters among the plurality of characters that are not erroneously recognized; a processing unit that identifies an evaluation type having the highest influence on erroneous recognition from the plurality of evaluation types based on a comparison result of the evaluation results and displays the identified evaluation type on a display device; A character recognition device having the following.
Citation Information
Patent Citations
Information processing apparatus, information processing method, and program
JP2022137634A
Methods and systems for data retrieval from an image
US20200184208A1
