Nothing Special   »   [go: up one dir, main page]

WO2010140291A1 - Information processing device - Google Patents

Information processing device Download PDF

Info

Publication number
WO2010140291A1
WO2010140291A1 PCT/JP2010/002565 JP2010002565W WO2010140291A1 WO 2010140291 A1 WO2010140291 A1 WO 2010140291A1 JP 2010002565 W JP2010002565 W JP 2010002565W WO 2010140291 A1 WO2010140291 A1 WO 2010140291A1
Authority
WO
WIPO (PCT)
Prior art keywords
character
information
color
size
information processing
Prior art date
Application number
PCT/JP2010/002565
Other languages
French (fr)
Japanese (ja)
Inventor
吉坂主旬
Original Assignee
日本電気株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 日本電気株式会社 filed Critical 日本電気株式会社
Publication of WO2010140291A1 publication Critical patent/WO2010140291A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
    • G06V10/993Evaluation of the quality of the acquired pattern
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Definitions

  • the present invention relates to an information processing apparatus that estimates whether or not a viewer of an image can read characters in the image.
  • an image viewer can read a character represented by a character color region in an image including a character color region colored in a character color and a background color region colored in a background color other than the character color.
  • a character color region colored in a character color
  • a background color region colored in a background color other than the character color.
  • W3C World Wide Web Consortium
  • WCAG Web Contents Accessibility Guidelines
  • Non-patent Document 1 Non-patent Document 1
  • the reference value for the contrast ratio set so that it can be read sufficiently.
  • the visual specification differs for each viewer due to the individual characteristics or age of the viewer. Therefore, in WCAG, the reference value is changed according to the visual characteristics of the viewer.
  • Non-Patent Document 2 an information processing apparatus that estimates whether or not a viewer of an image can read characters in the image based on such rules is known (Non-Patent Document 2). Further, as one of this type of information processing apparatus, the information processing apparatuses described in Patent Document 1 and Patent Document 2 are based on the character color and the background color, and readability parameters (for example, the difference in brightness between the character color and the background color). ) Is calculated. Then, the information processing apparatus estimates whether or not the image viewer can read the characters in the image by determining whether or not the calculated readability parameter is larger than the reference value.
  • the information processing apparatus estimates whether or not the image viewer can read the characters in the image based only on the character color and the background color. Therefore, the information processing apparatus has a problem that the same estimation is performed even if the character size is different unless the combination of the character color and the background color is changed. That is, according to the information processing apparatus, there is a problem in that it is impossible to estimate with high accuracy whether or not an image viewer can read characters in the image.
  • the object of the present invention is to solve the above-mentioned problem that “the viewer of the image may not be able to estimate with high accuracy whether or not the characters in the image can be read”. It is an object of the present invention to provide an information processing apparatus capable of performing the above.
  • an information processing apparatus Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Character size information acquisition means for acquiring character size information representing Color information acquisition means for acquiring character color information representing the character color and background color information representing the background color based on the image information; Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases.
  • Readability determination information output means for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value; Is provided.
  • an information processing method includes: Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Get character size information that represents Based on the image information, obtain character color information representing the character color and background color information representing the background color, Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases.
  • the program which is the other form of this invention is: In the information processing device, Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Character size information acquisition means for acquiring character size information representing Color information acquisition means for acquiring character color information representing the character color and background color information representing the background color based on the image information; Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases.
  • Readability determination information output means for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value; It is a program for realizing.
  • the present invention is configured as described above, so that it can be estimated with high accuracy whether or not the viewer of the image can read the characters in the image.
  • FIG. 3 is a diagram showing an image binarized into white and black based on a gray gradation value of 128 for the image shown in FIG. 2.
  • FIG. 3 is a diagram showing an image binarized into white and black based on a gray gradation value 192 for the image shown in FIG. 2. It is the figure which showed the image which reversed the black-and-white image shown in FIG. 3 in black and white.
  • FIG. 5 is a diagram illustrating an image obtained by reversing the binary image illustrated in FIG. 4 in black and white.
  • FIG. 13 is a diagram showing a result of integrating the rectangular areas shown in FIGS. 9 to 12; It is the figure which showed the character background combination information containing the coordinate of a rectangular area, character color, background color, and the size of a character.
  • the information processing apparatus 1 includes a central processing unit (CPU; Central Processing Unit), a storage device (memory and hard disk drive (HDD)), not shown.
  • An input device and an output device are provided.
  • the output device has a display.
  • the output device displays an image made up of characters, graphics, and the like on the display based on the image information output from the CPU.
  • the input device has a keyboard and a mouse.
  • the information processing apparatus 1 is configured such that information based on user operations is input via a keyboard and a mouse.
  • FIG. 1 is a block diagram illustrating functions of the information processing apparatus 1 configured as described above. This function is realized by the CPU of the information processing apparatus 1 executing a predetermined program stored in the storage device.
  • the functions of the information processing apparatus 1 are a character background recognition unit (character size information acquisition unit, color information acquisition unit) 11, a contrast determination unit (part of readability determination information output unit) 12, and a determination result output unit (readability). A part of determination information output means) 13.
  • the character background recognition unit 11 receives image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color.
  • the image information may be information (image file) according to a bitmap format or a GIF format, or information (for example, HTML (HyperText Markup Language) based on an image drawn on the display. And information expressed in a language such as JavaScript (registered trademark). Moreover, the information memorize
  • VRAM Video RAM
  • the character background recognition unit 11 is a region including a character color region representing a character, and is arranged so that each side is in contact with the boundary between the character color region and the background color region. Identify a rectangular area (rectangular area).
  • the character background recognition unit 11 acquires, for each specified rectangular area, character color information representing the character color in the rectangular area and background color information representing the background color in the rectangular area. Furthermore, the character background recognition unit 11 acquires character size information representing the size of the character in the rectangular area based on the size of the rectangular area for each specified rectangular area. In this example, the character background recognition unit 11 includes the length (height) in the vertical direction (Y-axis direction) of the rectangular area and the length (width) in the horizontal direction (X-axis direction) of the rectangular area. Then, information representing the larger length is acquired as character size information.
  • the character background recognition unit 11 sets a value representing a color included in the image represented by the received image information as a first value (in this example, a value representing black) and a second value (in this example). , A value representing white) is performed. And the character background recognition part 11 specifies the area
  • the character background recognition unit 11 extracts a set of rectangular areas that satisfy a predetermined set condition from the specified rectangular areas.
  • the set condition is that any one of the rectangular areas constituting each set and at least one of the other rectangular areas constituting the set are adjacent to each other in either the vertical direction or the horizontal direction. It is a condition of being.
  • the character background recognizing unit 11 includes all of the rectangular areas constituting the set instead of the rectangular areas constituting the set, and each side includes the rectangular area. A rectangular area including any of the sides is specified.
  • the character background recognizing unit 11 uses, as character color information of the rectangular area, information representing a value obtained by averaging values representing colors in the character color area for each rectangular area in the image represented by the received image information. get. Similarly, the character background recognizing unit 11 uses, for each rectangular area in the image represented by the received image information, information representing a value obtained by averaging values representing colors in the background color area as background color information of the rectangular area. Get as.
  • the contrast determination unit 12 reads the readability parameter based on the character size information, the character color information, and the background color information acquired by the character background recognition unit 11 for each rectangular area specified by the character background recognition unit 11. To get.
  • the readability parameter has a value that increases as the viewer of the image represented by the image information received by the character background recognition unit 11 can read the characters in the image.
  • the contrast determination unit 12 calculates a contrast ratio based on the relative luminance of the character color and the relative luminance of the background color, and acquires the calculated contrast ratio as a readability parameter. To do.
  • the contrast determination unit 12 determines whether or not the acquired readability parameter is larger than a preset reference value.
  • the contrast determination unit 12 increases the character size represented by the character size information acquired by the character background recognition unit 11 as a reference value for each rectangular area specified by the character background recognition unit 11. Use a smaller value.
  • the determination result output unit 13 is information indicating a result determined by the contrast determination unit 12 for each of the rectangular areas specified by the character background recognition unit 11 (that is, whether the readability parameter is larger than a reference value). Is displayed (output) on the display.
  • the character background recognition unit 11 receives image information.
  • the character background recognition unit 11 performs the binarization process on the received image information.
  • the binarization process includes RGB values of each dot in the image represented by the image information (a value “R” representing red, a value “G” representing green, a value “B” representing blue, ) And the formula (0.299 ⁇ R + 0.587 ⁇ G + 0.114 ⁇ B), a value representing the gray gradation of the dot (pixel) is calculated.
  • a threshold value for example, 128
  • the image shown in FIG. 3 is obtained. Furthermore, not only the above-described binarization method but also the character background recognition unit 11 performs another binarization process.
  • the binarization process three images are generated by using the R, G, and B values constituting the RGB values as values representing the gray gradation. Further, in the binarization process, as in the binarization process described above, the RGB value of each dot is set to an RGB value representing black or an RGB value representing white for each image. Thereby, a binarized image is generated.
  • the character background recognition unit 11 generates a plurality of binarized images by using a plurality of values (for example, 128 and 192) as the threshold value. Thereby, the precision which detects a character from an image can be raised. For example, when the image shown in FIG. 2 is subjected to binarization processing using 192 as a threshold, the image shown in FIG. 4 is obtained.
  • a plurality of values for example, 128 and 192
  • the character background recognizing unit 11 sets the RGB value of each dot to black for each of a plurality of binarized images generated by using a plurality of threshold values.
  • it is an RGB value representing black
  • it is converted to an RGB value representing white (that is, black and white are inverted).
  • a binarized image is generated.
  • the image shown in FIG. 5 is an image obtained by reversing the image shown in FIG. 3 in black and white
  • the image shown in FIG. 6 is an image obtained by reversing the image shown in FIG. 4 in black and white.
  • the character background recognition unit 11 generates a plurality of binarized images based on the received image information.
  • the character background recognition unit 11 specifies a rectangular area for each of the generated plurality of binarized images (extracts the rectangular area).
  • the character background recognizing unit 11 performs, for each binarized image, the position (XY coordinates (X, Y) of a dot (black dot) having an RGB value representing black, where X and Y are Information (coordinate information) representing (integer) is extracted. For example, in the case of the image shown in FIG. 7, the character background recognition unit 11 extracts the coordinate information of the black dots as shown in FIG.
  • the character background recognizing unit 11 based on the extracted black dot coordinate information, the character background recognizing unit 11 identifies a black dot region adjacent in one of the vertical direction, the horizontal direction, and the diagonal direction as a character color region. .
  • the first coordinate information is (X 1 , Y 1 ) and the second coordinate information is (X 2 , Y 2 )
  • the black dot of the first coordinate information and the black dot of the second coordinate information are in the vertical direction, the horizontal direction, and the diagonal direction. Adjacent in either direction.
  • the character background recognition unit 11 identifies a rectangular area based on the identified character color area.
  • character background recognition unit 11 of the coordinates of black dots included in a character color region, and the minimum value X min of the X value (value of X-coordinate), and a maximum value X max X value The minimum value Y min of the Y value (Y coordinate value) and the maximum value Y max of the Y value are acquired as information for specifying the rectangular area. That is, the coordinates of the four vertices of the rectangular area are (X min , Y min ), (X min , Y max ), (X max , Y min ), and (X max , Y max ).
  • the character background recognition unit 11 stores the information for specifying each rectangular area and the coordinate information of the black dots included in the rectangular area in the storage device in association with each binarized image.
  • FIG. 8 shows the information for specifying each rectangular area acquired by the character background recognition unit 11 for the binarized image shown in FIG. 7 and the coordinate information of the black dots included in the rectangular area. Show.
  • the image shown in FIG. 9 shows a rectangular area extracted from the image shown in FIG.
  • the image shown in FIG. 10 shows a rectangular area extracted from the image shown in FIG.
  • the image shown in FIG. 11 shows a rectangular area extracted from the image shown in FIG.
  • the image shown in FIG. 12 shows a rectangular area extracted from the image shown in FIG.
  • the character background recognition unit 11 calculates the width and height of the specified rectangular area. Specifically, the character background recognition unit 11 determines the magnitude of the difference between the minimum X value X min and the maximum X value X max of the coordinates of the vertices of the rectangular area. Calculate as width. Similarly, the character background recognition unit 11 determines the difference between the minimum Y value Y min and the maximum Y value Y max among the coordinates of the vertices of the rectangular area. Calculate as
  • the character background recognition unit 11 deletes information for specifying a rectangular area having a calculated width or height larger than 100 dots (pixels) from the storage device. Similarly, the character background recognition unit 11 erases information for specifying a rectangular area having a calculated width or height of 3 dots or less from the storage device.
  • the character background recognition unit 11 integrates the rectangular areas into one rectangular area. Specifically, the character background recognition unit 11 extracts a set of rectangular areas that satisfy a predetermined set condition from the specified rectangular areas.
  • the set condition is that any one of the rectangular areas constituting each set and at least one of the other rectangular areas constituting the set are adjacent to each other in either the vertical direction or the horizontal direction. It is a condition of being.
  • the character background recognizing unit 11 includes all of the rectangular areas constituting the set instead of the rectangular areas constituting the set, and each side has the rectangular area. A rectangular area including any of the sides is specified.
  • the character background recognizing unit 11 has the minimum value X min of the X value, the maximum value X max of the X value, and the minimum value Y min of the Y value among the coordinates of the vertices of each rectangular area constituting the set. And the maximum value Y max of the Y values are acquired as the coordinates of the new rectangular area. At this time, the character background recognizing unit 11 acquires all the coordinate information of the black dots included in each rectangular area constituting the set as the coordinate information of the black dots included in the new rectangular area.
  • the character background recognition unit 11 erases information for specifying each rectangular area constituting the set from the storage device and stores information for specifying a new rectangular area in the storage device.
  • the character background recognition unit 11 integrates the rectangular areas specified for each binarized image. Specifically, the character background recognition unit 11 extracts a set of rectangular areas that satisfy a predetermined set condition from the rectangular areas specified for an arbitrary binary image.
  • the set condition includes a portion where any one of the rectangular areas constituting each set and at least one of the other rectangular areas constituting the set overlap each other (including a common area). This is the condition.
  • the rectangular areas constituting each set are rectangular areas specified for different binary images.
  • the character background recognizing unit 11 includes all of the rectangular areas constituting the set instead of the rectangular areas constituting the set, and each side has the rectangular area. A rectangular area including any of the sides is specified.
  • the character background recognizing unit 11 has the minimum value X min of the X value, the maximum value X max of the X value, and the minimum value Y min of the Y value among the coordinates of the vertices of each rectangular area constituting the set. And the maximum value Y max of the Y values are acquired as the coordinates of the new rectangular area.
  • the character background recognition unit 11 acquires all the coordinate information of the black dots included in each rectangular area constituting the above set, and newly sets the coordinate information from which the overlapping coordinate information of the acquired coordinate information is deleted. Obtained as coordinate information of black dots included in a rectangular area.
  • the character background recognition unit 11 erases information for specifying each rectangular area constituting the set from the storage device and stores information for specifying a new rectangular area in the storage device.
  • the character background recognition unit 11 identifies a rectangular area as shown in FIG. 13 based on the image shown in FIG.
  • the character background recognition unit 11 calculates the RGB value of the image represented by the received image information at the coordinates of the black dots included in the rectangular area. Is obtained as character color information representing the character color (color information acquisition step).
  • the character background recognizing unit 11 calculates the RGB value of the image represented by the received image information at the coordinates of the white dots included in the rectangular area. Is obtained as background color information representing the background color (color information obtaining step).
  • the character background recognition unit 11 calculates the width and height of the rectangular area for each specified rectangular area. Specifically, the character background recognition unit 11 determines the magnitude of the difference between the minimum X value X min and the maximum X value X max of the coordinates of the vertices of the rectangular area. Calculate as width. Similarly, the character background recognition unit 11 determines the difference between the minimum Y value Y min and the maximum Y value Y max among the coordinates of the vertices of the rectangular area. Calculate as
  • the character background recognition unit 11 sets, for each of the specified rectangular areas, the larger value of the calculated width and height as a character representing the size of the character included in the rectangular area. Obtained as size information (character size information obtaining step).
  • the character background recognition unit 11 associates information (vertex coordinate information) for identifying a rectangular area, the acquired character color information and background color information, and the acquired character size information.
  • the background combination information is output to the contrast determination unit 12.
  • FIG. 14 is a diagram showing an example of character background combination information.
  • the character background recognition unit 11 may be configured to acquire the character background combination information using another method within a range in which similar character background combination information can be output.
  • the contrast determination unit 12 receives the character background combination information output by the character background recognition unit 11. Then, the contrast determination unit 12 calculates the relative luminance L of the character color based on the character color information and the following equation (1) for each rectangular area included in the received character background combination information. Similarly, the contrast determination unit 12 calculates the relative luminance L of the background color for each rectangular area based on the background color information and the following equation (1).
  • the contrast determination unit 12 calculates the contrast ratio based on the calculated relative luminance L of the character color, the calculated relative luminance L of the background color, and the following equation (2) for each rectangular area.
  • R is calculated (readability determination information output step).
  • R (L 1 +0.05) / (L 2 +0.05) (2)
  • the value L 1 is the larger value of the calculated relative luminance L of the character color and the calculated relative luminance L of the background color
  • the value L 2 is the calculated character color. It is the smaller value of the relative luminance L and the calculated relative luminance L of the background color.
  • the contrast determination unit 12 determines whether or not the calculated contrast ratio R is greater than a preset reference value.
  • the contrast determination unit 12 uses the first value (4.5 in this example) as the reference value, and the character size information
  • the second value (3 in this example) smaller than the first value is used as the reference value.
  • the contrast determination unit 12 may use 7 as the first value and 4.5 as the second value.
  • the contrast determination unit 12 increases the character size represented by the character size information acquired by the character background recognition unit 11 as a reference value for each of the rectangular areas specified by the character background recognition unit 11. A smaller value is used.
  • the contrast determination unit 12 adds the information indicating the determination result (that is, information indicating whether the contrast ratio R is larger than the reference value, the determination result) to the received character background combination information.
  • the determination result information is output to the determination result output unit 13.
  • FIG. 15 is a diagram illustrating an example of contrast determination result information. “True” represents that the contrast ratio R is larger than the reference value, and “false” represents that the contrast ratio R is smaller than the reference value.
  • the determination result output unit 13 receives the contrast determination result information output by the contrast determination unit 12. And the determination result output part 13 displays the received contrast determination result information (readability determination information) on a display (readability determination information output process).
  • the information processing apparatus 1 provides the readability determination information based on the character size in addition to the character color and the background color. Output. That is, the information processing apparatus 1 estimates whether or not the image viewer can read the characters in the image based on the character color, the background color, and the character size. As a result, according to the information processing apparatus 1, it is possible to estimate with high accuracy whether or not the viewer of the image can read the characters in the image.
  • the information processing apparatus 1 determines that the larger the character size, the smaller the contrast ratio (readability parameter), the smaller the reference value. That is, according to the information processing apparatus 1, it is possible to estimate with high accuracy whether or not a viewer of an image can read characters in the image.
  • the information processing apparatus 1 uses “ ⁇ ” instead of “true” and “x” instead of “false” as information indicating whether or not the contrast ratio R is larger than the reference value. Also good. Further, the information processing apparatus 1 may be configured to calculate the ratio of the number of rectangular areas determined that the contrast ratio R is larger than the reference value with respect to the total number of rectangular areas, and to output the calculated ratio. Good.
  • the determination result output unit 13 associates the identified rectangular area with information indicating whether the contrast ratio R calculated for the rectangular area is larger than the reference value, and recognizes the character background. It may be configured to display together with the image represented by the image information received by the unit 11.
  • the determination result output unit 13 draws a rectangle representing a rectangular area based on the contrast determination result information output by the contrast determination unit 12. Further, based on the contrast determination result information, the determination result output unit 13 draws the information indicating whether or not the contrast ratio R is larger than the reference value (in this example, “ ⁇ ” or “ ⁇ ”). Draw near the rectangle. For example, when the image information representing the image shown in FIG. 2 is received by the character background recognition unit 11, the determination result output unit 13 displays the image shown in FIG. 16 on the display.
  • the user of the information processing apparatus 1 can easily recognize, for each character in the image, whether or not it is highly likely that the viewer of the image can read the character. That is, the convenience of the user of the information processing apparatus 1 can be improved.
  • the determination result output unit 13 uses information such as an arrow or a bracket and / or changes color to indicate whether the contrast ratio R is greater than a reference value, and the information. It may be configured to show the relationship with the rectangular area that is the target of the above. Furthermore, the determination result output unit 13 may use symbols or characters other than “ ⁇ ” and “x” as information indicating whether or not the contrast ratio R is larger than the reference value. Further, the determination result output unit 13 is configured to indicate whether or not the contrast ratio R is larger than the reference value by the color of the rectangular line representing the rectangular area, the type of the line, and / or the thickness of the line. May be.
  • the information processing apparatus according to the second embodiment includes a plurality of information processing apparatuses arranged in a straight line along a predetermined alignment direction (vertical direction or horizontal direction) with respect to the information processing apparatus according to the first embodiment.
  • the difference is that readability determination information is output for each region including characters (characters constituting a row or a column). Accordingly, the following description will focus on such differences.
  • the character background recognition unit 11 of the information processing apparatus 1 according to the second embodiment specifies a rectangular area by the same processing as the character background recognition unit 11 according to the first embodiment.
  • the character background recognition unit 11 specifies a rectangular area as shown in FIG. 18 based on the image shown in FIG.
  • the character background recognition unit 11 generates a square rectangular area for each of the specified rectangular areas.
  • the square rectangular area is a square area having a value obtained by dividing the sum of the height of the rectangular area and the width of the rectangular area by 2 as the length of one side and centering on the same position as the center of the rectangular area.
  • the character background recognition unit 11 generates a square rectangular area as shown in FIG. 19 based on the rectangular area shown in FIG.
  • the character background recognition unit 11 extracts a set of square rectangular areas that satisfy a predetermined set condition from the plurality of generated square rectangular areas.
  • the set conditions include the following first condition to fourth condition for any one of the square rectangular areas constituting each set and at least one of the other square rectangular areas constituting the set. It is a condition that either of the above is true.
  • the first condition is that one square rectangular area and the other square rectangular area have portions that overlap each other (including a common area).
  • the second condition is a condition that one square rectangular area includes the whole of the other square rectangular area.
  • the third condition is that one side of one square rectangular area is adjacent to at least a part of one side of the other square rectangular area.
  • the fourth condition is that the distance in the alignment direction between the two square rectangular areas is equal to or less than a predetermined threshold distance, and at least part of the range of the two square rectangular areas in the direction orthogonal to the alignment direction is common. It is a condition of being.
  • the threshold distance is a value obtained by multiplying a value obtained by averaging the lengths of the sides of both square rectangular areas by a preset value (in this example, 1 ⁇ 4).
  • the character background recognizing unit 11 replaces each square rectangular area constituting the set with all the rectangular areas that are the basis of the square rectangular areas constituting the set. And a rectangular area in which each side includes any one of the rectangular areas.
  • the character background recognition unit 11 specifies the rectangular area shown in FIG. 20 based on the square rectangular area shown in FIG.
  • FIG. 21 is an explanatory diagram conceptually showing a rectangular area constituting the set and a newly specified rectangular area.
  • the character background recognizing unit 11 determines the minimum X value X min and the maximum X value X max of the coordinates of the vertices of the rectangular area that is the basis of each square rectangular area constituting the set. , Y value minimum value Y min and Y value maximum value Y max are acquired as coordinates of a new rectangular area. At this time, the character background recognition unit 11 acquires all of the black dots included in the rectangular area that is the basis of each square rectangular area constituting the set, and deletes the overlapping coordinate information from the acquired coordinate information. The obtained coordinate information is acquired as the coordinate information of the black dots included in the new rectangular area.
  • the character background recognition unit 11 deletes information for specifying the rectangular area that is the basis of each square rectangular area constituting the set from the storage device, and also specifies information for specifying a new rectangular area. Store in a storage device.
  • the character background recognition unit 11 identifies a character-containing region including a plurality of character color regions representing a plurality of characters arranged in a straight line along the alignment direction as a rectangular area.
  • the character-containing region has a predetermined distance in the alignment direction between an arbitrary character color region included in the character-containing region and any other character color region included in the character-containing region. It is set to be equal to or less than the threshold distance. That is, when an area in which a row or a column is constituted by a plurality of characters exists in the image, a rectangular area including a plurality of characters constituting the row or column is generated.
  • the rectangular area specified by the character background recognition unit 11 is an area that includes all of the character color areas that represent a plurality of characters arranged in a straight line along the alignment direction, and each side has their side. This is a rectangular area arranged so as to be in contact with the boundary between the character color area and the background color area.
  • the character background recognition unit 11 calculates the width and height of the rectangular area for each specified rectangular area.
  • the character background recognizing unit 11 determines, for each of the specified rectangular areas, the length of the rectangular area in the direction perpendicular to the alignment direction with respect to the rectangular area out of the calculated width and height (that is, If the alignment direction is the horizontal direction, the height of the rectangular area, and if the alignment direction is the vertical direction, the width of the rectangular area), the character size that represents the size of the characters included in the rectangular area Obtain as information.
  • the character background recognition unit 11 acquires, as character size information, representative character size information representing a representative value representing the size of a plurality of characters included in the specified rectangular area. Can be said. Further, it can be said that the character background recognizing unit 11 uses the size of the character having the maximum size among the plurality of characters as the representative value.
  • the contrast determination unit 12 calculates the contrast ratio R for each of the rectangular areas specified as the character-containing areas, as in the first embodiment, and the calculated contrast ratio R is larger than the reference value. It is determined whether or not.
  • the contrast determination unit 12 outputs contrast determination result information including information indicating the determination result to the determination result output unit 13.
  • the determination result output unit 13 displays the contrast determination result information output by the contrast determination unit 12 on the display.
  • the same operations and effects as those of the first embodiment can be achieved.
  • the sizes of the plurality of characters are different from each other (for example, the plurality of characters are “ka” or “Ao”).
  • the size of a plurality of characters can be handled as the same size (the same font size).
  • the determination result output unit 13 associates the identified rectangular area with information indicating whether the contrast ratio R calculated for the rectangular area is larger than the reference value, and recognizes the character background. It may be configured to display together with the image represented by the image information received by the unit 11.
  • the determination result output unit 13 draws a rectangle representing a rectangular area based on the contrast determination result information output by the contrast determination unit 12. Further, based on the contrast determination result information, the determination result output unit 13 draws the information indicating whether or not the contrast ratio R is larger than the reference value (in this example, “ ⁇ ” or “ ⁇ ”). Draw near the rectangle. For example, when the image information representing the image shown in FIG. 2 is received by the character background recognition unit 11, the determination result output unit 13 displays the image shown in FIG. 22 on the display.
  • the user of the information processing apparatus 1 can easily recognize, for each character in the image, whether or not it is highly likely that the viewer of the image can read the character. That is, the convenience of the user of the information processing apparatus 1 can be improved.
  • the information processing apparatus according to the third embodiment has the smallest size among a plurality of characters arranged in a straight line along the alignment direction with respect to the information processing apparatus according to the second embodiment.
  • the difference is that character size information representing the size of the character is acquired. Accordingly, the following description will focus on such differences.
  • the character background recognition unit 11 of the information processing apparatus 1 according to the third embodiment specifies a rectangular area by the same process as the character background recognition unit 11 according to the second embodiment.
  • the character background recognition unit 11 specifies a rectangular area as shown in FIG. 18 based on the image shown in FIG.
  • the character background recognition part 11 produces
  • the character background recognition unit 11 generates a square rectangular area as shown in FIG. 19 based on the rectangular area shown in FIG.
  • the character background recognition unit 11 extracts a set of square rectangular areas that satisfy a predetermined set condition from the plurality of generated square rectangular areas.
  • the character background recognizing unit 11 replaces each square rectangular area that constitutes the set with one rectangular area that is the basis of the square rectangular area that constitutes the set. Identify the rectangular area that contains the part. For example, the character background recognition unit 11 identifies the rectangular area shown in FIG. 23 based on the square rectangular area shown in FIG. FIG. 24 is an explanatory diagram conceptually showing a rectangular area constituting the set and a newly specified rectangular area.
  • the character background recognizing unit 11 determines the minimum X value X min and the maximum X value X max of the coordinates of the vertices of the rectangular area that is the basis of each square rectangular area constituting the set. , Y value minimum value Y min and Y value maximum value Y max are acquired. Then, the character background recognizing unit 11 calculates the difference (that is, the width of the virtual rectangular area) between the minimum value X min of the acquired X value and the maximum value X max of the acquired X value. Further, the character background recognizing unit 11 calculates a difference (that is, the height of the virtual rectangular area) between the minimum value Y min of the acquired Y value and the maximum value Y max of the acquired Y value.
  • the character background recognizing unit 11 When the calculated height of the virtual rectangular area is smaller than the calculated width of the virtual rectangular area (that is, the characters in the virtual rectangular area are arranged in the horizontal direction), the character background recognizing unit 11 The minimum value Y min of the Y value and the maximum value Y max of the Y value among the coordinates of the vertices of the rectangular area having the minimum height among the rectangular areas that form the square rectangular areas constituting The minimum X value X min and the maximum X value X max of the coordinates of the vertices of all the rectangular areas that are the basis of each square rectangular area constituting the set are acquired as the coordinates of the new rectangular area. To do.
  • each square constituting the above set the maximum value X max of the minimum value X min and X values of X values of the vertexes of the rectangle area coordinates with a minimum width of the rectangular area is the basis of the rectangular area, each square constituting the set The minimum Y value Y min and the maximum Y value Y max of the coordinates of the vertices of all the rectangular areas that are the basis of the rectangular area are acquired as the coordinates of the new rectangular area.
  • the character background recognition unit 11 represents the length of the character having the minimum length in the direction orthogonal to the alignment direction among the plurality of characters arranged in a straight line along the alignment direction. Information is acquired as character size information.
  • the character background recognition unit 11 acquires coordinate information of the black dots included in the new rectangular area among the black dots included in the rectangular area that is the basis of each square rectangular area constituting the set.
  • the coordinate information obtained by deleting the overlapping coordinate information in the acquired coordinate information is acquired as the coordinate information of the black dots included in the new rectangular area.
  • the character background recognition unit 11 deletes information for specifying the rectangular area that is the basis of each square rectangular area constituting the set from the storage device, and also specifies information for specifying a new rectangular area. Store in a storage device.
  • the character background recognition unit 11 calculates the width and height of the rectangular area for each specified rectangular area.
  • the character background recognizing unit 11 determines, for each of the specified rectangular areas, the length of the rectangular area in the direction perpendicular to the alignment direction with respect to the rectangular area out of the calculated width and height (that is, If the alignment direction is the horizontal direction, the height of the rectangular area, and if the alignment direction is the vertical direction, the width of the rectangular area), the character size that represents the size of the characters included in the rectangular area Obtain as information.
  • the character background recognition unit 11 acquires, as character size information, representative character size information representing a representative value representing the size of a plurality of characters included in the specified rectangular area. Can be said. Furthermore, it can be said that the character background recognition unit 11 uses the size of the character having the smallest size among the plurality of characters as the representative value.
  • the contrast determination unit 12 calculates the contrast ratio R for each of the rectangular areas specified as the character-containing areas, as in the first embodiment, and the calculated contrast ratio R is larger than the reference value. It is determined whether or not.
  • the contrast determination unit 12 outputs contrast determination result information including information indicating the determination result to the determination result output unit 13.
  • the determination result output unit 13 displays the contrast determination result information output by the contrast determination unit 12 on the display.
  • the information processing apparatus according to the fourth embodiment has a plurality of character color information representing an arbitrary character color and background color information representing an arbitrary background color with respect to the information processing apparatus according to the first embodiment.
  • the difference is that information indicating whether the contrast ratio R is larger than the reference value is output for each combination. Accordingly, the following description will focus on such differences.
  • the contrast determination unit 12 includes a plurality of combinations of character color information representing an arbitrary character color and background color information representing an arbitrary background color (in this example, each of the character color and the background color).
  • the contrast ratio R is calculated for a combination of 32 values of RGB values changed by 32).
  • the contrast determination unit 12 calculates the above for each rectangular area specified by the character background recognition unit 11 from the reference value determined according to the character size information acquired for the rectangular area. It is determined whether the contrast ratio R is large.
  • the determination result output unit 13 causes the display to display information indicating whether the contrast ratio R is larger than the reference value for each of the plurality of combinations. For example, for each combination, the determination result output unit 13 “has a sufficient contrast ratio without changing the character size”, “has a sufficient contrast ratio when the character size is changed”, or , Information indicating that “a sufficient contrast ratio cannot be obtained even if the character size is changed” is output.
  • the determination result output unit 13 draws “ ⁇ ” as information indicating that the contrast ratio is insufficient, and the contrast ratio is sufficient if the character size is changed. “ ⁇ ” is drawn as information indicating that the Note that the determination result output unit 13 may use other symbols or the like.
  • the fourth embodiment of the information processing apparatus can provide the same operations and effects as the first embodiment. Furthermore, according to the said 4th Embodiment, the user of the information processing apparatus 1 may be able to read a character by the viewer of an image by using any combination as a combination of a character color and a background color. Whether it is sufficiently high can be easily recognized. That is, the convenience of the user of the information processing apparatus 1 can be improved.
  • An information processing apparatus 100 according to the fifth embodiment includes a character size information acquisition unit (character size information acquisition unit) 101, a color information acquisition unit (color information acquisition unit) 102, and a readability determination information output unit (readability determination information output). Means) 103.
  • the character size information acquisition unit 101 uses the image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color. Character size information indicating the size of the character represented by the character color area is acquired.
  • the color information acquisition unit 102 acquires character color information representing the character color and background color information representing the background color based on the image information.
  • the readability determination information output unit 103 reads the image based on the character size information acquired by the character size information acquisition unit 101 and the character color information and background color information acquired by the color information acquisition unit 102. Obtains a readability parameter having a value that increases as the likelihood of reading the character increases. Furthermore, the readability determination information output unit 103 outputs readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value.
  • the information processing apparatus 100 outputs the readability determination information based on the character size in addition to the character color and the background color. That is, the information processing apparatus 100 estimates whether or not a viewer of an image can read characters in the image based on the character color, background color, and character size. As a result, according to the information processing apparatus 100, it is possible to estimate with high accuracy whether or not the viewer of the image can read the characters in the image.
  • the readability determination information output unit is configured to use a value that decreases as the character size represented by the acquired character size information increases as the reference value.
  • the information processing apparatus determines that the smaller the readability parameter, the smaller the character size, the smaller the reference value. That is, according to the information processing apparatus, it is possible to estimate with high accuracy whether or not a viewer of an image can read characters in the image.
  • the character size information acquisition means is a region including a character color region representing the character, and a rectangular shape arranged so that each side is in contact with the boundary between the character color region and the background color region. It is preferable that the character size information indicating the size of the character is acquired based on the size of the region.
  • the character size information acquisition means performs a plurality of characters on a character-containing region including a plurality of character color regions representing a plurality of characters arranged in a straight line along a predetermined alignment direction.
  • Representative character size information representing a representative value representing the size of the character size information is acquired as the character size information.
  • the readability determination information output means is preferably configured to output the readability determination information for the character-containing region.
  • the sizes of the plurality of characters may be different from each other (for example, the plurality of characters may be “ka” or “Ao”). Even in such a case, according to the above configuration, the size of a plurality of characters can be handled as the same size (the same font size).
  • the character-containing region has a distance in the alignment direction between an arbitrary character color region included in the character-containing region and any other character color region included in the character-containing region. It is preferable to set the distance to be equal to or less than a predetermined threshold distance.
  • the character size information obtaining unit is configured to use the size of the character having the maximum size among the plurality of characters as the representative value.
  • the character size information acquisition means is an area including all of the character color areas representing the plurality of characters, and is arranged so that each side is in contact with the boundary between the character color area and the background color area It is preferable that information representing the length of the rectangular region formed in a direction orthogonal to the alignment direction is acquired as the representative character size information.
  • the character size information acquisition unit is configured to use, as the representative value, a character size having a minimum size among the plurality of characters.
  • the character size information acquisition unit acquires, as the representative character size information, information representing the length of the character having the minimum length in the direction orthogonal to the alignment direction among the plurality of characters. It is preferable to be configured as described above.
  • the color information acquisition means acquires information representing a value obtained by averaging values representing colors in the character color area as the character color information, and averages values representing colors in the background color area. It is preferable that information representing a value is acquired as the background color information.
  • the information processing apparatus Performing binarization processing for converting a value representing a color included in the image into one of a first value and a second value, and converting the region colored by the color represented by the first value into the character color region It is preferable that the region colored in the color represented by the second value is used as the background color region.
  • the readability determination information output means is configured to output by displaying the readability determination information.
  • the readability determination information output unit is configured to display the readability determination information together with the image in association with the character color region that is the basis of the readability determination information.
  • the user of the information processing apparatus can easily recognize, for each character in the image, whether or not it is highly likely that the viewer of the image can read the character. That is, the convenience of the user of the information processing apparatus can be improved.
  • the readability determination information output unit acquires the readability parameter for each of a plurality of combinations of character color information representing an arbitrary character color and background color information representing an arbitrary background color. It is preferable that the readability determination information indicating whether or not the acquired readability parameter is larger than the reference value determined according to the acquired character size information is output.
  • the user of the information processing apparatus determines whether or not the user of the information processing apparatus has a sufficiently high possibility that the viewer of the image can read the character by using any combination as the combination of the character color and the background color. It can be easily recognized. That is, the convenience of the user of the information processing apparatus can be improved.
  • the readability determination information output unit is configured to calculate a contrast ratio based on the relative luminance of the character color and the relative luminance of the background color, and acquire the calculated contrast ratio as the readability parameter. It is preferred that
  • an information processing method includes: Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Get character size information that represents Based on the image information, obtain character color information representing the character color and background color information representing the background color, Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases.
  • the information processing method is It is preferable that the reference value is configured to use a value that decreases as the size of the character represented by the acquired character size information increases.
  • the information processing method is Based on the size of a rectangular region that is a region including a character color region representing the character and is arranged so that each side is in contact with the boundary between the character color region and the background color region. It is preferable to be configured to acquire character size information indicating the size.
  • the information processing method is For character-containing areas including a plurality of character color areas representing a plurality of characters arranged in a straight line, representative character size information representing a representative value representing the size of the plurality of characters is displayed as the character size. As information, It is preferable that the readability determination information for the character-containing region is output.
  • the program which is the other form of this invention is: In the information processing device, Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Character size information acquisition means for acquiring character size information representing Color information acquisition means for acquiring character color information representing the character color and background color information representing the background color based on the image information; Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases.
  • Readability determination information output means for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value; It is a program for realizing.
  • the readability determination information output unit is configured to use a value that decreases as the character size represented by the acquired character size information increases as the reference value.
  • the character size information acquisition means is a region including a character color region representing the character, and a rectangular shape arranged so that each side is in contact with the boundary between the character color region and the background color region. It is preferable that the character size information indicating the size of the character is acquired based on the size of the region.
  • the character size information acquisition means is a representative representing the size of the plurality of characters with respect to a character-containing region including a plurality of character color regions representing a plurality of characters arranged in a straight line. Configured to obtain representative character size information representing a value as the character size information, The readability determination information output means is preferably configured to output the readability determination information for the character-containing region.
  • each function of the information processing apparatus 1 was implement
  • the program is stored in the storage device, but may be stored in a computer-readable recording medium.
  • the recording medium is a portable medium such as a flexible disk, an optical disk, a magneto-optical disk, and a semiconductor memory.
  • the present invention is applicable to an information processing apparatus that estimates whether or not a viewer of an image can read characters in the image.

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)
  • Character Input (AREA)

Abstract

An information processing device (100) obtains (101), based on image information that indicates an image that includes a character-color domain and a background-color domain, character-size information that indicates the size of characters, which is indicated by the character-color domain of the image. The information processing device (100) also obtains (102) character-color information that indicates above-mentioned character-color, and background-color information that indicates above-mentioned background-color. The information processing device also obtains (103) a readability parameter, which has a value that becomes greater, as the possibility of a viewer of above-mentioned image being able to read above-mentioned character becomes higher, based on the obtained character-size information, and the obtained character-color and background-color information. Furthermore, the information processing device outputs (103) readability-deciding information that indicates whether the obtained readability parameter is greater than a predetermined standard value.

Description

情報処理装置Information processing device
 本発明は、画像の閲覧者が画像内の文字を読み取ることができるか否かを推定する情報処理装置に関する。 The present invention relates to an information processing apparatus that estimates whether or not a viewer of an image can read characters in the image.
 一般に、文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像にて文字色領域が表す文字を、画像の閲覧者が読み取ることができるか否かは、文字色の輝度及び背景色の輝度に基づくコントラスト比と強い相関を有することが知られている。 In general, an image viewer can read a character represented by a character color region in an image including a character color region colored in a character color and a background color region colored in a background color other than the character color. Is known to have a strong correlation with the contrast ratio based on the brightness of the character color and the brightness of the background color.
 そこで、W3C(World Wide Web Consortium)は、WCAG(Web Contents Accessibility Guideline)1.0版及び2.0版(非特許文献1)において、コントラスト比を算出する方法と、画像の閲覧者が文字を十分に読み取ることができるように設定されたコントラスト比の基準となる値(基準値)と、を規定している。また、閲覧者個人の特性又は年齢等に起因して、閲覧者毎に視覚特定が異なることが知られている。そこで、WCAGにおいては、閲覧者の視覚特性に応じて基準値を変更している。 Therefore, W3C (World Wide Web Consortium) is a method for calculating the contrast ratio in WCAG (Web Contents Accessibility Guidelines) version 1.0 and version 2.0 (Non-patent Document 1), and the viewer of the image changes the text. It defines a reference value (reference value) for the contrast ratio set so that it can be read sufficiently. Further, it is known that the visual specification differs for each viewer due to the individual characteristics or age of the viewer. Therefore, in WCAG, the reference value is changed according to the visual characteristics of the viewer.
 ところで、このような規定に基づいて、画像の閲覧者が画像内の文字を読み取ることができるか否かを推定する情報処理装置が知られている(非特許文献2)。また、この種の情報処理装置の一つとして、特許文献1及び特許文献2に記載の情報処理装置は、文字色及び背景色に基づいて可読性パラメータ(例えば、文字色及び背景色の明度の差)を算出する。そして、情報処理装置は、算出した可読性パラメータが基準値よりも大きいか否かを判定することにより、画像の閲覧者が画像内の文字を読み取ることができるか否かを推定する。 By the way, an information processing apparatus that estimates whether or not a viewer of an image can read characters in the image based on such rules is known (Non-Patent Document 2). Further, as one of this type of information processing apparatus, the information processing apparatuses described in Patent Document 1 and Patent Document 2 are based on the character color and the background color, and readability parameters (for example, the difference in brightness between the character color and the background color). ) Is calculated. Then, the information processing apparatus estimates whether or not the image viewer can read the characters in the image by determining whether or not the calculated readability parameter is larger than the reference value.
特開2005-260404号公報JP 2005-260404 A 特開2003-209704号公報JP 2003-209704 A
 ところで、画像内の文字の大きさが大きくなるほど、その画像の閲覧者がその文字を読み取ることができる可能性が高くなる。しかしながら、上記情報処理装置は、文字色及び背景色のみに基づいて、画像の閲覧者が画像内の文字を読み取ることができるか否かを推定している。従って、上記情報処理装置は、文字色及び背景色の組み合わせが変化しない限り、文字の大きさが異なっていても、同一の推定を行ってしまうという問題があった。
 即ち、上記情報処理装置によれば、画像の閲覧者が画像内の文字を読み取ることができるか否かを高い精度にて推定することができないという問題があった。
By the way, the larger the size of the character in the image, the higher the possibility that the viewer of the image can read the character. However, the information processing apparatus estimates whether or not the image viewer can read the characters in the image based only on the character color and the background color. Therefore, the information processing apparatus has a problem that the same estimation is performed even if the character size is different unless the combination of the character color and the background color is changed.
That is, according to the information processing apparatus, there is a problem in that it is impossible to estimate with high accuracy whether or not an image viewer can read characters in the image.
 このため、本発明の目的は、上述した課題である「画像の閲覧者が画像内の文字を読み取ることができるか否かを高い精度にて推定することができない場合が生じること」を解決することが可能な情報処理装置を提供することにある。 For this reason, the object of the present invention is to solve the above-mentioned problem that “the viewer of the image may not be able to estimate with high accuracy whether or not the characters in the image can be read”. It is an object of the present invention to provide an information processing apparatus capable of performing the above.
 かかる目的を達成するため本発明の一形態である情報処理装置は、
 文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得する文字サイズ情報取得手段と、
 上記画像情報に基づいて、上記文字色を表す文字色情報と、上記背景色を表す背景色情報と、を取得する色情報取得手段と、
 上記取得された文字サイズ情報と、上記取得された文字色情報及び背景色情報と、に基づいて、上記画像の閲覧者が上記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得するとともに当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する可読性判定情報出力手段と、
 を備える。
In order to achieve such an object, an information processing apparatus according to an aspect of the present invention provides:
Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Character size information acquisition means for acquiring character size information representing
Color information acquisition means for acquiring character color information representing the character color and background color information representing the background color based on the image information;
Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases. Readability determination information output means for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value;
Is provided.
 また、本発明の他の形態である情報処理方法は、
 文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得し、
 上記画像情報に基づいて、上記文字色を表す文字色情報と、上記背景色を表す背景色情報と、を取得し、
 上記取得された文字サイズ情報と、上記取得された文字色情報及び背景色情報と、に基づいて、上記画像の閲覧者が上記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得するとともに当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する、方法である。
In addition, an information processing method according to another aspect of the present invention includes:
Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Get character size information that represents
Based on the image information, obtain character color information representing the character color and background color information representing the background color,
Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases. This is a method of acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value.
 また、本発明の他の形態であるプログラムは、
 情報処理装置に、
 文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得する文字サイズ情報取得手段と、
 上記画像情報に基づいて、上記文字色を表す文字色情報と、上記背景色を表す背景色情報と、を取得する色情報取得手段と、
 上記取得された文字サイズ情報と、上記取得された文字色情報及び背景色情報と、に基づいて、上記画像の閲覧者が上記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得するとともに当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する可読性判定情報出力手段と、
 を実現させるためのプログラムである。
Moreover, the program which is the other form of this invention is:
In the information processing device,
Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Character size information acquisition means for acquiring character size information representing
Color information acquisition means for acquiring character color information representing the character color and background color information representing the background color based on the image information;
Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases. Readability determination information output means for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value;
It is a program for realizing.
 本発明は、以上のように構成されることにより、画像の閲覧者が画像内の文字を読み取ることができるか否かを高い精度にて推定することができる。 The present invention is configured as described above, so that it can be estimated with high accuracy whether or not the viewer of the image can read the characters in the image.
本発明の第1実施形態に係る情報処理装置の機能の概略を表すブロック図である。It is a block diagram showing the outline of the function of the information processing apparatus which concerns on 1st Embodiment of this invention. 処理の対象となる画像の一例である。It is an example of the image used as the object of a process. 図2に示した画像についてグレー階調値128を基準に白と黒に2値化した画像を示した図である。FIG. 3 is a diagram showing an image binarized into white and black based on a gray gradation value of 128 for the image shown in FIG. 2. 図2に示した画像についてグレー階調値192を基準に白と黒に2値化した画像を示した図である。FIG. 3 is a diagram showing an image binarized into white and black based on a gray gradation value 192 for the image shown in FIG. 2. 図3に示した2値化画像を白黒反転させた画像を示した図である。It is the figure which showed the image which reversed the black-and-white image shown in FIG. 3 in black and white. 図4に示した2値化画像を白黒反転させた画像を示した図である。FIG. 5 is a diagram illustrating an image obtained by reversing the binary image illustrated in FIG. 4 in black and white. 2値化画像と、その2値化画像から抽出された黒ドットの座標と、を示した例である。It is the example which showed the binarized image and the coordinate of the black dot extracted from the binarized image. 図7に示した画像から抽出された矩形エリアを示した図である。It is the figure which showed the rectangular area extracted from the image shown in FIG. 図3に示した画像から抽出された矩形エリアを示した図である。It is the figure which showed the rectangular area extracted from the image shown in FIG. 図4に示した画像から抽出された矩形エリアを示した図である。It is the figure which showed the rectangular area extracted from the image shown in FIG. 図5に示した画像から抽出された矩形エリアを示した図である。It is the figure which showed the rectangular area extracted from the image shown in FIG. 図6に示した画像から抽出された矩形エリアを示した図である。It is the figure which showed the rectangular area extracted from the image shown in FIG. 図9~図12に示した矩形エリアを統合した結果を示した図である。FIG. 13 is a diagram showing a result of integrating the rectangular areas shown in FIGS. 9 to 12; 矩形エリアの座標、文字色、背景色、及び、文字の大きさを含む文字背景組合せ情報を示した図である。It is the figure which showed the character background combination information containing the coordinate of a rectangular area, character color, background color, and the size of a character. 矩形エリアの座標、文字色、背景色、文字の大きさ、及び、判定結果を含むコントラスト判定結果情報を示した図である。It is the figure which showed the contrast determination result information containing the coordinate of a rectangular area, a character color, a background color, the size of a character, and a determination result. 処理の対象となる画像上に矩形エリアを表す矩形と、判定結果と、を重ね合わせた画像を示した図である。It is the figure which showed the image which superimposed the rectangle showing a rectangular area, and the determination result on the image used as a process target. 処理の対象となる画像の一例である。It is an example of the image used as the object of a process. 本発明の第2実施形態に係る情報処理装置によって、図17に示した画像から抽出された矩形エリアを示した図である。It is the figure which showed the rectangular area extracted from the image shown in FIG. 17 by the information processing apparatus which concerns on 2nd Embodiment of this invention. 図18に示した矩形エリアから生成された正方矩形エリアを示した図ある。It is the figure which showed the square rectangular area produced | generated from the rectangular area shown in FIG. 図19に示した正方矩形エリアに基づいて、矩形エリアを統合した結果を示した図である。It is the figure which showed the result of having integrated the rectangular area based on the square rectangular area shown in FIG. 本発明の第2実施形態に係る情報処理装置が矩形エリアを統合する際の、統合前の矩形エリアと、統合後の矩形エリアと、を概念的に示した説明図である。It is explanatory drawing which showed notionally the rectangular area before integration, and the rectangular area after integration, when the information processing apparatus which concerns on 2nd Embodiment of this invention integrates a rectangular area. 処理の対象となる画像上に矩形エリアを表す矩形と、判定結果と、を重ね合わせた画像を示した図である。It is the figure which showed the image which superimposed the rectangle showing a rectangular area, and the determination result on the image used as a process target. 本発明の第3実施形態に係る情報処理装置によって、図19に示した正方矩形エリアに基づいて統合された矩形エリアを示した図である。It is the figure which showed the rectangular area integrated based on the square rectangular area shown in FIG. 19 by the information processing apparatus which concerns on 3rd Embodiment of this invention. 本発明の第3実施形態に係る情報処理装置が矩形エリアを統合する際の、統合前の矩形エリアと、統合後の矩形エリアと、を概念的に示した説明図である。It is explanatory drawing which showed notionally the rectangular area before integration, and the rectangular area after integration, when the information processing apparatus which concerns on 3rd Embodiment of this invention integrates a rectangular area. 本発明の第4実施形態に係る情報処理装置により表示される画像であって、文字色と背景色との複数の組み合わせのそれぞれに対するコントラスト比の判定結果を示した画像である。It is an image displayed by the information processor concerning a 4th embodiment of the present invention, and is an image showing the judgment result of contrast ratio with respect to each of a plurality of combinations of character color and background color. 本発明の第5実施形態に係る情報処理装置の機能の概略を表すブロック図である。It is a block diagram showing the outline of the function of the information processing apparatus which concerns on 5th Embodiment of this invention.
 以下、本発明に係る、情報処理装置、情報処理方法、及び、プログラム、の各実施形態について図1~図26を参照しながら説明する。 Hereinafter, embodiments of an information processing apparatus, an information processing method, and a program according to the present invention will be described with reference to FIGS.
<第1実施形態>
(構成)
 図1に示したように、第1実施形態に係る情報処理装置1は、図示しない中央処理装置(CPU;Central Processing Unit)、記憶装置(メモリ及びハードディスク駆動装置(HDD;Hard Disk Drive))、入力装置及び出力装置を備える。
<First Embodiment>
(Constitution)
As shown in FIG. 1, the information processing apparatus 1 according to the first embodiment includes a central processing unit (CPU; Central Processing Unit), a storage device (memory and hard disk drive (HDD)), not shown. An input device and an output device are provided.
 出力装置は、ディスプレイを有する。出力装置は、CPUから出力された画像情報に基づいて、文字及び図形等からなる画像をディスプレイに表示させる。入力装置は、キーボード及びマウスを有する。情報処理装置1は、キーボード及びマウスを介して、ユーザの操作に基づく情報が入力されるように構成されている。 The output device has a display. The output device displays an image made up of characters, graphics, and the like on the display based on the image information output from the CPU. The input device has a keyboard and a mouse. The information processing apparatus 1 is configured such that information based on user operations is input via a keyboard and a mouse.
 図1は、上記のように構成された情報処理装置1の機能を表すブロック図である。この機能は、情報処理装置1のCPUが、記憶装置に記憶されている所定のプログラムを実行することにより実現される。
 この情報処理装置1の機能は、文字背景認識部(文字サイズ情報取得手段、色情報取得手段)11と、コントラスト判定部(可読性判定情報出力手段の一部)12と、判定結果出力部(可読性判定情報出力手段の一部)13と、を含む。
FIG. 1 is a block diagram illustrating functions of the information processing apparatus 1 configured as described above. This function is realized by the CPU of the information processing apparatus 1 executing a predetermined program stored in the storage device.
The functions of the information processing apparatus 1 are a character background recognition unit (character size information acquisition unit, color information acquisition unit) 11, a contrast determination unit (part of readability determination information output unit) 12, and a determination result output unit (readability). A part of determination information output means) 13.
 文字背景認識部11は、文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報を受け付ける。 The character background recognition unit 11 receives image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color.
 ここで、画像情報は、ビットマップ形式、又は、GIF形式等に従った情報(画像ファイル)であってもよいし、ディスプレイに描画される画像の基となる情報(例えば、HTML(HyperText Markup Language)及びJavaScript(登録商標)等の言語により表された情報)であってもよい。また、情報処理装置1が備えるVRAM(Video RAM)に記憶されている情報であってもよい。 Here, the image information may be information (image file) according to a bitmap format or a GIF format, or information (for example, HTML (HyperText Markup Language) based on an image drawn on the display. And information expressed in a language such as JavaScript (registered trademark). Moreover, the information memorize | stored in VRAM (Video RAM) with which the information processing apparatus 1 is provided may be sufficient.
 文字背景認識部11は、受け付けた画像情報に基づいて、文字を表す文字色領域を含む領域であり且つ各辺が当該文字色領域と背景色領域との間の境界と接するように配置された長方形の領域(矩形エリア)を特定する。 Based on the received image information, the character background recognition unit 11 is a region including a character color region representing a character, and is arranged so that each side is in contact with the boundary between the character color region and the background color region. Identify a rectangular area (rectangular area).
 文字背景認識部11は、特定した矩形エリアのそれぞれに対して、その矩形エリア内の文字色を表す文字色情報と、その矩形エリア内の背景色を表す背景色情報と、を取得する。更に、文字背景認識部11は、特定した矩形エリアのそれぞれに対して、その矩形エリアの大きさに基づいて、その矩形エリア内の文字の大きさを表す文字サイズ情報を取得する。本例では、文字背景認識部11は、矩形エリアの縦方向(Y軸方向)における長さ(高さ)、及び、矩形エリアの横方向(X軸方向)における長さ(幅)のうちの、大きい方の長さを表す情報を文字サイズ情報として取得する。 The character background recognition unit 11 acquires, for each specified rectangular area, character color information representing the character color in the rectangular area and background color information representing the background color in the rectangular area. Furthermore, the character background recognition unit 11 acquires character size information representing the size of the character in the rectangular area based on the size of the rectangular area for each specified rectangular area. In this example, the character background recognition unit 11 includes the length (height) in the vertical direction (Y-axis direction) of the rectangular area and the length (width) in the horizontal direction (X-axis direction) of the rectangular area. Then, information representing the larger length is acquired as character size information.
 具体的には、文字背景認識部11は、受け付けた画像情報が表す画像に含まれる色を表す値を第1の値(本例では、黒を表す値)及び第2の値(本例では、白を表す値)のいずれかに変換する2値化処理を行う。そして、文字背景認識部11は、第1の値が表す色に着色された領域を文字色領域として特定する。一方、文字背景認識部11は、第2の値が表す色に着色された領域を背景色領域として特定する。次いで、文字背景認識部11は、特定した文字色領域に基づいて矩形エリアを特定する。 Specifically, the character background recognition unit 11 sets a value representing a color included in the image represented by the received image information as a first value (in this example, a value representing black) and a second value (in this example). , A value representing white) is performed. And the character background recognition part 11 specifies the area | region colored in the color which 1st value represents as a character color area | region. On the other hand, the character background recognition unit 11 identifies an area colored in the color represented by the second value as the background color area. Next, the character background recognition unit 11 identifies a rectangular area based on the identified character color area.
 そして、文字背景認識部11は、特定した矩形エリアから、所定の集合条件が成立する矩形エリアの集合を抽出する。ここで、集合条件は、各集合を構成する矩形エリアの任意の1つと、その集合を構成する他の矩形エリアの少なくとも1つと、が縦方向及び横方向のいずれかの方向において互いに隣接している、という条件である。そして、文字背景認識部11は、抽出された矩形エリアの集合毎に、その集合を構成する各矩形エリアに代えて、その集合を構成する矩形エリアのすべてを含み且つ各辺がそれらの矩形エリアのいずれかの辺を含む矩形エリアを特定する。 Then, the character background recognition unit 11 extracts a set of rectangular areas that satisfy a predetermined set condition from the specified rectangular areas. Here, the set condition is that any one of the rectangular areas constituting each set and at least one of the other rectangular areas constituting the set are adjacent to each other in either the vertical direction or the horizontal direction. It is a condition of being. Then, for each set of extracted rectangular areas, the character background recognizing unit 11 includes all of the rectangular areas constituting the set instead of the rectangular areas constituting the set, and each side includes the rectangular area. A rectangular area including any of the sides is specified.
 更に、文字背景認識部11は、受け付けた画像情報が表す画像における各矩形エリアに対して、文字色領域内の色を表す値を平均した値を表す情報を、その矩形エリアの文字色情報として取得する。同様に、文字背景認識部11は、受け付けた画像情報が表す画像における各矩形エリアに対して、背景色領域内の色を表す値を平均した値を表す情報を、その矩形エリアの背景色情報として取得する。 Further, the character background recognizing unit 11 uses, as character color information of the rectangular area, information representing a value obtained by averaging values representing colors in the character color area for each rectangular area in the image represented by the received image information. get. Similarly, the character background recognizing unit 11 uses, for each rectangular area in the image represented by the received image information, information representing a value obtained by averaging values representing colors in the background color area as background color information of the rectangular area. Get as.
 コントラスト判定部12は、文字背景認識部11により特定された矩形エリアのそれぞれに対して、文字背景認識部11により取得された文字サイズ情報、文字色情報及び背景色情報、に基づいて、可読性パラメータを取得する。 The contrast determination unit 12 reads the readability parameter based on the character size information, the character color information, and the background color information acquired by the character background recognition unit 11 for each rectangular area specified by the character background recognition unit 11. To get.
 可読性パラメータは、文字背景認識部11により受け付けられた画像情報が表す画像の閲覧者が、当該画像内の文字を読み取ることができる可能性が高くなるほど大きくなる値を有する。本例では、コントラスト判定部12は、文字色の相対輝度(relative luminance)、及び、背景色の相対輝度に基づいてコントラスト比(contrast ratio)を算出し、当該算出したコントラスト比を可読性パラメータとして取得する。 The readability parameter has a value that increases as the viewer of the image represented by the image information received by the character background recognition unit 11 can read the characters in the image. In this example, the contrast determination unit 12 calculates a contrast ratio based on the relative luminance of the character color and the relative luminance of the background color, and acquires the calculated contrast ratio as a readability parameter. To do.
 そして、コントラスト判定部12は、取得した可読性パラメータが予め設定された基準値よりも大きいか否かを判定する。なお、コントラスト判定部12は、文字背景認識部11により特定された矩形エリアのそれぞれに対して、基準値として、文字背景認識部11により取得された文字サイズ情報が表す文字の大きさが大きくなるほど小さくなる値を用いる。 Then, the contrast determination unit 12 determines whether or not the acquired readability parameter is larger than a preset reference value. The contrast determination unit 12 increases the character size represented by the character size information acquired by the character background recognition unit 11 as a reference value for each rectangular area specified by the character background recognition unit 11. Use a smaller value.
 判定結果出力部13は、文字背景認識部11により特定された矩形エリアのそれぞれに対して、コントラスト判定部12により判定された結果を表す情報(即ち、可読性パラメータが基準値よりも大きいか否かを表す情報)をディスプレイに表示させる(出力する)。 The determination result output unit 13 is information indicating a result determined by the contrast determination unit 12 for each of the rectangular areas specified by the character background recognition unit 11 (that is, whether the readability parameter is larger than a reference value). Is displayed (output) on the display.
(作動)
 次に、上述した情報処理装置1の作動について具体的に述べる。
 先ず、文字背景認識部11は、画像情報を受け付ける。次いで、文字背景認識部11は、受け付けた画像情報に対して上記2値化処理を行う。本例では、2値化処理は、画像情報が表す画像中の各ドットのRGB値(赤を表す値「R」と、緑を表す値「G」と、青を表す値「B」と、を含む)と、式(0.299×R+0.587×G+0.114×B)と、に基づいて、そのドット(ピクセル)のグレー階調を表す値を算出する。
(Operation)
Next, the operation of the information processing apparatus 1 described above will be specifically described.
First, the character background recognition unit 11 receives image information. Next, the character background recognition unit 11 performs the binarization process on the received image information. In this example, the binarization process includes RGB values of each dot in the image represented by the image information (a value “R” representing red, a value “G” representing green, a value “B” representing blue, ) And the formula (0.299 × R + 0.587 × G + 0.114 × B), a value representing the gray gradation of the dot (pixel) is calculated.
 そして、2値化処理は、算出した値が閾値(例えば、128)未満である場合、そのドットのRGB値をR=G=B=0(即ち、黒を表すRGB値)に設定し、一方、閾値以上である場合、そのドットのRGB値をR=G=B=255(即ち、白を表すRGB値)に設定する。これにより、黒を表すRGB値又は白を表すRGB値のみをRGB値として有する画像(2値化画像)が生成される。 In the binarization process, when the calculated value is less than a threshold value (for example, 128), the RGB value of the dot is set to R = G = B = 0 (that is, the RGB value representing black), If it is equal to or greater than the threshold, the RGB value of the dot is set to R = G = B = 255 (that is, the RGB value representing white). Thereby, an image (binarized image) having only RGB values representing black or RGB values representing white as RGB values is generated.
 例えば、図2に示した画像に、上述した2値化処理を施すと、図3に示した画像が得られる。更に、上述の2値化方法に限らず、文字背景認識部11は、他の2値化処理を行う。この2値化処理は、RGB値を構成するR、G及びBのそれぞれの値を、グレー階調を表す値として用いることにより、3つの画像を生成する。更に、この2値化処理は、上述した2値化処理と同様に、各画像に対して、各ドットのRGB値を、黒を表すRGB値又は白を表すRGB値に設定する。これにより、2値化画像が生成される。 For example, when the above-described binarization process is performed on the image shown in FIG. 2, the image shown in FIG. 3 is obtained. Furthermore, not only the above-described binarization method but also the character background recognition unit 11 performs another binarization process. In the binarization process, three images are generated by using the R, G, and B values constituting the RGB values as values representing the gray gradation. Further, in the binarization process, as in the binarization process described above, the RGB value of each dot is set to an RGB value representing black or an RGB value representing white for each image. Thereby, a binarized image is generated.
 更に、文字背景認識部11は、上記閾値として複数の値(例えば、128、及び、192等)を用いることにより、複数の2値化画像を生成する。これにより、画像から文字を検出する精度を高めることができる。例えば、図2に示した画像に、192を閾値とする2値化処理を施すと、図4に示した画像が得られる。 Further, the character background recognition unit 11 generates a plurality of binarized images by using a plurality of values (for example, 128 and 192) as the threshold value. Thereby, the precision which detects a character from an image can be raised. For example, when the image shown in FIG. 2 is subjected to binarization processing using 192 as a threshold, the image shown in FIG. 4 is obtained.
 そして、文字背景認識部11は、複数の閾値を用いることにより生成された複数の2値化画像のそれぞれに対して、各ドットのRGB値を、白を表すRGB値である場合には黒を表すRGB値に変換し、一方、黒を表すRGB値である場合には白を表すRGB値に変換する(即ち、白黒反転させる)。これにより、2値化画像が生成される。例えば、図5に示した画像は、図3に示した画像を白黒反転させた画像であり、図6に示した画像は、図4に示した画像を白黒反転させた画像である。 Then, the character background recognizing unit 11 sets the RGB value of each dot to black for each of a plurality of binarized images generated by using a plurality of threshold values. On the other hand, if it is an RGB value representing black, it is converted to an RGB value representing white (that is, black and white are inverted). Thereby, a binarized image is generated. For example, the image shown in FIG. 5 is an image obtained by reversing the image shown in FIG. 3 in black and white, and the image shown in FIG. 6 is an image obtained by reversing the image shown in FIG. 4 in black and white.
 このようにして、文字背景認識部11は、受け付けた画像情報に基づいて、複数の2値化画像を生成する。 In this way, the character background recognition unit 11 generates a plurality of binarized images based on the received image information.
 次いで、文字背景認識部11は、生成した複数の2値化画像のそれぞれに対して、矩形エリアを特定する(矩形エリアの抽出を行う)。 Next, the character background recognition unit 11 specifies a rectangular area for each of the generated plurality of binarized images (extracts the rectangular area).
 先ず、文字背景認識部11は、各2値化画像に対して、黒を表すRGB値を有するドット(黒ドット)の位置(XY座標(X,Y)、ここで、X及びYのそれぞれは整数)を表す情報(座標情報)を抽出する。例えば、図7に示した画像の場合、文字背景認識部11は、図7に示したように、黒ドットの座標情報を抽出する。 First, the character background recognizing unit 11 performs, for each binarized image, the position (XY coordinates (X, Y) of a dot (black dot) having an RGB value representing black, where X and Y are Information (coordinate information) representing (integer) is extracted. For example, in the case of the image shown in FIG. 7, the character background recognition unit 11 extracts the coordinate information of the black dots as shown in FIG.
 次に、文字背景認識部11は、抽出した黒ドットの座標情報に基づいて、縦方向、横方向、及び、斜め方向のいずれかの方向において隣接する黒ドットの領域を文字色領域として特定する。例えば、第1の座標情報が(X,Y)であり、第2の座標情報が(X,Y)である場合、X-1≦X≦X+1、又は、Y-1≦Y≦Y+1の関係が成立するとき、第1の座標情報の黒ドットと、第2の座標情報の黒ドットと、は、縦方向、横方向、及び、斜め方向のいずれかの方向において隣接している。 Next, based on the extracted black dot coordinate information, the character background recognizing unit 11 identifies a black dot region adjacent in one of the vertical direction, the horizontal direction, and the diagonal direction as a character color region. . For example, when the first coordinate information is (X 1 , Y 1 ) and the second coordinate information is (X 2 , Y 2 ), X 1 −1 ≦ X 2 ≦ X 1 +1, or Y When the relationship 1 −1 ≦ Y 2 ≦ Y 1 +1 is satisfied, the black dot of the first coordinate information and the black dot of the second coordinate information are in the vertical direction, the horizontal direction, and the diagonal direction. Adjacent in either direction.
 文字背景認識部11は、特定した文字色領域に基づいて矩形エリアを特定する。本例では、文字背景認識部11は、ある文字色領域に含まれる黒ドットの座標のうちの、X値(X座標の値)の最小値Xminと、X値の最大値Xmaxと、Y値(Y座標の値)の最小値Yminと、Y値の最大値Ymaxと、を矩形エリアを特定するための情報として取得する。即ち、矩形エリアの4つの頂点の座標は、(Xmin,Ymin)、(Xmin,Ymax)、(Xmax,Ymin)、及び、(Xmax,Ymax)である。 The character background recognition unit 11 identifies a rectangular area based on the identified character color area. In this example, character background recognition unit 11 of the coordinates of black dots included in a character color region, and the minimum value X min of the X value (value of X-coordinate), and a maximum value X max X value, The minimum value Y min of the Y value (Y coordinate value) and the maximum value Y max of the Y value are acquired as information for specifying the rectangular area. That is, the coordinates of the four vertices of the rectangular area are (X min , Y min ), (X min , Y max ), (X max , Y min ), and (X max , Y max ).
 文字背景認識部11は、各2値化画像に対して、各矩形エリアを特定するための情報と、その矩形エリアに含まれる黒ドットの座標情報と、を対応付けて記憶装置に記憶させる。 The character background recognition unit 11 stores the information for specifying each rectangular area and the coordinate information of the black dots included in the rectangular area in the storage device in association with each binarized image.
 図8は、図7に示した2値化画像に対して文字背景認識部11が取得した、各矩形エリアを特定するための情報と、その矩形エリアに含まれる黒ドットの座標情報と、を示している。 FIG. 8 shows the information for specifying each rectangular area acquired by the character background recognition unit 11 for the binarized image shown in FIG. 7 and the coordinate information of the black dots included in the rectangular area. Show.
 図9に示した画像は、図3に示した画像に対して抽出された矩形エリアを示している。また、図10に示した画像は、図4に示した画像に対して抽出された矩形エリアを示している。同様に、図11に示した画像は、図5に示した画像に対して抽出された矩形エリアを示している。同様に、図12に示した画像は、図6に示した画像に対して抽出された矩形エリアを示している。 The image shown in FIG. 9 shows a rectangular area extracted from the image shown in FIG. Further, the image shown in FIG. 10 shows a rectangular area extracted from the image shown in FIG. Similarly, the image shown in FIG. 11 shows a rectangular area extracted from the image shown in FIG. Similarly, the image shown in FIG. 12 shows a rectangular area extracted from the image shown in FIG.
 更に、文字背景認識部11は、特定された矩形エリアの幅及び高さを算出する。具体的には、文字背景認識部11は、矩形エリアの頂点の座標のうちの、X値の最小値Xminと、X値の最大値Xmaxと、の差の大きさを当該矩形エリアの幅として算出する。同様に、文字背景認識部11は、矩形エリアの頂点の座標のうちの、Y値の最小値Yminと、Y値の最大値Ymaxと、の差の大きさを当該矩形エリアの高さとして算出する。 Furthermore, the character background recognition unit 11 calculates the width and height of the specified rectangular area. Specifically, the character background recognition unit 11 determines the magnitude of the difference between the minimum X value X min and the maximum X value X max of the coordinates of the vertices of the rectangular area. Calculate as width. Similarly, the character background recognition unit 11 determines the difference between the minimum Y value Y min and the maximum Y value Y max among the coordinates of the vertices of the rectangular area. Calculate as
 そして、文字背景認識部11は、算出された幅又は高さが100ドット(ピクセル)よりも大きい矩形エリアを特定するための情報を、記憶装置から消去する。同様に、文字背景認識部11は、算出された幅又は高さが3ドット以下の矩形エリアを特定するための情報を、記憶装置から消去する。 Then, the character background recognition unit 11 deletes information for specifying a rectangular area having a calculated width or height larger than 100 dots (pixels) from the storage device. Similarly, the character background recognition unit 11 erases information for specifying a rectangular area having a calculated width or height of 3 dots or less from the storage device.
 次に、文字背景認識部11は、各2値化画像に対して、特定した矩形エリア同士が隣接している場合、それらの矩形エリアを一つの矩形エリアに統合する。具体的には、文字背景認識部11は、特定した矩形エリアから、所定の集合条件が成立する矩形エリアの集合を抽出する。ここで、集合条件は、各集合を構成する矩形エリアの任意の1つと、その集合を構成する他の矩形エリアの少なくとも1つと、が縦方向及び横方向のいずれかの方向において互いに隣接している、という条件である。 Next, when the specified rectangular areas are adjacent to each binarized image, the character background recognition unit 11 integrates the rectangular areas into one rectangular area. Specifically, the character background recognition unit 11 extracts a set of rectangular areas that satisfy a predetermined set condition from the specified rectangular areas. Here, the set condition is that any one of the rectangular areas constituting each set and at least one of the other rectangular areas constituting the set are adjacent to each other in either the vertical direction or the horizontal direction. It is a condition of being.
 そして、文字背景認識部11は、抽出された矩形エリアの集合毎に、その集合を構成する各矩形エリアに代えて、その集合を構成する矩形エリアのすべてを含み且つ各辺がそれらの矩形エリアのいずれかの辺を含む矩形エリアを特定する。 Then, for each set of extracted rectangular areas, the character background recognizing unit 11 includes all of the rectangular areas constituting the set instead of the rectangular areas constituting the set, and each side has the rectangular area. A rectangular area including any of the sides is specified.
 即ち、文字背景認識部11は、上記集合を構成する各矩形エリアの頂点の座標のうちの、X値の最小値Xminと、X値の最大値Xmaxと、Y値の最小値Yminと、Y値の最大値Ymaxと、を新たな矩形エリアの座標として取得する。このとき、文字背景認識部11は、上記集合を構成する各矩形エリアに含まれる黒ドットの座標情報のすべてを、新たな矩形エリアに含まれる黒ドットの座標情報として取得する。 That is, the character background recognizing unit 11 has the minimum value X min of the X value, the maximum value X max of the X value, and the minimum value Y min of the Y value among the coordinates of the vertices of each rectangular area constituting the set. And the maximum value Y max of the Y values are acquired as the coordinates of the new rectangular area. At this time, the character background recognizing unit 11 acquires all the coordinate information of the black dots included in each rectangular area constituting the set as the coordinate information of the black dots included in the new rectangular area.
 そして、文字背景認識部11は、上記集合を構成する各矩形エリアを特定するための情報を記憶装置から消去するとともに、新たな矩形エリアを特定するための情報を記憶装置に記憶させる。 Then, the character background recognition unit 11 erases information for specifying each rectangular area constituting the set from the storage device and stores information for specifying a new rectangular area in the storage device.
 次に、文字背景認識部11は、2値化画像毎に特定された矩形エリアを統合する。具体的には、文字背景認識部11は、任意の2値化画像に対して特定した矩形エリアから、所定の集合条件が成立する矩形エリアの集合を抽出する。ここで、集合条件は、各集合を構成する矩形エリアの任意の1つと、その集合を構成する他の矩形エリアの少なくとも1つと、が互いに重なり合う部分を有する(両方が共通する領域を含む)、という条件である。なお、上記各集合を構成する矩形エリアは、互いに異なる2値化画像に対して特定された矩形エリアである。 Next, the character background recognition unit 11 integrates the rectangular areas specified for each binarized image. Specifically, the character background recognition unit 11 extracts a set of rectangular areas that satisfy a predetermined set condition from the rectangular areas specified for an arbitrary binary image. Here, the set condition includes a portion where any one of the rectangular areas constituting each set and at least one of the other rectangular areas constituting the set overlap each other (including a common area). This is the condition. Note that the rectangular areas constituting each set are rectangular areas specified for different binary images.
 そして、文字背景認識部11は、抽出された矩形エリアの集合毎に、その集合を構成する各矩形エリアに代えて、その集合を構成する矩形エリアのすべてを含み且つ各辺がそれらの矩形エリアのいずれかの辺を含む矩形エリアを特定する。 Then, for each set of extracted rectangular areas, the character background recognizing unit 11 includes all of the rectangular areas constituting the set instead of the rectangular areas constituting the set, and each side has the rectangular area. A rectangular area including any of the sides is specified.
 即ち、文字背景認識部11は、上記集合を構成する各矩形エリアの頂点の座標のうちの、X値の最小値Xminと、X値の最大値Xmaxと、Y値の最小値Yminと、Y値の最大値Ymaxと、を新たな矩形エリアの座標として取得する。このとき、文字背景認識部11は、上記集合を構成する各矩形エリアに含まれる黒ドットの座標情報のすべてを取得し、取得した座標情報のうちの重複する座標情報を削除した座標情報を新たな矩形エリアに含まれる黒ドットの座標情報として取得する。 That is, the character background recognizing unit 11 has the minimum value X min of the X value, the maximum value X max of the X value, and the minimum value Y min of the Y value among the coordinates of the vertices of each rectangular area constituting the set. And the maximum value Y max of the Y values are acquired as the coordinates of the new rectangular area. At this time, the character background recognition unit 11 acquires all the coordinate information of the black dots included in each rectangular area constituting the above set, and newly sets the coordinate information from which the overlapping coordinate information of the acquired coordinate information is deleted. Obtained as coordinate information of black dots included in a rectangular area.
 そして、文字背景認識部11は、上記集合を構成する各矩形エリアを特定するための情報を記憶装置から消去するとともに、新たな矩形エリアを特定するための情報を記憶装置に記憶させる。 Then, the character background recognition unit 11 erases information for specifying each rectangular area constituting the set from the storage device and stores information for specifying a new rectangular area in the storage device.
 このようにして、文字背景認識部11は、図2に示した画像に基づいて、図13に示したように、矩形エリアを特定する。 In this way, the character background recognition unit 11 identifies a rectangular area as shown in FIG. 13 based on the image shown in FIG.
 次に、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、その矩形エリアに含まれる黒ドットの座標における、上記受け付けられた画像情報が表す画像のRGB値を、その矩形エリアに含まれるすべての黒ドットに対して平均した値を、文字色を表す文字色情報として取得する(色情報取得工程)。 Next, for each specified rectangular area, the character background recognition unit 11 calculates the RGB value of the image represented by the received image information at the coordinates of the black dots included in the rectangular area. Is obtained as character color information representing the character color (color information acquisition step).
 同様に、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、その矩形エリアに含まれる白ドットの座標における、上記受け付けられた画像情報が表す画像のRGB値を、その矩形エリアに含まれるすべての白ドットに対して平均した値を、背景色を表す背景色情報として取得する(色情報取得工程)。 Similarly, for each specified rectangular area, the character background recognizing unit 11 calculates the RGB value of the image represented by the received image information at the coordinates of the white dots included in the rectangular area. Is obtained as background color information representing the background color (color information obtaining step).
 加えて、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、矩形エリアの幅及び高さを算出する。具体的には、文字背景認識部11は、矩形エリアの頂点の座標のうちの、X値の最小値Xminと、X値の最大値Xmaxと、の差の大きさを当該矩形エリアの幅として算出する。同様に、文字背景認識部11は、矩形エリアの頂点の座標のうちの、Y値の最小値Yminと、Y値の最大値Ymaxと、の差の大きさを当該矩形エリアの高さとして算出する。 In addition, the character background recognition unit 11 calculates the width and height of the rectangular area for each specified rectangular area. Specifically, the character background recognition unit 11 determines the magnitude of the difference between the minimum X value X min and the maximum X value X max of the coordinates of the vertices of the rectangular area. Calculate as width. Similarly, the character background recognition unit 11 determines the difference between the minimum Y value Y min and the maximum Y value Y max among the coordinates of the vertices of the rectangular area. Calculate as
 そして、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、上記算出された幅及び高さのうちの大きい方の値を、当該矩形エリアに含まれる文字の大きさを表す文字サイズ情報として取得する(文字サイズ情報取得工程)。 Then, the character background recognition unit 11 sets, for each of the specified rectangular areas, the larger value of the calculated width and height as a character representing the size of the character included in the rectangular area. Obtained as size information (character size information obtaining step).
 次いで、文字背景認識部11は、矩形エリアを特定するための情報(頂点の座標情報)と、取得された文字色情報及び背景色情報と、取得された文字サイズ情報と、を対応付けた文字背景組合せ情報を、コントラスト判定部12へ出力する。図14は、文字背景組合せ情報の一例を示した図である。 Next, the character background recognition unit 11 associates information (vertex coordinate information) for identifying a rectangular area, the acquired character color information and background color information, and the acquired character size information. The background combination information is output to the contrast determination unit 12. FIG. 14 is a diagram showing an example of character background combination information.
 なお、文字背景認識部11は、同様の文字背景組合せ情報を出力可能である範囲において、他の方法を用いて文字背景組合せ情報を取得するように構成されていてもよい。 Note that the character background recognition unit 11 may be configured to acquire the character background combination information using another method within a range in which similar character background combination information can be output.
 次に、コントラスト判定部12は、文字背景認識部11により出力された文字背景組合せ情報を受け付ける。そして、コントラスト判定部12は、受け付けた文字背景組合せ情報に含まれる各矩形エリアに対して、文字色情報と、下記式(1)と、に基づいて、文字色の相対輝度Lを算出する。同様に、コントラスト判定部12は、各矩形エリアに対して、背景色情報と、下記式(1)と、に基づいて、背景色の相対輝度Lを算出する。なお、コントラスト判定部12は、下記式(1)と異なる他の式を用いて相対輝度を算出するように構成されていてもよい。
L=0.2125×((R/255)2.2)+0.7152×((G/255)2.2)+0.0722×((B/255)2.2)  …(1)
Next, the contrast determination unit 12 receives the character background combination information output by the character background recognition unit 11. Then, the contrast determination unit 12 calculates the relative luminance L of the character color based on the character color information and the following equation (1) for each rectangular area included in the received character background combination information. Similarly, the contrast determination unit 12 calculates the relative luminance L of the background color for each rectangular area based on the background color information and the following equation (1). The contrast determination unit 12 may be configured to calculate the relative luminance using another formula different from the following formula (1).
L = 0.2125 × ((R / 255) 2.2 ) + 0.7152 × ((G / 255) 2.2 ) + 0.0722 × ((B / 255) 2.2 )… (1)
 そして、コントラスト判定部12は、各矩形エリアに対して、算出された文字色の相対輝度Lと、算出された背景色の相対輝度Lと、下記式(2)と、に基づいて、コントラスト比Rを算出する(可読性判定情報出力工程)。
R=(L1+0.05)/(L2+0.05)  …(2)
Then, the contrast determination unit 12 calculates the contrast ratio based on the calculated relative luminance L of the character color, the calculated relative luminance L of the background color, and the following equation (2) for each rectangular area. R is calculated (readability determination information output step).
R = (L 1 +0.05) / (L 2 +0.05) (2)
 ここで、値Lは、算出された文字色の相対輝度L、及び、算出された背景色の相対輝度Lのうちの大きい方の値であり、値Lは、算出された文字色の相対輝度L、及び、算出された背景色の相対輝度Lのうちの小さい方の値である。 Here, the value L 1 is the larger value of the calculated relative luminance L of the character color and the calculated relative luminance L of the background color, and the value L 2 is the calculated character color. It is the smaller value of the relative luminance L and the calculated relative luminance L of the background color.
 コントラスト判定部12は、算出されたコントラスト比Rが、予め設定された基準値よりも大きいか否かを判定する。ここで、コントラスト判定部12は、文字サイズ情報が表す文字の大きさが18ピクセル未満である場合には、基準値として第1の値(本例では、4.5)を用い、文字サイズ情報が表す文字の大きさが18ピクセル以上である場合には、基準値として第1の値よりも小さい第2の値(本例では、3)を用いる。なお、コントラスト判定部12は、第1の値として7を用いるとともに、第2の値として4.5を用いてもよい。 The contrast determination unit 12 determines whether or not the calculated contrast ratio R is greater than a preset reference value. Here, when the size of the character represented by the character size information is less than 18 pixels, the contrast determination unit 12 uses the first value (4.5 in this example) as the reference value, and the character size information When the size of the character represented by is 18 pixels or more, the second value (3 in this example) smaller than the first value is used as the reference value. The contrast determination unit 12 may use 7 as the first value and 4.5 as the second value.
 即ち、コントラスト判定部12は、文字背景認識部11により特定された矩形エリアのそれぞれに対して、基準値として、文字背景認識部11により取得された文字サイズ情報が表す文字の大きさが大きくなるほど小さくなる値を用いている。 That is, the contrast determination unit 12 increases the character size represented by the character size information acquired by the character background recognition unit 11 as a reference value for each of the rectangular areas specified by the character background recognition unit 11. A smaller value is used.
 そして、コントラスト判定部12は、上記受け付けた文字背景組合せ情報に、上記判定の結果を表す情報(即ち、コントラスト比Rが基準値よりも大きいか否かを表す情報、判定結果)を追加したコントラスト判定結果情報を、判定結果出力部13へ出力する。図15は、コントラスト判定結果情報の一例を示した図である。「true」は、コントラスト比Rが基準値よりも大きいことを表し、「false」は、コントラスト比Rが基準値よりも小さいことを表す。 Then, the contrast determination unit 12 adds the information indicating the determination result (that is, information indicating whether the contrast ratio R is larger than the reference value, the determination result) to the received character background combination information. The determination result information is output to the determination result output unit 13. FIG. 15 is a diagram illustrating an example of contrast determination result information. “True” represents that the contrast ratio R is larger than the reference value, and “false” represents that the contrast ratio R is smaller than the reference value.
 次いで、判定結果出力部13は、コントラスト判定部12により出力されたコントラスト判定結果情報を受け付ける。そして、判定結果出力部13は、受け付けたコントラスト判定結果情報(可読性判定情報)をディスプレイに表示させる(可読性判定情報出力工程)。 Next, the determination result output unit 13 receives the contrast determination result information output by the contrast determination unit 12. And the determination result output part 13 displays the received contrast determination result information (readability determination information) on a display (readability determination information output process).
 以上、説明したように、本発明による情報処理装置の第1実施形態によれば、情報処理装置1は、文字色及び背景色に加えて、文字の大きさにも基づいて、可読性判定情報を出力する。即ち、情報処理装置1は、文字色、背景色、及び、文字の大きさに基づいて、画像の閲覧者が画像内の文字を読み取ることができるか否かを推定する。この結果、情報処理装置1によれば、画像の閲覧者が画像内の文字を読み取ることができるか否かを高い精度にて推定することができる。 As described above, according to the first embodiment of the information processing apparatus of the present invention, the information processing apparatus 1 provides the readability determination information based on the character size in addition to the character color and the background color. Output. That is, the information processing apparatus 1 estimates whether or not the image viewer can read the characters in the image based on the character color, the background color, and the character size. As a result, according to the information processing apparatus 1, it is possible to estimate with high accuracy whether or not the viewer of the image can read the characters in the image.
 更に、上記第1実施形態によれば、情報処理装置1は、文字の大きさが大きくなるほど、より小さなコントラスト比(可読性パラメータ)であっても、基準値よりも小さいと判定する。即ち、情報処理装置1によれば、画像の閲覧者が画像内の文字を読み取ることができるか否かを高い精度にて推定することができる。 Furthermore, according to the first embodiment, the information processing apparatus 1 determines that the larger the character size, the smaller the contrast ratio (readability parameter), the smaller the reference value. That is, according to the information processing apparatus 1, it is possible to estimate with high accuracy whether or not a viewer of an image can read characters in the image.
 なお、情報処理装置1は、コントラスト比Rが基準値よりも大きいか否かを表す情報として、「true」に代えて「○」を用いるとともに、「false」に代えて「×」を用いてもよい。また、情報処理装置1は、矩形エリアの総数に対する、コントラスト比Rが基準値よりも大きいと判定された矩形エリアの数の割合を算出し、算出した割合を出力するように構成されていてもよい。 Note that the information processing apparatus 1 uses “◯” instead of “true” and “x” instead of “false” as information indicating whether or not the contrast ratio R is larger than the reference value. Also good. Further, the information processing apparatus 1 may be configured to calculate the ratio of the number of rectangular areas determined that the contrast ratio R is larger than the reference value with respect to the total number of rectangular areas, and to output the calculated ratio. Good.
 また、判定結果出力部13は、特定された矩形エリアと、その矩形エリアに対して算出されたコントラスト比Rが基準値よりも大きいか否かを表す情報と、を対応付けて、文字背景認識部11により受け付けられた画像情報が表す画像ととともに表示するように構成されていてもよい。 The determination result output unit 13 associates the identified rectangular area with information indicating whether the contrast ratio R calculated for the rectangular area is larger than the reference value, and recognizes the character background. It may be configured to display together with the image represented by the image information received by the unit 11.
 この場合、判定結果出力部13は、コントラスト判定部12により出力されたコントラスト判定結果情報に基づいて、矩形エリアを表す矩形を描画する。更に、判定結果出力部13は、コントラスト判定結果情報に基づいて、コントラスト比Rが基準値よりも大きいか否かを表す情報(本例では、「○」又は「×」)を上記描画された矩形の近傍に描画する。例えば、判定結果出力部13は、図2に示した画像を表す画像情報が文字背景認識部11により受け付けられた場合、図16に示した画像をディスプレイに表示させる。 In this case, the determination result output unit 13 draws a rectangle representing a rectangular area based on the contrast determination result information output by the contrast determination unit 12. Further, based on the contrast determination result information, the determination result output unit 13 draws the information indicating whether or not the contrast ratio R is larger than the reference value (in this example, “◯” or “×”). Draw near the rectangle. For example, when the image information representing the image shown in FIG. 2 is received by the character background recognition unit 11, the determination result output unit 13 displays the image shown in FIG. 16 on the display.
 これによれば、情報処理装置1のユーザは、画像内の文字毎に、画像の閲覧者がその文字を読み取ることができる可能性が十分に高いか否かを容易に認識することができる。即ち、情報処理装置1のユーザの利便性を向上させることができる。 According to this, the user of the information processing apparatus 1 can easily recognize, for each character in the image, whether or not it is highly likely that the viewer of the image can read the character. That is, the convenience of the user of the information processing apparatus 1 can be improved.
 なお、判定結果出力部13は、矢印又は鍵括弧等の記号を用いて、及び/又は、色を変化させることにより、コントラスト比Rが基準値よりも大きいか否かを表す情報と、その情報の対象となる矩形エリアと、の関係を示すように構成されていてもよい。更に、判定結果出力部13は、コントラスト比Rが基準値よりも大きいか否かを表す情報として、「○」及び「×」以外の記号又は文字を用いてもよい。また、判定結果出力部13は、矩形エリアを表す矩形の線の色、線の種類、及び/又は、線の太さにより、コントラスト比Rが基準値よりも大きいか否かを表すように構成されていてもよい。 Note that the determination result output unit 13 uses information such as an arrow or a bracket and / or changes color to indicate whether the contrast ratio R is greater than a reference value, and the information. It may be configured to show the relationship with the rectangular area that is the target of the above. Furthermore, the determination result output unit 13 may use symbols or characters other than “◯” and “x” as information indicating whether or not the contrast ratio R is larger than the reference value. Further, the determination result output unit 13 is configured to indicate whether or not the contrast ratio R is larger than the reference value by the color of the rectangular line representing the rectangular area, the type of the line, and / or the thickness of the line. May be.
<第2実施形態>
 次に、本発明の第2実施形態に係る情報処理装置について説明する。第2実施形態に係る情報処理装置は、上記第1実施形態に係る情報処理装置に対して、所定の整列方向(縦方向又は横方向)に沿って直線状に並ぶように配置された複数の文字(行又は列を構成する文字)を含む領域毎に可読性判定情報を出力する点において相違している。従って、以下、かかる相違点を中心として説明する。
Second Embodiment
Next, an information processing apparatus according to the second embodiment of the present invention will be described. The information processing apparatus according to the second embodiment includes a plurality of information processing apparatuses arranged in a straight line along a predetermined alignment direction (vertical direction or horizontal direction) with respect to the information processing apparatus according to the first embodiment. The difference is that readability determination information is output for each region including characters (characters constituting a row or a column). Accordingly, the following description will focus on such differences.
 第2実施形態に係る情報処理装置1の文字背景認識部11は、上記第1実施形態に係る文字背景認識部11と同様の処理により矩形エリアを特定する。例えば、文字背景認識部11は、図17に示した画像に基づいて、図18に示したように矩形エリアを特定する。 The character background recognition unit 11 of the information processing apparatus 1 according to the second embodiment specifies a rectangular area by the same processing as the character background recognition unit 11 according to the first embodiment. For example, the character background recognition unit 11 specifies a rectangular area as shown in FIG. 18 based on the image shown in FIG.
 そして、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、正方矩形エリアを生成する。正方矩形エリアは、矩形エリアの高さと、矩形エリアの幅と、の和を2により除した値を一辺の長さとし、且つ、矩形エリアの中心と同じ位置を中心とする正方形の領域である。例えば、文字背景認識部11は、図18に示した矩形エリアに基づいて、図19に示したように、正方矩形エリアを生成する。 Then, the character background recognition unit 11 generates a square rectangular area for each of the specified rectangular areas. The square rectangular area is a square area having a value obtained by dividing the sum of the height of the rectangular area and the width of the rectangular area by 2 as the length of one side and centering on the same position as the center of the rectangular area. For example, the character background recognition unit 11 generates a square rectangular area as shown in FIG. 19 based on the rectangular area shown in FIG.
 次に、文字背景認識部11は、生成した複数の正方矩形エリアから、所定の集合条件が成立する正方矩形エリアの集合を抽出する。ここで、集合条件は、各集合を構成する正方矩形エリアの任意の1つと、その集合を構成する他の正方矩形エリアの少なくとも1つと、に対して、下記第1の条件~第4の条件のいずれかが成立している、という条件である。 Next, the character background recognition unit 11 extracts a set of square rectangular areas that satisfy a predetermined set condition from the plurality of generated square rectangular areas. Here, the set conditions include the following first condition to fourth condition for any one of the square rectangular areas constituting each set and at least one of the other square rectangular areas constituting the set. It is a condition that either of the above is true.
 第1の条件は、一方の正方矩形エリアと、他方の正方矩形エリアと、が互いに重なり合う部分を有する(両方が共通する領域を含む)という条件である。
 第2の条件は、一方の正方矩形エリアが、他方の正方矩形エリアの全体を包含しているという条件である。
The first condition is that one square rectangular area and the other square rectangular area have portions that overlap each other (including a common area).
The second condition is a condition that one square rectangular area includes the whole of the other square rectangular area.
 第3の条件は、一方の正方矩形エリアの一辺が、他方の正方矩形エリアの一辺の少なくとも一部と隣接しているという条件である。
 第4の条件は、2つの正方矩形エリア間の整列方向における距離が所定の閾値距離以下であり、且つ、整列方向と直交する方向における2つの正方矩形エリアの範囲の少なくとも一部が共通しているという条件である。ここで、閾値距離は、両方の正方矩形エリアの辺の長さを平均した値に予め設定された値(本例では、1/4)を乗じた値である。
The third condition is that one side of one square rectangular area is adjacent to at least a part of one side of the other square rectangular area.
The fourth condition is that the distance in the alignment direction between the two square rectangular areas is equal to or less than a predetermined threshold distance, and at least part of the range of the two square rectangular areas in the direction orthogonal to the alignment direction is common. It is a condition of being. Here, the threshold distance is a value obtained by multiplying a value obtained by averaging the lengths of the sides of both square rectangular areas by a preset value (in this example, ¼).
 そして、文字背景認識部11は、抽出された正方矩形エリアの集合毎に、その集合を構成する各正方矩形エリアに代えて、その集合を構成する正方矩形エリアの基となった矩形エリアのすべてを含み且つ各辺がそれらの矩形エリアのいずれかの辺を含む矩形エリアを特定する。例えば、文字背景認識部11は、図19に示した正方矩形エリアに基づいて、図20に示した矩形エリアを特定する。また、図21は、集合を構成する矩形エリアと、新たに特定される矩形エリアと、を概念的に示した説明図である。 Then, for each set of extracted square rectangular areas, the character background recognizing unit 11 replaces each square rectangular area constituting the set with all the rectangular areas that are the basis of the square rectangular areas constituting the set. And a rectangular area in which each side includes any one of the rectangular areas. For example, the character background recognition unit 11 specifies the rectangular area shown in FIG. 20 based on the square rectangular area shown in FIG. FIG. 21 is an explanatory diagram conceptually showing a rectangular area constituting the set and a newly specified rectangular area.
 即ち、文字背景認識部11は、上記集合を構成する各正方矩形エリアの基となった矩形エリアの頂点の座標のうちの、X値の最小値Xminと、X値の最大値Xmaxと、Y値の最小値Yminと、Y値の最大値Ymaxと、を新たな矩形エリアの座標として取得する。このとき、文字背景認識部11は、上記集合を構成する各正方矩形エリアの基となった矩形エリアに含まれる黒ドットのすべてを取得し、取得した座標情報のうちの重複する座標情報を削除した座標情報を新たな矩形エリアに含まれる黒ドットの座標情報として取得する。 That is, the character background recognizing unit 11 determines the minimum X value X min and the maximum X value X max of the coordinates of the vertices of the rectangular area that is the basis of each square rectangular area constituting the set. , Y value minimum value Y min and Y value maximum value Y max are acquired as coordinates of a new rectangular area. At this time, the character background recognition unit 11 acquires all of the black dots included in the rectangular area that is the basis of each square rectangular area constituting the set, and deletes the overlapping coordinate information from the acquired coordinate information. The obtained coordinate information is acquired as the coordinate information of the black dots included in the new rectangular area.
 そして、文字背景認識部11は、上記集合を構成する各正方矩形エリアの基となった矩形エリアを特定するための情報を記憶装置から消去するとともに、新たな矩形エリアを特定するための情報を記憶装置に記憶させる。 Then, the character background recognition unit 11 deletes information for specifying the rectangular area that is the basis of each square rectangular area constituting the set from the storage device, and also specifies information for specifying a new rectangular area. Store in a storage device.
 このようにして、文字背景認識部11は、整列方向に沿って直線状に並ぶように配置された複数の文字を表す複数の文字色領域を含む文字含有領域を矩形エリアとして特定する。ここで、文字含有領域は、当該文字含有領域に含まれる任意の文字色領域と、当該文字含有領域に含まれる他のいずれかの文字色領域と、の間の整列方向における距離が、所定の閾値距離以下となるように設定されている。即ち、複数の文字により行又は列が構成されている領域が画像内に存在している場合、その行又は列を構成する複数の文字を含む矩形エリアが生成される。 In this way, the character background recognition unit 11 identifies a character-containing region including a plurality of character color regions representing a plurality of characters arranged in a straight line along the alignment direction as a rectangular area. Here, the character-containing region has a predetermined distance in the alignment direction between an arbitrary character color region included in the character-containing region and any other character color region included in the character-containing region. It is set to be equal to or less than the threshold distance. That is, when an area in which a row or a column is constituted by a plurality of characters exists in the image, a rectangular area including a plurality of characters constituting the row or column is generated.
 従って、文字背景認識部11により特定される矩形エリアは、整列方向に沿って直線状に並ぶように配置された複数の文字を表す文字色領域のすべてを含む領域であり且つ各辺がそれらの文字色領域と背景色領域との間の境界と接するように配置された長方形の領域である。 Therefore, the rectangular area specified by the character background recognition unit 11 is an area that includes all of the character color areas that represent a plurality of characters arranged in a straight line along the alignment direction, and each side has their side. This is a rectangular area arranged so as to be in contact with the boundary between the character color area and the background color area.
 そして、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、矩形エリアの幅及び高さを算出する。次いで、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、上記算出された幅及び高さのうちの、その矩形エリアに対する整列方向と直交する方向における矩形エリアの長さ(即ち、整列方向が横方向である場合、矩形エリアの高さであり、整列方向が縦方向である場合、矩形エリアの幅である)を、当該矩形エリアに含まれる文字の大きさを表す文字サイズ情報として取得する。 Then, the character background recognition unit 11 calculates the width and height of the rectangular area for each specified rectangular area. Next, the character background recognizing unit 11 determines, for each of the specified rectangular areas, the length of the rectangular area in the direction perpendicular to the alignment direction with respect to the rectangular area out of the calculated width and height (that is, If the alignment direction is the horizontal direction, the height of the rectangular area, and if the alignment direction is the vertical direction, the width of the rectangular area), the character size that represents the size of the characters included in the rectangular area Obtain as information.
 即ち、文字背景認識部11は、特定した矩形エリアに対して、その矩形エリアに含まれる複数の文字の大きさを代表する代表値を表す代表文字サイズ情報を文字サイズ情報として取得している、と言うことができる。更に、文字背景認識部11は、複数の文字のうちの、大きさが最大である文字の大きさを代表値として用いている、と言うことができる。 That is, the character background recognition unit 11 acquires, as character size information, representative character size information representing a representative value representing the size of a plurality of characters included in the specified rectangular area. Can be said. Further, it can be said that the character background recognizing unit 11 uses the size of the character having the maximum size among the plurality of characters as the representative value.
 そして、コントラスト判定部12は、文字含有領域として特定された矩形エリアのそれぞれに対して、上記第1実施形態と同様に、コントラスト比Rを算出し、算出したコントラスト比Rが基準値よりも大きいか否かを判定する。 Then, the contrast determination unit 12 calculates the contrast ratio R for each of the rectangular areas specified as the character-containing areas, as in the first embodiment, and the calculated contrast ratio R is larger than the reference value. It is determined whether or not.
 そして、コントラスト判定部12は、上記判定の結果を表す情報を含むコントラスト判定結果情報を、判定結果出力部13へ出力する。次いで、判定結果出力部13は、コントラスト判定部12により出力されたコントラスト判定結果情報をディスプレイに表示させる。 Then, the contrast determination unit 12 outputs contrast determination result information including information indicating the determination result to the determination result output unit 13. Next, the determination result output unit 13 displays the contrast determination result information output by the contrast determination unit 12 on the display.
 以上、説明したように、本発明による情報処理装置の第2実施形態によれば、上記第1実施形態と同様の作用及び効果を奏することができる。
 更に、上記第2実施形態によれば、複数の文字が並んで配置された場合において、複数の文字の大きさが互いに異なる場合(例えば、複数の文字が「かっ」、又は、「Ao」である場合)であっても、複数の文字の大きさを同一の大きさ(同一のフォントサイズ)として取り扱うことができる。
As described above, according to the second embodiment of the information processing apparatus according to the present invention, the same operations and effects as those of the first embodiment can be achieved.
Furthermore, according to the second embodiment, when a plurality of characters are arranged side by side, the sizes of the plurality of characters are different from each other (for example, the plurality of characters are “ka” or “Ao”). In some cases, the size of a plurality of characters can be handled as the same size (the same font size).
 また、判定結果出力部13は、特定された矩形エリアと、その矩形エリアに対して算出されたコントラスト比Rが基準値よりも大きいか否かを表す情報と、を対応付けて、文字背景認識部11により受け付けられた画像情報が表す画像ととともに表示するように構成されていてもよい。 The determination result output unit 13 associates the identified rectangular area with information indicating whether the contrast ratio R calculated for the rectangular area is larger than the reference value, and recognizes the character background. It may be configured to display together with the image represented by the image information received by the unit 11.
 この場合、判定結果出力部13は、コントラスト判定部12により出力されたコントラスト判定結果情報に基づいて、矩形エリアを表す矩形を描画する。更に、判定結果出力部13は、コントラスト判定結果情報に基づいて、コントラスト比Rが基準値よりも大きいか否かを表す情報(本例では、「○」又は「×」)を上記描画された矩形の近傍に描画する。例えば、判定結果出力部13は、図2に示した画像を表す画像情報が文字背景認識部11により受け付けられた場合、図22に示した画像をディスプレイに表示させる。 In this case, the determination result output unit 13 draws a rectangle representing a rectangular area based on the contrast determination result information output by the contrast determination unit 12. Further, based on the contrast determination result information, the determination result output unit 13 draws the information indicating whether or not the contrast ratio R is larger than the reference value (in this example, “◯” or “×”). Draw near the rectangle. For example, when the image information representing the image shown in FIG. 2 is received by the character background recognition unit 11, the determination result output unit 13 displays the image shown in FIG. 22 on the display.
 これによれば、情報処理装置1のユーザは、画像内の文字毎に、画像の閲覧者がその文字を読み取ることができる可能性が十分に高いか否かを容易に認識することができる。即ち、情報処理装置1のユーザの利便性を向上させることができる。 According to this, the user of the information processing apparatus 1 can easily recognize, for each character in the image, whether or not it is highly likely that the viewer of the image can read the character. That is, the convenience of the user of the information processing apparatus 1 can be improved.
<第3実施形態>
 次に、本発明の第3実施形態に係る情報処理装置について説明する。第3実施形態に係る情報処理装置は、上記第2実施形態に係る情報処理装置に対して、整列方向に沿って直線状に並ぶように配置された複数の文字のうちの、大きさが最小である文字の大きさを表す文字サイズ情報を取得する点において相違している。従って、以下、かかる相違点を中心として説明する。
<Third Embodiment>
Next, an information processing apparatus according to the third embodiment of the present invention will be described. The information processing apparatus according to the third embodiment has the smallest size among a plurality of characters arranged in a straight line along the alignment direction with respect to the information processing apparatus according to the second embodiment. The difference is that character size information representing the size of the character is acquired. Accordingly, the following description will focus on such differences.
 第3実施形態に係る情報処理装置1の文字背景認識部11は、上記第2実施形態に係る文字背景認識部11と同様の処理により矩形エリアを特定する。例えば、文字背景認識部11は、図17に示した画像に基づいて、図18に示したように矩形エリアを特定する。 The character background recognition unit 11 of the information processing apparatus 1 according to the third embodiment specifies a rectangular area by the same process as the character background recognition unit 11 according to the second embodiment. For example, the character background recognition unit 11 specifies a rectangular area as shown in FIG. 18 based on the image shown in FIG.
 そして、文字背景認識部11は、上記第2実施形態と同様に、特定された矩形エリアのそれぞれに対して、正方矩形エリアを生成する。例えば、文字背景認識部11は、図18に示した矩形エリアに基づいて、図19に示したように、正方矩形エリアを生成する。 And the character background recognition part 11 produces | generates a square rectangular area with respect to each of the specified rectangular area similarly to the said 2nd Embodiment. For example, the character background recognition unit 11 generates a square rectangular area as shown in FIG. 19 based on the rectangular area shown in FIG.
 次に、文字背景認識部11は、上記第2実施形態と同様に、生成した複数の正方矩形エリアから、所定の集合条件が成立する正方矩形エリアの集合を抽出する。 Next, as in the second embodiment, the character background recognition unit 11 extracts a set of square rectangular areas that satisfy a predetermined set condition from the plurality of generated square rectangular areas.
 そして、文字背景認識部11は、抽出された正方矩形エリアの集合毎に、その集合を構成する各正方矩形エリアに代えて、その集合を構成する正方矩形エリアの基となった矩形エリアの一部を含む矩形エリアを特定する。例えば、文字背景認識部11は、図19に示した正方矩形エリアに基づいて、図23に示した矩形エリアを特定する。また、図24は、集合を構成する矩形エリアと、新たに特定される矩形エリアと、を概念的に示した説明図である。 Then, for each set of extracted square rectangular areas, the character background recognizing unit 11 replaces each square rectangular area that constitutes the set with one rectangular area that is the basis of the square rectangular area that constitutes the set. Identify the rectangular area that contains the part. For example, the character background recognition unit 11 identifies the rectangular area shown in FIG. 23 based on the square rectangular area shown in FIG. FIG. 24 is an explanatory diagram conceptually showing a rectangular area constituting the set and a newly specified rectangular area.
 即ち、文字背景認識部11は、上記集合を構成する各正方矩形エリアの基となった矩形エリアの頂点の座標のうちの、X値の最小値Xminと、X値の最大値Xmaxと、Y値の最小値Yminと、Y値の最大値Ymaxと、を取得する。そして、文字背景認識部11は、取得したX値の最小値Xminと、取得したX値の最大値Xmaxと、の差(即ち、仮想矩形エリアの幅)を算出する。更に、文字背景認識部11は、取得したY値の最小値Yminと、取得したY値の最大値Ymaxと、の差(即ち、仮想矩形エリアの高さ)を算出する。 That is, the character background recognizing unit 11 determines the minimum X value X min and the maximum X value X max of the coordinates of the vertices of the rectangular area that is the basis of each square rectangular area constituting the set. , Y value minimum value Y min and Y value maximum value Y max are acquired. Then, the character background recognizing unit 11 calculates the difference (that is, the width of the virtual rectangular area) between the minimum value X min of the acquired X value and the maximum value X max of the acquired X value. Further, the character background recognizing unit 11 calculates a difference (that is, the height of the virtual rectangular area) between the minimum value Y min of the acquired Y value and the maximum value Y max of the acquired Y value.
 文字背景認識部11は、算出された仮想矩形エリアの高さが、算出された仮想矩形エリアの幅よりも小さい(即ち、仮想矩形エリア内の文字が横方向に並んでいる)場合、上記集合を構成する各正方矩形エリアの基となった矩形エリアのうちの最小の高さを有する矩形エリアの頂点の座標のうちのY値の最小値Ymin及びY値の最大値Ymaxと、上記集合を構成する各正方矩形エリアの基となったすべての矩形エリアの頂点の座標のうちのX値の最小値Xmin及びX値の最大値Xmaxと、を新たな矩形エリアの座標として取得する。 When the calculated height of the virtual rectangular area is smaller than the calculated width of the virtual rectangular area (that is, the characters in the virtual rectangular area are arranged in the horizontal direction), the character background recognizing unit 11 The minimum value Y min of the Y value and the maximum value Y max of the Y value among the coordinates of the vertices of the rectangular area having the minimum height among the rectangular areas that form the square rectangular areas constituting The minimum X value X min and the maximum X value X max of the coordinates of the vertices of all the rectangular areas that are the basis of each square rectangular area constituting the set are acquired as the coordinates of the new rectangular area. To do.
 一方、算出された仮想矩形エリアの高さが、算出された仮想矩形エリアの幅よりも大きい(即ち、仮想矩形エリア内の文字が縦方向に並んでいる)場合、上記集合を構成する各正方矩形エリアの基となった矩形エリアのうちの最小の幅を有する矩形エリアの頂点の座標のうちのX値の最小値Xmin及びX値の最大値Xmaxと、上記集合を構成する各正方矩形エリアの基となったすべての矩形エリアの頂点の座標のうちのY値の最小値Ymin及びY値の最大値Ymaxと、を新たな矩形エリアの座標として取得する。 On the other hand, when the calculated height of the virtual rectangular area is larger than the calculated width of the virtual rectangular area (that is, the characters in the virtual rectangular area are arranged in the vertical direction), each square constituting the above set the maximum value X max of the minimum value X min and X values of X values of the vertexes of the rectangle area coordinates with a minimum width of the rectangular area is the basis of the rectangular area, each square constituting the set The minimum Y value Y min and the maximum Y value Y max of the coordinates of the vertices of all the rectangular areas that are the basis of the rectangular area are acquired as the coordinates of the new rectangular area.
 即ち、文字背景認識部11は、整列方向に沿って直線状に並ぶように配置された複数の文字のうちの、整列方向と直交する方向における長さが最小である文字の当該長さを表す情報を文字サイズ情報として取得する。 That is, the character background recognition unit 11 represents the length of the character having the minimum length in the direction orthogonal to the alignment direction among the plurality of characters arranged in a straight line along the alignment direction. Information is acquired as character size information.
 このとき、文字背景認識部11は、上記集合を構成する各正方矩形エリアの基となった矩形エリアに含まれる黒ドットのうちの、新たな矩形エリアに含まれる黒ドットの座標情報を取得し、取得した座標情報のうちの重複する座標情報を削除した座標情報を新たな矩形エリアに含まれる黒ドットの座標情報として取得する。 At this time, the character background recognition unit 11 acquires coordinate information of the black dots included in the new rectangular area among the black dots included in the rectangular area that is the basis of each square rectangular area constituting the set. The coordinate information obtained by deleting the overlapping coordinate information in the acquired coordinate information is acquired as the coordinate information of the black dots included in the new rectangular area.
 そして、文字背景認識部11は、上記集合を構成する各正方矩形エリアの基となった矩形エリアを特定するための情報を記憶装置から消去するとともに、新たな矩形エリアを特定するための情報を記憶装置に記憶させる。 Then, the character background recognition unit 11 deletes information for specifying the rectangular area that is the basis of each square rectangular area constituting the set from the storage device, and also specifies information for specifying a new rectangular area. Store in a storage device.
 そして、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、矩形エリアの幅及び高さを算出する。次いで、文字背景認識部11は、特定された矩形エリアのそれぞれに対して、上記算出された幅及び高さのうちの、その矩形エリアに対する整列方向と直交する方向における矩形エリアの長さ(即ち、整列方向が横方向である場合、矩形エリアの高さであり、整列方向が縦方向である場合、矩形エリアの幅である)を、当該矩形エリアに含まれる文字の大きさを表す文字サイズ情報として取得する。 Then, the character background recognition unit 11 calculates the width and height of the rectangular area for each specified rectangular area. Next, the character background recognizing unit 11 determines, for each of the specified rectangular areas, the length of the rectangular area in the direction perpendicular to the alignment direction with respect to the rectangular area out of the calculated width and height (that is, If the alignment direction is the horizontal direction, the height of the rectangular area, and if the alignment direction is the vertical direction, the width of the rectangular area), the character size that represents the size of the characters included in the rectangular area Obtain as information.
 即ち、文字背景認識部11は、特定した矩形エリアに対して、その矩形エリアに含まれる複数の文字の大きさを代表する代表値を表す代表文字サイズ情報を文字サイズ情報として取得している、と言うことができる。更に、文字背景認識部11は、複数の文字のうちの、大きさが最小である文字の大きさを代表値として用いている、と言うことができる。 That is, the character background recognition unit 11 acquires, as character size information, representative character size information representing a representative value representing the size of a plurality of characters included in the specified rectangular area. Can be said. Furthermore, it can be said that the character background recognition unit 11 uses the size of the character having the smallest size among the plurality of characters as the representative value.
 そして、コントラスト判定部12は、文字含有領域として特定された矩形エリアのそれぞれに対して、上記第1実施形態と同様に、コントラスト比Rを算出し、算出したコントラスト比Rが基準値よりも大きいか否かを判定する。 Then, the contrast determination unit 12 calculates the contrast ratio R for each of the rectangular areas specified as the character-containing areas, as in the first embodiment, and the calculated contrast ratio R is larger than the reference value. It is determined whether or not.
 そして、コントラスト判定部12は、上記判定の結果を表す情報を含むコントラスト判定結果情報を、判定結果出力部13へ出力する。次いで、判定結果出力部13は、コントラスト判定部12により出力されたコントラスト判定結果情報をディスプレイに表示させる。 Then, the contrast determination unit 12 outputs contrast determination result information including information indicating the determination result to the determination result output unit 13. Next, the determination result output unit 13 displays the contrast determination result information output by the contrast determination unit 12 on the display.
<第4実施形態>
 次に、本発明の第4実施形態に係る情報処理装置について説明する。第4実施形態に係る情報処理装置は、上記第1実施形態に係る情報処理装置に対して、任意の文字色を表す文字色情報と、任意の背景色を表す背景色情報と、の複数の組み合わせのそれぞれに対して、コントラスト比Rが基準値よりも大きいか否かを表す情報を出力する点において相違している。従って、以下、かかる相違点を中心として説明する。
<Fourth embodiment>
Next, an information processing apparatus according to the fourth embodiment of the present invention will be described. The information processing apparatus according to the fourth embodiment has a plurality of character color information representing an arbitrary character color and background color information representing an arbitrary background color with respect to the information processing apparatus according to the first embodiment. The difference is that information indicating whether the contrast ratio R is larger than the reference value is output for each combination. Accordingly, the following description will focus on such differences.
 第4実施形態に係るコントラスト判定部12は、任意の文字色を表す文字色情報と、任意の背景色を表す背景色情報と、の複数の組み合わせ(本例では、文字色及び背景色のそれぞれのRGB値の各値を32ずつ変化させた組み合わせ)に対して、コントラスト比Rを算出する。 The contrast determination unit 12 according to the fourth embodiment includes a plurality of combinations of character color information representing an arbitrary character color and background color information representing an arbitrary background color (in this example, each of the character color and the background color). The contrast ratio R is calculated for a combination of 32 values of RGB values changed by 32).
 更に、コントラスト判定部12は、文字背景認識部11により特定された矩形エリアのそれぞれに対して、その矩形エリアに対して取得された文字サイズ情報に応じて定められる基準値よりも、上記算出されたコントラスト比Rが大きいか否かを判定する。 Furthermore, the contrast determination unit 12 calculates the above for each rectangular area specified by the character background recognition unit 11 from the reference value determined according to the character size information acquired for the rectangular area. It is determined whether the contrast ratio R is large.
 そして、判定結果出力部13は、上記複数の組み合わせのそれぞれに対して、コントラスト比Rが基準値よりも大きいか否かを表す情報をディスプレイに表示させる。例えば、判定結果出力部13は、各組み合わせに対して、「文字の大きさを変えなくても十分なコントラスト比がある」、「文字の大きさを変えれば十分なコントラスト比がある」、又は、「文字の大きさを変えても十分なコントラスト比が得られない」旨を表す情報を出力する。 Then, the determination result output unit 13 causes the display to display information indicating whether the contrast ratio R is larger than the reference value for each of the plurality of combinations. For example, for each combination, the determination result output unit 13 “has a sufficient contrast ratio without changing the character size”, “has a sufficient contrast ratio when the character size is changed”, or , Information indicating that “a sufficient contrast ratio cannot be obtained even if the character size is changed” is output.
 本例では、判定結果出力部13は、図25に示したように、コントラスト比が不十分である旨を表す情報として「-」を描画し、文字の大きさを変更すればコントラスト比が十分である旨を表す情報として「△」を描画する。なお、判定結果出力部13は、他の記号等を用いてもよい。 In this example, as shown in FIG. 25, the determination result output unit 13 draws “−” as information indicating that the contrast ratio is insufficient, and the contrast ratio is sufficient if the character size is changed. “Δ” is drawn as information indicating that the Note that the determination result output unit 13 may use other symbols or the like.
 以上、説明したように、本発明による情報処理装置の第4実施形態によっても、上記第1実施形態と同様の作用及び効果を奏することができる。
 更に、上記第4実施形態によれば、情報処理装置1のユーザは、文字色及び背景色の組み合わせとして、いずれの組み合わせを用いることにより、画像の閲覧者が文字を読み取ることができる可能性が十分に高いか否かを容易に認識することができる。即ち、情報処理装置1のユーザの利便性を向上させることができる。
As described above, the fourth embodiment of the information processing apparatus according to the present invention can provide the same operations and effects as the first embodiment.
Furthermore, according to the said 4th Embodiment, the user of the information processing apparatus 1 may be able to read a character by the viewer of an image by using any combination as a combination of a character color and a background color. Whether it is sufficiently high can be easily recognized. That is, the convenience of the user of the information processing apparatus 1 can be improved.
<第5実施形態>
 次に、本発明の第5実施形態に係る情報処理装置について図26を参照しながら説明する。
 第5実施形態に係る情報処理装置100は、文字サイズ情報取得部(文字サイズ情報取得手段)101と、色情報取得部(色情報取得手段)102と、可読性判定情報出力部(可読性判定情報出力手段)103と、を含む。
<Fifth Embodiment>
Next, an information processing apparatus according to the fifth embodiment of the present invention will be described with reference to FIG.
An information processing apparatus 100 according to the fifth embodiment includes a character size information acquisition unit (character size information acquisition unit) 101, a color information acquisition unit (color information acquisition unit) 102, and a readability determination information output unit (readability determination information output). Means) 103.
 文字サイズ情報取得部101は、文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得する。 The character size information acquisition unit 101 uses the image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color. Character size information indicating the size of the character represented by the character color area is acquired.
 色情報取得部102は、上記画像情報に基づいて、上記文字色を表す文字色情報と、上記背景色を表す背景色情報と、を取得する。 The color information acquisition unit 102 acquires character color information representing the character color and background color information representing the background color based on the image information.
 可読性判定情報出力部103は、文字サイズ情報取得部101により取得された文字サイズ情報と、色情報取得部102により取得された文字色情報及び背景色情報と、に基づいて、上記画像の閲覧者が上記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得する。更に、可読性判定情報出力部103は、当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する。 The readability determination information output unit 103 reads the image based on the character size information acquired by the character size information acquisition unit 101 and the character color information and background color information acquired by the color information acquisition unit 102. Obtains a readability parameter having a value that increases as the likelihood of reading the character increases. Furthermore, the readability determination information output unit 103 outputs readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value.
 これによれば、情報処理装置100は、文字色及び背景色に加えて、文字の大きさにも基づいて、可読性判定情報を出力する。即ち、情報処理装置100は、文字色、背景色、及び、文字の大きさに基づいて、画像の閲覧者が画像内の文字を読み取ることができるか否かを推定する。この結果、情報処理装置100によれば、画像の閲覧者が画像内の文字を読み取ることができるか否かを高い精度にて推定することができる。 According to this, the information processing apparatus 100 outputs the readability determination information based on the character size in addition to the character color and the background color. That is, the information processing apparatus 100 estimates whether or not a viewer of an image can read characters in the image based on the character color, background color, and character size. As a result, according to the information processing apparatus 100, it is possible to estimate with high accuracy whether or not the viewer of the image can read the characters in the image.
 この場合、上記可読性判定情報出力手段は、上記基準値として、上記取得された文字サイズ情報が表す文字の大きさが大きくなるほど小さくなる値を用いるように構成されることが好適である。 In this case, it is preferable that the readability determination information output unit is configured to use a value that decreases as the character size represented by the acquired character size information increases as the reference value.
 これによれば、情報処理装置は、文字の大きさが大きくなるほど、より小さな可読性パラメータであっても、基準値よりも小さいと判定する。即ち、上記情報処理装置によれば、画像の閲覧者が画像内の文字を読み取ることができるか否かを高い精度にて推定することができる。 According to this, the information processing apparatus determines that the smaller the readability parameter, the smaller the character size, the smaller the reference value. That is, according to the information processing apparatus, it is possible to estimate with high accuracy whether or not a viewer of an image can read characters in the image.
 この場合、上記文字サイズ情報取得手段は、上記文字を表す文字色領域を含む領域であり且つ各辺が当該文字色領域と上記背景色領域との間の境界と接するように配置された長方形の領域の大きさに基づいて、当該文字の大きさを表す文字サイズ情報を取得するように構成されることが好適である。 In this case, the character size information acquisition means is a region including a character color region representing the character, and a rectangular shape arranged so that each side is in contact with the boundary between the character color region and the background color region. It is preferable that the character size information indicating the size of the character is acquired based on the size of the region.
 この場合、上記文字サイズ情報取得手段は、所定の整列方向に沿って直線状に並ぶように配置された複数の文字を表す複数の文字色領域を含む文字含有領域に対して、当該複数の文字の大きさを代表する代表値を表す代表文字サイズ情報を上記文字サイズ情報として取得するように構成され、
 上記可読性判定情報出力手段は、上記文字含有領域に対する上記可読性判定情報を出力するように構成されることが好適である。
In this case, the character size information acquisition means performs a plurality of characters on a character-containing region including a plurality of character color regions representing a plurality of characters arranged in a straight line along a predetermined alignment direction. Representative character size information representing a representative value representing the size of the character size information is acquired as the character size information,
The readability determination information output means is preferably configured to output the readability determination information for the character-containing region.
 ところで、複数の文字が並んで配置された場合において、複数の文字の大きさが互いに異なる場合(例えば、複数の文字が「かっ」、又は、「Ao」である場合)がある。このような場合であっても、上記構成によれば、複数の文字の大きさを同一の大きさ(同一のフォントサイズ)として取り扱うことができる。 Incidentally, when a plurality of characters are arranged side by side, the sizes of the plurality of characters may be different from each other (for example, the plurality of characters may be “ka” or “Ao”). Even in such a case, according to the above configuration, the size of a plurality of characters can be handled as the same size (the same font size).
 この場合、上記文字含有領域は、当該文字含有領域に含まれる任意の文字色領域と、当該文字含有領域に含まれる他のいずれかの文字色領域と、の間の上記整列方向における距離が、所定の閾値距離以下となるように設定されることが好適である。 In this case, the character-containing region has a distance in the alignment direction between an arbitrary character color region included in the character-containing region and any other character color region included in the character-containing region. It is preferable to set the distance to be equal to or less than a predetermined threshold distance.
 この場合、上記文字サイズ情報取得手段は、上記複数の文字のうちの、大きさが最大である文字の大きさを上記代表値として用いるように構成されることが好適である。 In this case, it is preferable that the character size information obtaining unit is configured to use the size of the character having the maximum size among the plurality of characters as the representative value.
 この場合、上記文字サイズ情報取得手段は、上記複数の文字を表す文字色領域のすべてを含む領域であり且つ各辺が当該文字色領域と上記背景色領域との間の境界と接するように配置された長方形の領域の、上記整列方向と直交する方向における長さを表す情報を上記代表文字サイズ情報として取得するように構成されることが好適である。 In this case, the character size information acquisition means is an area including all of the character color areas representing the plurality of characters, and is arranged so that each side is in contact with the boundary between the character color area and the background color area It is preferable that information representing the length of the rectangular region formed in a direction orthogonal to the alignment direction is acquired as the representative character size information.
 また、上記情報処理装置の他の態様において、
 上記文字サイズ情報取得手段は、上記複数の文字のうちの、大きさが最小である文字の大きさを上記代表値として用いるように構成されることが好適である。
In another aspect of the information processing apparatus,
It is preferable that the character size information acquisition unit is configured to use, as the representative value, a character size having a minimum size among the plurality of characters.
 この場合、上記文字サイズ情報取得手段は、上記複数の文字のうちの、上記整列方向と直交する方向における長さが最小である文字の当該長さを表す情報を上記代表文字サイズ情報として取得するように構成されることが好適である。 In this case, the character size information acquisition unit acquires, as the representative character size information, information representing the length of the character having the minimum length in the direction orthogonal to the alignment direction among the plurality of characters. It is preferable to be configured as described above.
 この場合、上記色情報取得手段は、上記文字色領域内の色を表す値を平均した値を表す情報を上記文字色情報として取得するとともに、上記背景色領域内の色を表す値を平均した値を表す情報を上記背景色情報として取得するように構成されることが好適である。 In this case, the color information acquisition means acquires information representing a value obtained by averaging values representing colors in the character color area as the character color information, and averages values representing colors in the background color area. It is preferable that information representing a value is acquired as the background color information.
 この場合、上記情報処理装置は、
 上記画像に含まれる色を表す値を第1の値及び第2の値のいずれかに変換する2値化処理を行い、当該第1の値が表す色に着色された領域を上記文字色領域として用いるとともに当該第2の値が表す色に着色された領域を上記背景色領域として用いるように構成されることが好適である。
In this case, the information processing apparatus
Performing binarization processing for converting a value representing a color included in the image into one of a first value and a second value, and converting the region colored by the color represented by the first value into the character color region It is preferable that the region colored in the color represented by the second value is used as the background color region.
 この場合、上記可読性判定情報出力手段は、上記可読性判定情報を表示することにより出力するように構成されることが好適である。 In this case, it is preferable that the readability determination information output means is configured to output by displaying the readability determination information.
 この場合、上記可読性判定情報出力手段は、上記可読性判定情報を、当該可読性判定情報の基となった上記文字色領域と対応付けて、上記画像とともに表示するように構成されることが好適である。 In this case, it is preferable that the readability determination information output unit is configured to display the readability determination information together with the image in association with the character color region that is the basis of the readability determination information. .
 これによれば、情報処理装置のユーザは、画像内の文字毎に、画像の閲覧者がその文字を読み取ることができる可能性が十分に高いか否かを容易に認識することができる。即ち、情報処理装置のユーザの利便性を向上させることができる。 According to this, the user of the information processing apparatus can easily recognize, for each character in the image, whether or not it is highly likely that the viewer of the image can read the character. That is, the convenience of the user of the information processing apparatus can be improved.
 この場合、上記可読性判定情報出力手段は、任意の文字色を表す文字色情報と、任意の背景色を表す背景色情報と、の複数の組み合わせのそれぞれに対して、上記可読性パラメータを取得するとともに、当該取得した可読性パラメータが上記取得された文字サイズ情報に応じて定められる上記基準値よりも大きいか否かを表す可読性判定情報を出力するように構成されることが好適である。 In this case, the readability determination information output unit acquires the readability parameter for each of a plurality of combinations of character color information representing an arbitrary character color and background color information representing an arbitrary background color. It is preferable that the readability determination information indicating whether or not the acquired readability parameter is larger than the reference value determined according to the acquired character size information is output.
 これによれば、情報処理装置のユーザは、文字色及び背景色の組み合わせとして、いずれの組み合わせを用いることにより、画像の閲覧者が文字を読み取ることができる可能性が十分に高いか否かを容易に認識することができる。即ち、情報処理装置のユーザの利便性を向上させることができる。 According to this, it is determined whether or not the user of the information processing apparatus has a sufficiently high possibility that the viewer of the image can read the character by using any combination as the combination of the character color and the background color. It can be easily recognized. That is, the convenience of the user of the information processing apparatus can be improved.
 この場合、上記可読性判定情報出力手段は、上記文字色の相対輝度、及び、上記背景色の相対輝度に基づいてコントラスト比を算出し、当該算出したコントラスト比を上記可読性パラメータとして取得するように構成されることが好適である。 In this case, the readability determination information output unit is configured to calculate a contrast ratio based on the relative luminance of the character color and the relative luminance of the background color, and acquire the calculated contrast ratio as the readability parameter. It is preferred that
 また、本発明の他の形態である情報処理方法は、
 文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得し、
 上記画像情報に基づいて、上記文字色を表す文字色情報と、上記背景色を表す背景色情報と、を取得し、
 上記取得された文字サイズ情報と、上記取得された文字色情報及び背景色情報と、に基づいて、上記画像の閲覧者が上記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得するとともに当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する、方法である。
In addition, an information processing method according to another aspect of the present invention includes:
Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Get character size information that represents
Based on the image information, obtain character color information representing the character color and background color information representing the background color,
Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases. This is a method of acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value.
 この場合、上記情報処理方法は、
 上記基準値として、上記取得された文字サイズ情報が表す文字の大きさが大きくなるほど小さくなる値を用いるように構成されることが好適である。
In this case, the information processing method is
It is preferable that the reference value is configured to use a value that decreases as the size of the character represented by the acquired character size information increases.
 この場合、上記情報処理方法は、
 上記文字を表す文字色領域を含む領域であり且つ各辺が当該文字色領域と上記背景色領域との間の境界と接するように配置された長方形の領域の大きさに基づいて、当該文字の大きさを表す文字サイズ情報を取得するように構成されることが好適である。
In this case, the information processing method is
Based on the size of a rectangular region that is a region including a character color region representing the character and is arranged so that each side is in contact with the boundary between the character color region and the background color region. It is preferable to be configured to acquire character size information indicating the size.
 この場合、上記情報処理方法は、
 直線状に並ぶように配置された複数の文字を表す複数の文字色領域を含む文字含有領域に対して、当該複数の文字の大きさを代表する代表値を表す代表文字サイズ情報を上記文字サイズ情報として取得し、
 上記文字含有領域に対する上記可読性判定情報を出力するように構成されることが好適である。
In this case, the information processing method is
For character-containing areas including a plurality of character color areas representing a plurality of characters arranged in a straight line, representative character size information representing a representative value representing the size of the plurality of characters is displayed as the character size. As information,
It is preferable that the readability determination information for the character-containing region is output.
 また、本発明の他の形態であるプログラムは、
 情報処理装置に、
 文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得する文字サイズ情報取得手段と、
 上記画像情報に基づいて、上記文字色を表す文字色情報と、上記背景色を表す背景色情報と、を取得する色情報取得手段と、
 上記取得された文字サイズ情報と、上記取得された文字色情報及び背景色情報と、に基づいて、上記画像の閲覧者が上記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得するとともに当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する可読性判定情報出力手段と、
 を実現させるためのプログラムである。
Moreover, the program which is the other form of this invention is:
In the information processing device,
Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Character size information acquisition means for acquiring character size information representing
Color information acquisition means for acquiring character color information representing the character color and background color information representing the background color based on the image information;
Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases. Readability determination information output means for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value;
It is a program for realizing.
 この場合、上記可読性判定情報出力手段は、上記基準値として、上記取得された文字サイズ情報が表す文字の大きさが大きくなるほど小さくなる値を用いるように構成されることが好適である。 In this case, it is preferable that the readability determination information output unit is configured to use a value that decreases as the character size represented by the acquired character size information increases as the reference value.
 この場合、上記文字サイズ情報取得手段は、上記文字を表す文字色領域を含む領域であり且つ各辺が当該文字色領域と上記背景色領域との間の境界と接するように配置された長方形の領域の大きさに基づいて、当該文字の大きさを表す文字サイズ情報を取得するように構成されることが好適である。 In this case, the character size information acquisition means is a region including a character color region representing the character, and a rectangular shape arranged so that each side is in contact with the boundary between the character color region and the background color region. It is preferable that the character size information indicating the size of the character is acquired based on the size of the region.
 この場合、上記文字サイズ情報取得手段は、直線状に並ぶように配置された複数の文字を表す複数の文字色領域を含む文字含有領域に対して、当該複数の文字の大きさを代表する代表値を表す代表文字サイズ情報を上記文字サイズ情報として取得するように構成され、
 上記可読性判定情報出力手段は、上記文字含有領域に対する上記可読性判定情報を出力するように構成されることが好適である。
In this case, the character size information acquisition means is a representative representing the size of the plurality of characters with respect to a character-containing region including a plurality of character color regions representing a plurality of characters arranged in a straight line. Configured to obtain representative character size information representing a value as the character size information,
The readability determination information output means is preferably configured to output the readability determination information for the character-containing region.
 上述した構成を有する、情報処理方法、又は、プログラム、の発明であっても、上記情報処理装置と同様の作用を有するために、上述した本発明の目的を達成することができる。 Even the invention of the information processing method or program having the above-described configuration can achieve the above-described object of the present invention because it has the same operation as the information processing apparatus.
 以上、上記各実施形態を参照して本願発明を説明したが、本願発明は、上述した実施形態に限定されるものではない。本願発明の構成及び詳細に、本願発明の範囲内において当業者が理解し得る様々な変更をすることができる。 Although the present invention has been described with reference to the above embodiments, the present invention is not limited to the above-described embodiments. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.
 なお、上記各実施形態において情報処理装置1の各機能は、CPUがプログラム(ソフトウェア)を実行することにより実現されていたが、回路等のハードウェアにより実現されていてもよい。 In addition, in each said embodiment, each function of the information processing apparatus 1 was implement | achieved when CPU performed a program (software), However, You may implement | achieve by hardware, such as a circuit.
 また、上記各実施形態においてプログラムは、記憶装置に記憶されていたが、コンピュータが読み取り可能な記録媒体に記憶されていてもよい。例えば、記録媒体は、フレキシブルディスク、光ディスク、光磁気ディスク、及び、半導体メモリ等の可搬性を有する媒体である。 In each of the above embodiments, the program is stored in the storage device, but may be stored in a computer-readable recording medium. For example, the recording medium is a portable medium such as a flexible disk, an optical disk, a magneto-optical disk, and a semiconductor memory.
 また、上記実施形態の他の変形例として、上述した実施形態及び変形例の任意の組み合わせが採用されてもよい。 Further, as another modified example of the above-described embodiment, any combination of the above-described embodiments and modified examples may be employed.
 なお、本発明は、日本国にて2009年6月2日に出願された特願2009-132885の特許出願に基づく優先権主張の利益を享受するものであり、当該特許出願にて開示された内容のすべてが本明細書に含まれるものとする。 The present invention enjoys the benefit of the priority claim based on the patent application of Japanese Patent Application No. 2009-132858 filed on June 2, 2009 in Japan, and was disclosed in that patent application. The entire contents are intended to be included herein.
 本発明は、画像の閲覧者が画像内の文字を読み取ることができるか否かを推定する情報処理装置等に適用可能である。 The present invention is applicable to an information processing apparatus that estimates whether or not a viewer of an image can read characters in the image.
1   情報処理装置
11  文字背景認識部
12  コントラスト判定部
13  判定結果出力部
100 情報処理装置
101 文字サイズ情報取得部
102 色情報取得部
103 可読性判定情報出力部
 
DESCRIPTION OF SYMBOLS 1 Information processing apparatus 11 Character background recognition part 12 Contrast determination part 13 Determination result output part 100 Information processing apparatus 101 Character size information acquisition part 102 Color information acquisition part 103 Readability determination information output part

Claims (23)

  1.  文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得する文字サイズ情報取得手段と、
     前記画像情報に基づいて、前記文字色を表す文字色情報と、前記背景色を表す背景色情報と、を取得する色情報取得手段と、
     前記取得された文字サイズ情報と、前記取得された文字色情報及び背景色情報と、に基づいて、前記画像の閲覧者が前記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得するとともに当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する可読性判定情報出力手段と、
     を備える情報処理装置。
    Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Character size information acquisition means for acquiring character size information representing
    Color information acquisition means for acquiring character color information representing the character color and background color information representing the background color based on the image information;
    Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases. Readability determination information output means for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value;
    An information processing apparatus comprising:
  2.  請求項1に記載の情報処理装置であって、
     前記可読性判定情報出力手段は、前記基準値として、前記取得された文字サイズ情報が表す文字の大きさが大きくなるほど小さくなる値を用いるように構成された情報処理装置。
    The information processing apparatus according to claim 1,
    The readability determination information output unit is an information processing apparatus configured to use, as the reference value, a value that decreases as the size of the character represented by the acquired character size information increases.
  3.  請求項1又は請求項2に記載の情報処理装置であって、
     前記文字サイズ情報取得手段は、前記文字を表す文字色領域を含む領域であり且つ各辺が当該文字色領域と前記背景色領域との間の境界と接するように配置された長方形の領域の大きさに基づいて、当該文字の大きさを表す文字サイズ情報を取得するように構成された情報処理装置。
    The information processing apparatus according to claim 1 or 2,
    The character size information acquisition means is a region including a character color region representing the character and a size of a rectangular region arranged so that each side is in contact with a boundary between the character color region and the background color region. An information processing apparatus configured to acquire character size information representing the size of the character based on the size.
  4.  請求項1乃至請求項3のいずれか一項に記載の情報処理装置であって、
     前記文字サイズ情報取得手段は、所定の整列方向に沿って直線状に並ぶように配置された複数の文字を表す複数の文字色領域を含む文字含有領域に対して、当該複数の文字の大きさを代表する代表値を表す代表文字サイズ情報を前記文字サイズ情報として取得するように構成され、
     前記可読性判定情報出力手段は、前記文字含有領域に対する前記可読性判定情報を出力するように構成された情報処理装置。
    An information processing apparatus according to any one of claims 1 to 3,
    The character size information acquisition unit is configured to determine the size of the plurality of characters with respect to a character-containing region including a plurality of character color regions representing a plurality of characters arranged in a straight line along a predetermined alignment direction. Representative character size information representing a representative value representing the character size information is acquired as the character size information,
    The information processing apparatus configured to output the readability determination information for the character-containing region.
  5.  請求項4に記載の情報処理装置であって、
     前記文字含有領域は、当該文字含有領域に含まれる任意の文字色領域と、当該文字含有領域に含まれる他のいずれかの文字色領域と、の間の前記整列方向における距離が、所定の閾値距離以下となるように設定された情報処理装置。
    The information processing apparatus according to claim 4,
    The distance in the alignment direction between any character color region included in the character-containing region and any other character color region included in the character-containing region is a predetermined threshold value. An information processing apparatus set to be less than or equal to the distance.
  6.  請求項4又は請求項5に記載の情報処理装置であって、
     前記文字サイズ情報取得手段は、前記複数の文字のうちの、大きさが最大である文字の大きさを前記代表値として用いるように構成された情報処理装置。
    The information processing apparatus according to claim 4 or 5,
    The information processing apparatus configured to use the character size having the maximum size among the plurality of characters as the representative value.
  7.  請求項6に記載の情報処理装置であって、
     前記文字サイズ情報取得手段は、前記複数の文字を表す文字色領域のすべてを含む領域であり且つ各辺が当該文字色領域と前記背景色領域との間の境界と接するように配置された長方形の領域の、前記整列方向と直交する方向における長さを表す情報を前記代表文字サイズ情報として取得するように構成された情報処理装置。
    The information processing apparatus according to claim 6,
    The character size information acquisition means is an area that includes all of the character color areas representing the plurality of characters and is arranged so that each side is in contact with the boundary between the character color area and the background color area An information processing apparatus configured to acquire, as the representative character size information, information representing the length of the region in a direction orthogonal to the alignment direction.
  8.  請求項4又は請求項5に記載の情報処理装置であって、
     前記文字サイズ情報取得手段は、前記複数の文字のうちの、大きさが最小である文字の大きさを前記代表値として用いるように構成された情報処理装置。
    The information processing apparatus according to claim 4 or 5,
    The information processing apparatus configured to use, as the representative value, a character size having a minimum size among the plurality of characters.
  9.  請求項8に記載の情報処理装置であって、
     前記文字サイズ情報取得手段は、前記複数の文字のうちの、前記整列方向と直交する方向における長さが最小である文字の当該長さを表す情報を前記代表文字サイズ情報として取得するように構成された情報処理装置。
    The information processing apparatus according to claim 8,
    The character size information acquisition unit is configured to acquire, as the representative character size information, information representing the length of a character having a minimum length in a direction orthogonal to the alignment direction among the plurality of characters. Information processing apparatus.
  10.  請求項1乃至請求項9のいずれか一項に記載の情報処理装置であって、
     前記色情報取得手段は、前記文字色領域内の色を表す値を平均した値を表す情報を前記文字色情報として取得するとともに、前記背景色領域内の色を表す値を平均した値を表す情報を前記背景色情報として取得するように構成された情報処理装置。
    An information processing apparatus according to any one of claims 1 to 9,
    The color information acquisition means acquires information representing a value obtained by averaging values representing colors in the character color area as the character color information, and represents a value obtained by averaging values representing colors in the background color area. An information processing apparatus configured to acquire information as the background color information.
  11.  請求項1乃至請求項10のいずれか一項に記載の情報処理装置であって、
     前記画像に含まれる色を表す値を第1の値及び第2の値のいずれかに変換する2値化処理を行い、当該第1の値が表す色に着色された領域を前記文字色領域として用いるとともに当該第2の値が表す色に着色された領域を前記背景色領域として用いるように構成された情報処理装置。
    An information processing apparatus according to any one of claims 1 to 10,
    Performing binarization processing for converting a value representing a color included in the image into one of a first value and a second value, and converting an area colored by the color represented by the first value into the character color area And an information processing apparatus configured to use, as the background color area, an area colored in the color represented by the second value.
  12.  請求項1乃至請求項11のいずれか一項に記載の情報処理装置であって、
     前記可読性判定情報出力手段は、前記可読性判定情報を表示することにより出力するように構成された情報処理装置。
    An information processing apparatus according to any one of claims 1 to 11,
    The readability determination information output unit is an information processing apparatus configured to display and output the readability determination information.
  13.  請求項12に記載の情報処理装置であって、
     前記可読性判定情報出力手段は、前記可読性判定情報を、当該可読性判定情報の基となった前記文字色領域と対応付けて、前記画像とともに表示するように構成された情報処理装置。
    An information processing apparatus according to claim 12,
    The readability determination information output unit is an information processing apparatus configured to display the readability determination information together with the image in association with the character color region that is the basis of the readability determination information.
  14.  請求項1乃至請求項13のいずれか一項に記載の情報処理装置であって、
     前記可読性判定情報出力手段は、任意の文字色を表す文字色情報と、任意の背景色を表す背景色情報と、の複数の組み合わせのそれぞれに対して、前記可読性パラメータを取得するとともに、当該取得した可読性パラメータが前記取得された文字サイズ情報に応じて定められる前記基準値よりも大きいか否かを表す可読性判定情報を出力するように構成された情報処理装置。
    An information processing apparatus according to any one of claims 1 to 13,
    The readability determination information output means acquires the readability parameter for each of a plurality of combinations of character color information representing an arbitrary character color and background color information representing an arbitrary background color, and the acquisition An information processing apparatus configured to output readability determination information indicating whether the readability parameter is larger than the reference value determined in accordance with the acquired character size information.
  15.  請求項1乃至請求項14のいずれか一項に記載の情報処理装置であって、
     前記可読性判定情報出力手段は、前記文字色の相対輝度、及び、前記背景色の相対輝度に基づいてコントラスト比を算出し、当該算出したコントラスト比を前記可読性パラメータとして取得するように構成された情報処理装置。
    An information processing apparatus according to any one of claims 1 to 14,
    The readability determination information output unit is configured to calculate a contrast ratio based on the relative luminance of the character color and the relative luminance of the background color, and to acquire the calculated contrast ratio as the readability parameter Processing equipment.
  16.  文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得し、
     前記画像情報に基づいて、前記文字色を表す文字色情報と、前記背景色を表す背景色情報と、を取得し、
     前記取得された文字サイズ情報と、前記取得された文字色情報及び背景色情報と、に基づいて、前記画像の閲覧者が前記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得するとともに当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する、情報処理方法。
    Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Get character size information that represents
    Based on the image information, obtain character color information representing the character color and background color information representing the background color,
    Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases. An information processing method for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value.
  17.  請求項16に記載の情報処理方法であって、
     前記基準値として、前記取得された文字サイズ情報が表す文字の大きさが大きくなるほど小さくなる値を用いる、情報処理方法。
    An information processing method according to claim 16, comprising:
    An information processing method, wherein a value that decreases as a character size represented by the acquired character size information increases is used as the reference value.
  18.  請求項16又は請求項17に記載の情報処理方法であって、
     前記文字を表す文字色領域を含む領域であり且つ各辺が当該文字色領域と前記背景色領域との間の境界と接するように配置された長方形の領域の大きさに基づいて、当該文字の大きさを表す文字サイズ情報を取得する、情報処理方法。
    An information processing method according to claim 16 or claim 17,
    Based on the size of a rectangular area that is a region that includes a character color region that represents the character and that is arranged so that each side is in contact with the boundary between the character color region and the background color region. An information processing method for acquiring character size information representing a size.
  19.  請求項16乃至請求項18のいずれか一項に記載の情報処理方法であって、
     直線状に並ぶように配置された複数の文字を表す複数の文字色領域を含む文字含有領域に対して、当該複数の文字の大きさを代表する代表値を表す代表文字サイズ情報を前記文字サイズ情報として取得し、
     前記文字含有領域に対する前記可読性判定情報を出力する、情報処理方法。
    The information processing method according to any one of claims 16 to 18, comprising:
    For character-containing regions including a plurality of character color regions representing a plurality of characters arranged in a straight line, representative character size information representing a representative value representing the size of the plurality of characters is displayed as the character size. As information,
    An information processing method for outputting the readability determination information for the character-containing region.
  20.  情報処理装置に、
     文字色に着色された文字色領域と、文字色以外の背景色に着色された背景色領域と、を含む画像を表す画像情報に基づいて、当該画像にて当該文字色領域が表す文字の大きさを表す文字サイズ情報を取得する文字サイズ情報取得手段と、
     前記画像情報に基づいて、前記文字色を表す文字色情報と、前記背景色を表す背景色情報と、を取得する色情報取得手段と、
     前記取得された文字サイズ情報と、前記取得された文字色情報及び背景色情報と、に基づいて、前記画像の閲覧者が前記文字を読み取ることができる可能性が高くなるほど大きくなる値を有する可読性パラメータを取得するとともに当該取得した可読性パラメータが予め設定された基準値よりも大きいか否かを表す可読性判定情報を出力する可読性判定情報出力手段と、
     を実現させるためのプログラム。
    In the information processing device,
    Based on image information representing an image including a character color region colored in a character color and a background color region colored in a background color other than the character color, the size of the character represented by the character color region in the image Character size information acquisition means for acquiring character size information representing
    Color information acquisition means for acquiring character color information representing the character color and background color information representing the background color based on the image information;
    Based on the acquired character size information and the acquired character color information and background color information, the readability has a value that increases as the possibility that the viewer of the image can read the character increases. Readability determination information output means for acquiring a parameter and outputting readability determination information indicating whether or not the acquired readability parameter is larger than a preset reference value;
    A program to realize
  21.  請求項20に記載のプログラムであって、
     前記可読性判定情報出力手段は、前記基準値として、前記取得された文字サイズ情報が表す文字の大きさが大きくなるほど小さくなる値を用いるように構成されたプログラム。
    The program according to claim 20, wherein
    The readability determination information output unit is a program configured to use, as the reference value, a value that decreases as the size of the character represented by the acquired character size information increases.
  22.  請求項20又は請求項21に記載のプログラムであって、
     前記文字サイズ情報取得手段は、前記文字を表す文字色領域を含む領域であり且つ各辺が当該文字色領域と前記背景色領域との間の境界と接するように配置された長方形の領域の大きさに基づいて、当該文字の大きさを表す文字サイズ情報を取得するように構成されたプログラム。
    A program according to claim 20 or claim 21, wherein
    The character size information acquisition means is a region including a character color region representing the character and a size of a rectangular region arranged so that each side is in contact with a boundary between the character color region and the background color region. A program configured to acquire character size information indicating the size of the character based on the size.
  23.  請求項20乃至請求項22のいずれか一項に記載のプログラムであって、
     前記文字サイズ情報取得手段は、直線状に並ぶように配置された複数の文字を表す複数の文字色領域を含む文字含有領域に対して、当該複数の文字の大きさを代表する代表値を表す代表文字サイズ情報を前記文字サイズ情報として取得するように構成され、
     前記可読性判定情報出力手段は、前記文字含有領域に対する前記可読性判定情報を出力するように構成されたプログラム。
     
    A program according to any one of claims 20 to 22,
    The character size information acquisition means represents a representative value representative of the size of the plurality of characters for a character-containing region including a plurality of character color regions representing a plurality of characters arranged in a straight line. It is configured to obtain representative character size information as the character size information,
    The readability determination information output means is a program configured to output the readability determination information for the character-containing region.
PCT/JP2010/002565 2009-06-02 2010-04-08 Information processing device WO2010140291A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2009-132885 2009-06-02
JP2009132885 2009-06-02

Publications (1)

Publication Number Publication Date
WO2010140291A1 true WO2010140291A1 (en) 2010-12-09

Family

ID=43297434

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2010/002565 WO2010140291A1 (en) 2009-06-02 2010-04-08 Information processing device

Country Status (1)

Country Link
WO (1) WO2010140291A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000098994A (en) * 1998-09-18 2000-04-07 Toyota Central Res & Dev Lab Inc Display screen design device and display screen change device
JP2003044033A (en) * 2001-07-31 2003-02-14 Toyota Central Res & Dev Lab Inc Brightness calculation device and program, readability evaluation device and program, display screen design device, image display device
JP2004046295A (en) * 2002-07-08 2004-02-12 Ricoh Co Ltd Title extraction method, title extraction device, title extraction program and recording medium for recording program
JP2004062385A (en) * 2002-07-26 2004-02-26 Ricoh Co Ltd Method for recognizing character, program to be used for execution of the method and character recognition device
JP2004199695A (en) * 2002-12-18 2004-07-15 Xerox Corp Method for automatically choosing visual characteristic to highlight target against background
JP2004260327A (en) * 2003-02-24 2004-09-16 Canon Inc Image compression apparatus
JP2005260597A (en) * 2004-03-11 2005-09-22 Casio Comput Co Ltd Digital camera and program
JP2007122500A (en) * 2005-10-28 2007-05-17 Ricoh Co Ltd Character recognition device, character recognition method and character data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000098994A (en) * 1998-09-18 2000-04-07 Toyota Central Res & Dev Lab Inc Display screen design device and display screen change device
JP2003044033A (en) * 2001-07-31 2003-02-14 Toyota Central Res & Dev Lab Inc Brightness calculation device and program, readability evaluation device and program, display screen design device, image display device
JP2004046295A (en) * 2002-07-08 2004-02-12 Ricoh Co Ltd Title extraction method, title extraction device, title extraction program and recording medium for recording program
JP2004062385A (en) * 2002-07-26 2004-02-26 Ricoh Co Ltd Method for recognizing character, program to be used for execution of the method and character recognition device
JP2004199695A (en) * 2002-12-18 2004-07-15 Xerox Corp Method for automatically choosing visual characteristic to highlight target against background
JP2004260327A (en) * 2003-02-24 2004-09-16 Canon Inc Image compression apparatus
JP2005260597A (en) * 2004-03-11 2005-09-22 Casio Comput Co Ltd Digital camera and program
JP2007122500A (en) * 2005-10-28 2007-05-17 Ricoh Co Ltd Character recognition device, character recognition method and character data

Similar Documents

Publication Publication Date Title
JP3881439B2 (en) Image processing device
JP4002871B2 (en) Method and apparatus for representing color image on delta structure display
JP4724802B1 (en) 2D code reader and program
JP4724801B1 (en) 2D code reader and program
JP5765026B2 (en) Image processing apparatus and program
JP5616308B2 (en) Document modification detection method by character comparison using character shape feature
US20110002547A1 (en) Image processing device and image processing method
RU2469400C1 (en) Method to convert bitmapped image into metafile
JP2009124510A (en) Display control apparatus and method thereof, program, and recording medium
JP5868050B2 (en) Display device and control method thereof
JP5067501B2 (en) Multicolor vector image processing apparatus and method
US7050066B2 (en) Image processing apparatus and image processing program
JP6413365B2 (en) Display evaluation apparatus, display evaluation method, and display evaluation program
JP4180043B2 (en) Three-dimensional graphic drawing processing device, image display device, three-dimensional graphic drawing processing method, control program for causing computer to execute the same, and computer-readable recording medium recording the same
CN111063292B (en) Color gamut mapping method, color gamut mapping component, display device, and storage medium
JP5171421B2 (en) Image processing apparatus, image processing method, and computer program
JP2013210793A (en) System, method, and program for optimizing ar display
WO2010140291A1 (en) Information processing device
US20140168259A1 (en) Image processing device, image processing method
JP4698709B2 (en) Data creation device, data creation method, data creation program, drawing device, drawing method, drawing program, and computer-readable recording medium
CN114119778A (en) Deep color mode generation method of user interface, electronic equipment and storage medium
JP4724800B1 (en) Article detection apparatus and program
JP2008158847A (en) Image distribution device and image distribution method
JP6414475B2 (en) Computer program and control device
JP2019121061A (en) Image enlargement device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10783079

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10783079

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP