Information processing device and program
The information processing device and program address the issue of incorrect text detection by converting character strings into words and setting font colors based on confidence levels, improving the readability and accuracy of text files.
Patent Information
- Application Number
- JP2020121135
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-07-15
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2040-07-15
AI Technical Summary
Conventional character recognition systems fail to accurately detect text in images, leading to incorrect character recognition and impaired text editing convenience due to processing on a character-by-character basis rather than a word-by-word basis.
An information processing device and program that utilize character recognition, word processing, and output means to convert character strings into words, setting character colors for each word, and outputting text data in the Office Open XML Document format, with the ability to set font colors based on confidence levels to highlight erroneous detections.
Facilitates easy recognition of erroneous text detections by setting font colors according to confidence levels, enhancing the readability and accuracy of text files generated from image data.
Smart Images

Figure 0007552113000005 
Figure 0007552113000010 
Figure 0007552113000011
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device and a program for outputting a text file of a character string included in an image. [Background technology]
[0002] There is a known process of scanning a paper on which a document is printed and converting the contents of the document into a file in the Office Open XML Document format using character recognition such as OCR. This process converts a paper-based document into a text data file, which allows the document to be re-edited on a PC or other device.
[0003] As an example of a technology for generating text data by character recognition, there is JP 2015-060470 A (Patent Document 1). Patent Document 1 discloses a technology for superimposing and displaying text data on handwritten input characters. Patent Document 1 shows a configuration for lightening the color of input characters and then superimposing and displaying recognized characters.
[0004] However, when a text file is output from image data using character recognition, characters in the image may not be detected correctly. In such cases, in the conventional technologies including Patent Document 1, the above-mentioned processing such as lightening the color of characters is performed on a character-by-character basis, not on a word-by-word basis, making it difficult for the user (reader) to recognize the erroneously detected characters, and convenience is impaired from the viewpoint of re-editing the text. Summary of the Invention [Problem to be solved by the invention]
[0005] The present invention has been made in consideration of the problems in the conventional technology described above, and has an object to provide an information processing device and a program that output a file in which erroneous detection of text is easily recognized. [Means for solving the problem]
[0006] That is, according to the present invention, An information processing device having a recognition means for recognizing characters included in image data, a word processing means for dividing a character string composed of a plurality of characters recognized by the recognition means into words and setting a character color for each word; an output means for outputting a file in which characters included in the image data are converted into text data based on the setting by the word processing means; An information processing device is provided, comprising: Effect of the Invention
[0007] According to the present invention, it is possible to provide an information processing device and a program that output a file in which erroneous detection of text can be easily recognized. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing a schematic hardware configuration of an entire system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing a hardware configuration included in the information processing apparatus of the present embodiment. [Diagram 3] FIG. 2 is a block diagram of software included in the information processing apparatus of the present embodiment. [Figure 4] 6 is a flowchart showing a process for outputting a text file in the embodiment. [Diagram 5] 3A to 3C are diagrams illustrating character recognition in the present embodiment. [Figure 6] 5A and 5B are diagrams for explaining word certainty in the present embodiment. [Figure 7] 10 is a flowchart showing a color setting process executed by a word processing unit of the embodiment. [Figure 8] 6A and 6B are diagrams showing examples of text data subjected to color setting processing according to the embodiment. [Figure 9] 6A and 6B are diagrams showing examples of text data subjected to color setting processing according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] The present invention will be described below with reference to an embodiment, but the present invention is not limited to the embodiment described below. In addition, in each drawing referred to below, the same reference numerals are used for common elements, and the description thereof will be omitted as appropriate.
[0010] Fig. 1 is a diagram showing a schematic hardware configuration of the entire system 100 in this embodiment. Fig. 1 illustrates, as an example, an environment in which an information processing device 110 and an MFP (Multi-Function Peripheral) 120 are connected via a network 130 such as the Internet or a LAN. Note that the information processing device 110 and the MFP 120 may be connected to the network 130 by either a wired or wireless method.
[0011] The information processing device 110 is a device such as a personal computer terminal, etc. The information processing device 110 can perform processes such as sending a print job to the MFP 120, acquiring an image scanned by the MFP 120, converting the image into a text file, and displaying and editing the text file.
[0012] The MFP 120 performs printing processing based on a print job, scanning processing by reading paper, etc. In another embodiment, the MFP 120 may process an image and convert character strings in the image into a text file.
[0013] Next, a hardware configuration of the information processing device 110 will be described. Fig. 2 is a diagram showing the hardware configuration included in the information processing device 110 of this embodiment. The information processing device 110 includes a CPU 210, a RAM 220, a ROM 230, a storage device 240, a communication I / F 250, a display 260, and an input device 270, and each piece of hardware is connected via a bus.
[0014] The CPU 210 is a device that executes a program that controls the operation of the information processing device 110 and performs predetermined processing. The RAM 220 is a volatile storage device that provides an execution space for the program executed by the CPU 210, and is used for storing and extracting programs and data. The ROM 230 is a non-volatile storage device that stores the programs executed by the CPU 210, firmware, and the like.
[0015] The storage device 240 is a readable / writable non-volatile storage device that stores an OS, various software, setting information, various data, etc. that operate the information processing device 110. Examples of the storage device 240 include a hard disk drive (HDD) and a solid state drive (SSD).
[0016] The communication I / F 250 connects the information processing device 110 to the network 130, and enables communication with other devices via the network 130. The communication via the network 130 may be either wired communication or wireless communication, and can transmit and receive various types of data using a predetermined communication protocol such as TCP / IP.
[0017] The display 260 is a device that displays various data and the status of the information processing device 110 to the user, and an example of such a display is a liquid crystal display (LCD). The input device 270 is a device that allows the user to operate the information processing device 110, and an example of such a display is a keyboard or a mouse. The display 260 and the input device 270 may be separate devices, or may have the functions of both, such as a touch panel display.
[0018] The above describes the hardware configuration included in the information processing device 110 of this embodiment. Next, the functional means executed by each piece of hardware in this embodiment will be described with reference to FIG.
[0019] 3 is a software block diagram included in the information processing device 110 of this embodiment. The information processing device 110 of this embodiment includes the following modules: a character recognition unit 310, a character string analysis unit 320, a word processing unit 330, a text file output unit 340, and a dictionary database storage unit 350.
[0020] The character recognition unit 310 is a means for performing OCR (Optical Character Recognition) processing on image data to recognize characters contained in the image. Image data to be subjected to character recognition is not particularly limited, and examples thereof include data scanned by the MFP 120 or the like, data photographed by a camera, and data drawn via a touch panel display. The character recognition unit 310 can recognize characters based on language rules such as character position, size, character type, and the like (hereinafter, may be referred to simply as "rules"). Furthermore, the character recognition unit 310 of this embodiment can calculate a confidence level (hereinafter, referred to as "character confidence level") indicating the likelihood of character recognition for each recognized character.
[0021] The character string analysis unit 320 is a means for analyzing a character string composed of a plurality of characters recognized by the character recognition unit 310. The character string analysis unit 320 divides the character string into meaningful words, for example, by performing morphological analysis (hereinafter referred to as "wordization"). Furthermore, the character string analysis unit 320 of this embodiment can generate words by comprehensively determining elements such as rules and combinations.
[0022] The word processing unit 330 is a means for performing processing to set the character color when converting the word generated by the character string analysis unit 320 into text data. The word processing unit 330 sets the character color based on whether the word generated by the character string analysis unit 320 is a word registered in the dictionary database storage unit 350 (hereinafter referred to as a "registered word") described later, the character confidence of the characters constituting the word, and the like.
[0023] The text file output unit 340 is a means for converting characters included in an original image into text data and outputting a file in the Office Open XML Document format. The text file output unit 340 converts character strings into text data in the character color set by the word processing unit 330. The text file output by the text file output unit 340 is used for re-editing the text.
[0024] The dictionary database storage unit 350 is a means for controlling the storage device 240 and storing the dictionary database. The dictionary database in this embodiment can store registered words for replacing the generated words. In this embodiment, from the viewpoint of saving the capacity of the dictionary database, the registered words stored in the dictionary database may be limited in terms of parts of speech, number of characters, etc. As an example, nouns of 3 to 5 characters are registered in the dictionary database in this embodiment.
[0025] The dictionary database of the present embodiment may be generated by the learning effect of machine learning. In addition, by classifying keywords that may be included in a recognized character string and registered words that are conversion candidates by machine learning, it is not necessary to use a dictionary database.
[0026] Here, machine learning is a technology that allows a computer to acquire human-like learning capabilities, in which the computer autonomously generates algorithms necessary for judgments such as data identification from learning data that is previously loaded, and applies these to new data to make predictions. The learning method for machine learning may be any of supervised learning, unsupervised learning, semi-supervised learning, reinforcement learning, and deep learning, or may be a combination of these learning methods; any learning method for machine learning is acceptable.
[0027] The above-mentioned software blocks correspond to functional means realized by causing each piece of hardware to function by executing the program of this embodiment by the CPU 210. Also, the functional means shown in each embodiment may be realized entirely by software, or part or all of them may be implemented as hardware that provides equivalent functions.
[0028] Furthermore, all of the above-mentioned functional units do not necessarily have to be included in the configuration shown in Fig. 3. For example, in another preferred embodiment, each functional unit may be realized by cooperation between the information processing device 110 and the MFP 120.
[0029] Next, the processes executed by the above-mentioned functional means will be described with reference to Fig. 4. Fig. 4 is a flow chart showing the process of outputting a text file in this embodiment.
[0030] Information processing device 110 of this embodiment starts processing to output a text file from step S1000. In step S1001, character recognition unit 310 recognizes characters included in an image. In step S1001, character recognition unit 310 performs character recognition and calculates character confidence for each character. Here, character recognition in this embodiment will be described with reference to FIG. 5. FIG. 5 is a diagram for explaining character recognition in this embodiment.
[0031] Fig. 5(a) shows an example of an image to be converted. The following explanation will exemplify a case where an image including black characters "postcard" on a dark background as shown in Fig. 5(a) is converted into a text file. When the source image of Fig. 5(a) is input, the character recognition unit 310 extracts a rectangle circumscribing the characters as shown in Fig. 5(b).
[0032] After extracting the character rectangle, the character recognition unit 310 separates the character pixels from the background pixels, as shown in Fig. 5(c). The upper part of Fig. 5(c) shows an example in which the background pixels corresponding to the character rectangle have been separated (however, the color of the original character pixels has been converted to the same color as the background). The lower part of Fig. 5(c) shows an example in which the character pixels ("ha", "ga", and "ki") within the character rectangle have been separated.
[0033] Thereafter, the character recognition unit 310 recognizes the character for the character pixel "postcard" shown in the lower part of Fig. 5(c). In addition, the character recognition unit 310 calculates the character confidence of each character as it recognizes the characters. The character confidence indicates the probability that a character is correctly recognized, and takes a value between 0 and 1. The character confidence in this embodiment can be calculated using, for example, the Dempster-Shafer probability theory using information such as whether or not a rule is met as evidence. Figs. 5(d-1) to (d-3) show examples of character recognition results and calculated character confidence.
[0034] Fig. 5(d-1) shows an example where the character "hagaki" is recognized from the character pixel "hagaki". Fig. 5(d-1) also shows an example where the character confidence factor of "ha" is evaluated as 0.80, the character confidence factor of "ga" is evaluated as 0.85, and the character confidence factor of "ki" is evaluated as "0.82". The character confidence factors of each character shown in Fig. 5(d-1) are calculated to be relatively high values because the character "hagaki" is recognized from the character pixel "hagaki".
[0035] Fig. 5(d-2) shows an example where the character "hagashi" is recognized from the character pixel "hagaki". Fig. 5(d-3) shows an example where the character confidence factor of "ha" is evaluated as 0.80, the character confidence factor of "ga" is evaluated as 0.85, and the character confidence factor of "sa" is evaluated as "0.60". In the example shown in Fig. 5(d-2), since the character "hagashi" is recognized from the character pixel "hagaki", the character confidence factors of "ha" and "ga" are calculated as relatively high values, while the character confidence factor of "sa" is calculated as relatively low value.
[0036] Fig. 5(d-3) shows an example in which the character "hogasa" is recognized from the character pixel "hagaki". Fig. 5(d-3) also shows an example in which the character confidence factor of "ho" is evaluated as 0.35, the character confidence factor of "ga" is evaluated as 0.85, and the character confidence factor of "sa" is evaluated as 0.40. In the example shown in Fig. 5(d-3), since the character "hogasa" is recognized from the character pixel "hagaki", the character confidence factor of "ga" is calculated as a relatively high value, while the character confidence factors of "ho" and "sa" are calculated as relatively low values.
[0037] The method for the series of character recognition processes described above is not particularly limited, and known methods such as image area separation and pattern matching can be used.
[0038] Returning to Fig. 4 for the explanation, after the characters are recognized in step S1001, in step S1002, the character string analysis unit 320 divides the character string consisting of the recognized characters into words. The division into words in step S1002 may be performed by, for example, morphological analysis. The words generated in step S1002 may be temporarily stored in the storage device 240.
[0039] After that, in the process after step S1003, the word processing unit 330 performs a process for converting the generated word into text data. In step S1003, the word processing unit 330 acquires an unprocessed word from among the multiple words. In the following step S1004, the process branches depending on whether the acquired word is a word to be searched. Here, the determination of whether the word is a word to be searched can be performed based on, for example, the part of speech or the number of characters of the acquired word. In this way, by determining whether the word is a search target, a search is not performed for words that are not registered in the dictionary database, so that the word conversion process can be made more efficient. If the acquired word is not a search target (NO), the process proceeds to step S1010. Details of step S1010 will be described later. Also, if the acquired word is a search target (YES), the process proceeds to step S1005.
[0040] In step S1005, the word processing unit 330 searches the dictionary database based on the word to be searched, and branches the process depending on whether a matching registered word is stored in the dictionary database. The determination of whether or not there is a match with a registered word may be performed, for example, based on whether or not the rate at which the characters constituting the word match the characters of the registered word is higher than a predetermined threshold. In one example of the embodiment described below, the threshold is set to 60%, and if the character match rate is higher than the threshold, it is determined that there is a match with the registered word.
[0041] If a matching registered word is stored in the dictionary database in step S1005 (YES), the process proceeds to step S1006. In step S1006, the word processing unit 330 extracts a registered word that has the highest matching rate with the word to be processed from among the registered words stored in the dictionary database, and replaces the word to be processed with the registered word. After that, in step S1007, the word processing unit 330 sets a value of a confidence level (hereinafter referred to as "word confidence level") indicating the likelihood of the word to be processed to the highest character confidence level value among the character confidence levels of the characters that constitute the word.
[0042] On the other hand, if a matching registered word is not stored in the dictionary database in step S1005 (NO), the process proceeds to step S1008. In step S1008, the word processing unit 330 sets the word confidence value of the word to be processed to the lowest character confidence value among the character confidence values of the characters constituting the word.
[0043] Here, the setting of the word confidence level in steps S1007 and S1008 will be described with reference to Fig. 6. Fig. 6 is a diagram for explaining the word confidence level in this embodiment. In Fig. 6, Figs. 6(a-1) to (a-3) respectively show an example in which a dictionary database is searched for characters recognized as in Figs. 5(d-1) to (d-3) and a word confidence level is set. Note that in the description of the embodiment in Fig. 6, it is assumed that "postcard" is stored as a registered word in the dictionary database.
[0044] First, FIG. 6(a-1) will be described. Consider a case where a character string recognized as "hagaki" as in FIG. 5(d-1) is used as a search target to search a dictionary database in which the registered word "hagaki" is stored. In this case, since three out of three characters of the character string "hagaki" and the registered word "hagaki" match, the character match rate is determined to be 100% as shown in FIG. 6(a-1). Since the character match rate exceeds the threshold value of 60%, the character string "hagaki" to be searched is replaced as matching the registered word "hagaki". In addition, at this time, the highest value of each character confidence of the character string "hagaki", 0.85, for the character "ga", is set as the word confidence of the word.
[0045] Next, FIG. 6(a-2) will be described. Consider a case where a character string recognized as "hagaki" as shown in FIG. 5(d-2) is used as a search target to search a dictionary database in which the registered word "hagaki" is stored. In this case, since two out of three characters of the character string "hagaki" and the registered word "hagaki" match, the character match rate is determined to be 67% as shown in FIG. 6(a-2). Since the character match rate exceeds the threshold value of 60%, the character string "hagaki" to be searched is replaced as matching the registered word "hagaki". In addition, at this time, the highest value of each character confidence of the character string "hagaki", 0.85, for the character "ga", is set as the word confidence of the word.
[0046] Next, FIG. 6(a-3) will be described. Consider a case where a character string recognized as "hogasa" as shown in FIG. 5(d-3) is used as a search target to search a dictionary database in which the registered word "hagaki" is stored. In this case, since one character out of three characters of the character string "hogasa" and the registered word "hagaki" match, the character match rate is determined to be 33% as shown in FIG. 6(a-3). Since the character match rate is below the threshold value of 60%, the character string "hagaki" to be searched is not replaced with the registered word. In addition, at this time, the lowest value of the character confidence rates of the character "ho", 0.35, of the character confidence rates of the character string "hagaki" to be searched is set as the word confidence rate of the word.
[0047] In addition, if a plurality of registered words having the same character match rate are extracted as a result of the search, the accuracy of replacement with the registered word can be improved by, for example, comparing the sums of the character confidence rates.
[0048] Returning to FIG. 4 for explanation, in step S1007, the word processing unit 330 sets the word confidence level as shown in FIG. 6(a-1) or (a-2). In addition, in step S1008, the word processing unit 330 sets the word confidence level as shown in FIG. 6(a-3). After setting the word confidence level in step S1007 or S1008, the word processing unit 330 performs color setting processing for words to be converted into text data in step S1009. In step S1009, the word processing unit 330 sets a character color for each word according to the word confidence level. Details of the color setting processing in step S1009 will be described later.
[0049] After the color setting process in step S1009, or after it is determined in step S1004 that the acquired word is not a search target, the word processing unit 330 performs the process in step S1010. In step S1010, the process branches depending on whether or not there are unprocessed words. If there are unprocessed words (YES), the process returns to the process in step S1003, and the above-mentioned processes are repeated until there are no unprocessed words. On the other hand, if there are no unprocessed words (NO), the process proceeds to step S1011.
[0050] In step S1011, text file output unit 340 outputs a text file in which characters included in the source image are converted into text data of characters recognized by character recognition unit 310. The character color of the text file output in step S1011 can be the color set in step S1009. Thereafter, information processing device 110 ends the process of outputting the text file in step S1012.
[0051] By the process described in FIG. 4, the information processing device 110 can convert the text data into text data in which the character color is set on a word-by-word basis, and if there is a misdetection in character recognition, the reader as the user can easily understand the misdetection.
[0052] So far, the basic processing for outputting a text file executed by the information processing device 110 of this embodiment has been described. Below, the color setting processing (step S1009) in the processing for generating a text file of this embodiment will be described with reference to FIG. 7. FIG. 7 is a flowchart showing the color setting processing executed by the word processing unit 330 of this embodiment. Note that in the following description of FIG. 7, reference will be made to FIG. 8 and FIG. 9 as appropriate. FIG. 8 and FIG. 9 are diagrams showing examples of text data that have been subjected to the color setting processing of this embodiment.
[0053] The word processing unit 330 starts the color setting process from step S2000. In this embodiment, the word processing unit 330 starts the process of step S2000 in response to step S1009 in FIG. 4. In the following step S2001, the process branches depending on whether the word confidence of the word to be processed is greater than a predetermined threshold. If the word confidence is greater than the predetermined threshold (YES), the process proceeds to step S2002. On the other hand, if the word confidence is equal to or less than the predetermined threshold (NO), the process proceeds to step S2004.
[0054] First, the case where the word certainty is greater than a predetermined threshold (YES) will be described. In this case, in step S2002, the word processing unit 330 sets the color of the character pixel portion of the word in the image to the same color as the background color. In addition, in step S2003, the word processing unit 330 sets the font color of the word to the same color as the character pixels of the image data. Note that the processes of steps S2002 and S2003 may be performed in the reverse order to that of FIG. 7, or may be performed in parallel. Thereafter, in step S2006, the word processing unit 330 ends the color setting process. When the color setting process ends, the information processing device 110 proceeds to the process of step S1010 in FIG. 4.
[0055] Here, the color settings will be explained with reference to Fig. 8. Note that the leader lines and the RGB values associated with the leader lines in Fig. 8 are shown for the purpose of explanation and do not constitute the contents of the image or text file to be converted.
[0056] Fig. 8(a) shows an example of an image to be converted, in which the image contains the characters "postcard" with character pixel colors R=0, G=0, B=0 against a background with background pixel colors R=191, G=191, B=191. Consider the case where the image shown in Fig. 8(a) is subjected to text file output processing and the word confidence is greater than a predetermined threshold.
[0057] In such a case, the word processing unit 330 sets the color of the character pixel portion to the same color as the background pixel in step S2002 in Fig. 7. Fig. 8(b) shows an example in which the color of the character pixel portion is set to the same color as the background color. As shown in Fig. 8(b), the color of the character pixel portion is the same as the color of the background pixel, R=191, G=191, B=191. Note that the outlines of the characters in Fig. 8(b) are shown for convenience of explanation, and do not constitute the content of the image or text file to be converted.
[0058] Furthermore, in step S2003 in Fig. 7, the word processing unit 330 sets the font color of the word to the same color as the character pixels of the original image. Therefore, the font color of the word "postcard" is R=0, G=0, B=0, the same as the color of the character pixels in Fig. 8(a). By outputting the word with the font color set in this way, superimposed on the background image as in Fig. 8(b), the text file output unit 340 can output a text file in the format shown in Fig. 8(c).
[0059] The word processing unit 330 may set the font size of the output word to be thicker than the original size. Since the font size may be recognized as small during the process of converting the color of the character pixels, by making the characters thicker as described above, the information processing device 110 can output a text file that looks more natural.
[0060] Returning to Fig. 7 for the explanation, if the word certainty is equal to or less than the predetermined threshold in step S2001 in Fig. 7 (NO), the process proceeds to step S2004. In step S2004, the word processing unit 330 sets the color of the character pixel portion of the word in the image to a color according to the word certainty. Here, the color of the character pixel portion set according to the word certainty can be calculated, for example, according to the following formulas (1-1) to (1-3).
[0061]
number
[0062] In the above formulas (1-1) to (1-3), Rr, Gr, and Br indicate the RGB values of the color of the character pixel portion to be set. Rb, Gb, and Bb in the formulas indicate the RGB values of the color of the background pixels of the source image. C in the formulas is the value of word confidence. x in the formulas indicates the weight of confidence in the color setting process, and typically takes a value of about 1 / 3 to 1 / 2.
[0063] After step S2004, in step S2005, the word processing unit 330 sets the font color of the word to a color according to the word confidence of the word. Here, the font color set according to the word confidence can be calculated, for example, according to the following formulas (2-1) to (2-3).
[0064]
number
[0065] In the above formulas (2-1) to (2-3), Rf, Gf, and Bf indicate the RGB values of the font color to be set. Rc, Gc, and Bc in the formulas indicate the RGB values of the color of the character pixels in the source image. C in the formulas is the value of the word confidence. x in the formulas indicates the weight of the confidence in the color setting process, and typically takes a value of about 1 / 3 to 1 / 2.
[0066] The processes of steps S2004 and S2005 may be performed in the reverse order to that of Fig. 7, or may be performed in parallel. The color settings shown in the above formulas (1-1) to (1-3) and formulas (2-1) to (2-3) are merely examples and do not limit the embodiment. After step S2005, in step S2006, the word processing unit 330 ends the color setting process. When the color setting process ends, the information processing device 110 proceeds to the process of step S1010 in Fig. 4.
[0067] Here, the color settings will be explained with reference to Fig. 9. Note that the leader lines and the RGB values associated with the leader lines in Fig. 9 are described for the purpose of explanation and do not constitute the contents of the image or text file to be converted.
[0068] Fig. 9(a) shows an example of an image to be converted, similar to Fig. 8(a), in which the image shows a background with background pixel colors of R=191, G=191, B=191 and the character "hagaki" with character pixel colors of R=0, G=0, B=0. Consider the case where the image shown in Fig. 9(a) is subjected to text file output processing, character recognition is performed as the word "hogasa", and the word confidence of the word is 0.35, which is below a predetermined threshold.
[0069] In such a case, the word processing unit 330 sets the color of the character pixel portion to a color according to the word confidence using the above formulas (1-1) to (1-3) in step S2004 in Fig. 7. When the above formulas (1-1) to (1-3) are used in the example of the embodiment to be described, the color of the character pixel portion is calculated as R=243, G=243, B=243. Fig. 9(b) shows an example in which the color of the character pixel portion is converted by setting it to R=243, G=243, B=243.
[0070] In step S2005 of FIG. 7, the word processing unit 330 uses the above formulas (2-1) to (2-3) to set the font color of the word to a color according to the word certainty. In the embodiment example described below, using the above formulas (2-1) to (2-3), the font color is calculated as R=206, G=206, and B=206. By setting the font color of the word "hogasa" in this way and outputting it superimposed on a background image as shown in FIG. 9(b), the text file output unit 340 can output a text file in the form shown in FIG. 9(c). In the text file output when the word certainty is lower than a predetermined threshold, the word is displayed in an unnatural form as shown in FIG. 9(c). Therefore, it becomes easier for the reader to recognize words that are likely to be erroneously detected.
[0071] By the process described in FIG. 7, the word processing unit 330 can set a color according to the word certainty, making it easier for the reader, who is the user, to recognize erroneous detection.
[0072] According to the embodiment of the present invention described above, it is possible to provide an information processing device and a program that output a file in which erroneous detection of text can be easily recognized.
[0073] Each function of the above-described embodiments of the present invention can be realized by a device-executable program written in C, C++, C#, Java (registered trademark), etc., and the program of this embodiment can be stored on a device-readable recording medium such as a hard disk drive, CD-ROM, MO, DVD, flexible disk, EEPROM (registered trademark), EPROM, etc. and distributed, and can also be transmitted over a network in a format that can be used by other devices.
[0074] Each function of the above-described embodiments can be realized by one or more processing circuits. Here, the term "processing circuit" in this specification includes a processor programmed to execute each function by software, such as a processor implemented by an electronic circuit, and a device such as an ASIC (Application Specific Integrated Circuit), a DSP (digital signal processor), an FPGA (field programmable gate array), or a conventional circuit module designed to execute each function described above.
[0075] Although the present invention has been described above with reference to an embodiment, the present invention is not limited to the above-described embodiment, and as long as the functions and effects of the present invention are achieved within the scope of embodiments that a person skilled in the art can imagine, they are included in the scope of the present invention. [Explanation of symbols]
[0076] 00... system, 110... information processing device, 120... MFP, 130... network, 210... CPU, 220... RAM, 230... ROM, 240... storage device, 250... communication I / F, 260... display, 270... input device, 310... character recognition unit, 320... character string analysis unit, 330... word processing unit, 340... text file output unit, 350... dictionary database storage unit [Prior art documents] [Patent documents]
[0077] [Patent Document 1] JP 2015-060470 A
Claims
1. An information processing device having a recognition means for recognizing characters included in image data, a word processing means for dividing a character string composed of a plurality of characters recognized by the recognition means into words and setting a character color for each word; an output means for outputting a file in which characters included in the image data are converted into text data based on the setting by the word processing means; Including, The word processing means includes: when it is determined that the word matches a word stored in a dictionary database, the highest confidence level among the confidence levels of the characters constituting the word is determined as the confidence level of the word, and a character color of the word or a conversion color of the pixels of the character is set based on the highest confidence level among the confidence levels of the characters constituting the word. Information processing device.
2. An information processing device having a recognition means for recognizing characters included in image data, a word processing means for dividing a character string composed of a plurality of characters recognized by the recognition means into words and setting a character color for each word; an output means for outputting a file in which characters included in the image data are converted into text data based on the setting by the word processing means; Including, The word processing means includes: when it is determined that the word does not match a word stored in the dictionary database, the lowest confidence level among the confidence levels of the characters constituting the word is set as the confidence level of the word, and a character color of the word or a conversion color of the pixels of the character is set. Information processing device.
3. 3. The information processing apparatus according to claim 1, wherein said word processing means sets a character color of said word in accordance with a degree of certainty of character recognition.
4. 4. The information processing apparatus according to claim 1, wherein the word processing means converts the character string into words by referring to a dictionary database based on a degree of certainty of character recognition.
5. The output means includes: outputting a file in which the characters recognized by the recognition means are superimposed on the pixels of the characters included in the image data; The information processing device according to any one of claims 1 to 4.
6. the output means converts the color of pixels of characters included in the image data into a color corresponding to a degree of certainty of character recognition. The information processing device according to any one of claims 1 to 5.
7. A program executed by an information processing device having a recognition unit for recognizing characters included in image data, a word processing means for dividing a character string composed of a plurality of characters recognized by the recognition means into words and setting a character color or a conversion color of pixels of the characters for each word; an output means for outputting a file in which characters included in the image data are converted into text data based on the setting by the word processing means; Functioning as a The word processing means includes: when it is determined that the word matches a word stored in a dictionary database, the highest confidence level among the confidence levels of the characters constituting the word is determined as the confidence level of the word, and a character color of the word or a conversion color of the pixels of the character is set based on the highest confidence level among the confidence levels of the characters constituting the word. program.
8. A program executed by an information processing device having a recognition means for recognizing characters included in image data, the program comprising: a word processing means for dividing a character string composed of a plurality of characters recognized by the recognition means into words and setting a character color or a conversion color of pixels of the characters for each word; an output means for outputting a file in which characters included in the image data are converted into text data based on the setting by the word processing means; Functioning as a The word processing means includes: when it is determined that the word does not match a word stored in the dictionary database, the lowest confidence level among the confidence levels of the characters constituting the word is set as the confidence level of the word, and a character color of the word or a conversion color of the pixels of the character is set. program.
Citation Information
Patent Citations
Character recognizing device
JP1992315278A
Character recognition device
JP2003108919A
Image processing apparatus, image processing program and storage medium
JP2005259017A
Recognition device
JP2015060470A
