Information processing device and program

By controlling character pixel and font colors based on confidence levels, the device enhances readability and alerts users to misrecognitions, addressing visual interference issues in OCR technologies.

JP7559397B2Active Publication Date: 2024-10-02RICOH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing OCR technologies do not effectively address the issue of visual interference between font color and character image color, leading to difficulties in readability and misrecognition detection.

Method used

An information processing device that combines the control of character pixel color and font color based on confidence levels, using positive or negative correlations to enhance readability and highlight misrecognitions.

Benefits of technology

The solution provides an easy-to-read image that naturally alerts readers to potential misrecognitions in character recognition, improving the usability and clarity of electronic document conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559397000009
    Figure 0007559397000009
  • Figure 0007559397000010
    Figure 0007559397000010
  • Figure 0007559397000011
    Figure 0007559397000011
Patent Text Reader

Abstract

To provide an information processing apparatus and a program that, with the combination of control of the color of character pixels and control of the color of a font, can achieve easiness for a reader in seeing and naturally call the reader's attention to false recognition in character recognition.SOLUTION: An information processing apparatus converts an original image into an editable electronic document including an image and a font for the original image after character recognition, and comprises: a first determination unit that, based on a certainty factor of the character recognition, determines a first color being the color of the font in a preset first processing form; and a second determination unit that, based on the certainty factor, determines, in a preset second processing form, a second color being a color for converting the color of character pixels being pixels of a character portion recognized from the original image through the character recognition.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. [Background technology]

[0002] It would be very convenient for reuse if a printed paper document could be restored to its pre-printed digital form (document data).There is a technology that scans a printed document, performs image area separation, and then performs OCR (Optical Character Recognition) to convert the document into data in the Office Open XML document format (an example of document data) used in Microsoft Office (registered trademark), for example.

[0003] Since this conversion technology aims for the reuse described above, if characters are superimposed on an image, it is desirable to extract character pixels from the image and erase character traces on the character images, which will improve the reusability of the image itself.Alternatively, since this conversion technology superimposes a font after OCR on top of the image, it is desirable to erase character traces to prevent visual interference with the font.

[0004] As a technology for performing image processing on each character based on such OCR results, a process for switching between erasing and not erasing character traces depending on the confidence level for each character recognized by OCR, and a technology for displaying both the font and character image side by side and reducing the density of the character image depending on the confidence level have been disclosed (for example, Patent Document 1).

[0005] Furthermore, a technology has been disclosed that assumes that recognized characters with a degree of certainty below a predetermined threshold are characters that may be misrecognized, and changes the display color of the relevant characters to display them on a display means together with output characters in a different manner from other recognized characters, thereby changing the visibility of the font (for example, Patent Document 2).

[0006] Furthermore, in a receipt recognition system, a technology has been disclosed in which the color (density) of the character pixels that form the basis of the recognition process is varied depending on the confidence level, with the aim of enabling the efficient creation of edited data with simple operations in order to accurately extract the necessary data using OCR (for example, Patent Document 3). Summary of the Invention [Problem to be solved by the invention]

[0007] However, the techniques described in Patent Documents 1 and 3 have the problem that they only change the color (density) of the character pixels, without considering the legibility in combination with the font color. Also, the technique described in Patent Document 2 has the problem that they only change the visibility of the font, without considering the legibility in combination with the color of the character image.

[0008] The present invention has been made in consideration of the above, and aims to provide an information processing device and program that, by combining control of the color of character pixels and the color of font, is easy for readers to see and can naturally draw attention to misrecognition in character recognition. [Means for solving the problem]

[0009] In order to solve the above-mentioned problems and achieve the object, the present invention provides an information processing device that converts an original image into an editable electronic document including an image and a font after character recognition of the original image, the information processing device including: a first determination unit that determines a first color, which is the color of the font, by a first processing format that is set based on a confidence level of the character recognition; and a second determination unit that determines a second color, which is a color for replacing the color of character pixels, which are pixels of a part of a character recognized by the character recognition from the original image, by a second processing format that is set based on the confidence level. The first determination unit determines the first color using a set processing format as the first processing format from among a processing format based on a positive correlation in which the visibility of the font is increased as the certainty is higher and the visibility of the font is decreased as the certainty is lower, and a processing format based on a negative correlation in which the visibility of the font is increased as the certainty is lower and the visibility of the font is decreased as the certainty is higher. It is characterized by: [Effects of the Invention]

[0010] According to the present invention, by controlling the color of the character pixels and the color of the font in combination, it is possible to achieve a text that is easy for the reader to see and that naturally draws attention to misrecognition in character recognition. [Brief explanation of the drawings]

[0011] [Figure 1] FIG. 1 is a diagram illustrating an example of the overall configuration of an information processing system according to an embodiment. [Figure 2] FIG. 2 is a diagram illustrating an example of the hardware configuration of the MFP according to the embodiment. [Figure 3] FIG. 3 is a diagram illustrating an example of the configuration of functional blocks of the MFP according to the embodiment. [Figure 4] FIG. 4 is a diagram illustrating the positive correlation between font visibility and the certainty of character pixel erasure. [Figure 5] FIG. 5 is a diagram illustrating the negative correlation between font visibility and the certainty of character pixel erasure. [Figure 6] FIG. 6 is a flowchart showing an example of the flow of language processing and second certainty factor calculation processing of the MFP according to the embodiment. [Figure 7] FIG. 7 is a flowchart showing an example of the flow of font color determination processing, character pixel replacement color determination processing, and wrap processing in the MFP according to the embodiment. [Figure 8] FIG. 8 is a flowchart showing an example of the flow of language processing in the MFP according to the embodiment. [Figure 9] FIG. 9 is a flowchart showing an example of the flow of the second certainty factor calculation process of the MFP according to the embodiment. [Figure 10] FIG. 10 is a flowchart showing an example of the flow of font color determination processing in the MFP according to the embodiment. [Figure 11] FIG. 11 is a flowchart showing an example of the flow of a text pixel replacement color determination process of the MFP according to the embodiment. [Figure 12] FIG. 12 is a diagram showing an example of an original image in which red characters are written on an orange background. [Figure 13] FIG. 13 is a diagram showing an example of a binarized image. [Figure 14] FIG. 14 is a diagram for explaining the operation of performing the cutout process from a binary image. [Figure 15] FIG. 15 is a diagram showing an example of a font when confidence control for each character is not performed. [Figure 16] FIG. 16 is a diagram showing an example of a font when confidence control is performed on a character-by-character basis. [Figure 17] FIG. 17 is a diagram showing an example of replaced character pixels when confidence control for each character is not performed. [Figure 18] FIG. 18 is a diagram showing an example of replaced character pixels when confidence control is performed on a character-by-character basis. [Figure 19] FIG. 19 is a diagram showing an example of a state in which replaced character pixels are superimposed on an original image when confidence control on a character-by-character basis is not performed. [Figure 20] FIG. 20 is a diagram showing an example of a state in which replaced character pixels and fonts are superimposed on an original image when confidence control on a character-by-character basis is not performed. [Figure 21] FIG. 21 is a diagram showing an example of a state in which replaced character pixels and fonts are superimposed when confidence control is performed on the original image on a character-by-character basis. [Figure 22] FIG. 22 is a diagram showing an example of a font when confidence control for each character is not performed. [Figure 23] FIG. 23 is a diagram showing an example of a font when confidence control is performed on a character-by-character basis. [Figure 24] FIG. 24 is a diagram showing an example of replaced character pixels when confidence control for each character is not performed. [Figure 25] FIG. 25 is a diagram showing an example of replaced character pixels when confidence control is performed on a character-by-character basis. [Figure 26] FIG. 26 is a diagram showing an example of a state in which replaced character pixels and fonts are superimposed on an original image when confidence control on a character-by-character basis is not performed. [Figure 27]FIG. 27 is a diagram showing an example of a state in which replaced character pixels and fonts are superimposed when confidence control is performed on the original image on a character-by-character basis. [Figure 28] FIG. 28 is a diagram showing an example of a font when confidence control is performed for each character based on negative correlation. [Figure 29] FIG. 29 is a diagram showing an example of replaced character pixels when confidence control is performed for each character based on negative correlation. [Figure 30] FIG. 30 is a diagram showing an example of a state in which replaced character pixels and fonts are superimposed when confidence control is performed on the original image for each character based on negative correlation. [Figure 31] FIG. 31 shows an example of a state in which replaced character pixels when character-by-character confidence control is performed based on negative correlation, and a font when character-by-character confidence control is performed based on positive correlation are superimposed on an original image. [Figure 32] FIG. 32 is a diagram showing an example of an original image in which red characters are written on a white background. [Figure 33] FIG. 33 shows an example of a state in which replaced character pixels when character-by-character confidence control is performed based on negative correlation, and a font when character-by-character confidence control is performed based on positive correlation are superimposed on an original image. [Figure 34] FIG. 34 is a diagram showing an example of the processing method selection screen. [Figure 35] FIG. 35 is a diagram illustrating an example of a combination of processing based on a positive correlation and complementary color processing. [Figure 36] FIG. 36 is a diagram showing an example of the results of a combination of processes on character pixel replacement colors and font colors. DETAILED DESCRIPTION OF THE INVENTION

[0012] An information processing device and a program according to the present invention will be described in detail below with reference to the drawings. Furthermore, the present invention is not limited to the following embodiments, and the components in the following embodiments include those that would be easily conceived by a person skilled in the art, those that are substantially the same, and those that are within the scope of what is called equivalents. Furthermore, various omissions, substitutions, modifications, and combinations of the components can be made without departing from the spirit of the following embodiments.

[0013] Computer software refers to programs related to computer operation and other information used for computer processing that is equivalent to a program (hereinafter, computer software is referred to as software). Application software is a general term for software used to perform specific tasks. Meanwhile, an operating system (OS) is software that controls a computer and enables application software and other software to use computer resources. The operating system performs basic computer management and control, such as input / output control, hardware management such as memory and hard disk, and process management. Application software operates using the functions provided by the operating system. A program is a set of instructions for a computer, combined to achieve a single result. Equivalents to programs are those that are not directly directed at a computer and therefore cannot be called programs, but have properties similar to programs in that they define computer processing. For example, a data structure (the logical structure of data expressed by the interrelationships between data elements) is equivalent to a program.

[0014] In the following, an MFP (Multifunction Peripheral) will be described as an example of an information processing device, but the information processing device is not limited to this. For example, the information processing device may be a PC (Personal Computer) that performs image processing on an image read by a scanner. An MFP (Multifunction Peripheral) is a device that has multiple different functions such as a copy function, a scanner function, a printer function, and a fax function.

[0015] (Overall configuration of information processing system) 1 is a diagram showing an example of the overall configuration of an information processing system according to an embodiment, and the overall configuration of the information processing system 1 according to this embodiment will be described with reference to FIG.

[0016] 1, information processing system 1 includes an MFP 10, a PC (Personal Computer) 20, and a file server 30, which are configured to be able to transmit and receive data to and from each other via a communication network N. The communication network N is, for example, a LAN (Local Area Network), an intranet, the Internet, or a network configured as a combination of these, and may include not only a wired network but also a wireless network.

[0017] MFP 10 is a multifunction peripheral equipped with scanner unit 11 for reading documents and printer unit 12 for forming images on recording media. It is an example of an information processing device that extracts text from images read by scanner unit 11 using OCR and converts the text and the read image into editable document data (e.g., an Office Open XML document). If an ADF (Auto Document Feeder) is provided, scanner unit 11 reads documents set in the ADF. Printer unit 12 forms an image on a recording medium based on image data, etc., by receiving operation instructions from a user via operation display unit 510 or instructions from PC 20 or file server 30 via a communication network.

[0018] The PC 20 is an information processing device that transmits, for example, image data or document data stored in the file server 30 to the MFP 10 to execute image formation processing. Note that although the example shown in Fig. 1 shows one PC 20, there may be multiple PCs.

[0019] The file server 30 is a server that stores image data, document data, and the like for sharing over the communication network N.

[0020] (MFP hardware configuration) 2 is a diagram showing an example of the hardware configuration of the MFP according to the embodiment, and the hardware configuration of the MFP 10 according to the embodiment will be described with reference to FIG.

[0021] As shown in FIG. 2, the MFP 10 according to this embodiment is configured such that a controller 500, an operation display unit 510, an FCU (Facsimile Control Unit) 520, a plotter 531, and a scanner 532 are connected via a PCI (Peripheral Component Interface) bus.

[0022] The controller 500 is a device that controls the entire MFP 10 , and controls drawing, communication, and input from the operation display unit 510 .

[0023] The operation display unit 510 is, for example, a touch panel, and is a device that accepts input to the controller 500 (input function) and displays the status of the MFP10 (display function), and is directly connected to an ASIC (Application Specific Integrated Circuit) 506, which will be described later.

[0024] The FCU 520 is a device that implements a fax function, and is connected to the ASIC 506 via, for example, a PCI bus.

[0025] The plotter 531 is a device that realizes a printing function and is connected to the ASIC 506 via, for example, a PCI bus. The scanner 532 is a device that realizes a scanner function and is connected to the ASIC 506 via, for example, a PCI bus.

[0026] The controller 500 has a CPU (Central Processing Unit) 501, a system memory (MEM-P) 502, a northbridge (NB) 503, a southbridge (SB) 504a, a network I / F 504b, a USB (Universal Serial Bus) I / F 504c, a Centronics I / F 504d, an ASIC 506, a local memory (MEM-C) 507, and an auxiliary storage device 508.

[0027] The CPU 501 performs overall control of the MFP 10, and is connected to a chipset consisting of a system memory 502, a north bridge 503, and a south bridge 504a, and is connected to other devices via this chipset.

[0028] The system memory 502 is a memory used as a memory for storing programs and data, a memory for expanding programs and data, a memory for printer drawing, etc., and has a ROM (Read Only Memory) and a RAM (Random Access Memory). Of these, the ROM is a read-only memory used as a memory for storing programs and data, and the RAM is a writable and readable memory used as a memory for expanding programs and data, and a memory for printer drawing, etc.

[0029] The north bridge 503 is a bridge for connecting the CPU 501 with the system memory 502, the south bridge 504a, and the AGP (Accelerated Graphics Port) bus 505, and includes a memory controller that controls reading and writing to the system memory 502, a PCI master, and an AGP target.

[0030] The southbridge 504a is a bridge for connecting the northbridge 503 with PCI devices and peripheral devices. The southbridge 504a is connected to the northbridge 503 via a PCI bus, and the network I / F 504b, USB I / F 504c, Centronics I / F 504d, etc. are connected to the PCI bus.

[0031] The network I / F 504b is an interface that supports Ethernet (registered trademark) and is capable of communication in accordance with TCP (Transmission Control Protocol) / IP (Internet Protocol) and the like.

[0032] The USB I / F 504c is an interface for data communication with devices that comply with the USB standard, and the Centronics I / F 504d is an interface for parallel data transfer.

[0033] The AGP bus 505 is a bus interface for a graphics accelerator card proposed to speed up graphics processing. The AGP bus 505 is a bus that speeds up the graphics accelerator card by directly accessing the system memory 502 at high throughput.

[0034] The ASIC 506 is an integrated circuit (IC) for image processing applications that has hardware elements for image processing and acts as a bridge connecting the AGP bus 505, PCI bus, auxiliary storage device 508, and local memory 507. The ASIC 506 is composed of a PCI target and AGP master, an arbiter (ARB) that forms the core of the ASIC 506, a memory controller that controls the local memory 507, multiple direct memory access controllers (DMACs) that perform image data rotation and the like using hardware logic, and a PCI unit that transfers data via the PCI bus between the ASIC 506 and the plotter 531 and scanner 532. For example, the FCU 520, plotter 531, and scanner 532 are connected to the ASIC 506 via the PCI bus.

[0035] The local memory 507 is a memory used as an image buffer for copying and a code buffer.

[0036] The auxiliary storage device 508 is a storage device such as an HDD (Hard Disk Drive), SSD (Solid State Drive), SD (Secure Digital) card, or flash memory, and is a storage for storing image data, programs, font data, and forms, etc.

[0037] The program for the MFP 10 described above may be distributed by being recorded on a computer-readable recording medium (auxiliary storage device 508, etc.) as a file in an installable or executable format.

[0038] 2 is an example, and does not necessarily include all of the components, and other components may be included. Also, the CPU 501 and north bridge 503 may be integrated into an SoC (System on a Chip), for example.

[0039] (MFP functional block configuration and operation) Fig. 3 is a diagram showing an example of the configuration of functional blocks of an MFP according to an embodiment. Fig. 4 is a diagram illustrating a positive correlation between font visibility and the confidence level of character pixel erasure specifics. Fig. 5 is a diagram illustrating a negative correlation between font visibility and the confidence level of character pixel erasure specifics. The configuration and structure of functional blocks of an MFP 10 according to this embodiment will be described with reference to Figs. 3 to 5.

[0040] As shown in FIG. 3, MFP 10 includes image acquisition unit 101, binarization unit 102, cropping unit 103, character recognition unit 104, combination selection unit 105, rule processing unit 106, first confidence factor calculation unit 107, language processing unit 108, second confidence factor calculation unit 109, font color determination unit 110 (first determination unit), character pixel replacement color determination unit 111 (second determination unit), wrap processing unit 112 (an example of a superimposition unit), memory unit 120, communication unit 131, display control unit 132, input unit 133, and setting unit 134.

[0041] The image acquisition unit 101 is a functional unit that acquires, as image data, data read by the scanner 532 regarding an image of a document. Note that, if the image data read by the scanner 532 is stored in the storage unit 120, the image acquisition unit 101 may acquire the image data from the storage unit 120.

[0042] The binarization unit 102 is a functional unit that binarizes the image data (original image) acquired by the image acquisition unit 101 to obtain a binary image. Specifically, if the image data is a color image, the binarization unit 102 calculates the luminance using a well-known luminance-color difference conversion (YCbCr conversion) or the like, and generates a binary image from the original image using a well-known discriminant analysis method. Furthermore, if the image data is grayscale, the binarization unit 102 does not need to calculate the luminance, and directly generates a binary image from the original image using a discriminant analysis method. The image data (original image) acquired by the image acquisition unit 101 and the binary image binarized by the binarization unit 102 may be stored in the storage unit 120.

[0043] The cutout processing unit 103 is a functional unit that cuts out individual characters included in the binary image generated by the binarization unit 102 using their circumscribing rectangles. For example, the cutout processing unit 103 obtains a line-wise projection of the binary image, uses this projection to cut out character lines, and cuts out individual characters using a projection from each cut-out character line in a direction perpendicular to the line, or by integrating the circumscribing rectangles of connected components of black pixels. The image portion of a character cut out by the cutout processing unit 103 is referred to as a character image.

[0044] The character recognition unit 104 is a functional unit that normalizes the character image cut out by the cutout processing unit 103, extracts features, and recognizes (performs character recognition) one or more candidate characters that have a high degree of similarity or a low degree of difference (distance) by matching the features with a pattern dictionary stored in the storage unit 120. In this case, the candidate characters may be recognized by identifying them as character codes, for example.

[0045] The combination selection unit 105 is a functional unit that selects the optimal combination (path) of candidate characters determined by the character recognition unit 104 for consecutive characters.

[0046] The rule processing unit 106 is a functional unit that corrects candidate characters recognized by the character recognition unit 104 according to certain rules, such as information about the relative positions of characters within a line (e.g., "·", ",", etc. indicating delimiters, etc.), information about the size of characters (e.g., information related to the distinction between uppercase and lowercase such as "C", "c", etc.), and information about the character types (e.g., if there is a Chinese character "一" in a katakana string, it is corrected to the long vowel mark "-", etc.).

[0047] The first confidence calculation unit 107 uses the Dempster-Shafer theory with the evaluation value of the candidate characters recognized by the character recognition unit 104 (e.g., the value obtained by dividing the distance from the pattern dictionary by the total contour number, etc.), the evaluation value when the optimal combination is selected by the combination selection unit 105, and the information of the rules applied by the rule processing unit 106 as evidence, and calculates the confidence (first confidence) of the candidate characters (or the candidate characters corrected according to the rules). Here, the confidence is an index value representing how likely the recognized character is, and is represented by a numerical value in the range of 0 to 100 [%] for example. The processing content from the cutting processing by the cutting processing unit 103 to the calculation processing of the first confidence by the first confidence calculation unit 107 may be the same as the processing described in, for example, Japanese Patent Laid-Open No. 4-211883. Also, the coordinates of the upper left and lower right of the circumscribed rectangle of the character image cut out by the cutting processing unit 103, the candidate characters (character codes) recognized by the character recognition unit 104, and the first confidence calculated by the first confidence calculation unit 107 may be held in the first confidence holding unit 121 (described later) of the storage unit 120.

[0048] When the first certainty factors corresponding to all character images extracted by the extraction processing unit 103 are stored in the first certainty factor storage unit 121 of the storage unit 120, the language processing unit 108 is a processing unit that performs a well-known morphological analysis on a character string that is a series of candidate characters (character codes) stored in the first certainty factor storage unit 121 to extract a noun, compares the extracted noun with a dictionary word in a word dictionary 122 (described later) of the storage unit 120, and replaces the noun with the dictionary word that matches the extracted noun. Furthermore, a noun determined by the language processing unit 108 to correspond to a dictionary word may be stored in the second certainty factor storage unit 123 (described later) of the storage unit 120. Details of the language processing by the language processing unit 108 will be described later with reference to FIGS. 6 and 8.

[0049] Second certainty factor calculation unit 109 is a functional unit that calculates the maximum first certainty factor among the first certainty factors of each character of the noun replaced with a dictionary word by language processing unit 108 as the second certainty factor of that character. The second certainty factor calculated by second certainty factor calculation unit 109 may be held in second certainty factor holding unit 123 (described later) of storage unit 120. Details of the second certainty factor calculation process by second certainty factor calculation unit 109 will be described later with reference to FIGS. 6 and 9.

[0050] The font color determination unit 110 is a functional unit that determines a font color (first color) of a noun (font) processed by the language processing unit 108 based on a character color (original character color) calculated from pixel values ​​corresponding to characters in an image portion of the original image corresponding to the character image extracted by the extraction unit 103, based on whether font visibility is positively or negatively correlated with the confidence level. Here, the term "font" refers not only to the noun processed by the language processing unit 108 but also to each character constituting the noun. A positive correlation between font visibility and confidence level indicates a relationship in which the higher the confidence level, the higher the visibility of the font, as shown in FIG. 4(a). On the other hand, a negative correlation between font visibility and confidence level indicates a relationship in which the higher the confidence level, the lower the visibility of the font, as shown in FIG. 5(a). Details of the font color determination process by the font color determination unit 110 will be described later with reference to FIGS. 7 and 10.

[0051] The text pixel replacement color determination unit 111 is a functional unit that determines a text pixel replacement color (second color) for replacing the color of the text in the image portion of the original image corresponding to the text image, based on the original background color calculated from pixel values ​​of the image portion of the original image other than the portion corresponding to the text image extracted by the extraction unit 103, based on whether the degree of deletion of text pixels in the original image is positively or negatively correlated with the confidence level. Here, the case where the degree of deletion of text pixels in the original image is positively correlated with the confidence level indicates a relationship in which the degree of deletion of text pixels increases as the confidence level increases, as shown in FIG. 4(b). On the other hand, the case where the degree of deletion of text pixels in the original image is negatively correlated with the confidence level indicates a relationship in which the degree of deletion of text pixels in the original image decreases as the confidence level increases, as shown in FIG. 5(b). Details of the text pixel replacement color determination process by the text pixel replacement color determination unit 111 will be described later with reference to FIGS. 7 and 11.

[0052] The wrapping unit 112 is a functional unit that performs well-known file wrapping processes, such as XML wrapping, by superimposing replacement character pixels of the character pixel replacement color determined by the font color determination unit 110 and a font of the font color determined by the character pixel replacement color determination unit 111 on the original image. The file format of the document data generated by the wrapping unit 112 is, for example, the Office Open XML format. This format is composed of multiple files and folders, including files such as "document.xml" that describes the text content, "fontTable.xml" that specifies the fonts to be used, and "styles.xml" that specifies the text style. Because each file is text data in XML format, it is easier to view and edit than binary data. For example, the wrapping unit 112 generates each file that constitutes the Office Open XML format data, compresses them into a single file in ZIP format, and assigns the "docx" extension to the compressed file to generate a document file (document data) (electronic document).

[0053] Storage unit 120 is a functional unit that stores various data, programs, etc. Specifically, storage unit 120 stores, for example, image data (original image) read by scanner 532, a binary image binarized by binarization unit 102, a pattern dictionary used for recognition processing by character recognition unit 104, etc. As shown in FIG. 3 , storage unit 120 also includes first certainty factor holding unit 121, word dictionary 122, second certainty factor holding unit 123, and processing method setting information 124.

[0054] The first certainty factor holding unit 121 is a storage area that holds the top left and bottom right coordinates of the circumscribing rectangle of the character image cut out by the cutout processing unit 103, the candidate characters (character codes) recognized by the character recognition unit 104, and the first certainty factor calculated by the first certainty factor calculation unit 107. The word dictionary 122 is a dictionary containing various words used in language processing by the language processing unit 108. The second certainty factor holding unit 123 is a storage area that holds the second certainty factor calculated by the second certainty factor calculation unit 109 and nouns determined by the language processing unit 108 to correspond to words in the dictionary. The processing method setting information 124 is setting information about the processing methods for font color determination processing and character pixel replacement color determination processing that are set by the setting unit 134, which will be described later.

[0055] The storage unit 120 is realized by at least one of the system memory 502, the local memory 507, and the auxiliary storage device 508 shown in FIG.

[0056] The communication unit 131 is a functional unit that performs data communication with external devices (for example, the PC 20 and the file server 30) and is realized by the network I / F 504b and the CPU 501 shown in FIG.

[0057] The display control unit 132 is a functional unit that controls the display operation of the operation display unit 510 .

[0058] The input unit 133 is a functional unit that accepts operation inputs from the user, and is realized by the input function of the operation display unit 510 shown in FIG.

[0059] The setting unit 134 is a functional unit that sets a processing method (first processing method) for the font color determination process and a processing method (second processing method) for the character pixel replacement color determination process. Details of the setting process by the setting unit 134 will be described later with reference to FIG.

[0060] The image acquisition unit 101, binarization unit 102, cutout processing unit 103, character recognition unit 104, combination selection unit 105, rule processing unit 106, first confidence factor calculation unit 107, language processing unit 108, second confidence factor calculation unit 109, font color determination unit 110, character pixel replacement color determination unit 111, wrap processing unit 112, display control unit 132, and setting unit 134 are realized by, for example, executing a program by CPU 501 shown in Fig. 2. Note that at least one of the above-mentioned functional units may be realized by an integrated circuit such as an ASIC or an FPGA (Field-Programmable Gate Array).

[0061] Furthermore, the functions of each functional unit of MFP 10 shown in Fig. 3 are conceptually shown, and the configuration is not limited to this. For example, the multiple functional units shown as independent functional units in MFP 10 shown in Fig. 3 may be configured as a single functional unit. On the other hand, the function of one functional unit of MFP 10 shown in Fig. 3 may be divided into multiple units and configured as multiple functional units.

[0062] (Regarding the repeated processing of language processing and second confidence calculation processing) 6 is a flowchart showing an example of the flow of language processing and second certainty factor calculation processing of the MFP according to the embodiment. As shown in FIG. 6, the repetitive processing of language processing and second certainty factor calculation processing of the MFP 10 will be described.

[0063] <Step S11> The language processing unit 108 determines whether or not a character string consisting of a series of candidate characters that has not yet been subjected to language processing remains in the first confidence level holding unit 121. If a character string remains (step S11: Yes), the process proceeds to step S12, and if no character string remains (step S11: No), the repetitive process ends.

[0064] <Step S12> The language processing unit 108 inputs a character string that is a succession of candidate characters that has not yet undergone language processing from the first certainty factor holding unit 121, and performs language processing. Details of the language processing by the language processing unit 108 will be described later with reference to Fig. 8. Then, the process proceeds to step S13.

[0065] <Step S13> The second certainty factor calculation unit 109 receives the first certainty factor of each character of the noun matched with the word by the language processing unit 108 from the first certainty factor holding unit 121, and calculates the second certainty factor of each character based on the first certainty factor of each character. The second certainty factor calculation unit 109 stores the calculated second certainty factor in the second certainty factor holding unit 123. Details of the second certainty factor calculation process by the second certainty factor calculation unit 109 will be described later with reference to FIG. 9. Then, the process returns to step S11.

[0066] (Regarding the repeated processing of font color determination and character pixel replacement color determination) 7 is a flowchart showing an example of the flow of the font color determination process, the character pixel replacement color determination process, and the wrap process of the MFP according to the embodiment. As shown in FIG. 7, the repeating process of the font color determination process, the character pixel replacement color determination process, and the wrap process of the MFP 10 will be described.

[0067] <Step S21> Font color determination unit 110 determines whether or not there are any characters remaining in second certainty factor storage unit 123 that have not undergone font color determination processing and for which second certainty factor has been calculated by second certainty factor calculation unit 109. If there are any characters remaining (step S21: Yes), the process proceeds to step S22, and if there are no characters remaining (step S21: No), the repeated process ends.

[0068] <Step S22> The font color determination unit 110 inputs characters, etc. for which font color determination processing has not been performed from the second confidence level holding unit 123, and performs font color determination processing on the characters. Details of the font color determination processing by the font color determination unit 110 will be described later with reference to Fig. 10. Then, the process proceeds to step S23.

[0069] <Step S23> The text pixel replacement color determination unit 111 executes text pixel replacement color determination processing to determine the color of text in the image portion of the original image corresponding to the text image of the text for which the font color determination processing has been performed by the font color determination unit 110. Details of the text pixel replacement color determination processing performed by the text pixel replacement color determination unit 111 will be described later with reference to Fig. 11. Then, the process proceeds to step S24.

[0070] <Step S24> The wrap processing unit 112 superimposes, on the original image, replacement character pixels of the character pixel replacement color determined by the font color determination unit 110 and a font of the font color determined by the character pixel replacement color determination unit 111, and performs wrap processing such as XML wrap processing. Then, the process returns to step S21.

[0071] (Details of language processing) 8 is a flowchart showing an example of the flow of language processing in the MFP according to the embodiment. The language processing by the language processing unit 108 of the MFP 10 will be described in detail with reference to FIG.

[0072] <Step S121> When the first certainty factors corresponding to all character images cut out by the cutout processing unit 103 are stored in the first certainty factor storage unit 121 of the storage unit 120, the language processing unit 108 inputs a character string that is a succession of candidate characters (character codes) from the first certainty factor storage unit 121. Then, the language processing unit 108 performs a well-known morphological analysis on the input character string to extract nouns. Then, the process proceeds to step S122.

[0073] <Step S122> The language processing unit 108 determines whether or not there are any nouns among the extracted nouns that have not been compared with words (dictionary words) included in the word dictionary 122 of the storage unit 120. If there are any nouns that have not been compared with dictionary words (step S122: Yes), the language processing unit 108 proceeds to step S123, and if there are no nouns that have not been compared (step S122: No), the language processing unit 108 proceeds to step S129b.

[0074] <Step S123> The language processing unit 108 counts the number of characters k of the extracted noun, and resets the maximum value Smax of the sum of the first confidence levels to 0. Then, the process proceeds to step S124.

[0075] <Step S124> The language processing unit 108 determines whether the counted number of characters k is, for example, 3≦k≦5 (3 to 5 characters). If 3≦k≦5 is satisfied (step S124: Yes), the process proceeds to step S125, and if 3≦k≦5 is not satisfied (step S124: No), the process returns to step S122. Note that the range of the number of characters k of the extracted noun may be determined within a range other than 3≦k≦5.

[0076] <Step S125> The language processing unit 108 determines whether or not there are any dictionary words that have not been compared among the dictionary words included in the word dictionary 122. If there are any dictionary words that have not been compared (step S125: Yes), the language processing unit 108 proceeds to step S126, and if there are no dictionary words that have not been compared (step S125: No), the language processing unit 108 proceeds to step S129b.

[0077] <Step S126> The language processing unit 108 searches for dictionary words having the same number of characters as the number of characters k from among the dictionary words included in the word dictionary 122. Then, the process proceeds to step S127.

[0078] <Step S127> The language processing unit 108 compares the characters of the searched dictionary word with the characters of the noun having k characters, and determines whether the number of matching characters is greater than, for example, 0.6×k. If the number of matching characters is greater than 0.6×k (step S127: Yes), the process proceeds to step S128, and if the number of matching characters is 0.6×k or less (step S127: No), the process returns to step S125. Note that the coefficient 0.6 of 0.6×k used to compare with the number of matching characters is not limited to this and may be another value.

[0079] <Step S128> The language processing unit 108 calculates the sum of first confidence levels for only the characters that match the characters of the word in the dictionary, among the characters that make up the noun, and sets this sum as confidence level sum S. Then, the process proceeds to step S129.

[0080] <Step S129> The language processing unit 108 determines whether the confidence sum S is greater than the maximum value Smax. If the confidence sum S is greater than the maximum value Smax (step S129: Yes), the language processing unit 108 proceeds to step S129a, and if the confidence sum S is equal to or less than the maximum value Smax (step S129: No), the language processing unit 108 returns to step S125.

[0081] <Step S129a> The language processing unit 108 sets the confidence sum S to a new maximum value Smax, and holds the noun corresponding to the confidence sum S. Then, the process returns to step S125.

[0082] <Step S129b> The language processing unit 108 determines the dictionary word with the largest maximum value Smax (the dictionary word that matches the noun and for which the maximum value Smax = the confidence sum S) as the word that matches the noun, and replaces the character string of the noun with the dictionary word. Also, if S = 0, the language processing unit 108 determines that there is no dictionary word that matches the noun, and uses the noun as is. Then, the language processing by the language processing unit 108 ends.

[0083] (Details of the second confidence calculation process) 9 is a flowchart showing an example of the flow of second certainty factor calculation processing by the MFP according to the embodiment. Details of the second certainty factor processing by second certainty factor calculation section 109 of MFP 10 will be described with reference to FIG.

[0084] <Step S131> If the noun extracted by the language processing unit 108 matches a word in the dictionary (i.e., if the confidence sum S>0) (step S131: Yes), the process proceeds to step S132, and if it does not match (i.e., if the confidence sum S=0) (step S131: No), the process proceeds to step S133.

[0085] <Step S132> The second certainty factor calculation unit 109 calculates the maximum first certainty factor among the first certainty factors of each character of the noun replaced with a dictionary word by the language processing unit 108 as the second certainty factor of that character, and causes the second certainty factor holding unit 123 to hold that second certainty factor. Then, the second certainty factor calculation process by the second certainty factor calculation unit 109 ends.

[0086] <Step S133> If the noun extracted by the language processing unit 108 does not match (coincide) with a word in the dictionary, the second certainty factor calculation unit 109 calculates the smallest first certainty factor among the first certainty factors of the noun as the second certainty factor of each character, and stores the second certainty factor in the second certainty factor storage unit 123. Then, the second certainty factor calculation process by the second certainty factor calculation unit 109 ends.

[0087] (Details of font color determination process) 10 is a flowchart showing an example of the flow of font color determination processing by the MFP according to the embodiment. The font color determination processing by the font color determination unit 110 of the MFP 10 will be described in detail with reference to FIG.

[0088] In the example of FIG. 10, the font color determination unit 110 will explain the operation of determining a font color based on the assumption that font visibility is positively correlated with the confidence level. In other words, if there is a positive correlation, the higher the confidence level, the more important the attention is perceived to be, and the darker the font color is. Conversely, the lower the confidence level, the less important the attention is perceived to be, and the lighter the font color is. Furthermore, since the binary character image within the circumscribing rectangle cut out by the cutout processing unit 103 represents the shape of the character, the original character color (Rc, Gc, Bc) before reflecting the confidence level (e.g., second confidence level) can be obtained by calculating the average pixel value of the pixels of the original image that are located at the same position as the pixel of the character represented by the character image within the circumscribing rectangle. Here, the suffix c comes from "character." In this case, the font color (Rf, Gf, Bf) of the noun (font) processed by the language processing unit 108 is calculated and determined based on the original character color (Rc, Gc, Bc) using the following formulas (1) and (2). Here, the suffix f comes from "font."

[0089] (When confidence level C≧Th) Rf = Rc, Gf = Gc, Bf = Bc (1) (Otherwise) Rf=Rc+(255-Rc)×{(100-C) / 100}^0.5 ···(2) Gf=Gc+(255-Gc)×{(100-C) / 100}^0.5 Bf=Bc+(255-Bc)×{(100-C) / 100}^0.5

[0090] The confidence C mentioned above takes a value between 0 and 100, and the threshold value Th is, for example, 85. Although the exponent in equation (2) is set to the 0.5 power, it is not limited to this and may be set to, for example, the 1 / 3 power to the 1 / 2 power.

[0091] <Step S221> The font color determination unit 110 acquires the circumscribing rectangle (coordinate information) that is the target for determining the font color from the first confidence level holding unit 121. Then, the process proceeds to step S222.

[0092] <Step S222> The font color determination unit 110 acquires the image portion of the binary image (i.e., the character image) corresponding to the coordinates of the acquired circumscribing rectangle and the original image from the first confidence level holding unit 121. Then, the process proceeds to step S223.

[0093] <Step S223> The font color determination unit 110 calculates the average of the pixel values ​​of the pixels of the original image that are located at the same positions as the pixels of the character represented by the character image within the circumscribing rectangle, and sets this as the original character color (Rc, Gc, Bc). Then, the process proceeds to step S224.

[0094] <Step S224> The font color determination unit 110 calculates and determines the font color (Rf, Gf, Bf) using the above-mentioned formulas (1) and (2) based on the calculated original character color (Rc, Gc, Bc). Specifically, the font color determination unit 110 acquires a second confidence level corresponding to the target character image from the second confidence level storage unit 123, sets the second confidence level as confidence level C, and if the confidence level C is equal to or greater than a threshold value Th (e.g., 85), determines the font color (Rf, Gf, Bf) using the above-mentioned formula (1). On the other hand, if the confidence level C is smaller than the threshold value Th, the font color determination unit 110 calculates and determines the font color (Rf, Gf, Bf) using the above-mentioned formula (2). Then, the font color determination process by the font color determination unit 110 ends.

[0095] (Details of character pixel replacement color determination process) 11 is a flowchart showing an example of the flow of the text pixel replacement color determination process of the MFP according to the embodiment. The text pixel replacement color determination process performed by the text pixel replacement color determination unit 111 of the MFP 10 will be described in detail with reference to FIG.

[0096] In the example of FIG. 11, the text pixel replacement color determination unit 111 determines text pixel replacement colors based on the assumption that the degree of erasure of text pixels in the original image is positively correlated with the confidence level. That is, if there is a positive correlation, the higher the confidence level, the more the text pixel color in the original image is replaced with a color closer to the original background color (the more likely the text pixel is to be erased), and the lower the confidence level, the more the text pixel color in the original image is replaced with a color farther from the original background color (the more likely the text pixel is to be erased). Furthermore, the original background color (Rb, Gb, Bb), which is the basis for calculating the text pixel replacement color (Rr, Gr, Br), can be obtained by calculating the average pixel values ​​of pixels in the original image that are located in a different position from the pixels of the characters represented by the text image within the circumscribing rectangle extracted by the extraction unit 103. Here, the suffix r comes from "replace," and the suffix b comes from "background." In this case, the character pixel replacement color (Rr, Gr, Br), which is the color (pixel value) of the pixel (replacement character pixel) to replace the pixel of the character part indicated by the character image in the original image, is calculated and determined based on the original background color (Rb, Gb, Bb) using the following equations (3) and (4).

[0097] (When confidence level C≧Th) Rr = Rb, Gr = Gb, Br = Bb (3) (Otherwise) Rr=Rb+(255-Rb)×{(100-C) / 100}^0.5 ···(4) Gr=Gb+(255-Gb)×{(100-C) / 100}^0.5 Br=Bb+(255-Bb)×{(100-C) / 100}^0.5

[0098] As described above, the confidence C takes a value between 0 and 100, and the threshold value Th is, for example, 85. Note that although the exponent in equation (4) is set to the 0.5 power, it is not limited to this and may be set to, for example, the 1 / 3 power to the 1 / 2 power.

[0099] <Step S231> The text pixel replacement color determination unit 111 calculates the average pixel values ​​of pixels of the original image that are located at positions other than the pixels of the characters represented by the text image within the circumscribing rectangle obtained by the font color determination unit 110 in step S221, and determines this as the original background color (Rb, Gb, Bb) that is the basis for calculating the text pixel replacement color (Rr, Gr, Br).Then, the process proceeds to step S232.

[0100] <Step S232> The text pixel replacement color determination unit 111 calculates and determines the text pixel replacement color (Rr, Gr, Br) using the above-mentioned formulas (3) and (4) based on the calculated original background color (Rb, Gb, Bb). Specifically, the text pixel replacement color determination unit 111 sets the second confidence level acquired by the font color determination unit 110 in step S224 as confidence level C, and if the confidence level C is equal to or greater than a threshold value Th (e.g., 85), determines the text pixel replacement color (Rr, Gr, Br) using the above-mentioned formula (3). If the confidence level C is less than the threshold value Th, the text pixel replacement color determination unit 111 calculates and determines the text pixel replacement color (Rr, Gr, Br) using the above-mentioned formula (4). The text pixel replacement color determination process by the text pixel replacement color determination unit 111 then ends.

[0101] (Example of the process of extracting text from an original image) Fig. 12 is a diagram showing an example of an original image with red characters written on an orange background. Fig. 13 is a diagram showing an example of a binarized image. Fig. 14 is a diagram explaining the operation of performing a cutout process from a binary image. A specific example of the process of cutting out a character image from an original image in MFP 10 will be explained with reference to Figs. 12 to 14.

[0102] 12 is an example of an original image in which the red characters "tomato" are written on an orange background. The image acquisition unit 101 acquires, for example, the original image shown in FIG. 12 as image data read by the scanner 532.

[0103] Next, the binarization unit 102 binarizes the original image shown in Fig. 12 to obtain the binary image shown in Fig. 13. Then, the cutout processing unit 103 cuts out the individual characters "to", "ma", and "to" included in the binary image generated by the binarization unit 102 using their circumscribing rectangles, as shown in Fig. 14.

[0104] (Specific example from character recognition processing to second confidence calculation processing) The character images of "to", "ma", and "to" cut out by the circumscribing rectangles by the above-mentioned cut-out processing unit 103 are then subjected to character recognition processing by the character recognition unit 104, selection processing of the optimal combination (path) of candidate characters by the combination selection unit 105, and correction processing of the candidate characters in accordance with certain rules by the rule processing unit 106.

[0105] First, an example will be described in which the first confidence level calculation unit 107 calculates the first confidence levels of 80[%], 85[%], and 82[%] for the candidate characters "to", "ma", and "to" that have been corrected by the rule processing unit 106, respectively, as shown in Table 1 below.

[0106] [Table 1]

[0107] If the word dictionary 122 contains "tomato" as a three-character word (dictionary word), the language processing unit 108 calculates the sum of the first confidence levels for the matching characters ("247" in this case) because the matching rate between the noun "tomato" obtained by morphological analysis and the dictionary word is 3 characters / 3 characters = 100[%], which is greater than the 60[%] indicated by the above-mentioned "0.6 × k". Then, after the language processing unit 108 has finished comparing the noun with all dictionary words in the word dictionary 122, it determines the maximum value Smax and replaces the noun "tomato" with the dictionary word "tomato" that corresponds to the maximum value Smax.

[0108] Next, the second certainty calculation unit 109 calculates the maximum first certainty of each character of the noun "tomato" that has been replaced with the dictionary word "tomato" by the language processing unit 108, which is "85", as the second certainty of each character, and unifies the second certainty of each character of the noun "tomato" to 85[%], as shown in Table 2 below.

[0109] [Table 2]

[0110] In this way, the second confidence factor for each character in a noun is the same, and as a result, the font visibility and the degree of character pixel erasure in the original image are the same within the noun. In other words, the font color determination process and character pixel replacement color determination process are performed on a noun-by-noun basis. Here, the result pattern of the first confidence factor and second confidence factor for each character in Table 1 and Table 2 above will be referred to as Pattern (1).

[0111] Next, an example will be described in which the first confidence level calculation unit 107 calculates the first confidence levels of 80[%], 85[%], and 60[%] for the candidate characters "to," "ma," and "te," which have been corrected by the rule processing unit 106, respectively, as shown in Table 3 below.

[0112] [Table 3]

[0113] When the word dictionary 122 includes "tomato" as a three-character word (dictionary word), the language processing unit 108 calculates the sum of the first confidence levels for the matching characters ("225" in this case) because the matching rate between the noun "tomate" obtained by morphological analysis and the dictionary word is 2 characters / 3 characters ≈ 67[%], which is greater than the 60[%] indicated by the above-mentioned "0.6 × k". Then, after the language processing unit 108 has finished comparing the noun with all dictionary words in the word dictionary 122, if the maximum value Smax is "225", it replaces the noun "tomate" with the dictionary word "tomato" that corresponds to the maximum value Smax.

[0114] Next, the second certainty calculation unit 109 calculates the maximum first certainty of each character of the noun "tomato" that has been replaced with the dictionary word "tomato" by the language processing unit 108, which is "85", as the second certainty of each character, and unifies the second certainty of each character of the noun "tomato" to 85[%], as shown in Table 4 below.

[0115] [Table 4]

[0116] In this way, the second confidence factor for each character in a noun is the same, and as a result, the font visibility and the degree of character pixel erasure in the original image are the same within the noun. In other words, the font color determination process and character pixel replacement color determination process are performed on a noun-by-noun basis. Here, the result pattern of the first confidence factor and second confidence factor for each character in Table 3 and Table 4 above will be referred to as Pattern (2).

[0117] Next, an example will be described in which the first confidence level calculation unit 107 calculates the first confidence levels of 35[%], 85[%], and 40[%] for the candidate characters "te", "ma", and "te" that have been corrected by the rule processing unit 106, respectively, as shown in Table 5 below.

[0118] [Table 5]

[0119] When the word dictionary 122 contains "tomato" as a three-character word (dictionary word) (but does not contain "temate"), if the matching rate between the noun "temate" obtained by morphological analysis and the dictionary word is 1 character / 3 characters ≒ 33%, which is smaller than the 60% indicated by the above-mentioned "0.6 × k", and the matching rate with other dictionary words does not exceed 60%, the language processing unit 108 determines that there is no dictionary word that matches the noun "temate", and uses the noun "temate" as is without making any substitution.

[0120] Next, if the noun "temate" does not match (agree) with any word in the dictionary, the second certainty calculation unit 109 calculates the smallest first certainty of the noun "temate", "40", as the second certainty of each character in order to impose a penalty, and unifies the second certainty of each character in the noun "temate" to 40[%], as shown in Table 6 below.

[0121] [Table 6]

[0122] In this way, the second confidence factor for each character in a noun is the same, and as a result, the font visibility and the degree of erasure of character pixels in the original image are the same within the noun. In other words, the font color determination process and character pixel replacement color determination process are performed on a noun-by-noun basis. Here, the result pattern of the first confidence factor and second confidence factor for each character in Table 5 and Table 6 above will be referred to as Pattern (3).

[0123] In the above description, the font color determination process and the character pixel replacement color determination process are performed on a noun-by-noun basis by setting the second confidence level for each character of the noun to the same value. However, character-by-character processing may also be used. To perform character-by-character processing, for example, for each character of the noun and each character of the dictionary word, if the character matches, the second confidence level may be set to the first confidence level × 1.1 (maximum of 100), and if the character does not match, the second confidence level may be set to the first confidence level × 0.9. Furthermore, for each character of the noun and each character of the dictionary word, if the character matches, the second confidence level may be set to the first confidence level + 5 (maximum of 100), and if the character does not match, the second confidence level may be set to the first confidence level − 10 (minimum of 0). By calculating the second confidence level in this manner, errors are corrected while the magnitude relationship between the first confidence levels of each character within the noun is maintained in the second confidence level.

[0124] (Pattern (1): Specific example of font color determination processing and character pixel replacement color determination processing based on positive correlation) FIG. 15 is a diagram showing an example of a font when character-by-character confidence control is not performed. FIG. 16 is a diagram showing an example of a font when character-by-character confidence control is performed. FIG. 17 is a diagram showing an example of replaced character pixels when character-by-character confidence control is not performed. FIG. 18 is a diagram showing an example of replaced character pixels when character-by-character confidence control is performed. FIG. 19 is a diagram showing an example of a state in which replaced character pixels are superimposed on an original image when character-by-character confidence control is not performed. FIG. 20 is a diagram showing an example of a state in which replaced character pixels and a font are superimposed on an original image when character-by-character confidence control is not performed. FIG. 21 is a diagram showing an example of a state in which replaced character pixels and a font are superimposed on an original image when character-by-character confidence control is performed. Specific examples of font color determination processing and character pixel replacement color determination processing based on a positive correlation for pattern (1) will be described with reference to FIGS. 15 to 21.

[0125] The combination of the first certainty degree and the second certainty degree of the three characters of the noun "tomato" determined by the language processing unit 108 is assumed to be the above-mentioned pattern (1), that is, the pattern shown in Table 7 below.

[0126] [Table 7]

[0127] The font color determination unit 110 acquires the bounding rectangle (coordinate information) for which the font color is to be determined from the first confidence level holding unit 121, and acquires the image portion of the binary image (i.e., the character image) corresponding to the coordinates of the bounding rectangle, and the original image. The font color determination unit 110 then calculates the average pixel values ​​of the pixels of the original image that are located at the same positions as the pixels of the characters represented by the character image within the bounding rectangle, and determines the original character colors (Rc, Gc, Bc) for all three characters to be (250, 34, 22). Note that the original character colors (Rc, Gc, Bc) may differ for each bounding rectangle.

[0128] In this case, when the first certainty factor in Table 7 above is set to certainty factor C, the font color determination unit 110 calculates the font color (Rf, Gf, Bf) using the above equations (1) and (2) as follows:

[0129] When confidence level C=85, (Rf, Gf, Bf)=(250, 34, 22) When confidence level C=80, (Rf, Gf, Bf)=(252, 133, 126) When confidence level C=82, (Rf, Gf, Bf)=(252, 128, 121)

[0130] As described above, when the first confidence level is set to confidence level C, the calculated font colors (Rf, Gf, Bf) are different from each other, and when the font color determination unit 110 performs the font color determination process on a character-by-character basis, the font and font color are as shown in FIG. 15.

[0131] On the other hand, when the second confidence level is unified to "85" and the confidence level C is set, the calculated font colors (Rf, Gf, Bf) will be the same, and when the font color determination process is performed on a noun-by-noun basis by the font color determination unit 110, the font and font color will be unified as shown in Figure 16.

[0132] Next, the character pixel replacement color determination unit 111 calculates the average pixel values ​​of pixels of the original image that are located at a position different from the pixels of the character represented by the character image within the circumscribing rectangle acquired by the font color determination unit 110 in the above-mentioned step S221, and as a result, sets the original background color of all three circumscribing rectangles to (Rb, Gb, Bb) = (255, 230, 153).

[0133] In this case, when the first confidence level in Table 7 above is set to C, the text pixel replacement color determination unit 111 calculates the text pixel replacement color (Rr, Gr, Br) using the above equations (3) and (4), as follows:

[0134] When confidence level C=85, (Rr,Gr,Br)=(255,230,153) When confidence level C=80, (Rr,Gr,Br)=(255,241,199) When confidence level C=82, (Rr,Gr,Br)=(255,241,196)

[0135] As described above, when the first certainty factor is set to certainty factor C, the calculated character pixel replacement colors (Rr, Gr, Br) are different from each other, and when the character pixel replacement color determination unit 111 performs the character pixel replacement color determination process on a character-by-character basis, the replacement character pixels and character pixel replacement colors are as shown in FIG. 17.

[0136] On the other hand, when the second confidence level, unified to "85," is set as confidence level C, the calculated character pixel replacement colors (Rr, Gr, Br) are the same, and when the character pixel replacement color determination unit 111 performs character pixel replacement color determination processing on a noun-by-noun basis, the replacement character pixels and character pixel replacement colors are unified as shown in FIG. 18.

[0137] Next, when processing is not performed on a noun-by-noun basis (when processing is performed on a character-by-character basis), if the replacement character pixels shown in Fig. 17 are superimposed on the original image shown in Fig. 12 by the wrap processing unit 112, the result will be as shown in Fig. 19. Furthermore, if the font shown in Fig. 15 is superimposed on the image shown in Fig. 19 by the wrap processing unit 112, the result will be as shown in Fig. 20.

[0138] On the other hand, when processing is performed on a noun-by-noun basis, the wrap processing unit 112 superimposes the replacement character pixels shown in FIG. 18 on the original image shown in FIG. 12, and then superimposes the font shown in FIG. 16 on top of that, resulting in the image shown in FIG. 21.

[0139] (Pattern (3): Specific example of font color determination processing and character pixel replacement color determination processing based on positive correlation) FIG. 22 is a diagram showing an example of a font when character-by-character confidence control is not performed. FIG. 23 is a diagram showing an example of a font when character-by-character confidence control is performed. FIG. 24 is a diagram showing an example of replaced character pixels when character-by-character confidence control is not performed. FIG. 25 is a diagram showing an example of replaced character pixels when character-by-character confidence control is performed. FIG. 26 is a diagram showing an example of a state in which replaced character pixels and a font are superimposed on an original image when character-by-character confidence control is not performed. FIG. 27 is a diagram showing an example of a state in which replaced character pixels and a font are superimposed on an original image when character-by-character confidence control is performed. Specific examples of font color determination processing and character pixel replacement color determination processing based on a positive correlation for pattern (3) will be described with reference to FIGS. 22 to 27.

[0140] The combination of the first certainty degree and the second certainty degree of the three characters of the noun "temate" determined by the language processing unit 108 is assumed to be the above-mentioned pattern (3), that is, the pattern shown in Table 8 below.

[0141] [Table 8]

[0142] The font color determination unit 110 acquires the bounding rectangle (coordinate information) for which the font color is to be determined from the first confidence level holding unit 121, and acquires the image portion of the binary image (i.e., the character image) corresponding to the coordinates of the bounding rectangle, and the original image. The font color determination unit 110 then calculates the average pixel values ​​of the pixels of the original image that are located at the same positions as the pixels of the characters represented by the character image within the bounding rectangle, and determines the original character colors (Rc, Gc, Bc) for all three characters to be (250, 34, 22). Note that the original character colors (Rc, Gc, Bc) may differ for each bounding rectangle.

[0143] In this case, when the first certainty factor in Table 8 above is set to certainty factor C, the font color determination unit 110 calculates the font color (Rf, Gf, Bf) using the above equations (1) and (2) as follows:

[0144] When confidence level C=35, (Rf, Gf, Bf)=(254, 212, 210) When confidence level C=85, (Rf, Gf, Bf)=(250, 34, 22) When confidence level C=40, (Rf, Gf, Bf)=(252, 205, 202)

[0145] As described above, when the first confidence level is set to confidence level C, the calculated font colors (Rf, Gf, Bf) are different from each other, and when the font color determination process is performed on a character-by-character basis by the font color determination unit 110, the font and font color are as shown in FIG.

[0146] On the other hand, when the second confidence level is unified to "40" and the confidence level C is set, the calculated font colors (Rf, Gf, Bf) will be the same, and when the font color determination process is performed on a noun-by-noun basis by the font color determination unit 110, the font and font color will be unified as shown in Figure 23.

[0147] Next, the character pixel replacement color determination unit 111 calculates the average pixel values ​​of pixels of the original image that are located at a position different from the pixels of the character represented by the character image within the circumscribing rectangle acquired by the font color determination unit 110 in the above-mentioned step S221, and as a result, sets the original background color of all three circumscribing rectangles to (Rb, Gb, Bb) = (255, 230, 153).

[0148] In this case, when the first confidence level in Table 8 above is set to C, the text pixel replacement color determination unit 111 calculates the text pixel replacement color (Rr, Gr, Br) using the above equations (3) and (4), as follows:

[0149] When confidence level C=35, (Rr,Gr,Br)=(255,250,235) When confidence level C=85, (Rr,Gr,Br)=(255,230,153) When confidence level C=40, (Rr,Gr,Br)=(255,249,232)

[0150] As described above, when the first certainty level is set to certainty level C, the calculated character pixel replacement colors (Rr, Gr, Br) are different from one another. When the character pixel replacement color determination unit 111 performs the character pixel replacement color determination process on a character-by-character basis, the replacement character pixels and character pixel replacement colors are as shown in FIG. 24.

[0151] On the other hand, when the second confidence level is unified to "40" and the confidence level C is set, the calculated character pixel replacement colors (Rr, Gr, Br) are the same, and when the character pixel replacement color determination unit 111 performs the character pixel replacement color determination process on a noun-by-noun basis, the replacement character pixels and character pixel replacement colors are unified as shown in FIG. 25.

[0152] Next, when processing is not performed on a noun-by-noun basis (when processing is performed on a character-by-character basis), the wrap processing unit 112 superimposes the replacement character pixels shown in FIG. 24 on the original image shown in FIG. 12, and then superimposes the font shown in FIG. 22 on top of that, resulting in the result shown in FIG. 26.

[0153] On the other hand, when processing is performed on a noun-by-noun basis, the wrap processing unit 112 superimposes the replacement character pixels shown in FIG. 25 on the original image shown in FIG. 12, and then superimposes the font shown in FIG. 23 on top of that, resulting in the image shown in FIG. 27.

[0154] As described above, if font visibility is positively correlated with confidence, the higher the confidence, the more important the attention is perceived to be and the darker the font color is made to stand out, and the lower the confidence, the less important the attention is perceived to be and the lighter the font color is made to stand out.Furthermore, if the degree of erasure of character pixels in the original image is positively correlated with confidence, the higher the confidence, the more the color of the character pixels in the original image will be replaced with a color closer to the original background color (the tendency is for the degree of erasure of character pixels to be greater so that the correct character is difficult to see), and the lower the confidence, the more the color of the character pixels in the original image will be replaced with a color farther from the original background color (the tendency is for the degree of erasure of character pixels to be less so that the correct character is easy to see).

[0155] (Pattern (3): Specific example of font color determination processing and character pixel replacement color determination processing based on negative correlation) FIG. 28 is a diagram showing an example of a font when character-by-character confidence control is performed based on a negative correlation. FIG. 29 is a diagram showing an example of replaced character pixels when character-by-character confidence control is performed based on a negative correlation. FIG. 30 is a diagram showing an example of a state in which replaced character pixels and a font are superimposed on an original image when character-by-character confidence control is performed based on a negative correlation. FIG. 31 is a diagram showing an example of a state in which replaced character pixels are superimposed on an original image when character-by-character confidence control is performed based on a negative correlation, and a font is superimposed on an original image when character-by-character confidence control is performed based on a positive correlation. A specific example of the font color determination process and the character pixel replacement color determination process based on a negative correlation for pattern (3) will be described with reference to FIGS. 28 to 31. That is, the font color determination unit 110 determines the font color based on the case in which font visibility is negatively correlated with the confidence. That is, when there is a negative correlation, the higher the confidence, the less important the attention is deemed to be and the lighter the font color is, and the lower the confidence, the more important the attention is deemed to be and the darker the font color is. Furthermore, the text pixel replacement color determination unit 111 determines text pixel replacement colors based on the case where the degree of erasure of text pixels in the original image is negatively correlated with the confidence level. That is, if there is a negative correlation, the higher the confidence level, the more the text pixel color of the original image is replaced with a color farther from the original background color (the degree of erasure of text pixels tends to be low), and the lower the confidence level, the more the text pixel color of the original image is replaced with a color closer to the original background color (the degree of erasure of text pixels tends to be high).

[0156] In this case, the font color (Rf, Gf, Bf) of the noun (font) that has undergone language processing by the language processing unit 108 is calculated and determined based on the original character color (Rc, Gc, Bc) using the following equations (5) and (6).

[0157] (When confidence level C≧Th) Rf = Rc, Gf = Gc, Bf = Bc (5) (Otherwise) Rf=Rc-Rc×{(100-C) / 100}^0.5 ···(6) Gf=Gc-Gc×{(100-C) / 100}^0.5 Bf=Bc-Bc×{(100-C) / 100}^0.5

[0158] The confidence C mentioned above takes a value between 0 and 100, and the threshold value Th is, for example, 85. Although the exponent in equation (6) is set to the 0.5 power, it is not limited to this and may be set to, for example, the 1 / 3 power to the 1 / 2 power.

[0159] In this case, the character pixel replacement color (Rr, Gr, Br), which is the color (pixel value) of the pixel (replacement character pixel) to replace the pixel of the character part indicated by the character image in the original image, is calculated and determined based on the original background color (Rb, Gb, Bb) using the following equations (7) and (8).

[0160] (When confidence level C≧Th) Rr = Rb, Gr = Gb, Br = Bb (7) (Otherwise) Rr=Rb-Rb×{(100-C) / 100}^0.5 ···(8) Gr=Gb-Gb×{(100-C) / 100}^0.5 Br=Bb-Bb×{(100-C) / 100}^0.5

[0161] As described above, the confidence C takes a value between 0 and 100, and the threshold value Th is, for example, 85. Note that although the exponent in equation (8) is set to the 0.5 power, it is not limited to this and may be set to, for example, the 1 / 3 to 1 / 2 power.

[0162] The combination of the first certainty degree and the second certainty degree of the three characters of the noun "temate" determined by the language processing unit 108 is assumed to be the above-mentioned pattern (3), that is, the pattern shown in (Table 8) above.

[0163] The font color determination unit 110 acquires the bounding rectangle (coordinate information) for which the font color is to be determined from the first confidence level holding unit 121, and acquires the image portion of the binary image (i.e., the character image) corresponding to the coordinates of the bounding rectangle, and the original image. The font color determination unit 110 then calculates the average pixel values ​​of the pixels of the original image that are located at the same positions as the pixels of the characters represented by the character image within the bounding rectangle, and determines the original character colors (Rc, Gc, Bc) for all three characters to be (250, 34, 22). Note that the original character colors (Rc, Gc, Bc) may differ for each bounding rectangle.

[0164] In this case, when the font color determination unit 110 sets the second certainty factor, which is unified to "40" in Table 8 above, as certainty factor C, the font color (Rf, Gf, Bf) calculated using the above equations (5) and (6) is as follows:

[0165] When confidence level C=40, (Rf, Gf, Bf)=(250, 8, 5)

[0166] In this way, when the second confidence level is unified to "40" and the confidence level C is set, the calculated font colors (Rf, Gf, Bf) will be the same, and when the font color determination process is performed on a noun-by-noun basis by the font color determination unit 110, the font and font color will be unified as shown in Figure 28.

[0167] Next, the character pixel replacement color determination unit 111 calculates the average pixel values ​​of pixels of the original image that are located at a position different from the pixels of the character represented by the character image within the circumscribing rectangle acquired by the font color determination unit 110 in the above-mentioned step S221, and as a result, sets the original background color of all three circumscribing rectangles to (Rb, Gb, Bb) = (255, 230, 153).

[0168] In this case, when the second confidence level, which is unified to "40" in Table 8 above, is set to C, the text pixel replacement color determination unit 111 calculates the text pixel replacement colors (Rr, Gr, Br) using the above equations (7) and (8) as follows:

[0169] When confidence level C=40, (Rr,Gr,Br)=(255,52,35)

[0170] In this way, the character pixel replacement colors (Rr, Gr, Br) calculated when the second confidence level unified to "40" is set as confidence level C are the same, and the replacement character pixels and character pixel replacement colors when the character pixel replacement color determination unit 111 performs the character pixel replacement color determination process on a noun-by-noun basis are unified as shown in FIG. 29.

[0171] Next, when processing is not performed on a noun-by-noun basis (when processing is performed on a character-by-character basis), the wrap processing unit 112 superimposes the replacement character pixels shown in FIG. 24 on the original image shown in FIG. 12, and then superimposes the font shown in FIG. 22 on top of that, resulting in the result shown in FIG. 26.

[0172] Next, when processing is performed on a noun-by-noun basis, the wrap processing unit 112 superimposes the replacement character pixels shown in FIG. 29 on the original image shown in FIG. 12, and then superimposes the font shown in FIG. 28 on top of that, resulting in the image shown in FIG. 30.

[0173] As described above, if font visibility is negatively correlated with confidence, the higher the confidence, the less important the attention is deemed to be and the lighter the color, and the lower the confidence, the less important the attention is deemed to be and the darker the color. Also, if the degree of erasure of character pixels in the original image is negatively correlated with confidence, the higher the confidence, the more the color of the character pixels in the original image will be replaced with a color farther from the original background color (the degree of erasure of character pixels tends to be low), and the lower the confidence, the more the color of the character pixels in the original image will be replaced with a color closer to the original background color (the degree of erasure of character pixels tends to be high).

[0174] 30 shows the results of both the font color determination process and the character pixel replacement color determination process based on negative correlation, but since the respective processing formats can be independent of each other, the processing conditions (confidence levels of the original image and characters) may be the same, and each process may be performed by separately setting positive correlation or negative correlation. For example, if the font color determination process is based on positive correlation and the character pixel replacement color determination process is based on negative correlation, the result of superimposing replacement character pixels (shown in FIG. 29) that have been subjected to the character pixel replacement color determination process and the font (shown in FIG. 23) that has been subjected to the font color determination process on the original image (the original image shown in FIG. 12) is shown in FIG. 31.

[0175] Furthermore, for the font color determination process and the character pixel replacement color determination process, the correlation may be freely set, not only as a positive correlation or a negative correlation, but also as no correlation with respect to the confidence level, for example, a positive correlation from one confidence level to another and a negative correlation at other confidence levels, etc. This increases the variety of visual attention-grabbing features, enabling document data to be output in a convenient, natural manner that is easy for the reader to see.

[0176] (Pattern (3): A specific example of font color determination processing and character pixel replacement color determination processing corresponding to a white background original image) Fig. 32 is a diagram showing an example of an original image with red characters written on a white background. Fig. 33 is a diagram showing an example of a state in which replacement character pixels when character-by-character confidence control is performed based on negative correlation and a font when character-by-character confidence control is performed based on positive correlation are superimposed on the original image. Specific examples of font color determination processing and character pixel replacement color determination processing corresponding to pattern (3) when the original image has a white background will be described with reference to Figs. 32 and 33.

[0177] When the original background color is white, i.e., when the original background color is (Rb, Gb, Bb)=(255, 255, 255), calculating the character pixel replacement color using the above equations (3) and (4) results in a constant character pixel replacement color (Rr, Gr, Br)=(255, 255, 255) regardless of the confidence level C, which has no effect in drawing attention. In this case, the font color determination process and the character pixel replacement color determination process must be set taking into account the relationship between the original character color (Rc, Gc, Bc) and the original background color (Rb, Gb, Bb).

[0178] When the above formulas (7) and (8) are applied, if the original background color is other than white and any of R, G, or B takes the maximum value, the original character color is maintained. However, if the background is white, the replacement color will remain white if this restriction is applied. Therefore, if the character pixel replacement color determination process is performed only when the original background color is (Rb, Gb, Bb) = (255, 255, 255), the effect of drawing attention can be expected.

[0179] For example, assume that the original image is an image with the red characters "tomato" written on a white background as shown in Fig. 32. The combination of the first and second certainty factors of the three characters of the noun "temate" determined by the language processing unit 108 is the above-mentioned pattern (3), that is, the pattern shown in the above-mentioned (Table 8).

[0180] The font color determination unit 110 acquires the bounding rectangle (coordinate information) for which the font color is to be determined from the first confidence level holding unit 121, and acquires the image portion of the binary image (i.e., the character image) corresponding to the coordinates of the bounding rectangle and the original image. The font color determination unit 110 then calculates the average pixel values ​​of the pixels of the original image that are located at the same positions as the pixels of the characters represented by the character image within the bounding rectangle, and determines the original character colors (Rc, Gc, Bc) for all three characters to be (250, 34, 22).

[0181] In this case, when the font color determination unit 110 sets the second certainty factor, which is unified to "40" in Table 8 above, as certainty factor C, the font color (Rf, Gf, Bf) calculated based on the positive correlation using the above equations (1) and (2) is as follows:

[0182] When confidence level C=40, (Rf, Gf, Bf)=(254, 205, 202)

[0183] In this case, when the font color determination unit 110 performs the font color determination process based on the positive correlation for each noun, the font and font color will be unified as shown in FIG.

[0184] Next, when the second confidence level, which is unified to "40" in Table 8 above, is set to C, the text pixel replacement color determination unit 111 assumes that R, G, and B are processed in a direction that uniformly darkens them toward black (based on negative correlation), and calculates the text pixel replacement colors (Rr, Gr, Br) using the above equations (7) and (8), as follows:

[0185] When confidence level C=40, (Rr,Gr,Br)=(58,58,58)

[0186] Next, the wrap processing unit 112 superimposes the replacement character pixels whose character pixel replacement colors (Rr, Gr, Br) have been determined in the above-described character pixel replacement color determination process on the original image shown in FIG. 32, and when the font shown in FIG. 23 is further superimposed on top of that, the result is as shown in FIG. 33.

[0187] In the above-described text pixel replacement color determination process for a white original image, the text pixel replacement color is darkened toward black, but this is not limited to this. For example, if one or two components of the original background color (Rb, Gb, Bb) are kept at "255" and the others are replaced, the text pixel replacement color can be darkened with a primary or secondary color. For example, the text pixel replacement color (Rr, Gr, Br) is derived from the above-described equations (7) and (8) and is calculated and determined using the following equations (9) and (10).

[0188] (When confidence level C≧Th) Rr=255,Gr=255,Br=255 (9) (Otherwise) Rr=255-255×{(100-C) / 100}^0.5 ···(10) Gr=255-255×{(100-C) / 100}^0.5 Br=255

[0189] This allows the text pixel replacement color to be gradually darkened to blue by the text pixel replacement color determination process for the original image with a white background.

[0190] (Specific examples of font color determination processing and character pixel replacement color determination processing using the complementary colors of the original character color and the original background color) Next, an operation for more effectively calling attention by replacing the font color and character pixel replacement color with completely different colors from the original character color and original background color will be described.

[0191] For example, the font color (Rf, Gf, Bf) of a noun (font) that has undergone language processing by the language processing unit 108 is calculated and determined based on the complementary colors (Rcc, Gcc, Bcc) (first complementary colors) of the original character colors (Rc, Gc, Bc) using the following formulas (11) to (13). Here, the suffix c in the latter position comes from "complementary."

[0192] (When confidence level C≧Th) Rf=Rcc,Gf=Gcc,Bf=Bcc (11) (Otherwise: The lower the confidence C, the darker it becomes.) Rf=Rcc+255×(C / 100)^0.5 ···(12) Gf=Gcc+255×(C / 100)^0.5 Bf=Bcc+255×(C / 100)^0.5 (Otherwise: The lower the confidence level C, the thinner it becomes.) Rf=Rcc+255×{(100-C) / 100}^0.5 ···(13) Gf=Gcc+255×{(100-C) / 100}^0.5 Bf=Bcc+255×{(100-C) / 100}^0.5

[0193] The confidence factor C described above takes a value between 0 and 100, and the threshold value Th is, for example, 85. Note that although the exponents in equations (12) and (13) are set to the power of 0.5, this is not limitative and may be set to the power of 1 / 3 to 1 / 2, for example.

[0194] Similarly, the character pixel replacement colors (Rr, Gr, Br), which are the colors (pixel values) of the pixels (replacement character pixels) to replace the pixels of the character portion indicated by the character image in the original image, are calculated and determined based on the complementary colors (Rbc, Gbc, Bbc) (second complementary colors) of the original background color (Rb, Gb, Bb) using the following equations (14) to (16): Here, the suffix c in the latter position comes from "complementary."

[0195] (When confidence level C≧Th) Rr=Rbc,Gr=Gbc,Br=Bbc...(14) (Otherwise: The lower the confidence C, the darker it becomes.) Rr=Rbc+255×(C / 100)^0.5 ···(15) Gr=Gbc+255×(C / 100)^0.5 Br=Bbc+255×(C / 100)^0.5 (Otherwise: The lower the confidence level C, the thinner it becomes.) Rr=Rbc+255×{(100-C) / 100}^0.5 ···(16) Gr=Gbc+255×{(100-C) / 100}^0.5 Br=Bbc+255×{(100-C) / 100}^0.5

[0196] The confidence C mentioned above takes a value between 0 and 100, and the threshold value Th is, for example, 85. Note that although the exponents in equations (15) and (16) are set to the power of 0.5, this is not limitative and may be set to the power of 1 / 3 to 1 / 2, for example.

[0197] By executing the font color determination process and the character pixel replacement color determination process based on the complementary colors of the original character color and the original background color, it is possible to more effectively draw attention.

[0198] In the above description, the font color is determined using the complementary color of the original character color, and the character pixel replacement color is determined using the complementary color of the original background color, but this is not limited to this. For example, the font color may be determined using the complement of the original background color, and the character pixel replacement color may be determined using the complementary color of the original character color. This can increase the variety of visibility and attention-grabbing features.

[0199] (Selection of processing method for font color determination and character pixel replacement color determination) 34 is a diagram showing an example of a processing method selection screen, and the operation of selecting and setting the processing method for the font color determination process and the character pixel replacement color determination process will be described with reference to FIG.

[0200] As described above, the font color determination process and the character pixel replacement color determination process are performed using a method based on a positive correlation or negative correlation with the confidence level, the complementary color of the original character color, or the complementary color of the original background color. However, these methods may be freely selected and set. A processing method selection screen 1000 shown in Fig. 34 is a screen displayed on the operation / display unit 510 under the control of the display control unit 132, and is used to select and set the processing method for the font color determination process and the character pixel replacement color determination process. As shown in Fig. 34, the processing method selection screen 1000 includes a font color selection radio button 1001, a character pixel replacement color selection radio button 1002, an OK button 1011, and a cancel button 1012.

[0201] The font color selection radio button 1001 is a radio button for selecting which processing method the font color determination unit 110 will use for determining the font color from among processing methods based on a positive correlation with the confidence level (first confidence level or second confidence level), a negative correlation, the complementary color of the original character color, or the complementary color of the original background color.

[0202] The character pixel replacement color selection radio button 1002 is a radio button for selecting which processing method should be used for the character pixel replacement color determination process by the character pixel replacement color determination unit 111: a processing method based on a positive correlation with the confidence level (first confidence level or second confidence level), a negative correlation, the complementary color of the original character color, or the complementary color of the original background color.

[0203] The OK button 1011 is a button for confirming the settings of the processing methods selected by the font color selection radio button 1001 and the text pixel replacement color selection radio button 1002. When the OK button 1011 is pressed via the input unit 133, the setting unit 134 sets the processing method selected by the font color selection radio button 1001 for the font color determination process, and sets the processing method selected by the text pixel replacement color selection radio button 1002 for the text pixel replacement color determination process. At this time, the setting unit 134 stores information on the processing methods set for the font color setting process and the text pixel replacement color determination process in the storage unit 120. The font color determination unit 110 then executes the font color determination process based on the settings of the processing method for the font color determination process stored in the storage unit 120, and the text pixel replacement color determination unit 111 executes the text pixel replacement color determination process based on the settings of the processing method for the text pixel replacement color determination process stored in the storage unit 120.

[0204] A cancel button 1012 is a button for canceling the selection made by the font color selection radio button 1001 and the character pixel replacement color selection radio button 1002 .

[0205] In the above description, the user manually sets the processing methods for the font color determination process and the character replacement color determination process on the processing method selection screen 1000, but this is not limited to this, and the processing method may also be set automatically according to predetermined conditions.

[0206] As described above, in the MFP10 according to this embodiment, in the font color determination process and character pixel replacement color determination process, it is possible to set a processing method based on the original character color and original background color of the original image. This makes it possible to combine control (processing method) of the character pixel (replacement character pixel) color and font color to make it easy for the reader to see and to naturally draw attention to misrecognition in character recognition.

[0207] Furthermore, the MFP 10 according to this embodiment can set the processing method for the font color determination process and the character pixel replacement color determination process based on, for example, a positive correlation with the confidence level, a negative correlation, the complementary color of the original character color, or the complementary color of the original background color. This increases the variety of visual alerts, enabling document data to be output in a convenient, natural manner that is easy for the reader to see.

[0208] (Variation) The following describes an MFP 10 according to a modified example, focusing on operations that differ from those of the MFP 10 according to the above-described embodiment. In this modified example, an operation is described in which a specific confidence level is used as a turning point to switch between a processing method based on a positive correlation or negative correlation with the confidence level and a processing method based on complementary colors. Note that the hardware configuration and functional block configuration of the MFP 10 according to this modified example are the same as those of the MFP 10 according to the above-described embodiment.

[0209] Fig. 35 is a diagram illustrating an example of a combination of processing based on a positive correlation and complementary color processing. Fig. 36 is a diagram illustrating an example of the results of combining processing for character pixel replacement colors and font colors. The font color determination processing and character pixel replacement color determination processing of MFP 10 according to this modified example will be described with reference to Figs. 35 and 36.

[0210] In the above-described embodiment, the font color determination process and the character pixel replacement color determination process are described as being performed by setting one of the following processing methods: positive correlation with certainty, negative correlation, the complementary color of the original character color, or the complementary color of the original background color. In contrast, this modified example describes an operation in which a specific certainty is used as a turning point to switch between a processing method based on a positive or negative correlation with certainty and a processing method based on complementary colors for at least one of the font color determination process and the character pixel replacement color determination process. For example, a specific certainty may be used as a turning point for the font color determination process (or the character pixel replacement color determination process), and processing based on a positive or negative correlation for each character or noun at a certainty above the turning point may be performed, while processing based on a complementary color of the original character color or the original background color for each character or noun at a certainty below the turning point may be performed. This makes it easier to see the difference between the results of character recognition by OCR and the original image. Note that the switching between processing based on a positive or negative correlation and processing based on the complementary color of the original character color or the original background color may be reversed at the turning point.

[0211] In the example shown in Fig. 35, assuming that the confidence turning point is "50," the confidence threshold Th is "80," and the original character color or original background color is red, when the confidence is higher than the turning point, a process is performed that has a positive correlation, where the higher the confidence, the darker the color and the lower the confidence, the lighter the color; when the confidence is lower than the turning point, a process is performed that makes the color lighter the higher the confidence, and darker the lower the confidence, based on the complementary color of the original character color or original background color. Fig. 36 shows an example of the case where the font color determination process and the character pixel replacement color determination process are performed on the original image shown in Fig. 12 using the combination of the processes shown in Fig. 35.

[0212] The example on the left side of Figure 36 shows a case where, because the confidence level of "40" is lower than the turning point of "50," the font color determination process is performed using a processing method based on the complementary color of the original character color, and the character pixel replacement color determination process is performed using a processing method based on positive correlation. The example on the right side of Figure 36 shows a case where, because the confidence level of "40" is lower than the turning point of "50," the character pixel replacement color determination process is performed using a processing method based on the complementary color of the original background color, and the font color determination process is performed using a processing method based on positive correlation.

[0213] This further increases the variety of combinations for controlling (processing methods for) the color of character pixels (replacement character pixels) and font colors, making it easier for readers to see and naturally drawing attention to misrecognition in character recognition.

[0214] The original background color may be used as a threshold to change the turning point of the process. If the character pixel replacement color becomes lighter than the original background color at a certain confidence level, the character pixel replacement color with the confidence level before it becomes lighter may be retained. Conversely, if the character pixel replacement color becomes darker than the original background color, the character pixel replacement color with the confidence level before it becomes darker may be retained. This prevents color overlap between the original background color, font color, and character replacement color, which is expected to make the image easier to see.

[0215] Furthermore, as in this modified example, the operation of switching between processing correlated with confidence and processing based on complementary colors at a turning point may be freely set on the above-mentioned processing method selection screen 1000. In this case, it may also be possible to set the extent of the turning point, etc.

[0216] In the above-described embodiment and modified examples, nouns have been described as being extracted by morphological analysis by the language processing unit 108, but this is not limited to this, and a wide range of parts of speech may be extracted, such as adjectives, verbs, adverbs, particles, conjunctions, etc.

[0217] Furthermore, each function of the above-described embodiments and modifications can be realized by one or more processing circuits. Here, the term "processing circuit" includes a processor programmed to execute each function by software, such as a processor implemented by an electronic circuit, as well as devices designed to execute each of the above-described functions, such as an ASIC (Application Specific Integrated Circuit), a DSP (Digital Signal Processor), an FPGA (Field-Programmable Gate Array), an SoC (System on a Chip), a GPU (Graphics Processing Unit), and conventional circuit modules.

[0218] In the above-described embodiments and modifications, when at least one of the functional units of the MFP 10 is realized by executing a program, the program is provided by being pre-installed in a ROM or the like. The programs executed by the MFP 10 according to the above-described embodiments and modifications may be provided by being recorded in an installable or executable file format on a computer-readable recording medium such as a CD-ROM (Compact Disc Read Only Memory), a flexible disk (FD), a CD-R (Compact Disk-Recordable), a DVD, or an SD (Secure Digital) card. The programs executed by the MFP 10 according to the above-described embodiments and modifications may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. The programs executed by the MFP 10 according to the above-described embodiments and modifications may be provided or distributed via a network such as the Internet. The programs executed by the MFP 10 according to the above-described embodiments and modifications have a modular configuration including at least one of the functional units described above. In actual hardware, the CPU reads and executes the programs from the storage device described above, thereby loading and generating the functional units described above into a main storage device. [Explanation of symbols]

[0219] 1. Information Processing Systems 10 MFP 11 Scanner section 12 Printer section 20 PC 30 File Server 101 Image acquisition unit 102 Binarization section 103 Cutout processing unit 104 Character recognition section 105 Combination selection section 106 Rule processing section 107 First confidence calculation section 108 Language Processing Unit 109 Second confidence calculation section 110 Font color determination unit 111 Character pixel replacement color determination unit 112 Wrap processing section 120 Storage section 121 First confidence holding section 122 Word Dictionary 123 Second confidence holding section 124 Processing method setting information 131 Communications Department 132 Display control unit 133 Input section 134 Settings 500 Controller 501 CPU 502 System Memory (MEM-P) 503 Northbridge (NB) 504a Southbridge (SB) 504b Network I / F 504c USB I / F 504d Centronics I / F 505 AGP 506 ASIC 507 Local Memory (MEM-C) 508 Auxiliary storage 510 Operation display section 520 FCU 531 Plotter 532 Scanner 1000 Processing method selection screen 1001 Font color selection radio button 1002 Character pixel replacement color selection radio button 1011 OK button 1012 Cancel button N Network [Prior art documents] [Patent documents]

[0220] [Patent Document 1] Japanese Patent Application Laid-Open No. 2005-352735 [Patent Document 2] Japanese Patent Application Publication No. 10-069517 [Patent Document 3] Japanese Patent Application Laid-Open No. 2014-137605

Claims

1. 1. An information processing apparatus for converting an original image into an editable electronic document including an image and a font obtained by character recognition for the original image, comprising: a first determination unit that determines a first color, which is a color of the font, by a first processing format that is set based on a degree of certainty of the character recognition; a second determination unit that determines a second color to be used to replace a color of a character pixel that is a pixel of a character portion recognized by the character recognition from the original image by a second processing format that has been set based on the degree of certainty; Equipped with The first determination unit is an information processing device that determines the first color by using a set processing format as the first processing format, from among a processing format based on a positive correlation in which the higher the certainty is, the higher the visibility of the font, and a processing format based on a negative correlation in which the lower the certainty is, the higher the visibility of the font, and a processing format based on a negative correlation in which the lower the certainty is, the higher the visibility of the font, and a processing format based on a negative correlation in which the lower the certainty is, the higher the visibility of the font, and a processing format based on a negative correlation in which the lower the certainty is, the higher the visibility of the font, and a

2. 2. The information processing device according to claim 1, wherein the second determination unit determines the second color by using a set processing format as the second processing format from among a processing format based on a positive correlation in which the higher the certainty level, the higher the degree of erasure of the character pixel, and a processing format based on a negative correlation in which the lower ... higher the certainty level, the higher the degree of erasure of the character pixel, and a

3. An information processing device for converting an original image into an editable electronic document including the image and a font obtained by character recognition on the original image, comprising: a first determination unit that determines a first color, which is a color of the font, by a first processing format that is set based on a degree of certainty of the character recognition; a second determination unit that determines a second color to be used to replace a color of a character pixel that is a pixel of a character portion recognized by the character recognition from the original image by a second processing format that has been set based on the degree of certainty; Equipped with The first determination unit is an information processing device that determines the first color by using a set processing format from among a processing format based on a positive correlation in which the higher the certainty is, the higher the visibility of the font, and the lower the certainty is, a processing format based on a negative correlation in which the lower the certainty is, the higher the visibility of the font, and the higher the certainty is, a processing format based on a first complementary color of the color of the character pixels, or a processing format based on a second complementary color of a background color based on pixel values ​​of parts of the original image other than the character pixels.

4. 4. The information processing device according to claim 1 or 3, wherein the second determination unit determines the second color as the second processing format, from among a processing format based on a positive correlation in which the degree of erasure of the character pixel is increased as the certainty is higher and the degree of erasure of the character pixel is decreased as the certainty is lower, a processing format based on a negative correlation in which the degree of erasure of the character pixel is increased as the certainty is lower and the degree of erasure of the character pixel is decreased as the certainty is higher, a processing format based on a first complementary color of the color of the character pixel, or a processing format based on a second complementary color of a background color based on pixel values ​​of portions of the original image other than the character pixels.

5. An information processing device for converting an original image into an editable electronic document including the image and a font obtained by character recognition on the original image, comprising: a first determination unit that determines a first color, which is a color of the font, by a first processing format that is set based on a degree of certainty of the character recognition; a second determination unit that determines a second color to be used to replace a color of a character pixel that is a pixel of a character portion recognized by the character recognition from the original image by a second processing format that has been set based on the degree of certainty; Equipped with An information processing device in which, in at least one of the first color determination process by the first determination unit and the second color determination process by the second determination unit, a processing format based on a positive correlation between the confidence level and the visibility of the font or the degree of erasure of the character pixels, or a negative correlation between the confidence level and the visibility of the font or the degree of erasure of the character pixels, is switched to a processing format based on a first complementary color of the color of the character pixels, or a second complementary color of a background color based on pixel values ​​of parts of the original image other than the character pixels, using a specific confidence level as a turning point.

6. 6. The information processing apparatus according to claim 1, wherein the first processing format and the second processing format are processing formats independent of each other.

7. 7. The information processing apparatus according to claim 1, further comprising a setting unit that sets the first processing format and the second processing format in accordance with an operation on an input unit.

8. The information processing device according to any one of claims 1 to 7, further comprising a superposition unit that superimposes the character pixels of the second color determined by the second determination unit on the original image, and further superimposes the font of the first color determined by the first determination unit to generate the electronic document.

9. a computer for converting an original image into an editable electronic document including the image and a font after character recognition for the original image; a first determination step of determining a first color, which is the color of the font, by a first processing format set based on the degree of certainty of the character recognition; a second determination step of determining a second color for replacing a color of a character pixel, which is a pixel of a character portion recognized by the character recognition from the original image, by a second processing format set based on the degree of certainty; Run the command, The program in the first determination step is for determining the first color using a set processing format as the first processing format from among a processing format based on a positive correlation in which the higher the certainty is, the higher the visibility of the font is, and a processing format based on a negative correlation in which the lower the certainty is, the higher the visibility of the font is, and a processing format based on a negative correlation in which the lower the certainty is, the higher the visibility of the font is, and a processing format based on a negative correlation in which the lower the certainty is, the higher the visibility of the font is, and a

Citation Information

Patent Citations

  • Character recognition method

    JP1993182014A

  • Character recognition system

    JP1998069517A

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

    JP2005352735A

  • Electronic comic book delivery server

    JP2008152700A

  • Receipt definition data generation device and program thereof

    JP2014137605A