JP2008187327A - Image processor and image forming apparatus equipped with the same - Google Patents

Image processor and image forming apparatus equipped with the same Download PDF

Info

Publication number
JP2008187327A
JP2008187327A JP2007017485A JP2007017485A JP2008187327A JP 2008187327 A JP2008187327 A JP 2008187327A JP 2007017485 A JP2007017485 A JP 2007017485A JP 2007017485 A JP2007017485 A JP 2007017485A JP 2008187327 A JP2008187327 A JP 2008187327A
Authority
JP
Japan
Prior art keywords
image
density
character
value
character image
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2007017485A
Other languages
Japanese (ja)
Inventor
Kiyoshi Inoue
潔 井上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2007017485A priority Critical patent/JP2008187327A/en
Publication of JP2008187327A publication Critical patent/JP2008187327A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor and an image forming apparatus capable of preventing a character image from being outputted in the state being buried in a background image with a simple configuration. <P>SOLUTION: When image data are accepted (S1), and when the image data are a color image, the image data are converted into monochromatic data (S3), and whether or not region designation by a user is present is judged (S4), and a character image region and a background image region are detected and specified (S7). Then, the density mean value X of the character image is calculated (S8), and the density mean value Y of the background image is calculated (S9). When a difference between the density mean value X of the whole character image and the density mean value Y of the whole background image exceeds a threshold, normal image processing such as color conversion and gamma conversion is carried out (S11). On the contrary, when a difference between the mean density values X and Y is the threshold or less, the normal image processing is executed (S12), and processing to increase the contrast of the character image and the background image is carried out based on the density mean value of the respective color components of the whole character image in image data adjustment processing (S13). <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

この発明は、出力されるべき画像データに対して画像処理を行う画像処理装置およびこれを備えた画像形成装置に関する。   The present invention relates to an image processing apparatus that performs image processing on image data to be output, and an image forming apparatus including the same.

文字画像は、通常、情報を伝達する役割を果たすべきものである。このため、文字画像が背景に埋もれることを避けることが重要である。このため、背景画像から文字画像を抽出する技術については、従来、様々な工夫がなされてきた。   A character image should normally serve to convey information. For this reason, it is important to avoid the character image being buried in the background. For this reason, various ideas have been conventionally made for extracting a character image from a background image.

例えば、従来技術の中には、処理対象画像から文字を含む認識対象領域を抽出する認識対象切出し装置において、文字と背景のコントラスト差や色調差が少ない場合に、認識対象領域のノイズを効果的に除去することによって文字情報のみを正確に抽出する技術が存在する(例えば、特許文献1参照。)。
特開2005−267480号公報
For example, in the conventional technology, in a recognition target extraction device that extracts a recognition target region including characters from a processing target image, noise in the recognition target region is effective when there is little contrast difference or color tone difference between the character and the background. There is a technique for accurately extracting only character information by removing them (see, for example, Patent Document 1).
JP 2005-267480 A

さらに、文字情報のみを正確に抽出することに加えて、文字画像が背景に埋もれたまま出力されることを防止することも重要である。その理由は、文字画像が背景に埋もれたまま用紙面に出力された場合、その用紙は、情報伝達媒体としての機能を果たさないため、廃棄されることになるからである。このため、画像が出力される場合には、常に、文字画像が背景に埋もれない状態になっていることが重要である。   Furthermore, in addition to accurately extracting only character information, it is also important to prevent the character image from being output while being buried in the background. The reason is that when the character image is output on the paper surface while being buried in the background, the paper does not function as an information transmission medium and is discarded. For this reason, when an image is output, it is important that the character image is always not buried in the background.

本発明の目的は、文字画像が背景画像に埋もれた状態で出力されることを、簡易な構成によって防止することが可能な画像処理装置および画像形成装置を提供することである。   An object of the present invention is to provide an image processing apparatus and an image forming apparatus capable of preventing a character image from being output in a state where it is buried in a background image with a simple configuration.

本発明に係る画像処理装置は、出力されるべき画像データに対して画像処理を行う。この画像処理装置は、領域検出手段、濃度算出手段、および画像調整手段を備える。   An image processing apparatus according to the present invention performs image processing on image data to be output. The image processing apparatus includes an area detection unit, a density calculation unit, and an image adjustment unit.

領域検出手段は、画像データにおける文字画像が占める領域、および文字画像の周囲に位置する背景画像が占める領域の検出をそれぞれ行う。   The area detecting means detects an area occupied by the character image in the image data and an area occupied by the background image located around the character image.

濃度算出手段は、領域検出手段の検出結果に基づいて、文字画像の濃度を示す第1の濃度値および背景画像の濃度を示す第2の濃度値をそれぞれ算出する。濃度値の例として、0〜255の256階調で表現される数値が挙げられるが、これに限定されるものではない。   The density calculation means calculates a first density value indicating the density of the character image and a second density value indicating the density of the background image based on the detection result of the area detection means. Examples of the density value include numerical values expressed in 256 gradations from 0 to 255, but are not limited thereto.

画像調整手段は、第2の濃度値と第1の濃度値との差が所定値以下のときに、第1の濃度値に基づいて、文字画像と背景画像とのコントラストが拡大するように文字画像の濃度を変更する。文字画像と背景画像とがそれぞれカラー画像である場合には、カラー画像のモノクロ化を行った上で、両者の濃度を検出しても良い。   The image adjusting means is configured to increase the contrast between the character image and the background image based on the first density value when the difference between the second density value and the first density value is equal to or smaller than a predetermined value. Change the image density. When the character image and the background image are respectively color images, the density of both may be detected after the color image is converted into monochrome.

文字画像と背景画像とのコントラストを拡大させる手法の例として、文字画像の濃度が濃度上限に近い場合に、文字画像の濃度を低下させることが挙げられる。文字画像の濃度が濃度上限に近い場合には、これと近似する背景画像の濃度も濃度上限に比較的近似していると推認されるため、文字画像の濃度を低下させることにより、文字画像が目立ち易くなる。一方で、文字画像の濃度が濃度下限に近い場合に、文字画像の濃度を上昇させることが挙げられる。文字画像の濃度が濃度下限に近い場合には背景画像の濃度も濃度下限に比較的近似していると推認されるため、文字画像の濃度を上昇させることにより、文字画像が目立ち易くなる。   An example of a technique for increasing the contrast between a character image and a background image is to reduce the density of the character image when the density of the character image is close to the upper limit of density. When the density of the character image is close to the upper limit of density, it is assumed that the density of the background image that approximates this is also relatively close to the upper limit of density, so by reducing the density of the character image, It becomes easy to stand out. On the other hand, when the density of the character image is close to the lower limit of density, the density of the character image can be increased. When the density of the character image is close to the lower limit of density, it is presumed that the density of the background image is also relatively close to the lower limit of density, so that the character image becomes conspicuous by increasing the density of the character image.

本発明によれば、文字画像が背景画像に埋もれた状態で出力されることを、簡易な構成によって防止することが可能になる。   According to the present invention, it is possible to prevent a character image from being output while being buried in a background image with a simple configuration.

図1に示すように、画像形成装置50は、画像読取部12、画像形成部14、表示部16、操作部18、インタフェース部20、ROM22、RAM24、画像処理部26、画像データ調整部30、およびCPU10を備える。   As shown in FIG. 1, the image forming apparatus 50 includes an image reading unit 12, an image forming unit 14, a display unit 16, an operation unit 18, an interface unit 20, a ROM 22, a RAM 24, an image processing unit 26, an image data adjusting unit 30, And a CPU 10.

画像読取部12は、原稿の画像を読み取って画像データに変換する。画像形成部14は、与えられた画像データに基づいて画像形成処理を実行する。表示部16は、ユーザに通知すべき情報を表示するように構成される。操作部18は、ユーザの入力操作に基づくコマンドをCPU10に伝える。インタフェース部20は、外部機器との通信に必要な機能を備える。ここでは、インタフェース部20は、複数のパソコンが接続されたLANに接続される。ROM22は、CPU10の動作に必要な複数のプログラムを格納する。RAM24は、データが一時的に記録される不揮発性メモリである。画像処理部26は、出力されるべき画像データに対して予め定められた手順にて画像処理を実行する。画像データ調整部30は、画像データのうち文字画像データの変更を行う。CPU10は、画像形成装置50の各部を統括的に制御する。この例では、ROM22、RAM24、画像処理部26、画像データ調整部30、およびCPU10によって構成される画像処理ユニット100が本発明の画像処理装置に対応する。   The image reading unit 12 reads an image of a document and converts it into image data. The image forming unit 14 executes an image forming process based on the given image data. The display unit 16 is configured to display information to be notified to the user. The operation unit 18 transmits a command based on a user input operation to the CPU 10. The interface unit 20 has functions necessary for communication with an external device. Here, the interface unit 20 is connected to a LAN to which a plurality of personal computers are connected. The ROM 22 stores a plurality of programs necessary for the operation of the CPU 10. The RAM 24 is a nonvolatile memory in which data is temporarily recorded. The image processing unit 26 performs image processing on image data to be output according to a predetermined procedure. The image data adjustment unit 30 changes the character image data in the image data. The CPU 10 comprehensively controls each unit of the image forming apparatus 50. In this example, the image processing unit 100 including the ROM 22, the RAM 24, the image processing unit 26, the image data adjusting unit 30, and the CPU 10 corresponds to the image processing apparatus of the present invention.

図2を用いて、画像データ調整部30の概略構成を説明する。画像データ調整部30は、前処理部32、領域検出部34、画像判定部36、および画像変更部38を備える。前処理部32は、出力されるべきカラー画像データを、コントラスト判定のために、モノクロ階調画像データに変更する。カラー画像のモノクロ化の手法は特に限定されないが、カラー画像を階調や明度を変化させずにモノクロ化することが好ましい。この例では、RGBの成分から、明るさAを“A=R×0.30+G×0.59+B×0.11”式を用いて算出する。例えば、同系色画像であればコントラスト差が濃度差として反映されることが好ましい。   A schematic configuration of the image data adjustment unit 30 will be described with reference to FIG. The image data adjustment unit 30 includes a preprocessing unit 32, a region detection unit 34, an image determination unit 36, and an image change unit 38. The preprocessing unit 32 changes the color image data to be output to monochrome gradation image data for contrast determination. The method for making a color image monochrome is not particularly limited, but it is preferable to make a color image monochrome without changing the gradation or brightness. In this example, the brightness A is calculated from the RGB components using the formula “A = R × 0.30 + G × 0.59 + B × 0.11”. For example, in the case of a similar color image, it is preferable that a contrast difference is reflected as a density difference.

領域検出部34は、モノクロ階調画像における文字画像および背景画像を認識し、それらの位置を記憶する。領域検出部34は、Optical Character Reader(OCR)を備えており、このOCRを用いて画像データ調整処理の対象となる領域に係る画像データの文字認識処理を行う。文字認識処理により文字と認識された画像データの領域を文字画像領域として特定する。一方、文字認識処理により文字と認識されなかった画像データの領域を背景画像領域として特定する。   The area detection unit 34 recognizes a character image and a background image in a monochrome gradation image and stores their positions. The area detection unit 34 includes an optical character reader (OCR), and performs character recognition processing of image data related to an area to be subjected to image data adjustment processing using the OCR. A region of image data recognized as a character by character recognition processing is specified as a character image region. On the other hand, an area of image data that is not recognized as a character by the character recognition process is specified as a background image area.

画像判定部36は、文字画像および背景画像のコントラストの判定を行う。具体的には、文字画像および背景画像の濃度の差が閾値よりも高いか否かを判定する。   The image determination unit 36 determines the contrast between the character image and the background image. Specifically, it is determined whether the density difference between the character image and the background image is higher than a threshold value.

画像変更部38は、文字画像および背景画像の濃度の差が閾値よりも低い場合に、文字画像および背景画像のコントラストが大きくなるように画像データを変更する。この画像データの変更の例として、文字画像濃度の減少、文字画像濃度の増加、文字画像の色調の変更などが挙げられる。   The image changing unit 38 changes the image data so that the contrast between the character image and the background image increases when the difference in density between the character image and the background image is lower than the threshold value. Examples of this change in image data include a decrease in character image density, an increase in character image density, and a change in color tone of the character image.

図3および図4は、画像処理時および画像データ調整処理時におけるCPU10の動作手順を示すフローチャートである。CPU10は、画像データを受け付けると(S1)、受け付けた画像データがカラー画像であるか否かを判断する(S2)。   3 and 4 are flowcharts showing the operation procedure of the CPU 10 during image processing and image data adjustment processing. When receiving the image data (S1), the CPU 10 determines whether or not the received image data is a color image (S2).

S2の判断ステップにおいて、カラー画像である場合には、CPU10は、前処理部32にカラー画像のモノクロ化を実行させる(S3)。   In the determination step of S2, if the image is a color image, the CPU 10 causes the pre-processing unit 32 to perform monochrome conversion of the color image (S3).

続いて、CPU10は、領域指定がされているか否かを判断する(S4)。S4の判断ステップにおいて、画像データ調整処理の対象となる領域に関するユーザからの設定コマンドが入力されている場合には、S6のステップに移行する。この場合、領域指定された領域のみを、画像データ調整処理の対象として指定する(S6)。これに対し、S4の判断ステップにおいて、画像データ調整処理の対象となる領域に関するユーザからの設定コマンドが入力されていない場合には、S5のステップに移行する。この場合、画像の全域を、画像データ調整処理の対象として指定する(S5)。   Subsequently, the CPU 10 determines whether or not an area has been designated (S4). In the determination step of S4, when the setting command from the user regarding the area to be subjected to the image data adjustment processing is input, the process proceeds to step S6. In this case, only the designated area is designated as an image data adjustment process target (S6). On the other hand, in the determination step of S4, when the setting command from the user regarding the area to be subjected to the image data adjustment processing is not input, the process proceeds to S5. In this case, the entire area of the image is designated as an object for image data adjustment processing (S5).

続いて、CPU10は、領域検出処理を実行する(S7)。S7のステップにおいて、CPU10は、領域検出部34を用いて、文字画像と背景画像との分類を行う。ここでは、CPU10は、文字画像の領域を特定するとともに、画像データ調整処理の対象となる領域における文字画像領域以外の領域を背景領域として特定する。   Subsequently, the CPU 10 executes a region detection process (S7). In step S <b> 7, the CPU 10 classifies the character image and the background image using the area detection unit 34. Here, the CPU 10 specifies an area of the character image, and specifies an area other than the character image area in the area to be subjected to the image data adjustment processing as the background area.

続いて、CPU10は、文字画像濃度値を算出する(S8)。S8のステップでは、CPU10は、文字画像全体の濃度平均値Xを算出する。さらに、CPU10は、背景画像濃度値を算出する(S9)。S9のステップでは、CPU10は、背景画像全体の濃度平均値Yを算出する。なお、ここでは、濃度平均値Xおよび濃度平均値Yは、0〜255の256段階の値で表現される。   Subsequently, the CPU 10 calculates a character image density value (S8). In step S8, the CPU 10 calculates the average density value X of the entire character image. Further, the CPU 10 calculates a background image density value (S9). In step S9, the CPU 10 calculates the average density value Y of the entire background image. Note that, here, the density average value X and the density average value Y are expressed by values in 256 steps from 0 to 255.

続いて、CPU10は、文字画像と背景画像の濃度差の判定を行う(S10)。ここでは、CPU10は、文字画像全体の濃度平均値Xと背景画像全体の濃度平均値Yとの差が、所定の閾値を越えているか否かを判断する。S10では、閾値として“30”が設定される。   Subsequently, the CPU 10 determines a density difference between the character image and the background image (S10). Here, the CPU 10 determines whether or not the difference between the density average value X of the entire character image and the density average value Y of the entire background image exceeds a predetermined threshold value. In S10, “30” is set as the threshold value.

S10の判断ステップにおいて、文字画像全体の濃度平均値Xと背景画像全体の濃度平均値Yとの差が閾値を越えている場合には、CPU10は、画像処理部26に通常の画像処理を実行させる(S11)。なお、ここでは、通常の画像処理として、「RGB→YMCK変換」、UCR変換、γ変換などが実行される。画像処理完了後、CPU10は、画像処理後の画像データを画像形成部14に供給する。これに対して、文字画像全体の濃度平均値Xと背景画像全体の濃度平均値Yとの差が閾値以下の場合には、CPU10は、画像処理部26に通常の画像処理を実行させ(S12)、その後さらに、画像データ変更部38に画像データ調整処理を実行させる(S13)。   When the difference between the average density value X of the entire character image and the average density value Y of the entire background image exceeds the threshold value in the determination step of S10, the CPU 10 executes normal image processing on the image processing unit 26. (S11). Here, as normal image processing, “RGB → YMCK conversion”, UCR conversion, γ conversion, and the like are executed. After the image processing is completed, the CPU 10 supplies the image data after the image processing to the image forming unit 14. On the other hand, when the difference between the average density value X of the entire character image and the average density value Y of the entire background image is equal to or smaller than the threshold value, the CPU 10 causes the image processing unit 26 to perform normal image processing (S12). Thereafter, the image data changing unit 38 is further caused to execute image data adjustment processing (S13).

図4を用いて、画像データ調整処理を説明する。画像データ調整処理において、CPU10は、文字画像全体のイエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、およびブラック成分濃度平均値Xkを算出する(S20)。なお、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、およびブラック成分濃度平均値Xkは、0〜255の256段階の値で表現される。   The image data adjustment process will be described with reference to FIG. In the image data adjustment process, the CPU 10 calculates the yellow component density average value Xy, magenta component density average value Xm, cyan component density average value Xc, and black component density average value Xk of the entire character image (S20). The yellow component density average value Xy, the magenta component density average value Xm, the cyan component density average value Xc, and the black component density average value Xk are expressed by 256-level values from 0 to 255.

続いて、CPU10は、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkのいずれか1つの値が閾値以上であるか否かを判断する(S21)。S21の判断ステップにおける閾値は、最大濃度の70%の値に設定される。   Subsequently, the CPU 10 determines whether any one of the yellow component density average value Xy, the magenta component density average value Xm, the cyan component density average value Xc, or the black component density average value Xk is equal to or greater than a threshold value. (S21). The threshold value in the determination step of S21 is set to a value of 70% of the maximum density.

S21の判断ステップにおいて、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkの値のいずれもが最大濃度の70%未満であれば、CPU10は、文字画像の濃度を増加させる(S22)。具体的には、S22のステップにおいて、CPU10は、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkの値をそれぞれ30%増加させる。この結果、図5(A)または図5(B)に示すように、文字画像の濃度が高くなり、文字画像と背景画像のコントラストが高まる。   In the determination step of S21, if any of the yellow component density average value Xy, magenta component density average value Xm, cyan component density average value Xc, or black component density average value Xk is less than 70% of the maximum density, The CPU 10 increases the density of the character image (S22). Specifically, in step S22, the CPU 10 increases the yellow component density average value Xy, the magenta component density average value Xm, the cyan component density average value Xc, or the black component density average value Xk by 30%. As a result, as shown in FIG. 5A or FIG. 5B, the density of the character image increases, and the contrast between the character image and the background image increases.

これに対して、S21の判断ステップにおいて、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkの値のいずれか1つが、最大濃度の70%以上であれば、CPU10は、文字画像の濃度を減少させる(S23)。この例では、S23のステップにおいて、CPU10は、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、およびブラック成分濃度平均値Xkの値をそれぞれ0にしている。この結果、図5(C)または図5(D)に示すように、文字画像が白抜き状態になり、文字画像と背景画像のコントラストが高まる。   On the other hand, in the determination step of S21, any one of the yellow component density average value Xy, magenta component density average value Xm, cyan component density average value Xc, or black component density average value Xk is the maximum density. If it is 70% or more, the CPU 10 decreases the density of the character image (S23). In this example, in step S23, the CPU 10 sets the values of the yellow component density average value Xy, the magenta component density average value Xm, the cyan component density average value Xc, and the black component density average value Xk to 0, respectively. As a result, as shown in FIG. 5C or FIG. 5D, the character image becomes white and the contrast between the character image and the background image increases.

図6〜図8は、画像処理時および画像データ調整処理時におけるCPU10の動作手順の他の例を示すフローチャートである。図6におけるS101〜S112のステップは、図3におけるS1〜S12のステップに対応するため、ここでは説明を省略する。図6では、S113のステップにて、画像データがカラー画像であるか否かを判断し、その判断結果に基づいて、互いに異なる手順の2種類の画像データ調整処理のいずれかを実行する(S113、S114、S115)。   6 to 8 are flowcharts showing other examples of operation procedures of the CPU 10 during image processing and image data adjustment processing. Steps S101 to S112 in FIG. 6 correspond to steps S1 to S12 in FIG. In FIG. 6, it is determined in step S113 whether or not the image data is a color image, and based on the determination result, one of two types of image data adjustment processes with different procedures is executed (S113). , S114, S115).

図7を用いて、S114の画像データ調整処理を説明する。S114の画像データ調整処理において、CPU10は、文字領域濃度値Xが閾値以上であるか否かを判断する(221)。S221の判断ステップにおける閾値は、最大濃度の70%の値に設定される。   The image data adjustment process in S114 will be described with reference to FIG. In the image data adjustment process of S114, the CPU 10 determines whether or not the character area density value X is equal to or greater than a threshold value (221). The threshold value in the determination step of S221 is set to a value of 70% of the maximum density.

S221の判断ステップにおいて、文字領域濃度値Xが最大濃度の70%未満であれば、CPU10は、文字画像の濃度を増加させる(S222)。具体的には、S222のステップにおいて、CPU10は、文字領域濃度値Xを30%増加させる。この結果、図5(A)に示すように、文字画像の濃度が高くなり、文字画像と背景画像のコントラストが高まる。   If the character region density value X is less than 70% of the maximum density in the determination step of S221, the CPU 10 increases the density of the character image (S222). Specifically, in step S222, the CPU 10 increases the character region density value X by 30%. As a result, as shown in FIG. 5A, the density of the character image increases and the contrast between the character image and the background image increases.

これに対して、S221の判断ステップにおいて、文字領域濃度値Xが最大濃度の70%以上であれば、CPU10は、文字画像の濃度を減少させる(S223)。この例では、S223のステップにおいて、CPU10は、文字領域濃度値Xを0にする。この結果、図5(C)に示すように、文字画像が白抜き状態になり、文字画像と背景画像のコントラストが高まる。   On the other hand, if the character region density value X is 70% or more of the maximum density in the determination step of S221, the CPU 10 decreases the density of the character image (S223). In this example, the CPU 10 sets the character area density value X to 0 in step S223. As a result, as shown in FIG. 5C, the character image becomes white and the contrast between the character image and the background image increases.

図8を用いて、S115の画像データ調整処理を説明する。S115の画像データ調整処理において、CPU10は、文字画像全体のイエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、およびブラック成分濃度平均値Xkを算出する(S120)。   The image data adjustment process in S115 will be described with reference to FIG. In the image data adjustment processing of S115, the CPU 10 calculates the yellow component density average value Xy, magenta component density average value Xm, cyan component density average value Xc, and black component density average value Xk of the entire character image (S120).

続いて、CPU10は、文字画像が黄色であるか否かを判定するために、イエロー成分濃度平均値Xyが閾値以上であるか否かを判断する(S121)。このS121の判断ステップでは、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、およびブラック成分濃度平均値Xkのうちの最大の値に100を乗じた値が閾値として設定される。   Subsequently, the CPU 10 determines whether or not the yellow component density average value Xy is greater than or equal to a threshold value in order to determine whether or not the character image is yellow (S121). In the determination step of S121, a value obtained by multiplying the maximum value among the magenta component density average value Xm, the cyan component density average value Xc, and the black component density average value Xk by 100 is set as a threshold value.

S121の判断ステップにおいて、イエロー成分濃度平均値Xyが閾値以上である場合には、CPU10は、背景画像のイエロー成分濃度平均値Yy、背景画像のマゼンタ成分濃度平均値Ym、背景画像のシアン成分濃度平均値Yc、および背景画像のブラック成分濃度平均値Ykを算出する(S125)。なお、ここでは、背景画像のイエロー成分濃度平均値Yy、背景画像のマゼンタ成分濃度平均値Ym、背景画像のシアン成分濃度平均値Yc、および背景画像のブラック成分濃度平均値Ykは、0〜255の256段階の値で表現される。   If the yellow component density average value Xy is equal to or greater than the threshold value in the determination step of S121, the CPU 10 determines the background image yellow component density average value Yy, the background image magenta component density average value Ym, and the background image cyan component density. The average value Yc and the black component density average value Yk of the background image are calculated (S125). Here, the yellow component density average value Yy of the background image, the magenta component density average value Ym of the background image, the cyan component density average value Yc of the background image, and the black component density average value Yk of the background image are 0 to 255. Of 256 levels.

続いて、CPU10は、背景画像が黄色であるか否かを判定するために、イエロー成分濃度平均値Yyが閾値以上であるか否かを判断する(S126)。このS126の判断ステップでは、マゼンタ成分濃度平均値Ym、シアン成分濃度平均値Yc、およびブラック成分濃度平均値Ykのうちの最大の値に100を乗じた値が閾値として設定される。   Subsequently, the CPU 10 determines whether or not the yellow component density average value Yy is equal to or greater than a threshold value in order to determine whether or not the background image is yellow (S126). In the determination step of S126, a value obtained by multiplying the maximum value among the magenta component density average value Ym, the cyan component density average value Yc, and the black component density average value Yk by 100 is set as a threshold value.

S126の判断ステップにおいて、イエロー成分濃度平均値Yyが閾値以上である場合には、CPU10は、後述のS128の色調変更ステップに移行する。これに対しイエロー成分濃度平均値Yyが閾値に満たない場合には、背景画像が白色であるか否かを判定するために、背景画像のイエロー成分濃度平均値Yy、背景画像のマゼンタ成分濃度平均値Ym、背景画像のシアン成分濃度平均値Yc、および背景画像のブラック成分濃度平均値Ykが微小であるか否かを判断する(S127)。この例では、CPU10は、S127の判断ステップにおいて、背景画像のイエロー成分濃度平均値Yy、背景画像のマゼンタ成分濃度平均値Ym、背景画像のシアン成分濃度平均値Yc、および背景画像のブラック成分濃度平均値Ykがいずれも5以下であるか否かを判断している。   In the determination step of S126, when the yellow component density average value Yy is equal to or greater than the threshold value, the CPU 10 proceeds to a later-described color tone changing step of S128. On the other hand, when the yellow component density average value Yy is less than the threshold value, in order to determine whether or not the background image is white, the background image yellow component density average value Yy, the background image magenta component density average It is determined whether the value Ym, the cyan component density average value Yc of the background image, and the black component density average value Yk of the background image are very small (S127). In this example, in the determination step of S127, the CPU 10 determines the yellow component density average value Yy of the background image, the magenta component density average value Ym of the background image, the cyan component density average value Yc of the background image, and the black component density of the background image. It is determined whether or not the average values Yk are all 5 or less.

S127の判断ステップにおいて、背景画像のイエロー成分濃度平均値Yy、背景画像のマゼンタ成分濃度平均値Ym、背景画像のシアン成分濃度平均値Yc、および背景画像のブラック成分濃度平均値Ykがいずれも5以下である場合には、S128の色調変更ステップに移行し、それ以外の場合にはそのまま画像データ調整処理を終了する。   In the determination step of S127, the yellow component density average value Yy of the background image, the magenta component density average value Ym of the background image, the cyan component density average value Yc of the background image, and the black component density average value Yk of the background image are all 5. In the following cases, the process proceeds to the color tone changing step in S128, and in other cases, the image data adjustment process is ended as it is.

S128の色調変更ステップでは、CPU10は、文字画像のイエロー成分濃度平均値Xyを30%減少するとともに、マゼンタ成分濃度平均値Xmおよびシアン成分濃度平均値Xcを30%増加させる。その結果、図9(A)または図9(B)に示すように、文字画像の色調が変化し、文字画像と背景画像とのコントラストが高まる。   In the color tone changing step of S128, the CPU 10 decreases the yellow component density average value Xy of the character image by 30% and increases the magenta component density average value Xm and the cyan component density average value Xc by 30%. As a result, as shown in FIG. 9A or 9B, the color tone of the character image changes, and the contrast between the character image and the background image increases.

一方で、S121の判断ステップにおいて、イエロー成分濃度平均値Xyが閾値に満たない場合、CPU10は、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkのいずれか1つの値が閾値以上であるか否かを判断する(S122)。S122の判断ステップにおける閾値は、最大濃度の70%の値に設定される。   On the other hand, when the yellow component density average value Xy is less than the threshold value in the determination step of S121, the CPU 10 determines the yellow component density average value Xy, the magenta component density average value Xm, the cyan component density average value Xc, or the black component density. It is determined whether any one of the average values Xk is equal to or greater than a threshold value (S122). The threshold value in the determination step of S122 is set to a value of 70% of the maximum density.

S122の判断ステップにおいて、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkの値のいずれもが最大濃度の70%未満であれば、CPU10は、文字画像の濃度を増加させる(S123)。具体的には、S123のステップにおいて、CPU10は、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkの値をそれぞれ30%増加させる。この結果、図5(A)または図5(B)に示すように、文字画像の濃度が高くなり、文字画像と背景画像のコントラストが高まる。   If any of the yellow component density average value Xy, magenta component density average value Xm, cyan component density average value Xc, or black component density average value Xk is less than 70% of the maximum density in the determination step of S122, The CPU 10 increases the density of the character image (S123). Specifically, in step S123, the CPU 10 increases the yellow component density average value Xy, magenta component density average value Xm, cyan component density average value Xc, or black component density average value Xk by 30%. As a result, as shown in FIG. 5A or FIG. 5B, the density of the character image increases, and the contrast between the character image and the background image increases.

これに対して、S122の判断ステップにおいて、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkの値のいずれか1つが、最大濃度の70%以上であれば、CPU10は、文字画像の濃度を減少させる(S124)。この例では、S124のステップにおいて、CPU10は、イエロー成分濃度平均値Xy、マゼンタ成分濃度平均値Xm、シアン成分濃度平均値Xc、またはブラック成分濃度平均値Xkの値をそれぞれ0にしている。この結果、図5(C)または図5(D)に示すように、文字画像が白抜き状態になり、文字画像と背景画像のコントラストが高まる。   On the other hand, in the determination step of S122, any one of the yellow component density average value Xy, magenta component density average value Xm, cyan component density average value Xc, or black component density average value Xk is the maximum density. If it is 70% or more, the CPU 10 decreases the density of the character image (S124). In this example, in step S124, the CPU 10 sets the yellow component density average value Xy, magenta component density average value Xm, cyan component density average value Xc, or black component density average value Xk to 0. As a result, as shown in FIG. 5C or FIG. 5D, the character image becomes white and the contrast between the character image and the background image increases.

図10は、画像処理時および画像データ調整処理時におけるCPU10の動作手順の他の例を示すフローチャートである。図10におけるS301〜S312のステップは、図3におけるS1〜S12のステップに対応するため、ここでは説明を省略する。   FIG. 10 is a flowchart illustrating another example of the operation procedure of the CPU 10 during image processing and image data adjustment processing. Since steps S301 to S312 in FIG. 10 correspond to steps S1 to S12 in FIG. 3, the description thereof is omitted here.

CPU10は、調整後の画像データに係る画像を表示部16に表示させる(S313)。続いて、CPU10は、調整後の画像をユーザが承認するか否かを判断する(S314)。S314の判断ステップにおいて、操作部18を介してユーザの承認コマンドが出力されるべき場合には、CPU10は、調整後の画像データを画像形成部14に供給する。これに対して、S314の判断ステップにおいて、ユーザの承認コマンドが入力されない場合には、CPU10は、画像データの調整を無効にする(S315)。このとき、CPU10は、調整前の画像データを画像形成部14に供給する。   The CPU 10 displays an image related to the adjusted image data on the display unit 16 (S313). Subsequently, the CPU 10 determines whether or not the user approves the adjusted image (S314). If a user approval command is to be output via the operation unit 18 in the determination step of S314, the CPU 10 supplies the adjusted image data to the image forming unit 14. On the other hand, when the user's approval command is not input in the determination step of S314, the CPU 10 invalidates the adjustment of the image data (S315). At this time, the CPU 10 supplies the image data before adjustment to the image forming unit 14.

上述の実施形態の説明は、すべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上述の実施形態ではなく、特許請求の範囲によって示される。さらに、本発明の範囲には、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The above description of the embodiment is to be considered in all respects as illustrative and not restrictive. The scope of the present invention is shown not by the above embodiments but by the claims. Furthermore, the scope of the present invention is intended to include all modifications within the meaning and scope equivalent to the scope of the claims.

複写機の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of a copying machine. 画像データ調整部の構成を示すブロック図である。It is a block diagram which shows the structure of an image data adjustment part. 画像処理および画像データ調整処理時におけるCPUの動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of CPU at the time of an image process and an image data adjustment process. 画像データ調整処理時におけるCPUの動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of CPU at the time of an image data adjustment process. 調整の前後における画像の状態を示す図である。It is a figure which shows the state of the image before and behind adjustment. 画像処理および画像データ調整処理時におけるCPUの動作手順の他の例を示すフローチャートである。It is a flowchart which shows the other example of the operation | movement procedure of CPU at the time of an image process and an image data adjustment process. 画像データ調整処理時におけるCPUの動作手順の他の例を示すフローチャートである。It is a flowchart which shows the other example of the operation | movement procedure of CPU at the time of image data adjustment processing. 画像データ調整処理時におけるCPUの動作手順の他の例を示すフローチャートである。It is a flowchart which shows the other example of the operation | movement procedure of CPU at the time of image data adjustment processing. 調整の前後における画像の状態の他の例を示す図である。It is a figure which shows the other example of the state of the image before and behind adjustment. 画像処理および画像データ調整処理時におけるCPUの動作手順の他の例を示すフローチャートである。It is a flowchart which shows the other example of the operation | movement procedure of CPU at the time of an image process and an image data adjustment process.

符号の説明Explanation of symbols

10−CPU
26−画像処理部
30−画像データ調整部
32−前処理部
34−領域検出部
36−画像判定部
38−画像変更部
10-CPU
26-Image processing unit 30-Image data adjustment unit 32-Pre-processing unit 34-Region detection unit 36-Image determination unit 38-Image change unit

Claims (9)

出力されるべき画像データに対して画像処理を行う画像処理装置であって、
画像データにおける文字画像が占める領域、および前記文字画像の周囲に位置する背景画像が占める領域の検出をそれぞれ行う領域検出手段と、
前記領域検出手段の検出結果に基づいて、前記文字画像の濃度を示す第1の濃度値および前記背景画像の濃度を示す第2の濃度値をそれぞれ算出する濃度算出手段と、
前記第2の濃度値と前記第1の濃度値との差が所定値以下のときに、前記第1の濃度値に基づいて、前記文字画像と前記背景画像とのコントラストが拡大するように前記文字画像の濃度を変更する画像調整手段と、
を備えたことを特徴とする画像処理装置。
An image processing apparatus that performs image processing on image data to be output,
An area detection unit for detecting an area occupied by a character image in image data and an area occupied by a background image located around the character image;
Density calculating means for calculating a first density value indicating the density of the character image and a second density value indicating the density of the background image based on the detection result of the area detecting means;
When the difference between the second density value and the first density value is less than or equal to a predetermined value, the contrast between the character image and the background image is enlarged based on the first density value. Image adjusting means for changing the density of the character image;
An image processing apparatus comprising:
前記画像調整手段は、前記第2の濃度値と前記第1の濃度値との差が所定値以下の場合において、前記第1の濃度値が所定の閾値以上のときは、前記文字画像の濃度を低下させることを特徴とする請求項1に記載の画像処理装置。   When the difference between the second density value and the first density value is less than or equal to a predetermined value, and the first density value is greater than or equal to a predetermined threshold value, the image adjustment means The image processing apparatus according to claim 1, wherein: 前記画像調整手段は、前記第2の濃度値と前記第1の濃度値との差が所定値以下の場合において、前記第1の濃度値が所定の閾値未満のときは、前記文字画像の濃度を上昇させることを特徴とする請求項1または2に記載の画像処理装置。   When the difference between the second density value and the first density value is less than or equal to a predetermined value and the first density value is less than a predetermined threshold value, the image adjusting unit determines the density of the character image. The image processing apparatus according to claim 1, wherein the image processing apparatus raises the image. 前記濃度算出手段は、前記文字画像の濃度および前記背景画像の濃度をイエロー、マゼンタ、シアン、およびブラックの色成分毎にそれぞれ算出し、
前記画像調整手段は、前記濃度算出手段の算出結果に基づいて、前記文字画像の濃度を色成分毎に調整することを特徴とする請求項1に記載の画像処理装置。
The density calculation means calculates the density of the character image and the density of the background image for each of yellow, magenta, cyan, and black color components,
The image processing apparatus according to claim 1, wherein the image adjustment unit adjusts the density of the character image for each color component based on a calculation result of the density calculation unit.
前記画像調整手段は、前記文字画像のイエロー成分の濃度がマゼンタ成分およびシアン成分に対して所定比率以上である場合に、前記文字画像のマゼンタ成分またはシアン成分の少なくともいずれかの濃度を調整することを特徴とする請求項4に記載の画像処理装置。   The image adjusting means adjusts the density of at least one of the magenta component and the cyan component of the character image when the density of the yellow component of the character image is a predetermined ratio or more with respect to the magenta component and the cyan component. The image processing apparatus according to claim 4. 前記画像調整手段は、前記背景画像の色がイエローまたはホワイトであると判定された場合にのみ、前記文字画像のマゼンタ成分またはシアン成分の少なくともいずれかの濃度を調整することを特徴とする請求項5に記載の画像処理装置。   The image adjusting means adjusts the density of at least one of a magenta component and a cyan component of the character image only when it is determined that the color of the background image is yellow or white. 5. The image processing apparatus according to 5. 前記領域検出手段は、背景画像となるべき領域を指定するユーザからの入力に基づいて、背景画像が占める領域を決定することを特徴とする請求項1〜6のいずれか1項に記載の画像処理装置。   The image according to any one of claims 1 to 6, wherein the area detection unit determines an area occupied by the background image based on an input from a user who designates an area to be a background image. Processing equipment. 前記画像調整手段による変更後の画像を表示する表示手段と、
ユーザからの所定の入力操作に基づいて、前記画像調整手段による文字画像の変更を無効にする変更無効化手段と、
をさらに備えたことを特徴とする請求項1〜7のいずれか1項に記載の画像処理装置。
Display means for displaying the image after the change by the image adjusting means;
Based on a predetermined input operation from a user, a change invalidation unit that invalidates a change of a character image by the image adjustment unit;
The image processing apparatus according to claim 1, further comprising:
請求項1〜8のいずれか1項に記載の画像処理装置と、
前記画像処理装置から供給される画像データに基づいて画像形成処理を実行する画像形成部と、
を備えたことを特徴とする画像形成装置。
The image processing apparatus according to any one of claims 1 to 8,
An image forming unit that executes an image forming process based on image data supplied from the image processing apparatus;
An image forming apparatus comprising:
JP2007017485A 2007-01-29 2007-01-29 Image processor and image forming apparatus equipped with the same Pending JP2008187327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007017485A JP2008187327A (en) 2007-01-29 2007-01-29 Image processor and image forming apparatus equipped with the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007017485A JP2008187327A (en) 2007-01-29 2007-01-29 Image processor and image forming apparatus equipped with the same

Publications (1)

Publication Number Publication Date
JP2008187327A true JP2008187327A (en) 2008-08-14

Family

ID=39730092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007017485A Pending JP2008187327A (en) 2007-01-29 2007-01-29 Image processor and image forming apparatus equipped with the same

Country Status (1)

Country Link
JP (1) JP2008187327A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011112522A2 (en) * 2010-03-10 2011-09-15 Microsoft Corporation Text enhancement of a textual image undergoing optical character recognition
JP2017219806A (en) * 2016-06-10 2017-12-14 スリーエム イノベイティブ プロパティズ カンパニー Graphic film and license plate

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011112522A2 (en) * 2010-03-10 2011-09-15 Microsoft Corporation Text enhancement of a textual image undergoing optical character recognition
WO2011112522A3 (en) * 2010-03-10 2011-11-03 Microsoft Corporation Text enhancement of a textual image undergoing optical character recognition
CN102782706A (en) * 2010-03-10 2012-11-14 微软公司 Text enhancement of a textual image undergoing optical character recognition
US8526732B2 (en) 2010-03-10 2013-09-03 Microsoft Corporation Text enhancement of a textual image undergoing optical character recognition
JP2017219806A (en) * 2016-06-10 2017-12-14 スリーエム イノベイティブ プロパティズ カンパニー Graphic film and license plate

Similar Documents

Publication Publication Date Title
JP4189467B2 (en) Image processing device
US8265418B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium for calculating a depth value of a subject in an image
JP2004320701A (en) Image processing device, image processing program and storage medium
EP2068569A1 (en) Method of and apparatus for detecting and adjusting colour values of skin tone pixels
EP3367656B1 (en) Image processing apparatus, image processing method, and recording medium
JP2008113446A (en) Image processing device, image processing program and recording medium
US10348932B2 (en) Image processing apparatus, method of controlling the same, and non-transitory computer-readable storage medium that decrease the lightness of pixels, except for a highlight region, based on a generated lightness histogram
JP7447193B2 (en) Image processing device and image processing method
JP2006018465A (en) Image processing method, image processing apparatus, computer program and storage medium
JP4208396B2 (en) Image processing method, apparatus, and recording medium
JP4888485B2 (en) Gradation correction characteristic evaluation apparatus, image processing apparatus, gradation correction characteristic evaluation method, image processing method, gradation correction characteristic evaluation program, and image processing program
JP3667181B2 (en) Image processing method and image processing apparatus
JP2008187327A (en) Image processor and image forming apparatus equipped with the same
JP2014078808A (en) Image processing apparatus and image processing method
US9989875B2 (en) Image processing apparatus, image processing method, and storage medium
US20090244664A1 (en) Image Processing Device, Image Processing Method, and Program
JP2013110617A (en) Image processing apparatus
JP6486082B2 (en) Image processing apparatus, image processing method, and program
JP4059389B2 (en) Image processing apparatus, image processing program, and storage medium
JP2017037622A (en) Image processing device and program
JP6631360B2 (en) Image processing apparatus and image processing method
JPH11136505A (en) Picture processor and picture processing method
JPH096946A (en) Image processing method and image processor
JP4867693B2 (en) Document editing apparatus and program
US10798267B2 (en) Image processing to set output pixel values subject to edge or thin line correction