JP6761583B2 - Image reader - Google Patents
Image reader Download PDFInfo
- Publication number
- JP6761583B2 JP6761583B2 JP2017177501A JP2017177501A JP6761583B2 JP 6761583 B2 JP6761583 B2 JP 6761583B2 JP 2017177501 A JP2017177501 A JP 2017177501A JP 2017177501 A JP2017177501 A JP 2017177501A JP 6761583 B2 JP6761583 B2 JP 6761583B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- colored
- value
- image
- proximity
- 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.)
- Expired - Fee Related
Links
- 238000004040 coloring Methods 0.000 claims description 35
- 238000000034 method Methods 0.000 claims description 30
- 230000008569 process Effects 0.000 claims description 28
- 238000004042 decolorization Methods 0.000 claims 2
- 239000003086 colorant Substances 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 239000011521 glass Substances 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000003467 diminishing effect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Facsimile Scanning Arrangements (AREA)
Description
本発明は、画像読取装置に関するものである。 The present invention relates to an image reader.
近年の読取速度向上の要求に伴い、ある画像読取装置は、センサーの画素解像度を実現する基準スキャン線速より速くスキャン走査させることで、スキャン速度を高くしている。 With the recent demand for improvement in reading speed, some image reading devices increase the scanning speed by scanning at a speed higher than the reference scanning line speed that realizes the pixel resolution of the sensor.
この場合、所定周期で画素値の読み取りが行われており、スキャン走査速度だけを高くしているので、実際に副走査方向において読み取られる画素数が少なくなり、RGBの各色について、原稿画像のうち、読み取られない部分(画素位置)が発生する。そのため、副走査方向に沿ってグレー画像の濃度が変化している箇所では、RGBのうちの一部の色が他の色とは異なった画素値変化を示し、色付きが発生してしまう。図7は、スキャン速度を高くした場合の色付きの発生について説明するタイミングチャートである。例えば図7に示すように、基準読取線速では、RGBのすべての色について、画素値が検出される画素位置が同一になっているため、副走査方向に沿ってグレー画像の濃度が変化している箇所でも、RGBのすべての色が同一の画素値変化を示すため、色付きが発生しない。しかし、読取線速を高くした場合、RおよびBとGとで異なる画素位置で画素値が検出されるため、副走査方向に沿ってグレー画像の濃度が変化している箇所では、RGBのうちの一部の色が他の色とは異なった画素値変化を示し、色付きが発生してしまう。 In this case, since the pixel values are read at a predetermined cycle and only the scanning scanning speed is increased, the number of pixels actually read in the sub-scanning direction is reduced, and each of the RGB colors is included in the original image. , An unreadable part (pixel position) occurs. Therefore, in the portion where the density of the gray image changes along the sub-scanning direction, some colors of RGB show a pixel value change different from that of the other colors, and coloring occurs. FIG. 7 is a timing chart illustrating the occurrence of coloring when the scanning speed is increased. For example, as shown in FIG. 7, at the reference reading line speed, since the pixel positions where the pixel values are detected are the same for all the colors of RGB, the density of the gray image changes along the sub-scanning direction. Since all the colors of RGB show the same pixel value change, coloring does not occur. However, when the reading line speed is increased, the pixel values are detected at different pixel positions in R, B, and G. Therefore, in the place where the density of the gray image changes along the sub-scanning direction, of RGB. Some colors of the above show pixel value changes different from those of other colors, and coloring occurs.
このような、色付きを解消するために、ある画像読取装置は、カラー画素の前後がモノクロ画素である場合、そのカラー画素を異常とみなし、異常画素として検出している(例えば特許文献1参照)。 In order to eliminate such coloring, when a certain image reading device has monochrome pixels before and after the color pixel, the color pixel is regarded as an abnormality and detected as an abnormal pixel (see, for example, Patent Document 1). ..
しかしながら、主走査方向に延びる細線(無彩色の細線)の場合、副走査方向の幅が狭いため、その細線の位置によっては細線すべてに色付きが発生してしまい、無彩色部分が発生しないときには、上述の技術では、その色付きが発生した画素が検出されない。 However, in the case of a thin line extending in the main scanning direction (achromatic thin line), since the width in the sub-scanning direction is narrow, all the thin lines are colored depending on the position of the thin line, and when the achromatic part does not occur, In the above technique, the pixel in which the coloring occurs is not detected.
本発明は、上記の問題に鑑みてなされたものであり、線画の全域に色付きが発生していても、色付きを検出する画像読取装置を得ることを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to obtain an image reading device that detects coloring even if coloring occurs in the entire area of the line art.
本発明に係る画像読取装置は、RGBに対応する3つのラインセンサーを備えるイメージセンサーと、基準解像度を得るための基準読取線速より高い読取線速で前記イメージセンサーの読取位置を前記副走査方向へ移動させつつ、原稿からの反射光に基づいて前記ラインセンサーで副走査方向においてそれぞれ異なる読取位置でのRGBの画素値を検出する読取制御部と、前記原稿の画像である原稿画像内の各画素について、線画であるか否かを示す画素属性を特定する画素属性特定部と、前記原稿画像内の注目画素に色付きが発生しているか否かを判定し、前記注目画素に色付きが発生している場合には、前記注目画素の色付きを除去する色付き除去処理を実行する色付き除去部とを備える。そして、前記色付き除去部は、前記色付き除去処理において、(a)前記注目画素が、線画の前記画素属性を有するカラー画素であり、かつ、(b)前記副走査方向において前記注目画素に対して前後に近接する2つの近接画素の一方が、線画の前記画素属性を有するカラー画素であり、(c)前記注目画素と、線画の前記画素属性を有するカラー画素である前記近接画素との間の色相差が所定の閾値以上である場合、前記注目画素に色付きが発生していると判定し、前記注目画素の色付きを除去する。また、本発明に係る画像読取装置では、前記色付き除去部は、前記色付き除去処理において、(a)前記注目画素が、線画の前記画素属性を有する画素であり、(b)副走査方向において前記注目画素に対して近接する近接画素が、線画の前記画素属性を有する画素であり、(c)前記注目画素のR値、G値、およびB値のうちの最大値と最小値との差が所定の閾値以上であり、かつ、前記近接画素のR値、G値、およびB値のうちの最大値と最小値との差が前記所定の閾値以上であり、かつ、(d)前記注目画素の前記最大値の色種別と前記近接画素の前記最小値の色種別とが同一であるか、前記注目画素の前記最小値の色種別と前記近接画素の前記最大値の色種別とが同一である場合、前記注目画素および前記近接画素に色付きが発生していると判定し、前記注目画素および前記近接画素の色付きを除去するようにしてもよい。
The image reading device according to the present invention has an image sensor including three line sensors corresponding to RGB, and the reading position of the image sensor in the sub-scanning direction at a reading line speed higher than the reference reading line speed for obtaining a reference resolution. while moving to a reading control section for detecting the RGB pixel values in different reading positions in the sub scanning direction by the line sensor based on the reflected light from the document, each of the original image is an image of the document With respect to the pixel, it is determined whether or not the pixel attribute specifying unit that specifies the pixel attribute indicating whether or not it is a line drawing and the pixel of interest in the original image are colored, and the pixel of interest is colored. If so, it includes a colored removal unit that executes a colored removal process for removing the coloring of the pixel of interest. Then, the colored removing unit is in the colored removal process, the pixel of interest (a), a color pixel having the pixel attribute of the line drawing, and, with respect to the target pixel in the (b) the sub-scanning direction One of the two proximity pixels adjacent to the front and back is a color pixel having the pixel attribute of the line drawing, and (c) between the attention pixel and the proximity pixel which is a color pixel having the pixel attribute of the line drawing. When the hue difference is equal to or greater than a predetermined threshold value, it is determined that the attention pixel is colored, and the coloration of the attention pixel is removed. Further, in the image reading device according to the present invention, in the colored removal process, (a) the pixel of interest is a pixel having the pixel attribute of the line drawing, and (b) the pixel in the sub-scanning direction. A close pixel close to the pixel of interest is a pixel having the pixel attribute of the line drawing, and (c) the difference between the maximum value and the minimum value of the R value, G value, and B value of the pixel of interest is The difference between the maximum value and the minimum value of the R value, G value, and B value of the proximity pixel is equal to or more than the predetermined threshold value, and (d) the pixel of interest. The maximum value color type and the minimum value color type of the proximity pixel are the same, or the minimum value color type of the attention pixel and the maximum value color type of the proximity pixel are the same. In some cases, it may be determined that the attention pixel and the proximity pixel are colored, and the coloring of the attention pixel and the proximity pixel may be removed.
本発明によれば、線画の全域に色付きが発生していても、色付きが検出される。 According to the present invention, coloring is detected even if coloring occurs in the entire area of the line art.
本発明の上記又は他の目的、特徴および優位性は、添付の図面とともに以下の詳細な説明から更に明らかになる。 The above or other object, feature and superiority of the present invention will be further clarified from the following detailed description with the accompanying drawings.
以下、図に基づいて本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
実施の形態1.
図1は、本発明の実施の形態に係る画像読取装置の内部構成を示す側面図である。図1に示す画像読取装置は、スキャナー、複写機、デジタル複合機などといった装置である。図1において、コンタクトガラス1は、当該画像読取装置本体の上面に設置され、画像読取時に原稿が載置される透明な載置台である。また、キャリッジ2は、図示せぬ駆動源によって副走査方向に移動可能に設置されている。キャリッジ2は、光源11とミラー12とを有する。光源11は、主走査方向に沿って配置され、例えば配列された複数の発光ダイオードで光を出射する。光源11から出射された光は、キャリッジ2の位置に応じて、コンタクトガラス1上に載置された原稿に入射する。原稿に入射した光は、原稿の表面で反射する。そして、ミラー12は、原稿からのその反射光をキャリッジ3に向けて反射する。
FIG. 1 is a side view showing an internal configuration of an image reading device according to an embodiment of the present invention. The image reading device shown in FIG. 1 is a device such as a scanner, a copying machine, or a digital multifunction device. In FIG. 1, the
また、キャリッジ3は、図示せぬ駆動源によってキャリッジ2とともに副走査方向に移動可能に設置されている。キャリッジ3は、ミラー13,14を有する。ミラー13,14は、キャリッジ2のミラー12からの光を2度反射して副走査方向に沿って出射する。
Further, the
結像レンズ4は、キャリッジ3のミラー14からの光をイメージセンサー5に結像させる。イメージセンサー5は、RGBに対応する3つのラインセンサー5R,5G,5Bを備え、キャリッジ3のミラー14からの光は、それらのラインセンサー5R,5G,5B上に結像される。各ラインセンサー5R,5G,5Bは、主走査方向に配列された所定の画素数の受光素子を有する1次元イメージセンサーであり、ラインごとに、その画素数の画素についての受光量に対応する電気信号を出力する。ラインセンサー5R,5G,5Bには、例えば、CCD(Charge Coupled Device)が使用される。
The
キャリッジ2,3、結像レンズ4、イメージセンサー5、光源11、ミラー12、ミラー13,14、キャリッジ2,3を副走査方向において移動させる図示せぬ駆動部などにより、コンタクトガラス1に載置され原稿カバー6で抑えられた原稿の画像を読み取る画像読取部21が構成されている。
The
図2は、図1に示す画像読取装置の電気的構成を示すブロック図である。図2において、画像処理装置22は、画像読取部21により読み取られた画像に対して画像処理を行う内部装置である。画像処理装置22は、例えばASIC(Application Specific Integrated Circuit)や、制御プログラムに従って動作するコンピューターなどで実現される。
FIG. 2 is a block diagram showing an electrical configuration of the image reader shown in FIG. In FIG. 2, the
画像処理装置22は、読取制御部31、画素属性特定部32、および色付き除去部33を備える。
The
読取制御部31は、画像読取部21を制御して、所定の基準解像度(例えば600dpi)を得るための基準読取線速より高い読取線速でイメージセンサー5の読取位置を副走査方向へ移動させつつ、原稿からの反射光に基づいてラインセンサー5R,5G,5Bで副走査方向においてそれぞれ異なる読取位置でのRGB3色の画素値を検出する。これにより、原稿画像についてのRGB各色の1頁分の画像データが得られ、図示せぬメモリーなどに格納される。
The
画素属性特定部32は、原稿画像内の各画素について、線画であるか否かを示す画素属性を特定する。例えば、画素属性特定部32は、原稿画像内のオブジェクトを、階調画像(写真など)、文字、罫線などの線画などに分類する領域分割技術を使用して、画素属性を特定する。なお、例えば、画素属性特定部32は、原稿画像内の線画を検出する際に、原稿画像を無彩化してから原稿画像内のエッジを検出し、その検出したエッジに基づいて線画を検出する。
The pixel
色付き除去部33は、色付き除去処理を実行する。色付き除去処理は、原稿画像内の注目画素に色付きが発生しているか否かを判定し、注目画素に色付きが発生している場合には、注目画素の色付きを除去する処理である。
The
図3は、副走査方向において注目画素に近接する近接画素を説明する図である。 FIG. 3 is a diagram for explaining nearby pixels that are close to the pixel of interest in the sub-scanning direction.
具体的には、色付き除去部33は、注目画素のRGB画素値に基づいて注目画素の彩度および色相を計算し、注目画素の彩度が所定の閾値TH_satを超えている場合には、注目画素がカラー画素(つまり、有彩色の画素)であると判定し、注目画素の彩度が所定の閾値TH_satを超えていない場合には、注目画素がグレー画素(つまり、無彩色の画素)であると判定する。同様に、図3に示すように、副走査方向において注目画素に対して前後に近接する2つの近接画素について、色付き除去部33は、各近接画素のRGB画素値に基づいて近接画素の彩度および色相を計算し、近接画素の彩度が所定の閾値TH_satを超えている場合には、その近接画素がカラー画素(つまり、有彩色の画素)であると判定し、近接画素の彩度が所定の閾値TH_satを超えていない場合には、その近接画素がグレー画素(つまり、無彩色の画素)であると判定する。
Specifically, the
そして、色付き除去部33は、色付き除去処理において、注目画素について、(a)注目画素が、線画の画素属性を有するカラー画素であり、かつ、(b)図3に示す2つの近接画素の一方が、線画の画素属性を有するカラー画素であり、(c)注目画素と、線画の画素属性を有するカラー画素である近接画素との間の色相差が所定の閾値TH_hue以上である場合、注目画素に色付きが発生していると判定し、注目画素の色付きを除去する。
Then, in the colored removal process, the
また、この実施の形態では、色付き除去部33は、色付き除去処理において、(a)注目画素が、線画の前記画素属性を有するカラー画素であり、かつ、(b)図3に示す2つの近接画素の一方が、線画の前記画素属性を有するカラー画素であり、かつ2つの近接画素の他方が、非線画の前記画素属性を有するかグレー画素であり、かつ、(c)注目画素と、線画の画素属性を有するカラー画素である近接画素との間の色相差が所定の閾値以上である場合、注目画素に色付きが発生していると判定し、注目画素の色付きを除去する。 Further, in this embodiment, in the colored removal process, in the colored removal process, (a) the pixel of interest is a color pixel having the pixel attribute of the line drawing, and (b) two proximity shown in FIG. 3 One of the pixels is a color pixel having the pixel attribute of the line drawing, and the other of the two proximity pixels has the pixel attribute of the non-line drawing or is a gray pixel, and (c) the pixel of interest and the line drawing. When the hue difference between the color pixel having the pixel attribute of the above and the proximity pixel is equal to or more than a predetermined threshold value, it is determined that the attention pixel is colored, and the color of the attention pixel is removed.
さらに、この実施の形態では、色付き除去部33は、注目画素のR画素値、G画素値、およびB画素値を、それらのR画素値、G画素値、およびB画素値の平均値に置き換えて、注目画素の色付きを除去する。
Further, in this embodiment, the
次に、当該実施の形態に係る画像読取装置の動作について説明する。図4は、図2における色付き除去部33の動作について説明するフローチャートである。
Next, the operation of the image reading device according to the embodiment will be described. FIG. 4 is a flowchart illustrating the operation of the colored removing
まず、読取制御部31は、ユーザー設定などに基づいて指定された読取線速で、1頁の原稿画像の画像データ(RGB画素値)を取得する。
First, the
次に、画素属性特定部32は、取得した1頁分の画像データに基づいて、原稿画像における各画素の画素属性を特定する。
Next, the pixel
そして、色付き除去部33は、色付き除去処理を実行する。色付き除去部33は、原稿画像内の画素から注目画素を例えば所定の走査順に選択していき、その注目画素に対して図4に示す処理を実行する。
Then, the
色付き除去部33は、まず、横1画素、縦3画素の参照領域内の画素(つまり、注目画素、第1近接画素および第2近接画素)について、カラー/グレー判定を行う(ステップS1)。
First, the
このとき、色付き除去部33は、参照領域内の各画素の彩度および色相を計算し、その彩度に基づいて上述のように参照領域内の各画素がカラー画素であるかグレー画素であるかを判定する。
At this time, the
例えば、第1近接画素のRGB値が(120,246,124)であり、注目画素のRGB値が(208,179,215)であり、第2近接画素のRGB値が(237,236,241)である場合、第1近接画素の彩度Sおよび色相Hは、(98,122)となり、注目画素の彩度Sおよび色相Hは、(24,288)となり、第2近接画素の彩度Sおよび色相Hは、(3,252)となる。したがって、この場合、第1近接画素および注目画素はカラー画素であると判定され、第2近接画素はグレー画素であると判定される。 For example, the RGB value of the first proximity pixel is (120,246,124), the RGB value of the noteworthy pixel is (208,179,215), and the RGB value of the second proximity pixel is (237,236,241). ), The saturation S and hue H of the first proximity pixel are (98,122), the saturation S and hue H of the pixel of interest are (24,288), and the saturation of the second proximity pixel. S and hue H are (3,252). Therefore, in this case, the first proximity pixel and the attention pixel are determined to be color pixels, and the second proximity pixel is determined to be a gray pixel.
次に、色付き除去部33は、注目画素が線画属性(つまり、線画であることを示す画素属性)のカラー画素であるか否かを判定する(ステップS2)。
Next, the
注目画素が線画属性のカラー画素である場合、色付き除去部33は、一方の近接画素が線画属性のカラー画素であり、かつ他方の近接画素がグレー画素または非線画属性の画素であるか否かを判定する(ステップS3)。
When the pixel of interest is a color pixel with a line art attribute, the
この注目画素に関し、一方の近接画素が線画属性のカラー画素であり、かつ他方の近接画素がグレー画素または非線画属性の画素である場合、色付き除去部33は、注目画素と線画属性のカラー画素である近接画素との間の色相差を計算し、その色相差が所定の閾値以上であるか否かを判定する(ステップS4)。
With respect to the pixel of interest, when one of the proximity pixels is a color pixel having a line drawing attribute and the other proximity pixel is a gray pixel or a pixel having a non-line drawing attribute, the
色付きの場合、RGBの少なくとも1つの色の画素値が、本来の正しい値から大きく異なっているため、このように、線画内において副走査方向に互いに隣接する画素の色相差に基づいて、色付きが検出される。 In the case of coloring, since the pixel values of at least one color of RGB are significantly different from the original correct values, the coloring is thus performed based on the hue difference of the pixels adjacent to each other in the sub-scanning direction in the line art. Detected.
そして、その色相差が所定の閾値以上である場合、色付き除去部33は、注目画素に色付きが発生していると判定し、注目画素をグレー化して注目画素の色付きを除去する(ステップS5)。
Then, when the hue difference is equal to or greater than a predetermined threshold value, the
上述の例において、第1近接画素および注目画素が線画属性を有し、第2近接画素が非線画属性を有する場合、第1近接画素は線画属性のカラー画素であり、第2近接画素が非線画属性のグレー画素であり、注目画素と第1近接画素との色相差が166度であり、閾値TH_hue(例えば120度)以上であるので、注目画素に色付きが発生していると判定され、グレー化によって除去される。 In the above example, when the first proximity pixel and the attention pixel have the line drawing attribute and the second proximity pixel has the non-line drawing attribute, the first proximity pixel is a color pixel with the line drawing attribute and the second proximity pixel is non-line drawing attribute. Since it is a gray pixel with a line drawing attribute, the hue difference between the attention pixel and the first proximity pixel is 166 degrees, and the threshold value TH_hoe (for example, 120 degrees) or more, it is determined that the attention pixel is colored. Removed by graying.
なお、注目画素が線画属性のカラー画素ではない場合(ステップS2)、一方の近接画素が線画属性のカラー画素ではないか、他方の近接画素がグレー画素および非線画属性の画素のいずれでもない場合(ステップS3)、および注目画素と線画属性のカラー画素である近接画素との間の色相差が所定の閾値以上ではない場合(ステップS4)においては、色付き除去部33は、注目画素に色付きが発生していないと判定し、色付き除去処理を行わない。
When the pixel of interest is not a color pixel with a line drawing attribute (step S2), one proximity pixel is not a color pixel with a line drawing attribute, or the other proximity pixel is neither a gray pixel nor a pixel with a non-line drawing attribute. (Step S3), and when the hue difference between the attention pixel and the proximity pixel which is a color pixel of the line drawing attribute is not equal to or more than a predetermined threshold value (step S4), the
その後、このようにして色付き除去処理された画像データが1つのデータファイルとして図示せぬ内蔵通信装置で出力されたり、色付き除去処理された画像データに基づく原稿画像が図示せぬ内蔵印刷装置で印刷されたりする。 After that, the image data that has been color-removed in this way is output as one data file by a built-in communication device that is not shown, or the original image based on the image data that has been colored-removed is printed by a built-in printing device that is not shown. It is done.
以上のように、上記実施の形態1によれば、読取制御部31は、基準解像度を得るための基準読取線速より高い読取線速でイメージセンサー5の読取位置を副走査方向へ移動させつつ、原稿からの反射光に基づいてラインセンサー5R,5G,5Bで副走査方向においてそれぞれ異なる読取位置でのRGBの画素値を検出する。画素属性特定部32は、原稿画像内の各画素について、線画であるか否かを示す画素属性を特定する。色付き除去部32は、原稿画像内の注目画素に色付きが発生しているか否かを判定し、注目画素に色付きが発生している場合には、注目画素の色付きを除去する。そして、色付き除去部33は、色付き除去処理において、(a)注目画素が、線画の画素属性を有するカラー画素であり、かつ、(b)副走査方向において注目画素に対して前後に近接する2つの近接画素の一方が、線画の画素属性を有するカラー画素であり、(c)注目画素と、線画の画素属性を有するカラー画素である近接画素との間の色相差が所定の閾値以上である場合、注目画素に色付きが発生していると判定し、注目画素の色付きを除去する。
As described above, according to the first embodiment, the
これにより、線画の全域に色付きが発生していても、色付きが検出される。 As a result, even if the entire area of the line art is colored, the coloring is detected.
実施の形態2.
実施の形態2では、色付き除去部33は、実施の形態1とは異なる色付き除去処理を実行する。図5は、実施の形態2における近接画素を説明する図である。具体的には、実施の形態2では、色付き除去部33は、色付き除去処理において、(a)注目画素が、線画の画素属性を有する画素であり、(b)副走査方向において注目画素に対して近接する近接画素が、線画の画素属性を有する画素であり、(c)注目画素のR値、G値、およびB値のうちの最大値と最小値との差が所定の閾値以上であり、かつ、近接画素のR値、G値、およびB値のうちの最大値と最小値との差が所定の閾値以上であり、かつ、(d)注目画素の最大値の色種別と近接画素の最小値の色種別とが同一であるか、注目画素の最小値の色種別と近接画素の最大値の色種別とが同一である場合、注目画素および近接画素に色付きが発生していると判定し、注目画素および近接画素の色付きを除去する。
In the second embodiment, the colored removing
次に、実施の形態2に係る画像読取装置の動作について説明する。図6は、実施の形態2における色付き除去部33の動作について説明するフローチャートである。
Next, the operation of the image reading device according to the second embodiment will be described. FIG. 6 is a flowchart illustrating the operation of the colored removing
まず、読取制御部31は、ユーザー設定などに基づいて指定された読取線速で、1頁の原稿画像の画像データ(RGB画素値)を取得する。
First, the
次に、画素属性特定部32は、取得した1頁分の画像データに基づいて、原稿画像における各画素の画素属性を特定する。
Next, the pixel
そして、色付き除去部33は、色付き除去処理を実行する。色付き除去部33は、原稿画像内の画素から注目画素を例えば所定の走査順に選択していき、その注目画素に対して図6に示す処理を実行する。
Then, the
色付き除去部33は、まず、注目画素および近接画素が、それぞれ、線画属性の画素であるか否かを判定する(ステップS21)。
First, the
注目画素および近接画素が線画属性の画素である場合、色付き除去部33は、注目画素および近接画素のそれぞれについて、RGB値のうちのR値、G値、およびB値のうちの最大値および最小値、並びに、最大値の色種別および最小値の色種別を特定する(ステップS22)。例えば、注目画素のRGB値が(120,246,124)である場合、注目画素の最大値および最小値は、246および120であり、最大値の色種別は、Gであり、最小値の色種別は、Rである。また、例えば、近接画素のRGB値が(208,179,215)である場合、注目画素の最大値および最小値は、215および179であり、最大値の色種別は、Bであり、最小値の色種別は、Gである。
When the attention pixel and the proximity pixel are the pixels of the line art attribute, the
次に、色付き除去部33は、注目画素についての上述の最大値と最小値との差が所定の閾値以上であり、かつ、近接画素についての上述の最大値と最小値との差が所定の閾値以上であるか否かを判定する(ステップS23)。
Next, in the
上述の例の場合、注目画素についての上述の最大値と最小値との差は、126(=246−120)であり、近接画素についての上述の最大値と最小値との差は、36(=215−179)であり、いずれも、所定の閾値以上となる。 In the case of the above example, the difference between the above-mentioned maximum value and the minimum value for the pixel of interest is 126 (= 246-120), and the difference between the above-mentioned maximum value and the minimum value for the proximity pixel is 36 (. = 215-179), and both are equal to or higher than a predetermined threshold value.
注目画素についての上述の最大値と最小値との差が所定の閾値以上であり、かつ、近接画素についての上述の最大値と最小値との差が所定の閾値以上である場合、色付き除去部33は、注目画素についての上述の最大値の色種別と近接画素についての上述の最小値の色種別とが同一であるか、あるいは、注目画素についての上述の最小値の色種別と近接画素についての上述の最大値の色種別とが同一であるか否かを判定する(ステップS24,S25)。 When the difference between the above-mentioned maximum value and the minimum value for the pixel of interest is equal to or greater than a predetermined threshold value and the difference between the above-mentioned maximum value and the minimum value for the proximity pixel is equal to or greater than the predetermined threshold value, the colored removal unit. In No. 33, the above-mentioned maximum value color type for the attention pixel and the above-mentioned minimum value color type for the proximity pixel are the same, or the above-mentioned minimum value color type and the proximity pixel for the attention pixel. It is determined whether or not the color type of the above-mentioned maximum value is the same (steps S24 and S25).
注目画素についての上述の最大値の色種別と近接画素についての上述の最小値の色種別とが同一であるか、あるいは、注目画素についての上述の最小値の色種別と近接画素についての上述の最大値の色種別とが同一である場合、色付き除去部33は、注目画素および近接画素に色付きが発生していると判定し、注目画素および近接画素をグレー化して注目画素の色付きを除去する(ステップS26)。
The above-mentioned maximum value color type for the pixel of interest and the above-mentioned minimum value color type for the proximity pixel are the same, or the above-mentioned minimum value color type for the attention pixel and the above-mentioned above-mentioned for the proximity pixel. When the color type of the maximum value is the same, the
上述の例の場合、注目画素についての上述の最大値の色種別(=G)と、近接画素についての上述の最小値の色種別(=G)が同一であると判定されるので、注目画素および近接画素がグレー化される。 In the case of the above example, since it is determined that the above-mentioned maximum value color type (= G) for the pixel of interest and the above-mentioned minimum value color type (= G) for the proximity pixel are the same, the attention pixel. And the proximity pixels are grayed out.
なお、注目画素が線画属性の画素ではない場合(ステップS21)、上述の最大値と最小値との差が所定の閾値以上ではない場合(ステップS23)、および、注目画素についての上述の最大値の色種別と近接画素についての上述の最小値の色種別とが同一でもなく、かつ、注目画素についての上述の最小値の色種別と近接画素についての上述の最大値の色種別とが同一でもない場合(ステップS24,S25)においては、色付き除去部33は、上述の色付き除去処理を行わない。
In addition, when the pixel of interest is not a pixel of the line drawing attribute (step S21), when the difference between the above-mentioned maximum value and the minimum value is not equal to or more than a predetermined threshold (step S23), and when the above-mentioned maximum value for the pixel of interest is Even if the above-mentioned minimum value color type for the proximity pixel and the above-mentioned minimum value color type for the proximity pixel are not the same, and the above-mentioned minimum value color type for the attention pixel and the above-mentioned maximum value color type for the proximity pixel are the same. If not (steps S24 and S25), the colored removing
その後、このようにして色付き除去処理された画像データが1つのデータファイルとして図示せぬ内蔵通信装置で出力されたり、色付き除去処理された画像データに基づく原稿画像が図示せぬ内蔵印刷装置で印刷されたりする。 After that, the image data that has been color-removed in this way is output as one data file by a built-in communication device that is not shown, or the original image based on the image data that has been colored-removed is printed by a built-in printing device that is not shown. It is done.
なお、実施の形態2に係る画像読取装置のその他の構成および動作については実施の形態1と同様であるので、その説明を省略する。 Since other configurations and operations of the image reading device according to the second embodiment are the same as those of the first embodiment, the description thereof will be omitted.
なお、上述の実施の形態に対する様々な変更および修正については、当業者には明らかである。そのような変更および修正は、その主題の趣旨および範囲から離れることなく、かつ、意図された利点を弱めることなく行われてもよい。つまり、そのような変更および修正が請求の範囲に含まれることを意図している。 It should be noted that various changes and modifications to the above-described embodiments will be apparent to those skilled in the art. Such changes and modifications may be made without departing from the intent and scope of the subject and without diminishing the intended benefits. That is, such changes and amendments are intended to be included in the claims.
例えば、上記実施の形態において、色付き除去部33は、画像読取時の設定により指定される読取線速が基準読取線速である場合には、上述の色付き除去処理を実行せず、指定される読取線速が基準読取線速より高い読取線速の場合には、上述の色付き除去処理を実行するようにしてもよい。
For example, in the above embodiment, when the reading line speed specified by the setting at the time of image reading is the reference reading line speed, the colored removing
また、上記実施の形態において、色付き除去部33は、画素属性特定部32により特定された画素属性に基づいて、副走査方向の幅が2画素以下である線画部分を特定し、その特定した線画部分に属する画素(つまり線画属性を有する画素)を特定し、特定した画素を上述の注目画素とし、その他の画素を注目画素としないようにしてもよい。
Further, in the above embodiment, the
また、上記実施の形態において、ステップS3の処理では、色付き除去部33は、一方の近接画素が線画属性のカラー画素であるか否かのみを判定するようにしてもよい。
Further, in the above embodiment, in the process of step S3, the
本発明は、例えば、スキャナー、複写機、複合機などに適用可能である。 The present invention can be applied to, for example, scanners, copiers, multifunction devices, and the like.
5 イメージセンサー
5R,5G,5B ラインセンサー
31 読取制御部
32 画素属性特定部
33 色付き除去部
5
Claims (6)
基準解像度を得るための基準読取線速より高い読取線速で前記イメージセンサーの読取位置を副走査方向へ移動させつつ、原稿からの反射光に基づいて前記ラインセンサーで前記副走査方向においてそれぞれ異なる読取位置でのRGBの画素値を検出する読取制御部と、
前記原稿の画像である原稿画像内の各画素について、線画であるか否かを示す画素属性を特定する画素属性特定部と、
前記原稿画像内の注目画素に色付きが発生しているか否かを判定し、前記注目画素に色付きが発生している場合には、前記注目画素の色付きを除去する色付き除去処理を実行する色付き除去部とを備え、
前記色付き除去部は、前記色付き除去処理において、(a)前記注目画素が、線画の前記画素属性を有するカラー画素であり、かつ、(b)前記副走査方向において前記注目画素に対して前後に近接する2つの近接画素の一方が、線画の前記画素属性を有するカラー画素であり、(c)前記注目画素と、線画の前記画素属性を有するカラー画素である前記近接画素との間の色相差が所定の閾値以上である場合、前記注目画素に色付きが発生していると判定し、前記注目画素の色付きを除去すること、
を特徴とする画像読取装置。 An image sensor equipped with three line sensors that support RGB,
While it is moving to the sub scanning direction by the reference higher than the reading linear velocity reading linear velocity of the reading position of the image sensor for obtaining a reference resolution, different from each other in the sub-scanning direction by the line sensor based on the reflected light from the original document A reading control unit that detects RGB pixel values at the reading position,
For each pixel in the original image which is an image of the original, a pixel attribute specifying unit for specifying a pixel attribute indicating whether or not it is a line art
It is determined whether or not the attention pixel in the original image is colored, and if the attention pixel is colored, the color removal process for removing the coloring of the attention pixel is executed. With a department,
The colored removing unit is in the colored removal process, the pixel of interest (a), a color pixel having the pixel attribute of the line drawing, and, back and forth relative to the pixel of interest in (b) the sub-scanning direction One of the two proximity pixels in close proximity is a color pixel having the pixel attribute of the line drawing, and (c) the hue difference between the attention pixel and the proximity pixel which is a color pixel having the pixel attribute of the line drawing. When is equal to or greater than a predetermined threshold value, it is determined that the pixel of interest is colored, and the coloring of the pixel of interest is removed.
An image reader characterized by.
基準解像度を得るための基準読取線速より高い読取線速で前記イメージセンサーの読取位置を副走査方向へ移動させつつ、原稿からの反射光に基づいて前記ラインセンサーで前記副走査方向においてそれぞれ異なる読取位置でのRGBの画素値を検出する読取制御部と、
前記原稿の画像である原稿画像内の各画素について、線画であるか否かを示す画素属性を特定する画素属性特定部と、
前記原稿画像内の注目画素に色付きが発生しているか否かを判定し、前記注目画素に色付きが発生している場合には、前記注目画素の色付きを除去する色付き除去処理を実行する色付き除去部とを備え、
前記色付き除去部は、前記色付き除去処理において、(a)前記注目画素が、線画の前記画素属性を有する画素であり、(b)前記副走査方向において前記注目画素に対して近接する近接画素が、線画の前記画素属性を有する画素であり、(c)前記注目画素のR値、G値、およびB値のうちの最大値と最小値との差が所定の閾値以上であり、かつ、前記近接画素のR値、G値、およびB値のうちの最大値と最小値との差が前記所定の閾値以上であり、かつ、(d)前記注目画素の前記最大値の色種別と前記近接画素の前記最小値の色種別とが同一であるか、前記注目画素の前記最小値の色種別と前記近接画素の前記最大値の色種別とが同一である場合、前記注目画素および前記近接画素に色付きが発生していると判定し、前記注目画素および前記近接画素の色付きを除去すること、
を特徴とする画像読取装置。 An image sensor equipped with three line sensors that support RGB,
While it is moving to the sub scanning direction by the reference higher than the reading linear velocity reading linear velocity of the reading position of the image sensor for obtaining a reference resolution, different from each other in the sub-scanning direction by the line sensor based on the reflected light from the original document A reading control unit that detects RGB pixel values at the reading position,
For each pixel in the original image, which is an image of the original, a pixel attribute specifying unit that specifies a pixel attribute indicating whether or not the image is a line art,
It is determined whether or not the attention pixel in the original image is colored, and if the attention pixel is colored, the color removal process for removing the coloring of the attention pixel is executed. With a department,
The colored removing unit is in the colored removal process, the pixel of interest (a), a pixel having the pixel attribute of the line drawing, the proximity pixels adjacent to the pixel of interest in (b) the sub-scanning direction , The pixel having the pixel attribute of the line drawing, and (c) the difference between the maximum value and the minimum value of the R value, G value, and B value of the pixel of interest is equal to or more than a predetermined threshold value, and the above. The difference between the maximum value and the minimum value of the R value, G value, and B value of the proximity pixel is equal to or greater than the predetermined threshold value, and (d) the color type of the maximum value of the attention pixel and the proximity. When the minimum value color type of the pixel is the same, or the minimum value color type of the attention pixel and the maximum value color type of the proximity pixel are the same, the attention pixel and the proximity pixel It is determined that coloring has occurred in, and the coloring of the attention pixel and the proximity pixel is removed.
An image reader characterized by.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016186219 | 2016-09-23 | ||
JP2016186219 | 2016-09-23 |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018056988A JP2018056988A (en) | 2018-04-05 |
JP6761583B2 true JP6761583B2 (en) | 2020-09-30 |
Family
ID=61836084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017177501A Expired - Fee Related JP6761583B2 (en) | 2016-09-23 | 2017-09-15 | Image reader |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6761583B2 (en) |
-
2017
- 2017-09-15 JP JP2017177501A patent/JP6761583B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2018056988A (en) | 2018-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6198521B2 (en) | Image processing apparatus, image processing method, and program | |
JP4487320B2 (en) | Image processing apparatus, document reading apparatus, and color / monochrome determination method | |
KR102055293B1 (en) | Apparatus, method, and storage medium storing program | |
JP4075881B2 (en) | Image reading device | |
JP2016032270A (en) | Image processor and image processing program | |
JP4244898B2 (en) | Image reading device | |
JP4111181B2 (en) | Image reading device | |
JP2006101300A (en) | Image reading apparatus | |
JP3918844B2 (en) | Image reading device | |
US10237449B2 (en) | Image reading apparatus and image forming apparatus using the same | |
JP2006101273A (en) | Image reading apparatus | |
JP6761583B2 (en) | Image reader | |
US9531912B2 (en) | Image processing apparatus and image processing method | |
JP5968263B2 (en) | Image processing device | |
JP2013115579A (en) | Image reading apparatus, multifunction printer apparatus, and image reading method | |
US10477071B2 (en) | Image processing apparatus and image processing method in which color and monochrome images are distinguished | |
JP4404042B2 (en) | Image reading device | |
JP2016116128A (en) | Image processing system and method for the same | |
US20180343353A1 (en) | Reading apparatus and image generation method | |
JP4353045B2 (en) | Image reading device | |
JP6796265B2 (en) | Image reader | |
JP6798451B2 (en) | Document reader | |
JP4277778B2 (en) | Image reading device | |
JP6519808B2 (en) | Image processing device | |
JP6501125B2 (en) | Image reading apparatus, image reading method, image forming apparatus, and image reading program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190828 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200427 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200521 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200709 |
|
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: 20200806 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200819 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6761583 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |