JP2020174315A - Image processing device and control program therefor - Google Patents

Image processing device and control program therefor Download PDF

Info

Publication number
JP2020174315A
JP2020174315A JP2019076223A JP2019076223A JP2020174315A JP 2020174315 A JP2020174315 A JP 2020174315A JP 2019076223 A JP2019076223 A JP 2019076223A JP 2019076223 A JP2019076223 A JP 2019076223A JP 2020174315 A JP2020174315 A JP 2020174315A
Authority
JP
Japan
Prior art keywords
level
red
color
green
specific position
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.)
Granted
Application number
JP2019076223A
Other languages
Japanese (ja)
Other versions
JP7159958B2 (en
Inventor
鈴木 浩之
Hiroyuki Suzuki
浩之 鈴木
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2019076223A priority Critical patent/JP7159958B2/en
Publication of JP2020174315A publication Critical patent/JP2020174315A/en
Application granted granted Critical
Publication of JP7159958B2 publication Critical patent/JP7159958B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Image Analysis (AREA)

Abstract

To provide an image processing device and a control program therefor that can suppress an increase in manufacturing cost.SOLUTION: An image processing device includes a background gradation value detection unit 621 that detects the level of each RGB color of the background of an original on the basis of image data of each color of R (red), G (green), and B (blue) of the original, level determination means that determines whether the R color level of a specific pixel in the original is a predetermined value on the basis of the R color image data, a hue determination unit 625 that determines whether the hue of the specific pixel is R color on the basis of the image data of each RGB color, a low saturation determination unit 628 that determines whether the saturation of the specific pixel is within a predetermined range on the basis of the image data of each RGB color, and a selection unit 631 that replaces the level of each RGB color of the specific pixel with the level of each RGB color of the background when the R color level of the specific pixel is a predetermined value, the specific pixel is R, and the saturation of the specific pixel is within a predetermined range.SELECTED DRAWING: Figure 8

Description

本発明は、画像処理装置および画像処理装置の制御プログラムに関する。より特定的には、本発明は、製造コストの増加を抑止することのできる画像処理装置および画像処理装置の制御プログラムに関する。 The present invention relates to an image processing device and a control program for the image processing device. More specifically, the present invention relates to an image processing apparatus and a control program of the image processing apparatus capable of suppressing an increase in manufacturing cost.

近年、加熱によって色を消去することのできるインクである熱消去性インクを用いた筆記具(フリクション(登録商標)など)が提案されている。 In recent years, writing instruments (friction (registered trademark), etc.) using heat-erasable ink, which is an ink whose color can be erased by heating, have been proposed.

熱消去性インクの筆記具の使用者は、原稿に描いた文字を消したい場合、その文字を専用の消しゴムでこする。これにより、原稿と消しゴムとの間に摩擦熱が発生し、発生した摩擦熱により原稿上の熱消去性インクは透明化する。その結果、原稿上の熱消去性インクは実際には除去されていないものの、描かれた文字は消去される(見えなくなる)。しかし、消去された熱消去性インクの文字を含む原稿の画像をフルカラー画像読取装置で読み取った場合、得られた画像データでは消去した文字が薄く再現される。 When a user of a writing instrument with heat-erasable ink wants to erase the characters drawn on the original, the characters are rubbed with a special eraser. As a result, frictional heat is generated between the original material and the eraser, and the generated frictional heat makes the heat-erasable ink on the original material transparent. As a result, although the heat-erasable ink on the original is not actually removed, the drawn characters are erased (invisible). However, when an image of a document containing characters of erased heat-erasable ink is read by a full-color image reader, the erased characters are reproduced thinly in the obtained image data.

図16は、画像データにおいて消去した文字が薄く再現される原理を説明する図である。図16(a)は、フルカラー画像読取装置のR(赤)、G(緑)およびB(青)色用のラインセンサーの各々の検出可能な波長域を示すグラフである。図16(b)は、青色の熱消去性インクIKで描かれた文字の部分からの受光光強度を模式的に示す図である。図16(c)は、青色の熱消去性インクIKで描かれた文字の消去痕の部分からの受光光強度を模式的に示す図である。図17は、ラインセンサー331と青色の熱消去性インクIKとの位置関係を示す図である。 FIG. 16 is a diagram illustrating a principle in which erased characters are thinly reproduced in image data. FIG. 16A is a graph showing the detectable wavelength range of each of the line sensors for R (red), G (green) and B (blue) colors of the full-color image reader. FIG. 16B is a diagram schematically showing the received light intensity from the character portion drawn with the blue heat-erasable ink IK. FIG. 16 (c) is a diagram schematically showing the intensity of received light from the erased marks of characters drawn with the blue heat-erasable ink IK. FIG. 17 is a diagram showing the positional relationship between the line sensor 331 and the blue heat-erasable ink IK.

図16(a)および図17を参照して、フルカラー画像読取装置は、光源325と、レンズ329および330と、ラインセンサー331とを含んでいる。ラインセンサー331は、RGB各色用のラインセンサーを含んでいる。光源325から照射された光は、原稿で反射してレンズ329および330を通過し、ラインセンサー331で受光される。ラインセンサー331は、RGB各色の受光光強度に応じた電圧を出力する。これにより、フルカラー画像読取装置は、原稿の画像を構成する複数の画素の各々のR色階調値、G色階調値、およびB色階調値の各々を検出する。 With reference to FIGS. 16 (a) and 17, the full-color image reader includes a light source 325, lenses 329 and 330, and a line sensor 331. The line sensor 331 includes a line sensor for each color of RGB. The light emitted from the light source 325 is reflected by the document, passes through the lenses 329 and 330, and is received by the line sensor 331. The line sensor 331 outputs a voltage corresponding to the received light intensity of each RGB color. As a result, the full-color image reader detects each of the R color gradation value, the G color gradation value, and the B color gradation value of each of the plurality of pixels constituting the image of the original.

このとき、R色用のラインセンサーは、R色の光(可視光波長領域の光)のみならず赤外光(赤外波長領域の光)をも検知するため、R色の光および赤外光の受光強度に応じた電圧を出力する。 At this time, since the line sensor for R color detects not only R color light (light in the visible light wavelength region) but also infrared light (light in the infrared wavelength region), the R color light and infrared light. Outputs a voltage according to the light reception intensity.

図16(b)および図17を参照して、ところで熱消去性インクは、その温度に関わらず(消去の有無に関わらず)、可視光によって励起されて赤外光を発する性質を有している。このため、たとえば青色の熱消去性インクIKで描かれた文字を含む原稿の画像を読み取った場合、ラインセンサー331が受光する文字の部分からの反射光には、青色光および赤外光が含まれている。その結果、フルカラー画像読取装置から出力される画像データにおける文字の部分の画素の階調値は、B色とともにR色でも高くなる。 By the way, with reference to FIGS. 16 (b) and 17, the heat-erasable ink has a property of being excited by visible light and emitting infrared light regardless of its temperature (whether or not it is erased). There is. Therefore, for example, when an image of a document containing characters drawn with blue heat-erasable ink IK is read, the reflected light from the character portion received by the line sensor 331 includes blue light and infrared light. It has been. As a result, the gradation value of the pixel of the character portion in the image data output from the full-color image reader becomes high in the R color as well as the B color.

図16(c)および図17を参照して、可視光によって励起されて赤外光を発する熱消去性インクの性質は、文字が消去された後(熱消去性インクが透明化した後)であっても失われない。このため、熱消去性インクIKで描かれた文字の消去痕を含む原稿の画像を読み取った場合、ラインセンサー331が受光する文字の部分からの反射光には、赤外光が含まれている。その結果、フルカラー画像読取装置から出力される画像データにおける文字の消去痕の部分の画素のB色階調値はゼロとなる一方で、R色階調値は高くなる。画像データにおける消去痕の部分にはR色が薄く再現される。 With reference to FIGS. 16 (c) and 17, the properties of the heat-erasable ink that is excited by visible light and emits infrared light are after the characters have been erased (after the heat-erasable ink has become transparent). Even if there is, it will not be lost. Therefore, when an image of a document including erasure marks of characters drawn with the heat-erasable ink IK is read, infrared light is included in the reflected light from the character portion received by the line sensor 331. .. As a result, the B color gradation value of the pixel of the erasure mark portion of the character in the image data output from the full-color image reader becomes zero, while the R color gradation value becomes high. The R color is reproduced lightly on the erased marks in the image data.

なお、従来の画像読取装置はたとえば下記特許文献1などに開示されている。下記特許文献1には、原稿を照明する3色のLED(Light Emitting Diode)の点灯を制御する発光制御手段と、原稿からの反射光を異なる分光感度特性で受光する複数のセンサーとを備えた画像読取装置が開示されている。この画像読取装置は、緑色LEDのみを点灯させて取得した第一の画像データと、全色のLEDを点灯させて取得した第二の画像データのそれぞれの赤色画像データの差分から不可視光発生画素を特定する解析手段と、この差分データから特定した不可視光発生画素のR色画像データを補正するデータ補正手段とを備えている。 The conventional image reading device is disclosed in, for example, Patent Document 1 below. The following Patent Document 1 includes a light emission control means for controlling the lighting of three-color LEDs (Light Emitting Diodes) that illuminate a document, and a plurality of sensors that receive the reflected light from the document with different spectral sensitivity characteristics. An image reader is disclosed. This image reader is an invisible light generating pixel from the difference between the red image data of the first image data acquired by turning on only the green LED and the second image data acquired by turning on the LEDs of all colors. It is provided with an analysis means for specifying the above and a data correction means for correcting the R color image data of the invisible light generating pixel specified from the difference data.

特開2004−260457号公報Japanese Unexamined Patent Publication No. 2004-260457

読取画像において消去痕の部分にR色が薄く再現される事態を回避し得る方法として、レンズ329および330とラインセンサー331との間に赤外カットフィルタFT(図17)を設ける方法が考えられる。しかし、この方法では、赤外カットフィルタFTという構成がさらに必要となるため、製造コストが増加するという問題があった。特に、ラインセンサー331がCIS(Contact Image Sensor)のように複数のラインセンサーが主走査方向に配列した構成を有するものである場合には、赤外カットフィルタの主走査方向の配置ムラ(塗布ムラ)が生じないようにその厚みを十分に大きくする必要があるため、製造コストが著しく増加していた。赤外光は熱消去性インクIKから発生されるものであるため、光源325と熱消去性インクIKとの間に赤外カットフィルタFTを設けることはできなかった。 As a method of avoiding the situation where the R color is thinly reproduced in the erased mark portion in the scanned image, a method of providing an infrared cut filter FT (FIG. 17) between the lenses 329 and 330 and the line sensor 331 can be considered. .. However, this method has a problem that the manufacturing cost increases because a configuration called an infrared cut filter FT is further required. In particular, when the line sensor 331 has a configuration in which a plurality of line sensors are arranged in the main scanning direction as in CIS (Contact Image Sensor), the infrared cut filter is unevenly arranged in the main scanning direction (coating unevenness). ) Must be made sufficiently large so that the manufacturing cost has increased remarkably. Since the infrared light is generated from the heat erasable ink IK, it was not possible to provide an infrared cut filter FT between the light source 325 and the heat erasable ink IK.

また、特許文献1の技術では、光源として3色のLEDが必要になるため、製造コストが増加するという問題があった。 Further, the technique of Patent Document 1 has a problem that the manufacturing cost increases because a three-color LED is required as a light source.

本発明は、上記課題を解決するためのものであり、その目的は、製造コストの増加を抑止することのできる画像処理装置および画像処理装置の制御プログラムを提供することである。 The present invention is for solving the above problems, and an object of the present invention is to provide an image processing device and a control program for the image processing device capable of suppressing an increase in manufacturing cost.

本発明の一の局面に従う画像処理装置は、原稿の赤緑青各色の画像データを取得する画像取得手段と、赤緑青各色の画像データに基づいて、原稿の下地の赤緑青各色のレベルを検出する下地レベル検出手段と、赤色の画像データに基づいて、原稿内の特定の位置の赤色のレベルが所定の値であるか否かを判別するレベル判別手段と、赤緑青各色の画像データに基づいて、特定の位置の色相が赤色であるか否かを判別する色相判別手段と、赤緑青各色の画像データに基づいて、特定の位置の彩度が所定の範囲内であるか否かを判別する彩度判別手段と、特定の位置の赤色のレベルが所定の値であるとレベル判別手段にて判別し、かつ特定の位置の色相が赤色であると色相判別手段にて判別し、かつ特定の位置の彩度が所定の範囲内であると彩度判別手段にて判別した場合に、特定の位置の赤緑青各色のレベルを、下地の赤緑青各色のレベルに置き換える置換手段とを備える。 The image processing apparatus according to one aspect of the present invention detects the level of each red, green, and blue color of the background of the original based on the image acquisition means for acquiring the image data of each red, green, and blue color of the original, and the image data of each red, green, and blue color. Based on the background level detecting means, the level determining means for determining whether or not the red level at a specific position in the document is a predetermined value based on the red image data, and the image data of each color of red, green, and blue. , Determines whether or not the saturation of a specific position is within a predetermined range based on the hue determining means for determining whether or not the hue of a specific position is red and the image data of each color of red, green, and blue. The saturation discriminating means and the level discriminating means discriminate that the level of red at a specific position is a predetermined value, and the hue discriminating means discriminates that the hue at a specific position is red, and a specific When the saturation determination means determines that the saturation of the position is within a predetermined range, it is provided with a replacement means for replacing the level of each color of red, green, and blue at a specific position with the level of each color of red, green, and blue of the background.

上記画像処理装置において好ましくは、画像取得手段は、原稿に光を照射する照射手段と、原稿から反射光を受光する受光手段と、反射光に基づいて、赤緑青各色の画像データを生成する画像生成手段であって、反射光に含まれる赤色波長領域および赤外波長領域の光に基づいて、赤色の画像データを生成する画像生成手段とを含む。 In the above image processing apparatus, preferably, the image acquisition means is an irradiation means for irradiating the document with light, a light receiving means for receiving the reflected light from the document, and an image for generating image data of each color of red, green, and blue based on the reflected light. The generation means includes an image generation means for generating red image data based on the light in the red wavelength region and the infrared wavelength region included in the reflected light.

上記画像処理装置において好ましくは、レベル判別手段は、特定の位置の赤色のレベルが下地の赤色のレベルの近傍であるか否かを判別し、置換手段は、特定の位置の赤色のレベルが下地の赤色のレベルの近傍であるとレベル判別手段にて判別し、かつ特定の位置の赤色のレベルが下地の赤色のレベルの近傍であると色相判別手段にて判別し、かつ特定の位置の彩度が所定の範囲内であると彩度判別手段にて判別した場合に、赤緑青各色の画像データにおける特定の位置の赤緑青各色のレベルを、下地の位置の赤緑青各色のレベルに置き換える。 In the above image processing apparatus, preferably, the level determining means determines whether or not the red level at a specific position is close to the red level of the background, and the replacement means has the red level at the specific position as the background. It is determined by the level discrimination means that it is near the red level of the above, and it is determined by the hue discrimination means that the red level at a specific position is near the red level of the background, and the color at a specific position is colored. When the saturation determination means determines that the degree is within a predetermined range, the level of each color of red, green, and blue at a specific position in the image data of each color of red, green, and blue is replaced with the level of each color of red, green, and blue at the base position.

上記画像処理装置において好ましくは、レベル判別手段は、特定の位置の赤色のレベルと下地の赤色のレベルとの差が、下地の赤色のレベルの±1%以内である場合に、特定の位置の赤色のレベルが下地の赤色のレベルの近傍である判別する。 In the above image processing apparatus, preferably, the level discriminating means is used when the difference between the red level at the specific position and the red level of the background is within ± 1% of the red level of the background. Determine that the red level is near the underlying red level.

上記画像処理装置において好ましくは、レベル判別手段は、特定の位置の赤色のレベルが検出値の最大レベルであるか否かを判別し、置換手段は、特定の位置の赤色のレベルが検出値の最大レベルであるとレベル判別手段にて判別し、かつ特定の位置の赤色のレベルが下地の赤色のレベルの近傍であると色相判別手段にて判別し、かつ特定の位置の彩度が所定の範囲内であると彩度判別手段にて判別した場合に、赤緑青各色の画像データにおける特定の位置の赤緑青各色のレベルを、下地の位置の赤緑青各色のレベルに置き換える。 In the above image processing apparatus, preferably, the level determining means determines whether or not the red level at a specific position is the maximum level of the detected value, and the replacement means determines whether the red level at the specific position is the detected value. The level determination means determines that the level is the maximum, and the hue determination means determines that the red level at a specific position is close to the red level of the background, and the saturation at the specific position is predetermined. When it is determined by the saturation determination means that it is within the range, the level of each color of red, green, and blue at a specific position in the image data of each color of red, green, and blue is replaced with the level of each color of red, green, and blue at the base position.

上記画像処理装置において好ましくは、レベル判別手段は、特定の位置の赤色のレベルが下地の赤色のレベルの近傍であるか否かを判別する第1の判別手段と、特定の位置の赤色のレベルが検出値の最大レベルであるか否かを判別する第2の判別手段と、第1および第2の判別手段のうちいずれか一方を選択する選択手段とを含み、置換手段は、選択手段にて第1のレベル判別手段を選択した場合において、特定の位置の赤色のレベルが下地の赤色のレベルの近傍であると第1のレベル判別手段にて判別し、かつ特定の位置の色相が赤色であると色相判別手段にて判別し、かつ特定の位置の彩度が所定の範囲内であると彩度判別手段にて判別したときは、特定の位置の赤緑青各色のレベルを、下地の位置の赤緑青各色のレベルに置き換え、置換手段は、選択手段にて第2のレベル判別手段を選択した場合において、特定の位置の赤色のレベルが検出値の最大レベルであると第2のレベル判別手段にて判別し、かつ特定の位置の色相が赤色であると色相判別手段にて判別し、かつ特定の位置の彩度が所定の範囲内であると彩度判別手段にて判別したときは、赤緑青各色の画像データにおける特定の位置の赤緑青各色のレベルを、下地の位置の赤緑青各色のレベルに置き換える。 In the above image processing apparatus, preferably, the level discriminating means includes a first discriminating means for discriminating whether or not the red level at a specific position is in the vicinity of the red level of the background, and the red level at the specific position. Includes a second determination means for determining whether or not is the maximum level of the detected value, and a selection means for selecting one of the first and second determination means, and the replacement means is a selection means. When the first level discriminating means is selected, the first level discriminating means determines that the red level at a specific position is close to the red level of the background, and the hue at the specific position is red. When it is determined by the hue discrimination means and the saturation at a specific position is within a predetermined range by the saturation discrimination means, the level of each color of red, green, and blue at the specific position is set as the background. Replaced with the level of each color of red, green, and blue at the position, and the replacement means is the second level when the red level at a specific position is the maximum level of the detection value when the second level determination means is selected by the selection means. When discriminating by the discriminating means, determining that the hue at a specific position is red by the hue discriminating means, and determining that the saturation at the specific position is within a predetermined range by the saturation discriminating means. Replaces the level of each color of red, green, and blue at a specific position in the image data of each color of red, green, and blue with the level of each color of red, green, and blue at the base position.

上記画像処理装置において好ましくは、原稿に含まれるインクの種類の設定の入力を受け付ける受付手段をさらに備え、選択手段は、受付手段にて受け付けた設定に基づいて選択を行う。 The image processing apparatus preferably further includes a receiving means for receiving an input for setting the type of ink contained in the document, and the selecting means selects based on the setting received by the receiving means.

上記画像処理装置において好ましくは、下地レベル検出手段は、赤緑青各色の画像データに基づいて、原稿の画像内の明度の分布を示すヒストグラムを作成するヒストグラム作成手段と、ヒストグラムにおいてピークとなる明度を有する原稿内の位置の赤緑青各色のレベルを赤緑青各色の画像データから抽出し、抽出した赤緑青各色のレベルを下地の赤緑青各色のレベルとして検出するレベル抽出手段とを含む。 In the above image processing apparatus, preferably, the background level detecting means is a histogram creating means for creating a histogram showing the distribution of brightness in the image of the original based on the image data of each color of red, green, and blue, and the brightness that becomes the peak in the histogram. It includes a level extraction means for extracting the level of each color of red, green, and blue at the position in the original from the image data of each color of red, green, and blue, and detecting the level of each of the extracted red, green, and blue as the level of each color of red, green, and blue of the background.

上記画像処理装置において好ましくは、赤色の画像データにおける特定の位置の赤色のレベルをレベルSRとし、緑色の画像データにおける特定の位置の緑色のレベルをレベルSGとし、青色の画像データにおける特定の位置の青色のレベルをレベルSBとした場合において、レベルSR、レベルSG、およびレベルSBが|SR−SG|>|SG−SB|の条件を満たすときは、色相判別手段は特定の位置の色相が赤色であると判別する。 In the above image processing apparatus, preferably, the red level at a specific position in the red image data is defined as the level SR, the green level at the specific position in the green image data is defined as the level SG, and the specific position in the blue image data. When the level SR, level SG, and level SB satisfy the condition of | SR-SG |> | SG-SB |, the hue discriminating means has a hue at a specific position. Determined to be red.

上記画像処理装置において好ましくは、彩度判別手段は、特定の位置の彩度が下地の彩度よりも大きく赤色の彩度よりも小さい範囲内であるか否かを判別する。 In the above image processing apparatus, preferably, the saturation determination means determines whether or not the saturation at a specific position is within a range larger than the saturation of the base and smaller than the saturation of red.

上記画像処理装置において好ましくは、赤色の画像データにおける特定の位置の赤色のレベルをレベルSRとし、緑色の画像データにおける特定の位置の緑色のレベルをレベルSGとし、青色の画像データにおける特定の位置の青色のレベルをレベルSBとし、レベルSR、レベルSG、およびレベルSBのうち最大のレベルを最大レベルMax(SR,SG,SB)とし、レベルSR、レベルSG、およびレベルSBのうち最小のレベルを最小レベルMix(SR,SG,SB)とした場合に、彩度判別手段は特定の位置の彩度CFを、CF=Max(SR,SG,SB)−Mix(SR,SG,SB)の式を用いて算出する。 In the above image processing apparatus, preferably, the red level at a specific position in the red image data is defined as the level SR, the green level at the specific position in the green image data is defined as the level SG, and the specific position in the blue image data. The blue level of is the level SB, the maximum level of the level SR, level SG, and level SB is the maximum level Max (SR, SG, SB), and the minimum level of the level SR, level SG, and level SB. When is set to the minimum level Mix (SR, SG, SB), the saturation determination means sets the saturation CF at a specific position to CF = Max (SR, SG, SB) -Mix (SR, SG, SB). Calculate using the formula.

上記画像処理装置において好ましくは、置換手段は、青緑各色の画像データにおける特定の位置の青緑各色のレベルのガンマ値が下地の青緑各色のレベルのガンマ値に合うように補正を行う。 In the above image processing apparatus, preferably, the replacement means corrects so that the gamma value of the level of each blue-green color at a specific position in the image data of each blue-green color matches the gamma value of the level of each blue-green color of the background.

本発明の他の局面に従う画像処理装置の制御プログラムは、原稿の赤緑青各色の画像データを取得する画像取得ステップと、赤緑青各色の画像データに基づいて、原稿の下地の赤緑青各色のレベルを検出する下地レベル検出ステップと、赤色の画像データに基づいて、原稿内の特定の位置の赤色のレベルが所定の値であるか否かを判別するレベル判別ステップと、赤緑青各色の画像データに基づいて、特定の位置の色相が赤色であるか否かを判別する色相判別ステップと、赤緑青各色の画像データに基づいて、特定の位置の彩度が所定の範囲内であるか否かを判別する彩度判別ステップと、特定の位置の赤色のレベルが所定の値であるとレベル判別ステップにて判別し、かつ特定の位置の色相が赤色であると色相判別ステップにて判別し、かつ特定の位置の彩度が所定の範囲内であると彩度判別ステップにて判別した場合に、特定の位置の赤緑青各色のレベルを、下地の赤緑青各色のレベルに置き換える置換ステップとをコンピューターに実行させるためのものである。 The control program of the image processing apparatus according to the other aspects of the present invention has an image acquisition step of acquiring image data of each red, green, and blue color of the original, and a level of each red, green, and blue color of the background of the original based on the image data of each red, green, and blue color. A background level detection step for detecting red, a level determination step for determining whether or not the red level at a specific position in a document is a predetermined value based on red image data, and image data for each color of red, green, and blue. Based on the hue determination step for determining whether or not the hue at a specific position is red, and whether or not the saturation at a specific position is within a predetermined range based on the image data of each color of red, green, and blue. The saturation determination step for determining and the level determination step determines that the red level at a specific position is a predetermined value, and the hue determination step determines that the hue at a specific position is red. In addition, when the saturation determination step determines that the saturation at a specific position is within a predetermined range, the replacement step of replacing the level of each red, green, and blue color at the specific position with the level of each color of the underlying red, green, and blue is used. It is intended to be executed by a computer.

本発明によれば、製造コストの増加を抑止することのできる画像処理装置および画像処理装置の制御プログラムを提供することができる。 According to the present invention, it is possible to provide an image processing device and a control program for the image processing device that can suppress an increase in manufacturing cost.

本発明の一実施の形態における画像形成装置1の外観を示す図である。It is a figure which shows the appearance of the image forming apparatus 1 in one Embodiment of this invention. 本発明の一実施の形態における画像形成装置1の構成を示すブロック図である。It is a block diagram which shows the structure of the image forming apparatus 1 in one Embodiment of this invention. 画像読取部31の構成を示す断面図である。It is sectional drawing which shows the structure of the image reading unit 31. 画像読取部31の一般的な動作を説明するブロック図である。It is a block diagram explaining the general operation of the image reading unit 31. 白色の下地に対して赤色の熱消去性インク(蛍光色でないもの)で描かれた文字を含む原稿の画像を画像読取部31にて読み取った場合に、画像読取部31から出力された画像の解析結果を示す図である。When an image of a document containing characters drawn with red heat-erasable ink (non-fluorescent color) on a white background is read by the image reading unit 31, the image output from the image reading unit 31 It is a figure which shows the analysis result. 白色の下地に対して赤色の熱消去性インク(蛍光色のもの)で描かれた文字を含む原稿の画像を画像読取部31にて読み取った場合に、画像読取部31から出力された画像の解析結果を示す図である。When an image of a document containing characters drawn with red heat-erasable ink (fluorescent color) on a white background is read by the image reading unit 31, the image output from the image reading unit 31 It is a figure which shows the analysis result. 本発明の一実施の形態において、画像読取部31にて生成した画像データを印刷する際(原稿をコピーする際)に、画像処理部6が行う処理の概要を説明するブロック図である。FIG. 5 is a block diagram illustrating an outline of processing performed by the image processing unit 6 when printing image data generated by the image reading unit 31 (when copying a document) in one embodiment of the present invention. 本発明の一実施の形態におけるインク部分補正処理部62の回路構成を示す図である。It is a figure which shows the circuit structure of the ink partial correction processing part 62 in one Embodiment of this invention. 本発明の一実施の形態において、下地階調値検出部621が行う原稿の下地のRGB各色の階調値の検出方法を説明する図である。It is a figure explaining the method of detecting the gradation value of each RGB color of the background of a document performed by the background gradation value detection unit 621 in one Embodiment of this invention. 本発明の一実施の形態において、R色近傍判別部622が行う判別方法を説明する図である。It is a figure explaining the discrimination method performed by the R color neighborhood discrimination unit 622 in one Embodiment of this invention. 熱消去性インク(蛍光色でないもの)で描かれた文字を消去した痕跡の部分の画素のR色階調値と、原稿の下地のR色階調値との関係を示すヒストグラムである。6 is a histogram showing the relationship between the R color gradation value of the pixel of the trace portion where the characters drawn with the heat-erasable ink (non-fluorescent color) are erased and the R color gradation value of the background of the original. 操作表示部33に表示される画面の一例を示す図である。It is a figure which shows an example of the screen displayed on the operation display unit 33. 抽出した画素のRGB各色の階調値SR、SG、およびSBに対するガンマ補正を説明する図である。It is a figure explaining the gamma correction with respect to the gradation value SR, SG, and SB of each RGB color of the extracted pixel. 本発明の一実施の形態においてインク部分補正処理部62が実行する処理を示すフローチャートの第1の部分である。This is the first part of the flowchart showing the processing executed by the ink partial correction processing unit 62 in one embodiment of the present invention. 本発明の一実施の形態においてインク部分補正処理部62が実行する処理を示すフローチャートの第2の部分である。This is the second part of the flowchart showing the processing executed by the ink partial correction processing unit 62 in one embodiment of the present invention. 画像データにおいて消去した文字が薄く再現される原理を説明する図である。It is a figure explaining the principle that erased characters are reproduced thinly in image data. ラインセンサー331と青色の熱消去性インクIKとの位置関係を示す図である。It is a figure which shows the positional relationship between a line sensor 331 and a blue heat-erasable ink IK.

以下、本発明の一実施の形態について、図面に基づいて説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

以下の実施の形態では、画像処理装置がMFP(Multifunction Peripheral)である場合について説明する。MFPは、スキャナー機能、ファクシミリ機能、複写機能、プリンターとしての機能、データ通信機能、およびサーバー機能を備えた電子写真式の画像形成装置である。画像処理装置はMFPである場合の他、スキャナーまたは複写機などであってもよいし、PC(Personal Computer)、携帯電話、またはスマートフォンなどであってもよい。 In the following embodiment, a case where the image processing device is an MFP (Multifunction Peripheral) will be described. The MFP is an electrophotographic image forming apparatus having a scanner function, a facsimile function, a copying function, a printer function, a data communication function, and a server function. In addition to the case where the image processing device is an MFP, it may be a scanner, a copying machine, or the like, or may be a PC (Personal Computer), a mobile phone, a smartphone, or the like.

[画像形成装置の構成および基本的な読取動作] [Configuration of image forming apparatus and basic reading operation]

始めに、本実施の形態における画像形成装置の構成について説明する。 First, the configuration of the image forming apparatus according to the present embodiment will be described.

図1は、本発明の一実施の形態における画像形成装置1の外観を示す図である。図2は、本発明の一実施の形態における画像形成装置1の構成を示すブロック図である。 FIG. 1 is a diagram showing the appearance of the image forming apparatus 1 according to the embodiment of the present invention. FIG. 2 is a block diagram showing a configuration of an image forming apparatus 1 according to an embodiment of the present invention.

図1および図2を参照して、本実施の形態における画像形成装置1は、メインコントローラー10と、画像読取部31(画像取得手段の一例)と、プリンターエンジン部32と、操作表示部33(受付手段の一例)と、通信部34と、音声処理部35と、音声入力部36と、音声出力部37とを備えている。メインコントローラー100と、画像読取部31、プリンターエンジン部32、操作表示部33、通信部34、および音声処理部35の各々とは、相互に接続されている。 With reference to FIGS. 1 and 2, the image forming apparatus 1 in the present embodiment includes a main controller 10, an image reading unit 31 (an example of an image acquisition means), a printer engine unit 32, and an operation display unit 33 ( An example of a reception means), a communication unit 34, a voice processing unit 35, a voice input unit 36, and a voice output unit 37 are provided. The main controller 100, the image reading unit 31, the printer engine unit 32, the operation display unit 33, the communication unit 34, and the voice processing unit 35 are each connected to each other.

メインコントローラー10は、画像形成装置1全体の動作を制御する。メインコントローラー10は、CPU(Central Processing Unit)2と、ROM(Read Only Memory)3と、メモリ4と、HDD(Hard Disk Drive)5と、画像処理部(ASIC(Application Specific Integrated Circuit)6とを含んでいる。 The main controller 10 controls the operation of the entire image forming apparatus 1. The main controller 10 includes a CPU (Central Processing Unit) 2, a ROM (Read Only Memory) 3, a memory 4, an HDD (Hard Disk Drive) 5, and an image processing unit (ASIC (Application Specific Integrated Circuit) 6). Includes.

CPU2は、画像形成装置1全体の動作を制御する。CPU2は、ROM3に記憶されたプログラムを実行する。 The CPU 2 controls the operation of the entire image forming apparatus 1. The CPU 2 executes the program stored in the ROM 3.

ROM3は、CPU2が実行する制御プログラムや、各種パラメーターなどを記憶する。 The ROM 3 stores a control program executed by the CPU 2 and various parameters.

メモリ4は、CPU2の作業用のメモリであり、CPU2が制御プログラムを動作するために必要なデータや画像データなどを一時的に記憶する。 The memory 4 is a memory for the work of the CPU 2, and temporarily stores data, image data, and the like necessary for the CPU 2 to operate the control program.

HDD5は、各種情報を記憶する補助記憶装置である。 The HDD 5 is an auxiliary storage device that stores various types of information.

画像処理部6は、画像読取部31が生成した画像データに対する処理などを行う。 The image processing unit 6 performs processing on the image data generated by the image reading unit 31 and the like.

画像読取部31は、原稿の画像を読み取り、RGB各色の画像データを生成(取得)する。 The image reading unit 31 reads the image of the original and generates (acquires) image data of each RGB color.

プリンターエンジン部32は、画像データに基づいて用紙などへ画像を形成するプリントジョブを行う。プリンターエンジン部32は、おおまかに、トナー像形成部、定着装置、および用紙搬送部などで構成される。プリンターエンジン部32は、たとえば電子写真方式で用紙に画像を形成する。トナー像形成部は、用紙に画像を形成する。トナー像形成部は、トナー像を現像する現像装置と、トナー像が形成される感光体と、感光体から用紙に画像を転写する転写部などで構成される。定着装置は、加熱ローラーおよび加圧ローラーを有する。定着装置は、加熱ローラーと加圧ローラーとでトナー像が形成された用紙を挟みながら搬送し、その用紙に加熱および加圧を行う。これにより、定着装置は、用紙に付着したトナーを溶融させて用紙に定着させ、用紙に画像を形成する。用紙搬送部は、給紙ローラー、搬送ローラー、およびそれらを駆動するモーターなどで構成されている。用紙搬送部は、用紙を給紙カセットから給紙して、画像形成装置1の筐体の内部で搬送する。また、用紙搬送部は、画像が形成された用紙を画像形成装置1の筐体から排紙トレイ38に排出する。 The printer engine unit 32 performs a print job of forming an image on paper or the like based on the image data. The printer engine unit 32 is roughly composed of a toner image forming unit, a fixing device, a paper conveying unit, and the like. The printer engine unit 32 forms an image on paper by, for example, an electrophotographic method. The toner image forming unit forms an image on paper. The toner image forming unit is composed of a developing device that develops a toner image, a photoconductor on which a toner image is formed, a transfer unit that transfers an image from the photoconductor to paper, and the like. The fixing device has a heating roller and a pressure roller. The fixing device conveys the paper on which the toner image is formed between the heating roller and the pressure roller while sandwiching the paper, and heats and pressurizes the paper. As a result, the fixing device melts the toner adhering to the paper and fixes it on the paper to form an image on the paper. The paper transport unit is composed of a paper feed roller, a transport roller, a motor for driving them, and the like. The paper transport unit feeds the paper from the paper feed cassette and transports the paper inside the housing of the image forming apparatus 1. In addition, the paper transport unit discharges the paper on which the image is formed from the housing of the image forming apparatus 1 to the paper output tray 38.

操作表示部33は、各種操作を受け付け、各種情報を表示する。 The operation display unit 33 receives various operations and displays various information.

通信部34は、外部機器との間で通信を行う。 The communication unit 34 communicates with an external device.

音声処理部35は、メインコントローラー10の制御の下で、必要な音声を音声出力部37からから出力し、音声入力部36から入力した音声を所定の形式に変更してメインコントローラー10に送信する。 Under the control of the main controller 10, the voice processing unit 35 outputs necessary voice from the voice output unit 37, changes the voice input from the voice input unit 36 into a predetermined format, and transmits the voice to the main controller 10. ..

音声入力部36および音声出力部37の各々は音声処理部35と接続されている。音声入力部36は音声の入力を受け付ける。音声出力部37は音声を出力する。 Each of the voice input unit 36 and the voice output unit 37 is connected to the voice processing unit 35. The voice input unit 36 accepts voice input. The audio output unit 37 outputs audio.

メインコントローラー10は、操作表示部33や通信部34からの操作指示に基づいて、画像読取機能(スキャン)や画像形成機能(印刷)などを実行する。また、ユーザーが音声入力部36に対して特定の操作指示を含む音声を入力した場合に、音声処理部35はその音声を認識し、認識した音声の情報を所定の形式に変換し、メインコントローラー10に送信する。メインコントローラー10は、音声処理部35から受信した情報に基づいて、操作表示部33や通信部34からの操作指示と同様に、各種機能を実行する。さらに、ユーザーに対して音声を発生させる必要があることを検知した場合、メインコントローラー10は、音声処理部35を経由して音声出力部37にて音声を発する。 The main controller 10 executes an image reading function (scan), an image forming function (printing), and the like based on operation instructions from the operation display unit 33 and the communication unit 34. Further, when the user inputs a voice including a specific operation instruction to the voice input unit 36, the voice processing unit 35 recognizes the voice, converts the recognized voice information into a predetermined format, and main controller. Send to 10. Based on the information received from the voice processing unit 35, the main controller 10 executes various functions in the same manner as the operation instructions from the operation display unit 33 and the communication unit 34. Further, when it is detected that it is necessary to generate a voice for the user, the main controller 10 emits a voice in the voice output unit 37 via the voice processing unit 35.

なお、上述の構成においては、インターフェースを介して音声処理部35をメインコントローラー10と接続しているが、音声処理部35の一部または全体がメインコントローラー10内部に含まれていてもよいし、音声処理部35と音声入力部36とが一体化されてもよい。また、メインコントローラー10と音声処理部35と間との通信は、LAN(Local Area Network)やWAN(Wide Area Network)などのネットワーク経由で行われてもよい。 In the above configuration, the voice processing unit 35 is connected to the main controller 10 via an interface, but a part or the whole of the voice processing unit 35 may be included inside the main controller 10. The voice processing unit 35 and the voice input unit 36 may be integrated. Further, the communication between the main controller 10 and the voice processing unit 35 may be performed via a network such as LAN (Local Area Network) or WAN (Wide Area Network).

図3は、画像読取部31の構成を示す断面図である。図4は、画像読取部31の一般的な動作を説明するブロック図である。 FIG. 3 is a cross-sectional view showing the configuration of the image reading unit 31. FIG. 4 is a block diagram illustrating a general operation of the image reading unit 31.

図3を参照して、画像読取部31は、ADF(Auto Document Feeder)310と、コンタクトガラス321と、プラテンガラス322と、ワイヤー323と、スライダー324と、光源325(受光手段の一例)と、ミラー326および327と、モーター328と、レンズ329および330と、ラインセンサー331(受光手段の一例)とを備えている。 With reference to FIG. 3, the image reading unit 31 includes an ADF (Auto Lens Feeder) 310, a contact glass 321, a platen glass 322, a wire 323, a slider 324, a light source 325 (an example of a light receiving means), and the like. It includes mirrors 326 and 327, a motor 328, lenses 329 and 330, and a line sensor 331 (an example of light receiving means).

画像読取部31は、原稿トレイ311に配置された原稿であって、ADF310によって搬送される原稿の画像を読み取る。また画像読取部31は、プラテンガラス322上に配置された原稿の画像を読み取る。 The image reading unit 31 reads an image of a document arranged on the document tray 311 and conveyed by the ADF 310. Further, the image reading unit 31 reads an image of a document arranged on the platen glass 322.

ADF310は、画像読取部31の筐体31aの上部に設けられている。ADF310は、原稿トレイ311に配置された原稿を搬送経路に沿って原稿読取位置P1へ搬送し、その後に排紙トレイ312に排出する。 The ADF 310 is provided above the housing 31a of the image reading unit 31. The ADF 310 conveys the originals arranged in the original tray 311 to the original reading position P1 along the conveying path, and then ejects the originals to the paper output tray 312.

コンタクトガラス321は、筐体31aの上面に設けられたスリット321aを塞いでおり、ADF310の底面に露出した原稿の搬送経路の一部に面している。プラテンガラス322は、筐体31aの上面に設けられたスリット322aを塞いでいる。 The contact glass 321 closes the slit 321a provided on the upper surface of the housing 31a, and faces a part of the document transport path exposed on the bottom surface of the ADF 310. The platen glass 322 closes the slit 322a provided on the upper surface of the housing 31a.

筐体31aの内部には、ワイヤー323と、スライダー324と、光源325と、ミラー326および327と、モーター328と、レンズ329および330と、ラインセンサー331とが設けられている。ワイヤー323には、スライダー324が接続されている。スライダー324には、光源325、ならびにミラー326および327が搭載されている。ワイヤー323はモーター328の回転に従動して回転する。 Inside the housing 31a, a wire 323, a slider 324, a light source 325, mirrors 326 and 327, a motor 328, lenses 329 and 330, and a line sensor 331 are provided. A slider 324 is connected to the wire 323. The slider 324 is equipped with a light source 325 and mirrors 326 and 327. The wire 323 rotates according to the rotation of the motor 328.

ラインセンサー331は、主走査方向に配列した複数の受光素子により構成されたR色用のラインセンサー331Rと、主走査方向に配列した複数の受光素子により構成されたG色用のラインセンサー331Rと、主走査方向に配列した複数のB色用の受光素子により構成されたB色用のラインセンサー331Bとを含んでいる。ラインセンサー331R、331G、および331Bの各々は、R色、G色、およびB色の各々の受光光強度に応じた電気信号を出力する。 The line sensor 331 includes a line sensor 331R for R color composed of a plurality of light receiving elements arranged in the main scanning direction, and a line sensor 331R for G color composed of a plurality of light receiving elements arranged in the main scanning direction. A line sensor 331B for B color composed of a plurality of light receiving elements for B color arranged in the main scanning direction is included. Each of the line sensors 331R, 331G, and 331B outputs an electric signal corresponding to the received light intensity of each of the R color, the G color, and the B color.

画像読取部31がADF310により搬送される原稿の画像を読み取る場合、光源325は、コンタクトガラス321を通して、ADF310にて搬送され原稿読取位置P1を通過する原稿の表面に光を照射する。ラインセンサー331はその反射光を受光する。 When the image reading unit 31 reads an image of a document conveyed by the ADF 310, the light source 325 irradiates the surface of the document conveyed by the ADF 310 and passing through the document reading position P1 through the contact glass 321. The line sensor 331 receives the reflected light.

画像読取部31がプラテンガラス322上に配置された原稿の画像を読み取る場合、モーター328は、矢印aで示す方向または矢印bで示す方向に回転することで、コンタクトガラス321の直下からプラテンガラス322の図3中右端までの間で、ワイヤー323に接続されたスライダー324を移動させる。光源325は、スライダー324の移動中に、プラテンガラス322を通して、プラテンガラス322上に配置された原稿の表面に光を照射する。原稿からの反射光はプラテンガラス322を透過し、ミラー326および327によって反射され、レンズ329および330によって収束される。ラインセンサー331は、収束された反射光を受光する。 When the image reading unit 31 reads an image of a document arranged on the platen glass 322, the motor 328 rotates in the direction indicated by the arrow a or the direction indicated by the arrow b, so that the platen glass 322 is directly under the contact glass 321. The slider 324 connected to the wire 323 is moved to the right end in FIG. The light source 325 irradiates the surface of the document arranged on the platen glass 322 with light through the platen glass 322 while the slider 324 is moving. The reflected light from the document passes through the platen glass 322, is reflected by the mirrors 326 and 327, and is converged by the lenses 329 and 330. The line sensor 331 receives the converged reflected light.

ラインセンサー331が受光する反射光の強度は、原稿の表面の色(正確には表面の光反射率)に応じて変化する。このためラインセンサー331から出力される電気信号は、原稿の表面に表示された画像を表す。 The intensity of the reflected light received by the line sensor 331 changes according to the color of the surface of the document (more accurately, the light reflectance of the surface). Therefore, the electric signal output from the line sensor 331 represents an image displayed on the surface of the document.

図4を参照して、画像読取部31は、駆動部41と、発光部42と、AD変換部43(画像生成手段の一例)とをさらに含んでいる。 With reference to FIG. 4, the image reading unit 31 further includes a driving unit 41, a light emitting unit 42, and an AD conversion unit 43 (an example of an image generation means).

CPU2は、プラテンガラス322上に配置された原稿の画像読取の実行指示を操作表示部33にて受け付けると、駆動部41に駆動命令を行い、発光部42に発光命令を行う。駆動部41は、駆動命令を受けると、モーター328を回転させることによりスライダー324を副走査方向(図3中横方向)に移動させる。発光部42は、発光命令を受けると、スライダー324により移動中の光源325を発光させる。光源325からの光は、プラテンガラス322上に配置された原稿に入射する。ラインセンサー331は、原稿からの反射光を受光し、RGB各色の光の受光強度に応じた出力を行う。これにより、ラインセンサー331は原稿の画像の読取を行う。AD変換部43は、ラインセンサー331から出力された電気信号をデジタルデータに変換してRGB各色の画像データを生成し、RGB各色の画像データを画像処理部6に出力する。 When the operation display unit 33 receives an execution instruction for reading an image of a document arranged on the platen glass 322, the CPU 2 issues a drive command to the drive unit 41 and a light emission command to the light emitting unit 42. Upon receiving the drive command, the drive unit 41 rotates the motor 328 to move the slider 324 in the sub-scanning direction (horizontal direction in FIG. 3). Upon receiving a light emission command, the light emitting unit 42 causes the moving light source 325 to emit light by the slider 324. The light from the light source 325 incident on the document arranged on the platen glass 322. The line sensor 331 receives the reflected light from the document and outputs the light according to the light receiving intensity of each color of RGB. As a result, the line sensor 331 reads the image of the original. The AD conversion unit 43 converts the electric signal output from the line sensor 331 into digital data to generate image data of each RGB color, and outputs the image data of each RGB color to the image processing unit 6.

CPU2は、原稿の画像の読み取りが完了したことを検知した場合に、駆動部41および発光部42に読取完了を通知する。駆動部41はこの通知を受けると、スライダー324をホームセンサー位置に戻す。発光部42はこの通知を受けると、光源325を消灯させる。 When the CPU 2 detects that the reading of the original image has been completed, the CPU 2 notifies the driving unit 41 and the light emitting unit 42 of the completion of reading. Upon receiving this notification, the drive unit 41 returns the slider 324 to the home sensor position. Upon receiving this notification, the light emitting unit 42 turns off the light source 325.

ここで、ラインセンサー331Rを構成する複数の受光素子の各々は、R色の光(R色波長領域の光)のみならず赤外光(赤外波長領域の光)をも検知し、R色の光および赤外光の受光光強度に応じた電気信号を出力する。このため、画像読取部31が生成するRGB各色の画像データのうちR色の画像データは、反射光に含まれるR色波長領域および赤外波長領域の光に基づいて生成されたものとなる。 Here, each of the plurality of light receiving elements constituting the line sensor 331R detects not only R color light (light in the R color wavelength region) but also infrared light (light in the infrared wavelength region), and the R color. It outputs an electric signal according to the received light intensity of the light and infrared light. Therefore, among the image data of each RGB color generated by the image reading unit 31, the R color image data is generated based on the light in the R color wavelength region and the infrared wavelength region included in the reflected light.

[熱消去性インクの消去痕の部分の検出方法の概要] [Summary of detection method for erased marks of heat-erasable ink]

図5は、白色の下地に対してR色の熱消去性インク(蛍光色でないもの)で描かれた文字を含む原稿の画像を画像読取部31にて読み取った場合に、画像読取部31から出力された画像の解析結果を示す図である。 FIG. 5 shows an image of a document containing characters drawn with R-color heat-erasable ink (non-fluorescent color) on a white background when the image reading unit 31 reads the image of the original. It is a figure which shows the analysis result of the output image.

図5を参照して、本願発明者は、白色の下地に対してR色の熱消去性インク(蛍光色でないもの)で描かれた文字を含む原稿を準備し、熱消去性インクの消去の前後で原稿の画像を画像読取部31にて読み取り、画像読取部31から出力された画像を解析した。具体的には、熱消去性インク(蛍光色でないもの)が存在する部分の消去前の画素(図5中「消去前インク部分」)と、熱消去性インク(蛍光色でないもの)が存在する部分の消去後の画素(図5中「消去後インク部分」)と、原稿の下地の画素(図5中「下地部分」)とを画像から抽出し、抽出した画素のR色階調値と、R色階調値とG色階調値との差(|R−G|)との関係(図5(a))と、抽出した画素のR色階調値と、G色階調値とB色階調値との差(|G−B|)との関係(図5(b))と、抽出した画素のR色階調値と彩度との関係(図5(c))とを調べた。 With reference to FIG. 5, the inventor of the present application prepares a manuscript containing characters drawn with R color heat erasable ink (non-fluorescent color) on a white background, and erases the heat erasable ink. The image of the original was read by the image reading unit 31 before and after, and the image output from the image reading unit 31 was analyzed. Specifically, there are pixels before erasing (“ink before erasing” in FIG. 5) in a portion where heat erasable ink (non-fluorescent color) exists, and heat erasable ink (non-fluorescent color). The pixel after erasing the portion (“ink portion after erasing” in FIG. 5) and the background pixel of the document (“base portion” in FIG. 5) are extracted from the image, and the R color gradation value of the extracted pixel is used. , The relationship between the difference between the R color gradation value and the G color gradation value (| RG |) (FIG. 5 (a)), the R color gradation value of the extracted pixel, and the G color gradation value. The relationship between the difference between the B color gradation value and the B color gradation value (| GB |) (FIG. 5 (b)) and the relationship between the R color gradation value and the saturation of the extracted pixel (FIG. 5 (c)). I investigated.

なお、R色階調値(赤色のレベルの一例)、G色階調値(緑色のレベルの一例)、およびB色階調値(青色のレベルの一例)(ここではいずれの階調値も0〜255の範囲の値であるものとする)は、画像読取部31から出力される画像データに基づいて算出されるものである。色相および彩度は、R色階調値、G色階調値、およびB色階調値の各々を所定の式に代入することによって算出されるものである。 In addition, R color gradation value (an example of a red level), G color gradation value (an example of a green level), and B color gradation value (an example of a blue level) (here, all gradation values are used. (It is assumed that the value is in the range of 0 to 255) is calculated based on the image data output from the image reading unit 31. The hue and saturation are calculated by substituting each of the R color gradation value, the G color gradation value, and the B color gradation value into a predetermined formula.

その結果、熱消去性インク(蛍光色でないもの)が存在する部分の消去前の画素(図5中「消去前インク部分」)は、次の特徴X1〜X3を有していることが分かった。 As a result, it was found that the pixels before erasing (“ink before erasing” in FIG. 5) in the portion where the heat erasable ink (non-fluorescent color) is present have the following features X1 to X3. ..

特徴X1:R色階調値は熱消去性インクの色によって異なる。 Feature X1: The R color gradation value differs depending on the color of the heat-erasable ink.

特徴X2:色相は熱消去性インクの色によって互いに異なる。 Feature X2: Hues differ from each other depending on the color of the heat-erasable ink.

特徴X3:彩度は熱消去性インクの色にかかわらず高い。 Feature X3: Saturation is high regardless of the color of the heat-erasable ink.

一方、熱消去性インク(蛍光色でないもの)が存在する部分の消去後の画素(図5中「消去後インク部分」)は、次の特徴Y1〜Y3を有していることが分かった。 On the other hand, it was found that the erased pixels (“erased ink portion” in FIG. 5) of the portion where the heat-erasable ink (non-fluorescent color) is present have the following features Y1 to Y3.

特徴Y1:R色階調値は、熱消去性インクの色にかかわらず下地のR色階調値と同等である(具体的には、下地のR色階調値との差が下地のR色階調値の±1%の範囲E1内である)(図5(a)および図5(b)参照)。 Feature Y1: The R color gradation value is equivalent to the R color gradation value of the base regardless of the color of the heat-erasable ink (specifically, the difference from the R color gradation value of the base is the R of the base. It is within the range E1 of ± 1% of the color gradation value) (see FIGS. 5 (a) and 5 (b)).

特徴Y2:色相は、熱消去性インクの色にかかわらずR色系(|R−G|>|G−B|)である(図5(a)および図5(b)参照)。 Feature Y2: The hue is an R color system (| RG |> | GB |) regardless of the color of the heat-erasable ink (see FIGS. 5 (a) and 5 (b)).

特徴Y3:彩度は、熱消去性インクの色にかかわらず(赤色の彩度よりも)低い。但し下地の彩度よりは高い(図5(c)参照)。 Feature Y3: Saturation is lower (than red saturation) regardless of the color of the heat-erasable ink. However, it is higher than the saturation of the base (see FIG. 5 (c)).

なお、図5(c)において赤色の彩度(図5(c)中三角)が高い理由は、光源325から発せられる光が、可視光領域の所定の波長領域にピークを有しているためであると推測される。 The reason why the red saturation (middle triangle in FIG. 5C) is high in FIG. 5C is that the light emitted from the light source 325 has a peak in a predetermined wavelength region of the visible light region. Is presumed to be.

したがって、本実施の形態では、画像読取部31から出力される画像において、上記特徴Y1、Y2、およびY3の全てを満たす部分(画素)は、蛍光色でない熱消去性インクの消去痕の部分として検出される。 Therefore, in the present embodiment, in the image output from the image reading unit 31, the portion (pixel) satisfying all of the above features Y1, Y2, and Y3 is regarded as an erasing mark portion of the heat erasable ink that is not a fluorescent color. Detected.

図6は、白色の下地に対して赤色の熱消去性インク(蛍光色のもの)で描かれた文字を含む原稿の画像を画像読取部31にて読み取った場合に、画像読取部31から出力された画像の解析結果を示す図である。 FIG. 6 is output from the image reading unit 31 when an image of a document containing characters drawn with red heat-erasable ink (fluorescent color) on a white background is read by the image reading unit 31. It is a figure which shows the analysis result of the said image.

図6を参照して、本願発明者は、白色の下地に対してRGB各色の熱消去性インク(蛍光色のもの)で描かれた文字を含む原稿を準備し、熱消去性インクの消去の前後で原稿の画像を画像読取部31にて読み取り、画像読取部31から出力された画像を解析した。具体的には、熱消去性インク(蛍光色のもの)が存在する部分の消去前の画素(図6中「消去前インク部分」)と、熱消去性インク(蛍光色のもの)が存在する部分の消去後の画素(図6中「消去後インク部分」)と、原稿の下地の画素(図6中「下地部分」)とを画像から抽出し、抽出した画素のR色階調値と彩度との関係を調べた。 With reference to FIG. 6, the inventor of the present application prepares a manuscript containing characters drawn with heat-erasable ink (fluorescent color) of each RGB color on a white background, and erases the heat-erasable ink. The image of the original was read by the image reading unit 31 before and after, and the image output from the image reading unit 31 was analyzed. Specifically, there are pixels before erasing (“ink before erasing” in FIG. 6) in a portion where heat erasable ink (fluorescent color) exists, and heat erasing ink (fluorescent color). The pixel after erasing the portion (“ink portion after erasing” in FIG. 6) and the background pixel of the document (“base portion” in FIG. 6) are extracted from the image, and the R color gradation value of the extracted pixel is used. The relationship with saturation was investigated.

その結果、熱消去性インク(蛍光色のもの)が存在する部分の消去前の画素(図6中「消去前インク部分」)は、上記特徴X1〜X3を有していることが分かった。 As a result, it was found that the pixels before erasing (“ink portion before erasing” in FIG. 6) in the portion where the heat erasable ink (fluorescent color) is present have the above-mentioned features X1 to X3.

一方、熱消去性インク(蛍光色のもの)が存在する部分の消去後の画素(図6中「消去後インク部分」)は、次の特徴Z1〜Z3を有していることが分かった。 On the other hand, it was found that the erased pixels (“erased ink portion” in FIG. 6) of the portion where the heat-erasable ink (fluorescent color) is present have the following features Z1 to Z3.

特徴Z1:R色階調値は、熱消去性インクの色にかかわらず最大値(検出値の最大レベルの一例、ここでは255)である。 Feature Z1: The R color gradation value is the maximum value (an example of the maximum level of the detected value, 255 in this case) regardless of the color of the heat-erasable ink.

特徴Z2:色相は、熱消去性インクの色にかかわらずR色系(|R−G|>|G−B|)である。 Feature Z2: The hue is an R color system (| RG |> | GB |) regardless of the color of the heat-erasable ink.

特徴Z3:彩度は、熱消去性インクの色にかかわらず(R色の彩度よりも)低い。但し下地の彩度よりは高い。 Feature Z3: Saturation is lower (than R color saturation) regardless of the color of the heat-erasable ink. However, it is higher than the saturation of the base.

なお、特徴Z1においてR色階調値が最大値となるのは、R色階調値に関するAD変換部43による変換前のアナログの出力値(ラインセンサー331Rからの出力値)が、ラインセンサー331Rの感度の上限値を超えているためであると推測される。 The maximum value of the R color gradation value in the feature Z1 is that the analog output value (output value from the line sensor 331R) before conversion by the AD conversion unit 43 regarding the R color gradation value is the line sensor 331R. It is presumed that this is because the upper limit of the sensitivity of is exceeded.

したがって、本実施の形態では、画像読取部31から出力される画像において、上記特徴Z1、Z2、およびZ3の全てを満たす部分(画素)は、蛍光色の熱消去性インクの消去痕の部分として検出される。 Therefore, in the present embodiment, in the image output from the image reading unit 31, the portion (pixel) satisfying all of the above features Z1, Z2, and Z3 is used as the erase mark portion of the fluorescent color heat erasable ink. Detected.

熱消去性インクが存在する部分の消去後の画素が上記の特徴を有するのは、次の理由によるものであると推測される。一般的に、熱消去性インクには、ロイコ染料などの染料と、顕色剤と、変色温度調整剤とが含まれている。熱消去性インクが所定の温度(変色温度調整剤により規定される温度)未満である場合、染料と顕色剤とは化学的に結合しており、それにより染料の種類に応じた色を発色する。熱消去性インクが所定の温度(変色温度調整剤により規定される温度)以上に加熱された場合、顕色剤は染料との結合を切断し、変色温度調整剤と結合する。それにより染料の発色は無くなる。染料は、温度にかかわらず、赤外線領域の波長の光を発する特性を有している。このため、熱消去性インクが所定の温度以上に加熱され、染料の発色は無くなった場合でも、染料は赤外線領域の波長の光を発する。 It is presumed that the reason why the erased pixels in the portion where the heat-erasable ink is present has the above-mentioned characteristics is as follows. Generally, the heat-erasable ink contains a dye such as a leuco dye, a color developer, and a discoloration temperature adjuster. When the heat-erasable ink is below a predetermined temperature (the temperature specified by the discoloration temperature adjuster), the dye and the color developer are chemically bonded, thereby producing a color according to the type of dye. To do. When the heat-erasable ink is heated above a predetermined temperature (temperature specified by the discoloration temperature adjuster), the color developer breaks the bond with the dye and binds with the discoloration temperature adjuster. As a result, the color of the dye is eliminated. Dyes have the property of emitting light with wavelengths in the infrared region, regardless of temperature. Therefore, even when the heat-erasable ink is heated to a predetermined temperature or higher and the color of the dye disappears, the dye emits light having a wavelength in the infrared region.

[画像処理装置が行う処理の概要] [Outline of processing performed by the image processing device]

図7は、本発明の一実施の形態において、画像読取部31にて生成した画像データを印刷する際(原稿をコピーする際)に、画像処理部6が行う処理の概要を説明するブロック図である。 FIG. 7 is a block diagram illustrating an outline of processing performed by the image processing unit 6 when printing image data generated by the image reading unit 31 (when copying a document) in one embodiment of the present invention. Is.

図7を参照して、画像処理部6は、表面用スキャナー画像処理ASICであるASIC61と、インク部分補正処理部62と、スキャナー画像処理ASICであるASIC63と、コントローラーASICであるASIC64と、プリンター画像処理ASICであるASIC65とを含んでいる。 With reference to FIG. 7, the image processing unit 6 includes an ASIC 61 which is a surface scanner image processing ASIC, an ink partial correction processing unit 62, an ASIC 63 which is a scanner image processing ASIC, an ASIC 64 which is a controller ASIC, and a printer image. Includes ASIC 65, which is a processing ASIC.

画像読取部31から入力されたRGB各色の画像データは、始めにASIC61によって処理される。ASIC61は、RGB各色の画像データに対して、画像データの下地の白色レベルを補正する表面用シェーディング補正、RGB各色のラインセンサー331R、331G、および331Bの各々の物理的距離の違いに起因する画像のずれを補正するライン間補正、および画像読取部31に含まれる光学系の収差に起因する画像の歪みを補正する色収差補正などを行う。ASIC61は、処理後のRGB各色の画像データをインク部分補正処理部62に送信する。 The image data of each RGB color input from the image reading unit 31 is first processed by the ASIC 61. The ASIC 61 is an image caused by the difference in physical distance between the surface shading correction for correcting the white level of the background of the image data for the image data of each RGB color, the line sensors 331R, 331G, and 331B of each RGB color. Interline correction for correcting the deviation of the image, and chromatic aberration correction for correcting the distortion of the image caused by the aberration of the optical system included in the image reading unit 31 are performed. The ASIC 61 transmits the processed image data of each RGB color to the ink partial correction processing unit 62.

インク部分補正処理部62は、受信したRGB各色の画像データから熱消去性インクの消去痕の部分を検出し、検出した部分を原稿の下地の色に補正する。インク部分補正処理部62が行う処理については後述する。インク部分補正処理部62は、処理後のRGB各色の画像データをASIC63に送信する。 The ink portion correction processing unit 62 detects the portion of the erase mark of the heat-erasable ink from the received image data of each RGB color, and corrects the detected portion to the background color of the original. The processing performed by the ink partial correction processing unit 62 will be described later. The ink partial correction processing unit 62 transmits the processed image data of each RGB color to the ASIC 63.

ASIC63は、必要な倍率で画像を拡大または縮小する解像度変換処理、原稿が再生紙などである場合に下地の余分な色を白色化する下地飛ばし処理、画像データを網点領域、文字領域、画像領域などに分類する領域判別処理、RGB各色の画像データをYMCK各色の画像データに変換する変換処理、文字領域を補正する文字エッジ補正、および画像を滑らかにする処理である誤差拡散処理などを行う。ASIC63は、処理後のYMCK各色の画像データと属性信号SNとをASIC64に送信する。 The ASIC 63 has a resolution conversion process for enlarging or reducing an image at a required magnification, a background skipping process for whitening excess background color when the original is recycled paper, etc., and image data in a halftone dot area, a character area, and an image. Area discrimination processing for classifying into areas, conversion processing for converting image data of each RGB color into image data for each color of YMCK, character edge correction for correcting the character area, error diffusion processing for smoothing the image, etc. .. The ASIC 63 transmits the processed image data of each color of YMCK and the attribute signal SN to the ASIC 64.

ASIC64は、YMCK各色の画像データおよび属性信号SNに対して圧縮処理を行い、圧縮処理後のデータおよび属性信号SNをメモリ4に保存する。またASIC64は、メモリ4に保存されたデータに対して伸張処理を行うことにより、YMCK各色のデータおよび属性信号SNをメモリ4から読み出す。ASIC64は、処理後のYMCK各色の画像データと属性信号SNとをASIC65に送信する。 The ASIC 64 performs compression processing on the image data and the attribute signal SN of each color of YMCK, and stores the data and the attribute signal SN after the compression processing in the memory 4. Further, the ASIC 64 reads the data of each color of YMCK and the attribute signal SN from the memory 4 by performing the decompression processing on the data stored in the memory 4. The ASIC 64 transmits the processed image data of each color of YMCK and the attribute signal SN to the ASIC 65.

ASIC65は、エッジ強調ヤスムージングなどの画像補正処理、コピー防止用の地紋イメージを合成する処理、階調の変化を強調するスクリーン処理、YMCK各色を用紙に印刷するタイミングのずれを補正するPC間遅延制御処理、および印字強度を調整する処理(PWM+同期IC)などを必要に応じて行う。ASIC65は、処理の後YMCK各色の画像データと属性信号SNとをプリンターエンジン部32に送信する。 The ASIC65 includes image correction processing such as edge enhancement and smoothing, processing for synthesizing a tint block image for copy protection, screen processing for emphasizing gradation changes, and delay between PCs for correcting the timing deviation of printing each color of YMCK on paper. Control processing, processing for adjusting print strength (PWM + synchronous IC), and the like are performed as necessary. After processing, the ASIC 65 transmits the image data of each color of YMCK and the attribute signal SN to the printer engine unit 32.

[インク部分補正処理部が行う処理] [Processing performed by the ink partial correction processing unit]

図8は、本発明の一実施の形態におけるインク部分補正処理部62の回路構成を示す図である。 FIG. 8 is a diagram showing a circuit configuration of the ink partial correction processing unit 62 according to the embodiment of the present invention.

図8を参照して、インク部分補正処理部62は、下地階調値検出部621(下地レベル検出手段の一例)と、R色近傍判別部622(レベル判別手段の一例)と、R色最大値判別部623(レベル判別手段の一例)と、彩度検出部624(彩度判別手段の一例)と、色相判別部625(色相判別手段の一例)と、下地彩度検出部626と、選択部627と、低彩度判別部628と、AND型回路629と、階調値置換部630と、選択部631(置換手段の一例)とを含んでいる。 With reference to FIG. 8, the ink portion correction processing unit 62 includes a background gradation value detection unit 621 (an example of a background level detecting means), an R color neighborhood discrimination unit 622 (an example of a level discrimination means), and an R color maximum. Select the value discrimination unit 623 (an example of the level discrimination means), the saturation detection unit 624 (an example of the saturation discrimination means), the hue discrimination unit 625 (an example of the hue discrimination means), and the background saturation detection unit 626. A unit 627, a low saturation determination unit 628, an AND type circuit 629, a gradation value replacement unit 630, and a selection unit 631 (an example of replacement means) are included.

下地階調値検出部621は、画像読取部31から入力されたRGB各色の画像データ(以降、画像読取部31から入力された画像データを入力画像データと記すことがある)に基づいて、原稿の下地のRGB各色の階調値UR、UG、およびUBを検出する。 The background gradation value detection unit 621 is based on the image data of each RGB color input from the image reading unit 31 (hereinafter, the image data input from the image reading unit 31 may be referred to as input image data). The gradation values UR, UG, and UB of each of the RGB colors of the background are detected.

図9は、本発明の一実施の形態において、下地階調値検出部621が行う原稿の下地のRGB各色の階調値の検出方法を説明する図である。 FIG. 9 is a diagram illustrating a method of detecting gradation values of each RGB color of the background of a document by the background gradation value detecting unit 621 in one embodiment of the present invention.

図8および図9を参照して、下地階調値検出部621は、入力画像データにおける各画素の明度Vを算出し、原稿の画像内の明度の分布を示すヒストグラムを作成する。画素の明度Vは、たとえば下記式(1)に示すように、その画素のR色階調値、G色階調値、およびB色階調値の平均値として算出される。 With reference to FIGS. 8 and 9, the background gradation value detection unit 621 calculates the brightness V of each pixel in the input image data and creates a histogram showing the distribution of the brightness in the image of the original. The brightness V of a pixel is calculated as an average value of the R color gradation value, the G color gradation value, and the B color gradation value of the pixel, for example, as shown in the following formula (1).

V=average(R,G,B) ・・・(1) V = average (R, G, B) ... (1)

続いて下地階調値検出部621は、ヒストグラムにおけるピークとなる明度のうち最大の明度(ここでは値PK1)を、下地の明度として検出する。下地階調値検出部621は、検出した明度の値PK1と同一の値を、原稿の下地のRGB各色の階調値UR、UG、およびUBとして検出する。 Subsequently, the background gradation value detection unit 621 detects the maximum brightness (here, the value PK1) among the peak brightnesses in the histogram as the background brightness. The background gradation value detection unit 621 detects the same value as the detected brightness value PK1 as the gradation values UR, UG, and UB of each RGB color of the background of the document.

図10は、本発明の一実施の形態において、R色近傍判別部622が行う判別方法を説明する図である。 FIG. 10 is a diagram illustrating a discrimination method performed by the R color neighborhood discriminating unit 622 in one embodiment of the present invention.

図8および図10を参照して、R色近傍判別部622は、入力画像データにおける原稿内の画素を1つずつ順番に抽出し、抽出した画素のR色階調値SRが、下地階調値検出部621にて検出した下地のR色階調値URの近傍であるか否かを判別する。R色近傍判別部622は、抽出した画素のR色階調値SRが下地のR色階調値URの近傍であると判別した場合、選択部627に「1」を出力する。R色近傍判別部622は、抽出した画素のR色階調値SRが下地のR色階調値URの近傍でないと判別した場合、選択部627に「0」を出力する。 With reference to FIGS. 8 and 10, the R color neighborhood determination unit 622 extracts pixels in the document in the input image data one by one, and the R color gradation value SR of the extracted pixels is the background gradation. It is determined whether or not it is in the vicinity of the R color gradation value UR of the background detected by the value detection unit 621. The R color neighborhood determination unit 622 outputs "1" to the selection unit 627 when it determines that the R color gradation value SR of the extracted pixel is near the R color gradation value UR of the background. When the R color neighborhood determination unit 622 determines that the R color gradation value SR of the extracted pixel is not in the vicinity of the base R color gradation value UR, the R color neighborhood determination unit 622 outputs “0” to the selection unit 627.

R色近傍判別部622は、抽出した画素のR色階調値SRと下地のR色階調値URとの差が、下地のR色階調値URの±1%以内である(言い換えれば、抽出した画素のR色階調値SRが範囲RG1の範囲内である)場合に、抽出した画素のR色階調値SRが下地のR色階調値URの近傍であると判別する。一方、R色近傍判別部622は、上記差が下地のR色階調値URの±1%以内でない(言い換えれば、抽出した画素のR色階調値SRが範囲RG1の範囲外である)場合に、抽出した画素のR色階調値SRが下地のR色階調値URの近傍でないと判別する。 In the R color proximity discrimination unit 622, the difference between the R color gradation value SR of the extracted pixel and the R color gradation value UR of the background is within ± 1% of the R color gradation value UR of the background (in other words, , The R color gradation value SR of the extracted pixel is within the range of the range RG1), it is determined that the R color gradation value SR of the extracted pixel is in the vicinity of the R color gradation value UR of the background. On the other hand, in the R color neighborhood discrimination unit 622, the above difference is not within ± 1% of the R color gradation value UR of the background (in other words, the R color gradation value SR of the extracted pixel is outside the range of the range RG1). In this case, it is determined that the R color gradation value SR of the extracted pixel is not in the vicinity of the R color gradation value UR of the background.

図11は、熱消去性インク(蛍光色でないもの)で描かれた文字を消去した痕跡の部分の画素のR色階調値と、原稿の下地のR色階調値との関係を示すヒストグラムである。 FIG. 11 is a histogram showing the relationship between the R color gradation value of the pixel of the trace portion where the characters drawn with the heat erasable ink (non-fluorescent color) are erased and the R color gradation value of the background of the document. Is.

図8および図11を参照して、R色最大値判別部623は、入力画像データにおける原稿内の画素を1つずつ順番に抽出し、抽出した画素のR色階調値SRが階調値の検出値の最大値であるか否かを判別する。R色最大値判別部623は、抽出した画素のR色階調値SRが最大値であると判別した場合、選択部627に「1」を出力する。R色最大値判別部623は、抽出した画素のR色階調値SRが最大値でないと判別した場合、選択部627に「0」を出力する。 With reference to FIGS. 8 and 11, the R color maximum value determination unit 623 extracts pixels in the document in the input image data one by one, and the R color gradation value SR of the extracted pixels is a gradation value. It is determined whether or not it is the maximum value of the detected value of. When the R color maximum value determination unit 623 determines that the R color gradation value SR of the extracted pixel is the maximum value, it outputs "1" to the selection unit 627. When the R color maximum value determination unit 623 determines that the R color gradation value SR of the extracted pixel is not the maximum value, it outputs "0" to the selection unit 627.

熱消去性インク(蛍光色でないもの)で描かれた文字を消去した痕跡の部分の画素を抽出した場合、その画素のR色階調値は最大値LRMaxとなり、原稿の下地のR色階調値URよりも大きくなる。 When the pixel of the trace part where the characters drawn with the heat-erasable ink (non-fluorescent color) is erased is extracted, the R color gradation value of the pixel becomes the maximum value LRMax, and the R color gradation of the background of the original. Greater than the value UR.

図8を参照して、彩度検出部624は、入力画像データにおける原稿内の画素を1つずつ順番に抽出し、RGBの入力画像データに基づいて、抽出した画素の彩度CFを検出する。抽出した画素のR色階調値SR、G色階調値SG、およびB色階調値SBの中で最も大きい値を最大値Max(SR,SG,SB)とし、階調値SR、SG、およびSBの中で最も小さい値を最小値Min(SR,SG,SB)とした場合に、抽出した画素の彩度CFはたとえば下記式(2)を用いて算出される。 With reference to FIG. 8, the saturation detection unit 624 sequentially extracts the pixels in the document in the input image data one by one, and detects the saturation CF of the extracted pixels based on the RGB input image data. .. The largest value among the R color gradation value SR, G color gradation value SG, and B color gradation value SB of the extracted pixels is set as the maximum value Max (SR, SG, SB), and the gradation values SR, SG. , And when the smallest value among SBs is set to the minimum value Min (SR, SG, SB), the saturation CF of the extracted pixels is calculated using, for example, the following equation (2).

CF=Max(SR,SG,SB)−Min(SR,SG,LB) ・・・(2) CF = Max (SR, SG, SB) -Min (SR, SG, LB) ... (2)

色相判別部625は、入力画像データにおける原稿内の画素を1つずつ順番に抽出し、RGB各色の画像データに基づいて、抽出した画素の色相がR色であるか否かを判別する。色相判別部625は、抽出した画素のR色階調値SR、G色階調値SG、およびB色階調値SBが下記式(3)の条件を満たす場合に抽出した画素の色相がR色であると判別し、AND型回路629の端子IN2に「1」を出力する。一方、色相判別部625は、下記式(3)の条件を満たさない場合に抽出した画素の色相がR色でないと判別し、AND型回路629の端子IN2に「0」を出力する。 The hue discrimination unit 625 extracts pixels in the document in the input image data one by one in order, and determines whether or not the hue of the extracted pixels is R color based on the image data of each RGB color. In the hue discrimination unit 625, when the R color gradation value SR, the G color gradation value SG, and the B color gradation value SB of the extracted pixels satisfy the condition of the following formula (3), the hue of the extracted pixel is R. It is determined that it is a color, and "1" is output to the terminal IN2 of the AND type circuit 629. On the other hand, the hue discrimination unit 625 determines that the hue of the extracted pixel is not R color when the condition of the following equation (3) is not satisfied, and outputs "0" to the terminal IN2 of the AND type circuit 629.

|SR−SG|>|SG−SB| ・・・(3) | SR-SG |>| SG-SB | ・ ・ ・ (3)

下地彩度検出部626は、下地階調値検出部621にて検出した原稿の下地のRGB各色の階調値UR、UG、およびUBに基づいて、原稿の下地の彩度CFAを検出する。原稿の下地のR色階調値UR、G色階調値UG、およびB色階調値UBの中で最も大きい値を最大値Max(UR,UG,UB)とし、階調値UR、UG、およびUBの中で最も小さい値を最小値Min(UR,UG,UB)とした場合に、原稿の下地の彩度CFAはたとえば下記式(4)を用いて算出される。 The background saturation detection unit 626 detects the saturation CFA of the background of the document based on the gradation values UR, UG, and UB of each RGB color of the background of the document detected by the background gradation value detection unit 621. The largest value among the R color gradation value UR, G color gradation value UG, and B color gradation value UB of the background of the original is set to the maximum value Max (UR, UG, UB), and the gradation values UR, UG. When the smallest value among UB and UB is set to the minimum value Min (UR, UG, UB), the saturation CFA of the background of the document is calculated using, for example, the following formula (4).

CFA=Max(UR,UG,UB)−Min(UR,UG,UB) ・・・(4) CFA = Max (UR, UG, UB) -Min (UR, UG, UB) ... (4)

選択部627は、R色近傍判別部622による判別結果およびR色最大値判別部623による判別結果のうちいずれか一方を選択し、選択した判別結果(選択した部材からの入力値)をAND型回路629の端子IN1に出力する。 The selection unit 627 selects either one of the discrimination result by the R color neighborhood discrimination unit 622 and the discrimination result by the R color maximum value discrimination unit 623, and the selected discrimination result (input value from the selected member) is AND type. Output to terminal IN1 of circuit 629.

図12は、操作表示部33に表示される画面の一例を示す図である。 FIG. 12 is a diagram showing an example of a screen displayed on the operation display unit 33.

図8および図12を参照して、操作表示部33は、画像読取の実行指示をユーザーから受け付ける際に、原稿に含まれるインクの種類の設定の入力を受け付けてもよい。 With reference to FIGS. 8 and 12, the operation display unit 33 may accept input for setting the type of ink contained in the document when receiving an image reading execution instruction from the user.

操作表示部に表示される画面は、原稿に含まれるインクの種類の設定の入力を受け付ける画面であり、キーKY1、KY2、およびKY3を含んでいる。キーKY1は、原稿に含まれるインクの種類が蛍光色でない熱消去性インクであることの選択を受け付けるキーである。キーKY2は、原稿に含まれるインクの種類が蛍光色の熱消去性インクであることの選択を受け付けるキーである。キーKY1およびKY2のうちいずれか一方が選択された状態で、ジョブを実行するためのキーKY3の押下を受け付けた場合、画像形成装置1は、画像読取の実行指示とともに原稿に含まれるインクの種類が選択された種類である旨の設定を受け付ける。 The screen displayed on the operation display unit is a screen that accepts input for setting the type of ink contained in the document, and includes keys KY1, KY2, and KY3. The key KY1 is a key that accepts the selection that the type of ink contained in the original is a heat-erasable ink that is not a fluorescent color. The key KY2 is a key that accepts the selection that the type of ink contained in the original is a fluorescent color heat-erasable ink. When one of the keys KY1 and KY2 is selected and the key KY3 for executing the job is accepted, the image forming apparatus 1 receives an instruction to execute image reading and the type of ink contained in the document. Accepts the setting that is the selected type.

原稿に含まれるインクの種類の設定の入力を受け付けた場合、選択部627は、受け付けた設定に基づいて上記の選択を行う。すなわち、原稿に含まれるインクの種類が蛍光色の熱消去性インクでない旨の設定を受け付けた場合、選択部627はR色近傍判別部622による判別結果を選択する。原稿に含まれるインクの種類が蛍光色の熱消去性インクである旨の設定を受け付けた場合、選択部627はR色最大値判別部623による判別結果を選択する。 When the input of the setting of the type of ink contained in the original is accepted, the selection unit 627 makes the above selection based on the accepted setting. That is, when the setting that the type of ink contained in the document is not the fluorescent color heat-erasable ink is accepted, the selection unit 627 selects the discrimination result by the R color neighborhood discrimination unit 622. When the setting that the type of ink contained in the document is fluorescent color heat-erasable ink is accepted, the selection unit 627 selects the discrimination result by the R color maximum value discrimination unit 623.

図8を参照して、低彩度判別部628は、抽出した画素の彩度CFの入力を彩度検出部624から受け付け、原稿の下地の彩度CFAの入力を下地彩度検出部626から受け付け、固定値であるR色の彩度CFBの入力を受け付ける。低彩度判別部628は、入力画像データにおける原稿内の画素を1つずつ順番に抽出し、抽出した画素の彩度CFが、下記式(5)に示すように下地の彩度CFAよりも大きくR色の彩度CFBよりも小さい範囲内であるか否かを判別する。 With reference to FIG. 8, the low saturation determination unit 628 receives the input of the saturation CF of the extracted pixel from the saturation detection unit 624, and the input of the saturation CFA of the background of the document is input from the background saturation detection unit 626. Accepts and accepts the input of the fixed value R color saturation CFB. The low saturation determination unit 628 extracts the pixels in the document in the input image data one by one in order, and the saturation CF of the extracted pixels is higher than that of the background saturation CFA as shown in the following formula (5). It is determined whether or not the saturation of the R color is within a range smaller than that of the CFB.

CFA<CF<CFB ・・・(5) CFA <CF <CFB ... (5)

低彩度判別部628は、抽出した画素の彩度CFが上記範囲内であると判別した場合、AND型回路629の端子IN3に「1」を出力する。一方、低彩度判別部628は、抽出した画素の彩度CFが上記範囲外であると判別した場合、AND型回路629の端子IN3に「0」を出力する。 When the low saturation determination unit 628 determines that the saturation CF of the extracted pixel is within the above range, the low saturation determination unit 628 outputs "1" to the terminal IN3 of the AND type circuit 629. On the other hand, when the low saturation determination unit 628 determines that the saturation CF of the extracted pixel is out of the above range, the low saturation determination unit 628 outputs "0" to the terminal IN3 of the AND type circuit 629.

AND型回路629は、R色の入力画像データにおける原稿内の画素を1つずつ順番に抽出し、抽出した画素についての端子IN1、IN2、およびIN3の各々に入力する値がいずれも「1」である場合に、選択部631の入力端子Cに「1」という値Cを出力する。一方、AND型回路629は、端子IN1、IN2、およびIN3のうち少なくともいずれか1つの端子に入力する値が「0」である場合に、選択部631の入力端子に「0」という値Cを出力する。 The AND type circuit 629 extracts pixels in the document one by one in the R color input image data in order, and the values to be input to each of the terminals IN1, IN2, and IN3 of the extracted pixels are "1". In the case of, the value C of "1" is output to the input terminal C of the selection unit 631. On the other hand, the AND type circuit 629 sets the value C of "0" to the input terminal of the selection unit 631 when the value to be input to at least one of the terminals IN1, IN2, and IN3 is "0". Output.

図13は、抽出した画素のRGB各色の階調値SR、SG、およびSBに対するガンマ補正を説明する図である。 FIG. 13 is a diagram illustrating gamma correction for the gradation values SR, SG, and SB of each RGB color of the extracted pixels.

図8および図13を参照して、階調値置換部630は、入力画像データにおける原稿内の画素を1つずつ順番に抽出し、抽出した画素のRGB各色の階調値SR、SG、およびSBの各々を、下地のRGB各色の階調値UR、UG、およびUBの各々に置き換え、置き換えた後の階調値Bを選択部631に出力する。 With reference to FIGS. 8 and 13, the gradation value replacement unit 630 sequentially extracts the pixels in the document in the input image data one by one, and the gradation values SR, SG, and the gradation values SR, SG, and the RGB colors of the extracted pixels are Each of the SBs is replaced with each of the gradation values UR, UG, and UB of each color of the base RGB, and the gradation value B after the replacement is output to the selection unit 631.

抽出した画素が熱消去性インクの消去痕の部分の画素である場合、抽出した画素のG色階調値およびB色階調値は低下する傾向にある。階調値置換部630は、図13中矢印で示すように、抽出した画素のGB各色の階調値SGおよびSBのガンマ値が、下地のRGB各色の階調値UGおよびUBのガンマ値に合うように補正を行ってもよい。 When the extracted pixels are the pixels of the erase marks of the heat-erasable ink, the G color gradation value and the B color gradation value of the extracted pixels tend to decrease. In the gradation value replacement unit 630, as shown by an arrow in FIG. 13, the gamma values of the gradation values SG and SB of each GB color of the extracted pixels are changed to the gamma values of the gradation values UG and UB of each of the underlying RGB colors. Correction may be made to match.

選択部631には、画像読取部31から抽出した画素のRGB各色の階調値SR、SG、およびSBが階調値Aとして入力され、階調値置換部630から階調値Bが入力され、AND型回路629から値Cが入力される。 The gradation values SR, SG, and SB of each RGB color of the pixels extracted from the image reading unit 31 are input to the selection unit 631 as the gradation value A, and the gradation value B is input from the gradation value replacement unit 630. , The value C is input from the AND type circuit 629.

選択部631は、入力画像データにおける原稿内の画素を1つずつ順番に抽出し、抽出した画素について、AND型回路629から入力された値Cが「1」であるか「0」であるかを判別する。AND型回路629から入力された値Cが「1」である場合、抽出した画素が熱消去性インクの消去痕の部分であると判断される。この場合、選択部631は、抽出した画素の階調値を階調値Bに決定し、決定した画素の階調値を、抽出した画素の位置の情報とともに出力する。これにより、抽出した画素のRGB各色の階調値は下地のRGB各色の階調値UR、UG、およびUBに補正される。 The selection unit 631 sequentially extracts the pixels in the document in the input image data one by one, and for the extracted pixels, whether the value C input from the AND type circuit 629 is "1" or "0". To determine. When the value C input from the AND type circuit 629 is "1", it is determined that the extracted pixel is a portion of the erase mark of the heat-erasable ink. In this case, the selection unit 631 determines the gradation value of the extracted pixel as the gradation value B, and outputs the gradation value of the determined pixel together with the information on the position of the extracted pixel. As a result, the gradation values of the RGB colors of the extracted pixels are corrected to the gradation values UR, UG, and UB of each of the underlying RGB colors.

一方、AND型回路629から入力された値Cが「0」である場合、抽出した画素が熱消去性インクの消去痕の部分でないと判断される。この場合、選択部631は、抽出した画素の階調値を階調値Aに決定し、決定した画素の階調値Aを、抽出した画素の位置の情報とともに出力する。これにより、抽出した画素のRGB各色の階調値SR、SG、およびSBは補正されず維持される。 On the other hand, when the value C input from the AND type circuit 629 is "0", it is determined that the extracted pixels are not the erase marks of the heat-erasable ink. In this case, the selection unit 631 determines the gradation value of the extracted pixel as the gradation value A, and outputs the gradation value A of the determined pixel together with the information on the position of the extracted pixel. As a result, the gradation values SR, SG, and SB of each RGB color of the extracted pixels are maintained without being corrected.

インク部分補正処理部62の機能は、上記回路構成によって実現される場合の他、図14および図15に示すように、ROM3に記憶された制御プログラムをCPU2が実行することによって実現されてもよい。 The function of the ink partial correction processing unit 62 may be realized not only by the above circuit configuration but also by the CPU 2 executing the control program stored in the ROM 3 as shown in FIGS. 14 and 15. ..

図14および図15は、本発明の一実施の形態においてインク部分補正処理部62が実行する処理を示すフローチャートである。 14 and 15 are flowcharts showing the processes executed by the ink partial correction processing unit 62 in one embodiment of the present invention.

図14を参照して、CPU2は、画像読取部31からRGB各色の入力画像データを受信すると、RGB各色の入力画像データに基づいて、原稿の下地の明度を算出し、算出した明度に基づいて原稿の下地のRGB各色の階調値UR、UG、およびUBを算出(検出)する(S101)。次にCPU2は、原稿の下地のRGB各色の階調値UR、UG、およびUBに基づいて、原稿の下地の彩度CFAを算出(検出)し(S103)、R色の彩度CFBを設定する(S105)。続いてCPU2は、原稿内の1つの画素を抽出し(S107)、抽出した画素のRGB各色の階調値SR、SG、およびSBに基づいて、抽出した画素の彩度CFを算出する(S109)。続いてCPU2は、原稿に含まれるインクの種類が蛍光色でない熱消去性インクである旨の設定を受け付けているか否かを判別する(S111)。 With reference to FIG. 14, when the CPU 2 receives the input image data of each RGB color from the image reading unit 31, the CPU 2 calculates the brightness of the background of the original based on the input image data of each RGB color, and based on the calculated brightness. The gradation values UR, UG, and UB of each RGB color of the background of the original are calculated (detected) (S101). Next, the CPU 2 calculates (detects) the saturation CFA of the background of the document based on the gradation values UR, UG, and UB of each RGB color of the background of the document (S103), and sets the saturation CFB of the R color. (S105). Subsequently, the CPU 2 extracts one pixel in the document (S107), and calculates the saturation CF of the extracted pixel based on the gradation values SR, SG, and SB of each RGB color of the extracted pixel (S109). ). Subsequently, the CPU 2 determines whether or not the setting that the type of ink contained in the document is a heat-erasable ink that is not a fluorescent color is accepted (S111).

ステップS111において、原稿に含まれるインクの種類が蛍光色でない熱消去性インクである旨の設定を受け付けていないと判別した場合(S111でNO)、CPU2は、原稿に含まれるインクの種類が蛍光色の熱消去性インクである旨の設定を受け付けていると判断し、図15のステップS131の処理へ進む。 When it is determined in step S111 that the setting that the type of ink contained in the original is not a fluorescent color is not accepted (NO in S111), the CPU 2 determines that the type of ink contained in the original is fluorescent. It is determined that the setting that the color is heat-erasable ink is accepted, and the process proceeds to step S131 of FIG.

ステップS111において、原稿に含まれるインクの種類が蛍光色でない熱消去性インクである旨の設定を受け付けていると判別した場合(S111でYES)、CPU2は、原稿の下地の彩度CFA、R色の彩度CFB、および抽出した画素の彩度CFが式(5)の関係を満たすか否かを判別する(S113)。 When it is determined in step S111 that the setting that the type of ink contained in the document is a heat-erasable ink that is not a fluorescent color is accepted (YES in S111), the CPU 2 determines that the saturation CFA, R of the background of the document It is determined whether or not the color saturation CFB and the saturation CF of the extracted pixels satisfy the relationship of the equation (5) (S113).

ステップS113において、原稿の下地の彩度CFA、R色の彩度CFB、および抽出した画素の彩度CFが式(5)の関係を満たすと判別した場合(S113でYES)、CPU2は、抽出した画素のR色階調値SR、G色階調値SG、およびB色階調値SBが式(3)の条件を満たすか否かを判別する(S115)。 When it is determined in step S113 that the saturation CFA of the background of the document, the saturation CFB of the R color, and the saturation CF of the extracted pixels satisfy the relationship of the equation (5) (YES in S113), the CPU 2 extracts. It is determined whether or not the R color gradation value SR, the G color gradation value SG, and the B color gradation value SB of the pixels satisfy the condition of the equation (3) (S115).

ステップS115において、抽出した画素のR色階調値SR、G色階調値SG、およびB色階調値SBが式(3)の条件を満たすと判別した場合(S115でYES)、CPU2は、抽出した画素のR色階調値SRが原稿の下地のR色階調値URの近傍であるか否かを判別する(S117)。 When it is determined in step S115 that the R color gradation value SR, the G color gradation value SG, and the B color gradation value SB of the extracted pixels satisfy the condition of the equation (3) (YES in S115), the CPU 2 , It is determined whether or not the R color gradation value SR of the extracted pixel is in the vicinity of the R color gradation value UR of the base of the document (S117).

ステップS117において、抽出した画素のR色階調値SRが原稿の下地のR色階調値URの近傍であると判別した場合(S117でYES)、CPU2は、抽出した画素のRGB各色の階調値SR、SG、およびSBの各々を、原稿の下地のRGB各色の階調値UR、UG、およびUBの各々に置き換え(S119)、ステップS151の処理へ進む。 In step S117, when it is determined that the R color gradation value SR of the extracted pixel is in the vicinity of the R color gradation value UR of the background of the document (YES in S117), the CPU 2 determines that the RGB color scale of the extracted pixel is Each of the metering SR, SG, and SB is replaced with each of the gradation values UR, UG, and UB of each RGB color of the base of the document (S119), and the process proceeds to step S151.

ステップS113において、原稿の下地の彩度CFA、R色の彩度CFB、および抽出した画素の彩度CFが式(5)の関係を満たさないと判別した場合(S113でNO)、ステップS115において、抽出した画素のR色階調値SR、G色階調値SG、およびB色階調値SBが式(3)の条件を満たさないと判別した場合(S115でNO)、またはステップS117において、抽出した画素のR色階調値SRが原稿の下地のR色階調値URの近傍でないと判別した場合(S117でNO)、CPU2は置き換えを行わずにステップS151の処理へ進む。 In step S113, when it is determined that the saturation CFA of the background of the document, the saturation CFB of the R color, and the saturation CF of the extracted pixel do not satisfy the relationship of the equation (5) (NO in S113), in step S115. , When it is determined that the R color gradation value SR, the G color gradation value SG, and the B color gradation value SB of the extracted pixels do not satisfy the condition of the equation (3) (NO in S115), or in step S117. When it is determined that the R color gradation value SR of the extracted pixel is not in the vicinity of the R color gradation value UR of the base of the document (NO in S117), the CPU 2 proceeds to the process of step S151 without performing replacement.

ステップS151において、CPU2は、原稿内の全ての画素を抽出したか否かを判別する(S151)。 In step S151, the CPU 2 determines whether or not all the pixels in the document have been extracted (S151).

ステップS151において、原稿内の全ての画素を抽出しないと判別した場合(S151でNO)、CPU2はステップS107の処理へ進む。 If it is determined in step S151 that all the pixels in the document are not extracted (NO in S151), the CPU 2 proceeds to the process of step S107.

ステップS151において、原稿内の全ての画素を抽出したと判別した場合(S151でYES)、CPU2は処理を終了する。 If it is determined in step S151 that all the pixels in the document have been extracted (YES in S151), the CPU 2 ends the process.

図15を参照して、ステップS131において、CPU2は、原稿の下地の彩度CFA、R色の彩度CFB、および抽出した画素の彩度CFが式(5)の関係を満たすか否かを判別する(S131)。 With reference to FIG. 15, in step S131, the CPU 2 determines whether or not the saturation CFA of the background of the document, the saturation CFB of the R color, and the saturation CF of the extracted pixels satisfy the relationship of the equation (5). Determine (S131).

ステップS131において、原稿の下地の彩度CFA、R色の彩度CFB、および抽出した画素の彩度CFが式(5)の関係を満たすと判別した場合(S131でYES)、CPU2は、抽出した画素のR色階調値SR、G色階調値SG、およびB色階調値SBが式(3)の条件を満たすか否かを判別する(S133)。 In step S131, when it is determined that the saturation CFA of the background of the document, the saturation CFB of the R color, and the saturation CF of the extracted pixels satisfy the relationship of the equation (5) (YES in S131), the CPU 2 extracts. It is determined whether or not the R color gradation value SR, the G color gradation value SG, and the B color gradation value SB of the pixels satisfy the condition of the equation (3) (S133).

ステップS133において、抽出した画素のR色階調値SR、G色階調値SG、およびB色階調値SBが式(3)の条件を満たすと判別した場合(S133でYES)、CPU2は、抽出した画素のR色階調値SRが検出値の最大値であるか否かを判別する(S135)。 When it is determined in step S133 that the R color gradation value SR, the G color gradation value SG, and the B color gradation value SB of the extracted pixels satisfy the condition of the equation (3) (YES in S133), the CPU 2 , It is determined whether or not the R color gradation value SR of the extracted pixel is the maximum value of the detected value (S135).

ステップS135において、抽出した画素のR色階調値SRが検出値の最大値であると判別した場合(S135でYES)、CPU2は、抽出した画素のRGB各色の階調値SR、SG、およびSBの各々を、原稿の下地のRGB各色の階調値UR、UG、およびUBの各々に置き換え(S137)、図14のステップS151の処理へ進む。 When it is determined in step S135 that the R color gradation value SR of the extracted pixel is the maximum value of the detected value (YES in S135), the CPU 2 determines that the RGB color gradation values SR, SG, and the extracted pixel of each RGB color. Each of the SBs is replaced with each of the gradation values UR, UG, and UB of each of the RGB colors of the base of the document (S137), and the process proceeds to step S151 of FIG.

ステップS131において、原稿の下地の彩度CFA、R色の彩度CFB、および抽出した画素の彩度CFが式(5)の関係を満たさないと判別した場合(S131でNO)、ステップS133において、抽出した画素のR色階調値SR、G色階調値SG、およびB色階調値SBが式(3)の条件を満たさないと判別した場合(S133でNO)、またはステップS135において、抽出した画素のR色階調値SRが検出値の最大値でないと判別した場合(S135でNO)、CPU2は置き換えを行わずに図14のステップS151の処理へ進む。 In step S131, when it is determined that the saturation CFA of the background of the document, the saturation CFB of the R color, and the saturation CF of the extracted pixels do not satisfy the relationship of the equation (5) (NO in S131), in step S133. , When it is determined that the R color gradation value SR, the G color gradation value SG, and the B color gradation value SB of the extracted pixels do not satisfy the condition of the equation (3) (NO in S133), or in step S135. When it is determined that the R color gradation value SR of the extracted pixel is not the maximum value of the detected value (NO in S135), the CPU 2 proceeds to the process of step S151 in FIG. 14 without performing replacement.

[実施の形態の効果] [Effect of Embodiment]

本実施の形態によれば、熱消去性インクの消去痕の画像に特有の特徴に基づいて、熱消去性インクの消去痕の部分の画素が検出され、抽出された画素の階調値が下地の階調値に置き換えられる。これにより、赤外カットフィルタや3色のLEDを使用しなくても、熱消去性インクの消去痕の部分にR色が薄く再現される事態を回避することができ、製造コストの増加を抑止することができる。 According to the present embodiment, pixels in the erased marks of the heat-erasable ink are detected based on the characteristics peculiar to the image of the erased marks of the heat-erasable ink, and the gradation value of the extracted pixels is used as the base. Is replaced with the gradation value of. As a result, even if an infrared cut filter or a three-color LED is not used, it is possible to avoid a situation in which the R color is thinly reproduced in the erase mark portion of the heat-erasable ink, and an increase in manufacturing cost is suppressed. can do.

[その他] [Other]

熱消去性インクの消去痕の部分であるか否かの判断は、上述のように一画素単位で行われてもよいし、複数画素単位で行われてもよい。 The determination as to whether or not the portion is the erase mark portion of the heat-erasable ink may be performed in units of one pixel as described above, or may be performed in units of a plurality of pixels.

上述の実施の形態における処理は、ソフトウェアにより行っても、ハードウェア回路を用いて行ってもよい。また、上述の実施の形態における処理を実行するプログラムを提供することもできるし、そのプログラムをCD−ROM、フレキシブルディスク、ハードディスク、ROM、RAM、メモリカードなどの記録媒体に記録してユーザーに提供することにしてもよい。プログラムは、CPUなどのコンピューターにより実行される。また、プログラムはインターネットなどの通信回線を介して、装置にダウンロードするようにしてもよい。 The processing in the above-described embodiment may be performed by software or by using a hardware circuit. It is also possible to provide a program that executes the processing according to the above-described embodiment, and record the program on a recording medium such as a CD-ROM, a flexible disk, a hard disk, a ROM, a RAM, or a memory card and provide the program to the user. You may decide to do it. The program is executed by a computer such as a CPU. Further, the program may be downloaded to the device via a communication line such as the Internet.

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

1 画像形成装置
2 CPU(Central Processing Unit)
3 ROM(Read Only Memory)
4 メモリ
5 HDD(Hard Disk Drive)
6 画像処理部
10 メインコントローラー
31 画像読取部(画像取得手段の一例)
31a 画像読取部の筐体
32 プリンターエンジン部
33 操作表示部(受付手段の一例)
34 通信部
35 音声処理部
36 音声入力部
37 音声出力部
38 排紙トレイ
41 駆動部
42 発光部
43 AD変換部(画像生成手段の一例)
61,63,64,65 ASIC(Application Specific Integrated Circuit)
62 インク部分補正処理部
100 メインコントローラー
310 ADF(Auto Document Feeder)
311 原稿トレイ
312 排紙トレイ
321 コンタクトガラス
321a,322a スリット
322 プラテンガラス
323 ワイヤー
324 スライダー
325 光源(照射手段の一例)
326,327 ミラー
328 モーター
329,330 レンズ
331,331B,331G,331R ラインセンサー(受光手段の一例)
621 下地階調値検出部(下地レベル検出手段の一例)
622 R(赤)色近傍判別部(レベル判別手段の一例)
623 R色最大値判別部(レベル判別手段の一例)
624 彩度検出部(彩度判別手段の一例)
625 色相判別部(色相判別手段の一例)
626 下地彩度検出部
627,631 選択部(置換手段の一例)
628 低彩度判別部
629 AND型回路
630 階調値置換部
FT 赤外カットフィルタ
IK 熱消去性インク
IN1,IN2,IN3 端子
KY1,KY2,KY3 キー
P1 原稿読取位置
SN 属性信号
1 Image forming device 2 CPU (Central Processing Unit)
3 ROM (Read Only Memory)
4 Memory 5 HDD (Hard Disk Drive)
6 Image processing unit 10 Main controller 31 Image reading unit (an example of image acquisition means)
31a Image reading unit housing 32 Printer engine unit 33 Operation display unit (example of reception means)
34 Communication unit 35 Audio processing unit 36 Audio input unit 37 Audio output unit 38 Paper output tray 41 Drive unit 42 Light emitting unit 43 AD conversion unit (example of image generation means)
61, 63, 64, 65 ASIC (Application Specific Integrated Circuit)
62 Ink partial correction processing unit 100 Main controller 310 ADF (Auto Document Feeder)
311 Document tray 312 Paper output tray 321 Contact glass 321a, 322a Slit 322 Platen glass 323 Wire 324 Slider 325 Light source (example of irradiation means)
326,327 Mirror 328 Motor 329,330 Lens 331, 331B, 331G, 331R Line sensor (example of light receiving means)
621 Base gradation value detection unit (example of base level detection means)
622 R (red) color neighborhood discrimination unit (example of level discrimination means)
623 R color maximum value discriminating unit (an example of level discriminating means)
624 Saturation detection unit (an example of saturation determination means)
625 Hue Discrimination Unit (Example of Hue Discrimination Means)
626 Base saturation detection unit 627,631 Selection unit (example of replacement means)
628 Low-saturation discrimination unit 629 AND type circuit 630 Gradation value replacement unit FT Infrared cut filter IK Thermal erasable ink IN1, IN2, IN3 terminal KY1, KY2, KY3 key P1 Document reading position SN attribute signal

Claims (13)

原稿の赤緑青各色の画像データを取得する画像取得手段と、
前記赤緑青各色の画像データに基づいて、前記原稿の下地の赤緑青各色のレベルを検出する下地レベル検出手段と、
赤色の前記画像データに基づいて、前記原稿内の特定の位置の赤色のレベルが所定の値であるか否かを判別するレベル判別手段と、
前記赤緑青各色の画像データに基づいて、前記特定の位置の色相が赤色であるか否かを判別する色相判別手段と、
前記赤緑青各色の画像データに基づいて、前記特定の位置の彩度が所定の範囲内であるか否かを判別する彩度判別手段と、
前記特定の位置の赤色のレベルが前記所定の値であると前記レベル判別手段にて判別し、かつ前記特定の位置の色相が赤色であると前記色相判別手段にて判別し、かつ前記特定の位置の彩度が前記所定の範囲内であると前記彩度判別手段にて判別した場合に、前記特定の位置の赤緑青各色のレベルを、前記下地の赤緑青各色のレベルに置き換える置換手段とを備えた、画像処理装置。
Image acquisition means for acquiring image data of each color of red, green, and blue of the manuscript,
A background level detecting means for detecting the level of each color of red, green, and blue of the background of the document based on the image data of each color of red, green, and blue.
A level determination means for determining whether or not the red level at a specific position in the document is a predetermined value based on the red image data, and
A hue determining means for determining whether or not the hue at the specific position is red based on the image data of each of the red, green, and blue colors, and
A saturation determination means for determining whether or not the saturation at the specific position is within a predetermined range based on the image data of each of the red, green, and blue colors.
The level determination means determines that the red level at the specific position is the predetermined value, and the hue determination means determines that the hue at the specific position is red, and the specific When the saturation determination means determines that the saturation of the position is within the predetermined range, the replacement means replaces the level of each color of red, green, and blue at the specific position with the level of each color of red, green, and blue of the base. An image processing device equipped with.
前記画像取得手段は、
前記原稿に光を照射する照射手段と、
前記原稿から反射光を受光する受光手段と、
前記反射光に基づいて、前記赤緑青各色の画像データを生成する画像生成手段であって、前記反射光に含まれる赤色波長領域および赤外波長領域の光に基づいて、前記赤色の前記画像データを生成する画像生成手段とを含む、請求項1に記載の画像処理装置。
The image acquisition means
Irradiation means for irradiating the document with light,
A light receiving means that receives reflected light from the document and
An image generation means for generating image data of each color of red, green, and blue based on the reflected light, and the red image data based on light in a red wavelength region and an infrared wavelength region included in the reflected light. The image processing apparatus according to claim 1, further comprising an image generating means for generating the image.
前記レベル判別手段は、前記特定の位置の赤色のレベルが前記下地の赤色のレベルの近傍であるか否かを判別し、
前記置換手段は、前記特定の位置の赤色のレベルが前記下地の赤色のレベルの近傍であると前記レベル判別手段にて判別し、かつ前記特定の位置の赤色のレベルが前記下地の赤色のレベルの近傍であると前記色相判別手段にて判別し、かつ前記特定の位置の彩度が前記所定の範囲内であると前記彩度判別手段にて判別した場合に、前記赤緑青各色の画像データにおける前記特定の位置の赤緑青各色のレベルを、前記下地の位置の赤緑青各色のレベルに置き換える、請求項1または2に記載の画像処理装置。
The level determining means determines whether or not the red level at the specific position is in the vicinity of the red level of the base.
The replacement means determines by the level determining means that the red level at the specific position is close to the red level of the base, and the red level at the specific position is the red level of the base. Image data of each color of red, green, and blue when the hue discriminating means determines that the area is in the vicinity of, and the saturation discriminating means determines that the saturation of the specific position is within the predetermined range. The image processing apparatus according to claim 1 or 2, wherein the level of each color of red, green, and blue at the specific position in the above is replaced with the level of each color of red, green, and blue at the position of the base.
前記レベル判別手段は、前記特定の位置の赤色のレベルと前記下地の赤色のレベルとの差が、前記下地の赤色のレベルの±1%以内である場合に、前記特定の位置の赤色のレベルが前記下地の赤色のレベルの近傍である判別する、請求項3に記載の画像処理装置。 When the difference between the red level at the specific position and the red level of the base is within ± 1% of the red level of the base, the level determining means determines the red level at the specific position. The image processing apparatus according to claim 3, wherein is determined to be in the vicinity of the red level of the background. 前記レベル判別手段は、前記特定の位置の赤色のレベルが検出値の最大レベルであるか否かを判別し、
前記置換手段は、前記特定の位置の赤色のレベルが検出値の最大レベルであると前記レベル判別手段にて判別し、かつ前記特定の位置の赤色のレベルが前記下地の赤色のレベルの近傍であると前記色相判別手段にて判別し、かつ前記特定の位置の彩度が前記所定の範囲内であると前記彩度判別手段にて判別した場合に、前記赤緑青各色の画像データにおける前記特定の位置の赤緑青各色のレベルを、前記下地の位置の赤緑青各色のレベルに置き換える、請求項1または2に記載の画像処理装置。
The level determining means determines whether or not the red level at the specific position is the maximum level of the detected value.
The replacement means determines by the level determining means that the red level at the specific position is the maximum level of the detected value, and the red level at the specific position is in the vicinity of the red level of the base. When the hue determination means determines that there is, and the saturation determination means determines that the saturation at the specific position is within the predetermined range, the identification in the image data of each color of red, green, and blue. The image processing apparatus according to claim 1 or 2, wherein the level of each color of red, green, and blue at the position of is replaced with the level of each color of red, green, and blue at the position of the base.
前記レベル判別手段は、
前記特定の位置の赤色のレベルが前記下地の赤色のレベルの近傍であるか否かを判別する第1の判別手段と、
前記特定の位置の赤色のレベルが検出値の最大レベルであるか否かを判別する第2の判別手段と、
第1および第2の判別手段のうちいずれか一方を選択する選択手段とを含み、
前記置換手段は、前記選択手段にて第1のレベル判別手段を選択した場合において、前記特定の位置の赤色のレベルが前記下地の赤色のレベルの近傍であると前記第1のレベル判別手段にて判別し、かつ前記特定の位置の色相が赤色であると前記色相判別手段にて判別し、かつ前記特定の位置の彩度が前記所定の範囲内であると前記彩度判別手段にて判別したときは、前記特定の位置の赤緑青各色のレベルを、前記下地の位置の赤緑青各色のレベルに置き換え、
前記置換手段は、前記選択手段にて第2のレベル判別手段を選択した場合において、前記特定の位置の赤色のレベルが検出値の最大レベルであると前記第2のレベル判別手段にて判別し、かつ前記特定の位置の色相が赤色であると前記色相判別手段にて判別し、かつ前記特定の位置の彩度が前記所定の範囲内であると前記彩度判別手段にて判別したときは、前記赤緑青各色の画像データにおける前記特定の位置の赤緑青各色のレベルを、前記下地の位置の赤緑青各色のレベルに置き換える、請求項1または2に記載の画像処理装置。
The level determination means
A first determining means for determining whether or not the red level at the specific position is in the vicinity of the red level of the base.
A second determination means for determining whether or not the red level at the specific position is the maximum level of the detected value, and
Including a selection means for selecting one of the first and second determination means,
When the first level discriminating means is selected by the selecting means, the replacement means tells the first level discriminating means that the red level at the specific position is close to the red level of the base. The hue determination means determines that the hue at the specific position is red, and the saturation determination means determines that the saturation at the specific position is within the predetermined range. When this is done, the level of each red, green, and blue color at the specific position is replaced with the level of each color of red, green, and blue at the base position.
When the second level determination means is selected by the selection means, the replacement means determines that the red level at the specific position is the maximum level of the detected value by the second level determination means. When the hue determination means determines that the hue at the specific position is red and the saturation determination means determines that the saturation at the specific position is within the predetermined range. The image processing apparatus according to claim 1 or 2, wherein the level of each color of red, green, and blue at the specific position in the image data of each color of red, green, and blue is replaced with the level of each color of red, green, and blue at the base position.
前記原稿に含まれるインクの種類の設定の入力を受け付ける受付手段をさらに備え、
前記選択手段は、前記受付手段にて受け付けた設定に基づいて選択を行う、請求項6に記載の画像処理装置。
Further provided with a reception means for accepting input for setting the type of ink contained in the manuscript,
The image processing apparatus according to claim 6, wherein the selection means makes a selection based on the settings received by the reception means.
前記下地レベル検出手段は、
前記赤緑青各色の画像データに基づいて、前記原稿の画像内の明度の分布を示すヒストグラムを作成するヒストグラム作成手段と、
前記ヒストグラムにおいてピークとなる明度を有する前記原稿内の位置の赤緑青各色のレベルを前記赤緑青各色の画像データから抽出し、抽出した赤緑青各色のレベルを前記下地の赤緑青各色のレベルとして検出するレベル抽出手段とを含む、請求項1〜7のいずれかに記載の画像処理装置。
The ground level detecting means is
A histogram creating means for creating a histogram showing the distribution of brightness in the image of the manuscript based on the image data of each color of red, green, and blue.
The level of each red, green, and blue color at the position in the document having the peak brightness in the histogram is extracted from the image data of each of the red, green, and blue colors, and the level of each extracted red, green, and blue color is detected as the level of each red, green, and blue color of the background. The image processing apparatus according to any one of claims 1 to 7, further comprising a level extraction means for
前記赤色の画像データにおける前記特定の位置の赤色のレベルをレベルSRとし、前記緑色の画像データにおける前記特定の位置の緑色のレベルをレベルSGとし、前記青色の画像データにおける前記特定の位置の青色のレベルをレベルSBとした場合において、前記レベルSR、前記レベルSG、および前記レベルSBが|SR−SG|>|SG−SB|の条件を満たすときは、前記色相判別手段は前記特定の位置の色相が赤色であると判別する、請求項1〜8のいずれかに記載の画像処理装置。 The red level at the specific position in the red image data is defined as level SR, the green level at the specific position in the green image data is defined as level SG, and the blue color at the specific position in the blue image data. When the level SR, the level SG, and the level SB satisfy the condition of | SR-SG |> | SG-SB |, the hue discriminating means is at the specific position. The image processing apparatus according to any one of claims 1 to 8, wherein the hue of the image processing apparatus is determined to be red. 前記彩度判別手段は、前記特定の位置の彩度が前記下地の彩度よりも大きく赤色の彩度よりも小さい範囲内であるか否かを判別する、請求項1〜9のいずれかに記載の画像処理装置。 The saturation determination means according to any one of claims 1 to 9, wherein the saturation determination means determines whether or not the saturation at the specific position is within a range larger than the saturation of the base and smaller than the saturation of red. The image processing apparatus described. 前記赤色の画像データにおける前記特定の位置の赤色のレベルをレベルSRとし、前記緑色の画像データにおける前記特定の位置の緑色のレベルをレベルSGとし、前記青色の画像データにおける前記特定の位置の青色のレベルをレベルSBとし、前記レベルSR、前記レベルSG、および前記レベルSBのうち最大のレベルを最大レベルMax(SR,SG,SB)とし、前記レベルSR、前記レベルSG、および前記レベルSBのうち最小のレベルを最小レベルMix(SR,SG,SB)とした場合に、前記彩度判別手段は前記特定の位置の彩度CFを、CF=Max(SR,SG,SB)−Mix(SR,SG,SB)の式を用いて算出する、請求項1〜10のいずれかに記載の画像処理装置。 The red level at the specific position in the red image data is defined as level SR, the green level at the specific position in the green image data is defined as level SG, and the blue color at the specific position in the blue image data. Level SB, and the maximum level among the level SR, the level SG, and the level SB is the maximum level Max (SR, SG, SB), and the level SR, the level SG, and the level SB. When the minimum level is the minimum level Mix (SR, SG, SB), the saturation determination means sets the saturation CF at the specific position to CF = Max (SR, SG, SB) -Mix (SR). , SG, SB). The image processing apparatus according to any one of claims 1 to 10. 前記置換手段は、青緑各色の前記画像データにおける前記特定の位置の青緑各色のレベルのガンマ値が前記下地の青緑各色のレベルのガンマ値に合うように補正を行う、請求項1〜11のいずれかに記載の画像処理装置。 The replacement means corrects the gamma value of the level of each blue-green color at the specific position in the image data of each blue-green color so as to match the gamma value of the level of each blue-green color of the base. 11. The image processing apparatus according to any one of 11. 原稿の赤緑青各色の画像データを取得する画像取得ステップと、
前記赤緑青各色の画像データに基づいて、前記原稿の下地の赤緑青各色のレベルを検出する下地レベル検出ステップと、
赤色の前記画像データに基づいて、前記原稿内の特定の位置の赤色のレベルが所定の値であるか否かを判別するレベル判別ステップと、
前記赤緑青各色の画像データに基づいて、前記特定の位置の色相が赤色であるか否かを判別する色相判別ステップと、
前記赤緑青各色の画像データに基づいて、前記特定の位置の彩度が所定の範囲内であるか否かを判別する彩度判別ステップと、
前記特定の位置の赤色のレベルが前記所定の値であると前記レベル判別ステップにて判別し、かつ前記特定の位置の色相が赤色であると前記色相判別ステップにて判別し、かつ前記特定の位置の彩度が前記所定の範囲内であると前記彩度判別ステップにて判別した場合に、前記特定の位置の赤緑青各色のレベルを、前記下地の赤緑青各色のレベルに置き換える置換ステップとをコンピューターに実行させるための、画像処理装置の制御プログラム。
The image acquisition step to acquire the image data of each color of red, green, and blue of the manuscript,
A background level detection step for detecting the level of each color of red, green, and blue of the background of the document based on the image data of each color of red, green, and blue.
A level determination step for determining whether or not the red level at a specific position in the document is a predetermined value based on the red image data, and
A hue determination step for determining whether or not the hue at the specific position is red based on the image data of each of the red, green, and blue colors, and
A saturation determination step for determining whether or not the saturation at the specific position is within a predetermined range based on the image data of each color of red, green, and blue.
The level determination step determines that the red level at the specific position is the predetermined value, and the hue determination step determines that the hue at the specific position is red, and the specific When the saturation determination step determines that the saturation of the position is within the predetermined range, the replacement step of replacing the level of each red, green, and blue color at the specific position with the level of each red, green, and blue color of the base. A control program for an image processing device that causes a computer to execute.
JP2019076223A 2019-04-12 2019-04-12 Image processing device and image processing device control program Active JP7159958B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019076223A JP7159958B2 (en) 2019-04-12 2019-04-12 Image processing device and image processing device control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019076223A JP7159958B2 (en) 2019-04-12 2019-04-12 Image processing device and image processing device control program

Publications (2)

Publication Number Publication Date
JP2020174315A true JP2020174315A (en) 2020-10-22
JP7159958B2 JP7159958B2 (en) 2022-10-25

Family

ID=72831879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019076223A Active JP7159958B2 (en) 2019-04-12 2019-04-12 Image processing device and image processing device control program

Country Status (1)

Country Link
JP (1) JP7159958B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003308163A (en) * 2002-04-15 2003-10-31 Hitachi Ltd Electronic pen with erasure function
JP2004247789A (en) * 2003-02-10 2004-09-02 Konica Minolta Holdings Inc Image reading processing apparatus, image reading processing method, and recording medium
JP2005244504A (en) * 2004-02-25 2005-09-08 Ricoh Co Ltd Image reading device and image forming apparatus
JP2006148866A (en) * 2004-10-20 2006-06-08 Toshiba Corp Image forming apparatus and image forming method
JP2013058933A (en) * 2011-09-08 2013-03-28 Konica Minolta Business Technologies Inc Image formation device, image formation method, and control program of image formation device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003308163A (en) * 2002-04-15 2003-10-31 Hitachi Ltd Electronic pen with erasure function
JP2004247789A (en) * 2003-02-10 2004-09-02 Konica Minolta Holdings Inc Image reading processing apparatus, image reading processing method, and recording medium
JP2005244504A (en) * 2004-02-25 2005-09-08 Ricoh Co Ltd Image reading device and image forming apparatus
JP2006148866A (en) * 2004-10-20 2006-06-08 Toshiba Corp Image forming apparatus and image forming method
JP2013058933A (en) * 2011-09-08 2013-03-28 Konica Minolta Business Technologies Inc Image formation device, image formation method, and control program of image formation device

Also Published As

Publication number Publication date
JP7159958B2 (en) 2022-10-25

Similar Documents

Publication Publication Date Title
US10827101B2 (en) Color inspection device to correct color readings of a color detection object using correction coefficients
CN1905614A (en) Image processing apparatus and method therefor
JP5180551B2 (en) Printing apparatus and control method thereof, and color processing apparatus and method thereof
JP2006238408A (en) Image forming apparatus and calibration reference chart
US8373896B2 (en) Image processing apparatus, control method therefor, program, and storage medium
JP2011024135A (en) Image reader, image formation device, and program
JP7468176B2 (en) Image processing device and image reading method
US11323579B2 (en) Image processing apparatus, image processing method, and storage medium
JP5531745B2 (en) Image forming apparatus
JP4556242B2 (en) Color tone correction method, color tone correction apparatus, image forming apparatus, and program
JP2011023833A (en) Image reader, image formation device, and program
JP2003032504A (en) Image forming device
JP2022137425A (en) Image reading device and image forming apparatus
JP2013070173A (en) Image reading device, image forming device, and program
JP7159958B2 (en) Image processing device and image processing device control program
JP2008301114A (en) Image processor
JP2006224538A (en) Image forming apparatus and its control method
US20220150382A1 (en) Image forming apparatus, non-transitory computer readable recording medium storing color correction control program, and color correction control method in image forming apparatus
JP5020777B2 (en) Image processing apparatus, image processing method, and program
JP7314733B2 (en) Color conversion table correction device, color conversion table correction program, and color conversion table correction method
JP2022128248A (en) Image reading device and image forming apparatus
US10178280B2 (en) Paper type dependent automatic background suppression
JPH10322568A (en) Image forming device
JP2021022885A (en) Reading device, image forming apparatus, and correction method
JP2009225308A (en) Image processing apparatus and image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211224

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220829

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: 20220913

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220926

R150 Certificate of patent or registration of utility model

Ref document number: 7159958

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150