JP6819358B2 - Image processing device, image judgment method, and image processing program - Google Patents

Image processing device, image judgment method, and image processing program Download PDF

Info

Publication number
JP6819358B2
JP6819358B2 JP2017036774A JP2017036774A JP6819358B2 JP 6819358 B2 JP6819358 B2 JP 6819358B2 JP 2017036774 A JP2017036774 A JP 2017036774A JP 2017036774 A JP2017036774 A JP 2017036774A JP 6819358 B2 JP6819358 B2 JP 6819358B2
Authority
JP
Japan
Prior art keywords
image
color
color correction
image data
black character
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.)
Active
Application number
JP2017036774A
Other languages
Japanese (ja)
Other versions
JP2018011286A (en
Inventor
匠 石川
匠 石川
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to US15/620,012 priority Critical patent/US10204294B2/en
Publication of JP2018011286A publication Critical patent/JP2018011286A/en
Application granted granted Critical
Publication of JP6819358B2 publication Critical patent/JP6819358B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、画像処理装置、画像判定方法、及び画像処理プログラムに関する。 The present invention relates to an image processing apparatus, an image determination method, and an image processing program.

原稿画像を読み取り、読み取った原稿画像を記録媒体上に形成する画像形成装置のなかには、その原稿画像がカラー画像か否かを自動判定するACS(Automatic Color Selection)機能を搭載したものがある。そのACS機能(を備えた画像処理装置)を搭載した画像形成装置では、ユーザは、記録媒体上に形成させる画像の種類を選択することなく、原稿画像の種類と同じ種類の画像を記録媒体上に形成させることができる。 Some image forming devices that read a manuscript image and form the read manuscript image on a recording medium are equipped with an ACS (Automatic Color Selection) function that automatically determines whether or not the manuscript image is a color image. In an image forming apparatus equipped with the ACS function (an image processing apparatus provided with the ACS function), the user can output an image of the same type as the original image on the recording medium without selecting the type of the image to be formed on the recording medium. Can be formed into.

原稿画像の読み取りには、スキャナが用いられる。スキャナによる画像の読み取りでは、そのスキャナの特性に起因した影響が、その読み取りにより得られた画像データに発生する。例えば画素をR(Red)G(Green)B(Blue)の色成分に分解して画像を読み取るスキャナでは、各色成分の読み取りを同一箇所で行えないことによる色ずれが発生する場合がある。 A scanner is used to read the original image. When scanning an image with a scanner, the influence caused by the characteristics of the scanner occurs on the image data obtained by the scanning. For example, in a scanner that decomposes pixels into R (Red) G (Green) B (Blue) color components and reads an image, color shift may occur because each color component cannot be read at the same location.

この色ずれは、ACS機能による判定精度を低下させる。このことから、スキャナの特性によってACS機能の判定精度の低下を抑制する画像処理装置を搭載した画像形成装置が考えられている。そのような画像形成装置のなかには、色ずれ量、更にはMTF(Modulation Transfer Function)差を考慮して、画素単位で行う有彩色/無彩色の判定に用いる閾値を設定する画像処理装置を搭載したものがある(例えば特許文献1参照)。 This color shift reduces the determination accuracy by the ACS function. For this reason, an image forming apparatus equipped with an image processing apparatus that suppresses a decrease in determination accuracy of the ACS function due to the characteristics of the scanner has been considered. Among such image forming devices, an image processing device for setting a threshold value used for chromatic / achromatic color determination performed on a pixel-by-pixel basis is installed in consideration of the amount of color shift and the difference in MTF (Modulation Transfer Function). There are some (see, for example, Patent Document 1).

上記閾値により、各画素は、有彩色、及び無彩色のうちの何れかに分類される。そのため、閾値の設定変更により、同一の画像(画像データ)の場合、全画素のなかで有彩色(カラー画像の画素)と判定される部分、或いは割合等が変化する。その部分、或いは割合等の変化は、カラー画像か否かの判定に影響を及ぼす。 According to the above threshold value, each pixel is classified into either chromatic color or achromatic color. Therefore, by changing the setting of the threshold value, in the case of the same image (image data), the portion determined to be a chromatic color (pixel of a color image) or the ratio of all the pixels changes. The change in the portion, the ratio, or the like affects the determination of whether or not the image is a color image.

この閾値の設定変更の影響は、画像(画像データ)の内容によって変化する。その影響が、カラー画像か否かの判定精度の向上に作用するとは限らない。なぜなら、判定の対象とする画像(画像データ)の内容と閾値の関係に応じて、判定結果が変化するからである。このことから、カラー画像か否かの判定精度を向上させるには、閾値の設定変更以外の方法を採用するのが重要である。 The effect of changing the threshold setting changes depending on the content of the image (image data). The effect does not always affect the improvement of the determination accuracy of whether or not the image is a color image. This is because the determination result changes according to the relationship between the content of the image (image data) to be determined and the threshold value. For this reason, in order to improve the accuracy of determining whether or not the image is a color image, it is important to adopt a method other than changing the threshold setting.

本発明は、このような課題を解決するためになされたものであり、カラー画像か否かの判定精度をより向上させることを目的とする。 The present invention has been made to solve such a problem, and an object of the present invention is to further improve the accuracy of determining whether or not a color image is used.

上記課題を解決するために、本発明の一態様は、画像データを受けて、該画像データによって表現される画像がカラー画像か否かを判定する画像処理装置であって、前記画像データによって表現される画像から黒文字が含まれる黒文字領域を抽出する分離部と、前記抽出部によって抽出される前記黒文字領域、及び該黒文字領域以外の領域である非黒文字領域の各領域の画像データを構成する画素データに対し、それぞれ異なる内容の色補正を行う色補正部と、前記色補正部による色補正を前記画素データに対して行った後の画像データを用いて、前記画像がカラー画像か否かを判定する判定部と、を備えることを特徴とする。 In order to solve the above problem, one aspect of the present invention is an image processing device that receives image data and determines whether or not the image represented by the image data is a color image, and is represented by the image data. A pixel constituting image data of a separation unit that extracts a black character region containing black characters from an image to be imaged, the black character region extracted by the extraction unit, and a non-black character region that is an region other than the black character region. Whether or not the image is a color image is determined by using a color correction unit that performs color correction of different contents on the data and image data after color correction by the color correction unit is performed on the pixel data. It is characterized by including a determination unit for determining.

本発明によれば、カラー画像か否かの判定精度をより向上させることができる。 According to the present invention, it is possible to further improve the accuracy of determining whether or not the image is a color image.

本実施形態による画像処理装置を搭載した画像形成装置の概略構成例を説明する図である。It is a figure explaining the schematic configuration example of the image forming apparatus equipped with the image processing apparatus by this embodiment. 領域の抽出、及び領域の種類別に行われる色補正を説明する図である。It is a figure explaining the extraction of a region, and the color correction performed for each type of region. 黒文字領域に対して行う色補正の内容例を説明する図である。It is a figure explaining the content example of the color correction performed on the black character area. 黒文字領域に対して行う色補正の他の内容例を説明する図である。It is a figure explaining another content example of color correction performed on a black character area. 写真領域に対して行う色補正の内容例を説明する図である。It is a figure explaining the content example of the color correction performed on a photographic area. 画像処理部のハードウェア構成例を説明する図である。It is a figure explaining the hardware configuration example of the image processing part. ACS判定処理を示すフローチャートである。It is a flowchart which shows the ACS determination processing.

以下、図面を参照して、本発明の実施形態を詳細に説明する。図1は、本実施形態に係る画像処理装置を搭載した画像形成装置1の概略構成例を説明する図である。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram illustrating a schematic configuration example of an image forming apparatus 1 equipped with an image processing apparatus according to the present embodiment.

この画像形成装置1は、図1に示すように、画像読取り部11、画像処理部12、及び画像形成部13を備える。 As shown in FIG. 1, the image forming apparatus 1 includes an image reading unit 11, an image processing unit 12, and an image forming unit 13.

画像読取り部11は、具体的にはスキャナか、或いはそのスキャナを含む構成要素である。原稿台にセットされた原稿の画像を読み取り、或いは原稿台に搬送された原稿の画像を読み取り、その画像データを出力する。 The image reading unit 11 is specifically a scanner or a component including the scanner. The image of the original set on the platen is read, or the image of the original conveyed to the platen is read and the image data is output.

画像処理部12は、画像読取り部11から出力された画像データを入力し、予め設定された画像処理を行う構成要素であり、1つの情報処理装置である。この画像処理部12が、本実施形態に係る画像処理装置に相当する。 The image processing unit 12 is a component that inputs image data output from the image reading unit 11 and performs preset image processing, and is one information processing device. The image processing unit 12 corresponds to the image processing device according to the present embodiment.

この画像処理部12は、画像処理の一つとして、入力した画像データによって表現される原稿画像がカラー画像か否かを判定するACS(Automatic Color Selection)機能を提供する。そのACS機能の実現のために、画像処理部12は、図1に示すように、抽出部121、第1色補正部122、及びACS判定部123を備えている。 As one of the image processing, the image processing unit 12 provides an ACS (Automatic Color Selection) function for determining whether or not the original image represented by the input image data is a color image. In order to realize the ACS function, the image processing unit 12 includes an extraction unit 121, a first color correction unit 122, and an ACS determination unit 123, as shown in FIG.

抽出部121は、画像データによって表現される原稿画像を、黒文字領域、及び非黒文字領域のうちの何れかの領域に分類し、各領域の種類別ごとに、当該原稿画像から各領域を抽出する。 The extraction unit 121 classifies the manuscript image represented by the image data into one of a black character area and a non-black character area, and extracts each area from the manuscript image for each type of each area. ..

ここで、黒文字領域は、無彩色と見なされる画素を構成要素とする領域である。この黒文字領域は、例えば黒文字(黒画素)、及びその背景(例えば白画素)から構成されると見なされる領域のことである。言い換えると、黒文字領域は、黒画素とその背景に相当する白画素から構成されると見なされる領域、或いは黒画素、若しくは白画素のみから構成される領域のことである。非黒文字領域は、その黒文字領域以外の領域、つまり有彩色と見なされる画素を含む領域のことである。この非黒文字領域は以降、「写真領域」とも表記する。なお、この領域の抽出自体は、周知の技術を用いて行われる。 Here, the black character region is an region whose constituent elements are pixels that are considered to be achromatic. This black character area is an area considered to be composed of, for example, black characters (black pixels) and its background (for example, white pixels). In other words, the black character region is a region considered to be composed of black pixels and white pixels corresponding to the background thereof, or a region composed of black pixels or only white pixels. The non-black character area is an area other than the black character area, that is, an area including pixels regarded as chromatic colors. This non-black character area will also be referred to as the "photo area" hereafter. The extraction of this region itself is performed using a well-known technique.

第1色補正部122は、抽出部121による抽出結果、及び画像データを入力し、その画像データを構成する画素データ毎に、色補正を行い、色成分毎に、その値を操作する。この色補正は、領域の種類別に、異なる内容で行われる。この第1色補正部122が、本実施形態における色補正部に相当する。 The first color correction unit 122 inputs the extraction result by the extraction unit 121 and the image data, performs color correction for each pixel data constituting the image data, and manipulates the value for each color component. This color correction is performed with different contents depending on the type of area. The first color correction unit 122 corresponds to the color correction unit in this embodiment.

この色補正の対象となる画像データの種類は特に限定されない。ここでは便宜的に、画像データとして、画素をR(Red)、G(Green)、B(Blue)の色成分で表現する画像データを想定する。RGBの各色成分の値は、例えば「R」では、「R値」或いは「Rの階調値」等と表記する。 The type of image data subject to this color correction is not particularly limited. Here, for convenience, as image data, image data in which pixels are represented by R (Red), G (Green), and B (Blue) color components is assumed. For example, in "R", the value of each color component of RGB is expressed as "R value" or "gradation value of R".

ACS判定部123は、色補正後の画像データを用いて、原稿画像がカラー画像か否かを判定する構成要素であり、本実施形態における判定部に相当する。この判定結果である画像データ、及び予め指定の画像処理を行った後の画像データが画像形成部13に出力される。なお、本実施形態において、「原稿画像がカラー画像か否かを判定する」とは、例えば、原稿画像がカラー画像、またはモノクロ画像のいずれであるかを判定することも含むものとする。 The ACS determination unit 123 is a component that determines whether or not the original image is a color image by using the image data after color correction, and corresponds to the determination unit in the present embodiment. The image data which is the determination result and the image data after performing the designated image processing in advance are output to the image forming unit 13. In the present embodiment, "determining whether or not the original image is a color image" includes, for example, determining whether the original image is a color image or a monochrome image.

画像形成部13は、画像読取り部11によって読み取られた画像データを記録媒体上に形成する構成要素である。この画像データに対し、第2色補正部124によって画像形成装置1にあらかじめ設定されている色補正処理や、ユーザによって選択された色補正処理を行うものであってもよい。その場合、画像形成部13は、画像処理部12に含まれる第2色補正部124によって色補正が行われた後の画像データを記録媒体上に形成すればよい。 The image forming unit 13 is a component that forms the image data read by the image reading unit 11 on the recording medium. The image data may be subjected to a color correction process preset in the image forming apparatus 1 by the second color correction unit 124 or a color correction process selected by the user. In that case, the image forming unit 13 may form the image data on the recording medium after the color correction is performed by the second color correction unit 124 included in the image processing unit 12.

第2色補正部124は、形成される画像データを対象とした処理部であり、第1色補正部122のようにACS判定をするために画像データに対して色補正をする処理部とは色補正の目的が異なる。その画像形成部13は、ユーザが操作する操作部、及び画像形成装置1全体を制御する制御部を含む。それにより、画像読取り部11による原稿画像の読み取り、及び画像処理部12に実行させる画像処理の指示、等は画像形成部13により行われる。 The second color correction unit 124 is a processing unit for the formed image data, and is a processing unit that performs color correction on the image data in order to make an ACS determination like the first color correction unit 122. The purpose of color correction is different. The image forming unit 13 includes an operation unit operated by the user and a control unit that controls the entire image forming apparatus 1. As a result, the image forming unit 13 reads the original image by the image reading unit 11 and gives instructions for image processing to be executed by the image processing unit 12.

図2は、領域の分離、及び領域の種類別に行われる色補正を説明する図である。この図2において、原稿画像21は、色補正処理を実行した後に色補正後原稿画像22となる。原稿画像21及び色補正後原稿画像22には、それぞれ、黒文字領域21aと非黒文字領域である写真領域21bが含まれている。 FIG. 2 is a diagram illustrating the separation of regions and the color correction performed for each type of region. In FIG. 2, the original image 21 becomes the original image 22 after color correction after the color correction processing is executed. The original image 21 and the color-corrected original image 22 include a black character region 21a and a non-black character region photographic region 21b, respectively.

図2に示すように、原稿画像21には、「あいうえお」の文字列が印字された黒文字領域21aと、黒以外の色で「かきくけこ」の文字列が印字された写真領域21bと、写真が印字された写真領域21bと、が含まれているものとする。この3つの領域(1つの黒文字領域21aと、2つの写真領域21b)は、抽出部121によって原稿画像21から抽出されて分離される。なお、図2に示す原稿画像21に含まれる3つの領域以外の部分は、黒文字領域21aとして抽出される。これは、その部分は、均一な背景(例えば白画素)のみが存在すると見なせるからである。 As shown in FIG. 2, the manuscript image 21 includes a black character area 21a on which the character string "aiueo" is printed, a photographic area 21b on which the character string "Kakikukeko" is printed in a color other than black, and the like. It is assumed that the photographic area 21b on which the photograph is printed is included. These three regions (one black character region 21a and two photographic regions 21b) are extracted from the original image 21 by the extraction unit 121 and separated. The portion other than the three regions included in the original image 21 shown in FIG. 2 is extracted as the black character region 21a. This is because the portion can be regarded as having only a uniform background (for example, white pixels).

上記のように、色補正は、領域の種類別に異なる内容で行われる。その色補正によって、各画素データのRGB値は、対応する領域によって異なる操作が行われる。ここで、領域の種類別に行う色補正について、図3、及び図4を参照して具体的に説明する。 As described above, the color correction is performed with different contents depending on the type of area. Due to the color correction, the RGB value of each pixel data is operated differently depending on the corresponding area. Here, the color correction performed for each type of region will be specifically described with reference to FIGS. 3 and 4.

図3は、黒文字領域に対して行う色補正の内容例を説明する図である。図3では、黒文字領域の画像、及び代表的な画素データの内容例を表すグラフを、色補正の前後に分けて示している。図3(a)は、色補正前のものを示し、図3(b)は、色補正後のものを示している。 FIG. 3 is a diagram illustrating an example of the content of color correction performed on the black character region. In FIG. 3, an image of a black character region and a graph showing a content example of typical pixel data are shown separately before and after color correction. FIG. 3A shows the one before color correction, and FIG. 3B shows the one after color correction.

スキャナ特性により、図3(a)に示すように、原稿画像21を出力して得られる画像には、色ずれ等が発生する。なお、原稿画像21が出力する画像データとは必要な補正を行った後の画像データである。画像データに含まれるRGBそれぞれの値の大きさの違いである色ずれにより、RGBの各階調値が一致、或いはその差分が小さい値となるべき黒色の画素(上記「黒画素」)、及び白色の画素(上記「白画素」)で階調値間の差分(例えば階調値のなかの最大値−階調値のなかの最小値、により算出される値)が比較的に大きくなる。その差分が比較的に大きい画素の色は有彩色と見なされる。本来、無彩色と見なすべき画素を有彩色と判定することにより、カラー画像か否かの判定精度が低下することとなる。 Due to the scanner characteristics, as shown in FIG. 3A, color shift or the like occurs in the image obtained by outputting the original image 21. The image data output by the original image 21 is the image data after the necessary corrections have been made. Black pixels (the above-mentioned "black pixels") and white, in which each RGB gradation value should match or the difference should be small due to color shift, which is the difference in the magnitude of each RGB value included in the image data. The difference between the gradation values (for example, the value calculated by the maximum value among the gradation values and the minimum value among the gradation values) is relatively large in the pixels (the above-mentioned "white pixels"). Pixel colors with a relatively large difference are considered chromatic. By determining a pixel that should be regarded as an achromatic color as a chromatic color, the accuracy of determining whether or not it is a color image is lowered.

このようなことから、本実施形態では、図3(b)に示すように、各画素(各画素データ)に対し、階調値を一致させる色補正、つまり無彩色と判定させる色補正を行うようにしている。一致させる階調値としては、RGBの各階調値のなかの最小値を採用している。 For this reason, in the present embodiment, as shown in FIG. 3B, color correction for matching the gradation values of each pixel (each pixel data), that is, color correction for determining achromatic color is performed. I am doing it. As the gradation value to be matched, the minimum value among the RGB gradation values is adopted.

なお、一致させる階調値は、RGBの各階調値のなかの最小値以外の値としても良い。例えば図4に示すように、一致させる階調値は、各階調値のなかの最大値としても良い。或いは、一致させる階調値は、RGB値から、階調値の最大値、及び最小値のうちの一方としても良い。階調値を一致させるのではなく、階調値間の差分をより小さくさせる操作を色補正として行うようにしても良い。以上のように本実施形態に係る色補正では様々な変形態様が可能である。 The gradation value to be matched may be a value other than the minimum value among the RGB gradation values. For example, as shown in FIG. 4, the gradation value to be matched may be the maximum value among the gradation values. Alternatively, the gradation value to be matched may be one of the RGB value, the maximum value of the gradation value, and the minimum value. Instead of matching the gradation values, an operation of making the difference between the gradation values smaller may be performed as color correction. As described above, the color correction according to the present embodiment can be modified in various ways.

図5は、写真領域に対して行う色補正の内容例を説明する図である。図5では、入力画像、及びその入力画像によって得られるRGBの各階調値の変化例を表すグラフを、色補正の前後に分けて示している。図5(a)は、色補正前のものを示し、図5(b)は、色補正後のものを示している。グラフは、横軸に濃度、縦軸に階調値(0〜255)をとっている。グラフに示す曲線は、濃度の薄い側から、R、B、Gの順番で並んでいる。 FIG. 5 is a diagram illustrating an example of the content of color correction performed on a photographic area. In FIG. 5, the input image and the graph showing the change example of each RGB gradation value obtained by the input image are shown separately before and after the color correction. FIG. 5 (a) shows the one before color correction, and FIG. 5 (b) shows the one after color correction. In the graph, the horizontal axis represents the density and the vertical axis represents the gradation value (0 to 255). The curves shown in the graph are arranged in the order of R, B, and G from the side with the lowest concentration.

図5に示す入力画像は、白〜最高彩度(緑)〜黒までの色が配置された原稿画像21を画像読取り部11により読み取った場合のものである。このことから、符号として「21」を付している。 The input image shown in FIG. 5 is a case where the original image 21 in which colors from white to maximum saturation (green) to black are arranged is read by the image reading unit 11. For this reason, "21" is added as a code.

その原稿画像21(入力画像)の濃度は、右側に向かうほど、及び下側に向かうほど、濃くなるものである。501は、最大彩度の色が印字されたエリアとなっている。 The density of the original image 21 (input image) becomes darker toward the right side and toward the lower side. 501 is an area on which the color with the maximum saturation is printed.

この原稿画像21では、図5(a)に示すように、色補正前は、最高彩度〜黒の間のRGB値の差である△RGBは比較的に小さくなっている。なお、△RGBは、「階調値のなかの最大値−階調値のなかの最小値」である。そのため、視覚的には、濃度(色)の変化が視認し難い画像特性(階調が潰れたような画像特性)となる。言い換えると、色補正前の原稿画像21では、色変化が視認しがたいほど、色の階調が潰れたような画像特性になる。このため、色補正前の原稿画像21では、有彩色/無彩色の適切な判定が困難となる。これは、原稿画像21がカラー画像か否かの判定精度を低下させる原因となる。 In the original image 21, as shown in FIG. 5A, ΔRGB, which is the difference between the RGB values between the maximum saturation and black, is relatively small before the color correction. Note that ΔRGB is “maximum value among gradation values − minimum value among gradation values”. Therefore, the change in density (color) is visually difficult to see (the image characteristic is such that the gradation is crushed). In other words, in the original image 21 before color correction, the image characteristics are such that the color gradation is crushed so that the color change is hard to see. Therefore, in the original image 21 before color correction, it is difficult to appropriately determine chromatic color / achromatic color. This causes a decrease in the accuracy of determining whether or not the original image 21 is a color image.

このことから、本実施形態では、図5(b)に示すように、G値に対し、最高彩度で△RGBが最大となるようにする操作を色補正として行う。この色補正により、△RGBは、白から最高彩度に濃度が変化するにつれて増大し、最高彩度から黒に濃度が変化するにつれて減少する。このため、計算される彩度は濃度によって比較的に大きく変動するようになる。その結果、画素の有彩色/無彩色の判定もより高精度に行えるようになる。 Therefore, in the present embodiment, as shown in FIG. 5B, an operation of maximizing ΔRGB at the maximum saturation is performed as color correction with respect to the G value. Due to this color correction, ΔRGB increases as the density changes from white to the highest saturation, and decreases as the density changes from the highest saturation to black. Therefore, the calculated saturation fluctuates relatively greatly depending on the density. As a result, it becomes possible to determine the chromatic color / achromatic color of the pixel with higher accuracy.

このような色補正、つまり元のRGBの各階調値から色補正後のR’B’G’の各階調値の算出は、例えば以下のようにして行えば良い。
R’=α11×R+α12×G+α13+β
G’=α21×R+α22×G+α23+β
B’=α31×R+α32×G+α33+β
但し、α11〜α33、及びβ〜βは予め定められた係数である。
Such color correction, that is, calculation of each gradation value of R'B'G'after color correction from each gradation value of the original RGB may be performed as follows, for example.
R'= α 11 × R + α 12 × G + α 13 + β 1
G'= α 21 × R + α 22 × G + α 23 + β 2
B'= α 31 × R + α 32 × G + α 33 + β 3
However, α 11 to α 33 and β 1 to β 3 are predetermined coefficients.

なお、本実施形態では、ΔRGBが必ずしも最高彩度で最大となる必要は無く、画像データ読取り部によって読み取られた画像データのΔRGBが最大となる濃度よりも、最高彩度に近い濃度でΔRGBが最大となるように色補正するものであっても良い。 In the present embodiment, ΔRGB does not necessarily have to be the maximum at the maximum saturation, and ΔRGB has a density closer to the maximum saturation than the density at which ΔRGB of the image data read by the image data reading unit is maximized. It may be color-corrected to the maximum.

なお、本実施形態では、RGBの各色を色補正の対象とする特定色としているが、その3色の全てを特定色としなくとも良い。また、特定色は、RGBの3色とは異なる色であっても良い。特定色は、画像データの種類(色空間)に応じて選択しても良い。 In the present embodiment, each color of RGB is set as a specific color to be color-corrected, but all three colors need not be set as specific colors. Further, the specific color may be a color different from the three colors of RGB. The specific color may be selected according to the type of image data (color space).

上記のようにして、本実施形態では、領域の種類別に、異なる内容の色補正を行う。つまり、領域の分離を行った後、その分離結果を用いて、領域の種類別に、画素の有彩色/無彩色の判定精度をより向上させるための色補正を行う。その色補正により、黒文字領域上の画素のデータは、無彩色と判定される値に操作され、写真領域上の画素のデータは、有彩色/無彩色の判定がより高精度に行える値に操作される。 As described above, in the present embodiment, different color corrections are performed for each type of region. That is, after separating the regions, the separation result is used to perform color correction for further improving the determination accuracy of the chromatic color / achromatic color of the pixels for each type of region. Due to the color correction, the pixel data on the black character area is manipulated to a value that is determined to be achromatic, and the pixel data on the photographic area is manipulated to a value that allows more accurate determination of chromatic / achromatic color. Will be done.

そのような2段階の処理を行い、カラー画像か否かを判定するACS判定用の画像データを生成する。その画像データは、領域への分離結果を精査できるものである。このことから、その画像データを用いたACS判定もより高精度に行うことができる。 By performing such a two-step process, image data for ACS determination for determining whether or not the image is a color image is generated. The image data can be used to examine the result of separation into regions. From this, the ACS determination using the image data can be performed with higher accuracy.

また、閾値等の設定(変更)を行わないことから、ACS判定精度が原稿画像21の内容に応じて変動するのは回避できるか、或いはより抑制することができる。従い、閾値等の設定を行う場合と比較して、様々な内容の原稿画像21に適切に対応することができ、ACS判定の精度も確実に高く維持させることができる。 Further, since the threshold value and the like are not set (changed), it is possible to avoid or further suppress the ACS determination accuracy from fluctuating according to the content of the original image 21. Therefore, as compared with the case where the threshold value and the like are set, it is possible to appropriately correspond to the original image 21 having various contents, and the accuracy of the ACS determination can be surely maintained high.

ACS判定部123は、第1色補正部122が生成した画像データを入力し、その画像データを用いて画素毎に有彩色/無彩色の判定を行い、その判定結果を用いて原稿画像21のACS判定を行う。画素毎の有彩色/無彩色の判定、及びその判定結果を用いた原稿画像21のACS判定には、周知の技術を用いることができる。 The ACS determination unit 123 inputs the image data generated by the first color correction unit 122, determines chromatic color / achromatic color for each pixel using the image data, and uses the determination result to determine the original image 21. Make an ACS judgment. A well-known technique can be used for the determination of the chromatic color / achromatic color for each pixel and the ACS determination of the original image 21 using the determination result.

画素の有彩色/無彩色の判定は、例えばRGB値の差が閾値以上か否かにより行えば良い。或いは、画素の有彩色/無彩色の判定は、例えばRGB値のなかの最大値と最小値の差が閾値以上か否かにより行えば良い。つまり、その差が閾値以上の画素を有彩色と判定すれば良い。或いは、M×N(M、Nは共に1以上の整数)のブロックを想定し、そのブロック内の各画素を色相で分け、その色相のブロック内の分布から、対象画素の有彩色/無彩色の判定を行うようにしても良い。 The determination of the chromatic color / achromatic color of the pixel may be performed, for example, depending on whether or not the difference between the RGB values is equal to or greater than the threshold value. Alternatively, the chromatic color / achromatic color of the pixel may be determined based on whether or not the difference between the maximum value and the minimum value of the RGB values is, for example, a threshold value or more. That is, the pixels whose difference is equal to or greater than the threshold value may be determined to be chromatic. Alternatively, assuming a block of M × N (M and N are both integers of 1 or more), each pixel in the block is divided by hue, and the chromatic color / achromatic color of the target pixel is determined from the distribution of the hue in the block. May be determined.

ACS判定は、例えば有彩色と判定された画素の全体に占める割合、或いは有彩色と判定された画素が連続する数、等から行うことが考えられる。 It is conceivable that the ACS determination is performed based on, for example, the ratio of the pixels determined to be chromatic to the total, the number of consecutive pixels determined to be chromatic, and the like.

図6は、上記画像処理部のハードウェア構成例を説明する図である。次に図6を参照して、画像処理部12として使用可能な情報処理装置のハードウェア構成について具体的に説明する。 FIG. 6 is a diagram illustrating a hardware configuration example of the image processing unit. Next, with reference to FIG. 6, the hardware configuration of the information processing apparatus that can be used as the image processing unit 12 will be specifically described.

この画像処理部12として使用可能な情報処理装置は、図6に示すように、例えばCPU(Central Processing Unit)601、ROM(Read Only Memory)602、RAM(Random Access Memory)603、少なくとも2つのI/F(InterFace)コントローラ604、605、及びバス606を備えている。 As shown in FIG. 6, the information processing apparatus that can be used as the image processing unit 12 includes, for example, a CPU (Central Processing Unit) 601 and a ROM (Read Only Memory) 602, a RAM (Random Access Memory) 603, and at least two I. It includes / F (InterFace) controllers 604, 605, and bus 606.

ROM602には、ACS判定を行うためのプログラム(以降「ACS判定プログラム」と表記する)602aが格納されている。CPU601は、そのACS判定プログラム602aをROM602からRAM603に読み出して実行することにより、領域への分離を含むACS判定を行う。RAM603は、画像データの保存にも用いられる。それにより、抽出部121、第1色補正部122、及びACS判定部123は共に、CPU601、ROM602、RAM603、及びバス606によって実現される。 The ROM 602 stores a program (hereinafter referred to as "ACS determination program") 602a for performing the ACS determination. The CPU 601 reads the ACS determination program 602a from the ROM 602 to the RAM 603 and executes it to perform an ACS determination including separation into areas. The RAM 603 is also used for storing image data. As a result, the extraction unit 121, the first color correction unit 122, and the ACS determination unit 123 are all realized by the CPU 601, the ROM 602, the RAM 603, and the bus 606.

2つのI/Fコントローラ604、及び605のうちの一方は、画像読取り部11から転送される画像データの受信に用いられる。他方は、ACS判定結果、及び画像処理後の画像データの画像形成部13への送信に用いられる。 One of the two I / F controllers 604 and 605 is used to receive the image data transferred from the image reading unit 11. The other is used for transmitting the ACS determination result and the image data after image processing to the image forming unit 13.

図7は、ACS判定処理を示すフローチャートである。このACS判定処理は、CPU601が、ROM602に格納されているACS判定プログラム602aをRAM603に読み出して実行することにより実現される処理である。このACS判定処理は、例えば画像読取り部11からの画像データの入力を契機に実行される。次に図7を参照し、そのACS判定処理について詳細に説明する。 FIG. 7 is a flowchart showing the ACS determination process. This ACS determination process is a process realized by the CPU 601 reading the ACS determination program 602a stored in the ROM 602 into the RAM 603 and executing it. This ACS determination process is executed, for example, when the image data is input from the image reading unit 11. Next, with reference to FIG. 7, the ACS determination process will be described in detail.

このACS判定プログラム602aに制御が渡った場合、CPU601は、先ず、画像データを参照して、その画像データによって表現される原稿画像21から黒文字領域、及び写真領域を抽出して分離する(S701)。このS701の処理により、抽出部121が実現される。なお、本実施形態における「抽出」とは、抽出対象となる画素や領域の位置と特定する処理である。 When control is passed to the ACS determination program 602a, the CPU 601 first refers to the image data and extracts and separates the black character area and the photographic area from the original image 21 represented by the image data (S701). .. By the processing of S701, the extraction unit 121 is realized. The "extraction" in the present embodiment is a process of specifying the position of a pixel or region to be extracted.

次に、CPU601は、画像データのなかで対象とする画素データを選択し(S702)、選択した画素データが黒文字領域内のものか否か判定する(S703)。黒文字領域内の画素のデータを選択した場合、S703の判定はYESとなってS704に移行する。写真領域内の画素のデータを選択した場合、S703の判定はNOとなってS705に移行する。 Next, the CPU 601 selects the target pixel data from the image data (S702), and determines whether or not the selected pixel data is in the black character region (S703). When the pixel data in the black character region is selected, the determination in S703 becomes YES and the process proceeds to S704. When the data of the pixels in the photographic area is selected, the determination of S703 becomes NO and the process proceeds to S705.

S704では、CPU601は、画素データが表すRGBの各階調値のなかの最小値を特定し、その特定した階調値をRGBの各階調値とする操作を行う。その後、S706に移行する。 In S704, the CPU 601 specifies the minimum value among the RGB gradation values represented by the pixel data, and performs an operation of setting the specified gradation value as each RGB gradation value. After that, it shifts to S706.

一方、S705では、CPU601は、例えば上記の式により算出されるR’B’G’の各階調値に、RGBの各階調値を変更する操作(色補正のための色変換)を行う。その後はS706に移行する。 On the other hand, in S705, the CPU 601 performs an operation (color conversion for color correction) of changing each gradation value of RGB to each gradation value of R'B'G'calculated by the above formula, for example. After that, it shifts to S706.

S706では、CPU601は、全ての画素データに対する色補正が終了したか否か判定する。色補正を行うべき画素データが存在しない場合、S706の判定はYESとなってS707に移行する。その画素データが残っている場合、S706の判定はNOとなって上記S602に戻る。このことから、S702〜S706で形成される処理ループをS706の判定がYESなるまで繰り返し実行することにより、第1色補正部122が実現される。 In S706, the CPU 601 determines whether or not the color correction for all the pixel data is completed. If there is no pixel data to be color-corrected, the determination in S706 becomes YES and the process proceeds to S707. If the pixel data remains, the determination in S706 becomes NO and the process returns to S602. Therefore, the first color correction unit 122 is realized by repeatedly executing the processing loop formed by S702 to S706 until the determination of S706 becomes YES.

S707では、CPU601は、画素データ毎に、有彩色/無彩色の判定を行い、その判定結果を用いて、原稿画像21がカラー画像か否かを判定するACS判定を行う。そのACS判定の実行後、このACS判定処理が終了する。 In S707, the CPU 601 determines chromatic color / achromatic color for each pixel data, and uses the determination result to perform an ACS determination for determining whether or not the original image 21 is a color image. After the execution of the ACS determination, the ACS determination process ends.

なお、本実施形態では、画像処理装置である画像処理部12は画像形成装置1に搭載されているが、画像形成装置1に搭載させなくとも良い。つまり、ACS判定は、画像形成装置1とは別の情報処理装置に行わせても良い。 In the present embodiment, the image processing unit 12 which is an image processing device is mounted on the image forming device 1, but it does not have to be mounted on the image forming device 1. That is, the ACS determination may be performed by an information processing device different from the image forming device 1.

また、色補正については、黒文字領域、及び写真領域のうちの少なくとも一方に、異なる内容の色補正の選択肢を用意して、ユーザに所望の色補正を行わせるようにしても良い。或いは、その色補正のための設定変更をユーザが行えるようにしても良い。このようなことから、色補正の内容は特に限定されるものではない。 Further, regarding the color correction, different color correction options may be prepared in at least one of the black character area and the photographic area so that the user can perform the desired color correction. Alternatively, the user may be able to change the setting for the color correction. For this reason, the content of color correction is not particularly limited.

1 画像形成装置
11 画像読取り部
12 画像処理部
13 画像形成部
21、22 原稿画像
21a 黒文字領域
21b 写真領域
121 像域分離部
122 第1色補正部
124 第2色補正部
123 ACS判定部
601 CPU
602 ROM
602a ACS判定プログラム
603 RAM
604、605 I/Fコントローラ
606 バス
1 Image forming device 11 Image reading unit 12 Image processing unit 13 Image forming unit 21, 22 Original image 21a Black character area 21b Photo area 121 Image area separation unit 122 First color correction unit 124 Second color correction unit 123 ACS judgment unit 601 CPU
602 ROM
602a ACS judgment program 603 RAM
604, 605 I / F controller 606 bus

特開2011−82746号公報Japanese Unexamined Patent Publication No. 2011-82746

Claims (8)

画像データを受けて、該画像データによって表現される画像がカラー画像か否かを判定する画像処理装置であって、
前記画像データによって表現される画像から黒文字が含まれる黒文字領域を抽出する抽出部と、
前記抽出部によって抽出される前記黒文字領域、及び該黒文字領域以外の領域である非黒文字領域の各領域の画像データを構成する画素データに対し、それぞれ異なる内容の色補正を行う色補正部と、
前記色補正部による色補正を前記画素データに対して行った後の画像データを用いて、前記画像がカラー画像か否かを判定する判定部と、
を備える画像処理装置。
An image processing device that receives image data and determines whether or not the image represented by the image data is a color image.
An extraction unit that extracts a black character area containing black characters from the image represented by the image data, and an extraction unit.
A color correction unit that performs color correction of different contents with respect to pixel data constituting image data of the black character region extracted by the extraction unit and each region of the non-black character region other than the black character region.
A determination unit that determines whether or not the image is a color image by using the image data after the color correction by the color correction unit is performed on the pixel data.
An image processing device comprising.
前記色補正部は、前記黒文字領域の画像データを構成する画素データに対し、画素の色を表す複数の成分値間の差分を減少させる色補正を行う、請求項1記載の画像処理装置。 The image processing apparatus according to claim 1, wherein the color correction unit performs color correction on pixel data constituting the image data in the black character region to reduce a difference between a plurality of component values representing the color of the pixels. 前記色補正部は、前記非黒文字領域の画像データを構成する画素データに対し、画素の色を表す複数の成分値間の差分の最大値を最高彩度に近づける色補正を行う、請求項1又は2に記載の画像処理装置。 The color correction unit performs color correction on the pixel data constituting the image data in the non-black character region so that the maximum value of the difference between the plurality of component values representing the color of the pixels approaches the maximum saturation. Or the image processing apparatus according to 2. 前記色補正部は、前記非黒文字領域の画像データを構成する画素データに対し、画素の色を表す複数の成分値間の差分を最高彩度で最大とさせる色補正を行う、請求項3記載の画像処理装置。 The third aspect of claim 3, wherein the color correction unit performs color correction on the pixel data constituting the image data in the non-black character region so as to maximize the difference between a plurality of component values representing the color of the pixels with the maximum saturation. Image processing equipment. 前記色補正部は、特定色を想定し、前記画素の色を表す複数の成分値間の差分が前記特定色の最高彩度で最大とさせる色補正を前記画素データに対して行う、請求項4記載の画像処理装置。 The color correction unit assumes a specific color and performs color correction on the pixel data so that the difference between a plurality of component values representing the colors of the pixels is maximized at the maximum saturation of the specific color. 4. The image processing apparatus according to 4. 画像データを受けて、該画像データによって表現される画像がカラー画像か否かを判定する画像処理装置であって、
前記画像データによって表現される画像から黒文字が含まれない非黒文字領域を抽出する抽出部と、
前記抽出部によって抽出される非黒文字領域の画像データを構成する画素データに対し、画素の色を表す複数の成分値間の差分の最大値を最高彩度に近づける色補正を行う色補正部と、
前記色補正部による色補正を前記画素データに対して行った後の画像データを用いて、前記画像がカラー画像か否かを判定する判定部と、
を備える画像処理装置。
An image processing device that receives image data and determines whether or not the image represented by the image data is a color image.
An extraction unit that extracts a non-black character area that does not contain black characters from the image represented by the image data,
With respect to the pixel data constituting the image data of the non-black character region extracted by the extraction unit, a color correction unit that performs color correction that brings the maximum value of the difference between a plurality of component values representing the pixel colors close to the maximum saturation. ,
A determination unit that determines whether or not the image is a color image by using the image data after the color correction by the color correction unit is performed on the pixel data.
An image processing device comprising.
画像データを受けて、該画像データによって表現される画像がカラー画像か否かを判定する画像判定方法であって、
前記画像データによって表現される画像から黒文字が含まれる黒文字領域を抽出する抽出し、
前記抽出された黒文字領域、及び黒文字領域以外の領域である非黒文字領域の各領域の画像データを構成する画素データに対し、それぞれ異なる内容の色補正をし、
前記色補正を前記画素データに対して行わせた後の画像データを用いて、前記画像がカラー画像か否かを判定する、画像判定方法。
It is an image determination method that receives image data and determines whether or not the image represented by the image data is a color image.
Extract the black character area containing the black character from the image represented by the image data.
Color correction of different contents is performed on the pixel data constituting the image data of each of the extracted black character area and the non-black character area other than the black character area.
An image determination method for determining whether or not the image is a color image by using the image data after the color correction is performed on the pixel data.
入力した画像データを用いて、該画像データによって表現される画像がカラー画像か否かを判定する画像処理装置として用いられる情報処理装置において実行する画像処理プログラムであって、
前記情報処理装置に、
前記画像データによって表現される画像から黒文字が含まれる黒文字領域を抽出させる抽出ステップと、
前記抽出ステップによって抽出される黒文字領域、及び該黒文字領域以外の領域である非黒文字領域の各領域の画像データを構成する画素データに対し、それぞれ異なる内容の色補正を行う色補正ステップと、
前記色補正ステップによる色補正を前記画素データに対して行った後の画像データを用いて、前記画像がカラー画像か否かを判定する判定ステップと、
を実行させる画像処理プログラム。
An image processing program executed in an information processing device used as an image processing device for determining whether or not the image represented by the image data is a color image using the input image data.
In the information processing device
An extraction step of extracting a black character area containing black characters from the image represented by the image data, and
A color correction step in which color correction of different contents is performed on the pixel data constituting the image data of each area of the black character area extracted by the extraction step and the non-black character area other than the black character area.
A determination step of determining whether or not the image is a color image by using the image data after performing the color correction by the color correction step on the pixel data.
An image processing program that executes.
JP2017036774A 2016-07-01 2017-02-28 Image processing device, image judgment method, and image processing program Active JP6819358B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/620,012 US10204294B2 (en) 2016-07-01 2017-06-12 Image processing device, image forming apparatus, and image processing method for automatically determining whether an image is a color image

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016131953 2016-07-01
JP2016131953 2016-07-01

Publications (2)

Publication Number Publication Date
JP2018011286A JP2018011286A (en) 2018-01-18
JP6819358B2 true JP6819358B2 (en) 2021-01-27

Family

ID=60994397

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017036774A Active JP6819358B2 (en) 2016-07-01 2017-02-28 Image processing device, image judgment method, and image processing program

Country Status (1)

Country Link
JP (1) JP6819358B2 (en)

Also Published As

Publication number Publication date
JP2018011286A (en) 2018-01-18

Similar Documents

Publication Publication Date Title
US8045221B2 (en) Image-processing device, image-processing method, and recording medium
US10515453B2 (en) Image processing apparatus, image processing method, and storage medium for performing an edge correction processing based on color variations
EP1871088A2 (en) Method and appparatus for image processing
US20080112026A1 (en) Color processing apparatus and method, and storage medium storing color processing program
US9253368B2 (en) Image processing device setting binary value without using dither matrix when prescribed condition is satisfied
US8384954B2 (en) Image processing apparatus, method and computer-readable medium for converting monochrome image into color image with the determination of pixel attributes and selected colorization methods
US11295407B2 (en) Information processing apparatus, information processing method, and non-transitory computer-readable storage medium storing program
US10373030B2 (en) Image processing apparatus that executes halftone process on target image data including edge pixel
US11790477B2 (en) Digital watermark analysis apparatus and digital watermark analysis method
US20220263973A1 (en) Apparatus and method for controlling the same
US11503188B2 (en) Image processing apparatus, control method for controlling image processing apparatus, and storage medium
JP2021027434A (en) Image processing device
JP5863723B2 (en) Image processing apparatus and image forming apparatus
JP6819358B2 (en) Image processing device, image judgment method, and image processing program
JP2014017562A (en) Controller, and program
EP2009900A2 (en) Image-printing device
EP3026598B1 (en) Image processing apparatus, image processing method, and program
JP5689090B2 (en) Image forming method and image forming apparatus
JP6995594B2 (en) Information processing equipment, information processing methods and programs
JP6641982B2 (en) Image processing apparatus, image processing method, and program
JP2008271131A (en) Method and device for image processing, and image forming apparatus
JP6834701B2 (en) Image processing equipment and computer programs
JP6781398B2 (en) Image processing equipment and computer programs
JP6350877B2 (en) Image forming apparatus
JP2007267103A (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191216

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20200107

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20200221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201119

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20201201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201214

R151 Written notification of patent or utility model registration

Ref document number: 6819358

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151