This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2009-075177 filed on Mar. 25, 2009.
1. Technical Field
The present invention relates to an image-processing device, an image-forming device, an image-processing method, and a computer readable medium.
2. Related Art
A person having color weakness has difficulty in recognizing a certain range of a color. If a document is prepared with multiple colors, and the colors include a color that is difficult to recognize for a person having color weakness, an intended use of the color by a creator of the document may not be conveyed to the person having color weakness.
An aspect of the present invention provides an image-processing device including: a color storage unit that stores a range of a color within a color space; an effect storage unit that stores a set of a condition on a component of an image and a type of effect to be applied to an area having a color falling within the range of a color stored in the color storage unit, the area being included in an image having a component meeting the condition; an obtaining unit that obtains image data; an area extraction unit that extracts an area having a color falling within the range of a color stored in the color storage unit, in an image represented by the image data obtained by the obtaining unit; a component extraction unit that extracts a component meeting the condition stored in the effect storage unit, in the image represented by the image data obtained by the obtaining unit; and a generating unit that if a component is extracted by the component extraction unit, that meets the condition stored in the effect storage unit, generates image data representing an image in which an effect of the type stored in the effect storage unit in association with the condition is applied to the area extracted by the area extraction unit.
Exemplary embodiments of the present invention will be described in detail below with reference to the following figures, wherein:
Image-forming device 1 includes control unit 11, storage unit 12, operation unit 13, display unit 14, communication unit 15, image-reading unit 16, and image-forming unit 17. Control unit 11 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory). The CPU executes a program stored in the ROM or storage unit 12 to control components of image-forming device 1. Storage unit 12 is a nonvolatile auxiliary storage device such as an HDD (Hard Disk Drive), which stores programs and data. Operation unit 13 includes plural keys, and in response to an operation by a user, outputs a signal corresponding to the operation to control unit 11. Display unit 14 includes a liquid crystal display and a liquid crystal driving circuit, and displays information on progress of a processing or guidance about an operation, on the basis of data provided from control unit 11. Communication unit 15 includes a communication interface, and communicates with image-processing device 3 via communication line 2.
Image-reading unit 16 includes an image pickup device such as a CCD (Charge Coupled Device), and causes the image pickup device to read an image formed on a recording sheet to generate image data representing the read image. Image-forming unit 17 includes a photosensitive drum for holding an image, an exposure unit that exposes the photosensitive drum on the basis of image data to form an electrostatic latent image on the drum, a developing unit that develops an electrostatic latent image to form a toner image, a transfer unit that transfers a toner image to a recording sheet, and a fixing unit that fixes a toner image transferred to a recording sheet, on the recording sheet. Image-forming unit 17 forms an image represented by image data generated by image-reading unit 16, or an image represented by image data received via communication unit 15, on a recording sheet. Namely, image-forming unit 17 forms an image represented by image data generated by an image-forming device, on a recording medium such as a recording sheet.
Image-processing device 3 includes control unit 31, storage unit 32, operation unit 33, display unit 34, and communication unit 35. Control unit 31 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory). The CPU executes a program stored in the ROM and storage unit 32 to control components of image-processing device 3. Operation unit 33 includes a keyboard and a mouse, and in response to an operation by a user, provides control unit 31 with a signal corresponding to the operation. Display unit 34 may be a CRT (Cathode Ray Tube) or a liquid crystal display. Display unit 34 displays information on the basis of image data provided from control unit 31. Communication unit 35 includes a communication circuit and a communication interface, which communicates with image-forming device 1 via communication line 2.
Storage unit 32 is a nonvolatile auxiliary storage device such as an HDD (Hard Disk Drive), which stores programs and data. Storage unit 32 stores word-processing application program 321. Control unit 31, by following a procedure described in word processing application program 321, generates image data representing a document in which characters, graphics, and/or tables are arranged, in the RAM. Control unit 31 is an example of an obtaining unit that obtains image data.
Storage unit 32 also stores printer driver 322. Control unit 31, by following a procedure described in printer driver 322, converts image data generated using word-processing application program 321 into image data described in a page description language that can be interpreted by image-forming device 1. Printer driver 322 describes a range of a red color within an RGB color space. In the present exemplary embodiment, each color of RGB is represented in 256 shades, and a range of a red color is represented as follows: R=255, G=0 to 51, and B=0 to 51. Storage unit 32 is an example of a color storage unit that stores a range of a particular color within a color space.
Printer driver 322 also describes sets of a condition on a component of an image and a type of effect to be applied to a red character included in an image having a component meeting the condition.
Storage unit 32 is an example of an effect storage unit that stores a set of a condition on a component of an image and a type of effect to be applied to an area having a color falling within a particular range of a color, the area being included in an image having a component meeting the condition. Also, storage unit 32 is an example of an effect storage unit that can store information that an area of an image having a color falling within a particular range of a color is surrounded by a ruled line of a table, as a condition on a component of an image. Also, storage unit 32 is an example of an effect storage unit that stores a fact that a size of an area of an image having a color falling within a particular range of a color is smaller than or equal to a predetermined size, as a condition on a component of an image. Also, storage unit 32 is an example of an effect storage unit that stores a fact that a size of a character having a color falling within a particular range of a color is smaller than or equal to a predetermined size, as a condition on a component of an image.
Printer driver 322 also describes a procedure of an operation carried out by control unit 31 on image data generated using word-processing application program 321. In the operation, control unit 31 applies an effect to an area having a color falling within a range of a particular color, in an image represented by generated image data, thereby generating image data representing an image to which an effect is applied.
A user causes image-processing device 3 to execute word-processing application program 321, and while viewing an image displayed on display unit 34, prepares a document using operation unit 33. If there is a character to be emphasized in the document, the user provides image-processing unit 3 with an instruction to change the color of the character to red, using operation unit 33.
Control unit 31 initially extracts a red character in an image represented by image data (step A01). The image data may describe color information (gray levels of R, G, and B) specifying colors of characters shown in
At step A04, control unit 31 extracts a component meeting a condition stored in storage unit 32, in the image represented by the image data. The image data may describe character data representing faces of characters shown in
If a component meeting a condition (see
At step A05, control unit 31 determines a type of effect to be applied to the red character. To do so, control unit 31 reads a type of effect associated with the condition met by the component extracted at step A04, from storage unit 32. In the case of the example shown in
If a component meeting a condition shown in
At step A06, control unit 31 writes data representing the type of effect determined at step A05 or step A08 in the image data in association with the character extracted at step A01. In the case of the example shown in
At step A07, control unit 31 converts the image data generated at step A06 into image data described in a page description language, and sends the image data and an instruction to form an image on the basis of the image data to image-forming device 1 via communication line 2.
When the image data and the instruction sent from image-processing device 3 is received by communication unit 15 of image-forming device 1, control unit 11 of image-forming device 1 converts the image data into bit-mapped image data, binarizes the bit-mapped image data, and provides image-forming unit 17 with the binarized image data. Image-forming unit 17 forms an image represented by the provided image data on a recording sheet. In the case of the example shown in
Now, cases will be described, in which an effect other than underline is applied to an image of a document prepared using word-processing application program 321.
If an image includes hatching, as shown in
If a red character is surrounded by a ruled line of a table, as shown in
If two or more red characters are not continued, as shown in
If the size of a red character is smaller than or equal to 9 point, as shown in
The present exemplary embodiment is a partially modified version of the first exemplary embodiment. Hereinafter, differences between the present exemplary embodiment and the first exemplary embodiment will be described.
Printer driver 322 describes sets of a condition on a component of an image and a type of effect to be applied to a red character included in an image having a component meeting the condition.
At step B05, control unit 31 initially resets counters N1, N2, N3, and N4 to zero, which are associated with effects, single underline, double underline, low-density hatching, and high-density hatching, respectively. Subsequently, control unit 31 reads out for each condition corresponding to a component extracted at step A04, a corresponding type of effect from storage unit 32, and counts a number for each type of effect, in which a type of effect is read, using a counter. For example, if at step A04, an effect, single underline, is extracted, corresponding types of effect, double underline, low-density hatching, and high-density hatching, are read out from storage unit 32, and accordingly values of the counters are set as follows: N1=0, N2=1, N3=1, and N4=1. In the present example, it is assumed that after all components meeting any one of the conditions shown in
Subsequently, control unit 31 selects a type of effect corresponding to a counter that counts a highest total value, as a type of effect to be applied to a red character. In the present example, since it is assumed that the highest value is “5” of counter N2, control unit 31 selects a corresponding type of effect, double underline, as a type of effect to be applied to a red character, and proceeds to an operation of step A06. The operation of step A06 and subsequent operations are identical to those of the first exemplary embodiment. In the present exemplary embodiment, a type of effect to be selected in a situation where plural counters count an identical highest value may be predetermined. For example, a type of effect corresponding to a counter to which a lowest number is assigned after character “N” may be selected. In this case, if counters N2 and N4 count an identical highest value, a corresponding type of effect, double underline, is selected.
Control unit 31 is an example of a selecting unit that, if plural components are extracted by a component extraction unit, that meet any one of conditions stored in an effect storage unit, reads out for each condition corresponding to each of the extracted components, a corresponding type of effect from the effect storage unit, counts a number for each type of effect, in which a type of effect is read, and selects a type of effect that is most frequently read from the effect storage unit, as a type of effect to be applied to an area of an image extracted by an area extraction unit. Also, control unit 31 is an example of a generating unit that generates image data representing an image in which an effect of a type selected by a selecting unit is applied to an area of the image extracted by an area extraction unit.
The present exemplary embodiment is a partially modified version of the first exemplary embodiment. Hereinafter, differences between the present exemplary embodiment and the first exemplary embodiment will be described.
At step C07, control unit 31 displays dialogue box 6 on display unit 34, as shown in
At lower right area 63 of dialogue box 63, a recognized-image preview is displayed, which shows an image represented using a color recognized by a person having color weakness. Storage unit 32 stores data on a color to be recognized by a person having color weakness when s/he views a red color. Control unit 31 processes an image represented by image data generated at step A06 so that a red color of the image is changed to a color recognized by a person having color weakness when s/he views a red color, and displays the processed image on display unit 34.
Storage unit 32 is an example of a second color storage unit that stores a color to be recognized by a person having a particular type of color vision when the person views a color falling within a range of a color stored in a color storage unit. Control unit 31 is an example of a display unit that processes an image represented by an image data generated by a generating unit so that a color of an area of the image extracted by an area extraction unit is changed to a color stored in a second storage unit, and displays the processed image.
Display of a recognized-image preview may be changed depending on a type of color vision. Storage unit 32 may store for each type of color vision, a color to be recognized by a person having a particular color vision when s/he views a red color. Color vision may be classified into three types: type 1 color vision, type 2 color vision, and type 3 color vision. In this case, storage unit 32 may store a dark brown color in association with type 1 color vision, a brown color in association with type 2 color vision, and a red-purple color in association with type 3 color vision. Dialogue box 6 has three tabs T61, T62, and T63 for selecting one of type 1 color vision, type 2 color vision, and type 3 color vision. If type 1 color vision is selected, a red color is changed to a dark brown color, if type 2 color vision is selected, a red color is changed to a brown color, and if type 3 color vision is selected, a red color is changed to a red-purple color, before an image is displayed.
If soft button B61 corresponding to “OK” shown in the upper left of dialogue box 6 is pressed, control unit 31 proceeds to an operation of step A07. The operation of step A07 is identical to that of the first exemplary embodiment. If the operation of step A07 is carried out, an image represented by image data generated at step A06 is formed on a recording sheet.
Storage unit 32 is an example of a second color storage unit that stores for each type of color to be recognized by persons having a particular type of color vision when the persons view a color falling within a range of a color stored in a color storage unit. Control unit 31 is an example of a specification receiving unit that receives a specification of a type of color vision. Also, control unit 31 is an example of a reading unit that reads out a color from a second color storage unit, which corresponds to a type of color vision specified using a specification receiving unit. Also, control unit 31 is an example of a display unit that processes an image represented by an image data generated by a generating unit so that a color of an area of the image extracted by an area extraction unit is changed to a color read out by a reading unit, and displays the processed image.
On the other hand, if one of radio buttons R61 displayed at the upper center of dialogue box 6 is selected, control unit 31 proceeds to an operation of step C08. At step C08, control unit 31 displays an image to which a selected effect is applied, in an area each of a conversion preview and a recognized-image preview.
Control unit 31 is an example of a second specification receiving unit that receives a specification of a type of effect. Also, control unit 31 is an example of a second generating unit that generates image data representing an image in which an effect of a type specified using a second specification receiving unit is applied to an area of the image extracted by an area extraction unit.
Modifications described below may be combined with each other.
The second exemplary embodiment and the third exemplary embodiment may be combined with each other. Specifically, the operations from step C07 of
In the above exemplary embodiments, a range of a red color is stored in storage unit 32, and an effect is applied to a character having a color falling within the range. In the exemplary embodiments, a range of any color may be stored in storage unit 32. A person having color weakness has difficulty in recognizing a range of a given color. Such a person may not be able to realize a difference in color between a character represented in a certain range of a color other than black and a character represented in black. Accordingly, a range of a color stored in storage unit 32 may be determined on the basis of a range of a color that is difficult to recognize for a person having color weakness.
It is to be noted that although color weakness is classified into several types on the basis of a range of a color that is difficult to recognize, it is said that a rate of persons having difficulty in recognizing a red color is relatively high. Also, when a character string is represented in a color other than black to highlight it, a red color is commonly used. Accordingly, storing a range of a red color in storage unit 32 is preferable.
In the above exemplary embodiments where an effect is applied to a character, an effect may be applied to an image such as a graphic or a table.
In the above exemplary embodiments where the fact that two or more red characters are not continued is stored in storage unit 32 as a condition on a component of an image, the fact that a red area is smaller than or equal to a predetermined value may be instead stored in storage unit 32 as a condition on a component of an image. If the latter condition is stored in storage unit 32, control unit 31 calculates a red area in an image represented by image data, and if the calculated area is smaller than or equal to a predetermined value, applies an effect associated with the condition to the area.
In the above exemplary embodiments where control unit 31 of image-processing device 3 applies an effect to an image by executing printer driver 322, a program describing a procedure of the operation may be stored in storage unit 12 of image-forming device 1, and the operation may be carried out by control unit 11. If the configuration is employed, an effect may be applied to an image represented by image data representing an image read by image-reading unit 16. Accordingly, an image with an effect may be obtained even in a case that an image formed on a recording sheet is copied.
Also, an ASIC (Application Specific Integrated Circuit) for carrying out the above operation may be provided in image-processing device 3.
In the above exemplary embodiments where a range of a particular color is represented by gray levels of an RGB color space, a range of a particular color may be represented in a color space such as an HLS color space representing a color in hue, saturation, and lightness.
The foregoing description of the exemplary embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, thereby enabling others skilled in the art to understand the invention for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2009-075177 | Mar 2009 | JP | national |