Information processing device and program

The information processing device improves text file reusability by recognizing characters and backgrounds, enabling settings to replace or retain pixels based on certainty and uniformity, facilitating error correction and maintaining image integrity.

JP7552117B2Active Publication Date: 2024-09-18RICOH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Conventional character recognition techniques lack reusability of back images in text files, making it inconvenient for editing and correcting errors.

Method used

An information processing device and program that recognize characters and background images, allowing settings to replace or retain character pixels based on recognition certainty and background uniformity, converting the image into a text file with improved reusability.

Benefits of technology

Enhances the reusability of text files by clearly indicating character recognition errors and allowing easy correction, maintaining the integrity of background images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552117000006
    Figure 0007552117000006
  • Figure 0007552117000009
    Figure 0007552117000009
  • Figure 0007552117000003
    Figure 0007552117000003
Patent Text Reader

Abstract

To provide an information processing apparatus and a program that output a text file that has improved the reusability of a background image in character recognition processing.SOLUTION: An information processing apparatus comprises a character recognition unit 310 that recognizes characters in an image including a background and the characters, and includes: a conversion setting unit 320 that sets whether to replace the color of pixels of a character portion of the image with another color; and a text file conversion unit 330 that converts the image into a file in which a text recognized by the character recognition unit 310 is superimposed on a background image based on the setting made by the conversion setting unit 320.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

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 technique for generating text data by character recognition, there is JP 2005-352735 A (Patent Document 1). Patent Document 1 discloses a technique for determining whether or not to erase pixels of the character portion of the source image based on the confidence level of character recognition. According to Patent Document 1, the recognition result of the character recognition process can be easily confirmed.

[0004] However, in the conventional techniques including Patent Document 1, reusability including the back image was not taken into consideration, and therefore convenience was insufficient from the viewpoint of re-editing the text file. 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 aims to provide an information processing device and a program for outputting a text file with improved reusability of background images in character recognition processing. [Means for solving the problem]

[0006] That is, according to the present invention, An information processing device comprising a recognition means for recognizing a character in an image including a background and the character, A setting means for setting whether or not pixels in a character portion of the image are to be replaced with another color; a conversion means for converting the image into a file in which the text recognized by the recognition means is superimposed on a background image based on the setting by the setting 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 apparatus and a program for outputting a text file with improved reusability of a back image in character recognition processing. [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 of converting an image into a text file in the present embodiment. [Diagram 5] 5A to 5C are diagrams showing a specific example of a text file conversion process in the embodiment. [Figure 6] 5A to 5C are diagrams showing various examples of replacing character pixels in the embodiment. [Figure 7] 10 is a flowchart showing a process of converting an image into a text file in another 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 block diagram of software 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 conversion setting unit 320, a text file conversion unit 330, and a file transmission unit 340.

[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 that is the subject of character recognition is not particularly limited, and examples thereof include data scanned by the MFP 120 or the like, data captured by a camera, and data drawn via a touch panel display.

[0021] The character recognition unit 310 performs a process of recognizing characters, for example, as follows. That is, the character recognition unit 310 first extracts a rectangular area surrounding a character included in an image. Then, it determines whether the pixels included in the rectangular area are pixels that make up a character portion (hereinafter referred to as "character pixels") or pixels that make up a background portion (hereinafter referred to as "background pixels"). After that, the character recognition unit 310 recognizes the character based on the shape of the character pixels.

[0022] The character recognition unit 310 can recognize characters based on language rules such as character position, size, and character type. The character recognition unit 310 of this embodiment can also calculate a confidence level indicating the likelihood of character recognition for each recognized character. Furthermore, the character recognition unit 310 of this embodiment can calculate the uniformity of the color of background pixels in a rectangular area during the character recognition process.

[0023] The character recognition process in this embodiment may be performed by the learning effect of machine learning. For example, the character recognition unit 310 may recognize characters included in an image based on a dictionary database generated by machine learning.

[0024] 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.

[0025] The conversion setting unit 320 is a means for setting conversion of character pixels included in the original image. An example of the conversion setting is a setting for replacing the color of the character pixels with another color. Note that "replacing with another color" here includes erasing the character pixels. Also, although the "other color" is not particularly limited to the embodiment, it can be a color similar to the background pixels of the character. The conversion setting unit 320 of this embodiment can set conversion based on the certainty of the character and the uniformity of the background. Also, the conversion setting unit 320 can set conversion for a character string consisting of multiple characters as one unit.

[0026] The text file conversion unit 330 is a means for converting characters included in an original image into text data and outputting a file in Office Open XML Document format. The text file conversion unit 330 converts an image into a text file by superimposing the text recognized by the character recognition unit 310 on a background image based on the conversion settings of character pixels set by the conversion setting unit 320. The text file output by the text file conversion unit 330 is stored in the storage device 240 or transmitted to another device for use in re-editing the text.

[0027] The file transmission unit 340 is a unit that controls the communication I / F 250 and transmits the text file output by the text file conversion unit 330 to another device via the network 130.

[0028] 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.

[0029] 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.

[0030] Next, the process executed by each of the above-mentioned functional means will be described with reference to Fig. 4. Fig. 4 is a flow chart showing the process of converting an image into a text file in this embodiment.

[0031] The information processing device 110 of this embodiment starts a process of converting an image into a text file from step S1000. In step S1001, the character recognition unit 310 recognizes characters contained in the image. In step S1001, the character recognition unit 310 performs character recognition and calculates the confidence level of each character and the color uniformity of the background pixels in the character area. The characters recognized in step S1001 are stored in a storage area of ​​the information processing device 110 together with the confidence level and the background uniformity.

[0032] Next, in step S1002, the conversion setting unit 320 acquires a character to be processed from the characters stored in the storage area in step S1001.

[0033] Then, in step S1003, the process branches depending on whether the background pixels of the character being processed are uniform. If the uniformity of the background pixel color is less than a predetermined threshold, the background pixel color is determined to be non-uniform (NO), and the process proceeds to step S1006. The process of step S1006 will be described in detail later. On the other hand, if the uniformity of the background pixels is equal to or greater than the predetermined threshold, the background pixels are determined to be uniform (YES), and the process proceeds to step S1004.

[0034] In step S1004, the process branches depending on whether the confidence of the character to be processed is equal to or greater than a predetermined threshold. If the confidence is less than the threshold (NO), the process proceeds to step S1006. If the confidence is equal to or greater than the threshold (YES), the process proceeds to step S1005. In step S1005, the conversion setting unit 320 sets the character pixels of the character to be processed to be converted to another color.

[0035] On the other hand, if the background pixels are not uniform in step S1003 (NO), or if the confidence level is less than the threshold in step S1004 (NO), the conversion setting unit 320 performs the process of step S1006. In step S1006, the conversion setting unit 320 sets the character pixels of the character to be processed to be left.

[0036] After the conversion setting of the character pixels is performed in step S1005 or S1006, the process proceeds to step S1007. In step S1007, the process branches depending on whether or not the conversion setting of the character pixels has been performed for all characters stored in the memory area in step S1001. If the conversion setting has not been performed for all characters (NO), that is, if there are characters remaining to be processed, the process returns to step S1002, and the processes of steps S1002 to S1006 described above are repeated until the conversion setting is completed for all characters. On the other hand, if the conversion setting has been performed for all characters (YES), the process proceeds to step S1008.

[0037] In step S1008, the text file conversion unit 330 converts the image into a text file based on the conversion settings of the character pixels set by the conversion setting unit 320 and the text recognized by the character recognition unit 310. The text file is stored in the storage device 240 or transmitted to another device. Then, in step S1009, the information processing device 110 ends the process of converting the image into a text file.

[0038] 4, the information processing device 110 can erase or replace with another color character pixels of characters with high confidence in character recognition and with uniform background pixel colors, improving the reusability of the background image on which text is superimposed. On the other hand, when the confidence in character recognition is low or the background pixel colors are non-uniform, the text is superimposed while leaving the character pixels of the character, making it easier for the user to recognize erroneous detection of character recognition.

[0039] Next, the above-mentioned text file conversion process of FIG. 4 will be explained using a more specific example. FIG. 5 is a diagram showing a specific example of the text file conversion process in this embodiment. FIG. 5(a) is an example of an image to be converted. In the following explanation, as shown in FIG. 5(a), an example is given of an image including the characters "sample image" being converted into a text file. Also, as shown in FIG. 5(a), the source image includes a dark background in addition to the characters.

[0040] Consider the case where the character recognition unit 310 performs character recognition processing on the source image shown in FIG. 5(a). When the character recognition unit 310 performs character recognition processing on the image in FIG. 5(a), first, as shown in FIG. 5(b), character rectangles surrounding each character are extracted. Note that the rectangular frame lines in FIG. 5(b) are drawn for the convenience of explanation and do not affect the conversion processing. In FIG. 5(b), character rectangles surrounding each of the characters "sa", "n", "pu", "ru", "ga", and "zo" are extracted. The character rectangle for "sa" has a uniform white background. The character rectangles for "pu", "ru", and "ga" have a uniform dark background. The character rectangles for "n" and "zo" have a non-uniform background color, with white background pixels and dark background pixels mixed together.

[0041] The character recognition unit 310 judges whether each pixel constituting each character rectangle extracted as shown in Fig. 5(b) is a character pixel or a background pixel, and recognizes characters based on the shape of the character pixel in the character rectangle. Note that in the embodiment described below, the source image contains the characters "sample image", but as a result of character recognition, the characters "sample surface image" are recognized (i.e., the "picture" in the source image is mistakenly recognized as "surface").

[0042] 5(c) shows the confidence level of each recognized character and the evaluation of the uniformity of the color of the background pixels. Based on the confidence level and the uniformity, the conversion setting unit 320 sets whether or not to replace the character pixels of each character with another color (see steps S1003 to S1006 in FIG. 4).

[0043] In the example shown in FIG. 5(c), the characters "sa", "n", "pu", "ru", and "zo" are evaluated as having a high degree of certainty because they are accurately recognized characters in the original image. On the other hand, the character "men" in FIG. 5(c) is evaluated as having a low degree of certainty because it is a misrecognition of the character "ga" in the original image. Note that in the example of FIG. 5(c), the degree of certainty is evaluated in two stages, "high" and "low", but this is not intended to limit the embodiment. Therefore, the degree of certainty may be evaluated in three or more stages according to its value.

[0044] In the example shown in FIG. 5(c), the characters "sa", "pu", "ru", and "men" are evaluated as having a uniform background. On the other hand, the characters "n" and "zo" in FIG. 5(c) are evaluated as having a non-uniform background. The uniformity of the background pixels can be calculated, for example, by the following calculation method. That is, the sum of the absolute values ​​of the differences in the colors of the background pixels in the rectangular region with respect to the average color of the background pixels is calculated, and the uniformity of the background pixels can be calculated by comparing the calculated value with a predetermined threshold value. However, the above-mentioned method is merely an example and does not limit the embodiment, and the uniformity of the background pixels can be calculated by various methods.

[0045] The conversion setting unit 320 sets whether or not to replace each character pixel with another color based on the confidence level determined as described above and the uniformity of the color of the background pixel. In the example shown in FIG. 5(c), the characters "sa", "pu", and "ru" are set as characters whose character pixels are replaced with another color because the confidence level is high and the color of the background pixel is uniform. The characters "n" and "zo" are set as characters whose character pixels are not replaced with another color because the color of the background pixel is non-uniform, and therefore the reusability of the back image is reduced if the color of the character pixel is replaced with another color. The character "men" is set as characters whose character pixels are not replaced with another color because the character confidence level is low and therefore the character recognition error is difficult to grasp if the color of the character pixel is replaced with another color.

[0046] Fig. 5(d) shows an example of replacing character pixels based on the settings in Fig. 5(c). That is, the character pixels of each of the characters "sa", "pu", and "ru" are replaced with the color of the background pixel of each character rectangle. The text file conversion unit 330 converts the image shown in Fig. 5(d) into a text file by using the image shown in Fig. 5(d) as a background image and superimposing text data on the background image.

[0047] 5(e) shows text data recognized by the character recognition unit 310. In the example of the embodiment to be described, the characters "sample face image" are recognized, and the characters are superimposed on the rear image as text data.

[0048] FIG. 5(f) shows an example of a text file generated by the text file conversion unit 330 of this embodiment by converting an image. That is, as shown in FIG. 5(f), the text file conversion unit 330 outputs a text file in which the text data of FIG. 5(e) is superimposed on the back image of FIG. 5(d). In the text file converted in the embodiment described, as shown in FIG. 5(f), the character pixels of the "Ga" character in the back image overlap with the character of the "M" character in the text data. Therefore, when the user reads the text file, it becomes easier to know that there was an error in the character recognition due to the unnaturalness of the characters. In addition, since the character pixels of the "Ga" character remain in the back image, the user can know the characters contained in the original image, and can re-edit the text file to correct the character recognition error.

[0049] Note that the character pixel replacement shown in Fig. 5 is just an example, and the method of replacing character pixels is not limited to the above. Other examples of character pixel replacement will be described below with reference to Fig. 6. Fig. 6 is a diagram showing various examples of replacing character pixels in this embodiment.

[0050] First, the example of Fig. 6(a) will be described. Fig. 6(a) shows an example of replacing character pixels when the background pixels are uniform in color and the certainty of character recognition is medium. Fig. 6(a) shows an example of character recognition of the image of Fig. 5(a). Here, consider the case where the characters "sa", "pu", "ru", and "ga" of the character "sample image" included in the original image are recognized with a medium certainty.

[0051] In the case of the replacement of character pixels in Fig. 5, when the confidence level of character recognition is high, the character pixels are replaced, and when the confidence level is low, the character pixels are left as they are. However, when the confidence level of character recognition is medium, it may be preferable to replace the character pixels with a color other than the color of the background pixels, rather than selectively replacing the character pixels with the color of the background pixels or leaving the character pixels as they are. For example, by replacing the character pixels with a color calculated using the following formulas (1-1) to (1-3), a back image that is both reusable and easy to grasp when misrecognition occurs can be obtained.

[0052]

number

[0053] In the above formulas (1-1) to (1-3), R, G, and B indicate the RGB values ​​of the color to replace the character pixels. Rback, Gback, and Bback in the formulas indicate the RGB values ​​of the color of the background pixel in the source image. Rchar, Gchar, and Bchar in the formulas indicate the RGB values ​​of the color of the character pixel in the source image. The above formulas (1-1) to (1-3) show an example in which the color of the background pixel and the color of the character pixel are mixed in a ratio of 3:1. By replacing character pixels with a medium degree of certainty with a color with a high proportion of background pixels, it is possible to easily differentiate them from character pixels with a low degree of certainty. The ratio at which the background pixels and character pixels are mixed can be set arbitrarily.

[0054] By replacing character pixels with a medium degree of certainty with the color calculated by the above formulas (1-1) to (1-3), an image in which the character pixels of "sa", "pu", "ru", and "ga" are replaced with colors different from the background pixels becomes the background image, as shown in FIG. 6(a). Therefore, if a character recognized with a medium degree of certainty is incorrect (for example, the character "ga" is recognized as "men"), when text data is superimposed in the conversion process of the text file, the user can easily grasp the incorrect recognition due to the overlap of the character pixels of the background image and the text data. In addition, since there is little interference between characters, the text becomes easier to see. On the other hand, for characters that are not incorrectly recognized, the characters can be easily re-edited while ensuring the reusability of the background image.

[0055] Next, the example of Fig. 6(b) will be described. Fig. 6(b) shows an example of replacing character pixels in a character rectangle where the background pixels have a non-uniform color. Fig. 6(b) shows an example of character recognition of the image of Fig. 5(a). Here, consider a case where the background pixels of the characters "n" and "image" in the character "sample image" included in the original image have non-uniform colors and are recognized with a medium or higher degree of certainty.

[0056] In the case of replacing character pixels in Fig. 5, if the color of the background pixels is uniform, the character pixels are replaced, and if the color is non-uniform, the character pixels are left as they are. In the example shown in Fig. 6(b), even if the color of the background pixels is non-uniform, if the confidence level of character recognition is relatively high, the color of the character pixels is replaced with a color that is approximately intermediate between the color of the background pixels and the color of the character pixels. For example, the character pixels are replaced with a color calculated according to the following formulas (2-1) to (2-3).

[0057]

number

[0058] R, G, B, Rback, Gback, Bback, Rchar, Gchar, and Bchar in the above formulas (2-1) to (2-3) are the same as those in formulas (1-1) to (1-3). The above formulas (2-1) to (2-3) show an example in which the color of the background pixels and the color of the character pixels are replaced with an average color.

[0059] By replacing the character pixels, whose background pixels are non-uniform in color and whose character recognition confidence is relatively high, with the color produced by the above formulas (2-1) to (2-3), the character pixels "n" and "image" are replaced with colors close to the background pixel colors, as shown in FIG. 6(b).

[0060] In addition, when the information processing device 110 of the present embodiment transmits the converted text file to another device, the conversion setting unit 320 may replace the character pixels in a form that does not erase them, taking into consideration the reusability of the text file at the transmission destination. That is, in the case of a mode in which the converted text file is transmitted to another device, the conversion setting unit 320 does not set the character pixels such as "sa", "pu", and "ru" in FIG. 5(d) to be replaced with the same color as the background pixels, but sets the replacement in a form in which the original character pixels can be recognized, as in FIG. 6(a) and (b). When transmitting a text file to another device, since the other device receiving the text file cannot know the contents of the original image, by setting the replacement of the character pixels as described above, the receiver of the text file can appropriately correct even if there is an error in character recognition.

[0061] In the embodiment described so far, the setting of whether or not to replace character pixels with another color is performed for each character. However, the above description does not particularly limit the embodiment. Therefore, in another preferred embodiment, the setting may be performed for each character string, for example. In the following, an embodiment in which the setting of whether or not to replace character pixels for each character string is performed will be described with reference to FIG. 7. FIG. 7 is a flowchart showing the process of converting an image into a text file in another embodiment. In the description of FIG. 7, the details of the process common to the process described in FIG. 4 will be omitted as appropriate.

[0062] From step S2000, information processing device 110 starts a process of converting an image into a text file. In step S2001, character recognition unit 310 recognizes characters contained in the image in the same manner as the process of step S1001 in FIG. 4. Furthermore, in step S2001, character recognition unit 310 extracts a character string consisting of a plurality of characters based on the proximity relationship of each recognized character. Note that the method of extracting the character string is not limited to the above-mentioned one, and any known method can be adopted. The extracted character string is stored in a storage area of ​​information processing device 110.

[0063] Next, in step S2002, the conversion setting unit 320 acquires a character string to be processed from the character strings stored in the storage area in step S2001.

[0064] Then, in step S2003, the process branches depending on whether the background pixels of the character string being processed are uniform. If the uniformity of the background pixel colors of each character that makes up the character string is less than a predetermined threshold, the background pixel colors are determined to be non-uniform (NO), and the process proceeds to step S2006. On the other hand, if the uniformity of the background pixels of each character that makes up the character string is equal to or greater than the predetermined threshold, the background pixels are determined to be uniform (YES), and the process proceeds to step S2004.

[0065] In step S2004, the process branches depending on whether the ratio of characters that have a higher certainty than a predetermined value (hereinafter referred to as the "high-certainty character rate") among the characters that make up the character string to be processed is equal to or greater than a predetermined threshold value. If the high-certainty character rate is smaller than the threshold value (NO), the process proceeds to step S2006. If the high-certainty character rate is equal to or greater than the threshold value (YES), the process proceeds to step S2005. In step S2005, conversion setting unit 320 sets the character pixels of each character that makes up the character string to be processed to be converted to another color.

[0066] On the other hand, if the background pixels are not uniform in step S2003 (NO), or if the high confidence character rate is smaller than the threshold in step S2004 (NO), the conversion setting unit 320 performs the process of step S2006. In step S2006, the conversion setting unit 320 sets the character pixels of each character constituting the character string to be processed to be retained.

[0067] After the character pixel conversion setting is performed in step S2005 or S2006, the process proceeds to step S2007. In step S2007, the process branches depending on whether or not the character pixel conversion setting has been performed for all the character strings stored in the memory area in step S2001. If the conversion setting has not been performed for all the character strings (NO), that is, if there are character strings remaining to be processed, the process returns to step S2002, and the processes of steps S2002 to S2006 described above are repeated until the conversion setting is completed for all the character strings. On the other hand, if the conversion setting has been performed for all the character strings (YES), the process proceeds to step S2008.

[0068] In step S2008, text file conversion unit 330 converts the image into a text file based on the conversion settings of character pixels set by conversion setting unit 320 and the text recognized by character recognition unit 310. The process of step S2008 is similar to the process of step S1008 in Fig. 4. Then, in step S1009, information processing device 110 ends the process of converting the image into a text file.

[0069] By the process shown in FIG. 7, the information processing device 110 can set whether or not to replace character pixels with another color for each character string collectively, thereby preventing a background image in which only the character pixels of one or more characters in a character string remain against a uniform background.

[0070] According to the embodiment of the present invention described above, it is possible to provide an information processing device and a program for outputting a text file with improved reusability of a back image in character recognition processing.

[0071] 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.

[0072] 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.

[0073] 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]

[0074] 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: conversion setting unit, 330: text file conversion unit, 340: file transmission unit [Prior art documents] [Patent documents]

[0075] [Patent Document 1] JP 2005-352735 A

Claims

1. An information processing device comprising a recognition means for recognizing a character in an image including a background and the character, A setting means for setting whether or not pixels in a character portion of the image are to be replaced with another color; a conversion means for converting the image into a file in which the text recognized by the recognition means is superimposed on a background image based on the setting by the setting means; Including, the setting means sets whether or not to replace the pixel with another color based on uniformity of the color of the pixel of the background. Information processing device.

2. An information processing device comprising recognition means for recognizing characters in an image including a background and the characters, A setting means for setting whether or not pixels in a character portion of the image are to be replaced with another color; a conversion means for converting the image into a file in which the text recognized by the recognition means is superimposed on a background image based on the setting by the setting means; a transmitting means for transmitting the file converted by the converting means; Including, the setting means sets whether or not to replace the color with another color based on whether or not the transmission means is in a mode for transmitting the file. Information processing device.

3. the setting means sets whether or not to replace the character with another color based on a degree of certainty of character recognition by the recognition means.

3. The information processing device according to claim 1 or 2.

4. 4. The information processing apparatus according to claim 1, wherein the setting means sets the other color based on a color of the background and a color of the character portion.

5. 5. The information processing apparatus according to claim 1, wherein the setting means sets the other color based on a degree of certainty of character recognition by the recognition means.

6. The setting means is a setting for replacing pixels of characters constituting the character string with the different color when a rate at which the character string recognized by the recognition means contains characters with a certainty level higher than a certain level is greater than a certain value; 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 that recognizes characters in an image including a background and characters, the information processing device comprising: A setting means for setting whether or not pixels in a character portion of the image are to be replaced with another color; A conversion means for converting the image into a file in which the text recognized by the recognition means is superimposed on a background image based on the setting by the setting means. Functioning as a the setting means sets whether or not to replace the pixel with another color based on uniformity of the color of the pixel of the background. program.

8. A program executed by an information processing device having a recognition means for recognizing characters in an image including a background and characters, the information processing device comprising: A setting means for setting whether or not pixels in a character portion of the image are to be replaced with another color; a conversion means for converting the image into a file in which the text recognized by the recognition means is superimposed on a background image based on the setting by the setting means; A transmission means for transmitting the file converted by the conversion means. Functioning as a the setting means sets whether or not to replace the color with another color based on whether or not the transmission means is in a mode for transmitting the file. program.

Citation Information

Patent Citations

  • Character recognizing device and character processing method

    JP2001331765A

  • Document file creation support device, document file creation support method, and program thereof

    JP2005352735A

  • Image processing apparatus and character edition method

    JP2016046763A